@@ -20,12 +20,12 @@ |
||
| 20 | 20 | public function config() |
| 21 | 21 | { |
| 22 | 22 | return [ |
| 23 | - 'vars' => [ |
|
| 24 | - ['var' => 'image', 'label' => 'Bild', 'type' => 'zaa-image-upload', 'options' => ['no_filter' => true]], |
|
| 25 | - ], |
|
| 26 | - 'cfgs' => [ |
|
| 27 | - ['var' => 'testimage', 'label' => 'testimage', 'type' => 'zaa-image-upload'], |
|
| 28 | - ], |
|
| 23 | + 'vars' => [ |
|
| 24 | + ['var' => 'image', 'label' => 'Bild', 'type' => 'zaa-image-upload', 'options' => ['no_filter' => true]], |
|
| 25 | + ], |
|
| 26 | + 'cfgs' => [ |
|
| 27 | + ['var' => 'testimage', 'label' => 'testimage', 'type' => 'zaa-image-upload'], |
|
| 28 | + ], |
|
| 29 | 29 | ]; |
| 30 | 30 | } |
| 31 | 31 | |
@@ -20,9 +20,9 @@ |
||
| 20 | 20 | public function config() |
| 21 | 21 | { |
| 22 | 22 | return [ |
| 23 | - 'vars' => [ |
|
| 24 | - ['var' => 'images', 'label' => 'Images', 'type' => 'zaa-image-array-upload', 'options' => ['no_filter' => false]], |
|
| 25 | - ], |
|
| 23 | + 'vars' => [ |
|
| 24 | + ['var' => 'images', 'label' => 'Images', 'type' => 'zaa-image-array-upload', 'options' => ['no_filter' => false]], |
|
| 25 | + ], |
|
| 26 | 26 | ]; |
| 27 | 27 | } |
| 28 | 28 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - 'button' => function($href, $name) { |
|
| 5 | - return '<a class="btn btn-primary" href="'.$href.'">'.$name.'</a>'; |
|
| 6 | - }, |
|
| 7 | - 'teaserbox' => function($title, $description, $buttonHref, $buttonName) { |
|
| 8 | - return '<div class="teaser-box"><h1>'.$title.'</h1><p>'.$description.'</p>'.$this->button($buttonHref, $buttonName).'</div>'; |
|
| 9 | - }, |
|
| 4 | + 'button' => function($href, $name) { |
|
| 5 | + return '<a class="btn btn-primary" href="'.$href.'">'.$name.'</a>'; |
|
| 6 | + }, |
|
| 7 | + 'teaserbox' => function($title, $description, $buttonHref, $buttonName) { |
|
| 8 | + return '<div class="teaser-box"><h1>'.$title.'</h1><p>'.$description.'</p>'.$this->button($buttonHref, $buttonName).'</div>'; |
|
| 9 | + }, |
|
| 10 | 10 | ]; |
| 11 | 11 | \ No newline at end of file |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * Callculate to number of items when using count() function against the QueryIterator object. |
| 24 | 24 | * |
| 25 | 25 | * @return int The number of elements in the object. |
| 26 | - */ |
|
| 26 | + */ |
|
| 27 | 27 | public function count() |
| 28 | 28 | { |
| 29 | 29 | return count($this->data); |