This commit is contained in:
2026-03-01 00:45:48 +01:00
parent 31fd0442b2
commit e2011b5694
6 changed files with 11 additions and 10 deletions

View File

@@ -2,7 +2,9 @@
"permissions": { "permissions": {
"allow": [ "allow": [
"Bash(php:*)", "Bash(php:*)",
"Bash(python:*)" "Bash(python:*)",
"mcp__serena__get_current_config",
"mcp__serena__activate_project"
] ]
} }
} }

BIN
autoload/.DS_Store vendored

Binary file not shown.

Binary file not shown.

BIN
templates/.DS_Store vendored

Binary file not shown.

View File

@@ -6,6 +6,7 @@ if ( is_array( $this -> pages ) ) {
foreach ( $this -> pages as $page ) { foreach ( $this -> pages as $page ) {
$url = ""; $url = "";
$hasChildren = is_array( $page['pages'] ) && !empty( $page['pages'] );
if ( $page['page_type'] == 3 ) { if ( $page['page_type'] == 3 ) {
$page['language']['link'] ? $url = $page['language']['link'] : $url = '#'; $page['language']['link'] ? $url = $page['language']['link'] : $url = '#';
@@ -26,10 +27,10 @@ if ( is_array( $this -> pages ) ) {
if ( $page['id'] == $this -> current_page ) if ( $page['id'] == $this -> current_page )
echo ' active'; echo ' active';
if ( is_array( $page['pages'] ) and is_array( $children ) and in_array( $this -> current_page, $children ) ) if ( $hasChildren and is_array( $children ) and in_array( $this -> current_page, $children ) )
echo ' open'; echo ' open';
if ( is_array( $page['pages'] ) ) if ( $hasChildren )
echo ' parent'; echo ' parent';
echo '">'; echo '">';
@@ -40,16 +41,17 @@ if ( is_array( $this -> pages ) ) {
if ( $page['language']['noindex'] ) if ( $page['language']['noindex'] )
echo 'rel="nofollow"'; echo 'rel="nofollow"';
echo ' title="' . $page['language']['title'] . '"'; echo ' title="' . $page['language']['title'] . '"';
if ( is_array( $page['pages'] ) ) if ( $hasChildren )
echo "class='menu-trigger'"; echo "class='menu-trigger'";
echo '>'; echo '>';
echo $page['language']['title']; echo $page['language']['title'];
if ( is_array( $page['pages'] ) ) if ( $hasChildren )
echo '<i class="fa fa-chevron-down menu-toggle" menu-id="link-' . $page['id'] . '"></i>'; echo '<i class="fa fa-chevron-down menu-toggle" menu-id="link-' . $page['id'] . '"></i>';
echo '</a>'; echo '</a>';
echo \front\Views\Menu::pages( $page['pages'], $this -> level + 1, $this -> current_page ); if ( $hasChildren )
echo \front\Views\Menu::pages( $page['pages'], $this -> level + 1, $this -> current_page );
echo '</li>'; echo '</li>';
} }
echo '</ul>'; echo '</ul>';
} }
?> ?>

View File

@@ -32,9 +32,6 @@
</div> </div>
</div> </div>
<? endif; ?> <? endif; ?>
<div class="orlen-banner">
<img src="/layout/images/orlen-banner.jpg" alt="Orlen" />
</div>
</div> </div>
<script> <script>
(function(o, r, l, e, n) { (function(o, r, l, e, n) {