Commit ffda4a19edcd8779f4e59c3d174ad425ac75d809

Authored by Alexey Boroda
2 parents 464ede30 8f9233b8

Merge remote-tracking branch 'origin/master'

frontend/views/blog/_article.php
... ... @@ -29,15 +29,19 @@
29 29 <?php } ?>
30 30  
31 31 <?php if (!empty($model->tags)) {
  32 + ?>
  33 + <div class="post-tags">
  34 + <?php
32 35 foreach ($model->tags as $tag) {
33 36 ?>
34   - <p><a href="<?= Url::to(
  37 + <p class="post-tag"><a href="<?= Url::to(
35 38 [
36 39 'blog/tag',
37 40 'alias' => $tag->lang->alias,
38 41 ]
39 42 ) ?>"><?= $tag->lang->label ?></a></p>
40 43 <?php }
  44 + ?></div><?php
41 45 } ?>
42 46 </div>
43 47 <div class="col-sm-6">
... ... @@ -83,12 +87,12 @@
83 87 ) ?>
84 88 </a>
85 89 </div>
86   - <p class="intro"><?= $model->lang->body_preview ?></p>
  90 + <p class="intro"><?= \yii\helpers\StringHelper::truncate($model->lang->body_preview, 350) ?></p>
87 91 <p class="read-more"><a href="<?= Url::to(
88 92 [
89 93 'blog/article',
90 94 'alias' => $model->lang->alias,
91 95 ]
92   - ) ?>" class="btn btn-template-main">Continue reading</a>
  96 + ) ?>" class="btn btn-template-main">Читать далее</a>
93 97 </p>
94 98 </section>
... ...
frontend/views/blog/article.php
... ... @@ -13,7 +13,7 @@
13 13  
14 14 $this->params[ 'breadcrumbs' ][] = [
15 15 'url' => [ 'blog/index' ],
16   - 'label' => \Yii::t('app', 'Блог'),
  16 + 'label' => \Yii::t('app', 'Статьи'),
17 17 ];
18 18  
19 19 $this->params[ 'breadcrumbs' ][] = $model->lang->title;
... ... @@ -53,6 +53,8 @@ _________________________________________________________ --&gt;
53 53  
54 54 </div>
55 55 <!-- /#post-content -->
  56 +
  57 +
56 58  
57 59 <?php
58 60 echo CommentWidget::widget(
... ...
frontend/views/comment/artbox_comment_form.php
... ... @@ -28,6 +28,7 @@
28 28 );
29 29 ?>
30 30 <div class="form-comm-wr">
  31 + <h4 class="text-uppercase">Оставить комментарий</h4>
31 32 <?php
32 33 if (!empty($rating_model)) {
33 34 ?>
... ... @@ -52,14 +53,14 @@
52 53 echo $form->field($comment_model, 'username', [ 'options' => [ 'class' => 'form-group input_bl' ] ])
53 54 ->textInput();
54 55 echo $form->field($comment_model, 'email', [ 'options' => [ 'class' => 'form-group input_bl' ] ])
55   - ->textInput();
  56 + ->textInput([ 'options' => [ 'class' => 'form-control' ] ]);
56 57 }
57 58 echo $form->field($comment_model, 'text', [ 'options' => [ 'class' => 'form-group input_bl area_bl' ] ])
58 59 ->textarea();
59 60 echo Html::tag(
60 61 'div',
61 62 Html::submitButton(
62   - Yii::t('app', 'Submit comment')
  63 + Yii::t('app', '<i class="fa fa-comment-o"></i> Отправить')
63 64 ),
64 65 [ 'class' => 'input_bl submit_btn' ]
65 66 );
... ...
frontend/views/comment/artbox_comment_item.php
... ... @@ -111,7 +111,7 @@
111 111 if (!empty($child->customer)) {
112 112 echo $child->customer->$nameField;
113 113 } else {
114   - echo $child->username . ' (' . Yii::t('artbox-comment', 'Guest') . ')';
  114 + echo $child->username . ' (' . Yii::t('artbox-comment', 'Гость') . ')';
115 115 }
116 116 ?>
117 117 </div>
... ...
frontend/views/comment/artbox_comment_list.php
... ... @@ -23,6 +23,8 @@
23 23 if(( $success = \Yii::$app->session->getFlash('artbox_comment_success') ) != NULL) {
24 24 echo Html::tag('p', $success);
25 25 }
  26 +echo '<div class="comments-border"></div>';
  27 +echo '<h4 class="text-uppercase">Комментарии</h4>';
26 28 echo ListView::widget([
27 29 'dataProvider' => $comments,
28 30 'itemOptions' => $item_options,
... ... @@ -48,7 +50,7 @@
48 50  
49 51 return "<a id='hide_more_link' style='cursor:pointer'>Скрыть комментарии</a></div>";
50 52 }
51   -}
  53 + }
