From 5fb14ec06843d2fb0f2270f5a7bdaf2b94c77240 Mon Sep 17 00:00:00 2001 From: yarik Date: Thu, 11 Aug 2016 11:49:39 +0300 Subject: [PATCH] Comment structure data --- common/modules/comment/views/artbox_comment_item.php | 6 +++--- common/modules/comment/widgets/CommentWidget.php | 3 +++ frontend/views/catalog/product.php | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/common/modules/comment/views/artbox_comment_item.php b/common/modules/comment/views/artbox_comment_item.php index 7c826ab..13c5005 100755 --- a/common/modules/comment/views/artbox_comment_item.php +++ b/common/modules/comment/views/artbox_comment_item.php @@ -18,12 +18,12 @@ echo Html::img('/img/user-noimage.png'); ?> -
+
date_add); ?>
-
+
user )) { echo $model->user->username; @@ -41,7 +41,7 @@ -
+
text; ?> diff --git a/common/modules/comment/widgets/CommentWidget.php b/common/modules/comment/widgets/CommentWidget.php index e962f4b..b2e9374 100755 --- a/common/modules/comment/widgets/CommentWidget.php +++ b/common/modules/comment/widgets/CommentWidget.php @@ -111,6 +111,9 @@ */ public $itemOptions = [ 'class' => 'artbox_item_container', + 'itemprop' => 'comment', + 'itemscope' => 'itemscope', + 'itemtype' => 'http://schema.org/UserComments', ]; /** diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index 6eea2de..33af5ef 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -182,7 +182,7 @@ -

+

comments); if($comment_count) { -- libgit2 0.21.4