Rev 4899 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
<?php
if ($share_title) {
$this->headTitle("$share_title");
$this->headMeta()->appendName('description', $share_title);
$this->headMeta()->appendProperty('og:title', $share_title);
} else {
$this->headTitle("$share_description");
$this->headMeta()->appendName('description', $share_description);
$this->headMeta()->appendProperty('og:title', $share_description);
}
$this->headMeta()->appendProperty('og:url', $share_url);
$this->headMeta()->appendProperty('og:description', $share_description);
$this->headMeta()->appendProperty('og:image', $share_image);
$this->headMeta()->setItemprop('image', $share_image);
$this->headMeta()->appendProperty('og:image:secure_url', $share_image);
$this->headMeta()->appendProperty('og:image:width', "300");
$this->headMeta()->appendProperty('og:image:height', "300");
$this->headMeta()->appendProperty('og:type', 'website');
$this->headMeta()->appendProperty('og:locale', 'es_ES');
$this->headMeta()->appendProperty('og:locale:alternate', 'en_US');
// $this->headMeta()->appendName('og:url', "$share_url");
// $this->headMeta()->appendName('og:title', "$share_title");
// $this->headMeta()->appendName('og:description', "$share_description");
// $this->headMeta()->appendName('og:image', "$share_image");
//summary_large_image
$this->headMeta()->appendName('twitter:card', "summary");
$this->headMeta()->appendName('twitter:title', "$share_title");
$this->headMeta()->appendName('twitter:description', "$share_description");
$this->headMeta()->appendName('twitter:image', "$share_image");
$this->headMeta()->appendName('twitter:image:src', "$share_image");
$js = <<<JS
const backendVars = {
title: `$share_title`,
url: `$share_url`,
image: `$share_image`,
description: `$share_description`
}
JS;
$this->inlineScript()->appendScript($js);
$this->headLink()->appendStylesheet('/react-bundles/public-post/main.css');
$this->headLink()->appendStylesheet('/react-bundles/dashboard/linkedin/main.css');
$this->inlineScript()->appendFile('/react-bundles/public-post/publicPostViewBundle.js');
?>
<link itemprop="thumbnailUrl" href="$share_image">
<span itemprop="thumbnail" itemscope itemtype="http://schema.org/ImageObject">
<link itemprop="url" href="$share_image">
</span>
<main id="public-post">
</main>