Example #1
0
 function showTopMenu_simple(&$menus, $option, $skin)
 {
     global $Itemid, $JLMS_SESSION, $JLMS_CONFIG, $JLMS_LANGUAGE;
     $back_status = $JLMS_SESSION->has('jlms_section') ? $JLMS_SESSION->get('jlms_section') : ' ';
     $menus = $JLMS_CONFIG->get('jlms_menu');
     //JLMS_require_lang($JLMS_LANGUAGE, 'main.lang', $JLMS_CONFIG->get('default_language'));
     if ($skin == 'pro') {
         $imp = 'toolbar_24';
         $imp = 'toolbar';
         $imh = '24';
         $imh = '16';
         if (!$JLMS_CONFIG->get('lofe_menu_style', 1)) {
             $imp = 'toolbar';
             $imh = '16';
         } elseif ($JLMS_CONFIG->get('lofe_menu_style', 1) == 1) {
             $imp = 'toolbar_24';
             $imh = '24';
         } elseif ($JLMS_CONFIG->get('lofe_menu_style', 1) == 2) {
             $imp = 'toolbar_32';
             $imh = '32';
         }
         echo '<table class="lms_pro_menu" cellpadding="0" cellspacing="0" border="0"><tr><td colspan="' . count($menus) . '" align="center" style="text-align:center">';
         JLMS_TMPL::showMenuToolTips();
         echo '</td></tr><tr>';
         foreach ($menus as $menu) {
             JLMS_TMPL::ShowMenuControl($menu, $skin, $imp, $imh);
             /*if ($menu->is_separator){
             			echo '<img src="components/com_joomla_lms/lms_images/spacer.png" border="0" width="2" height="16" style="background-color:#666666 " alt="spacer" />';
             		}else{
             			echo "<a $menu->target href='".$menu->menulink."' title='".$JLMS_LANGUAGE[$menu->lang_var]."'><img class='JLMS_png' src='components/com_joomla_lms/lms_images/toolbar/".$menu->image."' border='0' width='16' height='16' alt='".$JLMS_LANGUAGE[$menu->lang_var]."' title='".$JLMS_LANGUAGE[$menu->lang_var]."' /></a>&nbsp;";
             		}*/
         }
         echo '</tr></table>';
     }
 }