@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | <div class="addon-footer-wrap give-clearfix"> |
| 34 | 34 | <a href="<?php echo esc_attr( $permalink ); ?>" title="<?php echo esc_attr( $add_on_title ); ?>" class="button-secondary" target="_blank"> |
| 35 | - <?php esc_attr_e( 'View Add-on' , 'yikes-inc-easy-mailchimp-extender' ); ?> |
|
| 35 | + <?php esc_attr_e( 'View Add-on', 'yikes-inc-easy-mailchimp-extender' ); ?> |
|
| 36 | 36 | <span class="dashicons dashicons-external"></span></a> |
| 37 | 37 | </div> |
| 38 | 38 | |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | <div class="addon-footer-wrap give-clearfix"> |
| 34 | 34 | <a href="<?php echo esc_attr( $permalink ); ?>" title="<?php echo esc_attr( $add_on_title ); ?>" class="button-secondary" target="_blank"> |
| 35 | - <?php esc_attr_e( 'View Add-on' , 'yikes-inc-easy-mailchimp-extender' ); ?> |
|
| 35 | + <?php esc_attr_e( 'View Add-on', 'yikes-inc-easy-mailchimp-extender' ); ?> |
|
| 36 | 36 | <span class="dashicons dashicons-external"></span></a> |
| 37 | 37 | </div> |
| 38 | 38 | |
@@ -14,21 +14,21 @@ discard block |
||
| 14 | 14 | * - Link Text - Visible text for this link ie: 'Custom Section' |
| 15 | 15 | * - Dashicon - class of the icon you would like to use for this link |
| 16 | 16 | **/ |
| 17 | - public static function add_edit_form_section_link( $link_array=array() ) { |
|
| 18 | - if( !empty( $link_array ) ) { |
|
| 19 | - $link_data = wp_parse_args( array() , $link_array ); |
|
| 20 | - if( !empty( $link_data['text'] ) && !empty( $link_data['id'] ) ) { |
|
| 21 | - if( !empty( $link_data['icon'] ) ) { |
|
| 22 | - if( !isset( $link_data['icon_family'] ) || $link_data['icon_family'] == 'dashicons' || $link_data['icon_family'] == 'dashicon' ) { |
|
| 23 | - $icon = '<span class="dashicons dashicons-' . esc_attr__( $link_data['icon'] ) . ' yikes-easy-mailchimp-custom-content-icon"></span>'; |
|
| 17 | + public static function add_edit_form_section_link( $link_array = array() ) { |
|
| 18 | + if ( ! empty( $link_array ) ) { |
|
| 19 | + $link_data = wp_parse_args( array(), $link_array ); |
|
| 20 | + if ( ! empty( $link_data[ 'text' ] ) && ! empty( $link_data[ 'id' ] ) ) { |
|
| 21 | + if ( ! empty( $link_data[ 'icon' ] ) ) { |
|
| 22 | + if ( ! isset( $link_data[ 'icon_family' ] ) || $link_data[ 'icon_family' ] == 'dashicons' || $link_data[ 'icon_family' ] == 'dashicon' ) { |
|
| 23 | + $icon = '<span class="dashicons dashicons-' . esc_attr__( $link_data[ 'icon' ] ) . ' yikes-easy-mailchimp-custom-content-icon"></span>'; |
|
| 24 | 24 | } else { |
| 25 | - $icon = '<span class="' . esc_attr__( $link_data['icon'] ) . ' yikes-easy-mailchimp-custom-content-icon"></span>'; |
|
| 25 | + $icon = '<span class="' . esc_attr__( $link_data[ 'icon' ] ) . ' yikes-easy-mailchimp-custom-content-icon"></span>'; |
|
| 26 | 26 | } |
| 27 | 27 | } else { |
| 28 | 28 | $icon = ''; |
| 29 | 29 | } |
| 30 | 30 | $link = '<li class="hidden_setting_list">'; |
| 31 | - $link .= '<a class="hidden_setting ' . esc_attr__( $link_data['id'] ) . '" data-attr-container="' . esc_attr__( $link_data['id'] ) . '" onclick="return false;" title="' . esc_attr__( $link_data['text'] ) . '" href="#">' . $icon . esc_attr__( $link_data['text'] ) . '</a>'; |
|
| 31 | + $link .= '<a class="hidden_setting ' . esc_attr__( $link_data[ 'id' ] ) . '" data-attr-container="' . esc_attr__( $link_data[ 'id' ] ) . '" onclick="return false;" title="' . esc_attr__( $link_data[ 'text' ] ) . '" href="#">' . $icon . esc_attr__( $link_data[ 'text' ] ) . '</a>'; |
|
| 32 | 32 | $link .= '</li>'; |
| 33 | 33 | echo $link; |
| 34 | 34 | } |
@@ -47,9 +47,9 @@ discard block |
||
| 47 | 47 | * - Sidebar Title - title of the sidebar section |
| 48 | 48 | * - Class - class to reference funtions out of (optiona, if left blank functions should be defined in functions.php (or outside of a class)) |
| 49 | 49 | **/ |
| 50 | - public static function add_edit_form_section( $section_array=array() ) { |
|
| 51 | - if( !empty( $section_array ) ) { |
|
| 52 | - $section_data = wp_parse_args( array() , $section_array ); |
|
| 50 | + public static function add_edit_form_section( $section_array = array() ) { |
|
| 51 | + if ( ! empty( $section_array ) ) { |
|
| 52 | + $section_data = wp_parse_args( array(), $section_array ); |
|
| 53 | 53 | ob_start(); |
| 54 | 54 | include ( YIKES_MC_PATH . 'admin/partials/helpers/edit-form-hidden-section-template.php' ); |
| 55 | 55 | $section = ob_get_contents(); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public static function is_custom_section_two_column( $custom_section_data ) { |
| 68 | 68 | // print_r( $custom_section_data ); |
| 69 | - $value = ( isset( $custom_section_data['sidebar_title'] ) && isset( $custom_section_data['sidebar_fields'] ) && !empty( $custom_section_data['sidebar_fields'] ) ) ? true : false; |
|
| 69 | + $value = ( isset( $custom_section_data[ 'sidebar_title' ] ) && isset( $custom_section_data[ 'sidebar_fields' ] ) && ! empty( $custom_section_data[ 'sidebar_fields' ] ) ) ? true : false; |
|
| 70 | 70 | return $value; |
| 71 | 71 | } |
| 72 | 72 | |
@@ -5,10 +5,10 @@ discard block |
||
| 5 | 5 | <div id="col-left"> |
| 6 | 6 | |
| 7 | 7 | <div class="col-wrap"> |
| 8 | - <h1><span class="dashicons dashicons-wordpress-alt support-page-wordpress-font"></span> <?php _e( 'WordPress.org Plugin Directory' , 'yikes-inc-easy-mailchimp-extender' ); ?></h1> |
|
| 8 | + <h1><span class="dashicons dashicons-wordpress-alt support-page-wordpress-font"></span> <?php _e( 'WordPress.org Plugin Directory', 'yikes-inc-easy-mailchimp-extender' ); ?></h1> |
|
| 9 | 9 | <div class="inside"> |
| 10 | 10 | <p><?php _e( 'Use your WordPress.org username to submit support requests on the WordPress Directory support forum.', 'yikes-inc-easy-mailchimp-extender' ); ?></p> |
| 11 | - <img class="support-page-logo" src="<?php echo YIKES_MC_URL; ?>includes/images/Support_Page/wordpress-issue-screenshot.png" title="<?php esc_attr_e( 'WordPress.org Issue Tracker Screenshot' , 'yikes-inc-easy-mailchimp-extender' ); ?>" > |
|
| 11 | + <img class="support-page-logo" src="<?php echo YIKES_MC_URL; ?>includes/images/Support_Page/wordpress-issue-screenshot.png" title="<?php esc_attr_e( 'WordPress.org Issue Tracker Screenshot', 'yikes-inc-easy-mailchimp-extender' ); ?>" > |
|
| 12 | 12 | <a href="https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender" target="_blank" class="button-secondary support-page-button"><?php _e( 'Submit a New WordPress.org Support Request', 'yikes-inc-easy-mailchimp-extender' ); ?></a> |
| 13 | 13 | </div> |
| 14 | 14 | </div> |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | printf( '<h2>' . esc_attr__( 'Popular Knowledge Base Articles', 'yikes-inc-easy-mailchimp-extender' ) . '</h2>' ); |
| 61 | 61 | printf( '<ol>' ); |
| 62 | 62 | foreach ( $knowledge_base_links as $kb_link ) { |
| 63 | - echo wp_kses_post( '<li><a href="' . esc_url( $kb_link['href'] ) . '" title="' . esc_attr( $kb_link['title'] ) . '" target="_blank">' . esc_attr( $kb_link['title'] ) . '</a></li>' ); |
|
| 63 | + echo wp_kses_post( '<li><a href="' . esc_url( $kb_link[ 'href' ] ) . '" title="' . esc_attr( $kb_link[ 'title' ] ) . '" target="_blank">' . esc_attr( $kb_link[ 'title' ] ) . '</a></li>' ); |
|
| 64 | 64 | } |
| 65 | 65 | printf( '</ol>' ); |
| 66 | 66 | } |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | <h2 class="premium-support-title"><?php _e( 'Priority & Add-on Support', 'yikes-inc-easy-mailchimp-extender' ); ?></h2> |
| 7 | 7 | |
| 8 | 8 | <?php |
| 9 | - if ( isset( $_POST['submit-premium-support-request'] ) ) { |
|
| 9 | + if ( isset( $_POST[ 'submit-premium-support-request' ] ) ) { |
|
| 10 | 10 | ?> |
| 11 | 11 | <h4><?php _e( 'Success!', 'yikes-inc-easy-mailchimp-extender' ); ?></h2> |
| 12 | 12 | <p><?php _e( 'We have received your support request and will get in touch shortly regarding your issue.', 'yikes-inc-easy-mailchimp-extender' ); ?></p> |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | ?> |
| 16 | 16 | |
| 17 | 17 | <!-- Premium Support Form --> |
| 18 | - <form id="premium-support-form" method="post" action="<?php echo esc_url( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-support#premium-support-form' ) ); ?>" <?php echo (isset($_POST['submit-premium-support-request'])) ? 'class="support-form-hidden"' : ''; ?>> |
|
| 18 | + <form id="premium-support-form" method="post" action="<?php echo esc_url( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-support#premium-support-form' ) ); ?>" <?php echo ( isset( $_POST[ 'submit-premium-support-request' ] ) ) ? 'class="support-form-hidden"' : ''; ?>> |
|
| 19 | 19 | |
| 20 | 20 | <label><?php _e( 'Add-On:', 'yikes-inc-easy-mailchimp-extender' ); ?> |
| 21 | 21 | <select name="license_key" id="license-key"> |
@@ -25,13 +25,13 @@ discard block |
||
| 25 | 25 | // get the license for the respective extension |
| 26 | 26 | $options = get_option( 'yikes-mailchimp-' . $extension . '-settings', array() ); |
| 27 | 27 | |
| 28 | - if ( isset( $options['license'] ) && $options['status'] == 'valid' ) { |
|
| 29 | - echo '<option data-plugin-slug="' . esc_attr( $extension ) . '" data-plugin-name="' . esc_attr( ucwords( str_replace( '-', ' ', $extension ) ) ) . '" value="' . esc_attr( trim( $options['license'] ) ) . '">' . ucwords( str_replace( '-', ' ', $extension ) ) . ' ' . '</option>'; |
|
| 28 | + if ( isset( $options[ 'license' ] ) && $options[ 'status' ] == 'valid' ) { |
|
| 29 | + echo '<option data-plugin-slug="' . esc_attr( $extension ) . '" data-plugin-name="' . esc_attr( ucwords( str_replace( '-', ' ', $extension ) ) ) . '" value="' . esc_attr( trim( $options[ 'license' ] ) ) . '">' . ucwords( str_replace( '-', ' ', $extension ) ) . ' ' . '</option>'; |
|
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | 32 | ?> |
| 33 | 33 | </select> |
| 34 | - <p class="description"><?php _e( 'Select the add-on that you are looking for help with.' , 'yikes-inc-easy-mailchimp-extender' ); ?></p> |
|
| 34 | + <p class="description"><?php _e( 'Select the add-on that you are looking for help with.', 'yikes-inc-easy-mailchimp-extender' ); ?></p> |
|
| 35 | 35 | |
| 36 | 36 | <input type="hidden" name="plugin-slug" id="plugin-slug" value=""> |
| 37 | 37 | <input type="hidden" name="plugin-name" id="plugin-name" value=""> |
@@ -39,31 +39,31 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | <label><?php _e( 'Name:', 'yikes-inc-easy-mailchimp-extender' ); ?> |
| 41 | 41 | <input type="text" name="user-name" required> |
| 42 | - <p class="description"><?php _e( 'Enter your name.' , 'yikes-inc-easy-mailchimp-extender' ); ?></p> |
|
| 42 | + <p class="description"><?php _e( 'Enter your name.', 'yikes-inc-easy-mailchimp-extender' ); ?></p> |
|
| 43 | 43 | </label> |
| 44 | 44 | |
| 45 | 45 | <label><?php _e( 'Contact Email:', 'yikes-inc-easy-mailchimp-extender' ); ?> |
| 46 | 46 | <input type="email" name="user-email" required> |
| 47 | - <p class="description"><?php _e( 'Enter the email address you would prefer to be contact at.' , 'yikes-inc-easy-mailchimp-extender' ); ?></p> |
|
| 47 | + <p class="description"><?php _e( 'Enter the email address you would prefer to be contact at.', 'yikes-inc-easy-mailchimp-extender' ); ?></p> |
|
| 48 | 48 | </label> |
| 49 | 49 | |
| 50 | 50 | <label><?php _e( 'Topic:', 'yikes-inc-easy-mailchimp-extender' ); ?> |
| 51 | 51 | <input type="text" name="support-topic" required> |
| 52 | - <p class="description"><?php _e( 'Pleae enter the topic of your support request.' , 'yikes-inc-easy-mailchimp-extender' ); ?></p> |
|
| 52 | + <p class="description"><?php _e( 'Pleae enter the topic of your support request.', 'yikes-inc-easy-mailchimp-extender' ); ?></p> |
|
| 53 | 53 | </label> |
| 54 | 54 | |
| 55 | 55 | <label><?php _e( 'Priority:', 'yikes-inc-easy-mailchimp-extender' ); ?> |
| 56 | 56 | <select name="support-priority"> |
| 57 | - <option value="1"><?php _e( 'Low' , 'yikes-inc-easy-mailchimp-extender' ); ?></option> |
|
| 58 | - <option value="2"><?php _e( 'Medium' , 'yikes-inc-easy-mailchimp-extender' ); ?></option> |
|
| 59 | - <option value="3"><?php _e( 'High' , 'yikes-inc-easy-mailchimp-extender' ); ?></option> |
|
| 60 | - <option value="4"><?php _e( 'Urgent' , 'yikes-inc-easy-mailchimp-extender' ); ?></option> |
|
| 57 | + <option value="1"><?php _e( 'Low', 'yikes-inc-easy-mailchimp-extender' ); ?></option> |
|
| 58 | + <option value="2"><?php _e( 'Medium', 'yikes-inc-easy-mailchimp-extender' ); ?></option> |
|
| 59 | + <option value="3"><?php _e( 'High', 'yikes-inc-easy-mailchimp-extender' ); ?></option> |
|
| 60 | + <option value="4"><?php _e( 'Urgent', 'yikes-inc-easy-mailchimp-extender' ); ?></option> |
|
| 61 | 61 | </select> |
| 62 | - <p class="description"><?php _e( 'Select the priority of this ticket.' , 'yikes-inc-easy-mailchimp-extender' ); ?><em><?php _e( 'Note: Please do not abuse "urgent".' , 'yikes-inc-easy-mailchimp-extender' ); ?></em></p> |
|
| 62 | + <p class="description"><?php _e( 'Select the priority of this ticket.', 'yikes-inc-easy-mailchimp-extender' ); ?><em><?php _e( 'Note: Please do not abuse "urgent".', 'yikes-inc-easy-mailchimp-extender' ); ?></em></p> |
|
| 63 | 63 | </label> |
| 64 | 64 | <label><?php _e( 'Issue:', 'yikes-inc-easy-mailchimp-extender' ); ?> |
| 65 | 65 | <?php wp_editor( '', 'support-content', array( 'textarea_name' => 'support-content', 'media_buttons' => false ) ); ?> |
| 66 | - <p class="description"><?php _e( 'Enter as much detail about the issue you are encontering as possible. After we make initial contact you can attach any screenshots necessary.' , 'yikes-inc-easy-mailchimp-extender' ); ?></p> |
|
| 66 | + <p class="description"><?php _e( 'Enter as much detail about the issue you are encontering as possible. After we make initial contact you can attach any screenshots necessary.', 'yikes-inc-easy-mailchimp-extender' ); ?></p> |
|
| 67 | 67 | </label> |
| 68 | 68 | |
| 69 | 69 | <input type="hidden" name="action" value="yikes-support-request"> |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | $email_field = apply_filters( 'yikes-easy-mailchimp-email-address-field', $email_field, $list_id ); |
| 175 | 175 | |
| 176 | 176 | array_unshift( $merge_fields, $email_field ); |
| 177 | - $merge_object['merge_fields'] = $merge_fields; |
|
| 177 | + $merge_object[ 'merge_fields' ] = $merge_fields; |
|
| 178 | 178 | set_transient( "yikes_eme_merge_variables_{$list_id}", $merge_object, HOUR_IN_SECONDS ); |
| 179 | 179 | |
| 180 | 180 | return $merge_object; |
@@ -195,8 +195,8 @@ discard block |
||
| 195 | 195 | * @return array | WP_Error |
| 196 | 196 | */ |
| 197 | 197 | public function update_merge_field( $list_id, $field_id, $field_data, $clear_transient = true ) { |
| 198 | - $path = "{$this->base_path}/{$list_id}/merge-fields/{$field_id}"; |
|
| 199 | - $field = $this->patch_to_api( $path, $field_data ); |
|
| 198 | + $path = "{$this->base_path}/{$list_id}/merge-fields/{$field_id}"; |
|
| 199 | + $field = $this->patch_to_api( $path, $field_data ); |
|
| 200 | 200 | |
| 201 | 201 | if ( is_wp_error( $field ) ) { |
| 202 | 202 | return $field; |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | return $interests; |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | - $category['items'] = $interests; |
|
| 247 | + $category[ 'items' ] = $interests; |
|
| 248 | 248 | } |
| 249 | 249 | |
| 250 | 250 | set_transient( "yikes_eme_interest_categories_{$list_id}", $categories, HOUR_IN_SECONDS ); |
@@ -122,10 +122,10 @@ discard block |
||
| 122 | 122 | * @returned_error |
| 123 | 123 | * @error_type - what was running when the error occured ie (new user subscription, remove user etc) |
| 124 | 124 | */ |
| 125 | - public function yikes_easy_mailchimp_write_to_error_log( $returned_error , $error_type , $page='' ) {
|
|
| 125 | + public function yikes_easy_mailchimp_write_to_error_log( $returned_error, $error_type, $page = '' ) {
|
|
| 126 | 126 | |
| 127 | 127 | // confirm error logging is toggled on, else lets exit |
| 128 | - if( get_option( 'yikes-mailchimp-debug-status' , '' ) != '1' ) {
|
|
| 128 | + if ( get_option( 'yikes-mailchimp-debug-status', '' ) != '1' ) {
|
|
| 129 | 129 | return; |
| 130 | 130 | } |
| 131 | 131 | |
@@ -171,12 +171,12 @@ discard block |
||
| 171 | 171 | public function yikes_easy_mailchimp_generate_error_log_table() {
|
| 172 | 172 | |
| 173 | 173 | // ensure file_get_contents exists |
| 174 | - if( function_exists( 'file_get_contents' ) ) {
|
|
| 174 | + if ( function_exists( 'file_get_contents' ) ) {
|
|
| 175 | 175 | // confirm that our file exists |
| 176 | - if( file_exists( $this->error_log_file_path ) ) {
|
|
| 176 | + if ( file_exists( $this->error_log_file_path ) ) {
|
|
| 177 | 177 | $error_log_contents = file_get_contents( $this->error_log_file_path, true ); |
| 178 | - if( $error_log_contents === FALSE ) {
|
|
| 179 | - return _e( 'File get contents not available' , 'yikes-inc-easy-mailchimp-extender' ); |
|
| 178 | + if ( $error_log_contents === FALSE ) {
|
|
| 179 | + return _e( 'File get contents not available', 'yikes-inc-easy-mailchimp-extender' ); |
|
| 180 | 180 | } |
| 181 | 181 | if ( $error_log_contents != '' ) {
|
| 182 | 182 | // return $error_log_contents; |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | <tr class="error-log-tr"> |
| 188 | 188 | <td class="row-title colspanchange" colspan="2"> |
| 189 | 189 | <strong><span class='dashicons dashicons-no-alt'></span> <?php _e( 'No errors logged.', 'yikes-inc-easy-mailchimp-extender' ); ?></strong> |
| 190 | - <?php if( get_option( 'yikes-mailchimp-debug-status' , '' ) == '' ) { ?>
|
|
| 190 | + <?php if ( get_option( 'yikes-mailchimp-debug-status', '' ) == '' ) { ?>
|
|
| 191 | 191 | <br /> |
| 192 | 192 | <p class="to-start-logging-errors-notice"><em><?php _e( "To start logging errors toggle on the 'Enable Debugging' option above.", 'yikes-inc-easy-mailchimp-extender' ); ?></em></p> |
| 193 | 193 | <?php } ?> |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | ); |
| 216 | 216 | ?> |
| 217 | 217 | <form id="create-error-log" method="POST" action="<?php echo $url; ?>"> |
| 218 | - <?php submit_button( __( 'Attempt to Create Error Log' , 'yikes-inc-easy-mailchimp-extender' ) , 'secondary' , '' , '' , array() ); ?> |
|
| 218 | + <?php submit_button( __( 'Attempt to Create Error Log', 'yikes-inc-easy-mailchimp-extender' ), 'secondary', '', '', array() ); ?> |
|
| 219 | 219 | </form> |
| 220 | 220 | |
| 221 | 221 | </p> |
@@ -27,13 +27,13 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | foreach ( $interest_groupings as $id => $interest_group ) { |
| 29 | 29 | |
| 30 | - $interest_group_type = isset( $interest_group['type'] ) ? $interest_group['type'] : ''; |
|
| 31 | - $interest_groups_fields = isset( $interest_group['items'] ) ? $interest_group['items'] : array(); |
|
| 32 | - $selected_interest_groups = isset( $integration_options[ $integration_type ]['interest-groups'] ) ? $integration_options[ $integration_type ]['interest-groups'] : array(); |
|
| 33 | - $selected_interest_groups = isset( $selected_interest_groups[$list_id] ) ? $selected_interest_groups[$list_id] : $selected_interest_groups; |
|
| 30 | + $interest_group_type = isset( $interest_group[ 'type' ] ) ? $interest_group[ 'type' ] : ''; |
|
| 31 | + $interest_groups_fields = isset( $interest_group[ 'items' ] ) ? $interest_group[ 'items' ] : array(); |
|
| 32 | + $selected_interest_groups = isset( $integration_options[ $integration_type ][ 'interest-groups' ] ) ? $integration_options[ $integration_type ][ 'interest-groups' ] : array(); |
|
| 33 | + $selected_interest_groups = isset( $selected_interest_groups[ $list_id ] ) ? $selected_interest_groups[ $list_id ] : $selected_interest_groups; |
|
| 34 | 34 | ?> |
| 35 | 35 | <section class="interest-group-section"> |
| 36 | - <strong class="interest-group-section-title"><?php echo ucwords( $interest_group['title'] ); ?></strong> |
|
| 36 | + <strong class="interest-group-section-title"><?php echo ucwords( $interest_group[ 'title' ] ); ?></strong> |
|
| 37 | 37 | <?php |
| 38 | 38 | |
| 39 | 39 | /* |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | <input type="checkbox" |
| 56 | 56 | name="optin-checkbox-init[<?php echo $integration_type; ?>][interest-groups][<?php echo $list_id; ?>][<?php echo $id; ?>][]" |
| 57 | 57 | value="<?php echo $field_id; ?>" <?php echo $checked; ?>> |
| 58 | - <?php echo $field['name']; ?> |
|
| 58 | + <?php echo $field[ 'name' ]; ?> |
|
| 59 | 59 | </label> |
| 60 | 60 | <?php |
| 61 | 61 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | <input type="radio" |
| 72 | 72 | name="optin-checkbox-init[<?php echo $integration_type; ?>][interest-groups][<?php echo $list_id; ?>][<?php echo $id; ?>][]" |
| 73 | 73 | value="<?php echo $field_id; ?>" <?php echo $checked; ?>> |
| 74 | - <?php echo $field['name']; ?> |
|
| 74 | + <?php echo $field[ 'name' ]; ?> |
|
| 75 | 75 | </label> |
| 76 | 76 | <?php |
| 77 | 77 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | } |
| 90 | 90 | ?> |
| 91 | 91 | <option value="<?php echo $field_id; ?>" <?php echo $selected; ?>> |
| 92 | - <?php echo $field['name']; ?> |
|
| 92 | + <?php echo $field[ 'name' ]; ?> |
|
| 93 | 93 | </option> |
| 94 | 94 | <?php |
| 95 | 95 | } |
@@ -22,13 +22,13 @@ |
||
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | // Verify Honeypot |
| 25 | - if ( ! empty( $_POST['hp'] ) ) { |
|
| 25 | + if ( ! empty( $_POST[ 'hp' ] ) ) { |
|
| 26 | 26 | wp_send_json_error( '2' ); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | // Get email, list ID |
| 30 | - $email = isset( $_POST['email'] ) ? $_POST['email'] : ''; |
|
| 31 | - $list_id = isset( $_POST['list_id'] ) ? $_POST['list_id'] : ''; |
|
| 30 | + $email = isset( $_POST[ 'email' ] ) ? $_POST[ 'email' ] : ''; |
|
| 31 | + $list_id = isset( $_POST[ 'list_id' ] ) ? $_POST[ 'list_id' ] : ''; |
|
| 32 | 32 | |
| 33 | 33 | if ( empty( $email ) || empty( $list_id ) ) { |
| 34 | 34 | wp_send_json_error( '3' ); |