| @@ -4,7 +4,7 @@ |
| @@ -4,7 +4,7 @@ |
4
| * Date: 26.01.18 |
4
| * Date: 26.01.18 |
5
| * Time: 9:22 |
5
| * Time: 9:22 |
6
| * |
6
| * |
7
| - * @var Article $article |
7
| + * @var Article $article |
8
| * @var SeoComponent $seo |
8
| * @var SeoComponent $seo |
9
| */ |
9
| */ |
10
| |
10
| |
| @@ -15,17 +15,17 @@ |
| @@ -15,17 +15,17 @@ |
15
| use common\models\Settings; |
15
| use common\models\Settings; |
16
| use artbox\core\components\SeoComponent; |
16
| use artbox\core\components\SeoComponent; |
17
| use yii\helpers\Url; |
17
| use yii\helpers\Url; |
18
| - |
18
| + use artbox\webcomment\widgets\CommentWidget; |
19
| |
19
| |
20
| $settings = Settings::getInstance(); |
20
| $settings = Settings::getInstance(); |
21
| $seo = Yii::$app->get('seo'); |
21
| $seo = Yii::$app->get('seo'); |
22
| |
22
| |
23
| $this->params[ 'breadcrumbs' ][] = [ |
23
| $this->params[ 'breadcrumbs' ][] = [ |
24
| 'label' => Yii::t('app', "menu-blog"), |
24
| 'label' => Yii::t('app', "menu-blog"), |
25
| - 'url' => Url::toRoute(['blog/index']) |
25
| + 'url' => Url::toRoute([ 'blog/index' ]), |
26
| ]; |
26
| ]; |
27
| $this->params[ 'breadcrumbs' ][] = $seo->h1 |
27
| $this->params[ 'breadcrumbs' ][] = $seo->h1 |
28
| - |
28
| + |
29
| ?> |
29
| ?> |
30
| |
30
| |
31
| <div id="content"> |
31
| <div id="content"> |
| @@ -39,47 +39,28 @@ |
| @@ -39,47 +39,28 @@ |
39
| <div class="col-md-9" id="blog-post"> |
39
| <div class="col-md-9" id="blog-post"> |
40
| |
40
| |
41
| <p class="lead"> |
41
| <p class="lead"> |
42
| - <?=$article->lang->title?> |
42
| + <?= $article->lang->title ?> |
43
| </p> |
43
| </p> |
44
| |
44
| |
45
| <div id="post-content" class="post-blog"> |
45
| <div id="post-content" class="post-blog"> |
46
| |
46
| |
47
| <p> |
47
| <p> |
48
| - <?=$article->image->getImg( |
48
| + <?= $article->image->getImg( |
49
| [ |
49
| [ |
50
| - 'class' => "img-responsive" |
50
| + 'class' => "img-responsive", |
51
| ] |
51
| ] |
52
| - )?> |
52
| + ) ?> |
53
| </p> |
53
| </p> |
54
| |
54
| |
55
| - <?=$article->lang->body?> |
55
| + <?= $article->lang->body ?> |
56
| |
56
| |
57
| </div> |
57
| </div> |
58
| <!-- /#post-content --> |
58
| <!-- /#post-content --> |
59
| - |
| |
60
| - <div id="disqus_thread"></div> |
| |
61
| - <script> |
| |
62
| - |
| |
63
| - /** |
| |
64
| - * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS. |
| |
65
| - * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/ |
| |
66
| - /* |
| |
67
| - var disqus_config = function () { |
| |
68
| - this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable |
| |
69
| - this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable |
| |
70
| - }; |
| |
71
| - */ |
| |
72
| - (function() { // DON'T EDIT BELOW THIS LINE |
| |
73
| - var d = document, s = d.createElement('script'); |
| |
74
| - s.src = 'https://http-t13-artweb-com-ua.disqus.com/embed.js'; |
| |
75
| - s.setAttribute('data-timestamp', +new Date()); |
| |
76
| - (d.head || d.body).appendChild(s); |
| |
77
| - })(); |
| |
78
| - </script> |
| |
79
| - <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> |
| |
80
| - |
| |
81
| - |
| |
82
| - <!-- <div id="disqus_thread"></div>--> |
59
| + |
| |
60
| + <?= CommentWidget::widget([ 'model' => $article ]) ?> |
| |
61
| + |
| |
62
| + |
| |
63
| +<!-- <div id="disqus_thread"></div>--> |
83
| <!-- <script>--> |
64
| <!-- <script>--> |
84
| <!----> |
65
| <!----> |
85
| <!-- /**--> |
66
| <!-- /**--> |
| @@ -93,104 +74,126 @@ |
| @@ -93,104 +74,126 @@ |
93
| <!-- */--> |
74
| <!-- */--> |
94
| <!-- (function() { // DON'T EDIT BELOW THIS LINE--> |
75
| <!-- (function() { // DON'T EDIT BELOW THIS LINE--> |
95
| <!-- var d = document, s = d.createElement('script');--> |
76
| <!-- var d = document, s = d.createElement('script');--> |
96
| -<!-- s.src = 'https://new-kbenergy-test.disqus.com/embed.js';--> |
77
| +<!-- s.src = 'https://http-t13-artweb-com-ua.disqus.com/embed.js';--> |
97
| <!-- s.setAttribute('data-timestamp', +new Date());--> |
78
| <!-- s.setAttribute('data-timestamp', +new Date());--> |
98
| <!-- (d.head || d.body).appendChild(s);--> |
79
| <!-- (d.head || d.body).appendChild(s);--> |
99
| <!-- })();--> |
80
| <!-- })();--> |
100
| <!-- </script>--> |
81
| <!-- </script>--> |
101
| -<!-- <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>--> |
| |
102
| - |
| |
103
| - |
| |
104
| - |
82
| +<!-- <noscript>Please enable JavaScript to view the--> |
| |
83
| +<!-- <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>--> |
| |
84
| + |
| |
85
| + |
| |
86
| + <!-- <div id="disqus_thread"></div>--> |
| |
87
| + <!-- <script>--> |
| |
88
| + <!----> |
| |
89
| + <!-- /**--> |
| |
90
| + <!-- * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.--> |
| |
91
| + <!-- * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/--> |
| |
92
| + <!-- /*--> |
| |
93
| + <!-- var disqus_config = function () {--> |
| |
94
| + <!-- this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable--> |
| |
95
| + <!-- this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable--> |
| |
96
| + <!-- };--> |
| |
97
| + <!-- */--> |
| |
98
| + <!-- (function() { // DON'T EDIT BELOW THIS LINE--> |
| |
99
| + <!-- var d = document, s = d.createElement('script');--> |
| |
100
| + <!-- s.src = 'https://new-kbenergy-test.disqus.com/embed.js';--> |
| |
101
| + <!-- s.setAttribute('data-timestamp', +new Date());--> |
| |
102
| + <!-- (d.head || d.body).appendChild(s);--> |
| |
103
| + <!-- })();--> |
| |
104
| + <!-- </script>--> |
| |
105
| + <!-- <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>--> |
| |
106
| + |
| |
107
| + |
105
| <!-- <div id="comments">--> |
108
| <!-- <div id="comments">--> |
106
| -<!-- <h4 class="text-uppercase">2 комментария</h4>--> |
| |
107
| -<!-- --> |
| |
108
| -<!-- --> |
| |
109
| -<!-- <div class="row comment">--> |
| |
110
| -<!-- <div class="col-sm-3 col-md-2 text-center-xs">--> |
| |
111
| -<!-- <p>--> |
| |
112
| -<!-- <img src="img/blog-avatar2.jpg" class="img-responsive img-circle" alt="">--> |
| |
113
| -<!-- </p>--> |
| |
114
| -<!-- </div>--> |
| |
115
| -<!-- <div class="col-sm-9 col-md-10">--> |
| |
116
| -<!-- <h5 class="text-uppercase">carolina</h5>--> |
| |
117
| -<!-- <p class="posted"><i class="fa fa-clock-o"></i> 23 сентября, 2011, 12:00</p>--> |
| |
118
| -<!-- <p>Спасибо! Давно хочу съездить в Норвегию. Вот и определилась куда.</p>--> |
| |
119
| -<!-- <p class="reply"><a href="blog-post.html#"><i class="fa fa-reply"></i> Ответить</a>--> |
| |
120
| -<!-- </p>--> |
| |
121
| -<!-- </div>--> |
| |
122
| -<!-- </div>--> |
| |
123
| - |
| |
124
| -<!-- --> |
| |
125
| -<!-- --> |
| |
126
| -<!-- <div class="row comment last">--> |
| |
127
| -<!-- --> |
| |
128
| -<!-- <div class="col-sm-3 col-md-2 text-center-xs">--> |
| |
129
| -<!-- <p>--> |
| |
130
| -<!-- <img src="img/blog-avatar.jpg" class="img-responsive img-circle" alt="">--> |
| |
131
| -<!-- </p>--> |
| |
132
| -<!-- </div>--> |
| |
133
| -<!-- --> |
| |
134
| -<!-- <div class="col-sm-9 col-md-10">--> |
| |
135
| -<!-- <h5 class="text-uppercase">gigi2</h5>--> |
| |
136
| -<!-- <p class="posted"><i class="fa fa-clock-o"></i> 23 сентября, 2011, 12:00</p>--> |
| |
137
| -<!-- <p>Даже и не знал, что на рыбалку лучше ехать в Квальвику. У меня туда друг часто катается со своей женой, может с ними теперь поеду. Давно не занимался рыбалкой зарубежом.</p>--> |
| |
138
| -<!-- <p class="reply"><a href="blog-post.html#"><i class="fa fa-reply"></i> Ответить</a>--> |
| |
139
| -<!-- </p>--> |
| |
140
| -<!-- </div>--> |
| |
141
| -<!-- --> |
| |
142
| -<!-- </div>--> |
| |
143
| -<!-- </div>--> |
109
| + <!-- <h4 class="text-uppercase">2 комментария</h4>--> |
| |
110
| + <!-- --> |
| |
111
| + <!-- --> |
| |
112
| + <!-- <div class="row comment">--> |
| |
113
| + <!-- <div class="col-sm-3 col-md-2 text-center-xs">--> |
| |
114
| + <!-- <p>--> |
| |
115
| + <!-- <img src="img/blog-avatar2.jpg" class="img-responsive img-circle" alt="">--> |
| |
116
| + <!-- </p>--> |
| |
117
| + <!-- </div>--> |
| |
118
| + <!-- <div class="col-sm-9 col-md-10">--> |
| |
119
| + <!-- <h5 class="text-uppercase">carolina</h5>--> |
| |
120
| + <!-- <p class="posted"><i class="fa fa-clock-o"></i> 23 сентября, 2011, 12:00</p>--> |
| |
121
| + <!-- <p>Спасибо! Давно хочу съездить в Норвегию. Вот и определилась куда.</p>--> |
| |
122
| + <!-- <p class="reply"><a href="blog-post.html#"><i class="fa fa-reply"></i> Ответить</a>--> |
| |
123
| + <!-- </p>--> |
| |
124
| + <!-- </div>--> |
| |
125
| + <!-- </div>--> |
| |
126
| + |
| |
127
| + <!-- --> |
| |
128
| + <!-- --> |
| |
129
| + <!-- <div class="row comment last">--> |
| |
130
| + <!-- --> |
| |
131
| + <!-- <div class="col-sm-3 col-md-2 text-center-xs">--> |
| |
132
| + <!-- <p>--> |
| |
133
| + <!-- <img src="img/blog-avatar.jpg" class="img-responsive img-circle" alt="">--> |
| |
134
| + <!-- </p>--> |
| |
135
| + <!-- </div>--> |
| |
136
| + <!-- --> |
| |
137
| + <!-- <div class="col-sm-9 col-md-10">--> |
| |
138
| + <!-- <h5 class="text-uppercase">gigi2</h5>--> |
| |
139
| + <!-- <p class="posted"><i class="fa fa-clock-o"></i> 23 сентября, 2011, 12:00</p>--> |
| |
140
| + <!-- <p>Даже и не знал, что на рыбалку лучше ехать в Квальвику. У меня туда друг часто катается со своей женой, может с ними теперь поеду. Давно не занимался рыбалкой зарубежом.</p>--> |
| |
141
| + <!-- <p class="reply"><a href="blog-post.html#"><i class="fa fa-reply"></i> Ответить</a>--> |
| |
142
| + <!-- </p>--> |
| |
143
| + <!-- </div>--> |
| |
144
| + <!-- --> |
| |
145
| + <!-- </div>--> |
| |
146
| + <!-- </div>--> |
144
| <!-- /#comments --> |
147
| <!-- /#comments --> |
145
| |
148
| |
146
| |
149
| |
147
| -<!-- <div id="comment-form">--> |
| |
148
| -<!-- --> |
| |
149
| -<!-- <h4 class="text-uppercase">Оставить комментарий</h4>--> |
| |
150
| -<!-- --> |
| |
151
| -<!-- <form>--> |
| |
152
| -<!-- <div class="row">--> |
| |
153
| -<!-- --> |
| |
154
| -<!-- <div class="col-sm-6">--> |
| |
155
| -<!-- <div class="form-group">--> |
| |
156
| -<!-- <label for="name">Имя <span class="required">*</span>--> |
| |
157
| -<!-- </label>--> |
| |
158
| -<!-- <input type="text" class="form-control" id="name">--> |
| |
159
| -<!-- </div>--> |
| |
160
| -<!-- </div>--> |
| |
161
| -<!-- --> |
| |
162
| -<!-- </div>--> |
| |
163
| -<!-- --> |
| |
164
| -<!-- <div class="row">--> |
| |
165
| -<!-- <div class="col-sm-6">--> |
| |
166
| -<!-- <div class="form-group">--> |
| |
167
| -<!-- <label for="email">Email <span class="required">*</span>--> |
| |
168
| -<!-- </label>--> |
| |
169
| -<!-- <input type="text" class="form-control" id="email">--> |
| |
170
| -<!-- </div>--> |
| |
171
| -<!-- </div>--> |
| |
172
| -<!-- </div>--> |
| |
173
| -<!-- --> |
| |
174
| -<!-- <div class="row">--> |
| |
175
| -<!-- <div class="col-sm-12">--> |
| |
176
| -<!-- <div class="form-group">--> |
| |
177
| -<!-- <label for="comment">Текст комментария <span class="required">*</span>--> |
| |
178
| -<!-- </label>--> |
| |
179
| -<!-- <textarea class="form-control" id="comment" rows="4"></textarea>--> |
| |
180
| -<!-- </div>--> |
| |
181
| -<!-- </div>--> |
| |
182
| -<!-- </div>--> |
| |
183
| -<!-- --> |
| |
184
| -<!-- <div class="row">--> |
| |
185
| -<!-- <div class="col-sm-12 text-right">--> |
| |
186
| -<!-- <button class="btn btn-template-main"><i class="fa fa-comment-o"></i> Отправить</button>--> |
| |
187
| -<!-- </div>--> |
| |
188
| -<!-- </div>--> |
| |
189
| -<!-- --> |
| |
190
| -<!-- --> |
| |
191
| -<!-- </form>--> |
| |
192
| -<!-- --> |
| |
193
| -<!-- </div>--> |
150
| + <!-- <div id="comment-form">--> |
| |
151
| + <!-- --> |
| |
152
| + <!-- <h4 class="text-uppercase">Оставить комментарий</h4>--> |
| |
153
| + <!-- --> |
| |
154
| + <!-- <form>--> |
| |
155
| + <!-- <div class="row">--> |
| |
156
| + <!-- --> |
| |
157
| + <!-- <div class="col-sm-6">--> |
| |
158
| + <!-- <div class="form-group">--> |
| |
159
| + <!-- <label for="name">Имя <span class="required">*</span>--> |
| |
160
| + <!-- </label>--> |
| |
161
| + <!-- <input type="text" class="form-control" id="name">--> |
| |
162
| + <!-- </div>--> |
| |
163
| + <!-- </div>--> |
| |
164
| + <!-- --> |
| |
165
| + <!-- </div>--> |
| |
166
| + <!-- --> |
| |
167
| + <!-- <div class="row">--> |
| |
168
| + <!-- <div class="col-sm-6">--> |
| |
169
| + <!-- <div class="form-group">--> |
| |
170
| + <!-- <label for="email">Email <span class="required">*</span>--> |
| |
171
| + <!-- </label>--> |
| |
172
| + <!-- <input type="text" class="form-control" id="email">--> |
| |
173
| + <!-- </div>--> |
| |
174
| + <!-- </div>--> |
| |
175
| + <!-- </div>--> |
| |
176
| + <!-- --> |
| |
177
| + <!-- <div class="row">--> |
| |
178
| + <!-- <div class="col-sm-12">--> |
| |
179
| + <!-- <div class="form-group">--> |
| |
180
| + <!-- <label for="comment">Текст комментария <span class="required">*</span>--> |
| |
181
| + <!-- </label>--> |
| |
182
| + <!-- <textarea class="form-control" id="comment" rows="4"></textarea>--> |
| |
183
| + <!-- </div>--> |
| |
184
| + <!-- </div>--> |
| |
185
| + <!-- </div>--> |
| |
186
| + <!-- --> |
| |
187
| + <!-- <div class="row">--> |
| |
188
| + <!-- <div class="col-sm-12 text-right">--> |
| |
189
| + <!-- <button class="btn btn-template-main"><i class="fa fa-comment-o"></i> Отправить</button>--> |
| |
190
| + <!-- </div>--> |
| |
191
| + <!-- </div>--> |
| |
192
| + <!-- --> |
| |
193
| + <!-- --> |
| |
194
| + <!-- </form>--> |
| |
195
| + <!-- --> |
| |
196
| + <!-- </div>--> |
194
| <!-- /#comment-form --> |
197
| <!-- /#comment-form --> |
195
| |
198
| |
196
| |
199
| |
| @@ -207,11 +210,11 @@ |
| @@ -207,11 +210,11 @@ |
207
| <!-- *** MENUS AND WIDGETS *** |
210
| <!-- *** MENUS AND WIDGETS *** |
208
| _________________________________________________________ --> |
211
| _________________________________________________________ --> |
209
| |
212
| |
210
| - <?= SearchWidget::widget()?> |
213
| + <?= SearchWidget::widget() ?> |
211
| |
214
| |
212
| - <?= CategoryWidget::widget()?> |
215
| + <?= CategoryWidget::widget() ?> |
213
| |
216
| |
214
| - <?= TagWidget::widget()?> |
217
| + <?= TagWidget::widget() ?> |
215
| |
218
| |
216
| <!-- *** MENUS AND FILTERS END *** --> |
219
| <!-- *** MENUS AND FILTERS END *** --> |
217
| |
220
| |