Commit b5a6d518bddababeaf50fc623ad8820f653eb9a1

Authored by Yarik
1 parent 85040b57

Comment added

frontend/views/catalog/product.php
@@ -179,6 +179,9 @@ @@ -179,6 +179,9 @@
179 </div> 179 </div>
180 <div class="artbox_comment_description"> 180 <div class="artbox_comment_description">
181 <?php 181 <?php
  182 + /*
  183 + ?>
  184 + <?php
182 if(!empty( $product->averageRating ) && $product->averageRating->value) { 185 if(!empty( $product->averageRating ) && $product->averageRating->value) {
183 ?> 186 ?>
184 <div class="rateit" data-rateit-value="<?php echo $product->averageRating->value; ?>" data-rateit-readonly="true" data-rateit-ispreset="true"></div> 187 <div class="rateit" data-rateit-value="<?php echo $product->averageRating->value; ?>" data-rateit-readonly="true" data-rateit-ispreset="true"></div>
@@ -195,6 +198,9 @@ @@ -195,6 +198,9 @@
195 } 198 }
196 ?> 199 ?>
197 </a></p> 200 </a></p>
  201 + <?php
  202 + */
  203 + ?>
198 </div> 204 </div>
199 <br> 205 <br>
200 <div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,gplus,twitter" data-size="s"></div> 206 <div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,gplus,twitter" data-size="s"></div>
@@ -270,6 +276,7 @@ @@ -270,6 +276,7 @@
270 <div class="both"></div> 276 <div class="both"></div>
271 <div class="comment-wrapper"> 277 <div class="comment-wrapper">
272 <?php 278 <?php
  279 + /*
273 echo CommentWidget::widget([ 280 echo CommentWidget::widget([
274 'comment_class' => Comment::className(), 281 'comment_class' => Comment::className(),
275 'rating_class' => Rating::className(), 282 'rating_class' => Rating::className(),
@@ -293,6 +300,7 @@ @@ -293,6 +300,7 @@
293 'id' => 'artbox-comment', 300 'id' => 'artbox-comment',
294 ], 301 ],
295 ]); 302 ]);
  303 + */
296 ?> 304 ?>
297 </div> 305 </div>
298 306
frontend/views/catalog/product_item.php
@@ -41,6 +41,8 @@ @@ -41,6 +41,8 @@
41 <?php endif ?> 41 <?php endif ?>
42 <div class="comment_display_block"> 42 <div class="comment_display_block">
43 <?php 43 <?php
  44 + /*
  45 + <?php
44 if(!empty( $product->averageRating && $product->averageRating->value > 0)) { 46 if(!empty( $product->averageRating && $product->averageRating->value > 0)) {
45 ?> 47 ?>
46 <div class="rateit" data-rateit-value="<?php echo $product->averageRating->value; ?>" data-rateit-readonly="true" data-rateit-ispreset="true"></div> 48 <div class="rateit" data-rateit-value="<?php echo $product->averageRating->value; ?>" data-rateit-readonly="true" data-rateit-ispreset="true"></div>
@@ -57,6 +59,8 @@ @@ -57,6 +59,8 @@
57 ]); 59 ]);
58 ?> 60 ?>
59 </p> 61 </p>
  62 + */
  63 + ?>
60 </div> 64 </div>
61 <div itemprop="name"><a href="<?= Url::to([ 65 <div itemprop="name"><a href="<?= Url::to([
62 'catalog/product', 66 'catalog/product',