Beispiel #1
0
					<?php 
    }
    if ((int) $mCfg->get('search') || (int) $mCfg->get('login')) {
        ?>
					<ul class="mobilize-menu nav nav-pills jsn-sidetool">
						<?php 
        foreach (array('login', 'search') as $type) {
            // Get module ID
            $configMenu = $mCfg->get($type);
            if (!empty($configMenu)) {
                $id = array_keys($configMenu);
                $id = array_pop($id);
                // Get link status
                $status = array_values($configMenu);
                $status = array_pop($status);
                $contentMenu = JSNMobilizeTemplateHelper::renderModule((int) $id, array(), true, true);
                if ($status && !empty($contentMenu)) {
                    ?>
									<li class="dropdown">
										<?php 
                    if ($type == "login") {
                        $type = "user";
                    }
                    ?>
										<span class="jsn-menu-toggle"><i class="icon-<?php 
                    echo strtolower($type);
                    ?>
"></i></span>

										<div class="jsn-tool">
											<?php