3393 |
stevensc |
1 |
<?php
|
3298 |
efrain |
2 |
|
4896 |
stevensc |
3 |
if ($share_title) {
|
4841 |
stevensc |
4 |
$this->headTitle("$share_title");
|
|
|
5 |
$this->headMeta()->appendName('description', $share_title);
|
|
|
6 |
$this->headMeta()->appendProperty('og:title', $share_title);
|
|
|
7 |
} else {
|
|
|
8 |
$this->headTitle("$share_description");
|
|
|
9 |
$this->headMeta()->appendName('description', $share_description);
|
|
|
10 |
$this->headMeta()->appendProperty('og:title', $share_description);
|
|
|
11 |
}
|
|
|
12 |
|
4830 |
stevensc |
13 |
$this->headMeta()->appendProperty('og:url', $share_url);
|
|
|
14 |
$this->headMeta()->appendProperty('og:description', $share_description);
|
4840 |
stevensc |
15 |
$this->headMeta()->appendProperty('og:image', $share_image);
|
|
|
16 |
$this->headMeta()->setItemprop('image', $share_image);
|
4830 |
stevensc |
17 |
$this->headMeta()->appendProperty('og:image:secure_url', $share_image);
|
4829 |
stevensc |
18 |
$this->headMeta()->appendProperty('og:image:width', "300");
|
|
|
19 |
$this->headMeta()->appendProperty('og:image:height', "300");
|
4827 |
stevensc |
20 |
$this->headMeta()->appendProperty('og:type', 'website');
|
|
|
21 |
$this->headMeta()->appendProperty('og:locale', 'es_ES');
|
|
|
22 |
$this->headMeta()->appendProperty('og:locale:alternate', 'en_US');
|
3298 |
efrain |
23 |
|
4825 |
stevensc |
24 |
// $this->headMeta()->appendName('og:url', "$share_url");
|
|
|
25 |
// $this->headMeta()->appendName('og:title', "$share_title");
|
|
|
26 |
// $this->headMeta()->appendName('og:description', "$share_description");
|
|
|
27 |
// $this->headMeta()->appendName('og:image', "$share_image");
|
|
|
28 |
|
3389 |
efrain |
29 |
//summary_large_image
|
|
|
30 |
$this->headMeta()->appendName('twitter:card', "summary");
|
3388 |
efrain |
31 |
$this->headMeta()->appendName('twitter:title', "$share_title");
|
|
|
32 |
$this->headMeta()->appendName('twitter:description', "$share_description");
|
|
|
33 |
$this->headMeta()->appendName('twitter:image', "$share_image");
|
3449 |
stevensc |
34 |
$this->headMeta()->appendName('twitter:image:src', "$share_image");
|
3410 |
stevensc |
35 |
|
4778 |
efrain |
36 |
|
3410 |
stevensc |
37 |
$js = <<<JS
|
3413 |
stevensc |
38 |
const backendVars = {
|
3414 |
stevensc |
39 |
title: `$share_title`,
|
3416 |
stevensc |
40 |
url: `$share_url`,
|
|
|
41 |
image: `$share_image`,
|
|
|
42 |
description: `$share_description`
|
3413 |
stevensc |
43 |
}
|
3410 |
stevensc |
44 |
JS;
|
3452 |
stevensc |
45 |
|
3410 |
stevensc |
46 |
$this->inlineScript()->appendScript($js);
|
3429 |
stevensc |
47 |
$this->headLink()->appendStylesheet('/react-bundles/public-post/main.css');
|
5363 |
stevensc |
48 |
$this->headLink()->appendStylesheet('/react-bundles/dashboard/linkedin/main.css');
|
3411 |
stevensc |
49 |
$this->inlineScript()->appendFile('/react-bundles/public-post/publicPostViewBundle.js');
|
3298 |
efrain |
50 |
?>
|
4839 |
stevensc |
51 |
|
|
|
52 |
<link itemprop="thumbnailUrl" href="$share_image">
|
|
|
53 |
|
|
|
54 |
<span itemprop="thumbnail" itemscope itemtype="http://schema.org/ImageObject">
|
4896 |
stevensc |
55 |
<link itemprop="url" href="$share_image">
|
4839 |
stevensc |
56 |
</span>
|
|
|
57 |
|
4899 |
stevensc |
58 |
<main id="public-post">
|
4896 |
stevensc |
59 |
</main>
|