@@ -6,20 +6,20 @@ |
||
| 6 | 6 | |
| 7 | 7 | class StyleFieldsDefaults extends Defaults |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * @return array |
|
| 11 | - */ |
|
| 12 | - protected function defaults() |
|
| 13 | - { |
|
| 14 | - return [ |
|
| 15 | - 'input' => '', |
|
| 16 | - 'input_checkbox' => '', |
|
| 17 | - 'input_radio' => '', |
|
| 18 | - 'label' => '', |
|
| 19 | - 'label_checkbox' => '', |
|
| 20 | - 'label_radio' => '', |
|
| 21 | - 'select' => '', |
|
| 22 | - 'textarea' => '', |
|
| 23 | - ]; |
|
| 24 | - } |
|
| 9 | + /** |
|
| 10 | + * @return array |
|
| 11 | + */ |
|
| 12 | + protected function defaults() |
|
| 13 | + { |
|
| 14 | + return [ |
|
| 15 | + 'input' => '', |
|
| 16 | + 'input_checkbox' => '', |
|
| 17 | + 'input_radio' => '', |
|
| 18 | + 'label' => '', |
|
| 19 | + 'label_checkbox' => '', |
|
| 20 | + 'label_radio' => '', |
|
| 21 | + 'select' => '', |
|
| 22 | + 'textarea' => '', |
|
| 23 | + ]; |
|
| 24 | + } |
|
| 25 | 25 | } |
@@ -6,19 +6,19 @@ |
||
| 6 | 6 | |
| 7 | 7 | class SlackDefaults extends Defaults |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * @return array |
|
| 11 | - */ |
|
| 12 | - protected function defaults() |
|
| 13 | - { |
|
| 14 | - return [ |
|
| 15 | - 'button_text' => __('View Review', 'site-reviews'), |
|
| 16 | - 'button_url' => '', |
|
| 17 | - 'color' => '#665068', |
|
| 18 | - 'fallback' => '', |
|
| 19 | - 'icon_url' => glsr()->url('assets/images/icon.png'), |
|
| 20 | - 'pretext' => '', |
|
| 21 | - 'username' => glsr()->name, |
|
| 22 | - ]; |
|
| 23 | - } |
|
| 9 | + /** |
|
| 10 | + * @return array |
|
| 11 | + */ |
|
| 12 | + protected function defaults() |
|
| 13 | + { |
|
| 14 | + return [ |
|
| 15 | + 'button_text' => __('View Review', 'site-reviews'), |
|
| 16 | + 'button_url' => '', |
|
| 17 | + 'color' => '#665068', |
|
| 18 | + 'fallback' => '', |
|
| 19 | + 'icon_url' => glsr()->url('assets/images/icon.png'), |
|
| 20 | + 'pretext' => '', |
|
| 21 | + 'username' => glsr()->name, |
|
| 22 | + ]; |
|
| 23 | + } |
|
| 24 | 24 | } |
@@ -11,27 +11,27 @@ |
||
| 11 | 11 | |
| 12 | 12 | class RestCategoryController extends RestController |
| 13 | 13 | { |
| 14 | - public function __construct() |
|
| 15 | - { |
|
| 16 | - $this->meta = new WP_REST_Term_Meta_Fields(Application::TAXONOMY); |
|
| 17 | - $this->namespace = Application::ID.'/v1'; |
|
| 18 | - $this->rest_base = 'categories'; |
|
| 19 | - $this->taxonomy = Application::TAXONOMY; |
|
| 20 | - } |
|
| 14 | + public function __construct() |
|
| 15 | + { |
|
| 16 | + $this->meta = new WP_REST_Term_Meta_Fields(Application::TAXONOMY); |
|
| 17 | + $this->namespace = Application::ID.'/v1'; |
|
| 18 | + $this->rest_base = 'categories'; |
|
| 19 | + $this->taxonomy = Application::TAXONOMY; |
|
| 20 | + } |
|
| 21 | 21 | |
| 22 | - /** |
|
| 23 | - * @return void |
|
| 24 | - */ |
|
| 25 | - public function register_routes() |
|
| 26 | - { |
|
| 27 | - register_rest_route($this->namespace, '/'.$this->rest_base, [ |
|
| 28 | - [ |
|
| 29 | - 'args' => $this->get_collection_params(), |
|
| 30 | - 'callback' => [$this, 'get_items'], |
|
| 31 | - 'methods' => Server::READABLE, |
|
| 32 | - 'permission_callback' => [$this, 'get_items_permissions_check'], |
|
| 33 | - ], |
|
| 34 | - 'schema' => [$this, 'get_public_item_schema'], |
|
| 35 | - ]); |
|
| 36 | - } |
|
| 22 | + /** |
|
| 23 | + * @return void |
|
| 24 | + */ |
|
| 25 | + public function register_routes() |
|
| 26 | + { |
|
| 27 | + register_rest_route($this->namespace, '/'.$this->rest_base, [ |
|
| 28 | + [ |
|
| 29 | + 'args' => $this->get_collection_params(), |
|
| 30 | + 'callback' => [$this, 'get_items'], |
|
| 31 | + 'methods' => Server::READABLE, |
|
| 32 | + 'permission_callback' => [$this, 'get_items_permissions_check'], |
|
| 33 | + ], |
|
| 34 | + 'schema' => [$this, 'get_public_item_schema'], |
|
| 35 | + ]); |
|
| 36 | + } |
|
| 37 | 37 | } |
@@ -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 | ]; |
@@ -1,19 +1,19 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - 'fields' => [ |
|
| 5 | - 'input' => 'wpcf7-form-control', |
|
| 6 | - 'input_text' => 'wpcf7-form-control wpcf7-text', |
|
| 7 | - 'input_email' => 'wpcf7-form-control wpcf7-text wpcf7-email', |
|
| 8 | - 'select' => 'wpcf7-form-control wpcf7-select', |
|
| 9 | - 'textarea' => 'wpcf7-form-control wpcf7-textarea', |
|
| 10 | - ], |
|
| 11 | - 'validation' => [ |
|
| 12 | - 'error_tag' => 'span', |
|
| 13 | - 'error_tag_class' => 'wpcf7-not-valid-tip', |
|
| 14 | - 'input_error_class' => 'wpcf7-not-valid', |
|
| 15 | - 'message_initial_class' => 'wpcf7-display-none', |
|
| 16 | - 'message_success_class' => 'wpcf7-mail-sent-ok', |
|
| 17 | - 'message_tag_class' => 'wpcf7-response-output', |
|
| 18 | - ], |
|
| 4 | + 'fields' => [ |
|
| 5 | + 'input' => 'wpcf7-form-control', |
|
| 6 | + 'input_text' => 'wpcf7-form-control wpcf7-text', |
|
| 7 | + 'input_email' => 'wpcf7-form-control wpcf7-text wpcf7-email', |
|
| 8 | + 'select' => 'wpcf7-form-control wpcf7-select', |
|
| 9 | + 'textarea' => 'wpcf7-form-control wpcf7-textarea', |
|
| 10 | + ], |
|
| 11 | + 'validation' => [ |
|
| 12 | + 'error_tag' => 'span', |
|
| 13 | + 'error_tag_class' => 'wpcf7-not-valid-tip', |
|
| 14 | + 'input_error_class' => 'wpcf7-not-valid', |
|
| 15 | + 'message_initial_class' => 'wpcf7-display-none', |
|
| 16 | + 'message_success_class' => 'wpcf7-mail-sent-ok', |
|
| 17 | + 'message_tag_class' => 'wpcf7-response-output', |
|
| 18 | + ], |
|
| 19 | 19 | ]; |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - 'fields' => [ |
|
| 5 | - 'input' => 'wpforms-field-large', |
|
| 6 | - 'label' => 'wpforms-field-label', |
|
| 7 | - 'label_checkbox' => 'wpforms-field-label-inline', |
|
| 8 | - 'label_radio' => 'wpforms-field-label-inline', |
|
| 9 | - 'select' => 'wpforms-field-large', |
|
| 10 | - 'textarea' => 'wpforms-field-large', |
|
| 11 | - ], |
|
| 4 | + 'fields' => [ |
|
| 5 | + 'input' => 'wpforms-field-large', |
|
| 6 | + 'label' => 'wpforms-field-label', |
|
| 7 | + 'label_checkbox' => 'wpforms-field-label-inline', |
|
| 8 | + 'label_radio' => 'wpforms-field-label-inline', |
|
| 9 | + 'select' => 'wpforms-field-large', |
|
| 10 | + 'textarea' => 'wpforms-field-large', |
|
| 11 | + ], |
|
| 12 | 12 | ]; |
@@ -1,19 +1,19 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - 'fields' => [ |
|
| 5 | - 'input' => 'form-control', |
|
| 6 | - 'input_checkbox' => 'custom-control-input', |
|
| 7 | - 'input_radio' => 'custom-control-input', |
|
| 8 | - 'label_checkbox' => 'custom-control-label', |
|
| 9 | - 'label_radio' => 'custom-control-label', |
|
| 10 | - 'select' => 'form-control', |
|
| 11 | - 'textarea' => 'form-control', |
|
| 12 | - ], |
|
| 13 | - 'validation' => [ |
|
| 14 | - 'error_tag' => 'div', |
|
| 15 | - 'error_tag_class' => 'invalid-feedback', |
|
| 16 | - 'field_class' => 'form-group', |
|
| 17 | - 'input_error_class' => 'is-invalid', |
|
| 18 | - ], |
|
| 4 | + 'fields' => [ |
|
| 5 | + 'input' => 'form-control', |
|
| 6 | + 'input_checkbox' => 'custom-control-input', |
|
| 7 | + 'input_radio' => 'custom-control-input', |
|
| 8 | + 'label_checkbox' => 'custom-control-label', |
|
| 9 | + 'label_radio' => 'custom-control-label', |
|
| 10 | + 'select' => 'form-control', |
|
| 11 | + 'textarea' => 'form-control', |
|
| 12 | + ], |
|
| 13 | + 'validation' => [ |
|
| 14 | + 'error_tag' => 'div', |
|
| 15 | + 'error_tag_class' => 'invalid-feedback', |
|
| 16 | + 'field_class' => 'form-group', |
|
| 17 | + 'input_error_class' => 'is-invalid', |
|
| 18 | + ], |
|
| 19 | 19 | ]; |
@@ -1,19 +1,19 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - 'fields' => [ |
|
| 5 | - 'input' => 'form-control', |
|
| 6 | - 'input_checkbox' => 'form-check-input', |
|
| 7 | - 'input_radio' => 'form-check-input', |
|
| 8 | - 'label_checkbox' => 'form-check-label', |
|
| 9 | - 'label_radio' => 'form-check-label', |
|
| 10 | - 'select' => 'form-control', |
|
| 11 | - 'textarea' => 'form-control', |
|
| 12 | - ], |
|
| 13 | - 'validation' => [ |
|
| 14 | - 'error_tag' => 'div', |
|
| 15 | - 'error_tag_class' => 'invalid-feedback', |
|
| 16 | - 'field_class' => 'form-group', |
|
| 17 | - 'input_error_class' => 'is-invalid', |
|
| 18 | - ], |
|
| 4 | + 'fields' => [ |
|
| 5 | + 'input' => 'form-control', |
|
| 6 | + 'input_checkbox' => 'form-check-input', |
|
| 7 | + 'input_radio' => 'form-check-input', |
|
| 8 | + 'label_checkbox' => 'form-check-label', |
|
| 9 | + 'label_radio' => 'form-check-label', |
|
| 10 | + 'select' => 'form-control', |
|
| 11 | + 'textarea' => 'form-control', |
|
| 12 | + ], |
|
| 13 | + 'validation' => [ |
|
| 14 | + 'error_tag' => 'div', |
|
| 15 | + 'error_tag_class' => 'invalid-feedback', |
|
| 16 | + 'field_class' => 'form-group', |
|
| 17 | + 'input_error_class' => 'is-invalid', |
|
| 18 | + ], |
|
| 19 | 19 | ]; |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - ':star-empty' => glsr()->url('assets/images/star-empty.svg'), |
|
| 5 | - ':star-error' => glsr()->url('assets/images/star-error.svg'), |
|
| 6 | - ':star-full' => glsr()->url('assets/images/star-full.svg'), |
|
| 7 | - ':star-half' => glsr()->url('assets/images/star-half.svg'), |
|
| 4 | + ':star-empty' => glsr()->url('assets/images/star-empty.svg'), |
|
| 5 | + ':star-error' => glsr()->url('assets/images/star-error.svg'), |
|
| 6 | + ':star-full' => glsr()->url('assets/images/star-full.svg'), |
|
| 7 | + ':star-half' => glsr()->url('assets/images/star-half.svg'), |
|
| 8 | 8 | ]; |