@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | <div class="container" id="content"> |
24 | 24 | <div class="row"> |
25 | 25 | <ol class="breadcrumb"> |
26 | - <?php foreach(Yii::$app->menu->current->teardown as $item): ?> |
|
26 | + <?php foreach (Yii::$app->menu->current->teardown as $item): ?> |
|
27 | 27 | <li><a href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a> |
28 | 28 | <?php endforeach; ?> |
29 | 29 | </ol> |
@@ -34,16 +34,16 @@ discard block |
||
34 | 34 | <ul> |
35 | 35 | <?php foreach (Yii::$app->menu->find()->where(['parent_nav_id' => 0, 'container' => 'default'])->all() as $item): ?> |
36 | 36 | <li> |
37 | - <a<?php if($item->isActive): ?> class="active"<?php endif;?> href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a> |
|
38 | - <?php if($item->hasChildren()): ?> |
|
37 | + <a<?php if ($item->isActive): ?> class="active"<?php endif; ?> href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a> |
|
38 | + <?php if ($item->hasChildren()): ?> |
|
39 | 39 | <ul> |
40 | - <?php foreach($item->children as $child): ?> |
|
41 | - <li><a<?php if($child->isActive): ?> class="active"<?php endif;?> href="<?php echo $child->link; ?>">» <?php echo $child->title; ?></a></li> |
|
40 | + <?php foreach ($item->children as $child): ?> |
|
41 | + <li><a<?php if ($child->isActive): ?> class="active"<?php endif; ?> href="<?php echo $child->link; ?>">» <?php echo $child->title; ?></a></li> |
|
42 | 42 | |
43 | - <?php if($child->hasChildren()): ?> |
|
43 | + <?php if ($child->hasChildren()): ?> |
|
44 | 44 | <ul> |
45 | - <?php foreach($child->children as $grandChild): ?> |
|
46 | - <li><a<?php if($grandChild->isActive): ?> class="active"<?php endif;?> href="<?php echo $grandChild->link; ?>">» <?php echo $grandChild->title; ?></a> |
|
45 | + <?php foreach ($child->children as $grandChild): ?> |
|
46 | + <li><a<?php if ($grandChild->isActive): ?> class="active"<?php endif; ?> href="<?php echo $grandChild->link; ?>">» <?php echo $grandChild->title; ?></a> |
|
47 | 47 | <?php endforeach; ?> |
48 | 48 | </ul> |
49 | 49 | <?php endif; ?> |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <h1>News Index Overview</h1> |
2 | 2 | <pre> |
3 | -<?php foreach($model::getAvailableNews() as $n): ?> |
|
3 | +<?php foreach ($model::getAvailableNews() as $n): ?> |
|
4 | 4 | <p><?php echo $n->title; ?></p> |
5 | 5 | <a href="<?php echo $n->detailUrl; ?>"><?php echo $n->detailUrl; ?></a> |
6 | 6 | <?php endforeach; ?> |