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
13
14
|
$this->registerJs("
_gaq.push(['_setCustomVar',2,'Author','".$author."',3]);
", View::POS_HEAD);
|
550eac02
Administrator
second
|
15
16
17
18
19
|
?>
<nav class="bread-crumbs">
<?= Breadcrumbs::widget([
'links' => [
|
ac8ab861
Administrator
20.07.16
|
20
|
['label'=>'Блог','url'=>['/blog']],
|
550eac02
Administrator
second
|
21
22
23
24
25
26
27
28
29
|
$news->title
],
]) ?>
<div class="both"></div>
</nav>
<div class="layout">
<div class="content">
|
fe7f596f
Yarik
Added comments to...
|
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<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
|
50
|
<?= Html::img(\common\components\artboximage\ArtboxImageHelper::getImageSrc($news->imageUrl, 'product'), ['class'=>'blog-show-img float-left'])?>
|
550eac02
Administrator
second
|
51
52
|
<?=$news->body?>
<p class='date'><?=$news->date?></p>
|
fe7f596f
Yarik
Added comments to...
|
53
54
55
|
</div>
<div class="comment-wrapper" style="padding-bottom:25px">
|
2211268d
Yarik
Added comments to...
|
56
|
<div class='comments-border'></div>
|
fe7f596f
Yarik
Added comments to...
|
57
58
59
|
<?php
echo CommentWidget::widget([
'model' => $news,
|
2211268d
Yarik
Added comments to...
|
60
|
'layout' => "{form} {reply_form} {list}"
|
fe7f596f
Yarik
Added comments to...
|
61
62
63
64
65
|
]);
?>
<div class="both"></div>
</div>
<div class="both"></div>
|
550eac02
Administrator
second
|
66
|
|
3f2bc3d0
Administrator
first commit
|
67
|
</div>
|