{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'front_page brand-top ' %}
{% block main %}
<div class="top_main_contents">
</div>
{# index.twig の好きな場所にこのコードを貼り付ける #}
<div class="ec-layoutRole__mainBottom" id="top-review">
<div class="top-review ec-role_cosme">
<div class="ec-secHeading">
<span class="ec-secHeading__en">NEW REVIEW</span>
<span class="ec-secHeading__ja">新着順20レビュー</span>
</div>
<ul class="ec-reviewList">
{% if Reviews is not empty %}
{% for Review in Reviews %}
<li class="ec-reviewList__item">
<a href="{{ url('product_detail', {id: Review.Product.id}) }}">
<div class="ec-reviewList__header">
<h3 class="ec-reviewList__productName">{{ Review.Product.name }}</h3>
<p class="ec-reviewList__name">{{ Review.reviewer_name }} 様 <span class="ec-reviewList__date">{{ Review.create_date|date("Y/m/d") }}</span><span class="ec-reviewList__star">{% for i in 1..Review.recommend_level %}★{% endfor %}</span>
</p>
</div>
<p class="ec-reviewList__comment">{{ (Review.comment|length > 150 ? Review.comment|slice(0, 150) ~ '...' : Review.comment)|nl2br }}</p>
<p class="right s80">商品ページへ ></p>
</a>
</li>
{% endfor %}
{% else %}
<li class="ec-reviewList__item--none">レビューはまだありません。</li>
{% endif %}
</ul>
<div class="accordion">
<details>
<summary>\教えてください!/<br>
<span class="small">あなたの声が「ステキの道しるべ」になります</span></summary>
<p>私たちは、一つひとつの商品がまっすぐ伝わるよう、心を込めて商品紹介をしています。<br>
ですが、実際に商品を手にしてくださった「リアルな声」に勝るものはありません。<br><br>
「この使い心地が好き」<br>
「こんな使い方もおすすめです」<br>
「リピートしている決め手は」<br><br>
そんな、あなただけの素直な声が、お気に入りアイテムと出会うための、何より大切な「道しるべ」となります。<br><br>
もしよろしければ、ほんのひとことでも構いません。<br>
あなたが感じた商品とのストーリーを、ぜひお聞かせいただけないでしょうか。<br>
温かいお声が集まることで、この場所がさらにお役に立てることを願っております。</p>
</details>
<P class="orange bold">レビュー投稿で300ポイント贈呈!詳しくは各商品ページ「レビューを投稿」ボタンから</P>
</div>
</div>
</div>
{% endblock %}