You are here

function responsive_menus_libraries_info in Responsive Menus 7

Implements hook_libraries_info(). @note : Libraries 2.x

File

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

Code

function responsive_menus_libraries_info() {
  $libraries['ResponsiveMultiLevelMenu'] = array(
    'name' => 'ResponsiveMultiLevelMenu (codrops)',
    'vendor url' => 'http://tympanus.net/Development/ResponsiveMultiLevelMenu/',
    'download url' => 'http://tympanus.net/Development/ResponsiveMultiLevelMenu/ResponsiveMultiLevelMenu.zip',
    'version arguments' => array(
      'file' => 'js/jquery.dlmenu.js',
      'pattern' => '/v([\\d\\.]+)/',
      'lines' => 3,
      'columns' => 40,
    ),
    'files' => array(
      'js' => array(
        'js/modernizr.custom.js',
        'js/jquery.dlmenu.js',
      ),
      'css' => array(
        'css/component.css',
      ),
    ),
    'integration files' => array(
      'responsive_menus' => array(
        'js' => array(
          'styles/ResponsiveMultiLevelMenu/js/responsive_menus_codrops_responsive_multi.js',
        ),
      ),
    ),
  );
  $libraries['sidr'] = array(
    'name' => 'Sidr',
    'vendor url' => 'http://www.berriart.com/sidr',
    'download url' => 'https://github.com/artberri/sidr-package/archive/1.2.1.zip',
    'version arguments' => array(
      'file' => 'jquery.sidr.min.js',
      'pattern' => '/v([\\d\\.]+)/',
      'lines' => 1,
      'columns' => 40,
    ),
    'files' => array(
      'js' => array(
        'jquery.sidr.min.js',
      ),
      'css' => array(
        'stylesheets/jquery.sidr.dark.css',
      ),
    ),
    'integration files' => array(
      'responsive_menus' => array(
        'js' => array(
          'styles/sidr/js/responsive_menus_sidr.js',
        ),
      ),
    ),
  );
  $sidr_theme = variable_get('responsive_menus_sidr_menu_theme', 'dark');
  if ($sidr_theme == 'light') {
    $libraries['sidr']['files']['css'] = array(
      'stylesheets/jquery.sidr.light.css',
    );
  }
  elseif ($sidr_theme == 'custom') {
    unset($libraries['sidr']['files']['css']);
  }
  $libraries['GoogleNexusWebsiteMenu'] = array(
    'name' => 'Google Nexus (codrops)',
    'vendor url' => 'http://tympanus.net/codrops/2013/07/30/google-nexus-website-menu/',
    'download url' => 'http://tympanus.net/Tutorials/GoogleNexusWebsiteMenu/GoogleNexusWebsiteMenu.zip',
    'version arguments' => array(
      'file' => 'js/gnmenu.js',
      'pattern' => '/v([\\d\\.]+)/',
      'lines' => 2,
      'columns' => 40,
    ),
    'files' => array(
      'js' => array(
        'js/gnmenu.js',
        'js/classie.js',
      ),
      'css' => array(
        'css/component.css',
      ),
    ),
    'integration files' => array(
      'responsive_menus' => array(
        'js' => array(
          'styles/google_nexus/js/responsive_menus_google_nexus.js',
        ),
        'css' => array(
          'styles/google_nexus/css/responsive_menus_google_nexus.css',
        ),
      ),
    ),
  );
  return $libraries;
}