<?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;
/* Artists/detail.twig */
class __TwigTemplate_a606a3483f0f4d2a5c6a6e2eb6f30b9b 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'],
'stylesheet' => [$this, 'block_stylesheet'],
'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", "Artists/detail.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Artists/detail.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "Artists/detail.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_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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 16
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 17
echo "\t<style>
\t\t.img-wrap-detail {
width: auto;
height: 300px;
}
.img {
width: auto;
height: 300px;
max-width: auto;
max-height: 300px;
object-fit: cover;
border-radius: 6px;
}
.product-detail-artist-photo-detail {
margin: 0px 10% 70px 5%;;
}
.margin {
margin: 10%;
}
.mt {
margin-top: -10%;
}
.mtplus {
margin-top: 25px
}
.ec-shelfGrid__item:hover {
color: #d5a770;
}
/* 800以下の時 */
@media screen and (max-width: 800px) {
.product-detail-artist-photo-detail {
display: none;
}
.hr {
visibility:hidden
}
}
\t</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 60
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 61
echo " <div class=\"center\">
<div class=\"product-detail-artist margin\">
\t\t\t<div class=\"artist-detail-artist-description\">
\t\t\t\t<div class=\"flex\">
\t\t\t\t\t<i class=\"fa-solid fa-pen-nib fa-2x fontawesome-size\"></i>
<h2 class=\"fontweight-bold\">";
// line 66
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["artist"]) || array_key_exists("artist", $context) ? $context["artist"] : (function () { throw new RuntimeError('Variable "artist" does not exist.', 66, $this->source); })()), "name", [], "any", false, false, false, 66), "html", null, true);
echo "</h2>
\t\t\t\t</div>
\t\t\t\t<div class=\"product-detail-artist-desc\">
<p class=\"fontweight-bold\">« ";
// line 69
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["artist"]) || array_key_exists("artist", $context) ? $context["artist"] : (function () { throw new RuntimeError('Variable "artist" does not exist.', 69, $this->source); })()), "getDescription", [], "any", false, false, false, 69), "html", null, true);
echo " »</p>
\t\t\t\t</div>
\t\t\t\t<div class=\"hr\"></div>
\t\t\t</div>
\t\t\t<div class=\"product-detail-artist-photo-detail\">
<img src=\"";
// line 75
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["artist"]) || array_key_exists("artist", $context) ? $context["artist"] : (function () { throw new RuntimeError('Variable "artist" does not exist.', 75, $this->source); })()), "image", [], "any", false, false, false, 75)), "user_data"), "html", null, true);
echo "\" alt=artist.name class=\"img\">
\t\t\t</div>
\t\t</div>
<div class=\"ec-searchnavRole mt\">
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath\">
<div class=\"artcategory-flex\">
<div class=\"category-title\"><h2 class=\"fontweight-bold gold\"><a href=\"";
// line 83
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("アート作品"), "html", null, true);
echo "</a></h2></div>
</div>
</ol>
</div>
</div>
";
// line 89
if ((isset($context["selectedProducts"]) || array_key_exists("selectedProducts", $context) ? $context["selectedProducts"] : (function () { throw new RuntimeError('Variable "selectedProducts" does not exist.', 89, $this->source); })())) {
// line 90
echo " <div class=\"ec-shelfRole mtplus\">
<ul class=\"ec-shelfGrid\">
";
// line 92
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["selectedProducts"]) || array_key_exists("selectedProducts", $context) ? $context["selectedProducts"] : (function () { throw new RuntimeError('Variable "selectedProducts" does not exist.', 92, $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["selectedProduct"]) {
// line 93
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 94
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["selectedProduct"], "id", [], "any", false, false, false, 94)]), "html", null, true);
echo "\">
<div class=\"img-wrap-detail\">
<img class=\"img\" src=\"";
// line 96
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["selectedProduct"], "main_list_image", [], "any", false, false, false, 96)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "name", [], "any", false, false, false, 96), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 96) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
</div>
<p class=\"margin\">";
// line 98
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "name", [], "any", false, false, false, 98), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t";
// line 100
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "getProductionSizeVertical", [], "any", false, false, false, 100) && twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "getProductionSizeWidth", [], "any", false, false, false, 100))) {
// line 101
echo "\t\t\t\t\t\t\t\t<p class=\"margin\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "getProductionSizeVertical", [], "any", false, false, false, 101), "html", null, true);
echo " x ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "getProductionSizeWidth", [], "any", false, false, false, 101), "html", null, true);
echo " cm</p>
";
}
// line 103
echo " <p class=\"price02-default margin\">
";
// line 104
if (twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "hasProductClass", [], "any", false, false, false, 104)) {
// line 105
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "getPrice02Min", [], "any", false, false, false, 105) == twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "getPrice02Max", [], "any", false, false, false, 105))) {
// line 106
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "getPrice02IncTaxMin", [], "any", false, false, false, 106)), "html", null, true);
echo "
";
} else {
// line 108
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "getPrice02IncTaxMin", [], "any", false, false, false, 108)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "getPrice02IncTaxMax", [], "any", false, false, false, 108)), "html", null, true);
echo "
";
}
// line 110
echo " ";
} else {
// line 111
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "getPrice02IncTaxMin", [], "any", false, false, false, 111)), "html", null, true);
echo "
";
}
// line 113
echo " </p>
</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['selectedProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 117
echo " </ul>
</div>
";
} else {
// line 120
echo " <h3>作品はまだありません</h3>
";
}
// line 122
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Artists/detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 307 => 122, 303 => 120, 298 => 117, 281 => 113, 275 => 111, 272 => 110, 264 => 108, 258 => 106, 255 => 105, 253 => 104, 250 => 103, 242 => 101, 239 => 100, 235 => 98, 224 => 96, 219 => 94, 216 => 93, 199 => 92, 195 => 90, 193 => 89, 182 => 83, 171 => 75, 162 => 69, 156 => 66, 149 => 61, 139 => 60, 88 => 17, 78 => 16, 60 => 13, 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 javascript %}
{% endblock %}
{% block stylesheet %}
\t<style>
\t\t.img-wrap-detail {
width: auto;
height: 300px;
}
.img {
width: auto;
height: 300px;
max-width: auto;
max-height: 300px;
object-fit: cover;
border-radius: 6px;
}
.product-detail-artist-photo-detail {
margin: 0px 10% 70px 5%;;
}
.margin {
margin: 10%;
}
.mt {
margin-top: -10%;
}
.mtplus {
margin-top: 25px
}
.ec-shelfGrid__item:hover {
color: #d5a770;
}
/* 800以下の時 */
@media screen and (max-width: 800px) {
.product-detail-artist-photo-detail {
display: none;
}
.hr {
visibility:hidden
}
}
\t</style>
{% endblock %}
{% block main %}
<div class=\"center\">
<div class=\"product-detail-artist margin\">
\t\t\t<div class=\"artist-detail-artist-description\">
\t\t\t\t<div class=\"flex\">
\t\t\t\t\t<i class=\"fa-solid fa-pen-nib fa-2x fontawesome-size\"></i>
<h2 class=\"fontweight-bold\">{{ artist.name }}</h2>
\t\t\t\t</div>
\t\t\t\t<div class=\"product-detail-artist-desc\">
<p class=\"fontweight-bold\">« {{ artist.getDescription }} »</p>
\t\t\t\t</div>
\t\t\t\t<div class=\"hr\"></div>
\t\t\t</div>
\t\t\t<div class=\"product-detail-artist-photo-detail\">
<img src=\"{{ asset(artist.image |no_image_product, 'user_data') }}\" alt=artist.name class=\"img\">
\t\t\t</div>
\t\t</div>
<div class=\"ec-searchnavRole mt\">
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath\">
<div class=\"artcategory-flex\">
<div class=\"category-title\"><h2 class=\"fontweight-bold gold\"><a href=\"{{ url('product_list') }}\">{{ 'アート作品'|trans }}</a></h2></div>
</div>
</ol>
</div>
</div>
{% if selectedProducts %}
<div class=\"ec-shelfRole mtplus\">
<ul class=\"ec-shelfGrid\">
{% for selectedProduct in selectedProducts %}
<li class=\"ec-shelfGrid__item\">
<a href=\"{{ url('product_detail', {'id': selectedProduct.id}) }}\">
<div class=\"img-wrap-detail\">
<img class=\"img\" src=\"{{ asset(selectedProduct.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ selectedProduct.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
</div>
<p class=\"margin\">{{ selectedProduct.name }}</p>
\t\t\t\t\t\t\t{# 絵のサイズ #}
{% if selectedProduct.getProductionSizeVertical and selectedProduct.getProductionSizeWidth %}
\t\t\t\t\t\t\t\t<p class=\"margin\">{{ selectedProduct.getProductionSizeVertical }} x {{ selectedProduct.getProductionSizeWidth }} cm</p>
{% endif %}
<p class=\"price02-default margin\">
{% if selectedProduct.hasProductClass %}
{% if selectedProduct.getPrice02Min == selectedProduct.getPrice02Max %}
{{ selectedProduct.getPrice02IncTaxMin|price }}
{% else %}
{{ selectedProduct.getPrice02IncTaxMin|price }} ~ {{ selectedProduct.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ selectedProduct.getPrice02IncTaxMin|price }}
{% endif %}
</p>
</a>
</li>
{% endfor %}
</ul>
</div>
{% else %}
<h3>作品はまだありません</h3>
{% endif %}
</div>
{% endblock %}", "Artists/detail.twig", "/home/xs230941/tas-lab.net/public_html/app/template/default/Artists/detail.twig");
}
}