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 | 39 | ) ?>"><?= $model->title; ?></a></h2> |
| 40 | 40 | <div class="clearfix"> |
| 41 | 41 | <?php if (empty($model->categories)) { ?> |
| 42 | - <p class="author-category">Без категории </p> | |
| 42 | + <p class="author-category"></p> | |
| 43 | 43 | <?php } else { |
| 44 | 44 | $i = 0; |
| 45 | 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 | 24 | \ No newline at end of file | ... | ... |
frontend/views/event/index.php
| ... | ... | @@ -43,6 +43,7 @@ _________________________________________________________ --> |
| 43 | 43 | [ |
| 44 | 44 | 'dataProvider' => $dataProvider, |
| 45 | 45 | 'itemView' => '_event', |
| 46 | + 'emptyText' => '', | |
| 46 | 47 | 'options' => [ |
| 47 | 48 | 'class' => 'col-md-9', |
| 48 | 49 | 'id' => 'blog-listing-medium', |
| ... | ... | @@ -63,29 +64,9 @@ _________________________________________________________ --> |
| 63 | 64 | _________________________________________________________ --> |
| 64 | 65 | |
| 65 | 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 | 72 | <!-- *** MENUS AND FILTERS END *** --> | ... | ... |
frontend/views/site/index.php
| ... | ... | @@ -120,7 +120,7 @@ _________________________________________________________ --> |
| 120 | 120 | <?php }?> |
| 121 | 121 | <!-- /.bar --> |
| 122 | 122 | |
| 123 | -<section class="bar background-gray no-mb"> | |
| 123 | +<section class="bar background-white no-mb"> | |
| 124 | 124 | <div class="container"> |
| 125 | 125 | <div class="row"> |
| 126 | 126 | <div class="col-md-12"> | ... | ... |