var/cache/dev/twig/cb/cb08ba85c830c365221361b47ebadd8c34238a1818387072d99d06e14df0bd08.php line 54

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. /* @SyliusShop/ProductReview/create.html.twig */
  14. class __TwigTemplate_c7bdb1a017f3088e59948c92dea8d83112f357e8df926ac55c774ed3af946c60 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.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "@SyliusShop/layout.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/ProductReview/create.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/ProductReview/create.html.twig"));
  39.         // line 3
  40.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'3$this->source); })()), [=> "@SyliusShop/Form/theme.html.twig"], true);
  41.         // line 7
  42.         $context["product"] = twig_get_attribute($this->env$this->source, (isset($context["product_review"]) || array_key_exists("product_review"$context) ? $context["product_review"] : (function () { throw new RuntimeError('Variable "product_review" does not exist.'7$this->source); })()), "reviewSubject", [], "any"falsefalsefalse7);
  43.         // line 1
  44.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/ProductReview/create.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  48.         
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  50.     }
  51.     // line 5
  52.     public function block_title($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.write_your_own_review"), "html"nulltrue);
  60.         echo " | ";
  61.         $this->displayParentBlock("title"$context$blocks);
  62.         
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  64.         
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  66.     }
  67.     // line 9
  68.     public function block_content($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  75.         // line 10
  76.         echo "    <div class=\"ui hidden divider\"></div>
  77.     <div class=\"ui stackable grid reviews\" id=\"reviews\">
  78.         <div class=\"four wide column\">
  79.             ";
  80.         // line 13
  81.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product_review.create.product_box"$context);
  82.         echo "
  83.         </div>
  84.         <div class=\"twelve wide column\">
  85.             <div class=\"ui segment\">
  86.                 <h1 class=\"page__title\">
  87.                     <span class=\"page__tagline\">  ";
  88.         // line 18
  89.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.write_your_own_review"), "html"nulltrue);
  90.         echo "</span>
  91.                     ";
  92.         // line 19
  93.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.you_are_reviewing"), "html"nulltrue);
  94.         echo " <strong>";
  95.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'19$this->source); })()), "name", [], "any"falsefalsefalse19), "html"nulltrue);
  96.         echo "</strong>.
  97.                 </h1>
  98.                 ";
  99.         // line 22
  100.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product_review.create.before_form", ["product_review" => (isset($context["product_review"]) || array_key_exists("product_review"$context) ? $context["product_review"] : (function () { throw new RuntimeError('Variable "product_review" does not exist.'22$this->source); })())]);
  101.         echo "
  102.                 ";
  103.         // line 24
  104.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'24$this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_review_create", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'24$this->source); })()), "slug", [], "any"falsefalsefalse24), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'24$this->source); })()), "translation", [], "any"falsefalsefalse24), "locale", [], "any"falsefalsefalse24)]), "attr" => ["class" => "ui loadable reply form""novalidate" => "novalidate"]]);
  105.         echo "
  106.                     ";
  107.         // line 25
  108.         $this->loadTemplate("@SyliusShop/ProductReview/_form.html.twig""@SyliusShop/ProductReview/create.html.twig"25)->display($context);
  109.         // line 26
  110.         echo "
  111.                     ";
  112.         // line 27
  113.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product_review.create.form", ["product_review" => (isset($context["product_review"]) || array_key_exists("product_review"$context) ? $context["product_review"] : (function () { throw new RuntimeError('Variable "product_review" does not exist.'27$this->source); })()), "form" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'27$this->source); })())]);
  114.         echo "
  115.                     ";
  116.         // line 29
  117.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'29$this->source); })()), "_token", [], "any"falsefalsefalse29), 'row');
  118.         echo "
  119.                     <button type=\"submit\" class=\"button button--primary\" ";
  120.         // line 30
  121.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("add");
  122.         echo ">
  123.                         <i class=\"fas fa-paper-plane\"></i>";
  124.         // line 31
  125.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.add"), "html"nulltrue);
  126.         echo "
  127.                     </button>
  128.                 ";
  129.         // line 33
  130.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'33$this->source); })()), 'form_end', ["render_rest" => false]);
  131.         echo "
  132.             </div>
  133.         </div>
  134.     </div>
  135. ";
  136.         
  137.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  138.         
  139.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  140.     }
  141.     public function getTemplateName()
  142.     {
  143.         return "@SyliusShop/ProductReview/create.html.twig";
  144.     }
  145.     public function isTraitable()
  146.     {
  147.         return false;
  148.     }
  149.     public function getDebugInfo()
  150.     {
  151.         return array (  152 => 33,  147 => 31,  143 => 30,  139 => 29,  134 => 27,  131 => 26,  129 => 25,  125 => 24,  120 => 22,  112 => 19,  108 => 18,  100 => 13,  95 => 10,  85 => 9,  64 => 5,  53 => 1,  51 => 7,  49 => 3,  36 => 1,);
  152.     }
  153.     public function getSourceContext()
  154.     {
  155.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  156. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  157. {% block title %}{{ 'sylius.ui.write_your_own_review'|trans }} | {{ parent() }}{% endblock %}
  158. {% set product = product_review.reviewSubject %}
  159. {% block content %}
  160.     <div class=\"ui hidden divider\"></div>
  161.     <div class=\"ui stackable grid reviews\" id=\"reviews\">
  162.         <div class=\"four wide column\">
  163.             {{ sylius_template_event('sylius.shop.product_review.create.product_box', _context) }}
  164.         </div>
  165.         <div class=\"twelve wide column\">
  166.             <div class=\"ui segment\">
  167.                 <h1 class=\"page__title\">
  168.                     <span class=\"page__tagline\">  {{ 'sylius.ui.write_your_own_review'|trans }}</span>
  169.                     {{ 'sylius.ui.you_are_reviewing'|trans }} <strong>{{ product.name }}</strong>.
  170.                 </h1>
  171.                 {{ sylius_template_event('sylius.shop.product_review.create.before_form', {'product_review': product_review}) }}
  172.                 {{ form_start(form, {'action': path('sylius_shop_product_review_create', {'slug': product.slug, '_locale': product.translation.locale}), 'attr': {'class': 'ui loadable reply form', 'novalidate': 'novalidate'}}) }}
  173.                     {% include '@SyliusShop/ProductReview/_form.html.twig' %}
  174.                     {{ sylius_template_event('sylius.shop.product_review.create.form', {'product_review': product_review, 'form': form}) }}
  175.                     {{ form_row(form._token) }}
  176.                     <button type=\"submit\" class=\"button button--primary\" {{ sylius_test_html_attribute('add') }}>
  177.                         <i class=\"fas fa-paper-plane\"></i>{{ 'sylius.ui.add'|trans }}
  178.                     </button>
  179.                 {{ form_end(form, {'render_rest': false}) }}
  180.             </div>
  181.         </div>
  182.     </div>
  183. {% endblock %}
  184. ""@SyliusShop/ProductReview/create.html.twig""/home/mons/site/www/templates/bundles/SyliusShopBundle/ProductReview/create.html.twig");
  185.     }
  186. }