Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3344 | Rev 3346 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3298 efrain 1
<?php
2
 
3
$this->headMeta()->appendName('og:url', "$share_url");
4
$this->headMeta()->appendName('og:title', "$share_title");
5
$this->headMeta()->appendName('og:description', "$share_description");
6
$this->headMeta()->appendName('og:image', "$share_image");
7
 
3345 efrain 8
$this->inlineScript()->appendFile('/react-bundles/group/invitations-received/invitationsReceivedBundle.js');
9
 
10
 
11
 
12
$this->inlineScript()->captureStart();
13
echo <<<JS
14
(function(d, s, id) {
15
var js, fjs = d.getElementsByTagName(s)[0];
16
if (d.getElementById(id)) return;
17
js = d.createElement(s); js.id = id;
18
js.src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0";
19
fjs.parentNode.insertBefore(js, fjs);
20
}(document, 'script', 'facebook-jssdk'));
21
JS;
22
$this->inlineScript()->captureEnd();
23
 
3298 efrain 24
?>
25
 
3333 efrain 26
<a href="<?php echo $share_url ?>">
27
<img src="<?php echo $share_image ?>"  style="width: 200px; height: auto"/>
28
</a>
3334 efrain 29
 
30
 
3345 efrain 31
<!-- Load Facebook SDK for JavaScript -->
32
<div id="fb-root"></div>
3341 efrain 33
 
3342 efrain 34
 
3345 efrain 35
<!-- Your share button code -->
36
<div class="fb-share-button"
37
data-href="<?php echo $share_url?>"
38
data-layout="button_count">
39
</div>