| @@ -5,42 +5,52 @@ | ||
| 5 | 5 | |
| 6 | 6 | if ( 'settings' === FrmAppHelper::simple_get( 'frm_action', 'sanitize_title' ) ) { |
| 7 | 7 | $class = 'frm_submit_settings_btn'; |
| 8 | 8 | } else { |
| 9 | - $class = 'frm_submit_' . ( ( isset( $values['ajax_load'] ) && $values['ajax_load'] ) ? '' : 'no_' ) . 'ajax'; | |
| 9 | + $class = 'frm_submit_' . ( ! empty( $values['ajax_load'] ) ? '' : 'no_' ) . 'ajax'; | |
| 10 | 10 | } |
| 11 | + | |
| 12 | +$preview_link = FrmFormsHelper::get_direct_link( $values['form_key'] ); | |
| 11 | 13 | ?> |
| 12 | - <button class="frm_submit_form button-primary frm-button-primary frm_button_submit <?php echo esc_attr( $class ); ?>" type="button" id="frm_submit_side_top" > | |
| 13 | - <?php esc_html_e( 'Update', 'formidable' ); ?> | |
| 14 | - </button> | |
| 14 | +<button class="frm_submit_form button-primary frm-button-primary frm_button_submit <?php echo esc_attr( $class ); ?>" type="button" id="frm_submit_side_top" > | |
| 15 | + <?php FrmFormsHelper::publish_box_button_text(); ?> | |
| 16 | +</button> | |
| 15 | 17 | |
| 16 | - <div id="frm-preview-action"> | |
| 17 | - <?php if ( ( ! isset( $hide_preview ) || ! $hide_preview ) && isset( $values['form_key'] ) ) { ?> | |
| 18 | - <div class="preview dropdown"> | |
| 19 | - <a href="#" id="frm-previewDrop" class="frm-dropdown-toggle button frm-button-secondary" role="button"> | |
| 20 | - <?php esc_html_e( 'Preview', 'formidable' ); ?> | |
| 21 | - <?php FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown6_icon frm_svg13', array( 'aria-hidden' => 'true' ) ); ?> | |
| 22 | - </a> | |
| 23 | - <ul class="frm-dropdown-menu frm-p-1 <?php echo esc_attr( is_rtl() ? 'dropdown-menu-left' : 'dropdown-menu-right' ); ?>" role="menu" aria-labelledby="frm-previewDrop"> | |
| 24 | - <li> | |
| 25 | - <a href="<?php echo esc_url( FrmFormsHelper::get_direct_link( $values['form_key'] ) ); ?>" target="_blank"> | |
| 26 | - <?php esc_html_e( 'On Blank Page', 'formidable' ); ?> | |
| 27 | - </a> | |
| 28 | - </li> | |
| 29 | - <li> | |
| 30 | - <a href="<?php echo esc_url( FrmFormsHelper::get_direct_link( $values['form_key'] ) . '&theme=1' ); ?>" target="_blank"> | |
| 31 | - <?php esc_html_e( 'In Theme', 'formidable' ); ?> | |
| 32 | - </a> | |
| 33 | - </li> | |
| 34 | - <?php if ( FrmAppHelper::show_landing_pages() ) { ?> | |
| 35 | - <li> | |
| 36 | - <?php FrmFormsController::landing_page_preview_option(); ?> | |
| 37 | - </li> | |
| 38 | - <?php } ?> | |
| 39 | - </ul> | |
| 40 | - </div> | |
| 41 | - <?php } ?> | |
| 42 | - </div> | |
| 18 | +<div id="frm-preview-action"> | |
| 19 | + <?php if ( empty( $hide_preview ) && isset( $values['form_key'] ) ) { ?> | |
| 20 | + <div class="preview dropdown"> | |
| 21 | + <a href="#" id="frm-previewDrop" class="frm-dropdown-toggle button frm-button-secondary" role="button"> | |
| 22 | + <?php esc_html_e( 'Preview', 'formidable' ); ?> | |
| 23 | + <?php FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown6_icon frm_svg13', array( 'aria-hidden' => 'true' ) ); ?> | |
| 24 | + </a> | |
| 25 | + <ul class="frm-dropdown-menu frm-p-1 <?php echo esc_attr( is_rtl() ? 'dropdown-menu-left' : 'dropdown-menu-right' ); ?>" role="menu" aria-labelledby="frm-previewDrop"> | |
| 26 | + <li> | |
| 27 | + <a href="<?php echo esc_url( $preview_link ); ?>" target="_blank"> | |
| 28 | + <?php esc_html_e( 'On Blank Page', 'formidable' ); ?> | |
| 29 | + </a> | |
| 30 | + </li> | |
| 31 | + <li> | |
| 32 | + <a href="<?php echo esc_url( $preview_link ); ?>&theme=1" target="_blank"> | |
| 33 | + <?php esc_html_e( 'In Theme', 'formidable' ); ?> | |
| 34 | + </a> | |
| 35 | + </li> | |
| 36 | + <li> | |
| 37 | + <a href="<?php echo esc_url( $preview_link ); ?>&testmode=1" target="_blank"> | |
| 38 | + <?php | |
| 39 | + esc_html_e( 'In Test Mode', 'formidable' ); | |
| 40 | + FrmAppHelper::show_pill_text(); | |
| 41 | + ?> | |
| 42 | + </a> | |
| 43 | + </li> | |
| 44 | + <li> | |
| 45 | + <?php FrmFormsController::landing_page_preview_option(); ?> | |
| 46 | + </li> | |
| 47 | + </ul> | |
| 48 | + </div> | |
| 49 | + <?php | |
| 50 | + }//end if | |
| 51 | + ?> | |
| 52 | +</div> | |
| 43 | 53 | |
| 44 | - <a id="frm-embed-action" href="#" role="button" class="frm_submit_form frm-button-tertiary frm_button_submit"> | |
| 45 | - <?php esc_html_e( 'Embed', 'formidable' ); ?> | |
| 46 | - </a> | |
| 54 | +<a id="frm-embed-action" href="#" role="button" class="frm_submit_form frm-button-tertiary frm_button_submit"> | |
| 55 | + <?php esc_html_e( 'Embed', 'formidable' ); ?> | |
| 56 | +</a> | |