Version Description
- Send plugin updates through formidablepro.com
- Update Swedish translation
- Use media_buttons hook instead of deprecated media_buttons_context hook
- Unit test updates
- Fix Portuguese translation error
- Allow more characters in field description
- Prevent plugin styling conflict with user roles dropdown
- Fix installing when the plugin is activated
- Get rid of ambiguity in FrmField::getAll function
- Fix the plugin url when used in the mu-plugins folder
- Make selected values show on form builder page before refresh
- Minor styling changes to frm_total class
- Update stylesheet after import
- Make long text wrap in Chrome cb/radio fields
- Add 'compact' option to Recaptcha
- Pro Features:
- Fix conditional logic bug
- Fix calculations in repeating sections with visibility admin
- Fix dynamic list fields in repeating sections
- Fix JS error when removing row w/ read only field
- Add JavaScript hook for removeRow function
- Fix error for ordering view by time
- Fix error with no posted values in embedded forms
- Escape CSV cells with ' if they start with
Download this release
Release Info
Developer | sswells |
Plugin | Formidable Forms – Form Builder for WordPress |
Version | 2.0.15 |
Comparing to | |
See all releases |
Code changes from version 2.0.14 to 2.0.15
- classes/controllers/FrmAddonsController.php +1 -1
- classes/controllers/FrmFieldsController.php +1 -0
- classes/controllers/FrmFormActionsController.php +2 -2
- classes/controllers/FrmFormsController.php +16 -10
- classes/controllers/FrmHooksController.php +2 -2
- classes/controllers/FrmStylesController.php +6 -6
- classes/helpers/FrmAppHelper.php +5 -5
- classes/helpers/FrmFieldsHelper.php +7 -3
- classes/helpers/FrmFormsHelper.php +3 -3
- classes/helpers/FrmXMLHelper.php +11 -0
- classes/models/FrmAddon.php +1 -1
- classes/models/FrmDb.php +1 -1
- classes/models/FrmField.php +41 -24
- classes/models/FrmForm.php +1 -1
- classes/views/frm-forms/add_field.php +15 -3
- classes/views/frm-forms/settings.php +2 -2
- classes/views/styles/_sample_form.php +9 -9
- classes/views/xml/default-templates.xml +2 -2
- css/_single_theme.css.php +600 -592
- css/custom_theme.css.php +1 -0
- css/frm_admin.css +1 -1
- formidable.php +1 -1
- js/formidable.js +91 -26
- js/formidable.min.js +74 -2
- languages/formidable-en_US.po +438 -419
- languages/formidable-pt_BR.po +1 -1
- languages/formidable-sv_SE.mo +0 -0
- languages/formidable-sv_SE.po +7008 -6478
- readme.txt +38 -1
classes/controllers/FrmAddonsController.php
CHANGED
@@ -5,7 +5,7 @@ class FrmAddonsController {
|
|
5 |
public static function show_addons() {
|
6 |
$plugins = apply_filters( 'frm_installed_addons', array() );
|
7 |
if ( empty( $plugins ) ) {
|
8 |
-
_e( 'There are
|
9 |
return;
|
10 |
}
|
11 |
|
5 |
public static function show_addons() {
|
6 |
$plugins = apply_filters( 'frm_installed_addons', array() );
|
7 |
if ( empty( $plugins ) ) {
|
8 |
+
_e( 'There are no plugins on your site that require a license', 'formidable' );
|
9 |
return;
|
10 |
}
|
11 |
|
classes/controllers/FrmFieldsController.php
CHANGED
@@ -508,6 +508,7 @@ class FrmFieldsController {
|
|
508 |
$display['required'] = false;
|
509 |
$display['invalid'] = true;
|
510 |
$display['default_blank'] = false;
|
|
|
511 |
break;
|
512 |
case 'radio':
|
513 |
$display['default_blank'] = false;
|
508 |
$display['required'] = false;
|
509 |
$display['invalid'] = true;
|
510 |
$display['default_blank'] = false;
|
511 |
+
$display['captcha_size'] = true;
|
512 |
break;
|
513 |
case 'radio':
|
514 |
$display['default_blank'] = false;
|
classes/controllers/FrmFormActionsController.php
CHANGED
@@ -15,8 +15,8 @@ class FrmFormActionsController {
|
|
15 |
'show_in_menu' => true,
|
16 |
'capability_type' => 'page',
|
17 |
'supports' => array(
|
18 |
-
|
19 |
-
|
20 |
),
|
21 |
'has_archive' => false,
|
22 |
) );
|
15 |
'show_in_menu' => true,
|
16 |
'capability_type' => 'page',
|
17 |
'supports' => array(
|
18 |
+
'title', 'editor', 'excerpt', 'custom-fields',
|
19 |
+
'page-attributes',
|
20 |
),
|
21 |
'has_archive' => false,
|
22 |
) );
|
classes/controllers/FrmFormsController.php
CHANGED
@@ -229,7 +229,7 @@ class FrmFormsController {
|
|
229 |
if ( $form ) {
|
230 |
return self::get_edit_vars( $form, array(), $message, true );
|
231 |
} else {
|
232 |
-
return self::display_forms_list($params, __( 'There was a problem creating new template.', 'formidable' ));
|
233 |
}
|
234 |
}
|
235 |
|
@@ -407,13 +407,18 @@ class FrmFormsController {
|
|
407 |
return FrmForm::scheduled_delete( $delete_timestamp );
|
408 |
}
|
409 |
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
|
|
|
|
|
|
|
|
|
|
417 |
|
418 |
public static function insert_form_popup() {
|
419 |
$page = basename( FrmAppHelper::get_server_value( 'PHP_SELF' ) );
|
@@ -875,8 +880,9 @@ class FrmFormsController {
|
|
875 |
} else {
|
876 |
$vars = FrmAppHelper::json_to_array($json_vars);
|
877 |
$action = $vars[ $action ];
|
|
|
878 |
$_REQUEST = array_merge( $_REQUEST, $vars );
|
879 |
-
|
880 |
}
|
881 |
} else {
|
882 |
$action = FrmAppHelper::get_param( $action, '', 'get', 'sanitize_title' );
|
@@ -973,7 +979,7 @@ class FrmFormsController {
|
|
973 |
'title' => '<span class="ab-icon"></span><span class="ab-label">' . __( 'Edit Forms', 'formidable' ) . '</span>',
|
974 |
'href' => admin_url( 'admin.php?page=formidable&frm_action=edit&id='. current( array_keys( $actions ) ) ),
|
975 |
'meta' => array(
|
976 |
-
|
977 |
),
|
978 |
) );
|
979 |
|
229 |
if ( $form ) {
|
230 |
return self::get_edit_vars( $form, array(), $message, true );
|
231 |
} else {
|
232 |
+
return self::display_forms_list($params, __( 'There was a problem creating the new template.', 'formidable' ));
|
233 |
}
|
234 |
}
|
235 |
|
407 |
return FrmForm::scheduled_delete( $delete_timestamp );
|
408 |
}
|
409 |
|
410 |
+
/**
|
411 |
+
* Inserts Formidable button
|
412 |
+
* Hook exists since 2.5.0
|
413 |
+
*
|
414 |
+
* @since 2.0.15
|
415 |
+
*/
|
416 |
+
public static function insert_form_button() {
|
417 |
+
if ( current_user_can('frm_view_forms') ) {
|
418 |
+
$content = '<a href="#TB_inline?width=50&height=50&inlineId=frm_insert_form" class="thickbox button add_media frm_insert_form" title="' . esc_attr__( 'Add forms and content', 'formidable' ) . '"><span class="frm-buttons-icon wp-media-buttons-icon"></span> Formidable</a>';
|
419 |
+
echo wp_kses_post( $content );
|
420 |
+
}
|
421 |
+
}
|
422 |
|
423 |
public static function insert_form_popup() {
|
424 |
$page = basename( FrmAppHelper::get_server_value( 'PHP_SELF' ) );
|
880 |
} else {
|
881 |
$vars = FrmAppHelper::json_to_array($json_vars);
|
882 |
$action = $vars[ $action ];
|
883 |
+
unset( $_REQUEST['frm_compact_fields'], $_POST['frm_compact_fields'] );
|
884 |
$_REQUEST = array_merge( $_REQUEST, $vars );
|
885 |
+
$_POST = array_merge( $_POST, $_REQUEST );
|
886 |
}
|
887 |
} else {
|
888 |
$action = FrmAppHelper::get_param( $action, '', 'get', 'sanitize_title' );
|
979 |
'title' => '<span class="ab-icon"></span><span class="ab-label">' . __( 'Edit Forms', 'formidable' ) . '</span>',
|
980 |
'href' => admin_url( 'admin.php?page=formidable&frm_action=edit&id='. current( array_keys( $actions ) ) ),
|
981 |
'meta' => array(
|
982 |
+
'title' => __( 'Edit Forms', 'formidable' ),
|
983 |
),
|
984 |
) );
|
985 |
|
classes/controllers/FrmHooksController.php
CHANGED
@@ -89,7 +89,7 @@ class FrmHooksController {
|
|
89 |
add_action( 'admin_init', 'FrmAppController::admin_init', 11 );
|
90 |
add_filter( 'admin_body_class', 'FrmAppController::wp_admin_body_class' );
|
91 |
add_filter( 'plugin_action_links_' . FrmAppHelper::plugin_folder() . '/formidable.php', 'FrmAppController::settings_link' );
|
92 |
-
|
93 |
|
94 |
// Entries Controller
|
95 |
add_action( 'admin_menu', 'FrmEntriesController::menu', 12 );
|
@@ -114,7 +114,7 @@ class FrmHooksController {
|
|
114 |
|
115 |
add_filter( 'set-screen-option', 'FrmFormsController::save_per_page', 10, 3 );
|
116 |
add_action( 'admin_footer', 'FrmFormsController::insert_form_popup' );
|
117 |
-
|
118 |
|
119 |
// Forms Model
|
120 |
add_action( 'frm_after_duplicate_form', 'FrmForm::after_duplicate', 10, 2 );
|
89 |
add_action( 'admin_init', 'FrmAppController::admin_init', 11 );
|
90 |
add_filter( 'admin_body_class', 'FrmAppController::wp_admin_body_class' );
|
91 |
add_filter( 'plugin_action_links_' . FrmAppHelper::plugin_folder() . '/formidable.php', 'FrmAppController::settings_link' );
|
92 |
+
register_activation_hook( FrmAppHelper::plugin_folder() . '/formidable.php', 'FrmAppController::activation_install' );
|
93 |
|
94 |
// Entries Controller
|
95 |
add_action( 'admin_menu', 'FrmEntriesController::menu', 12 );
|
114 |
|
115 |
add_filter( 'set-screen-option', 'FrmFormsController::save_per_page', 10, 3 );
|
116 |
add_action( 'admin_footer', 'FrmFormsController::insert_form_popup' );
|
117 |
+
add_action( 'media_buttons', 'FrmFormsController::insert_form_button' );
|
118 |
|
119 |
// Forms Model
|
120 |
add_action( 'frm_after_duplicate_form', 'FrmForm::after_duplicate', 10, 2 );
|
classes/controllers/FrmStylesController.php
CHANGED
@@ -26,15 +26,15 @@ class FrmStylesController {
|
|
26 |
'read_private_posts' => 'read_private_posts',
|
27 |
),
|
28 |
'supports' => array(
|
29 |
-
|
30 |
),
|
31 |
'has_archive' => false,
|
32 |
'labels' => array(
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
'edit_item' => __( 'Edit Style', 'formidable' ),
|
39 |
),
|
40 |
) );
|
26 |
'read_private_posts' => 'read_private_posts',
|
27 |
),
|
28 |
'supports' => array(
|
29 |
+
'title',
|
30 |
),
|
31 |
'has_archive' => false,
|
32 |
'labels' => array(
|
33 |
+
'name' => __( 'Styles', 'formidable' ),
|
34 |
+
'singular_name' => __( 'Style', 'formidable' ),
|
35 |
+
'menu_name' => __( 'Style', 'formidable' ),
|
36 |
+
'edit' => __( 'Edit' ),
|
37 |
+
'add_new_item' => __( 'Create a New Style', 'formidable' ),
|
38 |
'edit_item' => __( 'Edit Style', 'formidable' ),
|
39 |
),
|
40 |
) );
|
classes/helpers/FrmAppHelper.php
CHANGED
@@ -4,13 +4,13 @@ if ( ! defined('ABSPATH') ) {
|
|
4 |
}
|
5 |
|
6 |
class FrmAppHelper {
|
7 |
-
public static $db_version =
|
8 |
public static $pro_db_version = 30;
|
9 |
|
10 |
/**
|
11 |
* @since 2.0
|
12 |
*/
|
13 |
-
public static $plug_version = '2.0.
|
14 |
|
15 |
/**
|
16 |
* @since 1.07.02
|
@@ -32,7 +32,7 @@ class FrmAppHelper {
|
|
32 |
|
33 |
public static function plugin_url() {
|
34 |
//prevously FRM_URL constant
|
35 |
-
return plugins_url( '', self::
|
36 |
}
|
37 |
|
38 |
public static function relative_plugin_url() {
|
@@ -1030,7 +1030,7 @@ class FrmAppHelper {
|
|
1030 |
$opt_defaults = FrmFieldsHelper::get_default_field_opts($field_array['type'], $field, true);
|
1031 |
|
1032 |
foreach ( $opt_defaults as $opt => $default_opt ) {
|
1033 |
-
$field_array[ $opt ] = ( $post_values && isset( $post_values['field_options']
|
1034 |
if ( $opt == 'blank' && $field_array[ $opt ] == '' ) {
|
1035 |
$field_array[ $opt ] = $args['frm_settings']->blank_msg;
|
1036 |
} else if ( $opt == 'invalid' && $field_array[ $opt ] == '' ) {
|
@@ -1723,7 +1723,7 @@ class FrmAppHelper {
|
|
1723 |
wp_localize_script( 'formidable_admin', 'frm_admin_js', array(
|
1724 |
'confirm_uninstall' => __( 'Are you sure you want to do this? Clicking OK will delete all forms, form data, and all other Formidable data. There is no Undo.', 'formidable' ),
|
1725 |
'desc' => __( '(Click to add description)', 'formidable' ),
|
1726 |
-
'blank' => __( '(
|
1727 |
'no_label' => __( '(no label)', 'formidable' ),
|
1728 |
'saving' => esc_attr( __( 'Saving', 'formidable' ) ),
|
1729 |
'saved' => esc_attr( __( 'Saved', 'formidable' ) ),
|
4 |
}
|
5 |
|
6 |
class FrmAppHelper {
|
7 |
+
public static $db_version = 27; //version of the database we are moving to
|
8 |
public static $pro_db_version = 30;
|
9 |
|
10 |
/**
|
11 |
* @since 2.0
|
12 |
*/
|
13 |
+
public static $plug_version = '2.0.15';
|
14 |
|
15 |
/**
|
16 |
* @since 1.07.02
|
32 |
|
33 |
public static function plugin_url() {
|
34 |
//prevously FRM_URL constant
|
35 |
+
return plugins_url( '', self::plugin_path() .'/formidable.php' );
|
36 |
}
|
37 |
|
38 |
public static function relative_plugin_url() {
|
1030 |
$opt_defaults = FrmFieldsHelper::get_default_field_opts($field_array['type'], $field, true);
|
1031 |
|
1032 |
foreach ( $opt_defaults as $opt => $default_opt ) {
|
1033 |
+
$field_array[ $opt ] = ( $post_values && isset( $post_values['field_options'][ $opt .'_'. $field->id ] ) ) ? maybe_unserialize( $post_values['field_options'][ $opt .'_'. $field->id ] ) : ( isset( $field->field_options[ $opt ] ) ? $field->field_options[ $opt ] : $default_opt );
|
1034 |
if ( $opt == 'blank' && $field_array[ $opt ] == '' ) {
|
1035 |
$field_array[ $opt ] = $args['frm_settings']->blank_msg;
|
1036 |
} else if ( $opt == 'invalid' && $field_array[ $opt ] == '' ) {
|
1723 |
wp_localize_script( 'formidable_admin', 'frm_admin_js', array(
|
1724 |
'confirm_uninstall' => __( 'Are you sure you want to do this? Clicking OK will delete all forms, form data, and all other Formidable data. There is no Undo.', 'formidable' ),
|
1725 |
'desc' => __( '(Click to add description)', 'formidable' ),
|
1726 |
+
'blank' => __( '(Blank)', 'formidable' ),
|
1727 |
'no_label' => __( '(no label)', 'formidable' ),
|
1728 |
'saving' => esc_attr( __( 'Saving', 'formidable' ) ),
|
1729 |
'saved' => esc_attr( __( 'Saved', 'formidable' ) ),
|
classes/helpers/FrmFieldsHelper.php
CHANGED
@@ -122,7 +122,7 @@ class FrmFieldsHelper {
|
|
122 |
'size' => '', 'max' => '', 'label' => '', 'blank' => '',
|
123 |
'required_indicator' => '*', 'invalid' => '', 'separate_value' => 0,
|
124 |
'clear_on_focus' => 0, 'default_blank' => 0, 'classes' => '',
|
125 |
-
'custom_html' => '',
|
126 |
);
|
127 |
|
128 |
if ( $limit ) {
|
@@ -368,7 +368,7 @@ DEFAULT_HTML;
|
|
368 |
|
369 |
//Add classes to inline confirmation field (if it doesn't already have classes set)
|
370 |
if ( isset( $field['conf_field'] ) && $field['conf_field'] == 'inline' && ! $field['classes'] ) {
|
371 |
-
$error_class .= '
|
372 |
}
|
373 |
|
374 |
//Add class if field includes other option
|
@@ -477,7 +477,7 @@ DEFAULT_HTML;
|
|
477 |
wp_enqueue_script('recaptcha-api');
|
478 |
|
479 |
?>
|
480 |
-
<div id="field_<?php echo esc_attr( $field['field_key'] ) ?>" class="g-recaptcha" data-sitekey="<?php echo esc_attr( $frm_settings->pubkey ) ?>"></div>
|
481 |
<?php
|
482 |
}
|
483 |
|
@@ -1179,6 +1179,10 @@ DEFAULT_HTML;
|
|
1179 |
$replace_with[] = '[if '. $new .' ';
|
1180 |
$replace[] = '[/if '. $old .']';
|
1181 |
$replace_with[] = '[/if '. $new .']';
|
|
|
|
|
|
|
|
|
1182 |
$replace[] = '['. $old .']';
|
1183 |
$replace_with[] = '['. $new .']';
|
1184 |
$replace[] = '['. $old .' ';
|
122 |
'size' => '', 'max' => '', 'label' => '', 'blank' => '',
|
123 |
'required_indicator' => '*', 'invalid' => '', 'separate_value' => 0,
|
124 |
'clear_on_focus' => 0, 'default_blank' => 0, 'classes' => '',
|
125 |
+
'custom_html' => '', 'captcha_size' => 'default',
|
126 |
);
|
127 |
|
128 |
if ( $limit ) {
|
368 |
|
369 |
//Add classes to inline confirmation field (if it doesn't already have classes set)
|
370 |
if ( isset( $field['conf_field'] ) && $field['conf_field'] == 'inline' && ! $field['classes'] ) {
|
371 |
+
$error_class .= ' frm_first frm_half';
|
372 |
}
|
373 |
|
374 |
//Add class if field includes other option
|
477 |
wp_enqueue_script('recaptcha-api');
|
478 |
|
479 |
?>
|
480 |
+
<div id="field_<?php echo esc_attr( $field['field_key'] ) ?>" class="g-recaptcha" data-sitekey="<?php echo esc_attr( $frm_settings->pubkey ) ?>" data-size="<?php echo esc_attr( $field['captcha_size'] ) ?>"></div>
|
481 |
<?php
|
482 |
}
|
483 |
|
1179 |
$replace_with[] = '[if '. $new .' ';
|
1180 |
$replace[] = '[/if '. $old .']';
|
1181 |
$replace_with[] = '[/if '. $new .']';
|
1182 |
+
$replace[] = '[foreach '. $old .']';
|
1183 |
+
$replace_with[] = '[foreach '. $new .']';
|
1184 |
+
$replace[] = '[/foreach '. $old .']';
|
1185 |
+
$replace_with[] = '[/foreach '. $new .']';
|
1186 |
$replace[] = '['. $old .']';
|
1187 |
$replace_with[] = '['. $new .']';
|
1188 |
$replace[] = '['. $old .' ';
|
classes/helpers/FrmFormsHelper.php
CHANGED
@@ -397,9 +397,9 @@ BEFORE_HTML;
|
|
397 |
$html = str_replace('[frmurl]', FrmFieldsHelper::dynamic_default_values( 'frmurl' ), $html);
|
398 |
|
399 |
if ( strpos( $html, '[button_label]' ) ) {
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
}
|
404 |
|
405 |
$html = apply_filters('frm_form_replace_shortcodes', $html, $form, $values);
|
397 |
$html = str_replace('[frmurl]', FrmFieldsHelper::dynamic_default_values( 'frmurl' ), $html);
|
398 |
|
399 |
if ( strpos( $html, '[button_label]' ) ) {
|
400 |
+
add_filter( 'frm_submit_button', 'FrmFormsHelper::submit_button_label', 1 );
|
401 |
+
$replace_with = apply_filters( 'frm_submit_button', $title, $form );
|
402 |
+
$html = str_replace( '[button_label]', $replace_with, $html );
|
403 |
}
|
404 |
|
405 |
$html = apply_filters('frm_form_replace_shortcodes', $html, $form, $values);
|
classes/helpers/FrmXMLHelper.php
CHANGED
@@ -485,6 +485,8 @@ class FrmXMLHelper {
|
|
485 |
$imported['posts'][ (int) $old_id ] = $post_id;
|
486 |
}
|
487 |
|
|
|
|
|
488 |
return $imported;
|
489 |
}
|
490 |
|
@@ -638,6 +640,15 @@ class FrmXMLHelper {
|
|
638 |
}
|
639 |
}
|
640 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
641 |
/**
|
642 |
* @param string $message
|
643 |
*/
|
485 |
$imported['posts'][ (int) $old_id ] = $post_id;
|
486 |
}
|
487 |
|
488 |
+
self::maybe_update_stylesheet( $imported );
|
489 |
+
|
490 |
return $imported;
|
491 |
}
|
492 |
|
640 |
}
|
641 |
}
|
642 |
|
643 |
+
private static function maybe_update_stylesheet( $imported ) {
|
644 |
+
if ( ( isset( $imported['imported']['styles'] ) && ! empty( $imported['imported']['styles'] ) ) || ( isset( $imported['updated']['styles'] ) && ! empty( $imported['updated']['styles'] ) ) ) {
|
645 |
+
if ( is_admin() && function_exists( 'get_filesystem_method' ) ) {
|
646 |
+
$frm_style = new FrmStyle();
|
647 |
+
$frm_style->update( 'default' );
|
648 |
+
}
|
649 |
+
}
|
650 |
+
}
|
651 |
+
|
652 |
/**
|
653 |
* @param string $message
|
654 |
*/
|
classes/models/FrmAddon.php
CHANGED
@@ -5,7 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
5 |
}
|
6 |
|
7 |
class FrmAddon {
|
8 |
-
public $store_url = 'http://
|
9 |
public $plugin_file;
|
10 |
public $plugin_name;
|
11 |
public $plugin_slug;
|
5 |
}
|
6 |
|
7 |
class FrmAddon {
|
8 |
+
public $store_url = 'http://formidablepro.com';
|
9 |
public $plugin_file;
|
10 |
public $plugin_name;
|
11 |
public $plugin_slug;
|
classes/models/FrmDb.php
CHANGED
@@ -79,7 +79,7 @@ class FrmDb {
|
|
79 |
id int(11) NOT NULL auto_increment,
|
80 |
field_key varchar(100) default NULL,
|
81 |
name text default NULL,
|
82 |
-
description
|
83 |
type text default NULL,
|
84 |
default_value longtext default NULL,
|
85 |
options longtext default NULL,
|
79 |
id int(11) NOT NULL auto_increment,
|
80 |
field_key varchar(100) default NULL,
|
81 |
name text default NULL,
|
82 |
+
description longtext default NULL,
|
83 |
type text default NULL,
|
84 |
default_value longtext default NULL,
|
85 |
options longtext default NULL,
|
classes/models/FrmField.php
CHANGED
@@ -109,7 +109,10 @@ class FrmField {
|
|
109 |
|
110 |
public static function duplicate( $old_form_id, $form_id, $copy_keys = false, $blog_id = false ) {
|
111 |
global $frm_duplicate_ids;
|
112 |
-
|
|
|
|
|
|
|
113 |
foreach ( (array) $fields as $field ) {
|
114 |
$new_key = ($copy_keys) ? $field->field_key : '';
|
115 |
if ( $copy_keys && substr($field->field_key, -1) == 2 ) {
|
@@ -221,8 +224,10 @@ class FrmField {
|
|
221 |
|
222 |
public static function delete_form_transient( $form_id ) {
|
223 |
$form_id = absint( $form_id );
|
224 |
-
delete_transient( 'frm_form_fields_'. $form_id .'
|
225 |
-
delete_transient( 'frm_form_fields_'. $form_id .'
|
|
|
|
|
226 |
|
227 |
global $wpdb;
|
228 |
$wpdb->query( $wpdb->prepare( 'DELETE FROM '. $wpdb->options .' WHERE option_name LIKE %s OR option_name LIKE %s OR option_name LIKE %s OR option_name LIKE %s', '_transient_timeout_frm_form_fields_' . $form_id .'ex%', '_transient_frm_form_fields_' . $form_id .'ex%', '_transient_timeout_frm_form_fields_' . $form_id .'in%', '_transient_frm_form_fields_' . $form_id .'in%' ) );
|
@@ -296,7 +301,7 @@ class FrmField {
|
|
296 |
return array();
|
297 |
}
|
298 |
|
299 |
-
$results = self::get_fields_from_transients( $form_id, $inc_sub );
|
300 |
if ( ! empty( $results ) ) {
|
301 |
$fields = array();
|
302 |
$count = 0;
|
@@ -322,19 +327,22 @@ class FrmField {
|
|
322 |
}
|
323 |
|
324 |
self::$use_cache = false;
|
325 |
-
|
|
|
|
|
|
|
326 |
self::$use_cache = true;
|
327 |
self::include_sub_fields($results, $inc_sub, $type);
|
328 |
|
329 |
return $results;
|
330 |
}
|
331 |
|
332 |
-
public static function get_all_for_form( $form_id, $limit = '', $
|
333 |
if ( ! (int) $form_id ) {
|
334 |
return array();
|
335 |
}
|
336 |
|
337 |
-
$results = self::get_fields_from_transients( $form_id, $
|
338 |
if ( ! empty( $results ) ) {
|
339 |
if ( empty($limit) ) {
|
340 |
return $results;
|
@@ -354,21 +362,37 @@ class FrmField {
|
|
354 |
|
355 |
self::$use_cache = false;
|
356 |
|
357 |
-
|
358 |
-
|
|
|
|
|
359 |
self::$use_cache = true;
|
360 |
|
361 |
-
self::include_sub_fields( $results, $
|
362 |
|
363 |
if ( empty($limit) ) {
|
364 |
-
self::set_field_transient( $results, $form_id, $
|
365 |
}
|
366 |
|
367 |
return $results;
|
368 |
}
|
369 |
|
370 |
-
|
371 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
372 |
return;
|
373 |
}
|
374 |
|
@@ -431,13 +455,6 @@ class FrmField {
|
|
431 |
$query_type = ( $limit == ' LIMIT 1' || $limit == 1 ) ? 'row' : 'results';
|
432 |
|
433 |
if ( is_array($where) ) {
|
434 |
-
if ( isset( $where['fi.form_id'] ) && count( $where ) == 1 ) {
|
435 |
-
// add sub fields to query
|
436 |
-
$form_id = $where['fi.form_id'];
|
437 |
-
$where[] = array( 'or' => 1, 'fi.form_id' => $form_id, 'fr.parent_form_id' => $form_id );
|
438 |
-
unset( $where['fi.form_id'] );
|
439 |
-
}
|
440 |
-
|
441 |
$results = FrmDb::get_var( $table_name . ' fi LEFT OUTER JOIN ' . $form_table_name . ' fr ON fi.form_id=fr.id', $where, 'fi.*, fr.name as form_name', array( 'order_by' => $order_by, 'limit' => $limit ), '', $query_type );
|
442 |
} else {
|
443 |
// if the query is not an array, then it has already been prepared
|
@@ -494,9 +511,9 @@ class FrmField {
|
|
494 |
* We'll break them into groups of 200
|
495 |
* @since 2.0.1
|
496 |
*/
|
497 |
-
private static function get_fields_from_transients( $form_id, $
|
498 |
$fields = array();
|
499 |
-
self::get_next_transient( $fields, 'frm_form_fields_' . $form_id . $
|
500 |
return $fields;
|
501 |
}
|
502 |
|
@@ -523,8 +540,8 @@ class FrmField {
|
|
523 |
* Save the transients in chunks for large forms
|
524 |
* @since 2.0.1
|
525 |
*/
|
526 |
-
private static function set_field_transient( &$fields, $form_id, $
|
527 |
-
$base_name = 'frm_form_fields_' . $form_id . $
|
528 |
$field_chunks = array_chunk( $fields, self::$transient_size );
|
529 |
|
530 |
foreach ( $field_chunks as $field ) {
|
109 |
|
110 |
public static function duplicate( $old_form_id, $form_id, $copy_keys = false, $blog_id = false ) {
|
111 |
global $frm_duplicate_ids;
|
112 |
+
|
113 |
+
$where = array( array( 'or' => 1, 'fi.form_id' => $old_form_id, 'fr.parent_form_id' => $old_form_id ) );
|
114 |
+
$fields = self::getAll( $where, 'field_order', '', $blog_id );
|
115 |
+
|
116 |
foreach ( (array) $fields as $field ) {
|
117 |
$new_key = ($copy_keys) ? $field->field_key : '';
|
118 |
if ( $copy_keys && substr($field->field_key, -1) == 2 ) {
|
224 |
|
225 |
public static function delete_form_transient( $form_id ) {
|
226 |
$form_id = absint( $form_id );
|
227 |
+
delete_transient( 'frm_form_fields_'. $form_id .'excludeinclude' );
|
228 |
+
delete_transient( 'frm_form_fields_'. $form_id .'includeinclude' );
|
229 |
+
delete_transient( 'frm_form_fields_'. $form_id .'includeexclude' );
|
230 |
+
delete_transient( 'frm_form_fields_'. $form_id .'excludeexclude' );
|
231 |
|
232 |
global $wpdb;
|
233 |
$wpdb->query( $wpdb->prepare( 'DELETE FROM '. $wpdb->options .' WHERE option_name LIKE %s OR option_name LIKE %s OR option_name LIKE %s OR option_name LIKE %s', '_transient_timeout_frm_form_fields_' . $form_id .'ex%', '_transient_frm_form_fields_' . $form_id .'ex%', '_transient_timeout_frm_form_fields_' . $form_id .'in%', '_transient_frm_form_fields_' . $form_id .'in%' ) );
|
301 |
return array();
|
302 |
}
|
303 |
|
304 |
+
$results = self::get_fields_from_transients( $form_id, array( 'inc_embed' => $inc_sub, 'inc_repeat' => $inc_sub ) );
|
305 |
if ( ! empty( $results ) ) {
|
306 |
$fields = array();
|
307 |
$count = 0;
|
327 |
}
|
328 |
|
329 |
self::$use_cache = false;
|
330 |
+
|
331 |
+
$where = array( 'fi.form_id' => (int) $form_id, 'fi.type' => $type );
|
332 |
+
self::maybe_include_repeating_fields( $inc_sub, $where );
|
333 |
+
$results = self::getAll( $where, 'field_order', $limit );
|
334 |
self::$use_cache = true;
|
335 |
self::include_sub_fields($results, $inc_sub, $type);
|
336 |
|
337 |
return $results;
|
338 |
}
|
339 |
|
340 |
+
public static function get_all_for_form( $form_id, $limit = '', $inc_embed = 'exclude', $inc_repeat = 'include' ) {
|
341 |
if ( ! (int) $form_id ) {
|
342 |
return array();
|
343 |
}
|
344 |
|
345 |
+
$results = self::get_fields_from_transients( $form_id, array( 'inc_embed' => $inc_embed, 'inc_repeat' => $inc_repeat ) );
|
346 |
if ( ! empty( $results ) ) {
|
347 |
if ( empty($limit) ) {
|
348 |
return $results;
|
362 |
|
363 |
self::$use_cache = false;
|
364 |
|
365 |
+
$where = array( 'fi.form_id' => absint( $form_id ) );
|
366 |
+
self::maybe_include_repeating_fields( $inc_repeat, $where );
|
367 |
+
$results = self::getAll( $where, 'field_order', $limit );
|
368 |
+
|
369 |
self::$use_cache = true;
|
370 |
|
371 |
+
self::include_sub_fields( $results, $inc_embed, 'all' );
|
372 |
|
373 |
if ( empty($limit) ) {
|
374 |
+
self::set_field_transient( $results, $form_id, 0, array( 'inc_embed' => $inc_embed, 'inc_repeat' => $inc_repeat ) );
|
375 |
}
|
376 |
|
377 |
return $results;
|
378 |
}
|
379 |
|
380 |
+
/**
|
381 |
+
* If repeating fields should be included, adjust $where accordingly
|
382 |
+
*
|
383 |
+
* @param string $inc_repeat
|
384 |
+
* @param array $where - pass by reference
|
385 |
+
*/
|
386 |
+
private static function maybe_include_repeating_fields( $inc_repeat, &$where ) {
|
387 |
+
if ( $inc_repeat == 'include' ) {
|
388 |
+
$form_id = $where['fi.form_id'];
|
389 |
+
$where[] = array( 'or' => 1, 'fi.form_id' => $form_id, 'fr.parent_form_id' => $form_id );
|
390 |
+
unset( $where['fi.form_id'] );
|
391 |
+
}
|
392 |
+
}
|
393 |
+
|
394 |
+
public static function include_sub_fields( &$results, $inc_embed, $type = 'all' ) {
|
395 |
+
if ( 'include' != $inc_embed ) {
|
396 |
return;
|
397 |
}
|
398 |
|
455 |
$query_type = ( $limit == ' LIMIT 1' || $limit == 1 ) ? 'row' : 'results';
|
456 |
|
457 |
if ( is_array($where) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
458 |
$results = FrmDb::get_var( $table_name . ' fi LEFT OUTER JOIN ' . $form_table_name . ' fr ON fi.form_id=fr.id', $where, 'fi.*, fr.name as form_name', array( 'order_by' => $order_by, 'limit' => $limit ), '', $query_type );
|
459 |
} else {
|
460 |
// if the query is not an array, then it has already been prepared
|
511 |
* We'll break them into groups of 200
|
512 |
* @since 2.0.1
|
513 |
*/
|
514 |
+
private static function get_fields_from_transients( $form_id, $args ) {
|
515 |
$fields = array();
|
516 |
+
self::get_next_transient( $fields, 'frm_form_fields_' . $form_id . $args['inc_embed'] . $args['inc_repeat'] );
|
517 |
return $fields;
|
518 |
}
|
519 |
|
540 |
* Save the transients in chunks for large forms
|
541 |
* @since 2.0.1
|
542 |
*/
|
543 |
+
private static function set_field_transient( &$fields, $form_id, $next = 0, $args = array() ) {
|
544 |
+
$base_name = 'frm_form_fields_' . $form_id . $args['inc_embed'] . $args['inc_repeat'];
|
545 |
$field_chunks = array_chunk( $fields, self::$transient_size );
|
546 |
|
547 |
foreach ( $field_chunks as $field ) {
|
classes/models/FrmForm.php
CHANGED
@@ -246,7 +246,7 @@ class FrmForm {
|
|
246 |
}
|
247 |
|
248 |
//updating the form
|
249 |
-
foreach ( array( 'size', 'max', 'label', 'invalid', 'blank', 'classes' ) as $opt ) {
|
250 |
$field->field_options[ $opt ] = isset( $values['field_options'][ $opt . '_' . $field_id ] ) ? trim( $values['field_options'][ $opt . '_' . $field_id ] ) : '';
|
251 |
}
|
252 |
|
246 |
}
|
247 |
|
248 |
//updating the form
|
249 |
+
foreach ( array( 'size', 'max', 'label', 'invalid', 'blank', 'classes', 'captcha_size' ) as $opt ) {
|
250 |
$field->field_options[ $opt ] = isset( $values['field_options'][ $opt . '_' . $field_id ] ) ? trim( $values['field_options'][ $opt . '_' . $field_id ] ) : '';
|
251 |
}
|
252 |
|
classes/views/frm-forms/add_field.php
CHANGED
@@ -6,7 +6,7 @@ $display = apply_filters('frm_display_field_options', array(
|
|
6 |
'description' => true, 'options' => true, 'label_position' => true,
|
7 |
'invalid' => false, 'size' => false, 'clear_on_focus' => false,
|
8 |
'default_blank' => true, 'css' => true, 'conf_field' => false,
|
9 |
-
'max' => true,
|
10 |
));
|
11 |
|
12 |
$li_classes = 'form-field edit_form_item frm_field_box frm_top_container frm_not_divider edit_field_type_'. $display['type'];
|
@@ -180,7 +180,7 @@ if ( $display['options'] ) { ?>
|
|
180 |
$field['unique'] = false;
|
181 |
}
|
182 |
?>
|
183 |
-
<label for="frm_uniq_field_<?php echo esc_attr( $field['id'] ) ?>" class="frm_inline_label frm_help" title="<?php esc_attr_e( 'Unique: Do not allow the same response multiple times. For example, if one user enters \'Joe\' then no one else will be allowed to enter the same name.', 'formidable' ) ?>"><input type="checkbox" name="field_options[unique_<?php echo esc_attr( $field['id'] ) ?>]" id="frm_uniq_field_<?php echo esc_attr( $field['id'] ) ?>" value="1" <?php checked( $field['unique'], 1 ); ?> class="frm_mark_unique" /> <?php _e( 'Unique', 'formidable' ) ?></label>
|
184 |
<?php
|
185 |
}
|
186 |
|
@@ -260,7 +260,19 @@ if ( $display['options'] ) { ?>
|
|
260 |
} ?>
|
261 |
</td>
|
262 |
</tr>
|
263 |
-
<?php }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
<?php do_action('frm_field_options_form', $field, $display, $values);
|
265 |
|
266 |
if ( $display['required'] || $display['invalid'] || $display['unique'] || $display['conf_field'] ) { ?>
|
6 |
'description' => true, 'options' => true, 'label_position' => true,
|
7 |
'invalid' => false, 'size' => false, 'clear_on_focus' => false,
|
8 |
'default_blank' => true, 'css' => true, 'conf_field' => false,
|
9 |
+
'max' => true, 'captcha_size' => false,
|
10 |
));
|
11 |
|
12 |
$li_classes = 'form-field edit_form_item frm_field_box frm_top_container frm_not_divider edit_field_type_'. $display['type'];
|
180 |
$field['unique'] = false;
|
181 |
}
|
182 |
?>
|
183 |
+
<label for="frm_uniq_field_<?php echo esc_attr( $field['id'] ) ?>" class="frm_inline_label frm_help" title="<?php esc_attr_e( 'Unique: Do not allow the same response multiple times. For example, if one user enters \'Joe\', then no one else will be allowed to enter the same name.', 'formidable' ) ?>"><input type="checkbox" name="field_options[unique_<?php echo esc_attr( $field['id'] ) ?>]" id="frm_uniq_field_<?php echo esc_attr( $field['id'] ) ?>" value="1" <?php checked( $field['unique'], 1 ); ?> class="frm_mark_unique" /> <?php _e( 'Unique', 'formidable' ) ?></label>
|
184 |
<?php
|
185 |
}
|
186 |
|
260 |
} ?>
|
261 |
</td>
|
262 |
</tr>
|
263 |
+
<?php }
|
264 |
+
if ( $display['captcha_size'] ) { ?>
|
265 |
+
<tr><td><label><?php _e( 'Size', 'formidable' ) ?></label>
|
266 |
+
<span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Set the size of the captcha field. The compact option is best if your form is in a small area.', 'formidable' ) ?>" ></span>
|
267 |
+
</td>
|
268 |
+
<td><select name="field_options[captcha_size_<?php echo esc_attr( $field['id'] ) ?>]">
|
269 |
+
<option value="default"<?php selected($field['captcha_size'], 'default'); ?>><?php _e( 'Default', 'formidable' ) ?></option>
|
270 |
+
<option value="compact"<?php selected($field['captcha_size'], 'compact'); ?>><?php _e( 'Compact', 'formidable' ) ?></option>
|
271 |
+
</select>
|
272 |
+
</td>
|
273 |
+
</tr>
|
274 |
+
<?php
|
275 |
+
} ?>
|
276 |
<?php do_action('frm_field_options_form', $field, $display, $values);
|
277 |
|
278 |
if ( $display['required'] || $display['invalid'] || $display['unique'] || $display['conf_field'] ) { ?>
|
classes/views/frm-forms/settings.php
CHANGED
@@ -64,9 +64,9 @@
|
|
64 |
?>><?php _e( 'Show Page Content', 'formidable' ) ?></option>
|
65 |
<?php } else { ?>
|
66 |
<option value="redirect" disabled="disabled" <?php selected($values['success_action'], 'redirect');
|
67 |
-
?>><?php _e( 'Redirect to URL', 'formidable' ); echo ' '. __( '(
|
68 |
<option value="page" disabled="disabled" <?php selected($values['success_action'], 'page');
|
69 |
-
?>><?php _e( 'Show Page Content', 'formidable' ); echo ' '. __( '(
|
70 |
<?php } ?>
|
71 |
</select>
|
72 |
</td>
|
64 |
?>><?php _e( 'Show Page Content', 'formidable' ) ?></option>
|
65 |
<?php } else { ?>
|
66 |
<option value="redirect" disabled="disabled" <?php selected($values['success_action'], 'redirect');
|
67 |
+
?>><?php _e( 'Redirect to URL', 'formidable' ); echo ' '. __( '(Premium feature)', 'formidable' ); ?></option>
|
68 |
<option value="page" disabled="disabled" <?php selected($values['success_action'], 'page');
|
69 |
+
?>><?php _e( 'Show Page Content', 'formidable' ); echo ' '. __( '(Premium feature)', 'formidable' ); ?></option>
|
70 |
<?php } ?>
|
71 |
</select>
|
72 |
</td>
|
classes/views/styles/_sample_form.php
CHANGED
@@ -13,29 +13,29 @@
|
|
13 |
|
14 |
<div class="frm_form_fields frm_sample_form">
|
15 |
<fieldset>
|
16 |
-
<div class="frm_form_field
|
17 |
<label class="frm_primary_label"><?php _e( 'Text field', 'formidable' ) ?> <span class="frm_required">*</span></label>
|
18 |
<input type="text" value="<?php esc_attr_e( 'This is sample text', 'formidable' ) ?>"/>
|
19 |
<div class="frm_description"><?php _e( 'A field with a description', 'formidable' ) ?></div>
|
20 |
</div>
|
21 |
|
22 |
-
<div class="frm_form_field form-field
|
23 |
<label class="frm_primary_label"><?php _e( 'Text field with error', 'formidable' ) ?> <span class="frm_required">*</span></label>
|
24 |
<input type="text" value="<?php esc_attr_e( 'This is sample text', 'formidable' ) ?>"/>
|
25 |
<div class="frm_error"><?php echo esc_html( $frm_settings->blank_msg ) ?></div>
|
26 |
</div>
|
27 |
|
28 |
-
<div class="frm_form_field
|
29 |
<label class="frm_primary_label"><?php _e( 'Text field in active state', 'formidable' ) ?> <span class="frm_required">*</span></label>
|
30 |
<input type="text" value="<?php esc_attr_e( 'Active state will be seen when the field is clicked', 'formidable' ) ?>" />
|
31 |
</div>
|
32 |
|
33 |
-
<div class="frm_form_field
|
34 |
<label class="frm_primary_label"><?php _e( 'Read-only field', 'formidable' ) ?></label>
|
35 |
<input type="text" value="<?php esc_attr_e( 'This field is not editable', 'formidable' ) ?>" disabled="disabled" />
|
36 |
</div>
|
37 |
|
38 |
-
<div class="frm_form_field frm_section_heading form-field
|
39 |
<h3 class="frm_pos_top frm_trigger active frm_section_spacing"><i class="frm_icon_font frm_arrow_icon frm_before_collapse"></i> <?php _e( 'Collapsible Section', 'formidable' ) ?> <i class="frm_icon_font frm_arrow_icon frm_after_collapse"></i></h3>
|
40 |
<div class="frm_toggle_container">
|
41 |
|
@@ -49,7 +49,7 @@
|
|
49 |
</select>
|
50 |
</div>
|
51 |
|
52 |
-
<div class="frm_form_field form-field
|
53 |
<label class="frm_primary_label"><?php _e( 'Radio Buttons', 'formidable' ) ?></label>
|
54 |
<div class="frm_opt_container">
|
55 |
<div class="frm_radio"><input type="radio" /><label><?php _e( 'Option 1', 'formidable' ) ?></label></div>
|
@@ -57,7 +57,7 @@
|
|
57 |
</div>
|
58 |
</div>
|
59 |
|
60 |
-
<div class="frm_form_field form-field
|
61 |
<label class="frm_primary_label"><?php _e( 'Check Boxes', 'formidable' ) ?></label>
|
62 |
<div class="frm_opt_container">
|
63 |
<div class="frm_checkbox"><label><input type="checkbox" /><?php _e( 'Option 1', 'formidable' ) ?></label></div>
|
@@ -67,7 +67,7 @@
|
|
67 |
</div>
|
68 |
</div>
|
69 |
|
70 |
-
<div id="frm_field_304_container" class="frm_form_field frm_section_heading form-field
|
71 |
<h3 class="frm_pos_top"><?php _e( 'Section Heading', 'formidable' ) ?></h3>
|
72 |
<div class="frm_description frm_section_spacing"><?php _e( 'This is an example of a section description', 'formidable' ) ?></div>
|
73 |
|
@@ -77,7 +77,7 @@
|
|
77 |
|
78 |
</div>
|
79 |
|
80 |
-
<div class="frm_form_field frm_section_heading form-field
|
81 |
<h3 class="<?php echo esc_attr( $pos_class ) ?> frm_section_spacing"><?php _e( 'Repeatable Section', 'formidable' ) ?></h3>
|
82 |
<div>
|
83 |
<div class="frm_repeat_sec">
|
13 |
|
14 |
<div class="frm_form_fields frm_sample_form">
|
15 |
<fieldset>
|
16 |
+
<div class="frm_form_field frm_first frm_half form-field <?php echo esc_attr( $pos_class ) ?>">
|
17 |
<label class="frm_primary_label"><?php _e( 'Text field', 'formidable' ) ?> <span class="frm_required">*</span></label>
|
18 |
<input type="text" value="<?php esc_attr_e( 'This is sample text', 'formidable' ) ?>"/>
|
19 |
<div class="frm_description"><?php _e( 'A field with a description', 'formidable' ) ?></div>
|
20 |
</div>
|
21 |
|
22 |
+
<div class="frm_form_field form-field frm_half frm_blank_field <?php echo esc_attr( $pos_class ) ?>">
|
23 |
<label class="frm_primary_label"><?php _e( 'Text field with error', 'formidable' ) ?> <span class="frm_required">*</span></label>
|
24 |
<input type="text" value="<?php esc_attr_e( 'This is sample text', 'formidable' ) ?>"/>
|
25 |
<div class="frm_error"><?php echo esc_html( $frm_settings->blank_msg ) ?></div>
|
26 |
</div>
|
27 |
|
28 |
+
<div class="frm_form_field frm_first frm_half form-field frm_focus_field <?php echo esc_attr( $pos_class ) ?>">
|
29 |
<label class="frm_primary_label"><?php _e( 'Text field in active state', 'formidable' ) ?> <span class="frm_required">*</span></label>
|
30 |
<input type="text" value="<?php esc_attr_e( 'Active state will be seen when the field is clicked', 'formidable' ) ?>" />
|
31 |
</div>
|
32 |
|
33 |
+
<div class="frm_form_field frm_half form-field <?php echo esc_attr( $pos_class ) ?>">
|
34 |
<label class="frm_primary_label"><?php _e( 'Read-only field', 'formidable' ) ?></label>
|
35 |
<input type="text" value="<?php esc_attr_e( 'This field is not editable', 'formidable' ) ?>" disabled="disabled" />
|
36 |
</div>
|
37 |
|
38 |
+
<div class="frm_form_field frm_section_heading form-field frm_first frm_half">
|
39 |
<h3 class="frm_pos_top frm_trigger active frm_section_spacing"><i class="frm_icon_font frm_arrow_icon frm_before_collapse"></i> <?php _e( 'Collapsible Section', 'formidable' ) ?> <i class="frm_icon_font frm_arrow_icon frm_after_collapse"></i></h3>
|
40 |
<div class="frm_toggle_container">
|
41 |
|
49 |
</select>
|
50 |
</div>
|
51 |
|
52 |
+
<div class="frm_form_field form-field frm_first frm_half <?php echo esc_attr( $pos_class ) ?>">
|
53 |
<label class="frm_primary_label"><?php _e( 'Radio Buttons', 'formidable' ) ?></label>
|
54 |
<div class="frm_opt_container">
|
55 |
<div class="frm_radio"><input type="radio" /><label><?php _e( 'Option 1', 'formidable' ) ?></label></div>
|
57 |
</div>
|
58 |
</div>
|
59 |
|
60 |
+
<div class="frm_form_field form-field frm_half <?php echo esc_attr( $pos_class ) ?>">
|
61 |
<label class="frm_primary_label"><?php _e( 'Check Boxes', 'formidable' ) ?></label>
|
62 |
<div class="frm_opt_container">
|
63 |
<div class="frm_checkbox"><label><input type="checkbox" /><?php _e( 'Option 1', 'formidable' ) ?></label></div>
|
67 |
</div>
|
68 |
</div>
|
69 |
|
70 |
+
<div id="frm_field_304_container" class="frm_form_field frm_section_heading form-field frm_half">
|
71 |
<h3 class="frm_pos_top"><?php _e( 'Section Heading', 'formidable' ) ?></h3>
|
72 |
<div class="frm_description frm_section_spacing"><?php _e( 'This is an example of a section description', 'formidable' ) ?></div>
|
73 |
|
77 |
|
78 |
</div>
|
79 |
|
80 |
+
<div class="frm_form_field frm_section_heading form-field">
|
81 |
<h3 class="<?php echo esc_attr( $pos_class ) ?> frm_section_spacing"><?php _e( 'Repeatable Section', 'formidable' ) ?></h3>
|
82 |
<div>
|
83 |
<div class="frm_repeat_sec">
|
classes/views/xml/default-templates.xml
CHANGED
@@ -25,7 +25,7 @@
|
|
25 |
<form_id>1</form_id>
|
26 |
<required>1</required>
|
27 |
<options><![CDATA[]]></options>
|
28 |
-
<field_options><![CDATA[{"blank":"","separate_value":0,"classes":"
|
29 |
</field>
|
30 |
<field>
|
31 |
<id>2</id>
|
@@ -38,7 +38,7 @@
|
|
38 |
<form_id>1</form_id>
|
39 |
<required>1</required>
|
40 |
<options><![CDATA[]]></options>
|
41 |
-
<field_options><![CDATA[{"label":"hidden","blank":"","classes":"
|
42 |
</field>
|
43 |
<field>
|
44 |
<id>3</id>
|
25 |
<form_id>1</form_id>
|
26 |
<required>1</required>
|
27 |
<options><![CDATA[]]></options>
|
28 |
+
<field_options><![CDATA[{"blank":"","separate_value":0,"classes":"frm_first frm_half"}]]></field_options>
|
29 |
</field>
|
30 |
<field>
|
31 |
<id>2</id>
|
38 |
<form_id>1</form_id>
|
39 |
<required>1</required>
|
40 |
<options><![CDATA[]]></options>
|
41 |
+
<field_options><![CDATA[{"label":"hidden","blank":"","classes":"frm_half"}]]></field_options>
|
42 |
</field>
|
43 |
<field>
|
44 |
<id>3</id>
|
css/_single_theme.css.php
CHANGED
@@ -43,11 +43,15 @@ if ( ! isset($collapse_icon) ) {
|
|
43 |
$collapse_icon = 0;
|
44 |
}
|
45 |
|
|
|
|
|
|
|
|
|
46 |
?>
|
47 |
|
48 |
-
.frm_forms.<?php echo $style_class ?>{
|
49 |
-
max-width:<?php echo $form_width . $important ?>;
|
50 |
-
direction:<?php echo $direction . $important ?>;
|
51 |
<?php if ( 'rtl' == $direction ) { ?>
|
52 |
unicode-bidi:embed;
|
53 |
<?php } ?>
|
@@ -56,773 +60,777 @@ if ( ! isset($collapse_icon) ) {
|
|
56 |
<?php } ?>
|
57 |
}
|
58 |
|
59 |
-
.<?php echo $style_class ?>,
|
60 |
-
.<?php echo $style_class ?> form{
|
61 |
-
text-align:<?php echo $form_align . $important ?>;
|
62 |
}
|
63 |
|
64 |
<?php if ( $center_form ) {?>
|
65 |
-
.frm_inline_form.<?php echo $style_class ?> form{
|
66 |
text-align:center;
|
67 |
}
|
68 |
<?php } ?>
|
69 |
|
70 |
-
.<?php echo $style_class ?> fieldset{
|
71 |
-
border:<?php echo $fieldset ?> solid #<?php echo $fieldset_color . $important ?>;
|
72 |
margin:0;
|
73 |
-
padding:<?php echo $fieldset_padding . $important ?>;
|
74 |
-
background-color:<?php echo empty($fieldset_bg_color) ? 'transparent' : '#'. $fieldset_bg_color; ?>;
|
75 |
}
|
76 |
|
77 |
-
.<?php echo $style_class ?> .frm-show-form > h3{
|
78 |
-
font-size:<?php echo $title_size . $important ?>;
|
79 |
-
color:#<?php echo $title_color . $important ?>;
|
80 |
}
|
81 |
|
82 |
-
.<?php echo $style_class ?> .frm-show-form .frm_section_heading h3{
|
83 |
-
padding:<?php echo $section_pad . $important ?>;
|
84 |
-
margin:0<?php echo $important ?>;
|
85 |
-
font-size:<?php echo $section_font_size . $important ?>;
|
86 |
-
font-weight:<?php echo $section_weight . $important ?>;
|
87 |
-
color:#<?php echo $section_color . $important ?>;
|
88 |
-
border:none<?php echo $important ?>;
|
89 |
-
border<?php echo $section_border_loc ?>:<?php echo $section_border_width .' '. $section_border_style .' #'. $section_border_color . $important ?>;
|
90 |
-
background-color:<?php echo empty($section_bg_color) ? 'transparent' : '#'. $section_bg_color . $important; ?>
|
91 |
}
|
92 |
|
93 |
-
.<?php echo $style_class ?> h3 .frm_<?php echo $collapse_pos ?>_collapse{
|
94 |
display:inline;
|
95 |
}
|
96 |
-
.<?php echo $style_class ?> h3 .frm_<?php echo ( 'after' == $collapse_pos ) ? 'before' : 'after'; ?>_collapse{
|
97 |
display:none;
|
98 |
}
|
99 |
|
100 |
-
.menu-edit #post-body-content .<?php echo $style_class ?> .frm_section_heading h3{
|
101 |
margin:0;
|
102 |
}
|
103 |
|
104 |
-
.<?php echo $style_class ?> .frm_section_heading{
|
105 |
-
margin-top:<?php echo $section_mar_top . $important ?>;
|
106 |
}
|
107 |
|
108 |
-
.<?php echo $style_class ?> .frm-show-form .frm_section_heading .frm_section_spacing,
|
109 |
-
.menu-edit #post-body-content .<?php echo $style_class ?> .frm-show-form .frm_section_heading .frm_section_spacing{
|
110 |
-
margin-bottom:<?php echo $section_mar_bottom . $important ?>;
|
111 |
}
|
112 |
|
113 |
-
.<?php echo $style_class ?> .frm_repeat_sec{
|
114 |
-
margin-bottom:<?php echo $field_margin. $important ?>;
|
115 |
-
margin-top:<?php echo $field_margin. $important ?>;
|
116 |
}
|
117 |
|
118 |
-
.<?php echo $style_class ?> label.frm_primary_label,
|
119 |
-
.<?php echo $style_class ?>.frm_login_form label{
|
120 |
-
font-family:<?php echo stripslashes($font) ?>;
|
121 |
-
font-size:<?php echo $font_size . $important ?>;
|
122 |
-
color:#<?php echo $label_color . $important ?>;
|
123 |
-
font-weight:<?php echo $weight . $important ?>;
|
124 |
-
text-align:<?php echo $align . $important ?>;
|
125 |
margin:0;
|
126 |
-
padding:<?php echo $label_padding . $important ?>;
|
127 |
width:auto;
|
128 |
display:block;
|
129 |
}
|
130 |
|
131 |
-
.<?php echo $style_class ?> .frm_icon_font{
|
132 |
-
color:#<?php echo $label_color . $important ?>;
|
133 |
}
|
134 |
|
135 |
-
.<?php echo $style_class ?> .frm_icon_font.frm_minus_icon:before{
|
136 |
-
content:"\e<?php echo isset( $minus_icons[ $repeat_icon ] ) ? $minus_icons[ $repeat_icon ]['-'] : $minus_icons[1]['-'] ?>";
|
137 |
}
|
138 |
|
139 |
-
.<?php echo $style_class ?> .frm_icon_font.frm_plus_icon:before{
|
140 |
-
content:"\e<?php echo isset( $minus_icons[ $repeat_icon ] ) ? $minus_icons[ $repeat_icon ]['+'] : $minus_icons[1]['+'] ?>";
|
141 |
}
|
142 |
|
143 |
-
.<?php echo $style_class ?> .frm_icon_font.frm_minus_icon:before,
|
144 |
-
.<?php echo $style_class ?> .frm_icon_font.frm_plus_icon:before{
|
145 |
-
color:#<?php echo $submit_text_color . $important ?>;
|
146 |
}
|
147 |
|
148 |
-
.<?php echo $style_class ?> .frm_trigger.active .frm_icon_font.frm_arrow_icon:before{
|
149 |
-
content:"\e<?php echo isset( $arrow_icons[ $collapse_icon ] ) ? $arrow_icons[ $collapse_icon ]['-'] : $arrow_icons[1]['-'] ?>";
|
150 |
}
|
151 |
|
152 |
-
.<?php echo $style_class ?> .frm_trigger .frm_icon_font.frm_arrow_icon:before{
|
153 |
-
content:"\e<?php echo isset( $arrow_icons[ $collapse_icon ] ) ? $arrow_icons[ $collapse_icon ]['+'] : $arrow_icons[1]['+'] ?>";
|
154 |
}
|
155 |
|
156 |
-
.<?php echo $style_class ?> .form-field{
|
157 |
-
margin-bottom:<?php echo $field_margin. $important ?>;
|
158 |
}
|
159 |
-
.<?php echo $style_class ?> .frm_grid,
|
160 |
-
.<?php echo $style_class ?> .frm_grid_first,
|
161 |
-
.<?php echo $style_class ?> .frm_grid_odd {
|
162 |
-
margin-bottom:0<?php echo $important ?>;
|
163 |
}
|
164 |
-
.<?php echo $style_class ?> .form-field.frm_section_heading{
|
165 |
-
margin-bottom:0<?php echo $important ?>;
|
166 |
}
|
167 |
|
168 |
-
.<?php echo $style_class ?> p.description,
|
169 |
-
.<?php echo $style_class ?> div.description,
|
170 |
-
.<?php echo $style_class ?> div.frm_description,
|
171 |
-
.<?php echo $style_class ?> .frm-show-form > div.frm_description,
|
172 |
-
.<?php echo $style_class ?> .frm_error{
|
173 |
margin:0;
|
174 |
padding:0;
|
175 |
-
font-family:<?php echo stripslashes($font) . $important ?>;
|
176 |
-
font-size:<?php echo $description_font_size . $important ?>;
|
177 |
-
color:#<?php echo $description_color . $important ?>;
|
178 |
-
font-weight:<?php echo $description_weight . $important ?>;
|
179 |
-
text-align:<?php echo $description_align . $important ?>;
|
180 |
-
font-style:<?php echo $description_style . $important ?>;
|
181 |
max-width:100%;
|
182 |
}
|
183 |
|
184 |
/* Form description */
|
185 |
-
.<?php echo $style_class ?> .frm-show-form div.frm_description p{
|
186 |
-
font-size:<?php echo $form_desc_size . $important ?>;
|
187 |
-
color:#<?php echo $form_desc_color . $important ?>;
|
188 |
}
|
189 |
|
190 |
|
191 |
/* Left and right labels */
|
192 |
-
.<?php echo $style_class ?> .frm_left_container label.frm_primary_label{
|
193 |
float:left;
|
194 |
-
display:inline<?php echo $important ?>;
|
195 |
-
width:<?php echo $width . $important ?>;
|
196 |
-
max-width:33%<?php echo $important ?>;
|
197 |
-
margin-right:10px<?php echo $important ?>;
|
198 |
}
|
199 |
|
200 |
-
.<?php echo $style_class ?> .frm_right_container label.frm_primary_label{
|
201 |
-
display:inline<?php echo $important ?>;
|
202 |
-
width:<?php echo $width . $important; ?>;
|
203 |
-
max-width:33%<?php echo $important ?>;
|
204 |
-
margin-left:10px<?php echo $important ?>;
|
205 |
}
|
206 |
|
207 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_container input:not([type=radio]):not([type=checkbox]),
|
208 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_container select,
|
209 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_container textarea,
|
210 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_container:not(.frm_dynamic_select_container) .frm_opt_container,
|
211 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_container .g-recaptcha,
|
212 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_container input:not([type=radio]):not([type=checkbox]),
|
213 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_container select,
|
214 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_container textarea,
|
215 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_container:not(.frm_dynamic_select_container) .frm_opt_container,
|
216 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_container .g-recaptcha{
|
217 |
-
max-width:62%<?php echo $important ?>;
|
218 |
}
|
219 |
|
220 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_container:not(.frm_dynamic_select_container) .frm_opt_container,
|
221 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_container:not(.frm_dynamic_select_container) .frm_opt_container,
|
222 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_container .g-recaptcha,
|
223 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_container .g-recaptcha{
|
224 |
-
display:inline-block<?php echo $important ?>;
|
225 |
}
|
226 |
|
227 |
-
.<?php echo $style_class ?> .frm_left_container p.description,
|
228 |
-
.<?php echo $style_class ?> .frm_left_container div.description,
|
229 |
-
.<?php echo $style_class ?> .frm_left_container div.frm_description,
|
230 |
-
.<?php echo $style_class ?> .frm_left_container .frm_error{
|
231 |
-
margin-left:<?php echo $label_margin ?>px;
|
232 |
-
max-width:62%<?php echo $important ?>;
|
233 |
}
|
234 |
|
235 |
-
.<?php echo $style_class ?> .frm_right_container p.description,
|
236 |
-
.<?php echo $style_class ?> .frm_right_container div.description,
|
237 |
-
.<?php echo $style_class ?> .frm_right_container div.frm_description,
|
238 |
-
.<?php echo $style_class ?> .frm_right_container .frm_error{
|
239 |
-
margin-right:<?php echo $label_margin ?>px<?php echo $important ?>;
|
240 |
-
max-width:62%<?php echo $important ?>;
|
241 |
}
|
242 |
|
243 |
-
.<?php echo $style_class ?> .frm_left_container .attachment-thumbnail{
|
244 |
clear:both;
|
245 |
-
margin-left:<?php echo $label_margin ?>px<?php echo $important ?>;
|
246 |
}
|
247 |
|
248 |
-
.<?php echo $style_class ?> .frm_left_container.frm_inline label.frm_primary_label{
|
249 |
-
max-width:90%<?php echo $important ?>;
|
250 |
}
|
251 |
|
252 |
-
.<?php echo $style_class ?> .form-field.frm_col_field div.frm_description{
|
253 |
-
width:<?php echo ($field_width == '' ? 'auto' : $field_width) . $important ?>;
|
254 |
max-width:100%;
|
255 |
}
|
256 |
|
257 |
-
.<?php echo $style_class ?> .frm_inline_container label.frm_primary_label,
|
258 |
-
.<?php echo $style_class ?> .frm_inline_container:not(.frm_dynamic_select_container) .frm_opt_container{
|
259 |
-
display:inline<?php echo $important ?>;
|
260 |
}
|
261 |
|
262 |
-
.<?php echo $style_class ?> .frm_inline_container label.frm_primary_label{
|
263 |
-
margin-right:10px<?php echo $important ?>;
|
264 |
}
|
265 |
|
266 |
-
.<?php echo $style_class ?> .frm_pos_right{
|
267 |
-
display:inline<?php echo $important ?>;
|
268 |
-
width:<?php echo $width . $important; ?>;
|
269 |
}
|
270 |
|
271 |
-
.<?php echo $style_class ?> .frm_none_container label.frm_primary_label,
|
272 |
-
.<?php echo $style_class ?> .frm_pos_none{
|
273 |
-
display:none<?php echo $important ?>;
|
274 |
}
|
275 |
|
276 |
-
.<?php echo $style_class ?> .frm_scale label{
|
277 |
-
font-weight:<?php echo $check_weight . $important ?>;
|
278 |
-
font-family:<?php echo stripslashes($font) . $important ?>;
|
279 |
-
font-size:<?php echo $check_font_size . $important ?>;
|
280 |
-
color:#<?php echo $check_label_color . $important ?>;
|
281 |
}
|
282 |
|
283 |
-
.<?php echo $style_class ?> .frm_required{
|
284 |
-
color:#<?php echo $required_color . $important; ?>;
|
285 |
-
font-weight:<?php echo $required_weight . $important; ?>;
|
286 |
}
|
287 |
|
288 |
-
.<?php echo $style_class ?> input[type=text],
|
289 |
-
.<?php echo $style_class ?> input[type=password],
|
290 |
-
.<?php echo $style_class ?> input[type=email],
|
291 |
-
.<?php echo $style_class ?> input[type=number],
|
292 |
-
.<?php echo $style_class ?> input[type=url],
|
293 |
-
.<?php echo $style_class ?> input[type=tel],
|
294 |
-
.<?php echo $style_class ?> input[type=search],
|
295 |
-
.<?php echo $style_class ?> select,
|
296 |
-
.<?php echo $style_class ?> textarea,
|
297 |
-
.<?php echo $style_class ?> .chosen-container{
|
298 |
-
font-family:<?php echo stripslashes($font) . $important ?>;
|
299 |
-
font-size:<?php echo $field_font_size ?>;
|
300 |
-
margin-bottom:0<?php echo $important ?>;
|
301 |
}
|
302 |
|
303 |
-
.<?php echo $style_class ?> input[type=text],
|
304 |
-
.<?php echo $style_class ?> input[type=password],
|
305 |
-
.<?php echo $style_class ?> input[type=email],
|
306 |
-
.<?php echo $style_class ?> input[type=number],
|
307 |
-
.<?php echo $style_class ?> input[type=url],
|
308 |
-
.<?php echo $style_class ?> input[type=tel],
|
309 |
-
.<?php echo $style_class ?> input[type=phone],
|
310 |
-
.<?php echo $style_class ?> input[type=search],
|
311 |
-
.<?php echo $style_class ?> select,
|
312 |
-
.<?php echo $style_class ?> textarea,
|
313 |
.frm_form_fields_style,
|
314 |
-
.<?php echo $style_class ?> .frm_scroll_box .frm_opt_container,
|
315 |
.frm_form_fields_active_style,
|
316 |
.frm_form_fields_error_style,
|
317 |
-
.<?php echo $style_class ?> .chosen-container-multi .chosen-choices,
|
318 |
-
.<?php echo $style_class ?> .chosen-container-single .chosen-single{
|
319 |
-
color:#<?php echo $text_color . $important ?>;
|
320 |
-
background-color:#<?php echo $bg_color . $important; ?>;
|
321 |
<?php if ( ! empty($important) ) {
|
322 |
-
echo 'background-image:none'. $important .';';
|
323 |
}
|
324 |
?>
|
325 |
-
border-color:#<?php echo $border_color . $important ?>;
|
326 |
-
border-width:<?php echo $field_border_width . $important ?>;
|
327 |
-
border-style:<?php echo $field_border_style . $important ?>;
|
328 |
-
-moz-border-radius:<?php echo $border_radius . $important ?>;
|
329 |
-
-webkit-border-radius:<?php echo $border_radius . $important ?>;
|
330 |
-
border-radius:<?php echo $border_radius . $important ?>;
|
331 |
-
width:<?php echo ($field_width == '' ? 'auto' : $field_width) . $important ?>;
|
332 |
max-width:100%;
|
333 |
-
font-size:<?php echo $field_font_size . $important ?>;
|
334 |
-
padding:<?php echo $field_pad . $important ?>;
|
335 |
-webkit-box-sizing:border-box;
|
336 |
-moz-box-sizing:border-box;
|
337 |
box-sizing:border-box;
|
338 |
-
outline:none<?php echo $important ?>;
|
339 |
font-weight:normal;
|
340 |
box-shadow:0 1px 1px rgba(0, 0, 0, 0.075) inset;
|
341 |
}
|
342 |
|
343 |
-
.<?php echo $style_class ?> input[type=file]::-webkit-file-upload-button{
|
344 |
-
color:#<?php echo $text_color . $important ?>;
|
345 |
-
background-color:#<?php echo $bg_color . $important; ?>;
|
346 |
-
padding:<?php echo $field_pad . $important ?>;
|
347 |
-
border-radius:<?php echo $border_radius . $important ?>;
|
348 |
-
border-color:#<?php echo $border_color . $important ?>;
|
349 |
-
border-width:<?php echo $field_border_width . $important ?>;
|
350 |
-
border-style:<?php echo $field_border_style . $important ?>;
|
351 |
}
|
352 |
|
353 |
-
.<?php echo $style_class ?> input[type=text],
|
354 |
-
.<?php echo $style_class ?> input[type=password],
|
355 |
-
.<?php echo $style_class ?> input[type=email],
|
356 |
-
.<?php echo $style_class ?> input[type=number],
|
357 |
-
.<?php echo $style_class ?> input[type=url],
|
358 |
-
.<?php echo $style_class ?> input[type=tel],
|
359 |
-
.<?php echo $style_class ?> input[type=file],
|
360 |
-
.<?php echo $style_class ?> input[type=search],
|
361 |
-
.<?php echo $style_class ?> select{
|
362 |
-
height:<?php echo ($field_height == '' ? 'auto' : $field_height) . $important
|
363 |
-
line-height:1.3<?php echo $important ?>;
|
364 |
}
|
365 |
|
366 |
-
.<?php echo $style_class ?> select[multiple="multiple"]{
|
367 |
-
height:auto <?php echo $important ?>;
|
368 |
}
|
369 |
|
370 |
-
.<?php echo $style_class ?> input[type=file]{
|
371 |
-
color:#<?php echo $text_color . $important ?>;
|
372 |
padding:0px;
|
373 |
-
font-family:<?php echo stripslashes($font) . $important ?>;
|
374 |
-
font-size:<?php echo $field_font_size . $important ?>;
|
375 |
}
|
376 |
|
377 |
-
.<?php echo $style_class ?> input[type=file].frm_transparent{
|
378 |
-
color:transparent<?php echo $important ?>;
|
379 |
}
|
380 |
|
381 |
-
.<?php echo $style_class ?> .frm_file_names, .<?php echo $style_class ?> .frm_uploaded_files .frm_remove_link{
|
382 |
-
font-family:<?php echo stripslashes($font) . $important ?>;
|
383 |
-
font-size:<?php echo $field_font_size . $important ?>;
|
384 |
}
|
385 |
|
386 |
-
.<?php echo $style_class ?> .frm_default,
|
387 |
-
.<?php echo $style_class ?> .placeholder,
|
388 |
-
.<?php echo $style_class ?> .chosen-container-multi .chosen-choices li.search-field .default,
|
389 |
-
.<?php echo $style_class ?> .chosen-container-single .chosen-default{
|
390 |
-
color:#<?php echo $text_color . $important ?>;
|
391 |
font-style:italic;
|
392 |
}
|
393 |
|
394 |
-
.<?php echo $style_class ?> select{
|
395 |
-
width:<?php echo ($auto_width ? 'auto' : $field_width) . $important ?>;
|
396 |
max-width:100%;
|
397 |
}
|
398 |
|
399 |
-
.<?php echo $style_class ?> input.frm_other_input:not(.frm_other_full){
|
400 |
-
width:auto <?php echo $important
|
401 |
-
margin-left:5px <?php echo $important ?>;
|
402 |
}
|
403 |
|
404 |
-
.<?php echo $style_class ?> .frm_full input.frm_other_input:not(.frm_other_full){
|
405 |
-
margin-left:0 <?php echo $important ?>;
|
406 |
margin-top:8px;
|
407 |
}
|
408 |
|
409 |
-
.<?php echo $style_class ?> .frm_other_container select:not([multiple="multiple"]){
|
410 |
width:auto;
|
411 |
}
|
412 |
|
413 |
-
.<?php echo $style_class ?> .wp-editor-wrap{
|
414 |
-
width:<?php echo $field_width . $important ?>;
|
415 |
max-width:100%;
|
416 |
}
|
417 |
|
418 |
-
.<?php echo $style_class ?> .wp-editor-container textarea{
|
419 |
-
border:none<?php echo $important ?>;
|
420 |
}
|
421 |
|
422 |
-
.<?php echo $style_class ?> .mceIframeContainer{
|
423 |
-
background-color:#<?php echo $bg_color . $important ?>;
|
424 |
}
|
425 |
|
426 |
-
.<?php echo $style_class ?> .auto_width input,
|
427 |
-
.<?php echo $style_class ?> input.auto_width,
|
428 |
-
.<?php echo $style_class ?> select.auto_width,
|
429 |
-
.<?php echo $style_class ?> textarea.auto_width{
|
430 |
-
width:auto<?php echo $important ?>;
|
431 |
}
|
432 |
|
433 |
-
.<?php echo $style_class ?> input[disabled],
|
434 |
-
.<?php echo $style_class ?> select[disabled],
|
435 |
-
.<?php echo $style_class ?> textarea[disabled],
|
436 |
-
.<?php echo $style_class ?> input[readonly],
|
437 |
-
.<?php echo $style_class ?> select[readonly],
|
438 |
-
.<?php echo $style_class ?> textarea[readonly]{
|
439 |
-
background-color:#<?php echo $bg_color_disabled . $important ?>;
|
440 |
-
color:#<?php echo $text_color_disabled . $important ?>;
|
441 |
-
border-color:#<?php echo $border_color_disabled . $important ?>;
|
442 |
}
|
443 |
|
444 |
|
445 |
-
.<?php echo $style_class ?> .form-field input:not([type=file]):focus,
|
446 |
-
.<?php echo $style_class ?> select:focus,
|
447 |
-
.<?php echo $style_class ?> textarea:focus,
|
448 |
-
.<?php echo $style_class ?> .frm_focus_field input[type=text],
|
449 |
-
.<?php echo $style_class ?> .frm_focus_field input[type=password],
|
450 |
-
.<?php echo $style_class ?> .frm_focus_field input[type=email],
|
451 |
-
.<?php echo $style_class ?> .frm_focus_field input[type=number],
|
452 |
-
.<?php echo $style_class ?> .frm_focus_field input[type=url],
|
453 |
-
.<?php echo $style_class ?> .frm_focus_field input[type=tel],
|
454 |
-
.<?php echo $style_class ?> .frm_focus_field input[type=search],
|
455 |
.frm_form_fields_active_style,
|
456 |
-
.<?php echo $style_class ?> .chosen-container-active .chosen-choices{
|
457 |
-
background-color:#<?php echo $bg_color_active . $important ?>;
|
458 |
-
border-color:#<?php echo $border_color_active . $important ?>;
|
459 |
-
box-shadow:0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(<?php echo FrmStylesHelper::hex2rgb($border_color_active) ?>, 0.6);
|
460 |
}
|
461 |
|
462 |
<?php
|
463 |
if ( ! $submit_style ) { ?>
|
464 |
-
.<?php echo $style_class ?> input[type=submit],
|
465 |
-
.<?php echo $style_class ?> .frm_submit input[type=button],
|
466 |
.frm_form_submit_style,
|
467 |
-
.<?php echo $style_class ?>.frm_login_form input[type=submit]{
|
468 |
-
width:<?php echo ($submit_width == '' ? 'auto' : $submit_width) . $important ?>;
|
469 |
-
font-family:<?php echo stripslashes($font) ?>;
|
470 |
-
font-size:<?php echo $submit_font_size . $important; ?>;
|
471 |
-
height:<?php echo $submit_height . $important ?>;
|
472 |
-
line-height:normal<?php echo $important ?>;
|
473 |
text-align:center;
|
474 |
-
background:#<?php echo $submit_bg_color;
|
475 |
if ( ! empty($submit_bg_img) ) {
|
476 |
-
echo ' url('. $submit_bg_img .')';
|
477 |
}
|
478 |
-
echo $important; ?>;
|
479 |
-
border-width:<?php echo $submit_border_width ?>;
|
480 |
-
border-color:#<?php echo $submit_border_color . $important ?>;
|
481 |
border-style:solid;
|
482 |
-
color:#<?php echo $submit_text_color . $important ?>;
|
483 |
cursor:pointer;
|
484 |
-
font-weight:<?php echo $submit_weight . $important ?>;
|
485 |
-
-moz-border-radius:<?php echo $submit_border_radius . $important ?>;
|
486 |
-
-webkit-border-radius:<?php echo $submit_border_radius . $important ?>;
|
487 |
-
border-radius:<?php echo $submit_border_radius . $important ?>;
|
488 |
text-shadow:none;
|
489 |
-
padding:<?php echo $submit_padding . $important ?>;
|
490 |
-moz-box-sizing:border-box;
|
491 |
box-sizing:border-box;
|
492 |
-ms-box-sizing:border-box;
|
493 |
-
-moz-box-shadow:0 1px 1px #<?php echo $submit_shadow_color; ?>;
|
494 |
-
-webkit-box-shadow:0px 1px 1px #<?php echo $submit_shadow_color; ?>;
|
495 |
-
box-shadow:0 1px 1px #<?php echo $submit_shadow_color; ?>;
|
496 |
-
-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=135, Color='#<?php echo $submit_shadow_color; ?>')";
|
497 |
-
filter:progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=135, Color='#<?php echo $submit_shadow_color; ?>');
|
498 |
-
|
499 |
-
|
|
|
500 |
vertical-align:middle;
|
501 |
}
|
502 |
|
503 |
<?php
|
504 |
if ( empty( $submit_bg_img ) ) {
|
505 |
-
?>.<?php echo $style_class ?> input[type=submit]:hover,
|
506 |
-
.<?php echo $style_class ?> .frm_submit input[type=button]:hover,
|
507 |
-
.<?php echo $style_class ?>.frm_login_form input[type=submit]:hover{
|
508 |
-
background:#<?php echo $submit_hover_bg_color . $important ?>;
|
509 |
-
border-color:#<?php echo $submit_hover_border_color . $important ?>;
|
510 |
-
color:#<?php echo $submit_hover_color . $important ?>;
|
511 |
}
|
512 |
|
513 |
-
.<?php echo $style_class ?>.frm_center_submit .frm_submit .frm_ajax_loading{
|
514 |
-
margin-bottom:<?php echo $submit_margin ?>;
|
515 |
}
|
516 |
|
517 |
-
.<?php echo $style_class ?> input[type=submit]:focus,
|
518 |
-
.<?php echo $style_class ?> .frm_submit input[type=button]:focus,
|
519 |
-
.<?php echo $style_class ?>.frm_login_form input[type=submit]:focus,
|
520 |
-
.<?php echo $style_class ?> input[type=submit]:active,
|
521 |
-
.<?php echo $style_class ?> .frm_submit input[type=button]:active,
|
522 |
-
.<?php echo $style_class ?>.frm_login_form input[type=submit]:active{
|
523 |
-
background:#<?php echo $submit_active_bg_color . $important ?>;
|
524 |
-
border-color:#<?php echo $submit_active_border_color . $important ?>;
|
525 |
-
color:#<?php echo $submit_active_color . $important ?>;
|
526 |
}
|
527 |
<?php
|
528 |
}
|
529 |
}
|
530 |
?>
|
531 |
|
532 |
-
.<?php echo $style_class ?> a.frm_save_draft{
|
533 |
-
font-family:<?php echo stripslashes($font) ?>;
|
534 |
-
font-size:<?php echo $submit_font_size ?>;
|
535 |
-
font-weight:<?php echo $submit_weight ?>;
|
536 |
}
|
537 |
|
538 |
-
.<?php echo $style_class ?> #frm_field_cptch_number_container{
|
539 |
-
font-family:<?php echo stripslashes($font) ?>;
|
540 |
-
font-size:<?php echo $font_size . $important ?>;
|
541 |
-
color:#<?php echo $label_color . $important ?>;
|
542 |
-
font-weight:<?php echo $weight . $important ?>;
|
543 |
clear:both;
|
544 |
}
|
545 |
|
546 |
-
.<?php echo $style_class ?> .frm_radio{
|
547 |
-
display:<?php echo $radio_align . $important ?>;
|
548 |
}
|
549 |
|
550 |
-
.<?php echo $style_class ?> .horizontal_radio .frm_radio{
|
551 |
-
margin:0 5px 0 0<?php echo $important ?>;
|
552 |
}
|
553 |
|
554 |
-
.<?php echo $style_class ?> .frm_checkbox{
|
555 |
-
display:<?php echo $check_align . $important ?>;
|
556 |
}
|
557 |
|
558 |
-
.<?php echo $style_class ?> .vertical_radio .frm_checkbox,
|
559 |
-
.<?php echo $style_class ?> .vertical_radio .frm_radio,
|
560 |
.vertical_radio .frm_catlevel_1{
|
561 |
-
display:block<?php echo $important ?>;
|
562 |
}
|
563 |
|
564 |
-
.<?php echo $style_class ?> .horizontal_radio .frm_checkbox,
|
565 |
-
.<?php echo $style_class ?> .horizontal_radio .frm_radio,
|
566 |
.horizontal_radio .frm_catlevel_1{
|
567 |
-
display:inline-block<?php echo $important ?>;
|
568 |
}
|
569 |
|
570 |
-
.<?php echo $style_class ?> .frm_radio label,
|
571 |
-
.<?php echo $style_class ?> .frm_checkbox label{
|
572 |
-
font-family:<?php echo stripslashes($font) . $important ?>;
|
573 |
-
font-size:<?php echo $check_font_size . $important ?>;
|
574 |
-
color:#<?php echo $check_label_color . $important ?>;
|
575 |
-
font-weight:<?php echo $check_weight . $important ?>;
|
576 |
display:inline;
|
|
|
577 |
}
|
578 |
|
579 |
-
.<?php echo $style_class ?> .frm_blank_field input[type=text],
|
580 |
-
.<?php echo $style_class ?> .frm_blank_field input[type=password],
|
581 |
-
.<?php echo $style_class ?> .frm_blank_field input[type=url],
|
582 |
-
.<?php echo $style_class ?> .frm_blank_field input[type=tel],
|
583 |
-
.<?php echo $style_class ?> .frm_blank_field input[type=number],
|
584 |
-
.<?php echo $style_class ?> .frm_blank_field input[type=email],
|
585 |
-
.<?php echo $style_class ?> .frm_blank_field textarea,
|
586 |
-
.<?php echo $style_class ?> .frm_blank_field select,
|
587 |
.frm_form_fields_error_style,
|
588 |
-
.<?php echo $style_class ?> .frm_blank_field .g-recaptcha iframe,
|
589 |
-
.<?php echo $style_class ?> .frm_blank_field .chosen-container-multi .chosen-choices{
|
590 |
-
color:#<?php echo $text_color_error . $important ?>;
|
591 |
-
background-color:#<?php echo $bg_color_error ?>;
|
592 |
-
border-color:#<?php echo $border_color_error . $important ?>;
|
593 |
-
border-width:<?php echo $border_width_error . $important ?>;
|
594 |
-
border-style:<?php echo $border_style_error . $important ?>;
|
595 |
}
|
596 |
|
597 |
-
.<?php echo $style_class ?> .frm_error{
|
598 |
-
font-weight:<?php echo $weight . $important ?>;
|
599 |
}
|
600 |
|
601 |
-
.<?php echo $style_class ?> .frm_blank_field label,
|
602 |
-
.<?php echo $style_class ?> .frm_error{
|
603 |
-
color:#<?php echo $border_color_error . $important ?>;
|
604 |
}
|
605 |
|
606 |
-
.<?php echo $style_class ?> .frm_error_style{
|
607 |
-
background-color:#<?php echo $error_bg . $important ?>;
|
608 |
-
border:1px solid #<?php echo $error_border . $important ?>;
|
609 |
-
color:#<?php echo $error_text . $important ?>;
|
610 |
-
font-size:<?php echo $error_font_size . $important ?>;
|
611 |
margin:0;
|
612 |
-
margin-bottom:<?php echo $field_margin ?>;
|
613 |
}
|
614 |
|
615 |
-
.<?php echo $style_class ?> .frm_message,
|
616 |
.frm_success_style{
|
617 |
-
border:1px solid #<?php echo $success_border_color ?>;
|
618 |
-
background-color:#<?php echo $success_bg_color ?>;
|
619 |
-
color:#<?php echo $success_text_color ?>;
|
620 |
}
|
621 |
|
622 |
-
.<?php echo $style_class ?> .frm_message{
|
623 |
margin:5px 0 15px;
|
624 |
-
font-size:<?php echo $success_font_size . $important ?>;
|
625 |
}
|
626 |
|
627 |
-
.<?php echo $style_class ?> .frm-grid td,
|
628 |
.frm-grid th{
|
629 |
-
border-color:#<?php echo $border_color ?>;
|
630 |
}
|
631 |
|
632 |
-
.form_results.<?php echo $style_class ?>{
|
633 |
-
border:<?php echo $field_border_width ?> solid #<?php echo $border_color . $important ?>;
|
634 |
}
|
635 |
|
636 |
-
.form_results.<?php echo $style_class ?> tr td{
|
637 |
-
color:#<?php echo $text_color . $important ?>;
|
638 |
-
border-top:<?php echo $field_border_width ?> solid #<?php echo $border_color . $important ?>;
|
639 |
}
|
640 |
|
641 |
-
.form_results.<?php echo $style_class ?> tr.frm_even,
|
642 |
.frm-grid .frm_even{
|
643 |
-
background-color:#<?php echo $bg_color . $important ?>;
|
644 |
}
|
645 |
|
646 |
-
.<?php echo $style_class ?> #frm_loading .progress-striped .progress-bar{
|
647 |
-
background-image:linear-gradient(45deg, #<?php echo $border_color ?> 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, #<?php echo $border_color ?> 50%, #<?php echo $border_color ?> 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));
|
648 |
}
|
649 |
|
650 |
-
.<?php echo $style_class ?> #frm_loading .progress-bar{
|
651 |
-
background-color:#<?php echo $bg_color ?>;
|
652 |
}
|
653 |
|
654 |
-
.<?php echo $style_class ?> .frm_grid,
|
655 |
-
.<?php echo $style_class ?> .frm_grid_first,
|
656 |
-
.<?php echo $style_class ?> .frm_grid_odd{
|
657 |
-
border-color:#<?php echo $border_color ?>;
|
658 |
}
|
659 |
|
660 |
-
.<?php echo $style_class ?> .frm_grid.frm_blank_field,
|
661 |
-
.<?php echo $style_class ?> .frm_grid_first.frm_blank_field,
|
662 |
-
.<?php echo $style_class ?> .frm_grid_odd.frm_blank_field{
|
663 |
-
background-color:#<?php echo $error_bg ?>;
|
664 |
-
border-color:#<?php echo $error_border ?>;
|
665 |
}
|
666 |
|
667 |
-
.<?php echo $style_class ?> .frm_grid_first,
|
668 |
-
.<?php echo $style_class ?> .frm_grid_odd{
|
669 |
-
background-color:#<?php echo $bg_color ?>;
|
670 |
}
|
671 |
|
672 |
-
.<?php echo $style_class ?> .frm_grid{
|
673 |
-
background-color:#<?php echo $bg_color_active ?>;
|
674 |
}
|
675 |
|
676 |
-
.<?php echo $style_class ?> .frm_form_field.frm_html_scroll_box{
|
677 |
-
background-color:#<?php echo $bg_color . $important ?>;
|
678 |
-
border-color:#<?php echo $border_color . $important ?>;
|
679 |
-
border-width:<?php echo $field_border_width . $important ?>;
|
680 |
-
border-style:<?php echo $field_border_style . $important ?>;
|
681 |
-
-moz-border-radius:<?php echo $border_radius . $important ?>;
|
682 |
-
-webkit-border-radius:<?php echo $border_radius . $important ?>;
|
683 |
-
border-radius:<?php echo $border_radius . $important ?>;
|
684 |
-
width:<?php echo ($field_width == '' ? 'auto' : $field_width) . $important ?>;
|
685 |
-
font-size:<?php echo $field_font_size . $important ?>;
|
686 |
-
padding:<?php echo $field_pad . $important ?>;
|
687 |
-
outline:none<?php echo $important ?>;
|
688 |
}
|
689 |
|
690 |
-
.<?php echo $style_class ?> .frm_form_field.frm_total input,
|
691 |
-
.<?php echo $style_class ?> .frm_form_field.frm_total textarea{
|
692 |
-
color:#<?php echo $text_color . $important ?>;
|
693 |
-
background-color:transparent<?php echo $important ?>;
|
694 |
-
border:none<?php echo $important ?>;
|
695 |
-
display:inline<?php echo $important ?>;
|
696 |
-
width:auto<?php echo $important ?>;
|
|
|
697 |
}
|
698 |
|
699 |
-
.<?php echo $style_class ?> .frm_text_block input,
|
700 |
-
.<?php echo $style_class ?> .frm_text_block label.frm_primary_label{
|
701 |
margin-left:-20px;
|
702 |
}
|
703 |
|
704 |
-
.<?php echo $style_class ?> .frm_button{
|
705 |
-
padding:<?php echo $
|
706 |
-
-moz-border-radius:<?php echo $border_radius . $important ?>;
|
707 |
-
-webkit-border-radius:<?php echo $border_radius . $important ?>;
|
708 |
-
border-radius:<?php echo $border_radius . $important ?>;
|
709 |
-
font-size:<?php echo $submit_font_size . $important ?>;
|
710 |
-
font-family:<?php echo stripslashes($font) . $important ?>;
|
711 |
-
font-weight:<?php echo $submit_weight . $important ?>;
|
712 |
-
color:#<?php echo $submit_text_color . $important ?>;
|
713 |
-
background:#<?php echo $submit_bg_color . $important ?>;
|
714 |
-
border-width:<?php echo $submit_border_width ?>;
|
715 |
-
border-color:#<?php echo $submit_border_color . $important ?>;
|
|
|
716 |
}
|
717 |
-
.<?php echo $style_class ?> .frm_button .frm_icon_font:before{
|
718 |
-
font-size:<?php echo $submit_font_size . $important ?>;
|
719 |
}
|
720 |
|
721 |
/* RTL Grids */
|
722 |
<?php if ( 'rtl' == $direction ) { ?>
|
723 |
-
.<?php echo $style_class ?> .frm_form_fields div.rating-cancel,
|
724 |
-
.<?php echo $style_class ?> .frm_form_fields div.star-rating{
|
725 |
float:right;
|
726 |
}
|
727 |
|
728 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half,
|
729 |
-
.<?php echo $style_class ?> .frm_form_field.frm_third,
|
730 |
-
.<?php echo $style_class ?> .frm_form_field.frm_two_thirds,
|
731 |
-
.<?php echo $style_class ?> .frm_form_field.frm_fourth,
|
732 |
-
.<?php echo $style_class ?> .frm_form_field.frm_fifth,
|
733 |
-
.<?php echo $style_class ?> .frm_form_field.frm_sixth,
|
734 |
-
.<?php echo $style_class ?> .frm_form_field.frm_seventh,
|
735 |
-
.<?php echo $style_class ?> .frm_form_field.frm_eighth,
|
736 |
-
.<?php echo $style_class ?> .frm_form_field.frm_inline,
|
737 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_half,
|
738 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_third,
|
739 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_two_thirds,
|
740 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_fourth,
|
741 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_fifth,
|
742 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_inline,
|
743 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_half,
|
744 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_third,
|
745 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_two_thirds,
|
746 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_fourth,
|
747 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_fifth,
|
748 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_inline,
|
749 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_half,
|
750 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_third,
|
751 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_two_thirds,
|
752 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_fourth,
|
753 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_fifth,
|
754 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_inline,
|
755 |
-
.<?php echo $style_class ?> .frm_form_field.frm_last_half,
|
756 |
-
.<?php echo $style_class ?> .frm_form_field.frm_last_third,
|
757 |
-
.<?php echo $style_class ?> .frm_form_field.frm_last_two_thirds,
|
758 |
-
.<?php echo $style_class ?> .frm_form_field.frm_last_fourth,
|
759 |
-
.<?php echo $style_class ?> .frm_form_field.frm_last_fifth,
|
760 |
-
.<?php echo $style_class ?> .frm_form_field.frm_last_inline{
|
761 |
float:right;
|
762 |
margin-right:2.5%;
|
763 |
margin-left:0;
|
764 |
clear:none;
|
765 |
}
|
766 |
|
767 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_half,
|
768 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_half,
|
769 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first,
|
770 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_third,
|
771 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_third,
|
772 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_two_thirds,
|
773 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_two_thirds,
|
774 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_fourth,
|
775 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_fourth,
|
776 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_fifth,
|
777 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_fifth,
|
778 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_inline,
|
779 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_inline{
|
780 |
clear:right;
|
781 |
margin-right:0;
|
782 |
}
|
783 |
|
784 |
-
.<?php echo $style_class ?> .frm_grid .frm_primary_label,
|
785 |
-
.<?php echo $style_class ?> .frm_grid_first .frm_primary_label,
|
786 |
-
.<?php echo $style_class ?> .frm_grid_odd .frm_primary_label,
|
787 |
-
.<?php echo $style_class ?> .frm_grid .frm_radio,
|
788 |
-
.<?php echo $style_class ?> .frm_grid_first .frm_radio,
|
789 |
-
.<?php echo $style_class ?> .frm_grid_odd .frm_radio,
|
790 |
-
.<?php echo $style_class ?> .frm_grid .frm_checkbox,
|
791 |
-
.<?php echo $style_class ?> .frm_grid_first .frm_checkbox,
|
792 |
-
.<?php echo $style_class ?> .frm_grid_odd .frm_checkbox{
|
793 |
float:right !important;
|
794 |
margin-right:0 !important;
|
795 |
}
|
796 |
|
797 |
-
.<?php echo $style_class ?> .frm_grid_first .frm_radio label input,
|
798 |
-
.<?php echo $style_class ?> .frm_grid .frm_radio label input,
|
799 |
-
.<?php echo $style_class ?> .frm_grid_odd .frm_radio label input,
|
800 |
-
.<?php echo $style_class ?> .frm_grid_first .frm_checkbox label input,
|
801 |
-
.<?php echo $style_class ?> .frm_grid .frm_checkbox label input,
|
802 |
-
.<?php echo $style_class ?> .frm_grid_odd .frm_checkbox label input{
|
803 |
float:left;
|
804 |
}
|
805 |
|
806 |
-
.<?php echo $style_class ?> .frm_form_field.frm_two_col .frm_radio,
|
807 |
-
.<?php echo $style_class ?> .frm_form_field.frm_three_col .frm_radio,
|
808 |
-
.<?php echo $style_class ?> .frm_form_field.frm_four_col .frm_radio,
|
809 |
-
.<?php echo $style_class ?> .frm_form_field.frm_two_col .frm_checkbox,
|
810 |
-
.<?php echo $style_class ?> .frm_form_field.frm_three_col .frm_checkbox,
|
811 |
-
.<?php echo $style_class ?> .frm_form_field.frm_four_col .frm_checkbox{
|
812 |
float:right;
|
813 |
}
|
814 |
<?php } ?>
|
815 |
/* Start Chosen */
|
816 |
-
.<?php echo $style_class ?> .chosen-container{
|
817 |
-
font-size:<?php echo $field_font_size . $important ?>;
|
818 |
}
|
819 |
|
820 |
-
.<?php echo $style_class ?> .chosen-container-single .chosen-single{
|
821 |
-
height:<?php echo ($field_height == 'auto' || $field_height == '') ? '25px' : $field_height ?>;
|
822 |
-
line-height:1.3<?php echo $important ?>;
|
823 |
}
|
824 |
|
825 |
-
.<?php echo $style_class ?> .chosen-container-single .chosen-single div{
|
826 |
<?php
|
827 |
// calculate the top position based on field padding
|
828 |
$top_pad = explode(' ', $field_pad);
|
@@ -830,92 +838,92 @@ if ( ! $submit_style ) { ?>
|
|
830 |
$pad_unit = preg_replace('/[0-9]+/', '', $top_pad); //px, em, rem...
|
831 |
$top_margin = (int) str_replace($pad_unit, '', $top_pad) / 2;
|
832 |
?>
|
833 |
-
top:<?php echo $top_margin . $pad_unit . $important ?>;
|
834 |
}
|
835 |
|
836 |
-
.<?php echo $style_class ?> .chosen-container-single .chosen-search input[type="text"]{
|
837 |
-
height:<?php echo ($field_height == 'auto' || $field_height == '') ? 'auto' : $field_height ?>;
|
838 |
}
|
839 |
|
840 |
-
.<?php echo $style_class ?> .chosen-container-multi .chosen-choices li.search-field input[type="text"]{
|
841 |
-
height:15px<?php echo $important ?>;
|
842 |
}
|
843 |
/* End Chosen */
|
844 |
|
845 |
/* Responsive CSS */
|
846 |
<?php if ( $change_margin !== false ) { ?>
|
847 |
-
@media only screen and (max-width: <?php echo $change_margin ?>){
|
848 |
-
.<?php echo $style_class ?> .frm_left_container p.description,
|
849 |
-
.<?php echo $style_class ?> .frm_left_container div.description,
|
850 |
-
.<?php echo $style_class ?> .frm_left_container div.frm_description,
|
851 |
-
.<?php echo $style_class ?> .frm_left_container .frm_error,
|
852 |
-
.<?php echo $style_class ?> .frm_left_container .attachment-thumbnail{
|
853 |
-
margin-left:33%<?php echo $important ?>;
|
854 |
-
padding-left:10px<?php echo $important ?>;
|
855 |
}
|
856 |
-
.<?php echo $style_class ?> .frm_right_container p.description,
|
857 |
-
.<?php echo $style_class ?> .frm_right_container div.description,
|
858 |
-
.<?php echo $style_class ?> .frm_right_container div.frm_description,
|
859 |
-
.<?php echo $style_class ?> .frm_right_container .frm_error{
|
860 |
-
margin-right:33%<?php echo $important ?>;
|
861 |
-
padding-right:10px<?php echo $important ?>;
|
862 |
}
|
863 |
}
|
864 |
<?php } ?>
|
865 |
|
866 |
@media only screen and (max-width: 600px){
|
867 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_left_container input:not([type=radio]):not([type=checkbox]),
|
868 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_left_container select,
|
869 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_left_container textarea,
|
870 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_left_container .frm_opt_container,
|
871 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_left_container.g-recaptcha,
|
872 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_right_container input:not([type=radio]):not([type=checkbox]),
|
873 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_right_container select,
|
874 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_right_container textarea,
|
875 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_right_container .frm_opt_container,
|
876 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_right_container.g-recaptcha{
|
877 |
-
max-width:100%<?php echo $important ?>;
|
878 |
}
|
879 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_half.frm_left_container .frm_primary_label,
|
880 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_half.frm_left_container .frm_primary_label,
|
881 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_half.frm_left_container .frm_primary_label,
|
882 |
-
.<?php echo $style_class ?> .frm_form_field.frm_last_half.frm_left_container .frm_primary_label,
|
883 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_left_container .frm_primary_label,
|
884 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_half.frm_right_container .frm_primary_label,
|
885 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_half.frm_right_container .frm_primary_label,
|
886 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_half.frm_right_container .frm_primary_label,
|
887 |
-
.<?php echo $style_class ?> .frm_form_field.frm_last_half.frm_right_container .frm_primary_label,
|
888 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_right_container .frm_primary_label{
|
889 |
-
max-width:100%<?php echo $important ?>;
|
890 |
margin-right:0;
|
891 |
margin-left:0;
|
892 |
padding-right:0;
|
893 |
padding-left:0;
|
894 |
-
width:100%<?php echo $important ?>;
|
895 |
}
|
896 |
|
897 |
|
898 |
-
.<?php echo $style_class ?> .frm_repeat_inline,
|
899 |
-
.<?php echo $style_class ?> .frm_repeat_grid{
|
900 |
margin: 20px 0;
|
901 |
}
|
902 |
|
903 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_half.frm_right_container div.frm_description,
|
904 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_half.frm_right_container .frm_error,
|
905 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_half .frm_right_container div.frm_description,
|
906 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_half .frm_right_container .frm_error,
|
907 |
-
.<?php echo $style_class ?> .frm_form_field.frm_last_half.frm_right_container div.frm_description,
|
908 |
-
.<?php echo $style_class ?> .frm_form_field.frm_last_half.frm_right_container .frm_error,
|
909 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_right_container div.frm_description,
|
910 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_right_container .frm_error,
|
911 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_half.frm_left_container div.frm_description,
|
912 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_half.frm_left_container .frm_error,
|
913 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_half .frm_left_container div.frm_description,
|
914 |
-
.<?php echo $style_class ?> .frm_form_field.frm_first_half .frm_left_container .frm_error,
|
915 |
-
.<?php echo $style_class ?> .frm_form_field.frm_last_half.frm_left_container div.frm_description,
|
916 |
-
.<?php echo $style_class ?> .frm_form_field.frm_last_half.frm_left_container .frm_error,
|
917 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_left_container div.frm_description,
|
918 |
-
.<?php echo $style_class ?> .frm_form_field.frm_half.frm_left_container .frm_error{
|
919 |
margin-right:0;
|
920 |
margin-left:0;
|
921 |
padding-right:0;
|
@@ -924,44 +932,44 @@ if ( ! $submit_style ) { ?>
|
|
924 |
}
|
925 |
|
926 |
@media only screen and (max-width: 500px) {
|
927 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_container input:not([type=radio]):not([type=checkbox]),
|
928 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_container select,
|
929 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_container textarea,
|
930 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_container:not(.frm_dynamic_select_container) .frm_opt_container,
|
931 |
-
.<?php echo $style_class ?> .frm_form_field.frm_left_container .g-recaptcha,
|
932 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_container input:not([type=radio]):not([type=checkbox]),
|
933 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_container select,
|
934 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_container textarea,
|
935 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_container:not(.frm_dynamic_select_container) .frm_opt_container,
|
936 |
-
.<?php echo $style_class ?> .frm_form_field.frm_right_container .g-recaptcha,
|
937 |
-
.<?php echo $style_class ?> .frm_left_container p.description,
|
938 |
-
.<?php echo $style_class ?> .frm_left_container div.description,
|
939 |
-
.<?php echo $style_class ?> .frm_left_container div.frm_description,
|
940 |
-
.<?php echo $style_class ?> .frm_left_container .frm_error,
|
941 |
-
.<?php echo $style_class ?> .frm_left_container .attachment-thumbnail,
|
942 |
-
.<?php echo $style_class ?> .frm_right_container p.description,
|
943 |
-
.<?php echo $style_class ?> .frm_right_container div.description,
|
944 |
-
.<?php echo $style_class ?> .frm_right_container div.frm_description,
|
945 |
-
.<?php echo $style_class ?> .frm_right_container .frm_error{
|
946 |
-
max-width:100%<?php echo $important ?>;
|
947 |
}
|
948 |
-
.<?php echo $style_class ?> .frm_left_container p.description,
|
949 |
-
.<?php echo $style_class ?> .frm_left_container div.description,
|
950 |
-
.<?php echo $style_class ?> .frm_left_container div.frm_description,
|
951 |
-
.<?php echo $style_class ?> .frm_left_container .frm_error,
|
952 |
-
.<?php echo $style_class ?> .frm_left_container .attachment-thumbnail,
|
953 |
-
.<?php echo $style_class ?> .frm_right_container p.description,
|
954 |
-
.<?php echo $style_class ?> .frm_right_container div.description,
|
955 |
-
.<?php echo $style_class ?> .frm_right_container div.frm_description,
|
956 |
-
.<?php echo $style_class ?> .frm_right_container .frm_error,
|
957 |
-
.<?php echo $style_class ?> .frm_left_container label.frm_primary_label,
|
958 |
-
.<?php echo $style_class ?> .frm_right_container label.frm_primary_label{
|
959 |
-
width:100%<?php echo $important ?>;
|
960 |
-
max-width:100%<?php echo $important ?>;
|
961 |
-
margin-right:0px<?php echo $important ?>;
|
962 |
-
margin-left:0px<?php echo $important ?>;
|
963 |
-
padding-right:0px<?php echo $important ?>;
|
964 |
-
padding-left:0px<?php echo $important ?>;
|
965 |
}
|
966 |
}
|
967 |
/* End Responsive CSS*/
|
43 |
$collapse_icon = 0;
|
44 |
}
|
45 |
|
46 |
+
if ( ! isset( $center_form ) ) {
|
47 |
+
$center_form = 0;
|
48 |
+
}
|
49 |
+
|
50 |
?>
|
51 |
|
52 |
+
.frm_forms.<?php echo esc_html( $style_class ) ?>{
|
53 |
+
max-width:<?php echo esc_html( $form_width . $important ) ?>;
|
54 |
+
direction:<?php echo esc_html( $direction . $important ) ?>;
|
55 |
<?php if ( 'rtl' == $direction ) { ?>
|
56 |
unicode-bidi:embed;
|
57 |
<?php } ?>
|
60 |
<?php } ?>
|
61 |
}
|
62 |
|
63 |
+
.<?php echo esc_html( $style_class ) ?>,
|
64 |
+
.<?php echo esc_html( $style_class ) ?> form{
|
65 |
+
text-align:<?php echo esc_html( $form_align . $important ) ?>;
|
66 |
}
|
67 |
|
68 |
<?php if ( $center_form ) {?>
|
69 |
+
.frm_inline_form.<?php echo esc_html( $style_class ) ?> form{
|
70 |
text-align:center;
|
71 |
}
|
72 |
<?php } ?>
|
73 |
|
74 |
+
.<?php echo esc_html( $style_class ) ?> fieldset{
|
75 |
+
border:<?php echo esc_html( $fieldset ) ?> solid #<?php echo esc_html( $fieldset_color . $important ) ?>;
|
76 |
margin:0;
|
77 |
+
padding:<?php echo esc_html( $fieldset_padding . $important ) ?>;
|
78 |
+
background-color:<?php echo esc_html( empty($fieldset_bg_color) ? 'transparent' : '#'. $fieldset_bg_color ); ?>;
|
79 |
}
|
80 |
|
81 |
+
.<?php echo esc_html( $style_class ) ?> .frm-show-form > h3{
|
82 |
+
font-size:<?php echo esc_html( $title_size . $important ) ?>;
|
83 |
+
color:#<?php echo esc_html( $title_color . $important ) ?>;
|
84 |
}
|
85 |
|
86 |
+
.<?php echo esc_html( $style_class ) ?> .frm-show-form .frm_section_heading h3{
|
87 |
+
padding:<?php echo esc_html( $section_pad . $important ) ?>;
|
88 |
+
margin:0<?php echo esc_html( $important ) ?>;
|
89 |
+
font-size:<?php echo esc_html( $section_font_size . $important ) ?>;
|
90 |
+
font-weight:<?php echo esc_html( $section_weight . $important ) ?>;
|
91 |
+
color:#<?php echo esc_html( $section_color . $important ) ?>;
|
92 |
+
border:none<?php echo esc_html( $important ) ?>;
|
93 |
+
border<?php echo esc_html( $section_border_loc ) ?>:<?php echo esc_html( $section_border_width . ' ' . $section_border_style . ' #' . $section_border_color . $important ) ?>;
|
94 |
+
background-color:<?php echo esc_html( empty( $section_bg_color ) ? 'transparent' : '#' . $section_bg_color . $important ); ?>
|
95 |
}
|
96 |
|
97 |
+
.<?php echo esc_html( $style_class ) ?> h3 .frm_<?php echo esc_html( $collapse_pos ) ?>_collapse{
|
98 |
display:inline;
|
99 |
}
|
100 |
+
.<?php echo esc_html( $style_class ) ?> h3 .frm_<?php echo ( 'after' == $collapse_pos ) ? 'before' : 'after'; ?>_collapse{
|
101 |
display:none;
|
102 |
}
|
103 |
|
104 |
+
.menu-edit #post-body-content .<?php echo esc_html( $style_class ) ?> .frm_section_heading h3{
|
105 |
margin:0;
|
106 |
}
|
107 |
|
108 |
+
.<?php echo esc_html( $style_class ) ?> .frm_section_heading{
|
109 |
+
margin-top:<?php echo esc_html( $section_mar_top . $important ) ?>;
|
110 |
}
|
111 |
|
112 |
+
.<?php echo esc_html( $style_class ) ?> .frm-show-form .frm_section_heading .frm_section_spacing,
|
113 |
+
.menu-edit #post-body-content .<?php echo esc_html( $style_class ) ?> .frm-show-form .frm_section_heading .frm_section_spacing{
|
114 |
+
margin-bottom:<?php echo esc_html( $section_mar_bottom . $important ) ?>;
|
115 |
}
|
116 |
|
117 |
+
.<?php echo esc_html( $style_class ) ?> .frm_repeat_sec{
|
118 |
+
margin-bottom:<?php echo esc_html( $field_margin. $important ) ?>;
|
119 |
+
margin-top:<?php echo esc_html( $field_margin. $important ) ?>;
|
120 |
}
|
121 |
|
122 |
+
.<?php echo esc_html( $style_class ) ?> label.frm_primary_label,
|
123 |
+
.<?php echo esc_html( $style_class ) ?>.frm_login_form label{
|
124 |
+
font-family:<?php echo esc_html( stripslashes( $font ) ) ?>;
|
125 |
+
font-size:<?php echo esc_html( $font_size . $important ) ?>;
|
126 |
+
color:#<?php echo esc_html( $label_color . $important ) ?>;
|
127 |
+
font-weight:<?php echo esc_html( $weight . $important ) ?>;
|
128 |
+
text-align:<?php echo esc_html( $align . $important ) ?>;
|
129 |
margin:0;
|
130 |
+
padding:<?php echo esc_html( $label_padding . $important ) ?>;
|
131 |
width:auto;
|
132 |
display:block;
|
133 |
}
|
134 |
|
135 |
+
.<?php echo esc_html( $style_class ) ?> .frm_icon_font{
|
136 |
+
color:#<?php echo esc_html( $label_color . $important ) ?>;
|
137 |
}
|
138 |
|
139 |
+
.<?php echo esc_html( $style_class ) ?> .frm_icon_font.frm_minus_icon:before{
|
140 |
+
content:"\e<?php echo esc_html( isset( $minus_icons[ $repeat_icon ] ) ? $minus_icons[ $repeat_icon ]['-'] : $minus_icons[1]['-'] ) ?>";
|
141 |
}
|
142 |
|
143 |
+
.<?php echo esc_html( $style_class ) ?> .frm_icon_font.frm_plus_icon:before{
|
144 |
+
content:"\e<?php echo esc_html( isset( $minus_icons[ $repeat_icon ] ) ? $minus_icons[ $repeat_icon ]['+'] : $minus_icons[1]['+'] ) ?>";
|
145 |
}
|
146 |
|
147 |
+
.<?php echo esc_html( $style_class ) ?> .frm_icon_font.frm_minus_icon:before,
|
148 |
+
.<?php echo esc_html( $style_class ) ?> .frm_icon_font.frm_plus_icon:before{
|
149 |
+
color:#<?php echo esc_html( $submit_text_color . $important ) ?>;
|
150 |
}
|
151 |
|
152 |
+
.<?php echo esc_html( $style_class ) ?> .frm_trigger.active .frm_icon_font.frm_arrow_icon:before{
|
153 |
+
content:"\e<?php echo esc_html( isset( $arrow_icons[ $collapse_icon ] ) ? $arrow_icons[ $collapse_icon ]['-'] : $arrow_icons[1]['-'] ) ?>";
|
154 |
}
|
155 |
|
156 |
+
.<?php echo esc_html( $style_class ) ?> .frm_trigger .frm_icon_font.frm_arrow_icon:before{
|
157 |
+
content:"\e<?php echo esc_html( isset( $arrow_icons[ $collapse_icon ] ) ? $arrow_icons[ $collapse_icon ]['+'] : $arrow_icons[1]['+'] ) ?>";
|
158 |
}
|
159 |
|
160 |
+
.<?php echo esc_html( $style_class ) ?> .form-field{
|
161 |
+
margin-bottom:<?php echo esc_html( $field_margin. $important ) ?>;
|
162 |
}
|
163 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid,
|
164 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_first,
|
165 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_odd {
|
166 |
+
margin-bottom:0<?php echo esc_html( $important ) ?>;
|
167 |
}
|
168 |
+
.<?php echo esc_html( $style_class ) ?> .form-field.frm_section_heading{
|
169 |
+
margin-bottom:0<?php echo esc_html( $important ) ?>;
|
170 |
}
|
171 |
|
172 |
+
.<?php echo esc_html( $style_class ) ?> p.description,
|
173 |
+
.<?php echo esc_html( $style_class ) ?> div.description,
|
174 |
+
.<?php echo esc_html( $style_class ) ?> div.frm_description,
|
175 |
+
.<?php echo esc_html( $style_class ) ?> .frm-show-form > div.frm_description,
|
176 |
+
.<?php echo esc_html( $style_class ) ?> .frm_error{
|
177 |
margin:0;
|
178 |
padding:0;
|
179 |
+
font-family:<?php echo esc_html( stripslashes($font) . $important ) ?>;
|
180 |
+
font-size:<?php echo esc_html( $description_font_size . $important ) ?>;
|
181 |
+
color:#<?php echo esc_html( $description_color . $important ) ?>;
|
182 |
+
font-weight:<?php echo esc_html( $description_weight . $important ) ?>;
|
183 |
+
text-align:<?php echo esc_html( $description_align . $important ) ?>;
|
184 |
+
font-style:<?php echo esc_html( $description_style . $important ) ?>;
|
185 |
max-width:100%;
|
186 |
}
|
187 |
|
188 |
/* Form description */
|
189 |
+
.<?php echo esc_html( $style_class ) ?> .frm-show-form div.frm_description p{
|
190 |
+
font-size:<?php echo esc_html( $form_desc_size . $important ) ?>;
|
191 |
+
color:#<?php echo esc_html( $form_desc_color . $important ) ?>;
|
192 |
}
|
193 |
|
194 |
|
195 |
/* Left and right labels */
|
196 |
+
.<?php echo esc_html( $style_class ) ?> .frm_left_container label.frm_primary_label{
|
197 |
float:left;
|
198 |
+
display:inline<?php echo esc_html( $important ) ?>;
|
199 |
+
width:<?php echo esc_html( $width . $important ) ?>;
|
200 |
+
max-width:33%<?php echo esc_html( $important ) ?>;
|
201 |
+
margin-right:10px<?php echo esc_html( $important ) ?>;
|
202 |
}
|
203 |
|
204 |
+
.<?php echo esc_html( $style_class ) ?> .frm_right_container label.frm_primary_label{
|
205 |
+
display:inline<?php echo esc_html( $important ) ?>;
|
206 |
+
width:<?php echo esc_html( $width . $important ); ?>;
|
207 |
+
max-width:33%<?php echo esc_html( $important ) ?>;
|
208 |
+
margin-left:10px<?php echo esc_html( $important ) ?>;
|
209 |
}
|
210 |
|
211 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_container input:not([type=radio]):not([type=checkbox]),
|
212 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_container select,
|
213 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_container textarea,
|
214 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_container:not(.frm_dynamic_select_container) .frm_opt_container,
|
215 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_container .g-recaptcha,
|
216 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_right_container input:not([type=radio]):not([type=checkbox]),
|
217 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_right_container select,
|
218 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_right_container textarea,
|
219 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_right_container:not(.frm_dynamic_select_container) .frm_opt_container,
|
220 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_right_container .g-recaptcha{
|
221 |
+
max-width:62%<?php echo esc_html( $important ) ?>;
|
222 |
}
|
223 |
|
224 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_container:not(.frm_dynamic_select_container) .frm_opt_container,
|
225 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_right_container:not(.frm_dynamic_select_container) .frm_opt_container,
|
226 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_container .g-recaptcha,
|
227 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_right_container .g-recaptcha{
|
228 |
+
display:inline-block<?php echo esc_html( $important ) ?>;
|
229 |
}
|
230 |
|
231 |
+
.<?php echo esc_html( $style_class ) ?> .frm_left_container p.description,
|
232 |
+
.<?php echo esc_html( $style_class ) ?> .frm_left_container div.description,
|
233 |
+
.<?php echo esc_html( $style_class ) ?> .frm_left_container div.frm_description,
|
234 |
+
.<?php echo esc_html( $style_class ) ?> .frm_left_container .frm_error{
|
235 |
+
margin-left:<?php echo esc_html( $label_margin ) ?>px;
|
236 |
+
max-width:62%<?php echo esc_html( $important ) ?>;
|
237 |
}
|
238 |
|
239 |
+
.<?php echo esc_html( $style_class ) ?> .frm_right_container p.description,
|
240 |
+
.<?php echo esc_html( $style_class ) ?> .frm_right_container div.description,
|
241 |
+
.<?php echo esc_html( $style_class ) ?> .frm_right_container div.frm_description,
|
242 |
+
.<?php echo esc_html( $style_class ) ?> .frm_right_container .frm_error{
|
243 |
+
margin-right:<?php echo esc_html( $label_margin ) ?>px<?php echo esc_html( $important ) ?>;
|
244 |
+
max-width:62%<?php echo esc_html( $important ) ?>;
|
245 |
}
|
246 |
|
247 |
+
.<?php echo esc_html( $style_class ) ?> .frm_left_container .attachment-thumbnail{
|
248 |
clear:both;
|
249 |
+
margin-left:<?php echo esc_html( $label_margin ) ?>px<?php echo esc_html( $important ) ?>;
|
250 |
}
|
251 |
|
252 |
+
.<?php echo esc_html( $style_class ) ?> .frm_left_container.frm_inline label.frm_primary_label{
|
253 |
+
max-width:90%<?php echo esc_html( $important ) ?>;
|
254 |
}
|
255 |
|
256 |
+
.<?php echo esc_html( $style_class ) ?> .form-field.frm_col_field div.frm_description{
|
257 |
+
width:<?php echo esc_html( ( $field_width == '' ? 'auto' : $field_width ) . $important ) ?>;
|
258 |
max-width:100%;
|
259 |
}
|
260 |
|
261 |
+
.<?php echo esc_html( $style_class ) ?> .frm_inline_container label.frm_primary_label,
|
262 |
+
.<?php echo esc_html( $style_class ) ?> .frm_inline_container:not(.frm_dynamic_select_container) .frm_opt_container{
|
263 |
+
display:inline<?php echo esc_html( $important ) ?>;
|
264 |
}
|
265 |
|
266 |
+
.<?php echo esc_html( $style_class ) ?> .frm_inline_container label.frm_primary_label{
|
267 |
+
margin-right:10px<?php echo esc_html( $important ) ?>;
|
268 |
}
|
269 |
|
270 |
+
.<?php echo esc_html( $style_class ) ?> .frm_pos_right{
|
271 |
+
display:inline<?php echo esc_html( $important ) ?>;
|
272 |
+
width:<?php echo esc_html( $width . $important ); ?>;
|
273 |
}
|
274 |
|
275 |
+
.<?php echo esc_html( $style_class ) ?> .frm_none_container label.frm_primary_label,
|
276 |
+
.<?php echo esc_html( $style_class ) ?> .frm_pos_none{
|
277 |
+
display:none<?php echo esc_html( $important ) ?>;
|
278 |
}
|
279 |
|
280 |
+
.<?php echo esc_html( $style_class ) ?> .frm_scale label{
|
281 |
+
font-weight:<?php echo esc_html( $check_weight . $important ) ?>;
|
282 |
+
font-family:<?php echo esc_html( stripslashes($font) . $important ) ?>;
|
283 |
+
font-size:<?php echo esc_html( $check_font_size . $important ) ?>;
|
284 |
+
color:#<?php echo esc_html( $check_label_color . $important ) ?>;
|
285 |
}
|
286 |
|
287 |
+
.<?php echo esc_html( $style_class ) ?> .frm_required{
|
288 |
+
color:#<?php echo esc_html( $required_color . $important ); ?>;
|
289 |
+
font-weight:<?php echo esc_html( $required_weight . $important ); ?>;
|
290 |
}
|
291 |
|
292 |
+
.<?php echo esc_html( $style_class ) ?> input[type=text],
|
293 |
+
.<?php echo esc_html( $style_class ) ?> input[type=password],
|
294 |
+
.<?php echo esc_html( $style_class ) ?> input[type=email],
|
295 |
+
.<?php echo esc_html( $style_class ) ?> input[type=number],
|
296 |
+
.<?php echo esc_html( $style_class ) ?> input[type=url],
|
297 |
+
.<?php echo esc_html( $style_class ) ?> input[type=tel],
|
298 |
+
.<?php echo esc_html( $style_class ) ?> input[type=search],
|
299 |
+
.<?php echo esc_html( $style_class ) ?> select,
|
300 |
+
.<?php echo esc_html( $style_class ) ?> textarea,
|
301 |
+
.<?php echo esc_html( $style_class ) ?> .chosen-container{
|
302 |
+
font-family:<?php echo esc_html( stripslashes($font) . $important ) ?>;
|
303 |
+
font-size:<?php echo esc_html( $field_font_size ) ?>;
|
304 |
+
margin-bottom:0<?php echo esc_html( $important ) ?>;
|
305 |
}
|
306 |
|
307 |
+
.<?php echo esc_html( $style_class ) ?> input[type=text],
|
308 |
+
.<?php echo esc_html( $style_class ) ?> input[type=password],
|
309 |
+
.<?php echo esc_html( $style_class ) ?> input[type=email],
|
310 |
+
.<?php echo esc_html( $style_class ) ?> input[type=number],
|
311 |
+
.<?php echo esc_html( $style_class ) ?> input[type=url],
|
312 |
+
.<?php echo esc_html( $style_class ) ?> input[type=tel],
|
313 |
+
.<?php echo esc_html( $style_class ) ?> input[type=phone],
|
314 |
+
.<?php echo esc_html( $style_class ) ?> input[type=search],
|
315 |
+
.<?php echo esc_html( $style_class ) ?> select,
|
316 |
+
.<?php echo esc_html( $style_class ) ?> textarea,
|
317 |
.frm_form_fields_style,
|
318 |
+
.<?php echo esc_html( $style_class ) ?> .frm_scroll_box .frm_opt_container,
|
319 |
.frm_form_fields_active_style,
|
320 |
.frm_form_fields_error_style,
|
321 |
+
.<?php echo esc_html( $style_class ) ?> .chosen-container-multi .chosen-choices,
|
322 |
+
.<?php echo esc_html( $style_class ) ?> .chosen-container-single .chosen-single{
|
323 |
+
color:#<?php echo esc_html( $text_color . $important ) ?>;
|
324 |
+
background-color:#<?php echo esc_html( $bg_color . $important ); ?>;
|
325 |
<?php if ( ! empty($important) ) {
|
326 |
+
echo esc_html( 'background-image:none' . $important . ';' );
|
327 |
}
|
328 |
?>
|
329 |
+
border-color:#<?php echo esc_html( $border_color . $important ) ?>;
|
330 |
+
border-width:<?php echo esc_html( $field_border_width . $important ) ?>;
|
331 |
+
border-style:<?php echo esc_html( $field_border_style . $important ) ?>;
|
332 |
+
-moz-border-radius:<?php echo esc_html( $border_radius . $important ) ?>;
|
333 |
+
-webkit-border-radius:<?php echo esc_html( $border_radius . $important ) ?>;
|
334 |
+
border-radius:<?php echo esc_html( $border_radius . $important ) ?>;
|
335 |
+
width:<?php echo esc_html( ( $field_width == '' ? 'auto' : $field_width ) . $important ) ?>;
|
336 |
max-width:100%;
|
337 |
+
font-size:<?php echo esc_html( $field_font_size . $important ) ?>;
|
338 |
+
padding:<?php echo esc_html( $field_pad . $important ) ?>;
|
339 |
-webkit-box-sizing:border-box;
|
340 |
-moz-box-sizing:border-box;
|
341 |
box-sizing:border-box;
|
342 |
+
outline:none<?php echo esc_html( $important ) ?>;
|
343 |
font-weight:normal;
|
344 |
box-shadow:0 1px 1px rgba(0, 0, 0, 0.075) inset;
|
345 |
}
|
346 |
|
347 |
+
.<?php echo esc_html( $style_class ) ?> input[type=file]::-webkit-file-upload-button{
|
348 |
+
color:#<?php echo esc_html( $text_color . $important ) ?>;
|
349 |
+
background-color:#<?php echo esc_html( $bg_color . $important ); ?>;
|
350 |
+
padding:<?php echo esc_html( $field_pad . $important ) ?>;
|
351 |
+
border-radius:<?php echo esc_html( $border_radius . $important ) ?>;
|
352 |
+
border-color:#<?php echo esc_html( $border_color . $important ) ?>;
|
353 |
+
border-width:<?php echo esc_html( $field_border_width . $important ) ?>;
|
354 |
+
border-style:<?php echo esc_html( $field_border_style . $important ) ?>;
|
355 |
}
|
356 |
|
357 |
+
.<?php echo esc_html( $style_class ) ?> input[type=text],
|
358 |
+
.<?php echo esc_html( $style_class ) ?> input[type=password],
|
359 |
+
.<?php echo esc_html( $style_class ) ?> input[type=email],
|
360 |
+
.<?php echo esc_html( $style_class ) ?> input[type=number],
|
361 |
+
.<?php echo esc_html( $style_class ) ?> input[type=url],
|
362 |
+
.<?php echo esc_html( $style_class ) ?> input[type=tel],
|
363 |
+
.<?php echo esc_html( $style_class ) ?> input[type=file],
|
364 |
+
.<?php echo esc_html( $style_class ) ?> input[type=search],
|
365 |
+
.<?php echo esc_html( $style_class ) ?> select{
|
366 |
+
height:<?php echo esc_html( ( $field_height == '' ? 'auto' : $field_height ) . $important ) ?>;
|
367 |
+
line-height:1.3<?php echo esc_html( $important ) ?>;
|
368 |
}
|
369 |
|
370 |
+
.<?php echo esc_html( $style_class ) ?> select[multiple="multiple"]{
|
371 |
+
height:auto <?php echo esc_html( $important ) ?>;
|
372 |
}
|
373 |
|
374 |
+
.<?php echo esc_html( $style_class ) ?> input[type=file]{
|
375 |
+
color:#<?php echo esc_html( $text_color . $important ) ?>;
|
376 |
padding:0px;
|
377 |
+
font-family:<?php echo esc_html( stripslashes( $font ) . $important ) ?>;
|
378 |
+
font-size:<?php echo esc_html( $field_font_size . $important ) ?>;
|
379 |
}
|
380 |
|
381 |
+
.<?php echo esc_html( $style_class ) ?> input[type=file].frm_transparent{
|
382 |
+
color:transparent<?php echo esc_html( $important ) ?>;
|
383 |
}
|
384 |
|
385 |
+
.<?php echo esc_html( $style_class ) ?> .frm_file_names, .<?php echo esc_html( $style_class ) ?> .frm_uploaded_files .frm_remove_link{
|
386 |
+
font-family:<?php echo esc_html( stripslashes( $font ) . $important ) ?>;
|
387 |
+
font-size:<?php echo esc_html( $field_font_size . $important ) ?>;
|
388 |
}
|
389 |
|
390 |
+
.<?php echo esc_html( $style_class ) ?> .frm_default,
|
391 |
+
.<?php echo esc_html( $style_class ) ?> .placeholder,
|
392 |
+
.<?php echo esc_html( $style_class ) ?> .chosen-container-multi .chosen-choices li.search-field .default,
|
393 |
+
.<?php echo esc_html( $style_class ) ?> .chosen-container-single .chosen-default{
|
394 |
+
color:#<?php echo esc_html( $text_color . $important ) ?>;
|
395 |
font-style:italic;
|
396 |
}
|
397 |
|
398 |
+
.<?php echo esc_html( $style_class ) ?> select{
|
399 |
+
width:<?php echo esc_html( ( $auto_width ? 'auto' : $field_width ) . $important ) ?>;
|
400 |
max-width:100%;
|
401 |
}
|
402 |
|
403 |
+
.<?php echo esc_html( $style_class ) ?> input.frm_other_input:not(.frm_other_full){
|
404 |
+
width:auto <?php echo esc_html( $important ) ?>;
|
405 |
+
margin-left:5px <?php echo esc_html( $important ) ?>;
|
406 |
}
|
407 |
|
408 |
+
.<?php echo esc_html( $style_class ) ?> .frm_full input.frm_other_input:not(.frm_other_full){
|
409 |
+
margin-left:0 <?php echo esc_html( $important ) ?>;
|
410 |
margin-top:8px;
|
411 |
}
|
412 |
|
413 |
+
.<?php echo esc_html( $style_class ) ?> .frm_other_container select:not([multiple="multiple"]){
|
414 |
width:auto;
|
415 |
}
|
416 |
|
417 |
+
.<?php echo esc_html( $style_class ) ?> .wp-editor-wrap{
|
418 |
+
width:<?php echo esc_html( $field_width . $important ) ?>;
|
419 |
max-width:100%;
|
420 |
}
|
421 |
|
422 |
+
.<?php echo esc_html( $style_class ) ?> .wp-editor-container textarea{
|
423 |
+
border:none<?php echo esc_html( $important ) ?>;
|
424 |
}
|
425 |
|
426 |
+
.<?php echo esc_html( $style_class ) ?> .mceIframeContainer{
|
427 |
+
background-color:#<?php echo esc_html( $bg_color . $important ) ?>;
|
428 |
}
|
429 |
|
430 |
+
.<?php echo esc_html( $style_class ) ?> .auto_width input,
|
431 |
+
.<?php echo esc_html( $style_class ) ?> input.auto_width,
|
432 |
+
.<?php echo esc_html( $style_class ) ?> select.auto_width,
|
433 |
+
.<?php echo esc_html( $style_class ) ?> textarea.auto_width{
|
434 |
+
width:auto<?php echo esc_html( $important ) ?>;
|
435 |
}
|
436 |
|
437 |
+
.<?php echo esc_html( $style_class ) ?> input[disabled],
|
438 |
+
.<?php echo esc_html( $style_class ) ?> select[disabled],
|
439 |
+
.<?php echo esc_html( $style_class ) ?> textarea[disabled],
|
440 |
+
.<?php echo esc_html( $style_class ) ?> input[readonly],
|
441 |
+
.<?php echo esc_html( $style_class ) ?> select[readonly],
|
442 |
+
.<?php echo esc_html( $style_class ) ?> textarea[readonly]{
|
443 |
+
background-color:#<?php echo esc_html( $bg_color_disabled . $important ) ?>;
|
444 |
+
color:#<?php echo esc_html( $text_color_disabled . $important ) ?>;
|
445 |
+
border-color:#<?php echo esc_html( $border_color_disabled . $important ) ?>;
|
446 |
}
|
447 |
|
448 |
|
449 |
+
.<?php echo esc_html( $style_class ) ?> .form-field input:not([type=file]):focus,
|
450 |
+
.<?php echo esc_html( $style_class ) ?> select:focus,
|
451 |
+
.<?php echo esc_html( $style_class ) ?> textarea:focus,
|
452 |
+
.<?php echo esc_html( $style_class ) ?> .frm_focus_field input[type=text],
|
453 |
+
.<?php echo esc_html( $style_class ) ?> .frm_focus_field input[type=password],
|
454 |
+
.<?php echo esc_html( $style_class ) ?> .frm_focus_field input[type=email],
|
455 |
+
.<?php echo esc_html( $style_class ) ?> .frm_focus_field input[type=number],
|
456 |
+
.<?php echo esc_html( $style_class ) ?> .frm_focus_field input[type=url],
|
457 |
+
.<?php echo esc_html( $style_class ) ?> .frm_focus_field input[type=tel],
|
458 |
+
.<?php echo esc_html( $style_class ) ?> .frm_focus_field input[type=search],
|
459 |
.frm_form_fields_active_style,
|
460 |
+
.<?php echo esc_html( $style_class ) ?> .chosen-container-active .chosen-choices{
|
461 |
+
background-color:#<?php echo esc_html( $bg_color_active . $important ) ?>;
|
462 |
+
border-color:#<?php echo esc_html( $border_color_active . $important ) ?>;
|
463 |
+
box-shadow:0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $border_color_active ) ) ?>, 0.6);
|
464 |
}
|
465 |
|
466 |
<?php
|
467 |
if ( ! $submit_style ) { ?>
|
468 |
+
.<?php echo esc_html( $style_class ) ?> input[type=submit],
|
469 |
+
.<?php echo esc_html( $style_class ) ?> .frm_submit input[type=button],
|
470 |
.frm_form_submit_style,
|
471 |
+
.<?php echo esc_html( $style_class ) ?>.frm_login_form input[type=submit]{
|
472 |
+
width:<?php echo esc_html( ( $submit_width == '' ? 'auto' : $submit_width ) . $important ) ?>;
|
473 |
+
font-family:<?php echo esc_html( stripslashes( $font ) ) ?>;
|
474 |
+
font-size:<?php echo esc_html( $submit_font_size . $important ); ?>;
|
475 |
+
height:<?php echo esc_html( $submit_height . $important ) ?>;
|
476 |
+
line-height:normal<?php echo esc_html( $important ) ?>;
|
477 |
text-align:center;
|
478 |
+
background:#<?php echo esc_html( $submit_bg_color );
|
479 |
if ( ! empty($submit_bg_img) ) {
|
480 |
+
echo esc_html( ' url('. $submit_bg_img .')' );
|
481 |
}
|
482 |
+
echo esc_html( $important ); ?>;
|
483 |
+
border-width:<?php echo esc_html( $submit_border_width ) ?>;
|
484 |
+
border-color:#<?php echo esc_html( $submit_border_color . $important ) ?>;
|
485 |
border-style:solid;
|
486 |
+
color:#<?php echo esc_html( $submit_text_color . $important ) ?>;
|
487 |
cursor:pointer;
|
488 |
+
font-weight:<?php echo esc_html( $submit_weight . $important ) ?>;
|
489 |
+
-moz-border-radius:<?php echo esc_html( $submit_border_radius . $important ) ?>;
|
490 |
+
-webkit-border-radius:<?php echo esc_html( $submit_border_radius . $important ) ?>;
|
491 |
+
border-radius:<?php echo esc_html( $submit_border_radius . $important ) ?>;
|
492 |
text-shadow:none;
|
493 |
+
padding:<?php echo esc_html( $submit_padding . $important ) ?>;
|
494 |
-moz-box-sizing:border-box;
|
495 |
box-sizing:border-box;
|
496 |
-ms-box-sizing:border-box;
|
497 |
+
-moz-box-shadow:0 1px 1px #<?php echo esc_html( $submit_shadow_color ); ?>;
|
498 |
+
-webkit-box-shadow:0px 1px 1px #<?php echo esc_html( $submit_shadow_color ); ?>;
|
499 |
+
box-shadow:0 1px 1px #<?php echo esc_html( $submit_shadow_color ); ?>;
|
500 |
+
-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=135, Color='#<?php echo esc_html( $submit_shadow_color ); ?>')";
|
501 |
+
filter:progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=135, Color='#<?php echo esc_html( $submit_shadow_color ); ?>');
|
502 |
+
margin:<?php echo esc_html( $submit_margin ) ?>;
|
503 |
+
margin-left:0;
|
504 |
+
margin-right:0;
|
505 |
vertical-align:middle;
|
506 |
}
|
507 |
|
508 |
<?php
|
509 |
if ( empty( $submit_bg_img ) ) {
|
510 |
+
?>.<?php echo esc_html( $style_class ) ?> input[type=submit]:hover,
|
511 |
+
.<?php echo esc_html( $style_class ) ?> .frm_submit input[type=button]:hover,
|
512 |
+
.<?php echo esc_html( $style_class ) ?>.frm_login_form input[type=submit]:hover{
|
513 |
+
background:#<?php echo esc_html( $submit_hover_bg_color . $important ) ?>;
|
514 |
+
border-color:#<?php echo esc_html( $submit_hover_border_color . $important ) ?>;
|
515 |
+
color:#<?php echo esc_html( $submit_hover_color . $important ) ?>;
|
516 |
}
|
517 |
|
518 |
+
.<?php echo esc_html( $style_class ) ?>.frm_center_submit .frm_submit .frm_ajax_loading{
|
519 |
+
margin-bottom:<?php echo esc_html( $submit_margin ) ?>;
|
520 |
}
|
521 |
|
522 |
+
.<?php echo esc_html( $style_class ) ?> input[type=submit]:focus,
|
523 |
+
.<?php echo esc_html( $style_class ) ?> .frm_submit input[type=button]:focus,
|
524 |
+
.<?php echo esc_html( $style_class ) ?>.frm_login_form input[type=submit]:focus,
|
525 |
+
.<?php echo esc_html( $style_class ) ?> input[type=submit]:active,
|
526 |
+
.<?php echo esc_html( $style_class ) ?> .frm_submit input[type=button]:active,
|
527 |
+
.<?php echo esc_html( $style_class ) ?>.frm_login_form input[type=submit]:active{
|
528 |
+
background:#<?php echo esc_html( $submit_active_bg_color . $important ) ?>;
|
529 |
+
border-color:#<?php echo esc_html( $submit_active_border_color . $important ) ?>;
|
530 |
+
color:#<?php echo esc_html( $submit_active_color . $important ) ?>;
|
531 |
}
|
532 |
<?php
|
533 |
}
|
534 |
}
|
535 |
?>
|
536 |
|
537 |
+
.<?php echo esc_html( $style_class ) ?> a.frm_save_draft{
|
538 |
+
font-family:<?php echo esc_html( stripslashes( $font ) ) ?>;
|
539 |
+
font-size:<?php echo esc_html( $submit_font_size ) ?>;
|
540 |
+
font-weight:<?php echo esc_html( $submit_weight ) ?>;
|
541 |
}
|
542 |
|
543 |
+
.<?php echo esc_html( $style_class ) ?> #frm_field_cptch_number_container{
|
544 |
+
font-family:<?php echo esc_html( stripslashes( $font ) ) ?>;
|
545 |
+
font-size:<?php echo esc_html( $font_size . $important ) ?>;
|
546 |
+
color:#<?php echo esc_html( $label_color . $important ) ?>;
|
547 |
+
font-weight:<?php echo esc_html( $weight . $important ) ?>;
|
548 |
clear:both;
|
549 |
}
|
550 |
|
551 |
+
.<?php echo esc_html( $style_class ) ?> .frm_radio{
|
552 |
+
display:<?php echo esc_html( $radio_align . $important ) ?>;
|
553 |
}
|
554 |
|
555 |
+
.<?php echo esc_html( $style_class ) ?> .horizontal_radio .frm_radio{
|
556 |
+
margin:0 5px 0 0<?php echo esc_html( $important ) ?>;
|
557 |
}
|
558 |
|
559 |
+
.<?php echo esc_html( $style_class ) ?> .frm_checkbox{
|
560 |
+
display:<?php echo esc_html( $check_align . $important ) ?>;
|
561 |
}
|
562 |
|
563 |
+
.<?php echo esc_html( $style_class ) ?> .vertical_radio .frm_checkbox,
|
564 |
+
.<?php echo esc_html( $style_class ) ?> .vertical_radio .frm_radio,
|
565 |
.vertical_radio .frm_catlevel_1{
|
566 |
+
display:block<?php echo esc_html( $important ) ?>;
|
567 |
}
|
568 |
|
569 |
+
.<?php echo esc_html( $style_class ) ?> .horizontal_radio .frm_checkbox,
|
570 |
+
.<?php echo esc_html( $style_class ) ?> .horizontal_radio .frm_radio,
|
571 |
.horizontal_radio .frm_catlevel_1{
|
572 |
+
display:inline-block<?php echo esc_html( $important ) ?>;
|
573 |
}
|
574 |
|
575 |
+
.<?php echo esc_html( $style_class ) ?> .frm_radio label,
|
576 |
+
.<?php echo esc_html( $style_class ) ?> .frm_checkbox label{
|
577 |
+
font-family:<?php echo esc_html( stripslashes($font) . $important ) ?>;
|
578 |
+
font-size:<?php echo esc_html( $check_font_size . $important ) ?>;
|
579 |
+
color:#<?php echo esc_html( $check_label_color . $important ) ?>;
|
580 |
+
font-weight:<?php echo esc_html( $check_weight . $important ) ?>;
|
581 |
display:inline;
|
582 |
+
white-space:prewrap;
|
583 |
}
|
584 |
|
585 |
+
.<?php echo esc_html( $style_class ) ?> .frm_blank_field input[type=text],
|
586 |
+
.<?php echo esc_html( $style_class ) ?> .frm_blank_field input[type=password],
|
587 |
+
.<?php echo esc_html( $style_class ) ?> .frm_blank_field input[type=url],
|
588 |
+
.<?php echo esc_html( $style_class ) ?> .frm_blank_field input[type=tel],
|
589 |
+
.<?php echo esc_html( $style_class ) ?> .frm_blank_field input[type=number],
|
590 |
+
.<?php echo esc_html( $style_class ) ?> .frm_blank_field input[type=email],
|
591 |
+
.<?php echo esc_html( $style_class ) ?> .frm_blank_field textarea,
|
592 |
+
.<?php echo esc_html( $style_class ) ?> .frm_blank_field select,
|
593 |
.frm_form_fields_error_style,
|
594 |
+
.<?php echo esc_html( $style_class ) ?> .frm_blank_field .g-recaptcha iframe,
|
595 |
+
.<?php echo esc_html( $style_class ) ?> .frm_blank_field .chosen-container-multi .chosen-choices{
|
596 |
+
color:#<?php echo esc_html( $text_color_error . $important ) ?>;
|
597 |
+
background-color:#<?php echo esc_html( $bg_color_error ) ?>;
|
598 |
+
border-color:#<?php echo esc_html( $border_color_error . $important ) ?>;
|
599 |
+
border-width:<?php echo esc_html( $border_width_error . $important ) ?>;
|
600 |
+
border-style:<?php echo esc_html( $border_style_error . $important ) ?>;
|
601 |
}
|
602 |
|
603 |
+
.<?php echo esc_html( $style_class ) ?> .frm_error{
|
604 |
+
font-weight:<?php echo esc_html( $weight . $important ) ?>;
|
605 |
}
|
606 |
|
607 |
+
.<?php echo esc_html( $style_class ) ?> .frm_blank_field label,
|
608 |
+
.<?php echo esc_html( $style_class ) ?> .frm_error{
|
609 |
+
color:#<?php echo esc_html( $border_color_error . $important ) ?>;
|
610 |
}
|
611 |
|
612 |
+
.<?php echo esc_html( $style_class ) ?> .frm_error_style{
|
613 |
+
background-color:#<?php echo esc_html( $error_bg . $important ) ?>;
|
614 |
+
border:1px solid #<?php echo esc_html( $error_border . $important ) ?>;
|
615 |
+
color:#<?php echo esc_html( $error_text . $important ) ?>;
|
616 |
+
font-size:<?php echo esc_html( $error_font_size . $important ) ?>;
|
617 |
margin:0;
|
618 |
+
margin-bottom:<?php echo esc_html( $field_margin ) ?>;
|
619 |
}
|
620 |
|
621 |
+
.<?php echo esc_html( $style_class ) ?> .frm_message,
|
622 |
.frm_success_style{
|
623 |
+
border:1px solid #<?php echo esc_html( $success_border_color ) ?>;
|
624 |
+
background-color:#<?php echo esc_html( $success_bg_color ) ?>;
|
625 |
+
color:#<?php echo esc_html( $success_text_color ) ?>;
|
626 |
}
|
627 |
|
628 |
+
.<?php echo esc_html( $style_class ) ?> .frm_message{
|
629 |
margin:5px 0 15px;
|
630 |
+
font-size:<?php echo esc_html( $success_font_size . $important ) ?>;
|
631 |
}
|
632 |
|
633 |
+
.<?php echo esc_html( $style_class ) ?> .frm-grid td,
|
634 |
.frm-grid th{
|
635 |
+
border-color:#<?php echo esc_html( $border_color ) ?>;
|
636 |
}
|
637 |
|
638 |
+
.form_results.<?php echo esc_html( $style_class ) ?>{
|
639 |
+
border:<?php echo esc_html( $field_border_width ) ?> solid #<?php echo esc_html( $border_color . $important ) ?>;
|
640 |
}
|
641 |
|
642 |
+
.form_results.<?php echo esc_html( $style_class ) ?> tr td{
|
643 |
+
color:#<?php echo esc_html( $text_color . $important ) ?>;
|
644 |
+
border-top:<?php echo esc_html( $field_border_width ) ?> solid #<?php echo esc_html( $border_color . $important ) ?>;
|
645 |
}
|
646 |
|
647 |
+
.form_results.<?php echo esc_html( $style_class ) ?> tr.frm_even,
|
648 |
.frm-grid .frm_even{
|
649 |
+
background-color:#<?php echo esc_html( $bg_color . $important ) ?>;
|
650 |
}
|
651 |
|
652 |
+
.<?php echo esc_html( $style_class ) ?> #frm_loading .progress-striped .progress-bar{
|
653 |
+
background-image:linear-gradient(45deg, #<?php echo esc_html( $border_color ) ?> 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, #<?php echo esc_html( $border_color ) ?> 50%, #<?php echo esc_html( $border_color ) ?> 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));
|
654 |
}
|
655 |
|
656 |
+
.<?php echo esc_html( $style_class ) ?> #frm_loading .progress-bar{
|
657 |
+
background-color:#<?php echo esc_html( $bg_color ) ?>;
|
658 |
}
|
659 |
|
660 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid,
|
661 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_first,
|
662 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_odd{
|
663 |
+
border-color:#<?php echo esc_html( $border_color ) ?>;
|
664 |
}
|
665 |
|
666 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid.frm_blank_field,
|
667 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_first.frm_blank_field,
|
668 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_odd.frm_blank_field{
|
669 |
+
background-color:#<?php echo esc_html( $error_bg ) ?>;
|
670 |
+
border-color:#<?php echo esc_html( $error_border ) ?>;
|
671 |
}
|
672 |
|
673 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_first,
|
674 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_odd{
|
675 |
+
background-color:#<?php echo esc_html( $bg_color ) ?>;
|
676 |
}
|
677 |
|
678 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid{
|
679 |
+
background-color:#<?php echo esc_html( $bg_color_active ) ?>;
|
680 |
}
|
681 |
|
682 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_html_scroll_box{
|
683 |
+
background-color:#<?php echo esc_html( $bg_color . $important ) ?>;
|
684 |
+
border-color:#<?php echo esc_html( $border_color . $important ) ?>;
|
685 |
+
border-width:<?php echo esc_html( $field_border_width . $important ) ?>;
|
686 |
+
border-style:<?php echo esc_html( $field_border_style . $important ) ?>;
|
687 |
+
-moz-border-radius:<?php echo esc_html( $border_radius . $important ) ?>;
|
688 |
+
-webkit-border-radius:<?php echo esc_html( $border_radius . $important ) ?>;
|
689 |
+
border-radius:<?php echo esc_html( $border_radius . $important ) ?>;
|
690 |
+
width:<?php echo esc_html( ( $field_width == '' ? 'auto' : $field_width ) . $important ) ?>;
|
691 |
+
font-size:<?php echo esc_html( $field_font_size . $important ) ?>;
|
692 |
+
padding:<?php echo esc_html( $field_pad . $important ) ?>;
|
693 |
+
outline:none<?php echo esc_html( $important ) ?>;
|
694 |
}
|
695 |
|
696 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_total input,
|
697 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_total textarea{
|
698 |
+
color:#<?php echo esc_html( $text_color . $important ) ?>;
|
699 |
+
background-color:transparent<?php echo esc_html( $important ) ?>;
|
700 |
+
border:none<?php echo esc_html( $important ) ?>;
|
701 |
+
display:inline<?php echo esc_html( $important ) ?>;
|
702 |
+
width:auto<?php echo esc_html( $important ) ?>;
|
703 |
+
padding:0<?php echo esc_html( $important ) ?>;
|
704 |
}
|
705 |
|
706 |
+
.<?php echo esc_html( $style_class ) ?> .frm_text_block input,
|
707 |
+
.<?php echo esc_html( $style_class ) ?> .frm_text_block label.frm_primary_label{
|
708 |
margin-left:-20px;
|
709 |
}
|
710 |
|
711 |
+
.<?php echo esc_html( $style_class ) ?> .frm_button{
|
712 |
+
padding:<?php echo esc_html( $submit_padding . $important ) ?>;
|
713 |
+
-moz-border-radius:<?php echo esc_html( $border_radius . $important ) ?>;
|
714 |
+
-webkit-border-radius:<?php echo esc_html( $border_radius . $important ) ?>;
|
715 |
+
border-radius:<?php echo esc_html( $border_radius . $important ) ?>;
|
716 |
+
font-size:<?php echo esc_html( $submit_font_size . $important ) ?>;
|
717 |
+
font-family:<?php echo esc_html( stripslashes($font) . $important ) ?>;
|
718 |
+
font-weight:<?php echo esc_html( $submit_weight . $important ) ?>;
|
719 |
+
color:#<?php echo esc_html( $submit_text_color . $important ) ?>;
|
720 |
+
background:#<?php echo esc_html( $submit_bg_color . $important ) ?>;
|
721 |
+
border-width:<?php echo esc_html( $submit_border_width ) ?>;
|
722 |
+
border-color:#<?php echo esc_html( $submit_border_color . $important ) ?>;
|
723 |
+
height:#<?php echo esc_html( $submit_height . $important ) ?>;
|
724 |
}
|
725 |
+
.<?php echo esc_html( $style_class ) ?> .frm_button .frm_icon_font:before{
|
726 |
+
font-size:<?php echo esc_html( $submit_font_size . $important ) ?>;
|
727 |
}
|
728 |
|
729 |
/* RTL Grids */
|
730 |
<?php if ( 'rtl' == $direction ) { ?>
|
731 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_fields div.rating-cancel,
|
732 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_fields div.star-rating{
|
733 |
float:right;
|
734 |
}
|
735 |
|
736 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_half,
|
737 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_third,
|
738 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_two_thirds,
|
739 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_fourth,
|
740 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_fifth,
|
741 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_sixth,
|
742 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_seventh,
|
743 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_eighth,
|
744 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_inline,
|
745 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_half,
|
746 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_third,
|
747 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_two_thirds,
|
748 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_fourth,
|
749 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_fifth,
|
750 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_inline,
|
751 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_first_half,
|
752 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_first_third,
|
753 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_first_two_thirds,
|
754 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_first_fourth,
|
755 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_first_fifth,
|
756 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_first_inline,
|
757 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_right_half,
|
758 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_right_third,
|
759 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_right_two_thirds,
|
760 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_right_fourth,
|
761 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_right_fifth,
|
762 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_right_inline,
|
763 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_last_half,
|
764 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_last_third,
|
765 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_last_two_thirds,
|
766 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_last_fourth,
|
767 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_last_fifth,
|
768 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_last_inline{
|
769 |
float:right;
|
770 |
margin-right:2.5%;
|
771 |
margin-left:0;
|
772 |
clear:none;
|
773 |
}
|
774 |
|
775 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_half,
|
776 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_first_half,
|
777 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_first,
|
778 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_third,
|
779 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_first_third,
|
780 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_first_two_thirds,
|
781 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_two_thirds,
|
782 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_first_fourth,
|
783 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_fourth,
|
784 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_fifth,
|
785 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_first_fifth,
|
786 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_left_inline,
|
787 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_first_inline{
|
788 |
clear:right;
|
789 |
margin-right:0;
|
790 |
}
|
791 |
|
792 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid .frm_primary_label,
|
793 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_first .frm_primary_label,
|
794 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_odd .frm_primary_label,
|
795 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid .frm_radio,
|
796 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_first .frm_radio,
|
797 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_odd .frm_radio,
|
798 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid .frm_checkbox,
|
799 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_first .frm_checkbox,
|
800 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_odd .frm_checkbox{
|
801 |
float:right !important;
|
802 |
margin-right:0 !important;
|
803 |
}
|
804 |
|
805 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_first .frm_radio label input,
|
806 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid .frm_radio label input,
|
807 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_odd .frm_radio label input,
|
808 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_first .frm_checkbox label input,
|
809 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid .frm_checkbox label input,
|
810 |
+
.<?php echo esc_html( $style_class ) ?> .frm_grid_odd .frm_checkbox label input{
|
811 |
float:left;
|
812 |
}
|
813 |
|
814 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_two_col .frm_radio,
|
815 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_three_col .frm_radio,
|
816 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_four_col .frm_radio,
|
817 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_two_col .frm_checkbox,
|
818 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_three_col .frm_checkbox,
|
819 |
+
.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_four_col .frm_checkbox{
|
820 |
float:right;
|
821 |
}
|
822 |
<?php } ?>
|
823 |
/* Start Chosen */
|
824 |
+
.<?php echo esc_html( $style_class ) ?> .chosen-container{
|
825 |
+
font-size:<?php echo esc_html( $field_font_size . $important ) ?>;
|
826 |
}
|
827 |
|
828 |
+
.<?php echo esc_html( $style_class ) ?> .chosen-container-single .chosen-single{
|
829 |
+
height:<?php echo esc_html( ( $field_height == 'auto' || $field_height == '' ) ? '25px' : $field_height ) ?>;
|
830 |
+
line-height:1.3<?php echo esc_html( $important ) ?>;
|
831 |
}
|
832 |
|
833 |
+
.<?php echo esc_html( $style_class ) ?> .chosen-container-single .chosen-single div{
|
834 |
<?php
|
835 |
// calculate the top position based on field padding
|
836 |
$top_pad = explode(' ', $field_pad);
|
838 |
$pad_unit = preg_replace('/[0-9]+/', '', $top_pad); //px, em, rem...
|
839 |
$top_margin = (int) str_replace($pad_unit, '', $top_pad) / 2;
|
840 |
?>
|
841 |
+
top:<?php echo esc_html( $top_margin . $pad_unit . $important ) ?>;
|
842 |
}
|
843 |
|
844 |
+
.<?php echo esc_html( $style_class ) ?> .chosen-container-single .chosen-search input[type="text"]{
|
845 |
+
height:<?php echo esc_html( ( $field_height == 'auto' || $field_height == '' ) ? 'auto' : $field_height ) ?>;
|
846 |
}
|
847 |
|
848 |
+
.<?php echo esc_html( $style_class ) ?> .chosen-container-multi .chosen-choices li.search-field input[type="text"]{
|
849 |
+
height:15px<?php echo esc_html( $important ) ?>;
|
850 |
}
|
851 |
/* End Chosen */
|
852 |
|
853 |
/* Responsive CSS */
|