Skip to content

Commit

Permalink
Menu fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgraham committed Jul 13, 2019
1 parent 74878e3 commit c9745a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sources/blocks/menu.php
Expand Up @@ -74,7 +74,7 @@ public function run($map)
}

$type = isset($map['type']) ? $map['type'] : 'embossed';
if ($type != 'dropdown' && $type != 'tree' && $type != 'embossed' && $type != 'popup' && $type != 'select') {
if ($type != 'dropdown' && $type != 'tree' && $type != 'embossed' && $type != 'popup' && $type != 'select' && $type != 'sitemap' && $type != 'mobile') {
$exists = file_exists(get_file_base() . '/themes/default/templates/MENU_BRANCH_' . $type . '.tpl');
if (!$exists) {
$exists = file_exists(get_custom_file_base() . '/themes/default/templates_custom/MENU_BRANCH_' . $type . '.tpl');
Expand Down
4 changes: 4 additions & 0 deletions sources/menus.php
Expand Up @@ -375,6 +375,10 @@ function _build_stored_menu_branch($item, $items)
switch ($item['i_include_sitemap']) {
case INCLUDE_SITEMAP_OVER:
$branches = $extra_branch['children'];
if (array_key_exists(0, $branches)) {
$branch['children'] = $branches[0]['children'];
$branches[0] = $branch;
}
break;

case INCLUDE_SITEMAP_UNDER:
Expand Down
1 change: 1 addition & 0 deletions themes/default/javascript/menu_popup.js
Expand Up @@ -69,6 +69,7 @@ function pop_up_menu(id,place,menu,event,outside_fixed_width)
if (typeof outside_fixed_width=='undefined') outside_fixed_width=false;

var e=document.getElementById(id);
if (!e) return false;

if (window.clean_menus_timeout)
{
Expand Down

0 comments on commit c9745a8

Please sign in to comment.