<?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;
/* Product/list.twig */
class __TwigTemplate_52df181c1a94016f68cbb25277368ac4 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'title' => [$this, 'block_title'],
'main_head' => [$this, 'block_main_head'],
'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", "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", "Product/list.twig"));
// line 13
$context["body_class"] = "product_page";
// line 77
$context["catIds"] = 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.', 77, $this->source); })()), "request", [], "any", false, false, false, 77), "get", [0 => "category_ids"], "method", false, false, false, 77);
// line 78
$context["cid"] = "";
// line 79
$context["cnt"] = 0;
// line 80
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["catIds"]) || array_key_exists("catIds", $context) ? $context["catIds"] : (function () { throw new RuntimeError('Variable "catIds" does not exist.', 80, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["catId"]) {
// line 81
if (($context["catId"] != "")) {
// line 82
$context["cnt"] = ((isset($context["cnt"]) || array_key_exists("cnt", $context) ? $context["cnt"] : (function () { throw new RuntimeError('Variable "cnt" does not exist.', 82, $this->source); })()) + 1);
// line 83
$context["cid"] = $context["catId"];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['catId'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 86
if (((isset($context["cnt"]) || array_key_exists("cnt", $context) ? $context["cnt"] : (function () { throw new RuntimeError('Variable "cnt" does not exist.', 86, $this->source); })()) == 1)) {
// line 87
$context["Category"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "find", [0 => (isset($context["cid"]) || array_key_exists("cid", $context) ? $context["cid"] : (function () { throw new RuntimeError('Variable "cid" does not exist.', 87, $this->source); })())], "method", false, false, false, 87);
}
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "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 15
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 16
echo "<script>
// 検索後パラメータをフォームにセット
function getParam(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\\[\\]]/g, \"\\\\\$&\");
var regex = new RegExp(\"[?&]\" + name + \"(=([^&#]*)|&|#|\$)\"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\\+/g, \" \"));
}
//商品名 or 型番入力検索
\$(\"input[name='name']\").val(getParam('name'));
//電源
var tag = getParam('tag');
if (tag) {
var tagId='tag_id_' + tag ;
var sel = document.querySelector('[data-id=\"' + tagId + '\"]');
sel.selected = true;
}
var urlParams = new URLSearchParams(window.location.search);
var categoryIds = urlParams.getAll('category_ids[]');
//カテゴリ
for (i = 0; i < categoryIds.length; i++) {
if (categoryIds[i]!=\"\") {
var cat='category_id_' + categoryIds[i] ;
var sel = document.querySelector('[data-id=\"' + cat + '\"]');
var type = sel.getAttribute(\"type\");
if (type==\"radio\") {
sel.checked= true;;
}else{
sel.selected = true;
}
}
}
/*eccube.productsClassCategories = {
";
// line 52
$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.', 52, $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 53
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, 53), "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, 53) == false)) {
echo ", ";
}
// line 54
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 55
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();
});
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 90
public function block_title($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", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 91
echo "<h1 class=\"c-title-06\">
<span class=\"s-text\">
";
// line 93
if (((isset($context["cnt"]) || array_key_exists("cnt", $context) ? $context["cnt"] : (function () { throw new RuntimeError('Variable "cnt" does not exist.', 93, $this->source); })()) == 1)) {
// line 94
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.', 94, $this->source); })()), "name", [], "any", false, false, false, 94), "html", null, true);
echo "のエアコン商品一覧";
} else {
// line 96
echo "エアコン商品一覧
";
}
// line 98
echo "</span>
</h1>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 102
public function block_main_head($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_head"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_head"));
// line 103
if (((isset($context["cnt"]) || array_key_exists("cnt", $context) ? $context["cnt"] : (function () { throw new RuntimeError('Variable "cnt" does not exist.', 103, $this->source); })()) == 1)) {
// line 104
echo "<div class=\"c-section\">
<div class=\"c-media-01\">
";
// line 106
if (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.', 106, $this->source); })()), "category_image", [], "any", false, false, false, 106)) {
// line 107
echo " <figure class=\"s-image\">
<div class=\"s-image__in\">
<img src=\"";
// line 109
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, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 109, $this->source); })()), "category_image", [], "any", false, false, false, 109)), "save_image"), "html", null, true);
echo "\" alt=\"";
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.', 109, $this->source); })()), "name", [], "any", false, false, false, 109), "html", null, true);
echo "\">
</div>
</figure>
";
}
// line 113
echo " <div class=\"s-content\">
<h2 class=\"s-title\">";
// line 114
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.', 114, $this->source); })()), "name", [], "any", false, false, false, 114), "html", null, true);
echo "の業務用エアコンの特長</h2>
";
// line 115
if (((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 115, $this->source); })()) && 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.', 115, $this->source); })()), "free_area", [], "any", false, false, false, 115))) {
// line 116
echo " <div class=\"s-text\">
";
// line 117
echo twig_include($this->env, $context, twig_template_from_string($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.', 117, $this->source); })()), "free_area", [], "any", false, false, false, 117)));
echo "
</div>
";
}
// line 120
echo " </div>
</div>
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 126
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 127
echo "
<div class=\"c-section\">
<h3 class=\"c-title-07\"><span class=\"s-text\">";
// line 130
if (((isset($context["cnt"]) || array_key_exists("cnt", $context) ? $context["cnt"] : (function () { throw new RuntimeError('Variable "cnt" does not exist.', 130, $this->source); })()) == 1)) {
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.', 130, $this->source); })()), "name", [], "any", false, false, false, 130), "html", null, true);
echo "のエアコン";
}
echo "商品一覧</span></h3>
";
// line 131
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 131, $this->source); })()), "category_id", [], "any", false, false, false, 131), "vars", [], "any", false, false, false, 131), "errors", [], "any", false, false, false, 131)) > 0)) {
// line 132
echo " <div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">";
// line 133
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
echo "</p>
</div>
";
} else {
// line 136
echo " <div class=\"ec-searchnavRole\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 138
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 138, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 139
echo " ";
// line 140
echo " ";
if (twig_test_iterable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 140), "value", [], "any", false, false, false, 140))) {
// line 141
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 141), "value", [], "any", false, false, false, 141));
foreach ($context['_seq'] as $context["_key"] => $context["val"]) {
// line 142
echo " <input type=\"hidden\" id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 142), "id", [], "any", false, false, false, 142), "html", null, true);
echo "\"
name=\"";
// line 143
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 143), "full_name", [], "any", false, false, false, 143), "html", null, true);
echo "[]\" value=\"";
echo twig_escape_filter($this->env, $context["val"], "html", null, true);
echo "\"/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['val'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 145
echo " ";
} else {
// line 146
echo " <input type=\"hidden\" id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 146), "id", [], "any", false, false, false, 146), "html", null, true);
echo "\"
name=\"";
// line 147
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 147), "full_name", [], "any", false, false, false, 147), "html", null, true);
echo "\"
";
// line 148
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 148), "value", [], "any", false, false, false, 148))) {
echo "value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 148), "value", [], "any", false, false, false, 148), "html", null, true);
echo "\" ";
}
echo "/>
";
}
// line 150
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 151
echo " </form>
<div class=\"p-products-list-head\">
";
// line 153
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.', 153, $this->source); })()), "totalItemCount", [], "any", false, false, false, 153) > 0)) {
// line 154
echo " <div class=\"c-total-wrap\">
";
// line 155
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<p class=\"c-total-num\"><span class=\"s-main font-en\">%count%</span><span class=\"s-sub\">件</span></p>の商品がございます", ["%count%" => 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.', 155, $this->source); })()), "totalItemCount", [], "any", false, false, false, 155)]);
echo "
</div>
<div class=\"c-change-num\">
<span class=\"s-text\">表示件数</span>
";
// line 159
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 159, $this->source); })()), "disp_number", [], "any", false, false, false, 159), 'widget', ["id" => "", "attr" => ["class" => "disp-number"]]);
echo "
</div>
";
} else {
// line 162
echo " <div class=\"c-total-wrap\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html", null, true);
echo "</span></div>
";
}
// line 164
echo " </div>
</div>
";
// line 166
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.', 166, $this->source); })()), "totalItemCount", [], "any", false, false, false, 166) > 0)) {
// line 167
echo " <div class=\"ec-shelfRole\">
<ul class=\"p-products-list\">
";
// line 169
$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.', 169, $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 170
echo " ";
$context["CatId"] = "";
// line 171
echo " ";
$context["CatMaker"] = "";
// line 172
echo " ";
$context["CatSeriesId"] = "";
// line 173
echo " ";
$context["CatShape"] = "";
// line 174
echo " ";
$context["CatPower"] = "";
// line 175
echo " ";
$context["TagPower1"] = "";
// line 176
echo " ";
$context["TagPower2"] = "";
// line 177
echo " ";
$context["ProductCode"] = "";
// line 178
echo " ";
$context["HiddenFlag"] = "0";
// line 179
echo " ";
// line 180
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 180))) {
// line 181
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 181));
foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
// line 182
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 182), "getParent", [], "any", false, false, false, 182))) {
// line 183
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 183), "getParent", [], "any", false, false, false, 183), "id", [], "any", false, false, false, 183) == 1)) {
// line 184
echo " ";
$context["CatMaker"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 184), "name", [], "any", false, false, false, 184);
// line 185
echo " ";
$context["CatId"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 185), "id", [], "any", false, false, false, 185);
// line 186
echo " ";
}
// line 187
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 187), "getParent", [], "any", false, false, false, 187), "id", [], "any", false, false, false, 187) == 51)) {
// line 188
echo " ";
$context["CatShape"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 188), "id", [], "any", false, false, false, 188);
// line 189
echo " ";
}
// line 190
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 190), "getParent", [], "any", false, false, false, 190), "id", [], "any", false, false, false, 190) == 61)) {
// line 191
echo " ";
$context["CatPower"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 191), "id", [], "any", false, false, false, 191);
// line 192
echo " ";
}
// line 193
echo " ";
}
// line 194
echo " ";
if ( !twig_test_empty((isset($context["CatId"]) || array_key_exists("CatId", $context) ? $context["CatId"] : (function () { throw new RuntimeError('Variable "CatId" does not exist.', 194, $this->source); })()))) {
// line 195
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 195), "getParent", [], "any", false, false, false, 195))) {
// line 196
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 196), "getParent", [], "any", false, false, false, 196), "id", [], "any", false, false, false, 196) == (isset($context["CatId"]) || array_key_exists("CatId", $context) ? $context["CatId"] : (function () { throw new RuntimeError('Variable "CatId" does not exist.', 196, $this->source); })()))) {
// line 197
echo " ";
$context["CatSeriesId"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 197), "id", [], "any", false, false, false, 197);
// line 198
echo " ";
$context["Category"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "find", [0 => (isset($context["CatSeriesId"]) || array_key_exists("CatSeriesId", $context) ? $context["CatSeriesId"] : (function () { throw new RuntimeError('Variable "CatSeriesId" does not exist.', 198, $this->source); })())], "method", false, false, false, 198);
// line 199
echo " ";
$context["HiddenFlag"] = 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.', 199, $this->source); })()), "hidden_flag", [], "any", false, false, false, 199);
// line 200
echo " ";
}
// line 201
echo " ";
}
// line 202
echo " ";
}
// line 203
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 204
echo " ";
}
// line 205
echo " ";
// line 206
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasTag", [0 => 1], "method", false, false, false, 206)) {
// line 207
echo " ";
$context["PageTag"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Tag"), "find", [0 => "1"], "method", false, false, false, 207);
// line 208
echo " ";
$context["TagPower1"] = twig_get_attribute($this->env, $this->source, (isset($context["PageTag"]) || array_key_exists("PageTag", $context) ? $context["PageTag"] : (function () { throw new RuntimeError('Variable "PageTag" does not exist.', 208, $this->source); })()), "name", [], "any", false, false, false, 208);
// line 209
echo " ";
}
// line 210
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasTag", [0 => 2], "method", false, false, false, 210)) {
// line 211
echo " ";
$context["PageTag"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Tag"), "find", [0 => "2"], "method", false, false, false, 211);
// line 212
echo " ";
$context["TagPower2"] = twig_get_attribute($this->env, $this->source, (isset($context["PageTag"]) || array_key_exists("PageTag", $context) ? $context["PageTag"] : (function () { throw new RuntimeError('Variable "PageTag" does not exist.', 212, $this->source); })()), "name", [], "any", false, false, false, 212);
// line 213
echo " ";
}
// line 214
echo " ";
// line 215
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["Product"], "code_min", [], "any", false, false, false, 215))) {
// line 216
echo " ";
$context["ProductCode"] = twig_get_attribute($this->env, $this->source, $context["Product"], "code_min", [], "any", false, false, false, 216);
// line 217
echo " ";
}
// line 218
echo "
<li class=\"p-products-item\">
<figure class=\"s-image\">
";
// line 222
echo "\t\t\t\t\t<a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 222)]), "html", null, true);
echo "\">
<img src=\"";
// line 223
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, 223)), "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, 223), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 223) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
</a>
</figure>
<div class=\"s-content\">
";
// line 228
echo "\t\t\t\t\t<h4 class=\"s-title\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 228)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["CatMaker"]) || array_key_exists("CatMaker", $context) ? $context["CatMaker"] : (function () { throw new RuntimeError('Variable "CatMaker" does not exist.', 228, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 228), "html", null, true);
echo "</a></h4>
<table class=\"c-table-04\">
<tr>
<th class=\"s-col1\">型番</th>
<th class=\"s-col2\">定価(税込)</th>
<th class=\"s-col3\">販売価格(税込)</th>
</tr>
<tr>
<td>
";
// line 237
echo twig_escape_filter($this->env, (isset($context["ProductCode"]) || array_key_exists("ProductCode", $context) ? $context["ProductCode"] : (function () { throw new RuntimeError('Variable "ProductCode" does not exist.', 237, $this->source); })()), "html", null, true);
echo "
</td>
<td>
<p class=\"p-products-text01\"><span class=\"s-main font-en\">
";
// line 241
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01IncTaxMin", [], "any", false, false, false, 241)), "html", null, true);
echo "
</span>円</p>
</td>
<td>
<div class=\"p-products-list-price02-wrap\">
";
// line 246
$context["price01"] = twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01IncTaxMin", [], "any", false, false, false, 246);
// line 247
echo " ";
$context["price02"] = twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 247);
// line 248
echo " ";
if (((isset($context["price01"]) || array_key_exists("price01", $context) ? $context["price01"] : (function () { throw new RuntimeError('Variable "price01" does not exist.', 248, $this->source); })()) != "")) {
// line 249
echo " <p class=\"p-products-label01\"><span class=\"font-en\">
<span class=\"s-main\">
";
// line 251
$context["price03"] = ((1 - ((isset($context["price02"]) || array_key_exists("price02", $context) ? $context["price02"] : (function () { throw new RuntimeError('Variable "price02" does not exist.', 251, $this->source); })()) / (isset($context["price01"]) || array_key_exists("price01", $context) ? $context["price01"] : (function () { throw new RuntimeError('Variable "price01" does not exist.', 251, $this->source); })()))) * twig_round(100, 1, "ceil"));
// line 252
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["price03"]) || array_key_exists("price03", $context) ? $context["price03"] : (function () { throw new RuntimeError('Variable "price03" does not exist.', 252, $this->source); })()), 1, ".", ","), "html", null, true);
echo "
</span>%</span><br class=\"no-pc\">割引</p>
";
}
// line 255
echo " <p class=\"p-products-text02\"><span class=\"s-main font-en\">
";
// line 256
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 256)), "html", null, true);
echo "
</span>円</p>
</div>
</td>
</tr>
</table>
</div>
</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['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 266
echo " </ul>
</div>
<div class=\"ec-pagerRole\">
";
// line 270
$this->loadTemplate("pager.twig", "Product/list.twig", 270)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 270, $this->source); })()), "paginationData", [], "any", false, false, false, 270)]));
// line 271
echo " </div>
";
}
// line 273
echo " ";
}
// line 274
echo "</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Product/list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 718 => 274, 715 => 273, 711 => 271, 709 => 270, 703 => 266, 679 => 256, 676 => 255, 669 => 252, 667 => 251, 663 => 249, 660 => 248, 657 => 247, 655 => 246, 647 => 241, 640 => 237, 623 => 228, 610 => 223, 605 => 222, 600 => 218, 597 => 217, 594 => 216, 591 => 215, 589 => 214, 586 => 213, 583 => 212, 580 => 211, 577 => 210, 574 => 209, 571 => 208, 568 => 207, 565 => 206, 563 => 205, 560 => 204, 554 => 203, 551 => 202, 548 => 201, 545 => 200, 542 => 199, 539 => 198, 536 => 197, 533 => 196, 530 => 195, 527 => 194, 524 => 193, 521 => 192, 518 => 191, 515 => 190, 512 => 189, 509 => 188, 506 => 187, 503 => 186, 500 => 185, 497 => 184, 494 => 183, 491 => 182, 486 => 181, 483 => 180, 481 => 179, 478 => 178, 475 => 177, 472 => 176, 469 => 175, 466 => 174, 463 => 173, 460 => 172, 457 => 171, 454 => 170, 437 => 169, 433 => 167, 431 => 166, 427 => 164, 421 => 162, 415 => 159, 408 => 155, 405 => 154, 403 => 153, 399 => 151, 393 => 150, 384 => 148, 380 => 147, 375 => 146, 372 => 145, 362 => 143, 357 => 142, 352 => 141, 349 => 140, 347 => 139, 343 => 138, 339 => 136, 333 => 133, 330 => 132, 328 => 131, 321 => 130, 316 => 127, 306 => 126, 292 => 120, 286 => 117, 283 => 116, 281 => 115, 277 => 114, 274 => 113, 265 => 109, 261 => 107, 259 => 106, 255 => 104, 253 => 103, 243 => 102, 231 => 98, 227 => 96, 223 => 94, 221 => 93, 217 => 91, 207 => 90, 177 => 55, 163 => 54, 155 => 53, 138 => 52, 100 => 16, 90 => 15, 79 => 11, 76 => 87, 74 => 86, 67 => 83, 65 => 82, 63 => 81, 59 => 80, 57 => 79, 55 => 78, 53 => 77, 51 => 13, 38 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block javascript %}
<script>
// 検索後パラメータをフォームにセット
function getParam(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\\[\\]]/g, \"\\\\\$&\");
var regex = new RegExp(\"[?&]\" + name + \"(=([^&#]*)|&|#|\$)\"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\\+/g, \" \"));
}
//商品名 or 型番入力検索
\$(\"input[name='name']\").val(getParam('name'));
//電源
var tag = getParam('tag');
if (tag) {
var tagId='tag_id_' + tag ;
var sel = document.querySelector('[data-id=\"' + tagId + '\"]');
sel.selected = true;
}
var urlParams = new URLSearchParams(window.location.search);
var categoryIds = urlParams.getAll('category_ids[]');
//カテゴリ
for (i = 0; i < categoryIds.length; i++) {
if (categoryIds[i]!=\"\") {
var cat='category_id_' + categoryIds[i] ;
var sel = document.querySelector('[data-id=\"' + cat + '\"]');
var type = sel.getAttribute(\"type\");
if (type==\"radio\") {
sel.checked= true;;
}else{
sel.selected = true;
}
}
}
/*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();
});
});
</script>
{% endblock %}
{% set catIds = app.request.get('category_ids') %}
{% set cid = \"\" %}
{% set cnt = 0 %}
{% for catId in catIds %}
{% if catId !=\"\" %}
{% set cnt = cnt + 1 %}
{% set cid = catId %}
{% endif %}
{% endfor %}
{% if cnt == 1 %}
{% set Category = repository('Eccube\\\\Entity\\\\Category').find(cid) %}
{% endif %}
{% block title %}
<h1 class=\"c-title-06\">
<span class=\"s-text\">
{% if cnt == 1 %}
{{ Category.name }}のエアコン商品一覧{# カテゴリーページ #}
{% else %}
エアコン商品一覧
{% endif %}
</span>
</h1>
{% endblock %}
{% block main_head %}
{% if cnt == 1 %}
<div class=\"c-section\">
<div class=\"c-media-01\">
{% if Category.category_image %}
<figure class=\"s-image\">
<div class=\"s-image__in\">
<img src=\"{{ asset(Category.category_image|no_image_product, 'save_image') }}\" alt=\"{{ Category.name }}\">
</div>
</figure>
{% endif %}
<div class=\"s-content\">
<h2 class=\"s-title\">{{ Category.name }}の業務用エアコンの特長</h2>
{% if Category and Category.free_area %}
<div class=\"s-text\">
{{ include(template_from_string(Category. free_area)) }}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% block main %}
<div class=\"c-section\">
<h3 class=\"c-title-07\"><span class=\"s-text\">{% if cnt == 1 %}{{ Category.name }}のエアコン{% endif %}商品一覧</span></h3>
{% if search_form.category_id.vars.errors|length > 0 %}
<div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
</div>
{% else %}
<div class=\"ec-searchnavRole\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
{% for item in search_form %}
{# タグの複数検索に対応 @see https://umebius.com/eccube/product_list_tag_search/ #}
{% if item.vars.value is iterable %}
{% for val in item.vars.value %}
<input type=\"hidden\" id=\"{{ item.vars.id }}\"
name=\"{{ item.vars.full_name }}[]\" value=\"{{ val }}\"/>
{% endfor %}
{% else %}
<input type=\"hidden\" id=\"{{ item.vars.id }}\"
name=\"{{ item.vars.full_name }}\"
{% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
{% endif %}
{% endfor %}
</form>
<div class=\"p-products-list-head\">
{% if pagination.totalItemCount > 0 %}
<div class=\"c-total-wrap\">
{{ '<p class=\"c-total-num\"><span class=\"s-main font-en\">%count%</span><span class=\"s-sub\">件</span></p>の商品がございます'|trans({ '%count%': pagination.totalItemCount })|raw }}
</div>
<div class=\"c-change-num\">
<span class=\"s-text\">表示件数</span>
{{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
</div>
{% else %}
<div class=\"c-total-wrap\"><span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span></div>
{% endif %}
</div>
</div>
{% if pagination.totalItemCount > 0 %}
<div class=\"ec-shelfRole\">
<ul class=\"p-products-list\">
{% for Product in pagination %}
{% set CatId = '' %}
{% set CatMaker = '' %}{# メーカー #}
{% set CatSeriesId = '' %}{# シリーズID #}
{% set CatShape = '' %}{# 形状 #}
{% set CatPower = '' %}{# 馬力 #}
{% set TagPower1 = '' %}{# 電源1 #}
{% set TagPower2 = '' %}{# 電源2 #}
{% set ProductCode = '' %}{# 型番 #}
{% set HiddenFlag = '0' %}{# 非表示フラグ #}
{# カテゴリ #}
{% if Product.ProductCategories is not empty %}
{% for ProductCategory in Product.ProductCategories %}
{% if ProductCategory.Category.getParent is not null %}
{% if ProductCategory.Category.getParent.id == 1 %}
{% set CatMaker = ProductCategory.Category.name %}{# メーカー #}
{% set CatId = ProductCategory.Category.id %}
{% endif %}
{% if ProductCategory.Category.getParent.id == 51 %}
{% set CatShape = ProductCategory.Category.id %}{# 形状 #}
{% endif %}
{% if ProductCategory.Category.getParent.id == 61 %}
{% set CatPower = ProductCategory.Category.id %}{# 馬力 #}
{% endif %}
{% endif %}
{% if CatId is not empty %}
{% if ProductCategory.Category.getParent is not null %}
{% if ProductCategory.Category.getParent.id == CatId %}
{% set CatSeriesId = ProductCategory.Category.id %}{# シリーズID #}
{% set Category = repository('Eccube\\\\Entity\\\\Category').find(CatSeriesId) %}
{% set HiddenFlag = Category.hidden_flag %}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{# タグ:電源 #}
{% if Product.hasTag(1) %}
{% set PageTag = repository('Eccube\\\\Entity\\\\Tag').find('1') %}
{% set TagPower1 = PageTag.name %}{# 電源1 #}
{% endif %}
{% if Product.hasTag(2) %}
{% set PageTag = repository('Eccube\\\\Entity\\\\Tag').find('2') %}
{% set TagPower2 = PageTag.name %}{# 電源2 #}
{% endif %}
{# 型番 #}
{% if Product.code_min is not empty %}
{% set ProductCode = Product.code_min %}{# 型番 #}
{% endif %}
<li class=\"p-products-item\">
<figure class=\"s-image\">
{# <a href=\"{{ url('product_detail', {'id': Product.id}) }}?shape={{ CatShape }}&power={{ CatPower }}\"> #}
\t\t\t\t\t<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
</a>
</figure>
<div class=\"s-content\">
{# <h4 class=\"s-title\"><a href=\"{{ url('product_detail', {'id': Product.id}) }}?shape={{ CatShape }}&power={{ CatPower }}\">{{ CatMaker }} {{ Product.name }}</a></h4> #}
\t\t\t\t\t<h4 class=\"s-title\"><a href=\"{{ url('product_detail', {'id': Product.id}) }}\">{{ CatMaker }} {{ Product.name }}</a></h4>
<table class=\"c-table-04\">
<tr>
<th class=\"s-col1\">型番</th>
<th class=\"s-col2\">定価(税込)</th>
<th class=\"s-col3\">販売価格(税込)</th>
</tr>
<tr>
<td>
{{ ProductCode }}
</td>
<td>
<p class=\"p-products-text01\"><span class=\"s-main font-en\">
{{ Product.getPrice01IncTaxMin|number_format }}
</span>円</p>
</td>
<td>
<div class=\"p-products-list-price02-wrap\">
{% set price01 = Product.getPrice01IncTaxMin %}
{% set price02 = Product.getPrice02IncTaxMin %}
{% if price01 != '' %}
<p class=\"p-products-label01\"><span class=\"font-en\">
<span class=\"s-main\">
{% set price03 = (1-(price02 / price01))*100|round(1, 'ceil') %}
{{ price03|number_format(1, '.', ',') }}
</span>%</span><br class=\"no-pc\">割引</p>
{% endif %}
<p class=\"p-products-text02\"><span class=\"s-main font-en\">
{{ Product.getPrice02IncTaxMin|number_format }}
</span>円</p>
</div>
</td>
</tr>
</table>
</div>
</li>
{% endfor %}
</ul>
</div>
<div class=\"ec-pagerRole\">
{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
</div>
{% endif %}
{% endif %}
</div>
{% endblock %}
", "Product/list.twig", "/home/airconwork/airconwork.co.jp/public_html/app/template/airconwork/Product/list.twig");
}
}