@@ -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> |
@@ -814,12 +814,12 @@ |
||
| 814 | 814 | ) ), 'give-refresh-reports' ); |
| 815 | 815 | |
| 816 | 816 | echo '<a href="' |
| 817 | - . esc_url_raw( $url ) |
|
| 818 | - . '" data-tooltip="'. esc_attr__( 'Clicking this will clear the reports cache.', 'give' ) |
|
| 819 | - . '" data-tooltip-my-position="right center" data-tooltip-target-position="left center" class="button alignright give-admin-button give-tooltip">' |
|
| 820 | - . '<span class="give-admin-button-icon give-admin-button-icon-update"></span>' |
|
| 821 | - . esc_html__( 'Refresh Report Data', 'give' ) |
|
| 822 | - . '</a>'; |
|
| 817 | + . esc_url_raw( $url ) |
|
| 818 | + . '" data-tooltip="'. esc_attr__( 'Clicking this will clear the reports cache.', 'give' ) |
|
| 819 | + . '" data-tooltip-my-position="right center" data-tooltip-target-position="left center" class="button alignright give-admin-button give-tooltip">' |
|
| 820 | + . '<span class="give-admin-button-icon give-admin-button-icon-update"></span>' |
|
| 821 | + . esc_html__( 'Refresh Report Data', 'give' ) |
|
| 822 | + . '</a>'; |
|
| 823 | 823 | |
| 824 | 824 | } |
| 825 | 825 | |
@@ -1181,23 +1181,23 @@ discard block |
||
| 1181 | 1181 | function give_license_key_callback( $field_object, $escaped_value, $object_id, $object_type, $field_type_object ) {
|
| 1182 | 1182 | /* @var CMB2_Types $field_type_object */ |
| 1183 | 1183 | |
| 1184 | - $id = $field_type_object->field->args['id']; |
|
| 1184 | + $id = $field_type_object->field->args['id']; |
|
| 1185 | 1185 | $field_description = $field_type_object->field->args['desc']; |
| 1186 | 1186 | $license = $field_type_object->field->args['options']['license']; |
| 1187 | - $license_key = $escaped_value; |
|
| 1188 | - $is_license_key = apply_filters( 'give_is_license_key', ( is_object( $license ) && ! empty( $license ) ) ); |
|
| 1189 | - $is_valid_license = apply_filters( 'give_is_valid_license', ( $is_license_key && property_exists( $license, 'license' ) && 'valid' === $license->license ) ); |
|
| 1190 | - $shortname = $field_type_object->field->args['options']['shortname']; |
|
| 1187 | + $license_key = $escaped_value; |
|
| 1188 | + $is_license_key = apply_filters( 'give_is_license_key', ( is_object( $license ) && ! empty( $license ) ) ); |
|
| 1189 | + $is_valid_license = apply_filters( 'give_is_valid_license', ( $is_license_key && property_exists( $license, 'license' ) && 'valid' === $license->license ) ); |
|
| 1190 | + $shortname = $field_type_object->field->args['options']['shortname']; |
|
| 1191 | 1191 | $field_classes = 'regular-text give-license-field'; |
| 1192 | 1192 | $type = empty( $escaped_value ) || ! $is_valid_license ? 'text' : 'password'; |
| 1193 | - $custom_html = ''; |
|
| 1194 | - $messages = array(); |
|
| 1195 | - $class = ''; |
|
| 1196 | - $account_page_link = $field_type_object->field->args['options']['account_url']; |
|
| 1197 | - $checkout_page_link = $field_type_object->field->args['options']['checkout_url']; |
|
| 1198 | - $addon_name = $field_type_object->field->args['options']['item_name']; |
|
| 1199 | - $license_status = null; |
|
| 1200 | - $is_in_subscription = null; |
|
| 1193 | + $custom_html = ''; |
|
| 1194 | + $messages = array(); |
|
| 1195 | + $class = ''; |
|
| 1196 | + $account_page_link = $field_type_object->field->args['options']['account_url']; |
|
| 1197 | + $checkout_page_link = $field_type_object->field->args['options']['checkout_url']; |
|
| 1198 | + $addon_name = $field_type_object->field->args['options']['item_name']; |
|
| 1199 | + $license_status = null; |
|
| 1200 | + $is_in_subscription = null; |
|
| 1201 | 1201 | |
| 1202 | 1202 | // By default query on edd api url will return license object which contain status and message property, this can break below functionality. |
| 1203 | 1203 | // To combat that check if status is set to error or not, if yes then set $is_license_key to false. |
@@ -1259,17 +1259,17 @@ discard block |
||
| 1259 | 1259 | |
| 1260 | 1260 | } elseif ( empty( $license->success ) && property_exists( $license, 'error' ) ) {
|
| 1261 | 1261 | |
| 1262 | - // activate_license 'invalid' on anything other than valid, so if there was an error capture it |
|
| 1263 | - switch( $license->error ) {
|
|
| 1264 | - case 'expired' : |
|
| 1265 | - $class = $license->error; |
|
| 1266 | - $messages[] = sprintf( |
|
| 1267 | - __( 'Your license key expired on %s. Please <a href="%s" target="_blank" title="Renew your license key">renew your license key</a>.', 'give' ), |
|
| 1268 | - date_i18n( get_option( 'date_format' ), strtotime( $license->expires, current_time( 'timestamp' ) ) ), |
|
| 1269 | - $checkout_page_link . '?edd_license_key=' . $license_key . '&utm_campaign=admin&utm_source=licenses&utm_medium=expired' |
|
| 1270 | - ); |
|
| 1271 | - $license_status = 'license-' . $class; |
|
| 1272 | - break; |
|
| 1262 | + // activate_license 'invalid' on anything other than valid, so if there was an error capture it |
|
| 1263 | + switch( $license->error ) {
|
|
| 1264 | + case 'expired' : |
|
| 1265 | + $class = $license->error; |
|
| 1266 | + $messages[] = sprintf( |
|
| 1267 | + __( 'Your license key expired on %s. Please <a href="%s" target="_blank" title="Renew your license key">renew your license key</a>.', 'give' ), |
|
| 1268 | + date_i18n( get_option( 'date_format' ), strtotime( $license->expires, current_time( 'timestamp' ) ) ), |
|
| 1269 | + $checkout_page_link . '?edd_license_key=' . $license_key . '&utm_campaign=admin&utm_source=licenses&utm_medium=expired' |
|
| 1270 | + ); |
|
| 1271 | + $license_status = 'license-' . $class; |
|
| 1272 | + break; |
|
| 1273 | 1273 | |
| 1274 | 1274 | case 'missing' : |
| 1275 | 1275 | $class = $license->error; |
@@ -1300,11 +1300,11 @@ discard block |
||
| 1300 | 1300 | $license_status = 'license-' . $class; |
| 1301 | 1301 | break; |
| 1302 | 1302 | |
| 1303 | - case 'item_name_mismatch' : |
|
| 1304 | - $class = $license->error; |
|
| 1305 | - $messages[] = sprintf( __( 'This license %s does not belong to %s.', 'give' ), $license_key, $addon_name ); |
|
| 1306 | - $license_status = 'license-' . $class; |
|
| 1307 | - break; |
|
| 1303 | + case 'item_name_mismatch' : |
|
| 1304 | + $class = $license->error; |
|
| 1305 | + $messages[] = sprintf( __( 'This license %s does not belong to %s.', 'give' ), $license_key, $addon_name ); |
|
| 1306 | + $license_status = 'license-' . $class; |
|
| 1307 | + break; |
|
| 1308 | 1308 | |
| 1309 | 1309 | case 'no_activations_left': |
| 1310 | 1310 | $class = $license->error; |
@@ -1359,7 +1359,7 @@ discard block |
||
| 1359 | 1359 | |
| 1360 | 1360 | // If license is active so show deactivate button. |
| 1361 | 1361 | if ( $is_valid_license ) {
|
| 1362 | - // Get input field html. |
|
| 1362 | + // Get input field html. |
|
| 1363 | 1363 | $input_field_html = "<input type=\"{$type}\" name=\"{$id}\" class=\"{$field_classes}\" value=\"{$license_key}\" readonly=\"readonly\">";
|
| 1364 | 1364 | |
| 1365 | 1365 | $custom_html = '<input type="submit" class="button button-small give-license-deactivate" name="' . $id . '_deactivate" value="' . esc_attr__( 'Deactivate License', 'give' ) . '"/>'; |
@@ -1375,11 +1375,11 @@ discard block |
||
| 1375 | 1375 | $messages[] = apply_filters( "{$shortname}_default_addon_notice", esc_html__( 'To receive updates, please enter your valid license key.', 'give' ) );
|
| 1376 | 1376 | } |
| 1377 | 1377 | |
| 1378 | - foreach( $messages as $message ) {
|
|
| 1379 | - $custom_html .= '<div class="give-license-status-notice give-' . $license_status . '">'; |
|
| 1380 | - $custom_html .= '<p>' . $message . '</p>'; |
|
| 1381 | - $custom_html .= '</div>'; |
|
| 1382 | - } |
|
| 1378 | + foreach( $messages as $message ) {
|
|
| 1379 | + $custom_html .= '<div class="give-license-status-notice give-' . $license_status . '">'; |
|
| 1380 | + $custom_html .= '<p>' . $message . '</p>'; |
|
| 1381 | + $custom_html .= '</div>'; |
|
| 1382 | + } |
|
| 1383 | 1383 | |
| 1384 | 1384 | |
| 1385 | 1385 | // Field html. |
@@ -1388,8 +1388,8 @@ discard block |
||
| 1388 | 1388 | // Nonce. |
| 1389 | 1389 | wp_nonce_field( $id . '-nonce', $id . '-nonce' ); |
| 1390 | 1390 | |
| 1391 | - // Print field html. |
|
| 1392 | - echo "<div class=\"give-license-key\"><label for=\"{$id}\">{$addon_name }</label></div><div class=\"give-license-block\">{$custom_html}</div>";
|
|
| 1391 | + // Print field html. |
|
| 1392 | + echo "<div class=\"give-license-key\"><label for=\"{$id}\">{$addon_name }</label></div><div class=\"give-license-block\">{$custom_html}</div>";
|
|
| 1393 | 1393 | } |
| 1394 | 1394 | |
| 1395 | 1395 | |
@@ -86,13 +86,13 @@ discard block |
||
| 86 | 86 | 'disabled' => __( 'Disabled', 'give' ), |
| 87 | 87 | ) |
| 88 | 88 | ), |
| 89 | - array( |
|
| 90 | - 'name' => esc_html__( 'PayPal Standard Gateway Settings Docs Link', 'give' ), |
|
| 91 | - 'id' => 'paypal_standard_gateway_settings_docs_link', |
|
| 92 | - 'url' => esc_url( 'http://docs.givewp.com/paypalstandard' ), |
|
| 93 | - 'title' => __( 'PayPal Standard Gateway Settings', 'give' ), |
|
| 94 | - 'type' => 'give_docs_link', |
|
| 95 | - ), |
|
| 89 | + array( |
|
| 90 | + 'name' => esc_html__( 'PayPal Standard Gateway Settings Docs Link', 'give' ), |
|
| 91 | + 'id' => 'paypal_standard_gateway_settings_docs_link', |
|
| 92 | + 'url' => esc_url( 'http://docs.givewp.com/paypalstandard' ), |
|
| 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' => esc_html__( 'Offline Donations Settings Docs Link', 'give' ), |
|
| 150 | - 'id' => 'offline_gateway_settings_docs_link', |
|
| 151 | - 'url' => esc_url( 'http://docs.givewp.com/offlinegateway' ), |
|
| 152 | - 'title' => __( 'Offline Gateway Settings', 'give' ), |
|
| 153 | - 'type' => 'give_docs_link', |
|
| 154 | - ), |
|
| 148 | + array( |
|
| 149 | + 'name' => esc_html__( 'Offline Donations Settings Docs Link', 'give' ), |
|
| 150 | + 'id' => 'offline_gateway_settings_docs_link', |
|
| 151 | + 'url' => esc_url( 'http://docs.givewp.com/offlinegateway' ), |
|
| 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' => esc_html__( 'Gateways Docs Link', 'give' ), |
|
| 194 | - 'id' => 'gateway_settings_docs_link', |
|
| 195 | - 'url' => esc_url( 'http://docs.givewp.com/gatewayssettings' ), |
|
| 196 | - 'title' => __( 'Gateway Settings', 'give' ), |
|
| 197 | - 'type' => 'give_docs_link', |
|
| 198 | - ), |
|
| 192 | + array( |
|
| 193 | + 'name' => esc_html__( 'Gateways Docs Link', 'give' ), |
|
| 194 | + 'id' => 'gateway_settings_docs_link', |
|
| 195 | + 'url' => esc_url( 'http://docs.givewp.com/gatewayssettings' ), |
|
| 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' |
@@ -87,13 +87,13 @@ discard block |
||
| 87 | 87 | 'disabled' => __( 'Disabled', 'give' ), |
| 88 | 88 | ) |
| 89 | 89 | ), |
| 90 | - array( |
|
| 91 | - 'name' => esc_html__( 'Display Settings Docs Link', 'give' ), |
|
| 92 | - 'id' => 'display_settings_docs_link', |
|
| 93 | - 'url' => esc_url( 'http://docs.givewp.com/displayoptions' ), |
|
| 94 | - 'title' => __( 'Display Options Settings', 'give' ), |
|
| 95 | - 'type' => 'give_docs_link', |
|
| 96 | - ), |
|
| 90 | + array( |
|
| 91 | + 'name' => esc_html__( 'Display Settings Docs Link', 'give' ), |
|
| 92 | + 'id' => 'display_settings_docs_link', |
|
| 93 | + 'url' => esc_url( 'http://docs.givewp.com/displayoptions' ), |
|
| 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' => esc_html__( 'Post Types Docs Link', 'give' ), |
|
| 175 | - 'id' => 'post_types_settings_docs_link', |
|
| 176 | - 'url' => esc_url( 'http://docs.givewp.com/posttypessettings' ), |
|
| 177 | - 'title' => __( 'Post Types Settings', 'give' ), |
|
| 178 | - 'type' => 'give_docs_link', |
|
| 179 | - ), |
|
| 173 | + array( |
|
| 174 | + 'name' => esc_html__( 'Post Types Docs Link', 'give' ), |
|
| 175 | + 'id' => 'post_types_settings_docs_link', |
|
| 176 | + 'url' => esc_url( 'http://docs.givewp.com/posttypessettings' ), |
|
| 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' => esc_html__( 'Taxonomies Docs Link', 'give' ), |
|
| 217 | - 'id' => 'taxonomies_settings_docs_link', |
|
| 218 | - 'url' => esc_url( 'http://docs.givewp.com/taxonomiessettings' ), |
|
| 219 | - 'title' => __( 'Taxonomies Settings', 'give' ), |
|
| 220 | - 'type' => 'give_docs_link', |
|
| 221 | - ), |
|
| 215 | + array( |
|
| 216 | + 'name' => esc_html__( 'Taxonomies Docs Link', 'give' ), |
|
| 217 | + 'id' => 'taxonomies_settings_docs_link', |
|
| 218 | + 'url' => esc_url( 'http://docs.givewp.com/taxonomiessettings' ), |
|
| 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' => esc_html__( 'Terms and Conditions Docs Link', 'give' ), |
|
| 263 | - 'id' => 'terms_settings_docs_link', |
|
| 264 | - 'url' => esc_url( 'http://docs.givewp.com/termssettings' ), |
|
| 265 | - 'title' => __( 'Terms and Conditions Settings', 'give' ), |
|
| 266 | - 'type' => 'give_docs_link', |
|
| 267 | - ), |
|
| 261 | + array( |
|
| 262 | + 'name' => esc_html__( 'Terms and Conditions Docs Link', 'give' ), |
|
| 263 | + 'id' => 'terms_settings_docs_link', |
|
| 264 | + 'url' => esc_url( 'http://docs.givewp.com/termssettings' ), |
|
| 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' |
@@ -87,13 +87,13 @@ |
||
| 87 | 87 | 'disabled' => __( 'Disabled', 'give' ), |
| 88 | 88 | ) |
| 89 | 89 | ), |
| 90 | - array( |
|
| 91 | - 'name' => esc_html__( 'Advanced Settings Docs Link', 'give' ), |
|
| 92 | - 'id' => 'advanced_settings_docs_link', |
|
| 93 | - 'url' => esc_url( 'http://docs.givewp.com/advancedsettings' ), |
|
| 94 | - 'title' => __( 'Advanced Settings', 'give' ), |
|
| 95 | - 'type' => 'give_docs_link', |
|
| 96 | - ), |
|
| 90 | + array( |
|
| 91 | + 'name' => esc_html__( 'Advanced Settings Docs Link', 'give' ), |
|
| 92 | + 'id' => 'advanced_settings_docs_link', |
|
| 93 | + 'url' => esc_url( 'http://docs.givewp.com/advancedsettings' ), |
|
| 94 | + 'title' => __( 'Advanced Settings', 'give' ), |
|
| 95 | + 'type' => 'give_docs_link', |
|
| 96 | + ), |
|
| 97 | 97 | array( |
| 98 | 98 | 'id' => 'give_title_data_control_2', |
| 99 | 99 | '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/accesscontrol' ), |
|
| 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/accesscontrol' ), |
|
| 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/currencysettings' ), |
|
| 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/currencysettings' ), |
|
| 169 | + 'title' => __( 'Currency Settings', 'give' ), |
|
| 170 | + 'type' => 'give_docs_link', |
|
| 171 | + ), |
|
| 172 | 172 | array( |
| 173 | 173 | 'type' => 'title', |
| 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/generaloptions' ), |
|
| 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/generaloptions' ), |
|
| 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' |
@@ -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/emailsettings' ), |
|
| 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/emailsettings' ), |
|
| 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/donationreceipt' ), |
|
| 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/donationreceipt' ), |
|
| 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/donationnotification' ), |
|
| 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/donationnotification' ), |
|
| 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' |
@@ -645,20 +645,20 @@ |
||
| 645 | 645 | } |
| 646 | 646 | |
| 647 | 647 | /** |
| 648 | - * Output the documentation link. |
|
| 649 | - * |
|
| 650 | - * @since 1.8 |
|
| 651 | - * @param array $field { |
|
| 652 | - * Optional. Array of customizable link attributes. |
|
| 653 | - * |
|
| 654 | - * @type string $name Name of input field. Default ''. |
|
| 655 | - * @type string $type Type of input field. Default 'text'. |
|
| 656 | - * @type string $url Value to be passed as a link. Default 'https://givewp.com/documentation'. |
|
| 657 | - * @type string $title Value to be passed as text of link. Default 'Documentation'. |
|
| 658 | - * @type array $attributes List of attributes of input field. Default array(). |
|
| 659 | - * for example: 'attributes' => array( 'placeholder' => '*****', 'class' => '****' ) |
|
| 660 | - * } |
|
| 661 | - * @return void |
|
| 648 | + * Output the documentation link. |
|
| 649 | + * |
|
| 650 | + * @since 1.8 |
|
| 651 | + * @param array $field { |
|
| 652 | + * Optional. Array of customizable link attributes. |
|
| 653 | + * |
|
| 654 | + * @type string $name Name of input field. Default ''. |
|
| 655 | + * @type string $type Type of input field. Default 'text'. |
|
| 656 | + * @type string $url Value to be passed as a link. Default 'https://givewp.com/documentation'. |
|
| 657 | + * @type string $title Value to be passed as text of link. Default 'Documentation'. |
|
| 658 | + * @type array $attributes List of attributes of input field. Default array(). |
|
| 659 | + * for example: 'attributes' => array( 'placeholder' => '*****', 'class' => '****' ) |
|
| 660 | + * } |
|
| 661 | + * @return void |
|
| 662 | 662 | */ |
| 663 | 663 | |
| 664 | 664 | function give_docs_link($field) { |