This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Creación de la tabla | |
| CREATE TABLE IF NOT EXISTS `paises` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID único del país', | |
| `name` varchar(30) COLLATE latin1_spanish_ci NOT NULL COMMENT 'Nombre descritivo', | |
| `iso_name` varchar(30) COLLATE latin1_spanish_ci NOT NULL COMMENT 'Nombre standard ISO', | |
| `alfa2` varchar(2) COLLATE latin1_spanish_ci NOT NULL COMMENT 'Código de 2 caracteres', | |
| `alfa3` varchar(3) COLLATE latin1_spanish_ci NOT NULL COMMENT 'Código de 3 caracteres', | |
| `numerico` int(3) NOT NULL COMMENT 'Código único por país', | |
| PRIMARY KEY (`id`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Bootstrap_Walker_Nav_Menu extends Walker_Nav_Menu { | |
| function start_lvl( &$output, $depth ) { | |
| //In a child UL, add the 'dropdown-menu' class | |
| $indent = str_repeat( "\t", $depth ); | |
| $output .= "\n$indent<ul class=\"dropdown-menu\">\n"; |