Esempio n. 1
0
         }
     }
     $ordered = chain('ID', 'PARENT', 'ORDER', $ordered, $parent_id, $levels);
 }
 if (count($ordered)) {
     if ($menustyle == "clickmenu") {
         $content .= doClickMenu($ordered, $swmenupro, $css_load, $active_menu, $selectbox_hack, $padding_hack);
     }
     if ($menustyle == "treemenu") {
         $content .= doTreeMenu($ordered, $swmenupro, $css_load, $active_menu, $auto_position);
     }
     if ($menustyle == "popoutmenu") {
         $content .= doPopoutMenu($ordered, $swmenupro, $css_load, $active_menu);
     }
     if ($menustyle == "gosumenu" && $editor_hack) {
         $content .= doGosuMenu($ordered, $swmenupro, $active_menu, $css_load, $selectbox_hack, $padding_hack, $auto_position);
     }
     if ($menustyle == "transmenu") {
         $content .= doTransMenu($ordered, $swmenupro, $active_menu, $sub_indicator, $parent_id, $css_load, $selectbox_hack, $show_shadow, $padding_hack, $auto_position);
     }
     if ($menustyle == "tabmenu") {
         $content .= doTabMenu($ordered, $swmenupro, $parent_id, $css_load, $active_menu);
     }
     if ($menustyle == "dynamictabmenu") {
         $content .= doDynamicTabMenu($ordered, $swmenupro, $parent_id, $css_load, $active_menu, $padding_hack, $auto_position);
     }
     if ($menustyle == "slideclick") {
         $content .= doSlideClick($ordered, $swmenupro, $css_load, $active_menu, $selectbox_hack, $padding_hack);
     }
     if ($menustyle == "clicktransmenu") {
         $content .= doClickTransMenu($ordered, $swmenupro, $css_load, $active_menu, $selectbox_hack, $padding_hack);
Esempio n. 2
0
        }
        if (count($ordered) && $swmenufree['orientation'] == 'horizontal/left') {
            $topcount = count(chain('ID', 'PARENT', 'ORDER', $ordered, $parent_id, 1));
            for ($i = 0; $i < count($ordered); $i++) {
                $swmenu = $ordered[$i];
                if ($swmenu['indent'] == 0) {
                    $ordered[$i]['ORDER'] = $topcount;
                    $topcount--;
                }
            }
            $ordered = chain('ID', 'PARENT', 'ORDER', $ordered, $parent_id, $levels);
        }
        $sub_active = 0;
        if (count($ordered)) {
            if ($menustyle == "mygosumenu") {
                $content .= doGosuMenu($ordered, $swmenufree, $active_menu, $css_load, $selectbox_hack, $padding_hack, $overlay_hack);
            }
            if ($menustyle == "transmenu") {
                $content .= doTransMenu($ordered, $swmenufree, $active_menu, $sub_indicator, $parent_id, $css_load, $selectbox_hack, $show_shadow, $auto_position, $padding_hack, $overlay_hack);
            }
            if ($menustyle == "tigramenu") {
                $content .= doTigraMenu($ordered, $swmenufree, $active_menu, $css_load, $selectbox_hack, $overlay_hack);
            }
            if ($menustyle == "superfishmenu") {
                $content .= doSuperfishMenu($ordered, $swmenufree, $active_menu, $css_load, $selectbox_hack, $padding_hack, $sub_active, $show_shadow, $sub_indicator, $overlay_hack);
            }
        }
    }
    $content .= "\n<!--End swMenuFree menu module-->\n";
    return $content;
}