| @@ -63,17 +63,27 @@ | ||
| 63 | 63 | class="frm-style-item-heading"><?php esc_html_e( 'Check Box', 'formidable' ); ?></label> |
| 64 | 64 | </div> |
| 65 | 65 | <div class="frm7 frm_form_field"> |
| 66 | 66 | <?php |
| 67 | + $align_options = array( | |
| 68 | + 'block' => __( 'One Column', 'formidable' ), | |
| 69 | + 'inline' => __( 'Inline Options', 'formidable' ), | |
| 70 | + ); | |
| 71 | + | |
| 72 | + /** | |
| 73 | + * @since 6.32 | |
| 74 | + * | |
| 75 | + * @param array $align_options | |
| 76 | + * @param array $atts | |
| 77 | + */ | |
| 78 | + $checkbox_align_options = apply_filters( 'frm_checkbox_align_options', $align_options, $atts ); | |
| 79 | + | |
| 67 | 80 | new FrmDropdownStyleComponent( |
| 68 | 81 | $frm_style->get_field_name( 'check_align' ), |
| 69 | 82 | $style->post_content['check_align'], |
| 70 | 83 | array( |
| 71 | 84 | 'id' => 'frm_check_align', |
| 72 | - 'options' => array( | |
| 73 | - 'block' => esc_html__( 'Multiple Rows', 'formidable' ), | |
| 74 | - 'inline' => esc_html__( 'Single Row', 'formidable' ), | |
| 75 | - ), | |
| 85 | + 'options' => $checkbox_align_options, | |
| 76 | 86 | ) |
| 77 | 87 | ); |
| 78 | 88 | ?> |
| 79 | 89 | </div> |
| @@ -84,17 +94,22 @@ | ||
| 84 | 94 | class="frm-style-item-heading"><?php esc_html_e( 'Radio', 'formidable' ); ?></label> |
| 85 | 95 | </div> |
| 86 | 96 | <div class="frm7 frm_form_field"> |
| 87 | 97 | <?php |
| 98 | + /** | |
| 99 | + * @since 6.32 | |
| 100 | + * | |
| 101 | + * @param array $align_options | |
| 102 | + * @param array $atts | |
| 103 | + */ | |
| 104 | + $radio_align_options = apply_filters( 'frm_radio_align_options', $align_options, $atts ); | |
| 105 | + | |
| 88 | 106 | new FrmDropdownStyleComponent( |
| 89 | 107 | $frm_style->get_field_name( 'radio_align' ), |
| 90 | 108 | $style->post_content['radio_align'], |
| 91 | 109 | array( |
| 92 | 110 | 'id' => 'frm_radio_align', |
| 93 | - 'options' => array( | |
| 94 | - 'block' => esc_html__( 'Multiple Rows', 'formidable' ), | |
| 95 | - 'inline' => esc_html__( 'Single Row', 'formidable' ), | |
| 96 | - ), | |
| 111 | + 'options' => $radio_align_options, | |
| 97 | 112 | ) |
| 98 | 113 | ); |
| 99 | 114 | ?> |
| 100 | 115 | </div> |