Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev Autor Línea Nro. Línea
3393 stevensc 1
<?php
3298 efrain 2
 
4827 stevensc 3
$this->headTitle("$share_title");
4830 stevensc 4
$this->headMeta()->appendName('description', $share_title);
5
$this->headMeta()->appendProperty('og:title', $share_title);
6
$this->headMeta()->appendProperty('og:url', $share_url);
7
$this->headMeta()->appendProperty('og:description', $share_description);
4834 stevensc 8
$this->headMeta()
9
    ->appendProperty('og:image', $share_image)
10
    ->setAttrib('itemprop', 'image')
11
;
4830 stevensc 12
$this->headMeta()->appendProperty('og:image:secure_url', $share_image);
4829 stevensc 13
$this->headMeta()->appendProperty('og:image:width', "300");
14
$this->headMeta()->appendProperty('og:image:height', "300");
4827 stevensc 15
$this->headMeta()->appendProperty('og:type', 'website');
16
$this->headMeta()->appendProperty('og:locale', 'es_ES');
17
$this->headMeta()->appendProperty('og:locale:alternate', 'en_US');
3298 efrain 18
 
4825 stevensc 19
// $this->headMeta()->appendName('og:url', "$share_url");
20
// $this->headMeta()->appendName('og:title', "$share_title");
21
// $this->headMeta()->appendName('og:description', "$share_description");
22
// $this->headMeta()->appendName('og:image', "$share_image");
23
 
3389 efrain 24
//summary_large_image
25
$this->headMeta()->appendName('twitter:card', "summary");
3388 efrain 26
$this->headMeta()->appendName('twitter:title', "$share_title");
27
$this->headMeta()->appendName('twitter:description', "$share_description");
28
$this->headMeta()->appendName('twitter:image', "$share_image");
3449 stevensc 29
$this->headMeta()->appendName('twitter:image:src', "$share_image");
3410 stevensc 30
 
4778 efrain 31
 
3410 stevensc 32
$js = <<<JS
3413 stevensc 33
const backendVars =  {
3414 stevensc 34
    title: `$share_title`,
3416 stevensc 35
    url: `$share_url`,
36
    image: `$share_image`,
37
    description: `$share_description`
3413 stevensc 38
}
3410 stevensc 39
JS;
3452 stevensc 40
 
3410 stevensc 41
$this->inlineScript()->appendScript($js);
3429 stevensc 42
$this->headLink()->appendStylesheet('/react-bundles/public-post/main.css');
3411 stevensc 43
$this->inlineScript()->appendFile('/react-bundles/public-post/publicPostViewBundle.js');
3298 efrain 44
?>
3419 stevensc 45
<div id="public-post">
3391 stevensc 46
</div>