PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / frm-forms / _publish_box.php

_publish_box.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More trunk, at classes/views/frm-forms/_publish_box.php

57 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5
6 if ( 'settings' === FrmAppHelper::simple_get( 'frm_action', 'sanitize_title' ) ) {
7 $class = 'frm_submit_settings_btn';
8 } else {
9 $class = 'frm_submit_' . ( ! empty( $values['ajax_load'] ) ? '' : 'no_' ) . 'ajax';
10 }
11
12 $preview_link = FrmFormsHelper::get_direct_link( $values['form_key'] );
13 ?>
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>
17
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>
53
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>
57