<li class='active has-sub'><a>Especies</a> <ul> <?php $especies = array('humanos', 'orcos', 'enanos', 'elfos', 'caos', 'animales', 'criaturas', 'ultratumba'); foreach ($especies as $key => $especie) { echo "<li class='has-sub'>"; echo \core\html_tag::a_boton('', array('teams', "especie", $especie), $especie, array('title' => "{$especie}")); echo "</li>"; } ?> </ul> </li> <?php $teams = new \modelos\teams(); $confs = $teams->getConferences(); echo "<li class='active has-sub'>"; echo \core\html_tag::a_boton('', array('conferences', "siglas", $confs[0]['siglas']), 'Conferencias', array('title' => "{$confs[0]['nombre_es']}")); ?> <ul> <?php unset($confs[0]); foreach ($confs as $key => $conf) { echo "<li class='active has-sub'>"; echo \core\html_tag::a_boton('', array('conferences', "siglas", $conf['siglas']), $conf['nombre_es'], array('title' => "{$conf['siglas']}")); echo "</li>"; } ?> </ul> </li>
<?php echo \core\HTML_Tag::li_menu("item", array("inicio"), "Inicio"); ?> <li><span title="<?php echo iText('Equipos', 'dicc'); ?> "><?php echo iText('Equipos', 'dicc'); ?> </span> <ul id="list_team"> <?php echo \core\HTML_Tag::li_menu("subitem", array("teams"), "Mis oficiales"); ?> <?php $teams = new \modelos\teams(); $currents_teams = $teams->getTeams(); //$currents_teams = \modelos\teams::getTeams(); foreach ($currents_teams as $key => $team) { $_team = str_replace(' ', '-', $team['raza']); $title = ucwords($team['raza']); echo "<li>"; echo \core\html_tag::a_boton('subitem', array('teams', "raza", $_team, $team['id']), $team['raza'], array('title' => "{$title}")); echo "</li>"; } ?> </ul> </li> <?php echo \core\HTML_Tag::li_menu("item", array("players"), "Jugadores"); ?>