| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | <?php | 
| 2 | -if ( ! defined('ABSPATH') ) { | |
| 2 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | 3 | die( 'You are not allowed to call this page directly.' ); | 
| 4 | 4 | } | 
| 5 | 5 | |
| @@ -1,5 +1,5 @@ discard block | ||
| 1 | 1 | <?php | 
| 2 | -if ( ! isset( $entry) ) { | |
| 2 | +if ( ! isset( $entry ) ) { | |
| 3 | 3 | $entry = $record; | 
| 4 | 4 | } ?> | 
| 5 | 5 | |
| @@ -18,4 +18,4 @@ discard block | ||
| 18 | 18 | </div> | 
| 19 | 19 | <?php } ?> | 
| 20 | 20 | |
| 21 | -<?php do_action('frm_entry_shared_sidebar', $entry); ?> | |
| 21 | +<?php do_action( 'frm_entry_shared_sidebar', $entry ); ?> | |
| @@ -12,7 +12,7 @@ discard block | ||
| 12 | 12 | // add register action | 
| 13 | 13 |  class FrmDefRegAction extends FrmFormAction { | 
| 14 | 14 |  	public function __construct() { | 
| 15 | -		$action_ops = FrmFormAction::default_action_opts('frm_register_icon'); | |
| 15 | + $action_ops = FrmFormAction::default_action_opts( 'frm_register_icon' ); | |
| 16 | 16 | parent::__construct( 'register', __( 'Register User', 'formidable' ), $action_ops ); | 
| 17 | 17 | } | 
| 18 | 18 | } | 
| @@ -20,7 +20,7 @@ discard block | ||
| 20 | 20 | // add paypal action | 
| 21 | 21 |  class FrmDefPayPalAction extends FrmFormAction { | 
| 22 | 22 |  	public function __construct() { | 
| 23 | -		$action_ops = FrmFormAction::default_action_opts('frm_paypal_icon'); | |
| 23 | + $action_ops = FrmFormAction::default_action_opts( 'frm_paypal_icon' ); | |
| 24 | 24 | parent::__construct( 'paypal', __( 'Collect Payment', 'formidable' ), $action_ops ); | 
| 25 | 25 | } | 
| 26 | 26 | } | 
| @@ -28,7 +28,7 @@ discard block | ||
| 28 | 28 | // add aweber action | 
| 29 | 29 |  class FrmDefAweberAction extends FrmFormAction { | 
| 30 | 30 |  	public function __construct() { | 
| 31 | -		$action_ops = FrmFormAction::default_action_opts('frm_aweber_icon'); | |
| 31 | + $action_ops = FrmFormAction::default_action_opts( 'frm_aweber_icon' ); | |
| 32 | 32 | parent::__construct( 'aweber', __( 'Aweber', 'formidable' ), $action_ops ); | 
| 33 | 33 | } | 
| 34 | 34 | } | 
| @@ -36,7 +36,7 @@ discard block | ||
| 36 | 36 | // add mailchimp action | 
| 37 | 37 |  class FrmDefMlcmpAction extends FrmFormAction { | 
| 38 | 38 |  	public function __construct() { | 
| 39 | -		$action_ops = FrmFormAction::default_action_opts('frm_mailchimp_icon'); | |
| 39 | + $action_ops = FrmFormAction::default_action_opts( 'frm_mailchimp_icon' ); | |
| 40 | 40 | parent::__construct( 'mailchimp', __( 'MailChimp', 'formidable' ), $action_ops ); | 
| 41 | 41 | } | 
| 42 | 42 | } | 
| @@ -44,7 +44,7 @@ discard block | ||
| 44 | 44 | // add twilio action | 
| 45 | 45 |  class FrmDefTwilioAction extends FrmFormAction { | 
| 46 | 46 |  	public function __construct() { | 
| 47 | -		$action_ops = FrmFormAction::default_action_opts('frm_sms_icon'); | |
| 47 | + $action_ops = FrmFormAction::default_action_opts( 'frm_sms_icon' ); | |
| 48 | 48 | parent::__construct( 'twilio', __( 'Twilio', 'formidable' ), $action_ops ); | 
| 49 | 49 | } | 
| 50 | 50 | } | 
| @@ -52,7 +52,7 @@ discard block | ||
| 52 | 52 | // add highrise action | 
| 53 | 53 |  class FrmDefHrsAction extends FrmFormAction { | 
| 54 | 54 |  	public function __construct() { | 
| 55 | -		$action_ops = FrmFormAction::default_action_opts('frm_highrise_icon'); | |
| 55 | + $action_ops = FrmFormAction::default_action_opts( 'frm_highrise_icon' ); | |
| 56 | 56 | parent::__construct( 'highrise', __( 'Highrise', 'formidable' ), $action_ops ); | 
| 57 | 57 | } | 
| 58 | 58 | } | 
| @@ -6,18 +6,18 @@ discard block | ||
| 6 | 6 | <div id="minor-publishing-actions"> | 
| 7 | 7 |              <?php if ( 'draft' == $values['status'] ) { ?> | 
| 8 | 8 | <div id="save-action"> | 
| 9 | - <input type="button" value="<?php esc_html_e( 'Save Draft', 'formidable' ); ?>" class="frm_submit_form frm_submit_<?php echo ( isset($values['ajax_load']) && $values['ajax_load'] ) ? '': 'no_'; ?>ajax button-secondary button-large" id="save-post" /> | |
| 9 | + <input type="button" value="<?php esc_html_e( 'Save Draft', 'formidable' ); ?>" class="frm_submit_form frm_submit_<?php echo ( isset( $values['ajax_load'] ) && $values['ajax_load'] ) ? '' : 'no_'; ?>ajax button-secondary button-large" id="save-post" /> | |
| 10 | 10 | <span class="spinner"></span> | 
| 11 | 11 | </div> | 
| 12 | 12 | <?php } ?> | 
| 13 | 13 | <div id="preview-action"> | 
| 14 | 14 | <?php | 
| 15 | -                if ( ! isset($hide_preview) || ! $hide_preview ) { | |
| 15 | +                if ( ! isset( $hide_preview ) || ! $hide_preview ) { | |
| 16 | 16 | |
| 17 | -                    if ( isset($values['form_key']) ) { | |
| 17 | +                    if ( isset( $values['form_key'] ) ) { | |
| 18 | 18 | $frm_settings = FrmAppHelper::get_settings(); | 
| 19 | -                        if ( empty($frm_settings->preview_page_id) ) { ?> | |
| 20 | - <a href="<?php echo esc_url( FrmFormsHelper::get_direct_link($values['form_key']) ); ?>" class="preview button" target="wp-frm-preview-<?php echo esc_attr( $id ) ?>"><?php _e( 'Preview', 'formidable' ) ?></a> | |
| 19 | +                        if ( empty( $frm_settings->preview_page_id ) ) { ?> | |
| 20 | + <a href="<?php echo esc_url( FrmFormsHelper::get_direct_link( $values['form_key'] ) ); ?>" class="preview button" target="wp-frm-preview-<?php echo esc_attr( $id ) ?>"><?php _e( 'Preview', 'formidable' ) ?></a> | |
| 21 | 21 | <?php | 
| 22 | 22 |                          } else { | 
| 23 | 23 | ?> | 
| @@ -25,8 +25,8 @@ discard block | ||
| 25 | 25 | <a href="#" id="frm-previewDrop" class="frm-dropdown-toggle button" data-toggle="dropdown"><?php _e( 'Preview', 'formidable' ) ?> <b class="caret"></b></a> | 
| 26 | 26 | |
| 27 | 27 | <ul class="frm-dropdown-menu pull-right" role="menu" aria-labelledby="frm-previewDrop"> | 
| 28 | - <li><a href="<?php echo esc_url( FrmFormsHelper::get_direct_link($values['form_key']) ); ?>" target="_blank"><?php _e( 'On Blank Page', 'formidable' ) ?></a></li> | |
| 29 | -                            <li><a href="<?php echo esc_url( add_query_arg('form', $values['form_key'], get_permalink( $frm_settings->preview_page_id )) ) ?>" target="_blank"><?php _e( 'In Theme', 'formidable' ) ?></a></li> | |
| 28 | + <li><a href="<?php echo esc_url( FrmFormsHelper::get_direct_link( $values['form_key'] ) ); ?>" target="_blank"><?php _e( 'On Blank Page', 'formidable' ) ?></a></li> | |
| 29 | + <li><a href="<?php echo esc_url( add_query_arg( 'form', $values['form_key'], get_permalink( $frm_settings->preview_page_id ) ) ) ?>" target="_blank"><?php _e( 'In Theme', 'formidable' ) ?></a></li> | |
| 30 | 30 | </ul> | 
| 31 | 31 | </div> | 
| 32 | 32 | <?php } | 
| @@ -62,24 +62,24 @@ discard block | ||
| 62 | 62 | |
| 63 | 63 | |
| 64 | 64 | <div class="misc-pub-section misc-pub-post-status"><label for="post_status"><?php _e( 'Status', 'formidable' ) ?>:</label> | 
| 65 | - <span id="form-status-display"><?php echo FrmFormsHelper::status_nice_name($values['status']); ?></span> | |
| 65 | + <span id="form-status-display"><?php echo FrmFormsHelper::status_nice_name( $values['status'] ); ?></span> | |
| 66 | 66 |  				<?php if ( 'draft' != $values['status'] && ( ! isset( $_GET['frm_action'] ) || 'settings' != FrmAppHelper::simple_get( 'frm_action', 'sanitize_title' ) ) ) { ?> | 
| 67 | - <a href="#post_status" class="edit-form-status hide-if-no-js" data-slidedown="form-status-select"><span aria-hidden="true"><?php _e( 'Edit') ?></span> <span class="screen-reader-text"><?php _e( 'Edit status') ?></span></a> | |
| 67 | + <a href="#post_status" class="edit-form-status hide-if-no-js" data-slidedown="form-status-select"><span aria-hidden="true"><?php _e( 'Edit' ) ?></span> <span class="screen-reader-text"><?php _e( 'Edit status' ) ?></span></a> | |
| 68 | 68 | |
| 69 | 69 | <div id="form-status-select" class="frm_hidden"> | 
| 70 | 70 | <select name="frm_change_status" id="form_change_status"> | 
| 71 | - <option value="published" <?php selected($values['status'], 'published') ?>><?php _e( 'Published' ) ?></option> | |
| 72 | - <option value="draft" <?php selected($values['status'], 'draft') ?>><?php _e( 'Draft' ) ?></option> | |
| 71 | + <option value="published" <?php selected( $values['status'], 'published' ) ?>><?php _e( 'Published' ) ?></option> | |
| 72 | + <option value="draft" <?php selected( $values['status'], 'draft' ) ?>><?php _e( 'Draft' ) ?></option> | |
| 73 | 73 | </select> | 
| 74 | - <a href="#post_status" class="save-form-status hide-if-no-js button"><?php _e( 'OK') ?></a> | |
| 75 | - <a href="#post_status" class="cancel-form-status hide-if-no-js button-cancel" data-slideup="form-status-select"><?php _e( 'Cancel') ?></a> | |
| 74 | + <a href="#post_status" class="save-form-status hide-if-no-js button"><?php _e( 'OK' ) ?></a> | |
| 75 | + <a href="#post_status" class="cancel-form-status hide-if-no-js button-cancel" data-slideup="form-status-select"><?php _e( 'Cancel' ) ?></a> | |
| 76 | 76 | </div> | 
| 77 | 77 | <?php } ?> | 
| 78 | 78 | </div><!-- .misc-pub-section --> | 
| 79 | 79 | |
| 80 | -            <?php if ( has_action('frm_settings_buttons') ) { ?> | |
| 80 | +            <?php if ( has_action( 'frm_settings_buttons' ) ) { ?> | |
| 81 | 81 | <div class="misc-pub-section"> | 
| 82 | -                <?php do_action('frm_settings_buttons', $values); ?> | |
| 82 | + <?php do_action( 'frm_settings_buttons', $values ); ?> | |
| 83 | 83 | <div class="clear"></div> | 
| 84 | 84 | </div> | 
| 85 | 85 | <?php } ?> | 
| @@ -90,7 +90,7 @@ discard block | ||
| 90 | 90 | |
| 91 | 91 | <div id="major-publishing-actions"> | 
| 92 | 92 | <div id="delete-action"> | 
| 93 | - <?php echo FrmFormsHelper::delete_trash_link($id, $values['status']); ?> | |
| 93 | + <?php echo FrmFormsHelper::delete_trash_link( $id, $values['status'] ); ?> | |
| 94 | 94 | </div> | 
| 95 | 95 | |
| 96 | 96 | <div id="publishing-action"> | 
| @@ -98,7 +98,7 @@ discard block | ||
| 98 | 98 |  			<?php if ( 'settings' == FrmAppHelper::simple_get( 'frm_action', 'sanitize_title' ) ) { ?> | 
| 99 | 99 | <input type="button" value="<?php esc_attr_e( 'Update', 'formidable' ); ?>" class="frm_submit_form frm_submit_settings_btn button-primary button-large" id="frm_submit_side_top" /> | 
| 100 | 100 |              <?php } else { ?> | 
| 101 | - <input type="button" value="<?php echo isset($button) ? esc_attr($button) : __( 'Update', 'formidable' ); ?>" class="frm_submit_form frm_submit_<?php echo ( isset($values['ajax_load']) && $values['ajax_load'] ) ? '': 'no_'; ?>ajax button-primary button-large" id="frm_submit_side_top" /> | |
| 101 | + <input type="button" value="<?php echo isset( $button ) ? esc_attr( $button ) : __( 'Update', 'formidable' ); ?>" class="frm_submit_form frm_submit_<?php echo ( isset( $values['ajax_load'] ) && $values['ajax_load'] ) ? '' : 'no_'; ?>ajax button-primary button-large" id="frm_submit_side_top" /> | |
| 102 | 102 | <?php } ?> | 
| 103 | 103 | </div> | 
| 104 | 104 | |
| @@ -2,6 +2,6 @@ | ||
| 2 | 2 | <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle', 'formidable' ) ?>"><br/></div> | 
| 3 | 3 | <h3 class="hndle"><span><?php _e( 'Customization', 'formidable' ) ?></span></h3> | 
| 4 | 4 | <div class="inside"> | 
| 5 | - <?php FrmFormsController::mb_tags_box($id); ?> | |
| 5 | + <?php FrmFormsController::mb_tags_box( $id ); ?> | |
| 6 | 6 | </div> | 
| 7 | 7 | </div> | 
| @@ -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,7 +1,7 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | 3 | // 2.0 | 
| 4 | -if ( ! isset($frm_vars['pro_is_installed']) ) { | |
| 4 | +if ( ! isset( $frm_vars['pro_is_installed'] ) ) { | |
| 5 | 5 | $frm_vars['pro_is_installed'] = false; | 
| 6 | 6 | } | 
| 7 | 7 | |
| @@ -17,6 +17,6 @@ | ||
| 17 | 17 | </ul> | 
| 18 | 18 | |
| 19 | 19 |  <?php if ( $form && $title == 'show' ) { ?> | 
| 20 | - <input id="title" type="text" value="<?php echo esc_attr( $form->name == '' ? __( '(no title)') : $form->name ) ?>" readonly="readonly" disabled="disabled" /> | |
| 20 | + <input id="title" type="text" value="<?php echo esc_attr( $form->name == '' ? __( '(no title)' ) : $form->name ) ?>" readonly="readonly" disabled="disabled" /> | |
| 21 | 21 | <?php } ?> | 
| 22 | 22 | </div> |