|
@@ 10-26 (lines=17) @@
|
| 7 |
|
); |
| 8 |
|
|
| 9 |
|
// The Top Menu |
| 10 |
|
function podium_top_nav() |
| 11 |
|
{ |
| 12 |
|
wp_nav_menu([ |
| 13 |
|
'container' => false, // Remove nav container |
| 14 |
|
'container_class' => '', // Class of container |
| 15 |
|
'menu' => 'The Top Menu', 'podium', // Menu name |
| 16 |
|
'menu_class' => 'dropdown menu', // Adding custom nav class |
| 17 |
|
'theme_location' => 'main-nav', // Where it's located in the theme |
| 18 |
|
'before' => '', // Before each link <a> |
| 19 |
|
'after' => '', // After each link </a> |
| 20 |
|
'link_before' => '', // Before each link text |
| 21 |
|
'link_after' => '', // After each link text |
| 22 |
|
'depth' => 3, // Limit the depth of the nav |
| 23 |
|
'fallback_cb' => false, // Fallback function (see below) |
| 24 |
|
'walker' => new Top_Bar_Walker() |
| 25 |
|
]); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
/* End Top Menu */ |
| 29 |
|
|
|
@@ 30-46 (lines=17) @@
|
| 27 |
|
|
| 28 |
|
/* End Top Menu */ |
| 29 |
|
|
| 30 |
|
function podium_off_canvas() |
| 31 |
|
{ |
| 32 |
|
wp_nav_menu([ |
| 33 |
|
'container' => false, // Remove nav container |
| 34 |
|
'container_class' => '', // Class of container |
| 35 |
|
'menu' => '', // Menu name |
| 36 |
|
'menu_class' => 'off-canvas-list', // Adding custom nav class |
| 37 |
|
'theme_location' => 'main-nav', // Where it's located in the theme |
| 38 |
|
'before' => '', // Before each link <a> |
| 39 |
|
'after' => '', // After each link </a> |
| 40 |
|
'link_before' => '', // Before each link text |
| 41 |
|
'link_after' => '', // After each link text |
| 42 |
|
'depth' => 2, // Limit the depth of the nav |
| 43 |
|
'fallback_cb' => false, // Fallback function (see below) |
| 44 |
|
'walker' => new Offcanvas_Walker() |
| 45 |
|
]); |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
// The Footer Menu |
| 49 |
|
function podium_footer_links() |