Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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