<?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;
/* @user_data/photo-product_list.twig */
class __TwigTemplate_7b9b53c59f5cab98551978c597c0f953 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'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", "@user_data/photo-product_list.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@user_data/photo-product_list.twig"));
// line 456
$context["body_class"] = "product_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "@user_data/photo-product_list.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 13
public function block_stylesheet($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", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 14
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/stock-photo/contents-list.css", "user_data"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 15
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/stock-photo/main_module.css", "user_data"), "html", null, true);
echo "\">
<style>
.ec-topicpath{
display: flex;
flex-wrap: wrap;
margin: 30px 10% 0;
}
.ec-topicpath a{
color: #109F98;
}
.ec-topicpath__divider{
margin: 0 5px;
}
.category-btn img{
margin-right: 15px;
}
.tab {
margin: 30px 15% 0;
}
@media screen and (max-width:768px){
.tab {
margin: 10px 3% 20px 3%;
}
}
.lead-sentence {
display: flex;
flex-wrap: wrap;
}
@media screen and (max-width:768px){
.tab img{
width: 15%;
}
.category-btn{
margin-bottom: 15px;
}
}
.tab-list {
display: flex;
gap: 1px;
}
@media screen and (max-width:768px){
.tab-list{
flex-direction: row;
}
}
.tab-item {
border-radius: 5px 5px 0 0;
background-color: #109F98;
border-top: solid 1px #109F98;
border-right: solid 1px #109F98;
border-left: solid 1px #109F98;
}
.tab-item a{
color: #FFF;
padding: 0.5em 1.2em;
display: block;
}
@media screen and (max-width:768px){
.tab-item{
flex: 1 1 auto;
min-width: 0;
}
.tab-item a{
margin: 8px 0;
text-align: center;
white-space: nowrap;
padding: 0.4em 0.6em;
}
}
@media screen and (max-width:570px){
.tab-item{
font-size: 12px;
line-height: 2.5;
}
}
@media screen and (max-width:450px){
.tab-item{
font-size: 10px;
}
}
.tab-content:has(.tab-panel.active){
display: flex;
justify-content: space-between;
border-top:solid 1px #109F98;
border-right:solid 1px #109F98;
border-left:solid 1px #109F98;
border-radius: 0 8px 0 0;
}
.tab-content:not(:has(.tab-panel.active)){
display: none;
}
@media screen and (max-width:768px){
.tab-content{
flex-direction: column;
border-radius: 0;
}
}
.tab-panel {
display: none;
}
.tab-item.active {
background-color: #fff;
font-weight: bold;
position: relative;
}
.tab-item.active a{
color: #109F98;
}
.tab-item.active::before{
content: \"\";
width: 100%;
border-bottom: 4px solid #FFF;
position: absolute;
bottom: -3px;
left: 0;
}
.tab-panel.active {
display: flex;
padding: 3%;
flex-wrap: wrap;
gap:20px 20px;
flex: 10;
}
@media screen and (max-width:768px){
.tab-panel.active{
justify-content: center;
}
}
.tab-panel.active h2 {
font-size: 20px;
font-weight: bold;
}
.search-form-box{
border: solid 1px #109F98;
border-radius: 0 0 8px 8px;
}
.tab-content:not(:has(.active)) + .search-form-box{
border-radius: 0 8px 8px 8px;
}
@media screen and (max-width:768px){
.search-form-box .search-form-content{
display: flex;
justify-content: space-between;
flex-direction: column;
}
}
.search-form-box .search-form-item{
margin-left: 3%;
margin-right: calc(3% + 20px);
}
@media screen and (max-width:768px){
.search-form-box .search-form-item{
margin: 0 auto;
}
}
.search-form-box .search-form-input{
-webkit-appearance: none;
-moz-appearance:none;
appearance: none;
border:1px solid #109F98;
border-radius:25px;
width: 100%;
padding-left: 20px;
height: 36px;
background-color: #f5f5f5;
}
@media screen and (max-width:768px){
.search-form-box .search-form-input{
width: 88vw;
box-sizing: border-box;
}
.search-form-box .search-form-input::placeholder{
font-size: 2vw;
}
}
select{
background:none;
appearance: none;
font:inherit;
padding:9.5px 10px;
border:1px solid #109F98;
box-sizing: border-box;
width: 250px;
border-radius:2px;
color: #111111;
}
.select {
display: inline-block;
position: relative;
vertical-align: middle;
width: 100%;
}
.select::before {
position: absolute;
top: 18px;
right: 16px;
width: 0;
height: 0;
border-width: 10px 5px 0 5px;
border-style: solid;
border-color: #109F98 transparent transparent transparent;
content: \"\";
pointer-events: none;
}
/*検索セクション内にあるアイコン(svg)カラー指定*/
.search-form-box .ic {
filter: brightness(0) saturate(100%) invert(68%) sepia(68%) saturate(6159%) hue-rotate(145deg) brightness(90%) contrast(87%);
}
/* 各条件見出し位置調整 */
.search-form-box .search-title {
padding: 15px 0 12px 0;
margin: 0 3%;
display: flex;
align-items: center;
gap: 6px;
color: #111111;
}
/*セクション分け用のボーダー*/
.search-form-box .search-title {
border-top: 1px solid #D5DAED;
}
/*1番目(フリーワード検索)には不要なので非表示*/
.search-form-box .search-title:first-child {
border-top: none;
}
.search-subtitle {
margin: 16px 0;
}
/*各条件の副題にh2のトーン寄せ*/
.search-subtitle label,
.search-subtitle legend {
border: solid 2px #109F98;
border-right: none;
border-top: none;
border-bottom: none;
text-align: left;
padding: 0 0 0 8px;
color: #111111;
}
.search-base-content,
.search-filter-content {
margin: 0 3% 3% 3%;
}
/*基本条件*/
.search-base-content {
display: flex;
flex-direction: row;
gap: 16px;
}
/* 上記でselectに指定しているスタイルを基本条件用に上書き */
.search-base-item select {
border: 1px solid #D5DAED;
}
@media (max-width: 768px) {
.search-base-item select {
display: flex;
flex-wrap: wrap;
}
.search-base-item {
flex: 1 1 200px;
max-width: 100%;
}
.search-base-item select {
width: 100%;
}
}
.search-filter-list {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
/*詳細フィルターのチェックボックス並べる数*/
/*PC表示:10個のチェックボックスが横に5個 × 2行*/
/*スマホ表示:10個のチェックボックスが横に3個 × 約4行(1個余りになるため)*/
.filter-checkbox-item {
display: flex;
align-items: center;
gap: 6px;
align-items: baseline;
width: calc(100% / 5 - 10px); /* PC: 5列 */
color: #111111;
}
@media (max-width: 768px) {
.filter-checkbox-item {
width: calc(100% / 3 - 10px); /* SP: 3列 */
}
}
@media (max-width: 450px) {
.filter-checkbox-item {
font-size: max(3.6vw, 12px);
}
}
.image-wrapper {
position: relative;
}
.label-free {
position: absolute;
top: 0;
right: 0;
background-color: #e60012;
color: #fff;
font-weight: bold;
font-size: 14px;
padding: 3px 10px;
border-radius: 0 0 0 4px;
z-index: 1;
}
.ec-topicpath__item{
font-size: 17px;
}
/* ▼ アコーディオン用 追加CSS ▼ */
:root{
--acc-green: #109F98;
--acc-line: #0f8a80;
}
.search-section + .search-section{
border-top: 1px solid var(--acc-line);
}
.search-section__header{
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
}
.accordion-toggle{
inline-size: 28px;
block-size: 28px;
display: grid;
place-items: center;
position: relative;
cursor: pointer;
border: 1px solid var(--acc-green);
border-radius: 4px;
background: var(--acc-green);
}
.accordion-toggle::before{
content: \"\";
display: block;
inline-size: 8px;
block-size: 8px;
border-right: 2px solid #fff;
border-bottom: 2px solid #fff;
transform: rotate(45deg); /* ▼ */
transition: transform .2s ease;
}
.is-open .accordion-toggle{
background: #fff;
border-color: var(--acc-green);
}
.is-open .accordion-toggle::before{
border-right-color: var(--acc-green);
border-bottom-color: var(--acc-green);
transform: rotate(-135deg); /* ▲ */
}
.search-section__panel{
padding: 12px;
}
.visually-hidden{
position: absolute !important;
inline-size: 1px;
block-size: 1px;
margin: -1px;
padding: 0;
border: 0;
clip: rect(0 0 0 0);
overflow: hidden;
}
.accordion-toggle:hover{ filter: brightness(0.98); }
.accordion-toggle:focus-visible{
outline: 2px solid var(--acc-line);
outline-offset: 2px;
}
/* SPだけボタンを中央寄せ */
@media (max-width: 840px){
.sp-center{
display: flex;
justify-content: center;
}
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 458
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 459
echo " <script>
eccube.productsClassCategories = {
";
// line 461
$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.', 461, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 462
echo " \"";
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 462), "js"), "html", null, true);
echo "\": ";
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 462) == false)) {
echo ", ";
}
// line 463
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 464
echo " };
\$(function() {
// 表示件数を変更
\$('.disp-number').change(function() {
var dispNumber = \$(this).val();
\$('#disp_number').val(dispNumber);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
// // 並び順を変更
\$('.order-by').change(function() {
var orderBy = \$(this).val();
\$('#orderby').val(orderBy);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
\$('.add-cart').on('click', function(e) {
var \$form = \$(this).parents('li').find('form');
// 個数フォームのチェック
var \$quantity = \$form.parent().find('.quantity');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('";
// line 490
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html", null, true);
echo "');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$quantity[0].setCustomValidity('');
}
e.preventDefault();
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').html(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: '";
// line 518
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
echo "',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('";
// line 525
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html", null, true);
echo "');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
});
\$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
<script>
// 絞り込み検索は、絞り込み検索ボタンが押されたとき、もしくは入力欄にフォーカスされたときに、
// enterを押したときのみ発動する。カテゴリ検索を押したときは発火させない
document.addEventListener('DOMContentLoaded', function () {
const form = document.querySelector('.tab');
const categoryBtn = form.querySelector('button[name=\"search_parent_id\"]:not(.word-search)');
const wordBtn = form.querySelector('.category-btn.word-search');
const wordInput = form.querySelector('input.search-form-input');
// カテゴリ検索 → name を送らせない
categoryBtn.addEventListener('click', function () {
if (wordInput) {
wordInput.disabled = true;
}
});
// 絞り込み検索 → name を有効化
wordBtn?.addEventListener('click', function () {
if (wordInput) {
wordInput.disabled = false;
}
});
// Enterキーで submit 時に絞り込み検索の値を送信するための hidden input 挿入
form.addEventListener('submit', function (e) {
if (document.activeElement === wordInput) {
e.preventDefault();
// 既に存在していたら除去(2重防止)
const existingHidden = form.querySelector('input[name=\"search_parent_id\"].auto-injected');
if (existingHidden) {
existingHidden.remove();
}
// ボタンのvalue属性をそのまま使う
const valueFromButton = wordBtn?.getAttribute('value') || '';
const hidden = document.createElement('input');
hidden.type = 'hidden';
hidden.name = 'search_parent_id';
hidden.value = valueFromButton;
hidden.classList.add('auto-injected');
form.appendChild(hidden);
if (wordInput) {
wordInput.disabled = false;
}
form.submit();
}
});
});
// カテゴリの詳細検索に値が入っていない場合、buttonのnameの値をcategory_idに変更する
// document.addEventListener('DOMContentLoaded', function () {
// const form = document.querySelector('.tab');
// const submitBtn = form.querySelector('button.category-btn');
// const categorySelects = form.querySelectorAll('select[name=\"category_ids[]\"]');
// form.addEventListener('submit', function (e) {
// // category_ids[] に選択されている値が1つもない場合、ボタンのnameを変更
// const hasValue = Array.from(categorySelects).some(select => select.value && select.value !== '');
// if (!hasValue) {
// submitBtn.setAttribute('name', 'category_id');
// } else {
// submitBtn.setAttribute('name', 'search_parent_id');
// }
// });
// });
</script>
<script>
(function () {
function setState(section, open) {
const btn = section.querySelector('.js-accordion-toggle');
const panel = section.querySelector('.js-accordion-panel');
section.classList.toggle('is-open', open);
btn.setAttribute('aria-expanded', open ? 'true' : 'false');
panel.toggleAttribute('hidden', !open);
panel.setAttribute('aria-hidden', open ? 'false' : 'true');
}
document.querySelectorAll('.search-form-box').forEach(function (box) {
// このフォーム(タブ)に属する2つのアコーディオン
const sections = box.querySelectorAll('.js-accordion');
if (!sections.length) return;
const key = location.pathname + '#panel=' + (box.dataset.panel || 'default') + ':openId';
// 初期オープン対象:保存 > data-open=\"1\" > 先頭(=フリーワードを想定)
const savedId = sessionStorage.getItem(key);
let initial = Array.from(sections).find(s => s.id === savedId)
|| Array.from(sections).find(s => s.dataset.open === '1')
|| sections[0];
// 初期反映
sections.forEach(s => setState(s, s === initial));
sessionStorage.setItem(key, initial.id);
sections.forEach(function (sec) {
const btn = sec.querySelector('.js-accordion-toggle');
btn.addEventListener('click', function () {
if (sec.classList.contains('is-open')) return;
sections.forEach(s => setState(s, s === sec));
sessionStorage.setItem(key, sec.id);
});
});
});
})();
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 654
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 655
echo " ";
$context["AllCategories"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "getList", [], "method", false, false, false, 655);
// line 656
echo " ";
$context["Categories"] = twig_array_filter($this->env, (isset($context["AllCategories"]) || array_key_exists("AllCategories", $context) ? $context["AllCategories"] : (function () { throw new RuntimeError('Variable "AllCategories" does not exist.', 656, $this->source); })()), function ($__c__) use ($context, $macros) { $context["c"] = $__c__; return ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["c"]) || array_key_exists("c", $context) ? $context["c"] : (function () { throw new RuntimeError('Variable "c" does not exist.', 656, $this->source); })()), "id", [], "any", false, false, false, 656)) && (twig_get_attribute($this->env, $this->source, (isset($context["c"]) || array_key_exists("c", $context) ? $context["c"] : (function () { throw new RuntimeError('Variable "c" does not exist.', 656, $this->source); })()), "id", [], "any", false, false, false, 656) == 18)); });
// line 657
echo " ";
$context["selected_categories"] = 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.', 657, $this->source); })()), "request", [], "any", false, false, false, 657), "query", [], "any", false, false, false, 657), "get", [0 => "category_ids", 1 => []], "method", false, false, false, 657);
// line 658
echo " ";
$context["parent_category"] = 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.', 658, $this->source); })()), "request", [], "any", false, false, false, 658), "query", [], "any", false, false, false, 658), "get", [0 => "search_parent_id"], "method", false, false, false, 658);
// line 659
echo " ";
// line 660
echo " <div class=\"ec-searchnavRole__topicpath pc\">
<ol class=\"ec-topicpath\">
<li class=\"ec-topicpath__item\"><a href=\"";
// line 662
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("photo-product_list");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.all_category"), "html", null, true);
echo "</a>
</li>
";
// line 664
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 664, $this->source); })()))) {
// line 665
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.', 665, $this->source); })()), "path", [], "any", false, false, false, 665));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
// line 666
echo " ";
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 666)) {
echo "
<li class=\"ec-topicpath__divider\">></li>
<li class=\"ec-topicpath__item";
// line 668
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 668)) {
echo "--active";
}
echo "\">
<a href=\"";
// line 669
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("photo-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, 669), "html", null, true);
echo "#contents-list\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, false, 669), "html", null, true);
echo "</a>
</li>
";
}
// line 672
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 673
echo " ";
}
// line 674
echo " ";
// line 675
echo " ";
// line 676
echo " \t\t ";
// line 677
echo " \t\t ";
// line 678
echo " \t\t";
// line 679
echo " \t\t";
// line 680
echo " \t\t";
// line 681
echo " \t\t";
// line 682
echo " \t\t";
// line 683
echo " ";
// line 684
echo " ";
// line 685
echo " ";
// line 686
echo " ";
// line 687
echo " ";
// line 688
echo " ";
// line 689
echo " ";
// line 690
echo " ";
// line 691
echo " ";
// line 692
echo " ";
// line 693
echo " ";
// line 694
echo " ";
// line 695
echo " ";
// line 696
echo " ";
// line 697
echo " ";
// line 698
echo "
";
// line 700
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.', 700, $this->source); })()), "vars", [], "any", false, false, false, 700), "value", [], "any", false, false, false, 700), "name", [], "any", false, false, false, 700)) {
// line 701
echo " <li class=\"ec-topicpath__divider\">></li>
<li class=\"ec-topicpath__item\"><a href=\"";
// line 702
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("photo-product_list");
echo "?name=";
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.', 702, $this->source); })()), "vars", [], "any", false, false, false, 702), "value", [], "any", false, false, false, 702), "name", [], "any", false, false, false, 702), "html", null, true);
echo "#contents-list\">";
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.', 702, $this->source); })()), "vars", [], "any", false, false, false, 702), "value", [], "any", false, false, false, 702), "name", [], "any", false, false, false, 702), "html", null, true);
echo "</a></li>
";
}
// line 704
echo "
";
// line 706
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 706, $this->source); })()), "request", [], "any", false, false, false, 706), "query", [], "any", false, false, false, 706), "get", [0 => "prefectures"], "method", false, false, false, 706)) {
// line 707
echo " <li class=\"ec-topicpath__divider\">></li>
<li class=\"ec-topicpath__item\">
<a href=\"";
// line 709
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("photo-product_list", ["category_id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 710
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 710, $this->source); })()), "request", [], "any", false, false, false, 710), "query", [], "any", false, false, false, 710), "get", [0 => "category_id"], "method", false, false, false, 710), "prefectures" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 711
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 711, $this->source); })()), "request", [], "any", false, false, false, 711), "query", [], "any", false, false, false, 711), "get", [0 => "prefectures"], "method", false, false, false, 711)]), "html", null, true);
// line 712
echo "#contents-list\">
";
// line 713
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 713, $this->source); })()), "request", [], "any", false, false, false, 713), "query", [], "any", false, false, false, 713), "get", [0 => "prefectures"], "method", false, false, false, 713), "html", null, true);
echo "
</a>
</li>
";
}
// line 717
echo "
";
// line 719
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 719, $this->source); })()), "request", [], "any", false, false, false, 719), "query", [], "any", false, false, false, 719), "get", [0 => "operator"], "method", false, false, false, 719)) {
// line 720
echo " <li class=\"ec-topicpath__divider\">></li>
<li class=\"ec-topicpath__item\">
<a href=\"";
// line 722
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("photo-product_list", ["category_id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 723
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 723, $this->source); })()), "request", [], "any", false, false, false, 723), "query", [], "any", false, false, false, 723), "get", [0 => "category_id"], "method", false, false, false, 723), "operator" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 724
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 724, $this->source); })()), "request", [], "any", false, false, false, 724), "query", [], "any", false, false, false, 724), "get", [0 => "operator"], "method", false, false, false, 724)]), "html", null, true);
// line 725
echo "#contents-list\">
";
// line 726
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 726, $this->source); })()), "request", [], "any", false, false, false, 726), "query", [], "any", false, false, false, 726), "get", [0 => "operator"], "method", false, false, false, 726), "html", null, true);
echo "
</a>
</li>
";
}
// line 730
echo "
";
// line 732
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 732, $this->source); })()), "request", [], "any", false, false, false, 732), "query", [], "any", false, false, false, 732), "get", [0 => "photographing_period"], "method", false, false, false, 732)) {
// line 733
echo " <li class=\"ec-topicpath__divider\">></li>
<li class=\"ec-topicpath__item\">
<a href=\"";
// line 735
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("photo-product_list", ["category_id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 736
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 736, $this->source); })()), "request", [], "any", false, false, false, 736), "query", [], "any", false, false, false, 736), "get", [0 => "category_id"], "method", false, false, false, 736), "operator" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 737
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 737, $this->source); })()), "request", [], "any", false, false, false, 737), "query", [], "any", false, false, false, 737), "get", [0 => "photographing_period"], "method", false, false, false, 737)]), "html", null, true);
// line 738
echo "#contents-list\">
";
// line 739
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 739, $this->source); })()), "request", [], "any", false, false, false, 739), "query", [], "any", false, false, false, 739), "get", [0 => "photographing_period"], "method", false, false, false, 739), "html", null, true);
echo "
</a>
</li>
";
}
// line 743
echo "
";
// line 745
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 745, $this->source); })()), "request", [], "any", false, false, false, 745), "query", [], "any", false, false, false, 745), "get", [0 => "locations"], "method", false, false, false, 745)) {
// line 746
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 746, $this->source); })()), "request", [], "any", false, false, false, 746), "query", [], "any", false, false, false, 746), "get", [0 => "locations"], "method", false, false, false, 746));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["location"]) {
// line 747
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 747)) {
// line 748
echo " <li class=\"ec-topicpath__divider\">></li>
";
} else {
// line 750
echo " <li class=\"ec-topicpath__divider\">・</li>
";
}
// line 752
echo " <li>
<a href=\"";
// line 753
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("photo-product_list", ["category_id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 754
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 754, $this->source); })()), "request", [], "any", false, false, false, 754), "query", [], "any", false, false, false, 754), "get", [0 => "category_id"], "method", false, false, false, 754), "locations[]" => // line 755
$context["location"]]), "html", null, true);
// line 756
echo "#contents-list\">
";
// line 757
echo twig_escape_filter($this->env, $context["location"], "html", null, true);
echo "
</a>
</li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['location'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 761
echo " ";
}
// line 762
echo "
";
// line 764
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 764, $this->source); })()), "request", [], "any", false, false, false, 764), "query", [], "any", false, false, false, 764), "get", [0 => "weathers"], "method", false, false, false, 764)) {
// line 765
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 765, $this->source); })()), "request", [], "any", false, false, false, 765), "query", [], "any", false, false, false, 765), "get", [0 => "weathers"], "method", false, false, false, 765));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["weather"]) {
// line 766
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 766)) {
// line 767
echo " <li class=\"ec-topicpath__divider\">></li>
";
} else {
// line 769
echo " <li class=\"ec-topicpath__divider\">・</li>
";
}
// line 771
echo " <li>
<a href=\"";
// line 772
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("photo-product_list", ["category_id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 773
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 773, $this->source); })()), "request", [], "any", false, false, false, 773), "query", [], "any", false, false, false, 773), "get", [0 => "category_id"], "method", false, false, false, 773), "weathers[]" => // line 774
$context["weather"]]), "html", null, true);
// line 775
echo "#contents-list\">
";
// line 776
echo twig_escape_filter($this->env, $context["weather"], "html", null, true);
echo "
</a>
</li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['weather'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 780
echo " ";
}
// line 781
echo "
";
// line 783
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 783, $this->source); })()), "request", [], "any", false, false, false, 783), "query", [], "any", false, false, false, 783), "get", [0 => "camera_angles"], "method", false, false, false, 783)) {
// line 784
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 784, $this->source); })()), "request", [], "any", false, false, false, 784), "query", [], "any", false, false, false, 784), "get", [0 => "camera_angles"], "method", false, false, false, 784));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["camera_angle"]) {
// line 785
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 785)) {
// line 786
echo " <li class=\"ec-topicpath__divider\">></li>
";
} else {
// line 788
echo " <li class=\"ec-topicpath__divider\">・</li>
";
}
// line 790
echo " <li>
<a href=\"";
// line 791
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("photo-product_list", ["category_id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 792
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 792, $this->source); })()), "request", [], "any", false, false, false, 792), "query", [], "any", false, false, false, 792), "get", [0 => "category_id"], "method", false, false, false, 792), "camera_angles[]" => // line 793
$context["camera_angle"]]), "html", null, true);
// line 794
echo "#contents-list\">
";
// line 795
echo twig_escape_filter($this->env, $context["camera_angle"], "html", null, true);
echo "
</a>
</li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['camera_angle'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 799
echo " ";
}
// line 800
echo "
";
// line 802
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 802, $this->source); })()), "request", [], "any", false, false, false, 802), "query", [], "any", false, false, false, 802), "get", [0 => "color_types"], "method", false, false, false, 802)) {
// line 803
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 803, $this->source); })()), "request", [], "any", false, false, false, 803), "query", [], "any", false, false, false, 803), "get", [0 => "color_types"], "method", false, false, false, 803));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["color_type"]) {
// line 804
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 804)) {
// line 805
echo " <li class=\"ec-topicpath__divider\">></li>
";
} else {
// line 807
echo " <li class=\"ec-topicpath__divider\">・</li>
";
}
// line 809
echo " <li>
<a href=\"";
// line 810
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("photo-product_list", ["category_id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 811
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 811, $this->source); })()), "request", [], "any", false, false, false, 811), "query", [], "any", false, false, false, 811), "get", [0 => "category_id"], "method", false, false, false, 811), "color_types[]" => // line 812
$context["color_type"]]), "html", null, true);
// line 813
echo "#contents-list\">
";
// line 814
echo twig_escape_filter($this->env, $context["color_type"], "html", null, true);
echo "撮影
</a>
</li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['color_type'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 818
echo " ";
}
// line 819
echo "
";
// line 821
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 821, $this->source); })()), "request", [], "any", false, false, false, 821), "query", [], "any", false, false, false, 821), "get", [0 => "features"], "method", false, false, false, 821)) {
// line 822
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 822, $this->source); })()), "request", [], "any", false, false, false, 822), "query", [], "any", false, false, false, 822), "get", [0 => "features"], "method", false, false, false, 822));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["feature"]) {
// line 823
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 823)) {
// line 824
echo " <li class=\"ec-topicpath__divider\">></li>
";
} else {
// line 826
echo " <li class=\"ec-topicpath__divider\">・</li>
";
}
// line 828
echo " <li>
<a href=\"";
// line 829
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("photo-product_list", ["category_id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 830
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 830, $this->source); })()), "request", [], "any", false, false, false, 830), "query", [], "any", false, false, false, 830), "get", [0 => "category_id"], "method", false, false, false, 830), "features[]" => // line 831
$context["feature"]]), "html", null, true);
// line 832
echo "#contents-list\">
";
// line 833
echo twig_escape_filter($this->env, $context["feature"], "html", null, true);
echo "
</a>
</li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['feature'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 837
echo " ";
}
// line 838
echo " </ol>
</div>
<!-- カテゴリ検索 -->
";
// line 841
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.', 841, $this->source); })()), "request", [], "any", false, false, false, 841), "query", [], "any", false, false, false, 841), "get", [0 => "category_id"], "method", false, false, false, 841) || 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.', 841, $this->source); })()), "request", [], "any", false, false, false, 841), "query", [], "any", false, false, false, 841), "get", [0 => "search_parent_id"], "method", false, false, false, 841))) {
// line 842
echo " <form action=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("photo-product_list");
echo "#contents-list\" method=\"get\" class=\"tab\" >
<ul class=\"tab-list\">
";
// line 844
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories", $context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.', 844, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["tab"]) {
// line 845
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["tab"], "Children", [], "any", false, false, false, 845));
foreach ($context['_seq'] as $context["_key"] => $context["children"]) {
// line 846
echo " ";
$context["children_ids"] = [];
// line 847
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["children"], "Children", [], "any", false, false, false, 847));
foreach ($context['_seq'] as $context["_key"] => $context["grandChild"]) {
// line 848
echo " ";
$context["children_ids"] = twig_array_merge((isset($context["children_ids"]) || array_key_exists("children_ids", $context) ? $context["children_ids"] : (function () { throw new RuntimeError('Variable "children_ids" does not exist.', 848, $this->source); })()), [0 => twig_get_attribute($this->env, $this->source, $context["grandChild"], "id", [], "any", false, false, false, 848)]);
// line 849
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['grandChild'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 850
echo " ";
if ((((twig_get_attribute($this->env, $this->source, $context["children"], "id", [], "any", false, false, false, 850) == 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.', 850, $this->source); })()), "request", [], "any", false, false, false, 850), "query", [], "any", false, false, false, 850), "get", [0 => "category_id"], "method", false, false, false, 850)) || (twig_get_attribute($this->env, $this->source, // line 851
$context["children"], "id", [], "any", false, false, false, 851) == 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.', 851, $this->source); })()), "request", [], "any", false, false, false, 851), "query", [], "any", false, false, false, 851), "get", [0 => "search_parent_id"], "method", false, false, false, 851))) || twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 852
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 852, $this->source); })()), "request", [], "any", false, false, false, 852), "query", [], "any", false, false, false, 852), "get", [0 => "category_id"], "method", false, false, false, 852), (isset($context["children_ids"]) || array_key_exists("children_ids", $context) ? $context["children_ids"] : (function () { throw new RuntimeError('Variable "children_ids" does not exist.', 852, $this->source); })())))) {
// line 854
echo " <li class=\"tab-item active\" tabindex=\"0\" id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["children"], "id", [], "any", false, false, false, 854), "html", null, true);
echo "\">
<a href=\"";
// line 855
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("photo-product_list", ["category_id" => twig_get_attribute($this->env, $this->source, $context["children"], "id", [], "any", false, false, false, 855)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["children"], "name", [], "any", false, false, false, 855), "html", null, true);
echo "</a>
</li>
";
} else {
// line 858
echo " <li class=\"tab-item\" tabindex=\"0\" id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["children"], "id", [], "any", false, false, false, 858), "html", null, true);
echo "\">
<a href=\"";
// line 859
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("photo-product_list", ["category_id" => twig_get_attribute($this->env, $this->source, $context["children"], "id", [], "any", false, false, false, 859)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["children"], "name", [], "any", false, false, false, 859), "html", null, true);
echo "</a>
</li>
";
}
// line 862
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['children'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 863
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tab'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 864
echo " </ul>
<div class=\"search-form-box\">
<section id=\"freeword\" class=\"search-section js-accordion\" data-open=\"1\">
<header class=\"search-section__header\">
<div class=\"search-title\">
<img src=\"";
// line 869
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/icon/btn_ic_search.svg ", "user_data"), "html", null, true);
echo "\" class=\"ic\" style=\"width: auto\"><h3>フリーワード検索</h3>
</div>
<button type=\"button\"
class=\"accordion-toggle js-accordion-toggle\"
aria-controls=\"freeword-panel\"
aria-expanded=\"true\"
title=\"閉じる\">
<span class=\"visually-hidden\">フリーワード検索を開閉</span>
</button>
</header>
<div id=\"freeword-panel\"
class=\"search-section__panel js-accordion-panel\"
aria-hidden=\"false\">
<div class=\"search-form-content\">
<div class=\"search-form-item\">
<input type=\"text\" name=\"name\" class=\"search-form-input\"
placeholder=\"駅名・線路名・形式・撮影者名など自由に検索できます\"
";
// line 886
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.', 886, $this->source); })()), "vars", [], "any", false, false, false, 886), "value", [], "any", false, false, false, 886), "name", [], "any", false, false, false, 886) && ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 887
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 887, $this->source); })()), "request", [], "any", false, false, false, 887), "query", [], "any", false, false, false, 887), "get", [0 => "search_parent_id"], "method", false, false, false, 887)) || !twig_test_empty(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.', 887, $this->source); })()), "request", [], "any", false, false, false, 887), "query", [], "any", false, false, false, 887), "get", [0 => "category_id"], "method", false, false, false, 887))))) {
// line 888
echo " value=\"";
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.', 888, $this->source); })()), "vars", [], "any", false, false, false, 888), "value", [], "any", false, false, false, 888), "name", [], "any", false, false, false, 888), "html", null, true);
echo "\"
";
}
// line 890
echo " >
</div>
</div>
<div class=\"sp-center\">
<button type=\"submit\" class=\"category-btn word-search\">
<img src=\"";
// line 895
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/icon/btn_ic_search.svg ", "user_data"), "html", null, true);
echo "\" alt=\"お気に入り\">
検索
</button>
</div>
</div>
</section>
<section id=\"details\" class=\"search-section js-accordion\" data-open=\"0\">
<header class=\"search-section__header\">
<div class=\"search-title\">
<img src=\"";
// line 905
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/icon/title_ic_filter.svg ", "user_data"), "html", null, true);
echo "\" class=\"ic\" style=\"width: auto\"><h3>詳細フィルター</h3>
</div>
<button type=\"button\"
class=\"accordion-toggle js-accordion-toggle\"
aria-controls=\"details-panel\"
aria-expanded=\"false\"
title=\"開く\">
<span class=\"visually-hidden\">詳細フィルターを開閉</span>
</button>
</header>
<div id=\"details-panel\"
class=\"search-section__panel js-accordion-panel\"
hidden aria-hidden=\"true\">
<div class=\"search-base-content\">
<div class=\"search-base-item\">
<h4 class=\"search-subtitle\"><label for=\"pref-select\">撮影地(都道府県)</label></h4>
<div class=\"select\">
<select name=\"prefectures\" id=\"pref-select\">
<option value=\"\">選択</option>
";
// line 925
if ( !twig_test_empty((isset($context["prefectures"]) || array_key_exists("prefectures", $context) ? $context["prefectures"] : (function () { throw new RuntimeError('Variable "prefectures" does not exist.', 925, $this->source); })()))) {
// line 926
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["prefectures"]) || array_key_exists("prefectures", $context) ? $context["prefectures"] : (function () { throw new RuntimeError('Variable "prefectures" does not exist.', 926, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["prefecture"]) {
// line 927
echo " <option value=\"";
echo twig_escape_filter($this->env, $context["prefecture"], "html", null, true);
echo "\"
";
// line 928
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.', 928, $this->source); })()), "request", [], "any", false, false, false, 928), "query", [], "any", false, false, false, 928), "get", [0 => "prefectures"], "method", false, false, false, 928) && ($context["prefecture"] == 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.', 928, $this->source); })()), "request", [], "any", false, false, false, 928), "query", [], "any", false, false, false, 928), "get", [0 => "prefectures"], "method", false, false, false, 928)))) {
// line 929
echo " selected
";
}
// line 930
echo "
>";
// line 931
echo twig_escape_filter($this->env, $context["prefecture"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['prefecture'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 933
echo " ";
} else {
// line 934
echo " <option value=\"\">該当なし</option>
";
}
// line 936
echo " </select>
</div>
</div>
<div class=\"search-base-item\">
<h4 class=\"search-subtitle\"><label for=\"period-select\">年代</label></h4>
<div class=\"select\">
<select name=\"photographing_period\" id=\"period-select\" >
<option value=\"\">選択</option>
";
// line 945
if ( !twig_test_empty((isset($context["photographing_periods"]) || array_key_exists("photographing_periods", $context) ? $context["photographing_periods"] : (function () { throw new RuntimeError('Variable "photographing_periods" does not exist.', 945, $this->source); })()))) {
// line 946
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, (isset($context["photographing_periods"]) || array_key_exists("photographing_periods", $context) ? $context["photographing_periods"] : (function () { throw new RuntimeError('Variable "photographing_periods" does not exist.', 946, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["photographing_period"]) {
// line 947
echo " <option value=\"";
echo twig_escape_filter($this->env, $context["photographing_period"], "html", null, true);
echo "\"
";
// line 948
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.', 948, $this->source); })()), "request", [], "any", false, false, false, 948), "query", [], "any", false, false, false, 948), "get", [0 => "photographing_period"], "method", false, false, false, 948) && ($context["photographing_period"] == 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.', 948, $this->source); })()), "request", [], "any", false, false, false, 948), "query", [], "any", false, false, false, 948), "get", [0 => "photographing_period"], "method", false, false, false, 948)))) {
// line 949
echo " selected
";
}
// line 950
echo "
>";
// line 951
echo twig_escape_filter($this->env, $context["photographing_period"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photographing_period'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 953
echo " ";
} else {
// line 954
echo " <option value=\"\">該当なし</option>
";
}
// line 956
echo " </select>
</div>
</div>
</div>
<div class=\"search-filter-content\">
<h4 class=\"search-subtitle\"><legend>撮影アングル</legend></h4>
<div class=\"search-filter-list\">
";
// line 964
if ( !twig_test_empty((isset($context["camera_angles"]) || array_key_exists("camera_angles", $context) ? $context["camera_angles"] : (function () { throw new RuntimeError('Variable "camera_angles" does not exist.', 964, $this->source); })()))) {
// line 965
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["camera_angles"]) || array_key_exists("camera_angles", $context) ? $context["camera_angles"] : (function () { throw new RuntimeError('Variable "camera_angles" does not exist.', 965, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["camera_angle"]) {
// line 966
echo " <label class=\"filter-checkbox-item\">
<input type=\"checkbox\" name=\"camera_angles[]\" value=\"";
// line 967
echo twig_escape_filter($this->env, $context["camera_angle"], "html", null, true);
echo "\"
";
// line 968
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.', 968, $this->source); })()), "request", [], "any", false, false, false, 968), "query", [], "any", false, false, false, 968), "get", [0 => "camera_angles"], "method", false, false, false, 968) && twig_in_filter($context["camera_angle"], 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.', 968, $this->source); })()), "request", [], "any", false, false, false, 968), "query", [], "any", false, false, false, 968), "get", [0 => "camera_angles"], "method", false, false, false, 968)))) {
// line 969
echo " checked
";
}
// line 970
echo "
>";
// line 971
echo twig_escape_filter($this->env, $context["camera_angle"], "html", null, true);
echo "
</label>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['camera_angle'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 974
echo " ";
} else {
// line 975
echo " <p>該当する検索候補がありません。</p>
";
}
// line 977
echo " </div>
<h4 class=\"search-subtitle\"><legend>カラー種別</legend></h4> ";
// line 980
echo " <div class=\"search-filter-list\">
";
// line 981
if ( !twig_test_empty((isset($context["color_types"]) || array_key_exists("color_types", $context) ? $context["color_types"] : (function () { throw new RuntimeError('Variable "color_types" does not exist.', 981, $this->source); })()))) {
// line 982
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["color_types"]) || array_key_exists("color_types", $context) ? $context["color_types"] : (function () { throw new RuntimeError('Variable "color_types" does not exist.', 982, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["color_type"]) {
// line 983
echo " <label class=\"filter-checkbox-item\">
<input type=\"checkbox\" name=\"color_types[]\" value=\"";
// line 984
echo twig_escape_filter($this->env, $context["color_type"], "html", null, true);
echo "\"
";
// line 985
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.', 985, $this->source); })()), "request", [], "any", false, false, false, 985), "query", [], "any", false, false, false, 985), "get", [0 => "color_types"], "method", false, false, false, 985) && twig_in_filter($context["color_type"], 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.', 985, $this->source); })()), "request", [], "any", false, false, false, 985), "query", [], "any", false, false, false, 985), "get", [0 => "color_types"], "method", false, false, false, 985)))) {
// line 986
echo " checked
";
}
// line 988
echo " >";
echo twig_escape_filter($this->env, $context["color_type"], "html", null, true);
echo "
</label>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['color_type'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 991
echo " ";
} else {
// line 992
echo " <p>該当する検索候補がありません。</p>
";
}
// line 994
echo " </div>
</div>
<div class=\"sp-center\">
<button type=\"submit\" class=\"category-btn word-search\">
<img src=\"";
// line 998
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/icon/btn_ic_search.svg ", "user_data"), "html", null, true);
echo "\" alt=\"お気に入り\">
検索
</button>
</div>
</div>
</section>
</div>
";
// line 1005
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.', 1005, $this->source); })()), "request", [], "any", false, false, false, 1005), "query", [], "any", false, false, false, 1005), "get", [0 => "category_id"], "method", false, false, false, 1005) || 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.', 1005, $this->source); })()), "request", [], "any", false, false, false, 1005), "query", [], "any", false, false, false, 1005), "get", [0 => "search_parent_id"], "method", false, false, false, 1005))) {
// line 1006
echo " <input type=\"hidden\" name=\"category_id\" value=\"";
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1006, $this->source); })()), "request", [], "any", false, false, false, 1006), "query", [], "any", false, false, false, 1006), "get", [0 => "category_id"], "method", false, false, false, 1006)) ? (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.', 1006, $this->source); })()), "request", [], "any", false, false, false, 1006), "query", [], "any", false, false, false, 1006), "get", [0 => "category_id"], "method", false, false, false, 1006)) : (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.', 1006, $this->source); })()), "request", [], "any", false, false, false, 1006), "query", [], "any", false, false, false, 1006), "get", [0 => "search_parent_id"], "method", false, false, false, 1006))), "html", null, true);
echo "\">
";
}
// line 1008
echo " </form>
";
}
// line 1010
echo "<section class=\"contents-list\" id=\"contents-list\">
\t<!-- 商品リスト -->
\t<div class=\"list-view\">
\t\t<div class=\"list-title\">
\t\t <div class=\"list-title-left\">
\t\t ";
// line 1017
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1017, $this->source); })()), "request", [], "any", false, false, false, 1017), "query", [], "any", false, false, false, 1017), "get", [0 => "category_id"], "method", false, false, false, 1017)) {
// line 1018
echo " <h2 class=\"ec-topicpath__title\">";
echo twig_escape_filter($this->env, 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.', 1018, $this->source); })()), "name", [], "any", false, false, false, 1018), "html", null, true);
echo "<span>の写真</span></h2>
";
// line 1019
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.', 1019, $this->source); })()), "vars", [], "any", false, false, false, 1019), "value", [], "any", false, false, false, 1019), "name", [], "any", false, false, false, 1019)) {
// line 1020
echo " <p class=\"ec-topicpath__item\"> > ";
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.', 1020, $this->source); })()), "vars", [], "any", false, false, false, 1020), "value", [], "any", false, false, false, 1020), "name", [], "any", false, false, false, 1020), "html", null, true);
echo "</p>
";
}
// line 1022
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1022, $this->source); })()), "request", [], "any", false, false, false, 1022), "query", [], "any", false, false, false, 1022), "get", [0 => "prefectures"], "method", false, false, false, 1022)) {
// line 1023
echo " <p class=\"ec-topicpath__item\"> > ";
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1023, $this->source); })()), "request", [], "any", false, false, false, 1023), "query", [], "any", false, false, false, 1023), "get", [0 => "prefectures"], "method", false, false, false, 1023), "html", null, true);
echo "</p>
";
}
// line 1025
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1025, $this->source); })()), "request", [], "any", false, false, false, 1025), "query", [], "any", false, false, false, 1025), "get", [0 => "operator"], "method", false, false, false, 1025)) {
// line 1026
echo " <p class=\"ec-topicpath__item\"> > ";
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1026, $this->source); })()), "request", [], "any", false, false, false, 1026), "query", [], "any", false, false, false, 1026), "get", [0 => "operator"], "method", false, false, false, 1026), "html", null, true);
echo "</p>
";
}
// line 1028
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1028, $this->source); })()), "request", [], "any", false, false, false, 1028), "query", [], "any", false, false, false, 1028), "get", [0 => "photographing_period"], "method", false, false, false, 1028)) {
// line 1029
echo " <p class=\"ec-topicpath__item\"> > ";
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1029, $this->source); })()), "request", [], "any", false, false, false, 1029), "query", [], "any", false, false, false, 1029), "get", [0 => "photographing_period"], "method", false, false, false, 1029), "html", null, true);
echo "</p>
";
}
// line 1031
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1031, $this->source); })()), "request", [], "any", false, false, false, 1031), "query", [], "any", false, false, false, 1031), "get", [0 => "locations"], "method", false, false, false, 1031)) {
// line 1032
echo " <p class=\"ec-topicpath__item\">
";
// line 1033
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 1033, $this->source); })()), "request", [], "any", false, false, false, 1033), "query", [], "any", false, false, false, 1033), "get", [0 => "locations"], "method", false, false, false, 1033));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["location"]) {
// line 1034
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 1034)) {
// line 1035
echo " > ";
echo twig_escape_filter($this->env, $context["location"], "html", null, true);
echo "
";
} else {
// line 1037
echo " <span class=\"ec-topicpath__item\">・";
echo twig_escape_filter($this->env, $context["location"], "html", null, true);
echo "</span>
";
}
// line 1039
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['location'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1040
echo " </p>
";
}
// line 1042
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1042, $this->source); })()), "request", [], "any", false, false, false, 1042), "query", [], "any", false, false, false, 1042), "get", [0 => "weathers"], "method", false, false, false, 1042)) {
// line 1043
echo " <p class=\"ec-topicpath__item\">
";
// line 1044
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 1044, $this->source); })()), "request", [], "any", false, false, false, 1044), "query", [], "any", false, false, false, 1044), "get", [0 => "weathers"], "method", false, false, false, 1044));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["weather"]) {
// line 1045
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 1045)) {
// line 1046
echo " > ";
echo twig_escape_filter($this->env, $context["weather"], "html", null, true);
echo "
";
} else {
// line 1048
echo " <span class=\"ec-topicpath__item\">・";
echo twig_escape_filter($this->env, $context["weather"], "html", null, true);
echo "</span>
";
}
// line 1050
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['weather'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1051
echo " </p>
";
}
// line 1053
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1053, $this->source); })()), "request", [], "any", false, false, false, 1053), "query", [], "any", false, false, false, 1053), "get", [0 => "camera_angles"], "method", false, false, false, 1053)) {
// line 1054
echo " <p class=\"ec-topicpath__item\">
";
// line 1055
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 1055, $this->source); })()), "request", [], "any", false, false, false, 1055), "query", [], "any", false, false, false, 1055), "get", [0 => "camera_angles"], "method", false, false, false, 1055));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["camera_angle"]) {
// line 1056
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 1056)) {
// line 1057
echo " > ";
echo twig_escape_filter($this->env, $context["camera_angle"], "html", null, true);
echo "
";
} else {
// line 1059
echo " <span class=\"ec-topicpath__item\">・";
echo twig_escape_filter($this->env, $context["camera_angle"], "html", null, true);
echo "</span>
";
}
// line 1061
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['camera_angle'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1062
echo " </p>
";
}
// line 1064
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1064, $this->source); })()), "request", [], "any", false, false, false, 1064), "query", [], "any", false, false, false, 1064), "get", [0 => "color_types"], "method", false, false, false, 1064)) {
// line 1065
echo " <p class=\"ec-topicpath__item\">
";
// line 1066
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 1066, $this->source); })()), "request", [], "any", false, false, false, 1066), "query", [], "any", false, false, false, 1066), "get", [0 => "color_types"], "method", false, false, false, 1066));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["color_type"]) {
// line 1067
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 1067)) {
// line 1068
echo " > ";
echo twig_escape_filter($this->env, $context["color_type"], "html", null, true);
echo "
";
} else {
// line 1070
echo " <span class=\"ec-topicpath__item\">・";
echo twig_escape_filter($this->env, $context["color_type"], "html", null, true);
echo "</span>
";
}
// line 1072
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['color_type'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1073
echo " </p>
";
}
// line 1075
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1075, $this->source); })()), "request", [], "any", false, false, false, 1075), "query", [], "any", false, false, false, 1075), "get", [0 => "features"], "method", false, false, false, 1075)) {
// line 1076
echo " <p class=\"ec-topicpath__item\">
";
// line 1077
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 1077, $this->source); })()), "request", [], "any", false, false, false, 1077), "query", [], "any", false, false, false, 1077), "get", [0 => "features"], "method", false, false, false, 1077));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["feature"]) {
// line 1078
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 1078)) {
// line 1079
echo " > ";
echo twig_escape_filter($this->env, $context["feature"], "html", null, true);
echo "
";
} else {
// line 1081
echo " <span class=\"ec-topicpath__item\">・";
echo twig_escape_filter($this->env, $context["feature"], "html", null, true);
echo "</span>
";
}
// line 1083
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['feature'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1084
echo " </p>
";
}
// line 1086
echo " ";
} else {
// line 1087
echo " ";
// line 1088
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.', 1088, $this->source); })()), "vars", [], "any", false, false, false, 1088), "value", [], "any", false, false, false, 1088), "name", [], "any", false, false, false, 1088)) {
// line 1089
echo " <div>
<h2 class=\"ec-topicpath__title\">「";
// line 1090
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.', 1090, $this->source); })()), "vars", [], "any", false, false, false, 1090), "value", [], "any", false, false, false, 1090), "name", [], "any", false, false, false, 1090), "html", null, true);
echo "」<span style=\"padding: 0;\">で検索</span></h2>
</div>
";
} else {
// line 1093
echo " ";
// line 1094
echo " <h2 class=\"ec-topicpath__title\">すべての写真</h2>
";
}
// line 1096
echo " ";
}
// line 1097
echo " </div>
<div class=\"list-title-right\">
";
// line 1099
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.', 1099, $this->source); })()), "totalItemCount", [], "any", false, false, false, 1099) > 0)) {
// line 1100
echo " ";
$context["start"] = (((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.', 1100, $this->source); })()), "currentPageNumber", [], "any", false, false, false, 1100) - 1) * 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.', 1100, $this->source); })()), "getItemNumberPerPage", [], "any", false, false, false, 1100)) + 1);
// line 1101
echo " ";
} else {
// line 1102
echo " ";
$context["start"] = 0;
// line 1103
echo " ";
}
// line 1104
echo " ";
$context["end"] = min((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.', 1104, $this->source); })()), "currentPageNumber", [], "any", false, false, false, 1104) * 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.', 1104, $this->source); })()), "getItemNumberPerPage", [], "any", false, false, false, 1104)), 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.', 1104, $this->source); })()), "totalItemCount", [], "any", false, false, false, 1104));
// line 1105
echo " <p>(";
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.', 1105, $this->source); })()), "totalItemCount", [], "any", false, false, false, 1105), "html", null, true);
echo "件中";
echo twig_escape_filter($this->env, (isset($context["start"]) || array_key_exists("start", $context) ? $context["start"] : (function () { throw new RuntimeError('Variable "start" does not exist.', 1105, $this->source); })()), "html", null, true);
echo "件-";
echo twig_escape_filter($this->env, (isset($context["end"]) || array_key_exists("end", $context) ? $context["end"] : (function () { throw new RuntimeError('Variable "end" does not exist.', 1105, $this->source); })()), "html", null, true);
echo "件を表示)</p>
</div>
\t\t</div>
\t\t<!-- カテゴリ説明 -->
\t\t";
// line 1111
echo "\t\t";
// line 1112
echo "\t\t";
// line 1113
echo " ";
// line 1114
echo " ";
// line 1115
echo " ";
// line 1116
echo " ";
// line 1117
echo " ";
// line 1118
echo "\t\t";
// line 1119
echo "
\t\t<!-- リストエリア -->
\t\t";
// line 1121
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.', 1121, $this->source); })()), "totalItemCount", [], "any", false, false, false, 1121) > 0)) {
// line 1122
echo "\t\t\t<div>
\t\t\t <div class=\"list-area\">
\t\t\t ";
// line 1124
$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.', 1124, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 1125
echo " <div class=\"card-1\">
<a href=\"";
// line 1126
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("photo-product_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 1126)]), "html", null, true);
echo "\">
<div class=\"image-wrapper\">
<img src=\"";
// line 1128
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, 1128)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 1128), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 1128) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
";
// line 1129
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 1129) == 0)) {
// line 1130
echo " <div class=\"label-free\">無料</div>
";
}
// line 1132
echo " </div>
";
// line 1134
echo " ";
// line 1135
echo " ";
// line 1136
echo " ";
// line 1137
echo " ";
// line 1138
echo " </a>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1141
echo " </div>
\t\t\t<!-- ページネーション -->
\t\t\t";
// line 1143
$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.', 1143, $this->source); })()), "paginationData", [], "any", false, false, false, 1143);
// line 1144
echo "
\t\t\t";
// line 1145
if ((twig_get_attribute($this->env, $this->source, (isset($context["pages"]) || array_key_exists("pages", $context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.', 1145, $this->source); })()), "pageCount", [], "any", false, false, false, 1145) > 1)) {
// line 1146
echo " <div class=\"ec-pager pagination\">
";
// line 1148
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["pages"] ?? null), "previous", [], "any", true, true, false, 1148)) {
// line 1149
echo " <a class=\"page-return\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 1150
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1150, $this->source); })()), "request", [], "any", false, false, false, 1150), "attributes", [], "any", false, false, false, 1150), "get", [0 => "_route"], "method", false, false, false, 1150), twig_array_merge(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 1151
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1151, $this->source); })()), "request", [], "any", false, false, false, 1151), "query", [], "any", false, false, false, 1151), "all", [], "any", false, false, false, 1151), ["pageno" => twig_get_attribute($this->env, $this->source, (isset($context["pages"]) || array_key_exists("pages", $context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.', 1151, $this->source); })()), "previous", [], "any", false, false, false, 1151)])), "html", null, true);
echo "#contents-list\">←</a>
";
}
// line 1153
echo " <div class=\"page-num\">
";
// line 1154
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["pages"]) || array_key_exists("pages", $context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.', 1154, $this->source); })()), "pagesInRange", [], "any", false, false, false, 1154));
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
// line 1155
echo " ";
if (($context["page"] == twig_get_attribute($this->env, $this->source, (isset($context["pages"]) || array_key_exists("pages", $context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.', 1155, $this->source); })()), "current", [], "any", false, false, false, 1155))) {
// line 1156
echo " <a class=\"active\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 1157
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1157, $this->source); })()), "request", [], "any", false, false, false, 1157), "attributes", [], "any", false, false, false, 1157), "get", [0 => "_route"], "method", false, false, false, 1157), twig_array_merge(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 1158
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1158, $this->source); })()), "request", [], "any", false, false, false, 1158), "query", [], "any", false, false, false, 1158), "all", [], "any", false, false, false, 1158), ["pageno" => $context["page"]])), "html", null, true);
echo "#contents-list\"> ";
echo twig_escape_filter($this->env, $context["page"], "html", null, true);
echo " </a>
";
} else {
// line 1160
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 1161
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1161, $this->source); })()), "request", [], "any", false, false, false, 1161), "attributes", [], "any", false, false, false, 1161), "get", [0 => "_route"], "method", false, false, false, 1161), twig_array_merge(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 1162
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1162, $this->source); })()), "request", [], "any", false, false, false, 1162), "query", [], "any", false, false, false, 1162), "all", [], "any", false, false, false, 1162), ["pageno" => $context["page"]])), "html", null, true);
echo "#contents-list\"> ";
echo twig_escape_filter($this->env, $context["page"], "html", null, true);
echo " </a>
";
}
// line 1164
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1165
echo " </div>
";
// line 1167
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["pages"] ?? null), "next", [], "any", true, true, false, 1167)) {
// line 1168
echo " <a class=\"page-advance\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 1169
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1169, $this->source); })()), "request", [], "any", false, false, false, 1169), "attributes", [], "any", false, false, false, 1169), "get", [0 => "_route"], "method", false, false, false, 1169), twig_array_merge(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 1170
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1170, $this->source); })()), "request", [], "any", false, false, false, 1170), "query", [], "any", false, false, false, 1170), "all", [], "any", false, false, false, 1170), ["pageno" => twig_get_attribute($this->env, $this->source, (isset($context["pages"]) || array_key_exists("pages", $context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.', 1170, $this->source); })()), "next", [], "any", false, false, false, 1170)])), "html", null, true);
echo "#contents-list\">→</a>
";
}
// line 1172
echo " </div>
";
}
// line 1174
echo " \t </div>
\t";
} else {
// line 1176
echo " <p class=\"no_item\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html", null, true);
echo "</p>
";
}
// line 1178
echo "
<!-- カテゴリ説明 -->
";
// line 1181
echo "\t\t";
// line 1182
echo "\t\t";
// line 1183
echo " ";
// line 1184
echo " ";
// line 1185
echo " ";
// line 1186
echo " ";
// line 1187
echo " ";
// line 1188
echo "\t\t";
// line 1189
echo " </div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@user_data/photo-product_list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 2309 => 1189, 2307 => 1188, 2305 => 1187, 2303 => 1186, 2301 => 1185, 2299 => 1184, 2297 => 1183, 2295 => 1182, 2293 => 1181, 2289 => 1178, 2283 => 1176, 2279 => 1174, 2275 => 1172, 2270 => 1170, 2269 => 1169, 2267 => 1168, 2264 => 1167, 2261 => 1165, 2255 => 1164, 2248 => 1162, 2247 => 1161, 2245 => 1160, 2238 => 1158, 2237 => 1157, 2235 => 1156, 2232 => 1155, 2228 => 1154, 2225 => 1153, 2220 => 1151, 2219 => 1150, 2217 => 1149, 2214 => 1148, 2211 => 1146, 2209 => 1145, 2206 => 1144, 2204 => 1143, 2200 => 1141, 2184 => 1138, 2182 => 1137, 2180 => 1136, 2178 => 1135, 2176 => 1134, 2173 => 1132, 2169 => 1130, 2167 => 1129, 2157 => 1128, 2152 => 1126, 2149 => 1125, 2132 => 1124, 2128 => 1122, 2126 => 1121, 2122 => 1119, 2120 => 1118, 2118 => 1117, 2116 => 1116, 2114 => 1115, 2112 => 1114, 2110 => 1113, 2108 => 1112, 2106 => 1111, 2093 => 1105, 2090 => 1104, 2087 => 1103, 2084 => 1102, 2081 => 1101, 2078 => 1100, 2076 => 1099, 2072 => 1097, 2069 => 1096, 2065 => 1094, 2063 => 1093, 2057 => 1090, 2054 => 1089, 2051 => 1088, 2049 => 1087, 2046 => 1086, 2042 => 1084, 2028 => 1083, 2022 => 1081, 2016 => 1079, 2013 => 1078, 1996 => 1077, 1993 => 1076, 1990 => 1075, 1986 => 1073, 1972 => 1072, 1966 => 1070, 1960 => 1068, 1957 => 1067, 1940 => 1066, 1937 => 1065, 1934 => 1064, 1930 => 1062, 1916 => 1061, 1910 => 1059, 1904 => 1057, 1901 => 1056, 1884 => 1055, 1881 => 1054, 1878 => 1053, 1874 => 1051, 1860 => 1050, 1854 => 1048, 1848 => 1046, 1845 => 1045, 1828 => 1044, 1825 => 1043, 1822 => 1042, 1818 => 1040, 1804 => 1039, 1798 => 1037, 1792 => 1035, 1789 => 1034, 1772 => 1033, 1769 => 1032, 1766 => 1031, 1760 => 1029, 1757 => 1028, 1751 => 1026, 1748 => 1025, 1742 => 1023, 1739 => 1022, 1733 => 1020, 1731 => 1019, 1726 => 1018, 1723 => 1017, 1715 => 1010, 1711 => 1008, 1705 => 1006, 1703 => 1005, 1693 => 998, 1687 => 994, 1683 => 992, 1680 => 991, 1670 => 988, 1666 => 986, 1664 => 985, 1660 => 984, 1657 => 983, 1652 => 982, 1650 => 981, 1647 => 980, 1643 => 977, 1639 => 975, 1636 => 974, 1627 => 971, 1624 => 970, 1620 => 969, 1618 => 968, 1614 => 967, 1611 => 966, 1606 => 965, 1604 => 964, 1594 => 956, 1590 => 954, 1587 => 953, 1579 => 951, 1576 => 950, 1572 => 949, 1570 => 948, 1565 => 947, 1560 => 946, 1558 => 945, 1547 => 936, 1543 => 934, 1540 => 933, 1532 => 931, 1529 => 930, 1525 => 929, 1523 => 928, 1518 => 927, 1513 => 926, 1511 => 925, 1488 => 905, 1475 => 895, 1468 => 890, 1462 => 888, 1460 => 887, 1459 => 886, 1439 => 869, 1432 => 864, 1426 => 863, 1420 => 862, 1412 => 859, 1407 => 858, 1399 => 855, 1394 => 854, 1392 => 852, 1391 => 851, 1389 => 850, 1383 => 849, 1380 => 848, 1375 => 847, 1372 => 846, 1367 => 845, 1363 => 844, 1357 => 842, 1355 => 841, 1350 => 838, 1347 => 837, 1329 => 833, 1326 => 832, 1324 => 831, 1323 => 830, 1322 => 829, 1319 => 828, 1315 => 826, 1311 => 824, 1308 => 823, 1290 => 822, 1287 => 821, 1284 => 819, 1281 => 818, 1263 => 814, 1260 => 813, 1258 => 812, 1257 => 811, 1256 => 810, 1253 => 809, 1249 => 807, 1245 => 805, 1242 => 804, 1224 => 803, 1221 => 802, 1218 => 800, 1215 => 799, 1197 => 795, 1194 => 794, 1192 => 793, 1191 => 792, 1190 => 791, 1187 => 790, 1183 => 788, 1179 => 786, 1176 => 785, 1158 => 784, 1155 => 783, 1152 => 781, 1149 => 780, 1131 => 776, 1128 => 775, 1126 => 774, 1125 => 773, 1124 => 772, 1121 => 771, 1117 => 769, 1113 => 767, 1110 => 766, 1092 => 765, 1089 => 764, 1086 => 762, 1083 => 761, 1065 => 757, 1062 => 756, 1060 => 755, 1059 => 754, 1058 => 753, 1055 => 752, 1051 => 750, 1047 => 748, 1044 => 747, 1026 => 746, 1023 => 745, 1020 => 743, 1013 => 739, 1010 => 738, 1008 => 737, 1007 => 736, 1006 => 735, 1002 => 733, 999 => 732, 996 => 730, 989 => 726, 986 => 725, 984 => 724, 983 => 723, 982 => 722, 978 => 720, 975 => 719, 972 => 717, 965 => 713, 962 => 712, 960 => 711, 959 => 710, 958 => 709, 954 => 707, 951 => 706, 948 => 704, 939 => 702, 936 => 701, 933 => 700, 930 => 698, 928 => 697, 926 => 696, 924 => 695, 922 => 694, 920 => 693, 918 => 692, 916 => 691, 914 => 690, 912 => 689, 910 => 688, 908 => 687, 906 => 686, 904 => 685, 902 => 684, 900 => 683, 898 => 682, 896 => 681, 894 => 680, 892 => 679, 890 => 678, 888 => 677, 886 => 676, 884 => 675, 882 => 674, 879 => 673, 865 => 672, 855 => 669, 849 => 668, 843 => 666, 825 => 665, 823 => 664, 816 => 662, 812 => 660, 810 => 659, 807 => 658, 804 => 657, 801 => 656, 798 => 655, 788 => 654, 650 => 525, 640 => 518, 609 => 490, 581 => 464, 567 => 463, 559 => 462, 542 => 461, 538 => 459, 528 => 458, 78 => 15, 73 => 14, 63 => 13, 52 => 11, 50 => 456, 37 => 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' %}
{% block stylesheet %}
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/stock-photo/contents-list.css', 'user_data') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/stock-photo/main_module.css', 'user_data') }}\">
<style>
.ec-topicpath{
display: flex;
flex-wrap: wrap;
margin: 30px 10% 0;
}
.ec-topicpath a{
color: #109F98;
}
.ec-topicpath__divider{
margin: 0 5px;
}
.category-btn img{
margin-right: 15px;
}
.tab {
margin: 30px 15% 0;
}
@media screen and (max-width:768px){
.tab {
margin: 10px 3% 20px 3%;
}
}
.lead-sentence {
display: flex;
flex-wrap: wrap;
}
@media screen and (max-width:768px){
.tab img{
width: 15%;
}
.category-btn{
margin-bottom: 15px;
}
}
.tab-list {
display: flex;
gap: 1px;
}
@media screen and (max-width:768px){
.tab-list{
flex-direction: row;
}
}
.tab-item {
border-radius: 5px 5px 0 0;
background-color: #109F98;
border-top: solid 1px #109F98;
border-right: solid 1px #109F98;
border-left: solid 1px #109F98;
}
.tab-item a{
color: #FFF;
padding: 0.5em 1.2em;
display: block;
}
@media screen and (max-width:768px){
.tab-item{
flex: 1 1 auto;
min-width: 0;
}
.tab-item a{
margin: 8px 0;
text-align: center;
white-space: nowrap;
padding: 0.4em 0.6em;
}
}
@media screen and (max-width:570px){
.tab-item{
font-size: 12px;
line-height: 2.5;
}
}
@media screen and (max-width:450px){
.tab-item{
font-size: 10px;
}
}
.tab-content:has(.tab-panel.active){
display: flex;
justify-content: space-between;
border-top:solid 1px #109F98;
border-right:solid 1px #109F98;
border-left:solid 1px #109F98;
border-radius: 0 8px 0 0;
}
.tab-content:not(:has(.tab-panel.active)){
display: none;
}
@media screen and (max-width:768px){
.tab-content{
flex-direction: column;
border-radius: 0;
}
}
.tab-panel {
display: none;
}
.tab-item.active {
background-color: #fff;
font-weight: bold;
position: relative;
}
.tab-item.active a{
color: #109F98;
}
.tab-item.active::before{
content: \"\";
width: 100%;
border-bottom: 4px solid #FFF;
position: absolute;
bottom: -3px;
left: 0;
}
.tab-panel.active {
display: flex;
padding: 3%;
flex-wrap: wrap;
gap:20px 20px;
flex: 10;
}
@media screen and (max-width:768px){
.tab-panel.active{
justify-content: center;
}
}
.tab-panel.active h2 {
font-size: 20px;
font-weight: bold;
}
.search-form-box{
border: solid 1px #109F98;
border-radius: 0 0 8px 8px;
}
.tab-content:not(:has(.active)) + .search-form-box{
border-radius: 0 8px 8px 8px;
}
@media screen and (max-width:768px){
.search-form-box .search-form-content{
display: flex;
justify-content: space-between;
flex-direction: column;
}
}
.search-form-box .search-form-item{
margin-left: 3%;
margin-right: calc(3% + 20px);
}
@media screen and (max-width:768px){
.search-form-box .search-form-item{
margin: 0 auto;
}
}
.search-form-box .search-form-input{
-webkit-appearance: none;
-moz-appearance:none;
appearance: none;
border:1px solid #109F98;
border-radius:25px;
width: 100%;
padding-left: 20px;
height: 36px;
background-color: #f5f5f5;
}
@media screen and (max-width:768px){
.search-form-box .search-form-input{
width: 88vw;
box-sizing: border-box;
}
.search-form-box .search-form-input::placeholder{
font-size: 2vw;
}
}
select{
background:none;
appearance: none;
font:inherit;
padding:9.5px 10px;
border:1px solid #109F98;
box-sizing: border-box;
width: 250px;
border-radius:2px;
color: #111111;
}
.select {
display: inline-block;
position: relative;
vertical-align: middle;
width: 100%;
}
.select::before {
position: absolute;
top: 18px;
right: 16px;
width: 0;
height: 0;
border-width: 10px 5px 0 5px;
border-style: solid;
border-color: #109F98 transparent transparent transparent;
content: \"\";
pointer-events: none;
}
/*検索セクション内にあるアイコン(svg)カラー指定*/
.search-form-box .ic {
filter: brightness(0) saturate(100%) invert(68%) sepia(68%) saturate(6159%) hue-rotate(145deg) brightness(90%) contrast(87%);
}
/* 各条件見出し位置調整 */
.search-form-box .search-title {
padding: 15px 0 12px 0;
margin: 0 3%;
display: flex;
align-items: center;
gap: 6px;
color: #111111;
}
/*セクション分け用のボーダー*/
.search-form-box .search-title {
border-top: 1px solid #D5DAED;
}
/*1番目(フリーワード検索)には不要なので非表示*/
.search-form-box .search-title:first-child {
border-top: none;
}
.search-subtitle {
margin: 16px 0;
}
/*各条件の副題にh2のトーン寄せ*/
.search-subtitle label,
.search-subtitle legend {
border: solid 2px #109F98;
border-right: none;
border-top: none;
border-bottom: none;
text-align: left;
padding: 0 0 0 8px;
color: #111111;
}
.search-base-content,
.search-filter-content {
margin: 0 3% 3% 3%;
}
/*基本条件*/
.search-base-content {
display: flex;
flex-direction: row;
gap: 16px;
}
/* 上記でselectに指定しているスタイルを基本条件用に上書き */
.search-base-item select {
border: 1px solid #D5DAED;
}
@media (max-width: 768px) {
.search-base-item select {
display: flex;
flex-wrap: wrap;
}
.search-base-item {
flex: 1 1 200px;
max-width: 100%;
}
.search-base-item select {
width: 100%;
}
}
.search-filter-list {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
/*詳細フィルターのチェックボックス並べる数*/
/*PC表示:10個のチェックボックスが横に5個 × 2行*/
/*スマホ表示:10個のチェックボックスが横に3個 × 約4行(1個余りになるため)*/
.filter-checkbox-item {
display: flex;
align-items: center;
gap: 6px;
align-items: baseline;
width: calc(100% / 5 - 10px); /* PC: 5列 */
color: #111111;
}
@media (max-width: 768px) {
.filter-checkbox-item {
width: calc(100% / 3 - 10px); /* SP: 3列 */
}
}
@media (max-width: 450px) {
.filter-checkbox-item {
font-size: max(3.6vw, 12px);
}
}
.image-wrapper {
position: relative;
}
.label-free {
position: absolute;
top: 0;
right: 0;
background-color: #e60012;
color: #fff;
font-weight: bold;
font-size: 14px;
padding: 3px 10px;
border-radius: 0 0 0 4px;
z-index: 1;
}
.ec-topicpath__item{
font-size: 17px;
}
/* ▼ アコーディオン用 追加CSS ▼ */
:root{
--acc-green: #109F98;
--acc-line: #0f8a80;
}
.search-section + .search-section{
border-top: 1px solid var(--acc-line);
}
.search-section__header{
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
}
.accordion-toggle{
inline-size: 28px;
block-size: 28px;
display: grid;
place-items: center;
position: relative;
cursor: pointer;
border: 1px solid var(--acc-green);
border-radius: 4px;
background: var(--acc-green);
}
.accordion-toggle::before{
content: \"\";
display: block;
inline-size: 8px;
block-size: 8px;
border-right: 2px solid #fff;
border-bottom: 2px solid #fff;
transform: rotate(45deg); /* ▼ */
transition: transform .2s ease;
}
.is-open .accordion-toggle{
background: #fff;
border-color: var(--acc-green);
}
.is-open .accordion-toggle::before{
border-right-color: var(--acc-green);
border-bottom-color: var(--acc-green);
transform: rotate(-135deg); /* ▲ */
}
.search-section__panel{
padding: 12px;
}
.visually-hidden{
position: absolute !important;
inline-size: 1px;
block-size: 1px;
margin: -1px;
padding: 0;
border: 0;
clip: rect(0 0 0 0);
overflow: hidden;
}
.accordion-toggle:hover{ filter: brightness(0.98); }
.accordion-toggle:focus-visible{
outline: 2px solid var(--acc-line);
outline-offset: 2px;
}
/* SPだけボタンを中央寄せ */
@media (max-width: 840px){
.sp-center{
display: flex;
justify-content: center;
}
}
</style>
{% endblock %}
{% set body_class = 'product_page' %}
{% block javascript %}
<script>
eccube.productsClassCategories = {
{% for Product in pagination %}
\"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
{% endfor %}
};
\$(function() {
// 表示件数を変更
\$('.disp-number').change(function() {
var dispNumber = \$(this).val();
\$('#disp_number').val(dispNumber);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
// // 並び順を変更
\$('.order-by').change(function() {
var orderBy = \$(this).val();
\$('#orderby').val(orderBy);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
\$('.add-cart').on('click', function(e) {
var \$form = \$(this).parents('li').find('form');
// 個数フォームのチェック
var \$quantity = \$form.parent().find('.quantity');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$quantity[0].setCustomValidity('');
}
e.preventDefault();
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').html(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: '{{ url('block_cart') }}',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('{{ 'カートへの追加に失敗しました。'|trans }}');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
});
\$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
<script>
// 絞り込み検索は、絞り込み検索ボタンが押されたとき、もしくは入力欄にフォーカスされたときに、
// enterを押したときのみ発動する。カテゴリ検索を押したときは発火させない
document.addEventListener('DOMContentLoaded', function () {
const form = document.querySelector('.tab');
const categoryBtn = form.querySelector('button[name=\"search_parent_id\"]:not(.word-search)');
const wordBtn = form.querySelector('.category-btn.word-search');
const wordInput = form.querySelector('input.search-form-input');
// カテゴリ検索 → name を送らせない
categoryBtn.addEventListener('click', function () {
if (wordInput) {
wordInput.disabled = true;
}
});
// 絞り込み検索 → name を有効化
wordBtn?.addEventListener('click', function () {
if (wordInput) {
wordInput.disabled = false;
}
});
// Enterキーで submit 時に絞り込み検索の値を送信するための hidden input 挿入
form.addEventListener('submit', function (e) {
if (document.activeElement === wordInput) {
e.preventDefault();
// 既に存在していたら除去(2重防止)
const existingHidden = form.querySelector('input[name=\"search_parent_id\"].auto-injected');
if (existingHidden) {
existingHidden.remove();
}
// ボタンのvalue属性をそのまま使う
const valueFromButton = wordBtn?.getAttribute('value') || '';
const hidden = document.createElement('input');
hidden.type = 'hidden';
hidden.name = 'search_parent_id';
hidden.value = valueFromButton;
hidden.classList.add('auto-injected');
form.appendChild(hidden);
if (wordInput) {
wordInput.disabled = false;
}
form.submit();
}
});
});
// カテゴリの詳細検索に値が入っていない場合、buttonのnameの値をcategory_idに変更する
// document.addEventListener('DOMContentLoaded', function () {
// const form = document.querySelector('.tab');
// const submitBtn = form.querySelector('button.category-btn');
// const categorySelects = form.querySelectorAll('select[name=\"category_ids[]\"]');
// form.addEventListener('submit', function (e) {
// // category_ids[] に選択されている値が1つもない場合、ボタンのnameを変更
// const hasValue = Array.from(categorySelects).some(select => select.value && select.value !== '');
// if (!hasValue) {
// submitBtn.setAttribute('name', 'category_id');
// } else {
// submitBtn.setAttribute('name', 'search_parent_id');
// }
// });
// });
</script>
<script>
(function () {
function setState(section, open) {
const btn = section.querySelector('.js-accordion-toggle');
const panel = section.querySelector('.js-accordion-panel');
section.classList.toggle('is-open', open);
btn.setAttribute('aria-expanded', open ? 'true' : 'false');
panel.toggleAttribute('hidden', !open);
panel.setAttribute('aria-hidden', open ? 'false' : 'true');
}
document.querySelectorAll('.search-form-box').forEach(function (box) {
// このフォーム(タブ)に属する2つのアコーディオン
const sections = box.querySelectorAll('.js-accordion');
if (!sections.length) return;
const key = location.pathname + '#panel=' + (box.dataset.panel || 'default') + ':openId';
// 初期オープン対象:保存 > data-open=\"1\" > 先頭(=フリーワードを想定)
const savedId = sessionStorage.getItem(key);
let initial = Array.from(sections).find(s => s.id === savedId)
|| Array.from(sections).find(s => s.dataset.open === '1')
|| sections[0];
// 初期反映
sections.forEach(s => setState(s, s === initial));
sessionStorage.setItem(key, initial.id);
sections.forEach(function (sec) {
const btn = sec.querySelector('.js-accordion-toggle');
btn.addEventListener('click', function () {
if (sec.classList.contains('is-open')) return;
sections.forEach(s => setState(s, s === sec));
sessionStorage.setItem(key, sec.id);
});
});
});
})();
</script>
{% endblock %}
{% block main %}
{% set AllCategories = repository('Eccube\\\\Entity\\\\Category').getList() %}
{% set Categories = AllCategories|filter(c => c.id is not null and c.id == 18) %}
{% set selected_categories = app.request.query.get('category_ids', []) %}
{% set parent_category = app.request.query.get('search_parent_id') %}
{#パンくず#}
<div class=\"ec-searchnavRole__topicpath pc\">
<ol class=\"ec-topicpath\">
<li class=\"ec-topicpath__item\"><a href=\"{{ url('photo-product_list') }}\">{{ 'front.product.all_category'|trans }}</a>
</li>
{% if Category is not null %}
{% for Path in Category.path %}
{% if not loop.first %}
<li class=\"ec-topicpath__divider\">></li>
<li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\">
<a href=\"{{ url('photo-product_list') }}?category_id={{ Path.id }}#contents-list\">{{ Path.name }}</a>
</li>
{% endif %}
{% endfor %}
{% endif %}
{# {% if selected_categories is not empty %}#}
{# {% set first_matched = true %}#}
\t\t {#{% for Category in Categories %}#}
\t\t {# {% for children in Category.Children %}#}
\t\t{# {% if children.id == parent_category %}#}
\t\t{# <li class=\"ec-topicpath__divider\">></li>#}
\t\t{# <li><a href=\"{{ url('photo-product_list') }}?category_id={{ children.id }}\">{{ children.name }}</a></li>#}
\t\t{# {% endif %}#}
\t\t{# {% for grandChildren in children.Children %}#}
{# {% for grandgrandChild in grandChildren.Children %}#}
{# {% if grandgrandChild.id in selected_categories %}#}
{# {% if first_matched %}#}
{# <li class=\"ec-topicpath__divider\">></li>#}
{# <li><a href=\"{{ url('photo-product_list') }}?category_ids[]={{ grandgrandChild.id }}&search_parent_id={{parent_category}}\">{{ grandgrandChild.name }}</a></li>#}
{# {% set first_matched = false %}#}
{# {% else %}#}
{# <li><a href=\"{{ url('photo-product_list') }}?category_ids[]={{ grandgrandChild.id }}&search_parent_id={{parent_category}}\">・{{ grandgrandChild.name }}</a></li>#}
{# {% endif %}#}
{# {% endif %}#}
{# {% endfor %}#}
{# {% endfor %}#}
{# {% endfor %}#}
{# {% endfor %}#}
{# {% endif %}#}
{#検索ワード#}
{% if search_form.vars.value.name %}
<li class=\"ec-topicpath__divider\">></li>
<li class=\"ec-topicpath__item\"><a href=\"{{ url('photo-product_list') }}?name={{ search_form.vars.value.name }}#contents-list\">{{ search_form.vars.value.name }}</a></li>
{% endif %}
{#撮影地(都道府県)#}
{% if app.request.query.get('prefectures') %}
<li class=\"ec-topicpath__divider\">></li>
<li class=\"ec-topicpath__item\">
<a href=\"{{ url('photo-product_list', {
'category_id': app.request.query.get('category_id'),
'prefectures': app.request.query.get('prefectures')
}) }}#contents-list\">
{{app.request.query.get('prefectures')}}
</a>
</li>
{% endif %}
{#運行会社#}
{% if app.request.query.get('operator') %}
<li class=\"ec-topicpath__divider\">></li>
<li class=\"ec-topicpath__item\">
<a href=\"{{ url('photo-product_list', {
'category_id': app.request.query.get('category_id'),
'operator': app.request.query.get('operator')
}) }}#contents-list\">
{{app.request.query.get('operator')}}
</a>
</li>
{% endif %}
{#撮影年代#}
{% if app.request.query.get('photographing_period') %}
<li class=\"ec-topicpath__divider\">></li>
<li class=\"ec-topicpath__item\">
<a href=\"{{ url('photo-product_list', {
'category_id': app.request.query.get('category_id'),
'operator': app.request.query.get('photographing_period')
}) }}#contents-list\">
{{app.request.query.get('photographing_period')}}
</a>
</li>
{% endif %}
{#撮影地#}
{% if app.request.query.get('locations') %}
{% for location in app.request.query.get('locations') %}
{% if loop.first %}
<li class=\"ec-topicpath__divider\">></li>
{% else %}
<li class=\"ec-topicpath__divider\">・</li>
{% endif %}
<li>
<a href=\"{{ url('photo-product_list', {
'category_id': app.request.query.get('category_id'),
'locations[]': location
}) }}#contents-list\">
{{ location }}
</a>
</li>
{% endfor %}
{% endif %}
{#撮影天候#}
{% if app.request.query.get('weathers') %}
{% for weather in app.request.query.get('weathers') %}
{% if loop.first %}
<li class=\"ec-topicpath__divider\">></li>
{% else %}
<li class=\"ec-topicpath__divider\">・</li>
{% endif %}
<li>
<a href=\"{{ url('photo-product_list', {
'category_id': app.request.query.get('category_id'),
'weathers[]': weather
}) }}#contents-list\">
{{ weather }}
</a>
</li>
{% endfor %}
{% endif %}
{#撮影アングル#}
{% if app.request.query.get('camera_angles') %}
{% for camera_angle in app.request.query.get('camera_angles') %}
{% if loop.first %}
<li class=\"ec-topicpath__divider\">></li>
{% else %}
<li class=\"ec-topicpath__divider\">・</li>
{% endif %}
<li>
<a href=\"{{ url('photo-product_list', {
'category_id': app.request.query.get('category_id'),
'camera_angles[]': camera_angle
}) }}#contents-list\">
{{ camera_angle }}
</a>
</li>
{% endfor %}
{% endif %}
{#撮影方式#}
{% if app.request.query.get('color_types') %}
{% for color_type in app.request.query.get('color_types') %}
{% if loop.first %}
<li class=\"ec-topicpath__divider\">></li>
{% else %}
<li class=\"ec-topicpath__divider\">・</li>
{% endif %}
<li>
<a href=\"{{ url('photo-product_list', {
'category_id': app.request.query.get('category_id'),
'color_types[]': color_type
}) }}#contents-list\">
{{ color_type }}撮影
</a>
</li>
{% endfor %}
{% endif %}
{#一押し#}
{% if app.request.query.get('features') %}
{% for feature in app.request.query.get('features') %}
{% if loop.first %}
<li class=\"ec-topicpath__divider\">></li>
{% else %}
<li class=\"ec-topicpath__divider\">・</li>
{% endif %}
<li>
<a href=\"{{ url('photo-product_list', {
'category_id': app.request.query.get('category_id'),
'features[]': feature
}) }}#contents-list\">
{{ feature }}
</a>
</li>
{% endfor %}
{% endif %}
</ol>
</div>
<!-- カテゴリ検索 -->
{% if app.request.query.get('category_id') or app.request.query.get('search_parent_id') %}
<form action=\"{{ path('photo-product_list') }}#contents-list\" method=\"get\" class=\"tab\" >
<ul class=\"tab-list\">
{% for tab in Categories%}
{% for children in tab.Children %}
{% set children_ids = [] %}
{% for grandChild in children.Children %}
{% set children_ids = children_ids|merge([grandChild.id]) %}
{% endfor %}
{% if children.id == app.request.query.get('category_id')
or children.id == app.request.query.get('search_parent_id')
or app.request.query.get('category_id') in children_ids
%}
<li class=\"tab-item active\" tabindex=\"0\" id=\"{{children.id}}\">
<a href=\"{{ url('photo-product_list', {'category_id': children.id}) }}\">{{children.name}}</a>
</li>
{% else %}
<li class=\"tab-item\" tabindex=\"0\" id=\"{{children.id}}\">
<a href=\"{{ url('photo-product_list', {'category_id': children.id}) }}\">{{children.name}}</a>
</li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
<div class=\"search-form-box\">
<section id=\"freeword\" class=\"search-section js-accordion\" data-open=\"1\">
<header class=\"search-section__header\">
<div class=\"search-title\">
<img src=\"{{ asset('/html/user_data/assets/icon/btn_ic_search.svg ', 'user_data') }}\" class=\"ic\" style=\"width: auto\"><h3>フリーワード検索</h3>
</div>
<button type=\"button\"
class=\"accordion-toggle js-accordion-toggle\"
aria-controls=\"freeword-panel\"
aria-expanded=\"true\"
title=\"閉じる\">
<span class=\"visually-hidden\">フリーワード検索を開閉</span>
</button>
</header>
<div id=\"freeword-panel\"
class=\"search-section__panel js-accordion-panel\"
aria-hidden=\"false\">
<div class=\"search-form-content\">
<div class=\"search-form-item\">
<input type=\"text\" name=\"name\" class=\"search-form-input\"
placeholder=\"駅名・線路名・形式・撮影者名など自由に検索できます\"
{% if search_form.vars.value.name
and (app.request.query.get('search_parent_id') is not empty or app.request.query.get('category_id') is not empty) %}
value=\"{{ search_form.vars.value.name }}\"
{% endif %}
>
</div>
</div>
<div class=\"sp-center\">
<button type=\"submit\" class=\"category-btn word-search\">
<img src=\"{{ asset('/html/user_data/assets/icon/btn_ic_search.svg ', 'user_data') }}\" alt=\"お気に入り\">
検索
</button>
</div>
</div>
</section>
<section id=\"details\" class=\"search-section js-accordion\" data-open=\"0\">
<header class=\"search-section__header\">
<div class=\"search-title\">
<img src=\"{{ asset('/html/user_data/assets/icon/title_ic_filter.svg ', 'user_data') }}\" class=\"ic\" style=\"width: auto\"><h3>詳細フィルター</h3>
</div>
<button type=\"button\"
class=\"accordion-toggle js-accordion-toggle\"
aria-controls=\"details-panel\"
aria-expanded=\"false\"
title=\"開く\">
<span class=\"visually-hidden\">詳細フィルターを開閉</span>
</button>
</header>
<div id=\"details-panel\"
class=\"search-section__panel js-accordion-panel\"
hidden aria-hidden=\"true\">
<div class=\"search-base-content\">
<div class=\"search-base-item\">
<h4 class=\"search-subtitle\"><label for=\"pref-select\">撮影地(都道府県)</label></h4>
<div class=\"select\">
<select name=\"prefectures\" id=\"pref-select\">
<option value=\"\">選択</option>
{% if prefectures is not empty %}
{% for prefecture in prefectures %}
<option value=\"{{prefecture}}\"
{% if app.request.query.get('prefectures') and prefecture == app.request.query.get('prefectures') %}
selected
{% endif %}
>{{prefecture}}</option>
{% endfor %}
{% else %}
<option value=\"\">該当なし</option>
{% endif %}
</select>
</div>
</div>
<div class=\"search-base-item\">
<h4 class=\"search-subtitle\"><label for=\"period-select\">年代</label></h4>
<div class=\"select\">
<select name=\"photographing_period\" id=\"period-select\" >
<option value=\"\">選択</option>
{% if photographing_periods is not empty %}
{% for photographing_period in photographing_periods |sort %}
<option value=\"{{photographing_period}}\"
{% if app.request.query.get('photographing_period') and photographing_period == app.request.query.get('photographing_period') %}
selected
{% endif %}
>{{photographing_period}}</option>
{% endfor %}
{% else %}
<option value=\"\">該当なし</option>
{% endif %}
</select>
</div>
</div>
</div>
<div class=\"search-filter-content\">
<h4 class=\"search-subtitle\"><legend>撮影アングル</legend></h4>
<div class=\"search-filter-list\">
{% if camera_angles is not empty %}
{% for camera_angle in camera_angles %}
<label class=\"filter-checkbox-item\">
<input type=\"checkbox\" name=\"camera_angles[]\" value=\"{{camera_angle}}\"
{% if app.request.query.get('camera_angles') and camera_angle in app.request.query.get('camera_angles') %}
checked
{% endif %}
>{{camera_angle}}
</label>
{% endfor %}
{% else %}
<p>該当する検索候補がありません。</p>
{% endif %}
</div>
<h4 class=\"search-subtitle\"><legend>カラー種別</legend></h4> {# id属性名・サブタイトル仮置き #}
<div class=\"search-filter-list\">
{% if color_types is not empty %}
{% for color_type in color_types %}
<label class=\"filter-checkbox-item\">
<input type=\"checkbox\" name=\"color_types[]\" value=\"{{color_type}}\"
{% if app.request.query.get('color_types') and color_type in app.request.query.get('color_types') %}
checked
{% endif %}
>{{color_type}}
</label>
{% endfor %}
{% else %}
<p>該当する検索候補がありません。</p>
{% endif %}
</div>
</div>
<div class=\"sp-center\">
<button type=\"submit\" class=\"category-btn word-search\">
<img src=\"{{ asset('/html/user_data/assets/icon/btn_ic_search.svg ', 'user_data') }}\" alt=\"お気に入り\">
検索
</button>
</div>
</div>
</section>
</div>
{% if app.request.query.get('category_id') or app.request.query.get('search_parent_id') %}
<input type=\"hidden\" name=\"category_id\" value=\"{{ app.request.query.get('category_id') ?: app.request.query.get('search_parent_id') }}\">
{% endif%}
</form>
{% endif %}
<section class=\"contents-list\" id=\"contents-list\">
\t<!-- 商品リスト -->
\t<div class=\"list-view\">
\t\t<div class=\"list-title\">
\t\t <div class=\"list-title-left\">
\t\t {#カテゴリが存在する場合(通常の検索)#}
{% if app.request.query.get('category_id') %}
<h2 class=\"ec-topicpath__title\">{{ Category.name }}<span>の写真</span></h2>
{% if search_form.vars.value.name %}
<p class=\"ec-topicpath__item\"> > {{ search_form.vars.value.name }}</p>
{% endif %}
{% if app.request.query.get('prefectures') %}
<p class=\"ec-topicpath__item\"> > {{app.request.query.get('prefectures')}}</p>
{% endif %}
{% if app.request.query.get('operator') %}
<p class=\"ec-topicpath__item\"> > {{app.request.query.get('operator')}}</p>
{% endif %}
{% if app.request.query.get('photographing_period') %}
<p class=\"ec-topicpath__item\"> > {{app.request.query.get('photographing_period')}}</p>
{% endif %}
{% if app.request.query.get('locations') %}
<p class=\"ec-topicpath__item\">
{% for location in app.request.query.get('locations') %}
{% if loop.first %}
> {{ location }}
{% else %}
<span class=\"ec-topicpath__item\">・{{ location }}</span>
{% endif %}
{% endfor %}
</p>
{% endif %}
{% if app.request.query.get('weathers') %}
<p class=\"ec-topicpath__item\">
{% for weather in app.request.query.get('weathers') %}
{% if loop.first %}
> {{ weather }}
{% else %}
<span class=\"ec-topicpath__item\">・{{ weather }}</span>
{% endif %}
{% endfor %}
</p>
{% endif %}
{% if app.request.query.get('camera_angles') %}
<p class=\"ec-topicpath__item\">
{% for camera_angle in app.request.query.get('camera_angles') %}
{% if loop.first %}
> {{ camera_angle }}
{% else %}
<span class=\"ec-topicpath__item\">・{{ camera_angle }}</span>
{% endif %}
{% endfor %}
</p>
{% endif %}
{% if app.request.query.get('color_types') %}
<p class=\"ec-topicpath__item\">
{% for color_type in app.request.query.get('color_types') %}
{% if loop.first %}
> {{ color_type }}
{% else %}
<span class=\"ec-topicpath__item\">・{{ color_type }}</span>
{% endif %}
{% endfor %}
</p>
{% endif %}
{% if app.request.query.get('features') %}
<p class=\"ec-topicpath__item\">
{% for feature in app.request.query.get('features') %}
{% if loop.first %}
> {{ feature }}
{% else %}
<span class=\"ec-topicpath__item\">・{{ feature }}</span>
{% endif %}
{% endfor %}
</p>
{% endif %}
{% else %}
{#通常の全体検索#}
{% if search_form.vars.value.name %}
<div>
<h2 class=\"ec-topicpath__title\">「{{ search_form.vars.value.name }}」<span style=\"padding: 0;\">で検索</span></h2>
</div>
{% else %}
{#全体を表示#}
<h2 class=\"ec-topicpath__title\">すべての写真</h2>
{% endif %}
{% endif %}
</div>
<div class=\"list-title-right\">
{% if pagination.totalItemCount > 0 %}
{% set start = ((pagination.currentPageNumber - 1) * pagination.getItemNumberPerPage) + 1 %}
{% else %}
{% set start = 0 %}
{% endif %}
{% set end = min(pagination.currentPageNumber * pagination.getItemNumberPerPage, pagination.totalItemCount) %}
<p>({{ pagination.totalItemCount }}件中{{ start }}件-{{ end }}件を表示)</p>
</div>
\t\t</div>
\t\t<!-- カテゴリ説明 -->
\t\t{#デザインにないため、いったんコメントアウト#}
\t\t{#<p class=\"lead-sentence\">#}
\t\t{# <button type=\"submit\" class=\"category-btn-list word-search\" name=\"search_parent_id\" value=\"1\">#}
{# JR埼京線#}
{# </button>#}
{# <button type=\"submit\" class=\"category-btn-list word-search\" name=\"search_parent_id\" value=\"2\">#}
{# SL#}
{# </button>#}
\t\t{#</p>#}
\t\t<!-- リストエリア -->
\t\t{% if pagination.totalItemCount > 0 %}
\t\t\t<div>
\t\t\t <div class=\"list-area\">
\t\t\t {% for Product in pagination %}
<div class=\"card-1\">
<a href=\"{{ url('photo-product_detail', {'id': Product.id}) }}\">
<div class=\"image-wrapper\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
{% if Product.getPrice02IncTaxMin == 0 %}
<div class=\"label-free\">無料</div>
{% endif %}
</div>
{#デザインにないため、いったんコメントアウト#}
{#<h3>{{ Product.name }}</h3>#}
{#<p class=\"price02-default\">#}
{# {{ Product.getPrice02IncTaxMin|price }}<span class=\"tax\">(税込)</span>#}
{#</p>#}
</a>
</div>
{% endfor %}
</div>
\t\t\t<!-- ページネーション -->
\t\t\t{% set pages = pagination.paginationData %}
\t\t\t{% if pages.pageCount > 1 %}
<div class=\"ec-pager pagination\">
{# 前へ #}
{% if pages.previous is defined %}
<a class=\"page-return\" href=\"{{ path(
app.request.attributes.get('_route'),
app.request.query.all|merge({'pageno': pages.previous})) }}#contents-list\">←</a>
{% endif %}
<div class=\"page-num\">
{% for page in pages.pagesInRange %}
{% if page == pages.current %}
<a class=\"active\" href=\"{{ path(
app.request.attributes.get('_route'),
app.request.query.all|merge({'pageno': page})) }}#contents-list\"> {{ page }} </a>
{% else %}
<a href=\"{{ path(
app.request.attributes.get('_route'),
app.request.query.all|merge({'pageno': page})) }}#contents-list\"> {{ page }} </a>
{% endif %}
{% endfor %}
</div>
{# 次へ #}
{% if pages.next is defined %}
<a class=\"page-advance\" href=\"{{ path(
app.request.attributes.get('_route'),
app.request.query.all|merge({'pageno': pages.next})) }}#contents-list\">→</a>
{% endif %}
</div>
{% endif %}
\t </div>
\t{% else %}
<p class=\"no_item\">{{ 'お探しの商品は見つかりませんでした'|trans }}</p>
{% endif %}
<!-- カテゴリ説明 -->
{#デザインにないため、いったんコメントアウト#}
\t\t{#<p class=\"lead-sentence\">#}
\t\t{# <button type=\"submit\" class=\"category-btn-list word-search\" name=\"search_parent_id\" value=\"1\">#}
{# JR埼京線#}
{# </button>#}
{# <button type=\"submit\" class=\"category-btn-list word-search\" name=\"search_parent_id\" value=\"2\">#}
{# SL#}
{# </button>#}
\t\t{#</p>#}
</div>
</section>
{% endblock %}", "@user_data/photo-product_list.twig", "/home/photo-pub/www/photo-pub.com/app/template/user_data/photo-product_list.twig");
}
}