@@ -157,10 +157,10 @@ |
||
157 | 157 | call_user_func( array( $section['class'], $section['function'] ) ); |
158 | 158 | } else { |
159 | 159 | call_user_func( ( isset( $section['function'] ) ? $section['function'] : $section ) ); |
160 | - } ?> |
|
160 | + } ?> |
|
161 | 161 | </div> |
162 | 162 | <?php |
163 | - } ?> |
|
163 | + } ?> |
|
164 | 164 | |
165 | 165 | <p class="alignright frm_uninstall"> |
166 | 166 | <a href="javascript:void(0)" id="frm_uninstall_now"><?php _e( 'Uninstall Formidable', 'formidable' ) ?></a> |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | <div class="contextual-help-tabs"> |
15 | 15 | <ul class="frm-category-tabs"> |
16 | 16 | <?php $a = FrmAppHelper::simple_get( 't', 'sanitize_title', 'general_settings' ); ?> |
17 | - <li <?php echo ($a == 'general_settings') ? 'class="tabs active"' : '' ?>><a href="#general_settings" class="frm_cursor_pointer"><?php _e( 'General', 'formidable' ) ?></a></li> |
|
17 | + <li <?php echo ( $a == 'general_settings' ) ? 'class="tabs active"' : '' ?>><a href="#general_settings" class="frm_cursor_pointer"><?php _e( 'General', 'formidable' ) ?></a></li> |
|
18 | 18 | <?php foreach ( $sections as $sec_name => $section ) { ?> |
19 | 19 | <li <?php echo ( $a == $sec_name . '_settings' ) ? 'class="tabs active"' : '' ?>> |
20 | 20 | <a href="#<?php echo esc_attr( $sec_name ) ?>_settings"> |
@@ -25,14 +25,14 @@ discard block |
||
25 | 25 | </ul> |
26 | 26 | </div> |
27 | 27 | |
28 | - <?php do_action('frm_before_settings'); ?> |
|
28 | + <?php do_action( 'frm_before_settings' ); ?> |
|
29 | 29 | |
30 | 30 | <form name="frm_settings_form" method="post" class="frm_settings_form" action="?page=formidable-settings<?php echo ( $a ? '&t=' . $a : '' ); ?>"> |
31 | 31 | <input type="hidden" name="frm_action" value="process-form" /> |
32 | 32 | <input type="hidden" name="action" value="process-form" /> |
33 | - <?php wp_nonce_field('process_form_nonce', 'process_form'); ?> |
|
33 | + <?php wp_nonce_field( 'process_form_nonce', 'process_form' ); ?> |
|
34 | 34 | |
35 | - <div class="general_settings tabs-panel <?php echo ($a == 'general_settings') ? 'frm_block' : 'frm_hidden'; ?>"> |
|
35 | + <div class="general_settings tabs-panel <?php echo ( $a == 'general_settings' ) ? 'frm_block' : 'frm_hidden'; ?>"> |
|
36 | 36 | <p class="submit"> |
37 | 37 | <input class="button-primary" type="submit" value="<?php esc_attr_e( 'Update Options', 'formidable' ) ?>" /> |
38 | 38 | </p> |
@@ -41,20 +41,20 @@ discard block |
||
41 | 41 | |
42 | 42 | <p><label class="frm_left_label"><?php _e( 'Load form styling', 'formidable' ) ?></label> |
43 | 43 | <select id="frm_load_style" name="frm_load_style"> |
44 | - <option value="all" <?php selected($frm_settings->load_style, 'all') ?>><?php _e( 'on every page of your site', 'formidable' ) ?></option> |
|
45 | - <option value="dynamic" <?php selected($frm_settings->load_style, 'dynamic') ?>><?php _e( 'only on applicable pages', 'formidable' ) ?></option> |
|
46 | - <option value="none" <?php selected($frm_settings->load_style, 'none') ?>><?php _e( 'Don\'t use form styling on any page', 'formidable' ) ?></option> |
|
44 | + <option value="all" <?php selected( $frm_settings->load_style, 'all' ) ?>><?php _e( 'on every page of your site', 'formidable' ) ?></option> |
|
45 | + <option value="dynamic" <?php selected( $frm_settings->load_style, 'dynamic' ) ?>><?php _e( 'only on applicable pages', 'formidable' ) ?></option> |
|
46 | + <option value="none" <?php selected( $frm_settings->load_style, 'none' ) ?>><?php _e( 'Don\'t use form styling on any page', 'formidable' ) ?></option> |
|
47 | 47 | </select> |
48 | 48 | </p> |
49 | 49 | |
50 | 50 | <p> |
51 | 51 | <label for="frm_use_html"> |
52 | - <input type="checkbox" id="frm_use_html" name="frm_use_html" value="1" <?php checked($frm_settings->use_html, 1) ?> > <?php _e( 'Use HTML5 in forms', 'formidable' ) ?> |
|
52 | + <input type="checkbox" id="frm_use_html" name="frm_use_html" value="1" <?php checked( $frm_settings->use_html, 1 ) ?> > <?php _e( 'Use HTML5 in forms', 'formidable' ) ?> |
|
53 | 53 | </label> |
54 | 54 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'We recommend using HTML 5 for your forms. It adds some nifty options like placeholders, patterns, and autocomplete.', 'formidable' ) ?>"></span> |
55 | 55 | </p> |
56 | 56 | |
57 | - <?php do_action('frm_style_general_settings', $frm_settings); ?> |
|
57 | + <?php do_action( 'frm_style_general_settings', $frm_settings ); ?> |
|
58 | 58 | |
59 | 59 | <h3><?php _e( 'User Permissions', 'formidable' ); ?> |
60 | 60 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Select users that are allowed access to Formidable. Without access to View Forms, users will be unable to see the Formidable menu.', 'formidable' ) ?>"></span> |
@@ -77,15 +77,15 @@ discard block |
||
77 | 77 | </p> |
78 | 78 | |
79 | 79 | <p><label class="frm_left_label"><?php _e( 'Site Key', 'formidable' ) ?></label> |
80 | - <input type="text" name="frm_pubkey" id="frm_pubkey" size="42" value="<?php echo esc_attr($frm_settings->pubkey) ?>" placeholder="<?php esc_attr_e( 'Optional', 'formidable' ) ?>" /></p> |
|
80 | + <input type="text" name="frm_pubkey" id="frm_pubkey" size="42" value="<?php echo esc_attr( $frm_settings->pubkey ) ?>" placeholder="<?php esc_attr_e( 'Optional', 'formidable' ) ?>" /></p> |
|
81 | 81 | |
82 | 82 | <p><label class="frm_left_label"><?php _e( 'Private Key', 'formidable' ) ?></label> |
83 | - <input type="text" name="frm_privkey" id="frm_privkey" size="42" value="<?php echo esc_attr($frm_settings->privkey) ?>" placeholder="<?php esc_attr_e( 'Optional', 'formidable' ) ?>" /></p> |
|
83 | + <input type="text" name="frm_privkey" id="frm_privkey" size="42" value="<?php echo esc_attr( $frm_settings->privkey ) ?>" placeholder="<?php esc_attr_e( 'Optional', 'formidable' ) ?>" /></p> |
|
84 | 84 | |
85 | 85 | <p><label class="frm_left_label"><?php _e( 'reCAPTCHA Language', 'formidable' ) ?></label> |
86 | 86 | <select name="frm_re_lang" id="frm_re_lang"> |
87 | 87 | <?php foreach ( $captcha_lang as $lang => $lang_name ) { ?> |
88 | - <option value="<?php echo esc_attr($lang) ?>" <?php selected($frm_settings->re_lang, $lang) ?>><?php echo esc_html( $lang_name ) ?></option> |
|
88 | + <option value="<?php echo esc_attr( $lang ) ?>" <?php selected( $frm_settings->re_lang, $lang ) ?>><?php echo esc_html( $lang_name ) ?></option> |
|
89 | 89 | <?php } ?> |
90 | 90 | </select></p> |
91 | 91 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | <label class="frm_left_label"><?php _e( 'Success Message', 'formidable' ); ?> |
139 | 139 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'The default message seen after a form is submitted.', 'formidable' ) ?>" ></span> |
140 | 140 | </label> |
141 | - <input type="text" id="frm_success_msg" name="frm_success_msg" class="frm_with_left_label" value="<?php echo esc_attr($frm_settings->success_msg) ?>" /> |
|
141 | + <input type="text" id="frm_success_msg" name="frm_success_msg" class="frm_with_left_label" value="<?php echo esc_attr( $frm_settings->success_msg ) ?>" /> |
|
142 | 142 | </p> |
143 | 143 | |
144 | 144 | <p> |
@@ -146,21 +146,21 @@ discard block |
||
146 | 146 | <input type="text" value="<?php echo esc_attr( $frm_settings->submit_value ) ?>" id="frm_submit_value" name="frm_submit_value" class="frm_with_left_label" /> |
147 | 147 | </p> |
148 | 148 | |
149 | - <?php do_action('frm_settings_form', $frm_settings); ?> |
|
149 | + <?php do_action( 'frm_settings_form', $frm_settings ); ?> |
|
150 | 150 | |
151 | 151 | <?php if ( ! FrmAppHelper::pro_is_installed() ) { ?> |
152 | 152 | <div class="clear"></div> |
153 | 153 | <h3><?php _e( 'Miscellaneous', 'formidable' ) ?></h3> |
154 | 154 | <?php } ?> |
155 | 155 | <p><label class="frm_left_label"><?php _e( 'Admin menu label', 'formidable' ); ?></label> |
156 | - <input type="text" name="frm_menu" id="frm_menu" value="<?php echo esc_attr($frm_settings->menu) ?>" /> |
|
156 | + <input type="text" name="frm_menu" id="frm_menu" value="<?php echo esc_attr( $frm_settings->menu ) ?>" /> |
|
157 | 157 | <?php if ( is_multisite() && is_super_admin() ) { ?> |
158 | - <label for="frm_mu_menu"><input type="checkbox" name="frm_mu_menu" id="frm_mu_menu" value="1" <?php checked($frm_settings->mu_menu, 1) ?> /> <?php _e( 'Use this menu name site-wide', 'formidable' ); ?></label> |
|
158 | + <label for="frm_mu_menu"><input type="checkbox" name="frm_mu_menu" id="frm_mu_menu" value="1" <?php checked( $frm_settings->mu_menu, 1 ) ?> /> <?php _e( 'Use this menu name site-wide', 'formidable' ); ?></label> |
|
159 | 159 | <?php } ?> |
160 | 160 | </p> |
161 | 161 | |
162 | 162 | <p><label class="frm_left_label"><?php _e( 'Preview Page', 'formidable' ); ?></label> |
163 | - <?php FrmAppHelper::wp_pages_dropdown('frm-preview-page-id', $frm_settings->preview_page_id ) ?> |
|
163 | + <?php FrmAppHelper::wp_pages_dropdown( 'frm-preview-page-id', $frm_settings->preview_page_id ) ?> |
|
164 | 164 | </p> |
165 | 165 | |
166 | 166 | </div> |
@@ -1,4 +1,4 @@ |
||
1 | -<div class="general_settings metabox-holder tabs-panel frm_license_box <?php echo ($a == 'general_settings') ? 'frm_block' : 'frm_hidden'; ?>"> |
|
1 | +<div class="general_settings metabox-holder tabs-panel frm_license_box <?php echo ( $a == 'general_settings' ) ? 'frm_block' : 'frm_hidden'; ?>"> |
|
2 | 2 | <?php if ( ! is_multisite() || is_super_admin() ) { ?> |
3 | 3 | <div class="postbox"> |
4 | 4 | <div class="inside"> |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <div class="clear"></div> |
2 | 2 | <?php |
3 | 3 | if ( isset($message) && $message != '' ) { |
4 | - if ( FrmAppHelper::is_admin() ) { |
|
5 | - ?><div id="message" class="updated frm_msg_padding"><?php |
|
6 | - echo $message; |
|
7 | - ?></div><?php |
|
8 | - } else { |
|
9 | - echo $message; |
|
10 | - } |
|
4 | + if ( FrmAppHelper::is_admin() ) { |
|
5 | + ?><div id="message" class="updated frm_msg_padding"><?php |
|
6 | + echo $message; |
|
7 | + ?></div><?php |
|
8 | + } else { |
|
9 | + echo $message; |
|
10 | + } |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | if ( isset($errors) && is_array($errors) && count($errors) > 0 ) { ?> |
14 | 14 | <div class="error"> |
15 | 15 | <ul id="frm_errors"> |
16 | 16 | <?php |
17 | - foreach ( $errors as $error ) { |
|
18 | - echo '<li>' . $error . '</li>'; |
|
19 | - } |
|
20 | - ?> |
|
17 | + foreach ( $errors as $error ) { |
|
18 | + echo '<li>' . $error . '</li>'; |
|
19 | + } |
|
20 | + ?> |
|
21 | 21 | </ul> |
22 | 22 | </div> |
23 | 23 | <?php |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <div class="clear"></div> |
2 | 2 | <?php |
3 | -if ( isset($message) && $message != '' ) { |
|
3 | +if ( isset( $message ) && $message != '' ) { |
|
4 | 4 | if ( FrmAppHelper::is_admin() ) { |
5 | 5 | ?><div id="message" class="updated frm_msg_padding"><?php |
6 | 6 | echo $message; |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | } |
11 | 11 | } |
12 | 12 | |
13 | -if ( isset($errors) && is_array($errors) && count($errors) > 0 ) { ?> |
|
13 | +if ( isset( $errors ) && is_array( $errors ) && count( $errors ) > 0 ) { ?> |
|
14 | 14 | <div class="error"> |
15 | 15 | <ul id="frm_errors"> |
16 | 16 | <?php |
@@ -1,2 +1,2 @@ |
||
1 | 1 | <?php |
2 | -_deprecated_file( basename(__FILE__), '2.0', null, __( 'Use wp_enqueue_script and wp_enqueue_style.', 'formidable' ) ); |
|
2 | +_deprecated_file( basename( __FILE__ ), '2.0', null, __( 'Use wp_enqueue_script and wp_enqueue_style.', 'formidable' ) ); |
@@ -1,26 +1,26 @@ discard block |
||
1 | 1 | <div class="field-group clearfix frm-half frm-first-row"> |
2 | 2 | <label><?php _e( 'Radio', 'formidable' ) ?></label> |
3 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('radio_align') ) ?>" id="frm_radio_align"> |
|
4 | - <option value="block" <?php selected($style->post_content['radio_align'], 'block') ?>><?php _e( 'Multiple Rows' , 'formidable' ) ?></option> |
|
5 | - <option value="inline" <?php selected($style->post_content['radio_align'], 'inline') ?>><?php _e( 'Single Row' , 'formidable' ) ?></option> |
|
3 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'radio_align' ) ) ?>" id="frm_radio_align"> |
|
4 | + <option value="block" <?php selected( $style->post_content['radio_align'], 'block' ) ?>><?php _e( 'Multiple Rows', 'formidable' ) ?></option> |
|
5 | + <option value="inline" <?php selected( $style->post_content['radio_align'], 'inline' ) ?>><?php _e( 'Single Row', 'formidable' ) ?></option> |
|
6 | 6 | </select> |
7 | 7 | </div> |
8 | 8 | |
9 | 9 | <div class="field-group clearfix frm-half frm-first-row"> |
10 | 10 | <label><?php _e( 'Check Box', 'formidable' ) ?></label> |
11 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('check_align') ) ?>" id="frm_check_align"> |
|
12 | - <option value="block" <?php selected($style->post_content['check_align'], 'block') ?>><?php _e( 'Multiple Rows' , 'formidable' ) ?></option> |
|
13 | - <option value="inline" <?php selected($style->post_content['check_align'], 'inline') ?>><?php _e( 'Single Row' , 'formidable' ) ?></option> |
|
11 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'check_align' ) ) ?>" id="frm_check_align"> |
|
12 | + <option value="block" <?php selected( $style->post_content['check_align'], 'block' ) ?>><?php _e( 'Multiple Rows', 'formidable' ) ?></option> |
|
13 | + <option value="inline" <?php selected( $style->post_content['check_align'], 'inline' ) ?>><?php _e( 'Single Row', 'formidable' ) ?></option> |
|
14 | 14 | </select> |
15 | 15 | </div> |
16 | 16 | |
17 | 17 | <div class="field-group field-group-background clearfix"> |
18 | 18 | <label><?php _e( 'Color', 'formidable' ) ?></label> |
19 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('check_label_color') ) ?>" id="frm_check_label_color" class="hex" value="<?php echo esc_attr( $style->post_content['check_label_color'] ) ?>" /> |
|
19 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'check_label_color' ) ) ?>" id="frm_check_label_color" class="hex" value="<?php echo esc_attr( $style->post_content['check_label_color'] ) ?>" /> |
|
20 | 20 | </div> |
21 | 21 | <div class="field-group clearfix"> |
22 | 22 | <label><?php _e( 'Weight', 'formidable' ) ?></label> |
23 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('check_weight') ) ?>" id="frm_check_weight"> |
|
23 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'check_weight' ) ) ?>" id="frm_check_weight"> |
|
24 | 24 | <?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?> |
25 | 25 | <option value="<?php echo esc_attr( $value ) ?>" <?php selected( $style->post_content['check_weight'], $value ) ?>><?php echo $name ?></option> |
26 | 26 | <?php } ?> |
@@ -28,5 +28,5 @@ discard block |
||
28 | 28 | </div> |
29 | 29 | <div class="field-group clearfix"> |
30 | 30 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
31 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('check_font_size') ) ?>" id="frm_check_font_size" value="<?php echo esc_attr( $style->post_content['check_font_size'] ) ?>" size="3" /> |
|
31 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'check_font_size' ) ) ?>" id="frm_check_font_size" value="<?php echo esc_attr( $style->post_content['check_font_size'] ) ?>" size="3" /> |
|
32 | 32 | </div> |
@@ -2,19 +2,19 @@ |
||
2 | 2 | $jquery_themes = FrmStylesHelper::jquery_themes(); |
3 | 3 | |
4 | 4 | $alt_img_name = array( |
5 | - 'ui-lightness' => 'ui_light', |
|
6 | - 'ui-darkness' => 'ui_dark', |
|
7 | - 'start' => 'start_menu', |
|
8 | - 'redmond' => 'windoze', |
|
9 | - 'vader' => 'black_matte', |
|
10 | - 'mint-choc' => 'mint_choco', |
|
5 | + 'ui-lightness' => 'ui_light', |
|
6 | + 'ui-darkness' => 'ui_dark', |
|
7 | + 'start' => 'start_menu', |
|
8 | + 'redmond' => 'windoze', |
|
9 | + 'vader' => 'black_matte', |
|
10 | + 'mint-choc' => 'mint_choco', |
|
11 | 11 | ); |
12 | 12 | $theme_names = array_keys($jquery_themes); |
13 | 13 | $theme_names = array_combine($theme_names, $theme_names); |
14 | 14 | |
15 | 15 | foreach ( $theme_names as $k => $v ) { |
16 | 16 | $theme_names[ $k ] = str_replace( '-', '_', $v ); |
17 | - unset($k, $v); |
|
17 | + unset($k, $v); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | $alt_img_name = array_merge($theme_names, $alt_img_name); |
@@ -9,25 +9,25 @@ discard block |
||
9 | 9 | 'vader' => 'black_matte', |
10 | 10 | 'mint-choc' => 'mint_choco', |
11 | 11 | ); |
12 | -$theme_names = array_keys($jquery_themes); |
|
13 | -$theme_names = array_combine($theme_names, $theme_names); |
|
12 | +$theme_names = array_keys( $jquery_themes ); |
|
13 | +$theme_names = array_combine( $theme_names, $theme_names ); |
|
14 | 14 | |
15 | 15 | foreach ( $theme_names as $k => $v ) { |
16 | - $theme_names[ $k ] = str_replace( '-', '_', $v ); |
|
17 | - unset($k, $v); |
|
16 | + $theme_names[$k] = str_replace( '-', '_', $v ); |
|
17 | + unset( $k, $v ); |
|
18 | 18 | } |
19 | 19 | |
20 | -$alt_img_name = array_merge($theme_names, $alt_img_name); |
|
20 | +$alt_img_name = array_merge( $theme_names, $alt_img_name ); |
|
21 | 21 | $alt_img_name['-1'] = ''; |
22 | -unset($theme_names); |
|
22 | +unset( $theme_names ); |
|
23 | 23 | |
24 | 24 | ?> |
25 | 25 | |
26 | 26 | <div class="field-group clearfix frm-half frm-first-row"> |
27 | 27 | <label><?php _e( 'Theme', 'formidable' ) ?></label> |
28 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('theme_selector') ) ?>"> |
|
28 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'theme_selector' ) ) ?>"> |
|
29 | 29 | <?php foreach ( $jquery_themes as $theme_name => $theme_title ) { ?> |
30 | - <option value="<?php echo esc_attr( $theme_name ) ?>" id="90_<?php echo esc_attr( $alt_img_name[ $theme_name ] ); ?>" <?php selected( $theme_name, $style->post_content['theme_selector'] ) ?>> |
|
30 | + <option value="<?php echo esc_attr( $theme_name ) ?>" id="90_<?php echo esc_attr( $alt_img_name[$theme_name] ); ?>" <?php selected( $theme_name, $style->post_content['theme_selector'] ) ?>> |
|
31 | 31 | <?php echo esc_html( $theme_title ) ?> |
32 | 32 | </option> |
33 | 33 | <?php } ?> |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | </div> |
39 | 39 | |
40 | 40 | <div class="field-group clearfix frm-half frm-first-row frm_right_text"> |
41 | - <img id="frm_show_cal" src="//jqueryui.com/resources/images/themeGallery/theme_90_<?php echo esc_attr( $alt_img_name[ $style->post_content['theme_css'] ] ) ?>.png" alt="" /> |
|
42 | - <input type="hidden" value="<?php echo esc_attr($style->post_content['theme_css']) ?>" id="frm_theme_css" name="<?php echo esc_attr( $frm_style->get_field_name('theme_css') ) ?>" /> |
|
43 | - <input type="hidden" value="<?php echo esc_attr($style->post_content['theme_name']) ?>" id="frm_theme_name" name="<?php echo esc_attr( $frm_style->get_field_name('theme_name') ) ?>" /> |
|
41 | + <img id="frm_show_cal" src="//jqueryui.com/resources/images/themeGallery/theme_90_<?php echo esc_attr( $alt_img_name[$style->post_content['theme_css']] ) ?>.png" alt="" /> |
|
42 | + <input type="hidden" value="<?php echo esc_attr( $style->post_content['theme_css'] ) ?>" id="frm_theme_css" name="<?php echo esc_attr( $frm_style->get_field_name( 'theme_css' ) ) ?>" /> |
|
43 | + <input type="hidden" value="<?php echo esc_attr( $style->post_content['theme_name'] ) ?>" id="frm_theme_name" name="<?php echo esc_attr( $frm_style->get_field_name( 'theme_name' ) ) ?>" /> |
|
44 | 44 | </div> |
45 | 45 | <div class="clear"></div> |
@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <div class="field-group field-group-background clearfix frm-first-row"> |
2 | 2 | <label><?php _e( 'Color', 'formidable' ) ?></label> |
3 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('description_color') ) ?>" id="frm_description_color" class="hex" value="<?php echo esc_attr( $style->post_content['description_color'] ) ?>" /> |
|
3 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'description_color' ) ) ?>" id="frm_description_color" class="hex" value="<?php echo esc_attr( $style->post_content['description_color'] ) ?>" /> |
|
4 | 4 | </div> |
5 | 5 | <div class="field-group clearfix frm-first-row"> |
6 | 6 | <label><?php _e( 'Weight', 'formidable' ) ?></label> |
7 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('description_weight') ) ?>" id="frm_description_weight"> |
|
7 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'description_weight' ) ) ?>" id="frm_description_weight"> |
|
8 | 8 | <?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?> |
9 | 9 | <option value="<?php echo esc_attr( $value ) ?>" <?php selected( $style->post_content['description_weight'], $value ) ?>><?php echo $name ?></option> |
10 | 10 | <?php } ?> |
@@ -12,21 +12,21 @@ discard block |
||
12 | 12 | </div> |
13 | 13 | <div class="field-group clearfix frm-first-row"> |
14 | 14 | <label><?php _e( 'Style', 'formidable' ) ?></label> |
15 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('description_style') ) ?>" id="frm_description_style"> |
|
16 | - <option value="normal" <?php selected($style->post_content['description_style'], 'normal') ?>><?php _e( 'normal', 'formidable' ) ?></option> |
|
17 | - <option value="italic" <?php selected($style->post_content['description_style'], 'italic') ?>><?php _e( 'italic', 'formidable' ) ?></option> |
|
15 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'description_style' ) ) ?>" id="frm_description_style"> |
|
16 | + <option value="normal" <?php selected( $style->post_content['description_style'], 'normal' ) ?>><?php _e( 'normal', 'formidable' ) ?></option> |
|
17 | + <option value="italic" <?php selected( $style->post_content['description_style'], 'italic' ) ?>><?php _e( 'italic', 'formidable' ) ?></option> |
|
18 | 18 | </select> |
19 | 19 | </div> |
20 | 20 | <div class="field-group clearfix"> |
21 | 21 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
22 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('description_font_size') ) ?>" id="frm_description_font_size" value="<?php echo esc_attr( $style->post_content['description_font_size'] ) ?>" size="3" /> |
|
22 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'description_font_size' ) ) ?>" id="frm_description_font_size" value="<?php echo esc_attr( $style->post_content['description_font_size'] ) ?>" size="3" /> |
|
23 | 23 | </div> |
24 | 24 | |
25 | 25 | <div class="field-group clearfix"> |
26 | 26 | <label><?php _e( 'Align', 'formidable' ) ?></label> |
27 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('description_align') ) ?>" id="frm_description_align"> |
|
28 | - <option value="left" <?php selected($style->post_content['description_align'], 'left') ?>><?php _e( 'left', 'formidable' ) ?></option> |
|
29 | - <option value="right" <?php selected($style->post_content['description_align'], 'right') ?>><?php _e( 'right', 'formidable' ) ?></option> |
|
27 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'description_align' ) ) ?>" id="frm_description_align"> |
|
28 | + <option value="left" <?php selected( $style->post_content['description_align'], 'left' ) ?>><?php _e( 'left', 'formidable' ) ?></option> |
|
29 | + <option value="right" <?php selected( $style->post_content['description_align'], 'right' ) ?>><?php _e( 'right', 'formidable' ) ?></option> |
|
30 | 30 | </select> |
31 | 31 | </div> |
32 | 32 | <div class="clear"></div> |
@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <div class="posttypediv"> |
2 | 2 | <ul class="posttype-tabs add-menu-item-tabs"> |
3 | 3 | <li <?php echo ( 'default' == $current_tab ? ' class="tabs"' : '' ); ?>> |
4 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=default#tabs-panel-success-msg') ?>" class="nav-tab-link" data-type="tabs-panel-success-msg" ><?php _e( 'Success', 'formidable' ) ?></a> |
|
4 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=default#tabs-panel-success-msg' ) ?>" class="nav-tab-link" data-type="tabs-panel-success-msg" ><?php _e( 'Success', 'formidable' ) ?></a> |
|
5 | 5 | </li> |
6 | 6 | <li <?php echo ( 'error-msg' == $current_tab ? ' class="tabs"' : '' ); ?>> |
7 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=error-msge#page-error-msg') ?>" class="nav-tab-link" data-type="tabs-panel-error-msg" ><?php _e( 'Error', 'formidable' ) ?></a> |
|
7 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=error-msge#page-error-msg' ) ?>" class="nav-tab-link" data-type="tabs-panel-error-msg" ><?php _e( 'Error', 'formidable' ) ?></a> |
|
8 | 8 | </li> |
9 | 9 | </ul><!-- .posttype-tabs --> |
10 | 10 | |
@@ -14,19 +14,19 @@ discard block |
||
14 | 14 | <div class="field-group field-group-border clearfix"> |
15 | 15 | <label><?php _e( 'BG Color', 'formidable' ) ?></label> |
16 | 16 | <div class="hasPicker"> |
17 | - <input name="<?php echo esc_attr( $frm_style->get_field_name('success_bg_color') ) ?>" id="frm_success_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_bg_color'] ) ?>" type="text" /></div> |
|
17 | + <input name="<?php echo esc_attr( $frm_style->get_field_name( 'success_bg_color' ) ) ?>" id="frm_success_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_bg_color'] ) ?>" type="text" /></div> |
|
18 | 18 | </div> |
19 | 19 | <div class="field-group clearfix"> |
20 | 20 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
21 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('success_border_color') ) ?>" id="frm_success_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_border_color'] ) ?>" /> |
|
21 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'success_border_color' ) ) ?>" id="frm_success_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_border_color'] ) ?>" /> |
|
22 | 22 | </div> |
23 | 23 | <div class="field-group clearfix"> |
24 | 24 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
25 | - <input name="<?php echo esc_attr( $frm_style->get_field_name('success_text_color') ) ?>" id="frm_success_text_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_text_color'] ) ?>" type="text" /> |
|
25 | + <input name="<?php echo esc_attr( $frm_style->get_field_name( 'success_text_color' ) ) ?>" id="frm_success_text_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_text_color'] ) ?>" type="text" /> |
|
26 | 26 | </div> |
27 | 27 | <div class="field-group clearfix"> |
28 | 28 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
29 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('success_font_size') ) ?>" id="frm_success_font_size" value="<?php echo esc_attr( $style->post_content['success_font_size'] ) ?>" size="3" /> |
|
29 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'success_font_size' ) ) ?>" id="frm_success_font_size" value="<?php echo esc_attr( $style->post_content['success_font_size'] ) ?>" size="3" /> |
|
30 | 30 | </div> |
31 | 31 | <div class="clear"></div> |
32 | 32 | </div><!-- /.tabs-panel --> |
@@ -37,21 +37,21 @@ discard block |
||
37 | 37 | <div class="field-group field-group-border clearfix"> |
38 | 38 | <label><?php _e( 'BG Color', 'formidable' ) ?></label> |
39 | 39 | <div class="hasPicker"> |
40 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('error_bg') ) ?>" id="frm_error_bg" class="hex" value="<?php echo esc_attr($style->post_content['error_bg']) ?>" /></div> |
|
40 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'error_bg' ) ) ?>" id="frm_error_bg" class="hex" value="<?php echo esc_attr( $style->post_content['error_bg'] ) ?>" /></div> |
|
41 | 41 | </div> |
42 | 42 | <div class="field-group clearfix"> |
43 | 43 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
44 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('error_border') ) ?>" id="frm_error_border" class="hex" value="<?php echo esc_attr( $style->post_content['error_border'] ) ?>" /> |
|
44 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'error_border' ) ) ?>" id="frm_error_border" class="hex" value="<?php echo esc_attr( $style->post_content['error_border'] ) ?>" /> |
|
45 | 45 | </div> |
46 | 46 | <div class="field-group clearfix"> |
47 | 47 | |
48 | 48 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
49 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('error_text') ) ?>" id="frm_error_text" class="hex" value="<?php echo esc_attr( $style->post_content['error_text'] ) ?>" /> |
|
49 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'error_text' ) ) ?>" id="frm_error_text" class="hex" value="<?php echo esc_attr( $style->post_content['error_text'] ) ?>" /> |
|
50 | 50 | </div> |
51 | 51 | |
52 | 52 | <div class="field-group clearfix"> |
53 | 53 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
54 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('error_font_size') ) ?>" id="frm_error_font_size" value="<?php echo esc_attr( $style->post_content['error_font_size'] ) ?>" size="3" /> |
|
54 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'error_font_size' ) ) ?>" id="frm_error_font_size" value="<?php echo esc_attr( $style->post_content['error_font_size'] ) ?>" size="3" /> |
|
55 | 55 | </div> |
56 | 56 | <div class="clear"></div> |
57 | 57 | </div><!-- /.tabs-panel --> |
@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <div class="posttypediv"> |
2 | 2 | <ul class="posttype-tabs add-menu-item-tabs"> |
3 | 3 | <li <?php echo ( 'default' == $current_tab ? ' class="tabs"' : '' ); ?>> |
4 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=default#tabs-panel-headings') ?>" class="nav-tab-link" data-type="tabs-panel-headings" ><?php _e( 'Headings', 'formidable' ) ?></a> |
|
4 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=default#tabs-panel-headings' ) ?>" class="nav-tab-link" data-type="tabs-panel-headings" ><?php _e( 'Headings', 'formidable' ) ?></a> |
|
5 | 5 | </li> |
6 | 6 | <li <?php echo ( 'collapse' == $current_tab ? ' class="tabs"' : '' ); ?>> |
7 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=collapse#page-collapse') ?>" class="nav-tab-link" data-type="tabs-panel-collapse" ><?php _e( 'Collapsible', 'formidable' ) ?></a> |
|
7 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=collapse#page-collapse' ) ?>" class="nav-tab-link" data-type="tabs-panel-collapse" ><?php _e( 'Collapsible', 'formidable' ) ?></a> |
|
8 | 8 | </li> |
9 | 9 | <li <?php echo ( 'repeat' == $current_tab ? ' class="tabs"' : '' ); ?>> |
10 | 10 | <a href="?page=formidable-styles&page-tab=repeat#tabs-panel-repeat" class="nav-tab-link" data-type="tabs-panel-repeat"><?php _e( 'Repeatable', 'formidable' ) ?></a> |
@@ -16,12 +16,12 @@ discard block |
||
16 | 16 | ?>"> |
17 | 17 | <div class="field-group field-group-background"> |
18 | 18 | <label><?php _e( 'Color', 'formidable' ) ?></label> |
19 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_color') ) ?>" id="frm_section_color" class="hex" value="<?php echo esc_attr( $style->post_content['section_color'] ) ?>" /> |
|
19 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_color' ) ) ?>" id="frm_section_color" class="hex" value="<?php echo esc_attr( $style->post_content['section_color'] ) ?>" /> |
|
20 | 20 | </div> |
21 | 21 | |
22 | 22 | <div class="field-group"> |
23 | 23 | <label><?php _e( 'Weight', 'formidable' ) ?></label> |
24 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('section_weight') ) ?>" id="frm_section_weight"> |
|
24 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'section_weight' ) ) ?>" id="frm_section_weight"> |
|
25 | 25 | <?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?> |
26 | 26 | <option value="<?php echo esc_attr( $value ) ?>" <?php selected( $style->post_content['section_weight'], $value ) ?>><?php echo $name ?></option> |
27 | 27 | <?php } ?> |
@@ -30,54 +30,54 @@ discard block |
||
30 | 30 | |
31 | 31 | <div class="field-group"> |
32 | 32 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
33 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_font_size') ) ?>" id="frm_section_font_size" value="<?php echo esc_attr( $style->post_content['section_font_size'] ) ?>" /> |
|
33 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_font_size' ) ) ?>" id="frm_section_font_size" value="<?php echo esc_attr( $style->post_content['section_font_size'] ) ?>" /> |
|
34 | 34 | </div> |
35 | 35 | |
36 | 36 | <div class="field-group field-group-border frm-half"> |
37 | 37 | <label><?php _e( 'Padding', 'formidable' ) ?></label> |
38 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_pad') ) ?>" id="frm_section_pad" value="<?php echo esc_attr( $style->post_content['section_pad'] ) ?>" /> |
|
38 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_pad' ) ) ?>" id="frm_section_pad" value="<?php echo esc_attr( $style->post_content['section_pad'] ) ?>" /> |
|
39 | 39 | </div> |
40 | 40 | |
41 | 41 | <div class="field-group frm-half"> |
42 | 42 | <label class="background"><?php _e( 'BG color', 'formidable' ) ?></label> |
43 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_bg_color') ) ?>" id="frm_section_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['section_bg_color'] ) ?>" /> |
|
43 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_bg_color' ) ) ?>" id="frm_section_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['section_bg_color'] ) ?>" /> |
|
44 | 44 | </div> |
45 | 45 | |
46 | 46 | <div class="field-group field-group-border frm-half"> |
47 | 47 | <label><?php _e( 'Top Margin', 'formidable' ) ?></label> |
48 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_mar_top') ) ?>" id="frm_section_mar_top" value="<?php echo esc_attr( $style->post_content['section_mar_top'] ) ?>" /> |
|
48 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_mar_top' ) ) ?>" id="frm_section_mar_top" value="<?php echo esc_attr( $style->post_content['section_mar_top'] ) ?>" /> |
|
49 | 49 | </div> |
50 | 50 | <div class="field-group frm-half"> |
51 | 51 | <label><?php _e( 'Bottom Margin', 'formidable' ) ?></label> |
52 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_mar_bottom') ) ?>" id="frm_section_mar_bottom" value="<?php echo esc_attr( $style->post_content['section_mar_bottom'] ) ?>" /> |
|
52 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_mar_bottom' ) ) ?>" id="frm_section_mar_bottom" value="<?php echo esc_attr( $style->post_content['section_mar_bottom'] ) ?>" /> |
|
53 | 53 | </div> |
54 | 54 | |
55 | 55 | <div class="field-group field-group-border"> |
56 | 56 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
57 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_border_color') ) ?>" id="frm_section_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['section_border_color'] ) ?>" /> |
|
57 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_border_color' ) ) ?>" id="frm_section_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['section_border_color'] ) ?>" /> |
|
58 | 58 | </div> |
59 | 59 | <div class="field-group"> |
60 | 60 | <label><?php _e( 'Thickness', 'formidable' ) ?></label> |
61 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_border_width') ) ?>" id="frm_section_border_width" value="<?php echo esc_attr( $style->post_content['section_border_width'] ) ?>" /> |
|
61 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_border_width' ) ) ?>" id="frm_section_border_width" value="<?php echo esc_attr( $style->post_content['section_border_width'] ) ?>" /> |
|
62 | 62 | </div> |
63 | 63 | <div class="field-group"> |
64 | 64 | <label><?php _e( 'Style', 'formidable' ) ?></label> |
65 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('section_border_style') ) ?>" id="frm_section_border_style"> |
|
66 | - <option value="solid" <?php selected($style->post_content['section_border_style'], 'solid') ?>><?php _e( 'solid', 'formidable' ) ?></option> |
|
67 | - <option value="dotted" <?php selected($style->post_content['section_border_style'], 'dotted') ?>><?php _e( 'dotted', 'formidable' ) ?></option> |
|
68 | - <option value="dashed" <?php selected($style->post_content['section_border_style'], 'dashed') ?>><?php _e( 'dashed', 'formidable' ) ?></option> |
|
69 | - <option value="double" <?php selected($style->post_content['section_border_style'], 'double') ?>><?php _e( 'double', 'formidable' ) ?></option> |
|
65 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'section_border_style' ) ) ?>" id="frm_section_border_style"> |
|
66 | + <option value="solid" <?php selected( $style->post_content['section_border_style'], 'solid' ) ?>><?php _e( 'solid', 'formidable' ) ?></option> |
|
67 | + <option value="dotted" <?php selected( $style->post_content['section_border_style'], 'dotted' ) ?>><?php _e( 'dotted', 'formidable' ) ?></option> |
|
68 | + <option value="dashed" <?php selected( $style->post_content['section_border_style'], 'dashed' ) ?>><?php _e( 'dashed', 'formidable' ) ?></option> |
|
69 | + <option value="double" <?php selected( $style->post_content['section_border_style'], 'double' ) ?>><?php _e( 'double', 'formidable' ) ?></option> |
|
70 | 70 | </select> |
71 | 71 | </div> |
72 | 72 | |
73 | 73 | <div class="field-group field-group-border frm-half"> |
74 | 74 | <label><?php _e( 'Border Position', 'formidable' ) ?></label> |
75 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('section_border_loc') ) ?>" id="frm_section_border_loc"> |
|
76 | - <option value="-top" <?php selected($style->post_content['section_border_loc'], '-top') ?>><?php _e( 'top', 'formidable' ) ?></option> |
|
77 | - <option value="-bottom" <?php selected($style->post_content['section_border_loc'], '-bottom') ?>><?php _e( 'bottom', 'formidable' ) ?></option> |
|
78 | - <option value="-left" <?php selected($style->post_content['section_border_loc'], '-left') ?>><?php _e( 'left', 'formidable' ) ?></option> |
|
79 | - <option value="-right" <?php selected($style->post_content['section_border_loc'], '-right') ?>><?php _e( 'right', 'formidable' ) ?></option> |
|
80 | - <option value="" <?php selected($style->post_content['section_border_loc'], '') ?>><?php _e( 'all', 'formidable' ) ?></option> |
|
75 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'section_border_loc' ) ) ?>" id="frm_section_border_loc"> |
|
76 | + <option value="-top" <?php selected( $style->post_content['section_border_loc'], '-top' ) ?>><?php _e( 'top', 'formidable' ) ?></option> |
|
77 | + <option value="-bottom" <?php selected( $style->post_content['section_border_loc'], '-bottom' ) ?>><?php _e( 'bottom', 'formidable' ) ?></option> |
|
78 | + <option value="-left" <?php selected( $style->post_content['section_border_loc'], '-left' ) ?>><?php _e( 'left', 'formidable' ) ?></option> |
|
79 | + <option value="-right" <?php selected( $style->post_content['section_border_loc'], '-right' ) ?>><?php _e( 'right', 'formidable' ) ?></option> |
|
80 | + <option value="" <?php selected( $style->post_content['section_border_loc'], '' ) ?>><?php _e( 'all', 'formidable' ) ?></option> |
|
81 | 81 | </select> |
82 | 82 | </div> |
83 | 83 | <div class="clear"></div> |
@@ -88,14 +88,14 @@ discard block |
||
88 | 88 | ?>"> |
89 | 89 | <div class="field-group frm-half"> |
90 | 90 | <label><?php _e( 'Icons', 'formidable' ) ?></label> |
91 | - <?php FrmStylesHelper::bs_icon_select($style, $frm_style, 'arrow'); ?> |
|
91 | + <?php FrmStylesHelper::bs_icon_select( $style, $frm_style, 'arrow' ); ?> |
|
92 | 92 | </div> |
93 | 93 | |
94 | 94 | <div class="field-group frm-half"> |
95 | 95 | <label><?php _e( 'Icon Position', 'formidable' ) ?></label> |
96 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('collapse_pos') ) ?>" id="frm_collapse_pos"> |
|
97 | - <option value="after" <?php selected($style->post_content['collapse_pos'], 'after') ?>><?php _e( 'After Heading', 'formidable' ) ?></option> |
|
98 | - <option value="before" <?php selected($style->post_content['collapse_pos'], 'before') ?>><?php _e( 'Before Heading', 'formidable' ) ?></option> |
|
96 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'collapse_pos' ) ) ?>" id="frm_collapse_pos"> |
|
97 | + <option value="after" <?php selected( $style->post_content['collapse_pos'], 'after' ) ?>><?php _e( 'After Heading', 'formidable' ) ?></option> |
|
98 | + <option value="before" <?php selected( $style->post_content['collapse_pos'], 'before' ) ?>><?php _e( 'Before Heading', 'formidable' ) ?></option> |
|
99 | 99 | </select> |
100 | 100 | </div> |
101 | 101 | <div class="clear"></div> |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | ?>"> |
107 | 107 | <div class="field-group frm-half"> |
108 | 108 | <label><?php _e( 'Icons', 'formidable' ) ?></label> |
109 | - <?php FrmStylesHelper::bs_icon_select($style, $frm_style, 'minus'); ?> |
|
109 | + <?php FrmStylesHelper::bs_icon_select( $style, $frm_style, 'minus' ); ?> |
|
110 | 110 | </div> |
111 | 111 | <div class="clear"></div> |
112 | 112 | </div><!-- /.tabs-panel --> |