<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* areas/wysiwyg/view.html.twig */
class __TwigTemplate_dbd40b1bb2e782e3547891edc70337fb extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/wysiwyg/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/wysiwyg/view.html.twig"));
// line 1
$context["content"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "content");
// line 2
echo "
";
// line 4
if (twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 4, $this->source); })()), "getDescription", [], "method", false, false, false, 4))) {
// line 5
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []), "setDescription", [0 => twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 5, $this->source); })()), "getData", [], "method", false, false, false, 5), 1 => 160], "method", false, false, false, 5);
}
// line 7
echo "
<section class=\"area-wysiwyg\">
";
// line 9
$this->env->getExtension('Pimcore\Twig\Extension\GlossaryExtension')->start();
// line 10
echo " ";
echo (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 10, $this->source); })());
echo "
";
$this->env->getExtension('Pimcore\Twig\Extension\GlossaryExtension')->stop();
// line 12
echo "</section>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "areas/wysiwyg/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 67 => 12, 60 => 10, 58 => 9, 54 => 7, 50 => 5, 48 => 4, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set content = pimcore_wysiwyg('content') %}
{# add autogenerated meta description #}
{% if document.getDescription() is empty %}
{% do pimcore_head_meta().setDescription(content.getData(), 160) %}
{% endif %}
<section class=\"area-wysiwyg\">
{% pimcoreglossary %}
{{ content|raw }}
{% endpimcoreglossary %}
</section>
", "areas/wysiwyg/view.html.twig", "/var/www/html/siteone/templates/areas/wysiwyg/view.html.twig");
}
}