@@ -5,12 +5,12 @@ |
||
5 | 5 | |
6 | 6 | class AutoCallBackAsset extends Asset { |
7 | 7 | |
8 | - public $type = AutoCallBackAsset::class; |
|
9 | - public $namespace = 'property'; |
|
8 | + public $type = AutoCallBackAsset::class; |
|
9 | + public $namespace = 'property'; |
|
10 | 10 | |
11 | - public static function html($data) { |
|
11 | + public static function html($data) { |
|
12 | 12 | $content = explode('|', $data['meta']); |
13 | - return '<span>' . $content[1] . '</span>'; |
|
13 | + return '<span>' . $content[1] . '</span>'; |
|
14 | 14 | } |
15 | 15 | |
16 | 16 |
@@ -5,11 +5,11 @@ |
||
5 | 5 | |
6 | 6 | class SubHeadingAsset extends Asset { |
7 | 7 | |
8 | - public $shortname = 'SubHeading'; |
|
9 | - public $type = SubHeadingAsset::class; |
|
10 | - public $namespace = 'property'; |
|
8 | + public $shortname = 'SubHeading'; |
|
9 | + public $type = SubHeadingAsset::class; |
|
10 | + public $namespace = 'property'; |
|
11 | 11 | |
12 | - public static function html($data) { |
|
13 | - return '<h4>' . $data['value'] . '</h4>'; |
|
14 | - } |
|
12 | + public static function html($data) { |
|
13 | + return '<h4>' . $data['value'] . '</h4>'; |
|
14 | + } |
|
15 | 15 | } |
16 | 16 | \ No newline at end of file |
@@ -6,12 +6,12 @@ |
||
6 | 6 | |
7 | 7 | class FileAsset extends Asset { |
8 | 8 | |
9 | - public $type = FileAsset::class; |
|
10 | - public $namespace = 'property'; |
|
9 | + public $type = FileAsset::class; |
|
10 | + public $namespace = 'property'; |
|
11 | 11 | |
12 | - public static function html($data) { |
|
13 | - return Storage::url($data['value']); |
|
14 | - } |
|
12 | + public static function html($data) { |
|
13 | + return Storage::url($data['value']); |
|
14 | + } |
|
15 | 15 | |
16 | 16 | |
17 | 17 | } |
@@ -5,16 +5,16 @@ |
||
5 | 5 | |
6 | 6 | class AutoCallBackAdderAsset extends Asset { |
7 | 7 | |
8 | - public $type = AutoCallBackAdderAsset::class; |
|
9 | - public $namespace = 'property'; |
|
8 | + public $type = AutoCallBackAdderAsset::class; |
|
9 | + public $namespace = 'property'; |
|
10 | 10 | |
11 | - public static function html($data) { |
|
11 | + public static function html($data) { |
|
12 | 12 | $strings = []; |
13 | 13 | |
14 | 14 | foreach($data['meta'] as $k){ |
15 | 15 | $parts = explode("|", $k); |
16 | 16 | $strings[] = $parts[1]; |
17 | 17 | } |
18 | - return '<span>' . implode(", ", $strings) . '</span>'; |
|
19 | - } |
|
18 | + return '<span>' . implode(", ", $strings) . '</span>'; |
|
19 | + } |
|
20 | 20 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | public static function html($data) { |
12 | 12 | $strings = []; |
13 | 13 | |
14 | - foreach($data['meta'] as $k){ |
|
14 | + foreach ($data['meta'] as $k) { |
|
15 | 15 | $parts = explode("|", $k); |
16 | 16 | $strings[] = $parts[1]; |
17 | 17 | } |
@@ -5,10 +5,10 @@ |
||
5 | 5 | |
6 | 6 | class StringAsset extends Asset { |
7 | 7 | |
8 | - public $type = StringAsset::class; |
|
9 | - public $namespace = 'property'; |
|
8 | + public $type = StringAsset::class; |
|
9 | + public $namespace = 'property'; |
|
10 | 10 | |
11 | - public static function html($data) { |
|
12 | - return '<span>' . $data['value'] . '</span> STRING'; |
|
13 | - } |
|
11 | + public static function html($data) { |
|
12 | + return '<span>' . $data['value'] . '</span> STRING'; |
|
13 | + } |
|
14 | 14 | } |
@@ -5,11 +5,11 @@ |
||
5 | 5 | |
6 | 6 | class MetatextAsset extends Asset { |
7 | 7 | |
8 | - public $type = MetatextAsset::class; |
|
9 | - public $namespace = 'property'; |
|
8 | + public $type = MetatextAsset::class; |
|
9 | + public $namespace = 'property'; |
|
10 | 10 | |
11 | - public static function html($data) { |
|
12 | - return '<p>' . $data['value'] . '</p>'; |
|
13 | - } |
|
11 | + public static function html($data) { |
|
12 | + return '<p>' . $data['value'] . '</p>'; |
|
13 | + } |
|
14 | 14 | |
15 | 15 | } |
@@ -5,11 +5,11 @@ |
||
5 | 5 | |
6 | 6 | class HeadingAsset extends Asset { |
7 | 7 | |
8 | - public $shortname = 'Heading'; |
|
9 | - public $type = HeadingAsset::class; |
|
10 | - public $namespace = 'property'; |
|
8 | + public $shortname = 'Heading'; |
|
9 | + public $type = HeadingAsset::class; |
|
10 | + public $namespace = 'property'; |
|
11 | 11 | |
12 | - public static function html($data) { |
|
13 | - return '<h3>' . $data['value'] . '</h3>'; |
|
14 | - } |
|
12 | + public static function html($data) { |
|
13 | + return '<h3>' . $data['value'] . '</h3>'; |
|
14 | + } |
|
15 | 15 | } |
16 | 16 | \ No newline at end of file |
@@ -5,10 +5,10 @@ |
||
5 | 5 | |
6 | 6 | class DatePickerAsset extends Asset { |
7 | 7 | |
8 | - public $type = DatePickerAsset::class; |
|
9 | - public $namespace = 'property'; |
|
8 | + public $type = DatePickerAsset::class; |
|
9 | + public $namespace = 'property'; |
|
10 | 10 | |
11 | - public static function html($data) { |
|
12 | - return '<span>' . $data['value'] . '</span>'; |
|
13 | - } |
|
11 | + public static function html($data) { |
|
12 | + return '<span>' . $data['value'] . '</span>'; |
|
13 | + } |
|
14 | 14 | } |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | public $is_child = false; |
11 | 11 | |
12 | 12 | public $value_equals = 'title'; |
13 | - public $status_equals = 'status'; |
|
13 | + public $status_equals = 'status'; |
|
14 | 14 | |
15 | 15 | public $properties = array( |
16 | 16 | 'title' => array( |
@@ -25,11 +25,11 @@ discard block |
||
25 | 25 | 'type' => self::HTML |
26 | 26 | ), |
27 | 27 | 'status' => array( |
28 | - 'name' => 'Published', |
|
29 | - 'type' => self::DROPDOWN, |
|
28 | + 'name' => 'Published', |
|
29 | + 'type' => self::DROPDOWN, |
|
30 | 30 | 'options' => ['published' => 'Published', 'unpublished' => 'Unpublished'], |
31 | 31 | 'published' => ['published'] |
32 | - ), |
|
32 | + ), |
|
33 | 33 | ); |
34 | 34 | |
35 | 35 | public static function about() { |
@@ -37,8 +37,8 @@ discard block |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * generate the route for this asset |
|
41 | - */ |
|
40 | + * generate the route for this asset |
|
41 | + */ |
|
42 | 42 | public static function route($record, $path = null){ |
43 | 43 | $path = 'frontend.ams.page.slug'; |
44 | 44 | $page = $record->page; |
@@ -39,7 +39,7 @@ |
||
39 | 39 | /** |
40 | 40 | * generate the route for this asset |
41 | 41 | */ |
42 | - public static function route($record, $path = null){ |
|
42 | + public static function route($record, $path = null) { |
|
43 | 43 | $path = 'frontend.ams.page.slug'; |
44 | 44 | $page = $record->page; |
45 | 45 | return route($path, ['slug' => $page->slug]); |