@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | public function getCustomScript() |
124 | 124 | { |
125 | 125 | // Flexslider options |
126 | - $sync = ($this->owner->ThumbnailNav == true) ? "sync: '.carousel:eq('+index+')'," : ''; |
|
126 | + $sync = ($this->owner->ThumbnailNav==true) ? "sync: '.carousel:eq('+index+')'," : ''; |
|
127 | 127 | |
128 | 128 | $before = (method_exists($this->owner->ClassName, 'flexSliderBeforeAction')) |
129 | 129 | ? $this->owner->flexSliderBeforeAction() |
@@ -144,18 +144,18 @@ discard block |
||
144 | 144 | |
145 | 145 | if(jQuery('.carousel').eq(index).length) { |
146 | 146 | jQuery('.carousel').eq(index).flexslider({ |
147 | - slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean() . ", |
|
148 | - animation: '" . $this->owner->Animation . "', |
|
149 | - animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean() . ", |
|
150 | - controlNav: " . $this->owner->obj('CarouselControlNav')->NiceAsBoolean() . ", |
|
151 | - directionNav: " . $this->owner->obj('CarouselDirectionNav')->NiceAsBoolean() . ", |
|
147 | + slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean().", |
|
148 | + animation: '" . $this->owner->Animation."', |
|
149 | + animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean().", |
|
150 | + controlNav: " . $this->owner->obj('CarouselControlNav')->NiceAsBoolean().", |
|
151 | + directionNav: " . $this->owner->obj('CarouselDirectionNav')->NiceAsBoolean().", |
|
152 | 152 | prevText: '', |
153 | 153 | nextText: '', |
154 | 154 | pausePlay: false, |
155 | 155 | asNavFor: '.flexslider:eq('+index+')', |
156 | - minItems: " . $this->owner->obj('CarouselThumbnailCt') . ", |
|
157 | - maxItems: " . $this->owner->obj('CarouselThumbnailCt') . ", |
|
158 | - move: " . $this->owner->obj('CarouselThumbnailCt') . ", |
|
156 | + minItems: " . $this->owner->obj('CarouselThumbnailCt').", |
|
157 | + maxItems: " . $this->owner->obj('CarouselThumbnailCt').", |
|
158 | + move: " . $this->owner->obj('CarouselThumbnailCt').", |
|
159 | 159 | itemWidth: 100, |
160 | 160 | itemMargin: 10 |
161 | 161 | }); |
@@ -163,22 +163,22 @@ discard block |
||
163 | 163 | |
164 | 164 | if(jQuery('.flexslider').eq(index).length){ |
165 | 165 | jQuery('.flexslider').eq(index).flexslider({ |
166 | - slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean() . ", |
|
167 | - animation: '" . $this->owner->Animation . "', |
|
168 | - animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean() . ", |
|
169 | - controlNav: " . $this->owner->obj('SliderControlNav')->NiceAsBoolean() . ", |
|
170 | - directionNav: " . $this->owner->obj('SliderDirectionNav')->NiceAsBoolean() . ", |
|
166 | + slideshow: " . $this->owner->obj('Animate')->NiceAsBoolean().", |
|
167 | + animation: '" . $this->owner->Animation."', |
|
168 | + animationLoop: " . $this->owner->obj('Loop')->NiceAsBoolean().", |
|
169 | + controlNav: " . $this->owner->obj('SliderControlNav')->NiceAsBoolean().", |
|
170 | + directionNav: " . $this->owner->obj('SliderDirectionNav')->NiceAsBoolean().", |
|
171 | 171 | prevText: '', |
172 | 172 | nextText: '', |
173 | 173 | pauseOnAction: true, |
174 | 174 | pauseOnHover: true, |
175 | - " . $sync . " |
|
175 | + " . $sync." |
|
176 | 176 | start: function(slider){ |
177 | 177 | $('body').removeClass('loading'); |
178 | 178 | }, |
179 | - before: " . $before . ', |
|
180 | - after: ' . $after . ', |
|
181 | - slideshowSpeed: ' . $speed . ' |
|
179 | + before: " . $before.', |
|
180 | + after: ' . $after.', |
|
181 | + slideshowSpeed: ' . $speed.' |
|
182 | 182 | }); |
183 | 183 | } |
184 | 184 | }) |
@@ -78,23 +78,23 @@ |
||
78 | 78 | 'PageID', |
79 | 79 | ]); |
80 | 80 | |
81 | - if($name = $fields->dataFieldByName('Name')){ |
|
81 | + if ($name = $fields->dataFieldByName('Name')) { |
|
82 | 82 | $name->setDescription('for internal reference only'); |
83 | 83 | } |
84 | 84 | |
85 | - if($headline = $fields->dataFieldByName('Headline')){ |
|
85 | + if ($headline = $fields->dataFieldByName('Headline')) { |
|
86 | 86 | $headline->setDescription('optional, used in template'); |
87 | 87 | } |
88 | 88 | |
89 | - if($description = $fields->dataFieldByName('Description')){ |
|
89 | + if ($description = $fields->dataFieldByName('Description')) { |
|
90 | 90 | $description->setDescription('optional, used in template'); |
91 | 91 | } |
92 | 92 | |
93 | - if($link = $fields->dataFieldByName('PageLinkID')){ |
|
93 | + if ($link = $fields->dataFieldByName('PageLinkID')) { |
|
94 | 94 | $link->setTitle("'Choose a page to link to:'"); |
95 | 95 | } |
96 | 96 | |
97 | - if($image = $fields->dataFieldByName('Image')){ |
|
97 | + if ($image = $fields->dataFieldByName('Image')) { |
|
98 | 98 | $image->setFolderName('Uploads/SlideImages') |
99 | 99 | ->setAllowedMaxFileNumber(1) |
100 | 100 | ->setAllowedFileCategories('image'); |