Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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