| @@ -9,8 +9,9 @@ | ||
| 9 | 9 | class FrmFieldCheckbox extends FrmFieldType { |
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * @var string |
| 13 | + * | |
| 13 | 14 | * @since 3.0 |
| 14 | 15 | */ |
| 15 | 16 | protected $type = 'checkbox'; |
| 16 | 17 | |
| @@ -15,8 +16,9 @@ | ||
| 15 | 16 | protected $type = 'checkbox'; |
| 16 | 17 | |
| 17 | 18 | /** |
| 18 | 19 | * @var bool |
| 20 | + * | |
| 19 | 21 | * @since 3.0 |
| 20 | 22 | */ |
| 21 | 23 | protected $holds_email_values = true; |
| 22 | 24 | |
| @@ -23,12 +25,16 @@ | ||
| 23 | 25 | /** |
| 24 | 26 | * Does the html for this field label need to include "for"? |
| 25 | 27 | * |
| 26 | 28 | * @var bool |
| 29 | + * | |
| 27 | 30 | * @since 3.06.01 |
| 28 | 31 | */ |
| 29 | 32 | protected $has_for_label = false; |
| 30 | 33 | |
| 34 | + /** | |
| 35 | + * @return string | |
| 36 | + */ | |
| 31 | 37 | protected function input_html() { |
| 32 | 38 | return $this->multiple_input_html(); |
| 33 | 39 | } |
| 34 | 40 | |
| @@ -62,8 +68,11 @@ | ||
| 62 | 68 | /** |
| 63 | 69 | * Get the type of field being displayed. |
| 64 | 70 | * |
| 65 | 71 | * @since 4.02.01 |
| 72 | + * | |
| 73 | + * @param array|object $field | |
| 74 | + * | |
| 66 | 75 | * @return array |
| 67 | 76 | */ |
| 68 | 77 | public function displayed_field_type( $field ) { |
| 69 | 78 | return array( |
| @@ -74,17 +83,17 @@ | ||
| 74 | 83 | /** |
| 75 | 84 | * @return array |
| 76 | 85 | */ |
| 77 | 86 | protected function extra_field_opts() { |
| 78 | - $form_id = $this->get_field_column( 'form_id' ); | |
| 79 | - | |
| 80 | 87 | return array( |
| 81 | - 'align' => FrmStylesController::get_style_val( 'check_align', ( empty( $form_id ) ? 'default' : $form_id ) ), | |
| 88 | + 'align' => '', | |
| 82 | 89 | ); |
| 83 | 90 | } |
| 84 | 91 | |
| 85 | 92 | /** |
| 86 | 93 | * @since 4.06 |
| 94 | + * | |
| 95 | + * @param array $args | |
| 87 | 96 | * |
| 88 | 97 | * @return void |
| 89 | 98 | */ |
| 90 | 99 | protected function show_priority_field_choices( $args = array() ) { |