4ca21c3e
Alexey Boroda
first commit
|
1
|
<?php
|
dec8b5ed
Alexey Boroda
Changes:
|
2
3
4
5
6
7
8
9
10
11
|
/**
* @var Blog $model
* @var View $this
*/
use common\models\Blog;
use common\models\Comments;
use common\modules\comment\widgets\CommentWidget;
use yii\helpers\Url;
use yii\web\View;
|
f2acc393
Alexey Boroda
-Seo widget integ...
|
12
|
use common\widgets\Seo;
|
dec8b5ed
Alexey Boroda
Changes:
|
13
14
|
$this->title = $model->title;
|
f2acc393
Alexey Boroda
-Seo widget integ...
|
15
16
|
$this->params[ 'seo' ][ Seo::TITLE ] = $model->title;
$this->params[ 'seo' ][ Seo::DESCRIPTION ] = '';
|
dec8b5ed
Alexey Boroda
Changes:
|
17
18
19
20
|
$this->params[ 'breadcrumbs' ][] = [
'label' => 'Блог',
'url' => Url::to([ '/blog' ]),
];
|
f2acc393
Alexey Boroda
-Seo widget integ...
|
21
|
$this->params[ 'breadcrumbs' ][] = $model->title;
|
4ca21c3e
Alexey Boroda
first commit
|
22
23
24
25
26
27
28
|
?>
<div class="col-md-12">
<div class="blog_post2">
<div class="title"><?php echo $model->title; ?></div>
|
dec8b5ed
Alexey Boroda
Changes:
|
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<div class="tags">
<?php foreach($model->categories as $category) { ?>
<span class="blog_tag">
<a href="<?php
echo Url::to([
'/blog/category',
'id' => $category->id,
]);
?>"><?php echo $category->name; ?></a>
</span>
<?php } ?>
<span class="date"><?php
echo \Yii::t('app', date('F', $model->date)), ' ', date('d, Y', $model->date);
|
4ca21c3e
Alexey Boroda
first commit
|
42
43
44
|
?></span>
</div>
<div class="text-blog">
|
dec8b5ed
Alexey Boroda
Changes:
|
45
|
<?php echo $model->body; ?>
|
4ca21c3e
Alexey Boroda
first commit
|
46
47
|
</div>
<ul class="shares-blog">
|
391c98b4
Alexey Boroda
-Added social but...
|
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
<li><a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=<?php
echo Url::to([
'blog/view',
'id' => $model->id,
], true);
?>" class="fb"></a></li>
<li><a target="_blank" href="http://pinterest.com/pin/create/button/?url=<?php
echo Url::to([
'blog/view',
'id' => $model->id,
], true);
?>" class="ptst"></a></li>
<li><a target="_blank" href="https://plus.google.com/share?url=<?php
echo Url::to([
'blog/view',
'id' => $model->id,
], true);
?>" class="gpl"></a></li>
<li><a target="_blank" href="http://vk.com/share.php?url=<?php
echo Url::to([
'blog/view',
'id' => $model->id,
], true);
?>" class="vk"></a></li>
|
4ca21c3e
Alexey Boroda
first commit
|
72
73
74
|
</ul>
</div>
</div>
|