... | ... |
@@ -30,7 +30,7 @@ $GLOBALS['TL_DCA']['tl_content']['palettes']['slickSliderSlideStop'] = '{type_le |
30 | 30 |
$GLOBALS['TL_DCA']['tl_content']['palettes']['slickSliderWallpaper'] = '{type_legend},type;{slickSlider_legend},eSM_slick_text,eSM_slick_url,singleSRC,size;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop'; |
31 | 31 |
|
32 | 32 |
|
33 |
-$GLOBALS['TL_DCA']['tl_content']['subpalettes']['eSM_addImage'] = 'singleSRC,size,eSM_slick_bgSize,eSM_slick_bgPosition,eSM_slick_minHeight,eSM_slick_bgOpacity'; |
|
33 |
+$GLOBALS['TL_DCA']['tl_content']['subpalettes']['eSM_addImage'] = 'singleSRC,size,eSM_slick_bgSize,eSM_slick_bgPosition,eSM_slick_minHeight,eSM_slick_bgOpacity,eSM_slick_bgRepeat'; |
|
34 | 34 |
|
35 | 35 |
/** |
36 | 36 |
* Add fields to tl_content |
... | ... |
@@ -224,6 +224,21 @@ $GLOBALS['TL_DCA']['tl_content']['fields']['eSM_slick_bgSize'] = array |
224 | 224 |
'sql' => "varchar(16) NOT NULL default ''" |
225 | 225 |
); |
226 | 226 |
|
227 |
+$GLOBALS['TL_DCA']['tl_content']['fields']['eSM_slick_bgRepeat'] = array |
|
228 |
+( |
|
229 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgRepeat'], |
|
230 |
+ 'exclude' => true, |
|
231 |
+ 'inputType' => 'select', |
|
232 |
+ 'options' => array |
|
233 |
+ ( |
|
234 |
+ 'repeat-x' => 'Horizontal wiederholen', |
|
235 |
+ 'repeat-y' => 'Vertikal wiedeholen', |
|
236 |
+ 'no-repeat' => 'Nicht wiederholen', |
|
237 |
+ ), |
|
238 |
+ 'eval' => array('tl_class' => 'w50','includeBlankOption'=>true,'blankOptionLabel'=>'Wiederholen'), |
|
239 |
+ 'sql' => "varchar(16) NOT NULL default ''" |
|
240 |
+); |
|
241 |
+ |
|
227 | 242 |
$GLOBALS['TL_DCA']['tl_content']['fields']['eSM_slick_bgOpacity'] = array |
228 | 243 |
( |
229 | 244 |
'label' => &$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgOpacity'], |
... | ... |
@@ -71,6 +71,9 @@ class ContentSlickSliderSlideStart extends \ContentElement |
71 | 71 |
if ($this->eSM_slick_bgOpacity) { |
72 | 72 |
$backgroundStyle .= 'opacity:' . $this->eSM_slick_bgOpacity/100 . ';'; |
73 | 73 |
} |
74 |
+ if ($this->eSM_slick_bgRepeat) { |
|
75 |
+ $backgroundStyle .= 'background-repeat: ' . $this->eSM_slick_bgRepeat . ';'; |
|
76 |
+ } |
|
74 | 77 |
|
75 | 78 |
$this->Template->backgroundStyle = $backgroundStyle; |
76 | 79 |
} |
... | ... |
@@ -38,14 +38,16 @@ $GLOBALS['TL_LANG']['tl_content']['eSM_slick_adaptiveHeight'][0] = "Adaptive Hö |
38 | 38 |
$GLOBALS['TL_LANG']['tl_content']['eSM_slick_adaptiveHeight'][1] = "Die Höhe des Sliders passt sich automatisch den sichtbaren Slides an."; |
39 | 39 |
$GLOBALS['TL_LANG']['tl_content']['eSM_slick_text'][0] = "Text"; |
40 | 40 |
$GLOBALS['TL_LANG']['tl_content']['eSM_slick_text'][1] = "Ein Text der auf dem Hintergrundbild platziert wird."; |
41 |
-$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgPosition'][0] = "Bildposition"; |
|
42 |
-$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgPosition'][1] = "Legt die Positionierung des Bildes fest."; |
|
43 |
-$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgSize'][0] = "Hintergrundbildgröße"; |
|
44 |
-$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgSize'][1] = "Steuert die Hintergrundbildgröße bezogen auf den Container."; |
|
45 |
-$GLOBALS['TL_LANG']['tl_content']['eSM_slick_minHeight'][0] = "Mindesthöhe erzwingen"; |
|
46 |
-$GLOBALS['TL_LANG']['tl_content']['eSM_slick_minHeight'][1] = "Die Mindesthöhe des Slide wird am Bild ausgerichtet."; |
|
47 |
-$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgOpacity'][0] = "Hintergrundbildtransparenz"; |
|
48 |
-$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgOpacity'][1] = "Die Transparenz des Hintergrundbildes."; |
|
41 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgPosition'][0] = "Bildposition"; |
|
42 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgPosition'][1] = "Legt die Positionierung des Bildes fest."; |
|
43 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgSize'][0] = "Hintergrundbildgröße"; |
|
44 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgSize'][1] = "Steuert die Hintergrundbildgröße bezogen auf den Container."; |
|
45 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_minHeight'][0] = "Mindesthöhe erzwingen"; |
|
46 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_minHeight'][1] = "Die Mindesthöhe des Slide wird am Bild ausgerichtet."; |
|
47 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgOpacity'][0] = "Hintergrundbildtransparenz"; |
|
48 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgOpacity'][1] = "Die Transparenz des Hintergrundbildes."; |
|
49 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgRepeat'][0] = "Hintergrundbildwiederholung"; |
|
50 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgRepeat'][1] = "Legt fest ob das Hintergrundbild wiederholt werden soll."; |
|
49 | 51 |
/** |
50 | 52 |
* Legends |
51 | 53 |
*/ |
... | ... |
@@ -38,6 +38,16 @@ $GLOBALS['TL_LANG']['tl_content']['eSM_slick_adaptiveHeight'][0] = "Adaptive hei |
38 | 38 |
$GLOBALS['TL_LANG']['tl_content']['eSM_slick_adaptiveHeight'][1] = "The slider height adapts to the currently showing slides."; |
39 | 39 |
$GLOBALS['TL_LANG']['tl_content']['eSM_slick_text'][0] = "Text"; |
40 | 40 |
$GLOBALS['TL_LANG']['tl_content']['eSM_slick_text'][1] = "Text to be placed on background image."; |
41 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgPosition'][0] = "Image position"; |
|
42 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgPosition'][1] = "Defines the position of the image."; |
|
43 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgSize'][0] = "Background image size"; |
|
44 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgSize'][1] = "Defines the image size in relation to it's container."; |
|
45 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_minHeight'][0] = "Force min-height"; |
|
46 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_minHeight'][1] = "The minimum height of the slide is based on the image aspect ratio."; |
|
47 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgOpacity'][0] = "Background image opacity"; |
|
48 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgOpacity'][1] = "The opacity of the background image."; |
|
49 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgRepeat'][0] = "Background image repetition."; |
|
50 |
+$GLOBALS['TL_LANG']['tl_content']['eSM_slick_bgRepeat'][1] = "Defines if the background image is meant to be repeated."; |
|
41 | 51 |
/** |
42 | 52 |
* Legends |
43 | 53 |
*/ |