You are here

function _views_slideshow_cycle_pause_library_path in Views Slideshow 6.3

Same name and namespace in other branches
  1. 7.3 contrib/views_slideshow_cycle/views_slideshow_cycle.module \_views_slideshow_cycle_pause_library_path()

Gets the path to the jQuery pause library.

Return value

The path to the pause library js file, or FALSE if not found.

2 calls to _views_slideshow_cycle_pause_library_path()
views_slideshow_cycle_views_slideshow_slideshow_type_form in contrib/views_slideshow_cycle/views_slideshow_cycle.views_slideshow.inc
Implements hook_views_slideshow_slideshow_slideshow_type_form().
_views_slideshow_cycle_preprocess_views_slideshow_cycle_main_frame in contrib/views_slideshow_cycle/theme/views_slideshow_cycle.theme.inc
Views Slideshow: Theme the main frame wrapper.

File

contrib/views_slideshow_cycle/views_slideshow_cycle.module, line 43
Views Slideshow: cycle is typically used for field views.

Code

function _views_slideshow_cycle_pause_library_path() {
  $pause_path = libraries_get_path('jquery.pause');
  if (!empty($pause_path)) {

    // Attempt to use minified version of jQuery pause plugin.
    if (file_exists($pause_path . '/jquery.pause.min.js')) {
      $pause_path .= '/jquery.pause.min.js';
    }
    elseif (file_exists($pause_path . '/jquery.pause.js')) {
      $pause_path .= '/jquery.pause.js';
    }
    else {
      $pause_path = FALSE;
    }
  }
  else {
    $pause_path = FALSE;
  }
  return $pause_path;
}