| @@ -10,8 +10,9 @@ | ||
| 10 | 10 | $sample_toggle_text = $sample_form_is_on ? __( 'View my form', 'formidable' ) : __( 'View sample form', 'formidable' ); |
| 11 | 11 | $active_form_wrapper_params = array( |
| 12 | 12 | 'id' => 'frm_active_style_form', |
| 13 | 13 | ); |
| 14 | + | |
| 14 | 15 | if ( $sample_form_is_on ) { |
| 15 | 16 | $active_form_wrapper_params['class'] = 'frm_hidden'; |
| 16 | 17 | } |
| 17 | 18 | ?> |
| @@ -45,13 +46,13 @@ | ||
| 45 | 46 | ?> |
| 46 | 47 | </div> |
| 47 | 48 | <?php if ( 'edit' !== $view ) { ?> |
| 48 | 49 | <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-styles&frm_action=edit&form=' . $form->id ) ); ?>" id="frm_edit_style" class="frm_floating_style_button button frm-button-secondary frm-with-icon" tabindex="0" role="button"> |
| 49 | - <?php FrmAppHelper::icon_by_class( 'frmfont frm_pencil_icon', array( 'echo' => true ) ); ?> <?php esc_html_e( 'Edit style', 'formidable' ); ?> | |
| 50 | + <?php FrmAppHelper::icon_by_class( 'frmfont frm_pencil_icon' ); ?> <?php esc_html_e( 'Edit style', 'formidable' ); ?> | |
| 50 | 51 | </a> |
| 51 | 52 | <?php } ?> |
| 52 | 53 | <button id="frm_toggle_sample_form" class="frm_floating_style_button button frm-button-secondary frm-with-icon"> |
| 53 | - <?php FrmAppHelper::icon_by_class( 'frmfont frm_sample_form_icon', array( 'echo' => true ) ); ?> <span><?php echo esc_html( $sample_toggle_text ); ?></span> | |
| 54 | + <?php FrmAppHelper::icon_by_class( 'frmfont frm_sample_form_icon' ); ?> <span><?php echo esc_html( $sample_toggle_text ); ?></span> | |
| 54 | 55 | </button> |
| 55 | 56 | <?php |
| 56 | 57 | /** |
| 57 | 58 | * This is used in Pro to add a "Apply style" button to the preview. |