Rev 3421 | Rev 3429 | 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`,
url: `$share_url`,
image: `$share_image`,
description: `$share_description`
}
JS;
$this->inlineScript()->appendScript($js);
$this->headLink()->appendStylesheet('/css/bootstrap.min.css');
$this->inlineScript()->appendFile('/react-bundles/public-post/publicPostViewBundle.js');
?>
<div id="public-post">
</div>