<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Block/search_product.twig */
class __TwigTemplate_1d4c0d91196ed5d2a16e8167f95aae9b6260359edc0c3ddd6534f90cb0040624 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/search_product.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/search_product.twig"));
// line 22
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 23
echo "<div class=\"search_1080\"";
if (((twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 23), "isMeasureInfoRegistered", [], "method", false, false, true, 23) == false) || (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 23), "school", [], "any", false, false, true, 23), "item_visible_type", [], "any", false, false, true, 23) == twig_constant("\\Customize\\Entity\\School::ITEM_VISIBLE_TYPE_MATOME")))) {
echo " style=\"display: none;\"";
}
echo ">
<span class=\"searchbtn\" onclick=\"obj=document.getElementById('open1').style; obj.display=
(obj.display=='none')?'block':'none';\">
<a style=\"cursor:pointer;\"><svg class=\"cb cb-search\"><use xlink:href=\"#cb-search\" /></svg></a>
</span>
<!-- 折り畳まれる部分 -->
<span id=\"open1\" style=\"display: none; clear: both;\">
<div class=\"drawer_block pc\">
<div id=\"search\" class=\"search\">
<form method=\"get\" id=\"searchform\" action=\"";
// line 34
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product_list");
echo "\">
<div class=\"search_inner\">
";
// line 36
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", false, false, true, 36), 36, $this->source), 'widget');
echo "
<div class=\"input_search clearfix\">
";
// line 38
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", false, false, true, 38), 38, $this->source), 'widget', ["attr" => ["placeholder" => "キーワードを入力"]]);
echo "
<button type=\"submit\" class=\"bt_search\"><svg class=\"cb cb-search\"><use xlink:href=\"#cb-search\" /></svg></button>
</div>
</div>
<div class=\"extra-form\">
";
// line 43
$context['_parent'] = $context;
$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", false, false, true, 43));
foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
// line 44
echo " ";
if (preg_match("[^plg*]", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, true, 44), "name", [], "any", false, false, true, 44))) {
// line 45
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 45, $this->source), 'label');
echo "
";
// line 46
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 46, $this->source), 'widget');
echo "
";
// line 47
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 47, $this->source), 'errors');
echo "
";
}
// line 49
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 50
echo " </div>
</form>
</div>
</div>
</span>
</div>";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "Block/search_product.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
http://www.lockon.co.jp/
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#}
{% if is_granted('ROLE_USER') %}
<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 %}>
<span class=\"searchbtn\" onclick=\"obj=document.getElementById('open1').style; obj.display=
(obj.display=='none')?'block':'none';\">
<a style=\"cursor:pointer;\"><svg class=\"cb cb-search\"><use xlink:href=\"#cb-search\" /></svg></a>
</span>
<!-- 折り畳まれる部分 -->
<span id=\"open1\" style=\"display: none; clear: both;\">
<div class=\"drawer_block pc\">
<div id=\"search\" class=\"search\">
<form method=\"get\" id=\"searchform\" action=\"{{ path('product_list') }}\">
<div class=\"search_inner\">
{{ form_widget(form.category_id) }}
<div class=\"input_search clearfix\">
{{ form_widget(form.name, {'attr': { 'placeholder' : \"キーワードを入力\" }} ) }}
<button type=\"submit\" class=\"bt_search\"><svg class=\"cb cb-search\"><use xlink:href=\"#cb-search\" /></svg></button>
</div>
</div>
<div class=\"extra-form\">
{% for f in form.getIterator %}
{% if f.vars.name matches '[^plg*]' %}
{{ form_label(f) }}
{{ form_widget(f) }}
{{ form_errors(f) }}
{% endif %}
{% endfor %}
</div>
</form>
</div>
</div>
</span>
</div>{% endif %}
", "Block/search_product.twig", "/home/nmtokyolad01/tokyoladies-onlinestore.com/public_html/app/template/unishop/Block/search_product.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 22, "for" => 43);
static $filters = array();
static $functions = array("is_granted" => 22, "constant" => 23, "path" => 34, "form_widget" => 36, "form_label" => 45, "form_errors" => 47);
try {
$this->sandbox->checkSecurity(
['if', 'for'],
[],
['is_granted', 'constant', 'path', 'form_widget', 'form_label', 'form_errors']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}