@@ -20,22 +20,22 @@ |
||
20 | 20 | } |
21 | 21 | if($this->owner->ThumbnailNav==true){ |
22 | 22 | $sync = "sync: '#carousel',"; |
23 | - }else{ |
|
23 | + } else{ |
|
24 | 24 | $sync = ""; |
25 | 25 | } |
26 | 26 | if(method_exists($this->owner->ClassName, 'flexSliderBeforeAction')){ |
27 | 27 | $before = $this->owner->flexSliderBeforeAction(); |
28 | - }else{ |
|
28 | + } else{ |
|
29 | 29 | $before = "function(){}"; |
30 | 30 | } |
31 | 31 | if(method_exists($this->owner->ClassName, 'flexSliderAfterAction')){ |
32 | 32 | $after = $this->owner->flexSliderAfterAction(); |
33 | - }else{ |
|
33 | + } else{ |
|
34 | 34 | $after = "function(){}"; |
35 | 35 | } |
36 | 36 | if(method_exists($this->owner->ClassName, 'setFlexSliderSpeed')){ |
37 | 37 | $speed = $this->owner->setFlexSliderSpeed(); |
38 | - }else{ |
|
38 | + } else{ |
|
39 | 39 | $speed = 7000; |
40 | 40 | } |
41 | 41 |
@@ -48,7 +48,9 @@ |
||
48 | 48 | $gridFieldConfig->addComponent(new GridFieldBulkManager()); |
49 | 49 | $gridFieldConfig->addComponent(new GridFieldBulkUpload()); |
50 | 50 | } |
51 | - if (class_exists('GridFieldSortableRows')) $gridFieldConfig->addComponent(new GridFieldSortableRows("SortOrder")); |
|
51 | + if (class_exists('GridFieldSortableRows')) { |
|
52 | + $gridFieldConfig->addComponent(new GridFieldSortableRows("SortOrder")); |
|
53 | + } |
|
52 | 54 | |
53 | 55 | $SlidesField = GridField::create("Slides", "Slides", $this->owner->Slides()->sort('SortOrder'), $gridFieldConfig); |
54 | 56 |
@@ -9,10 +9,11 @@ |
||
9 | 9 | |
10 | 10 | public function GridThumb() { |
11 | 11 | $Image = $this->Image(); |
12 | - if ( $Image ) |
|
13 | - return $Image->CMSThumbnail(); |
|
14 | - else |
|
15 | - return null; |
|
12 | + if ( $Image ) { |
|
13 | + return $Image->CMSThumbnail(); |
|
14 | + } else { |
|
15 | + return null; |
|
16 | + } |
|
16 | 17 | } |
17 | 18 | |
18 | 19 | function getCMSFields() { |