app/template/default/Artists/detail.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% block javascript %}
  10. {% endblock %}
  11. {% block stylesheet %}
  12.     <style>
  13.         .img-wrap-detail {
  14.             width: auto;
  15.             height: 300px;
  16.         }
  17.         .img {
  18.             width: auto;
  19.             height: 300px;
  20.             max-width: auto;
  21.             max-height: 300px;
  22.             object-fit: cover;
  23.             border-radius: 6px;
  24.         }
  25.         .product-detail-artist-photo-detail {
  26.             margin: 0px 10% 70px 5%;;
  27.         }
  28.         .margin {
  29.             margin: 10%;
  30.         }
  31.         .mt {
  32.             margin-top: -10%;
  33.         }
  34.         .mtplus {
  35.             margin-top: 25px
  36.         }
  37.         .ec-shelfGrid__item:hover {
  38.            color: #d5a770;
  39.         }
  40.         /* 800以下の時 */
  41.         @media screen and (max-width: 800px) {
  42.             .product-detail-artist-photo-detail {
  43.                 display: none;
  44.             }
  45.             .hr {
  46.                 visibility:hidden
  47.             }
  48.         }
  49.     </style>
  50. {% endblock %}
  51. {% block main %}
  52.     <div class="center">
  53.         <div class="product-detail-artist margin">
  54.             <div class="artist-detail-artist-description">
  55.                 <div class="flex">
  56.                     <i class="fa-solid fa-pen-nib fa-2x fontawesome-size"></i>
  57.                     <h2 class="fontweight-bold">{{ artist.name }}</h2>
  58.                 </div>
  59.                 <div class="product-detail-artist-desc">
  60.                     <p class="fontweight-bold">« {{ artist.getDescription }} »</p>
  61.                 </div>
  62.                 <div class="hr"></div>
  63.             </div>
  64.             <div class="product-detail-artist-photo-detail">
  65.                 <img src="{{ asset(artist.image |no_image_product, 'user_data') }}" alt=artist.name class="img">
  66.             </div>
  67.         </div>
  68.         <div class="ec-searchnavRole mt">
  69.             <div class="ec-searchnavRole__topicpath">
  70.                 <ol class="ec-topicpath">
  71.                     <div class="artcategory-flex">
  72.                         <div class="category-title"><h2 class="fontweight-bold gold"><a href="{{ url('product_list') }}">{{ 'アート作品'|trans }}</a></h2></div>
  73.                     </div>
  74.                 </ol>
  75.             </div>
  76.         </div>
  77.         {% if selectedProducts %}
  78.         <div class="ec-shelfRole mtplus">
  79.             <ul class="ec-shelfGrid">
  80.                 {% for selectedProduct in selectedProducts %}
  81.                     <li class="ec-shelfGrid__item">
  82.                         <a href="{{ url('product_detail', {'id': selectedProduct.id}) }}">
  83.                             <div class="img-wrap-detail">
  84.                                 <img class="img" src="{{ asset(selectedProduct.main_list_image|no_image_product, 'save_image') }}" alt="{{ selectedProduct.name }}" {% if loop.index > 5 %} loading="lazy"{% endif %}>
  85.                             </div>
  86.                             <p class="margin">{{ selectedProduct.name }}</p>
  87.                             {# 絵のサイズ #}
  88.                             {% if selectedProduct.getProductionSizeVertical and selectedProduct.getProductionSizeWidth %}
  89.                                 <p class="margin">{{ selectedProduct.getProductionSizeVertical }} x {{ selectedProduct.getProductionSizeWidth }} cm</p>
  90.                             {% endif %}
  91.                             <p class="price02-default margin">
  92.                                 {% if selectedProduct.hasProductClass %}
  93.                                     {% if selectedProduct.getPrice02Min == selectedProduct.getPrice02Max %}
  94.                                         {{ selectedProduct.getPrice02IncTaxMin|price }}
  95.                                     {% else %}
  96.                                         {{ selectedProduct.getPrice02IncTaxMin|price }} ~ {{ selectedProduct.getPrice02IncTaxMax|price }}
  97.                                     {% endif %}
  98.                                 {% else %}
  99.                                     {{ selectedProduct.getPrice02IncTaxMin|price }}
  100.                                 {% endif %}
  101.                             </p>
  102.                         </a>
  103.                     </li>
  104.                 {% endfor %}
  105.             </ul>
  106.         </div>
  107.         {% else %}
  108.         <h3>作品はまだありません</h3>
  109.         {% endif %}
  110.     </div>
  111. {% endblock %}