app/template/aneros2023/Category/progasm-products.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.     <script>
  11.     </script>
  12. {% endblock %}
  13. {% block main %}
  14. {% include('@CustomerReview42/Block/customer_review4_recommend_css.twig') %}
  15. <!-- ページ固有のスタイル -->
  16. <style>
  17.     .std img {
  18.     max-width: 100%;
  19.     }
  20.     p.description {
  21.     font-size: 18px;
  22.     line-height: 1.5em;
  23.         color: #fff;
  24.         letter-spacing: -1px;
  25.     }
  26.     a.more-link {
  27.     font-size: 20px;
  28.     color: #0886fb;
  29.     white-space: nowrap;
  30.     }
  31.     .grey-products-icons.flexbox {
  32.         justify-content: center;
  33.         flex-wrap: wrap;
  34.     }
  35.     .grey-products-icons .product-item {
  36.         width: 90px;
  37.     margin: 5px 10px;
  38.         padding: 0;
  39.         opacity: 1;
  40.     }
  41.     #category-featured-products .page-intro h1 {
  42.     font-size: 60px;
  43.     color: #5c5c5c;
  44.         margin-bottom: 0;
  45.     }
  46.     #category-featured-products .page-intro h1 sup {
  47.         vertical-align: baseline;
  48.     margin-top: 0;
  49.         font-size: 27%;
  50.     display: inline-block;
  51.     }
  52.     #category-featured-products h2 sup {
  53.         font-size: 25%;
  54.         top: -3.5em;
  55.         line-height: 0;
  56.     position: relative;
  57.     vertical-align: baseline;
  58.     }
  59.     #category-featured-products .classic-product-contr .product-info {
  60.     width: 510px;
  61.     padding: 60px 0px 30px 0;
  62.         margin: 0 0 0 auto;
  63.     }
  64.     #category-featured-products .classic-product-contr .product-img {
  65.         width: 590px;
  66.         padding-top:20px;
  67.         margin-right: auto;
  68.         text-align: center;
  69.     }
  70.     #category-featured-products .classic-product-contr .product-img img {
  71.         margin-right: auto;
  72.         margin-left: auto;
  73.         width:590px;
  74.         max-width:100%;
  75.     }
  76.     #category-featured-products .classic-product-contr .btn-cart {
  77.         margin-left: auto;
  78.         margin-right: auto;
  79.         min-width: 240px;
  80.     }
  81.     #category-featured-products .classic-product-contr h2 {
  82.     font-size: 56px;
  83.     font-weight: 400;
  84.     color: #ff0000;
  85.     margin-bottom: 15px;
  86.     }
  87.     #category-featured-products .classic-product-contr h2 span {
  88.     display: block;
  89.     font-size: 26px;
  90.     color: #fff;
  91.     letter-spacing: 0.5em;
  92.     }
  93.     #category-featured-products .classic-product-contr .description {
  94.     margin-bottom: 10px;
  95.     width: 400px;
  96.     }
  97.     #category-featured-products .classic-product-contr .product-info .flexbox {
  98.         justify-content: center;
  99.         flex-wrap: wrap;
  100.     }
  101.     .product-container {
  102.         justify-content: center;
  103.     }
  104.     .page-intro.flexbox,
  105.     #progasm-ice .container.flexbox {
  106.         flex-direction: row-reverse;
  107.     }
  108.     .page-intro .product-info {
  109.         margin: auto 70px auto 40px;
  110.     }
  111.     
  112.     .page-intro .product-info h1 img {
  113.         width: 100%;
  114.         max-width:300px;
  115.         padding-bottom:15px;
  116.     }
  117.     #category-featured-products #progasm-classic {
  118.         background-image: url({{ asset('aneros/img/products/Progasm-Anniversary/progasm-classic-bg.jpg') }});
  119.         background-position: center;
  120.         background-repeat: no-repeat;
  121.         background-size: cover;
  122.     }
  123.     #category-featured-products #progasm-classic .product-info {
  124.         margin: auto 0;
  125.     }
  126.     #category-featured-products #progasm-classic .product-img {
  127.         width: auto;
  128.     }
  129.     
  130.     #category-featured-products #progasm-header .product-img img {
  131.         max-width:379px;
  132.     }
  133.     
  134.     #category-featured-products #progasm-ice {
  135.         background-image: url({{ asset('aneros/img/products/Progasm-Anniversary/progasm-ice-bg.jpg') }});
  136.         background-position: center;
  137.         background-repeat: no-repeat;
  138.         background-size: cover;
  139.     }
  140.     
  141.     #category-featured-products #progasm-black-ice {
  142.         background-image: url({{ asset('aneros/img/products/Progasm-Anniversary/progasm-black-ice-bg.jpg') }});
  143.         background-position: center;
  144.         background-repeat: no-repeat;
  145.         background-size: cover;
  146.     }
  147.     #category-featured-products #progasm-ice .product-info {
  148.         margin: auto 0;
  149.     }
  150.     #category-featured-products #progasm-ice .product-img {
  151.         width: auto;
  152.     }
  153.     #category-featured-products .container {
  154.         padding: 30px 0;
  155.     }
  156.     
  157.     .progasm-swooth {
  158.         background: #272727 url({{ asset('aneros/img/category/progasm-products/progasm-swooth-black.png') }}) center top no-repeat;
  159.         padding: 40px 0;
  160.         background-size: cover;
  161.         -moz-background-size: cover;
  162.         -webkit-background-size: cover;
  163.         box-sizing: content-box;
  164.         -moz-box-sizing: content-box;
  165.         -webkit-box-sizing: content-box;
  166.     }
  167.     @media only screen and (max-width: 999px) {
  168.         .page-intro.flexbox{
  169.             margin: 0 auto;
  170.             flex-direction: column;
  171.         }
  172.         #category-featured-products .classic-product-contr .product-container.flexbox, .page-intro.flexbox, #progasm-ice .container.flexbox {
  173.             flex-direction: column;
  174.         }
  175.     
  176.         #category-featured-products .page-intro .product-info,
  177.         #category-featured-products .classic-product-contr .product-info {
  178.             width: auto;
  179.             padding: 0;
  180.             margin: 0 auto;
  181.             max-width: 600px;
  182.         }
  183.         #category-featured-products .classic-product-contr .description {
  184.             padding: 0;
  185.             width: auto;
  186.         }
  187.   
  188.         #category-featured-products .classic-product-contr .product-img {
  189.             margin: 0 auto;
  190.             text-align: center;
  191.         }
  192.         #category-featured-products .classic-product-contr h2 {
  193.             font-size: 46px;
  194.         font-weight: 400;
  195.         }
  196.         #category-featured-products .page-intro .product-img img {
  197.             margin: 20px auto 0;
  198.         }
  199.         #category-featured-products #progasm-classic .product-img,
  200.         #category-featured-products #progasm-ice .product-img {
  201.             position: static;
  202.         }
  203.         #progasm-black-ice .container.flexbox {
  204.             flex-direction: column;
  205.         }
  206.         #category-featured-products .container {
  207.             max-width: 600px;
  208.         }
  209.     }
  210.     @media only screen and (max-width: 767px) {
  211.         #category-featured-products .page-intro h1 {
  212.         font-size: 50px;
  213.         }
  214.         #category-featured-products .page-intro p {
  215.             font-size: 18px;
  216.         }
  217.         .page-intro,
  218.         #category-featured-products .classic-product-contr .product-info,
  219.         #category-featured-products .classic-product-contr .product-img {
  220.             max-width: 300px;
  221.         }
  222.         #category-featured-products #progasm-classic .product-info,
  223.         #category-featured-products #progasm-ice .product-info {
  224.             margin: 0 auto;
  225.         }
  226.         #category-featured-products #progasm-header .product-img img {
  227.         width:100%;
  228.         }
  229.     }
  230. </style>
  231. <div class="main-container" id="trident-series-page">
  232.     <div class="breadcrumbs">
  233.         <div class="container">
  234.             <ul itemscope="" itemtype="http://schema.org/BreadcrumbList">
  235.                 <li class="home" itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
  236.                     <a itemprop="item" href="{{ url('homepage') }}" title="トップページ"><span itemprop="name" style="padding:0">トップページ</span></a>
  237.                     <meta itemprop="position" content="1">
  238.                     <span>&gt;</span>
  239.                 </li>
  240.                 <li>
  241.                     <strong>プロガスムシリーズ</strong>
  242.                 </li>
  243.             </ul>
  244.         </div>
  245.     </div>
  246.     <div class="col-main" id="category-featured-products">
  247.         <div id="progasm-products-wrapper">
  248.             <div class="container">
  249.                 <div class="page-intro flexbox" id="progasm-header">
  250.                     <div class="product-info">
  251.                         <h1><img class="progasm-anniversary-logo" src="{{ asset('aneros/img/category/progasm-products/progasm-anniversary-logo-long.jpg') }}" alt="アニバーサリーモデル 20周年" /></h1>
  252.                         <p class="description" style="color:#000" >究極のドライオーガズムとは何かをとことん追求する米国企業、アネロス社。そのアネロスブランド誕生20周年を記念し、アニバーサリーモデルとして「プロガスム」3種をリリースいたします。</p>
  253.                         <p class="description" style="color:#000" >旧プロガスムをより洗練させたアニバーサリーモデルの名に恥じない素晴らしいアネロスに仕上がっています。</p>
  254.                     </div>
  255.                     <div class="product-img">
  256.                         <img src="{{ asset('aneros/img/category/progasm-products/progasm-anniversary-box.jpg') }}" class="animate" alt="プロガスムシリーズ"
  257.                         data-animate="zoomIn" data-duration="1.0s" data-delay="0.6s">
  258.                     </div>
  259.                 </div>
  260.             </div>
  261.             <div class="classic-product-contr" id="progasm-black-ice">
  262.                 <div class="container flexbox">
  263.                     <div class="product-info">
  264.                         <h2>プロガスム<sup>®</sup>
  265.                             <span>ブラックアイス</span>
  266.                         </h2>
  267.                         <p class="description"><b>漆黒が奏でる、美しいプレジャー</b><br><br>素材に用いられた米国FDAの材質承認を得ている医療用非多孔性プラスチックが、まるでブラックダイヤモンドのような輝きを放つ「プロガスムブラックアイス」。ハードで力強い印象の通り、太くて男らしいシャフトから放たれる圧倒的な刺激と快楽は、まさにドライオーガズムに達することができない方への救世主的な存在と言っても過言ではないでしょう。 </p>
  268.                         <a href="{{ url('product_detail', {'id': 81}) }}" class="more-link">詳細をみる &gt;</a>
  269.                     </div>
  270.                     <div class="product-img">
  271.                         <img src="{{ asset('aneros/img/category/progasm-products/progasm-black-ice-tilted.png') }}" class="animate" alt="プロガスムブラックアイス"
  272.                         data-animate="fadeIn" data-duration="1.0s" data-delay="1.0s">
  273.                         {% set Product = repository('Eccube\\Entity\\Product').find(81) %}
  274.                         
  275.                             <!-- REVIEW AREA -->
  276.                             {% import('@CustomerReview42/Block/customer_review4_recommend_macro.twig') as recommend_macro %}
  277.                             {% set review_list = repository('Plugin\\CustomerReview42\\Entity\\CustomerReviewTotal').getRecommend(Product.id) %}
  278.                             {% set reviewer_total = 0 %}
  279.                             {% set review_total_point = 0 %}
  280.                             {% set count = 5 %}
  281.                             {% for i in review_list %}
  282.                                 {% set reviewer_total = reviewer_total + i %}
  283.                                 {% set review_total_point = review_total_point + i * count %}
  284.                                 {% set count = count - 1 %}
  285.                             {% endfor %}
  286.                             {% set review_point = reviewer_total == 0 ? 0  : (review_total_point / reviewer_total) %}
  287.                             
  288.                             {% if 0 < reviewer_total %}
  289.                                 <div id="plg_customer_review_special{{Product.id}}" class="review-layoutRole">
  290.                                     <h3 class="review_score" data-id="{{ Product.id }}" data-avg="{{ review_point }}" data-num="{{ reviewer_total }}" data-starsize="22" data-mstarsize="14" data-imgbase="{{ asset('aneros/img/products/') }}">
  291.                                         <span class="review_all_score_title"></span>
  292.                                         <span class="review_all_score_image" style="display: inline-block"></span>
  293.                                         <span class="review_all_score"><a href="{{ url('product_detail', {'id': Product.id}) }}#review_area"></a></span>
  294.                                     </h3>
  295.                                 </div>
  296.                             {% endif %}
  297.                             
  298.                             <script>
  299.                               $(function () {
  300.                                 if ( $('#plg_customer_review_special_anchor{{Product.id}}').length) {
  301.                                     $('#plg_customer_review_special{{Product.id}}').insertAfter($('#plg_customer_review_special_anchor{{Product.id}}'));
  302.                                 } else if ( $('#button{{ Product.id }}').length) {
  303.                                     $('#plg_customer_review_special{{Product.id}}').insertBefore($('#button{{ Product.id }}'));
  304.                                 } else {
  305.                                     $('#plg_customer_review_special{{Product.id}}').hide();
  306.                                 }
  307.                               });
  308.                             </script>
  309.                             <!-- REVIEW AREA END -->
  310.                         
  311.                         {% if Product.stock_find %}
  312.                             <button type="button" title="Add to Cart" class="button btn-cart one-click-add-cart" 
  313.                             data-action="{{ url('product_add_cart', {id:Product.id}) }}" 
  314.                             data-product_id="{{ Product.id }}" data-product_name="{{ Product.name }}"  data-product_img="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}"
  315.                             data-product_class="{{ Product.ProductClasses[0].id }}" 
  316.                             data-token="{{ csrf_token('Eccube\\Form\\Type\\AddCartType') }}" id="button{{ Product.id }}">
  317.                                     <span>カゴに入れる - {{ Product.getPrice02IncTaxMin|price }}<span class="inctax"> (税込)</span></span>
  318.                             </button>
  319.                         {% else %}
  320.                             {% set arrivemail = true %}
  321.                             {% for ProductTag in Product.ProductTag %}
  322.                                 {% if ProductTag.Tag.id == 99 %}
  323.                                     {% set arrivemail = false %}
  324.                                 {% endif %}
  325.                             {% endfor %}
  326.                             
  327.                             {% if arrivemail %}
  328.                                 <button type="button" data-productid="{{ Product.id }}" data-productname="{{ Product.name }}" title="入荷お知らせ" class="button btn-cart add-to-mail">
  329.                                     <span>入荷お知らせ</span>
  330.                                 </button>
  331.                             {% else %}
  332.                                 <button type="button" title="在庫切れ" class="button btn-cart add-to-cart-out">
  333.                                     <span>在庫切れ</span>
  334.                                 </button>
  335.                             {% endif %}
  336.                         {% endif %}
  337.                     </div>
  338.                 </div>
  339.             </div>
  340.         </div>
  341.     </div>
  342.     {{ include('Block/add_to_cart.twig') }}
  343.   <div class="swooth-wrapper progasm-swooth">
  344.   </div>
  345. </div>
  346. {% endblock %}