PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.2
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-settings / form.php

form.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 5.2, at classes/views/frm-settings/form.php

67 lines 2.5 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 <div id="form_global_settings" class="frm_wrap">
7 <form name="frm_settings_form" method="post" class="frm_settings_form"
8 action="?page=formidable-settings<?php echo esc_html( $current ? '&amp;t=' . $current : '' ); ?>">
9 <div class="frm_page_container">
10
11 <?php
12 FrmAppHelper::get_admin_header(
13 array(
14 'label' => __( 'Settings', 'formidable' ),
15 'publish' => array( 'FrmSettingsController::save_button', array() ),
16 )
17 );
18 ?>
19
20 <div class="columns-2">
21 <div class="frm-right-panel">
22 <?php include( FrmAppHelper::plugin_path() . '/classes/views/frm-settings/tabs.php' ); ?>
23 </div>
24
25 <div id="post-body-content" class="frm-fields">
26
27 <?php require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); ?>
28 <input type="hidden" name="frm_action" value="process-form"/>
29 <input type="hidden" name="action" value="process-form"/>
30 <?php wp_nonce_field( 'process_form_nonce', 'process_form' ); ?>
31
32 <?php
33 foreach ( $sections as $section ) {
34 if ( $current === $section['anchor'] ) {
35 ?>
36 <style type="text/css">.<?php echo esc_attr( $section['anchor'] ); ?> {
37 display: block;
38 }</style>
39 <?php } ?>
40 <div id="<?php echo esc_attr( $section['anchor'] ); ?>"
41 class="<?php echo esc_attr( $section['anchor'] ); ?> tabs-panel <?php echo esc_attr( $current === $section['anchor'] ? 'frm_block' : 'frm_hidden' ); ?>">
42 <h2 class="frm-h2">
43 <?php echo FrmAppHelper::kses( $section['name'], array( 'span' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
44 </h2>
45 <?php if ( isset( $section['ajax'] ) ) { ?>
46 <div class="frm_ajax_settings_tab frm_<?php echo esc_attr( $section['anchor'] ); ?>_ajax">
47 <span class="frm-wait"></span>
48 </div>
49 <?php } else { ?>
50 <?php
51 if ( isset( $section['class'] ) ) {
52 call_user_func( array( $section['class'], $section['function'] ) );
53 } elseif ( isset( $section['function'] ) ) {
54 call_user_func( $section['function'] );
55 }
56 }
57 do_action( 'frm_' . $section['anchor'] . '_form', $frm_settings );
58 ?>
59 </div>
60 <?php } ?>
61 </div>
62 </div>
63 </div>
64 </form>
65 <?php do_action( 'frm_after_settings' ); ?>
66 </div>
67