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-forms / settings.php

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

67 lines 2.2 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_settings_page" class="frm_wrap">
7 <form method="post" class="frm_form_settings">
8 <div class="frm_page_container">
9
10 <?php
11 FrmAppHelper::get_admin_header(
12 array(
13 'label' => __( 'Settings', 'formidable' ),
14 'form' => $form,
15 'hide_title' => true,
16 'close' => '?page=formidable',
17 'publish' => array( 'FrmFormsController::form_publish_button', compact( 'values' ) ),
18 )
19 );
20 ?>
21
22 <div class="columns-2">
23 <div class="frm-right-panel">
24 <?php include( FrmAppHelper::plugin_path() . '/classes/views/frm-settings/tabs.php' ); ?>
25 </div>
26
27 <div id="post-body-content" class="frm-fields">
28
29 <input type="hidden" name="id" id="form_id" value="<?php echo (int) $id; ?>" />
30 <input type="hidden" name="frm_action" value="update_settings" />
31 <?php wp_nonce_field( 'process_form_nonce', 'process_form' ); ?>
32
33 <div id="frm-categorydiv">
34 <div class="inside frm-inner-content">
35 <?php
36 // Add form messages.
37 require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' );
38 ?>
39
40 <?php foreach ( $sections as $section ) { ?>
41 <div id="<?php echo esc_attr( $section['id'] ); ?>" class="tabs-panel <?php echo ( $current === $section['anchor'] ) ? ' frm_block' : ' frm_hidden'; ?> <?php echo esc_attr( $section['anchor'] . ' frm_' . $section['anchor'] ); ?>">
42 <h2>
43 <?php echo esc_html( $section['title'] ); ?>
44 </h2>
45
46 <?php
47 if ( isset( $section['class'] ) ) {
48 call_user_func( array( $section['class'], $section['function'] ), $values );
49 } elseif ( ! isset( $section['data'] ) ) {
50 call_user_func( ( isset( $section['function'] ) ? $section['function'] : $section ), $values );
51 }
52 ?>
53 </div>
54 <?php } ?>
55
56 <?php do_action( 'frm_add_form_option_section', $values ); ?>
57 <div class="clear"></div>
58 <?php include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/mb_insert_fields.php' ); ?>
59 <?php do_action( 'frm_page_footer', array( 'table' => 'form-settings' ) ); ?>
60 </div>
61 </div>
62 </div>
63 </div>
64 </div>
65 </form>
66 </div>
67