Commit 75743b6134b821c8a5c0274823d0ee3667ab3c37
1 parent
71912755
Косметические правки
Showing
5 changed files
with
34 additions
and
26 deletions
Show diff stats
frontend/views/event/_event.php
| @@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
| 39 | ) ?>"><?= $model->title; ?></a></h2> | 39 | ) ?>"><?= $model->title; ?></a></h2> |
| 40 | <div class="clearfix"> | 40 | <div class="clearfix"> |
| 41 | <?php if (empty($model->categories)) { ?> | 41 | <?php if (empty($model->categories)) { ?> |
| 42 | - <p class="author-category">Без категории </p> | 42 | + <p class="author-category"></p> |
| 43 | <?php } else { | 43 | <?php } else { |
| 44 | $i = 0; | 44 | $i = 0; |
| 45 | foreach ($model->categories as $category) { | 45 | foreach ($model->categories as $category) { |
| 1 | +<?php if (!empty($tags)) { | ||
| 2 | + ?> | ||
| 3 | + <div class="panel sidebar-menu"> | ||
| 4 | + <div class="panel-heading"> | ||
| 5 | + <h3 class="panel-title"><?= \Yii::t('app', 'Search by tag') ?></h3> | ||
| 6 | + </div> | ||
| 7 | + | ||
| 8 | + <div class="panel-body"> | ||
| 9 | + <ul class="tag-cloud"> | ||
| 10 | + <?php foreach ($tags as $tag) { ?> | ||
| 11 | + <li><a href="<?= Url::to( | ||
| 12 | + [ | ||
| 13 | + 'alias' => $tag->alias | ||
| 14 | + ] | ||
| 15 | + ) ?>"><i class="fa fa-tag"></i> <?php = $tag->title; ?></a> | ||
| 16 | + </li> | ||
| 17 | + <?php } ?> | ||
| 18 | + </ul> | ||
| 19 | + </div> | ||
| 20 | + </div> | ||
| 21 | + <?php | ||
| 22 | +} | ||
| 23 | +?> | ||
| 0 | \ No newline at end of file | 24 | \ No newline at end of file |
frontend/views/event/index.php
| @@ -43,6 +43,7 @@ _________________________________________________________ --> | @@ -43,6 +43,7 @@ _________________________________________________________ --> | ||
| 43 | [ | 43 | [ |
| 44 | 'dataProvider' => $dataProvider, | 44 | 'dataProvider' => $dataProvider, |
| 45 | 'itemView' => '_event', | 45 | 'itemView' => '_event', |
| 46 | + 'emptyText' => '', | ||
| 46 | 'options' => [ | 47 | 'options' => [ |
| 47 | 'class' => 'col-md-9', | 48 | 'class' => 'col-md-9', |
| 48 | 'id' => 'blog-listing-medium', | 49 | 'id' => 'blog-listing-medium', |
| @@ -63,29 +64,9 @@ _________________________________________________________ --> | @@ -63,29 +64,9 @@ _________________________________________________________ --> | ||
| 63 | _________________________________________________________ --> | 64 | _________________________________________________________ --> |
| 64 | 65 | ||
| 65 | <!-- --><?//= BlogSearch::widget(); ?> | 66 | <!-- --><?//= BlogSearch::widget(); ?> |
| 66 | - <?php if(!empty($tags)){ | ||
| 67 | - ?> | ||
| 68 | - <div class="panel sidebar-menu"> | ||
| 69 | - <div class="panel-heading"> | ||
| 70 | - <h3 class="panel-title"><?=\Yii::t('app', 'Search by tag')?></h3> | ||
| 71 | - </div> | ||
| 72 | - | ||
| 73 | - <div class="panel-body"> | ||
| 74 | - <ul class="tag-cloud"> | ||
| 75 | - <?php foreach ($tags as $tag) { ?> | ||
| 76 | - <li><a href="<?= Url::to( | ||
| 77 | - [ | ||
| 78 | - 'alias' => $tag->alias | ||
| 79 | - ] | ||
| 80 | - ) ?>"><i class="fa fa-tag"></i> <?= $tag->title; ?></a> | ||
| 81 | - </li> | ||
| 82 | - <?php } ?> | ||
| 83 | - </ul> | ||
| 84 | - </div> | ||
| 85 | - </div> | ||
| 86 | - <?php | ||
| 87 | - } | ||
| 88 | - ?> | 67 | + <?php |
| 68 | + # тут был код с отрисовкой справа блока категории, полностью вынесен в cutCode | ||
| 69 | + ?> | ||
| 89 | 70 | ||
| 90 | 71 | ||
| 91 | <!-- *** MENUS AND FILTERS END *** --> | 72 | <!-- *** MENUS AND FILTERS END *** --> |
frontend/views/site/index.php
| @@ -120,7 +120,7 @@ _________________________________________________________ --> | @@ -120,7 +120,7 @@ _________________________________________________________ --> | ||
| 120 | <?php }?> | 120 | <?php }?> |
| 121 | <!-- /.bar --> | 121 | <!-- /.bar --> |
| 122 | 122 | ||
| 123 | -<section class="bar background-gray no-mb"> | 123 | +<section class="bar background-white no-mb"> |
| 124 | <div class="container"> | 124 | <div class="container"> |
| 125 | <div class="row"> | 125 | <div class="row"> |
| 126 | <div class="col-md-12"> | 126 | <div class="col-md-12"> |
frontend/web/css/site.css
| @@ -128,4 +128,8 @@ a.desc:after { | @@ -128,4 +128,8 @@ a.desc:after { | ||
| 128 | display: block; | 128 | display: block; |
| 129 | height: 40px; | 129 | height: 40px; |
| 130 | 130 | ||
| 131 | -} | ||
| 132 | \ No newline at end of file | 131 | \ No newline at end of file |
| 132 | +} | ||
| 133 | + | ||
| 134 | +.background-white { | ||
| 135 | + background-color: white; | ||
| 136 | +} |