@@ -4,14 +4,14 @@ |
||
4 | 4 | |
5 | 5 | class TogglePinned |
6 | 6 | { |
7 | - public $id; |
|
8 | - public $pinned; |
|
7 | + public $id; |
|
8 | + public $pinned; |
|
9 | 9 | |
10 | - public function __construct($input) |
|
11 | - { |
|
12 | - $this->id = $input['id']; |
|
13 | - $this->pinned = isset($input['pinned']) |
|
14 | - ? wp_validate_boolean($input['pinned']) |
|
15 | - : null; |
|
16 | - } |
|
10 | + public function __construct($input) |
|
11 | + { |
|
12 | + $this->id = $input['id']; |
|
13 | + $this->pinned = isset($input['pinned']) |
|
14 | + ? wp_validate_boolean($input['pinned']) |
|
15 | + : null; |
|
16 | + } |
|
17 | 17 | } |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | class RegisterWidgets |
6 | 6 | { |
7 | - public $widgets; |
|
7 | + public $widgets; |
|
8 | 8 | |
9 | - public function __construct($input) |
|
10 | - { |
|
11 | - $this->widgets = $input; |
|
12 | - } |
|
9 | + public function __construct($input) |
|
10 | + { |
|
11 | + $this->widgets = $input; |
|
12 | + } |
|
13 | 13 | } |
@@ -4,14 +4,14 @@ |
||
4 | 4 | |
5 | 5 | class ChangeStatus |
6 | 6 | { |
7 | - public $id; |
|
8 | - public $status; |
|
7 | + public $id; |
|
8 | + public $status; |
|
9 | 9 | |
10 | - public function __construct($input) |
|
11 | - { |
|
12 | - $this->id = $input['post_id']; |
|
13 | - $this->status = 'approve' == $input['status'] |
|
14 | - ? 'publish' |
|
15 | - : 'pending'; |
|
16 | - } |
|
10 | + public function __construct($input) |
|
11 | + { |
|
12 | + $this->id = $input['post_id']; |
|
13 | + $this->status = 'approve' == $input['status'] |
|
14 | + ? 'publish' |
|
15 | + : 'pending'; |
|
16 | + } |
|
17 | 17 | } |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | class RegisterTinymcePopups |
6 | 6 | { |
7 | - public $popups; |
|
7 | + public $popups; |
|
8 | 8 | |
9 | - public function __construct($input) |
|
10 | - { |
|
11 | - $this->popups = $input; |
|
12 | - } |
|
9 | + public function __construct($input) |
|
10 | + { |
|
11 | + $this->popups = $input; |
|
12 | + } |
|
13 | 13 | } |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | class RegisterTaxonomy |
6 | 6 | { |
7 | - public $args; |
|
7 | + public $args; |
|
8 | 8 | |
9 | - public function __construct($input) |
|
10 | - { |
|
11 | - $this->args = $input; |
|
12 | - } |
|
9 | + public function __construct($input) |
|
10 | + { |
|
11 | + $this->args = $input; |
|
12 | + } |
|
13 | 13 | } |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | class EnqueueAdminAssets |
6 | 6 | { |
7 | - public $pointers; |
|
7 | + public $pointers; |
|
8 | 8 | |
9 | - public function __construct(array $input) |
|
10 | - { |
|
11 | - $this->pointers = $input['pointers']; |
|
12 | - } |
|
9 | + public function __construct(array $input) |
|
10 | + { |
|
11 | + $this->pointers = $input['pointers']; |
|
12 | + } |
|
13 | 13 | } |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | class RegisterShortcodes |
6 | 6 | { |
7 | - public $shortcodes; |
|
7 | + public $shortcodes; |
|
8 | 8 | |
9 | - public function __construct($input) |
|
10 | - { |
|
11 | - $this->shortcodes = $input; |
|
12 | - } |
|
9 | + public function __construct($input) |
|
10 | + { |
|
11 | + $this->shortcodes = $input; |
|
12 | + } |
|
13 | 13 | } |
@@ -1,33 +1,33 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | return [ |
4 | - 'rating' => [ |
|
5 | - 'label' => __('Your overall rating', 'site-reviews'), |
|
6 | - 'type' => 'rating', |
|
7 | - ], |
|
8 | - 'title' => [ |
|
9 | - 'label' => __('Title of your review', 'site-reviews'), |
|
10 | - 'placeholder' => __('Summarize your review or highlight an interesting detail', 'site-reviews'), |
|
11 | - 'type' => 'text', |
|
12 | - ], |
|
13 | - 'content' => [ |
|
14 | - 'label' => __('Your review', 'site-reviews'), |
|
15 | - 'placeholder' => __('Tell people your review', 'site-reviews'), |
|
16 | - 'rows' => 5, |
|
17 | - 'type' => 'textarea', |
|
18 | - ], |
|
19 | - 'name' => [ |
|
20 | - 'label' => __('Your name', 'site-reviews'), |
|
21 | - 'placeholder' => __('Tell us your name', 'site-reviews'), |
|
22 | - 'type' => 'text', |
|
23 | - ], |
|
24 | - 'email' => [ |
|
25 | - 'label' => __('Your email', 'site-reviews'), |
|
26 | - 'placeholder' => __('Tell us your email', 'site-reviews'), |
|
27 | - 'type' => 'email', |
|
28 | - ], |
|
29 | - 'terms' => [ |
|
30 | - 'label' => __('This review is based on my own experience and is my genuine opinion.', 'site-reviews'), |
|
31 | - 'type' => 'checkbox', |
|
32 | - ], |
|
4 | + 'rating' => [ |
|
5 | + 'label' => __('Your overall rating', 'site-reviews'), |
|
6 | + 'type' => 'rating', |
|
7 | + ], |
|
8 | + 'title' => [ |
|
9 | + 'label' => __('Title of your review', 'site-reviews'), |
|
10 | + 'placeholder' => __('Summarize your review or highlight an interesting detail', 'site-reviews'), |
|
11 | + 'type' => 'text', |
|
12 | + ], |
|
13 | + 'content' => [ |
|
14 | + 'label' => __('Your review', 'site-reviews'), |
|
15 | + 'placeholder' => __('Tell people your review', 'site-reviews'), |
|
16 | + 'rows' => 5, |
|
17 | + 'type' => 'textarea', |
|
18 | + ], |
|
19 | + 'name' => [ |
|
20 | + 'label' => __('Your name', 'site-reviews'), |
|
21 | + 'placeholder' => __('Tell us your name', 'site-reviews'), |
|
22 | + 'type' => 'text', |
|
23 | + ], |
|
24 | + 'email' => [ |
|
25 | + 'label' => __('Your email', 'site-reviews'), |
|
26 | + 'placeholder' => __('Tell us your email', 'site-reviews'), |
|
27 | + 'type' => 'email', |
|
28 | + ], |
|
29 | + 'terms' => [ |
|
30 | + 'label' => __('This review is based on my own experience and is my genuine opinion.', 'site-reviews'), |
|
31 | + 'type' => 'checkbox', |
|
32 | + ], |
|
33 | 33 | ]; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | return [ |
4 | - 'fields' => [ |
|
5 | - 'input' => 'ninja-forms-field nf-element', |
|
6 | - 'textarea' => 'ninja-forms-field nf-element', |
|
7 | - ], |
|
4 | + 'fields' => [ |
|
5 | + 'input' => 'ninja-forms-field nf-element', |
|
6 | + 'textarea' => 'ninja-forms-field nf-element', |
|
7 | + ], |
|
8 | 8 | ]; |