<?php if ($model->enable_comments) { ?> <?php if (intval($Comments[$model->getId()]) !== 0) { ?> <li class="f_r"> <?php $CI->load->module('star_rating')->show_star_rating($model, false); ?> <button data-trigger="[data-href='#comment']" data-scroll="true" class="count-response d_i-b v-a_m d_l_1"> <?php echo intval($Comments[$model->getId()]); ?> <?php echo SStringHelper::Pluralize($Comments[$model->getId()], array(lang("отзыв", 'lightVertical'), lang("отзыва", 'lightVertical'), lang("отзывов", 'lightVertical'))); ?> </button> </li> <?php } else { ?> <li> <div class="frame-star"> <div class="f_r"> <button data-trigger="[data-href='#comment']" data-scroll="true" class="count-null-response d_l_1"><?php echo lang('Оставить отзыв', 'lightVertical'); ?> </button> </div> </div>
<div class="right-catalog"> <!-- Start. Category name and count products in category--> <div class="f-s_0 title-category"> <div class="frame-title"> <h1 class="d_i title"><?php echo $title; ?> </h1> </div> <span class="count">(<?php if (isset($totalProducts)) { echo $totalProducts; } ?> <?php echo SStringHelper::Pluralize($totalProducts, array(lang('товар', 'lightVertical'), lang('товара', 'lightVertical'), lang('товаров', 'lightVertical'))); ?> )</span> </div> <!-- End. Category name and count products in category--> <?php if ($totalProducts == 0) { ?> <!-- Start. Empty category--> <div class="msg layout-highlight layout-highlight-msg"> <div class="info"> <span class="icon_info"></span> <span class="text-el"><?php echo lang('Не найдено товаров', 'lightVertical'); ?> </span>