@@ -7,38 +7,38 @@ |
||
7 | 7 | */ |
8 | 8 | class ContentWidget extends Widget |
9 | 9 | { |
10 | - /** |
|
11 | - * @var array |
|
12 | - */ |
|
13 | - public static $db = array( |
|
14 | - "HTML" => "HTMLText" |
|
15 | - ); |
|
10 | + /** |
|
11 | + * @var array |
|
12 | + */ |
|
13 | + public static $db = array( |
|
14 | + "HTML" => "HTMLText" |
|
15 | + ); |
|
16 | 16 | |
17 | - /** |
|
18 | - * @var string |
|
19 | - */ |
|
20 | - private static $title = "HTML Content"; |
|
17 | + /** |
|
18 | + * @var string |
|
19 | + */ |
|
20 | + private static $title = "HTML Content"; |
|
21 | 21 | |
22 | - /** |
|
23 | - * @var string |
|
24 | - */ |
|
25 | - private static $cmsTitle = "HTML Content"; |
|
22 | + /** |
|
23 | + * @var string |
|
24 | + */ |
|
25 | + private static $cmsTitle = "HTML Content"; |
|
26 | 26 | |
27 | - /** |
|
28 | - * @var string |
|
29 | - */ |
|
30 | - private static $description = "Custom HTML content widget."; |
|
27 | + /** |
|
28 | + * @var string |
|
29 | + */ |
|
30 | + private static $description = "Custom HTML content widget."; |
|
31 | 31 | |
32 | - /** |
|
33 | - * @return FieldList |
|
34 | - */ |
|
35 | - public function getCMSFields() |
|
36 | - { |
|
37 | - $fields = parent::getCMSFields(); |
|
32 | + /** |
|
33 | + * @return FieldList |
|
34 | + */ |
|
35 | + public function getCMSFields() |
|
36 | + { |
|
37 | + $fields = parent::getCMSFields(); |
|
38 | 38 | |
39 | - $fields->push(TextField::create("Title")); |
|
40 | - $fields->push(HtmlEditorField::create("HTML", "Content")); |
|
39 | + $fields->push(TextField::create("Title")); |
|
40 | + $fields->push(HtmlEditorField::create("HTML", "Content")); |
|
41 | 41 | |
42 | - return $fields; |
|
43 | - } |
|
42 | + return $fields; |
|
43 | + } |
|
44 | 44 | } |