function swGetMenuFree($menu, $id, $hybrid, $use_table, $parent_id, $levels)
{
    // echo $menu.$id.count($swmenupro_array);
    $swmenupro_array = swGetMenuLinksFree($menu, $id, $hybrid, $use_table);
    //echo $menu.$id.count($swmenupro_array);
    $final_menu = get_Final_MenuFree($swmenupro_array, $parent_id, $levels);
    // echo count($final_menu);
    return $final_menu;
}
Exemple #2
0
    }
    $swmenufree['preview'] = "CSS";
}
if (($swmenufree['menutype'] == "virtuemart2" || $swmenufree['menutype'] == "virtueprod2") && $swmenufree['parentid'] == 1) {
    $swmenufree['parentid'] = 0;
}
if (($swmenufree['menutype'] == "virtuemart" || $swmenufree['menutype'] == "virtueprod") && $swmenufree['parentid'] == 1) {
    $swmenufree['parentid'] = 0;
}
// if(($swmenufree['menutype']=="virtuemart2"||$swmenufree['menutype']=="virtueprod2")&&$swmenufree['parentid']!=0){$swmenufree['parentid']=$swmenufree['parentid']+10000;}
//    if(($swmenufree['menutype']=="virtuemart"||$swmenufree['menutype']=="virtueprod")&&$swmenufree['parentid']!=0){$swmenufree['parentid']=$swmenufree['parentid']+10000;}
if ($swmenufree['menutype'] && $swmenufree['menustyle']) {
    $content = "\n<!--swmenufree6.2 " . $swmenufree['menustyle'] . " by http://www.swmenupro.com-->\n";
    if ($swmenufree['menutype'] && $swmenufree['menustyle']) {
        $final_menu = array();
        $swmenufree_array = swGetMenuLinksFree($swmenufree['menutype'], $swmenufree['id'], $swmenufree['hybrid'], 1);
        if ($swmenufree['parentid'] == 0) {
            $swmenufree['parentid'] = 1;
        }
        if (($swmenufree['menutype'] == "virtuemart2" || $swmenufree['menutype'] == "virtueprod2") && $swmenufree['parentid'] == 1) {
            $swmenufree['parentid'] = 0;
        }
        if (($swmenufree['menutype'] == "virtuemart" || $swmenufree['menutype'] == "virtueprod") && $swmenufree['parentid'] == 1) {
            $swmenufree['parentid'] = 0;
        }
        // print_r($swmenufree_array);
        $ordered = chainFree('ID', 'PARENT', 'ORDER', $swmenufree_array, $swmenufree['parentid'], $swmenufree['levels']);
        //  $out = JRequest::getVar( 'php_out', '' );
        for ($i = 0; $i < count($ordered); $i++) {
            $swmenu = $ordered[$i];
            $swmenu['URL'] = "javascript:void(0)";