コード例 #1
0
ファイル: multimenu.php プロジェクト: nunoluciano/uxcl
function b_multimenu_show_base($options, $num)
{
    include_once XOOPS_ROOT_PATH . '/modules/multiMenu/class/getMultiMenu.class.php';
    static $gmm;
    if (!$gmm) {
        $gmm = new getMultiMenu();
        $gmm->assign_css();
    }
    $block = $gmm->getblock($options, 'multimenu' . $num);
    return $block;
}
コード例 #2
0
 function menuSmartyAssign(&$xoopsTpl)
 {
     $module_handler =& xoops_gethandler('module');
     $module =& $module_handler->getByDirname("multiMenu");
     if (!is_object($module) || !$module->getVar('isactive')) {
         return;
     }
     $gmm = new getMultiMenu();
     $options = array("40");
     $menu_num = $gmm->theme_menu();
     if (!empty($menu_num)) {
         $block = $gmm->getblock($options, "multimenu0" . $menu_num);
         $xoopsTpl->assign('multiMenuToTheme', $block);
         // Insert smarty for entire site theme
     }
     $flow = new multiMenuFlow($gmm);
     if ($flow->nextLink) {
         $this->mController->executeForward($flow->nextLink);
     }
 }
コード例 #3
0
	function menuSmartyAssign(&$xoopsTpl) {
        $module_handler = & xoops_gethandler( 'module' );
		$module =& $module_handler->getByDirname('multiMenu');
		if ( !is_object( $module ) || !$module->getVar( 'isactive' ) ) {
			return ;
		}
		$gmm = new getMultiMenu();
		$options=array('40');
		$menu_num = $gmm->theme_menu();
		if ( !empty($menu_num) ) {
			$block = $gmm->getblock( $options, 'multimenu0' . $menu_num );
			$xoopsTpl->assign( 'multiMenuToTheme' , $block ) ;	// Insert smarty for entire site theme
		}
		$flow = new multiMenuFlow($gmm);
	    if ($flow->nextLink){
		    //            die($flow->nextLink);
            $_SESSION['multiMenuFlow'] = array();
            redirect_header($flow->nextLink,3,'Multimeu Flow next link. ');
//            $this->mController->executeForward($flow->nextLink);
		}
	}