app/template/default/Block/lm_item_recently_checked_item.twig line 1

Open in your IDE?
  1. <!-- 最近チェックした商品 -->
  2. {% if recentviews is defined %}
  3. <div id="recentviews" class="recentviews-style">
  4.   <div class="recentviews-ttl">
  5.     <p>最近チェックした商品</p>
  6.   </div>
  7.   <div class="not-history">
  8.     {% set requestUri = path(app.request.attributes.get('_route'),
  9.                       app.request.attributes.get('_route_params')) %}
  10.     {% set requestUri = php_preg_replace("/[\&\?]{1}recentviews=(off|on)/", "", requestUri) %}
  11.     {% set urlQuery = custom_parse_url(requestUri) %}
  12.     {% if urlQuery is defined and urlQuery is not null %}
  13.       {% set requestUri = requestUri ~ '&recentviews=' %}
  14.     {% else %}
  15.       {% set requestUri = requestUri ~ '?recentviews=' %}
  16.     {% endif %}
  17.   </div>
  18.   <div class="recentview-list">
  19.     {% for v in recentviews %}
  20.       <div class="recentview-item">
  21.         <div class="recentview-image">
  22.           <a href="/item/{{ v.item_id }}.html">
  23.             <img width="98px" height="98px" class="recommend-images" alt="{{ v.goods_name | display_text }}" src="{{ v.img | display_text }}" />
  24.           </a>
  25.           <div class="recentview-caption">
  26.             <a href="/item/{{ v.item_id }}.html">{{ php_mb_strimwidth(v.goods_name, 0, 75, "...") }}</a>
  27.             <div class="check-item-price">{{ php_number_format(php_round(v.min_gp_price)) }}円(税込){% if v.count_gp_price > 1 %} ~{% endif %}</div>
  28.             {% if v.average is defined %}
  29.               <div class="history-average">
  30.                 {{ v.average_img | raw }}
  31.                 <span class="history-average-bracket">(</span><span class="history-average-point">{{ v.review }}</span><span class="history-average-bracket">)</span>
  32.               </div>
  33.             {% endif %}
  34.           </div>
  35.         </div>
  36.       </div>
  37.     {% endfor %}
  38.   </div>
  39. </div>
  40. {% endif %}