@@ -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]); |
@@ -5,10 +5,10 @@ |
||
5 | 5 | |
6 | 6 | class AutoCompleteAsset extends Asset { |
7 | 7 | |
8 | - public $type = AutoCompleteAsset::class; |
|
9 | - public $namespace = 'property'; |
|
8 | + public $type = AutoCompleteAsset::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 | } |
15 | 15 | \ No newline at end of file |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | |
5 | 5 | use Phpsa\Datastore\Asset; |
6 | 6 | |
7 | -class RobotsTxtAsset extends Asset{ |
|
7 | +class RobotsTxtAsset extends Asset { |
|
8 | 8 | |
9 | 9 | public $name = 'Robots.txt'; |
10 | 10 | public $shortname = 'robots_txt'; |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | public $private = true; //this is not a standard public facing page! |
14 | 14 | |
15 | 15 | public $meta_description = 'off'; // set to 'off' to turn it off |
16 | - public $meta_keywords = 'off'; // set to 'off' to turn it off |
|
16 | + public $meta_keywords = 'off'; // set to 'off' to turn it off |
|
17 | 17 | |
18 | 18 | public $value_equals = 'entries'; |
19 | 19 | public $properties = array( |
@@ -8,11 +8,11 @@ |
||
8 | 8 | |
9 | 9 | public $shortname = 'Bool'; |
10 | 10 | |
11 | - public $type = BooleanAsset::class; |
|
11 | + public $type = BooleanAsset::class; |
|
12 | 12 | |
13 | 13 | public $namespace = 'property'; |
14 | 14 | |
15 | - public static function html($data) { |
|
16 | - return !empty($data['value']) ? 'on' : 'off'; |
|
17 | - } |
|
15 | + public static function html($data) { |
|
16 | + return !empty($data['value']) ? 'on' : 'off'; |
|
17 | + } |
|
18 | 18 | } |
@@ -6,13 +6,13 @@ |
||
6 | 6 | |
7 | 7 | class IdentityAsset extends Asset { |
8 | 8 | |
9 | - public $type = IdentityAsset::class; |
|
10 | - public $namespace = 'property'; |
|
9 | + public $type = IdentityAsset::class; |
|
10 | + public $namespace = 'property'; |
|
11 | 11 | |
12 | - public static function html($data) { |
|
12 | + public static function html($data) { |
|
13 | 13 | $record = config('auth.providers.users.model')::find($data['value']); |
14 | 14 | $user_label = $record ? $record->first_name . ' ' . $record->last_name : ''; |
15 | 15 | |
16 | - return $user_label; |
|
17 | - } |
|
16 | + return $user_label; |
|
17 | + } |
|
18 | 18 | } |
@@ -44,8 +44,8 @@ |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * generate the route for this asset |
|
48 | - */ |
|
47 | + * generate the route for this asset |
|
48 | + */ |
|
49 | 49 | public static function route($record, $path = null){ |
50 | 50 | |
51 | 51 | $path = 'frontend.ams.page.slug'; |
@@ -46,7 +46,7 @@ |
||
46 | 46 | /** |
47 | 47 | * generate the route for this asset |
48 | 48 | */ |
49 | - public static function route($record, $path = null){ |
|
49 | + public static function route($record, $path = null) { |
|
50 | 50 | |
51 | 51 | $path = 'frontend.ams.page.slug'; |
52 | 52 | $page = $record->page; |
@@ -5,12 +5,12 @@ |
||
5 | 5 | |
6 | 6 | class HtmlAsset extends Asset { |
7 | 7 | |
8 | - public $type = HtmlAsset::class; |
|
9 | - public $namespace = 'property'; |
|
8 | + public $type = HtmlAsset::class; |
|
9 | + public $namespace = 'property'; |
|
10 | 10 | public $options = ["formatting", "bold", "italic", "deleted", "unorderedlist","orderedlist", "image", "file", "link"]; |
11 | 11 | |
12 | - // return it raw |
|
13 | - public static function html($data) { |
|
14 | - return $data['value']; |
|
15 | - } |
|
12 | + // return it raw |
|
13 | + public static function html($data) { |
|
14 | + return $data['value']; |
|
15 | + } |
|
16 | 16 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | |
8 | 8 | public $type = HtmlAsset::class; |
9 | 9 | public $namespace = 'property'; |
10 | - public $options = ["formatting", "bold", "italic", "deleted", "unorderedlist","orderedlist", "image", "file", "link"]; |
|
10 | + public $options = ["formatting", "bold", "italic", "deleted", "unorderedlist", "orderedlist", "image", "file", "link"]; |
|
11 | 11 | |
12 | 12 | // return it raw |
13 | 13 | public static function html($data) { |
@@ -5,10 +5,10 @@ |
||
5 | 5 | |
6 | 6 | class DropdownAsset extends Asset { |
7 | 7 | |
8 | - public $type = DropdownAsset::class; |
|
9 | - public $namespace = 'property'; |
|
8 | + public $type = DropdownAsset::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 | } |
15 | 15 | \ No newline at end of file |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class TextAsset extends Asset { |
6 | 6 | |
7 | - public $type = TextAsset::class; |
|
8 | - public $namespace = 'property'; |
|
7 | + public $type = TextAsset::class; |
|
8 | + public $namespace = 'property'; |
|
9 | 9 | |
10 | - public static function html($data) { |
|
11 | - return '<p>' . $data['value'] . '</p>'; |
|
12 | - } |
|
10 | + public static function html($data) { |
|
11 | + return '<p>' . $data['value'] . '</p>'; |
|
12 | + } |
|
13 | 13 | |
14 | 14 | } |
15 | 15 | \ No newline at end of file |