@@ -64,7 +64,7 @@ |
||
| 64 | 64 | <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-styles&frm_action=destroy&id=' . $style->ID ) ); ?>" id="frm_delete_style" class="submitdelete deletion" onclick="return confirm('<?php esc_attr_e( 'Are you sure you want to delete that style?', 'formidable' ) ?>')"><?php _e( 'Delete Style', 'formidable' ) ?></a> |
| 65 | 65 | <?php } ?> |
| 66 | 66 | <?php |
| 67 | - if ( $style->ID ) { |
|
| 67 | + if ( $style->ID ) { |
|
| 68 | 68 | echo '<span class="howto"><span>.frm_style_' . esc_attr( $style->post_name ) . '</span></span>'; |
| 69 | 69 | } ?> |
| 70 | 70 | <div class="publishing-action"> |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | <form id="frm_styling_form" action="" name="frm_styling_form" method="post"> |
| 10 | 10 | <input type="hidden" name="ID" value="<?php echo esc_attr( $style->ID ) ?>" /> |
| 11 | 11 | <input type="hidden" name="frm_action" value="save" /> |
| 12 | - <textarea name="<?php echo esc_attr( $frm_style->get_field_name('custom_css') ) ?>" class="frm_hidden"><?php echo FrmAppHelper::esc_textarea( $style->post_content['custom_css'] ) ?></textarea> |
|
| 12 | + <textarea name="<?php echo esc_attr( $frm_style->get_field_name( 'custom_css' ) ) ?>" class="frm_hidden"><?php echo FrmAppHelper::esc_textarea( $style->post_content['custom_css'] ) ?></textarea> |
|
| 13 | 13 | <?php wp_nonce_field( 'frm_style_nonce', 'frm_style' ); ?> |
| 14 | 14 | <?php FrmTipsHelper::pro_tip( 'get_styling_tip', 'p' ); ?> |
| 15 | 15 | <div id="nav-menus-frame"> |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | <div class="styling_settings"> |
| 20 | 20 | <input type="hidden" name="style_name" value="frm_style_<?php echo esc_attr( $style->post_name ) ?>" /> |
| 21 | - <?php FrmStylesController::do_accordion_sections( FrmStylesController::$screen, 'side', compact('style', 'frm_style') ); ?> |
|
| 21 | + <?php FrmStylesController::do_accordion_sections( FrmStylesController::$screen, 'side', compact( 'style', 'frm_style' ) ); ?> |
|
| 22 | 22 | </div> |
| 23 | 23 | |
| 24 | 24 | </div><!-- /#menu-settings-column --> |
@@ -31,17 +31,17 @@ discard block |
||
| 31 | 31 | <div class="major-publishing-actions"> |
| 32 | 32 | <label class="menu-name-label howto open-label" for="menu-name"> |
| 33 | 33 | <span><?php _e( 'Style Name', 'formidable' ) ?></span> |
| 34 | - <input id="menu-name" name="<?php echo esc_attr( $frm_style->get_field_name('post_title', '') ); ?>" type="text" class="menu-name regular-text menu-item-textbox" title="<?php esc_attr_e( 'Enter style name here', 'formidable' ) ?>" value="<?php echo esc_attr( $style->post_title ) ?>" /> |
|
| 34 | + <input id="menu-name" name="<?php echo esc_attr( $frm_style->get_field_name( 'post_title', '' ) ); ?>" type="text" class="menu-name regular-text menu-item-textbox" title="<?php esc_attr_e( 'Enter style name here', 'formidable' ) ?>" value="<?php echo esc_attr( $style->post_title ) ?>" /> |
|
| 35 | 35 | </label> |
| 36 | 36 | |
| 37 | - <input name="prev_menu_order" type="hidden" value="<?php echo esc_attr($style->menu_order) ?>" /> |
|
| 37 | + <input name="prev_menu_order" type="hidden" value="<?php echo esc_attr( $style->menu_order ) ?>" /> |
|
| 38 | 38 | <label class="menu-name-label howto open-label default-style-box" for="menu_order"> |
| 39 | 39 | <span> |
| 40 | 40 | <?php if ( $style->menu_order ) { ?> |
| 41 | - <input name="<?php echo esc_attr( $frm_style->get_field_name('menu_order', '') ); ?>" type="hidden" value="1" /> |
|
| 42 | - <input id="menu_order" disabled="disabled" type="checkbox" value="1" <?php checked($style->menu_order, 1) ?> /> |
|
| 41 | + <input name="<?php echo esc_attr( $frm_style->get_field_name( 'menu_order', '' ) ); ?>" type="hidden" value="1" /> |
|
| 42 | + <input id="menu_order" disabled="disabled" type="checkbox" value="1" <?php checked( $style->menu_order, 1 ) ?> /> |
|
| 43 | 43 | <?php } else { ?> |
| 44 | - <input id="menu_order" name="<?php echo esc_attr( $frm_style->get_field_name('menu_order', '') ); ?>" type="checkbox" value="1" <?php checked($style->menu_order, 1) ?> /> |
|
| 44 | + <input id="menu_order" name="<?php echo esc_attr( $frm_style->get_field_name( 'menu_order', '' ) ); ?>" type="checkbox" value="1" <?php checked( $style->menu_order, 1 ) ?> /> |
|
| 45 | 45 | <?php } ?> |
| 46 | 46 | <?php _e( 'Make default style', 'formidable' ) ?></span> |
| 47 | 47 | </label> |
@@ -51,15 +51,15 @@ |
||
| 51 | 51 | <ul id="new_fields" class="frm_sorting <?php echo version_compare( $GLOBALS['wp_version'], '3.7.2', '>') ? 'inside' : ''; ?>"> |
| 52 | 52 | <?php |
| 53 | 53 | if ( isset($values['fields']) && ! empty($values['fields']) ) { |
| 54 | - $count = 0; |
|
| 55 | - foreach ( $values['fields'] as $field ) { |
|
| 56 | - $count++; |
|
| 54 | + $count = 0; |
|
| 55 | + foreach ( $values['fields'] as $field ) { |
|
| 56 | + $count++; |
|
| 57 | 57 | $field_name = 'item_meta[' . $field['id'] . ']'; |
| 58 | - $html_id = FrmFieldsHelper::get_html_id($field); |
|
| 58 | + $html_id = FrmFieldsHelper::get_html_id($field); |
|
| 59 | 59 | require( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/add_field.php' ); |
| 60 | - unset($field, $field_name); |
|
| 61 | - } |
|
| 62 | - unset($count); |
|
| 60 | + unset($field, $field_name); |
|
| 61 | + } |
|
| 62 | + unset($count); |
|
| 63 | 63 | } ?> |
| 64 | 64 | </ul> |
| 65 | 65 | </div> |
@@ -1,10 +1,10 @@ discard block |
||
| 1 | -<?php wp_nonce_field('frm_save_form_nonce', 'frm_save_form'); ?> |
|
| 1 | +<?php wp_nonce_field( 'frm_save_form_nonce', 'frm_save_form' ); ?> |
|
| 2 | 2 | <input type="hidden" name="status" value="<?php echo esc_attr( $values['status'] ); ?>" /> |
| 3 | 3 | <input type="hidden" name="new_status" value="" /> |
| 4 | 4 | |
| 5 | 5 | <div id="frm_form_editor_container"> |
| 6 | 6 | <div id="titlediv"> |
| 7 | - <input type="text" name="name" value="<?php echo esc_attr($form->name); ?>" id="title" placeholder="<?php esc_attr_e( 'Enter title here') ?>" /> |
|
| 7 | + <input type="text" name="name" value="<?php echo esc_attr( $form->name ); ?>" id="title" placeholder="<?php esc_attr_e( 'Enter title here' ) ?>" /> |
|
| 8 | 8 | <div id="edit-slug-box" class="hide-if-no-js"> |
| 9 | 9 | <div id="frm_form_key_box" class="alignright"> |
| 10 | 10 | <strong><?php _e( 'Form Key:', 'formidable' ) ?></strong> |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | </div> |
| 17 | 17 | |
| 18 | 18 | <div class="postbox"> |
| 19 | - <div class="frm_no_fields <?php echo ( isset($values['fields']) && ! empty($values['fields']) ) ? 'frm_hidden' : ''; ?>"> |
|
| 19 | + <div class="frm_no_fields <?php echo ( isset( $values['fields'] ) && ! empty( $values['fields'] ) ) ? 'frm_hidden' : ''; ?>"> |
|
| 20 | 20 | <div class="alignleft sketch1"> |
| 21 | 21 | <img src="<?php echo esc_url( FrmAppHelper::plugin_url() . '/images/sketch_arrow1.png' ); ?>" alt="" /> |
| 22 | 22 | </div> |
@@ -50,16 +50,16 @@ discard block |
||
| 50 | 50 | </div> |
| 51 | 51 | <ul id="new_fields" class="frm_sorting inside"> |
| 52 | 52 | <?php |
| 53 | -if ( isset($values['fields']) && ! empty($values['fields']) ) { |
|
| 53 | +if ( isset( $values['fields'] ) && ! empty( $values['fields'] ) ) { |
|
| 54 | 54 | $count = 0; |
| 55 | 55 | foreach ( $values['fields'] as $field ) { |
| 56 | - $count++; |
|
| 56 | + $count ++; |
|
| 57 | 57 | $field_name = 'item_meta[' . $field['id'] . ']'; |
| 58 | - $html_id = FrmFieldsHelper::get_html_id($field); |
|
| 58 | + $html_id = FrmFieldsHelper::get_html_id( $field ); |
|
| 59 | 59 | require( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/add_field.php' ); |
| 60 | - unset($field, $field_name); |
|
| 60 | + unset( $field, $field_name ); |
|
| 61 | 61 | } |
| 62 | - unset($count); |
|
| 62 | + unset( $count ); |
|
| 63 | 63 | } ?> |
| 64 | 64 | </ul> |
| 65 | 65 | </div> |
@@ -8,12 +8,12 @@ |
||
| 8 | 8 | <div id="post-body" class="metabox-holder columns-2"> |
| 9 | 9 | <div id="post-body-content"> |
| 10 | 10 | <?php |
| 11 | - if ( ! $values['is_template'] ) { |
|
| 12 | - FrmAppController::get_form_nav($id, true, 'hide'); |
|
| 13 | - } |
|
| 11 | + if ( ! $values['is_template'] ) { |
|
| 12 | + FrmAppController::get_form_nav($id, true, 'hide'); |
|
| 13 | + } |
|
| 14 | 14 | require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); |
| 15 | 15 | |
| 16 | - ?> |
|
| 16 | + ?> |
|
| 17 | 17 | |
| 18 | 18 | <div class="frm_form_builder with_frm_style"> |
| 19 | 19 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | <div id="post-body-content"> |
| 10 | 10 | <?php |
| 11 | 11 | if ( ! $values['is_template'] ) { |
| 12 | - FrmAppController::get_form_nav($id, true, 'hide'); |
|
| 12 | + FrmAppController::get_form_nav( $id, true, 'hide' ); |
|
| 13 | 13 | } |
| 14 | 14 | require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); |
| 15 | 15 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | <option value="message" <?php selected($values['success_action'], 'message') ?>><?php _e( 'Show Message', 'formidable' )?></option> |
| 62 | 62 | <?php if ( FrmAppHelper::pro_is_installed() ) { ?> |
| 63 | 63 | <option value="redirect" <?php selected($values['success_action'], 'redirect'); |
| 64 | - ?>><?php _e( 'Redirect to URL', 'formidable' ) ?></option> |
|
| 64 | + ?>><?php _e( 'Redirect to URL', 'formidable' ) ?></option> |
|
| 65 | 65 | <option value="page" <?php selected($values['success_action'], 'page'); |
| 66 | 66 | ?>><?php _e( 'Show Page Content', 'formidable' ) ?></option> |
| 67 | 67 | <?php } else { ?> |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | <?php _e( '(Premium feature)', 'formidable' ); ?> |
| 72 | 72 | </option> |
| 73 | 73 | <option value="page" disabled="disabled" <?php selected($values['success_action'], 'page'); |
| 74 | - ?>> |
|
| 74 | + ?>> |
|
| 75 | 75 | <?php _e( 'Show Page Content', 'formidable' ); ?> |
| 76 | 76 | <?php _e( '(Premium feature)', 'formidable' ); ?> |
| 77 | 77 | </option> |
@@ -193,17 +193,17 @@ discard block |
||
| 193 | 193 | <ul class="frm_actions_list"> |
| 194 | 194 | <?php |
| 195 | 195 | |
| 196 | - //For each add-on, add an li, class, and javascript function. If active, add an additional class. |
|
| 197 | - foreach ( $action_controls as $action_control ) { |
|
| 198 | - ?> |
|
| 196 | + //For each add-on, add an li, class, and javascript function. If active, add an additional class. |
|
| 197 | + foreach ( $action_controls as $action_control ) { |
|
| 198 | + ?> |
|
| 199 | 199 | <li><a href="javascript:void(0)" class="frm_<?php echo esc_attr( $action_control->id_base ) ?>_action frm_bstooltip <?php |
| 200 | - echo ( isset($action_control->action_options['active']) && $action_control->action_options['active']) ? 'frm_active_action ' : 'frm_inactive_action '; |
|
| 201 | - echo esc_attr( $action_control->action_options['classes'] ); |
|
| 202 | - ?>" title="<?php echo esc_attr($action_control->action_options['tooltip']) ?>" data-limit="<?php echo isset($action_control->action_options['limit']) ? esc_attr( $action_control->action_options['limit'] ) : '99' ?>" data-actiontype="<?php echo esc_attr($action_control->id_base) ?>"></a></li> |
|
| 200 | + echo ( isset($action_control->action_options['active']) && $action_control->action_options['active']) ? 'frm_active_action ' : 'frm_inactive_action '; |
|
| 201 | + echo esc_attr( $action_control->action_options['classes'] ); |
|
| 202 | + ?>" title="<?php echo esc_attr($action_control->action_options['tooltip']) ?>" data-limit="<?php echo isset($action_control->action_options['limit']) ? esc_attr( $action_control->action_options['limit'] ) : '99' ?>" data-actiontype="<?php echo esc_attr($action_control->id_base) ?>"></a></li> |
|
| 203 | 203 | <?php |
| 204 | - unset($actions_icon); |
|
| 205 | - } |
|
| 206 | - ?> |
|
| 204 | + unset($actions_icon); |
|
| 205 | + } |
|
| 206 | + ?> |
|
| 207 | 207 | </ul> |
| 208 | 208 | </div> |
| 209 | 209 | <div class="frm_no_actions"> |
@@ -235,9 +235,9 @@ discard block |
||
| 235 | 235 | <p><label><?php echo esc_html( $field['name'] ) ?></label> |
| 236 | 236 | <textarea name="field_options[custom_html_<?php echo esc_attr( $field['id'] ) ?>]" rows="7" id="custom_html_<?php echo esc_attr( $field['id'] ) ?>" class="field_custom_html frm_long_input"><?php echo FrmAppHelper::esc_textarea($field['custom_html']) ?></textarea></p> |
| 237 | 237 | <?php } |
| 238 | - unset($field); |
|
| 239 | - } |
|
| 240 | - } ?> |
|
| 238 | + unset($field); |
|
| 239 | + } |
|
| 240 | + } ?> |
|
| 241 | 241 | </div> |
| 242 | 242 | |
| 243 | 243 | <p><label><?php _e( 'After Fields', 'formidable' ) ?></label> |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | call_user_func( array( $section['class'], $section['function'] ), $values ); |
| 260 | 260 | } else { |
| 261 | 261 | call_user_func( ( isset( $section['function'] ) ? $section['function'] : $section ), $values ); |
| 262 | - } ?> |
|
| 262 | + } ?> |
|
| 263 | 263 | </div> |
| 264 | 264 | <?php } ?> |
| 265 | 265 | |
@@ -26,9 +26,9 @@ discard block |
||
| 26 | 26 | <div class="contextual-help-tabs"> |
| 27 | 27 | <ul class="frm-category-tabs frm-form-setting-tabs"> |
| 28 | 28 | <?php $a = FrmAppHelper::simple_get( 't', 'sanitize_title', 'advanced_settings' ); ?> |
| 29 | - <li <?php echo ($a == 'advanced_settings') ? 'class="tabs active"' : '' ?>><a href="#advanced_settings"><?php _e( 'General', 'formidable' ) ?></a></li> |
|
| 30 | - <li <?php echo ($a == 'email_settings') ? 'class="tabs active"' : '' ?>><a href="#email_settings"><?php _e( 'Form Actions', 'formidable' ); ?></a></li> |
|
| 31 | - <li <?php echo ($a == 'html_settings') ? 'class="tabs active"' : '' ?>><a href="#html_settings"><?php _e( 'Customize HTML', 'formidable' ) ?></a></li> |
|
| 29 | + <li <?php echo ( $a == 'advanced_settings' ) ? 'class="tabs active"' : '' ?>><a href="#advanced_settings"><?php _e( 'General', 'formidable' ) ?></a></li> |
|
| 30 | + <li <?php echo ( $a == 'email_settings' ) ? 'class="tabs active"' : '' ?>><a href="#email_settings"><?php _e( 'Form Actions', 'formidable' ); ?></a></li> |
|
| 31 | + <li <?php echo ( $a == 'html_settings' ) ? 'class="tabs active"' : '' ?>><a href="#html_settings"><?php _e( 'Customize HTML', 'formidable' ) ?></a></li> |
|
| 32 | 32 | <?php foreach ( $sections as $key => $section ) { |
| 33 | 33 | if ( isset( $section['name'] ) ) { |
| 34 | 34 | $sec_name = $section['name']; |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | <?php } ?> |
| 43 | 43 | </ul> |
| 44 | 44 | </div> |
| 45 | - <div class="advanced_settings tabs-panel <?php echo ($a == 'advanced_settings') ? 'frm_block' : 'frm_hidden' ?>"> |
|
| 45 | + <div class="advanced_settings tabs-panel <?php echo ( $a == 'advanced_settings' ) ? 'frm_block' : 'frm_hidden' ?>"> |
|
| 46 | 46 | <?php FrmTipsHelper::pro_tip( 'get_form_settings_tip', 'p' ); ?> |
| 47 | 47 | |
| 48 | 48 | <h3 class="frm_first_h3"><?php _e( 'On Submit', 'formidable' ); ?> |
@@ -57,19 +57,19 @@ discard block |
||
| 57 | 57 | <tr> |
| 58 | 58 | <td class="frm_175_width"> |
| 59 | 59 | <select name="options[success_action]" id="success_action"> |
| 60 | - <option value="message" <?php selected($values['success_action'], 'message') ?>><?php _e( 'Show Message', 'formidable' )?></option> |
|
| 60 | + <option value="message" <?php selected( $values['success_action'], 'message' ) ?>><?php _e( 'Show Message', 'formidable' )?></option> |
|
| 61 | 61 | <?php if ( FrmAppHelper::pro_is_installed() ) { ?> |
| 62 | - <option value="redirect" <?php selected($values['success_action'], 'redirect'); |
|
| 62 | + <option value="redirect" <?php selected( $values['success_action'], 'redirect' ); |
|
| 63 | 63 | ?>><?php _e( 'Redirect to URL', 'formidable' ) ?></option> |
| 64 | - <option value="page" <?php selected($values['success_action'], 'page'); |
|
| 64 | + <option value="page" <?php selected( $values['success_action'], 'page' ); |
|
| 65 | 65 | ?>><?php _e( 'Show Page Content', 'formidable' ) ?></option> |
| 66 | 66 | <?php } else { ?> |
| 67 | - <option value="redirect" disabled="disabled" <?php selected($values['success_action'], 'redirect'); |
|
| 67 | + <option value="redirect" disabled="disabled" <?php selected( $values['success_action'], 'redirect' ); |
|
| 68 | 68 | ?>> |
| 69 | 69 | <?php _e( 'Redirect to URL', 'formidable' ); ?> |
| 70 | 70 | <?php _e( '(Premium feature)', 'formidable' ); ?> |
| 71 | 71 | </option> |
| 72 | - <option value="page" disabled="disabled" <?php selected($values['success_action'], 'page'); |
|
| 72 | + <option value="page" disabled="disabled" <?php selected( $values['success_action'], 'page' ); |
|
| 73 | 73 | ?>> |
| 74 | 74 | <?php _e( 'Show Page Content', 'formidable' ); ?> |
| 75 | 75 | <?php _e( '(Premium feature)', 'formidable' ); ?> |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | </select> |
| 79 | 79 | </td> |
| 80 | 80 | <td> |
| 81 | - <span class="success_action_redirect_box success_action_box<?php echo ($values['success_action'] == 'redirect') ? '' : ' frm_hidden'; ?>"> |
|
| 81 | + <span class="success_action_redirect_box success_action_box<?php echo ( $values['success_action'] == 'redirect' ) ? '' : ' frm_hidden'; ?>"> |
|
| 82 | 82 | <input type="text" name="options[success_url]" id="success_url" value="<?php |
| 83 | 83 | if ( isset( $values['success_url'] ) ) { |
| 84 | 84 | echo esc_attr( $values['success_url'] ); |
@@ -86,23 +86,23 @@ discard block |
||
| 86 | 86 | </span> |
| 87 | 87 | |
| 88 | 88 | <?php if ( FrmAppHelper::pro_is_installed() ) { ?> |
| 89 | - <span class="success_action_page_box success_action_box<?php echo ($values['success_action'] == 'page') ? '' : ' frm_hidden'; ?>"> |
|
| 89 | + <span class="success_action_page_box success_action_box<?php echo ( $values['success_action'] == 'page' ) ? '' : ' frm_hidden'; ?>"> |
|
| 90 | 90 | <label><?php _e( 'Use Content from Page', 'formidable' ) ?></label> |
| 91 | 91 | <?php FrmAppHelper::wp_pages_dropdown( 'options[success_page_id]', $values['success_page_id'] ) ?> |
| 92 | 92 | </span> |
| 93 | 93 | <?php } ?> |
| 94 | 94 | </td> |
| 95 | 95 | </tr> |
| 96 | - <tr class="frm_show_form_opt success_action_message_box success_action_box<?php echo ($values['success_action'] == 'message') ? '' : ' frm_hidden'; ?>"> |
|
| 96 | + <tr class="frm_show_form_opt success_action_message_box success_action_box<?php echo ( $values['success_action'] == 'message' ) ? '' : ' frm_hidden'; ?>"> |
|
| 97 | 97 | <td colspan="2"> |
| 98 | 98 | <label for="show_form"><input type="checkbox" name="options[show_form]" id="show_form" value="1" <?php checked( $values['show_form'], 1 ) ?> /> <?php _e( 'Show the form with the confirmation message', 'formidable' ) ?></label> |
| 99 | 99 | </td> |
| 100 | 100 | </tr> |
| 101 | 101 | <tr> |
| 102 | - <td colspan="2"><label for="no_save"><input type="checkbox" name="options[no_save]" id="no_save" value="1" <?php checked($values['no_save'], 1); ?> /> <?php _e( 'Do not store entries submitted from this form', 'formidable' ) ?></label> |
|
| 102 | + <td colspan="2"><label for="no_save"><input type="checkbox" name="options[no_save]" id="no_save" value="1" <?php checked( $values['no_save'], 1 ); ?> /> <?php _e( 'Do not store entries submitted from this form', 'formidable' ) ?></label> |
|
| 103 | 103 | </td> |
| 104 | 104 | </tr> |
| 105 | - <?php if ( function_exists( 'akismet_http_post') ) { ?> |
|
| 105 | + <?php if ( function_exists( 'akismet_http_post' ) ) { ?> |
|
| 106 | 106 | <tr> |
| 107 | 107 | <td colspan="2"><?php _e( 'Use Akismet to check entries for spam for', 'formidable' ) ?> |
| 108 | 108 | <select name="options[akismet]"> |
@@ -128,11 +128,11 @@ discard block |
||
| 128 | 128 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Recommended for long forms.', 'formidable' ) ?>" ></span> |
| 129 | 129 | </td> |
| 130 | 130 | </tr> |
| 131 | - <?php do_action('frm_add_form_ajax_options', $values); ?> |
|
| 131 | + <?php do_action( 'frm_add_form_ajax_options', $values ); ?> |
|
| 132 | 132 | </table> |
| 133 | 133 | |
| 134 | 134 | <!--Permissions Section--> |
| 135 | - <?php do_action('frm_add_form_perm_options', $values); ?> |
|
| 135 | + <?php do_action( 'frm_add_form_perm_options', $values ); ?> |
|
| 136 | 136 | |
| 137 | 137 | <!--Styling & Buttons Section--> |
| 138 | 138 | <h3><?php _e( 'Styling & Buttons', 'formidable' ) ?> |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | </tr> |
| 154 | 154 | <tr> |
| 155 | 155 | <td><label><?php _e( 'Submit Button Text', 'formidable' ) ?></label></td> |
| 156 | - <td><input type="text" name="options[submit_value]" value="<?php echo esc_attr($values['submit_value']); ?>" /></td> |
|
| 156 | + <td><input type="text" name="options[submit_value]" value="<?php echo esc_attr( $values['submit_value'] ); ?>" /></td> |
|
| 157 | 157 | </tr> |
| 158 | 158 | <?php do_action( 'frm_add_form_button_options', $values ); ?> |
| 159 | 159 | </table> |
@@ -163,27 +163,27 @@ discard block |
||
| 163 | 163 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Set up your confirmation messages.', 'formidable' ) ?>" ></span> |
| 164 | 164 | </h3> |
| 165 | 165 | <table class="form-table"> |
| 166 | - <tr class="success_action_message_box success_action_box<?php echo ($values['success_action'] == 'message') ? '' : ' frm_hidden'; ?>"> |
|
| 166 | + <tr class="success_action_message_box success_action_box<?php echo ( $values['success_action'] == 'message' ) ? '' : ' frm_hidden'; ?>"> |
|
| 167 | 167 | <td> |
| 168 | 168 | <div><?php _e( 'On Submit', 'formidable' ) ?></div> |
| 169 | - <textarea id="success_msg" name="options[success_msg]" cols="50" rows="2" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['success_msg']); ?></textarea> |
|
| 169 | + <textarea id="success_msg" name="options[success_msg]" cols="50" rows="2" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['success_msg'] ); ?></textarea> |
|
| 170 | 170 | </td> |
| 171 | 171 | </tr> |
| 172 | - <?php do_action('frm_add_form_msg_options', $values); ?> |
|
| 172 | + <?php do_action( 'frm_add_form_msg_options', $values ); ?> |
|
| 173 | 173 | </table> |
| 174 | 174 | |
| 175 | 175 | <!--Misc Section--> |
| 176 | 176 | <?php if ( has_action( 'frm_additional_form_options' ) ) { ?> |
| 177 | 177 | <h3><?php _e( 'Miscellaneous', 'formidable' ); ?></h3> |
| 178 | 178 | <table class="form-table"> |
| 179 | - <?php do_action('frm_additional_form_options', $values); ?> |
|
| 179 | + <?php do_action( 'frm_additional_form_options', $values ); ?> |
|
| 180 | 180 | </table> |
| 181 | 181 | <?php } ?> |
| 182 | 182 | |
| 183 | 183 | </div> |
| 184 | 184 | |
| 185 | 185 | |
| 186 | - <div id="frm_notification_settings" class="frm_email_settings email_settings tabs-panel widgets-holder-wrap <?php echo ($a == 'email_settings') ? ' frm_block' : ' frm_hidden'; ?>"> |
|
| 186 | + <div id="frm_notification_settings" class="frm_email_settings email_settings tabs-panel widgets-holder-wrap <?php echo ( $a == 'email_settings' ) ? ' frm_block' : ' frm_hidden'; ?>"> |
|
| 187 | 187 | <?php FrmTipsHelper::pro_tip( 'get_form_action_tip', 'p' ); ?> |
| 188 | 188 | <div id="frm_email_addon_menu" class="manage-menus"> |
| 189 | 189 | <h3><?php _e( 'Add New Action', 'formidable' ) ?></h3> |
@@ -194,11 +194,11 @@ discard block |
||
| 194 | 194 | foreach ( $action_controls as $action_control ) { |
| 195 | 195 | ?> |
| 196 | 196 | <li><a href="javascript:void(0)" class="frm_<?php echo esc_attr( $action_control->id_base ) ?>_action frm_bstooltip <?php |
| 197 | - echo ( isset($action_control->action_options['active']) && $action_control->action_options['active']) ? 'frm_active_action ' : 'frm_inactive_action '; |
|
| 197 | + echo ( isset( $action_control->action_options['active'] ) && $action_control->action_options['active'] ) ? 'frm_active_action ' : 'frm_inactive_action '; |
|
| 198 | 198 | echo esc_attr( $action_control->action_options['classes'] ); |
| 199 | - ?>" title="<?php echo esc_attr($action_control->action_options['tooltip']) ?>" data-limit="<?php echo isset($action_control->action_options['limit']) ? esc_attr( $action_control->action_options['limit'] ) : '99' ?>" data-actiontype="<?php echo esc_attr($action_control->id_base) ?>"></a></li> |
|
| 199 | + ?>" title="<?php echo esc_attr( $action_control->action_options['tooltip'] ) ?>" data-limit="<?php echo isset( $action_control->action_options['limit'] ) ? esc_attr( $action_control->action_options['limit'] ) : '99' ?>" data-actiontype="<?php echo esc_attr( $action_control->id_base ) ?>"></a></li> |
|
| 200 | 200 | <?php |
| 201 | - unset($actions_icon); |
|
| 201 | + unset( $actions_icon ); |
|
| 202 | 202 | } |
| 203 | 203 | ?> |
| 204 | 204 | </ul> |
@@ -210,19 +210,19 @@ discard block |
||
| 210 | 210 | <?php _e( 'Click an action to add it to this form', 'formidable' ) ?> |
| 211 | 211 | </div> |
| 212 | 212 | </div> |
| 213 | - <?php FrmFormActionsController::list_actions($form, $values); ?> |
|
| 213 | + <?php FrmFormActionsController::list_actions( $form, $values ); ?> |
|
| 214 | 214 | </div> |
| 215 | 215 | |
| 216 | - <div id="html_settings" class="tabs-panel <?php echo ($a == 'html_settings') ? ' frm_block' : ' frm_hidden'; ?>"> |
|
| 216 | + <div id="html_settings" class="tabs-panel <?php echo ( $a == 'html_settings' ) ? ' frm_block' : ' frm_hidden'; ?>"> |
|
| 217 | 217 | |
| 218 | 218 | <div class="frm_field_html_box frm_top_container"> |
| 219 | 219 | <p><label><?php _e( 'Form Classes', 'formidable' ) ?></label> |
| 220 | - <input type="text" name="options[form_class]" value="<?php echo esc_attr($values['form_class']) ?>" /> |
|
| 220 | + <input type="text" name="options[form_class]" value="<?php echo esc_attr( $values['form_class'] ) ?>" /> |
|
| 221 | 221 | </p> |
| 222 | 222 | <div class="clear"></div> |
| 223 | 223 | |
| 224 | 224 | <p><label><?php _e( 'Before Fields', 'formidable' ) ?></label> |
| 225 | - <textarea name="options[before_html]" rows="4" id="before_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['before_html']) ?></textarea></p> |
|
| 225 | + <textarea name="options[before_html]" rows="4" id="before_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['before_html'] ) ?></textarea></p> |
|
| 226 | 226 | |
| 227 | 227 | <div id="add_html_fields"> |
| 228 | 228 | <?php |
@@ -230,18 +230,18 @@ discard block |
||
| 230 | 230 | foreach ( $values['fields'] as $field ) { |
| 231 | 231 | if ( apply_filters( 'frm_show_custom_html', true, $field['type'] ) ) { ?> |
| 232 | 232 | <p><label><?php echo esc_html( $field['name'] ) ?></label> |
| 233 | - <textarea name="field_options[custom_html_<?php echo esc_attr( $field['id'] ) ?>]" rows="7" id="custom_html_<?php echo esc_attr( $field['id'] ) ?>" class="field_custom_html frm_long_input"><?php echo FrmAppHelper::esc_textarea($field['custom_html']) ?></textarea></p> |
|
| 233 | + <textarea name="field_options[custom_html_<?php echo esc_attr( $field['id'] ) ?>]" rows="7" id="custom_html_<?php echo esc_attr( $field['id'] ) ?>" class="field_custom_html frm_long_input"><?php echo FrmAppHelper::esc_textarea( $field['custom_html'] ) ?></textarea></p> |
|
| 234 | 234 | <?php } |
| 235 | - unset($field); |
|
| 235 | + unset( $field ); |
|
| 236 | 236 | } |
| 237 | 237 | } ?> |
| 238 | 238 | </div> |
| 239 | 239 | |
| 240 | 240 | <p><label><?php _e( 'After Fields', 'formidable' ) ?></label> |
| 241 | - <textarea name="options[after_html]" rows="3" id="after_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['after_html']) ?></textarea></p> |
|
| 241 | + <textarea name="options[after_html]" rows="3" id="after_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['after_html'] ) ?></textarea></p> |
|
| 242 | 242 | |
| 243 | 243 | <p><label><?php _e( 'Submit Button', 'formidable' ) ?></label> |
| 244 | - <textarea name="options[submit_html]" rows="3" id="submit_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['submit_html']) ?></textarea></p> |
|
| 244 | + <textarea name="options[submit_html]" rows="3" id="submit_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['submit_html'] ) ?></textarea></p> |
|
| 245 | 245 | </div> |
| 246 | 246 | </div> |
| 247 | 247 | |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | </div> |
| 261 | 261 | <?php } ?> |
| 262 | 262 | |
| 263 | - <?php do_action('frm_add_form_option_section', $values); ?> |
|
| 263 | + <?php do_action( 'frm_add_form_option_section', $values ); ?> |
|
| 264 | 264 | <div class="clear"></div> |
| 265 | 265 | </div> |
| 266 | 266 | </div> |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <div id="postbox-container-1" class="postbox-container"> |
| 2 | 2 | <?php |
| 3 | 3 | |
| 4 | - if ( ! isset($hide_preview) || ! $hide_preview ) { |
|
| 4 | + if ( ! isset($hide_preview) || ! $hide_preview ) { |
|
| 5 | 5 | include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/_publish_box.php' ); |
| 6 | - } |
|
| 6 | + } |
|
| 7 | 7 | |
| 8 | 8 | include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/mb_insert_fields.php' ); |
| 9 | 9 | |
| 10 | - ?> |
|
| 10 | + ?> |
|
| 11 | 11 | </div> |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <div id="postbox-container-1" class="postbox-container"> |
| 2 | 2 | <?php |
| 3 | 3 | |
| 4 | - if ( ! isset($hide_preview) || ! $hide_preview ) { |
|
| 4 | + if ( ! isset( $hide_preview ) || ! $hide_preview ) { |
|
| 5 | 5 | include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/_publish_box.php' ); |
| 6 | 6 | } |
| 7 | 7 | |
@@ -21,15 +21,15 @@ |
||
| 21 | 21 | </div> |
| 22 | 22 | <div class="widget-inside frm_hidden"> |
| 23 | 23 | <?php |
| 24 | - if ( defined('DOING_AJAX') || ! $action_control->action_options['ajax_load'] ) { |
|
| 25 | - // only load settings if they are just added or are open |
|
| 24 | + if ( defined('DOING_AJAX') || ! $action_control->action_options['ajax_load'] ) { |
|
| 25 | + // only load settings if they are just added or are open |
|
| 26 | 26 | include( dirname( __FILE__ ) . '/_action_inside.php' ); |
| 27 | - } else { |
|
| 28 | - // include hidden settings so action won't get lost on update ?> |
|
| 27 | + } else { |
|
| 28 | + // include hidden settings so action won't get lost on update ?> |
|
| 29 | 29 | <input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name('post_excerpt', '') ) ?>" class="frm_action_name" value="<?php echo esc_attr( $form_action->post_excerpt ); ?>" /> |
| 30 | 30 | <input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name('ID', '') ) ?>" value="<?php echo esc_attr( $form_action->ID ); ?>" /> |
| 31 | 31 | <?php |
| 32 | - } ?> |
|
| 32 | + } ?> |
|
| 33 | 33 | </div> |
| 34 | 34 | <style type="text/css"> |
| 35 | 35 | .frm_no_actions{ |
@@ -21,13 +21,13 @@ |
||
| 21 | 21 | </div> |
| 22 | 22 | <div class="widget-inside frm_hidden"> |
| 23 | 23 | <?php |
| 24 | - if ( defined('DOING_AJAX') || ! $action_control->action_options['ajax_load'] ) { |
|
| 24 | + if ( defined( 'DOING_AJAX' ) || ! $action_control->action_options['ajax_load'] ) { |
|
| 25 | 25 | // only load settings if they are just added or are open |
| 26 | 26 | include( dirname( __FILE__ ) . '/_action_inside.php' ); |
| 27 | 27 | } else { |
| 28 | 28 | // include hidden settings so action won't get lost on update ?> |
| 29 | - <input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name('post_excerpt', '') ) ?>" class="frm_action_name" value="<?php echo esc_attr( $form_action->post_excerpt ); ?>" /> |
|
| 30 | - <input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name('ID', '') ) ?>" value="<?php echo esc_attr( $form_action->ID ); ?>" /> |
|
| 29 | + <input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name( 'post_excerpt', '' ) ) ?>" class="frm_action_name" value="<?php echo esc_attr( $form_action->post_excerpt ); ?>" /> |
|
| 30 | + <input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name( 'ID', '' ) ) ?>" value="<?php echo esc_attr( $form_action->ID ); ?>" /> |
|
| 31 | 31 | <?php |
| 32 | 32 | } ?> |
| 33 | 33 | </div> |
@@ -4,12 +4,12 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | public function __construct() { |
| 6 | 6 | $action_ops = array( |
| 7 | - 'classes' => 'frm_email_icon frm_icon_font', |
|
| 8 | - 'active' => true, |
|
| 7 | + 'classes' => 'frm_email_icon frm_icon_font', |
|
| 8 | + 'active' => true, |
|
| 9 | 9 | 'event' => array( 'create' ), |
| 10 | - 'limit' => 99, |
|
| 11 | - 'priority' => 10, |
|
| 12 | - 'ajax_load' => false, |
|
| 10 | + 'limit' => 99, |
|
| 11 | + 'priority' => 10, |
|
| 12 | + 'ajax_load' => false, |
|
| 13 | 13 | ); |
| 14 | 14 | $action_ops = apply_filters('frm_email_control_settings', $action_ops); |
| 15 | 15 | |
@@ -17,23 +17,23 @@ discard block |
||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | public function form( $form_action, $args = array() ) { |
| 20 | - extract($args); |
|
| 20 | + extract($args); |
|
| 21 | 21 | |
| 22 | 22 | include( FrmAppHelper::plugin_path() . '/classes/views/frm-form-actions/_email_settings.php' ); |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | public function get_defaults() { |
| 26 | - return array( |
|
| 27 | - 'email_to' => '[admin_email]', |
|
| 28 | - 'cc' => '', |
|
| 29 | - 'bcc' => '', |
|
| 30 | - 'from' => '[sitename] <[admin_email]>', |
|
| 31 | - 'reply_to' => '', |
|
| 32 | - 'email_subject' => '', |
|
| 33 | - 'email_message' => '[default-message]', |
|
| 34 | - 'inc_user_info' => 0, |
|
| 35 | - 'plain_text' => 0, |
|
| 26 | + return array( |
|
| 27 | + 'email_to' => '[admin_email]', |
|
| 28 | + 'cc' => '', |
|
| 29 | + 'bcc' => '', |
|
| 30 | + 'from' => '[sitename] <[admin_email]>', |
|
| 31 | + 'reply_to' => '', |
|
| 32 | + 'email_subject' => '', |
|
| 33 | + 'email_message' => '[default-message]', |
|
| 34 | + 'inc_user_info' => 0, |
|
| 35 | + 'plain_text' => 0, |
|
| 36 | 36 | 'event' => array( 'create' ), |
| 37 | - ); |
|
| 37 | + ); |
|
| 38 | 38 | } |
| 39 | 39 | } |
@@ -11,13 +11,13 @@ |
||
| 11 | 11 | 'priority' => 10, |
| 12 | 12 | 'ajax_load' => false, |
| 13 | 13 | ); |
| 14 | - $action_ops = apply_filters('frm_email_control_settings', $action_ops); |
|
| 14 | + $action_ops = apply_filters( 'frm_email_control_settings', $action_ops ); |
|
| 15 | 15 | |
| 16 | - parent::__construct('email', __( 'Email Notification', 'formidable' ), $action_ops); |
|
| 16 | + parent::__construct( 'email', __( 'Email Notification', 'formidable' ), $action_ops ); |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | public function form( $form_action, $args = array() ) { |
| 20 | - extract($args); |
|
| 20 | + extract( $args ); |
|
| 21 | 21 | |
| 22 | 22 | include( FrmAppHelper::plugin_path() . '/classes/views/frm-form-actions/_email_settings.php' ); |
| 23 | 23 | } |
@@ -1,67 +1,67 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | class FrmStylesHelper { |
| 3 | 3 | |
| 4 | - public static function jquery_themes() { |
|
| 5 | - $themes = array( |
|
| 6 | - 'ui-lightness' => 'UI Lightness', |
|
| 7 | - 'ui-darkness' => 'UI Darkness', |
|
| 8 | - 'smoothness' => 'Smoothness', |
|
| 9 | - 'start' => 'Start', |
|
| 10 | - 'redmond' => 'Redmond', |
|
| 11 | - 'sunny' => 'Sunny', |
|
| 12 | - 'overcast' => 'Overcast', |
|
| 13 | - 'le-frog' => 'Le Frog', |
|
| 14 | - 'flick' => 'Flick', |
|
| 4 | + public static function jquery_themes() { |
|
| 5 | + $themes = array( |
|
| 6 | + 'ui-lightness' => 'UI Lightness', |
|
| 7 | + 'ui-darkness' => 'UI Darkness', |
|
| 8 | + 'smoothness' => 'Smoothness', |
|
| 9 | + 'start' => 'Start', |
|
| 10 | + 'redmond' => 'Redmond', |
|
| 11 | + 'sunny' => 'Sunny', |
|
| 12 | + 'overcast' => 'Overcast', |
|
| 13 | + 'le-frog' => 'Le Frog', |
|
| 14 | + 'flick' => 'Flick', |
|
| 15 | 15 | 'pepper-grinder' => 'Pepper Grinder', |
| 16 | - 'eggplant' => 'Eggplant', |
|
| 17 | - 'dark-hive' => 'Dark Hive', |
|
| 18 | - 'cupertino' => 'Cupertino', |
|
| 19 | - 'south-street' => 'South Street', |
|
| 20 | - 'blitzer' => 'Blitzer', |
|
| 21 | - 'humanity' => 'Humanity', |
|
| 22 | - 'hot-sneaks' => 'Hot Sneaks', |
|
| 23 | - 'excite-bike' => 'Excite Bike', |
|
| 24 | - 'vader' => 'Vader', |
|
| 25 | - 'dot-luv' => 'Dot Luv', |
|
| 26 | - 'mint-choc' => 'Mint Choc', |
|
| 27 | - 'black-tie' => 'Black Tie', |
|
| 28 | - 'trontastic' => 'Trontastic', |
|
| 29 | - 'swanky-purse' => 'Swanky Purse', |
|
| 30 | - ); |
|
| 31 | - |
|
| 32 | - $themes = apply_filters('frm_jquery_themes', $themes); |
|
| 33 | - return $themes; |
|
| 34 | - } |
|
| 16 | + 'eggplant' => 'Eggplant', |
|
| 17 | + 'dark-hive' => 'Dark Hive', |
|
| 18 | + 'cupertino' => 'Cupertino', |
|
| 19 | + 'south-street' => 'South Street', |
|
| 20 | + 'blitzer' => 'Blitzer', |
|
| 21 | + 'humanity' => 'Humanity', |
|
| 22 | + 'hot-sneaks' => 'Hot Sneaks', |
|
| 23 | + 'excite-bike' => 'Excite Bike', |
|
| 24 | + 'vader' => 'Vader', |
|
| 25 | + 'dot-luv' => 'Dot Luv', |
|
| 26 | + 'mint-choc' => 'Mint Choc', |
|
| 27 | + 'black-tie' => 'Black Tie', |
|
| 28 | + 'trontastic' => 'Trontastic', |
|
| 29 | + 'swanky-purse' => 'Swanky Purse', |
|
| 30 | + ); |
|
| 31 | + |
|
| 32 | + $themes = apply_filters('frm_jquery_themes', $themes); |
|
| 33 | + return $themes; |
|
| 34 | + } |
|
| 35 | 35 | |
| 36 | 36 | public static function jquery_css_url( $theme_css ) { |
| 37 | - if ( $theme_css == -1 ) { |
|
| 38 | - return; |
|
| 39 | - } |
|
| 40 | - |
|
| 41 | - if ( ! $theme_css || $theme_css == '' || $theme_css == 'ui-lightness' ) { |
|
| 42 | - $css_file = FrmAppHelper::plugin_url() . '/css/ui-lightness/jquery-ui.css'; |
|
| 43 | - } else if ( preg_match('/^http.?:\/\/.*\..*$/', $theme_css) ) { |
|
| 44 | - $css_file = $theme_css; |
|
| 45 | - } else { |
|
| 46 | - $uploads = self::get_upload_base(); |
|
| 37 | + if ( $theme_css == -1 ) { |
|
| 38 | + return; |
|
| 39 | + } |
|
| 40 | + |
|
| 41 | + if ( ! $theme_css || $theme_css == '' || $theme_css == 'ui-lightness' ) { |
|
| 42 | + $css_file = FrmAppHelper::plugin_url() . '/css/ui-lightness/jquery-ui.css'; |
|
| 43 | + } else if ( preg_match('/^http.?:\/\/.*\..*$/', $theme_css) ) { |
|
| 44 | + $css_file = $theme_css; |
|
| 45 | + } else { |
|
| 46 | + $uploads = self::get_upload_base(); |
|
| 47 | 47 | $file_path = '/formidable/css/' . $theme_css . '/jquery-ui.css'; |
| 48 | - if ( file_exists($uploads['basedir'] . $file_path) ) { |
|
| 49 | - $css_file = $uploads['baseurl'] . $file_path; |
|
| 50 | - } else { |
|
| 48 | + if ( file_exists($uploads['basedir'] . $file_path) ) { |
|
| 49 | + $css_file = $uploads['baseurl'] . $file_path; |
|
| 50 | + } else { |
|
| 51 | 51 | $css_file = FrmAppHelper::jquery_ui_base_url() . '/themes/' . $theme_css . '/jquery-ui.min.css'; |
| 52 | - } |
|
| 53 | - } |
|
| 52 | + } |
|
| 53 | + } |
|
| 54 | 54 | |
| 55 | - return $css_file; |
|
| 56 | - } |
|
| 55 | + return $css_file; |
|
| 56 | + } |
|
| 57 | 57 | |
| 58 | - public static function enqueue_jquery_css() { |
|
| 58 | + public static function enqueue_jquery_css() { |
|
| 59 | 59 | $form = self::get_form_for_page(); |
| 60 | 60 | $theme_css = FrmStylesController::get_style_val( 'theme_css', $form ); |
| 61 | - if ( $theme_css != -1 ) { |
|
| 62 | - wp_enqueue_style('jquery-theme', self::jquery_css_url($theme_css), array(), FrmAppHelper::plugin_version()); |
|
| 63 | - } |
|
| 64 | - } |
|
| 61 | + if ( $theme_css != -1 ) { |
|
| 62 | + wp_enqueue_style('jquery-theme', self::jquery_css_url($theme_css), array(), FrmAppHelper::plugin_version()); |
|
| 63 | + } |
|
| 64 | + } |
|
| 65 | 65 | |
| 66 | 66 | public static function get_form_for_page() { |
| 67 | 67 | global $frm_vars; |
@@ -77,14 +77,14 @@ discard block |
||
| 77 | 77 | return $form_id; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - public static function get_upload_base() { |
|
| 81 | - $uploads = wp_upload_dir(); |
|
| 82 | - if ( is_ssl() && ! preg_match('/^https:\/\/.*\..*$/', $uploads['baseurl']) ) { |
|
| 83 | - $uploads['baseurl'] = str_replace('http://', 'https://', $uploads['baseurl']); |
|
| 84 | - } |
|
| 80 | + public static function get_upload_base() { |
|
| 81 | + $uploads = wp_upload_dir(); |
|
| 82 | + if ( is_ssl() && ! preg_match('/^https:\/\/.*\..*$/', $uploads['baseurl']) ) { |
|
| 83 | + $uploads['baseurl'] = str_replace('http://', 'https://', $uploads['baseurl']); |
|
| 84 | + } |
|
| 85 | 85 | |
| 86 | - return $uploads; |
|
| 87 | - } |
|
| 86 | + return $uploads; |
|
| 87 | + } |
|
| 88 | 88 | |
| 89 | 89 | public static function style_menu( $active = '' ) { |
| 90 | 90 | ?> |
@@ -94,22 +94,22 @@ discard block |
||
| 94 | 94 | <a href="<?php echo esc_url( admin_url('admin.php?page=formidable-styles&frm_action=custom_css' ) ) ?>" class="nav-tab <?php echo ( 'custom_css' == $active ) ? 'nav-tab-active' : '' ?>"><?php _e( 'Custom CSS', 'formidable' ) ?></a> |
| 95 | 95 | </h2> |
| 96 | 96 | <?php |
| 97 | - } |
|
| 97 | + } |
|
| 98 | 98 | |
| 99 | - public static function minus_icons() { |
|
| 100 | - return array( |
|
| 99 | + public static function minus_icons() { |
|
| 100 | + return array( |
|
| 101 | 101 | 0 => array( '-' => '62e', '+' => '62f' ), |
| 102 | 102 | 1 => array( '-' => '600', '+' => '602' ), |
| 103 | 103 | 2 => array( '-' => '604', '+' => '603' ), |
| 104 | 104 | 3 => array( '-' => '633', '+' => '632' ), |
| 105 | 105 | 4 => array( '-' => '613', '+' => '60f' ), |
| 106 | - ); |
|
| 107 | - } |
|
| 106 | + ); |
|
| 107 | + } |
|
| 108 | 108 | |
| 109 | - public static function arrow_icons() { |
|
| 110 | - $minus_icons = self::minus_icons(); |
|
| 109 | + public static function arrow_icons() { |
|
| 110 | + $minus_icons = self::minus_icons(); |
|
| 111 | 111 | |
| 112 | - return array( |
|
| 112 | + return array( |
|
| 113 | 113 | 6 => array( '-' => '62d', '+' => '62a' ), |
| 114 | 114 | 0 => array( '-' => '60d', '+' => '609' ), |
| 115 | 115 | 1 => array( '-' => '60e', '+' => '60c' ), |
@@ -117,44 +117,44 @@ discard block |
||
| 117 | 117 | 3 => array( '-' => '62b', '+' => '628' ), |
| 118 | 118 | 4 => array( '-' => '62c', '+' => '629' ), |
| 119 | 119 | 5 => array( '-' => '635', '+' => '634' ), |
| 120 | - 'p0' => $minus_icons[0], |
|
| 121 | - 'p1' => $minus_icons[1], |
|
| 122 | - 'p2' => $minus_icons[2], |
|
| 123 | - 'p3' => $minus_icons[3], |
|
| 124 | - 'p4' => $minus_icons[4], |
|
| 125 | - ); |
|
| 126 | - } |
|
| 127 | - |
|
| 128 | - /** |
|
| 129 | - * @since 2.0 |
|
| 130 | - * @return The class for this icon |
|
| 131 | - */ |
|
| 120 | + 'p0' => $minus_icons[0], |
|
| 121 | + 'p1' => $minus_icons[1], |
|
| 122 | + 'p2' => $minus_icons[2], |
|
| 123 | + 'p3' => $minus_icons[3], |
|
| 124 | + 'p4' => $minus_icons[4], |
|
| 125 | + ); |
|
| 126 | + } |
|
| 127 | + |
|
| 128 | + /** |
|
| 129 | + * @since 2.0 |
|
| 130 | + * @return The class for this icon |
|
| 131 | + */ |
|
| 132 | 132 | public static function icon_key_to_class( $key, $icon = '+', $type = 'arrow' ) { |
| 133 | - if ( 'arrow' == $type && is_numeric($key) ) { |
|
| 134 | - //frm_arrowup6_icon |
|
| 133 | + if ( 'arrow' == $type && is_numeric($key) ) { |
|
| 134 | + //frm_arrowup6_icon |
|
| 135 | 135 | $arrow = array( '-' => 'down', '+' => 'up' ); |
| 136 | 136 | $class = 'frm_arrow' . $arrow[ $icon ]; |
| 137 | - } else { |
|
| 138 | - //frm_minus1_icon |
|
| 139 | - $key = str_replace('p', '', $key); |
|
| 137 | + } else { |
|
| 138 | + //frm_minus1_icon |
|
| 139 | + $key = str_replace('p', '', $key); |
|
| 140 | 140 | $plus = array( '-' => 'minus', '+' => 'plus' ); |
| 141 | 141 | $class = 'frm_' . $plus[ $icon ]; |
| 142 | - } |
|
| 142 | + } |
|
| 143 | 143 | |
| 144 | - if ( $key ) { |
|
| 145 | - $class .= $key; |
|
| 146 | - } |
|
| 147 | - $class .= '_icon'; |
|
| 144 | + if ( $key ) { |
|
| 145 | + $class .= $key; |
|
| 146 | + } |
|
| 147 | + $class .= '_icon'; |
|
| 148 | 148 | |
| 149 | - return $class; |
|
| 150 | - } |
|
| 149 | + return $class; |
|
| 150 | + } |
|
| 151 | 151 | |
| 152 | 152 | public static function bs_icon_select( $style, $frm_style, $type = 'arrow' ) { |
| 153 | 153 | $function_name = $type . '_icons'; |
| 154 | 154 | $icons = self::$function_name(); |
| 155 | 155 | unset( $function_name ); |
| 156 | 156 | |
| 157 | - $name = ( 'arrow' == $type ) ? 'collapse_icon' : 'repeat_icon'; |
|
| 157 | + $name = ( 'arrow' == $type ) ? 'collapse_icon' : 'repeat_icon'; |
|
| 158 | 158 | ?> |
| 159 | 159 | <select name="<?php echo esc_attr( $frm_style->get_field_name($name) ) ?>" id="frm_<?php echo esc_attr( $name ) ?>" class="frm_icon_font frm_multiselect hide-if-js"> |
| 160 | 160 | <?php foreach ( $icons as $key => $icon ) { ?> |
@@ -187,22 +187,22 @@ discard block |
||
| 187 | 187 | </ul> |
| 188 | 188 | </div> |
| 189 | 189 | <?php |
| 190 | - } |
|
| 190 | + } |
|
| 191 | 191 | |
| 192 | 192 | public static function hex2rgb( $hex ) { |
| 193 | - $hex = str_replace('#', '', $hex); |
|
| 193 | + $hex = str_replace('#', '', $hex); |
|
| 194 | 194 | |
| 195 | - if ( strlen($hex) == 3 ) { |
|
| 195 | + if ( strlen($hex) == 3 ) { |
|
| 196 | 196 | $r = hexdec( substr( $hex, 0, 1 ) . substr( $hex, 0, 1 ) ); |
| 197 | 197 | $g = hexdec( substr( $hex, 1, 1 ) . substr( $hex, 1, 1 ) ); |
| 198 | 198 | $b = hexdec( substr( $hex, 2, 1 ) . substr( $hex, 2, 1 ) ); |
| 199 | - } else { |
|
| 199 | + } else { |
|
| 200 | 200 | $r = hexdec( substr( $hex, 0, 2 ) ); |
| 201 | 201 | $g = hexdec( substr( $hex, 2, 2 ) ); |
| 202 | 202 | $b = hexdec( substr( $hex, 4, 2 ) ); |
| 203 | - } |
|
| 203 | + } |
|
| 204 | 204 | $rgb = array( $r, $g, $b ); |
| 205 | - return implode(',', $rgb); // returns the rgb values separated by commas |
|
| 206 | - //return $rgb; // returns an array with the rgb values |
|
| 207 | - } |
|
| 205 | + return implode(',', $rgb); // returns the rgb values separated by commas |
|
| 206 | + //return $rgb; // returns an array with the rgb values |
|
| 207 | + } |
|
| 208 | 208 | } |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | 'swanky-purse' => 'Swanky Purse', |
| 30 | 30 | ); |
| 31 | 31 | |
| 32 | - $themes = apply_filters('frm_jquery_themes', $themes); |
|
| 32 | + $themes = apply_filters( 'frm_jquery_themes', $themes ); |
|
| 33 | 33 | return $themes; |
| 34 | 34 | } |
| 35 | 35 | |
@@ -40,12 +40,12 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | if ( ! $theme_css || $theme_css == '' || $theme_css == 'ui-lightness' ) { |
| 42 | 42 | $css_file = FrmAppHelper::plugin_url() . '/css/ui-lightness/jquery-ui.css'; |
| 43 | - } else if ( preg_match('/^http.?:\/\/.*\..*$/', $theme_css) ) { |
|
| 43 | + } else if ( preg_match( '/^http.?:\/\/.*\..*$/', $theme_css ) ) { |
|
| 44 | 44 | $css_file = $theme_css; |
| 45 | 45 | } else { |
| 46 | 46 | $uploads = self::get_upload_base(); |
| 47 | 47 | $file_path = '/formidable/css/' . $theme_css . '/jquery-ui.css'; |
| 48 | - if ( file_exists($uploads['basedir'] . $file_path) ) { |
|
| 48 | + if ( file_exists( $uploads['basedir'] . $file_path ) ) { |
|
| 49 | 49 | $css_file = $uploads['baseurl'] . $file_path; |
| 50 | 50 | } else { |
| 51 | 51 | $css_file = FrmAppHelper::jquery_ui_base_url() . '/themes/' . $theme_css . '/jquery-ui.min.css'; |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $form = self::get_form_for_page(); |
| 60 | 60 | $theme_css = FrmStylesController::get_style_val( 'theme_css', $form ); |
| 61 | 61 | if ( $theme_css != -1 ) { |
| 62 | - wp_enqueue_style('jquery-theme', self::jquery_css_url($theme_css), array(), FrmAppHelper::plugin_version()); |
|
| 62 | + wp_enqueue_style( 'jquery-theme', self::jquery_css_url( $theme_css ), array(), FrmAppHelper::plugin_version() ); |
|
| 63 | 63 | } |
| 64 | 64 | } |
| 65 | 65 | |
@@ -79,8 +79,8 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | public static function get_upload_base() { |
| 81 | 81 | $uploads = wp_upload_dir(); |
| 82 | - if ( is_ssl() && ! preg_match('/^https:\/\/.*\..*$/', $uploads['baseurl']) ) { |
|
| 83 | - $uploads['baseurl'] = str_replace('http://', 'https://', $uploads['baseurl']); |
|
| 82 | + if ( is_ssl() && ! preg_match( '/^https:\/\/.*\..*$/', $uploads['baseurl'] ) ) { |
|
| 83 | + $uploads['baseurl'] = str_replace( 'http://', 'https://', $uploads['baseurl'] ); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | return $uploads; |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | <h2 class="nav-tab-wrapper"> |
| 92 | 92 | <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-styles' ) ) ?>" class="nav-tab <?php echo ( '' == $active ) ? 'nav-tab-active' : '' ?>"><?php _e( 'Edit Styles', 'formidable' ) ?></a> |
| 93 | 93 | <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-styles&frm_action=manage' ) ) ?>" class="nav-tab <?php echo ( 'manage' == $active ) ? 'nav-tab-active' : '' ?>"><?php _e( 'Manage Form Styles', 'formidable' ) ?></a> |
| 94 | - <a href="<?php echo esc_url( admin_url('admin.php?page=formidable-styles&frm_action=custom_css' ) ) ?>" class="nav-tab <?php echo ( 'custom_css' == $active ) ? 'nav-tab-active' : '' ?>"><?php _e( 'Custom CSS', 'formidable' ) ?></a> |
|
| 94 | + <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-styles&frm_action=custom_css' ) ) ?>" class="nav-tab <?php echo ( 'custom_css' == $active ) ? 'nav-tab-active' : '' ?>"><?php _e( 'Custom CSS', 'formidable' ) ?></a> |
|
| 95 | 95 | </h2> |
| 96 | 96 | <?php |
| 97 | 97 | } |
@@ -130,15 +130,15 @@ discard block |
||
| 130 | 130 | * @return The class for this icon |
| 131 | 131 | */ |
| 132 | 132 | public static function icon_key_to_class( $key, $icon = '+', $type = 'arrow' ) { |
| 133 | - if ( 'arrow' == $type && is_numeric($key) ) { |
|
| 133 | + if ( 'arrow' == $type && is_numeric( $key ) ) { |
|
| 134 | 134 | //frm_arrowup6_icon |
| 135 | 135 | $arrow = array( '-' => 'down', '+' => 'up' ); |
| 136 | - $class = 'frm_arrow' . $arrow[ $icon ]; |
|
| 136 | + $class = 'frm_arrow' . $arrow[$icon]; |
|
| 137 | 137 | } else { |
| 138 | 138 | //frm_minus1_icon |
| 139 | - $key = str_replace('p', '', $key); |
|
| 139 | + $key = str_replace( 'p', '', $key ); |
|
| 140 | 140 | $plus = array( '-' => 'minus', '+' => 'plus' ); |
| 141 | - $class = 'frm_' . $plus[ $icon ]; |
|
| 141 | + $class = 'frm_' . $plus[$icon]; |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | if ( $key ) { |
@@ -156,9 +156,9 @@ discard block |
||
| 156 | 156 | |
| 157 | 157 | $name = ( 'arrow' == $type ) ? 'collapse_icon' : 'repeat_icon'; |
| 158 | 158 | ?> |
| 159 | - <select name="<?php echo esc_attr( $frm_style->get_field_name($name) ) ?>" id="frm_<?php echo esc_attr( $name ) ?>" class="frm_icon_font frm_multiselect hide-if-js"> |
|
| 159 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( $name ) ) ?>" id="frm_<?php echo esc_attr( $name ) ?>" class="frm_icon_font frm_multiselect hide-if-js"> |
|
| 160 | 160 | <?php foreach ( $icons as $key => $icon ) { ?> |
| 161 | - <option value="<?php echo esc_attr( $key ) ?>" <?php selected( $style->post_content[ $name ], $key ) ?>> |
|
| 161 | + <option value="<?php echo esc_attr( $key ) ?>" <?php selected( $style->post_content[$name], $key ) ?>> |
|
| 162 | 162 | <?php echo '' . $icon['+'] . '; ' . $icon['-'] . ';'; ?> |
| 163 | 163 | </option> |
| 164 | 164 | <?php } ?> |
@@ -166,8 +166,8 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | <div class="btn-group hide-if-no-js" id="frm_<?php echo esc_attr( $name ) ?>_select"> |
| 168 | 168 | <button class="multiselect dropdown-toggle btn btn-default" data-toggle="dropdown" type="button"> |
| 169 | - <i class="frm_icon_font <?php echo esc_attr( self::icon_key_to_class( $style->post_content[ $name ], '+', $type ) ) ?>"></i> |
|
| 170 | - <i class="frm_icon_font <?php echo esc_attr( self::icon_key_to_class( $style->post_content[ $name ], '-', $type ) ) ?>"></i> |
|
| 169 | + <i class="frm_icon_font <?php echo esc_attr( self::icon_key_to_class( $style->post_content[$name], '+', $type ) ) ?>"></i> |
|
| 170 | + <i class="frm_icon_font <?php echo esc_attr( self::icon_key_to_class( $style->post_content[$name], '-', $type ) ) ?>"></i> |
|
| 171 | 171 | <b class="caret"></b> |
| 172 | 172 | </button> |
| 173 | 173 | <ul class="multiselect-container frm-dropdown-menu"> |
@@ -190,9 +190,9 @@ discard block |
||
| 190 | 190 | } |
| 191 | 191 | |
| 192 | 192 | public static function hex2rgb( $hex ) { |
| 193 | - $hex = str_replace('#', '', $hex); |
|
| 193 | + $hex = str_replace( '#', '', $hex ); |
|
| 194 | 194 | |
| 195 | - if ( strlen($hex) == 3 ) { |
|
| 195 | + if ( strlen( $hex ) == 3 ) { |
|
| 196 | 196 | $r = hexdec( substr( $hex, 0, 1 ) . substr( $hex, 0, 1 ) ); |
| 197 | 197 | $g = hexdec( substr( $hex, 1, 1 ) . substr( $hex, 1, 1 ) ); |
| 198 | 198 | $b = hexdec( substr( $hex, 2, 1 ) . substr( $hex, 2, 1 ) ); |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | $b = hexdec( substr( $hex, 4, 2 ) ); |
| 203 | 203 | } |
| 204 | 204 | $rgb = array( $r, $g, $b ); |
| 205 | - return implode(',', $rgb); // returns the rgb values separated by commas |
|
| 205 | + return implode( ',', $rgb ); // returns the rgb values separated by commas |
|
| 206 | 206 | //return $rgb; // returns an array with the rgb values |
| 207 | 207 | } |
| 208 | 208 | |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | * @since 2.3 |
| 213 | 213 | */ |
| 214 | 214 | public static function adjust_brightness( $hex, $steps ) { |
| 215 | - $steps = max( -255, min( 255, $steps ) ); |
|
| 215 | + $steps = max( - 255, min( 255, $steps ) ); |
|
| 216 | 216 | |
| 217 | 217 | // Normalize into a six character long hex string |
| 218 | 218 | $hex = str_replace( '#', '', $hex ); |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | |
| 229 | 229 | foreach ( $color_parts as $color ) { |
| 230 | 230 | $color = hexdec( $color ); // Convert to decimal |
| 231 | - $color = max( 0,min( 255,$color + $steps ) ); // Adjust color |
|
| 231 | + $color = max( 0, min( 255, $color + $steps ) ); // Adjust color |
|
| 232 | 232 | $return .= str_pad( dechex( $color ), 2, '0', STR_PAD_LEFT ); // Make two char hex code |
| 233 | 233 | } |
| 234 | 234 | |
@@ -263,8 +263,8 @@ discard block |
||
| 263 | 263 | |
| 264 | 264 | $checkbox_opts = array( 'important_style', 'auto_width', 'submit_style', 'collapse_icon', 'center_form' ); |
| 265 | 265 | foreach ( $checkbox_opts as $opt ) { |
| 266 | - if ( ! isset( $settings[ $opt ] ) ) { |
|
| 267 | - $settings[ $opt ] = 0; |
|
| 266 | + if ( ! isset( $settings[$opt] ) ) { |
|
| 267 | + $settings[$opt] = 0; |
|
| 268 | 268 | } |
| 269 | 269 | } |
| 270 | 270 | |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | $colors = self::allow_color_override(); |
| 281 | 281 | foreach ( $colors as $css => $opts ) { |
| 282 | 282 | foreach ( $opts as $opt ) { |
| 283 | - self::get_color_output( $css, $settings[ $opt ] ); |
|
| 283 | + self::get_color_output( $css, $settings[$opt] ); |
|
| 284 | 284 | } |
| 285 | 285 | } |
| 286 | 286 | } |
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | if ( ! isset($saving) ) { |
| 3 | - header( 'Content-type: text/css' ); |
|
| 3 | + header( 'Content-type: text/css' ); |
|
| 4 | 4 | |
| 5 | - if ( isset($css) && $css ) { |
|
| 6 | - echo $css; |
|
| 7 | - die(); |
|
| 8 | - } |
|
| 5 | + if ( isset($css) && $css ) { |
|
| 6 | + echo $css; |
|
| 7 | + die(); |
|
| 8 | + } |
|
| 9 | 9 | } |
| 10 | 10 | |
| 11 | 11 | if ( ! isset($frm_style) ) { |
| 12 | - $frm_style = new FrmStyle(); |
|
| 12 | + $frm_style = new FrmStyle(); |
|
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | $styles = $frm_style->get_all(); |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | <?php |
| 188 | 188 | foreach ( $styles as $style ) { |
| 189 | 189 | include( dirname( __FILE__ ) . '/_single_theme.css.php' ); |
| 190 | - unset($style); |
|
| 190 | + unset($style); |
|
| 191 | 191 | } |
| 192 | 192 | ?> |
| 193 | 193 | |
@@ -1,19 +1,19 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! isset($saving) ) { |
|
| 2 | +if ( ! isset( $saving ) ) { |
|
| 3 | 3 | header( 'Content-type: text/css' ); |
| 4 | 4 | |
| 5 | - if ( isset($css) && $css ) { |
|
| 5 | + if ( isset( $css ) && $css ) { |
|
| 6 | 6 | echo $css; |
| 7 | 7 | die(); |
| 8 | 8 | } |
| 9 | 9 | } |
| 10 | 10 | |
| 11 | -if ( ! isset($frm_style) ) { |
|
| 11 | +if ( ! isset( $frm_style ) ) { |
|
| 12 | 12 | $frm_style = new FrmStyle(); |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | $styles = $frm_style->get_all(); |
| 16 | -$default_style = $frm_style->get_default_style($styles); |
|
| 16 | +$default_style = $frm_style->get_default_style( $styles ); |
|
| 17 | 17 | $defaults = $default_style->post_content; |
| 18 | 18 | ?> |
| 19 | 19 | |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | <?php |
| 195 | 195 | foreach ( $styles as $style ) { |
| 196 | 196 | include( dirname( __FILE__ ) . '/_single_theme.css.php' ); |
| 197 | - unset($style); |
|
| 197 | + unset( $style ); |
|
| 198 | 198 | } |
| 199 | 199 | ?> |
| 200 | 200 | |
@@ -619,7 +619,7 @@ discard block |
||
| 619 | 619 | overflow:hidden!important; |
| 620 | 620 | } |
| 621 | 621 | |
| 622 | -<?php include( dirname(__FILE__) . '/frm_grids.css' ); ?> |
|
| 622 | +<?php include( dirname( __FILE__ ) . '/frm_grids.css' ); ?> |
|
| 623 | 623 | |
| 624 | 624 | /* Left and right label styling for non-Formidable styling - very basic, not responsive */ |
| 625 | 625 | .frm_form_field.frm_left_container label.frm_primary_label{ |