--=REKLAMA=--
<< Zobacz stronę Standardowe style CSS w Joomla!
Opisywany element | Selektor ID | Selektor klasy | Przyrostek |
---|---|---|---|
ul | menu | ||
Szablony dla: | Joomla 1.5 | ||
Zastosowany w: | modules/ mod_mainmenu/helper.php | ||
Stylizuje: | listę pozycji menu | ||
.menu {} |
Opisuje listę pozycji menu
W pliku modules/ mod_mainmenu/helper.php
function render(&$params, $callback) { switch ( $params->get( 'menu_style', 'list' ) ) { case 'list_flat' : // Include the legacy library file require_once(dirname(__FILE__).DS.'legacy.php'); mosShowHFMenu($params, 1); break; case 'horiz_flat' : // Include the legacy library file require_once(dirname(__FILE__).DS.'legacy.php'); mosShowHFMenu($params, 0); break; case 'vert_indent' : // Include the legacy library file require_once(dirname(__FILE__).DS.'legacy.php'); mosShowVIMenu($params); break; default : // Include the new menu class $xml = modMainMenuHelper::getXML($params->get('menutype'), $params, $callback); if ($xml) { $class = $params->get('class_sfx'); $xml->addAttribute('class', 'menu'.$class); if ($tagId = $params->get('tag_id')) { $xml->addAttribute('id', $tagId); } $result = JFilterOutput::ampReplace($xml->toString((bool)$params->get('show_whitespace'))); $result = str_replace(array('<ul/>', '<ul />'), '', $result); echo $result; } break; } }
<div class="module_menu"> <div> <div> <div> <h3>Menu witryny</h3> <ul class="menu"><li id="current" class="active item1"><a href="xxxx"><span>Start</span></a></li> <li class="parent item27"><a href="xxxx"><span>Joomla! - przegląd</span></a> <ul> <li class="item34"><a href="xxxx"><span>Co nowego w 1.5</span></a></li> </ul> </li> <li class="item2"><a href="xxxx"><span>Licencja Joomla!</span></a></li> <li class="item37"><a href="xxxx"><span>Więcej o Joomla!</span></a></li> <li class="item41"><a href="xxxx"><span>Częste pytania</span></a></li> <li class="item50"><a href="xxxx"><span>Nowiny</span></a></li> <li class="item60"><span class="separator"><img src="xxxx/ikona.png" align="left" alt="separator" /><span>Separator</span></span></li> </ul> </div> </div> </div> </div>