var/cache/dev/twig/d3/d3b292570b83d3b7d00983c160fe014d309253fa40d4866e19923c8c9a13444c.php line 51

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @MonsieurBizSyliusCmsPagePlugin/Shop/Page/show.html.twig */
  14. class __TwigTemplate_51650f8dbf7a39df9f04285b76d72300b72e8fd95d1dae2a4af389372ac5fa6c extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'metatags' => [$this'block_metatags'],
  25.             'content' => [$this'block_content'],
  26.             'breadcrumb' => [$this'block_breadcrumb'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "@SyliusShop/layout.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MonsieurBizSyliusCmsPagePlugin/Shop/Page/show.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MonsieurBizSyliusCmsPagePlugin/Shop/Page/show.html.twig"));
  41.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@MonsieurBizSyliusCmsPagePlugin/Shop/Page/show.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 3
  49.     public function block_title($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'3$this->source); })()), "metaTitle", [], "any"falsefalsefalse3), "html"nulltrue);
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.     }
  62.     // line 5
  63.     public function block_metatags($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  70.         // line 6
  71.         echo "    ";
  72.         $this->displayParentBlock("metatags"$context$blocks);
  73.         echo "
  74.     <meta property=\"og:type\" content=\"page\" />
  75.     ";
  76.         // line 8
  77.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'8$this->source); })()), "metaTitle", [], "any"falsefalsefalse8))) {
  78.             // line 9
  79.             echo "        <meta property=\"og:title\" content=\"";
  80.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'9$this->source); })()), "metaTitle", [], "any"falsefalsefalse9), "html"nulltrue);
  81.             echo "\"/>
  82.     ";
  83.         }
  84.         // line 11
  85.         echo "    ";
  86.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'11$this->source); })()), "metaDescription", [], "any"falsefalsefalse11))) {
  87.             // line 12
  88.             echo "        <meta name=\"description\" property=\"og:description\" content=\"";
  89.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'12$this->source); })()), "metaDescription", [], "any"falsefalsefalse12), "html"nulltrue);
  90.             echo "\"/>
  91.     ";
  92.         }
  93.         // line 14
  94.         echo "    ";
  95.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'14$this->source); })()), "metaKeywords", [], "any"falsefalsefalse14))) {
  96.             // line 15
  97.             echo "        <meta name=\"keywords\" content=\"";
  98.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'15$this->source); })()), "metaKeywords", [], "any"falsefalsefalse15), "html"nulltrue);
  99.             echo "\"/>
  100.     ";
  101.         }
  102.         
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  104.         
  105.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  106.     }
  107.     // line 19
  108.     public function block_content($context, array $blocks = [])
  109.     {
  110.         $macros $this->macros;
  111.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  112.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  114.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  115.         // line 20
  116.         echo "    ";
  117.         $this->displayBlock('breadcrumb'$context$blocks);
  118.         // line 23
  119.         echo "
  120.     <div class=\"blockList\">
  121.         <h1 class=\"ui monster dividing header\">";
  122.         // line 25
  123.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'25$this->source); })()), "title", [], "any"falsefalsefalse25), "html"nulltrue);
  124.         echo "</h1>
  125.         <div>
  126.             ";
  127.         // line 27
  128.         echo $this->extensions['MonsieurBiz\SyliusRichEditorPlugin\Twig\RichEditorExtension']->renderField($contexttwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'27$this->source); })()), "content", [], "any"falsefalsefalse27));
  129.         echo "
  130.         </div>
  131.     </div>
  132. ";
  133.         
  134.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  135.         
  136.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  137.     }
  138.     // line 20
  139.     public function block_breadcrumb($context, array $blocks = [])
  140.     {
  141.         $macros $this->macros;
  142.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  143.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  144.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  145.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  146.         // line 21
  147.         echo "        ";
  148.         $this->loadTemplate("/bundles/MonsieurBizSyliusCmsPagePlugin/Shop/Page/_breadcrumb.html.twig""@MonsieurBizSyliusCmsPagePlugin/Shop/Page/show.html.twig"21)->display($context);
  149.         // line 22
  150.         echo "    ";
  151.         
  152.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  153.         
  154.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  155.     }
  156.     public function getTemplateName()
  157.     {
  158.         return "@MonsieurBizSyliusCmsPagePlugin/Shop/Page/show.html.twig";
  159.     }
  160.     public function isTraitable()
  161.     {
  162.         return false;
  163.     }
  164.     public function getDebugInfo()
  165.     {
  166.         return array (  179 => 22,  176 => 21,  166 => 20,  152 => 27,  147 => 25,  143 => 23,  140 => 20,  130 => 19,  116 => 15,  113 => 14,  107 => 12,  104 => 11,  98 => 9,  96 => 8,  90 => 6,  80 => 5,  61 => 3,  38 => 1,);
  167.     }
  168.     public function getSourceContext()
  169.     {
  170.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  171. {% block title %}{{ page.metaTitle }}{% endblock %}
  172. {% block metatags %}
  173.     {{ parent() }}
  174.     <meta property=\"og:type\" content=\"page\" />
  175.     {% if page.metaTitle is not empty %}
  176.         <meta property=\"og:title\" content=\"{{ page.metaTitle }}\"/>
  177.     {% endif %}
  178.     {% if page.metaDescription is not empty %}
  179.         <meta name=\"description\" property=\"og:description\" content=\"{{ page.metaDescription }}\"/>
  180.     {% endif %}
  181.     {% if page.metaKeywords is not empty %}
  182.         <meta name=\"keywords\" content=\"{{ page.metaKeywords }}\"/>
  183.     {% endif %}
  184. {% endblock %}
  185. {% block content %}
  186.     {% block breadcrumb %}
  187.         {% include '/bundles/MonsieurBizSyliusCmsPagePlugin/Shop/Page/_breadcrumb.html.twig' %}
  188.     {% endblock %}
  189.     <div class=\"blockList\">
  190.         <h1 class=\"ui monster dividing header\">{{ page.title }}</h1>
  191.         <div>
  192.             {{ page.content|monsieurbiz_richeditor_render_field }}
  193.         </div>
  194.     </div>
  195. {% endblock %}
  196. ""@MonsieurBizSyliusCmsPagePlugin/Shop/Page/show.html.twig""/var/www/html/templates/bundles/MonsieurBizSyliusCmsPagePlugin/Shop/Page/show.html.twig");
  197.     }
  198. }