app/template/osechi/Product/index.twig line 1

Open in your IDE?
  1. {% extends 'default_frame.twig' %}
  2. {% set body_class = 'product_page' %}
  3. {% block javascript %}
  4. <script>
  5. $(function(){
  6.     $('.ec-topicpath a').on('click',function(){
  7.         $('.ec-topicpath div').removeClass('active');
  8.         $(this).parent().addClass('active');
  9.         tid=$(this).attr('id');
  10.          if('all' == tid) {
  11.              $('.ec-shelfRole.list').show();
  12.          } else {
  13.             $('.ec-shelfRole.list').hide();
  14.             $('.ec-shelfRole.list#'+tid).show();
  15.          }
  16.          console.log('.ec-shelfRole.list#'+tid);
  17.     });
  18. });
  19. </script>
  20. {% endblock %}
  21. {% block stylesheet %}
  22.     <link rel="stylesheet" href="{{ asset('assets/css/products.css') }}?{{ env('CSS_PARAM') }}">
  23. {% endblock %}
  24. {% set ProductsSuperCar = 
  25.     [
  26. 5,
  27. 6,
  28. 30,
  29. 20,
  30. 1,
  31. 4,
  32. 25,
  33. 63,
  34. 69,
  35. 72,
  36. 73,
  37. 74,
  38. 75,
  39. 71,
  40. 47,
  41. 53,
  42. 21,
  43. 19,
  44. 24,
  45. 22,
  46. 23,
  47. 57,
  48. 27,
  49. 26,
  50.     ]
  51. %}
  52. {% set ProductsJdm = 
  53.     [
  54. 6,
  55. 77,
  56. 72,
  57. 73,
  58. 76,
  59. 74,
  60. 75,
  61. 71,
  62. 26,
  63.     ]
  64. %}
  65. {% set ProductsSuv = 
  66.     [
  67. 8,
  68. 10,
  69. 37,
  70. 9,
  71. 68,
  72. 64,
  73. 66,
  74. 32,
  75. 7,
  76. 29,
  77. 28,
  78. 33,
  79. 50,
  80. 65,
  81. 51,
  82. 48,
  83. 49,
  84.     ]
  85. %}
  86. {% set ProductsClasic = 
  87.     [
  88.         11,
  89.         13,
  90.         2,
  91.         12,
  92.     ]
  93. %}
  94. {% set ProductsBoat = 
  95.     [
  96.         14,
  97.         16,
  98.         78,
  99.         15,
  100.         17,
  101.     ]
  102. %}
  103. {% set ProductsHelicopter = 
  104.     [
  105.         18,
  106.         56,
  107.         58,
  108.         36,
  109.     ]
  110. %}
  111. {% set ownerflg = "false" %}
  112. {% if app.request.query.get('supermario') == 'luigi' %}
  113. {#
  114. {% set ownerflg = "true" %}
  115. #}
  116. {% endif %}
  117. {% block main %}
  118. <div class="ec-layoutRole__contents">
  119.     <main class="ec-layoutRole__main">
  120.         <form name="form1" id="form1" method="get" action="?">
  121.             <input type="hidden" id="mode" name="mode">
  122.             <input type="hidden" id="category_id" name="category_id">
  123.             <input type="hidden" id="name" name="name">
  124.             <input type="hidden" id="pageno" name="pageno">
  125.             <input type="hidden" id="disp_number" name="disp_number" value="20">
  126.             <input type="hidden" id="orderby" name="orderby" value="1">
  127.         </form>
  128.         <!-- ▼ カテゴリヘッド -->
  129.         <div class="ec-categoryHeadRole">
  130.             <div class="ec-categoryHeadRole__image" style="display: block;">
  131.                 <picture>
  132.                     <source media="(max-width:767px)" srcset="/awd/html/template/osechi/assets/img/sample/category_head_0_sp.jpg?20230921">
  133.                     <source media="(min-width:768px)" srcset="/awd/html/template/osechi/assets/img/sample/category_head_0.jpg">
  134.                     <img src="/awd/html/template/osechi/assets/img/sample/category_head_0.jpg" alt="商品ラインナップ">
  135.                 </picture>
  136.             </div>
  137.             <div class="ec-categoryHeadRole__content">
  138.                 <h1 class="title">Introducing A Wonderful Day's Mobility Lineup</h1>
  139.                 <div class="description">
  140. <p>These are the companions of your finest moments. With your choice of mobility, you can elevate your travel memories to the extraordinary. From classic cars to supercars, SUVs, pleasure boats, helicopters, the possibilities and options are limitless!!</p>
  141.                 </div>
  142.             </div>
  143.         </div>
  144.         <!-- ▲ カテゴリヘッド -->
  145. {#
  146.         <!-- ▼ .ec-searchnavRole -->
  147.         <div class="ec-searchnavRole">
  148.             <div class="ec-searchnavRole__inner">
  149.                 <div class="ec-topicpath">
  150.                     <div class="category active appearEffect">
  151.                         <a href="javascript:void(0)" id="all">
  152.                             <p>
  153.                                 all<br>mobility
  154.                             </p>
  155.                         </a>
  156.                     </div>
  157.                     <div class="appearEffect">
  158.                         <a href="javascript:void(0)" id="supercar">
  159.                             <img src="/awd/html/template/osechi/assets/img/products/icon_supercar.png" alt="super car">
  160.                             <p>Super Car</p>
  161.                         </a>
  162.                     </div>
  163.                     <div class="appearEffect">
  164.                         <a href="javascript:void(0)" id="suv">
  165.                             <img src="/awd/html/template/osechi/assets/img/products/icon_svu.png" alt="suv">
  166.                             <p>SUV</p>
  167.                         </a>
  168.                     </div>
  169.                     <div class="appearEffect">
  170.                         <a href="javascript:void(0)" id="clasiccar">
  171.                             <img src="/awd/html/template/osechi/assets/img/products/icon_classiccar.png" alt="clasic car">
  172.                             <p>Clasic Car</p>
  173.                         </a>
  174.                     </div>
  175.                     <div class="appearEffect">
  176.                         <a href="javascript:void(0)" id="boat">
  177.                             <img src="/awd/html/template/osechi/assets/img/products/icon_boat.png" alt="boat">
  178.                             <p>boat</p>
  179.                         </a>
  180.                     </div>
  181.                     <div class="appearEffect">
  182.                         <a href="javascript:void(0)" id="helicopter">
  183.                             <img src="/awd/html/template/osechi/assets/img/products/icon_helicopter.png" alt="helicopter">
  184.                             <p>helicopter</p>
  185.                         </a>
  186.                     </div>
  187.                 </div>
  188.             </div>
  189.         </div>
  190.         <!-- ▲ .ec-searchnavRole -->
  191. #}
  192.         <!-- ▼ 商品一覧 -->
  193.         <div class="ec-shelfRole list anchor" id="supercar">
  194.             <div class="category-title appearEffect">
  195.                 <img src="/awd/html/template/osechi/assets/img/products/icon_supercar.png" alt="Super Car">
  196.                 <span>Super Car</span>
  197.             </div>
  198.             <ul class="ec-shelfGrid col_max5 ready">
  199. {% for id in ProductsSuperCar %}
  200.                 <!-- ▼ 商品単位 -->
  201.                 <li class="ec-shelfGrid__item">
  202.                     <div class="ec-productItemRole appearEffect">
  203.                         <div class="ec-productItemRole__image">
  204.                             <a href="/awd/products/detail/{{ products[id].id }}">
  205.                                 <img src="/awd/html/upload/save_image/{{ products[id].file_name }}?{{ env('JS_PARAM') }}" alt="{{ products[id].name }} {{ products[id].search_word }}">
  206.                             </a>
  207.                         </div>
  208.                         <div class="ec-productItemRole__content">
  209.                             <h3 class="ec-productItemRole__title">
  210.                                 <span>
  211.                                     {% if ownerflg %}
  212. {#
  213.                                         {{products[id].item16}}
  214. #}
  215.                                     {% endif %}
  216.                                     {{ products[id].name }}
  217.                                 </span>
  218.                             </h3>
  219. <div class="status-icon">
  220. {% if products[id].item19 or products[id].item22 %}
  221. <a href="{{url('rental')}}"><span>#Rental</span></a>
  222. {% endif %}
  223. {% if products[id].item14 %}
  224. <a href="{{url('drive')}}"><span>#Experience</span></a>
  225. {% endif %}
  226. </div>
  227. {#
  228.                             <div class="ec-productItemRole__price">
  229.                                 <div class="ec-price"> <span class="ec-price__price">3,080~</span></div>
  230.                             </div>
  231. #}
  232.                         </div>
  233.                     </div>
  234.                 </li>
  235.                 <!-- ▲ 商品単位 -->
  236. {% endfor %}
  237.             </ul>
  238.         </div>
  239.         <div class="ec-pagerRole"> </div>
  240.         <!-- ▲ 商品一覧 -->
  241.         <!-- ▼ 商品一覧 -->
  242.         <div class="ec-shelfRole list anchor" id="supercar">
  243.             <div class="category-title appearEffect" style="padding-top: 5%;">
  244. {#
  245.                 <img src="/awd/html/template/osechi/assets/img/products/icon_supercar.png" alt="Super Car">
  246. #}
  247.                 <span>JDM</span>
  248.             </div>
  249.             <ul class="ec-shelfGrid col_max5 ready">
  250. {% for id in ProductsJdm %}
  251.                 <!-- ▼ 商品単位 -->
  252.                 <li class="ec-shelfGrid__item">
  253.                     <div class="ec-productItemRole appearEffect">
  254.                         <div class="ec-productItemRole__image">
  255.                             <a href="/awd/products/detail/{{ products[id].id }}">
  256.                                 <img src="/awd/html/upload/save_image/{{ products[id].file_name }}?{{ env('JS_PARAM') }}" alt="{{ products[id].name }} {{ products[id].search_word }}">
  257.                             </a>
  258.                         </div>
  259.                         <div class="ec-productItemRole__content">
  260.                             <h3 class="ec-productItemRole__title">
  261.                                 <span>
  262.                                     {% if ownerflg %}
  263. {#
  264.                                         {{products[id].item16}}
  265. #}
  266.                                     {% endif %}
  267.                                     {{ products[id].name }}
  268.                                 </span>
  269.                             </h3>
  270. <div class="status-icon">
  271. {% if products[id].item19 or products[id].item22 %}
  272. <a href="{{url('rental')}}"><span>#Rental</span></a>
  273. {% endif %}
  274. {% if products[id].item14 %}
  275. <a href="{{url('drive')}}"><span>#Experience</span></a>
  276. {% endif %}
  277. </div>
  278.                         </div>
  279.                     </div>
  280.                 </li>
  281.                 <!-- ▲ 商品単位 -->
  282. {% endfor %}
  283.             </ul>
  284.         </div>
  285.         <div class="ec-pagerRole"> </div>
  286.         <!-- ▲ 商品一覧 -->
  287.         <!-- ▼ 商品一覧 -->
  288.         <div class="ec-shelfRole list anchor" id="suv">
  289.             <div class="category-title appearEffect">
  290.                 <img src="/awd/html/template/osechi/assets/img/products/icon_svu.png" alt="suv">
  291.                 <span>SUV</span>
  292.             </div>
  293.             <ul class="ec-shelfGrid col_max5 ready">
  294. {% for id in ProductsSuv %}
  295.                 <!-- ▼ 商品単位 -->
  296.                 <li class="ec-shelfGrid__item">
  297.                     <div class="ec-productItemRole appearEffect">
  298.                         <div class="ec-productItemRole__image">
  299.                             <a href="/awd/products/detail/{{ products[id].id }}">
  300. {#
  301. {% if products[id].id==64 or products[id].id==66 %}
  302.                                 <span class="sell-icon off-rate" style="background-color: #f4352d;position: absolute;padding: 0 5px;z-index: 10;color: #fff;font-size: 1.2rem;">New Snow tire!</span>
  303. {% endif %}
  304. #}
  305.                                 <img src="/awd/html/upload/save_image/{{ products[id].file_name }}?{{ env('JS_PARAM') }}" alt="{{ products[id].name }} {{ products[id].search_word }}">
  306.                             </a>
  307.                         </div>
  308.                         <div class="ec-productItemRole__content">
  309.                             <h3 class="ec-productItemRole__title">
  310.                                 <span>
  311.                                     {% if ownerflg %}
  312. {#
  313.                                         {{products[id].item16}}
  314. #}
  315.                                     {% endif %}
  316.                                     {{ products[id].name }}
  317.                                 </span>
  318.                             </h3>
  319. <div class="status-icon">
  320. {% if products[id].item19 or products[id].item22 %}
  321. <a href="{{url('rental')}}"><span>#Rental</span></a>
  322. {% endif %}
  323. {% if products[id].item14 %}
  324. <a href="{{url('drive')}}"><span>#Experience</span></a>
  325. {% endif %}
  326. </div>
  327. {#
  328.                             <div class="ec-productItemRole__price">
  329.                                 <div class="ec-price"> <span class="ec-price__price">3,080~</span></div>
  330.                             </div>
  331. #}
  332.                         </div>
  333.                     </div>
  334.                 </li>
  335.                 <!-- ▲ 商品単位 -->
  336. {% endfor %}
  337.             </ul>
  338.         </div>
  339.         <div class="ec-pagerRole"> </div>
  340.         <!-- ▲ 商品一覧 -->
  341.         <!-- ▼ 商品一覧 -->
  342.         <div class="ec-shelfRole list anchor" id="clasiccar">
  343.             <div class="category-title appearEffect">
  344.                 <img src="/awd/html/template/osechi/assets/img/products/icon_classiccar.png" alt="classiccar">
  345.                 <span>Classic car</span>
  346.             </div>
  347.             <ul class="ec-shelfGrid col_max5 ready">
  348. {% for id in ProductsClasic %}
  349.                 <!-- ▼ 商品単位 -->
  350.                 <li class="ec-shelfGrid__item">
  351.                     <div class="ec-productItemRole appearEffect">
  352.                         <div class="ec-productItemRole__image">
  353.                             <a href="/awd/products/detail/{{ products[id].id }}">
  354.                                 <img src="/awd/html/upload/save_image/{{ products[id].file_name }}?{{ env('JS_PARAM') }}" alt="{{ products[id].name }} {{ products[id].search_word }}">
  355.                             </a>
  356.                         </div>
  357.                         <div class="ec-productItemRole__content">
  358.                             <h3 class="ec-productItemRole__title">
  359.                                 <span>
  360.                                     {% if ownerflg %}
  361. {#
  362.                                         {{products[id].item16}}
  363. #}
  364.                                     {% endif %}
  365.                                     {{ products[id].name }}
  366.                                 </span>
  367.                             </h3>
  368. <div class="status-icon">
  369. {% if products[id].item19 or products[id].item22 %}
  370. <a href="{{url('rental')}}"><span>#Rental</span></a>
  371. {% endif %}
  372. {% if products[id].item14 %}
  373. <a href="{{url('drive')}}"><span>#Experience</span></a>
  374. {% endif %}
  375. </div>
  376. {#
  377.                             <div class="ec-productItemRole__price">
  378.                                 <div class="ec-price"> <span class="ec-price__price">3,080~</span></div>
  379.                             </div>
  380. #}
  381.                         </div>
  382.                     </div>
  383.                 </li>
  384.                 <!-- ▲ 商品単位 -->
  385. {% endfor %}
  386.             </ul>
  387.         </div>
  388.         <div class="ec-pagerRole"> </div>
  389.         <!-- ▲ 商品一覧 -->
  390.         <!-- ▼ 商品一覧 -->
  391.         <div class="ec-shelfRole list anchor" id="boat">
  392.             <div class="category-title appearEffect">
  393.                 <img src="/awd/html/template/osechi/assets/img/products/icon_boat.png" alt="boat">
  394.                 <span>Boat</span>
  395.             </div>
  396.             <ul class="ec-shelfGrid col_max5 ready">
  397. {% for id in ProductsBoat %}
  398.                 <!-- ▼ 商品単位 -->
  399.                 <li class="ec-shelfGrid__item">
  400.                     <div class="ec-productItemRole appearEffect">
  401.                         <div class="ec-productItemRole__image">
  402.                             <a href="/awd/products/detail/{{ products[id].id }}">
  403.                                 <img src="/awd/html/upload/save_image/{{ products[id].file_name }}?{{ env('JS_PARAM') }}" alt="{{ products[id].name }} {{ products[id].search_word }}">
  404.                             </a>
  405.                         </div>
  406.                         <div class="ec-productItemRole__content">
  407.                             <h3 class="ec-productItemRole__title">
  408.                                 <span>
  409.                                     {% if ownerflg %}
  410. {#
  411.                                         {{products[id].item16}}
  412. #}
  413.                                     {% endif %}
  414.                                     {{ products[id].name }}
  415.                                 </span>
  416.                             </h3>
  417. {#
  418.                             <div class="ec-productItemRole__price">
  419.                                 <div class="ec-price"> <span class="ec-price__price">3,080~</span></div>
  420.                             </div>
  421. #}
  422.                         </div>
  423.                     </div>
  424.                 </li>
  425.                 <!-- ▲ 商品単位 -->
  426. {% endfor %}
  427.             </ul>
  428.         </div>
  429.         <div class="ec-pagerRole"> </div>
  430.         <!-- ▲ 商品一覧 -->
  431.         <!-- ▼ 商品一覧 -->
  432.         <div class="ec-shelfRole list anchor" id="helicopter">
  433.             <div class="category-title appearEffect">
  434.                 <img src="/awd/html/template/osechi/assets/img/products/icon_helicopter.png" alt="helicopter">
  435.                 <span>Helicopter</span>
  436.             </div>
  437.             <ul class="ec-shelfGrid col_max5 ready">
  438. {% for id in ProductsHelicopter %}
  439.                 <!-- ▼ 商品単位 -->
  440.                 <li class="ec-shelfGrid__item">
  441.                     <div class="ec-productItemRole appearEffect">
  442.                         <div class="ec-productItemRole__image">
  443.                             <a href="/awd/products/detail/{{ products[id].id }}">
  444.                                 <img src="/awd/html/upload/save_image/{{ products[id].file_name }}?{{ env('JS_PARAM') }}" alt="{{ products[id].name }} {{ products[id].search_word }}">
  445.                             </a>
  446.                         </div>
  447.                         <div class="ec-productItemRole__content">
  448.                             <h3 class="ec-productItemRole__title">
  449.                                 <span>
  450.                                     {% if ownerflg %}
  451. {#
  452.                                         {{products[id].item16}}
  453. #}
  454.                                     {% endif %}
  455.                                     {{ products[id].name }}
  456.                                 </span>
  457.                             </h3>
  458. {#
  459.                             <div class="ec-productItemRole__price">
  460.                                 <div class="ec-price"> <span class="ec-price__price">3,080~</span></div>
  461.                             </div>
  462. #}
  463.                         </div>
  464.                     </div>
  465.                 </li>
  466.                 <!-- ▲ 商品単位 -->
  467. {% endfor %}
  468.             </ul>
  469.         </div>
  470.         <div class="ec-pagerRole"> </div>
  471.         <!-- ▲ 商品一覧 -->
  472. </div>
  473. {% endblock %}