$header_inside_after = '</div> <!-- default-header-content -->'; } ?> <header class="site-header <?php echo $custom_header_classes; ?> " role="banner"> <?php // Show header only if LC isn't active if (DS_LIVE_COMPOSER_ACTIVE) { echo 'The header is disabled when editing the page.'; } else { echo $header_inside_before; // Add logo if Mega Main Menu plugin is disabled // NOTE: normally logo displayed by Mega Main Menu echo lbmn_logo(); /** * ---------------------------------------------------------------------- * Site header with Mega Menu * menu location 'header-menu' with Mega Main Menu inside */ // disable menu for editing mode in Live Composer if (has_nav_menu('header-menu')) { // If 'header-menu' location has a menu assigned wp_nav_menu(array('theme_location' => 'header-menu', 'container_class' => 'header-top-menu')); } echo $header_inside_after; } ?> </header><!-- #masthead --> <div class="site-main">
function lbmn_footer() { // Process function only when Live Composer plugin is disabled if (defined('DS_LIVE_COMPOSER_URL') && defined('LBMN_THEME_CONFUGRATED') && LBMN_THEME_CONFUGRATED) { return; } $output = '<div class="site-footer"><div class="site-footer-inner">'; $output .= lbmn_logo(); if (has_nav_menu('header-menu')) { // If 'header-menu' location has a menu assigned $output .= wp_nav_menu(array('theme_location' => 'header-menu', 'container_class' => 'footer-menu', 'echo' => false)); } $output .= '</div></div>'; return $output; }