Passed
Pull Request — master (#204)
by Jason
05:56 queued 03:27
created
src/ORM/FlexSlider.php 2 patches
Indentation   +196 added lines, -196 removed lines patch added patch discarded remove patch
@@ -38,189 +38,189 @@  discard block
 block discarded – undo
38 38
  */
39 39
 class FlexSlider extends DataExtension
40 40
 {
41
-    use Configurable;
41
+	use Configurable;
42 42
 
43
-    /**
44
-     * @var array
45
-     */
46
-    private static $db = [
47
-        'Animation' => "Enum('slide, fade', 'slide')",
48
-        'Loop' => 'Boolean',
49
-        'Animate' => 'Boolean',
50
-        'ThumbnailNav' => 'Boolean',
51
-        'SliderControlNav' => 'Boolean',
52
-        'SliderDirectionNav' => 'Boolean',
53
-        'CarouselControlNav' => 'Boolean',
54
-        'CarouselDirectionNav' => 'Boolean',
55
-        'CarouselThumbnailCt' => 'Int',
56
-        'FlexSliderSpeed' => 'Double',
57
-    ];
43
+	/**
44
+	 * @var array
45
+	 */
46
+	private static $db = [
47
+		'Animation' => "Enum('slide, fade', 'slide')",
48
+		'Loop' => 'Boolean',
49
+		'Animate' => 'Boolean',
50
+		'ThumbnailNav' => 'Boolean',
51
+		'SliderControlNav' => 'Boolean',
52
+		'SliderDirectionNav' => 'Boolean',
53
+		'CarouselControlNav' => 'Boolean',
54
+		'CarouselDirectionNav' => 'Boolean',
55
+		'CarouselThumbnailCt' => 'Int',
56
+		'FlexSliderSpeed' => 'Double',
57
+	];
58 58
 
59
-    /**
60
-     * @var array
61
-     */
62
-    private static $has_many = [
63
-        'Slides' => SlideImage::class,
64
-    ];
59
+	/**
60
+	 * @var array
61
+	 */
62
+	private static $has_many = [
63
+		'Slides' => SlideImage::class,
64
+	];
65 65
 
66
-    /**
67
-     *
68
-     */
69
-    public function populateDefaults()
70
-    {
71
-        $this->owner->Loop = 1;
72
-        $this->owner->Animate = 1;
73
-        $this->owner->SliderControlNav = 0;
74
-        $this->owner->SliderDirectionNav = 1;
75
-        $this->owner->CarouselControlNav = 0;
76
-        $this->owner->CarouselDirectionNav = 1;
77
-        $this->owner->CarouselThumbnailCt = 6;
78
-        $this->owner->FlexSliderSpeed = $this->getDefaultSpeed();
66
+	/**
67
+	 *
68
+	 */
69
+	public function populateDefaults()
70
+	{
71
+		$this->owner->Loop = 1;
72
+		$this->owner->Animate = 1;
73
+		$this->owner->SliderControlNav = 0;
74
+		$this->owner->SliderDirectionNav = 1;
75
+		$this->owner->CarouselControlNav = 0;
76
+		$this->owner->CarouselDirectionNav = 1;
77
+		$this->owner->CarouselThumbnailCt = 6;
78
+		$this->owner->FlexSliderSpeed = $this->getDefaultSpeed();
79 79
 
80
-        return parent::populateDefaults();
81
-    }
80
+		return parent::populateDefaults();
81
+	}
82 82
 
83
-    /**
84
-     * @param FieldList $fields
85
-     */
86
-    public function updateCMSFields(FieldList $fields)
87
-    {
88
-        $fields->removeByName([
89
-            'Animation',
90
-            'Loop',
91
-            'Animate',
92
-            'ThumbnailNav',
93
-            'SliderControlNav',
94
-            'SliderDirectionNav',
95
-            'CarouselControlNav',
96
-            'CarouselDirectionNav',
97
-            'CarouselThumbnailCt',
98
-            'FlexSliderSpeed',
99
-            'Slides',
100
-        ]);
83
+	/**
84
+	 * @param FieldList $fields
85
+	 */
86
+	public function updateCMSFields(FieldList $fields)
87
+	{
88
+		$fields->removeByName([
89
+			'Animation',
90
+			'Loop',
91
+			'Animate',
92
+			'ThumbnailNav',
93
+			'SliderControlNav',
94
+			'SliderDirectionNav',
95
+			'CarouselControlNav',
96
+			'CarouselDirectionNav',
97
+			'CarouselThumbnailCt',
98
+			'FlexSliderSpeed',
99
+			'Slides',
100
+		]);
101 101
 
102
-        // Slides
103
-        if ($this->owner->ID) {
104
-            $config = GridFieldConfig_RecordEditor::create();
105
-            $config->addComponent(new GridFieldOrderableRows('SortOrder'));
106
-            $config->removeComponentsByType([
107
-                GridFieldAddExistingAutocompleter::class,
108
-                GridFieldDeleteAction::class,
109
-            ]);
110
-            $SlidesField = GridField::create(
111
-                'Slides',
112
-                _t(__CLASS__ . '.SLIDES', 'Slides'),
113
-                $this->owner->Slides()->sort('SortOrder'),
114
-                $config
115
-            );
102
+		// Slides
103
+		if ($this->owner->ID) {
104
+			$config = GridFieldConfig_RecordEditor::create();
105
+			$config->addComponent(new GridFieldOrderableRows('SortOrder'));
106
+			$config->removeComponentsByType([
107
+				GridFieldAddExistingAutocompleter::class,
108
+				GridFieldDeleteAction::class,
109
+			]);
110
+			$SlidesField = GridField::create(
111
+				'Slides',
112
+				_t(__CLASS__ . '.SLIDES', 'Slides'),
113
+				$this->owner->Slides()->sort('SortOrder'),
114
+				$config
115
+			);
116 116
 
117
-            $slideTitle = $this->owner->stat('slide_tab_title') ?: _t(__CLASS__ . '.SLIDES', 'Slides');
117
+			$slideTitle = $this->owner->stat('slide_tab_title') ?: _t(__CLASS__ . '.SLIDES', 'Slides');
118 118
 
119
-            $animations = [];
120
-            $animationOptions = $this->owner->dbObject('Animation')->getEnum();
121
-            foreach ($animationOptions as $value) {
122
-                $animations[$value] = _t(__CLASS__ . ".$value", $value);
123
-            }
119
+			$animations = [];
120
+			$animationOptions = $this->owner->dbObject('Animation')->getEnum();
121
+			foreach ($animationOptions as $value) {
122
+				$animations[$value] = _t(__CLASS__ . ".$value", $value);
123
+			}
124 124
 
125
-            $fields->addFieldsToTab("Root.{$slideTitle}", [
126
-                $SlidesField,
127
-                ToggleCompositeField::create('ConfigHD', _t(__CLASS__ . '.SettingsLabel', 'Slider Settings'), [
128
-                    DropdownField::create(
129
-                        'Animation',
130
-                        _t(__CLASS__ . '.ANIMATION_OPTION', 'Animation option'),
131
-                        $animations
132
-                    ),
133
-                    CheckboxField::create(
134
-                        'Animate',
135
-                        _t(__CLASS__ . '.ANIMATE', 'Animate automatically')
136
-                    ),
137
-                    CheckboxField::create(
138
-                        'Loop',
139
-                        _t(__CLASS__ . '.LOOP', 'Loop the carousel')
140
-                    ),
141
-                    CheckboxField::create(
142
-                        'SliderControlNav',
143
-                        _t(__CLASS__ . '.CONTROL_NAV', 'Show ControlNav')
144
-                    ),
145
-                    CheckboxField::create(
146
-                        'SliderDirectionNav',
147
-                        _t(__CLASS__ . '.DIRECTION_NAV', 'Show DirectionNav')
148
-                    ),
149
-                    CheckboxField::create(
150
-                        'ThumbnailNav',
151
-                        _t(__CLASS__ . '.THUMBNAIL_NAV', 'Thumbnail Navigation')
152
-                    ),
153
-                    //DisplayLogicWrapper::create(
154
-                    CheckboxField::create(
155
-                        'CarouselControlNav',
156
-                        _t(__CLASS__ . '.CAROUSEL_CONTROL_NAV', 'Show Carousel ControlNav')
157
-                    ),
158
-                    CheckboxField::create(
159
-                        'CarouselDirectionNav',
160
-                        _t(__CLASS__ . '.CAROUSEL_DIRECTION_NAV', 'Show Carousel DirectionNav')
161
-                    ),
162
-                    NumericField::create(
163
-                        'CarouselThumbnailCt',
164
-                        _t(__CLASS__ . '.CAROUSEL_THUMBNAIL_COUNT', 'Number of thumbnails')
165
-                    ),
166
-                    NumericField::create(
167
-                        'FlexSliderSpeed',
168
-                        _t(__CLASS__ . '.SLIDER_SPEED', 'Slider Speed')
169
-                    )
170
-                        ->setDescription('In Seconds')
171
-                        ->setScale(2),
172
-                ]),
173
-            ]);
174
-        }
175
-    }
125
+			$fields->addFieldsToTab("Root.{$slideTitle}", [
126
+				$SlidesField,
127
+				ToggleCompositeField::create('ConfigHD', _t(__CLASS__ . '.SettingsLabel', 'Slider Settings'), [
128
+					DropdownField::create(
129
+						'Animation',
130
+						_t(__CLASS__ . '.ANIMATION_OPTION', 'Animation option'),
131
+						$animations
132
+					),
133
+					CheckboxField::create(
134
+						'Animate',
135
+						_t(__CLASS__ . '.ANIMATE', 'Animate automatically')
136
+					),
137
+					CheckboxField::create(
138
+						'Loop',
139
+						_t(__CLASS__ . '.LOOP', 'Loop the carousel')
140
+					),
141
+					CheckboxField::create(
142
+						'SliderControlNav',
143
+						_t(__CLASS__ . '.CONTROL_NAV', 'Show ControlNav')
144
+					),
145
+					CheckboxField::create(
146
+						'SliderDirectionNav',
147
+						_t(__CLASS__ . '.DIRECTION_NAV', 'Show DirectionNav')
148
+					),
149
+					CheckboxField::create(
150
+						'ThumbnailNav',
151
+						_t(__CLASS__ . '.THUMBNAIL_NAV', 'Thumbnail Navigation')
152
+					),
153
+					//DisplayLogicWrapper::create(
154
+					CheckboxField::create(
155
+						'CarouselControlNav',
156
+						_t(__CLASS__ . '.CAROUSEL_CONTROL_NAV', 'Show Carousel ControlNav')
157
+					),
158
+					CheckboxField::create(
159
+						'CarouselDirectionNav',
160
+						_t(__CLASS__ . '.CAROUSEL_DIRECTION_NAV', 'Show Carousel DirectionNav')
161
+					),
162
+					NumericField::create(
163
+						'CarouselThumbnailCt',
164
+						_t(__CLASS__ . '.CAROUSEL_THUMBNAIL_COUNT', 'Number of thumbnails')
165
+					),
166
+					NumericField::create(
167
+						'FlexSliderSpeed',
168
+						_t(__CLASS__ . '.SLIDER_SPEED', 'Slider Speed')
169
+					)
170
+						->setDescription('In Seconds')
171
+						->setScale(2),
172
+				]),
173
+			]);
174
+		}
175
+	}
176 176
 
177
-    /**
178
-     * @return mixed
179
-     */
180
-    public function getSlideShow()
181
-    {
182
-        $owner = $this->owner;
177
+	/**
178
+	 * @return mixed
179
+	 */
180
+	public function getSlideShow()
181
+	{
182
+		$owner = $this->owner;
183 183
 
184
-        if (!($owner instanceof SiteTree)) {
185
-            $this->getCustomScript();
186
-        }
184
+		if (!($owner instanceof SiteTree)) {
185
+			$this->getCustomScript();
186
+		}
187 187
 
188
-        return $this->owner->Slides()->sort('SortOrder');
189
-    }
188
+		return $this->owner->Slides()->sort('SortOrder');
189
+	}
190 190
 
191
-    /**
192
-     * add requirements to PageController init()
193
-     */
194
-    public function contentcontrollerInit()
195
-    {
196
-        // only call custom script if page has Slides and DataExtension
197
-        if (DataObject::has_extension($this->owner->Classname, FlexSlider::class)) {
198
-            if ($this->owner->getSlideShow()->exists()) {
199
-                $this->getCustomScript();
200
-            }
201
-        }
202
-    }
191
+	/**
192
+	 * add requirements to PageController init()
193
+	 */
194
+	public function contentcontrollerInit()
195
+	{
196
+		// only call custom script if page has Slides and DataExtension
197
+		if (DataObject::has_extension($this->owner->Classname, FlexSlider::class)) {
198
+			if ($this->owner->getSlideShow()->exists()) {
199
+				$this->getCustomScript();
200
+			}
201
+		}
202
+	}
203 203
 
204
-    /**
205
-     *
206
-     */
207
-    public function getCustomScript()
208
-    {
209
-        // Flexslider options
210
-        $sync = ($this->owner->ThumbnailNav == true) ? "sync: '.fs-carousel:eq('+index+')'," : '';
204
+	/**
205
+	 *
206
+	 */
207
+	public function getCustomScript()
208
+	{
209
+		// Flexslider options
210
+		$sync = ($this->owner->ThumbnailNav == true) ? "sync: '.fs-carousel:eq('+index+')'," : '';
211 211
 
212
-        $before = $this->owner->hasMethod('flexSliderBeforeAction')
213
-            ? $this->owner->flexSliderBeforeAction()
214
-            : 'function(){}';
212
+		$before = $this->owner->hasMethod('flexSliderBeforeAction')
213
+			? $this->owner->flexSliderBeforeAction()
214
+			: 'function(){}';
215 215
 
216
-        $after = $this->owner->hasMethod('flexSliderAfterAction')
217
-            ? $this->owner->flexSliderAfterAction()
218
-            : 'function(){}';
216
+		$after = $this->owner->hasMethod('flexSliderAfterAction')
217
+			? $this->owner->flexSliderAfterAction()
218
+			: 'function(){}';
219 219
 
220
-        $speed = $this->getSlideshowSpeed();
220
+		$speed = $this->getSlideshowSpeed();
221 221
 
222
-        Requirements::customScript(
223
-            "(function($) {
222
+		Requirements::customScript(
223
+			"(function($) {
224 224
                 $(document).ready(function(){
225 225
                     jQuery('.flexslider').each(function(index){
226 226
 
@@ -266,40 +266,40 @@  discard block
 block discarded – undo
266 266
                     })
267 267
                 });
268 268
             }(jQuery));'
269
-        );
270
-    }
269
+		);
270
+	}
271 271
 