52 54  
53 55  
54 56 ]);
... ...
frontend/views/site/contact.php
... ... @@ -15,7 +15,7 @@
15 15 MapAsset::register($this);
16 16 $settings = Settings::getInstance();
17 17  
18   - $this->title = \Yii::t('app', 'Contact');
  18 + $this->title = \Yii::t('app', 'Контакты');
19 19 $this->params[ 'breadcrumbs' ][] = $this->title;
20 20  
21 21 $js = <<< JS
... ...
frontend/web/css/custom.css
... ... @@ -95,7 +95,7 @@
95 95 text-align: center;
96 96 line-height: 50px;
97 97 font-size: 32px;
98   - background: #38a7bb;
  98 + background: #4fbfa8;
99 99 color: #fff;
100 100 cursor: pointer;
101 101 text-decoration: none;
... ... @@ -107,7 +107,8 @@
107 107 }
108 108  
109 109 #back-to-top:hover {
110   - background: #20616d;
  110 + transition:0.2s;
  111 + background: #206b5c;
111 112 color: #fff;
112 113 }
113 114  
... ... @@ -199,6 +200,112 @@
199 200 ul.list-style-none {
200 201 padding: 0;
201 202 }
  203 +.read-more{
  204 + margin-top: 20px;
  205 +}
  206 +.post-tags{
  207 + margin-top: 15px;
  208 + margin-bottom: 15px;
  209 +}
  210 +.post-tags:after{
  211 + content:'';
  212 + display:block;
  213 + clear:both;
  214 +}
  215 +.post-tag {
  216 + float: left;
  217 +}
  218 +.post-tag a{
  219 + border: 1px solid #eeeeee;
  220 + padding: 4px 12px;
  221 + margin-right: 5px;
  222 + position: relative;
  223 + text-decoration: none;
  224 +}
  225 +.post-tag a:hover{
  226 + border: 1px solid #4fbfa8;
  227 +}
  228 +.artbox_form_container:after, .list-view:after,.input_bl.submit_btn:after, .form-comm-wr .input_bl:after{
  229 + content:'';
  230 + display:block;
  231 + clear:both;
  232 +}
  233 +.input_bl.stars-wr_{
  234 + float:none;
  235 +}
  236 +.artbox_list_container .list-view{
  237 + margin-bottom:40px;
  238 +}
  239 +.form-comm-wr .input_bl.submit_btn button[type='submit']{
  240 + background: none;
  241 + border: 1px solid #d2d2d2;
  242 + color: #7d7d7d;
  243 + border-radius: 0px;
  244 + text-transform: uppercase;
  245 +}
  246 +.form-comm-wr .input_bl.submit_btn button[type='submit']:hover{
  247 + background: #4fbfa8;
  248 + border: 1px solid #4fbfa8;
  249 + color: #fff;
  250 +}
  251 +.input_bl.submit_btn{
  252 + float: right;
  253 + margin-top: 27px;
  254 + width: 100%;
  255 + text-align: center;
  256 +}
  257 +.form-comm-wr{
  258 + background:none;
  259 + padding:0;
  260 + width:100%;
  261 +}
  262 +.artbox_form_container{
  263 + padding: 0;
  264 + margin-top: -10px;
  265 +}
  266 +.form-comm-wr .form-group {
  267 + margin-bottom: 10px;
  268 + position: relative;
  269 + float: none;
  270 +}
  271 +.form-comm-wr .form-group label.control-label{
  272 + width: inherit;
  273 + float: none;
  274 + text-transform: none;
  275 + font-size: 14px;
  276 + color: black;
  277 + margin: 5px 0px;
  278 +}
  279 +input[type="text"].form-control{
  280 + border-radius: 0;
  281 + padding: 17px 13px;
  282 +}
  283 +.input_bl input{
  284 + width: 100%;
  285 + max-width: 400px;
  286 +}
  287 +.area_bl textarea, .answer-form textarea{
  288 + border-radius: 0;
  289 + width: 100%;
  290 + height: 160px;
  291 +}
  292 +.tag-cloud li.active a {
  293 + color: #fff!important;
  294 + background-color: #4fbfa8;
  295 + border-color: #4fbfa8!important;
  296 +}
  297 +.post .image{
  298 + max-height:300px;
  299 + overflow:hidden;
  300 +}
  301 +.post .image a{
  302 + height: 300px;
  303 + overflow: hidden;
  304 + display: block;
  305 +}
  306 +.post .img-responsive{
  307 + width:100%;
  308 +}
202 309 @media (max-width: 1199px){
203 310 .header-kristal .container .img-responsive{
204 311 margin-bottom: -68px;
... ...