PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.3
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.3
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 / styles / _sample_form.php

_sample_form.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.3, at classes/views/styles/_sample_form.php

102 lines 5.1 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 $pos_class = 'frm_' . ( $style->post_content['position'] == 'none' ? 'top' : ( $style->post_content['position'] == 'no_label' ? 'none' : $style->post_content['position'] ) ) . '_container';
7 ?>
8 <div class="frm_forms with_frm_style frm_style_<?php echo esc_attr( $style->post_name ); ?> <?php echo esc_attr( FrmAppHelper::pro_is_installed() ? 'frm_pro_form' : 'frm_lite_form' ); ?>">
9 <div class="frm-show-form">
10 <div class="frm_form_fields">
11 <fieldset>
12 <h3 class="frm_form_title"><?php esc_html_e( 'Form Title', 'formidable' ); ?></h3>
13
14 <div class="frm_description"><p><?php esc_html_e( 'This is an example form description for styling purposes.', 'formidable' ); ?></p></div>
15
16 <div class="frm_fields_container">
17 <div class="frm_form_field frm_half frm_first form-field <?php echo esc_attr( $pos_class ); ?>">
18 <label class="frm_primary_label"><?php esc_html_e( 'Text field', 'formidable' ); ?> <span class="frm_required">*</span></label>
19 <input type="text" value="<?php esc_attr_e( 'This is sample text', 'formidable' ); ?>" />
20 <div class="frm_description"><?php esc_html_e( 'A field with a description', 'formidable' ); ?></div>
21 </div>
22
23 <div class="frm_form_field form-field frm_half <?php echo esc_attr( $pos_class ); ?>">
24 <label for="field_wq7w5e" class="frm_primary_label"><?php esc_html_e( 'Drop-down Select', 'formidable' ); ?></label>
25
26 <select name="item_meta[1028]" id="field_wq7w5e" >
27 <option value=""> </option>
28 <option value="option-1"><?php esc_html_e( 'Option 1', 'formidable' ); ?></option>
29 </select>
30 </div>
31
32 <div class="frm_form_field form-field frm_third frm_first frm_blank_field <?php echo esc_attr( $pos_class ); ?>">
33 <label class="frm_primary_label"><?php esc_html_e( 'Text field with error', 'formidable' ); ?> <span class="frm_required">*</span></label>
34 <input type="text" value="<?php esc_attr_e( 'This is sample text', 'formidable' ); ?>" />
35 <div class="frm_error"><?php echo esc_html( $frm_settings->blank_msg ); ?></div>
36 </div>
37
38 <div class="frm_form_field frm_third form-field frm_focus_field <?php echo esc_attr( $pos_class ); ?>">
39 <label class="frm_primary_label"><?php esc_html_e( 'Text field in active state', 'formidable' ); ?> <span class="frm_required">*</span></label>
40 <input type="text" value="<?php esc_attr_e( 'Active state will be seen when the field is clicked', 'formidable' ); ?>" />
41 </div>
42
43 <div class="frm_form_field frm_third form-field <?php echo esc_attr( $pos_class ); ?>">
44 <label class="frm_primary_label"><?php esc_html_e( 'Read-only field', 'formidable' ); ?></label>
45 <input type="text" value="<?php esc_attr_e( 'This field is not editable', 'formidable' ); ?>" disabled="disabled" />
46 </div>
47
48 <div class="frm_form_field form-field frm_half frm_first <?php echo esc_attr( $pos_class ); ?> frm_lite_style">
49 <label class="frm_primary_label"><?php esc_html_e( 'Text Area', 'formidable' ); ?></label>
50 <textarea></textarea>
51 <div class="frm_description"><?php esc_html_e( 'Another field with a description', 'formidable' ); ?></div>
52 </div>
53
54 <div class="frm_form_field form-field frm_fourth <?php echo esc_attr( $pos_class ); ?> frm_lite_style">
55 <label class="frm_primary_label"><?php esc_html_e( 'Radio Buttons', 'formidable' ); ?></label>
56 <div class="frm_opt_container">
57 <div class="frm_radio"><label><input type="radio" name="item_meta[1029]" /><?php esc_html_e( 'Option 1', 'formidable' ); ?></label></div>
58 <div class="frm_radio"><label><input type="radio" name="item_meta[1029]" /><?php esc_html_e( 'Option 2', 'formidable' ); ?></label></div>
59 </div>
60 </div>
61
62 <div class="frm_form_field form-field frm_fourth <?php echo esc_attr( $pos_class ); ?> frm_lite_style">
63 <label class="frm_primary_label"><?php esc_html_e( 'Check Boxes', 'formidable' ); ?></label>
64 <div class="frm_opt_container">
65 <div class="frm_checkbox"><label><input type="checkbox" /><?php esc_html_e( 'Option 1', 'formidable' ); ?></label></div>
66 <div class="frm_checkbox"><label><input type="checkbox" /><?php esc_html_e( 'Option 2', 'formidable' ); ?></label></div>
67 </div>
68 </div>
69
70 <?php
71 /**
72 * @since 2.03
73 *
74 * @param array $args {
75 * @type WP_Post $style
76 * @type string $pos_class
77 * }
78 */
79 do_action( 'frm_sample_style_form', compact( 'style', 'pos_class' ) );
80 ?>
81
82 <div class="frm_submit">
83 <input type="submit" class="frm-opacity-100" value="<?php esc_attr_e( 'Submit', 'formidable' ); ?>" />
84 </div>
85
86 <div class="clear"></div>
87
88 <div class="frm_message">
89 <strong><?php esc_html_e( 'SAMPLE:', 'formidable' ); ?></strong>
90 <?php echo wp_kses_post( $frm_settings->success_msg ); ?>
91 </div>
92
93 <div class="frm_error_style">
94 <strong><?php esc_html_e( 'SAMPLE:', 'formidable' ); ?></strong>
95 <?php echo wp_kses_post( $frm_settings->invalid_msg ); ?>
96 </div>
97 </div>
98 </fieldset>
99 </div>
100 </div>
101 </div>
102