272
-    /**
273
-     * @return int
274
-     */
275
-    public function getSlideshowSpeed()
276
-    {
277
-        $speed = $this->owner->FlexSliderSpeed > 0
278
-            ? $this->owner->FlexSliderSpeed
279
-            : $this->getDefaultSpeed();
272
+	/**
273
+	 * @return int
274
+	 */
275
+	public function getSlideshowSpeed()
276
+	{
277
+		$speed = $this->owner->FlexSliderSpeed > 0
278
+			? $this->owner->FlexSliderSpeed
279
+			: $this->getDefaultSpeed();
280 280
 
281
-        return $speed * 1000;
282
-    }
281
+		return $speed * 1000;
282
+	}
283 283
 
284
-    /**
285
-     * @return mixed
286
-     */
287
-    protected function getDefaultSpeed()
288
-    {
289
-        Debug::show('test');
290
-        return $this->owner->config()->get('flex_slider_speed')
291
-            ?: Config::inst()->get(FlexSlider::class, 'flex_slider_speed');
292
-    }
284
+	/**
285
+	 * @return mixed
286
+	 */
287
+	protected function getDefaultSpeed()
288
+	{
289
+		Debug::show('test');
290
+		return $this->owner->config()->get('flex_slider_speed')
291
+			?: Config::inst()->get(FlexSlider::class, 'flex_slider_speed');
292
+	}
293 293
 
