7ba4acc5
Administrator
after marge
|
1
|
<?php
|
fe7f596f
Yarik
Added comments to...
|
2
3
|
use common\modules\comment\widgets\CommentWidget;
use yii\helpers\Html;
|
3bcd471e
Alex Savenko
ga tests
|
4
5
|
use yii\widgets\Breadcrumbs;
use yii\web\View;
|
550eac02
Administrator
second
|
6
|
?>
|
7ba4acc5
Administrator
after marge
|
7
|
<?php
|
51464eb6
Eugeny Galkovskiy
123
|
8
|
|
550eac02
Administrator
second
|
9
|
$this->title = $news->meta_title;
|
a59e31bb
Administrator
20.07.16
|
10
|
$this->params['seo']['title'] = !empty($this->title) ?$this->title :$news->title;
|
550eac02
Administrator
second
|
11
|
$this->registerMetaTag(['name' => 'description', 'content' => $news->meta_description]);
|
3bcd471e
Alex Savenko
ga tests
|
12
|
$this->registerJs("
|
1a3ecccf
Alex Savenko
ga tests
|
13
14
15
|
ga('set', 'author', '".$author."');
ga('send', 'pageview');
|
1bf8792f
Alex Savenko
ga tests
|
16
|
", View::POS_END);
|
550eac02
Administrator
second
|
17
18
19
20
21
|
?>
<nav class="bread-crumbs">
<?= Breadcrumbs::widget([
'links' => [
|
ac8ab861
Administrator
20.07.16
|
22
|
['label'=>'Блог','url'=>['/blog']],
|
550eac02
Administrator
second
|
23
24
25
26
27
28
29
30
31
|
$news->title
],
]) ?>
<div class="both"></div>
</nav>
<div class="layout">
<div class="content">
|
fe7f596f
Yarik
Added comments to...
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<h1 class="article_title"><?=$news->title?></h1>
<div class="artbox_comment_description article_comment_description">
<?php
if(!empty( $news->averageRating ) && $news->averageRating->value) {
?>
<div class="rateit" data-rateit-value="<?php echo $news->averageRating->value; ?>" data-rateit-readonly="true" data-rateit-ispreset="true"></div>
<?php
}
?>
<p><a href="#artbox-comment">
<?php
$comment_count = count($news->comments);
if($comment_count) {
echo "Отзывов: " . $comment_count;
} else {
echo "Оставть отзыв";
}
?>
</a></p>
</div>
|
e2aaf166
Administrator
01.06.16
|
52
|
<?= Html::img(\common\components\artboximage\ArtboxImageHelper::getImageSrc($news->imageUrl, 'product'), ['class'=>'blog-show-img float-left'])?>
|
550eac02
Administrator
second
|
53
54
|
<?=$news->body?>
<p class='date'><?=$news->date?></p>
|
fe7f596f
Yarik
Added comments to...
|
55
56
57
|
</div>
<div class="comment-wrapper" style="padding-bottom:25px">
|
2211268d
Yarik
Added comments to...
|
58
|
<div class='comments-border'></div>
|
fe7f596f
Yarik
Added comments to...
|
59
60
61
|
<?php
echo CommentWidget::widget([
'model' => $news,
|
2211268d
Yarik
Added comments to...
|
62
|
'layout' => "{form} {reply_form} {list}"
|
fe7f596f
Yarik
Added comments to...
|
63
64
65
66
67
|
]);
?>
<div class="both"></div>
</div>
<div class="both"></div>
|
550eac02
Administrator
second
|
68
|
|
3f2bc3d0
Administrator
first commit
|
69
|
</div>
|