get_active_settings();
if (
!isset($settings['toggle']) ||
$settings['toggle'] != 'burger'
) {
return;
}
$context->add_render_attribute('menu-toggle', [
'aria-label' => esc_attr__('Advanced Menu Toggle', 'addons-for-elementor-builder'),
'aria-expanded' => 'false',
'aria-disabled' => 'true',
'class' => 'afeb-advanced-menu-toggle',
'role' => 'button',
'tabindex' => '-1',
]);
?>
print_render_attribute_string('menu-toggle'); ?>>
'eicons',
'value' => 'eicon-menu-bar',
];
$is_normal_icon_svg = 'svg' === $normal_icon['library'];
if ($is_normal_icon_svg) echo '';
Icons_Manager::render_icon(
$normal_icon,
[
'aria-hidden' => 'true',
'role' => 'presentation',
'class' => $open_class,
]
);
if ($is_normal_icon_svg) echo '';
$active_icon = !empty($settings['toggle_icon_active']['value'])
? $settings['toggle_icon_active']
: [
'library' => 'eicons',
'value' => 'eicon-close',
];
$is_active_icon_svg = 'svg' === $active_icon['library'];
if ($is_active_icon_svg) echo '';
Icons_Manager::render_icon(
$active_icon,
[
'aria-hidden' => 'true',
'role' => 'presentation',
'class' => $close_class,
]
);
if ($is_active_icon_svg) echo '';
?>
menu_index++;
}
}