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