<?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;
/* __string_template__1bcf926165da21a48fbf83479eb452e8 */
class __TwigTemplate_fa0ac6364caa6a5fc5a04ac174689f7b extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "__string_template__1bcf926165da21a48fbf83479eb452e8"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "__string_template__1bcf926165da21a48fbf83479eb452e8"));
// line 13
$context["body_class"] = "product_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "__string_template__1bcf926165da21a48fbf83479eb452e8", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 15
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 16
echo "<script>
// 並び順を変更
function fnChangeOrderBy(orderby) {
eccube.setValue('orderby', orderby);
eccube.setValue('pageno', 1);
eccube.submitForm();
}
// 表示件数を変更
function fnChangeDispNumber(dispNumber) {
eccube.setValue('disp_number', dispNumber);
eccube.setValue('pageno', 1);
eccube.submitForm();
}
// 商品表示BOXの高さを揃える
\$(window).load(function() {
\$('.product_item').matchHeight();
});
// 表示件数を非表示にする
\$('#result_info_box__disp_menu').hide();
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 40
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 41
echo "
<!-- ▼ 検索窓 for SP -->
<div id=\"search\" class=\"search my-search\">
</div>
<!-- ▲ 検索窓 for SP -->
";
// line 48
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 48, $this->source); })()), "category_id", [], "any", false, false, false, 48), "vars", [], "any", false, false, false, 48), "errors", [], "any", false, false, false, 48)) == 0)) {
// line 49
echo " <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 50
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 50, $this->source); })()))) {
// line 51
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 51, $this->source); })()), "path", [], "any", false, false, false, 51));
foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
// line 52
echo " <input type=\"hidden\" name=\"category_id\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, false, 52), "html", null, true);
echo "\">
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 54
echo " ";
}
// line 55
echo " <input type=\"hidden\" id=\"mode\" name=\"mode\" />
<input type=\"hidden\" id=\"name\" name=\"name\" maxlength=\"50\" />
<input type=\"hidden\" id=\"pageno\" name=\"pageno\" value=\"1\" />
<input type=\"hidden\" value=\"100\" id=\"disp_number\" name=\"disp_number\" />
<input type=\"hidden\" value=\"1\" id=\"orderby\" name=\"orderby\" />
";
// line 62
echo " </form>
<!-- ▼topicpath▼ -->
<div id=\"topicpath\" class=\"row\">
<ol id=\"list_header_menu\">
<li><a href=\"";
// line 66
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "\">全商品</a></li>
";
// line 67
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 67, $this->source); })()))) {
// line 68
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 68, $this->source); })()), "path", [], "any", false, false, false, 68));
foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
// line 69
echo " <li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, false, 69), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, false, 69), "html", null, true);
echo "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 71
echo " ";
}
// line 72
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 72, $this->source); })()), "vars", [], "any", false, false, false, 72), "value", [], "any", false, false, false, 72), "name", [], "any", false, false, false, 72)) {
// line 73
echo " <li>「";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 73, $this->source); })()), "vars", [], "any", false, false, false, 73), "value", [], "any", false, false, false, 73), "name", [], "any", false, false, false, 73), "html", null, true);
echo "」の検索結果</li>
";
}
// line 75
echo " </ol>
</div>
<!-- ▲topicpath▲ -->
<div id=\"result_info_box\" class=\"row\">
<form name=\"page_navi_top\" id=\"page_navi_top\" action=\"?\">
";
// line 80
if ((twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 80, $this->source); })()), "totalItemCount", [], "any", false, false, false, 80) > 0)) {
// line 81
echo " <p id=\"result_info_box__item_count\" class=\"intro col-sm-6\"><strong><span id=\"productscount\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 81, $this->source); })()), "totalItemCount", [], "any", false, false, false, 81), "html", null, true);
echo "</span>件</strong>の商品がみつかりました。
</p>
<div id=\"result_info_box__menu_box\" class=\"col-sm-6 no-padding\">
<ul id=\"result_info_box__menu\" class=\"pagenumberarea clearfix\">
<li id=\"result_info_box__disp_menu\">
";
// line 87
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 87, $this->source); })()), "disp_number", [], "any", false, false, false, 87), 'widget', ["id" => "", "attr" => ["onchange" => "javascript:fnChangeDispNumber(this.value);"]]);
echo "
</li>
<li id=\"result_info_box__order_menu\">
";
// line 90
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 90, $this->source); })()), "orderby", [], "any", false, false, false, 90), 'widget', ["id" => "", "attr" => ["onchange" => "javascript:fnChangeOrderBy(this.value);", "class" => "form-control"]]);
echo "
</li>
</ul>
</div>
";
// line 95
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 95, $this->source); })()), "disp_number", [], "any", false, false, false, 95), "getIterator", [], "any", false, false, false, 95));
foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
// line 96
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, false, 96), "name", [], "any", false, false, false, 96))) {
// line 97
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'label');
echo "
";
// line 98
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'widget');
echo "
";
// line 99
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'errors');
echo "
";
}
// line 101
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 102
echo "
";
// line 103
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 103, $this->source); })()), "orderby", [], "any", false, false, false, 103), "getIterator", [], "any", false, false, false, 103));
foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
// line 104
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, false, 104), "name", [], "any", false, false, false, 104))) {
// line 105
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'label');
echo "
";
// line 106
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'widget');
echo "
";
// line 107
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'errors');
echo "
";
}
// line 109
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 110
echo " ";
} else {
// line 111
echo " <p id=\"result_info_box__item_count\" class=\"intro col-sm-6\"><strong style=\"display: none;\"><span id=\"productscount\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 111, $this->source); })()), "totalItemCount", [], "any", false, false, false, 111), "html", null, true);
echo "</span>件</strong>お探しの商品は見つかりませんでした。</p>
";
}
// line 113
echo " </form>
</div>
<!-- ▼item_list▼ -->
<div id=\"item_list\">
<div class=\"row no-padding\">
";
// line 119
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 119, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 120
echo " <div id=\"result_list_box--";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 120), "html", null, true);
echo "\" class=\"col-lg-2 col-md-3 col-sm-4\">
<div id=\"result_list__item--";
// line 121
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 121), "html", null, true);
echo "\" class=\"product_item\">
<a href=\"";
// line 122
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 122)]), "html", null, true);
echo "\">
<div id=\"result_list__image--";
// line 123
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 123), "html", null, true);
echo "\" class=\"item_photo\">
<img src=\"";
// line 124
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env, $this->source, $context["Product"], "main_list_image", [], "any", false, false, false, 124)), "save_image"), "html", null, true);
echo "\">
";
// line 125
if ( !twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 125)) {
// line 126
echo " <span class=\"soldout text-danger\" style=\"line-height:1; letter-spacing: 0px;\">SOLD OUT</span>
";
}
// line 128
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductTag", [], "any", false, false, false, 128))) {
// line 129
echo " <!--▼商品タグ-->
<div class=\"list_tag_box product_tag\">
";
// line 131
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductTag", [], "any", false, false, false, 131));
foreach ($context['_seq'] as $context["_key"] => $context["ProductTag"]) {
// line 132
echo " <span class=\"product_tag_list list_tag_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductTag"], "Tag", [], "any", false, false, false, 132), "id", [], "any", false, false, false, 132), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ProductTag"], "Tag", [], "any", false, false, false, 132), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductTag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 134
echo " </div>
<!--▲商品タグ-->
";
}
// line 137
echo " </div>
<dl id=\"result_list__detail--";
// line 138
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 138), "html", null, true);
echo "\" class=\"item_detail\">
<dt id=\"result_list__name--";
// line 139
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 139), "html", null, true);
echo "\" class=\"item_name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 139), "html", null, true);
echo "</dt>
";
// line 141
if (twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 141)) {
// line 142
echo " <dd id=\"result_list__description_list--";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 142), "html", null, true);
echo "\" class=\"item_comment\">";
echo twig_nl2br(twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 142));
echo "</dd>
";
}
// line 144
echo "
";
// line 145
$context["flag"] = false;
// line 146
echo "
";
// line 147
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 147))) {
// line 148
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 148));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 149
echo " ";
if (((((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "Category", [], "any", false, false, false, 149), "id", [], "any", false, false, false, 149) == 148) || (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "Category", [], "any", false, false, false, 149), "id", [], "any", false, false, false, 149) == 133)) || (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "Category", [], "any", false, false, false, 149), "id", [], "any", false, false, false, 149) == 144)) || (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "Category", [], "any", false, false, false, 149), "id", [], "any", false, false, false, 149) == 116))) {
// line 150
echo " ";
$context["flag"] = true;
// line 151
echo " ";
}
// line 152
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 153
echo " ";
}
// line 154
echo "
";
// line 155
if ((((isset($context["flag"]) || array_key_exists("flag", $context) ? $context["flag"] : (function () { throw new RuntimeError('Variable "flag" does not exist.', 155, $this->source); })()) != true) && (isset($context["discount_flag"]) || array_key_exists("discount_flag", $context) ? $context["discount_flag"] : (function () { throw new RuntimeError('Variable "discount_flag" does not exist.', 155, $this->source); })()))) {
// line 156
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 157
echo " <span style=\"color:red;\">[";
echo twig_escape_filter($this->env, (isset($context["discount_ratio"]) || array_key_exists("discount_ratio", $context) ? $context["discount_ratio"] : (function () { throw new RuntimeError('Variable "discount_ratio" does not exist.', 157, $this->source); })()), "html", null, true);
echo "%割引対象商品です]</span>
";
} elseif ( // line 158
(isset($context["nonmember_flag"]) || array_key_exists("nonmember_flag", $context) ? $context["nonmember_flag"] : (function () { throw new RuntimeError('Variable "nonmember_flag" does not exist.', 158, $this->source); })())) {
// line 159
echo " <span style=\"color:red;\">[";
echo twig_escape_filter($this->env, (isset($context["nonmember_ratio"]) || array_key_exists("nonmember_ratio", $context) ? $context["nonmember_ratio"] : (function () { throw new RuntimeError('Variable "nonmember_ratio" does not exist.', 159, $this->source); })()), "html", null, true);
echo "%割引対象商品です]</span>
";
}
// line 161
echo " ";
}
// line 162
echo "
";
// line 163
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 163)) {
// line 164
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 164) == (isset($context["getPrice02IncTaxMax"]) || array_key_exists("getPrice02IncTaxMax", $context) ? $context["getPrice02IncTaxMax"] : (function () { throw new RuntimeError('Variable "getPrice02IncTaxMax" does not exist.', 164, $this->source); })()))) {
// line 165
echo " <dd id=\"result_list__price02_inc_tax--";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 165), "html", null, true);
echo "\" class=\"item_price\">
";
// line 166
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 166)), "html", null, true);
echo "<span class=\"small\"><small>(税込)</small></span>
</dd>
";
} elseif (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter( // line 168
(isset($context["getPrice02IncTaxMax"]) || array_key_exists("getPrice02IncTaxMax", $context) ? $context["getPrice02IncTaxMax"] : (function () { throw new RuntimeError('Variable "getPrice02IncTaxMax" does not exist.', 168, $this->source); })())) != "¥ 0")) {
// line 169
echo " <dd id=\"result_list__price02_inc_tax--";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 169), "html", null, true);
echo "\" class=\"item_price\">
";
// line 170
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02xMin", [], "any", false, false, false, 170)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter((isset($context["getPrice02IncTaxMax"]) || array_key_exists("getPrice02IncTaxMax", $context) ? $context["getPrice02IncTaxMax"] : (function () { throw new RuntimeError('Variable "getPrice02IncTaxMax" does not exist.', 170, $this->source); })())), "html", null, true);
echo "<span class=\"small\"><small>(税込)</small></span>
</dd>
";
}
// line 173
echo " ";
} else {
// line 174
echo " <span class=\"tax_management-sale_price tax_management_id_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 174), "html", null, true);
echo "\"></span><small>(税込)</small>
";
// line 178
echo " ";
}
// line 179
echo " </dl>
</a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 184
echo " </div>
</div>
<!-- ▲item_list▲ -->
";
// line 188
if ((twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 188, $this->source); })()), "totalItemCount", [], "any", false, false, false, 188) > 0)) {
// line 189
echo " ";
$this->loadTemplate("pager.twig", "__string_template__1bcf926165da21a48fbf83479eb452e8", 189)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 189, $this->source); })()), "paginationData", [], "any", false, false, false, 189)]));
// line 190
echo " ";
}
// line 191
echo " ";
} else {
// line 192
echo " <p class=\"errormsg text-danger\">ご指定のカテゴリは存在しません。</p>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "__string_template__1bcf926165da21a48fbf83479eb452e8";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 514 => 192, 511 => 191, 508 => 190, 505 => 189, 503 => 188, 497 => 184, 487 => 179, 484 => 178, 479 => 174, 476 => 173, 468 => 170, 463 => 169, 461 => 168, 456 => 166, 451 => 165, 448 => 164, 446 => 163, 443 => 162, 440 => 161, 434 => 159, 432 => 158, 427 => 157, 424 => 156, 422 => 155, 419 => 154, 416 => 153, 410 => 152, 407 => 151, 404 => 150, 401 => 149, 396 => 148, 394 => 147, 391 => 146, 389 => 145, 386 => 144, 378 => 142, 376 => 141, 369 => 139, 365 => 138, 362 => 137, 357 => 134, 346 => 132, 342 => 131, 338 => 129, 335 => 128, 331 => 126, 329 => 125, 325 => 124, 321 => 123, 317 => 122, 313 => 121, 308 => 120, 304 => 119, 296 => 113, 290 => 111, 287 => 110, 281 => 109, 276 => 107, 272 => 106, 267 => 105, 264 => 104, 260 => 103, 257 => 102, 251 => 101, 246 => 99, 242 => 98, 237 => 97, 234 => 96, 230 => 95, 222 => 90, 216 => 87, 206 => 81, 204 => 80, 197 => 75, 191 => 73, 188 => 72, 185 => 71, 172 => 69, 167 => 68, 165 => 67, 161 => 66, 155 => 62, 147 => 55, 144 => 54, 135 => 52, 130 => 51, 128 => 50, 125 => 49, 123 => 48, 114 => 41, 104 => 40, 72 => 16, 62 => 15, 51 => 11, 49 => 13, 36 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block javascript %}
<script>
// 並び順を変更
function fnChangeOrderBy(orderby) {
eccube.setValue('orderby', orderby);
eccube.setValue('pageno', 1);
eccube.submitForm();
}
// 表示件数を変更
function fnChangeDispNumber(dispNumber) {
eccube.setValue('disp_number', dispNumber);
eccube.setValue('pageno', 1);
eccube.submitForm();
}
// 商品表示BOXの高さを揃える
\$(window).load(function() {
\$('.product_item').matchHeight();
});
// 表示件数を非表示にする
\$('#result_info_box__disp_menu').hide();
</script>
{% endblock %}
{% block main %}
<!-- ▼ 検索窓 for SP -->
<div id=\"search\" class=\"search my-search\">
</div>
<!-- ▲ 検索窓 for SP -->
{% if search_form.category_id.vars.errors|length == 0 %}
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
{% if Category is not null %}
{% for Path in Category.path %}
<input type=\"hidden\" name=\"category_id\" value=\"{{ Path.id }}\">
{% endfor %}
{% endif %}
<input type=\"hidden\" id=\"mode\" name=\"mode\" />
<input type=\"hidden\" id=\"name\" name=\"name\" maxlength=\"50\" />
<input type=\"hidden\" id=\"pageno\" name=\"pageno\" value=\"1\" />
<input type=\"hidden\" value=\"100\" id=\"disp_number\" name=\"disp_number\" />
<input type=\"hidden\" value=\"1\" id=\"orderby\" name=\"orderby\" />
{# {{ form_widget(search_form) }} #}
</form>
<!-- ▼topicpath▼ -->
<div id=\"topicpath\" class=\"row\">
<ol id=\"list_header_menu\">
<li><a href=\"{{ url('product_list') }}\">全商品</a></li>
{% if Category is not null %}
{% for Path in Category.path %}
<li><a href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a></li>
{% endfor %}
{% endif %}
{% if search_form.vars.value.name %}
<li>「{{ search_form.vars.value.name }}」の検索結果</li>
{% endif %}
</ol>
</div>
<!-- ▲topicpath▲ -->
<div id=\"result_info_box\" class=\"row\">
<form name=\"page_navi_top\" id=\"page_navi_top\" action=\"?\">
{% if pagination.totalItemCount > 0 %}
<p id=\"result_info_box__item_count\" class=\"intro col-sm-6\"><strong><span id=\"productscount\">{{ pagination.totalItemCount }}</span>件</strong>の商品がみつかりました。
</p>
<div id=\"result_info_box__menu_box\" class=\"col-sm-6 no-padding\">
<ul id=\"result_info_box__menu\" class=\"pagenumberarea clearfix\">
<li id=\"result_info_box__disp_menu\">
{{ form_widget(search_form.disp_number, {'id': '', 'attr': {'onchange': \"javascript:fnChangeDispNumber(this.value);\"}}) }}
</li>
<li id=\"result_info_box__order_menu\">
{{ form_widget(search_form.orderby, {'id': '', 'attr': {'onchange': \"javascript:fnChangeOrderBy(this.value);\", 'class': 'form-control'}}) }}
</li>
</ul>
</div>
{% for f in search_form.disp_number.getIterator %}
{% if f.vars.name matches '[^plg*]' %}
{{ form_label(f) }}
{{ form_widget(f) }}
{{ form_errors(f) }}
{% endif %}
{% endfor %}
{% for f in search_form.orderby.getIterator %}
{% if f.vars.name matches '[^plg*]' %}
{{ form_label(f) }}
{{ form_widget(f) }}
{{ form_errors(f) }}
{% endif %}
{% endfor %}
{% else %}
<p id=\"result_info_box__item_count\" class=\"intro col-sm-6\"><strong style=\"display: none;\"><span id=\"productscount\">{{ pagination.totalItemCount }}</span>件</strong>お探しの商品は見つかりませんでした。</p>
{% endif %}
</form>
</div>
<!-- ▼item_list▼ -->
<div id=\"item_list\">
<div class=\"row no-padding\">
{% for Product in pagination %}
<div id=\"result_list_box--{{ Product.id }}\" class=\"col-lg-2 col-md-3 col-sm-4\">
<div id=\"result_list__item--{{ Product.id }}\" class=\"product_item\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<div id=\"result_list__image--{{ Product.id }}\" class=\"item_photo\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
{% if not Product.stock_find %}
<span class=\"soldout text-danger\" style=\"line-height:1; letter-spacing: 0px;\">SOLD OUT</span>
{% endif %}
{% if Product.ProductTag is not empty %}
<!--▼商品タグ-->
<div class=\"list_tag_box product_tag\">
{% for ProductTag in Product.ProductTag %}
<span class=\"product_tag_list list_tag_{{ ProductTag.Tag.id }}\">{{ ProductTag.Tag }}</span>
{% endfor %}
</div>
<!--▲商品タグ-->
{% endif %}
</div>
<dl id=\"result_list__detail--{{ Product.id }}\" class=\"item_detail\">
<dt id=\"result_list__name--{{ Product.id }}\" class=\"item_name\">{{ Product.name }}</dt>
{% if Product.description_list %}
<dd id=\"result_list__description_list--{{ Product.id }}\" class=\"item_comment\">{{ Product.description_list|raw|nl2br }}</dd>
{% endif %}
{% set flag = false %}
{% if Product.ProductCategories is not empty %}
{% for category in Product.ProductCategories %}
{% if category.Category.id == 148 or category.Category.id == 133 or category.Category.id == 144 or category.Category.id == 116 %}
{% set flag = true %}
{% endif %}
{% endfor %}
{% endif %}
{% if flag != true and discount_flag %}
{% if is_granted('ROLE_USER') %}
<span style=\"color:red;\">[{{ discount_ratio }}%割引対象商品です]</span>
{% elseif nonmember_flag %}
<span style=\"color:red;\">[{{ nonmember_ratio }}%割引対象商品です]</span>
{% endif %}
{% endif %}
{% if Product.hasProductClass %}
{% if Product.getPrice02IncTaxMin == getPrice02IncTaxMax %}
<dd id=\"result_list__price02_inc_tax--{{ Product.id }}\" class=\"item_price\">
{{ Product.getPrice02IncTaxMin|price }}<span class=\"small\"><small>(税込)</small></span>
</dd>
{% elseif getPrice02IncTaxMax|price != '¥ 0' %}
<dd id=\"result_list__price02_inc_tax--{{ Product.id }}\" class=\"item_price\">
{{ Product.getPrice02xMin|price }} ~ {{ getPrice02IncTaxMax|price }}<span class=\"small\"><small>(税込)</small></span>
</dd>
{% endif %}
{% else %}
<span class=\"tax_management-sale_price tax_management_id_{{Product.id}}\"></span><small>(税込)</small>
{#
<dd id=\"result_list__price02_inc_tax--{{ Product.id }}\" class=\"item_price\">{{ Product.getPrice02IncTaxMin|price }}<span class=\"small\"><small>(税込)</small></span></dd>
#}
{% endif %}
</dl>
</a>
</div>
</div>
{% endfor %}
</div>
</div>
<!-- ▲item_list▲ -->
{% if pagination.totalItemCount > 0 %}
{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
{% endif %}
{% else %}
<p class=\"errormsg text-danger\">ご指定のカテゴリは存在しません。</p>
{% endif %}
{% endblock %}
", "__string_template__1bcf926165da21a48fbf83479eb452e8", "");
}
}