You are here

function responsive_menus_responsive_menus_style_info in Responsive Menus 7

Implements hook_responsive_menus_style_info().

File

./responsive_menus.module, line 406
Responsify menus in Drupal.

Code

function responsive_menus_responsive_menus_style_info() {
  $path = drupal_get_path('module', 'responsive_menus') . '/styles';
  $styles = array(
    'responsive_menus_simple' => array(
      'name' => t('Simple expanding'),
      'form' => 'responsive_menus_simple_style_settings',
      'js_files' => array(
        $path . '/responsive_menus_simple/js/responsive_menus_simple.js',
      ),
      'css_files' => array(
        $path . '/responsive_menus_simple/css/responsive_menus_simple.css',
      ),
      'js_settings' => 'responsive_menus_simple_style_js_settings',
      'file' => $path . '/responsive_menus_simple/responsive_menus_simple.inc',
      'selector' => t('Anything.  Example: Given <code>@code</code> you could use !use', array(
        '@ul' => '<ul>',
        '@code' => '<div id="parent-div"> <ul class="menu"> </ul> </div>',
        '!use' => '<strong>#parent-div or .menu</strong>',
      )),
    ),
    'mean_menu' => array(
      'name' => t('Mean Menu'),
      'form' => 'responsive_menus_mean_menu_style_settings',
      'js_files' => array(
        $path . '/meanMenu/jquery.meanmenu.min.js',
        $path . '/meanMenu/responsive_menus_mean_menu.js',
      ),
      'css_files' => array(
        $path . '/meanMenu/meanmenu.min.css',
      ),
      'js_settings' => 'responsive_menus_mean_menu_style_js_settings',
      'jquery_version' => 1.7,
      'file' => $path . '/meanMenu/meanMenu.inc',
      'selector' => t('Parent of the @ul.  Example: Given <code>@code</code> you would use !use', array(
        '@ul' => '<ul>',
        '@code' => '<div id="parent-div"> <ul class="menu"> </ul> </div>',
        '!use' => '<strong>#parent-div</strong>',
      )),
    ),
    'codrops_responsive_multi' => array(
      'name' => t('ResponsiveMultiLevelMenu (codrops)'),
      'form' => 'responsive_menus_codrops_responsive_multi_style_settings',
      'js_settings' => 'responsive_menus_codrops_responsive_multi_style_js_settings',
      'use_libraries' => TRUE,
      'library' => 'ResponsiveMultiLevelMenu',
      'jquery_version' => 1.7,
      'file' => $path . '/ResponsiveMultiLevelMenu/ResponsiveMultiLevelMenu.inc',
      'selector' => t('Parent of the @ul.  Example: Given <code>@code</code> you would use !use', array(
        '@ul' => '<ul>',
        '@code' => '<div id="parent-div"> <ul class="menu"> </ul> </div>',
        '!use' => '<strong>#parent-div</strong>',
      )),
    ),
    'sidr' => array(
      'name' => t('Sidr'),
      'form' => 'responsive_menus_sidr_style_settings',
      'js_settings' => 'responsive_menus_sidr_style_js_settings',
      'use_libraries' => TRUE,
      'library' => 'sidr',
      'file' => $path . '/sidr/sidr.inc',
      'selector' => t('Anything (parent of ul preferred).  Example: Given <code>@code</code> you could use !use', array(
        '@ul' => '<ul>',
        '@code' => '<div id="parent-div"> <ul class="menu"> </ul> </div>',
        '!use' => '<strong>#parent-div or .menu</strong>',
      )),
    ),
    'google_nexus' => array(
      'name' => t('Google Nexus (codrops)'),
      'form' => 'responsive_menus_google_nexus_style_settings',
      'js_settings' => 'responsive_menus_google_nexus_style_js_settings',
      'use_libraries' => TRUE,
      'library' => 'GoogleNexusWebsiteMenu',
      'file' => $path . '/google_nexus/google_nexus.inc',
      'selector' => t('The @ul.  Example: Given <code>@code</code> you would use !use', array(
        '@ul' => '<ul>',
        '@code' => '<div id="parent-div"> <ul class="menu"> </ul> </div>',
        '!use' => '<strong>.menu</strong>',
      )),
    ),
    'mlpm' => array(
      'name' => t('Multi Level Push Menu'),
      'form' => 'responsive_menus_mlpm_style_settings',
      'js_settings' => 'responsive_menus_mlpm_style_js_settings',
      'css_files' => _responsive_menus_mlpm_get_css(),
      'js_files' => array(
        '//oss.maxcdn.com/libs/modernizr/2.6.2/modernizr.min.js',
        $path . '/mlpm/js/jquery.multilevelpushmenu.min.js',
        $path . '/mlpm/js/mlpm.js',
      ),
      'jquery_version' => 1.1,
      'file' => $path . '/mlpm/mlpm.inc',
      'selector' => t('Parent of the @ul.  Example: Given <code>@code</code> you would use !use', array(
        '@ul' => '<ul>',
        '@code' => '<div id="parent-div"> <ul class="menu"> </ul> </div>',
        '!use' => '<strong>#parent-div</strong>',
      )),
    ),
  );
  return $styles;
}