parseTemplate('{SITELOGO: h=30}',true); break; case 'sitenamelogo': return "".e107::getParser()->parseTemplate('{SITELOGO: h=30}',true)."".SITENAME; break; case 'sitename': default: return SITENAME; break; } } function sc_bootstrap_nav_align() { $pref = e107::pref('theme', 'nav_alignment'); if($pref == 'right') { return "navbar-right"; } else { return ""; } } function sc_bootstrap_usernav($parm='') { $placement = e107::pref('theme', 'usernav_placement', 'top'); if($parm['placement'] != $placement) { return ''; } include_lan(e_PLUGIN."login_menu/languages/".e_LANGUAGE.".php"); $tp = e107::getParser(); require(e_PLUGIN."login_menu/login_menu_shortcodes.php"); // don't use 'require_once'. $direction = vartrue($parm['dir']) == 'up' ? ' dropup' : ''; $userReg = defset('USER_REGISTRATION'); if(!USERID) // Logged Out. { $text = '
"; return $tp->parseTemplate($text, true, $login_menu_shortcodes); } // Logged in. //TODO Generic LANS. (not theme LANs) $text = ' '; return $tp->parseTemplate($text,true,$login_menu_shortcodes); } } ?>