var/cache/dev/twig/23/23588815ae698b3b88cda37a3015b8101aea82374b63be24a79e891ed0de7a0b.php line 16

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. /* Block/search_product.twig */
  14. class __TwigTemplate_25da3e2fc00ba36267b3ca2a9235c7354799a07c412e7d560a934e1e26ce2ee0 extends \Eccube\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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/search_product.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/search_product.twig"));
  33.         // line 11
  34.         $context["EnUser"] = (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'11$this->source); })()), "request", [], "any"falsefalsefalse11), "cookies", [], "any"falsefalsefalse11), "get", [=> "en_user"], "method"falsefalsefalse11) == "Y");
  35.         // line 12
  36.         echo "
  37. ";
  38.         // line 13
  39.         if (((isset($context["EnUser"]) || array_key_exists("EnUser"$context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.'13$this->source); })()) == false)) {
  40.             // line 14
  41.             echo "    ";
  42.             $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.'14$this->source); })()), [=> "Form/form_div_layout.twig"], true);
  43.             // line 15
  44.             echo "
  45.     <div class=\"ec-header-search\">
  46.         <form method=\"get\" class=\"searchform\" action=\"";
  47.             // line 17
  48.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product_list");
  49.             echo "\">
  50.             ";
  51.             // line 23
  52.             echo "            <div class=\"ec-header-search__keyword\">
  53.                 <div class=\"ec-input\">
  54.                     ";
  55.             // line 25
  56.             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.'25$this->source); })()), "name", [], "any"falsefalsefalse25), 'widget', ["id" => null"attr" => ["class" => "search-name""placeholder" => "common.search_keyword"]]);
  57.             echo "
  58.                     <button class=\"ec-header-search__keyword-btn\" type=\"submit\">
  59.                         <div class=\"ec-icon\">
  60.                             <img src=\"";
  61.             // line 28
  62.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/search-dark.svg"), "html"nulltrue);
  63.             echo "\" alt=\"\">
  64.                         </div>
  65.                     </button>
  66.                 </div>
  67.             </div>
  68.         </form>
  69.     </div>
  70. ";
  71.         }
  72.         
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  74.         
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  76.     }
  77.     public function getTemplateName()
  78.     {
  79.         return "Block/search_product.twig";
  80.     }
  81.     public function isTraitable()
  82.     {
  83.         return false;
  84.     }
  85.     public function getDebugInfo()
  86.     {
  87.         return array (  71 => 28,  65 => 25,  61 => 23,  57 => 17,  53 => 15,  50 => 14,  48 => 13,  45 => 12,  43 => 11,);
  88.     }
  89.     public function getSourceContext()
  90.     {
  91.         return new Source("{#
  92. This file is part of EC-CUBE
  93. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  94. http://www.ec-cube.co.jp/
  95. For the full copyright and license information, please view the LICENSE
  96. file that was distributed with this source code.
  97. #}
  98. {% set EnUser = app.request.cookies.get('en_user') == 'Y' %}
  99. {% if EnUser == false %}
  100.     {% form_theme form 'Form/form_div_layout.twig' %}
  101.     <div class=\"ec-header-search\">
  102.         <form method=\"get\" class=\"searchform\" action=\"{{ path('product_list') }}\">
  103.             {# <div class=\"ec-header-search__category\" style=\"display:none;\">
  104.                 <div class=\"ec-select ec-select_search\">
  105.                     {{ form_widget(form.category_id, {'id': null, 'attr': {'class': 'category_id'}}) }}
  106.                 </div>
  107.             </div> #}
  108.             <div class=\"ec-header-search__keyword\">
  109.                 <div class=\"ec-input\">
  110.                     {{ form_widget(form.name, {'id': null, 'attr': {'class': 'search-name', 'placeholder' : 'common.search_keyword' }} ) }}
  111.                     <button class=\"ec-header-search__keyword-btn\" type=\"submit\">
  112.                         <div class=\"ec-icon\">
  113.                             <img src=\"{{ asset('assets/icon/search-dark.svg') }}\" alt=\"\">
  114.                         </div>
  115.                     </button>
  116.                 </div>
  117.             </div>
  118.         </form>
  119.     </div>
  120. {% endif %}
  121. ""Block/search_product.twig""/home/testsv202508/test-darcys-factory.xyz/public_html/app/template/default/Block/search_product.twig");
  122.     }
  123. }