<!-- 最近チェックした商品 -->
{% if recentviews is defined %}
<div id="recentviews" class="recentviews-style">
<div class="recentviews-ttl">
<p>最近チェックした商品</p>
</div>
<div class="not-history">
{% set requestUri = path(app.request.attributes.get('_route'),
app.request.attributes.get('_route_params')) %}
{% set requestUri = php_preg_replace("/[\&\?]{1}recentviews=(off|on)/", "", requestUri) %}
{% set urlQuery = custom_parse_url(requestUri) %}
{% if urlQuery is defined and urlQuery is not null %}
{% set requestUri = requestUri ~ '&recentviews=' %}
{% else %}
{% set requestUri = requestUri ~ '?recentviews=' %}
{% endif %}
</div>
<div class="recentview-list">
{% for v in recentviews %}
<div class="recentview-item">
<div class="recentview-image">
<a href="/item/{{ v.item_id }}.html">
<img width="98px" height="98px" class="recommend-images" alt="{{ v.goods_name | display_text }}" src="{{ v.img | display_text }}" />
</a>
<div class="recentview-caption">
<a href="/item/{{ v.item_id }}.html">{{ php_mb_strimwidth(v.goods_name, 0, 75, "...") }}</a>
<div class="check-item-price">{{ php_number_format(php_round(v.min_gp_price)) }}円(税込){% if v.count_gp_price > 1 %} ~{% endif %}</div>
{% if v.average is defined %}
<div class="history-average">
{{ v.average_img | raw }}
<span class="history-average-bracket">(</span><span class="history-average-point">{{ v.review }}</span><span class="history-average-bracket">)</span>
</div>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}