@@ -42,16 +42,16 @@ |
||
| 42 | 42 | 'minWidth' => 320, |
| 43 | 43 | 'tooltip' => esc_attr__( 'Enter an URL here to redirect to after login.', 'give' ), |
| 44 | 44 | ), |
| 45 | - array( |
|
| 46 | - 'type' => 'container', |
|
| 47 | - 'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Logout Redirect URL (optional):', 'give' ) ), |
|
| 48 | - ), |
|
| 49 | - array( |
|
| 50 | - 'type' => 'textbox', |
|
| 51 | - 'name' => 'logout-redirect', |
|
| 52 | - 'minWidth' => 320, |
|
| 53 | - 'tooltip' => esc_attr__( 'Enter an URL here to redirect to after logout.', 'give' ), |
|
| 54 | - ), |
|
| 45 | + array( |
|
| 46 | + 'type' => 'container', |
|
| 47 | + 'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Logout Redirect URL (optional):', 'give' ) ), |
|
| 48 | + ), |
|
| 49 | + array( |
|
| 50 | + 'type' => 'textbox', |
|
| 51 | + 'name' => 'logout-redirect', |
|
| 52 | + 'minWidth' => 320, |
|
| 53 | + 'tooltip' => esc_attr__( 'Enter an URL here to redirect to after logout.', 'give' ), |
|
| 54 | + ), |
|
| 55 | 55 | ); |
| 56 | 56 | } |
| 57 | 57 | } |
@@ -248,8 +248,8 @@ |
||
| 248 | 248 | |
| 249 | 249 | // do not reindex array! |
| 250 | 250 | $field['options'] = array( |
| 251 | - '' => ( $field['placeholder'] ? $field['placeholder'] : esc_attr__( '- Select -', 'give' ) ), |
|
| 252 | - ) + $field['options']; |
|
| 251 | + '' => ( $field['placeholder'] ? $field['placeholder'] : esc_attr__( '- Select -', 'give' ) ), |
|
| 252 | + ) + $field['options']; |
|
| 253 | 253 | |
| 254 | 254 | foreach ( $field['options'] as $value => $text ) { |
| 255 | 255 | $new_listbox['values'][] = array( |
@@ -586,9 +586,9 @@ |
||
| 586 | 586 | } |
| 587 | 587 | |
| 588 | 588 | echo ' – ' |
| 589 | - . sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) ) |
|
| 590 | - . ' – ' |
|
| 591 | - . esc_html( $plugin_data['Version'] ); |
|
| 589 | + . sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) ) |
|
| 590 | + . ' – ' |
|
| 591 | + . esc_html( $plugin_data['Version'] ); |
|
| 592 | 592 | ?> |
| 593 | 593 | </td> |
| 594 | 594 | </tr> |
@@ -79,13 +79,13 @@ discard block |
||
| 79 | 79 | 'default' => get_bloginfo( 'admin_email' ), |
| 80 | 80 | 'type' => 'text' |
| 81 | 81 | ), |
| 82 | - array( |
|
| 83 | - 'name' => esc_html__( 'Email Settings Docs Link', 'give' ), |
|
| 84 | - 'id' => 'email_settings_docs_link', |
|
| 85 | - 'url' => esc_url( 'http://docs.givewp.com/settings-emails' ), |
|
| 86 | - 'title' => __( 'Email Settings', 'give' ), |
|
| 87 | - 'type' => 'give_docs_link', |
|
| 88 | - ), |
|
| 82 | + array( |
|
| 83 | + 'name' => esc_html__( 'Email Settings Docs Link', 'give' ), |
|
| 84 | + 'id' => 'email_settings_docs_link', |
|
| 85 | + 'url' => esc_url( 'http://docs.givewp.com/settings-emails' ), |
|
| 86 | + 'title' => __( 'Email Settings', 'give' ), |
|
| 87 | + 'type' => 'give_docs_link', |
|
| 88 | + ), |
|
| 89 | 89 | array( |
| 90 | 90 | 'id' => 'give_title_email_settings_1', |
| 91 | 91 | 'type' => 'sectionend' |
@@ -118,13 +118,13 @@ discard block |
||
| 118 | 118 | 'type' => 'wysiwyg', |
| 119 | 119 | 'default' => give_get_default_donation_receipt_email() |
| 120 | 120 | ), |
| 121 | - array( |
|
| 122 | - 'name' => esc_html__( 'Donation Receipt Settings Docs Link', 'give' ), |
|
| 123 | - 'id' => 'donation_receipt_settings_docs_link', |
|
| 124 | - 'url' => esc_url( 'http://docs.givewp.com/settings-donation-receipt' ), |
|
| 125 | - 'title' => __( 'Donation Receipt Settings', 'give' ), |
|
| 126 | - 'type' => 'give_docs_link', |
|
| 127 | - ), |
|
| 121 | + array( |
|
| 122 | + 'name' => esc_html__( 'Donation Receipt Settings Docs Link', 'give' ), |
|
| 123 | + 'id' => 'donation_receipt_settings_docs_link', |
|
| 124 | + 'url' => esc_url( 'http://docs.givewp.com/settings-donation-receipt' ), |
|
| 125 | + 'title' => __( 'Donation Receipt Settings', 'give' ), |
|
| 126 | + 'type' => 'give_docs_link', |
|
| 127 | + ), |
|
| 128 | 128 | array( |
| 129 | 129 | 'id' => 'give_title_email_settings_2', |
| 130 | 130 | 'type' => 'sectionend' |
@@ -175,13 +175,13 @@ discard block |
||
| 175 | 175 | 'type' => 'textarea', |
| 176 | 176 | 'default' => get_bloginfo( 'admin_email' ) |
| 177 | 177 | ), |
| 178 | - array( |
|
| 179 | - 'name' => esc_html__( 'Donation Notification Settings Docs Link', 'give' ), |
|
| 180 | - 'id' => 'donation_notification_settings_docs_link', |
|
| 181 | - 'url' => esc_url( 'http://docs.givewp.com/settings-donation-notification' ), |
|
| 182 | - 'title' => __( 'Donation Notification Settings', 'give' ), |
|
| 183 | - 'type' => 'give_docs_link', |
|
| 184 | - ), |
|
| 178 | + array( |
|
| 179 | + 'name' => esc_html__( 'Donation Notification Settings Docs Link', 'give' ), |
|
| 180 | + 'id' => 'donation_notification_settings_docs_link', |
|
| 181 | + 'url' => esc_url( 'http://docs.givewp.com/settings-donation-notification' ), |
|
| 182 | + 'title' => __( 'Donation Notification Settings', 'give' ), |
|
| 183 | + 'type' => 'give_docs_link', |
|
| 184 | + ), |
|
| 185 | 185 | array( |
| 186 | 186 | 'id' => 'give_title_email_settings_3', |
| 187 | 187 | 'type' => 'sectionend' |
@@ -138,8 +138,8 @@ |
||
| 138 | 138 | |
| 139 | 139 | // Only run in admin post/page creation and edit screens |
| 140 | 140 | if ( in_array( $screen->parent_file, $shortcode_button_pages ) |
| 141 | - && apply_filters( 'give_shortcode_button_condition', true ) |
|
| 142 | - && ! empty( self::$shortcodes ) |
|
| 141 | + && apply_filters( 'give_shortcode_button_condition', true ) |
|
| 142 | + && ! empty( self::$shortcodes ) |
|
| 143 | 143 | ) { |
| 144 | 144 | |
| 145 | 145 | $shortcodes = array(); |
@@ -86,13 +86,13 @@ discard block |
||
| 86 | 86 | 'disabled' => __( 'Disabled', 'give' ), |
| 87 | 87 | ) |
| 88 | 88 | ), |
| 89 | - array( |
|
| 90 | - 'name' => __( 'PayPal Standard Gateway Settings Docs Link', 'give' ), |
|
| 91 | - 'id' => 'paypal_standard_gateway_settings_docs_link', |
|
| 92 | - 'url' => esc_url( 'http://docs.givewp.com/settings-gateway-paypal-standard' ), |
|
| 93 | - 'title' => __( 'PayPal Standard Gateway Settings', 'give' ), |
|
| 94 | - 'type' => 'give_docs_link', |
|
| 95 | - ), |
|
| 89 | + array( |
|
| 90 | + 'name' => __( 'PayPal Standard Gateway Settings Docs Link', 'give' ), |
|
| 91 | + 'id' => 'paypal_standard_gateway_settings_docs_link', |
|
| 92 | + 'url' => esc_url( 'http://docs.givewp.com/settings-gateway-paypal-standard' ), |
|
| 93 | + 'title' => __( 'PayPal Standard Gateway Settings', 'give' ), |
|
| 94 | + 'type' => 'give_docs_link', |
|
| 95 | + ), |
|
| 96 | 96 | array( |
| 97 | 97 | 'type' => 'sectionend', |
| 98 | 98 | 'id' => 'give_title_gateway_settings_2', |
@@ -145,13 +145,13 @@ discard block |
||
| 145 | 145 | 'textarea_rows' => 6, |
| 146 | 146 | ) |
| 147 | 147 | ), |
| 148 | - array( |
|
| 149 | - 'name' => __( 'Offline Donations Settings Docs Link', 'give' ), |
|
| 150 | - 'id' => 'offline_gateway_settings_docs_link', |
|
| 151 | - 'url' => esc_url( 'http://docs.givewp.com/settings-gateway-offline-donations' ), |
|
| 152 | - 'title' => __( 'Offline Gateway Settings', 'give' ), |
|
| 153 | - 'type' => 'give_docs_link', |
|
| 154 | - ), |
|
| 148 | + array( |
|
| 149 | + 'name' => __( 'Offline Donations Settings Docs Link', 'give' ), |
|
| 150 | + 'id' => 'offline_gateway_settings_docs_link', |
|
| 151 | + 'url' => esc_url( 'http://docs.givewp.com/settings-gateway-offline-donations' ), |
|
| 152 | + 'title' => __( 'Offline Gateway Settings', 'give' ), |
|
| 153 | + 'type' => 'give_docs_link', |
|
| 154 | + ), |
|
| 155 | 155 | array( |
| 156 | 156 | 'type' => 'sectionend', |
| 157 | 157 | 'id' => 'give_title_gateway_settings_3', |
@@ -189,13 +189,13 @@ discard block |
||
| 189 | 189 | 'id' => 'default_gateway', |
| 190 | 190 | 'type' => 'default_gateway' |
| 191 | 191 | ), |
| 192 | - array( |
|
| 193 | - 'name' => __( 'Gateways Docs Link', 'give' ), |
|
| 194 | - 'id' => 'gateway_settings_docs_link', |
|
| 195 | - 'url' => esc_url( 'http://docs.givewp.com/settings-gateways' ), |
|
| 196 | - 'title' => __( 'Gateway Settings', 'give' ), |
|
| 197 | - 'type' => 'give_docs_link', |
|
| 198 | - ), |
|
| 192 | + array( |
|
| 193 | + 'name' => __( 'Gateways Docs Link', 'give' ), |
|
| 194 | + 'id' => 'gateway_settings_docs_link', |
|
| 195 | + 'url' => esc_url( 'http://docs.givewp.com/settings-gateways' ), |
|
| 196 | + 'title' => __( 'Gateway Settings', 'give' ), |
|
| 197 | + 'type' => 'give_docs_link', |
|
| 198 | + ), |
|
| 199 | 199 | array( |
| 200 | 200 | 'id' => 'give_title_gateway_settings_1', |
| 201 | 201 | 'type' => 'sectionend' |
@@ -555,7 +555,7 @@ discard block |
||
| 555 | 555 | type="radio" |
| 556 | 556 | style="' . esc_attr( $field['style'] ) . '" |
| 557 | 557 | ' . checked( esc_attr( $field['value'] ), esc_attr( $key ), false ) . ' ' |
| 558 | - . give_get_custom_attributes( $field ) . ' |
|
| 558 | + . give_get_custom_attributes( $field ) . ' |
|
| 559 | 559 | /> ' . esc_html( $value ) . '</label> |
| 560 | 560 | </li>'; |
| 561 | 561 | } |
@@ -704,9 +704,9 @@ discard block |
||
| 704 | 704 | $field['title'] = isset( $field['title'] ) ? $field['title'] : 'Documentation'; |
| 705 | 705 | |
| 706 | 706 | echo '<p class="give-docs-link"><a href="' . esc_url( $field['url'] ) |
| 707 | - . '" target="_blank">' |
|
| 708 | - . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $field['title'] ) |
|
| 709 | - . '<span class="dashicons dashicons-editor-help"></span></a></p>'; |
|
| 707 | + . '" target="_blank">' |
|
| 708 | + . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $field['title'] ) |
|
| 709 | + . '<span class="dashicons dashicons-editor-help"></span></a></p>'; |
|
| 710 | 710 | } |
| 711 | 711 | |
| 712 | 712 | /** |
@@ -1167,12 +1167,12 @@ |
||
| 1167 | 1167 | */ |
| 1168 | 1168 | function give_slug_to_title( $string, $filters = array() ){ |
| 1169 | 1169 | |
| 1170 | - foreach( $filters as $filter_item ){ |
|
| 1171 | - $string = str_replace( $filter_item, ' ', $string ); |
|
| 1172 | - } |
|
| 1170 | + foreach( $filters as $filter_item ){ |
|
| 1171 | + $string = str_replace( $filter_item, ' ', $string ); |
|
| 1172 | + } |
|
| 1173 | 1173 | |
| 1174 | - // Return updated string after converting it to title case |
|
| 1175 | - return ucwords( $string ); |
|
| 1174 | + // Return updated string after converting it to title case |
|
| 1175 | + return ucwords( $string ); |
|
| 1176 | 1176 | |
| 1177 | 1177 | } |
| 1178 | 1178 | |
@@ -87,13 +87,13 @@ discard block |
||
| 87 | 87 | 'disabled' => __( 'Disabled', 'give' ), |
| 88 | 88 | ) |
| 89 | 89 | ), |
| 90 | - array( |
|
| 91 | - 'name' => __( 'Display Settings Docs Link', 'give' ), |
|
| 92 | - 'id' => 'display_settings_docs_link', |
|
| 93 | - 'url' => esc_url( 'http://docs.givewp.com/form-display-options' ), |
|
| 94 | - 'title' => __( 'Display Options Settings', 'give' ), |
|
| 95 | - 'type' => 'give_docs_link', |
|
| 96 | - ), |
|
| 90 | + array( |
|
| 91 | + 'name' => __( 'Display Settings Docs Link', 'give' ), |
|
| 92 | + 'id' => 'display_settings_docs_link', |
|
| 93 | + 'url' => esc_url( 'http://docs.givewp.com/form-display-options' ), |
|
| 94 | + 'title' => __( 'Display Options Settings', 'give' ), |
|
| 95 | + 'type' => 'give_docs_link', |
|
| 96 | + ), |
|
| 97 | 97 | array( |
| 98 | 98 | 'id' => 'give_title_display_settings_1', |
| 99 | 99 | 'type' => 'sectionend' |
@@ -170,13 +170,13 @@ discard block |
||
| 170 | 170 | 'disabled' => __( 'Disabled', 'give' ), |
| 171 | 171 | ) |
| 172 | 172 | ), |
| 173 | - array( |
|
| 174 | - 'name' => __( 'Post Types Docs Link', 'give' ), |
|
| 175 | - 'id' => 'post_types_settings_docs_link', |
|
| 176 | - 'url' => esc_url( 'http://docs.givewp.com/settings-post-types' ), |
|
| 177 | - 'title' => __( 'Post Types Settings', 'give' ), |
|
| 178 | - 'type' => 'give_docs_link', |
|
| 179 | - ), |
|
| 173 | + array( |
|
| 174 | + 'name' => __( 'Post Types Docs Link', 'give' ), |
|
| 175 | + 'id' => 'post_types_settings_docs_link', |
|
| 176 | + 'url' => esc_url( 'http://docs.givewp.com/settings-post-types' ), |
|
| 177 | + 'title' => __( 'Post Types Settings', 'give' ), |
|
| 178 | + 'type' => 'give_docs_link', |
|
| 179 | + ), |
|
| 180 | 180 | array( |
| 181 | 181 | 'id' => 'give_title_display_settings_2', |
| 182 | 182 | 'type' => 'sectionend' |
@@ -212,13 +212,13 @@ discard block |
||
| 212 | 212 | 'disabled' => __( 'Disabled', 'give' ), |
| 213 | 213 | ) |
| 214 | 214 | ), |
| 215 | - array( |
|
| 216 | - 'name' => __( 'Taxonomies Docs Link', 'give' ), |
|
| 217 | - 'id' => 'taxonomies_settings_docs_link', |
|
| 218 | - 'url' => esc_url( 'http://docs.givewp.com/settings-taxonomies' ), |
|
| 219 | - 'title' => __( 'Taxonomies Settings', 'give' ), |
|
| 220 | - 'type' => 'give_docs_link', |
|
| 221 | - ), |
|
| 215 | + array( |
|
| 216 | + 'name' => __( 'Taxonomies Docs Link', 'give' ), |
|
| 217 | + 'id' => 'taxonomies_settings_docs_link', |
|
| 218 | + 'url' => esc_url( 'http://docs.givewp.com/settings-taxonomies' ), |
|
| 219 | + 'title' => __( 'Taxonomies Settings', 'give' ), |
|
| 220 | + 'type' => 'give_docs_link', |
|
| 221 | + ), |
|
| 222 | 222 | array( |
| 223 | 223 | 'id' => 'give_title_display_settings_3', |
| 224 | 224 | 'type' => 'sectionend' |
@@ -258,13 +258,13 @@ discard block |
||
| 258 | 258 | 'id' => 'agreement_text', |
| 259 | 259 | 'type' => 'wysiwyg' |
| 260 | 260 | ), |
| 261 | - array( |
|
| 262 | - 'name' => __( 'Terms and Conditions Docs Link', 'give' ), |
|
| 263 | - 'id' => 'terms_settings_docs_link', |
|
| 264 | - 'url' => esc_url( 'http://docs.givewp.com/settings-terms' ), |
|
| 265 | - 'title' => __( 'Terms and Conditions Settings', 'give' ), |
|
| 266 | - 'type' => 'give_docs_link', |
|
| 267 | - ), |
|
| 261 | + array( |
|
| 262 | + 'name' => __( 'Terms and Conditions Docs Link', 'give' ), |
|
| 263 | + 'id' => 'terms_settings_docs_link', |
|
| 264 | + 'url' => esc_url( 'http://docs.givewp.com/settings-terms' ), |
|
| 265 | + 'title' => __( 'Terms and Conditions Settings', 'give' ), |
|
| 266 | + 'type' => 'give_docs_link', |
|
| 267 | + ), |
|
| 268 | 268 | array( |
| 269 | 269 | 'id' => 'give_title_display_settings_4', |
| 270 | 270 | 'type' => 'sectionend' |