var/cache/dev/twig/4a/4a3a6a6de3f295822fe1e67b5d3e21e6b6048a35e1db1673bdc98129dbf3f2e9.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_1d4c0d91196ed5d2a16e8167f95aae9b6260359edc0c3ddd6534f90cb0040624 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/search_product.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/search_product.twig"));
  35.         // line 22
  36.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  37.             // line 23
  38.             echo "<div class=\"search_1080\"";
  39.             if (((twig_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.'23$this->source); })()), "user", [], "any"falsefalsetrue23), "isMeasureInfoRegistered", [], "method"falsefalsetrue23) == false) || (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.'23$this->source); })()), "user", [], "any"falsefalsetrue23), "school", [], "any"falsefalsetrue23), "item_visible_type", [], "any"falsefalsetrue23) == twig_constant("\\Customize\\Entity\\School::ITEM_VISIBLE_TYPE_MATOME")))) {
  40.                 echo " style=\"display: none;\"";
  41.             }
  42.             echo ">
  43. <span class=\"searchbtn\" onclick=\"obj=document.getElementById('open1').style; obj.display=
  44. (obj.display=='none')?'block':'none';\">
  45. <a style=\"cursor:pointer;\"><svg class=\"cb cb-search\"><use xlink:href=\"#cb-search\" /></svg></a>
  46. </span>
  47. <!-- 折り畳まれる部分 -->
  48. <span id=\"open1\" style=\"display: none; clear: both;\">
  49. <div class=\"drawer_block pc\">
  50.     <div id=\"search\" class=\"search\">
  51.         <form method=\"get\" id=\"searchform\" action=\"";
  52.             // line 34
  53.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product_list");
  54.             echo "\">
  55.             <div class=\"search_inner\">
  56.                 ";
  57.             // line 36
  58.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'36$this->source); })()), "category_id", [], "any"falsefalsetrue36), 36$this->source), 'widget');
  59.             echo "
  60.                 <div class=\"input_search clearfix\">
  61.                     ";
  62.             // line 38
  63.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'38$this->source); })()), "name", [], "any"falsefalsetrue38), 38$this->source), 'widget', ["attr" => ["placeholder" => "キーワードを入力"]]);
  64.             echo "
  65.                     <button type=\"submit\" class=\"bt_search\"><svg class=\"cb cb-search\"><use xlink:href=\"#cb-search\" /></svg></button>
  66.                 </div>
  67.             </div>
  68.             <div class=\"extra-form\">
  69.                 ";
  70.             // line 43
  71.             $context['_parent'] = $context;
  72.             $context['_seq'] = twig_ensure_traversable(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.'43$this->source); })()), "getIterator", [], "any"falsefalsetrue43));
  73.             foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
  74.                 // line 44
  75.                 echo "                    ";
  76.                 if (preg_match("[^plg*]"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue44), "name", [], "any"falsefalsetrue44))) {
  77.                     // line 45
  78.                     echo "                        ";
  79.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 45$this->source), 'label');
  80.                     echo "
  81.                         ";
  82.                     // line 46
  83.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 46$this->source), 'widget');
  84.                     echo "
  85.                         ";
  86.                     // line 47
  87.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 47$this->source), 'errors');
  88.                     echo "
  89.                     ";
  90.                 }
  91.                 // line 49
  92.                 echo "                ";
  93.             }
  94.             $_parent $context['_parent'];
  95.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
  96.             $context array_intersect_key($context$_parent) + $_parent;
  97.             // line 50
  98.             echo "            </div>
  99.         </form>
  100.     </div>
  101. </div>
  102. </span>
  103. </div>";
  104.         }
  105.         
  106.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  107.         
  108.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  109.     }
  110.     public function getTemplateName()
  111.     {
  112.         return "Block/search_product.twig";
  113.     }
  114.     public function isTraitable()
  115.     {
  116.         return false;
  117.     }
  118.     public function getDebugInfo()
  119.     {
  120.         return array (  109 => 50,  103 => 49,  98 => 47,  94 => 46,  89 => 45,  86 => 44,  82 => 43,  74 => 38,  69 => 36,  64 => 34,  47 => 23,  45 => 22,);
  121.     }
  122.     public function getSourceContext()
  123.     {
  124.         return new Source("{#
  125. This file is part of EC-CUBE
  126. Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
  127. http://www.lockon.co.jp/
  128. This program is free software; you can redistribute it and/or
  129. modify it under the terms of the GNU General Public License
  130. as published by the Free Software Foundation; either version 2
  131. of the License, or (at your option) any later version.
  132. This program is distributed in the hope that it will be useful,
  133. but WITHOUT ANY WARRANTY; without even the implied warranty of
  134. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  135. GNU General Public License for more details.
  136. You should have received a copy of the GNU General Public License
  137. along with this program; if not, write to the Free Software
  138. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  139. #}
  140. {% if is_granted('ROLE_USER') %}
  141. <div class=\"search_1080\"{% if app.user.isMeasureInfoRegistered() == false or app.user.school.item_visible_type == constant('\\\\Customize\\\\Entity\\\\School::ITEM_VISIBLE_TYPE_MATOME') %} style=\"display: none;\"{% endif %}>
  142. <span class=\"searchbtn\" onclick=\"obj=document.getElementById('open1').style; obj.display=
  143. (obj.display=='none')?'block':'none';\">
  144. <a style=\"cursor:pointer;\"><svg class=\"cb cb-search\"><use xlink:href=\"#cb-search\" /></svg></a>
  145. </span>
  146. <!-- 折り畳まれる部分 -->
  147. <span id=\"open1\" style=\"display: none; clear: both;\">
  148. <div class=\"drawer_block pc\">
  149.     <div id=\"search\" class=\"search\">
  150.         <form method=\"get\" id=\"searchform\" action=\"{{ path('product_list') }}\">
  151.             <div class=\"search_inner\">
  152.                 {{ form_widget(form.category_id) }}
  153.                 <div class=\"input_search clearfix\">
  154.                     {{ form_widget(form.name, {'attr': { 'placeholder' : \"キーワードを入力\" }} ) }}
  155.                     <button type=\"submit\" class=\"bt_search\"><svg class=\"cb cb-search\"><use xlink:href=\"#cb-search\" /></svg></button>
  156.                 </div>
  157.             </div>
  158.             <div class=\"extra-form\">
  159.                 {% for f in form.getIterator %}
  160.                     {% if f.vars.name matches '[^plg*]' %}
  161.                         {{ form_label(f) }}
  162.                         {{ form_widget(f) }}
  163.                         {{ form_errors(f) }}
  164.                     {% endif %}
  165.                 {% endfor %}
  166.             </div>
  167.         </form>
  168.     </div>
  169. </div>
  170. </span>
  171. </div>{% endif %}
  172. ""Block/search_product.twig""/home/nmtokyolad01/tokyoladies-onlinestore.com/public_html/app/template/unishop/Block/search_product.twig");
  173.     }
  174.     
  175.     public function checkSecurity()
  176.     {
  177.         static $tags = array("if" => 22"for" => 43);
  178.         static $filters = array();
  179.         static $functions = array("is_granted" => 22"constant" => 23"path" => 34"form_widget" => 36"form_label" => 45"form_errors" => 47);
  180.         try {
  181.             $this->sandbox->checkSecurity(
  182.                 ['if''for'],
  183.                 [],
  184.                 ['is_granted''constant''path''form_widget''form_label''form_errors']
  185.             );
  186.         } catch (SecurityError $e) {
  187.             $e->setSourceContext($this->source);
  188.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  189.                 $e->setTemplateLine($tags[$e->getTagName()]);
  190.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  191.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  192.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  193.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  194.             }
  195.             throw $e;
  196.         }
  197.     }
  198. }