Вывод последних отзывов на главной в Дизайн со вкусом 2

Нужно вставить в home.html следующий код:

 <div class="reviews">
        <div class="headline"><h2 class="theme-border-color">Отзывы</h2></div>
        <div class="row">
            <ul class="menu-v with-icons reviews-branch list-unstyled col-md-12">
              {foreach shopReviewsPlugin::getReviews(5) as $review}
              <li>
                <div class="review" itemprop="review" itemscope itemtype="http://schema.org/Review">
                  <div class="summary">
                    <span class="username" itemprop="author"><b>{$review.name}</b></span>
                    <meta itemprop="datePublished" content="{$review.datetime|date_format:'Y-m-d'}">
                    <span class="date" title="{$review.datetime|wa_datetime}">{$review.datetime|wa_datetime:"humandatetime"}</span>
                    {if $review.rating}
                    <span>
                        {$wa->shop->ratingHtml($review.rating)}
                    </span>
                    {/if}
                  </div>
                  {if $review.text}
                  <p itemprop="description">{$review.text}</p>
                  {/if}
                </div>
              </li>
              {/foreach}
              <li>
                  <h4><a href="/reviews/" class="theme-color">Все отзывы</a></h4>
              </li>
            </ul>
        </div>
    </div>
Posted: October 2, 2017
Was this article helpful? Yes No

0 comments

    Add comment

    To add a comment please sign up or login