Skip to content

Commit

Permalink
Merge pull request #5776 from easydigitaldownloads/issue/5404
Browse files Browse the repository at this point in the history
Add consistency to settings labels
  • Loading branch information
sunnyratilal committed Jun 22, 2017
2 parents 9511ee4 + 7c7a549 commit 4fd8c4c
Showing 1 changed file with 13 additions and 80 deletions.
93 changes: 13 additions & 80 deletions includes/admin/settings/register-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function edd_get_registered_settings() {
'main' => array(
'page_settings' => array(
'id' => 'page_settings',
'name' => '<h3>' . __( 'Page Settings', 'easy-digital-downloads' ) . '</h3>',
'name' => '<h3>' . __( 'Pages', 'easy-digital-downloads' ) . '</h3>',
'desc' => '',
'type' => 'header',
'tooltip_title' => __( 'Page Settings', 'easy-digital-downloads' ),
Expand Down Expand Up @@ -319,7 +319,7 @@ function edd_get_registered_settings() {
),
'tracking_settings' => array(
'id' => 'tracking_settings',
'name' => '<h3>' . __( 'Tracking Settings', 'easy-digital-downloads' ) . '</h3>',
'name' => '<h3>' . __( 'Tracking', 'easy-digital-downloads' ) . '</h3>',
'desc' => '',
'type' => 'header',
),
Expand All @@ -334,12 +334,6 @@ function edd_get_registered_settings() {
),
),
'currency' => array(
'currency_settings' => array(
'id' => 'currency_settings',
'name' => '<h3>' . __( 'Currency Settings', 'easy-digital-downloads' ) . '</h3>',
'desc' => '',
'type' => 'header',
),
'currency' => array(
'id' => 'currency',
'name' => __( 'Currency', 'easy-digital-downloads' ),
Expand Down Expand Up @@ -378,7 +372,7 @@ function edd_get_registered_settings() {
'api' => array(
'api_settings' => array(
'id' => 'api_settings',
'name' => '<h3>' . __( 'API Settings', 'easy-digital-downloads' ) . '</h3>',
'name' => '<h3>' . __( 'API', 'easy-digital-downloads' ) . '</h3>',
'desc' => '',
'type' => 'header',
'tooltip_title' => __( 'API Settings', 'easy-digital-downloads' ),
Expand All @@ -402,12 +396,6 @@ function edd_get_registered_settings() {
'gateways' => apply_filters('edd_settings_gateways',
array(
'main' => array(
'gateway_settings' => array(
'id' => 'api_header',
'name' => '<h3>' . __( 'Gateway Settings', 'easy-digital-downloads' ) . '</h3>',
'desc' => '',
'type' => 'header',
),
'test_mode' => array(
'id' => 'test_mode',
'name' => __( 'Test Mode', 'easy-digital-downloads' ),
Expand Down Expand Up @@ -449,11 +437,6 @@ function edd_get_registered_settings() {
'emails' => apply_filters('edd_settings_emails',
array(
'main' => array(
'email_settings_header' => array(
'id' => 'email_settings_header',
'name' => '<h3>' . __( 'Email Settings', 'easy-digital-downloads' ) . '</h3>',
'type' => 'header',
),
'email_template' => array(
'id' => 'email_template',
'name' => __( 'Email Template', 'easy-digital-downloads' ),
Expand Down Expand Up @@ -489,11 +472,6 @@ function edd_get_registered_settings() {
),
),
'purchase_receipts' => array(
'purchase_receipt_settings' => array(
'id' => 'purchase_receipt_settings',
'name' => '<h3>' . __( 'Purchase Receipts', 'easy-digital-downloads' ) . '</h3>',
'type' => 'header',
),
'purchase_receipt_email_settings' => array(
'id' => 'purchase_receipt_email_settings',
'name' => '',
Expand Down Expand Up @@ -523,11 +501,6 @@ function edd_get_registered_settings() {
),
),
'sale_notifications' => array(
'sale_notification_settings' => array(
'id' => 'sale_notification_settings',
'name' => '<h3>' . __( 'Sale Notifications', 'easy-digital-downloads' ) . '</h3>',
'type' => 'header',
),
'sale_notification_subject' => array(
'id' => 'sale_notification_subject',
'name' => __( 'Sale Notification Subject', 'easy-digital-downloads' ),
Expand Down Expand Up @@ -562,11 +535,6 @@ function edd_get_registered_settings() {
'styles' => apply_filters('edd_settings_styles',
array(
'main' => array(
'style_settings' => array(
'id' => 'style_settings',
'name' => '<h3>' . __( 'Style Settings', 'easy-digital-downloads' ) . '</h3>',
'type' => 'header',
),
'disable_styles' => array(
'id' => 'disable_styles',
'name' => __( 'Disable Styles', 'easy-digital-downloads' ),
Expand Down Expand Up @@ -602,11 +570,6 @@ function edd_get_registered_settings() {
'taxes' => apply_filters('edd_settings_taxes',
array(
'main' => array(
'tax_settings' => array(
'id' => 'tax_settings',
'name' => '<h3>' . __( 'Tax Settings', 'easy-digital-downloads' ) . '</h3>',
'type' => 'header',
),
'tax_help' => array(
'id' => 'tax_help',
'name' => __( 'Need help?', 'easy-digital-downloads' ),
Expand Down Expand Up @@ -682,11 +645,6 @@ function edd_get_registered_settings() {
'misc' => apply_filters('edd_settings_misc',
array(
'main' => array(
'misc_settings' => array(
'id' => 'misc_settings',
'name' => '<h3>' . __( 'Misc Settings', 'easy-digital-downloads' ) . '</h3>',
'type' => 'header',
),
'redirect_on_add' => array(
'id' => 'redirect_on_add',
'name' => __( 'Redirect to Checkout', 'easy-digital-downloads' ),
Expand All @@ -709,11 +667,6 @@ function edd_get_registered_settings() {
),
),
'checkout' => array(
'checkout_settings' => array(
'id' => 'checkout_settings',
'name' => '<h3>' . __( 'Checkout Settings', 'easy-digital-downloads' ) . '</h3>',
'type' => 'header',
),
'enforce_ssl' => array(
'id' => 'enforce_ssl',
'name' => __( 'Enforce SSL on Checkout', 'easy-digital-downloads' ),
Expand Down Expand Up @@ -757,11 +710,6 @@ function edd_get_registered_settings() {
),
),
'button_text' => array(
'button_settings' => array(
'id' => 'button_settings',
'name' => '<h3>' . __( 'Button Text', 'easy-digital-downloads' ) . '</h3>',
'type' => 'header',
),
'checkout_label' => array(
'id' => 'checkout_label',
'name' => __( 'Complete Purchase Text', 'easy-digital-downloads' ),
Expand Down Expand Up @@ -792,11 +740,6 @@ function edd_get_registered_settings() {
),
),
'file_downloads' => array(
'file_settings' => array(
'id' => 'file_settings',
'name' => '<h3>' . __( 'File Download Settings', 'easy-digital-downloads' ) . '</h3>',
'type' => 'header',
),
'download_method' => array(
'id' => 'download_method',
'name' => __( 'Download Method', 'easy-digital-downloads' ),
Expand Down Expand Up @@ -843,11 +786,6 @@ function edd_get_registered_settings() {
),
),
'accounting' => array(
'accounting_settings' => array(
'id' => 'accounting_settings',
'name' => '<h3>' . __( 'Accounting Settings', 'easy-digital-downloads' ) . '</h3>',
'type' => 'header',
),
'enable_skus' => array(
'id' => 'enable_skus',
'name' => __( 'Enable SKU Entry', 'easy-digital-downloads' ),
Expand Down Expand Up @@ -882,11 +820,6 @@ function edd_get_registered_settings() {
),
),
'site_terms' => array(
'terms_settings' => array(
'id' => 'terms_settings',
'name' => '<h3>' . __( 'Agreement Settings', 'easy-digital-downloads' ) . '</h3>',
'type' => 'header',
),
'show_agree_to_terms' => array(
'id' => 'show_agree_to_terms',
'name' => __( 'Agree to Terms', 'easy-digital-downloads' ),
Expand Down Expand Up @@ -1296,35 +1229,35 @@ function edd_get_registered_settings_sections() {

$sections = array(
'general' => apply_filters( 'edd_settings_sections_general', array(
'main' => __( 'General Settings', 'easy-digital-downloads' ),
'currency' => __( 'Currency Settings', 'easy-digital-downloads' ),
'api' => __( 'API Settings', 'easy-digital-downloads' ),
'main' => __( 'General', 'easy-digital-downloads' ),
'currency' => __( 'Currency', 'easy-digital-downloads' ),
'api' => __( 'API', 'easy-digital-downloads' ),
) ),
'gateways' => apply_filters( 'edd_settings_sections_gateways', array(
'main' => __( 'Gateway Settings', 'easy-digital-downloads' ),
'main' => __( 'General', 'easy-digital-downloads' ),
'paypal' => __( 'PayPal Standard', 'easy-digital-downloads' ),
) ),
'emails' => apply_filters( 'edd_settings_sections_emails', array(
'main' => __( 'Email Settings', 'easy-digital-downloads' ),
'main' => __( 'General', 'easy-digital-downloads' ),
'purchase_receipts' => __( 'Purchase Receipts', 'easy-digital-downloads' ),
'sale_notifications' => __( 'New Sale Notifications', 'easy-digital-downloads' ),
) ),
'styles' => apply_filters( 'edd_settings_sections_styles', array(
'main' => __( 'Style Settings', 'easy-digital-downloads' ),
'main' => __( 'General', 'easy-digital-downloads' ),
) ),
'taxes' => apply_filters( 'edd_settings_sections_taxes', array(
'main' => __( 'Tax Settings', 'easy-digital-downloads' ),
'main' => __( 'General', 'easy-digital-downloads' ),
) ),
'extensions' => apply_filters( 'edd_settings_sections_extensions', array(
'main' => __( 'Main', 'easy-digital-downloads' )
) ),
'licenses' => apply_filters( 'edd_settings_sections_licenses', array() ),
'misc' => apply_filters( 'edd_settings_sections_misc', array(
'main' => __( 'Misc Settings', 'easy-digital-downloads' ),
'checkout' => __( 'Checkout Settings', 'easy-digital-downloads' ),
'main' => __( 'Miscellaneous', 'easy-digital-downloads' ),
'checkout' => __( 'Checkout', 'easy-digital-downloads' ),
'button_text' => __( 'Button Text', 'easy-digital-downloads' ),
'file_downloads' => __( 'File Downloads', 'easy-digital-downloads' ),
'accounting' => __( 'Accounting Settings', 'easy-digital-downloads' ),
'accounting' => __( 'Accounting', 'easy-digital-downloads' ),
'site_terms' => __( 'Terms of Agreement', 'easy-digital-downloads' ),
) ),
);
Expand Down

0 comments on commit 4fd8c4c

Please sign in to comment.