diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 1090bb1..0dbce88 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -2,7 +2,9 @@ "permissions": { "allow": [ "Bash(php:*)", - "Bash(python:*)" + "Bash(python:*)", + "mcp__serena__get_current_config", + "mcp__serena__activate_project" ] } } diff --git a/autoload/.DS_Store b/autoload/.DS_Store deleted file mode 100644 index 3239922..0000000 Binary files a/autoload/.DS_Store and /dev/null differ diff --git a/autoload/front/.DS_Store b/autoload/front/.DS_Store deleted file mode 100644 index 7285fd1..0000000 Binary files a/autoload/front/.DS_Store and /dev/null differ diff --git a/templates/.DS_Store b/templates/.DS_Store deleted file mode 100644 index 35bede8..0000000 Binary files a/templates/.DS_Store and /dev/null differ diff --git a/templates_user/menu/pages.php b/templates_user/menu/pages.php index e9fae0d..a8544d5 100644 --- a/templates_user/menu/pages.php +++ b/templates_user/menu/pages.php @@ -6,6 +6,7 @@ if ( is_array( $this -> pages ) ) { foreach ( $this -> pages as $page ) { $url = ""; + $hasChildren = is_array( $page['pages'] ) && !empty( $page['pages'] ); if ( $page['page_type'] == 3 ) { $page['language']['link'] ? $url = $page['language']['link'] : $url = '#'; @@ -26,10 +27,10 @@ if ( is_array( $this -> pages ) ) { if ( $page['id'] == $this -> current_page ) 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'; - if ( is_array( $page['pages'] ) ) + if ( $hasChildren ) echo ' parent'; echo '">'; @@ -40,16 +41,17 @@ if ( is_array( $this -> pages ) ) { if ( $page['language']['noindex'] ) echo 'rel="nofollow"'; echo ' title="' . $page['language']['title'] . '"'; - if ( is_array( $page['pages'] ) ) + if ( $hasChildren ) echo "class='menu-trigger'"; echo '>'; echo $page['language']['title']; - if ( is_array( $page['pages'] ) ) + if ( $hasChildren ) echo ''; echo ''; - 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 ''; } echo ''; } -?> \ No newline at end of file +?> diff --git a/templates_user/shop-basket/basket.php b/templates_user/shop-basket/basket.php index 2403521..175bfa2 100644 --- a/templates_user/shop-basket/basket.php +++ b/templates_user/shop-basket/basket.php @@ -32,9 +32,6 @@ endif; ?> -