diff --git a/dca/tl_content.php b/dca/tl_content.php index 4931f1a..f716c29 100644 --- a/dca/tl_content.php +++ b/dca/tl_content.php @@ -30,8 +30,8 @@ $GLOBALS['TL_DCA']['tl_content']['palettes']['__selector__'][] = 'rsts_import_settings'; $GLOBALS['TL_DCA']['tl_content']['palettes']['__selector__'][] = 'rsts_content_type'; $GLOBALS['TL_DCA']['tl_content']['palettes']['rocksolid_slider'] = '{type_legend},type,headline,rsts_content_type'; -$GLOBALS['TL_DCA']['tl_content']['palettes']['rocksolid_sliderrsts_default'] = '{type_legend},type,headline,rsts_content_type;{rocksolid_slider_legend},rsts_id,rsts_import_settings,rsts_type,rsts_direction,rsts_random,rsts_loop,rsts_centerContent,rsts_skin,rsts_width,rsts_height,rsts_preloadSlides,rsts_gapSize,rsts_duration,rsts_captions,rsts_scaleMode,rsts_imagePosition;{rsts_navigation_legend},rsts_navType,rsts_deepLinkPrefix,rsts_controls,rsts_keyboard,rsts_invertControls;{rsts_thumbs_legend},rsts_thumbs_imgSize,rsts_thumbs;{rsts_autoplay_legend},rsts_autoplay,rsts_autoplayRestart,rsts_autoplayProgress,rsts_pauseAutoplayOnHover,rsts_videoAutoplay;{rsts_carousel_legend},rsts_slideMaxCount,rsts_slideMinSize,rsts_slideMaxSize,rsts_rowMaxCount,rsts_rowMinSize,rsts_rowSlideRatio,rsts_prevNextSteps,rsts_combineNavItems,rsts_visibleArea,rsts_visibleAreaMax;{template_legend:hide},rsts_template,size,fullsize;{protected_legend:hide},protected;{expert_legend:hide},guests,rsts_customSkin,rsts_cssPrefix,cssID,space;{invisible_legend:hide},invisible,start,stop'; -$GLOBALS['TL_DCA']['tl_content']['palettes']['rocksolid_sliderrsts_images'] = '{type_legend},type,headline,rsts_content_type;{source_legend:hide},multiSRC;{rocksolid_slider_legend},rsts_import_settings,rsts_type,rsts_direction,rsts_random,rsts_loop,rsts_centerContent,rsts_skin,rsts_width,rsts_height,rsts_preloadSlides,rsts_gapSize,rsts_duration,rsts_captions,rsts_scaleMode,rsts_imagePosition;{rsts_navigation_legend},rsts_navType,rsts_deepLinkPrefix,rsts_controls,rsts_keyboard,rsts_invertControls;{rsts_thumbs_legend},rsts_thumbs_imgSize,rsts_thumbs;{rsts_autoplay_legend},rsts_autoplay,rsts_autoplayRestart,rsts_autoplayProgress,rsts_pauseAutoplayOnHover,rsts_videoAutoplay;{rsts_carousel_legend},rsts_slideMaxCount,rsts_slideMinSize,rsts_slideMaxSize,rsts_rowMaxCount,rsts_rowMinSize,rsts_rowSlideRatio,rsts_prevNextSteps,rsts_combineNavItems,rsts_visibleArea,rsts_visibleAreaMax;{template_legend:hide},rsts_template,size,fullsize;{protected_legend:hide},protected;{expert_legend:hide},guests,rsts_customSkin,rsts_cssPrefix,cssID,space;{invisible_legend:hide},invisible,start,stop'; +$GLOBALS['TL_DCA']['tl_content']['palettes']['rocksolid_sliderrsts_default'] = '{type_legend},type,headline,rsts_content_type;{rocksolid_slider_legend},rsts_id,rsts_import_settings,rsts_type,rsts_direction,rsts_random,rsts_loop,rsts_centerContent,rsts_skin,rsts_width,rsts_height,rsts_preloadSlides,rsts_gapSize,rsts_duration,rsts_captions,rsts_scaleMode,rsts_imagePosition;{rsts_navigation_legend},rsts_navType,rsts_deepLinkPrefix,rsts_controls,rsts_thumbControls,rsts_keyboard,rsts_invertControls;{rsts_thumbs_legend},rsts_thumbs_imgSize,rsts_thumbs;{rsts_autoplay_legend},rsts_autoplay,rsts_autoplayRestart,rsts_autoplayProgress,rsts_pauseAutoplayOnHover,rsts_videoAutoplay;{rsts_carousel_legend},rsts_slideMaxCount,rsts_slideMinSize,rsts_slideMaxSize,rsts_rowMaxCount,rsts_rowMinSize,rsts_rowSlideRatio,rsts_prevNextSteps,rsts_combineNavItems,rsts_visibleArea,rsts_visibleAreaMax,rsts_visibleAreaAlign;{template_legend:hide},rsts_template,size,fullsize;{protected_legend:hide},protected;{expert_legend:hide},guests,rsts_customSkin,rsts_cssPrefix,cssID,space;{invisible_legend:hide},invisible,start,stop'; +$GLOBALS['TL_DCA']['tl_content']['palettes']['rocksolid_sliderrsts_images'] = '{type_legend},type,headline,rsts_content_type;{source_legend:hide},multiSRC;{rocksolid_slider_legend},rsts_import_settings,rsts_type,rsts_direction,rsts_random,rsts_loop,rsts_centerContent,rsts_skin,rsts_width,rsts_height,rsts_preloadSlides,rsts_gapSize,rsts_duration,rsts_captions,rsts_scaleMode,rsts_imagePosition;{rsts_navigation_legend},rsts_navType,rsts_deepLinkPrefix,rsts_controls,rsts_thumbControls,rsts_keyboard,rsts_invertControls;{rsts_thumbs_legend},rsts_thumbs_imgSize,rsts_thumbs;{rsts_autoplay_legend},rsts_autoplay,rsts_autoplayRestart,rsts_autoplayProgress,rsts_pauseAutoplayOnHover,rsts_videoAutoplay;{rsts_carousel_legend},rsts_slideMaxCount,rsts_slideMinSize,rsts_slideMaxSize,rsts_rowMaxCount,rsts_rowMinSize,rsts_rowSlideRatio,rsts_prevNextSteps,rsts_combineNavItems,rsts_visibleArea,rsts_visibleAreaMax,rsts_visibleAreaAlign;{template_legend:hide},rsts_template,size,fullsize;{protected_legend:hide},protected;{expert_legend:hide},guests,rsts_customSkin,rsts_cssPrefix,cssID,space;{invisible_legend:hide},invisible,start,stop'; $GLOBALS['TL_DCA']['tl_content']['palettes']['rocksolid_sliderrsts_import_settingsrsts_default'] = '{type_legend},type,headline,rsts_content_type;{rocksolid_slider_legend},rsts_id,rsts_import_settings,rsts_import_settings_from;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop'; $GLOBALS['TL_DCA']['tl_content']['palettes']['rocksolid_sliderrsts_import_settingsrsts_images'] = '{type_legend},type,headline,rsts_content_type;{source_legend:hide},multiSRC;{rocksolid_slider_legend},rsts_import_settings,rsts_import_settings_from;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop'; @@ -285,6 +285,14 @@ 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default '1'", ); +// true to show thumbnails inside the prev and next controls +$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_thumbControls'] = array( + 'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_thumbControls'], + 'exclude' => true, + 'inputType' => 'checkbox', + 'eval' => array('tl_class' => 'w50'), + 'sql' => "char(1) NOT NULL default ''", +); // Adds data-rsts-class="rsts-invert-controls" to all slides $GLOBALS['TL_DCA']['tl_content']['fields']['rsts_invertControls'] = array( 'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_invertControls'], @@ -539,6 +547,16 @@ 'eval' => array('tl_class' => 'w50'), 'sql' => "double unsigned NOT NULL default '0'", ); +// Alignment of the visible area (0 = start, 0.5 = center, 1 = end) +$GLOBALS['TL_DCA']['tl_content']['fields']['rsts_visibleAreaAlign'] = array( + 'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAlign'], + 'exclude' => true, + 'inputType' => 'select', + 'options' => array('0', '50', '100'), + 'reference' => &$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAligns'], + 'eval' => array('tl_class' => 'w50'), + 'sql' => "double unsigned NOT NULL default '50'", +); // minimal size of one slide in px $GLOBALS['TL_DCA']['tl_content']['fields']['rsts_slideMinSize'] = array( 'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_slideMinSize'], diff --git a/dca/tl_module.php b/dca/tl_module.php index 7511724..be07341 100644 --- a/dca/tl_module.php +++ b/dca/tl_module.php @@ -17,11 +17,11 @@ $GLOBALS['TL_DCA']['tl_module']['palettes']['__selector__'][] = 'rsts_import_settings'; $GLOBALS['TL_DCA']['tl_module']['palettes']['__selector__'][] = 'rsts_content_type'; $GLOBALS['TL_DCA']['tl_module']['palettes']['rocksolid_slider'] = '{title_legend},name,headline,type,rsts_content_type'; -$GLOBALS['TL_DCA']['tl_module']['palettes']['rocksolid_sliderrsts_default'] = '{title_legend},name,headline,type,rsts_content_type;{config_legend},rsts_id,rsts_import_settings,rsts_type,rsts_direction,rsts_random,rsts_loop,rsts_centerContent,rsts_skin,rsts_width,rsts_height,rsts_preloadSlides,rsts_gapSize,rsts_duration,rsts_captions,rsts_scaleMode,rsts_imagePosition;{rsts_navigation_legend},rsts_navType,rsts_deepLinkPrefix,rsts_controls,rsts_keyboard,rsts_invertControls;{rsts_thumbs_legend},rsts_thumbs_imgSize,rsts_thumbs;{rsts_autoplay_legend},rsts_autoplay,rsts_autoplayRestart,rsts_autoplayProgress,rsts_pauseAutoplayOnHover,rsts_videoAutoplay;{rsts_carousel_legend},rsts_slideMaxCount,rsts_slideMinSize,rsts_slideMaxSize,rsts_rowMaxCount,rsts_rowMinSize,rsts_rowSlideRatio,rsts_prevNextSteps,rsts_combineNavItems,rsts_visibleArea,rsts_visibleAreaMax;{template_legend:hide},rsts_template,imgSize,fullsize;{expert_legend:hide},rsts_customSkin,rsts_cssPrefix,cssID,space'; -$GLOBALS['TL_DCA']['tl_module']['palettes']['rocksolid_sliderrsts_news'] = '{title_legend},name,headline,type,rsts_content_type;{rsts_news_legend},news_archives,numberOfItems,news_featured,skipFirst,news_template,news_metaFields;{config_legend},rsts_import_settings,rsts_type,rsts_direction,rsts_random,rsts_loop,rsts_centerContent,rsts_skin,rsts_width,rsts_height,rsts_preloadSlides,rsts_gapSize,rsts_duration,rsts_captions,rsts_scaleMode,rsts_imagePosition;{rsts_navigation_legend},rsts_navType,rsts_deepLinkPrefix,rsts_controls,rsts_keyboard,rsts_invertControls;{rsts_thumbs_legend},rsts_thumbs_imgSize,rsts_thumbs;{rsts_autoplay_legend},rsts_autoplay,rsts_autoplayRestart,rsts_autoplayProgress,rsts_pauseAutoplayOnHover,rsts_videoAutoplay;{rsts_carousel_legend},rsts_slideMaxCount,rsts_slideMinSize,rsts_slideMaxSize,rsts_rowMaxCount,rsts_rowMinSize,rsts_rowSlideRatio,rsts_prevNextSteps,rsts_combineNavItems,rsts_visibleArea,rsts_visibleAreaMax;{template_legend:hide},rsts_template,imgSize,fullsize;{expert_legend:hide},rsts_customSkin,rsts_cssPrefix,cssID,space'; -$GLOBALS['TL_DCA']['tl_module']['palettes']['rocksolid_sliderrsts_events'] = '{title_legend},name,headline,type,rsts_content_type;{rsts_events_legend},cal_calendar,cal_noSpan,cal_format,cal_ignoreDynamic,cal_order,cal_readerModule,cal_limit,cal_template;{config_legend},rsts_import_settings,rsts_type,rsts_direction,rsts_random,rsts_loop,rsts_centerContent,rsts_skin,rsts_width,rsts_height,rsts_preloadSlides,rsts_gapSize,rsts_duration,rsts_captions,rsts_scaleMode,rsts_imagePosition;{rsts_navigation_legend},rsts_navType,rsts_deepLinkPrefix,rsts_controls,rsts_keyboard,rsts_invertControls;{rsts_thumbs_legend},rsts_thumbs_imgSize,rsts_thumbs;{rsts_autoplay_legend},rsts_autoplay,rsts_autoplayRestart,rsts_autoplayProgress,rsts_pauseAutoplayOnHover,rsts_videoAutoplay;{rsts_carousel_legend},rsts_slideMaxCount,rsts_slideMinSize,rsts_slideMaxSize,rsts_rowMaxCount,rsts_rowMinSize,rsts_rowSlideRatio,rsts_prevNextSteps,rsts_combineNavItems,rsts_visibleArea,rsts_visibleAreaMax;{template_legend:hide},rsts_template,imgSize,fullsize;{expert_legend:hide},rsts_customSkin,rsts_cssPrefix,cssID,space'; -$GLOBALS['TL_DCA']['tl_module']['palettes']['rocksolid_sliderrsts_images'] = '{title_legend},name,headline,type,rsts_content_type;{rsts_images_legend},multiSRC;{config_legend},rsts_import_settings,rsts_type,rsts_direction,rsts_random,rsts_loop,rsts_centerContent,rsts_skin,rsts_width,rsts_height,rsts_preloadSlides,rsts_gapSize,rsts_duration,rsts_captions,rsts_scaleMode,rsts_imagePosition;{rsts_navigation_legend},rsts_navType,rsts_deepLinkPrefix,rsts_controls,rsts_keyboard,rsts_invertControls;{rsts_thumbs_legend},rsts_thumbs_imgSize,rsts_thumbs;{rsts_autoplay_legend},rsts_autoplay,rsts_autoplayRestart,rsts_autoplayProgress,rsts_pauseAutoplayOnHover,rsts_videoAutoplay;{rsts_carousel_legend},rsts_slideMaxCount,rsts_slideMinSize,rsts_slideMaxSize,rsts_rowMaxCount,rsts_rowMinSize,rsts_rowSlideRatio,rsts_prevNextSteps,rsts_combineNavItems,rsts_visibleArea,rsts_visibleAreaMax;{template_legend:hide},rsts_template,imgSize,fullsize;{expert_legend:hide},rsts_customSkin,rsts_cssPrefix,cssID,space'; -$GLOBALS['TL_DCA']['tl_module']['palettes']['rocksolid_sliderrsts_settings'] = '{title_legend},name,type,rsts_content_type;{config_legend},rsts_type,rsts_direction,rsts_random,rsts_loop,rsts_centerContent,rsts_skin,rsts_width,rsts_height,rsts_preloadSlides,rsts_gapSize,rsts_duration,rsts_captions,rsts_scaleMode,rsts_imagePosition;{rsts_navigation_legend},rsts_navType,rsts_deepLinkPrefix,rsts_controls,rsts_keyboard,rsts_invertControls;{rsts_thumbs_legend},rsts_thumbs_imgSize,rsts_thumbs;{rsts_autoplay_legend},rsts_autoplay,rsts_autoplayRestart,rsts_autoplayProgress,rsts_pauseAutoplayOnHover,rsts_videoAutoplay;{rsts_carousel_legend},rsts_slideMaxCount,rsts_slideMinSize,rsts_slideMaxSize,rsts_rowMaxCount,rsts_rowMinSize,rsts_rowSlideRatio,rsts_prevNextSteps,rsts_combineNavItems,rsts_visibleArea,rsts_visibleAreaMax;{template_legend:hide},rsts_template,imgSize,fullsize;{expert_legend:hide},rsts_customSkin,rsts_cssPrefix'; +$GLOBALS['TL_DCA']['tl_module']['palettes']['rocksolid_sliderrsts_default'] = '{title_legend},name,headline,type,rsts_content_type;{config_legend},rsts_id,rsts_import_settings,rsts_type,rsts_direction,rsts_random,rsts_loop,rsts_centerContent,rsts_skin,rsts_width,rsts_height,rsts_preloadSlides,rsts_gapSize,rsts_duration,rsts_captions,rsts_scaleMode,rsts_imagePosition;{rsts_navigation_legend},rsts_navType,rsts_deepLinkPrefix,rsts_controls,rsts_thumbControls,rsts_keyboard,rsts_invertControls;{rsts_thumbs_legend},rsts_thumbs_imgSize,rsts_thumbs;{rsts_autoplay_legend},rsts_autoplay,rsts_autoplayRestart,rsts_autoplayProgress,rsts_pauseAutoplayOnHover,rsts_videoAutoplay;{rsts_carousel_legend},rsts_slideMaxCount,rsts_slideMinSize,rsts_slideMaxSize,rsts_rowMaxCount,rsts_rowMinSize,rsts_rowSlideRatio,rsts_prevNextSteps,rsts_combineNavItems,rsts_visibleArea,rsts_visibleAreaMax,rsts_visibleAreaAlign;{template_legend:hide},rsts_template,imgSize,fullsize;{expert_legend:hide},rsts_customSkin,rsts_cssPrefix,cssID,space'; +$GLOBALS['TL_DCA']['tl_module']['palettes']['rocksolid_sliderrsts_news'] = '{title_legend},name,headline,type,rsts_content_type;{rsts_news_legend},news_archives,numberOfItems,news_featured,skipFirst,news_template,news_metaFields;{config_legend},rsts_import_settings,rsts_type,rsts_direction,rsts_random,rsts_loop,rsts_centerContent,rsts_skin,rsts_width,rsts_height,rsts_preloadSlides,rsts_gapSize,rsts_duration,rsts_captions,rsts_scaleMode,rsts_imagePosition;{rsts_navigation_legend},rsts_navType,rsts_deepLinkPrefix,rsts_controls,rsts_thumbControls,rsts_keyboard,rsts_invertControls;{rsts_thumbs_legend},rsts_thumbs_imgSize,rsts_thumbs;{rsts_autoplay_legend},rsts_autoplay,rsts_autoplayRestart,rsts_autoplayProgress,rsts_pauseAutoplayOnHover,rsts_videoAutoplay;{rsts_carousel_legend},rsts_slideMaxCount,rsts_slideMinSize,rsts_slideMaxSize,rsts_rowMaxCount,rsts_rowMinSize,rsts_rowSlideRatio,rsts_prevNextSteps,rsts_combineNavItems,rsts_visibleArea,rsts_visibleAreaMax,rsts_visibleAreaAlign;{template_legend:hide},rsts_template,imgSize,fullsize;{expert_legend:hide},rsts_customSkin,rsts_cssPrefix,cssID,space'; +$GLOBALS['TL_DCA']['tl_module']['palettes']['rocksolid_sliderrsts_events'] = '{title_legend},name,headline,type,rsts_content_type;{rsts_events_legend},cal_calendar,cal_noSpan,cal_format,cal_ignoreDynamic,cal_order,cal_readerModule,cal_limit,cal_template;{config_legend},rsts_import_settings,rsts_type,rsts_direction,rsts_random,rsts_loop,rsts_centerContent,rsts_skin,rsts_width,rsts_height,rsts_preloadSlides,rsts_gapSize,rsts_duration,rsts_captions,rsts_scaleMode,rsts_imagePosition;{rsts_navigation_legend},rsts_navType,rsts_deepLinkPrefix,rsts_controls,rsts_thumbControls,rsts_keyboard,rsts_invertControls;{rsts_thumbs_legend},rsts_thumbs_imgSize,rsts_thumbs;{rsts_autoplay_legend},rsts_autoplay,rsts_autoplayRestart,rsts_autoplayProgress,rsts_pauseAutoplayOnHover,rsts_videoAutoplay;{rsts_carousel_legend},rsts_slideMaxCount,rsts_slideMinSize,rsts_slideMaxSize,rsts_rowMaxCount,rsts_rowMinSize,rsts_rowSlideRatio,rsts_prevNextSteps,rsts_combineNavItems,rsts_visibleArea,rsts_visibleAreaMax,rsts_visibleAreaAlign;{template_legend:hide},rsts_template,imgSize,fullsize;{expert_legend:hide},rsts_customSkin,rsts_cssPrefix,cssID,space'; +$GLOBALS['TL_DCA']['tl_module']['palettes']['rocksolid_sliderrsts_images'] = '{title_legend},name,headline,type,rsts_content_type;{rsts_images_legend},multiSRC;{config_legend},rsts_import_settings,rsts_type,rsts_direction,rsts_random,rsts_loop,rsts_centerContent,rsts_skin,rsts_width,rsts_height,rsts_preloadSlides,rsts_gapSize,rsts_duration,rsts_captions,rsts_scaleMode,rsts_imagePosition;{rsts_navigation_legend},rsts_navType,rsts_deepLinkPrefix,rsts_controls,rsts_thumbControls,rsts_keyboard,rsts_invertControls;{rsts_thumbs_legend},rsts_thumbs_imgSize,rsts_thumbs;{rsts_autoplay_legend},rsts_autoplay,rsts_autoplayRestart,rsts_autoplayProgress,rsts_pauseAutoplayOnHover,rsts_videoAutoplay;{rsts_carousel_legend},rsts_slideMaxCount,rsts_slideMinSize,rsts_slideMaxSize,rsts_rowMaxCount,rsts_rowMinSize,rsts_rowSlideRatio,rsts_prevNextSteps,rsts_combineNavItems,rsts_visibleArea,rsts_visibleAreaMax,rsts_visibleAreaAlign;{template_legend:hide},rsts_template,imgSize,fullsize;{expert_legend:hide},rsts_customSkin,rsts_cssPrefix,cssID,space'; +$GLOBALS['TL_DCA']['tl_module']['palettes']['rocksolid_sliderrsts_settings'] = '{title_legend},name,type,rsts_content_type;{config_legend},rsts_type,rsts_direction,rsts_random,rsts_loop,rsts_centerContent,rsts_skin,rsts_width,rsts_height,rsts_preloadSlides,rsts_gapSize,rsts_duration,rsts_captions,rsts_scaleMode,rsts_imagePosition;{rsts_navigation_legend},rsts_navType,rsts_deepLinkPrefix,rsts_controls,rsts_thumbControls,rsts_keyboard,rsts_invertControls;{rsts_thumbs_legend},rsts_thumbs_imgSize,rsts_thumbs;{rsts_autoplay_legend},rsts_autoplay,rsts_autoplayRestart,rsts_autoplayProgress,rsts_pauseAutoplayOnHover,rsts_videoAutoplay;{rsts_carousel_legend},rsts_slideMaxCount,rsts_slideMinSize,rsts_slideMaxSize,rsts_rowMaxCount,rsts_rowMinSize,rsts_rowSlideRatio,rsts_prevNextSteps,rsts_combineNavItems,rsts_visibleArea,rsts_visibleAreaMax,rsts_visibleAreaAlign;{template_legend:hide},rsts_template,imgSize,fullsize;{expert_legend:hide},rsts_customSkin,rsts_cssPrefix'; $GLOBALS['TL_DCA']['tl_module']['palettes']['rocksolid_sliderrsts_import_settingsrsts_default'] = '{title_legend},name,headline,type,rsts_content_type;{config_legend},rsts_id,rsts_import_settings,rsts_import_settings_from;{expert_legend:hide},cssID,space'; $GLOBALS['TL_DCA']['tl_module']['palettes']['rocksolid_sliderrsts_import_settingsrsts_news'] = '{title_legend},name,headline,type,rsts_content_type;{rsts_news_legend},news_archives,numberOfItems,news_featured,skipFirst,news_template,news_metaFields;{config_legend},rsts_import_settings,rsts_import_settings_from;{expert_legend:hide},cssID,space'; $GLOBALS['TL_DCA']['tl_module']['palettes']['rocksolid_sliderrsts_import_settingsrsts_events'] = '{title_legend},name,headline,type,rsts_content_type;{rsts_events_legend},cal_calendar,cal_noSpan,cal_format,cal_ignoreDynamic,cal_order,cal_readerModule,cal_limit,cal_template;{config_legend},rsts_import_settings,rsts_import_settings_from;{expert_legend:hide},cssID,space'; @@ -285,6 +285,14 @@ 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default '1'", ); +// true to show thumbnails inside the prev and next controls +$GLOBALS['TL_DCA']['tl_module']['fields']['rsts_thumbControls'] = array( + 'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_thumbControls'], + 'exclude' => true, + 'inputType' => 'checkbox', + 'eval' => array('tl_class' => 'w50'), + 'sql' => "char(1) NOT NULL default ''", +); // Adds data-rsts-class="rsts-invert-controls" to all slides $GLOBALS['TL_DCA']['tl_module']['fields']['rsts_invertControls'] = array( 'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_invertControls'], @@ -539,6 +547,16 @@ 'eval' => array('tl_class' => 'w50'), 'sql' => "double unsigned NOT NULL default '0'", ); +// Alignment of the visible area (0 = start, 0.5 = center, 1 = end) +$GLOBALS['TL_DCA']['tl_module']['fields']['rsts_visibleAreaAlign'] = array( + 'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAlign'], + 'exclude' => true, + 'inputType' => 'select', + 'options' => array('0', '50', '100'), + 'reference' => &$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAligns'], + 'eval' => array('tl_class' => 'w50'), + 'sql' => "double unsigned NOT NULL default '50'", +); // minimal size of one slide in px $GLOBALS['TL_DCA']['tl_module']['fields']['rsts_slideMinSize'] = array( 'label' => &$GLOBALS['TL_LANG']['tl_module']['rsts_slideMinSize'], diff --git a/languages/de/tl_module.php b/languages/de/tl_module.php index fe0f1f1..91d498c 100644 --- a/languages/de/tl_module.php +++ b/languages/de/tl_module.php @@ -85,6 +85,8 @@ $GLOBALS['TL_LANG']['tl_module']['rsts_navType_none'] = 'Navigation ausblenden'; $GLOBALS['TL_LANG']['tl_module']['rsts_controls'][0] = 'Weiter und Zurück anzeigen'; $GLOBALS['TL_LANG']['tl_module']['rsts_controls'][1] = 'Aktiviert die Navigationspfeile.'; +$GLOBALS['TL_LANG']['tl_module']['rsts_thumbControls'][0] = 'Thumbnails in Weiter und Zurück anzeigen'; +$GLOBALS['TL_LANG']['tl_module']['rsts_thumbControls'][1] = 'Aktiviert Thumbnails für die Navigationspfeile (nicht auf alle Skins anwendbar).'; $GLOBALS['TL_LANG']['tl_module']['rsts_invertControls'][0] = 'Navigation invertieren'; $GLOBALS['TL_LANG']['tl_module']['rsts_invertControls'][1] = 'Invertiert die Navigation (nicht auf alle Skins anwendbar).'; $GLOBALS['TL_LANG']['tl_module']['rsts_thumbs'][0] = 'Thumbnails-Einstellungen aktivieren'; @@ -130,6 +132,11 @@ $GLOBALS['TL_LANG']['tl_module']['rsts_visibleArea'][1] = 'Zwischen 1% und 100%. Unter 100% wird der nächste und der vorherige Slide teilweise sichtbar.'; $GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaMax'][0] = 'Maximal sichtbarer Bereich'; $GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaMax'][1] = 'Der maximal sichtbare Bereich in Pixel. Diese Einstellung hat Vorrang gegenüber des prozentual sichtbaren Bereichs.'; +$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAlign'][0] = 'Sichtbarer Bereich Ausrichtung'; +$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAlign'][1] = 'Der sichtbare Bereich kann linksbündig, zentriert oder rechtsbündig ausgerichtet werden.'; +$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAligns']['0'] = 'Linksbündig'; +$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAligns']['50'] = 'Zentriert'; +$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAligns']['100'] = 'Rechtsbündig'; $GLOBALS['TL_LANG']['tl_module']['rsts_combineNavItems'][0] = 'Navigationspunkte zusammenfassen'; $GLOBALS['TL_LANG']['tl_module']['rsts_combineNavItems'][1] = 'Fasst die Navigationspunkte zusammen wenn mehr als ein Slide angezeigt wird.'; $GLOBALS['TL_LANG']['tl_module']['rsts_template'][0] = 'Template'; diff --git a/languages/en/tl_module.php b/languages/en/tl_module.php index 4f75f12..59cf9f4 100644 --- a/languages/en/tl_module.php +++ b/languages/en/tl_module.php @@ -85,6 +85,8 @@ $GLOBALS['TL_LANG']['tl_module']['rsts_navType_none'] = 'Hide navigation'; $GLOBALS['TL_LANG']['tl_module']['rsts_controls'][0] = 'Show next and previous arrows'; $GLOBALS['TL_LANG']['tl_module']['rsts_controls'][1] = 'Activates the next and previous controls.'; +$GLOBALS['TL_LANG']['tl_module']['rsts_thumbControls'][0] = 'Show thumbnails in next and previous arrows'; +$GLOBALS['TL_LANG']['tl_module']['rsts_thumbControls'][1] = 'Activates thumbnails for the next and previous controls (not applicable for all skins).'; $GLOBALS['TL_LANG']['tl_module']['rsts_invertControls'][0] = 'Invert controls'; $GLOBALS['TL_LANG']['tl_module']['rsts_invertControls'][1] = 'Inverts the controls (not applicable for all skins).'; $GLOBALS['TL_LANG']['tl_module']['rsts_thumbs'][0] = 'Activate Thumbnail Settings'; @@ -130,6 +132,11 @@ $GLOBALS['TL_LANG']['tl_module']['rsts_visibleArea'][1] = 'Between 1% and 100%. Under 100% the next and previous slides get partially visible.'; $GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaMax'][0] = 'Maximum visible area'; $GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaMax'][1] = 'The maximum visible area in pixels. This setting takes precedence over the percentage visible area setting.'; +$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAlign'][0] = 'Visible area alignment'; +$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAlign'][1] = 'The visible area can be aligned left, centered or right.'; +$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAligns']['0'] = 'Left'; +$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAligns']['50'] = 'Centered'; +$GLOBALS['TL_LANG']['tl_module']['rsts_visibleAreaAligns']['100'] = 'Right'; $GLOBALS['TL_LANG']['tl_module']['rsts_combineNavItems'][0] = 'Combine navigation items'; $GLOBALS['TL_LANG']['tl_module']['rsts_combineNavItems'][1] = 'Combines navigation items if more than one slide is shown.'; $GLOBALS['TL_LANG']['tl_module']['rsts_template'][0] = 'Template'; diff --git a/src/MadeYourDay/Contao/Module/Slider.php b/src/MadeYourDay/Contao/Module/Slider.php index 4ded862..2236ec0 100644 --- a/src/MadeYourDay/Contao/Module/Slider.php +++ b/src/MadeYourDay/Contao/Module/Slider.php @@ -302,6 +302,7 @@ protected function compile() 'keyboard', 'captions', 'controls', + 'thumbControls', 'combineNavItems', 'thumbs_controls', ) as $key) { @@ -342,6 +343,16 @@ protected function compile() } } + // percentages including zero + foreach (array('visibleAreaAlign') as $key) { + if (!empty($this->arrData['rsts_' . $key])) { + $options[$key] = $this->arrData['rsts_' . $key] / 100; + } + else { + $options[$key] = 0; + } + } + // ratios foreach (array('rowSlideRatio', 'thumbs_rowSlideRatio') as $key) { if (!empty($this->arrData['rsts_' . $key])) {