Rev 3391 | Rev 3394 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
<?php
$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");
$js = <<<JS
const backendVars = {
title: '$share_title',
description: '$share_description',
image: '$share_image',
url: '$share_url'
}
JS;
$this->inlineScript()->appendScript($js);
$this->inlineScript()->appendFile('/react-bundles/public-post/publicPostViewBundle.js');
?>
<div id="public_post">
</div>