update
This commit is contained in:
@@ -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
BIN
autoload/.DS_Store
vendored
Binary file not shown.
BIN
autoload/front/.DS_Store
vendored
BIN
autoload/front/.DS_Store
vendored
Binary file not shown.
BIN
templates/.DS_Store
vendored
BIN
templates/.DS_Store
vendored
Binary file not shown.
@@ -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>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user