Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3298 | Rev 3328 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3298 Rev 3327
Línea 3... Línea 3...
3
$this->headMeta()->appendName('og:url', "$share_url");
3
$this->headMeta()->appendName('og:url', "$share_url");
4
$this->headMeta()->appendName('og:title', "$share_title");
4
$this->headMeta()->appendName('og:title', "$share_title");
5
$this->headMeta()->appendName('og:description', "$share_description");
5
$this->headMeta()->appendName('og:description', "$share_description");
6
$this->headMeta()->appendName('og:image', "$share_image");
6
$this->headMeta()->appendName('og:image', "$share_image");
Línea -... Línea 7...
-
 
7
 
-
 
8
$this->inlineScript()->captureStart();
-
 
9
echo <<<JS
-
 
10
(function(d, s, id) {
-
 
11
    var js, fjs = d.getElementsByTagName(s)[0];
-
 
12
    if (d.getElementById(id)) return;
-
 
13
    js = d.createElement(s); js.id = id;
-
 
14
    js.src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0";
-
 
15
    fjs.parentNode.insertBefore(js, fjs);
-
 
16
}(document, 'script', 'facebook-jssdk'));
-
 
17
JS;
-
 
18
$this->inlineScript()->captureEnd();
-
 
19
 
7
 
20
 
Línea -... Línea 21...
-
 
21
?>
8
?>
22
 
9
 
23
<div id="fb-root"></div>
-
 
24
<div class="fb-share-button"
10
<a href="<?php echo $share_url ?>">
25
data-href="https://www.your-domain.com/your-page.html"
11
<img src="<?php echo $share_image ?>"  style="width: 200px; height: auto"/>
26
data-layout="button_count">