@@ -108,63 +108,63 @@ discard block |
||
108 | 108 | ]); |
109 | 109 | $SlidesField = GridField::create( |
110 | 110 | 'Slides', |
111 | - _t(__CLASS__ . '.SLIDES', 'Slides'), |
|
111 | + _t(__CLASS__.'.SLIDES', 'Slides'), |
|
112 | 112 | $this->owner->Slides()->sort('SortOrder'), |
113 | 113 | $config |
114 | 114 | ); |
115 | 115 | |
116 | - $slideTitle = $this->owner->stat('slide_tab_title') ?: _t(__CLASS__ . '.SLIDES', 'Slides'); |
|
116 | + $slideTitle = $this->owner->stat('slide_tab_title') ?: _t(__CLASS__.'.SLIDES', 'Slides'); |
|
117 | 117 | |
118 | 118 | $animations = []; |
119 | 119 | $animationOptions = $this->owner->dbObject('Animation')->getEnum(); |
120 | 120 | foreach ($animationOptions as $value) { |
121 | - $animations[$value] = _t(__CLASS__ . ".$value", $value); |
|
121 | + $animations[$value] = _t(__CLASS__.".$value", $value); |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | $fields->addFieldsToTab("Root.{$slideTitle}", [ |
125 | 125 | $SlidesField, |
126 | - ToggleCompositeField::create('ConfigHD', _t(__CLASS__ . '.SettingsLabel', 'Slider Settings'), [ |
|
126 | + ToggleCompositeField::create('ConfigHD', _t(__CLASS__.'.SettingsLabel', 'Slider Settings'), [ |
|
127 | 127 | DropdownField::create( |
128 | 128 | 'Animation', |
129 | - _t(__CLASS__ . '.ANIMATION_OPTION', 'Animation option'), |
|
129 | + _t(__CLASS__.'.ANIMATION_OPTION', 'Animation option'), |
|
130 | 130 | $animations |
131 | 131 | ), |
132 | 132 | CheckboxField::create( |
133 | 133 | 'Animate', |
134 | - _t(__CLASS__ . '.ANIMATE', 'Animate automatically') |
|
134 | + _t(__CLASS__.'.ANIMATE', 'Animate automatically') |
|
135 | 135 | ), |
136 | 136 | CheckboxField::create( |
137 | 137 | 'Loop', |
138 | - _t(__CLASS__ . '.LOOP', 'Loop the carousel') |
|
138 | + _t(__CLASS__.'.LOOP', 'Loop the carousel') |
|
139 | 139 | ), |
140 | 140 | CheckboxField::create( |
141 | 141 | 'SliderControlNav', |
142 | - _t(__CLASS__ . '.CONTROL_NAV', 'Show ControlNav') |
|
142 | + _t(__CLASS__.'.CONTROL_NAV', 'Show ControlNav') |
|
143 | 143 | ), |
144 | 144 | CheckboxField::create( |
145 | 145 | 'SliderDirectionNav', |
146 | - _t(__CLASS__ . '.DIRECTION_NAV', 'Show DirectionNav') |
|
146 | + _t(__CLASS__.'.DIRECTION_NAV', 'Show DirectionNav') |
|
147 | 147 | ), |
148 | 148 | CheckboxField::create( |
149 | 149 | 'ThumbnailNav', |
150 | - _t(__CLASS__ . '.THUMBNAIL_NAV', 'Thumbnail Navigation') |
|
150 | + _t(__CLASS__.'.THUMBNAIL_NAV', 'Thumbnail Navigation') |
|
151 | 151 | ), |
152 | 152 | //DisplayLogicWrapper::create( |
153 | 153 | CheckboxField::create( |
154 | 154 | 'CarouselControlNav', |
155 | - _t(__CLASS__ . '.CAROUSEL_CONTROL_NAV', 'Show Carousel ControlNav') |
|
155 | + _t(__CLASS__.'.CAROUSEL_CONTROL_NAV', 'Show Carousel ControlNav') |
|
156 | 156 | ), |
157 | 157 | CheckboxField::create( |
158 | 158 | 'CarouselDirectionNav', |
159 | - _t(__CLASS__ . '.CAROUSEL_DIRECTION_NAV', 'Show Carousel DirectionNav') |
|
159 | + _t(__CLASS__.'.CAROUSEL_DIRECTION_NAV', 'Show Carousel DirectionNav') |
|
160 | 160 | ), |
161 | 161 | NumericField::create( |
162 | 162 | 'CarouselThumbnailCt', |
163 | - _t(__CLASS__ . '.CAROUSEL_THUMBNAIL_COUNT', 'Number of thumbnails') |
|
163 | + _t(__CLASS__.'.CAROUSEL_THUMBNAIL_COUNT', 'Number of thumbnails') |
|
164 | 164 | ), |
165 | 165 | NumericField::create( |
166 | 166 | 'FlexSliderSpeed', |
167 | - _t(__CLASS__ . '.SLIDER_SPEED', 'Slider Speed') |
|
167 | + _t(__CLASS__.'.SLIDER_SPEED', 'Slider Speed') |
|
168 | 168 | ) |
169 | 169 | ->setDescription('In Seconds') |
170 | 170 | ->setScale(2), |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | } |
212 | 212 | |
213 | 213 | // Flexslider options |
214 | - $sync = ($this->owner->ThumbnailNav == true) ? "sync: '.fs-carousel:eq('+index+')'," : ''; |
|
214 | + $sync = ($this->owner->ThumbnailNav==true) ? "sync: '.fs-carousel:eq('+index+')'," : ''; |
|
215 | 215 | |
216 | 216 | $before = $this->owner->hasMethod('flexSliderBeforeAction') |
217 | 217 | ? $this->owner->flexSliderBeforeAction() |
@@ -230,18 +230,18 @@ discard block |
||
230 | 230 | |
231 | 231 | if(jQuery('.fs-carousel').eq(index).length) { |
232 | 232 | jQuery('.fs-carousel').eq(index).flexslider({ |
233 | - slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean() . ", |
|
233 | + slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean().", |
|
234 | 234 | animation: 'slide', |
235 | - animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean() . ", |
|
236 | - controlNav: " . $this->owner->obj('CarouselControlNav')->NiceAsBoolean() . ", |
|
237 | - directionNav: " . $this->owner->obj('CarouselDirectionNav')->NiceAsBoolean() . ", |
|
235 | + animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean().", |
|
236 | + controlNav: " . $this->owner->obj('CarouselControlNav')->NiceAsBoolean().", |
|
237 | + directionNav: " . $this->owner->obj('CarouselDirectionNav')->NiceAsBoolean().", |
|
238 | 238 | prevText: '', |
239 | 239 | nextText: '', |
240 | 240 | pausePlay: false, |
241 | 241 | asNavFor: '.flexslider:eq('+index+')', |
242 | - minItems: " . $this->owner->obj('CarouselThumbnailCt') . ", |
|
243 | - maxItems: " . $this->owner->obj('CarouselThumbnailCt') . ", |
|
244 | - move: " . $this->owner->obj('CarouselThumbnailCt') . ", |
|
242 | + minItems: " . $this->owner->obj('CarouselThumbnailCt').", |
|
243 | + maxItems: " . $this->owner->obj('CarouselThumbnailCt').", |
|
244 | + move: " . $this->owner->obj('CarouselThumbnailCt').", |
|
245 | 245 | itemWidth: 100, |
246 | 246 | itemMargin: 10 |
247 | 247 | }); |
@@ -249,22 +249,22 @@ discard block |
||
249 | 249 | |
250 | 250 | if(jQuery('.flexslider').eq(index).length){ |
251 | 251 | jQuery('.flexslider').eq(index).flexslider({ |
252 | - slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean() . ", |
|
253 | - animation: '" . $this->owner->Animation . "', |
|
254 | - animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean() . ", |
|
255 | - controlNav: " . $this->owner->obj('SliderControlNav')->NiceAsBoolean() . ", |
|
256 | - directionNav: " . $this->owner->obj('SliderDirectionNav')->NiceAsBoolean() . ", |
|
252 | + slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean().", |
|
253 | + animation: '" . $this->owner->Animation."', |
|
254 | + animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean().", |
|
255 | + controlNav: " . $this->owner->obj('SliderControlNav')->NiceAsBoolean().", |
|
256 | + directionNav: " . $this->owner->obj('SliderDirectionNav')->NiceAsBoolean().", |
|
257 | 257 | prevText: '', |
258 | 258 | nextText: '', |
259 | 259 | pauseOnAction: true, |
260 | 260 | pauseOnHover: true, |
261 | - " . $sync . " |
|
261 | + " . $sync." |
|
262 | 262 | start: function(slider){ |
263 | 263 | $('body').removeClass('loading'); |
264 | 264 | }, |
265 | - before: " . $before . ', |
|
266 | - after: ' . $after . ', |
|
267 | - slideshowSpeed: ' . $speed . ' |
|
265 | + before: " . $before.', |
|
266 | + after: ' . $after.', |
|
267 | + slideshowSpeed: ' . $speed.' |
|
268 | 268 | }); |
269 | 269 | } |
270 | 270 | }) |