294
-    /**
295
-     *
296
-     */
297
-    public function onBeforeWrite()
298
-    {
299
-        parent::onBeforeWrite();
294
+	/**
295
+	 *
296
+	 */
297
+	public function onBeforeWrite()
298
+	{
299
+		parent::onBeforeWrite();
300 300
 
301
-        if (!$this->owner->CarouselThumbnailCt) {
302
-            $this->owner->CarouselThumbnailCt = 6;
303
-        }
304
-    }
301
+		if (!$this->owner->CarouselThumbnailCt) {
302
+			$this->owner->CarouselThumbnailCt = 6;
303
+		}
304
+	}
305 305
 }
Please login to merge, or discard this patch.
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -109,63 +109,63 @@  discard block
 block discarded – undo
109 109
             ]);
110 110
             $SlidesField = GridField::create(
111 111
                 'Slides',
112
-                _t(__CLASS__ . '.SLIDES', 'Slides'),
112
+                _t(__CLASS__.'.SLIDES', 'Slides'),
113 113
                 $this->owner->Slides()->sort('SortOrder'),
114 114
                 $config
115 115
             );
116 116
 
117
-            $slideTitle = $this->owner->stat('slide_tab_title') ?: _t(__CLASS__ . '.SLIDES', 'Slides');
117
+            $slideTitle = $this->owner->stat('slide_tab_title') ?: _t(__CLASS__.'.SLIDES', 'Slides');
118 118
 
