public function SlickSkinManager::getEasingPath in Slick Carousel 8.2
Returns easing library path if available, else FALSE.
2 calls to SlickSkinManager::getEasingPath()
- SlickSkinManager::attach in src/
SlickSkinManager.php - Provides slick skins and libraries.
- SlickSkinManager::libraryInfoAlter in src/
SlickSkinManager.php - Implements hook_library_info_alter().
File
- src/
SlickSkinManager.php, line 332
Class
- SlickSkinManager
- Provides Slick skin manager.
Namespace
Drupal\slickCode
public function getEasingPath() {
if (!isset($this->easingPath)) {
if (slick_libraries_get_path('easing') || slick_libraries_get_path('jquery.easing')) {
$library_easing = slick_libraries_get_path('easing') ?: slick_libraries_get_path('jquery.easing');
if ($library_easing) {
$easing_path = $library_easing . '/jquery.easing.min.js';
// Composer via bower-asset puts the library within `js` directory.
if (!is_file($easing_path)) {
$easing_path = $library_easing . '/js/jquery.easing.min.js';
}
}
}
else {
if (is_file($this->root . '/libraries/easing/jquery.easing.min.js')) {
$easing_path = 'libraries/easing/jquery.easing.min.js';
}
}
$this->easingPath = isset($easing_path) ? $easing_path : FALSE;
}
return $this->easingPath;
}