var/cache/dev/twig/1e/1e932c41a532ce5a2975ad3ea01ce9d7.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Artists/detail.twig */
  14. class __TwigTemplate_a606a3483f0f4d2a5c6a6e2eb6f30b9b extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'stylesheet' => [$this'block_stylesheet'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 11
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Artists/detail.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Artists/detail.twig"));
  40.         $this->parent $this->loadTemplate("default_frame.twig""Artists/detail.twig"11);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 13
  48.     public function block_javascript($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.     }
  60.     // line 16
  61.     public function block_stylesheet($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  68.         // line 17
  69.         echo "\t<style>
  70. \t\t.img-wrap-detail {
  71.             width: auto;
  72.             height: 300px;
  73.         }
  74.         .img {
  75.             width: auto;
  76.             height: 300px;
  77.             max-width: auto;
  78.             max-height: 300px;
  79.             object-fit: cover;
  80.             border-radius: 6px;
  81.         }
  82.         .product-detail-artist-photo-detail {
  83.             margin: 0px 10% 70px 5%;;
  84.         }
  85.         .margin {
  86.             margin: 10%;
  87.         }
  88.         .mt {
  89.             margin-top: -10%;
  90.         }
  91.         .mtplus {
  92.             margin-top: 25px
  93.         }
  94.         .ec-shelfGrid__item:hover {
  95.            color: #d5a770;
  96.         }
  97.         /* 800以下の時 */
  98.         @media screen and (max-width: 800px) {
  99.             .product-detail-artist-photo-detail {
  100.                 display: none;
  101.             }
  102.             .hr {
  103.                 visibility:hidden
  104.             }
  105.         }
  106. \t</style>
  107. ";
  108.         
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110.         
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112.     }
  113.     // line 60
  114.     public function block_main($context, array $blocks = [])
  115.     {
  116.         $macros $this->macros;
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  121.         // line 61
  122.         echo "    <div class=\"center\">
  123.         <div class=\"product-detail-artist margin\">
  124. \t\t\t<div class=\"artist-detail-artist-description\">
  125. \t\t\t\t<div class=\"flex\">
  126. \t\t\t\t\t<i class=\"fa-solid fa-pen-nib fa-2x fontawesome-size\"></i>
  127.                     <h2 class=\"fontweight-bold\">";
  128.         // line 66
  129.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse66), "html"nulltrue);
  130.         echo "</h2>
  131. \t\t\t\t</div>
  132. \t\t\t\t<div class=\"product-detail-artist-desc\">
  133.                     <p class=\"fontweight-bold\">« ";
  134.         // line 69
  135.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse69), "html"nulltrue);
  136.         echo " »</p>
  137. \t\t\t\t</div>
  138. \t\t\t\t<div class=\"hr\"></div>
  139. \t\t\t</div>
  140. \t\t\t<div class=\"product-detail-artist-photo-detail\">
  141.                 <img src=\"";
  142.         // line 75
  143.         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"falsefalsefalse75)), "user_data"), "html"nulltrue);
  144.         echo "\" alt=artist.name class=\"img\">
  145. \t\t\t</div>
  146. \t\t</div>
  147.         <div class=\"ec-searchnavRole mt\">
  148.             <div class=\"ec-searchnavRole__topicpath\">
  149.                 <ol class=\"ec-topicpath\">
  150.                     <div class=\"artcategory-flex\">
  151.                         <div class=\"category-title\"><h2 class=\"fontweight-bold gold\"><a href=\"";
  152.         // line 83
  153.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  154.         echo "\">";
  155.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("アート作品"), "html"nulltrue);
  156.         echo "</a></h2></div>
  157.                     </div>
  158.                 </ol>
  159.             </div>
  160.         </div>
  161.         ";
  162.         // line 89
  163.         if ((isset($context["selectedProducts"]) || array_key_exists("selectedProducts"$context) ? $context["selectedProducts"] : (function () { throw new RuntimeError('Variable "selectedProducts" does not exist.'89$this->source); })())) {
  164.             // line 90
  165.             echo "        <div class=\"ec-shelfRole mtplus\">
  166.             <ul class=\"ec-shelfGrid\">
  167.                 ";
  168.             // line 92
  169.             $context['_parent'] = $context;
  170.             $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); })()));
  171.             $context['loop'] = [
  172.               'parent' => $context['_parent'],
  173.               'index0' => 0,
  174.               'index'  => 1,
  175.               'first'  => true,
  176.             ];
  177.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  178.                 $length count($context['_seq']);
  179.                 $context['loop']['revindex0'] = $length 1;
  180.                 $context['loop']['revindex'] = $length;
  181.                 $context['loop']['length'] = $length;
  182.                 $context['loop']['last'] = === $length;
  183.             }
  184.             foreach ($context['_seq'] as $context["_key"] => $context["selectedProduct"]) {
  185.                 // line 93
  186.                 echo "                    <li class=\"ec-shelfGrid__item\">
  187.                         <a href=\"";
  188.                 // line 94
  189.                 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"falsefalsefalse94)]), "html"nulltrue);
  190.                 echo "\">
  191.                             <div class=\"img-wrap-detail\">
  192.                                 <img class=\"img\" src=\"";
  193.                 // line 96
  194.                 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"falsefalsefalse96)), "save_image"), "html"nulltrue);
  195.                 echo "\" alt=\"";
  196.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["selectedProduct"], "name", [], "any"falsefalsefalse96), "html"nulltrue);
  197.                 echo "\" ";
  198.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse96) > 5)) {
  199.                     echo " loading=\"lazy\"";
  200.                 }
  201.                 echo ">
  202.                             </div>
  203.                             <p class=\"margin\">";
  204.                 // line 98
  205.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["selectedProduct"], "name", [], "any"falsefalsefalse98), "html"nulltrue);
  206.                 echo "</p>
  207. \t\t\t\t\t\t\t";
  208.                 // line 100
  209.                 echo "                            ";
  210.                 if ((twig_get_attribute($this->env$this->source$context["selectedProduct"], "getProductionSizeVertical", [], "any"falsefalsefalse100) && twig_get_attribute($this->env$this->source$context["selectedProduct"], "getProductionSizeWidth", [], "any"falsefalsefalse100))) {
  211.                     // line 101
  212.                     echo "\t\t\t\t\t\t\t\t<p class=\"margin\">";
  213.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["selectedProduct"], "getProductionSizeVertical", [], "any"falsefalsefalse101), "html"nulltrue);
  214.                     echo " x ";
  215.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["selectedProduct"], "getProductionSizeWidth", [], "any"falsefalsefalse101), "html"nulltrue);
  216.                     echo " cm</p>
  217.                             ";
  218.                 }
  219.                 // line 103
  220.                 echo "                            <p class=\"price02-default margin\">
  221.                                 ";
  222.                 // line 104
  223.                 if (twig_get_attribute($this->env$this->source$context["selectedProduct"], "hasProductClass", [], "any"falsefalsefalse104)) {
  224.                     // line 105
  225.                     echo "                                    ";
  226.                     if ((twig_get_attribute($this->env$this->source$context["selectedProduct"], "getPrice02Min", [], "any"falsefalsefalse105) == twig_get_attribute($this->env$this->source$context["selectedProduct"], "getPrice02Max", [], "any"falsefalsefalse105))) {
  227.                         // line 106
  228.                         echo "                                        ";
  229.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["selectedProduct"], "getPrice02IncTaxMin", [], "any"falsefalsefalse106)), "html"nulltrue);
  230.                         echo "
  231.                                     ";
  232.                     } else {
  233.                         // line 108
  234.                         echo "                                        ";
  235.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["selectedProduct"], "getPrice02IncTaxMin", [], "any"falsefalsefalse108)), "html"nulltrue);
  236.                         echo " ~ ";
  237.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["selectedProduct"], "getPrice02IncTaxMax", [], "any"falsefalsefalse108)), "html"nulltrue);
  238.                         echo "
  239.                                     ";
  240.                     }
  241.                     // line 110
  242.                     echo "                                ";
  243.                 } else {
  244.                     // line 111
  245.                     echo "                                    ";
  246.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["selectedProduct"], "getPrice02IncTaxMin", [], "any"falsefalsefalse111)), "html"nulltrue);
  247.                     echo "
  248.                                 ";
  249.                 }
  250.                 // line 113
  251.                 echo "                            </p>
  252.                         </a>
  253.                     </li>
  254.                 ";
  255.                 ++$context['loop']['index0'];
  256.                 ++$context['loop']['index'];
  257.                 $context['loop']['first'] = false;
  258.                 if (isset($context['loop']['length'])) {
  259.                     --$context['loop']['revindex0'];
  260.                     --$context['loop']['revindex'];
  261.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  262.                 }
  263.             }
  264.             $_parent $context['_parent'];
  265.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['selectedProduct'], $context['_parent'], $context['loop']);
  266.             $context array_intersect_key($context$_parent) + $_parent;
  267.             // line 117
  268.             echo "            </ul>
  269.         </div>
  270.         ";
  271.         } else {
  272.             // line 120
  273.             echo "        <h3>作品はまだありません</h3>
  274.         ";
  275.         }
  276.         // line 122
  277.         echo "    </div>
  278. ";
  279.         
  280.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  281.         
  282.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  283.     }
  284.     public function getTemplateName()
  285.     {
  286.         return "Artists/detail.twig";
  287.     }
  288.     public function isTraitable()
  289.     {
  290.         return false;
  291.     }
  292.     public function getDebugInfo()
  293.     {
  294.         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,);
  295.     }
  296.     public function getSourceContext()
  297.     {
  298.         return new Source("{#
  299. This file is part of EC-CUBE
  300. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  301. http://www.ec-cube.co.jp/
  302. For the full copyright and license information, please view the LICENSE
  303. file that was distributed with this source code.
  304. #}
  305. {% extends 'default_frame.twig' %}
  306. {% block javascript %}
  307. {% endblock %}
  308. {% block stylesheet %}
  309. \t<style>
  310. \t\t.img-wrap-detail {
  311.             width: auto;
  312.             height: 300px;
  313.         }
  314.         .img {
  315.             width: auto;
  316.             height: 300px;
  317.             max-width: auto;
  318.             max-height: 300px;
  319.             object-fit: cover;
  320.             border-radius: 6px;
  321.         }
  322.         .product-detail-artist-photo-detail {
  323.             margin: 0px 10% 70px 5%;;
  324.         }
  325.         .margin {
  326.             margin: 10%;
  327.         }
  328.         .mt {
  329.             margin-top: -10%;
  330.         }
  331.         .mtplus {
  332.             margin-top: 25px
  333.         }
  334.         .ec-shelfGrid__item:hover {
  335.            color: #d5a770;
  336.         }
  337.         /* 800以下の時 */
  338.         @media screen and (max-width: 800px) {
  339.             .product-detail-artist-photo-detail {
  340.                 display: none;
  341.             }
  342.             .hr {
  343.                 visibility:hidden
  344.             }
  345.         }
  346. \t</style>
  347. {% endblock %}
  348. {% block main %}
  349.     <div class=\"center\">
  350.         <div class=\"product-detail-artist margin\">
  351. \t\t\t<div class=\"artist-detail-artist-description\">
  352. \t\t\t\t<div class=\"flex\">
  353. \t\t\t\t\t<i class=\"fa-solid fa-pen-nib fa-2x fontawesome-size\"></i>
  354.                     <h2 class=\"fontweight-bold\">{{ artist.name }}</h2>
  355. \t\t\t\t</div>
  356. \t\t\t\t<div class=\"product-detail-artist-desc\">
  357.                     <p class=\"fontweight-bold\">« {{ artist.getDescription }} »</p>
  358. \t\t\t\t</div>
  359. \t\t\t\t<div class=\"hr\"></div>
  360. \t\t\t</div>
  361. \t\t\t<div class=\"product-detail-artist-photo-detail\">
  362.                 <img src=\"{{ asset(artist.image |no_image_product, 'user_data') }}\" alt=artist.name class=\"img\">
  363. \t\t\t</div>
  364. \t\t</div>
  365.         <div class=\"ec-searchnavRole mt\">
  366.             <div class=\"ec-searchnavRole__topicpath\">
  367.                 <ol class=\"ec-topicpath\">
  368.                     <div class=\"artcategory-flex\">
  369.                         <div class=\"category-title\"><h2 class=\"fontweight-bold gold\"><a href=\"{{ url('product_list') }}\">{{ 'アート作品'|trans }}</a></h2></div>
  370.                     </div>
  371.                 </ol>
  372.             </div>
  373.         </div>
  374.         {% if selectedProducts %}
  375.         <div class=\"ec-shelfRole mtplus\">
  376.             <ul class=\"ec-shelfGrid\">
  377.                 {% for selectedProduct in selectedProducts %}
  378.                     <li class=\"ec-shelfGrid__item\">
  379.                         <a href=\"{{ url('product_detail', {'id': selectedProduct.id}) }}\">
  380.                             <div class=\"img-wrap-detail\">
  381.                                 <img class=\"img\" src=\"{{ asset(selectedProduct.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ selectedProduct.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  382.                             </div>
  383.                             <p class=\"margin\">{{ selectedProduct.name }}</p>
  384. \t\t\t\t\t\t\t{# 絵のサイズ #}
  385.                             {% if selectedProduct.getProductionSizeVertical and selectedProduct.getProductionSizeWidth %}
  386. \t\t\t\t\t\t\t\t<p class=\"margin\">{{ selectedProduct.getProductionSizeVertical }} x {{ selectedProduct.getProductionSizeWidth }} cm</p>
  387.                             {% endif %}
  388.                             <p class=\"price02-default margin\">
  389.                                 {% if selectedProduct.hasProductClass %}
  390.                                     {% if selectedProduct.getPrice02Min == selectedProduct.getPrice02Max %}
  391.                                         {{ selectedProduct.getPrice02IncTaxMin|price }}
  392.                                     {% else %}
  393.                                         {{ selectedProduct.getPrice02IncTaxMin|price }} ~ {{ selectedProduct.getPrice02IncTaxMax|price }}
  394.                                     {% endif %}
  395.                                 {% else %}
  396.                                     {{ selectedProduct.getPrice02IncTaxMin|price }}
  397.                                 {% endif %}
  398.                             </p>
  399.                         </a>
  400.                     </li>
  401.                 {% endfor %}
  402.             </ul>
  403.         </div>
  404.         {% else %}
  405.         <h3>作品はまだありません</h3>
  406.         {% endif %}
  407.     </div>
  408. {% endblock %}""Artists/detail.twig""/home/xs230941/tas-lab.net/public_html/app/template/default/Artists/detail.twig");
  409.     }
  410. }