@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | . ' catcode-' . $item->getCode() . ' ' . $item->getConfigValue( 'css-class' ) ); ?>" |
109 | 109 | data-id="<?= $item->getId(); ?>"> |
110 | 110 | |
111 | - <?php if( $item->hasChildren() ) : ?> |
|
111 | + <?php if( $item->hasChildren() ) : ?> |
|
112 | 112 | <div class="row item-links"> |
113 | 113 | <a class="col-10 item-link" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><?= $enc->html( $item->getName(), $enc::TRUST ); ?></a> |
114 | 114 | <a class="col-2 data-link" data-submenu="<?= $enc->html( $item->getName(), $enc::TRUST ); ?>" href="#"></a> |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | </div> |
121 | 121 | <?php endif; ?> |
122 | 122 | |
123 | - <a class="top-cat-item cat-item <?= $enc->attr( ( $this->get( 'path', map() )->getId()->last() == $item->getId() ? ' active' : '' )); ?>" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><!-- |
|
123 | + <a class="top-cat-item cat-item <?= $enc->attr( ( $this->get( 'path', map() )->getId()->last() == $item->getId() ? ' active' : '' ) ); ?>" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><!-- |
|
124 | 124 | --><div class="media-list"><!-- |
125 | 125 | <?php foreach( $item->getRefItems( 'media', 'icon', 'default' ) as $mediaItem ) : ?> |
126 | 126 | <?= '-->' . $this->partial( |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | --><span class="cat-name"><?= $enc->html( $item->getName(), $enc::TRUST ); ?></span> |
133 | 133 | </a> |
134 | 134 | |
135 | - <?php if( count( $item->getChildren() ) > 0 ): ?> |
|
135 | + <?php if( count( $item->getChildren() ) > 0 ): ?> |
|
136 | 136 | |
137 | 137 | <div id="<?= $enc->html( $item->getName(), $enc::TRUST ); ?>" class="submenu <?= $enc->attr( |
138 | 138 | ( $item->hasChildren() ? '' : ' nochild' ) |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | ] ); ?> |
154 | 154 | </div> |
155 | 155 | <div class="cat-img col-lg-4"> |
156 | - <a class="cat-img-link <?= $enc->attr( ( $this->get( 'path', map() )->getId()->last() == $item->getId() ? ' active' : '' )); ?>" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><!-- |
|
156 | + <a class="cat-img-link <?= $enc->attr( ( $this->get( 'path', map() )->getId()->last() == $item->getId() ? ' active' : '' ) ); ?>" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><!-- |
|
157 | 157 | --><div class="media-img"><!-- |
158 | 158 | <?php foreach( $item->getRefItems( 'media', 'default', 'default' ) as $mediaItem ) : ?> |
159 | 159 | <?= '-->' . $this->partial( |
@@ -113,9 +113,12 @@ |
||
113 | 113 | <a class="col-10 item-link" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><?= $enc->html( $item->getName(), $enc::TRUST ); ?></a> |
114 | 114 | <a class="col-2 data-link" data-submenu="<?= $enc->html( $item->getName(), $enc::TRUST ); ?>" href="#"></a> |
115 | 115 | </div> |
116 | - <?php else : ?> |
|
116 | + <?php else { |
|
117 | + : ?> |
|
117 | 118 | <div class="item-links"> |
118 | - <a class="col-12 item-link" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><?= $enc->html( $item->getName(), $enc::TRUST ); ?></a> |
|
119 | + <a class="col-12 item-link" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); |
|
120 | +} |
|
121 | +?>"><?= $enc->html( $item->getName(), $enc::TRUST ); ?></a> |
|
119 | 122 | |
120 | 123 | </div> |
121 | 124 | <?php endif; ?> |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | . ' catcode-' . $item->getCode() . ' ' . $item->getConfigValue( 'css-class' ) ); ?>" |
27 | 27 | data-id="<?= $item->getId(); ?>"> |
28 | 28 | |
29 | - <?php if( $item->hasChildren() ) : ?> |
|
29 | + <?php if( $item->hasChildren() ) : ?> |
|
30 | 30 | <div class="row item-links"> |
31 | 31 | <a class="col-10 item-link" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><?= $enc->html( $item->getName(), $enc::TRUST ); ?></a> |
32 | 32 | <a class="col-2 data-link" data-submenu="<?= $enc->html( $item->getName(), $enc::TRUST ); ?>" href="#"></a> |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | </div> |
38 | 38 | <?php endif; ?> |
39 | 39 | |
40 | - <a class="cat-item <?= $enc->attr( ( $this->get( 'path', map() )->getId()->last() == $item->getId() ? ' active' : '' )); ?>" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><!-- |
|
40 | + <a class="cat-item <?= $enc->attr( ( $this->get( 'path', map() )->getId()->last() == $item->getId() ? ' active' : '' ) ); ?>" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><!-- |
|
41 | 41 | --><div class="media-list"><!-- |
42 | 42 | <?php foreach( $item->getRefItems( 'media', 'icon', 'default' ) as $mediaItem ) : ?> |
43 | 43 | <?= '-->' . $this->partial( |
@@ -31,9 +31,12 @@ |
||
31 | 31 | <a class="col-10 item-link" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><?= $enc->html( $item->getName(), $enc::TRUST ); ?></a> |
32 | 32 | <a class="col-2 data-link" data-submenu="<?= $enc->html( $item->getName(), $enc::TRUST ); ?>" href="#"></a> |
33 | 33 | </div> |
34 | - <?php else : ?> |
|
34 | + <?php else { |
|
35 | + : ?> |
|
35 | 36 | <div class="item-links"> |
36 | - <a class="col-12 item-link" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><?= $enc->html( $item->getName(), $enc::TRUST ); ?></a> |
|
37 | + <a class="col-12 item-link" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); |
|
38 | +} |
|
39 | +?>"><?= $enc->html( $item->getName(), $enc::TRUST ); ?></a> |
|
37 | 40 | </div> |
38 | 41 | <?php endif; ?> |
39 | 42 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | . ' catcode-' . $item->getCode() . ' ' . $item->getConfigValue( 'css-class' ) ); ?>" |
27 | 27 | data-id="<?= $item->getId(); ?>"> |
28 | 28 | |
29 | - <?php if( $item->hasChildren() ) : ?> |
|
29 | + <?php if( $item->hasChildren() ) : ?> |
|
30 | 30 | <div class="row item-links"> |
31 | 31 | <a class="col-10 item-link" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><?= $enc->html( $item->getName(), $enc::TRUST ); ?></a> |
32 | 32 | <a class="col-2 data-link" data-submenu="<?= $enc->html( $item->getName(), $enc::TRUST ); ?>" href="#"></a> |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | </div> |
38 | 38 | <?php endif; ?> |
39 | 39 | |
40 | - <a class="cat-item <?= $enc->attr( ( $this->get( 'path', map() )->getId()->last() == $item->getId() ? ' active' : '' )); ?>" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><!-- |
|
40 | + <a class="cat-item <?= $enc->attr( ( $this->get( 'path', map() )->getId()->last() == $item->getId() ? ' active' : '' ) ); ?>" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><!-- |
|
41 | 41 | --><div class="media-list"><!-- |
42 | 42 | <?php foreach( $item->getRefItems( 'media', 'icon', 'default' ) as $mediaItem ) : ?> |
43 | 43 | <?= '-->' . $this->partial( |
@@ -31,9 +31,12 @@ |
||
31 | 31 | <a class="col-10 item-link" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><?= $enc->html( $item->getName(), $enc::TRUST ); ?></a> |
32 | 32 | <a class="col-2 data-link" data-submenu="<?= $enc->html( $item->getName(), $enc::TRUST ); ?>" href="#"></a> |
33 | 33 | </div> |
34 | - <?php else : ?> |
|
34 | + <?php else { |
|
35 | + : ?> |
|
35 | 36 | <div class="item-links"> |
36 | - <a class="col-12 item-link" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); ?>"><?= $enc->html( $item->getName(), $enc::TRUST ); ?></a> |
|
37 | + <a class="col-12 item-link" href="<?= $enc->attr( $this->url( $item->getTarget() ?: $target, $controller, $action, array_merge( $this->get( 'params', [] ), ['f_name' => $item->getName( 'url' ), 'f_catid' => $item->getId()] ), [], $config ) ); |
|
38 | +} |
|
39 | +?>"><?= $enc->html( $item->getName(), $enc::TRUST ); ?></a> |
|
37 | 40 | </div> |
38 | 41 | <?php endif; ?> |
39 | 42 |