).
*
* @since 3.0.0
* @var Array
*/
$menu_classes = apply_filters( 'astra_' . $theme_location . '_menu_classes', array( 'main-header-menu', 'ast-menu-shadow', 'ast-nav-menu', 'ast-flex', $submenu_class, $stack_on_mobile_class ) );
$items_wrap = '';
// Generate a unique menu ID based on context.
$unique_suffix = '';
if ( 'desktop' !== $device ) {
$unique_suffix = '-' . $device;
}
// Fallback Menu if primary menu not set.
$fallback_menu_args = array(
'theme_location' => $theme_location,
'menu_id' => apply_filters( 'astra_header_menu_ul_id', 'ast-hf-menu-' . $index . $unique_suffix ),
'menu_class' => 'main-navigation ast-inline-flex',
'container' => 'div',
'before' => '
',
'after' => '
',
'walker' => new Astra_Walker_Page(),
'echo' => false,
);
// To add default alignment for navigation which can be added through any third party plugin.
// Do not add any CSS from theme except header alignment.
echo '