PHP code example of kunoichi / set-menu
1. Go to this page and download the library: Download kunoichi/set-menu library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kunoichi / set-menu example snippets
reuqire __DIR__ . '/vendor/autoload.php';
Kunoichi\SetMenu::enable();
if ( has_nav_menu( 'header' ) ) {
Kunoichi\SetMenu::nav_menu( [
'container' => false,
'menu_class' => 'footer-social-menu',
'depth' => 1,
'theme_location' => 'social-menu',
] );
}
<footer class="footer">
if ( is_active_sidebar( 'footer-widgets' ) ) :