';
}
/**
* Fallback menu function - displays Home + 6 pages when no menu is assigned
* Uses proper menu structure for consistency
*/
function blog_build_fallback_menu($args = array())
{
// Get up to 6 pages
$pages = get_pages(array(
'sort_column' => 'menu_order, post_title',
'number' => 6,
'post_status' => 'publish',
));
$menu_id = isset($args['menu_id']) ? $args['menu_id'] : 'main-menu';
echo '
';
// Add Home link with proper current class
$home_class = (is_front_page() || is_home()) ? 'menu-item current-menu-item' : 'menu-item';
echo '
';
}
/**
* Mobile Menu Output - Slide-in Panel Style
*
* Displays responsive mobile navigation with:
* - Topbar with site logo and hamburger menu button
* - Full-screen slide-in menu panel with focus trap
* - ARIA labels and keyboard accessibility support
* - Proper focus management and screen reader compatibility
* - Semantic HTML structure for accessibility
* - Keyboard focus trapped inside menu when open
*
* @since 2.0.0
*/
function blog_build_mobile_menu_output()
{
?>