function responsive_menus_mlpm_style_js_settings in Responsive Menus 7
JS callback from hook_responsive_menus_style_info().
1 string reference to 'responsive_menus_mlpm_style_js_settings'
File
- ./
responsive_menus.module, line 1094 - Responsify menus in Drupal.
Code
function responsive_menus_mlpm_style_js_settings($js_defaults = array()) {
$toggle = variable_get('responsive_menus_mlpm_toggle', array());
$style = variable_get('responsive_menus_mlpm_decoration', array());
$js_settings = array(
'selectors' => responsive_menus_var_get('responsive_menus_mlpm_css_selectors', '#main-menu', $js_defaults),
'media_size' => responsive_menus_var_get('responsive_menus_mlpm_media_size', 768, $js_defaults),
'move_to' => responsive_menus_var_get('responsive_menus_mlpm_move_to', '#page-wrapper', $js_defaults),
'nav_block' => variable_get('responsive_menus_mlpm_nav_block', 1, $js_defaults),
'nav_block_name' => variable_get('responsive_menus_mlpm_nav_block_name', 'mlpm-menu', $js_defaults),
'push' => explode("\n", variable_get('responsive_menus_mlpm_push', '#page', $js_defaults)),
'menu_height' => variable_get('responsive_menus_mlpm_menu_height', '100%', $js_defaults),
'direction' => variable_get('responsive_menus_mlpm_direction', 'ltr', $js_defaults),
'mode' => variable_get('responsive_menus_mlpm_mode', 'overlap', $js_defaults),
'collapsed' => variable_get('responsive_menus_mlpm_collapsed', 1, $js_defaults),
'full_collapse' => variable_get('responsive_menus_mlpm_full_collapse', 0, $js_defaults),
'swipe' => variable_get('responsive_menus_mlpm_swipe', 'both', $js_defaults),
'toggle_container' => isset($toggle['container']) ? $toggle['container'] : '',
'toggle_text' => isset($toggle['text']) ? check_markup($toggle['text'], 'filtered_html') : '',
'off_menu' => isset($toggle['off_menu']) ? $toggle['off_menu'] : '',
'back_text' => isset($style['back_text']) ? $style['back_text'] : 'Back',
'back_class' => isset($style['back_class']) ? $style['back_class'] : 'backItemClass',
'back_icon' => isset($style['back_icon']) ? $style['back_icon'] : 'fa fa-angle-right',
'group_icon' => isset($style['group_icon']) ? $style['group_icon'] : 'fa fa-angle-left',
);
return $js_settings;
}