<?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/lm_category_item_list.twig */
class __TwigTemplate_7eeb9e3a7012b3f30359d7e0f5c11cad 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/lm_category_item_list.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/lm_category_item_list.twig"));
// line 1
echo "<style>
#item-list-db #search_settings {
display: flex;
background-color: #f2f2f2;
border-top: none;
border-bottom: none;
letter-spacing: .1em;
margin-bottom: 5px;
padding: 14px 10px;
}
#item-list-db #search_settings .search-settings-box > * {
vertical-align: middle;
}
#item-list-db #search_settings .search-settings-box > span {
color: #333;
font-size: 14px;
line-height: 24px;
}
#item-list-db #search_settings .search-settings-box-left {
width: 40%;
}
#item-list-db #search_settings .search-settings-box-right {
width: 60%;
text-align: right;
}
#item-list-db #search_settings .search-settings-box-right > span {
margin-left: 2em;
}
#item-list-db #search_settings .search-settings-box-right select {
-webkit-appearance: none;
border-radius: 0;
font-size: 14px;
width: 130px;
padding-left: 2px;
height: 24px;
}
#item-list-db #search_settings .search-settings-box-right .search-settings-box-select-wrap {
display: inline-block;
position: relative;
}
#item-list-db #search_settings .search-settings-box-right .search-settings-box-select-wrap:after {
position: absolute;
content: '';
width: 4px;
height: 4px;
border: 2px solid;
border-color: #565656 #565656 transparent transparent;
transform: rotate(135deg);
top: 5px;
right: 6px;
}
#item-list-db .item-list-pagination .item-list-pagination-prev-next:before {
width: 10px;
height: 10px;
}
#item-list-db #glist {
width: 100%;
}
</style>
<div id=\"item-list-db\">
";
// line 62
$context["list_anchor_id"] = "list_mark";
// line 63
echo " ";
$context["category_name_p"] = "";
// line 64
echo " ";
$context["category_name"] = twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 64, $this->source); })()), "main_category_name", [], "any", false, false, true, 64);
// line 65
echo "
";
// line 66
if ((array_key_exists("isMainCategory", $context) && (isset($context["isMainCategory"]) || array_key_exists("isMainCategory", $context) ? $context["isMainCategory"] : (function () { throw new RuntimeError('Variable "isMainCategory" does not exist.', 66, $this->source); })()))) {
// line 67
echo " ";
if ((array_key_exists("main_h3", $context) && ((isset($context["main_h3"]) || array_key_exists("main_h3", $context) ? $context["main_h3"] : (function () { throw new RuntimeError('Variable "main_h3" does not exist.', 67, $this->source); })()) != ""))) {
// line 68
echo " ";
$context["category_name"] = (isset($context["main_h3"]) || array_key_exists("main_h3", $context) ? $context["main_h3"] : (function () { throw new RuntimeError('Variable "main_h3" does not exist.', 68, $this->source); })());
// line 69
echo " ";
} elseif ((array_key_exists("main_breadcrumb", $context) && ((isset($context["main_breadcrumb"]) || array_key_exists("main_breadcrumb", $context) ? $context["main_breadcrumb"] : (function () { throw new RuntimeError('Variable "main_breadcrumb" does not exist.', 69, $this->source); })()) != ""))) {
// line 70
echo " ";
$context["category_name"] = (isset($context["main_breadcrumb"]) || array_key_exists("main_breadcrumb", $context) ? $context["main_breadcrumb"] : (function () { throw new RuntimeError('Variable "main_breadcrumb" does not exist.', 70, $this->source); })());
// line 71
echo " ";
}
// line 72
echo " ";
$context["category_name_p"] = (isset($context["category_name"]) || array_key_exists("category_name", $context) ? $context["category_name"] : (function () { throw new RuntimeError('Variable "category_name" does not exist.', 72, $this->source); })());
// line 73
echo " ";
} else {
// line 74
echo " ";
if ((array_key_exists("category_h3", $context) && ((isset($context["category_h3"]) || array_key_exists("category_h3", $context) ? $context["category_h3"] : (function () { throw new RuntimeError('Variable "category_h3" does not exist.', 74, $this->source); })()) != ""))) {
// line 75
echo " ";
$context["category_name"] = (isset($context["category_h3"]) || array_key_exists("category_h3", $context) ? $context["category_h3"] : (function () { throw new RuntimeError('Variable "category_h3" does not exist.', 75, $this->source); })());
// line 76
echo " ";
$context["category_name_p"] = (isset($context["category_name"]) || array_key_exists("category_name", $context) ? $context["category_name"] : (function () { throw new RuntimeError('Variable "category_name" does not exist.', 76, $this->source); })());
// line 77
echo " ";
} elseif ((array_key_exists("category_h1", $context) && ((isset($context["category_h1"]) || array_key_exists("category_h1", $context) ? $context["category_h1"] : (function () { throw new RuntimeError('Variable "category_h1" does not exist.', 77, $this->source); })()) != ""))) {
// line 78
echo " ";
$context["category_name"] = (isset($context["category_h1"]) || array_key_exists("category_h1", $context) ? $context["category_h1"] : (function () { throw new RuntimeError('Variable "category_h1" does not exist.', 78, $this->source); })());
// line 79
echo " ";
$context["category_name_p"] = (isset($context["category_name"]) || array_key_exists("category_name", $context) ? $context["category_name"] : (function () { throw new RuntimeError('Variable "category_name" does not exist.', 79, $this->source); })());
// line 80
echo " ";
} else {
// line 81
echo " ";
$context["category_name"] = (isset($context["seoKeywordTDK"]) || array_key_exists("seoKeywordTDK", $context) ? $context["seoKeywordTDK"] : (function () { throw new RuntimeError('Variable "seoKeywordTDK" does not exist.', 81, $this->source); })());
// line 82
echo " ";
$context["category_name_p"] = $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPhpFunctions("str_replace", " 全商品", "", $this->sandbox->ensureToStringAllowed((isset($context["category_name"]) || array_key_exists("category_name", $context) ? $context["category_name"] : (function () { throw new RuntimeError('Variable "category_name" does not exist.', 82, $this->source); })()), 82, $this->source));
// line 83
echo " ";
}
// line 84
echo " ";
}
// line 85
echo "
<!-- 並び順、ページングのさいは、商品DBにアンカーする -->
<script>
\$( function(){
\$('#search_settings option').each( function(){
var \$option = \$(this);
\$option.val( \$option.val() + '#";
// line 91
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["list_anchor_id"]) || array_key_exists("list_anchor_id", $context) ? $context["list_anchor_id"] : (function () { throw new RuntimeError('Variable "list_anchor_id" does not exist.', 91, $this->source); })()), 91, $this->source), "html", null, true);
echo "');
});
\$('.item-list-pagination .item-list-pagination-page > a').each( function(){
var \$a = \$(this);
\$a.attr('href', \$a.attr('href')+'#";
// line 95
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["list_anchor_id"]) || array_key_exists("list_anchor_id", $context) ? $context["list_anchor_id"] : (function () { throw new RuntimeError('Variable "list_anchor_id" does not exist.', 95, $this->source); })()), 95, $this->source), "html", null, true);
echo "');
});
// 固定ヘッダー分のスクロールを調整
if( location.href.match(/#";
// line 99
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["list_anchor_id"]) || array_key_exists("list_anchor_id", $context) ? $context["list_anchor_id"] : (function () { throw new RuntimeError('Variable "list_anchor_id" does not exist.', 99, $this->source); })()), 99, $this->source), "html", null, true);
echo "/) ){
// spはheader-navがないが、固定ヘッダー自体ないのでreturn falseで抜ける=そのままアンカーされればよい
var \$fixedHeader = \$('#header-nav');
if( \$fixedHeader.length === 0 ) return false;
var \$anchor = \$('#";
// line 104
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["list_anchor_id"]) || array_key_exists("list_anchor_id", $context) ? $context["list_anchor_id"] : (function () { throw new RuntimeError('Variable "list_anchor_id" does not exist.', 104, $this->source); })()), 104, $this->source), "html", null, true);
echo "');
setTimeout( function(){
\$(window).scrollTop( \$anchor.offset().top - \$fixedHeader.outerHeight());\t// 10は微調整
}, 800 );
}
});
</script>
<a id=\"";
// line 112
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["list_anchor_id"]) || array_key_exists("list_anchor_id", $context) ? $context["list_anchor_id"] : (function () { throw new RuntimeError('Variable "list_anchor_id" does not exist.', 112, $this->source); })()), 112, $this->source), "html", null, true);
echo "\"></a>
<div id=\"item-list-header\" class=\"item-all\">
<h2 id=\"heading-item-list\">";
// line 114
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 114, $this->source); })()), "titleForItemList", [], "any", false, false, true, 114), 114, $this->source), "html", null, true);
echo "商品一覧</h2>
<div id=\"search_settings\">
<div class=\"search-settings-box search-settings-box-left\">
<span>対象商品 ";
// line 117
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["detailData"]) || array_key_exists("detailData", $context) ? $context["detailData"] : (function () { throw new RuntimeError('Variable "detailData" does not exist.', 117, $this->source); })()), "item_count", [], "any", false, false, true, 117), 117, $this->source), "html", null, true);
echo "件</span>
</div>
<div class=\"search-settings-box search-settings-box-right\">
";
// line 121
$this->loadTemplate("Common/DisplayOrderPulldown.twig", "Block/lm_category_item_list.twig", 121)->display($context);
// line 122
echo " ";
$this->loadTemplate("Common/DisplayItemPulldown.twig", "Block/lm_category_item_list.twig", 122)->display($context);
// line 123
echo " </div>
</div>
";
// line 125
if ( !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.', 125, $this->source); })()), "request", [], "any", false, false, true, 125), "query", [], "any", false, false, true, 125), "get", [0 => "no"], "method", false, false, true, 125)) {
// line 126
echo " <p>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 126, $this->source); })()), "titleForItemList", [], "any", false, false, true, 126), 126, $this->source), "html", null, true);
echo "を販売するユニフォームの通販。常時20万点以上の豊富な品揃え。プリント・刺繍加工も対応中!</p>
";
}
// line 128
echo " </div>
<!-- 検索結果が0件の場合 -->
";
// line 132
if (((array_key_exists("detailData", $context) && twig_get_attribute($this->env, $this->source, ($context["detailData"] ?? null), "item_count", [], "any", true, true, true, 132)) && (twig_get_attribute($this->env, $this->source, (isset($context["detailData"]) || array_key_exists("detailData", $context) ? $context["detailData"] : (function () { throw new RuntimeError('Variable "detailData" does not exist.', 132, $this->source); })()), "item_count", [], "any", false, false, true, 132) == 0))) {
// line 133
echo " <div class=\"item-not-found\">該当する条件の商品は見つかりませんでした。</div>
";
} else {
// line 135
echo " ";
$context["col_count"] = twig_get_attribute($this->env, $this->source, (isset($context["detailData"]) || array_key_exists("detailData", $context) ? $context["detailData"] : (function () { throw new RuntimeError('Variable "detailData" does not exist.', 135, $this->source); })()), "col_count", [], "any", false, false, true, 135);
// line 136
echo " ";
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/product_item_list_common.twig");
echo "
";
}
// line 138
echo "</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Block/lm_category_item_list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 272 => 138, 266 => 136, 263 => 135, 259 => 133, 257 => 132, 251 => 128, 245 => 126, 243 => 125, 239 => 123, 236 => 122, 234 => 121, 227 => 117, 221 => 114, 216 => 112, 205 => 104, 197 => 99, 190 => 95, 183 => 91, 175 => 85, 172 => 84, 169 => 83, 166 => 82, 163 => 81, 160 => 80, 157 => 79, 154 => 78, 151 => 77, 148 => 76, 145 => 75, 142 => 74, 139 => 73, 136 => 72, 133 => 71, 130 => 70, 127 => 69, 124 => 68, 121 => 67, 119 => 66, 116 => 65, 113 => 64, 110 => 63, 108 => 62, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<style>
#item-list-db #search_settings {
display: flex;
background-color: #f2f2f2;
border-top: none;
border-bottom: none;
letter-spacing: .1em;
margin-bottom: 5px;
padding: 14px 10px;
}
#item-list-db #search_settings .search-settings-box > * {
vertical-align: middle;
}
#item-list-db #search_settings .search-settings-box > span {
color: #333;
font-size: 14px;
line-height: 24px;
}
#item-list-db #search_settings .search-settings-box-left {
width: 40%;
}
#item-list-db #search_settings .search-settings-box-right {
width: 60%;
text-align: right;
}
#item-list-db #search_settings .search-settings-box-right > span {
margin-left: 2em;
}
#item-list-db #search_settings .search-settings-box-right select {
-webkit-appearance: none;
border-radius: 0;
font-size: 14px;
width: 130px;
padding-left: 2px;
height: 24px;
}
#item-list-db #search_settings .search-settings-box-right .search-settings-box-select-wrap {
display: inline-block;
position: relative;
}
#item-list-db #search_settings .search-settings-box-right .search-settings-box-select-wrap:after {
position: absolute;
content: '';
width: 4px;
height: 4px;
border: 2px solid;
border-color: #565656 #565656 transparent transparent;
transform: rotate(135deg);
top: 5px;
right: 6px;
}
#item-list-db .item-list-pagination .item-list-pagination-prev-next:before {
width: 10px;
height: 10px;
}
#item-list-db #glist {
width: 100%;
}
</style>
<div id=\"item-list-db\">
{% set list_anchor_id = 'list_mark' %}
{% set category_name_p = '' %}
{% set category_name = data.main_category_name %}
{% if isMainCategory is defined and isMainCategory %}
{% if main_h3 is defined and main_h3 != '' %}
{% set category_name = main_h3 %}
{% elseif main_breadcrumb is defined and main_breadcrumb != '' %}
{% set category_name = main_breadcrumb %}
{% endif %}
{% set category_name_p = category_name %}
{% else %}
{% if category_h3 is defined and category_h3 != '' %}
{% set category_name = category_h3 %}
{% set category_name_p = category_name %}
{% elseif category_h1 is defined and category_h1 != '' %}
{% set category_name = category_h1 %}
{% set category_name_p = category_name %}
{% else %}
{% set category_name = seoKeywordTDK %}
{% set category_name_p = php_str_replace(\" 全商品\", \"\", category_name) %}
{% endif %}
{% endif %}
<!-- 並び順、ページングのさいは、商品DBにアンカーする -->
<script>
\$( function(){
\$('#search_settings option').each( function(){
var \$option = \$(this);
\$option.val( \$option.val() + '#{{ list_anchor_id }}');
});
\$('.item-list-pagination .item-list-pagination-page > a').each( function(){
var \$a = \$(this);
\$a.attr('href', \$a.attr('href')+'#{{ list_anchor_id }}');
});
// 固定ヘッダー分のスクロールを調整
if( location.href.match(/#{{ list_anchor_id }}/) ){
// spはheader-navがないが、固定ヘッダー自体ないのでreturn falseで抜ける=そのままアンカーされればよい
var \$fixedHeader = \$('#header-nav');
if( \$fixedHeader.length === 0 ) return false;
var \$anchor = \$('#{{ list_anchor_id }}');
setTimeout( function(){
\$(window).scrollTop( \$anchor.offset().top - \$fixedHeader.outerHeight());\t// 10は微調整
}, 800 );
}
});
</script>
<a id=\"{{ list_anchor_id }}\"></a>
<div id=\"item-list-header\" class=\"item-all\">
<h2 id=\"heading-item-list\">{{ category.titleForItemList }}商品一覧</h2>
<div id=\"search_settings\">
<div class=\"search-settings-box search-settings-box-left\">
<span>対象商品 {{ detailData.item_count }}件</span>
</div>
<div class=\"search-settings-box search-settings-box-right\">
{% include 'Common/DisplayOrderPulldown.twig' %}
{% include 'Common/DisplayItemPulldown.twig' %}
</div>
</div>
{% if not app.request.query.get('no') %}
<p>{{ category.titleForItemList }}を販売するユニフォームの通販。常時20万点以上の豊富な品揃え。プリント・刺繍加工も対応中!</p>
{% endif %}
</div>
<!-- 検索結果が0件の場合 -->
{% if detailData is defined and detailData.item_count is defined and detailData.item_count == 0 %}
<div class=\"item-not-found\">該当する条件の商品は見つかりませんでした。</div>
{% else %}
{% set col_count = detailData.col_count %}
{{ include('Block/product_item_list_common.twig') }}
{% endif %}
</div>
", "Block/lm_category_item_list.twig", "/var/www/html/app/template/default/Block/lm_category_item_list.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 62, "if" => 66, "include" => 121);
static $filters = array("escape" => 91);
static $functions = array("php_str_replace" => 82, "include" => 136);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'include'],
['escape'],
['php_str_replace', 'include']
);
} 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;
}
}
}