var/cache/dev/twig/20/20407ff0a5221610730e06a842de668b.php line 39

  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_a70d36d8ccedf985b61d2db0899c69cb extends 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/ProductReview/create.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 5
  52.     public function block_title($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.     }
  67.     // line 9
  68.     public function block_content($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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\" 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.                 <div class=\"ui dividing header\">
  87.                     ";
  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 "
  91.                     <div class=\"sub header\">
  92.                         ";
  93.         // line 20
  94.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.you_are_reviewing"), "html"nulltrue);
  95.         echo " <strong>";
  96.         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.'20$this->source); })()), "name", [], "any"falsefalsefalse20), "html"nulltrue);
  97.         echo "</strong>.
  98.                     </div>
  99.                 </div>
  100.                 ";
  101.         // line 24
  102.         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.'24$this->source); })())]);
  103.         echo "
  104.                 ";
  105.         // line 26
  106.         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.'26$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.'26$this->source); })()), "slug", [], "any"falsefalsefalse26), "_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.'26$this->source); })()), "translation", [], "any"falsefalsefalse26), "locale", [], "any"falsefalsefalse26)]), "attr" => ["class" => "ui loadable reply form""novalidate" => "novalidate"]]);
  107.         echo "
  108.                     ";
  109.         // line 27
  110.         $this->loadTemplate("@SyliusShop/ProductReview/_form.html.twig""@SyliusShop/ProductReview/create.html.twig"27)->display($context);
  111.         // line 28
  112.         echo "
  113.                     ";
  114.         // line 29
  115.         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.'29$this->source); })()), "form" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'29$this->source); })())]);
  116.         echo "
  117.                     ";
  118.         // line 31
  119.         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.'31$this->source); })()), "_token", [], "any"falsefalsefalse31), 'row');
  120.         echo "
  121.                     <button type=\"submit\" class=\"ui blue labeled large icon submit button\" ";
  122.         // line 32
  123.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("add");
  124.         echo ">
  125.                         <i class=\"icon check\"></i> ";
  126.         // line 33
  127.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.add"), "html"nulltrue);
  128.         echo "
  129.                     </button>
  130.                 ";
  131.         // line 35
  132.         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.'35$this->source); })()), 'form_end', ["render_rest" => false]);
  133.         echo "
  134.             </div>
  135.         </div>
  136.     </div>
  137. ";
  138.         
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  140.         
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  142.     }
  143.     public function getTemplateName()
  144.     {
  145.         return "@SyliusShop/ProductReview/create.html.twig";
  146.     }
  147.     public function isTraitable()
  148.     {
  149.         return false;
  150.     }
  151.     public function getDebugInfo()
  152.     {
  153.         return array (  154 => 35,  149 => 33,  145 => 32,  141 => 31,  136 => 29,  133 => 28,  131 => 27,  127 => 26,  122 => 24,  113 => 20,  108 => 18,  100 => 13,  95 => 10,  85 => 9,  64 => 5,  53 => 1,  51 => 7,  49 => 3,  36 => 1,);
  154.     }
  155.     public function getSourceContext()
  156.     {
  157.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  158. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  159. {% block title %}{{ 'sylius.ui.write_your_own_review'|trans }} | {{ parent() }}{% endblock %}
  160. {% set product = product_review.reviewSubject %}
  161. {% block content %}
  162.     <div class=\"ui hidden divider\"></div>
  163.     <div class=\"ui stackable grid\" id=\"reviews\">
  164.         <div class=\"four wide column\">
  165.             {{ sylius_template_event('sylius.shop.product_review.create.product_box', _context) }}
  166.         </div>
  167.         <div class=\"twelve wide column\">
  168.             <div class=\"ui segment\">
  169.                 <div class=\"ui dividing header\">
  170.                     {{ 'sylius.ui.write_your_own_review'|trans }}
  171.                     <div class=\"sub header\">
  172.                         {{ 'sylius.ui.you_are_reviewing'|trans }} <strong>{{ product.name }}</strong>.
  173.                     </div>
  174.                 </div>
  175.                 {{ sylius_template_event('sylius.shop.product_review.create.before_form', {'product_review': product_review}) }}
  176.                 {{ 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'}}) }}
  177.                     {% include '@SyliusShop/ProductReview/_form.html.twig' %}
  178.                     {{ sylius_template_event('sylius.shop.product_review.create.form', {'product_review': product_review, 'form': form}) }}
  179.                     {{ form_row(form._token) }}
  180.                     <button type=\"submit\" class=\"ui blue labeled large icon submit button\" {{ sylius_test_html_attribute('add') }}>
  181.                         <i class=\"icon check\"></i> {{ 'sylius.ui.add'|trans }}
  182.                     </button>
  183.                 {{ form_end(form, {'render_rest': false}) }}
  184.             </div>
  185.         </div>
  186.     </div>
  187. {% endblock %}
  188. ""@SyliusShop/ProductReview/create.html.twig""/var/www/html/kindaka/vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Resources/views/ProductReview/create.html.twig");
  189.     }
  190. }