Completed
Branch 1.0 (2b76ce)
by Jason
05:27
created
Category
code/FlexSlider.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         // Flexslider options
134 134
         $animate = ($this->owner->Animate) ? 'true' : 'false';
135 135
         $loop = ($this->owner->Loop) ? 'true' : 'false';
136
-        $sync = ($this->owner->ThumbnailNav == true) ? "sync: '.carousel:eq('+index+')'," : '';
136
+        $sync = ($this->owner->ThumbnailNav==true) ? "sync: '.carousel:eq('+index+')'," : '';
137 137
         $before = (method_exists($this->owner->ClassName, 'flexSliderBeforeAction'))
138 138
             ? $this->owner->flexSliderBeforeAction()
139 139
             : 'function(){}';
@@ -151,12 +151,12 @@  discard block
 block discarded – undo
151 151
 					 
152 152
                          if(jQuery('.carousel').eq(index).length) {
153 153
                              jQuery('.carousel').eq(index).flexslider({
154
-                                animation: '" . $this->owner->Animation . "',
155
-                                controlNav: " . $this->owner->obj('CarouselDirectionNav')->NiceAsBoolean() . ", 
156
-                                directionNav: " . $this->owner->obj('CarouselDirectionNav')->NiceAsBoolean() . ",
157
-                                animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean() . ",
158
-                                slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean() . ",
159
-                                itemWidth: " . $this->owner->obj('CarouselItemWidth') . ",
154
+                                animation: '" . $this->owner->Animation."',
155
+                                controlNav: " . $this->owner->obj('CarouselDirectionNav')->NiceAsBoolean().", 
156
+                                directionNav: " . $this->owner->obj('CarouselDirectionNav')->NiceAsBoolean().",
157
+                                animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean().",
158
+                                slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean().",
159
+                                itemWidth: " . $this->owner->obj('CarouselItemWidth').",
160 160
                                 pausePlay: false,
161 161
                                 asNavFor: '.flexslider:eq('+index+')',
162 162
                                 itemMargin: 10, //todo: editable in CMS
@@ -168,22 +168,22 @@  discard block
 block discarded – undo
168 168
  
169 169
                         if(jQuery('.flexslider').eq(index).length){
170 170
                             jQuery('.flexslider').eq(index).flexslider({
171
-                                slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean() . ",
172
-                                animation: '" . $this->owner->Animation . "',
173
-                                animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean() . ",
174
-                                controlNav: " . $this->owner->obj('Animate')->NiceAsBoolean() . ",
175
-                                directionNav: " . $this->owner->obj('Animate')->NiceAsBoolean() . ",
171
+                                slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean().",
172
+                                animation: '" . $this->owner->Animation."',
173
+                                animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean().",
174
+                                controlNav: " . $this->owner->obj('Animate')->NiceAsBoolean().",
175
+                                directionNav: " . $this->owner->obj('Animate')->NiceAsBoolean().",
176 176
                                 prevText: '',
177 177
                                 nextText: '',
178 178
                                 pauseOnAction: true,
179 179
                                 pauseOnHover: true,
180
-                                " . $sync . "
180
+                                " . $sync."
181 181
                                 start: function(slider){
182 182
                                   $('body').removeClass('loading');
183 183
                                 },
184
-                                before: " . $before . ',
185
-                                after: ' . $after . ',
186
-                                slideshowSpeed: ' . $speed . ' 
184
+                                before: " . $before.',
185
+                                after: ' . $after.',
186
+                                slideshowSpeed: ' . $speed.' 
187 187
                             });
188 188
                         }
189 189
                     })
Please login to merge, or discard this patch.