Commit e6ffc2505d8e42200ac9f3a3be89e84c3faa6abd

Authored by alex
1 parent ecceffbf

страницы услуг ссылаются сами на себя, деактивировать

Showing 1 changed file with 9 additions and 1 deletions   Show diff stats
frontend/views/service/view.php
@@ -61,7 +61,14 @@ @@ -61,7 +61,14 @@
61 <li class="<?=(($model->id == $service->id and $model->level != 2) ? 'active' : '')?> 61 <li class="<?=(($model->id == $service->id and $model->level != 2) ? 'active' : '')?>
62 <?=(($model->parent_id == $service->id and $model->level == 2) ? 'active2' : '')?> 62 <?=(($model->parent_id == $service->id and $model->level == 2) ? 'active2' : '')?>
63 <?=(!empty($service->services) ? 'has-list' : '')?>"> 63 <?=(!empty($service->services) ? 'has-list' : '')?>">
64 - <a href="<?=Url::to(['alias' => $service->language->alias])?>"><?=$service->title?></a> 64 + <a
  65 +
  66 + <?php if(!(($model->id == $service->id and $model->level != 2))):?>
  67 + href="<?=Url::to(['alias' => $service->language->alias])?>"
  68 + <?php endif;?>
  69 +
  70 +
  71 + ><?=$service->title?></a>
65 <?php 72 <?php
66 if (($model->id == $service->id or $model->parent_id == $service->id) and !empty($service->services)) {?> 73 if (($model->id == $service->id or $model->parent_id == $service->id) and !empty($service->services)) {?>
67 <ul> 74 <ul>
@@ -69,6 +76,7 @@ @@ -69,6 +76,7 @@
69 <?php if($model->id == $item->id) : ?> 76 <?php if($model->id == $item->id) : ?>
70 <li class="active"><a ><?=$item->title?></a></li> 77 <li class="active"><a ><?=$item->title?></a></li>
71 78
  79 +
72 <?php else: ?> 80 <?php else: ?>
73 <li class=""><a href="<?=Url::to(['alias' => $item->language->alias])?>"><?=$item->title?></a></li> 81 <li class=""><a href="<?=Url::to(['alias' => $item->language->alias])?>"><?=$item->title?></a></li>
74 <?php endif;?> 82 <?php endif;?>