Initial commit to github
This commit is contained in:
24
views/components/nav-main.php
Normal file
24
views/components/nav-main.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Main Navigation Component
|
||||
*
|
||||
* Please review documentation upon first use, and, as-needed:
|
||||
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation/
|
||||
*/
|
||||
|
||||
namespace BasicWP;
|
||||
|
||||
global $views;
|
||||
?>
|
||||
|
||||
<nav class="nav-main" role="navigation" aria-label="Main">
|
||||
<?php require_once __DIR__ . '/nav-main__toggle.php'; ?>
|
||||
|
||||
<?php
|
||||
if ( has_nav_menu( 'main_navigation' ) ) {
|
||||
// Initialize and render menu items
|
||||
$menuItems = new MenuItems( 'main_navigation' );
|
||||
$menuItems->render();
|
||||
}
|
||||
?>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user