/**
  * Enqueue stylesheet
  */
 public static function enqueueFrontendStylesheets()
 {
     if (SlideshowPluginGeneralSettings::getStylesheetLocation() === 'head') {
         // Register functional stylesheet
         wp_enqueue_style('slideshow-jquery-image-gallery-stylesheet_functional', SlideshowPluginMain::getPluginUrl() . '/style/SlideshowPlugin/functional.css', array(), SlideshowPluginMain::$version);
         // Get default and custom stylesheets
         $stylesheets = SlideshowPluginGeneralSettings::getStylesheets(true, true);
         $defaultStylesheets = $stylesheets['default'];
         $customStylesheets = $stylesheets['custom'];
         // Clean the '.css' extension from the default stylesheets
         foreach ($defaultStylesheets as $defaultStylesheetKey => $defaultStylesheetValue) {
             $newDefaultStylesheetKey = str_replace('.css', '', $defaultStylesheetKey);
             $defaultStylesheets[$newDefaultStylesheetKey] = $defaultStylesheetValue;
             if ($defaultStylesheetKey !== $newDefaultStylesheetKey) {
                 unset($defaultStylesheets[$defaultStylesheetKey]);
             }
         }
         // Enqueue stylesheets
         foreach (array_merge($defaultStylesheets, $customStylesheets) as $stylesheetKey => $stylesheetValue) {
             wp_enqueue_style('slideshow-jquery-image-gallery-ajax-stylesheet_' . $stylesheetKey, admin_url('admin-ajax.php?action=slideshow_jquery_image_gallery_load_stylesheet&style=' . $stylesheetKey, 'admin'), array(), $stylesheetValue['version']);
         }
         self::$allStylesheetsRegistered = true;
     }
 }
 /**
  * Returns an array of style setting defaults.
  *
  * For a full description of the parameters, see getAllDefaults().
  *
  * @since 2.1.20
  * @param boolean $fullDefinition (optional, defaults to false)
  * @param boolean $fromDatabase (optional, defaults to true)
  * @return mixed $data
  */
 static function getDefaultStyleSettings($fullDefinition = false, $fromDatabase = true)
 {
     // Default style settings
     $data = array('style' => 'style-light.css');
     // Read defaults from database and merge with $data, when $fromDatabase is set to true
     if ($fromDatabase) {
         $data = array_merge($data, $customData = get_option(SlideshowPluginGeneralSettings::$defaultStyleSettings, array()));
     }
     // Full definition
     if ($fullDefinition) {
         $data = array('style' => array('type' => 'select', 'default' => $data['style'], 'description' => __('The style used for this slideshow', 'slideshow-plugin'), 'options' => SlideshowPluginGeneralSettings::getStylesheets()));
     }
     // Return
     return $data;
 }