| @@ -20,11 +20,13 @@ | ||
| 20 | 20 | 'name' => 'frm_payment_section', |
| 21 | 21 | 'value' => $key, |
| 22 | 22 | 'data-frmshow' => "#frm_{$key}_settings_section", |
| 23 | 23 | ); |
| 24 | + | |
| 24 | 25 | if ( $is_active ) { |
| 25 | 26 | $input_params['checked'] = 'checked'; |
| 26 | 27 | } |
| 28 | + | |
| 27 | 29 | $other_section_selectors = array_map( |
| 28 | 30 | function ( $section ) { |
| 29 | 31 | return "#frm_{$section}_settings_section"; |
| 30 | 32 | }, |
| @@ -41,9 +43,9 @@ | ||
| 41 | 43 | ); |
| 42 | 44 | ?> |
| 43 | 45 | <input <?php FrmAppHelper::array_to_html_params( $input_params, true ); ?> /> |
| 44 | 46 | <label <?php FrmAppHelper::array_to_html_params( $label_params, true ); ?>> |
| 45 | - <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_' . $key . '_full_icon' ); ?> | |
| 47 | + <?php FrmAppHelper::icon_by_class( 'frmfont frm_' . $key . '_full_icon' ); ?> | |
| 46 | 48 | <span class="screen-reader-text"><?php echo esc_html( $name ); ?></span> |
| 47 | 49 | </label> |
| 48 | 50 | <?php |
| 49 | 51 | }//end foreach |
| @@ -73,9 +75,9 @@ | ||
| 73 | 75 | <?php |
| 74 | 76 | if ( isset( $section['class'] ) ) { |
| 75 | 77 | call_user_func( array( $section['class'], $section['function'] ) ); |
| 76 | 78 | } else { |
| 77 | - call_user_func( ( $section['function'] ?? $section ) ); | |
| 79 | + call_user_func( $section['function'] ?? $section ); | |
| 78 | 80 | } |
| 79 | 81 | ?> |
| 80 | 82 | </div> |
| 81 | 83 | <?php |