119 119
             $animations = [];
120 120
             $animationOptions = $this->owner->dbObject('Animation')->getEnum();
121 121
             foreach ($animationOptions as $value) {
122
-                $animations[$value] = _t(__CLASS__ . ".$value", $value);
122
+                $animations[$value] = _t(__CLASS__.".$value", $value);
123 123
             }
124 124
 
125 125
             $fields->addFieldsToTab("Root.{$slideTitle}", [
126 126
                 $SlidesField,
127
-                ToggleCompositeField::create('ConfigHD', _t(__CLASS__ . '.SettingsLabel', 'Slider Settings'), [
127
+                ToggleCompositeField::create('ConfigHD', _t(__CLASS__.'.SettingsLabel', 'Slider Settings'), [
128 128
                     DropdownField::create(
129 129
                         'Animation',
130
-                        _t(__CLASS__ . '.ANIMATION_OPTION', 'Animation option'),
130
+                        _t(__CLASS__.'.ANIMATION_OPTION', 'Animation option'),
131 131
                         $animations
132 132
                     ),
133 133
                     CheckboxField::create(
134 134
                         'Animate',
135
-                        _t(__CLASS__ . '.ANIMATE', 'Animate automatically')
135
+                        _t(__CLASS__.'.ANIMATE', 'Animate automatically')
136 136
                     ),
137 137
                     CheckboxField::create(
138 138
                         'Loop',
139
-                        _t(__CLASS__ . '.LOOP', 'Loop the carousel')
139
+                        _t(__CLASS__.'.LOOP', 'Loop the carousel')
140 140
                     ),
141 141
                     CheckboxField::create(
142 142
                         'SliderControlNav',
143
-                        _t(__CLASS__ . '.CONTROL_NAV', 'Show ControlNav')
143
+                        _t(__CLASS__.'.CONTROL_NAV', 'Show ControlNav')
144 144
                     ),
145 145
                     CheckboxField::create(
146 146
                         'SliderDirectionNav',
147
-                        _t(__CLASS__ . '.DIRECTION_NAV', 'Show DirectionNav')
147
+                        _t(__CLASS__.'.DIRECTION_NAV', 'Show DirectionNav')
148 148
                     ),
149 149
                     CheckboxField::create(
150 150
                         'ThumbnailNav',
151
-                        _t(__CLASS__ . '.THUMBNAIL_NAV', 'Thumbnail Navigation')
151
+                        _t(__CLASS__.'.THUMBNAIL_NAV', 'Thumbnail Navigation')
152 152
                     ),
153 153
                     //DisplayLogicWrapper::create(
154 154
                     CheckboxField::create(
155 155
                         'CarouselControlNav',
156
-                        _t(__CLASS__ . '.CAROUSEL_CONTROL_NAV', 'Show Carousel ControlNav')
156
+                        _t(__CLASS__.'.CAROUSEL_CONTROL_NAV', 'Show Carousel ControlNav')
157 157
                     ),
158 158
                     CheckboxField::create(
159 159
                         'CarouselDirectionNav',
160
-                        _t(__CLASS__ . '.CAROUSEL_DIRECTION_NAV', 'Show Carousel DirectionNav')
160
+                        _t(__CLASS__.'.CAROUSEL_DIRECTION_NAV', 'Show Carousel DirectionNav')
161 161
                     ),
162 162
                     NumericField::create(
163 163
                         'CarouselThumbnailCt',
164
-                        _t(__CLASS__ . '.CAROUSEL_THUMBNAIL_COUNT', 'Number of thumbnails')
164
+                        _t(__CLASS__.'.CAROUSEL_THUMBNAIL_COUNT', 'Number of thumbnails')
165 165
                     ),
166 166
                     NumericField::create(
167 167
                         'FlexSliderSpeed',
168
-                        _t(__CLASS__ . '.SLIDER_SPEED', 'Slider Speed')
168
+                        _t(__CLASS__.'.SLIDER_SPEED', 'Slider Speed')
169 169
                     )
170 170
                         ->setDescription('In Seconds')
171 171
                         ->setScale(2),
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     public function getCustomScript()
208 208
     {
209 209
         // Flexslider options
210
-        $sync = ($this->owner->ThumbnailNav == true) ? "sync: '.fs-carousel:eq('+index+')'," : '';
210
+        $sync = ($this->owner->ThumbnailNav==true) ? "sync: '.fs-carousel:eq('+index+')'," : '';
211 211
 
212 212
         $before = $this->owner->hasMethod('flexSliderBeforeAction')
213 213
             ? $this->owner->flexSliderBeforeAction()
@@ -226,18 +226,18 @@  discard block
 block discarded – undo
226 226
 
227 227
                          if(jQuery('.fs-carousel').eq(index).length) {
228 228
                              jQuery('.fs-carousel').eq(index).flexslider({
229
-                                slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean() . ",
229
+                                slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean().",
230 230
                                 animation: 'slide',
231
-                                animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean() . ",
232
-                                controlNav: " . $this->owner->obj('CarouselControlNav')->NiceAsBoolean() . ",
233
-                                directionNav: " . $this->owner->obj('CarouselDirectionNav')->NiceAsBoolean() . ",
231
+                                animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean().",
232
+                                controlNav: " . $this->owner->obj('CarouselControlNav')->NiceAsBoolean().",
233
+                                directionNav: " . $this->owner->obj('CarouselDirectionNav')->NiceAsBoolean().",
234 234
                                 prevText: '',
235 235
                                 nextText: '',
236 236
                                 pausePlay: false,
237 237
                                 asNavFor: '.flexslider:eq('+index+')',
238
-                                minItems: " . $this->owner->obj('CarouselThumbnailCt') . ",
239
-                                maxItems: " . $this->owner->obj('CarouselThumbnailCt') . ",
240
-                                move: " . $this->owner->obj('CarouselThumbnailCt') . ",
238
+                                minItems: " . $this->owner->obj('CarouselThumbnailCt').",
239
+                                maxItems: " . $this->owner->obj('CarouselThumbnailCt').",
240
+                                move: " . $this->owner->obj('CarouselThumbnailCt').",
241 241
                                 itemWidth: 100,
242 242
                                 itemMargin: 10
243 243
                               });
@@ -245,22 +245,22 @@  discard block
 block discarded – undo
245 245
 
246 246
                         if(jQuery('.flexslider').eq(index).length){
247 247
                             jQuery('.flexslider').eq(index).flexslider({
248
-                                slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean() . ",
249
-                                animation: '" . $this->owner->Animation . "',
250
-                                animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean() . ",
251
-                                controlNav: " . $this->owner->obj('SliderControlNav')->NiceAsBoolean() . ",
252
-                                directionNav: " . $this->owner->obj('SliderDirectionNav')->NiceAsBoolean() . ",
248
+                                slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean().",
249
+                                animation: '" . $this->owner->Animation."',
250
+                                animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean().",
251
+                                controlNav: " . $this->owner->obj('SliderControlNav')->NiceAsBoolean().",
252
+                                directionNav: " . $this->owner->obj('SliderDirectionNav')->NiceAsBoolean().",
253 253
                                 prevText: '',
254 254
                                 nextText: '',
255 255
                                 pauseOnAction: true,
256 256
                                 pauseOnHover: true,
257
-                                " . $sync . "
257
+                                " . $sync."
258 258
                                 start: function(slider){
259 259
                                   $('body').removeClass('loading');
260 260
                                 },
261
-                                before: " . $before . ',
262
-                                after: ' . $after . ',
263
-                                slideshowSpeed: ' . $speed . '
261
+                                before: " . $before.',
262
+                                after: ' . $after.',
263
+                                slideshowSpeed: ' . $speed.'
264 264
                             });
265 265
                         }
266 266
                     })
Please login to merge, or discard this patch.