@@ -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(); |
@@ -812,10 +812,10 @@ discard block |
||
812 | 812 | } |
813 | 813 | |
814 | 814 | if ( ! is_int( $params[1] ) |
815 | - && ! is_float( $params[1] ) |
|
816 | - && ! is_string( $params[1] ) |
|
817 | - && $params[1] !== null |
|
818 | - && ! ( is_object( $params[1] ) && method_exists( $params[1], '__toString' ) ) |
|
815 | + && ! is_float( $params[1] ) |
|
816 | + && ! is_string( $params[1] ) |
|
817 | + && $params[1] !== null |
|
818 | + && ! ( is_object( $params[1] ) && method_exists( $params[1], '__toString' ) ) |
|
819 | 819 | ) { |
820 | 820 | trigger_error( esc_html__( 'array_column(): The column key should be either a string or an integer.', 'give' ), E_USER_WARNING ); |
821 | 821 | |
@@ -823,10 +823,10 @@ discard block |
||
823 | 823 | } |
824 | 824 | |
825 | 825 | if ( isset( $params[2] ) |
826 | - && ! is_int( $params[2] ) |
|
827 | - && ! is_float( $params[2] ) |
|
828 | - && ! is_string( $params[2] ) |
|
829 | - && ! ( is_object( $params[2] ) && method_exists( $params[2], '__toString' ) ) |
|
826 | + && ! is_int( $params[2] ) |
|
827 | + && ! is_float( $params[2] ) |
|
828 | + && ! is_string( $params[2] ) |
|
829 | + && ! ( is_object( $params[2] ) && method_exists( $params[2], '__toString' ) ) |
|
830 | 830 | ) { |
831 | 831 | trigger_error( esc_html__( 'array_column(): The index key should be either a string or an integer.', 'give' ), E_USER_WARNING ); |
832 | 832 |
@@ -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' |
@@ -90,13 +90,13 @@ discard block |
||
90 | 90 | 'default' => '', |
91 | 91 | 'type' => 'text' |
92 | 92 | ), |
93 | - array( |
|
94 | - 'name' => esc_html__( 'Access Control Docs Link', 'give' ), |
|
95 | - 'id' => 'access_control_docs_link', |
|
96 | - 'url' => esc_url( 'http://docs.givewp.com/settings-access-control' ), |
|
97 | - 'title' => __( 'Access Control', 'give' ), |
|
98 | - 'type' => 'give_docs_link', |
|
99 | - ), |
|
93 | + array( |
|
94 | + 'name' => esc_html__( 'Access Control Docs Link', 'give' ), |
|
95 | + 'id' => 'access_control_docs_link', |
|
96 | + 'url' => esc_url( 'http://docs.givewp.com/settings-access-control' ), |
|
97 | + 'title' => __( 'Access Control', 'give' ), |
|
98 | + 'type' => 'give_docs_link', |
|
99 | + ), |
|
100 | 100 | array( |
101 | 101 | 'id' => 'give_title_session_control_1', |
102 | 102 | 'type' => 'sectionend' |
@@ -162,13 +162,13 @@ discard block |
||
162 | 162 | 'default' => 2, |
163 | 163 | 'css' => 'width:12em;', |
164 | 164 | ), |
165 | - array( |
|
166 | - 'name' => esc_html__( 'Currency Options Docs Link', 'give' ), |
|
167 | - 'id' => 'currency_settings_docs_link', |
|
168 | - 'url' => esc_url( 'http://docs.givewp.com/settings-currency' ), |
|
169 | - 'title' => __( 'Currency Settings', 'give' ), |
|
170 | - 'type' => 'give_docs_link', |
|
171 | - ), |
|
165 | + array( |
|
166 | + 'name' => esc_html__( 'Currency Options Docs Link', 'give' ), |
|
167 | + 'id' => 'currency_settings_docs_link', |
|
168 | + 'url' => esc_url( 'http://docs.givewp.com/settings-currency' ), |
|
169 | + 'title' => __( 'Currency Settings', 'give' ), |
|
170 | + 'type' => 'give_docs_link', |
|
171 | + ), |
|
172 | 172 | array( |
173 | 173 | 'type' => 'sectionend', |
174 | 174 | 'id' => 'give_title_general_settings_2' |
@@ -228,13 +228,13 @@ discard block |
||
228 | 228 | 'type' => 'select', |
229 | 229 | 'options' => give_get_country_list(), |
230 | 230 | ), |
231 | - array( |
|
232 | - 'name' => esc_html__( 'General Options Docs Link', 'give' ), |
|
233 | - 'id' => 'general_options_docs_link', |
|
234 | - 'url' => esc_url( 'http://docs.givewp.com/settings-general' ), |
|
235 | - 'title' => __( 'General Options', 'give' ), |
|
236 | - 'type' => 'give_docs_link', |
|
237 | - ), |
|
231 | + array( |
|
232 | + 'name' => esc_html__( 'General Options Docs Link', 'give' ), |
|
233 | + 'id' => 'general_options_docs_link', |
|
234 | + 'url' => esc_url( 'http://docs.givewp.com/settings-general' ), |
|
235 | + 'title' => __( 'General Options', 'give' ), |
|
236 | + 'type' => 'give_docs_link', |
|
237 | + ), |
|
238 | 238 | array( |
239 | 239 | 'type' => 'sectionend', |
240 | 240 | 'id' => 'give_title_general_settings_1' |
@@ -733,9 +733,9 @@ |
||
733 | 733 | <td class="give-docs-link" colspan="2"> |
734 | 734 | <?php |
735 | 735 | echo '<p class="give-docs-link"><a href="' . esc_url( $value['url'] ) |
736 | - . '" target="_blank">' |
|
737 | - . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $value['title'] ) |
|
738 | - . '<span class="dashicons dashicons-editor-help"></span></a></p>'; |
|
736 | + . '" target="_blank">' |
|
737 | + . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $value['title'] ) |
|
738 | + . '<span class="dashicons dashicons-editor-help"></span></a></p>'; |
|
739 | 739 | ?> |
740 | 740 | </td> |
741 | 741 | </tr><?php |