From f05ab774184ff3605771688323b6654f301812d3 Mon Sep 17 00:00:00 2001 From: David Stone Date: Sat, 15 Feb 2025 23:19:24 -0700 Subject: [PATCH] Update tranlation text domain --- assets/img/logo.webp | Bin 4750 -> 7386 bytes data/translatable-strings.php | 16 +- inc/admin-pages/class-about-admin-page.php | 6 +- inc/admin-pages/class-base-admin-page.php | 2 +- .../class-base-customer-facing-admin-page.php | 16 +- .../class-broadcast-edit-admin-page.php | 64 +-- .../class-broadcast-list-admin-page.php | 70 +-- .../class-checkout-form-edit-admin-page.php | 192 +++---- .../class-checkout-form-list-admin-page.php | 34 +- .../class-customer-edit-admin-page.php | 142 ++--- .../class-customer-list-admin-page.php | 42 +- .../class-customizer-admin-page.php | 2 +- .../class-dashboard-admin-page.php | 52 +- .../class-discount-code-edit-admin-page.php | 120 ++--- .../class-discount-code-list-admin-page.php | 10 +- .../class-domain-edit-admin-page.php | 78 +-- .../class-domain-list-admin-page.php | 44 +- inc/admin-pages/class-edit-admin-page.php | 42 +- .../class-email-edit-admin-page.php | 110 ++-- .../class-email-list-admin-page.php | 52 +- ...ss-email-template-customize-admin-page.php | 132 ++--- .../class-event-list-admin-page.php | 10 +- .../class-event-view-admin-page.php | 30 +- ...-hosting-integration-wizard-admin-page.php | 14 +- ...-invoice-template-customize-admin-page.php | 60 +-- .../class-jobs-list-admin-page.php | 6 +- inc/admin-pages/class-list-admin-page.php | 4 +- .../class-membership-edit-admin-page.php | 224 ++++---- .../class-membership-list-admin-page.php | 42 +- .../class-migration-alert-admin-page.php | 6 +- .../class-payment-edit-admin-page.php | 208 ++++---- .../class-payment-list-admin-page.php | 38 +- .../class-placeholders-admin-page.php | 16 +- .../class-product-edit-admin-page.php | 254 ++++----- .../class-product-list-admin-page.php | 10 +- inc/admin-pages/class-settings-admin-page.php | 68 +-- .../class-setup-wizard-admin-page.php | 82 +-- .../class-shortcodes-admin-page.php | 14 +- .../class-site-edit-admin-page.php | 130 ++--- .../class-site-list-admin-page.php | 70 +-- .../class-system-info-admin-page.php | 38 +- .../class-tax-rates-admin-page.php | 26 +- ...emplate-previewer-customize-admin-page.php | 58 +- inc/admin-pages/class-top-admin-nav-menu.php | 38 +- .../class-view-logs-admin-page.php | 48 +- .../class-webhook-edit-admin-page.php | 70 +-- .../class-webhook-list-admin-page.php | 36 +- inc/admin-pages/class-wizard-admin-page.php | 18 +- .../class-account-admin-page.php | 8 +- .../class-add-new-site-admin-page.php | 6 +- .../class-checkout-admin-page.php | 6 +- .../class-my-sites-admin-page.php | 6 +- .../class-template-switching-admin-page.php | 6 +- .../debug/class-debug-admin-page.php | 8 +- inc/api/class-register-endpoint.php | 78 +-- inc/api/schemas/broadcast-create.php | 26 +- inc/api/schemas/broadcast-update.php | 26 +- inc/api/schemas/checkout-form-create.php | 26 +- inc/api/schemas/checkout-form-update.php | 26 +- inc/api/schemas/customer-create.php | 28 +- inc/api/schemas/customer-update.php | 28 +- inc/api/schemas/discount-code-create.php | 38 +- inc/api/schemas/discount-code-update.php | 38 +- inc/api/schemas/domain-create.php | 20 +- inc/api/schemas/domain-update.php | 20 +- inc/api/schemas/email-create.php | 44 +- inc/api/schemas/email-update.php | 44 +- inc/api/schemas/event-create.php | 20 +- inc/api/schemas/event-update.php | 20 +- inc/api/schemas/membership-create.php | 60 +-- inc/api/schemas/membership-update.php | 60 +-- inc/api/schemas/payment-create.php | 40 +- inc/api/schemas/payment-update.php | 40 +- inc/api/schemas/product-create.php | 62 +-- inc/api/schemas/product-update.php | 62 +-- inc/api/schemas/site-create.php | 54 +- inc/api/schemas/site-update.php | 54 +- inc/api/schemas/webhook-create.php | 24 +- inc/api/schemas/webhook-update.php | 24 +- inc/api/trait-rest-api.php | 12 +- inc/api/trait-wp-cli.php | 12 +- inc/checkout/class-cart.php | 44 +- inc/checkout/class-checkout-pages.php | 22 +- inc/checkout/class-checkout.php | 30 +- inc/checkout/class-legacy-checkout.php | 66 +-- inc/checkout/class-line-item.php | 2 +- .../signup-fields/class-base-signup-field.php | 62 +-- .../class-signup-field-billing-address.php | 10 +- .../class-signup-field-checkbox.php | 10 +- .../class-signup-field-color.php | 10 +- .../class-signup-field-discount-code.php | 8 +- .../class-signup-field-email.php | 18 +- .../class-signup-field-hidden.php | 12 +- .../class-signup-field-order-bump.php | 28 +- .../class-signup-field-order-summary.php | 22 +- .../class-signup-field-password.php | 16 +- .../class-signup-field-payment.php | 8 +- .../class-signup-field-period-selection.php | 38 +- .../class-signup-field-pricing-table.php | 32 +- .../class-signup-field-products.php | 14 +- .../class-signup-field-select.php | 24 +- .../class-signup-field-shortcode.php | 14 +- .../class-signup-field-site-title.php | 10 +- .../class-signup-field-site-url.php | 32 +- .../class-signup-field-steps.php | 14 +- .../class-signup-field-submit-button.php | 20 +- .../class-signup-field-template-selection.php | 38 +- .../class-signup-field-terms-of-use.php | 22 +- .../signup-fields/class-signup-field-text.php | 6 +- .../class-signup-field-username.php | 10 +- .../class-base-field-template.php | 4 +- ...class-simple-order-bump-field-template.php | 4 +- ...ass-clean-order-summary-field-template.php | 4 +- ...-clean-period-selection-field-template.php | 4 +- ...legacy-period-selection-field-template.php | 4 +- ...ss-legacy-pricing-table-field-template.php | 4 +- ...lass-list-pricing-table-field-template.php | 4 +- .../class-clean-steps-field-template.php | 4 +- .../class-legacy-steps-field-template.php | 4 +- .../class-minimal-steps-field-template.php | 4 +- ...lean-template-selection-field-template.php | 4 +- ...gacy-template-selection-field-template.php | 4 +- ...imal-template-selection-field-template.php | 4 +- inc/class-api.php | 38 +- inc/class-dashboard-widgets.php | 40 +- inc/class-domain-mapping.php | 2 +- inc/class-hooks.php | 4 +- inc/class-logger.php | 2 +- inc/class-maintenance-mode.php | 16 +- inc/class-newsletter.php | 4 +- inc/class-requirements.php | 8 +- inc/class-scripts.php | 38 +- inc/class-settings.php | 376 ++++++------- inc/class-sunrise.php | 4 +- inc/class-user-switching.php | 4 +- inc/class-whitelabel.php | 36 +- inc/compat/class-general-compat.php | 2 +- inc/compat/class-gutenberg-support.php | 2 +- inc/compat/class-legacy-shortcodes.php | 18 +- inc/compat/class-multiple-accounts-compat.php | 14 +- inc/compat/class-product-compat.php | 18 +- inc/country/class-country-br.php | 56 +- inc/country/class-country-ca.php | 28 +- inc/country/class-country-cn.php | 70 +-- inc/country/class-country-de.php | 34 +- inc/country/class-country-es.php | 58 +- inc/country/class-country-fr.php | 248 ++++----- inc/country/class-country-gb.php | 496 ++++++++--------- inc/country/class-country-in.php | 74 +-- inc/country/class-country-jp.php | 96 ++-- inc/country/class-country-mx.php | 66 +-- inc/country/class-country-my.php | 34 +- inc/country/class-country-ne.php | 16 +- inc/country/class-country-nl.php | 32 +- inc/country/class-country-ru.php | 170 +++--- inc/country/class-country-sg.php | 12 +- inc/country/class-country-tr.php | 164 +++--- inc/country/class-country-us.php | 134 ++--- inc/country/class-country-za.php | 20 +- inc/country/class-country.php | 30 +- inc/database/domains/class-domain-stage.php | 10 +- .../memberships/class-membership-status.php | 12 +- .../payments/class-payment-status.php | 14 +- inc/database/products/class-product-type.php | 6 +- inc/database/sites/class-site-type.php | 10 +- inc/debug/class-debug.php | 70 +-- inc/deprecated/deprecated.php | 4 +- .../query-monitor/panel/class-overview.php | 4 +- inc/domain-mapping/class-helper.php | 2 +- inc/functions/admin.php | 4 +- inc/functions/countries.php | 502 +++++++++--------- inc/functions/currency.php | 98 ++-- inc/functions/customer.php | 4 +- inc/functions/date.php | 10 +- inc/functions/gateway.php | 2 +- inc/functions/legacy.php | 2 +- inc/functions/limitations.php | 4 +- inc/functions/markup-helpers.php | 2 +- inc/functions/membership.php | 12 +- inc/functions/mock.php | 8 +- inc/functions/settings.php | 32 +- inc/functions/sunrise.php | 4 +- inc/functions/user.php | 2 +- inc/gateways/class-base-gateway.php | 8 +- inc/gateways/class-base-stripe-gateway.php | 54 +- inc/gateways/class-manual-gateway.php | 18 +- inc/gateways/class-paypal-gateway.php | 112 ++-- .../class-stripe-checkout-gateway.php | 48 +- inc/gateways/class-stripe-gateway.php | 56 +- inc/helpers/class-screenshot.php | 4 +- inc/helpers/class-site-duplicator.php | 14 +- inc/helpers/class-validator.php | 18 +- inc/helpers/class-wp-config.php | 6 +- .../validation-rules/class-checkout-steps.php | 4 +- .../validation-rules/class-products.php | 2 +- .../validation-rules/class-site-template.php | 8 +- inc/helpers/validation-rules/class-unique.php | 2 +- inc/installers/class-core-installer.php | 24 +- .../class-default-content-installer.php | 72 +-- inc/installers/class-migrator.php | 92 ++-- .../class-base-host-provider.php | 24 +- .../class-closte-host-provider.php | 4 +- .../class-cloudflare-host-provider.php | 20 +- .../class-cloudways-host-provider.php | 34 +- .../class-cpanel-host-provider.php | 28 +- .../class-gridpane-host-provider.php | 8 +- .../class-runcloud-host-provider.php | 28 +- .../class-serverpilot-host-provider.php | 22 +- .../class-wpengine-host-provider.php | 4 +- .../class-wpmudev-host-provider.php | 8 +- .../cpanel-api/class-cpanel-api.php | 8 +- inc/internal/class-memory-trap.php | 2 +- inc/invoices/class-invoice.php | 4 +- .../class-customer-user-role-limits.php | 4 +- inc/limits/class-plugin-limits.php | 12 +- inc/limits/class-post-type-limits.php | 12 +- inc/limits/class-theme-limits.php | 4 +- inc/list-tables/class-base-list-table.php | 56 +- .../class-broadcast-list-table.php | 68 +-- .../class-checkout-form-list-table.php | 28 +- inc/list-tables/class-customer-list-table.php | 40 +- .../class-customers-membership-list-table.php | 16 +- .../class-customers-payment-list-table.php | 6 +- .../class-customers-site-list-table.php | 10 +- .../class-discount-code-list-table.php | 38 +- inc/list-tables/class-domain-list-table.php | 48 +- inc/list-tables/class-email-list-table.php | 48 +- inc/list-tables/class-event-list-table.php | 40 +- .../class-inside-events-list-table.php | 8 +- .../class-line-item-list-table.php | 26 +- .../class-membership-line-item-list-table.php | 18 +- .../class-membership-list-table-widget.php | 26 +- .../class-membership-list-table.php | 64 +-- .../class-memberships-site-list-table.php | 10 +- .../class-payment-line-item-list-table.php | 22 +- .../class-payment-list-table-widget.php | 18 +- inc/list-tables/class-payment-list-table.php | 64 +-- inc/list-tables/class-product-list-table.php | 48 +- .../class-site-customer-list-table.php | 10 +- inc/list-tables/class-site-list-table.php | 62 +-- .../class-sites-domain-list-table.php | 6 +- inc/list-tables/class-webhook-list-table.php | 32 +- .../class-invoice-list-table.php | 8 +- .../customer-panel/class-site-list-table.php | 2 +- inc/managers/class-block-manager.php | 2 +- inc/managers/class-broadcast-manager.php | 4 +- inc/managers/class-customer-manager.php | 20 +- inc/managers/class-domain-manager.php | 74 +-- inc/managers/class-email-manager.php | 50 +- inc/managers/class-event-manager.php | 32 +- .../class-field-templates-manager.php | 2 +- inc/managers/class-form-manager.php | 20 +- inc/managers/class-gateway-manager.php | 30 +- inc/managers/class-limitation-manager.php | 124 ++--- inc/managers/class-membership-manager.php | 18 +- inc/managers/class-notes-manager.php | 38 +- inc/managers/class-notification-manager.php | 4 +- inc/managers/class-payment-manager.php | 16 +- inc/managers/class-site-manager.php | 24 +- inc/managers/class-visits-manager.php | 2 +- inc/managers/class-webhook-manager.php | 4 +- inc/models/class-base-model.php | 10 +- inc/models/class-checkout-form.php | 116 ++-- inc/models/class-customer.php | 6 +- inc/models/class-discount-code.php | 18 +- inc/models/class-domain.php | 2 +- inc/models/class-event.php | 18 +- inc/models/class-membership.php | 20 +- inc/models/class-payment.php | 12 +- inc/models/class-product.php | 20 +- inc/models/class-site.php | 2 +- inc/objects/class-billing-address.php | 32 +- inc/objects/class-note.php | 6 +- .../class-template-placeholders.php | 4 +- inc/sso/class-sso.php | 2 +- inc/tax/class-dashboard-taxes-tab.php | 16 +- inc/tax/class-tax.php | 40 +- .../trait-wp-ultimo-coupon-deprecated.php | 6 +- .../trait-wp-ultimo-plan-deprecated.php | 26 +- .../trait-wp-ultimo-settings-deprecated.php | 4 +- .../trait-wp-ultimo-site-deprecated.php | 2 +- ...rait-wp-ultimo-subscription-deprecated.php | 2 +- inc/ui/class-account-summary-element.php | 20 +- inc/ui/class-base-element.php | 22 +- inc/ui/class-billing-info-element.php | 28 +- inc/ui/class-checkout-element.php | 56 +- inc/ui/class-current-membership-element.php | 54 +- inc/ui/class-current-site-element.php | 62 +-- inc/ui/class-domain-mapping-element.php | 64 +-- inc/ui/class-invoices-element.php | 24 +- inc/ui/class-jumper.php | 56 +- inc/ui/class-limits-element.php | 24 +- inc/ui/class-login-form-element.php | 96 ++-- inc/ui/class-my-sites-element.php | 44 +- inc/ui/class-payment-methods-element.php | 20 +- inc/ui/class-simple-text-element.php | 20 +- inc/ui/class-site-actions-element.php | 156 +++--- inc/ui/class-site-maintenance-element.php | 26 +- inc/ui/class-template-previewer.php | 4 +- inc/ui/class-template-switching-element.php | 26 +- inc/ui/class-thank-you-element.php | 56 +- inc/ui/class-tours.php | 4 +- sunrise.php | 3 + views/about.php | 2 +- views/admin-pages/fields/field-dashicon.php | 2 +- views/admin-pages/fields/field-image.php | 6 +- views/admin-pages/fields/field-repeater.php | 2 +- views/admin-pages/fields/field-select.php | 8 +- .../admin-pages/fields/field-text-display.php | 10 +- views/admin-pages/fields/field-text-edit.php | 6 +- views/admin-pages/fields/field-text.php | 6 +- .../fields/partials/field-description.php | 2 +- views/base/centered.php | 2 +- views/base/checkout-forms/js-templates.php | 20 +- views/base/checkout-forms/steps.php | 72 +-- views/base/customers/grid-item.php | 50 +- views/base/edit.php | 6 +- views/base/edit/display-notes.php | 6 +- views/base/edit/editor-customizer.php | 6 +- views/base/edit/widget-list-table.php | 2 +- views/base/edit/widget-tabs.php | 8 +- views/base/empty-state.php | 10 +- views/base/filter.php | 46 +- views/base/list.php | 4 +- views/base/products/grid-item.php | 12 +- views/base/responsive-table-row.php | 2 +- views/base/settings.php | 6 +- views/base/sites/grid-item.php | 32 +- views/base/wizard/submit-box.php | 4 +- views/broadcast/widget-targets.php | 2 +- views/checkout/fields/field-password.php | 2 +- .../checkout/partials/pricing-table-list.php | 4 +- views/checkout/paypal/confirm.php | 32 +- views/checkout/register.php | 2 +- .../checkout/templates/order-bump/simple.php | 4 +- .../templates/order-summary/simple.php | 36 +- .../templates/pricing-table/legacy.php | 20 +- views/checkout/templates/steps/clean.php | 4 +- views/checkout/templates/steps/minimal.php | 4 +- .../templates/template-selection/clean.php | 8 +- .../templates/template-selection/legacy.php | 18 +- .../templates/template-selection/minimal.php | 6 +- views/customers/widget-avatar.php | 12 +- .../dashboard-statistics/widget-countries.php | 12 +- views/dashboard-statistics/widget-forms.php | 12 +- .../widget-most-visited-sites.php | 20 +- .../widget-mrr-growth.php | 2 +- .../widget-new-accounts.php | 8 +- views/dashboard-statistics/widget-revenue.php | 14 +- .../widget-tax-by-code.php | 18 +- .../widget-tax-by-day.php | 22 +- .../dashboard-statistics/widget-tax-graph.php | 2 +- views/dashboard-statistics/widget-taxes.php | 2 +- views/dashboard-widgets/account-summary.php | 18 +- views/dashboard-widgets/activity-stream.php | 14 +- views/dashboard-widgets/billing-info.php | 12 +- .../current-membership-product-details.php | 4 +- .../dashboard-widgets/current-membership.php | 28 +- views/dashboard-widgets/current-site.php | 6 +- views/dashboard-widgets/domain-mapping.php | 16 +- views/dashboard-widgets/first-steps.php | 8 +- views/dashboard-widgets/invoices.php | 6 +- views/dashboard-widgets/limits-and-quotas.php | 8 +- views/dashboard-widgets/login-form.php | 6 +- views/dashboard-widgets/my-sites.php | 14 +- views/dashboard-widgets/site-actions.php | 4 +- views/dashboard-widgets/summary.php | 8 +- views/dashboard-widgets/thank-you.php | 40 +- views/domain/dns-table.php | 12 +- views/domain/log.php | 4 +- views/email/widget-placeholders.php | 8 +- views/emails/admin/domain-created.php | 56 +- views/emails/admin/payment-received.php | 64 +-- views/emails/admin/site-published.php | 52 +- .../emails/customer/confirm-email-address.php | 10 +- views/emails/customer/payment-received.php | 24 +- .../customer/renewal-payment-created.php | 18 +- views/emails/customer/site-published.php | 16 +- views/events/widget-initiator.php | 6 +- views/events/widget-message.php | 2 +- views/events/widget-payload.php | 2 +- views/invoice/template.php | 41 +- .../signup/pricing-table/coupon-code.php | 10 +- .../pricing-table/frequency-selector.php | 6 +- .../legacy/signup/pricing-table/no-plans.php | 2 +- views/legacy/signup/pricing-table/plan.php | 18 +- views/legacy/signup/signup-main.php | 4 +- views/legacy/signup/signup-nav-links.php | 4 +- .../legacy/signup/signup-steps-navigation.php | 2 +- .../signup/steps/step-domain-url-preview.php | 4 +- views/limitations/plugin-selector.php | 26 +- views/limitations/site-template-selector.php | 10 +- views/limitations/theme-selector.php | 20 +- views/memberships/product-list.php | 4 +- views/payments/line-item-actions.php | 4 +- views/payments/tax-details.php | 4 +- views/settings/fields/field-image.php | 2 +- .../settings/fields/field-multi_checkbox.php | 2 +- views/shortcodes/shortcodes.php | 14 +- views/sites/edit-placeholders.php | 16 +- views/system-info/system-info-table.php | 2 +- views/system-info/system-info.php | 6 +- views/taxes/list.php | 36 +- views/ui/branding/footer.php | 10 +- views/ui/branding/header.php | 2 +- views/ui/container-toggle.php | 10 +- views/ui/jumper-trigger.php | 4 +- views/ui/jumper.php | 36 +- views/ui/selectize-templates.php | 6 +- views/ui/template-previewer.php | 14 +- views/ui/toolbox.php | 14 +- .../wizards/host-integrations/activation.php | 14 +- .../cloudflare-instructions.php | 34 +- .../configuration-results.php | 14 +- .../host-integrations/configuration.php | 10 +- .../gridpane-instructions.php | 10 +- views/wizards/host-integrations/ready.php | 6 +- .../runcloud-instructions.php | 26 +- views/wizards/host-integrations/test.php | 24 +- views/wizards/setup/alert.php | 8 +- views/wizards/setup/installation_steps.php | 10 +- views/wizards/setup/ready.php | 12 +- views/wizards/setup/requirements_table.php | 26 +- views/wizards/setup/support_terms.php | 16 +- 424 files changed, 6368 insertions(+), 6368 deletions(-) diff --git a/assets/img/logo.webp b/assets/img/logo.webp index dcc99fab64255441abd8ca3f7dd58f5c73524744..b5829425f610efe33454e4510968a29a1c937c2a 100644 GIT binary patch literal 7386 zcmV<093|sYNk&G}8~^}UMM6+kP&iD*8~^|>0s=7*Rbi3;@0nve@5wjkoO8}O-;11c z&Kc#LbB-tnW^*$$Q!l_fQu%$Ke|X-0&(qx(Jd|>`=iQsGL>R;{ZinHK3tR)eV9IqQe9lPYDPJ^djV}B{VoU z%_`)?2KHivZ}k$y2D#1-Zi&nuw2XE_)&^X4LvO=XTEYPi+elI*=bz>A&50Qv7LIJ& zrmfNcUOd~jZ8Q4OkAC*kTM_^OEE~zTZQHhO-{oxEwr$(CZR71f+cqu8w(7Q0A8}}n$`9yQ7Vjg5UO$b%4C6VAz?wo&yfXkU^Q8|TL@dgyTgKY zBEO;!kEs8stEUYcAEk2Az zlLaD6*&^TKHM*tFk?gQoJuwAa7F!lO76*1%oD5i83|oA&n6c@HK>%4>ihxq9$ZlC51$nk?>(v3P9a6-ncSMLNr( zlc6rB48{#7x-G0@l17BwS@gSL#mQb~)I}Dp!u(j+OPdvPSERU=*FZnA-BAUrq!cq2 zN>83;iy&LaFr5_&MOkYLV3?7$@GeVP6f;+nHYR4T&qZm$7NV3}j3j0oD0wk=F3Yp$ z$lXVZ#IbT%U>hMgZ)3Sf%#np0zff2(II9wNSZp@9U^phJZ1GF9=%Qi4IKKRhI-dgz z3PPn|SspL1oH+^{)l83yECLwjjHsTWUSvV0bqAm68Ifn|CFP74SkwzS=^*S5h}|O2 z9J&0+BBG=k)71it3C=Vy%#aWq&~i+6L|(L0ZlT!Y36%ni9@gikO&%|=oH=s2PO=Il z6+LrEEC=-Jpgdqe&}FCrE zBe#xF6Vy~EIc0=sVN63^q&CqQB8p~eqHi~nUwNia!eG?9^hACC7B@B?czF#R@LE+> z*tBX4a<>S!V2cq_zo0saA-7ToM46bp>;~VHjJJ3t0}i9xESC<@+o zK0P`txw~l*W{}v#HfMs9c4AsBnt3leXE1Gq7O?W5@Ur$K7nnKjf1)xtX~$}%)niOF zMNOl26UIdoQnXl?Fzkl;I-Y`IsBN8HN^-RHuH?!*$yz(|;!f6}9oRPHNMnD;21Cq3 zscm^EK3~~CKGlgJ^U9th-tOIGu47YU>(t~lN@Zi6tQHLMr;SIpbDo)k4?4Ap`Unv$3{|69%ugXjlgO*Y9FZo+v&dFf zin) z>L?YxXfrX5|N5g5x{|i1ENMyKdGu&XzQ1>d;&?BB=pvUdV#Ej&`y(Un;dcA8{#c zL?>{7uUhIh>{t^Q4lz5*TJy9Z$4Qn(#H^K@>S5vPCG#phM_RWb_p}P{WoHLcPVa!8 z@=j%*&WHmt3-;o>!byf0w%vG@|l^D?6_7Zb_ zfY1%rc4NdRCk_fwlFF;}9O+K@YEMFz@oX7LTmSRhi8|f3(?rj zw8<%N0ZWw)Sx9A=DPR`izK=AYQes+jf%uv0nIJ1f=D`|S!Ws?VQSIaHSzixN=M+Yz z=_9I%%L7=QLlJC^l!-M?gOrheBbwFn^sK071FFq{8RMc-=`PS=N^aXES|=;Nsg2WN zGOyB_xV3Dj(jhv91La-la8%R*-$Sf`#j1(M3YFkc7F%Rw3E39UOvp;2C2bs9hWX&4 z5_BDGOU~e$1g-%r{g`cevvWvZU9tif)RdP2FE`Gv^vCCW3>s5f8ouGyL{xcZYT2k%x(8Ii%#1SxL{ikvX;o93E39jm#XwCO zz1sD^LUbh(N~&X#jvjL=594KLL9~V+HyXp597x2LvOCIoQNE0C6?SPhDwSReYJ_v+ zBo5dbWoYmg$0s!_T+k?>c4}HR?e#!7fos79n82@Uqp}w*pwrQH&{7@U?3e|ct8Qr4 zT3U=)*|nj?d?3b0r5WJH*v>eEYtn>e17dhQH#t#eOS@wnd~EtaZWkD^RykQGdxfXIbJ&tU#AUmghnvY7*4RNdhCKWiNQQ}xx zdiQK=aU>ETyNzs|z@z$3Uwo1vTgDd3MQXtm$LcBiq-8r|+C>{+!(|p(EX|iC5D6s= zQe^Vd#r))KT1c|;Dl09`oP$x@i#8#vgzA{4c1k*5NTE{dcBrEN@Fd)!lWp_tLzFbhIU11mMCCzNF6*G6^`MOj z4}e2b;E?r*=jc{kuO^`%j9HLo#FV-=LDb!V&)3>(F=Gz2Gfw> zBo>4OZ`IUXkZnMylEV0I=+zRj(bP8!H>qPpUU?Wx;yLNBNmt>EMh)wP7GfQ30X$;^ z|KuXe{0P^q;ET~zQ&aOoh#S#0adW{8%kF&Xmk-4@r|+dA?njkq30?{Y9*S$ zHBik%iI&>l!7AJbrrD-M*Fp!R8Yf;EmJ@h|z(H!p-3M6mxB~wI3!PxIi_ELk93gx0 z!?mQdKTSMeONo)kRFYYWqi3~w)btwoRkO{BE=CoaJ_*FjFlvA+;p#M1L1^u!Mo_}| z?@g1t*1;k)o+Lc-WG2K@!PKY&EnlQ5bh*Sb9T@A>T7Otr4Df-Ye9?Qrj-;BaQfi

kppQq_=IR$T zpYMN>n2S^S`|41ETWRH+HlbEG$5t<*gB zgpoCnmmxK(%R>E(JoQ8MUcz}B`0SE(3;3d--PbL!`v@>>F9+wfNj!xUy1tL6A8CZ% zQfW+llv9lAk*({Ysga4KE=LAa%SioVfg(LeTF)Vs8ABEz;(VM+-AFylh*o3FLPeR~ zlt~Y%bq%PDz61pZ#)bHIkrZs7$RkUzvMIG!h|D6oyA5SVwz7Hc%g7=y#Wo@SmpfdUmz&nW(!-!MZ0te3c=E!^wa*EM1&etBf=RWr%~?|6Hp^2oM5<{{M0p6O&aDcNip3)SEt7s| z;$@ce{>PQ+$B)lruV)^n1cmYHDw2vtL@8A94qgB36SC09o;`2gk57UGG6}aTKz`ig zip65cWAAx;&U>Z#a6nP}SiBFU#|aSvxx)Lm{f5Kr_{_~0`~GiHR6iC|yO=6K*=Y~> z_X>q7PkY~JUcTnEJxl}<=zT)6BQ)}!(Y~N5eHtA*w?Zg;Nx@-UEDEUtRC@@CYz{Wi z@xAN_mFy2HkXLb1C}m$zfll9x!w(_MOR@kehfaq)#tHjK4eD;ALfFZsLj@z0%>;{@ zVDQK)u2M)rTbSbZ6NVyM<^S+JE>xjAx5RnYR{ExO@KL0M9^pK7Z>s}--<d3m8QoN zZp5|j-)&bU@=eO?z#)AW3+uWj0W?=>SkXPIM0Je`R~&UmVtzz*9XLduf(%Fs_;`Am z-yyuB3N0nvamL3~`8$`gSGlgb4jfV=p${sn_AL+eXMR0yBw|T@2Jw^C({`M3^ysl; zJ9g|ia^&#g!`ruS+xEyuK63Bg{ZHG!Z{NPnPP}KdFIrm<9Xj+7J9gP|+>WO?aY)Fy zMY{4jaHzG`_(-^cjsqpKW~5?Kd0K_l%dV&4aomnwc09z6Lx&E%XS6Tu*nH;Z&HL=w zzkmPUy^nn4wr$(DA3l8e$dMyEb{so)^ynF9q#v?hD7@=R>%bv(Z3Aqmu~T5D%PZ)X z=aK~&sZ9>f6*pBQd1+Cdyi;Cw?eoIj$Id(=TmnsL9XRA&;RJ+`0;kOY2k`yR$kYJR zbsDv45Za_3^2XD)9Z%bu71x17#$72S1#&z+Ac}U8RUx(T3fSXnGbf&?=#lz}hitPw zNpT%G8chwL|i;dj}GKv00q_7v)vRDoWIA8ikeW`aER23l2ZTJu2(KA@1x8 z6aUKwiAynX2NZ?zzYE!$rgt>E&^^tSIk7qr&X7_n8HWACVTWK6t4tIw_@F4*oOg>~Q%t=G&OI==S0 zD3?lq3|DKCIUJbOdI-tb4~&<+=DJLDdPb>I*?OLM@m;;PvAC-MuD&S6o{ zgDZY0(Q$84SO*TF$&BHNUJ>PLz=a%6QaKy~^^vt|chm)sY;}+7I&i4SW#kr_g_S z)ZZOMp-SSnu8reqDcCYXK#Ux&jMa$?vO=1f!#HwaqOhTEX&3C@>>g!x;E=AiNc-*Map${?$$L3s7I4e_71&h`0WK26(6ghmA&%kJ&R-!j!I$d=x?FkUp9d<%2EHFr>KaF2$Vpupb*0V&2@kJy;BXN6wqhSwDwQruIFuuEDAUvD z9R77 z5W~3o96RocN1k4hHv-v#Lwwz|K~D?103wG>U653aT7WHU*f6I&J6v(-bO@#y;zpo5 za5x3JV*tjKK7hy}Qy(N9ovm3QUsjzXyIisD^a>OXYzS}%4j0AFH3(yR+D`#^4%xpp z$c5Nw1Vce}4!hzZ+g*@8v^VWFLg}Dy1hxZ*IWZrv0unhbngS~;JcrXvNDf_zEutqW z2$jy;pO%&0{H0@#5=P)Z+6fHM=vHOaL&j#D~^2KqM7UOQ_KNlQDvXU}m@(a1@s=neRi0qekFBr5n{r0Mz$X59dI4riHr zn}#sx%zw4~Uz8S6n)G`{`{KMkPut;zf6{xO_OwT)J;oOicYr$s)`7zzF{@w6c{I{n z-aaCSyvZ(#xb%xN5Va#cio5&hBljOkNZ);U^WLK_JY>g?bi#8=*turN4RLV01Bc`T zPoswO=#2~|XZU}VADzQS$?i=}4~r#JMNgBAvTI+O-^IAri8s|?fuC{a2c`puwP0EG z%{2Wa15r6_p)qop6J-ZUR1pr*Xa{xiftnihtiu3x;IJOFR=h3jC2EZR^>mBT)`rkmo_ zUuNJZBLsw8i-@=$m0KM+oG~Or z3+kmkqEdTfQgjdr{MwWO>A;~b55WvQ{4amfNpA!4w>>s$aGV?tcXbL|lw+H?Ib6pM zOb>KS4mu?@($LbJMsicHr1r{^#6}+Tl7#K?KauB~bCH5V50qMY@){##&NIdB2 zr?UFPQDY2~j-(9|)obx#nH-Mv7$eaWLSwq?RAf|=c>2ecAl*ZUxCntaAVCiyp?Y#Pzs)Ih^R1&{5WE5_^)20&LYLVP9 zRS|?Z2$Sw~;E**t=RB5Uxvb-yby;$gdpXooS*CcC!mf2%oXxYOcW)WNma6sLY2F^j zY+)Mt)l99-^RnOFJgB{*1XX~9eRWAY9J$khL+1Qk4H5Fr17k=PGI@|;B<@}gBVC*u z@dX{!!#nUVFaqCUWsgLzbl{LbLzhG6vCqK@$W#(JD!IbR|E8>KIZQ6}W{jaOfgVb# zLi)L|bEhy8xY2<_saDa?{hCUz!vs>u`r}=^1=;jiTXXNwa#z8H z9O`mIX|Z{{vA!!Od=Wy3saO3sRE4q-R~@K(Bae=0a68+=bwMS!p^FLtAVG(E?{gYQL$a% zg+c4^NGeqWrkzv)*16}Nf7ZQ7VNd}I@J~wEPwcUsD!}eL_kQ6OaW(H1!nB<#z(Iva z_lScx?6lcw>(;G(=NBFqCLu0P1O+~bMC z=Wxaq;N`ZSTX(0iQ06H>57N_gaRbB?pZ8ptiy;0^Y; z0{lnVc8bE8QvUWul?-81l0 zm^eb$1mD7dRUNd8S0Xy-5i_*s=5V3vE%aRsP!%%#1DFo3dO-;zPMixBitP?RBz;Za zN4Z}gDK;p8*P!u=6m|j&k5ZavIVrd_GjRExB-$2&YtVSl&U+!mcB>+Fw9g9~iEL`- zBKtPpz!>yyy?wRDOB2P%3B)#wz-r1Hy!9=fLE`b`mEm2li4adT5wAbu0X|;CQB{Pt MDh1I%S7k{905>1k^#A|> literal 4750 zcmV;95^?QPNk&G75&!^KMM6+kP&iC^5&!@%0s=7*zoMXRBgen)e)0$WBp9}B;~4Wx zy1}GvW3qM|!?tb1#A*NkaECOOvqa%X02Uws04#z47{CAk7y-z~fDZ!<3=kM#um}bQ z00ZOU!2n4-m_&&0pPBOy#Mf4vM+cuIUX7=7K6n6UVo@&3n+qSJXwry*Y%qTMkm^s4CB)|V# zE%!#<8jksIbw%`F7G&FP+bq(U`apr`l$c*74ydL7mi}A%Z&|O)a>tM8`dZ7u>aNEo zxazfQHHMxBr%rQtr|63HPqY5|STl_ywyE7%yiX_ixIbN6?jxCq2SE@EqVY_=()m4V z(6)_nFFFc-&Ni_hoi-8Mn7sVUCTbg#^C-Gv{lhH7wh1kHMbdtzZFD5G+N=A)Nvw)qWKf~Ep66Z8}Q8l6kzff$SO$j??HyXq*LS9-K^s}!TYkX4jf*G*537b`1Ae?=;)<$!JuycjG* zbQ#*f$^$uQDydN`xe@G3`X**vPvXn=krGwgM*b&umemO#z?Gb!n)d;De2wj9ZH+NlA97VI zv`!3{d9P7))7e6^zebR;vU9{6-pvQCdhNSEzr9P>kfO*xHs;8=$TJqkP_RL&r-2Dr zE-{8(^qJQyZK%u>aGc7HO{U@jTxidT5@)KUjEW&N#7rM4nnbLE9FgYD2-3@{E#Bmp z66jYF$G9P5#lp0OhG5c4htQ6rWivF?3X-P2#2bbpZ^=XzFxu2x5Tj#szHTZaRzZ%a zv3h|lnd^5!&jjEcpLnFs9;e_eg(hIOTP9}M?f71;3BtGxb1rdjD`vEl%}YmaPi32B z&aA6_Z*4h3tL>J<2&?->|I#nw7=QVlGd)Qg^@RGWGgD6mil>=zR~k(RmsZrcCu~AH zGo6?gVVjx4(0#vwjv}@Ev}4KKi`-?ZB?#yIN~Xk8 zwonapa|1g$b5cW)BYbNGGnMKv8{N^zu{$`GHM(h;N@dkQCbbROyqyrPYJAsW$9JlR z=*pyi=J7J?x>>geXTIYa2Xj>~helf^Voeb8ptbuY zt{fK>peq%tI7em;|F$wxk8evrvIerz@QpftV1us@VzZg)$#@^2Ryj!_lVN6r>AkS z=nw`O^S!$2NKSrJozplOtJsn|_N;&k4xSy+Sz6jy0lS2V%?eqtl*M*lb&)_>N4a6&d2#RWBaAR35;BHmTXDRZ0an z9ktQax5V&{+me{_3?Fpazur}q=gb!z2BV{;6Lyh?Pwe@*6L`MSH775Qmz|j^g|8d^ zVp|Rb>BE!52ZMncWgfmt{!(MYV>RyFVkHe~xF4In+5fJNZ&y(^Izo?~BiN~qb~`Gd zyQ;&NWyCH-W7k8AdF<;Sw;_X zU&_xZ0w?hF*@!*lB>V59?X%2-BP0j&l`L&!p`wa}^oh)=q`{mq%?U^2iFB^iY)!YG zzOB+{vgS^LmM(8;wDJWrjD(J?e*BH<)aeMz^X)%ohRIrl~zrVJ)ahUB7m zwfWR71zu{lg{q12inb5bKndfYo26byP=&fzs&iLR`%f6P(DFslNhXo3E~`?6P%SwFR{*P%2us`Y%~HD7%>%~ zPyaH;7$$1!GCsaO>#BCl)}nxHLjTFy#@%s>(I?WoF7{XZtL2@ylLnHf5k;IMV;0C{ zMsa$6UQW|IGSBh|@{cRfSTanR`^Z5X#;tX!N5~i>MYS&(qgEyy7wRrHDnscjMVupJ zOb?%jOyRl6p=~sDW(XW`uBlSi`LTzBoBhTtz6Ai`BxVIaUrXhmEVNXc2FRc(OZ7fyOG!5t4oroaJf% zZ(2UplkAi!2-gL7t+8CA%4Kw-tigT#nt86Sjl6A}e2cj?e#wW2NWOpZ!ODQTV$c%e z94XW9?~CPk*L+fvgg>r@XYm>_WBLi%#u@PnYkc#9 zizSxo>8P>p-yu6oUAVI}@_HVSTPq)6MohWEFh^cDOBeQ6Cg^(?#?R!L=odqn_{SWc z6(Uwij>udL@>nG{`WN=8^^ziK@e}@UcgpV@1cUyTHG?~t`uXDW&WuQw-DbJb`#B@6 zN4|-isN1+T;gslAr(Udl{~|?l|5a+U){JlKS+D)o>JH}UD4B>=k|Rz!2BXgBcXzh4 z{)v>Ap`sFrD=Bmn2e|qVKUK3jYSgEXCu1$@bEia3)Mrhm6C>(t+GDp7{r{|ICZfM? zEWnBZxUm2`4&X#`DNea)Y%hQl=s6mD4B`gZRU&fT`m+P9m6WJlPy5;VB-gL1O60ED zpIY4+pZm@IW6z8O7`=Z7(EBj}?Oy^qgZKdU0EhnyZ}T(mb^4R#<=v{}4%Rd2`AhxM zW~4a!wz75p3^2gqKVa7_L~NKc?ae!NlS%Mbdq@Im_YGcvL;tVmJ)D*Vk`@|3G**2%ROwXp97PFY^H|z@d*F zU0aaO@OklnvAUE}Hk#CuZ7DlaBhtx`rj(YnN8}K>v+7FOBkB{;fQW`t%F(QPOwW(7 z1vvC`g_yEM=@gzLX7w@{`PXc6A|jeiUOl3&l+qnb=@5}kWJyyRQYVe5BV}8*WRn`C z_HAb3{eTwW(8mMN658|ZPFIKPb}_DpkXQ=nq-WF1zzM^*TjLHh1RAsehyK;GfdoGO zJojVBqtjsX%v_V&3&)=sL-orcv;c?xZ4qNCr%g_U9N;@(?_qP#zECkF$0Pd2mknqE z4t;9`-j1A8yWQ)aiSiYiywA&(SM&2%+UKa`(fnOI_v!uyvH*wvm8agso%N|)bc0XN z__DRwa}!T~panRjKgYP1PlS_&4pM~2sYq2Bunz#%%XnX%~F1L9>udAwX#A8wFNMG;-Cv~XpAu{=EEqA ztu&-NLN5%T;EJCh8iotH0Efnyd6@l76CprX&W{W=XV4?9@ zaUBpv)ByS;oFPrqJ2z?wUD3{|Soe8l`<4FWVeNbctM25m_G0GaC4pYd;6L+e6&*b+#iu^j3dwEl51qt^%|rA zhgcWP#MB0KMkwqjPe0Jb?R$9ILi82_QGmm~>~Rc+ zfYu1bY5g7XNY~Nn41_Qi0a1X%j_lzYCVeYlNaiPH%63qYWmu%1hNpPK%prjE9Em4@!VT>Zf7X^=K1=F(^YisUqB($cy|NH{kw=PC zj#v**_P(mcMtihJ3R%Hz-(DOc)t_^x chkM%xCzlUpB@U>i|Cat+`tSe#`%fMN0Op}F$N&HU diff --git a/data/translatable-strings.php b/data/translatable-strings.php index 83cff06..9d51a6b 100644 --- a/data/translatable-strings.php +++ b/data/translatable-strings.php @@ -10,12 +10,12 @@ defined('ABSPATH') || exit; return [ - 'day' => __('day', 'wp-ultimo'), - 'days' => __('days', 'wp-ultimo'), - 'week' => __('week', 'wp-ultimo'), - 'weeks' => __('weeks', 'wp-ultimo'), - 'month' => __('month', 'wp-ultimo'), - 'months' => __('months', 'wp-ultimo'), - 'year' => __('year', 'wp-ultimo'), - 'years' => __('years', 'wp-ultimo'), + 'day' => __('day', 'wp-multisite-waas'), + 'days' => __('days', 'wp-multisite-waas'), + 'week' => __('week', 'wp-multisite-waas'), + 'weeks' => __('weeks', 'wp-multisite-waas'), + 'month' => __('month', 'wp-multisite-waas'), + 'months' => __('months', 'wp-multisite-waas'), + 'year' => __('year', 'wp-multisite-waas'), + 'years' => __('years', 'wp-multisite-waas'), ]; diff --git a/inc/admin-pages/class-about-admin-page.php b/inc/admin-pages/class-about-admin-page.php index c6da15f..8cc9a13 100644 --- a/inc/admin-pages/class-about-admin-page.php +++ b/inc/admin-pages/class-about-admin-page.php @@ -86,7 +86,7 @@ class About_Admin_Page extends Base_Admin_Page { */ public function get_title() { - return __('About', 'wp-ultimo'); + return __('About', 'wp-multisite-waas'); } /** @@ -97,7 +97,7 @@ class About_Admin_Page extends Base_Admin_Page { */ public function get_menu_title() { - return __('Multisite WaaS', 'wp-ultimo'); + return __('Multisite WaaS', 'wp-multisite-waas'); } /** @@ -108,7 +108,7 @@ class About_Admin_Page extends Base_Admin_Page { */ public function get_submenu_title() { - return __('About', 'wp-ultimo'); + return __('About', 'wp-multisite-waas'); } /** diff --git a/inc/admin-pages/class-base-admin-page.php b/inc/admin-pages/class-base-admin-page.php index fb35114..a135e27 100644 --- a/inc/admin-pages/class-base-admin-page.php +++ b/inc/admin-pages/class-base-admin-page.php @@ -626,7 +626,7 @@ abstract class Base_Admin_Page { if (wu_get_documentation_url($this->get_id(), false)) { $this->action_links[] = [ 'url' => wu_get_documentation_url($this->get_id()), - 'label' => __('Documentation', 'wp-ultimo'), + 'label' => __('Documentation', 'wp-multisite-waas'), 'icon' => 'wu-open-book', ]; } diff --git a/inc/admin-pages/class-base-customer-facing-admin-page.php b/inc/admin-pages/class-base-customer-facing-admin-page.php index 99812e0..3cc8393 100644 --- a/inc/admin-pages/class-base-customer-facing-admin-page.php +++ b/inc/admin-pages/class-base-customer-facing-admin-page.php @@ -122,7 +122,7 @@ abstract class Base_Customer_Facing_Admin_Page extends Base_Admin_Page { $fields['title'] = [ 'type' => 'text', - 'title' => __('Page & Menu Title', 'wp-ultimo'), + 'title' => __('Page & Menu Title', 'wp-multisite-waas'), 'value' => wu_get_isset($settings, 'title', ''), 'tooltip' => '', ]; @@ -130,14 +130,14 @@ abstract class Base_Customer_Facing_Admin_Page extends Base_Admin_Page { if ($this->menu_settings) { $fields['position'] = [ 'type' => 'number', - 'title' => __('Menu', 'wp-ultimo'), + 'title' => __('Menu', 'wp-multisite-waas'), 'value' => wu_get_isset($settings, 'position', ''), 'tooltip' => '', ]; $fields['menu_icon'] = [ 'type' => 'dashicon', - 'title' => __('Menu Icon', 'wp-ultimo'), + 'title' => __('Menu Icon', 'wp-multisite-waas'), 'value' => wu_get_isset($settings, 'menu_icon', ''), 'tooltip' => '', ]; @@ -150,14 +150,14 @@ abstract class Base_Customer_Facing_Admin_Page extends Base_Admin_Page { 'fields' => [ 'reset' => [ 'type' => 'submit', - 'title' => __('Reset Settings', 'wp-ultimo'), + 'title' => __('Reset Settings', 'wp-multisite-waas'), 'value' => 'edit', 'classes' => 'button', 'wrapper_classes' => 'wu-mb-0', ], 'submit' => [ 'type' => 'submit', - 'title' => __('Save Changes', 'wp-ultimo'), + 'title' => __('Save Changes', 'wp-multisite-waas'), 'value' => 'edit', 'classes' => 'button button-primary', 'wrapper_classes' => 'wu-mb-0', @@ -372,9 +372,9 @@ abstract class Base_Customer_Facing_Admin_Page extends Base_Admin_Page { 'customize_link' => add_query_arg('customize', 1), 'close_link' => remove_query_arg('customize'), 'i18n' => [ - 'page_customize_label' => __('Customize Page', 'wp-ultimo'), - 'customize_label' => __('Customize Elements', 'wp-ultimo'), - 'close_label' => __('Exit Customize Mode', 'wp-ultimo'), + 'page_customize_label' => __('Customize Page', 'wp-multisite-waas'), + 'customize_label' => __('Customize Elements', 'wp-multisite-waas'), + 'close_label' => __('Exit Customize Mode', 'wp-multisite-waas'), ], ] ); diff --git a/inc/admin-pages/class-broadcast-edit-admin-page.php b/inc/admin-pages/class-broadcast-edit-admin-page.php index 1c41a75..57e0135 100644 --- a/inc/admin-pages/class-broadcast-edit-admin-page.php +++ b/inc/admin-pages/class-broadcast-edit-admin-page.php @@ -93,7 +93,7 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'wp-ultimo'), + 'title' => __('Events', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'events_query_filter'], ] @@ -113,12 +113,12 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'type' => [ 'type' => 'select', - 'title' => __('Broadcast Type', 'wp-ultimo'), - 'placeholder' => __('Type', 'wp-ultimo'), - 'desc' => __('Broadcast type cannot be edited.', 'wp-ultimo'), + 'title' => __('Broadcast Type', 'wp-multisite-waas'), + 'placeholder' => __('Type', 'wp-multisite-waas'), + 'desc' => __('Broadcast type cannot be edited.', 'wp-multisite-waas'), 'options' => [ - 'broadcast_email' => __('Email', 'wp-ultimo'), - 'broadcast_notice' => __('Admin Notice', 'wp-ultimo'), + 'broadcast_email' => __('Email', 'wp-multisite-waas'), + 'broadcast_notice' => __('Admin Notice', 'wp-multisite-waas'), ], 'value' => $this->get_object()->get_type(), 'tooltip' => '', @@ -129,14 +129,14 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page { ], 'notice_type' => [ 'type' => 'select', - 'title' => __('Broadcast Status', 'wp-ultimo'), - 'placeholder' => __('Status', 'wp-ultimo'), - 'desc' => __('This option determines the color of the admin notice.', 'wp-ultimo'), + 'title' => __('Broadcast Status', 'wp-multisite-waas'), + 'placeholder' => __('Status', 'wp-multisite-waas'), + 'desc' => __('This option determines the color of the admin notice.', 'wp-multisite-waas'), 'options' => [ - 'info' => __('Info (blue)', 'wp-ultimo'), - 'success' => __('Success (green)', 'wp-ultimo'), - 'warning' => __('Warning (yellow)', 'wp-ultimo'), - 'error' => __('Error (red)', 'wp-ultimo'), + 'info' => __('Info (blue)', 'wp-multisite-waas'), + 'success' => __('Success (green)', 'wp-multisite-waas'), + 'warning' => __('Warning (yellow)', 'wp-multisite-waas'), + 'error' => __('Error (red)', 'wp-multisite-waas'), ], 'value' => $this->get_object()->get_notice_type(), 'tooltip' => '', @@ -149,9 +149,9 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page { ] ); - add_meta_box('wp-ultimo-broadcast-customer-targets', __('Customer Targets', 'wp-ultimo'), [$this, 'output_default_widget_customer_targets'], get_current_screen()->id, 'side'); + add_meta_box('wp-ultimo-broadcast-customer-targets', __('Customer Targets', 'wp-multisite-waas'), [$this, 'output_default_widget_customer_targets'], get_current_screen()->id, 'side'); - add_meta_box('wp-ultimo-broadcast-product-targets', __('Product Targets', 'wp-ultimo'), [$this, 'output_default_widget_product_targets'], get_current_screen()->id, 'side'); + add_meta_box('wp-ultimo-broadcast-product-targets', __('Product Targets', 'wp-multisite-waas'), [$this, 'output_default_widget_product_targets'], get_current_screen()->id, 'side'); } /** @@ -187,7 +187,7 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page { switch ($targets) { case $targets_count < 0: - $not_found = __('No customer found', 'wp-ultimo'); + $not_found = __('No customer found', 'wp-multisite-waas'); $html .= " 

@@ -270,9 +270,9 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page { %s %s
', wu_get_form_url('view_broadcast_targets', $modal_atts), - __('Targets', 'wp-ultimo'), + __('Targets', 'wp-multisite-waas'), $targets_count, - __('Targets', 'wp-ultimo') + __('Targets', 'wp-multisite-waas') ); } else { $count = $targets_count - 6; @@ -290,9 +290,9 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page { %s %s ', wu_get_form_url('view_broadcast_targets', $modal_atts), - __('Targets', 'wp-ultimo'), + __('Targets', 'wp-multisite-waas'), $targets_count, - __('Targets', 'wp-ultimo') + __('Targets', 'wp-multisite-waas') ); } @@ -345,7 +345,7 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page { } // translators: %s is the number of customers. - $description = sprintf(__('%s customer(s) targeted.', 'wp-ultimo'), $customer_count); + $description = sprintf(__('%s customer(s) targeted.', 'wp-multisite-waas'), $customer_count); $product_targets[ $key ] = [ 'link' => $link, @@ -360,7 +360,7 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page { $args = [ 'targets' => $product_targets, - 'loading_text' => __('Loading...', 'wp-ultimo'), + 'loading_text' => __('Loading...', 'wp-multisite-waas'), 'wrapper_class' => 'wu-bg-gray-100 wu--mt-3 wu--mb-6 wu--mx-3', 'modal_class' => 'wubox', ]; @@ -376,7 +376,7 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_title() { - return $this->edit ? __('Edit Broadcast', 'wp-ultimo') : __('Add new Broadcast', 'wp-ultimo'); + return $this->edit ? __('Edit Broadcast', 'wp-multisite-waas') : __('Add new Broadcast', 'wp-multisite-waas'); } /** @@ -387,7 +387,7 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_menu_title() { - return __('Edit Broadcast', 'wp-ultimo'); + return __('Edit Broadcast', 'wp-multisite-waas'); } /** @@ -410,15 +410,15 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page { public function get_labels() { return [ - 'edit_label' => __('Edit Broadcast', 'wp-ultimo'), - 'add_new_label' => __('Add new Broadcast', 'wp-ultimo'), - 'updated_message' => __('Broadcast updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Broadcast Title', 'wp-ultimo'), - 'title_description' => __('This title is used on the message itself, and in the case of a broadcast email, it will be used as the subject.', 'wp-ultimo'), - 'save_button_label' => __('Save Broadcast', 'wp-ultimo'), + 'edit_label' => __('Edit Broadcast', 'wp-multisite-waas'), + 'add_new_label' => __('Add new Broadcast', 'wp-multisite-waas'), + 'updated_message' => __('Broadcast updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Broadcast Title', 'wp-multisite-waas'), + 'title_description' => __('This title is used on the message itself, and in the case of a broadcast email, it will be used as the subject.', 'wp-multisite-waas'), + 'save_button_label' => __('Save Broadcast', 'wp-multisite-waas'), 'save_description' => '', - 'delete_button_label' => __('Delete Broadcast', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'delete_button_label' => __('Delete Broadcast', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; } diff --git a/inc/admin-pages/class-broadcast-list-admin-page.php b/inc/admin-pages/class-broadcast-list-admin-page.php index bb8083d..cdb5299 100644 --- a/inc/admin-pages/class-broadcast-list-admin-page.php +++ b/inc/admin-pages/class-broadcast-list-admin-page.php @@ -176,7 +176,7 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { } // translators: %s is the number of customers. - $description = sprintf(__('%s customer(s) targeted.', 'wp-ultimo'), $customer_count); + $description = sprintf(__('%s customer(s) targeted.', 'wp-multisite-waas'), $customer_count); $display_targets[ $key ] = [ 'link' => $link, @@ -267,8 +267,8 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { $fields = [ 'type' => [ 'type' => 'select-icon', - 'title' => __('Broadcast Type', 'wp-ultimo'), - 'desc' => __('Select the type of message you want to send.', 'wp-ultimo'), + 'title' => __('Broadcast Type', 'wp-multisite-waas'), + 'desc' => __('Select the type of message you want to send.', 'wp-multisite-waas'), 'placeholder' => '', 'tooltip' => '', 'value' => '', @@ -281,29 +281,29 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { ], 'options' => [ 'broadcast_notice' => [ - 'title' => __('Message', 'wp-ultimo'), - 'tooltip' => __('Display a message on your customers\' dashboard.', 'wp-ultimo'), + 'title' => __('Message', 'wp-multisite-waas'), + 'tooltip' => __('Display a message on your customers\' dashboard.', 'wp-multisite-waas'), 'icon' => 'dashicons-before dashicons-excerpt-view', ], 'broadcast_email' => [ - 'title' => __('Email', 'wp-ultimo'), - 'tooltip' => __('Send an email to your customers.', 'wp-ultimo'), + 'title' => __('Email', 'wp-multisite-waas'), + 'tooltip' => __('Send an email to your customers.', 'wp-multisite-waas'), 'icon' => 'dashicons-before dashicons-email', ], ], ], 'step_note' => [ 'type' => 'note', - 'desc' => sprintf('%s', __('← Back to Type Selection', 'wp-ultimo')), + 'desc' => sprintf('%s', __('← Back to Type Selection', 'wp-multisite-waas')), 'wrapper_html_attr' => [ 'v-show' => 'step === 2', ], ], 'target_customers' => [ 'type' => 'model', - 'title' => __('Target Customers', 'wp-ultimo'), - 'desc' => __('This broadcast will be sent to the user or users that are selected here. You can select more than one.', 'wp-ultimo'), - 'placeholder' => __('Search a customer...', 'wp-ultimo'), + 'title' => __('Target Customers', 'wp-multisite-waas'), + 'desc' => __('This broadcast will be sent to the user or users that are selected here. You can select more than one.', 'wp-multisite-waas'), + 'placeholder' => __('Search a customer...', 'wp-multisite-waas'), 'min' => 1, 'html_attr' => [ 'v-model' => 'target_customers', @@ -319,9 +319,9 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { ], 'target_products' => [ 'type' => 'model', - 'title' => __('Target Product', 'wp-ultimo'), - 'desc' => __('This broadcast will be sent to the users that have this product. You can select more than one.', 'wp-ultimo'), - 'placeholder' => __('Search for a product..', 'wp-ultimo'), + 'title' => __('Target Product', 'wp-multisite-waas'), + 'desc' => __('This broadcast will be sent to the users that have this product. You can select more than one.', 'wp-multisite-waas'), + 'placeholder' => __('Search for a product..', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'target_products', 'data-model' => 'product', @@ -335,15 +335,15 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { ], ], 'notice_type' => [ - 'title' => __('Message Type', 'wp-ultimo'), - 'desc' => __('The color of the notice is based on the type.', 'wp-ultimo'), + 'title' => __('Message Type', 'wp-multisite-waas'), + 'desc' => __('The color of the notice is based on the type.', 'wp-multisite-waas'), 'type' => 'select', 'default' => 'success', 'options' => [ - 'success' => __('Success (green)', 'wp-ultimo'), - 'info' => __('Info (blue)', 'wp-ultimo'), - 'warning' => __('Warning (orange)', 'wp-ultimo'), - 'error' => __('Error (red)', 'wp-ultimo'), + 'success' => __('Success (green)', 'wp-multisite-waas'), + 'info' => __('Info (blue)', 'wp-multisite-waas'), + 'warning' => __('Warning (orange)', 'wp-multisite-waas'), + 'error' => __('Error (red)', 'wp-multisite-waas'), ], 'wrapper_html_attr' => [ 'v-show' => "step === 2 && require('type', 'broadcast_notice')", @@ -352,16 +352,16 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { ], 'step_note_2' => [ 'type' => 'note', - 'desc' => sprintf('%s', __('← Back to Target Selection', 'wp-ultimo')), + 'desc' => sprintf('%s', __('← Back to Target Selection', 'wp-multisite-waas')), 'wrapper_html_attr' => [ 'v-show' => 'step === 3', ], ], 'subject' => [ 'type' => 'text', - 'title' => __('Message Subject', 'wp-ultimo'), - 'desc' => __('The title will appear above the main content in the notice or used as subject of the email.', 'wp-ultimo'), - 'placeholder' => __('Enter a title for your broadcast.', 'wp-ultimo'), + 'title' => __('Message Subject', 'wp-multisite-waas'), + 'desc' => __('The title will appear above the main content in the notice or used as subject of the email.', 'wp-multisite-waas'), + 'placeholder' => __('Enter a title for your broadcast.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'subject', ], @@ -371,8 +371,8 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { ], 'content' => [ 'id' => 'content', - 'title' => __('Content', 'wp-ultimo'), - 'desc' => __('The main content of your broadcast.', 'wp-ultimo'), + 'title' => __('Content', 'wp-multisite-waas'), + 'desc' => __('The main content of your broadcast.', 'wp-multisite-waas'), 'type' => 'wp-editor', 'settings' => [ 'tinymce' => ['toolbar1' => 'bold,italic,strikethrough,link,unlink,undo,redo,pastetext'], @@ -386,7 +386,7 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Next Step →', 'wp-ultimo'), + 'title' => __('Next Step →', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -400,7 +400,7 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { ], 'submit_button_2' => [ 'type' => 'submit', - 'title' => __('Next Step →', 'wp-ultimo'), + 'title' => __('Next Step →', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -414,7 +414,7 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { ], 'submit_button_3' => [ 'type' => 'submit', - 'title' => __('Send →', 'wp-ultimo'), + 'title' => __('Send →', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -484,8 +484,8 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { public function get_labels() { return [ - 'deleted_message' => __('Broadcast removed successfully.', 'wp-ultimo'), - 'search_label' => __('Search Broadcast', 'wp-ultimo'), + 'deleted_message' => __('Broadcast removed successfully.', 'wp-multisite-waas'), + 'search_label' => __('Search Broadcast', 'wp-multisite-waas'), ]; } @@ -497,7 +497,7 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { */ public function get_title() { - return __('Broadcast', 'wp-ultimo'); + return __('Broadcast', 'wp-multisite-waas'); } /** @@ -508,7 +508,7 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { */ public function get_menu_title() { - return __('Broadcasts', 'wp-ultimo'); + return __('Broadcasts', 'wp-multisite-waas'); } /** @@ -519,7 +519,7 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { */ public function get_submenu_title() { - return __('Broadcasts', 'wp-ultimo'); + return __('Broadcasts', 'wp-multisite-waas'); } /** @@ -532,7 +532,7 @@ class Broadcast_List_Admin_Page extends List_Admin_Page { return [ [ - 'label' => __('Add Broadcast', 'wp-ultimo'), + 'label' => __('Add Broadcast', 'wp-multisite-waas'), 'icon' => 'wu-circle-with-plus', 'classes' => 'wubox', 'url' => wu_get_form_url('add_new_broadcast_message'), diff --git a/inc/admin-pages/class-checkout-form-edit-admin-page.php b/inc/admin-pages/class-checkout-form-edit-admin-page.php index 7e8ad23..d45a43f 100644 --- a/inc/admin-pages/class-checkout-form-edit-admin-page.php +++ b/inc/admin-pages/class-checkout-form-edit-admin-page.php @@ -212,7 +212,7 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { ); if ($index < $count - 1) { - $content .= sprintf('
', __('Step Separator', 'wp-ultimo')); + $content .= sprintf('
', __('Step Separator', 'wp-multisite-waas')); } } @@ -380,9 +380,9 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { 'v-model' => 'tab', ], 'options' => [ - 'content' => __('Field', 'wp-ultimo'), - 'advanced' => __('Additional Settings', 'wp-ultimo'), - 'style' => __('Style', 'wp-ultimo'), + 'content' => __('Field', 'wp-multisite-waas'), + 'advanced' => __('Additional Settings', 'wp-multisite-waas'), + 'style' => __('Style', 'wp-multisite-waas'), ], 'wrapper_html_attr' => [ 'v-show' => 'type', @@ -392,8 +392,8 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { // Content Tab 'type' => [ 'type' => 'select-icon', - 'title' => __('Field Type', 'wp-ultimo'), - 'desc' => __('Select the type of field you want to add to the checkout form.', 'wp-ultimo'), + 'title' => __('Field Type', 'wp-multisite-waas'), + 'desc' => __('Select the type of field you want to add to the checkout form.', 'wp-multisite-waas'), 'placeholder' => '', 'tooltip' => '', 'value' => '', @@ -410,7 +410,7 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { 'type_note' => [ 'type' => 'note', 'order' => 0, - 'desc' => sprintf('%s', __('← Back to Field Type Selection', 'wp-ultimo')), + 'desc' => sprintf('%s', __('← Back to Field Type Selection', 'wp-multisite-waas')), 'wrapper_html_attr' => [ 'v-show' => 'type && (!saved && !name)', 'v-cloak' => '1', @@ -428,9 +428,9 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { // Advanced Tab 'from_request' => [ 'type' => 'toggle', - 'title' => __('Pre-fill from Request', 'wp-ultimo'), - 'tooltip' => __('The key is the field slug. If your field has the slug "my-color" for example, adding ?my-color=blue will pre-fill this field with the value "blue".', 'wp-ultimo'), - 'desc' => __('Enable this to allow this field to be pre-filled based on the request parameters.', 'wp-ultimo'), + 'title' => __('Pre-fill from Request', 'wp-multisite-waas'), + 'tooltip' => __('The key is the field slug. If your field has the slug "my-color" for example, adding ?my-color=blue will pre-fill this field with the value "blue".', 'wp-multisite-waas'), + 'desc' => __('Enable this to allow this field to be pre-filled based on the request parameters.', 'wp-multisite-waas'), 'value' => 1, 'order' => 100, 'html_attr' => [ @@ -446,12 +446,12 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { 'logged' => [ 'type' => 'select', 'value' => 'always', - 'title' => __('Field Visibility', 'wp-ultimo'), - 'desc' => __('Select the visibility of this field.', 'wp-ultimo'), + 'title' => __('Field Visibility', 'wp-multisite-waas'), + 'desc' => __('Select the visibility of this field.', 'wp-multisite-waas'), 'options' => [ - 'always' => __('Always show', 'wp-ultimo'), - 'logged_only' => __('Only show for logged in users', 'wp-ultimo'), - 'guests_only' => __('Only show for guests', 'wp-ultimo'), + 'always' => __('Always show', 'wp-multisite-waas'), + 'logged_only' => __('Only show for logged in users', 'wp-multisite-waas'), + 'guests_only' => __('Only show for guests', 'wp-multisite-waas'), ], 'html_attr' => [ 'v-model' => 'logged', @@ -473,9 +473,9 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { // Style Tab 'width' => [ 'type' => 'number', - 'title' => __('Wrapper Width', 'wp-ultimo'), - 'placeholder' => __('100', 'wp-ultimo'), - 'desc' => __('Set the width of this field wrapper (in %).', 'wp-ultimo'), + 'title' => __('Wrapper Width', 'wp-multisite-waas'), + 'placeholder' => __('100', 'wp-multisite-waas'), + 'desc' => __('Set the width of this field wrapper (in %).', 'wp-multisite-waas'), 'min' => 0, 'max' => 100, 'value' => 100, @@ -490,9 +490,9 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { ], 'wrapper_element_classes' => [ 'type' => 'text', - 'title' => __('Wrapper CSS Classes', 'wp-ultimo'), - 'placeholder' => __('e.g. custom-field example-class', 'wp-ultimo'), - 'desc' => __('You can enter multiple CSS classes separated by spaces. These will be applied to the field wrapper element.', 'wp-ultimo'), + 'title' => __('Wrapper CSS Classes', 'wp-multisite-waas'), + 'placeholder' => __('e.g. custom-field example-class', 'wp-multisite-waas'), + 'desc' => __('You can enter multiple CSS classes separated by spaces. These will be applied to the field wrapper element.', 'wp-multisite-waas'), 'value' => '', 'order' => 54, 'html_attr' => [ @@ -505,9 +505,9 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { ], 'element_classes' => [ 'type' => 'text', - 'title' => __('Field CSS Classes', 'wp-ultimo'), - 'placeholder' => __('e.g. custom-field example-class', 'wp-ultimo'), - 'desc' => __('You can enter multiple CSS classes separated by spaces. These will be applied to the field element itself, when possible.', 'wp-ultimo'), + 'title' => __('Field CSS Classes', 'wp-multisite-waas'), + 'placeholder' => __('e.g. custom-field example-class', 'wp-multisite-waas'), + 'desc' => __('You can enter multiple CSS classes separated by spaces. These will be applied to the field element itself, when possible.', 'wp-multisite-waas'), 'value' => '', 'order' => 56, 'html_attr' => [ @@ -567,7 +567,7 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { [ 'submit_button' => [ 'type' => 'submit', - 'title' => empty($attributes) ? __('Add Field', 'wp-ultimo') : __('Save Field', 'wp-ultimo'), + 'title' => empty($attributes) ? __('Add Field', 'wp-multisite-waas') : __('Save Field', 'wp-multisite-waas'), 'value' => 'save', 'order' => 100, 'classes' => 'button button-primary wu-w-full', @@ -777,7 +777,7 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { wp_send_json_error( new \WP_Error( 'checkout-form-not-found', - __('The checkout form could not be found.', 'wp-ultimo') + __('The checkout form could not be found.', 'wp-multisite-waas') ) ); } @@ -855,18 +855,18 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { 'v-model' => 'tab', ], 'options' => [ - 'content' => __('Content', 'wp-ultimo'), - 'visibility' => __('Visibility', 'wp-ultimo'), - 'style' => __('Style', 'wp-ultimo'), + 'content' => __('Content', 'wp-multisite-waas'), + 'visibility' => __('Visibility', 'wp-multisite-waas'), + 'style' => __('Style', 'wp-multisite-waas'), ], ], // Content Tab 'id' => [ 'type' => 'text', - 'title' => __('Step ID', 'wp-ultimo'), - 'placeholder' => __('e.g. step-name', 'wp-ultimo'), - 'desc' => __('This will be used on the URL. Only alpha-numeric and hyphens allowed.', 'wp-ultimo'), + 'title' => __('Step ID', 'wp-multisite-waas'), + 'placeholder' => __('e.g. step-name', 'wp-multisite-waas'), + 'desc' => __('This will be used on the URL. Only alpha-numeric and hyphens allowed.', 'wp-multisite-waas'), 'value' => '', 'html_attr' => [ 'v-on:input' => 'id = $event.target.value.toLowerCase().replace(/[^a-z0-9-_]+/g, "")', @@ -887,9 +887,9 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { ], 'name' => [ 'type' => 'text', - 'title' => __('Step Title', 'wp-ultimo'), - 'placeholder' => __('e.g. My Extra Step', 'wp-ultimo'), - 'desc' => __('Mostly used internally, but made available for templates.', 'wp-ultimo'), + 'title' => __('Step Title', 'wp-multisite-waas'), + 'placeholder' => __('e.g. My Extra Step', 'wp-multisite-waas'), + 'desc' => __('Mostly used internally, but made available for templates.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => '', 'html_attr' => [ @@ -903,9 +903,9 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { ], 'desc' => [ 'type' => 'textarea', - 'title' => __('Step Description', 'wp-ultimo'), - 'placeholder' => __('e.g. This is the last step!', 'wp-ultimo'), - 'desc' => __('Mostly used internally, but made available for templates.', 'wp-ultimo'), + 'title' => __('Step Description', 'wp-multisite-waas'), + 'placeholder' => __('e.g. This is the last step!', 'wp-multisite-waas'), + 'desc' => __('Mostly used internally, but made available for templates.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => '', 'html_attr' => [ @@ -922,12 +922,12 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { 'logged' => [ 'type' => 'select', 'value' => 'always', - 'title' => __('Logged Status', 'wp-ultimo'), - 'desc' => __('Select the visibility of this step.', 'wp-ultimo'), + 'title' => __('Logged Status', 'wp-multisite-waas'), + 'desc' => __('Select the visibility of this step.', 'wp-multisite-waas'), 'options' => [ - 'always' => __('Always show', 'wp-ultimo'), - 'logged_only' => __('Only show for logged in users', 'wp-ultimo'), - 'guests_only' => __('Only show for guests', 'wp-ultimo'), + 'always' => __('Always show', 'wp-multisite-waas'), + 'logged_only' => __('Only show for logged in users', 'wp-multisite-waas'), + 'guests_only' => __('Only show for guests', 'wp-multisite-waas'), ], 'html_attr' => [ 'v-model' => 'logged', @@ -941,9 +941,9 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { // Style Tab 'element_id' => [ 'type' => 'text', - 'title' => __('Element ID', 'wp-ultimo'), - 'placeholder' => __('myfield', 'wp-ultimo'), - 'desc' => __('A custom ID to be added to the form element. Do not add the # symbol.', 'wp-ultimo'), + 'title' => __('Element ID', 'wp-multisite-waas'), + 'placeholder' => __('myfield', 'wp-multisite-waas'), + 'desc' => __('A custom ID to be added to the form element. Do not add the # symbol.', 'wp-multisite-waas'), 'value' => '', 'html_attr' => [ 'v-model' => 'element_id', @@ -956,9 +956,9 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { 'classes' => [ 'type' => 'text', - 'title' => __('Extra CSS Classes', 'wp-ultimo'), - 'placeholder' => __('custom-field example-class', 'wp-ultimo'), - 'desc' => __('You can enter multiple CSS classes separated by spaces.', 'wp-ultimo'), + 'title' => __('Extra CSS Classes', 'wp-multisite-waas'), + 'placeholder' => __('custom-field example-class', 'wp-multisite-waas'), + 'desc' => __('You can enter multiple CSS classes separated by spaces.', 'wp-multisite-waas'), 'value' => '', 'html_attr' => [ 'v-model' => 'classes', @@ -972,7 +972,7 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { // Submit Button 'submit_button' => [ 'type' => 'submit', - 'title' => empty($_step) ? __('Add Step', 'wp-ultimo') : __('Save Step', 'wp-ultimo'), + 'title' => empty($_step) ? __('Add Step', 'wp-multisite-waas') : __('Save Step', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -1033,7 +1033,7 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { wp_send_json_error( new \WP_Error( 'checkout-form-not-found', - __('The checkout form could not be found.', 'wp-ultimo') + __('The checkout form could not be found.', 'wp-multisite-waas') ) ); } @@ -1150,10 +1150,10 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { 'register_page' => wu_get_registration_url(), 'steps' => $steps, 'headers' => [ - 'order' => __('Order', 'wp-ultimo'), - 'name' => __('Label', 'wp-ultimo'), - 'type' => __('Type', 'wp-ultimo'), - 'slug' => __('Slug', 'wp-ultimo'), + 'order' => __('Order', 'wp-multisite-waas'), + 'name' => __('Label', 'wp-multisite-waas'), + 'type' => __('Type', 'wp-multisite-waas'), + 'slug' => __('Slug', 'wp-multisite-waas'), 'move' => '', ], ] @@ -1209,9 +1209,9 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { $new_fields['conversion_snippets'] = [ 'type' => 'code-editor', - 'title' => __('Conversion Snippets', 'wp-ultimo'), + 'title' => __('Conversion Snippets', 'wp-multisite-waas'), // translators: %s is a list of placeholders. - 'desc' => sprintf(__('Add custom snippets in HTML (with javascript support) to add conversion tracking pixels and such. This code is only run on the successful Thank You step.
Available placeholders are: %s', 'wp-ultimo'), $fields_placeholder), + 'desc' => sprintf(__('Add custom snippets in HTML (with javascript support) to add conversion tracking pixels and such. This code is only run on the successful Thank You step.
Available placeholders are: %s', 'wp-multisite-waas'), $fields_placeholder), 'value' => $this->get_object()->get_conversion_snippets(), 'lang' => 'htmlmixed', ]; @@ -1247,15 +1247,15 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { $this->add_tabs_widget( 'advanced', [ - 'title' => __('Advanced Options', 'wp-ultimo'), + 'title' => __('Advanced Options', 'wp-multisite-waas'), 'position' => 'advanced', 'html_attr' => [ 'data-on-load' => 'wu_initialize_code_editors', ], 'sections' => [ 'thank-you' => [ - 'title' => __('Thank You', 'wp-ultimo'), - 'desc' => __('Configure the Thank You page for this Checkout Form.', 'wp-ultimo'), + 'title' => __('Thank You', 'wp-multisite-waas'), + 'desc' => __('Configure the Thank You page for this Checkout Form.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-emoji-happy', 'state' => [ 'enable_thank_you_page' => $this->get_object()->has_thank_you_page(), @@ -1264,8 +1264,8 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => $this->get_thank_you_page_fields(), ], 'scripts' => [ - 'title' => __('Scripts', 'wp-ultimo'), - 'desc' => __('Configure the Thank You page for this Checkout Form.', 'wp-ultimo'), + 'title' => __('Scripts', 'wp-multisite-waas'), + 'desc' => __('Configure the Thank You page for this Checkout Form.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-code', 'state' => [ 'enable_thank_you_page' => $this->get_object()->has_thank_you_page(), @@ -1274,16 +1274,16 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'custom_css' => [ 'type' => 'code-editor', - 'title' => __('Custom CSS', 'wp-ultimo'), - 'desc' => __('Add custom CSS code to your checkout form. SCSS syntax is supported.', 'wp-ultimo'), + 'title' => __('Custom CSS', 'wp-multisite-waas'), + 'desc' => __('Add custom CSS code to your checkout form. SCSS syntax is supported.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_custom_css(), 'lang' => 'css', ], ], ], 'restrictions' => [ - 'title' => __('Restrictions', 'wp-ultimo'), - 'desc' => __('Control the access to this checkout form.', 'wp-ultimo'), + 'title' => __('Restrictions', 'wp-multisite-waas'), + 'desc' => __('Control the access to this checkout form.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-block', 'state' => [ 'restrict_by_country' => $this->get_object()->has_country_lock(), @@ -1291,17 +1291,17 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'restrict_by_country' => [ 'type' => 'toggle', - 'title' => __('Restrict by Country', 'wp-ultimo'), - 'desc' => __('Restrict this checkout form to specific countries.', 'wp-ultimo'), + 'title' => __('Restrict by Country', 'wp-multisite-waas'), + 'desc' => __('Restrict this checkout form to specific countries.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'restrict_by_country', ], ], 'allowed_countries' => [ 'type' => 'select', - 'title' => __('Allowed Countries', 'wp-ultimo'), - 'desc' => __('Select the allowed countries.', 'wp-ultimo'), - 'placeholder' => __('Type to search countries...', 'wp-ultimo'), + 'title' => __('Allowed Countries', 'wp-multisite-waas'), + 'desc' => __('Select the allowed countries.', 'wp-multisite-waas'), + 'placeholder' => __('Type to search countries...', 'wp-multisite-waas'), 'options' => 'wu_get_countries', 'value' => $this->get_object()->get_allowed_countries(), 'wrapper_html_attr' => [ @@ -1322,7 +1322,7 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'wp-ultimo'), + 'title' => __('Events', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'query_filter'], 'position' => 'advanced', @@ -1344,8 +1344,8 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'slug' => [ 'type' => 'text', - 'title' => __('Checkout Form Slug', 'wp-ultimo'), - 'desc' => __('This is used to create shortcodes and more.', 'wp-ultimo'), + 'title' => __('Checkout Form Slug', 'wp-multisite-waas'), + 'desc' => __('This is used to create shortcodes and more.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_slug(), 'wrapper_html_attr' => [ 'v-cloak' => '1', @@ -1358,7 +1358,7 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { ], 'slug_change_note' => [ 'type' => 'note', - 'desc' => __('You are changing the form slug. If you save this change, all the shortcodes and blocks referencing this slug will stop working until you update them with the new slug.', 'wp-ultimo'), + 'desc' => __('You are changing the form slug. If you save this change, all the shortcodes and blocks referencing this slug will stop working until you update them with the new slug.', 'wp-multisite-waas'), 'classes' => 'wu-p-2 wu-bg-yellow-200 wu-text-yellow-700 wu-rounded wu-w-full', 'wrapper_html_attr' => [ 'v-show' => '(original_slug != slug) && slug', @@ -1372,12 +1372,12 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'active', [ - 'title' => __('Active', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), 'fields' => [ 'active' => [ 'type' => 'toggle', - 'title' => __('Active', 'wp-ultimo'), - 'desc' => __('Use this option to manually enable or disable this checkout form.', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), + 'desc' => __('Use this option to manually enable or disable this checkout form.', 'wp-multisite-waas'), 'value' => $this->get_object()->is_active(), ], ], @@ -1389,17 +1389,17 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { [ [ 'id' => 'checkout-form-editor', - 'title' => __('Welcome to the Checkout Form builder!', 'wp-ultimo'), + 'title' => __('Welcome to the Checkout Form builder!', 'wp-multisite-waas'), 'text' => [ - __('You should be able to create registration forms in any way, shape, and form you desire. This editor allows you to do just that 😃', 'wp-ultimo'), - __('Want a registration form with multiple steps? Check! A single step? Check! Control the visibility of certain steps and fields based on the context of the customer? Check!', 'wp-ultimo'), + __('You should be able to create registration forms in any way, shape, and form you desire. This editor allows you to do just that 😃', 'wp-multisite-waas'), + __('Want a registration form with multiple steps? Check! A single step? Check! Control the visibility of certain steps and fields based on the context of the customer? Check!', 'wp-multisite-waas'), ], ], [ 'id' => 'add-new-step', - 'title' => __('Adding new Steps', 'wp-ultimo'), + 'title' => __('Adding new Steps', 'wp-multisite-waas'), 'text' => [ - __('To add a new step to the registration form, use this button here.', 'wp-ultimo'), + __('To add a new step to the registration form, use this button here.', 'wp-multisite-waas'), ], 'attachTo' => [ 'element' => '#wp-ultimo-list-table-add-new-1 > div > div.wu-w-1\/2.wu-text-right > ul > li:nth-child(2) > a', @@ -1408,10 +1408,10 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { ], [ 'id' => 'add-new-field', - 'title' => __('Adding new Fields', 'wp-ultimo'), + 'title' => __('Adding new Fields', 'wp-multisite-waas'), 'text' => [ - __('To add a new field to a step, use this button here. You can add fields to capture additional data from your customers and use that data to populate site templates.', 'wp-ultimo'), - sprintf('%s', wu_get_documentation_url('wp-ultimo-populate-site-template'), __('You can learn more about that here →', 'wp-ultimo')), + __('To add a new field to a step, use this button here. You can add fields to capture additional data from your customers and use that data to populate site templates.', 'wp-multisite-waas'), + sprintf('%s', wu_get_documentation_url('wp-ultimo-populate-site-template'), __('You can learn more about that here →', 'wp-multisite-waas')), ], 'attachTo' => [ 'element' => '#wp-ultimo-list-table-checkout > div.inside > div.wu-bg-gray-100.wu-px-4.wu-py-3.wu--m-3.wu-mt-3.wu-border-t.wu-border-l-0.wu-border-r-0.wu-border-b-0.wu-border-gray-400.wu-border-solid.wu-text-right > ul > li:nth-child(3) > a', @@ -1430,7 +1430,7 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_title() { - return $this->edit ? __('Edit Checkout Form', 'wp-ultimo') : __('Add new Checkout Form', 'wp-ultimo'); + return $this->edit ? __('Edit Checkout Form', 'wp-multisite-waas') : __('Add new Checkout Form', 'wp-multisite-waas'); } /** @@ -1441,7 +1441,7 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_menu_title() { - return __('Edit Checkout_Form', 'wp-ultimo'); + return __('Edit Checkout_Form', 'wp-multisite-waas'); } /** @@ -1453,15 +1453,15 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page { public function get_labels() { return [ - 'edit_label' => __('Edit Checkout Form', 'wp-ultimo'), - 'add_new_label' => __('Add new Checkout Form', 'wp-ultimo'), - 'updated_message' => __('Checkout Form updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Checkout Form Name', 'wp-ultimo'), - 'title_description' => __('This name is used for internal reference only.', 'wp-ultimo'), - 'save_button_label' => __('Save Checkout Form', 'wp-ultimo'), + 'edit_label' => __('Edit Checkout Form', 'wp-multisite-waas'), + 'add_new_label' => __('Add new Checkout Form', 'wp-multisite-waas'), + 'updated_message' => __('Checkout Form updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Checkout Form Name', 'wp-multisite-waas'), + 'title_description' => __('This name is used for internal reference only.', 'wp-multisite-waas'), + 'save_button_label' => __('Save Checkout Form', 'wp-multisite-waas'), 'save_description' => '', - 'delete_button_label' => __('Delete Checkout Form', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'delete_button_label' => __('Delete Checkout Form', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; } diff --git a/inc/admin-pages/class-checkout-form-list-admin-page.php b/inc/admin-pages/class-checkout-form-list-admin-page.php index 7c1cc97..7465210 100644 --- a/inc/admin-pages/class-checkout-form-list-admin-page.php +++ b/inc/admin-pages/class-checkout-form-list-admin-page.php @@ -69,17 +69,17 @@ class Checkout_Form_List_Admin_Page extends List_Admin_Page { [ [ 'id' => 'checkout-form-list', - 'title' => __('Checkout Forms', 'wp-ultimo'), + 'title' => __('Checkout Forms', 'wp-multisite-waas'), 'text' => [ - __('Checkout Forms are an easy and flexible way to experiment with different approaches when trying to convert new customers.', 'wp-ultimo'), + __('Checkout Forms are an easy and flexible way to experiment with different approaches when trying to convert new customers.', 'wp-multisite-waas'), ], ], [ 'id' => 'default-form', - 'title' => __('Experiment!', 'wp-ultimo'), + 'title' => __('Experiment!', 'wp-multisite-waas'), 'text' => [ - __('You can create as many checkout forms as you want, with different fields, products on offer, etc.', 'wp-ultimo'), - __('Planning on running some sort of promotion? Why not create a custom landing page with a tailor-maid checkout form to go with? The possibilities are endless.', 'wp-ultimo'), + __('You can create as many checkout forms as you want, with different fields, products on offer, etc.', 'wp-multisite-waas'), + __('Planning on running some sort of promotion? Why not create a custom landing page with a tailor-maid checkout form to go with? The possibilities are endless.', 'wp-multisite-waas'), ], 'attachTo' => [ 'element' => '#wp-ultimo-wrap > h1 > a:first-child', @@ -121,8 +121,8 @@ class Checkout_Form_List_Admin_Page extends List_Admin_Page { $fields = [ 'template' => [ 'type' => 'select-icon', - 'title' => __('Checkout Form Template', 'wp-ultimo'), - 'desc' => __('Select a starting point for a new Checkout Form.', 'wp-ultimo'), + 'title' => __('Checkout Form Template', 'wp-multisite-waas'), + 'desc' => __('Select a starting point for a new Checkout Form.', 'wp-multisite-waas'), 'placeholder' => '', 'tooltip' => '', 'value' => '', @@ -132,22 +132,22 @@ class Checkout_Form_List_Admin_Page extends List_Admin_Page { ], 'options' => [ 'single-step' => [ - 'title' => __('Single Step', 'wp-ultimo'), + 'title' => __('Single Step', 'wp-multisite-waas'), 'icon' => 'dashicons-before dashicons-list-view', ], 'multi-step' => [ - 'title' => __('Multi-Step', 'wp-ultimo'), + 'title' => __('Multi-Step', 'wp-multisite-waas'), 'icon' => 'dashicons-before dashicons-excerpt-view', ], 'blank' => [ - 'title' => __('Blank', 'wp-ultimo'), + 'title' => __('Blank', 'wp-multisite-waas'), 'icon' => 'dashicons-before dashicons-admin-page', ], ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Go to the Editor →', 'wp-ultimo'), + 'title' => __('Go to the Editor →', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -189,7 +189,7 @@ class Checkout_Form_List_Admin_Page extends List_Admin_Page { $checkout_form->use_template($template); - $checkout_form->set_name(__('Draft Checkout Form', 'wp-ultimo')); + $checkout_form->set_name(__('Draft Checkout Form', 'wp-multisite-waas')); $checkout_form->set_slug(uniqid()); @@ -222,8 +222,8 @@ class Checkout_Form_List_Admin_Page extends List_Admin_Page { public function get_labels() { return [ - 'deleted_message' => __('Checkout Form removed successfully.', 'wp-ultimo'), - 'search_label' => __('Search Checkout Form', 'wp-ultimo'), + 'deleted_message' => __('Checkout Form removed successfully.', 'wp-multisite-waas'), + 'search_label' => __('Search Checkout Form', 'wp-multisite-waas'), ]; } @@ -235,7 +235,7 @@ class Checkout_Form_List_Admin_Page extends List_Admin_Page { */ public function get_title() { - return __('Checkout Forms', 'wp-ultimo'); + return __('Checkout Forms', 'wp-multisite-waas'); } /** @@ -246,7 +246,7 @@ class Checkout_Form_List_Admin_Page extends List_Admin_Page { */ public function get_menu_title() { - return __('Checkout Forms', 'wp-ultimo'); + return __('Checkout Forms', 'wp-multisite-waas'); } /** @@ -257,7 +257,7 @@ class Checkout_Form_List_Admin_Page extends List_Admin_Page { */ public function get_submenu_title() { - return __('Checkout Forms', 'wp-ultimo'); + return __('Checkout Forms', 'wp-multisite-waas'); } /** diff --git a/inc/admin-pages/class-customer-edit-admin-page.php b/inc/admin-pages/class-customer-edit-admin-page.php index c30f48d..4c76fe0 100644 --- a/inc/admin-pages/class-customer-edit-admin-page.php +++ b/inc/admin-pages/class-customer-edit-admin-page.php @@ -161,16 +161,16 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Transfer', 'wp-ultimo'), - 'desc' => __('This will start the transfer of assets from one user to another.', 'wp-ultimo'), + 'title' => __('Confirm Transfer', 'wp-multisite-waas'), + 'desc' => __('This will start the transfer of assets from one user to another.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Start Transfer', 'wp-ultimo'), - 'placeholder' => __('Start Transfer', 'wp-ultimo'), + 'title' => __('Start Transfer', 'wp-multisite-waas'), + 'placeholder' => __('Start Transfer', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -223,11 +223,11 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { $target_user = get_user_by('id', wu_request('target_user_id')); if ( ! $customer) { - wp_send_json_error(new \WP_Error('not-found', __('Customer not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('Customer not found.', 'wp-multisite-waas'))); } if ( ! $target_user) { - wp_send_json_error(new \WP_Error('not-found', __('User not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('User not found.', 'wp-multisite-waas'))); } $customer->set_user_id($target_user->ID); @@ -263,8 +263,8 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { $custom_fields = [ 'delete_all' => [ 'type' => 'toggle', - 'title' => __('Delete everything', 'wp-ultimo'), - 'desc' => __('Sites, payments and memberships.', 'wp-ultimo'), + 'title' => __('Delete everything', 'wp-multisite-waas'), + 'desc' => __('Sites, payments and memberships.', 'wp-multisite-waas'), 'html_attr' => [ 'v-bind:value' => 'delete_all_confirmed', 'v-model' => 'delete_all_confirmed', @@ -272,8 +272,8 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { ], 're_assignment_customer_id' => [ 'type' => 'model', - 'title' => __('Re-assignment to customer', 'wp-ultimo'), - 'placeholder' => __('Select Customer...', 'wp-ultimo'), + 'title' => __('Re-assignment to customer', 'wp-multisite-waas'), + 'placeholder' => __('Select Customer...', 'wp-multisite-waas'), 'html_attr' => [ 'data-model' => 'customer', 'data-value-field' => 'id', @@ -429,7 +429,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { $location = sprintf( '%s %s', - __('Location:', 'wp-ultimo'), + __('Location:', 'wp-multisite-waas'), implode(' → ', array_filter($field_location_breadcrumbs)) ); @@ -477,7 +477,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { if ($meta_fields_unset) { $collapsible_header['display_unset_fields'] = [ - 'title' => __('Display unset fields', 'wp-ultimo'), + 'title' => __('Display unset fields', 'wp-multisite-waas'), 'desc' => __( 'If fields were added after the customer creation or onto a different form, they will not have a set value for this customer. You can manually set those here.', 'wp-ultimo' @@ -495,14 +495,14 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { if (empty($final_fields)) { $final_fields['empty'] = [ 'type' => 'note', - 'desc' => __('No custom meta data collected and no custom fields found.', 'wp-ultimo'), + 'desc' => __('No custom meta data collected and no custom fields found.', 'wp-multisite-waas'), 'classes' => 'wu-text-center', ]; } $final_fields['display_new_meta_repeater'] = [ - 'title' => __('Manually add custom meta fields', 'wp-ultimo'), - 'desc' => __('Add new custom meta fields to this customer.', 'wp-ultimo'), + 'title' => __('Manually add custom meta fields', 'wp-multisite-waas'), + 'desc' => __('Add new custom meta fields to this customer.', 'wp-multisite-waas'), 'type' => 'toggle', 'wrapper_classes' => 'wu-bg-gray-100', 'html_attr' => [ @@ -511,7 +511,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { ]; $default_meta_value = fn(string $type, $value = '', bool $is_default = false) => [ - 'title' => __('Value', 'wp-ultimo'), + 'title' => __('Value', 'wp-multisite-waas'), 'type' => $type, 'value' => $value, 'wrapper_classes' => 'wu-w-1/4 wu-ml-2', @@ -536,12 +536,12 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { 'type' => 'note', 'desc' => sprintf( '', - __('Remove', 'wp-ultimo') + __('Remove', 'wp-multisite-waas') ), 'wrapper_classes' => 'wu-absolute wu-top-0 wu-right-0', ], 'new_meta_slug' => [ - 'title' => __('Slug', 'wp-ultimo'), + 'title' => __('Slug', 'wp-multisite-waas'), 'type' => 'text', 'value' => '', 'wrapper_classes' => 'wu-w-1/4', @@ -552,7 +552,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { ], ], 'new_meta_title' => [ - 'title' => __('Title', 'wp-ultimo'), + 'title' => __('Title', 'wp-multisite-waas'), 'type' => 'text', 'value' => '', 'wrapper_classes' => 'wu-w-1/4 wu-ml-2', @@ -561,14 +561,14 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { ], ], 'new_meta_type' => [ - 'title' => __('Type', 'wp-ultimo'), + 'title' => __('Type', 'wp-multisite-waas'), 'type' => 'select', 'options' => [ - 'text' => __('Text', 'wp-ultimo'), - 'textarea' => __('Textarea', 'wp-ultimo'), - 'checkbox' => __('Checkbox', 'wp-ultimo'), - 'color' => __('Color', 'wp-ultimo'), - 'image' => __('Image', 'wp-ultimo'), + 'text' => __('Text', 'wp-multisite-waas'), + 'textarea' => __('Textarea', 'wp-multisite-waas'), + 'checkbox' => __('Checkbox', 'wp-multisite-waas'), + 'color' => __('Color', 'wp-multisite-waas'), + 'image' => __('Image', 'wp-multisite-waas'), ], 'wrapper_classes' => 'wu-w-1/4 wu-ml-2', 'html_attr' => [ @@ -591,7 +591,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { ], 'repeat_option' => [ 'type' => 'submit', - 'title' => __('+ Add meta field', 'wp-ultimo'), + 'title' => __('+ Add meta field', 'wp-multisite-waas'), 'classes' => 'button wu-self-end', 'wrapper_classes' => 'wu-bg-whiten wu-items-end', 'html_attr' => [ @@ -630,7 +630,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'at_a_glance', [ - 'title' => __('At a Glance', 'wp-ultimo'), + 'title' => __('At a Glance', 'wp-multisite-waas'), 'position' => 'normal', 'classes' => 'wu-overflow-hidden wu-m-0 wu--mt-1 wu--mx-3 wu--mb-3', 'field_wrapper_classes' => 'wu-w-1/3 wu-box-border wu-items-center wu-flex wu-justify-between wu-p-4 wu-m-0 wu-border-t-0 wu-border-l-0 wu-border-r wu-border-b-0 wu-border-gray-300 wu-border-solid wu-float-left wu-relative', @@ -641,13 +641,13 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { 'id' => [ 'type' => 'text-display', 'copy' => true, - 'title' => __('Customer ID', 'wp-ultimo'), + 'title' => __('Customer ID', 'wp-multisite-waas'), 'display_value' => $this->get_object()->get_id(), 'tooltip' => '', ], 'last_login' => [ 'edit' => false, - 'title' => __('Last Login', 'wp-ultimo'), + 'title' => __('Last Login', 'wp-multisite-waas'), 'type' => 'text-edit', 'value' => $this->edit ? $this->get_object()->get_last_login(false) : __( 'No date', @@ -657,7 +657,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { ], 'total_grossed' => [ 'type' => 'text-display', - 'title' => __('Total Grossed', 'wp-ultimo'), + 'title' => __('Total Grossed', 'wp-multisite-waas'), 'display_value' => wu_format_currency($this->get_object()->get_total_grossed()), 'tooltip' => '', ], @@ -668,7 +668,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'memberships', [ - 'title' => __('Memberships', 'wp-ultimo'), + 'title' => __('Memberships', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Customers_Membership_List_Table(), 'query_filter' => [$this, 'memberships_query_filter'], ] @@ -677,34 +677,34 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { $this->add_tabs_widget( 'options', [ - 'title' => __('Customer Options', 'wp-ultimo'), + 'title' => __('Customer Options', 'wp-multisite-waas'), 'position' => 'normal', 'sections' => apply_filters( 'wu_customer_options_sections', [ 'general' => [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General options for the customer.', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General options for the customer.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-globe', 'fields' => [ 'vip' => [ 'type' => 'toggle', - 'title' => __('VIP', 'wp-ultimo'), - 'desc' => __('Set this customer as a VIP.', 'wp-ultimo'), + 'title' => __('VIP', 'wp-multisite-waas'), + 'desc' => __('Set this customer as a VIP.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => $this->get_object()->is_vip(), ], ], ], 'billing_info' => [ - 'title' => __('Billing Info', 'wp-ultimo'), - 'desc' => __('Billing information for this particular customer', 'wp-ultimo'), + 'title' => __('Billing Info', 'wp-multisite-waas'), + 'desc' => __('Billing information for this particular customer', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-address', 'fields' => $this->get_object()->get_billing_address()->get_fields(), ], 'custom_meta' => [ - 'title' => __('Custom Meta', 'wp-ultimo'), - 'desc' => __('Custom data collected via WP Multisite WaaS forms.', 'wp-ultimo'), + 'title' => __('Custom Meta', 'wp-multisite-waas'), + 'desc' => __('Custom data collected via WP Multisite WaaS forms.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-database wu-pt-px', 'fields' => $this->generate_customer_meta_fields(), 'state' => [ @@ -721,8 +721,8 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { // @todo: bring these back // phpcs:disable // 'payment_methods' => array( - // 'title' => __('Payment Methods', 'wp-ultimo'), - // 'desc' => __('Add extra information to this customer.', 'wp-ultimo'), + // 'title' => __('Payment Methods', 'wp-multisite-waas'), + // 'desc' => __('Add extra information to this customer.', 'wp-multisite-waas'), // 'icon' => 'dashicons-wu-credit-card', // 'fields' => apply_filters('wu_customer_payment_methods', array(), $this->get_object(), $this), // ), @@ -736,7 +736,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'payments', [ - 'title' => __('Payments', 'wp-ultimo'), + 'title' => __('Payments', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Customers_Payment_List_Table(), 'query_filter' => [$this, 'memberships_query_filter'], ] @@ -745,7 +745,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'sites', [ - 'title' => __('Sites', 'wp-ultimo'), + 'title' => __('Sites', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Customers_Site_List_Table(), 'query_filter' => [$this, 'sites_query_filter'], ] @@ -754,7 +754,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'wp-ultimo'), + 'title' => __('Events', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'events_query_filter'], ] @@ -784,9 +784,9 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'user_id' => [ 'type' => 'model', - 'title' => __('User', 'wp-ultimo'), - 'placeholder' => __('Search WordPress user...', 'wp-ultimo'), - 'desc' => __('The WordPress user associated to this customer.', 'wp-ultimo'), + 'title' => __('User', 'wp-multisite-waas'), + 'placeholder' => __('Search WordPress user...', 'wp-multisite-waas'), + 'desc' => __('The WordPress user associated to this customer.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_user_id(), 'tooltip' => '', 'min' => 1, @@ -817,16 +817,16 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { ], 'email_verification' => [ 'type' => 'select', - 'title' => __('Email Verification', 'wp-ultimo'), - 'placeholder' => __('Select Status', 'wp-ultimo'), + 'title' => __('Email Verification', 'wp-multisite-waas'), + 'placeholder' => __('Select Status', 'wp-multisite-waas'), 'desc' => __( 'The email verification status. This gets automatically switched to Verified when the customer verifies their email address.', 'wp-ultimo' ), 'options' => [ - 'none' => __('None', 'wp-ultimo'), - 'pending' => __('Pending', 'wp-ultimo'), - 'verified' => __('Verified', 'wp-ultimo'), + 'none' => __('None', 'wp-multisite-waas'), + 'pending' => __('Pending', 'wp-multisite-waas'), + 'verified' => __('Verified', 'wp-multisite-waas'), ], 'value' => $this->get_object()->get_email_verification(), 'tooltip' => '', @@ -839,7 +839,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { ], 'confirm_membership' => [ 'type' => 'toggle', - 'title' => __('Activate Memberships', 'wp-ultimo'), + 'title' => __('Activate Memberships', 'wp-multisite-waas'), 'desc' => __( 'If you toggle this option, this change in status will also activate the related pending memberships. If any sites are pending, they are also going to be published automatically.', 'wp-ultimo' @@ -852,7 +852,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { ], 'send_verification' => [ 'type' => 'submit', - 'title' => __('Re-send Verification Email →', 'wp-ultimo'), + 'title' => __('Re-send Verification Email →', 'wp-multisite-waas'), 'value' => 'send_verification', 'classes' => 'button wu-w-full', 'wrapper_html_attr' => [ @@ -873,7 +873,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { ], 'transfer' => [ 'type' => 'link', - 'display_value' => __('Transfer Customer', 'wp-ultimo'), + 'display_value' => __('Transfer Customer', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-bg-gray-200', 'classes' => 'button wubox wu-w-full wu-text-center', 'wrapper_html_attr' => [ @@ -888,7 +888,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { 'target_user_id' => '', ] ) . "=' + user_id", - 'title' => __('Transfer Customer', 'wp-ultimo'), + 'title' => __('Transfer Customer', 'wp-multisite-waas'), ], ], ], @@ -898,11 +898,11 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'last-login', [ - 'title' => __('Last Login & IPs', 'wp-ultimo'), + 'title' => __('Last Login & IPs', 'wp-multisite-waas'), 'fields' => [ 'last_login' => [ 'edit' => true, - 'title' => __('Last Login', 'wp-ultimo'), + 'title' => __('Last Login', 'wp-multisite-waas'), 'type' => 'text-edit', 'date' => true, 'value' => $this->edit ? $this->get_object()->get_last_login(false) : __( @@ -918,12 +918,12 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { ], ], 'ips' => [ - 'title' => __('IP Address', 'wp-ultimo'), + 'title' => __('IP Address', 'wp-multisite-waas'), 'type' => 'text-edit', 'display_value' => $this->get_object()->get_last_ip(), ], 'country' => [ - 'title' => __('IP Address Country', 'wp-ultimo'), + 'title' => __('IP Address Country', 'wp-multisite-waas'), 'type' => 'text-edit', 'display_value' => [$this, 'render_country'], ], @@ -966,7 +966,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_title() { - return $this->edit ? __('Edit Customer', 'wp-ultimo') : __('Add new Customer', 'wp-ultimo'); + return $this->edit ? __('Edit Customer', 'wp-multisite-waas') : __('Add new Customer', 'wp-multisite-waas'); } /** @@ -977,7 +977,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_menu_title() { - return __('Edit Customer', 'wp-ultimo'); + return __('Edit Customer', 'wp-multisite-waas'); } /** @@ -1000,15 +1000,15 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { public function get_labels() { return [ - 'edit_label' => __('Edit Customer', 'wp-ultimo'), - 'add_new_label' => __('Add new Customer', 'wp-ultimo'), - 'updated_message' => __('Customer updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Customer', 'wp-ultimo'), + 'edit_label' => __('Edit Customer', 'wp-multisite-waas'), + 'add_new_label' => __('Add new Customer', 'wp-multisite-waas'), + 'updated_message' => __('Customer updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Customer', 'wp-multisite-waas'), 'title_description' => '', - 'save_button_label' => __('Save Customer', 'wp-ultimo'), + 'save_button_label' => __('Save Customer', 'wp-multisite-waas'), 'save_description' => '', - 'delete_button_label' => __('Delete Customer', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'delete_button_label' => __('Delete Customer', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; } @@ -1224,7 +1224,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page { if (isset($_GET['notice_verification_sent'])) : ?>
-

+

'type', ], 'options' => [ - 'existing' => __('Existing User', 'wp-ultimo'), - 'new' => __('Invite New', 'wp-ultimo'), + 'existing' => __('Existing User', 'wp-multisite-waas'), + 'new' => __('Invite New', 'wp-multisite-waas'), ], ], 'user_id' => [ 'type' => 'model', - 'title' => __('Existing User', 'wp-ultimo'), - 'placeholder' => __('Search WordPress user...', 'wp-ultimo'), + 'title' => __('Existing User', 'wp-multisite-waas'), + 'placeholder' => __('Search WordPress user...', 'wp-multisite-waas'), 'tooltip' => '', 'min' => 1, 'wrapper_html_attr' => [ @@ -206,24 +206,24 @@ class Customer_List_Admin_Page extends List_Admin_Page { ], 'username' => [ 'type' => 'text', - 'title' => __('Username', 'wp-ultimo'), - 'placeholder' => __('E.g. johnsmith', 'wp-ultimo'), + 'title' => __('Username', 'wp-multisite-waas'), + 'placeholder' => __('E.g. johnsmith', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => "require('type', 'new')", ], ], 'email_address' => [ 'type' => 'email', - 'title' => __('Email Address', 'wp-ultimo'), - 'placeholder' => __('E.g. customer@wpultimo.dev', 'wp-ultimo'), + 'title' => __('Email Address', 'wp-multisite-waas'), + 'placeholder' => __('E.g. customer@wpultimo.dev', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => "require('type', 'new')", ], ], 'set_password' => [ 'type' => 'toggle', - 'title' => __('Set Password', 'wp-ultimo'), - 'desc' => __('If not set, the user will be asked to set a password after accepting the invite.', 'wp-ultimo'), + 'title' => __('Set Password', 'wp-multisite-waas'), + 'desc' => __('If not set, the user will be asked to set a password after accepting the invite.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => "require('type', 'new')", ], @@ -233,15 +233,15 @@ class Customer_List_Admin_Page extends List_Admin_Page { ], 'password' => [ 'type' => 'password', - 'title' => __('Password', 'wp-ultimo'), - 'placeholder' => __('E.g. p@$$w0rd', 'wp-ultimo'), + 'title' => __('Password', 'wp-multisite-waas'), + 'placeholder' => __('E.g. p@$$w0rd', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => "require('type', 'new') && require('set_password', true)", ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Create Customer', 'wp-ultimo'), + 'title' => __('Create Customer', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -332,8 +332,8 @@ class Customer_List_Admin_Page extends List_Admin_Page { public function get_labels() { return [ - 'deleted_message' => __('Customer removed successfully.', 'wp-ultimo'), - 'search_label' => __('Search Customer', 'wp-ultimo'), + 'deleted_message' => __('Customer removed successfully.', 'wp-multisite-waas'), + 'search_label' => __('Search Customer', 'wp-multisite-waas'), ]; } @@ -345,7 +345,7 @@ class Customer_List_Admin_Page extends List_Admin_Page { */ public function get_title() { - return __('Customers', 'wp-ultimo'); + return __('Customers', 'wp-multisite-waas'); } /** @@ -356,7 +356,7 @@ class Customer_List_Admin_Page extends List_Admin_Page { */ public function get_menu_title() { - return __('Customers', 'wp-ultimo'); + return __('Customers', 'wp-multisite-waas'); } /** @@ -367,7 +367,7 @@ class Customer_List_Admin_Page extends List_Admin_Page { */ public function get_submenu_title() { - return __('Customers', 'wp-ultimo'); + return __('Customers', 'wp-multisite-waas'); } /** @@ -380,13 +380,13 @@ class Customer_List_Admin_Page extends List_Admin_Page { return [ [ - 'label' => __('Add Customer', 'wp-ultimo'), + 'label' => __('Add Customer', 'wp-multisite-waas'), 'icon' => 'wu-circle-with-plus', 'classes' => 'wubox', 'url' => wu_get_form_url('add_new_customer'), ], [ - 'label' => __('Export as CSV', 'wp-ultimo'), + 'label' => __('Export as CSV', 'wp-multisite-waas'), 'icon' => 'wu-export', 'url' => add_query_arg( [ diff --git a/inc/admin-pages/class-customizer-admin-page.php b/inc/admin-pages/class-customizer-admin-page.php index 05226ec..1f39345 100644 --- a/inc/admin-pages/class-customizer-admin-page.php +++ b/inc/admin-pages/class-customizer-admin-page.php @@ -89,7 +89,7 @@ abstract class Customizer_Admin_Page extends Edit_Admin_Page { parent::register_scripts(); - wp_enqueue_script('wu-customizer', wu_get_asset('customizer.js', 'js'), ['jquery', 'wu-vue', 'wu-block-ui']); + wp_enqueue_script('wu-customizer', wu_get_asset('customizer.js', 'js'), ['jquery', 'wu-vue', 'wu-block-ui'], \WP_Ultimo::VERSION, ['async' => true, 'in_footer' => true]); wp_enqueue_style('wp-color-picker'); diff --git a/inc/admin-pages/class-dashboard-admin-page.php b/inc/admin-pages/class-dashboard-admin-page.php index 3b20676..d4c59da 100644 --- a/inc/admin-pages/class-dashboard-admin-page.php +++ b/inc/admin-pages/class-dashboard-admin-page.php @@ -137,17 +137,17 @@ class Dashboard_Admin_Page extends Base_Admin_Page { if ('wp-ultimo' === $page->id) { $preset_options = [ 'last_7_days' => [ - 'label' => __('Last 7 days', 'wp-ultimo'), + 'label' => __('Last 7 days', 'wp-multisite-waas'), 'start_date' => date_i18n('Y-m-d', strtotime('-7 days')), 'end_date' => date_i18n('Y-m-d'), ], 'last_30_days' => [ - 'label' => __('Last 30 days', 'wp-ultimo'), + 'label' => __('Last 30 days', 'wp-multisite-waas'), 'start_date' => date_i18n('Y-m-d', strtotime('-30 days')), 'end_date' => date_i18n('Y-m-d'), ], 'year_to_date' => [ - 'label' => __('Year to date', 'wp-ultimo'), + 'label' => __('Year to date', 'wp-multisite-waas'), 'start_date' => date_i18n('Y-m-d', strtotime('first day of january this year')), 'end_date' => date_i18n('Y-m-d'), ], @@ -180,7 +180,7 @@ class Dashboard_Admin_Page extends Base_Admin_Page { 'general' => [ 'field' => 'type', 'url' => add_query_arg('tab', 'general'), - 'label' => __('General', 'wp-ultimo'), + 'label' => __('General', 'wp-multisite-waas'), 'count' => 0, ], ]; @@ -230,16 +230,16 @@ class Dashboard_Admin_Page extends Base_Admin_Page { [ [ 'id' => 'your-dashboard', - 'title' => __('Our dashboard', 'wp-ultimo'), + 'title' => __('Our dashboard', 'wp-multisite-waas'), 'text' => [ - __('This is the WP Multisite WaaS Dashboard, where you will find most of the important information you will need regarding your business\' performance.', 'wp-ultimo'), + __('This is the WP Multisite WaaS Dashboard, where you will find most of the important information you will need regarding your business\' performance.', 'wp-multisite-waas'), ], ], [ 'id' => 'documentation', - 'title' => __('Learning more', 'wp-ultimo'), + 'title' => __('Learning more', 'wp-multisite-waas'), 'text' => [ - __('Most of the WP Multisite WaaS admin pages will contain a link like this one at the top. These will link directly to the relevant knowledge base page on the WP Multisite WaaS site.', 'wp-ultimo'), + __('Most of the WP Multisite WaaS admin pages will contain a link like this one at the top. These will link directly to the relevant knowledge base page on the WP Multisite WaaS site.', 'wp-multisite-waas'), ], 'attachTo' => [ 'element' => '#wp-ultimo-wrap > h1 > a:last-child', @@ -248,9 +248,9 @@ class Dashboard_Admin_Page extends Base_Admin_Page { ], [ 'id' => 'mrr-growth', - 'title' => __('It\'s all about growth!', 'wp-ultimo'), + 'title' => __('It\'s all about growth!', 'wp-multisite-waas'), 'text' => [ - __('This graph allows you to follow how your monthly recurring revenue is growing this year.', 'wp-ultimo'), + __('This graph allows you to follow how your monthly recurring revenue is growing this year.', 'wp-multisite-waas'), ], 'attachTo' => [ 'element' => '#wp-ultimo-mrr-growth', @@ -259,10 +259,10 @@ class Dashboard_Admin_Page extends Base_Admin_Page { ], [ 'id' => 'tailor-made', - 'title' => __('Date-range support', 'wp-ultimo'), + 'title' => __('Date-range support', 'wp-multisite-waas'), 'text' => [ - __('Checking statistics and comparing data for different periods is key in maintaining a good grasp on your business.', 'wp-ultimo'), - __('You can use the date-range selectors to have access to just the data you need and nothing more.', 'wp-ultimo'), + __('Checking statistics and comparing data for different periods is key in maintaining a good grasp on your business.', 'wp-multisite-waas'), + __('You can use the date-range selectors to have access to just the data you need and nothing more.', 'wp-multisite-waas'), ], 'attachTo' => [ 'element' => '#dashboard-filters', @@ -286,18 +286,18 @@ class Dashboard_Admin_Page extends Base_Admin_Page { public function register_general_tab_widgets($tab, $screen): void { if (current_user_can('wu_read_financial')) { - add_meta_box('wp-ultimo-mrr-growth', __('Monthly Recurring Revenue Growth', 'wp-ultimo'), [$this, 'output_widget_mrr_growth'], $screen->id, 'full', 'high'); + add_meta_box('wp-ultimo-mrr-growth', __('Monthly Recurring Revenue Growth', 'wp-multisite-waas'), [$this, 'output_widget_mrr_growth'], $screen->id, 'full', 'high'); - add_meta_box('wp-ultimo-revenue', __('Revenue', 'wp-ultimo'), [$this, 'output_widget_revenues'], $screen->id, 'normal', 'high'); + add_meta_box('wp-ultimo-revenue', __('Revenue', 'wp-multisite-waas'), [$this, 'output_widget_revenues'], $screen->id, 'normal', 'high'); } - add_meta_box('wp-ultimo-countries', __('Signups by Countries', 'wp-ultimo'), [$this, 'output_widget_countries'], $screen->id, 'side', 'high'); + add_meta_box('wp-ultimo-countries', __('Signups by Countries', 'wp-multisite-waas'), [$this, 'output_widget_countries'], $screen->id, 'side', 'high'); - add_meta_box('wp-ultimo-signups', __('Signups by Form', 'wp-ultimo'), [$this, 'output_widget_forms'], $screen->id, 'side', 'high'); + add_meta_box('wp-ultimo-signups', __('Signups by Form', 'wp-multisite-waas'), [$this, 'output_widget_forms'], $screen->id, 'side', 'high'); - add_meta_box('wp-ultimo-most-visited-sites', __('Most Visited Sites', 'wp-ultimo'), [$this, 'output_widget_most_visited_sites'], $screen->id, 'side', 'low'); + add_meta_box('wp-ultimo-most-visited-sites', __('Most Visited Sites', 'wp-multisite-waas'), [$this, 'output_widget_most_visited_sites'], $screen->id, 'side', 'low'); - add_meta_box('wp-ultimo-new-accounts', __('New Memberships', 'wp-ultimo'), [$this, 'output_widget_new_accounts'], $screen->id, 'normal', 'low'); + add_meta_box('wp-ultimo-new-accounts', __('New Memberships', 'wp-multisite-waas'), [$this, 'output_widget_new_accounts'], $screen->id, 'normal', 'low'); } /** @@ -449,7 +449,7 @@ class Dashboard_Admin_Page extends Base_Admin_Page { * Add edge case for no plan. */ $products['none'] = (object) [ - 'name' => __('No Product', 'wp-ultimo'), + 'name' => __('No Product', 'wp-multisite-waas'), 'count' => 0, ]; @@ -514,8 +514,8 @@ class Dashboard_Admin_Page extends Base_Admin_Page { 'today' => date_i18n('Y-m-d', strtotime('tomorrow')), 'month_list' => $month_list, 'i18n' => [ - 'new_mrr' => __('New MRR', 'wp-ultimo'), - 'cancellations' => __('Cancellations', 'wp-ultimo'), + 'new_mrr' => __('New MRR', 'wp-multisite-waas'), + 'cancellations' => __('Cancellations', 'wp-multisite-waas'), ], ] ); @@ -537,7 +537,7 @@ class Dashboard_Admin_Page extends Base_Admin_Page { */ public function get_title() { - return __('Dashboard', 'wp-ultimo'); + return __('Dashboard', 'wp-multisite-waas'); } /** @@ -548,7 +548,7 @@ class Dashboard_Admin_Page extends Base_Admin_Page { */ public function get_menu_title() { - return __('Multisite WaaS', 'wp-ultimo'); + return __('Multisite WaaS', 'wp-multisite-waas'); } /** @@ -559,7 +559,7 @@ class Dashboard_Admin_Page extends Base_Admin_Page { */ public function get_submenu_title() { - return __('Dashboard', 'wp-ultimo'); + return __('Dashboard', 'wp-multisite-waas'); } /** @@ -622,6 +622,6 @@ class Dashboard_Admin_Page extends Base_Admin_Page { $html = apply_filters('wu_export_html_render', $html, $html); - printf($html, apply_filters('wu_export_data_table_label', __('CSV', 'wp-ultimo'))); + printf($html, apply_filters('wu_export_data_table_label', __('CSV', 'wp-multisite-waas'))); } } diff --git a/inc/admin-pages/class-discount-code-edit-admin-page.php b/inc/admin-pages/class-discount-code-edit-admin-page.php index c20b9f1..2a2958d 100644 --- a/inc/admin-pages/class-discount-code-edit-admin-page.php +++ b/inc/admin-pages/class-discount-code-edit-admin-page.php @@ -94,13 +94,13 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'description', [ - 'title' => __('Description', 'wp-ultimo'), + 'title' => __('Description', 'wp-multisite-waas'), 'position' => 'normal', 'fields' => [ 'description' => [ 'type' => 'textarea', - 'title' => __('Description', 'wp-ultimo'), - 'placeholder' => __('Tell your customers what this product is about.', 'wp-ultimo'), + 'title' => __('Description', 'wp-multisite-waas'), + 'placeholder' => __('Tell your customers what this product is about.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_description(), 'html_attr' => [ 'rows' => 3, @@ -114,30 +114,30 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { $options = [ 'general' => [ - 'title' => __('Limit Uses', 'wp-ultimo'), + 'title' => __('Limit Uses', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-lock', - 'desc' => __('Rules and limitations to the applicability of this discount code.', 'wp-ultimo'), + 'desc' => __('Rules and limitations to the applicability of this discount code.', 'wp-multisite-waas'), 'fields' => [ 'uses' => [ - 'title' => __('Uses', 'wp-ultimo'), + 'title' => __('Uses', 'wp-multisite-waas'), 'type' => 'text-display', // translators: %d is the number of times the coupon was used. - 'display_value' => sprintf(__('This discount code was used %d times.', 'wp-ultimo'), $this->get_object()->get_uses()), - 'tooltip' => __('The number of times that this discount code was used so far.', 'wp-ultimo'), + 'display_value' => sprintf(__('This discount code was used %d times.', 'wp-multisite-waas'), $this->get_object()->get_uses()), + 'tooltip' => __('The number of times that this discount code was used so far.', 'wp-multisite-waas'), ], 'max_uses' => [ - 'title' => __('Max Uses', 'wp-ultimo'), - 'desc' => __('Use this option to set a limit on how many times this discount code can be used. Leave blank or 0 for unlimited uses.', 'wp-ultimo'), + 'title' => __('Max Uses', 'wp-multisite-waas'), + 'desc' => __('Use this option to set a limit on how many times this discount code can be used. Leave blank or 0 for unlimited uses.', 'wp-multisite-waas'), 'type' => 'number', 'min' => 0, 'placeholder' => 0, - 'value' => $this->get_object()->has_max_uses() ? $this->get_object()->get_max_uses() : __('Unlimited', 'wp-ultimo'), + 'value' => $this->get_object()->has_max_uses() ? $this->get_object()->get_max_uses() : __('Unlimited', 'wp-multisite-waas'), ], ], ], 'time' => [ - 'title' => __('Start & Expiration Dates', 'wp-ultimo'), - 'desc' => __('Define a start and end date for this discount code. Useful when running campaigns for a pre-determined period.', 'wp-ultimo'), + 'title' => __('Start & Expiration Dates', 'wp-multisite-waas'), + 'desc' => __('Define a start and end date for this discount code. Useful when running campaigns for a pre-determined period.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-calendar', 'state' => [ 'enable_date_start' => $this->get_object()->get_date_start(), @@ -146,19 +146,19 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'enable_date_start' => [ 'type' => 'toggle', - 'title' => __('Enable Start Date', 'wp-ultimo'), - 'desc' => __('Allows you to set a start date for this coupon code.', 'wp-ultimo'), + 'title' => __('Enable Start Date', 'wp-multisite-waas'), + 'desc' => __('Allows you to set a start date for this coupon code.', 'wp-multisite-waas'), 'value' => 1, 'html_attr' => [ 'v-model' => 'enable_date_start', ], ], 'date_start' => [ - 'title' => __('Start Date', 'wp-ultimo'), - 'desc' => __('The discount code will only be good to be used after this date.', 'wp-ultimo') . ' ' . $tz_note, + 'title' => __('Start Date', 'wp-multisite-waas'), + 'desc' => __('The discount code will only be good to be used after this date.', 'wp-multisite-waas') . ' ' . $tz_note, 'type' => 'text', 'date' => true, - 'value' => $this->edit ? $this->get_object()->get_date_start() : __('No date', 'wp-ultimo'), + 'value' => $this->edit ? $this->get_object()->get_date_start() : __('No date', 'wp-multisite-waas'), 'placeholder' => 'E.g. 2020-04-04 12:00:00', 'wrapper_html_attr' => [ 'v-cloak' => 1, @@ -173,19 +173,19 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { ], 'enable_date_expiration' => [ 'type' => 'toggle', - 'title' => __('Enable Expiration Date', 'wp-ultimo'), - 'desc' => __('Allows you to set an expiration date for this coupon code.', 'wp-ultimo'), + 'title' => __('Enable Expiration Date', 'wp-multisite-waas'), + 'desc' => __('Allows you to set an expiration date for this coupon code.', 'wp-multisite-waas'), 'value' => 1, 'html_attr' => [ 'v-model' => 'enable_date_expiration', ], ], 'date_expiration' => [ - 'title' => __('Expiration Date', 'wp-ultimo'), - 'desc' => __('The discount code will expire after this date.', 'wp-ultimo') . ' ' . $tz_note, + 'title' => __('Expiration Date', 'wp-multisite-waas'), + 'desc' => __('The discount code will expire after this date.', 'wp-multisite-waas') . ' ' . $tz_note, 'type' => 'text', 'date' => true, - 'value' => $this->edit ? $this->get_object()->get_date_expiration() : __('Never Expires', 'wp-ultimo'), + 'value' => $this->edit ? $this->get_object()->get_date_expiration() : __('Never Expires', 'wp-multisite-waas'), 'placeholder' => 'E.g. 2020-04-04 12:00:00', 'wrapper_html_attr' => [ 'v-cloak' => 1, @@ -201,8 +201,8 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { ], ], 'products' => [ - 'title' => __('Limit Products', 'wp-ultimo'), - 'desc' => __('Determine if you want this discount code to apply to all discountable products or not.', 'wp-ultimo'), + 'title' => __('Limit Products', 'wp-multisite-waas'), + 'desc' => __('Determine if you want this discount code to apply to all discountable products or not.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-price-tag', 'state' => [ 'limit_products' => $this->get_object()->get_limit_products(), @@ -211,8 +211,8 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { [ 'limit_products' => [ 'type' => 'toggle', - 'title' => __('Select Products', 'wp-ultimo'), - 'desc' => __('Manually select to which products this discount code should be applicable.', 'wp-ultimo'), + 'title' => __('Select Products', 'wp-multisite-waas'), + 'desc' => __('Manually select to which products this discount code should be applicable.', 'wp-multisite-waas'), 'value' => 1, 'html_attr' => [ 'v-model' => 'limit_products', @@ -227,7 +227,7 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { $this->add_tabs_widget( 'options', [ - 'title' => __('Advanced Options', 'wp-ultimo'), + 'title' => __('Advanced Options', 'wp-multisite-waas'), 'position' => 'normal', 'sections' => apply_filters('wu_discount_code_options_sections', $options, $this->get_object()), ] @@ -241,7 +241,7 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'wp-ultimo'), + 'title' => __('Events', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'query_filter'], ] @@ -265,10 +265,10 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { ], 'fields' => [ 'code' => [ - 'title' => __('Coupon Code', 'wp-ultimo'), + 'title' => __('Coupon Code', 'wp-multisite-waas'), 'type' => 'text', - 'placeholder' => __('E.g. XMAS10OFF', 'wp-ultimo'), - 'desc' => __('The actual code your customers will enter during checkout.', 'wp-ultimo'), + 'placeholder' => __('E.g. XMAS10OFF', 'wp-multisite-waas'), + 'desc' => __('The actual code your customers will enter during checkout.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_code(), 'tooltip' => '', 'wrapper_html_attr' => [ @@ -281,7 +281,7 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { ], 'value_group' => [ 'type' => 'group', - 'title' => __('Discount', 'wp-ultimo'), + 'title' => __('Discount', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-cloak' => '1', ], @@ -292,9 +292,9 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { 'placeholder' => '', 'wrapper_classes' => 'wu-w-2/3', 'options' => [ - 'percentage' => __('Percentage (%)', 'wp-ultimo'), + 'percentage' => __('Percentage (%)', 'wp-multisite-waas'), // translators: %s is the currency symbol. e.g. $ - 'absolute' => sprintf(__('Absolute (%s)', 'wp-ultimo'), wu_get_currency_symbol()), + 'absolute' => sprintf(__('Absolute (%s)', 'wp-multisite-waas'), wu_get_currency_symbol()), ], 'html_attr' => [ 'v-model' => 'type', @@ -315,8 +315,8 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { ], 'apply_to_renewals' => [ 'type' => 'toggle', - 'title' => __('Apply to Renewals', 'wp-ultimo'), - 'desc' => __('By default, discounts are only applied to the first payment.', 'wp-ultimo'), + 'title' => __('Apply to Renewals', 'wp-multisite-waas'), + 'desc' => __('By default, discounts are only applied to the first payment.', 'wp-multisite-waas'), 'value' => $this->get_object()->should_apply_to_renewals(), 'wrapper_html_attr' => [ 'v-cloak' => '1', @@ -324,8 +324,8 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { ], 'apply_to_setup_fee' => [ 'type' => 'toggle', - 'title' => __('Setup Fee Discount', 'wp-ultimo'), - 'desc' => __('Also set a discount for setup fee?', 'wp-ultimo'), + 'title' => __('Setup Fee Discount', 'wp-multisite-waas'), + 'desc' => __('Also set a discount for setup fee?', 'wp-multisite-waas'), 'value' => $this->get_object()->get_setup_fee_value() > 0, 'html_attr' => [ 'v-model' => 'apply_to_setup_fee', @@ -336,7 +336,7 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { ], 'setup_fee_value_group' => [ 'type' => 'group', - 'title' => __('Setup Fee Discount', 'wp-ultimo'), + 'title' => __('Setup Fee Discount', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => 'apply_to_setup_fee', 'v-cloak' => '1', @@ -348,9 +348,9 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { 'placeholder' => '', 'wrapper_classes' => 'wu-w-2/3', 'options' => [ - 'percentage' => __('Percentage (%)', 'wp-ultimo'), + 'percentage' => __('Percentage (%)', 'wp-multisite-waas'), // translators: %s is the currency symbol. e.g $ - 'absolute' => sprintf(__('Absolute (%s)', 'wp-ultimo'), wu_get_currency_symbol()), + 'absolute' => sprintf(__('Absolute (%s)', 'wp-multisite-waas'), wu_get_currency_symbol()), ], 'html_attr' => [ 'v-model' => 'setup_fee_type', @@ -375,12 +375,12 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'active', [ - 'title' => __('Active', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), 'fields' => [ 'active' => [ 'type' => 'toggle', - 'title' => __('Active', 'wp-ultimo'), - 'desc' => __('Use this option to manually enable or disable this discount code for new sign-ups.', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), + 'desc' => __('Use this option to manually enable or disable this discount code for new sign-ups.', 'wp-multisite-waas'), 'value' => $this->get_object()->is_active(), ], ], @@ -404,7 +404,7 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { $fields[ "allowed_products_{$product_id}" ] = [ 'type' => 'toggle', 'title' => $product->get_name(), - 'desc' => __('Make applicable to this product.', 'wp-ultimo'), + 'desc' => __('Make applicable to this product.', 'wp-multisite-waas'), 'tooltip' => '', 'wrapper_classes' => '', 'html_attr' => [ @@ -432,7 +432,7 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { $fields['allowed_products_no_products'] = [ 'type' => 'note', 'title' => '', - 'desc' => __('You do not have any products at this moment.', 'wp-ultimo'), + 'desc' => __('You do not have any products at this moment.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-cloak' => 1, 'v-show' => 'limit_products', @@ -453,7 +453,7 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { global $wp_filter; - $tabs = [__('Legacy Add-ons', 'wp-ultimo')]; + $tabs = [__('Legacy Add-ons', 'wp-multisite-waas')]; if ( ! isset($wp_filter['wp_ultimo_coupon_advanced_options'])) { return; @@ -466,9 +466,9 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { $fields = [ 'heading' => [ 'type' => 'header', - 'title' => __('Legacy Options', 'wp-ultimo'), + 'title' => __('Legacy Options', 'wp-multisite-waas'), // translators: %s is the comma-separated list of legacy add-ons. - 'desc' => sprintf(__('Options for %s, and others.', 'wp-ultimo'), implode(', ', $tabs)), + 'desc' => sprintf(__('Options for %s, and others.', 'wp-multisite-waas'), implode(', ', $tabs)), ], ]; @@ -488,7 +488,7 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'legacy-options', [ - 'title' => __('Legacy Options', 'wp-ultimo'), + 'title' => __('Legacy Options', 'wp-multisite-waas'), 'position' => 'normal', 'fields' => $fields, 'classes' => 'wu-legacy-options-panel', @@ -545,7 +545,7 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_title() { - return $this->edit ? __('Edit Discount Code', 'wp-ultimo') : __('Add new Discount Code', 'wp-ultimo'); + return $this->edit ? __('Edit Discount Code', 'wp-multisite-waas') : __('Add new Discount Code', 'wp-multisite-waas'); } /** @@ -556,7 +556,7 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_menu_title() { - return __('Edit Discount Code', 'wp-ultimo'); + return __('Edit Discount Code', 'wp-multisite-waas'); } /** @@ -579,15 +579,15 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page { public function get_labels() { return [ - 'edit_label' => __('Edit Discount Code', 'wp-ultimo'), - 'add_new_label' => __('Add new Discount Code', 'wp-ultimo'), - 'updated_message' => __('Discount Code updated successfully!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Discount Code', 'wp-ultimo'), + 'edit_label' => __('Edit Discount Code', 'wp-multisite-waas'), + 'add_new_label' => __('Add new Discount Code', 'wp-multisite-waas'), + 'updated_message' => __('Discount Code updated successfully!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Discount Code', 'wp-multisite-waas'), 'title_description' => '', - 'save_button_label' => __('Save Discount Code', 'wp-ultimo'), + 'save_button_label' => __('Save Discount Code', 'wp-multisite-waas'), 'save_description' => '', - 'delete_button_label' => __('Delete Discount Code', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'delete_button_label' => __('Delete Discount Code', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; } diff --git a/inc/admin-pages/class-discount-code-list-admin-page.php b/inc/admin-pages/class-discount-code-list-admin-page.php index a31a898..28c385d 100644 --- a/inc/admin-pages/class-discount-code-list-admin-page.php +++ b/inc/admin-pages/class-discount-code-list-admin-page.php @@ -71,8 +71,8 @@ class Discount_Code_List_Admin_Page extends List_Admin_Page { public function get_labels() { return [ - 'deleted_message' => __('Discount Code removed successfully.', 'wp-ultimo'), - 'search_label' => __('Search Discount Code', 'wp-ultimo'), + 'deleted_message' => __('Discount Code removed successfully.', 'wp-multisite-waas'), + 'search_label' => __('Search Discount Code', 'wp-multisite-waas'), ]; } @@ -84,7 +84,7 @@ class Discount_Code_List_Admin_Page extends List_Admin_Page { */ public function get_title() { - return __('Discount Codes', 'wp-ultimo'); + return __('Discount Codes', 'wp-multisite-waas'); } /** @@ -95,7 +95,7 @@ class Discount_Code_List_Admin_Page extends List_Admin_Page { */ public function get_menu_title() { - return __('Discount Codes', 'wp-ultimo'); + return __('Discount Codes', 'wp-multisite-waas'); } /** @@ -106,7 +106,7 @@ class Discount_Code_List_Admin_Page extends List_Admin_Page { */ public function get_submenu_title() { - return __('Discount Codes', 'wp-ultimo'); + return __('Discount Codes', 'wp-multisite-waas'); } /** diff --git a/inc/admin-pages/class-domain-edit-admin-page.php b/inc/admin-pages/class-domain-edit-admin-page.php index 3c22026..c334976 100644 --- a/inc/admin-pages/class-domain-edit-admin-page.php +++ b/inc/admin-pages/class-domain-edit-admin-page.php @@ -119,7 +119,7 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { $custom_fields = [ 'set_domain_as_primary' => [ 'type' => 'model', - 'title' => __('Set another domain as primary', 'wp-ultimo'), + 'title' => __('Set another domain as primary', 'wp-multisite-waas'), 'html_attr' => [ 'data-model' => 'domain', 'data-value-field' => 'id', @@ -135,16 +135,16 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { ], 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Deletion', 'wp-ultimo'), - 'desc' => __('This action can not be undone.', 'wp-ultimo'), + 'title' => __('Confirm Deletion', 'wp-multisite-waas'), + 'desc' => __('This action can not be undone.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Delete', 'wp-ultimo'), - 'placeholder' => __('Delete', 'wp-ultimo'), + 'title' => __('Delete', 'wp-multisite-waas'), + 'placeholder' => __('Delete', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -195,14 +195,14 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'domain-url', [ - 'title' => __('Domain URL', 'wp-ultimo'), + 'title' => __('Domain URL', 'wp-multisite-waas'), 'position' => 'normal', 'after' => [$this, 'render_dns_widget'], 'fields' => [ 'domain' => [ 'type' => 'text-display', - 'title' => __('Domain', 'wp-ultimo'), - 'tooltip' => __('Editing an existing domain is not possible. If you want to make changes to this domain, first delete it, and then re-add the right domain.', 'wp-ultimo'), + 'title' => __('Domain', 'wp-multisite-waas'), + 'tooltip' => __('Editing an existing domain is not possible. If you want to make changes to this domain, first delete it, and then re-add the right domain.', 'wp-multisite-waas'), 'display_value' => '' . $this->get_object()->get_domain() . ' ', ], ], @@ -212,12 +212,12 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { $this->add_tabs_widget( 'options', [ - 'title' => __('Domain Options', 'wp-ultimo'), + 'title' => __('Domain Options', 'wp-multisite-waas'), 'position' => 'normal', 'sections' => [ 'general' => [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General options for the domain.', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General options for the domain.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-globe', 'state' => [ 'primary_domain' => $this->get_object()->is_primary_domain(), @@ -225,9 +225,9 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'primary_domain' => [ 'type' => 'toggle', - 'title' => __('Is Primary Domain?', 'wp-ultimo'), - 'desc' => __('Set as the primary domain.', 'wp-ultimo'), - 'tooltip' => __('Setting this as the primary domain will remove any other domain mapping marked as the primary domain for this site.', 'wp-ultimo'), + 'title' => __('Is Primary Domain?', 'wp-multisite-waas'), + 'desc' => __('Set as the primary domain.', 'wp-multisite-waas'), + 'tooltip' => __('Setting this as the primary domain will remove any other domain mapping marked as the primary domain for this site.', 'wp-multisite-waas'), 'value' => $this->get_object()->is_primary_domain(), 'html_attr' => [ 'v-model' => 'primary_domain', @@ -235,15 +235,15 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { ], 'primary_note' => [ 'type' => 'note', - 'desc' => __('By making this the primary domain, we will convert the previous primary domain for this site, if one exists, into an alias domain.', 'wp-ultimo'), + 'desc' => __('By making this the primary domain, we will convert the previous primary domain for this site, if one exists, into an alias domain.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-if' => "require('primary_domain', true)", ], ], 'secure' => [ 'type' => 'toggle', - 'title' => __('Is Secure?', 'wp-ultimo'), - 'desc' => __('Force the load using HTTPS.', 'wp-ultimo'), + 'title' => __('Is Secure?', 'wp-multisite-waas'), + 'desc' => __('Force the load using HTTPS.', 'wp-multisite-waas'), 'value' => $this->get_object()->is_secure(), ], ], @@ -255,18 +255,18 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'sites', [ - 'title' => __('Linked Site', 'wp-ultimo'), + 'title' => __('Linked Site', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Memberships_Site_List_Table(), 'query_filter' => [$this, 'sites_query_filter'], ] ); - add_meta_box('wp-ultimo-domain-log', __('Domain Test Log', 'wp-ultimo'), [$this, 'render_log_widget'], get_current_screen()->id, 'normal', null); + add_meta_box('wp-ultimo-domain-log', __('Domain Test Log', 'wp-multisite-waas'), [$this, 'render_log_widget'], get_current_screen()->id, 'normal', null); $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'wp-ultimo'), + 'title' => __('Events', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'query_filter'], ] @@ -286,9 +286,9 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'stage' => [ 'type' => 'select', - 'title' => __('Stage', 'wp-ultimo'), - 'placeholder' => __('Select Stage', 'wp-ultimo'), - 'desc' => __('The stage in the checking lifecycle of this domain.', 'wp-ultimo'), + 'title' => __('Stage', 'wp-multisite-waas'), + 'placeholder' => __('Select Stage', 'wp-multisite-waas'), + 'desc' => __('The stage in the checking lifecycle of this domain.', 'wp-multisite-waas'), 'options' => Domain_Stage::to_array(), 'value' => $this->get_object()->get_stage(), 'wrapper_html_attr' => [ @@ -301,9 +301,9 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { ], 'blog_id' => [ 'type' => 'model', - 'title' => __('Site', 'wp-ultimo'), - 'placeholder' => __('Search Site...', 'wp-ultimo'), - 'desc' => __('The target site of this domain.', 'wp-ultimo'), + 'title' => __('Site', 'wp-multisite-waas'), + 'placeholder' => __('Search Site...', 'wp-multisite-waas'), + 'desc' => __('The target site of this domain.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_blog_id(), 'tooltip' => '', 'html_attr' => [ @@ -327,7 +327,7 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'basic', [ - 'title' => __('Active', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), 'html_attr' => [ 'data-wu-app' => 'basic', 'data-state' => wu_convert_to_state( @@ -339,8 +339,8 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'active' => [ 'type' => 'toggle', - 'title' => __('Active', 'wp-ultimo'), - 'desc' => __('Use this option to manually enable or disable this domain.', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), + 'desc' => __('Use this option to manually enable or disable this domain.', 'wp-multisite-waas'), 'value' => $this->get_object()->is_active(), 'html_attr' => [ 'v-cloak' => '1', @@ -353,7 +353,7 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { ], 'note' => [ 'type' => 'note', - 'desc' => __('This domain has a domain stage that forces it to be inactive. Change the status to Ready or Ready (without SSL) to be able to control the active status directly.', 'wp-ultimo'), + 'desc' => __('This domain has a domain stage that forces it to be inactive. Change the status to Ready or Ready (without SSL) to be able to control the active status directly.', 'wp-multisite-waas'), 'classes' => 'wu-p-2 wu-bg-red-100 wu-text-red-600 wu-rounded wu-w-full', 'wrapper_html_attr' => [ 'v-show' => $check_for_active_string, @@ -406,7 +406,7 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_title() { - return $this->edit ? __('Edit Domain', 'wp-ultimo') : __('Add new Domain', 'wp-ultimo'); + return $this->edit ? __('Edit Domain', 'wp-multisite-waas') : __('Add new Domain', 'wp-multisite-waas'); } /** @@ -417,7 +417,7 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_menu_title() { - return __('Edit Domain', 'wp-ultimo'); + return __('Edit Domain', 'wp-multisite-waas'); } /** @@ -440,15 +440,15 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page { public function get_labels() { return [ - 'edit_label' => __('Edit Domain', 'wp-ultimo'), - 'add_new_label' => __('Add new Domain', 'wp-ultimo'), - 'updated_message' => __('Domain updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Domain', 'wp-ultimo'), + 'edit_label' => __('Edit Domain', 'wp-multisite-waas'), + 'add_new_label' => __('Add new Domain', 'wp-multisite-waas'), + 'updated_message' => __('Domain updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Domain', 'wp-multisite-waas'), 'title_description' => '', - 'save_button_label' => __('Save Domain', 'wp-ultimo'), + 'save_button_label' => __('Save Domain', 'wp-multisite-waas'), 'save_description' => '', - 'delete_button_label' => __('Delete Domain', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'delete_button_label' => __('Delete Domain', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; } diff --git a/inc/admin-pages/class-domain-list-admin-page.php b/inc/admin-pages/class-domain-list-admin-page.php index bbc26ee..d008f83 100644 --- a/inc/admin-pages/class-domain-list-admin-page.php +++ b/inc/admin-pages/class-domain-list-admin-page.php @@ -93,14 +93,14 @@ class Domain_List_Admin_Page extends List_Admin_Page { ); // translators: %s is the URL to the add-on. - $note_desc = sprintf(__('To activate this feature you need to install the WP Multisite WaaS: Domain Seller add-on.', 'wp-ultimo'), $addon_url); + $note_desc = sprintf(__('To activate this feature you need to install the WP Multisite WaaS: Domain Seller add-on.', 'wp-multisite-waas'), $addon_url); $fields = [ 'type' => [ 'type' => 'tab-select', 'options' => [ - 'add' => __('Add Existing Domain', 'wp-ultimo'), - 'register' => __('Register New', 'wp-ultimo'), + 'add' => __('Add Existing Domain', 'wp-multisite-waas'), + 'register' => __('Register New', 'wp-multisite-waas'), ], 'html_attr' => [ 'v-model' => 'type', @@ -108,18 +108,18 @@ class Domain_List_Admin_Page extends List_Admin_Page { ], 'domain' => [ 'type' => 'text', - 'title' => __('Domain', 'wp-ultimo'), - 'placeholder' => __('E.g. mydomain.com', 'wp-ultimo'), - 'desc' => __('Be sure the domain has the right DNS setup in place before adding it.', 'wp-ultimo'), + 'title' => __('Domain', 'wp-multisite-waas'), + 'placeholder' => __('E.g. mydomain.com', 'wp-multisite-waas'), + 'desc' => __('Be sure the domain has the right DNS setup in place before adding it.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => "require('type', 'add')", ], ], 'blog_id' => [ 'type' => 'model', - 'title' => __('Apply to Site', 'wp-ultimo'), - 'placeholder' => __('Search Sites...', 'wp-ultimo'), - 'desc' => __('The target site of the domain being added.', 'wp-ultimo'), + 'title' => __('Apply to Site', 'wp-multisite-waas'), + 'placeholder' => __('Search Sites...', 'wp-multisite-waas'), + 'desc' => __('The target site of the domain being added.', 'wp-multisite-waas'), 'html_attr' => [ 'data-model' => 'site', 'data-value-field' => 'blog_id', @@ -133,30 +133,30 @@ class Domain_List_Admin_Page extends List_Admin_Page { ], 'stage' => [ 'type' => 'select', - 'title' => __('Stage', 'wp-ultimo'), - 'placeholder' => __('Select Stage', 'wp-ultimo'), - 'desc' => __('The stage in the domain check lifecycle. Leave "Checking DNS" to have the domain go through WP Multisite WaaS\'s automated tests.', 'wp-ultimo'), + 'title' => __('Stage', 'wp-multisite-waas'), + 'placeholder' => __('Select Stage', 'wp-multisite-waas'), + 'desc' => __('The stage in the domain check lifecycle. Leave "Checking DNS" to have the domain go through WP Multisite WaaS\'s automated tests.', 'wp-multisite-waas'), 'options' => Domain_Stage::to_array(), 'value' => Domain_Stage::CHECKING_DNS, ], 'primary_domain' => [ 'type' => 'toggle', - 'title' => __('Primary Domain', 'wp-ultimo'), - 'desc' => __('Check to set this domain as the primary', 'wp-ultimo'), + 'title' => __('Primary Domain', 'wp-multisite-waas'), + 'desc' => __('Check to set this domain as the primary', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'primary_domain', ], ], 'primary_note' => [ 'type' => 'note', - 'desc' => __('By making this the primary domain, we will convert the previous primary domain for this site, if one exists, into an alias domain.', 'wp-ultimo'), + 'desc' => __('By making this the primary domain, we will convert the previous primary domain for this site, if one exists, into an alias domain.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => "require('primary_domain', true)", ], ], 'submit_button_new' => [ 'type' => 'submit', - 'title' => __('Add Existing Domain', 'wp-ultimo'), + 'title' => __('Add Existing Domain', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -174,7 +174,7 @@ class Domain_List_Admin_Page extends List_Admin_Page { ], 'submit_button_register' => [ 'type' => 'submit', - 'title' => __('Register and Add Domain (soon)', 'wp-ultimo'), + 'title' => __('Register and Add Domain (soon)', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -281,8 +281,8 @@ class Domain_List_Admin_Page extends List_Admin_Page { public function get_labels() { return [ - 'deleted_message' => __('Domains removed successfully.', 'wp-ultimo'), - 'search_label' => __('Search Domains', 'wp-ultimo'), + 'deleted_message' => __('Domains removed successfully.', 'wp-multisite-waas'), + 'search_label' => __('Search Domains', 'wp-multisite-waas'), ]; } @@ -294,7 +294,7 @@ class Domain_List_Admin_Page extends List_Admin_Page { */ public function get_title() { - return __('Domains', 'wp-ultimo'); + return __('Domains', 'wp-multisite-waas'); } /** @@ -305,7 +305,7 @@ class Domain_List_Admin_Page extends List_Admin_Page { */ public function get_menu_title() { - return __('Domains', 'wp-ultimo'); + return __('Domains', 'wp-multisite-waas'); } /** @@ -316,7 +316,7 @@ class Domain_List_Admin_Page extends List_Admin_Page { */ public function get_submenu_title() { - return __('Domains', 'wp-ultimo'); + return __('Domains', 'wp-multisite-waas'); } /** diff --git a/inc/admin-pages/class-edit-admin-page.php b/inc/admin-pages/class-edit-admin-page.php index d3a6f94..c36bdfd 100644 --- a/inc/admin-pages/class-edit-admin-page.php +++ b/inc/admin-pages/class-edit-admin-page.php @@ -141,11 +141,11 @@ abstract class Edit_Admin_Page extends Base_Admin_Page { if ($locked && $this->edit) { // translators: %s is the date, using the site format options - $message = sprintf(__('This item is locked from editions.
This is probably due to a background action being performed (like a transfer between different accounts, for example). You can manually unlock it, but be careful. The lock should be released automatically in %s seconds.', 'wp-ultimo'), wu_get_next_queue_run() + 10); + $message = sprintf(__('This item is locked from editions.
This is probably due to a background action being performed (like a transfer between different accounts, for example). You can manually unlock it, but be careful. The lock should be released automatically in %s seconds.', 'wp-multisite-waas'), wu_get_next_queue_run() + 10); $actions = [ 'preview' => [ - 'title' => __('Unlock', 'wp-ultimo'), + 'title' => __('Unlock', 'wp-multisite-waas'), 'url' => add_query_arg( [ 'remove-lock' => 1, @@ -264,15 +264,15 @@ abstract class Edit_Admin_Page extends Base_Admin_Page { public function get_labels() { $default_labels = [ - 'edit_label' => __('Edit Object', 'wp-ultimo'), - 'add_new_label' => __('Add New Object', 'wp-ultimo'), - 'updated_message' => __('Object updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Object Name', 'wp-ultimo'), + 'edit_label' => __('Edit Object', 'wp-multisite-waas'), + 'add_new_label' => __('Add New Object', 'wp-multisite-waas'), + 'updated_message' => __('Object updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Object Name', 'wp-multisite-waas'), 'title_description' => '', - 'save_button_label' => __('Save', 'wp-ultimo'), + 'save_button_label' => __('Save', 'wp-multisite-waas'), 'save_description' => '', - 'delete_button_label' => __('Delete', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'delete_button_label' => __('Delete', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; return apply_filters('wu_edit_admin_page_labels', $default_labels); @@ -320,7 +320,7 @@ abstract class Edit_Admin_Page extends Base_Admin_Page { $this->add_info_widget( 'info', [ - 'title' => __('Timestamps', 'wp-ultimo'), + 'title' => __('Timestamps', 'wp-multisite-waas'), 'position' => 'side-bottom', ] ); @@ -350,7 +350,7 @@ abstract class Edit_Admin_Page extends Base_Admin_Page { $created_value = call_user_func([$this->get_object(), "get_$created_key"]); $atts['fields'][ $created_key ] = [ - 'title' => __('Created at', 'wp-ultimo'), + 'title' => __('Created at', 'wp-multisite-waas'), 'type' => 'text-display', 'date' => true, 'display_value' => $this->edit ? $created_value : false, @@ -367,10 +367,10 @@ abstract class Edit_Admin_Page extends Base_Admin_Page { if ($this->edit && true === $show_modified) { $atts['fields']['date_modified'] = [ - 'title' => __('Last Modified at', 'wp-ultimo'), + 'title' => __('Last Modified at', 'wp-multisite-waas'), 'type' => 'text-display', 'date' => true, - 'display_value' => $this->edit ? $this->get_object()->get_date_modified() : __('No date', 'wp-ultimo'), + 'display_value' => $this->edit ? $this->get_object()->get_date_modified() : __('No date', 'wp-multisite-waas'), 'value' => $this->get_object()->get_date_modified(), 'placeholder' => '2020-04-04 12:00:00', 'html_attr' => [ @@ -401,7 +401,7 @@ abstract class Edit_Admin_Page extends Base_Admin_Page { 'widget_id' => $id, 'before' => '', 'after' => '', - 'title' => __('List Table', 'wp-ultimo'), + 'title' => __('List Table', 'wp-multisite-waas'), 'position' => 'advanced', 'screen' => get_current_screen(), 'page' => $this, @@ -466,7 +466,7 @@ abstract class Edit_Admin_Page extends Base_Admin_Page { 'widget_id' => $id, 'before' => '', 'after' => '', - 'title' => __('Fields', 'wp-ultimo'), + 'title' => __('Fields', 'wp-multisite-waas'), 'position' => 'side', 'screen' => get_current_screen(), 'fields' => [], @@ -484,7 +484,7 @@ abstract class Edit_Admin_Page extends Base_Admin_Page { if (wu_get_isset($atts['html_attr'], 'data-wu-app')) { $atts['fields']['loading'] = [ 'type' => 'note', - 'desc' => sprintf('
%s
', __('Loading...', 'wp-ultimo')), + 'desc' => sprintf('
%s
', __('Loading...', 'wp-multisite-waas')), 'wrapper_html_attr' => [ 'v-if' => 0, ], @@ -535,7 +535,7 @@ abstract class Edit_Admin_Page extends Base_Admin_Page { 'widget_id' => $id, 'before' => '', 'after' => '', - 'title' => __('Tabs', 'wp-ultimo'), + 'title' => __('Tabs', 'wp-multisite-waas'), 'position' => 'advanced', 'screen' => get_current_screen(), 'sections' => [], @@ -651,7 +651,7 @@ abstract class Edit_Admin_Page extends Base_Admin_Page { 'widget_id' => $id, 'before' => '', 'after' => '', - 'title' => __('Fields', 'wp-ultimo'), + 'title' => __('Fields', 'wp-multisite-waas'), 'screen' => get_current_screen(), 'position' => 'side', 'display' => '__return_empty_string', @@ -674,7 +674,7 @@ abstract class Edit_Admin_Page extends Base_Admin_Page { $labels = $this->get_labels(); - $atts['title'] = __('Save', 'wp-ultimo'); + $atts['title'] = __('Save', 'wp-multisite-waas'); /** * Adds Submit Button @@ -694,7 +694,7 @@ abstract class Edit_Admin_Page extends Base_Admin_Page { } if ($this->get_object() && $this->edit && $this->get_object()->is_locked()) { - $atts['fields']['submit_save']['title'] = __('Locked', 'wp-ultimo'); + $atts['fields']['submit_save']['title'] = __('Locked', 'wp-multisite-waas'); $atts['fields']['submit_save']['value'] = 'none'; $atts['fields']['submit_save']['html_attr']['disabled'] = 'disabled'; } @@ -716,7 +716,7 @@ abstract class Edit_Admin_Page extends Base_Admin_Page { $labels = $this->get_labels(); $atts_default = [ - 'title' => __('Delete', 'wp-ultimo'), + 'title' => __('Delete', 'wp-multisite-waas'), 'position' => 'side-bottom', ]; $atts = array_merge($atts_default, $atts); diff --git a/inc/admin-pages/class-email-edit-admin-page.php b/inc/admin-pages/class-email-edit-admin-page.php index d8ef1a6..a4b6787 100644 --- a/inc/admin-pages/class-email-edit-admin-page.php +++ b/inc/admin-pages/class-email-edit-admin-page.php @@ -124,10 +124,10 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { $object = $this->get_object(); // translators: %s is replaced with the number of days. - $days_text = sprintf(__('Send %s day(s) after the event.', 'wp-ultimo'), '{{ days }}'); + $days_text = sprintf(__('Send %s day(s) after the event.', 'wp-multisite-waas'), '{{ days }}'); // translators: %1$s is replaced with the number of hours, %2$s is replaced with the number of minutes. - $hour_text = sprintf(__('Send %1$s hour(s) and %2$s minute(s) after the event.', 'wp-ultimo'), '{{ hours.split(":").shift() }}', '{{ hours.split(":").pop() }}'); + $hour_text = sprintf(__('Send %1$s hour(s) and %2$s minute(s) after the event.', 'wp-multisite-waas'), '{{ hours.split(":").shift() }}', '{{ hours.split(":").pop() }}'); $desc = sprintf( '%s @@ -155,8 +155,8 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'slug' => [ 'type' => 'text', - 'title' => __('Slug', 'wp-ultimo'), - 'desc' => __('An unique identifier for this system email.', 'wp-ultimo'), + 'title' => __('Slug', 'wp-multisite-waas'), + 'desc' => __('An unique identifier for this system email.', 'wp-multisite-waas'), 'value' => $this->edit ? $object->get_slug() : '', 'html_attr' => [ 'required' => 'required', @@ -166,9 +166,9 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { ], 'event' => [ 'type' => 'select', - 'title' => __('Event', 'wp-ultimo'), - 'desc' => __('The event that will trigger the sending of this email.', 'wp-ultimo'), - 'placeholder' => __('Event', 'wp-ultimo'), + 'title' => __('Event', 'wp-multisite-waas'), + 'desc' => __('The event that will trigger the sending of this email.', 'wp-multisite-waas'), + 'placeholder' => __('Event', 'wp-multisite-waas'), 'options' => 'wu_get_event_types_as_options', 'value' => $this->edit ? $object->get_event() : 0, 'html_attr' => [ @@ -177,13 +177,13 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { ], 'target' => [ 'type' => 'select', - 'title' => __('Target', 'wp-ultimo'), - 'desc' => __('To whom this email should be sent.', 'wp-ultimo'), - 'placeholder' => __('Network Administrators', 'wp-ultimo'), + 'title' => __('Target', 'wp-multisite-waas'), + 'desc' => __('To whom this email should be sent.', 'wp-multisite-waas'), + 'placeholder' => __('Network Administrators', 'wp-multisite-waas'), 'value' => $this->edit ? $object->get_target() : 'admin', 'options' => [ - 'admin' => __('Network Administrators', 'wp-ultimo'), - 'customer' => __('Customer', 'wp-ultimo'), + 'admin' => __('Network Administrators', 'wp-multisite-waas'), + 'customer' => __('Customer', 'wp-multisite-waas'), ], 'html_attr' => [ 'v-model' => 'target', @@ -191,8 +191,8 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { ], 'send_copy_to_admin' => [ 'type' => 'toggle', - 'title' => __('Send Copy to Admins?', 'wp-ultimo'), - 'desc' => __('Checking this options will add the network admins as bcc every time this email is sent to a customer.', 'wp-ultimo'), + 'title' => __('Send Copy to Admins?', 'wp-multisite-waas'), + 'desc' => __('Checking this options will add the network admins as bcc every time this email is sent to a customer.', 'wp-multisite-waas'), 'value' => $this->edit ? $object->get_send_copy_to_admin() : false, 'wrapper_html_attr' => [ 'v-show' => 'target == "customer"', @@ -201,8 +201,8 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { ], 'schedule' => [ 'type' => 'toggle', - 'title' => __('Schedule?', 'wp-ultimo'), - 'desc' => __('You can define when the email is sent after the event triggers.', 'wp-ultimo'), + 'title' => __('Schedule?', 'wp-multisite-waas'), + 'desc' => __('You can define when the email is sent after the event triggers.', 'wp-multisite-waas'), 'value' => $this->edit ? $this->get_object()->has_schedule() : 0, 'html_attr' => [ 'v-model' => 'schedule', @@ -210,8 +210,8 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { ], 'send_date' => [ 'type' => 'group', - 'title' => __('Scheduling Options', 'wp-ultimo'), - 'tooltip' => __('When this email will be sent after the event?', 'wp-ultimo'), + 'title' => __('Scheduling Options', 'wp-multisite-waas'), + 'tooltip' => __('When this email will be sent after the event?', 'wp-multisite-waas'), 'desc' => $desc, 'desc_id' => 'send_date_desc', 'wrapper_html_attr' => [ @@ -225,8 +225,8 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { 'wrapper_classes' => 'wu-w-2/3', 'value' => $this->edit ? $object->get_schedule_type() : 'days', 'options' => [ - 'hours' => __('Delay for hours', 'wp-ultimo'), - 'days' => __('Delay for days', 'wp-ultimo'), + 'hours' => __('Delay for hours', 'wp-multisite-waas'), + 'days' => __('Delay for days', 'wp-multisite-waas'), ], 'html_attr' => [ 'v-model' => 'schedule_type', @@ -271,17 +271,17 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { ] ); - add_meta_box('wp-ultimo-placeholders', __('Placeholders', 'wp-ultimo'), [$this, 'output_default_widget_placeholders'], get_current_screen()->id, 'normal', null, []); + add_meta_box('wp-ultimo-placeholders', __('Placeholders', 'wp-multisite-waas'), [$this, 'output_default_widget_placeholders'], get_current_screen()->id, 'normal', null, []); $this->add_fields_widget( 'active', [ - 'title' => __('Active', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), 'fields' => [ 'active' => [ 'type' => 'toggle', - 'title' => __('Active', 'wp-ultimo'), - 'desc' => __('Use this option to manually enable or disable this email.', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), + 'desc' => __('Use this option to manually enable or disable this email.', 'wp-multisite-waas'), 'value' => $this->get_object()->is_active(), ], ], @@ -291,40 +291,40 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { $this->add_tabs_widget( 'email_edit_options', [ - 'title' => __('Advanced Options', 'wp-ultimo'), + 'title' => __('Advanced Options', 'wp-multisite-waas'), 'position' => 'normal', 'sections' => [ 'general' => [ - 'title' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-lock', - 'desc' => __('Rules and limitations to the applicability of this discount code.', 'wp-ultimo'), + 'desc' => __('Rules and limitations to the applicability of this discount code.', 'wp-multisite-waas'), 'state' => [ 'sender' => $this->edit ? $object->get_custom_sender() : 0, ], 'fields' => [ 'style' => [ 'type' => 'select', - 'title' => __('Email Style', 'wp-ultimo'), - 'desc' => __('Choose if email body will be sent using the HTML template or in plain text.', 'wp-ultimo'), - 'placeholder' => __('Style', 'wp-ultimo'), + 'title' => __('Email Style', 'wp-multisite-waas'), + 'desc' => __('Choose if email body will be sent using the HTML template or in plain text.', 'wp-multisite-waas'), + 'placeholder' => __('Style', 'wp-multisite-waas'), 'options' => [ - 'default' => __('Use Default', 'wp-ultimo'), - 'html' => __('HTML Emails', 'wp-ultimo'), - 'plain' => __('Plain Emails', 'wp-ultimo'), + 'default' => __('Use Default', 'wp-multisite-waas'), + 'html' => __('HTML Emails', 'wp-multisite-waas'), + 'plain' => __('Plain Emails', 'wp-multisite-waas'), ], 'value' => $this->edit ? $object->get_style() : 'html', ], ], ], 'sender' => [ - 'title' => __('Custom Sender', 'wp-ultimo'), + 'title' => __('Custom Sender', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-mail', - 'desc' => __('You can define an email and a name that will only be used when this email is sent.', 'wp-ultimo'), + 'desc' => __('You can define an email and a name that will only be used when this email is sent.', 'wp-multisite-waas'), 'fields' => [ 'custom_sender' => [ 'type' => 'toggle', - 'title' => __('Use a custom sender?', 'wp-ultimo'), - 'desc' => __('You can define an email and a name that will only be used when this email is sent.', 'wp-ultimo'), + 'title' => __('Use a custom sender?', 'wp-multisite-waas'), + 'desc' => __('You can define an email and a name that will only be used when this email is sent.', 'wp-multisite-waas'), 'value' => $this->edit ? $object->get_custom_sender() : 0, 'html_attr' => [ 'v-model' => 'sender', @@ -332,8 +332,8 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { ], 'custom_sender_name' => [ 'type' => 'text', - 'title' => __('From "Name"', 'wp-ultimo'), - 'desc' => __('Override the global from name for this particular email.', 'wp-ultimo'), + 'title' => __('From "Name"', 'wp-multisite-waas'), + 'desc' => __('Override the global from name for this particular email.', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-full', 'value' => $this->edit ? $object->get_custom_sender_name() : '', 'wrapper_html_attr' => [ @@ -343,8 +343,8 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { ], 'custom_sender_email' => [ 'type' => 'email', - 'title' => __('From "Email"', 'wp-ultimo'), - 'desc' => __('Override the global from email for this particular email.', 'wp-ultimo'), + 'title' => __('From "Email"', 'wp-multisite-waas'), + 'desc' => __('Override the global from email for this particular email.', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-full', 'value' => $this->edit ? $object->get_custom_sender_email() : '', 'wrapper_html_attr' => [ @@ -373,8 +373,8 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { wu_get_template( 'email/widget-placeholders', [ - 'title' => __('Event Payload', 'wp-ultimo'), - 'loading_text' => __('Loading Payload', 'wp-ultimo'), + 'title' => __('Event Payload', 'wp-multisite-waas'), + 'loading_text' => __('Loading Payload', 'wp-multisite-waas'), ] ); } @@ -387,7 +387,7 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_title() { - return $this->edit ? __('Edit Email', 'wp-ultimo') : __('Add new Email', 'wp-ultimo'); + return $this->edit ? __('Edit Email', 'wp-multisite-waas') : __('Add new Email', 'wp-multisite-waas'); } /** @@ -398,7 +398,7 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_menu_title() { - return __('Edit Email', 'wp-ultimo'); + return __('Edit Email', 'wp-multisite-waas'); } /** @@ -420,12 +420,12 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { return [ [ 'url' => wu_network_admin_url('wp-ultimo-emails'), - 'label' => __('Go Back', 'wp-ultimo'), + 'label' => __('Go Back', 'wp-multisite-waas'), 'icon' => 'wu-reply', ], [ 'url' => $send_test_link, - 'label' => __('Send Test Email', 'wp-ultimo'), + 'label' => __('Send Test Email', 'wp-multisite-waas'), 'icon' => 'wu-mail', 'classes' => 'wubox', ], @@ -441,15 +441,15 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page { public function get_labels() { return [ - 'edit_label' => __('Edit Email', 'wp-ultimo'), - 'add_new_label' => __('Add new Email', 'wp-ultimo'), - 'updated_message' => __('Email updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Email Subject', 'wp-ultimo'), - 'title_description' => __('This will be used as the email subject line.', 'wp-ultimo'), - 'save_button_label' => __('Save Email', 'wp-ultimo'), + 'edit_label' => __('Edit Email', 'wp-multisite-waas'), + 'add_new_label' => __('Add new Email', 'wp-multisite-waas'), + 'updated_message' => __('Email updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Email Subject', 'wp-multisite-waas'), + 'title_description' => __('This will be used as the email subject line.', 'wp-multisite-waas'), + 'save_button_label' => __('Save Email', 'wp-multisite-waas'), 'save_description' => '', - 'delete_button_label' => __('Delete Email', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'delete_button_label' => __('Delete Email', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; } diff --git a/inc/admin-pages/class-email-list-admin-page.php b/inc/admin-pages/class-email-list-admin-page.php index c4a5f8d..2852cdb 100644 --- a/inc/admin-pages/class-email-list-admin-page.php +++ b/inc/admin-pages/class-email-list-admin-page.php @@ -102,7 +102,7 @@ class Email_List_Admin_Page extends List_Admin_Page { */ public function get_title() { - return __('System Emails', 'wp-ultimo'); + return __('System Emails', 'wp-multisite-waas'); } /** @@ -113,7 +113,7 @@ class Email_List_Admin_Page extends List_Admin_Page { */ public function get_menu_title() { - return __('System Emails', 'wp-ultimo'); + return __('System Emails', 'wp-multisite-waas'); } /** @@ -124,7 +124,7 @@ class Email_List_Admin_Page extends List_Admin_Page { */ public function get_submenu_title() { - return __('System Emails', 'wp-ultimo'); + return __('System Emails', 'wp-multisite-waas'); } /** @@ -182,9 +182,9 @@ class Email_List_Admin_Page extends List_Admin_Page { $fields = [ 'send_to' => [ 'type' => 'email', - 'title' => __('Send To', 'wp-ultimo'), - 'placeholder' => __('E.g. network@email.com', 'wp-ultimo'), - 'desc' => __('The test email will be sent to the above email address.', 'wp-ultimo'), + 'title' => __('Send To', 'wp-multisite-waas'), + 'placeholder' => __('E.g. network@email.com', 'wp-multisite-waas'), + 'desc' => __('The test email will be sent to the above email address.', 'wp-multisite-waas'), 'value' => get_network_option(null, 'admin_email'), 'html_attr' => [ 'required' => 'required', @@ -200,7 +200,7 @@ class Email_List_Admin_Page extends List_Admin_Page { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Send Test Email', 'wp-ultimo'), + 'title' => __('Send Test Email', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end wu-text-right', @@ -236,7 +236,7 @@ class Email_List_Admin_Page extends List_Admin_Page { $send_to = wu_request('send_to'); if ( ! $email_id || ! $send_to) { - $error = new \WP_Error('error', __('Something wrong happened.', 'wp-ultimo')); + $error = new \WP_Error('error', __('Something wrong happened.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -275,7 +275,7 @@ class Email_List_Admin_Page extends List_Admin_Page { $send_mail = wu_send_mail($from, $to, $args); if ( ! $send_mail) { - $error = new \WP_Error('error', __('Something wrong happened with your test.', 'wp-ultimo')); + $error = new \WP_Error('error', __('Something wrong happened with your test.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -289,7 +289,7 @@ class Email_List_Admin_Page extends List_Admin_Page { 'wp-ultimo-edit-email', [ 'id' => $email_id, - 'test_notice' => __('Test sent successfully', 'wp-ultimo'), + 'test_notice' => __('Test sent successfully', 'wp-multisite-waas'), ] ), ] @@ -303,7 +303,7 @@ class Email_List_Admin_Page extends List_Admin_Page { 'redirect_url' => wu_network_admin_url( 'wp-ultimo-emails', [ - 'notice' => __('Test sent successfully', 'wp-ultimo'), + 'notice' => __('Test sent successfully', 'wp-multisite-waas'), ] ), ] @@ -326,8 +326,8 @@ class Email_List_Admin_Page extends List_Admin_Page { $fields = [ 'reset_emails' => [ 'type' => 'toggle', - 'title' => __('Reset System Emails ', 'wp-ultimo'), - 'desc' => __('Restore the system emails to their original content.', 'wp-ultimo'), + 'title' => __('Reset System Emails ', 'wp-multisite-waas'), + 'desc' => __('Restore the system emails to their original content.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 0, 'html_attr' => [ @@ -339,7 +339,7 @@ class Email_List_Admin_Page extends List_Admin_Page { $fields['reset_note'] = [ 'type' => 'note', 'title' => '', - 'desc' => __('No emails to reset.', 'wp-ultimo'), + 'desc' => __('No emails to reset.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 0, 'wrapper_html_attr' => [ @@ -379,8 +379,8 @@ class Email_List_Admin_Page extends List_Admin_Page { $fields['import_emails'] = [ 'type' => 'toggle', - 'title' => __('Import System Emails', 'wp-ultimo'), - 'desc' => __('Add new system emails based on WP Multisite WaaS presets.', 'wp-ultimo'), + 'title' => __('Import System Emails', 'wp-multisite-waas'), + 'desc' => __('Add new system emails based on WP Multisite WaaS presets.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 0, 'html_attr' => [ @@ -391,7 +391,7 @@ class Email_List_Admin_Page extends List_Admin_Page { $fields['import_note'] = [ 'type' => 'note', 'title' => '', - 'desc' => __('All emails are already present.', 'wp-ultimo'), + 'desc' => __('All emails are already present.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 0, 'wrapper_html_attr' => [ @@ -429,7 +429,7 @@ class Email_List_Admin_Page extends List_Admin_Page { $fields['submit_button'] = [ 'type' => 'submit', - 'title' => __('Reset and/or Import', 'wp-ultimo'), + 'title' => __('Reset and/or Import', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end wu-text-right', @@ -543,8 +543,8 @@ class Email_List_Admin_Page extends List_Admin_Page { $fields = [ 'single_reset' => [ 'type' => 'toggle', - 'title' => __('Confirm Reset', 'wp-ultimo'), - 'desc' => __('This action can not be undone.', 'wp-ultimo'), + 'title' => __('Confirm Reset', 'wp-multisite-waas'), + 'desc' => __('This action can not be undone.', 'wp-multisite-waas'), 'default' => 0, 'html_attr' => [ 'required' => 'required', @@ -556,7 +556,7 @@ class Email_List_Admin_Page extends List_Admin_Page { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Reset Email', 'wp-ultimo'), + 'title' => __('Reset Email', 'wp-multisite-waas'), 'value' => 'reset', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end wu-text-right', @@ -593,7 +593,7 @@ class Email_List_Admin_Page extends List_Admin_Page { $email_id = wu_request('email_id'); if ( ! $single_reset || ! $email_id) { - $error = new \WP_Error('error', __('Something wrong happened.', 'wp-ultimo')); + $error = new \WP_Error('error', __('Something wrong happened.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -612,7 +612,7 @@ class Email_List_Admin_Page extends List_Admin_Page { $new_email = wu_get_email_by('slug', $slug); if ( ! $new_email) { - $error = new \WP_Error('error', __('Something wrong happened.', 'wp-ultimo')); + $error = new \WP_Error('error', __('Something wrong happened.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -643,18 +643,18 @@ class Email_List_Admin_Page extends List_Admin_Page { return [ [ 'url' => wu_network_admin_url('wp-ultimo-edit-email'), - 'label' => __('Add System Email', 'wp-ultimo'), + 'label' => __('Add System Email', 'wp-multisite-waas'), 'icon' => 'wu-circle-with-plus', ], [ 'url' => wu_network_admin_url('wp-ultimo-customize-email-template&id=' . $email_template_default), - 'label' => __('Email Template', 'wp-ultimo'), + 'label' => __('Email Template', 'wp-multisite-waas'), 'icon' => 'wu-mail', ], [ 'url' => wu_get_form_url('reset_import'), 'classes' => 'wubox', - 'label' => __('Reset or Import', 'wp-ultimo'), + 'label' => __('Reset or Import', 'wp-multisite-waas'), 'icon' => 'wu-cycle', ], ]; diff --git a/inc/admin-pages/class-email-template-customize-admin-page.php b/inc/admin-pages/class-email-template-customize-admin-page.php index c0b36ae..65a5c04 100644 --- a/inc/admin-pages/class-email-template-customize-admin-page.php +++ b/inc/admin-pages/class-email-template-customize-admin-page.php @@ -156,7 +156,7 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { 'site_url' => get_site_url(), 'logo_url' => wu_get_network_logo(), 'content' => $content, - 'subject' => __('Sample Subject', 'wp-ultimo'), + 'subject' => __('Sample Subject', 'wp-multisite-waas'), 'is_editor' => true, 'template_settings' => [ 'use_custom_logo' => wu_string_to_bool(wu_request('use_custom_logo', $first_request ? $object->get_setting('use_custom_logo', false) : false)), @@ -218,7 +218,7 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { 'fields' => [ 'note' => [ 'type' => 'note', - 'desc' => __('System emails and broadcasts will be sent using this template.', 'wp-ultimo'), + 'desc' => __('System emails and broadcasts will be sent using this template.', 'wp-multisite-waas'), ], ], ] @@ -243,15 +243,15 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { 'v-model' => 'tab', ], 'options' => [ - 'header' => __('Header', 'wp-ultimo'), - 'content' => __('Content', 'wp-ultimo'), - 'footer' => __('Footer', 'wp-ultimo'), + 'header' => __('Header', 'wp-multisite-waas'), + 'content' => __('Content', 'wp-multisite-waas'), + 'footer' => __('Footer', 'wp-multisite-waas'), ], ], 'use_custom_logo' => [ 'type' => 'toggle', - 'title' => __('Use Custom Logo', 'wp-ultimo'), - 'desc' => __('You can set a different logo to be used on the system emails.', 'wp-ultimo'), + 'title' => __('Use Custom Logo', 'wp-multisite-waas'), + 'desc' => __('You can set a different logo to be used on the system emails.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "header")', 'v-cloak' => 1, @@ -263,8 +263,8 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { 'custom_logo' => [ 'type' => 'image', 'stacked' => true, - 'title' => __('Custom Logo', 'wp-ultimo'), - 'desc' => __('The custom logo is used in the email header, if HTML emails are used.', 'wp-ultimo'), + 'title' => __('Custom Logo', 'wp-multisite-waas'), + 'desc' => __('The custom logo is used in the email header, if HTML emails are used.', 'wp-multisite-waas'), 'value' => $custom_logo, 'img' => $custom_logo_url, 'wrapper_html_attr' => [ @@ -277,8 +277,8 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'background_color' => [ 'type' => 'color-picker', - 'title' => __('Background Color', 'wp-ultimo'), - 'tooltip' => __('The cover background color of the email.', 'wp-ultimo'), + 'title' => __('Background Color', 'wp-multisite-waas'), + 'tooltip' => __('The cover background color of the email.', 'wp-multisite-waas'), 'value' => '#00a1ff', 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "header")', @@ -290,7 +290,7 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'title_color' => [ 'type' => 'color-picker', - 'title' => __('Title Color', 'wp-ultimo'), + 'title' => __('Title Color', 'wp-multisite-waas'), 'value' => '#00a1ff', 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "header")', @@ -302,14 +302,14 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'title_size' => [ 'type' => 'select', - 'title' => __('Title Size', 'wp-ultimo'), + 'title' => __('Title Size', 'wp-multisite-waas'), 'value' => wu_get_isset($settings, 'title_size'), 'options' => [ - 'h1' => __('h1', 'wp-ultimo'), - 'h2' => __('h2', 'wp-ultimo'), - 'h3' => __('h3', 'wp-ultimo'), - 'h4' => __('h4', 'wp-ultimo'), - 'h5' => __('h5', 'wp-ultimo'), + 'h1' => __('h1', 'wp-multisite-waas'), + 'h2' => __('h2', 'wp-multisite-waas'), + 'h3' => __('h3', 'wp-multisite-waas'), + 'h4' => __('h4', 'wp-multisite-waas'), + 'h5' => __('h5', 'wp-multisite-waas'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "header")', @@ -321,13 +321,13 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'title_align' => [ 'type' => 'select', - 'title' => __('Title Align', 'wp-ultimo'), - 'tooltip' => __('Aligment of the font in the title.', 'wp-ultimo'), + 'title' => __('Title Align', 'wp-multisite-waas'), + 'tooltip' => __('Aligment of the font in the title.', 'wp-multisite-waas'), 'value' => wu_get_isset($settings, 'title_align', ''), 'options' => [ - 'left' => __('Left', 'wp-ultimo'), - 'center' => __('Center', 'wp-ultimo'), - 'right' => __('Right', 'wp-ultimo'), + 'left' => __('Left', 'wp-multisite-waas'), + 'center' => __('Center', 'wp-multisite-waas'), + 'right' => __('Right', 'wp-multisite-waas'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "header")', @@ -339,13 +339,13 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'title_font' => [ 'type' => 'select', - 'title' => __('Title Font-Family', 'wp-ultimo'), + 'title' => __('Title Font-Family', 'wp-multisite-waas'), 'value' => wu_get_isset($settings, 'title_font', ''), 'options' => [ - 'Helvetica Neue, Helvetica, Helvetica, Arial, sans-serif' => __('Helvetica', 'wp-ultimo'), - 'Arial, Helvetica, sans-serif' => __('Arial', 'wp-ultimo'), - 'Times New Roman, Times, serif' => __('Times New Roman', 'wp-ultimo'), - 'Lucida Console, Courier, monospace' => __('Lucida', 'wp-ultimo'), + 'Helvetica Neue, Helvetica, Helvetica, Arial, sans-serif' => __('Helvetica', 'wp-multisite-waas'), + 'Arial, Helvetica, sans-serif' => __('Arial', 'wp-multisite-waas'), + 'Times New Roman, Times, serif' => __('Times New Roman', 'wp-multisite-waas'), + 'Lucida Console, Courier, monospace' => __('Lucida', 'wp-multisite-waas'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "header")', @@ -357,7 +357,7 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'content_color' => [ 'type' => 'color-picker', - 'title' => __('Content Color', 'wp-ultimo'), + 'title' => __('Content Color', 'wp-multisite-waas'), 'value' => '#000000', 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "content")', @@ -369,13 +369,13 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'content_align' => [ 'type' => 'select', - 'title' => __('Content Alignment', 'wp-ultimo'), - 'tooltip' => __('Alignment of the font in the main email content.', 'wp-ultimo'), + 'title' => __('Content Alignment', 'wp-multisite-waas'), + 'tooltip' => __('Alignment of the font in the main email content.', 'wp-multisite-waas'), 'value' => wu_get_isset($settings, 'content_align', ''), 'options' => [ - 'left' => __('Left', 'wp-ultimo'), - 'center' => __('Center', 'wp-ultimo'), - 'right' => __('Right', 'wp-ultimo'), + 'left' => __('Left', 'wp-multisite-waas'), + 'center' => __('Center', 'wp-multisite-waas'), + 'right' => __('Right', 'wp-multisite-waas'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "content")', @@ -387,13 +387,13 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'content_font' => [ 'type' => 'select', - 'title' => __('Content Font-Family', 'wp-ultimo'), + 'title' => __('Content Font-Family', 'wp-multisite-waas'), 'value' => wu_get_isset($settings, 'content_font', ''), 'options' => [ - 'Helvetica Neue, Helvetica, Helvetica, Arial, sans-serif' => __('Helvetica', 'wp-ultimo'), - 'Arial, Helvetica, sans-serif' => __('Arial', 'wp-ultimo'), - 'Times New Roman, Times, serif' => __('Times New Roman', 'wp-ultimo'), - 'Lucida Console, Courier, monospace' => __('Lucida', 'wp-ultimo'), + 'Helvetica Neue, Helvetica, Helvetica, Arial, sans-serif' => __('Helvetica', 'wp-multisite-waas'), + 'Arial, Helvetica, sans-serif' => __('Arial', 'wp-multisite-waas'), + 'Times New Roman, Times, serif' => __('Times New Roman', 'wp-multisite-waas'), + 'Lucida Console, Courier, monospace' => __('Lucida', 'wp-multisite-waas'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "content")', @@ -405,8 +405,8 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'display_company_address' => [ 'type' => 'toggle', - 'title' => __('Display Company Address', 'wp-ultimo'), - 'desc' => __('Toggle to show/hide your company address.', 'wp-ultimo'), + 'title' => __('Display Company Address', 'wp-multisite-waas'), + 'desc' => __('Toggle to show/hide your company address.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "footer")', 'v-cloak' => 1, @@ -417,8 +417,8 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'footer_text' => [ 'type' => 'textarea', - 'title' => __('Footer Content', 'wp-ultimo'), - 'placeholder' => __('e.g. Extra info in the email footer.', 'wp-ultimo'), + 'title' => __('Footer Content', 'wp-multisite-waas'), + 'placeholder' => __('e.g. Extra info in the email footer.', 'wp-multisite-waas'), 'value' => wu_get_isset($settings, 'footer_text', ''), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "footer")', @@ -430,13 +430,13 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'footer_font' => [ 'type' => 'select', - 'title' => __('Footer Font-Family', 'wp-ultimo'), + 'title' => __('Footer Font-Family', 'wp-multisite-waas'), 'value' => wu_get_isset($settings, 'footer_font', ''), 'options' => [ - 'Helvetica Neue, Helvetica, Helvetica, Arial, sans-serif' => __('Helvetica', 'wp-ultimo'), - 'Arial, Helvetica, sans-serif' => __('Arial', 'wp-ultimo'), - 'Times New Roman, Times, serif' => __('Times New Roman', 'wp-ultimo'), - 'Lucida Console, Courier, monospace' => __('Lucida', 'wp-ultimo'), + 'Helvetica Neue, Helvetica, Helvetica, Arial, sans-serif' => __('Helvetica', 'wp-multisite-waas'), + 'Arial, Helvetica, sans-serif' => __('Arial', 'wp-multisite-waas'), + 'Times New Roman, Times, serif' => __('Times New Roman', 'wp-multisite-waas'), + 'Lucida Console, Courier, monospace' => __('Lucida', 'wp-multisite-waas'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "footer")', @@ -448,7 +448,7 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'footer_color' => [ 'type' => 'color-picker', - 'title' => __('Footer Color', 'wp-ultimo'), + 'title' => __('Footer Color', 'wp-multisite-waas'), 'value' => '#000000', 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "footer")', @@ -460,13 +460,13 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'footer_align' => [ 'type' => 'select', - 'title' => __('Footer Alignment', 'wp-ultimo'), - 'tooltip' => __('Alignment of the font in the main email footer.', 'wp-ultimo'), + 'title' => __('Footer Alignment', 'wp-multisite-waas'), + 'tooltip' => __('Alignment of the font in the main email footer.', 'wp-multisite-waas'), 'value' => wu_get_isset($settings, 'footer_align', ''), 'options' => [ - 'left' => __('Left', 'wp-ultimo'), - 'center' => __('Center', 'wp-ultimo'), - 'right' => __('Right', 'wp-ultimo'), + 'left' => __('Left', 'wp-multisite-waas'), + 'center' => __('Center', 'wp-multisite-waas'), + 'right' => __('Right', 'wp-multisite-waas'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "footer")', @@ -489,7 +489,7 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { $this->add_fields_widget( 'customizer', [ - 'title' => __('Customizer', 'wp-ultimo'), + 'title' => __('Customizer', 'wp-multisite-waas'), 'position' => 'side', 'fields' => $fields, 'html_attr' => [ @@ -510,7 +510,7 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { */ public function get_title() { - return __('Customize Email Template:', 'wp-ultimo'); + return __('Customize Email Template:', 'wp-multisite-waas'); } /** @@ -521,7 +521,7 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { */ public function get_menu_title() { - return __('Customize Email Template', 'wp-ultimo'); + return __('Customize Email Template', 'wp-multisite-waas'); } /** @@ -544,16 +544,16 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page { public function get_labels() { return [ - 'customize_label' => __('Customize Email Template', 'wp-ultimo'), - 'add_new_label' => __('Customize Email Template', 'wp-ultimo'), - 'edit_label' => __('Edit Email Template', 'wp-ultimo'), - 'updated_message' => __('Email Template updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Email Template Name', 'wp-ultimo'), - 'title_description' => __('This name is used for internal reference only.', 'wp-ultimo'), - 'save_button_label' => __('Save Template', 'wp-ultimo'), + 'customize_label' => __('Customize Email Template', 'wp-multisite-waas'), + 'add_new_label' => __('Customize Email Template', 'wp-multisite-waas'), + 'edit_label' => __('Edit Email Template', 'wp-multisite-waas'), + 'updated_message' => __('Email Template updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Email Template Name', 'wp-multisite-waas'), + 'title_description' => __('This name is used for internal reference only.', 'wp-multisite-waas'), + 'save_button_label' => __('Save Template', 'wp-multisite-waas'), 'save_description' => '', - 'delete_button_label' => __('Delete Email Template', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'delete_button_label' => __('Delete Email Template', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; } diff --git a/inc/admin-pages/class-event-list-admin-page.php b/inc/admin-pages/class-event-list-admin-page.php index 835a21c..66e824e 100644 --- a/inc/admin-pages/class-event-list-admin-page.php +++ b/inc/admin-pages/class-event-list-admin-page.php @@ -160,8 +160,8 @@ class Event_List_Admin_Page extends List_Admin_Page { public function get_labels() { return [ - 'deleted_message' => __('Event removed successfully.', 'wp-ultimo'), - 'search_label' => __('Search Event', 'wp-ultimo'), + 'deleted_message' => __('Event removed successfully.', 'wp-multisite-waas'), + 'search_label' => __('Search Event', 'wp-multisite-waas'), ]; } @@ -173,7 +173,7 @@ class Event_List_Admin_Page extends List_Admin_Page { */ public function get_title() { - return __('Events', 'wp-ultimo'); + return __('Events', 'wp-multisite-waas'); } /** @@ -184,7 +184,7 @@ class Event_List_Admin_Page extends List_Admin_Page { */ public function get_menu_title() { - return __('Events', 'wp-ultimo'); + return __('Events', 'wp-multisite-waas'); } /** @@ -195,7 +195,7 @@ class Event_List_Admin_Page extends List_Admin_Page { */ public function get_submenu_title() { - return __('Events', 'wp-ultimo'); + return __('Events', 'wp-multisite-waas'); } /** diff --git a/inc/admin-pages/class-event-view-admin-page.php b/inc/admin-pages/class-event-view-admin-page.php index 238c84c..d7b4cbd 100644 --- a/inc/admin-pages/class-event-view-admin-page.php +++ b/inc/admin-pages/class-event-view-admin-page.php @@ -128,16 +128,16 @@ class Event_View_Admin_Page extends Edit_Admin_Page { parent::register_widgets(); - add_meta_box('wp-ultimo-message', __('Event Message', 'wp-ultimo'), [$this, 'output_default_widget_message'], get_current_screen()->id, 'normal', 'default'); + add_meta_box('wp-ultimo-message', __('Event Message', 'wp-multisite-waas'), [$this, 'output_default_widget_message'], get_current_screen()->id, 'normal', 'default'); - add_meta_box('wp-ultimo-initiator', __('Event', 'wp-ultimo'), [$this, 'output_default_widget_initiator'], get_current_screen()->id, 'side', 'default'); + add_meta_box('wp-ultimo-initiator', __('Event', 'wp-multisite-waas'), [$this, 'output_default_widget_initiator'], get_current_screen()->id, 'side', 'default'); - add_meta_box('wp-ultimo-payload', __('Event Payload', 'wp-ultimo'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal', 'default'); + add_meta_box('wp-ultimo-payload', __('Event Payload', 'wp-multisite-waas'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal', 'default'); $this->add_info_widget( 'info', [ - 'title' => __('Timestamps', 'wp-ultimo'), + 'title' => __('Timestamps', 'wp-multisite-waas'), 'position' => 'side', 'modified' => false, ] @@ -176,8 +176,8 @@ class Event_View_Admin_Page extends Edit_Admin_Page { wu_get_template( 'events/widget-payload', [ - 'title' => __('Event Payload', 'wp-ultimo'), - 'loading_text' => __('Loading Payload', 'wp-ultimo'), + 'title' => __('Event Payload', 'wp-multisite-waas'), + 'loading_text' => __('Loading Payload', 'wp-multisite-waas'), 'payload' => json_encode($object->get_payload(), JSON_PRETTY_PRINT), ] ); @@ -208,7 +208,7 @@ class Event_View_Admin_Page extends Edit_Admin_Page { */ public function get_title() { - return $this->edit ? __('Edit Event', 'wp-ultimo') : __('Add new Event', 'wp-ultimo'); + return $this->edit ? __('Edit Event', 'wp-multisite-waas') : __('Add new Event', 'wp-multisite-waas'); } /** @@ -219,7 +219,7 @@ class Event_View_Admin_Page extends Edit_Admin_Page { */ public function get_menu_title() { - return __('Edit Event', 'wp-ultimo'); + return __('Edit Event', 'wp-multisite-waas'); } /** @@ -242,15 +242,15 @@ class Event_View_Admin_Page extends Edit_Admin_Page { public function get_labels() { return [ - 'edit_label' => __('Edit Event', 'wp-ultimo'), - 'add_new_label' => __('Add new Event', 'wp-ultimo'), - 'updated_message' => __('Event updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Event', 'wp-ultimo'), + 'edit_label' => __('Edit Event', 'wp-multisite-waas'), + 'add_new_label' => __('Add new Event', 'wp-multisite-waas'), + 'updated_message' => __('Event updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Event', 'wp-multisite-waas'), 'title_description' => '', - 'save_button_label' => __('Save Event', 'wp-ultimo'), + 'save_button_label' => __('Save Event', 'wp-multisite-waas'), 'save_description' => '', - 'delete_button_label' => __('Delete Event', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'delete_button_label' => __('Delete Event', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; } diff --git a/inc/admin-pages/class-hosting-integration-wizard-admin-page.php b/inc/admin-pages/class-hosting-integration-wizard-admin-page.php index 7d04e18..9f02b6b 100644 --- a/inc/admin-pages/class-hosting-integration-wizard-admin-page.php +++ b/inc/admin-pages/class-hosting-integration-wizard-admin-page.php @@ -109,7 +109,7 @@ class Hosting_Integration_Wizard_Admin_Page extends Wizard_Admin_Page { */ public function get_title(): string { - return sprintf(__('Integration Setup', 'wp-ultimo')); + return sprintf(__('Integration Setup', 'wp-multisite-waas')); } /** @@ -120,7 +120,7 @@ class Hosting_Integration_Wizard_Admin_Page extends Wizard_Admin_Page { */ public function get_menu_title() { - return __('Host Provider Integration', 'wp-ultimo'); + return __('Host Provider Integration', 'wp-multisite-waas'); } /** @@ -133,25 +133,25 @@ class Hosting_Integration_Wizard_Admin_Page extends Wizard_Admin_Page { $sections = [ 'activation' => [ - 'title' => __('Activation', 'wp-ultimo'), + 'title' => __('Activation', 'wp-multisite-waas'), 'view' => [$this, 'section_activation'], 'handler' => [$this, 'handle_activation'], ], 'instructions' => [ - 'title' => __('Instructions', 'wp-ultimo'), + 'title' => __('Instructions', 'wp-multisite-waas'), 'view' => [$this, 'section_instructions'], ], 'config' => [ - 'title' => __('Configuration', 'wp-ultimo'), + 'title' => __('Configuration', 'wp-multisite-waas'), 'view' => [$this, 'section_configuration'], 'handler' => [$this, 'handle_configuration'], ], 'testing' => [ - 'title' => __('Testing Integration', 'wp-ultimo'), + 'title' => __('Testing Integration', 'wp-multisite-waas'), 'view' => [$this, 'section_test'], ], 'done' => [ - 'title' => __('Ready!', 'wp-ultimo'), + 'title' => __('Ready!', 'wp-multisite-waas'), 'view' => [$this, 'section_ready'], ], ]; diff --git a/inc/admin-pages/class-invoice-template-customize-admin-page.php b/inc/admin-pages/class-invoice-template-customize-admin-page.php index 58a7aad..cbb1aaf 100644 --- a/inc/admin-pages/class-invoice-template-customize-admin-page.php +++ b/inc/admin-pages/class-invoice-template-customize-admin-page.php @@ -144,7 +144,7 @@ class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page { 'fields' => [ 'note' => [ 'type' => 'note', - 'desc' => __('Changes to this template will be applied to all PDF invoices generated after the change.

Existing PDF Invoices will not be affected unless explicitly re-generated', 'wp-ultimo'), + 'desc' => __('Changes to this template will be applied to all PDF invoices generated after the change.

Existing PDF Invoices will not be affected unless explicitly re-generated', 'wp-multisite-waas'), ], ], ] @@ -167,17 +167,17 @@ class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page { 'v-model' => 'tab', ], 'options' => [ - 'general' => __('General', 'wp-ultimo'), - 'colors' => __('Colors', 'wp-ultimo'), - 'images' => __('Images', 'wp-ultimo'), + 'general' => __('General', 'wp-multisite-waas'), + 'colors' => __('Colors', 'wp-multisite-waas'), + 'images' => __('Images', 'wp-multisite-waas'), ], ], 'paid_tag_text' => [ 'type' => 'text', - 'title' => __('Paid Tag', 'wp-ultimo'), - 'placeholder' => __('e.g. Paid.', 'wp-ultimo'), - 'value' => wu_get_isset($settings, 'paid_tag_text', __('Paid', 'wp-ultimo')), + 'title' => __('Paid Tag', 'wp-multisite-waas'), + 'placeholder' => __('e.g. Paid.', 'wp-multisite-waas'), + 'value' => wu_get_isset($settings, 'paid_tag_text', __('Paid', 'wp-multisite-waas')), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "general")', 'v-cloak' => 1, @@ -188,12 +188,12 @@ class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'font' => [ 'type' => 'select', - 'title' => __('Font-Family', 'wp-ultimo'), + 'title' => __('Font-Family', 'wp-multisite-waas'), 'value' => wu_get_isset($settings, 'font', ''), 'options' => [ - 'DejaVuSansCondensed' => __('Sans-Serif', 'wp-ultimo'), - 'DejaVuSerifCondensed' => __('Serif', 'wp-ultimo'), - 'FreeMono' => __('Mono', 'wp-ultimo'), + 'DejaVuSansCondensed' => __('Sans-Serif', 'wp-multisite-waas'), + 'DejaVuSerifCondensed' => __('Serif', 'wp-multisite-waas'), + 'FreeMono' => __('Mono', 'wp-multisite-waas'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "general")', @@ -205,8 +205,8 @@ class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'footer_message' => [ 'type' => 'textarea', - 'title' => __('Footer Content', 'wp-ultimo'), - 'placeholder' => __('e.g. Extra Info about the Invoice.', 'wp-ultimo'), + 'title' => __('Footer Content', 'wp-multisite-waas'), + 'placeholder' => __('e.g. Extra Info about the Invoice.', 'wp-multisite-waas'), 'value' => wu_get_isset($settings, 'footer_message', ''), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "general")', @@ -219,7 +219,7 @@ class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page { 'primary_color' => [ 'type' => 'color-picker', - 'title' => __('Primary Color', 'wp-ultimo'), + 'title' => __('Primary Color', 'wp-multisite-waas'), 'value' => '#00a1ff', 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "colors")', @@ -232,8 +232,8 @@ class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page { 'use_custom_logo' => [ 'type' => 'toggle', - 'title' => __('Use Custom Logo', 'wp-ultimo'), - 'desc' => __('You can set a different logo to be used on the invoice.', 'wp-ultimo'), + 'title' => __('Use Custom Logo', 'wp-multisite-waas'), + 'desc' => __('You can set a different logo to be used on the invoice.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "images")', 'v-cloak' => 1, @@ -244,8 +244,8 @@ class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page { ], 'custom_logo' => [ 'type' => 'image', - 'title' => __('Custom Logo', 'wp-ultimo'), - 'desc' => __('This will be added to the top of the generated PDF.', 'wp-ultimo'), + 'title' => __('Custom Logo', 'wp-multisite-waas'), + 'desc' => __('This will be added to the top of the generated PDF.', 'wp-multisite-waas'), 'value' => '', 'img' => $custom_logo_url, 'stacked' => true, @@ -261,7 +261,7 @@ class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page { $settings = [ 'footer_message' => wu_get_isset($settings, 'footer_message', ''), - 'paid_tag_text' => wu_get_isset($settings, 'paid_tag_text', __('Paid', 'wp-ultimo')), + 'paid_tag_text' => wu_get_isset($settings, 'paid_tag_text', __('Paid', 'wp-multisite-waas')), 'primary_color' => wu_get_isset($settings, 'primary_color', '00a1ff'), 'use_custom_logo' => wu_get_isset($settings, 'use_custom_logo'), 'custom_logo' => wu_get_isset($settings, 'custom_logo'), @@ -279,7 +279,7 @@ class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page { $this->add_fields_widget( 'customizer', [ - 'title' => __('Customizer', 'wp-ultimo'), + 'title' => __('Customizer', 'wp-multisite-waas'), 'position' => 'side', 'fields' => $fields, 'html_attr' => [ @@ -300,7 +300,7 @@ class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page { */ public function get_title() { - return __('Customize Invoice Template', 'wp-ultimo'); + return __('Customize Invoice Template', 'wp-multisite-waas'); } /** @@ -311,7 +311,7 @@ class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page { */ public function get_menu_title() { - return __('Customize Invoice Template', 'wp-ultimo'); + return __('Customize Invoice Template', 'wp-multisite-waas'); } /** @@ -334,14 +334,14 @@ class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page { public function get_labels() { return [ - 'customize_label' => __('Customize Invoice Template', 'wp-ultimo'), - 'add_new_label' => __('Customize Invoice Template', 'wp-ultimo'), - 'edit_label' => __('Edit Invoice Template', 'wp-ultimo'), - 'updated_message' => __('Invoice Template updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Invoice Template Name', 'wp-ultimo'), - 'title_description' => __('This name is used for internal reference only.', 'wp-ultimo'), - 'save_button_label' => __('Save Invoice Template', 'wp-ultimo'), - 'save_description' => __('Save Invoice Template', 'wp-ultimo'), + 'customize_label' => __('Customize Invoice Template', 'wp-multisite-waas'), + 'add_new_label' => __('Customize Invoice Template', 'wp-multisite-waas'), + 'edit_label' => __('Edit Invoice Template', 'wp-multisite-waas'), + 'updated_message' => __('Invoice Template updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Invoice Template Name', 'wp-multisite-waas'), + 'title_description' => __('This name is used for internal reference only.', 'wp-multisite-waas'), + 'save_button_label' => __('Save Invoice Template', 'wp-multisite-waas'), + 'save_description' => __('Save Invoice Template', 'wp-multisite-waas'), ]; } diff --git a/inc/admin-pages/class-jobs-list-admin-page.php b/inc/admin-pages/class-jobs-list-admin-page.php index f9bd3ce..5d25ad2 100644 --- a/inc/admin-pages/class-jobs-list-admin-page.php +++ b/inc/admin-pages/class-jobs-list-admin-page.php @@ -108,7 +108,7 @@ class Jobs_List_Admin_Page extends Base_Admin_Page { */ public function get_title() { - return __('Jobs', 'wp-ultimo'); + return __('Jobs', 'wp-multisite-waas'); } /** @@ -119,7 +119,7 @@ class Jobs_List_Admin_Page extends Base_Admin_Page { */ public function get_menu_title() { - return __('Jobs', 'wp-ultimo'); + return __('Jobs', 'wp-multisite-waas'); } /** @@ -130,7 +130,7 @@ class Jobs_List_Admin_Page extends Base_Admin_Page { */ public function get_submenu_title() { - return __('Jobs', 'wp-ultimo'); + return __('Jobs', 'wp-multisite-waas'); } /** diff --git a/inc/admin-pages/class-list-admin-page.php b/inc/admin-pages/class-list-admin-page.php index 07a63b6..6283057 100644 --- a/inc/admin-pages/class-list-admin-page.php +++ b/inc/admin-pages/class-list-admin-page.php @@ -123,8 +123,8 @@ abstract class List_Admin_Page extends Base_Admin_Page { public function get_labels() { return [ - 'deleted_message' => __('Object removed successfully.', 'wp-ultimo'), - 'search_label' => __('Search Object', 'wp-ultimo'), + 'deleted_message' => __('Object removed successfully.', 'wp-multisite-waas'), + 'search_label' => __('Search Object', 'wp-multisite-waas'), ]; } diff --git a/inc/admin-pages/class-membership-edit-admin-page.php b/inc/admin-pages/class-membership-edit-admin-page.php index 8a4167b..0e0e27b 100644 --- a/inc/admin-pages/class-membership-edit-admin-page.php +++ b/inc/admin-pages/class-membership-edit-admin-page.php @@ -120,7 +120,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $actions = [ 'preview' => [ - 'title' => __('Preview', 'wp-ultimo'), + 'title' => __('Preview', 'wp-multisite-waas'), 'url' => add_query_arg('preview-swap', 1), ], ]; @@ -128,7 +128,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $date = new \DateTime($swap_order->scheduled_date); // translators: %s is the date, using the site format options - $message = sprintf(__('There is a change scheduled to take place on this membership in %s. You can preview the changes here. Scheduled changes are usually created by downgrades.', 'wp-ultimo'), $date->format(get_option('date_format'))); + $message = sprintf(__('There is a change scheduled to take place on this membership in %s. You can preview the changes here. Scheduled changes are usually created by downgrades.', 'wp-multisite-waas'), $date->format(get_option('date_format'))); WP_Ultimo()->notices->add($message, 'warning', 'network-admin', false, $actions); } @@ -223,16 +223,16 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Transfer', 'wp-ultimo'), - 'desc' => __('This will start the transfer of assets from one customer to another.', 'wp-ultimo'), + 'title' => __('Confirm Transfer', 'wp-multisite-waas'), + 'desc' => __('This will start the transfer of assets from one customer to another.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Start Transfer', 'wp-ultimo'), - 'placeholder' => __('Start Transfer', 'wp-ultimo'), + 'title' => __('Start Transfer', 'wp-multisite-waas'), + 'placeholder' => __('Start Transfer', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -282,17 +282,17 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $membership = wu_get_membership(wu_request('id')); if ( ! $membership) { - wp_send_json_error(new \WP_Error('not-found', __('Membership not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('Membership not found.', 'wp-multisite-waas'))); } $target_customer = wu_get_customer(wu_request('target_customer_id')); if ( ! $target_customer) { - wp_send_json_error(new \WP_Error('not-found', __('Target customer not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('Target customer not found.', 'wp-multisite-waas'))); } if ($target_customer->get_id() === $membership->get_customer_id()) { - wp_send_json_error(new \WP_Error('not-found', __('Cannot transfer to the same customer.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('Cannot transfer to the same customer.', 'wp-multisite-waas'))); } /* @@ -354,26 +354,26 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'at_a_glance', [ - 'title' => __('At a Glance', 'wp-ultimo'), + 'title' => __('At a Glance', 'wp-multisite-waas'), 'position' => 'normal', 'classes' => 'wu-overflow-hidden wu-widget-inset', 'field_wrapper_classes' => 'wu-w-1/3 wu-box-border wu-items-center wu-flex wu-justify-between wu-p-4 wu-m-0 wu-border-t-0 wu-border-l-0 wu-border-r wu-border-b-0 wu-border-gray-300 wu-border-solid wu-float-left wu-relative', 'fields' => [ 'status' => [ 'type' => 'text-display', - 'title' => __('Membership Status', 'wp-ultimo'), + 'title' => __('Membership Status', 'wp-multisite-waas'), 'display_value' => $tag, 'tooltip' => '', ], 'hash' => [ 'copy' => true, 'type' => 'text-display', - 'title' => __('Reference ID', 'wp-ultimo'), + 'title' => __('Reference ID', 'wp-multisite-waas'), 'display_value' => $this->get_object()->get_hash(), ], 'total_grossed' => [ 'type' => 'text-display', - 'title' => __('Total Grossed', 'wp-ultimo'), + 'title' => __('Total Grossed', 'wp-multisite-waas'), 'display_value' => wu_format_currency($this->get_object()->get_total_grossed(), $this->get_object()->get_currency()), 'wrapper_classes' => 'sm:wu-border-r-0', ], @@ -385,7 +385,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { 'membership-products', [ 'position' => 'normal', - 'title' => __('Products', 'wp-ultimo'), + 'title' => __('Products', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Membership_Line_Item_List_Table(), 'after' => $this->output_widget_products(), ] @@ -394,7 +394,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'payments', [ - 'title' => __('Payments', 'wp-ultimo'), + 'title' => __('Payments', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Customers_Payment_List_Table(), 'query_filter' => [$this, 'payments_query_filter'], ] @@ -403,7 +403,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'sites', [ - 'title' => __('Sites', 'wp-ultimo'), + 'title' => __('Sites', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Memberships_Site_List_Table(), 'query_filter' => [$this, 'sites_query_filter'], ] @@ -412,7 +412,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'customer', [ - 'title' => __('Linked Customer', 'wp-ultimo'), + 'title' => __('Linked Customer', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Site_Customer_List_Table(), 'query_filter' => [$this, 'customer_query_filter'], ] @@ -421,27 +421,27 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $this->add_tabs_widget( 'options', [ - 'title' => __('Membership Options', 'wp-ultimo'), + 'title' => __('Membership Options', 'wp-multisite-waas'), 'position' => 'normal', 'sections' => apply_filters( 'wu_membership_options_sections', [ 'general' => [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General membership options', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General membership options', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-globe', 'fields' => [ 'blocking' => [ 'type' => 'toggle', - 'title' => __('Is Blocking?', 'wp-ultimo'), - 'desc' => __('Should we block access to the site, plugins, themes, and services after the expiration date is reached?', 'wp-ultimo'), + 'title' => __('Is Blocking?', 'wp-multisite-waas'), + 'desc' => __('Should we block access to the site, plugins, themes, and services after the expiration date is reached?', 'wp-multisite-waas'), 'value' => true, ], ], ], 'billing_info' => [ - 'title' => __('Billing Info', 'wp-ultimo'), - 'desc' => __('Billing information for this particular membership.', 'wp-ultimo'), + 'title' => __('Billing Info', 'wp-multisite-waas'), + 'desc' => __('Billing information for this particular membership.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-address', 'fields' => $this->get_object()->get_billing_address()->get_fields(), ], @@ -458,7 +458,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'wp-ultimo'), + 'title' => __('Events', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'events_query_filter'], ] @@ -468,8 +468,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $regular_fields = [ 'status' => [ 'type' => 'select', - 'title' => __('Status', 'wp-ultimo'), - 'desc' => __('The membership current status.', 'wp-ultimo'), + 'title' => __('Status', 'wp-multisite-waas'), + 'desc' => __('The membership current status.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_status(), 'options' => Membership_Status::to_array(), 'tooltip' => '', @@ -482,8 +482,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'cancellation_reason' => [ 'type' => 'textarea', - 'title' => __('Cancellation Reason', 'wp-ultimo'), - 'desc' => __('The reason why the customer cancelled this membership.', 'wp-ultimo'), + 'title' => __('Cancellation Reason', 'wp-multisite-waas'), + 'desc' => __('The reason why the customer cancelled this membership.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_cancellation_reason(), 'wrapper_html_attr' => [ 'v-show' => 'status == \'cancelled\'', @@ -492,8 +492,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'cancel_gateway' => [ 'type' => 'toggle', - 'title' => __('Cancel on gateway', 'wp-ultimo'), - 'desc' => __('If enable we will cancel the subscription on payment method', 'wp-ultimo'), + 'title' => __('Cancel on gateway', 'wp-multisite-waas'), + 'desc' => __('If enable we will cancel the subscription on payment method', 'wp-multisite-waas'), 'value' => false, 'wrapper_html_attr' => [ 'v-show' => ! empty($this->get_object()->get_gateway_customer_id()) ? 'status == \'cancelled\'' : 'false', @@ -506,9 +506,9 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'customer_id' => [ 'type' => 'model', - 'title' => __('Customer', 'wp-ultimo'), - 'placeholder' => __('Search a Customer...', 'wp-ultimo'), - 'desc' => __('The owner of this membership.', 'wp-ultimo'), + 'title' => __('Customer', 'wp-multisite-waas'), + 'placeholder' => __('Search a Customer...', 'wp-multisite-waas'), + 'desc' => __('The owner of this membership.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_customer_id(), 'tooltip' => '', 'html_attr' => [ @@ -527,7 +527,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'transfer_note' => [ 'type' => 'note', - 'desc' => __('Changing the customer will transfer this membership and all its assets, including sites, to the new customer.', 'wp-ultimo'), + 'desc' => __('Changing the customer will transfer this membership and all its assets, including sites, to the new customer.', 'wp-multisite-waas'), 'classes' => 'wu-p-2 wu-bg-red-100 wu-text-red-600 wu-rounded wu-w-full', 'wrapper_html_attr' => [ 'v-show' => '(original_customer_id != customer_id) && customer_id', @@ -548,7 +548,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'transfer' => [ 'type' => 'link', - 'display_value' => __('Transfer Membership', 'wp-ultimo'), + 'display_value' => __('Transfer Membership', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-bg-gray-200', 'classes' => 'button wubox wu-w-full wu-text-center', 'wrapper_html_attr' => [ @@ -563,7 +563,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { 'target_customer_id' => '', ] ) . "=' + customer_id", - 'title' => __('Transfer Membership', 'wp-ultimo'), + 'title' => __('Transfer Membership', 'wp-multisite-waas'), ], ], ]; @@ -573,7 +573,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { unset($regular_fields['transfer']); - $regular_fields['submit_save']['title'] = __('Locked', 'wp-ultimo'); + $regular_fields['submit_save']['title'] = __('Locked', 'wp-multisite-waas'); $regular_fields['submit_save']['value'] = 'none'; $regular_fields['submit_save']['html_attr']['disabled'] = 'disabled'; } @@ -599,7 +599,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'pricing', [ - 'title' => __('Billing Amount', 'wp-ultimo'), + 'title' => __('Billing Amount', 'wp-multisite-waas'), 'html_attr' => [ 'data-wu-app' => 'true', 'data-state' => json_encode( @@ -620,10 +620,10 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { // Fields for price '_initial_amount' => [ 'type' => 'text', - 'title' => __('Initial Amount', 'wp-ultimo'), + 'title' => __('Initial Amount', 'wp-multisite-waas'), // translators: %s is a price placeholder value. - 'placeholder' => sprintf(__('E.g. %s', 'wp-ultimo'), wu_format_currency(199)), - 'desc' => __('The initial amount collected on the first payment.', 'wp-ultimo'), + 'placeholder' => sprintf(__('E.g. %s', 'wp-multisite-waas'), wu_format_currency(199)), + 'desc' => __('The initial amount collected on the first payment.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_initial_amount(), 'money' => true, 'html_attr' => [ @@ -641,8 +641,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'recurring' => [ 'type' => 'toggle', - 'title' => __('Is Recurring', 'wp-ultimo'), - 'desc' => __('Use this option to manually enable or disable this membership.', 'wp-ultimo'), + 'title' => __('Is Recurring', 'wp-multisite-waas'), + 'desc' => __('Use this option to manually enable or disable this membership.', 'wp-multisite-waas'), 'value' => $this->get_object()->is_recurring(), 'html_attr' => [ 'v-model' => 'is_recurring', @@ -659,9 +659,9 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'recurring_amount_group' => [ 'type' => 'group', - 'title' => __('Recurring Amount', 'wp-ultimo'), + 'title' => __('Recurring Amount', 'wp-multisite-waas'), // translators: placeholder %1$s is the amount, %2$s is the duration (such as 1, 2, 3), and %3$s is the unit (such as month, year, week) - 'desc' => sprintf(__('The customer will be charged %1$s every %2$s %3$s(s).', 'wp-ultimo'), '{{ wu_format_money(amount) }}', '{{ duration }}', '{{ duration_unit }}'), + 'desc' => sprintf(__('The customer will be charged %1$s every %2$s %3$s(s).', 'wp-multisite-waas'), '{{ wu_format_money(amount) }}', '{{ duration }}', '{{ duration_unit }}'), 'wrapper_html_attr' => [ 'v-show' => 'is_recurring', 'v-cloak' => '1', @@ -697,10 +697,10 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { 'v-model' => 'duration_unit', ], 'options' => [ - 'day' => __('Days', 'wp-ultimo'), - 'week' => __('Weeks', 'wp-ultimo'), - 'month' => __('Months', 'wp-ultimo'), - 'year' => __('Years', 'wp-ultimo'), + 'day' => __('Days', 'wp-multisite-waas'), + 'week' => __('Weeks', 'wp-multisite-waas'), + 'month' => __('Months', 'wp-multisite-waas'), + 'year' => __('Years', 'wp-multisite-waas'), ], ], ], @@ -733,9 +733,9 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'billing_cycles' => [ 'type' => 'number', - 'title' => __('Billing Cycles', 'wp-ultimo'), - 'placeholder' => __('E.g. 0', 'wp-ultimo'), - 'desc' => __('How many times should we bill this customer. Leave 0 to charge until cancelled.', 'wp-ultimo'), + 'title' => __('Billing Cycles', 'wp-multisite-waas'), + 'placeholder' => __('E.g. 0', 'wp-multisite-waas'), + 'desc' => __('How many times should we bill this customer. Leave 0 to charge until cancelled.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_billing_cycles(), 'min' => 0, 'wrapper_html_attr' => [ @@ -745,8 +745,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'times_billed' => [ 'type' => 'number', - 'title' => __('Times Billed', 'wp-ultimo'), - 'desc' => __('The number of times this membership was billed so far.', 'wp-ultimo'), + 'title' => __('Times Billed', 'wp-multisite-waas'), + 'desc' => __('The number of times this membership was billed so far.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_times_billed(), 'min' => 0, 'wrapper_html_attr' => [ @@ -757,8 +757,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { 'auto_renew' => [ 'type' => 'toggle', - 'title' => __('Auto-Renew?', 'wp-ultimo'), - 'desc' => __('Activating this will tell the gateway to try to automatically charge for this membership.', 'wp-ultimo'), + 'title' => __('Auto-Renew?', 'wp-multisite-waas'), + 'desc' => __('Activating this will tell the gateway to try to automatically charge for this membership.', 'wp-multisite-waas'), 'value' => $this->get_object()->should_auto_renew(), 'wrapper_html_attr' => [ 'v-show' => 'is_recurring', @@ -770,10 +770,10 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'gateway' => [ 'type' => 'text', - 'title' => __('Gateway', 'wp-ultimo'), - 'placeholder' => __('e.g. stripe', 'wp-ultimo'), - 'description' => __('e.g. stripe', 'wp-ultimo'), - 'desc' => __('Payment gateway used to process the payment.', 'wp-ultimo'), + 'title' => __('Gateway', 'wp-multisite-waas'), + 'placeholder' => __('e.g. stripe', 'wp-multisite-waas'), + 'description' => __('e.g. stripe', 'wp-multisite-waas'), + 'desc' => __('Payment gateway used to process the payment.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_gateway(), 'wrapper_classes' => 'wu-w-full', 'html_attr' => [ @@ -797,7 +797,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $url = apply_filters("wu_{$gateway_id}_remote_customer_url", $this->get_object()->get_gateway_customer_id()); if ($url) { - return sprintf('%s', esc_attr($url), __('View on Gateway →', 'wp-ultimo')); + return sprintf('%s', esc_attr($url), __('View on Gateway →', 'wp-multisite-waas')); } return ''; @@ -809,8 +809,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'gateway_customer_id' => [ 'type' => 'text', - 'title' => __('Gateway Customer ID', 'wp-ultimo'), - 'placeholder' => __('Gateway Customer ID', 'wp-ultimo'), + 'title' => __('Gateway Customer ID', 'wp-multisite-waas'), + 'placeholder' => __('Gateway Customer ID', 'wp-multisite-waas'), 'value' => $this->get_object()->get_gateway_customer_id(), 'tooltip' => '', 'wrapper_classes' => 'wu-w-full', @@ -835,7 +835,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $url = apply_filters("wu_{$gateway_id}_remote_subscription_url", $this->get_object()->get_gateway_subscription_id()); if ($url) { - return sprintf('%s', esc_attr($url), __('View on Gateway →', 'wp-ultimo')); + return sprintf('%s', esc_attr($url), __('View on Gateway →', 'wp-multisite-waas')); } return ''; @@ -847,8 +847,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'gateway_subscription_id' => [ 'type' => 'text', - 'title' => __('Gateway Subscription ID', 'wp-ultimo'), - 'placeholder' => __('Gateway Subscription ID', 'wp-ultimo'), + 'title' => __('Gateway Subscription ID', 'wp-multisite-waas'), + 'placeholder' => __('Gateway Subscription ID', 'wp-multisite-waas'), 'value' => $this->get_object()->get_gateway_subscription_id(), 'tooltip' => '', 'wrapper_classes' => 'wu-w-full', @@ -862,7 +862,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { 'gateway_note' => [ 'type' => 'note', - 'desc' => __('We will try to cancel the old subscription on the gateway.', 'wp-ultimo'), + 'desc' => __('We will try to cancel the old subscription on the gateway.', 'wp-multisite-waas'), 'classes' => 'wu-p-2 wu-bg-red-100 wu-text-red-600 wu-rounded wu-w-full', 'wrapper_html_attr' => [ 'v-show' => 'is_recurring && (' . implode( @@ -883,10 +883,10 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $timestamp_fields = []; $timestamps = [ - 'date_expiration' => __('Expires at', 'wp-ultimo'), - 'date_renewed' => __('Last Renewed at', 'wp-ultimo'), - 'date_trial_end' => __('Trial Ends at', 'wp-ultimo'), - 'date_cancellation' => __('Cancelled at', 'wp-ultimo'), + 'date_expiration' => __('Expires at', 'wp-multisite-waas'), + 'date_renewed' => __('Last Renewed at', 'wp-multisite-waas'), + 'date_trial_end' => __('Trial Ends at', 'wp-multisite-waas'), + 'date_cancellation' => __('Cancelled at', 'wp-multisite-waas'), ]; foreach ($timestamps as $timestamp_name => $timestamp_label) { @@ -911,7 +911,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { if ( ! $this->get_object()->is_lifetime()) { $timestamp_fields['convert_to_lifetime'] = [ 'type' => 'submit', - 'title' => __('Convert to Lifetime', 'wp-ultimo'), + 'title' => __('Convert to Lifetime', 'wp-multisite-waas'), 'value' => 'convert_to_lifetime', 'classes' => 'button wu-w-full', 'wrapper_html_attr' => [], @@ -921,7 +921,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'membership-timestamps', [ - 'title' => __('Important Timestamps', 'wp-ultimo'), + 'title' => __('Important Timestamps', 'wp-multisite-waas'), 'fields' => $timestamp_fields, ] ); @@ -951,7 +951,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_title() { - return $this->edit ? __('Edit Membership', 'wp-ultimo') : __('Add new Membership', 'wp-ultimo'); + return $this->edit ? __('Edit Membership', 'wp-multisite-waas') : __('Add new Membership', 'wp-multisite-waas'); } /** @@ -962,7 +962,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_menu_title() { - return __('Edit Membership', 'wp-ultimo'); + return __('Edit Membership', 'wp-multisite-waas'); } /** @@ -985,15 +985,15 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { public function get_labels() { return [ - 'edit_label' => __('Edit Membership', 'wp-ultimo'), - 'add_new_label' => __('Add new Membership', 'wp-ultimo'), - 'updated_message' => __('Membership updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Membership Name', 'wp-ultimo'), - 'title_description' => __('This name will be used on pricing tables, invoices, and more.', 'wp-ultimo'), - 'save_button_label' => __('Save Membership', 'wp-ultimo'), + 'edit_label' => __('Edit Membership', 'wp-multisite-waas'), + 'add_new_label' => __('Add new Membership', 'wp-multisite-waas'), + 'updated_message' => __('Membership updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Membership Name', 'wp-multisite-waas'), + 'title_description' => __('This name will be used on pricing tables, invoices, and more.', 'wp-multisite-waas'), + 'save_button_label' => __('Save Membership', 'wp-multisite-waas'), 'save_description' => '', - 'delete_button_label' => __('Delete Membership', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'delete_button_label' => __('Delete Membership', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; } @@ -1103,7 +1103,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $actions = [ 'preview' => [ - 'title' => __('← Go back', 'wp-ultimo'), + 'title' => __('← Go back', 'wp-multisite-waas'), 'url' => remove_query_arg('preview-swap', wu_get_current_url()), ], ]; @@ -1111,7 +1111,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $date = new \DateTime($swap_order->scheduled_date); // translators: %s is the date, using the site format options - $message = sprintf(__('This is a preview. This page displays the final stage of the membership after the changes scheduled for %s. Saving here will persist these changes, so be careful.', 'wp-ultimo'), $date->format(get_option('date_format'))); + $message = sprintf(__('This is a preview. This page displays the final stage of the membership after the changes scheduled for %s. Saving here will persist these changes, so be careful.', 'wp-multisite-waas'), $date->format(get_option('date_format'))); WP_Ultimo()->notices->add($message, 'info', 'network-admin', false, $actions); @@ -1260,8 +1260,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $fields = [ 'product_id' => [ 'type' => 'model', - 'title' => __('Product', 'wp-ultimo'), - 'placeholder' => __('Search product...', 'wp-ultimo'), + 'title' => __('Product', 'wp-multisite-waas'), + 'placeholder' => __('Search product...', 'wp-multisite-waas'), 'value' => '', 'tooltip' => '', 'html_attr' => [ @@ -1275,7 +1275,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'quantity' => [ 'type' => 'number', - 'title' => __('Quantity', 'wp-ultimo'), + 'title' => __('Quantity', 'wp-multisite-waas'), 'value' => 1, 'placeholder' => 1, 'wrapper_classes' => 'wu-w-1/2', @@ -1286,8 +1286,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'update_price' => [ 'type' => 'toggle', - 'title' => __('Update Pricing', 'wp-ultimo'), - 'desc' => __('Checking this box will update the membership pricing. Otherwise, the products will be added without changing the membership prices.', 'wp-ultimo'), + 'title' => __('Update Pricing', 'wp-multisite-waas'), + 'desc' => __('Checking this box will update the membership pricing. Otherwise, the products will be added without changing the membership prices.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'update_pricing', ], @@ -1303,8 +1303,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Add Product', 'wp-ultimo'), - 'placeholder' => __('Add Product', 'wp-ultimo'), + 'title' => __('Add Product', 'wp-multisite-waas'), + 'placeholder' => __('Add Product', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -1351,7 +1351,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $membership = wu_get_membership(wu_request('id')); if ( ! $membership) { - $error = new \WP_Error('membership-not-found', __('Membership not found.', 'wp-ultimo')); + $error = new \WP_Error('membership-not-found', __('Membership not found.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -1359,7 +1359,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $product = wu_get_product(wu_request('product_id')); if ( ! $product) { - $error = new \WP_Error('product-not-found', __('Product not found.', 'wp-ultimo')); + $error = new \WP_Error('product-not-found', __('Product not found.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -1415,7 +1415,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $fields = [ 'quantity' => [ 'type' => 'number', - 'title' => __('Quantity', 'wp-ultimo'), + 'title' => __('Quantity', 'wp-multisite-waas'), 'value' => 1, 'placeholder' => 1, 'wrapper_classes' => 'wu-w-1/2', @@ -1426,8 +1426,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'update_price' => [ 'type' => 'toggle', - 'title' => __('Update Pricing?', 'wp-ultimo'), - 'desc' => __('Checking this box will update the membership pricing. Otherwise, the products will be added without changing the membership prices.', 'wp-ultimo'), + 'title' => __('Update Pricing?', 'wp-multisite-waas'), + 'desc' => __('Checking this box will update the membership pricing. Otherwise, the products will be added without changing the membership prices.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'update_pricing', ], @@ -1443,8 +1443,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Remove Product', 'wp-ultimo'), - 'placeholder' => __('Remove Product', 'wp-ultimo'), + 'title' => __('Remove Product', 'wp-multisite-waas'), + 'placeholder' => __('Remove Product', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -1495,7 +1495,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $membership = wu_get_membership(wu_request('id')); if ( ! $membership) { - $error = new \WP_Error('membership-not-found', __('Membership not found.', 'wp-ultimo')); + $error = new \WP_Error('membership-not-found', __('Membership not found.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -1503,7 +1503,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $product = wu_get_product(wu_request('product_id')); if ( ! $product) { - $error = new \WP_Error('product-not-found', __('Product not found.', 'wp-ultimo')); + $error = new \WP_Error('product-not-found', __('Product not found.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -1571,9 +1571,9 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $fields = [ 'plan_id' => [ 'type' => 'model', - 'title' => __('Plan', 'wp-ultimo'), - 'placeholder' => __('Search new Plan...', 'wp-ultimo'), - 'desc' => __('Select a new plan for this membership.', 'wp-ultimo'), + 'title' => __('Plan', 'wp-multisite-waas'), + 'placeholder' => __('Search new Plan...', 'wp-multisite-waas'), + 'desc' => __('Select a new plan for this membership.', 'wp-multisite-waas'), 'value' => $product->get_id(), 'tooltip' => '', 'html_attr' => [ @@ -1588,8 +1588,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'update_price' => [ 'type' => 'toggle', - 'title' => __('Update Pricing', 'wp-ultimo'), - 'desc' => __('Checking this box will update the membership pricing. Otherwise, the products will be added without changing the membership prices.', 'wp-ultimo'), + 'title' => __('Update Pricing', 'wp-multisite-waas'), + 'desc' => __('Checking this box will update the membership pricing. Otherwise, the products will be added without changing the membership prices.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'update_pricing', ], @@ -1605,8 +1605,8 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Change Product', 'wp-ultimo'), - 'placeholder' => __('Change Product', 'wp-ultimo'), + 'title' => __('Change Product', 'wp-multisite-waas'), + 'placeholder' => __('Change Product', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -1659,7 +1659,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $membership = wu_get_membership(wu_request('id')); if ( ! $membership) { - $error = new \WP_Error('membership-not-found', __('Membership not found.', 'wp-ultimo')); + $error = new \WP_Error('membership-not-found', __('Membership not found.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -1667,7 +1667,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $plan = wu_get_product(wu_request('plan_id')); if ( ! $plan) { - $error = new \WP_Error('plan-not-found', __('Plan not found.', 'wp-ultimo')); + $error = new \WP_Error('plan-not-found', __('Plan not found.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -1675,7 +1675,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page { $original_plan_id = $membership->get_plan_id(); if (absint($original_plan_id) === absint($plan->get_id())) { - $error = new \WP_Error('same-plan', __('No change performed. The same plan selected.', 'wp-ultimo')); + $error = new \WP_Error('same-plan', __('No change performed. The same plan selected.', 'wp-multisite-waas')); wp_send_json_error($error); } diff --git a/inc/admin-pages/class-membership-list-admin-page.php b/inc/admin-pages/class-membership-list-admin-page.php index 0f00401..da784c3 100644 --- a/inc/admin-pages/class-membership-list-admin-page.php +++ b/inc/admin-pages/class-membership-list-admin-page.php @@ -88,9 +88,9 @@ class Membership_List_Admin_Page extends List_Admin_Page { $fields = [ 'customer_id' => [ 'type' => 'model', - 'title' => __('Customer', 'wp-ultimo'), - 'placeholder' => __('Search Customer...', 'wp-ultimo'), - 'desc' => __('The customer to attach this membership to.', 'wp-ultimo'), + 'title' => __('Customer', 'wp-multisite-waas'), + 'placeholder' => __('Search Customer...', 'wp-multisite-waas'), + 'desc' => __('The customer to attach this membership to.', 'wp-multisite-waas'), 'html_attr' => [ 'data-model' => 'customer', 'data-value-field' => 'id', @@ -101,9 +101,9 @@ class Membership_List_Admin_Page extends List_Admin_Page { ], 'product_ids' => [ 'type' => 'model', - 'title' => __('Products', 'wp-ultimo'), - 'placeholder' => __('Search Products...', 'wp-ultimo'), - 'desc' => __('You can add multiples products to this membership.', 'wp-ultimo'), + 'title' => __('Products', 'wp-multisite-waas'), + 'placeholder' => __('Search Products...', 'wp-multisite-waas'), + 'desc' => __('You can add multiples products to this membership.', 'wp-multisite-waas'), 'tooltip' => '', 'html_attr' => [ 'data-model' => 'product', @@ -115,25 +115,25 @@ class Membership_List_Admin_Page extends List_Admin_Page { ], 'status' => [ 'type' => 'select', - 'title' => __('Status', 'wp-ultimo'), - 'placeholder' => __('Status', 'wp-ultimo'), - 'desc' => __('The membership status.', 'wp-ultimo'), + 'title' => __('Status', 'wp-multisite-waas'), + 'placeholder' => __('Status', 'wp-multisite-waas'), + 'desc' => __('The membership status.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => Membership_Status::PENDING, 'options' => Membership_Status::to_array(), ], 'lifetime' => [ 'type' => 'toggle', - 'title' => __('Lifetime', 'wp-ultimo'), - 'desc' => __('Activate this toggle to mark the newly created membership as lifetime.', 'wp-ultimo'), + 'title' => __('Lifetime', 'wp-multisite-waas'), + 'desc' => __('Activate this toggle to mark the newly created membership as lifetime.', 'wp-multisite-waas'), 'value' => 1, 'html_attr' => [ 'v-model' => 'lifetime', ], ], 'date_expiration' => [ - 'title' => __('Expiration Date', 'wp-ultimo'), - 'desc' => __('Set the expiration date of the membership to be created.', 'wp-ultimo'), + 'title' => __('Expiration Date', 'wp-multisite-waas'), + 'desc' => __('Set the expiration date of the membership to be created.', 'wp-multisite-waas'), 'type' => 'text', 'date' => true, 'value' => gmdate('Y-m-d', strtotime('+1 month')), @@ -150,7 +150,7 @@ class Membership_List_Admin_Page extends List_Admin_Page { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Create Membership', 'wp-ultimo'), + 'title' => __('Create Membership', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -197,7 +197,7 @@ class Membership_List_Admin_Page extends List_Admin_Page { wp_send_json_error( new \WP_Error( 'empty-products', - __('Products can not be empty.', 'wp-ultimo') + __('Products can not be empty.', 'wp-multisite-waas') ) ); } @@ -208,7 +208,7 @@ class Membership_List_Admin_Page extends List_Admin_Page { wp_send_json_error( new \WP_Error( 'customer-not-found', - __('The selected customer does not exist.', 'wp-ultimo') + __('The selected customer does not exist.', 'wp-multisite-waas') ) ); } @@ -263,8 +263,8 @@ class Membership_List_Admin_Page extends List_Admin_Page { public function get_labels() { return [ - 'deleted_message' => __('Membership removed successfully.', 'wp-ultimo'), - 'search_label' => __('Search Membership', 'wp-ultimo'), + 'deleted_message' => __('Membership removed successfully.', 'wp-multisite-waas'), + 'search_label' => __('Search Membership', 'wp-multisite-waas'), ]; } @@ -276,7 +276,7 @@ class Membership_List_Admin_Page extends List_Admin_Page { */ public function get_title() { - return __('Memberships', 'wp-ultimo'); + return __('Memberships', 'wp-multisite-waas'); } /** @@ -287,7 +287,7 @@ class Membership_List_Admin_Page extends List_Admin_Page { */ public function get_menu_title() { - return __('Memberships', 'wp-ultimo'); + return __('Memberships', 'wp-multisite-waas'); } /** @@ -298,7 +298,7 @@ class Membership_List_Admin_Page extends List_Admin_Page { */ public function get_submenu_title() { - return __('Memberships', 'wp-ultimo'); + return __('Memberships', 'wp-multisite-waas'); } /** diff --git a/inc/admin-pages/class-migration-alert-admin-page.php b/inc/admin-pages/class-migration-alert-admin-page.php index 61370ec..efb0c97 100644 --- a/inc/admin-pages/class-migration-alert-admin-page.php +++ b/inc/admin-pages/class-migration-alert-admin-page.php @@ -104,7 +104,7 @@ class Migration_Alert_Admin_Page extends Wizard_Admin_Page { */ public function get_title(): string { - return sprintf(__('Migration', 'wp-ultimo')); + return sprintf(__('Migration', 'wp-multisite-waas')); } /** @@ -115,7 +115,7 @@ class Migration_Alert_Admin_Page extends Wizard_Admin_Page { */ public function get_menu_title() { - return WP_Ultimo()->is_loaded() ? __('WP Multisite WaaS Migration Alert', 'wp-ultimo') : __('WP Multisite WaaS', 'wp-ultimo'); + return WP_Ultimo()->is_loaded() ? __('WP Multisite WaaS Migration Alert', 'wp-multisite-waas') : __('WP Multisite WaaS', 'wp-multisite-waas'); } /** @@ -128,7 +128,7 @@ class Migration_Alert_Admin_Page extends Wizard_Admin_Page { return [ 'alert' => [ - 'title' => __('Alert!', 'wp-ultimo'), + 'title' => __('Alert!', 'wp-multisite-waas'), 'view' => [$this, 'section_alert'], 'handler' => [$this, 'handle_proceed'], ], diff --git a/inc/admin-pages/class-payment-edit-admin-page.php b/inc/admin-pages/class-payment-edit-admin-page.php index c1ce10f..6865209 100644 --- a/inc/admin-pages/class-payment-edit-admin-page.php +++ b/inc/admin-pages/class-payment-edit-admin-page.php @@ -167,15 +167,15 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Deletion', 'wp-ultimo'), - 'desc' => __('This action can not be undone.', 'wp-ultimo'), + 'title' => __('Confirm Deletion', 'wp-multisite-waas'), + 'desc' => __('This action can not be undone.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Delete', 'wp-ultimo'), + 'title' => __('Delete', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -227,7 +227,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { $line_item = wu_get_line_item(wu_request('line_item_id'), $payment->get_id()); if ( ! $payment || ! $line_item) { - wp_send_json_error(new \WP_Error('not-found', __('Payment not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('Payment not found.', 'wp-multisite-waas'))); } $line_items = $payment->get_line_items(); @@ -266,8 +266,8 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { $fields = [ '_amount' => [ 'type' => 'text', - 'title' => __('Refund Amount', 'wp-ultimo'), - 'placeholder' => __('Refund Amount', 'wp-ultimo'), + 'title' => __('Refund Amount', 'wp-multisite-waas'), + 'placeholder' => __('Refund Amount', 'wp-multisite-waas'), 'money' => true, 'min' => 0, 'html_attr' => [ @@ -287,15 +287,15 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'cancel_membership' => [ 'type' => 'toggle', - 'title' => __('Cancel Related Membership?', 'wp-ultimo'), - 'desc' => __('Checking this option will cancel the membership as well.', 'wp-ultimo'), + 'title' => __('Cancel Related Membership?', 'wp-multisite-waas'), + 'desc' => __('Checking this option will cancel the membership as well.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => 'step === 1', ], ], 'refund_not_immediate_note' => [ 'type' => 'note', - 'desc' => __('Confirming the refund might not immediately change the status of the payment, as each gateway handles refunds differently and WP Multisite WaaS relies on the gateway reporting a successful refund before changing the status.', 'wp-ultimo'), + 'desc' => __('Confirming the refund might not immediately change the status of the payment, as each gateway handles refunds differently and WP Multisite WaaS relies on the gateway reporting a successful refund before changing the status.', 'wp-multisite-waas'), 'classes' => 'wu-p-2 wu-bg-yellow-200 wu-text-yellow-700 wu-rounded wu-w-full', 'wrapper_html_attr' => [ 'v-show' => 'step === 2', @@ -304,8 +304,8 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Refund', 'wp-ultimo'), - 'desc' => __('This action can not be undone.', 'wp-ultimo'), + 'title' => __('Confirm Refund', 'wp-multisite-waas'), + 'desc' => __('This action can not be undone.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => 'step === 2', ], @@ -315,8 +315,8 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Next Step', 'wp-ultimo'), - 'placeholder' => __('Next Step', 'wp-ultimo'), + 'title' => __('Next Step', 'wp-multisite-waas'), + 'placeholder' => __('Next Step', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -330,8 +330,8 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'submit_button_2' => [ 'type' => 'submit', - 'title' => __('Issue Refund', 'wp-ultimo'), - 'placeholder' => __('Issue Refund', 'wp-ultimo'), + 'title' => __('Issue Refund', 'wp-multisite-waas'), + 'placeholder' => __('Issue Refund', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -385,14 +385,14 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { $payment = wu_get_payment(wu_request('id')); if ( ! $payment) { - wp_send_json_error(new \WP_Error('not-found', __('Payment not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('Payment not found.', 'wp-multisite-waas'))); } /* * Checks for a valid amount. */ if (empty($amount) || $amount > $payment->get_total()) { - wp_send_json_error(new \WP_Error('invalid-amount', __('The refund amount is out of bounds.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('invalid-amount', __('The refund amount is out of bounds.', 'wp-multisite-waas'))); } /* @@ -402,7 +402,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { $is_refundable = in_array($payment->get_status(), wu_get_refundable_payment_types(), true); if ( ! $is_refundable) { - wp_send_json_error(new \WP_Error('payment-not-refunded', __('This payment is not in a refundable state.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('payment-not-refunded', __('This payment is not in a refundable state.', 'wp-multisite-waas'))); } /* @@ -453,7 +453,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { $gateway = wu_get_gateway($gateway_id); if ( ! $gateway) { - wp_send_json_error(new \WP_Error('gateway-not-found', __('Payment gateway not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('gateway-not-found', __('Payment gateway not found.', 'wp-multisite-waas'))); } /* @@ -482,14 +482,14 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { if (is_wp_error($status)) { // translators: %s is the exception error message. - $error = new \WP_Error('refund-error', sprintf(__('An error occurred: %s', 'wp-ultimo'), $status->get_error_message())); + $error = new \WP_Error('refund-error', sprintf(__('An error occurred: %s', 'wp-multisite-waas'), $status->get_error_message())); wp_send_json_error($error); } } catch (\Throwable $e) { // translators: %s is the exception error message. - $error = new \WP_Error('refund-error', sprintf(__('An error occurred: %s', 'wp-ultimo'), $e->getMessage())); + $error = new \WP_Error('refund-error', sprintf(__('An error occurred: %s', 'wp-multisite-waas'), $e->getMessage())); wp_send_json_error($error); } @@ -541,7 +541,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { $product = wu_get_product(wu_request('product_id')); if (empty($product)) { - $error = new \WP_Error('missing-product', __('The product was not found.', 'wp-ultimo')); + $error = new \WP_Error('missing-product', __('The product was not found.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -578,7 +578,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ); if ( ! in_array($type, $allowed_types, true)) { - $error = new \WP_Error('invalid-type', __('The line item type is invalid.', 'wp-ultimo')); + $error = new \WP_Error('invalid-type', __('The line item type is invalid.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -610,7 +610,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { $saved = $payment->recalculate_totals()->save(); if ( ! $saved) { - wp_send_json_error(new \WP_Error('error', __('Something wrong happened.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('error', __('Something wrong happened.', 'wp-multisite-waas'))); } if (is_wp_error($saved)) { @@ -648,9 +648,9 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { 'tab' => [ 'type' => 'tab-select', 'options' => [ - 'type' => __('Type', 'wp-ultimo'), - 'info' => __('Additional Info', 'wp-ultimo'), - 'tax' => __('Tax Info', 'wp-ultimo'), + 'type' => __('Type', 'wp-multisite-waas'), + 'info' => __('Additional Info', 'wp-multisite-waas'), + 'tax' => __('Tax Info', 'wp-multisite-waas'), ], 'html_attr' => [ 'v-model' => 'tab', @@ -658,13 +658,13 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'type' => [ 'type' => 'select', - 'title' => __('Line Item Type', 'wp-ultimo'), - 'desc' => __('Select the line item type.', 'wp-ultimo'), + 'title' => __('Line Item Type', 'wp-multisite-waas'), + 'desc' => __('Select the line item type.', 'wp-multisite-waas'), 'options' => [ - 'product' => __('Product', 'wp-ultimo'), - 'refund' => __('Refund', 'wp-ultimo'), - 'fee' => __('Fee', 'wp-ultimo'), - 'credit' => __('Credit', 'wp-ultimo'), + 'product' => __('Product', 'wp-multisite-waas'), + 'refund' => __('Refund', 'wp-multisite-waas'), + 'fee' => __('Fee', 'wp-multisite-waas'), + 'credit' => __('Credit', 'wp-multisite-waas'), ], 'wrapper_html_attr' => [ 'v-show' => 'tab === "type"', @@ -675,9 +675,9 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'product_id' => [ 'type' => 'model', - 'title' => __('Product', 'wp-ultimo'), - 'desc' => __('Product associated with this line item.', 'wp-ultimo'), - 'placeholder' => __('Search Products', 'wp-ultimo'), + 'title' => __('Product', 'wp-multisite-waas'), + 'desc' => __('Product associated with this line item.', 'wp-multisite-waas'), + 'placeholder' => __('Search Products', 'wp-multisite-waas'), 'value' => $line_item->get_product_id(), 'tooltip' => '', 'wrapper_html_attr' => [ @@ -694,9 +694,9 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'title' => [ 'type' => 'text', - 'title' => __('Line Item Title', 'wp-ultimo'), - 'placeholder' => __('E.g. Extra Charge', 'wp-ultimo'), - 'desc' => __('This is used when generating invoices.', 'wp-ultimo'), + 'title' => __('Line Item Title', 'wp-multisite-waas'), + 'placeholder' => __('E.g. Extra Charge', 'wp-multisite-waas'), + 'desc' => __('This is used when generating invoices.', 'wp-multisite-waas'), 'value' => $line_item->get_title(), 'wrapper_html_attr' => [ 'v-show' => 'tab === "info"', @@ -704,9 +704,9 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'description' => [ 'type' => 'textarea', - 'title' => __('Line Item Description', 'wp-ultimo'), - 'placeholder' => __('E.g. This service was done to improve performance.', 'wp-ultimo'), - 'desc' => __('This is used when generating invoices.', 'wp-ultimo'), + 'title' => __('Line Item Description', 'wp-multisite-waas'), + 'placeholder' => __('E.g. This service was done to improve performance.', 'wp-multisite-waas'), + 'desc' => __('This is used when generating invoices.', 'wp-multisite-waas'), 'value' => $line_item->get_description(), 'html_attr' => [ 'rows' => 4, @@ -717,10 +717,10 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'quantity' => [ 'type' => 'number', - 'title' => __('Quantity', 'wp-ultimo'), - 'desc' => __('Item quantity.', 'wp-ultimo'), + 'title' => __('Quantity', 'wp-multisite-waas'), + 'desc' => __('Item quantity.', 'wp-multisite-waas'), 'value' => $line_item->get_quantity(), - 'placeholder' => __('E.g. 1', 'wp-ultimo'), + 'placeholder' => __('E.g. 1', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-w-1/2', 'wrapper_html_attr' => [ 'v-show' => 'type === "product" && tab === "type"', @@ -738,10 +738,10 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], '_unit_price' => [ 'type' => 'text', - 'title' => __('Unit Price', 'wp-ultimo'), - 'desc' => __('Item unit price. This is multiplied by the quantity to calculate the sub-total.', 'wp-ultimo'), + 'title' => __('Unit Price', 'wp-multisite-waas'), + 'desc' => __('Item unit price. This is multiplied by the quantity to calculate the sub-total.', 'wp-multisite-waas'), // translators: %s is a price placeholder value. - 'placeholder' => sprintf(__('E.g. %s', 'wp-ultimo'), wu_format_currency(99)), + 'placeholder' => sprintf(__('E.g. %s', 'wp-multisite-waas'), wu_format_currency(99)), 'value' => $line_item->get_unit_price(), 'money' => true, 'wrapper_classes' => 'wu-w-1/2', @@ -756,10 +756,10 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], '_unit_price_amount' => [ 'type' => 'text', - 'title' => __('Amount', 'wp-ultimo'), - 'desc' => __('Refund, credit or fee amount.', 'wp-ultimo'), + 'title' => __('Amount', 'wp-multisite-waas'), + 'desc' => __('Refund, credit or fee amount.', 'wp-multisite-waas'), // translators: %s is a price placeholder value. - 'placeholder' => sprintf(__('E.g. %s', 'wp-ultimo'), wu_format_currency(99)), + 'placeholder' => sprintf(__('E.g. %s', 'wp-multisite-waas'), wu_format_currency(99)), 'value' => $line_item->get_unit_price(), 'money' => true, 'wrapper_classes' => 'wu-w-1/2', @@ -774,8 +774,8 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'taxable' => [ 'type' => 'toggle', - 'title' => __('Is Taxable?', 'wp-ultimo'), - 'desc' => __('Checking this box will toggle the tax controls.', 'wp-ultimo'), + 'title' => __('Is Taxable?', 'wp-multisite-waas'), + 'desc' => __('Checking this box will toggle the tax controls.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-bind:class' => 'type !== "product" ? "wu-opacity-50" : ""', 'v-show' => 'tab === "tax"', @@ -787,9 +787,9 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'tax_label' => [ 'type' => 'text', - 'title' => __('Tax Label', 'wp-ultimo'), - 'placeholder' => __('E.g. ES VAT', 'wp-ultimo'), - 'desc' => __('Tax description. This is shown on invoices to end customers.', 'wp-ultimo'), + 'title' => __('Tax Label', 'wp-multisite-waas'), + 'placeholder' => __('E.g. ES VAT', 'wp-multisite-waas'), + 'desc' => __('Tax description. This is shown on invoices to end customers.', 'wp-multisite-waas'), 'value' => $line_item->get_tax_label(), 'wrapper_html_attr' => [ 'v-show' => 'taxable && tab === "tax"', @@ -797,8 +797,8 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'tax_rate_group' => [ 'type' => 'group', - 'title' => __('Tax Rate', 'wp-ultimo'), - 'desc' => __('Tax rate and type to apply to this item.', 'wp-ultimo'), + 'title' => __('Tax Rate', 'wp-multisite-waas'), + 'desc' => __('Tax rate and type to apply to this item.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => 'taxable && tab === "tax"', ], @@ -819,16 +819,16 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { 'placeholder' => '', 'wrapper_classes' => 'wu-w-2/3', 'options' => [ - 'percentage' => __('Percentage (%)', 'wp-ultimo'), - 'absolute' => __('Flat Rate ($)', 'wp-ultimo'), + 'percentage' => __('Percentage (%)', 'wp-multisite-waas'), + 'absolute' => __('Flat Rate ($)', 'wp-multisite-waas'), ], ], ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Save', 'wp-ultimo'), - 'placeholder' => __('Save', 'wp-ultimo'), + 'title' => __('Save', 'wp-multisite-waas'), + 'placeholder' => __('Save', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -881,7 +881,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { if ($is_refundable) { $actions['refund_payment'] = [ - 'label' => __('Refund Payment', 'wp-ultimo'), + 'label' => __('Refund Payment', 'wp-multisite-waas'), 'icon_classes' => 'dashicons-wu-ccw wu-align-text-bottom', 'classes' => 'button wubox', 'href' => wu_get_form_url( @@ -894,7 +894,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { } $actions['add_line_item'] = [ - 'label' => __('Add Line Item', 'wp-ultimo'), + 'label' => __('Add Line Item', 'wp-multisite-waas'), 'icon_classes' => 'dashicons-wu-circle-with-plus wu-align-text-bottom', 'classes' => 'button wubox', 'href' => wu_get_form_url( @@ -952,26 +952,26 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'at_a_glance', [ - 'title' => __('At a Glance', 'wp-ultimo'), + 'title' => __('At a Glance', 'wp-multisite-waas'), 'position' => 'normal', 'classes' => 'wu-overflow-hidden wu-widget-inset', 'field_wrapper_classes' => 'wu-w-1/3 wu-box-border wu-items-center wu-flex wu-justify-between wu-p-4 wu-m-0 wu-border-t-0 wu-border-l-0 wu-border-r wu-border-b-0 wu-border-gray-300 wu-border-solid wu-float-left wu-relative', 'fields' => [ 'status' => [ 'type' => 'text-display', - 'title' => __('Payment Status', 'wp-ultimo'), + 'title' => __('Payment Status', 'wp-multisite-waas'), 'display_value' => $tag, 'tooltip' => '', ], 'hash' => [ 'copy' => true, 'type' => 'text-display', - 'title' => __('Reference ID', 'wp-ultimo'), + 'title' => __('Reference ID', 'wp-multisite-waas'), 'display_value' => $this->get_object()->get_hash(), ], 'total' => [ 'type' => 'text-display', - 'title' => __('Total', 'wp-ultimo'), + 'title' => __('Total', 'wp-multisite-waas'), 'display_value' => wu_format_currency($this->get_object()->get_total(), $this->get_object()->get_currency()), 'wrapper_classes' => 'sm:wu-border-r-0', ], @@ -982,7 +982,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'line-items', [ - 'title' => __('Line Items', 'wp-ultimo'), + 'title' => __('Line Items', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Payment_Line_Item_List_Table(), 'position' => 'normal', 'query_filter' => [$this, 'payments_query_filter'], @@ -993,7 +993,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { $this->add_widget( 'tax-rates', [ - 'title' => __('Tax Rate Breakthrough', 'wp-ultimo'), + 'title' => __('Tax Rate Breakthrough', 'wp-multisite-waas'), 'position' => 'normal', 'display' => [$this, 'display_tax_breakthrough'], ] @@ -1002,7 +1002,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { $this->add_tabs_widget( 'options', [ - 'title' => __('Payment Options', 'wp-ultimo'), + 'title' => __('Payment Options', 'wp-multisite-waas'), 'position' => 'normal', 'sections' => apply_filters('wu_payments_options_sections', [], $this->get_object()), ] @@ -1011,7 +1011,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'wp-ultimo'), + 'title' => __('Events', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'events_query_filter'], ] @@ -1037,9 +1037,9 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'status' => [ 'type' => 'select', - 'title' => __('Status', 'wp-ultimo'), - 'placeholder' => __('Status', 'wp-ultimo'), - 'desc' => __('The payment current status.', 'wp-ultimo'), + 'title' => __('Status', 'wp-multisite-waas'), + 'placeholder' => __('Status', 'wp-multisite-waas'), + 'desc' => __('The payment current status.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_status(), 'options' => Payment_Status::to_array(), 'tooltip' => '', @@ -1052,8 +1052,8 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'confirm_membership' => [ 'type' => 'toggle', - 'title' => __('Activate Membership?', 'wp-ultimo'), - 'desc' => __('This payment belongs to a pending membership. If you toggle this option, this change in status will also apply to the membership. If any sites are pending, they are also going to be published automatically.', 'wp-ultimo'), + 'title' => __('Activate Membership?', 'wp-multisite-waas'), + 'desc' => __('This payment belongs to a pending membership. If you toggle this option, this change in status will also apply to the membership. If any sites are pending, they are also going to be published automatically.', 'wp-multisite-waas'), 'value' => 0, 'wrapper_html_attr' => [ 'v-if' => 'status !== original_status && status === "completed" && membership_status === "pending"', @@ -1062,8 +1062,8 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'membership_id' => [ 'type' => 'model', - 'title' => __('Membership', 'wp-ultimo'), - 'desc' => __('The membership associated with this payment.', 'wp-ultimo'), + 'title' => __('Membership', 'wp-multisite-waas'), + 'desc' => __('The membership associated with this payment.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_membership_id(), 'tooltip' => '', 'html_attr' => [ @@ -1081,10 +1081,10 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { ], 'gateway' => [ 'type' => 'text', - 'title' => __('Gateway', 'wp-ultimo'), - 'placeholder' => __('e.g. stripe', 'wp-ultimo'), - 'description' => __('e.g. stripe', 'wp-ultimo'), - 'desc' => __('Payment gateway used to process the payment.', 'wp-ultimo'), + 'title' => __('Gateway', 'wp-multisite-waas'), + 'placeholder' => __('e.g. stripe', 'wp-multisite-waas'), + 'description' => __('e.g. stripe', 'wp-multisite-waas'), + 'desc' => __('Payment gateway used to process the payment.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_gateway(), 'wrapper_classes' => 'wu-w-full', 'html_attr' => [ @@ -1108,7 +1108,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { $url = apply_filters("wu_{$gateway_id}_remote_payment_url", $this->get_object()->get_gateway_payment_id()); if ($url) { - return sprintf('%s', esc_attr($url), __('View on Gateway →', 'wp-ultimo')); + return sprintf('%s', esc_attr($url), __('View on Gateway →', 'wp-multisite-waas')); } return ''; @@ -1120,10 +1120,10 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'gateway_payment_id' => [ 'type' => 'text', - 'title' => __('Gateway Payment ID', 'wp-ultimo'), - 'placeholder' => __('e.g. EX897540987913', 'wp-ultimo'), - 'description' => __('e.g. EX897540987913', 'wp-ultimo'), - 'tooltip' => __('This will usually be set automatically by the payment gateway.', 'wp-ultimo'), + 'title' => __('Gateway Payment ID', 'wp-multisite-waas'), + 'placeholder' => __('e.g. EX897540987913', 'wp-multisite-waas'), + 'description' => __('e.g. EX897540987913', 'wp-multisite-waas'), + 'tooltip' => __('This will usually be set automatically by the payment gateway.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_gateway_payment_id(), 'wrapper_classes' => 'wu-w-full', 'html_attr' => [], @@ -1134,10 +1134,10 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { 'invoice_number' => [ 'type' => 'number', 'min' => 0, - 'title' => __('Invoice Number', 'wp-ultimo'), - 'placeholder' => __('e.g. 20', 'wp-ultimo'), - 'tooltip' => __('This number gets saved automatically when a payment transitions to a complete state. You can change it to generate invoices with a particular number. The number chosen here has no effect on other invoices in the platform.', 'wp-ultimo'), - 'desc' => __('The invoice number for this particular payment.', 'wp-ultimo'), + 'title' => __('Invoice Number', 'wp-multisite-waas'), + 'placeholder' => __('e.g. 20', 'wp-multisite-waas'), + 'tooltip' => __('This number gets saved automatically when a payment transitions to a complete state. You can change it to generate invoices with a particular number. The number chosen here has no effect on other invoices in the platform.', 'wp-multisite-waas'), + 'desc' => __('The invoice number for this particular payment.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_saved_invoice_number(), 'wrapper_classes' => 'wu-w-full', 'wrapper_html_attr' => [ @@ -1158,7 +1158,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_title() { - return $this->edit ? __('Edit Payment', 'wp-ultimo') : __('Add new Payment', 'wp-ultimo'); + return $this->edit ? __('Edit Payment', 'wp-multisite-waas') : __('Add new Payment', 'wp-multisite-waas'); } /** @@ -1169,7 +1169,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_menu_title() { - return __('Edit Payment', 'wp-ultimo'); + return __('Edit Payment', 'wp-multisite-waas'); } /** @@ -1187,14 +1187,14 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { if ($payment) { $actions[] = [ 'url' => $payment->get_invoice_url(), - 'label' => __('Generate Invoice', 'wp-ultimo'), + 'label' => __('Generate Invoice', 'wp-multisite-waas'), 'icon' => 'wu-attachment', ]; if ($payment->is_payable()) { $actions[] = [ 'url' => $payment->get_payment_url(), - 'label' => __('Payment URL', 'wp-ultimo'), + 'label' => __('Payment URL', 'wp-multisite-waas'), 'icon' => 'wu-credit-card', ]; } @@ -1212,15 +1212,15 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page { public function get_labels() { return [ - 'edit_label' => __('Edit Payment', 'wp-ultimo'), - 'add_new_label' => __('Add new Payment', 'wp-ultimo'), - 'updated_message' => __('Payment updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Payment Name', 'wp-ultimo'), - 'title_description' => __('This name will be used on pricing tables, invoices, and more.', 'wp-ultimo'), - 'save_button_label' => __('Save Payment', 'wp-ultimo'), + 'edit_label' => __('Edit Payment', 'wp-multisite-waas'), + 'add_new_label' => __('Add new Payment', 'wp-multisite-waas'), + 'updated_message' => __('Payment updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Payment Name', 'wp-multisite-waas'), + 'title_description' => __('This name will be used on pricing tables, invoices, and more.', 'wp-multisite-waas'), + 'save_button_label' => __('Save Payment', 'wp-multisite-waas'), 'save_description' => '', - 'delete_button_label' => __('Delete Payment', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'delete_button_label' => __('Delete Payment', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; } diff --git a/inc/admin-pages/class-payment-list-admin-page.php b/inc/admin-pages/class-payment-list-admin-page.php index fad858e..c3a0ae9 100644 --- a/inc/admin-pages/class-payment-list-admin-page.php +++ b/inc/admin-pages/class-payment-list-admin-page.php @@ -87,9 +87,9 @@ class Payment_List_Admin_Page extends List_Admin_Page { $fields = [ 'products' => [ 'type' => 'model', - 'title' => __('Products', 'wp-ultimo'), - 'placeholder' => __('Search Products...', 'wp-ultimo'), - 'desc' => __('Each product will be added as a line item.', 'wp-ultimo'), + 'title' => __('Products', 'wp-multisite-waas'), + 'placeholder' => __('Search Products...', 'wp-multisite-waas'), + 'desc' => __('Each product will be added as a line item.', 'wp-multisite-waas'), 'value' => '', 'tooltip' => '', 'html_attr' => [ @@ -102,18 +102,18 @@ class Payment_List_Admin_Page extends List_Admin_Page { ], 'status' => [ 'type' => 'select', - 'title' => __('Status', 'wp-ultimo'), - 'placeholder' => __('Status', 'wp-ultimo'), - 'desc' => __('The payment status to attach to the newly created payment.', 'wp-ultimo'), + 'title' => __('Status', 'wp-multisite-waas'), + 'placeholder' => __('Status', 'wp-multisite-waas'), + 'desc' => __('The payment status to attach to the newly created payment.', 'wp-multisite-waas'), 'value' => Payment_Status::COMPLETED, 'options' => Payment_Status::to_array(), 'tooltip' => '', ], 'membership_id' => [ 'type' => 'model', - 'title' => __('Membership', 'wp-ultimo'), - 'placeholder' => __('Search Membership...', 'wp-ultimo'), - 'desc' => __('The membership associated with this payment.', 'wp-ultimo'), + 'title' => __('Membership', 'wp-multisite-waas'), + 'placeholder' => __('Search Membership...', 'wp-multisite-waas'), + 'desc' => __('The membership associated with this payment.', 'wp-multisite-waas'), 'value' => '', 'tooltip' => '', 'html_attr' => [ @@ -126,13 +126,13 @@ class Payment_List_Admin_Page extends List_Admin_Page { ], 'add_setup_fees' => [ 'type' => 'toggle', - 'title' => __('Include Setup Fees', 'wp-ultimo'), - 'desc' => __('Checking this box will include setup fees attached to the selected products as well.', 'wp-ultimo'), + 'title' => __('Include Setup Fees', 'wp-multisite-waas'), + 'desc' => __('Checking this box will include setup fees attached to the selected products as well.', 'wp-multisite-waas'), 'value' => 1, ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Add Payment', 'wp-ultimo'), + 'title' => __('Add Payment', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -172,7 +172,7 @@ class Payment_List_Admin_Page extends List_Admin_Page { $membership = wu_get_membership(wu_request('membership_id')); if ( ! $membership) { - $error = new \WP_Error('invalid-membership', __('Invalid membership.', 'wp-ultimo')); + $error = new \WP_Error('invalid-membership', __('Invalid membership.', 'wp-multisite-waas')); return wp_send_json_error($error); } @@ -228,8 +228,8 @@ class Payment_List_Admin_Page extends List_Admin_Page { public function get_labels() { return [ - 'deleted_message' => __('Payment removed successfully.', 'wp-ultimo'), - 'search_label' => __('Search Payment', 'wp-ultimo'), + 'deleted_message' => __('Payment removed successfully.', 'wp-multisite-waas'), + 'search_label' => __('Search Payment', 'wp-multisite-waas'), ]; } @@ -241,7 +241,7 @@ class Payment_List_Admin_Page extends List_Admin_Page { */ public function get_title() { - return __('Payments', 'wp-ultimo'); + return __('Payments', 'wp-multisite-waas'); } /** @@ -252,7 +252,7 @@ class Payment_List_Admin_Page extends List_Admin_Page { */ public function get_menu_title() { - return __('Payments', 'wp-ultimo'); + return __('Payments', 'wp-multisite-waas'); } /** @@ -263,7 +263,7 @@ class Payment_List_Admin_Page extends List_Admin_Page { */ public function get_submenu_title() { - return __('Payments', 'wp-ultimo'); + return __('Payments', 'wp-multisite-waas'); } /** @@ -276,7 +276,7 @@ class Payment_List_Admin_Page extends List_Admin_Page { return [ [ - 'label' => __('Add Payment', 'wp-ultimo'), + 'label' => __('Add Payment', 'wp-multisite-waas'), 'icon' => 'wu-circle-with-plus', 'classes' => 'wubox', 'url' => wu_get_form_url('add_new_payment'), diff --git a/inc/admin-pages/class-placeholders-admin-page.php b/inc/admin-pages/class-placeholders-admin-page.php index 0162e8e..4d0f2ed 100644 --- a/inc/admin-pages/class-placeholders-admin-page.php +++ b/inc/admin-pages/class-placeholders-admin-page.php @@ -70,7 +70,7 @@ class Placeholders_Admin_Page extends Base_Admin_Page { */ public function get_title() { - return __('Edit Template Placeholders', 'wp-ultimo'); + return __('Edit Template Placeholders', 'wp-multisite-waas'); } /** @@ -81,7 +81,7 @@ class Placeholders_Admin_Page extends Base_Admin_Page { */ public function get_menu_title() { - return __('Edit Template Placeholders', 'wp-ultimo'); + return __('Edit Template Placeholders', 'wp-multisite-waas'); } /** @@ -92,7 +92,7 @@ class Placeholders_Admin_Page extends Base_Admin_Page { */ public function get_submenu_title() { - return __('Edit Template Placeholders', 'wp-ultimo'); + return __('Edit Template Placeholders', 'wp-multisite-waas'); } /** @@ -108,8 +108,8 @@ class Placeholders_Admin_Page extends Base_Admin_Page { $columns = apply_filters( 'wu_edit_placeholders_columns', [ - 'placeholder' => __('Placeholder', 'wp-ultimo'), - 'content' => __('Content', 'wp-ultimo'), + 'placeholder' => __('Placeholder', 'wp-multisite-waas'), + 'content' => __('Content', 'wp-multisite-waas'), ] ); @@ -138,9 +138,9 @@ class Placeholders_Admin_Page extends Base_Admin_Page { 'wu-edit-placeholders', 'wu_placeholdersl10n', [ - 'name' => __('Tax', 'wp-ultimo'), - 'confirm_message' => __('Are you sure you want to delete this rows?', 'wp-ultimo'), - 'confirm_delete_tax_category_message' => __('Are you sure you want to delete this tax category?', 'wp-ultimo'), + 'name' => __('Tax', 'wp-multisite-waas'), + 'confirm_message' => __('Are you sure you want to delete this rows?', 'wp-multisite-waas'), + 'confirm_delete_tax_category_message' => __('Are you sure you want to delete this tax category?', 'wp-multisite-waas'), ] ); diff --git a/inc/admin-pages/class-product-edit-admin-page.php b/inc/admin-pages/class-product-edit-admin-page.php index 7673899..f1fa04a 100644 --- a/inc/admin-pages/class-product-edit-admin-page.php +++ b/inc/admin-pages/class-product-edit-admin-page.php @@ -116,16 +116,16 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { [ [ 'id' => 'new-product-warning', - 'title' => __('On adding a new product...', 'wp-ultimo'), + 'title' => __('On adding a new product...', 'wp-multisite-waas'), 'text' => [ - __("You just successfully added a new product to your WP Multisite WaaS network and that's awesome!", 'wp-ultimo'), - __('Keep in mind that newly created products do not appear automatically in your checkout forms.', 'wp-ultimo'), - __('To make a product available on registration, you will need to manually add it to the pricing table field of your checkout forms.', 'wp-ultimo'), + __("You just successfully added a new product to your WP Multisite WaaS network and that's awesome!", 'wp-multisite-waas'), + __('Keep in mind that newly created products do not appear automatically in your checkout forms.', 'wp-multisite-waas'), + __('To make a product available on registration, you will need to manually add it to the pricing table field of your checkout forms.', 'wp-multisite-waas'), ], 'buttons' => [ [ 'classes' => 'button wu-text-xs sm:wu-normal-case wu-float-left', - 'text' => __('Go to Checkout Forms', 'wp-ultimo'), + 'text' => __('Go to Checkout Forms', 'wp-multisite-waas'), 'url' => wu_network_admin_url('wp-ultimo-checkout-forms'), ], ], @@ -153,9 +153,9 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { $custom_fields = [ 're_assignment_product_id' => [ 'type' => 'model', - 'title' => __('Re-assign Memberships to', 'wp-ultimo'), - 'placeholder' => __('Select Product...', 'wp-ultimo'), - 'tooltip' => __('The product you select here will be assigned to all the memberships attached to the product you are deleting.', 'wp-ultimo'), + 'title' => __('Re-assign Memberships to', 'wp-multisite-waas'), + 'placeholder' => __('Select Product...', 'wp-multisite-waas'), + 'tooltip' => __('The product you select here will be assigned to all the memberships attached to the product you are deleting.', 'wp-multisite-waas'), 'html_attr' => [ 'data-model' => 'product', 'data-value-field' => 'id', @@ -225,14 +225,14 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'description', [ - 'title' => __('Description', 'wp-ultimo'), + 'title' => __('Description', 'wp-multisite-waas'), 'position' => 'normal', 'fields' => [ 'description' => [ 'type' => 'textarea', - 'title' => __('Product Description', 'wp-ultimo'), - 'placeholder' => __('Tell your customers what this product is about.', 'wp-ultimo'), - 'tooltip' => __('This description is made available for layouts and can be shown to end customers.', 'wp-ultimo'), + 'title' => __('Product Description', 'wp-multisite-waas'), + 'placeholder' => __('Tell your customers what this product is about.', 'wp-multisite-waas'), + 'tooltip' => __('This description is made available for layouts and can be shown to end customers.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_description(), 'html_attr' => [ 'rows' => 3, @@ -245,7 +245,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { $this->add_tabs_widget( 'product_options', [ - 'title' => __('Product Options', 'wp-ultimo'), + 'title' => __('Product Options', 'wp-multisite-waas'), 'position' => 'normal', 'sections' => $this->get_product_option_sections(), ] @@ -259,7 +259,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'wp-ultimo'), + 'title' => __('Events', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'query_filter'], ] @@ -287,15 +287,15 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { // Fields for price 'pricing_type' => [ 'type' => 'select', - 'title' => __('Pricing Type', 'wp-ultimo'), - 'placeholder' => __('Select Pricing Type', 'wp-ultimo'), - 'desc' => __('Products can be free, paid, or require further contact for pricing.', 'wp-ultimo'), + 'title' => __('Pricing Type', 'wp-multisite-waas'), + 'placeholder' => __('Select Pricing Type', 'wp-multisite-waas'), + 'desc' => __('Products can be free, paid, or require further contact for pricing.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_pricing_type(), 'tooltip' => '', 'options' => [ - 'paid' => __('Paid', 'wp-ultimo'), - 'free' => __('Free', 'wp-ultimo'), - 'contact_us' => __('Contact Us', 'wp-ultimo'), + 'paid' => __('Paid', 'wp-multisite-waas'), + 'free' => __('Free', 'wp-multisite-waas'), + 'contact_us' => __('Contact Us', 'wp-multisite-waas'), ], 'wrapper_html_attr' => [ 'v-cloak' => '1', @@ -306,9 +306,9 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ], 'contact_us_label' => [ 'type' => 'text', - 'title' => __('Button Label', 'wp-ultimo'), - 'placeholder' => __('E.g. Contact us', 'wp-ultimo'), - 'desc' => __('This will be used on the pricing table CTA button, as the label.', 'wp-ultimo'), + 'title' => __('Button Label', 'wp-multisite-waas'), + 'placeholder' => __('E.g. Contact us', 'wp-multisite-waas'), + 'desc' => __('This will be used on the pricing table CTA button, as the label.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_contact_us_label(), 'wrapper_html_attr' => [ 'v-show' => "pricing_type == 'contact_us'", @@ -317,9 +317,9 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ], 'contact_us_link' => [ 'type' => 'url', - 'title' => __('Button Link', 'wp-ultimo'), - 'placeholder' => __('E.g. https://contactus.page.com', 'wp-ultimo'), - 'desc' => __('This will be used on the pricing table CTA button.', 'wp-ultimo'), + 'title' => __('Button Link', 'wp-multisite-waas'), + 'placeholder' => __('E.g. https://contactus.page.com', 'wp-multisite-waas'), + 'desc' => __('This will be used on the pricing table CTA button.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_contact_us_link(), 'wrapper_html_attr' => [ 'v-show' => "pricing_type == 'contact_us'", @@ -328,8 +328,8 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ], 'recurring' => [ 'type' => 'toggle', - 'title' => __('Is Recurring?', 'wp-ultimo'), - 'desc' => __('Check this if this product has a recurring charge.', 'wp-ultimo'), + 'title' => __('Is Recurring?', 'wp-multisite-waas'), + 'desc' => __('Check this if this product has a recurring charge.', 'wp-multisite-waas'), 'value' => $this->get_object()->is_recurring(), 'wrapper_html_attr' => [ 'v-show' => "pricing_type == 'paid'", @@ -347,8 +347,8 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ], '_amount' => [ 'type' => 'text', - 'title' => __('Price', 'wp-ultimo'), - 'placeholder' => __('Price', 'wp-ultimo'), + 'title' => __('Price', 'wp-multisite-waas'), + 'placeholder' => __('Price', 'wp-multisite-waas'), 'value' => $this->get_object()->get_formatted_amount(), 'tooltip' => '', 'money' => true, @@ -363,9 +363,9 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ], 'amount_group' => [ 'type' => 'group', - 'title' => __('Price', 'wp-ultimo'), + 'title' => __('Price', 'wp-multisite-waas'), // translators: placeholder %1$s is the amount, %2$s is the duration (such as 1, 2, 3), and %3$s is the unit (such as month, year, week) - 'desc' => sprintf(__('The customer will be charged %1$s every %2$s %3$s(s).', 'wp-ultimo'), '{{ wu_format_money(amount) }}', '{{ duration }}', '{{ duration_unit }}'), + 'desc' => sprintf(__('The customer will be charged %1$s every %2$s %3$s(s).', 'wp-multisite-waas'), '{{ wu_format_money(amount) }}', '{{ duration }}', '{{ duration_unit }}'), 'tooltip' => '', 'wrapper_html_attr' => [ 'v-show' => "is_recurring && pricing_type == 'paid'", @@ -403,19 +403,19 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { 'v-model' => 'duration_unit', ], 'options' => [ - 'day' => __('Days', 'wp-ultimo'), - 'week' => __('Weeks', 'wp-ultimo'), - 'month' => __('Months', 'wp-ultimo'), - 'year' => __('Years', 'wp-ultimo'), + 'day' => __('Days', 'wp-multisite-waas'), + 'week' => __('Weeks', 'wp-multisite-waas'), + 'month' => __('Months', 'wp-multisite-waas'), + 'year' => __('Years', 'wp-multisite-waas'), ], ], ], ], 'billing_cycles' => [ 'type' => 'number', - 'title' => __('Billing Cycles', 'wp-ultimo'), - 'placeholder' => __('E.g. 1', 'wp-ultimo'), - 'desc' => __('How many times should we bill this customer. Leave 0 to charge until cancelled.', 'wp-ultimo'), + 'title' => __('Billing Cycles', 'wp-multisite-waas'), + 'placeholder' => __('E.g. 1', 'wp-multisite-waas'), + 'desc' => __('How many times should we bill this customer. Leave 0 to charge until cancelled.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_billing_cycles(), 'tooltip' => '', 'wrapper_html_attr' => [ @@ -425,8 +425,8 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ], 'has_trial' => [ 'type' => 'toggle', - 'title' => __('Offer Trial', 'wp-ultimo'), - 'desc' => __('Check if you want to add a trial period to this product.', 'wp-ultimo'), + 'title' => __('Offer Trial', 'wp-multisite-waas'), + 'desc' => __('Check if you want to add a trial period to this product.', 'wp-multisite-waas'), 'value' => $this->get_object()->has_trial(), 'wrapper_html_attr' => [ 'v-show' => "pricing_type == 'paid'", @@ -438,7 +438,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ], 'trial_group' => [ 'type' => 'group', - 'title' => __('Trial', 'wp-ultimo'), + 'title' => __('Trial', 'wp-multisite-waas'), 'tooltip' => '', 'wrapper_html_attr' => [ 'v-show' => "has_trial && pricing_type == 'paid'", @@ -457,18 +457,18 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { 'placeholder' => '', 'wrapper_classes' => 'wu-w-2/3', 'options' => [ - 'day' => __('Days', 'wp-ultimo'), - 'week' => __('Weeks', 'wp-ultimo'), - 'month' => __('Months', 'wp-ultimo'), - 'year' => __('Years', 'wp-ultimo'), + 'day' => __('Days', 'wp-multisite-waas'), + 'week' => __('Weeks', 'wp-multisite-waas'), + 'month' => __('Months', 'wp-multisite-waas'), + 'year' => __('Years', 'wp-multisite-waas'), ], ], ], ], 'has_setup_fee' => [ 'type' => 'toggle', - 'title' => __('Add Setup Fee?', 'wp-ultimo'), - 'desc' => __('Check if you want to add a setup fee.', 'wp-ultimo'), + 'title' => __('Add Setup Fee?', 'wp-multisite-waas'), + 'desc' => __('Check if you want to add a setup fee.', 'wp-multisite-waas'), 'value' => $this->get_object()->has_setup_fee(), 'wrapper_html_attr' => [ 'v-show' => "pricing_type == 'paid'", @@ -487,10 +487,10 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { '_setup_fee' => [ 'type' => 'text', 'money' => true, - 'title' => __('Setup Fee', 'wp-ultimo'), - 'desc' => __('The setup fee will be added to the first charge, in addition to the regular price of the product.', 'wp-ultimo'), + 'title' => __('Setup Fee', 'wp-multisite-waas'), + 'desc' => __('The setup fee will be added to the first charge, in addition to the regular price of the product.', 'wp-multisite-waas'), // translators: %s is a price placeholder value. - 'placeholder' => sprintf(__('E.g. %s', 'wp-ultimo'), wu_format_currency(199)), + 'placeholder' => sprintf(__('E.g. %s', 'wp-multisite-waas'), wu_format_currency(199)), 'value' => $this->get_object()->get_formatted_amount('setup_fee'), 'wrapper_html_attr' => [ 'v-show' => "has_setup_fee && pricing_type == 'paid'", @@ -510,12 +510,12 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'active', [ - 'title' => __('Active', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), 'fields' => [ 'active' => [ 'type' => 'toggle', - 'title' => __('Active', 'wp-ultimo'), - 'desc' => __('Use this option to manually enable or disable this product for new sign-ups.', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), + 'desc' => __('Use this option to manually enable or disable this product for new sign-ups.', 'wp-multisite-waas'), 'value' => $this->get_object()->is_active(), ], ], @@ -525,13 +525,13 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'image', [ - 'title' => __('Product Image', 'wp-ultimo'), + 'title' => __('Product Image', 'wp-multisite-waas'), 'fields' => [ 'featured_image_id' => [ 'type' => 'image', 'stacked' => true, - 'title' => __('Product Image', 'wp-ultimo'), - 'desc' => __('This image is used on product list tables and other places.', 'wp-ultimo'), + 'title' => __('Product Image', 'wp-multisite-waas'), + 'desc' => __('This image is used on product list tables and other places.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_featured_image_id(), 'img' => $this->get_object()->get_featured_image(), ], @@ -570,9 +570,9 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { $fields = [ 'heading' => [ 'type' => 'header', - 'title' => __('Legacy Options', 'wp-ultimo'), + 'title' => __('Legacy Options', 'wp-multisite-waas'), // translators: %s is the name of legacy add-ons. - 'desc' => sprintf(__('Options for %s, and others.', 'wp-ultimo'), implode(', ', $tabs)), + 'desc' => sprintf(__('Options for %s, and others.', 'wp-multisite-waas'), implode(', ', $tabs)), ], ]; @@ -592,7 +592,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'legacy-options', [ - 'title' => __('Legacy Options', 'wp-ultimo'), + 'title' => __('Legacy Options', 'wp-multisite-waas'), 'position' => 'normal', 'fields' => $fields, 'classes' => 'wu-legacy-options-panel', @@ -618,8 +618,8 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { $sections = [ 'general' => [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General product options such as product slug, type, etc.', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General product options such as product slug, type, etc.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-globe', 'state' => [ 'slug' => $this->get_object()->get_slug(), @@ -628,11 +628,11 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'slug' => [ 'type' => 'text', - 'title' => __('Product Slug', 'wp-ultimo'), - 'placeholder' => __('e.g. premium', 'wp-ultimo'), - 'desc' => __('This serves as a id to the product in a number of different contexts.', 'wp-ultimo'), + 'title' => __('Product Slug', 'wp-multisite-waas'), + 'placeholder' => __('e.g. premium', 'wp-multisite-waas'), + 'desc' => __('This serves as a id to the product in a number of different contexts.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_slug(), - 'tooltip' => __('Lowercase alpha-numeric characters with dashes or underlines. No spaces allowed.', 'wp-ultimo'), + 'tooltip' => __('Lowercase alpha-numeric characters with dashes or underlines. No spaces allowed.', 'wp-multisite-waas'), 'html_attr' => [ 'v-on:input' => 'slug = $event.target.value.toLowerCase().replace(/[^a-z0-9-_]+/g, "")', 'v-bind:value' => 'slug', @@ -641,9 +641,9 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { // Fields for price 'type' => [ 'type' => 'select', - 'title' => __('Product Type', 'wp-ultimo'), - 'placeholder' => __('Product Type', 'wp-ultimo'), - 'desc' => __('Different product types have different options.', 'wp-ultimo'), + 'title' => __('Product Type', 'wp-multisite-waas'), + 'placeholder' => __('Product Type', 'wp-multisite-waas'), + 'desc' => __('Different product types have different options.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_type(), 'tooltip' => '', 'options' => Product_Type::to_array(), @@ -652,8 +652,8 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ], ], 'modules[customer_user_role][limit]' => [ - 'title' => __('Customer Role', 'wp-ultimo'), - 'desc' => __('Select the role WP Multisite WaaS should use when adding the user to their newly created site.', 'wp-ultimo'), + 'title' => __('Customer Role', 'wp-multisite-waas'), + 'desc' => __('Select the role WP Multisite WaaS should use when adding the user to their newly created site.', 'wp-multisite-waas'), 'type' => 'select', 'value' => $this->get_object()->get_customer_role(), 'default' => 'administrator', @@ -668,36 +668,36 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ]; $sections['ups-and-downs'] = [ - 'title' => __('Up & Downgrades', 'wp-ultimo'), - 'desc' => __('Settings related to upgrade and downgrade flows.', 'wp-ultimo'), + 'title' => __('Up & Downgrades', 'wp-multisite-waas'), + 'desc' => __('Settings related to upgrade and downgrade flows.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-shop', 'v-show' => 'product_type === "plan"', 'state' => [], 'fields' => [ 'group' => [ - 'title' => __('Plan Group', 'wp-ultimo'), - 'desc' => __('Add related plans to the same group to have them show up as upgrade/downgrade paths.', 'wp-ultimo'), - 'placeholder' => __('Type and press enter to search and/or add.', 'wp-ultimo'), + 'title' => __('Plan Group', 'wp-multisite-waas'), + 'desc' => __('Add related plans to the same group to have them show up as upgrade/downgrade paths.', 'wp-multisite-waas'), + 'placeholder' => __('Type and press enter to search and/or add.', 'wp-multisite-waas'), 'type' => 'select', 'value' => $this->get_object()->get_group(), - 'options' => array_merge(['' => __('Select Group', 'wp-ultimo')], wu_get_product_groups()), + 'options' => array_merge(['' => __('Select Group', 'wp-multisite-waas')], wu_get_product_groups()), 'html_attr' => [ 'data-selectize-categories' => 999, 'data-max-items' => 1, ], ], 'list_order' => [ - 'title' => __('Product Order', 'wp-ultimo'), - 'desc' => __('Plans are shown in the order determined by this parameter, from the lowest to the highest.', 'wp-ultimo'), - 'placeholder' => __('Type and press enter to search and/or add.', 'wp-ultimo'), + 'title' => __('Product Order', 'wp-multisite-waas'), + 'desc' => __('Plans are shown in the order determined by this parameter, from the lowest to the highest.', 'wp-multisite-waas'), + 'placeholder' => __('Type and press enter to search and/or add.', 'wp-multisite-waas'), 'type' => 'number', 'value' => $this->get_object()->get_list_order(), ], 'available_addons' => [ 'type' => 'model', - 'title' => __('Offer Add-ons', 'wp-ultimo'), - 'placeholder' => __('Search for a package or service', 'wp-ultimo'), - 'desc' => __('This products will be offered inside upgrade/downgrade forms as order bumps.', 'wp-ultimo'), + 'title' => __('Offer Add-ons', 'wp-multisite-waas'), + 'placeholder' => __('Search for a package or service', 'wp-multisite-waas'), + 'desc' => __('This products will be offered inside upgrade/downgrade forms as order bumps.', 'wp-multisite-waas'), 'html_attr' => [ 'data-exclude' => implode(',', array_keys(wu_get_plans_as_options())), 'data-model' => 'product', @@ -719,8 +719,8 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ]; $sections['price-variations'] = [ - 'title' => __('Price Variations', 'wp-ultimo'), - 'desc' => __('Discounts for longer membership commitments.', 'wp-ultimo'), + 'title' => __('Price Variations', 'wp-multisite-waas'), + 'desc' => __('Discounts for longer membership commitments.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-price-tag', 'state' => [ 'enable_price_variations' => ! empty($this->get_object()->get_price_variations()), @@ -729,8 +729,8 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'enable_price_variations' => [ 'type' => 'toggle', - 'title' => __('Enable Price Variations', 'wp-ultimo'), - 'desc' => __('Price Variations are an easy way to offer discounted prices for longer subscription commitments.', 'wp-ultimo'), + 'title' => __('Enable Price Variations', 'wp-multisite-waas'), + 'desc' => __('Price Variations are an easy way to offer discounted prices for longer subscription commitments.', 'wp-multisite-waas'), 'value' => false, 'html_attr' => [ 'v-model' => 'enable_price_variations', @@ -739,7 +739,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { 'price_variations' => [ 'type' => 'group', // translators: 1 is the price, 2 is the duration and 3 the duration unit - 'desc' => sprintf(__('A discounted price of %1$s will be used when memberships are created with the recurrence of %2$s %3$s(s) instead of the regular period.', 'wp-ultimo'), '{{ wu_format_money(price_variation.amount) }}', '{{ price_variation.duration }}', '{{ price_variation.duration_unit }}'), + 'desc' => sprintf(__('A discounted price of %1$s will be used when memberships are created with the recurrence of %2$s %3$s(s) instead of the regular period.', 'wp-multisite-waas'), '{{ wu_format_money(price_variation.amount) }}', '{{ price_variation.duration }}', '{{ price_variation.duration_unit }}'), 'tooltip' => '', 'wrapper_classes' => 'wu-relative', 'wrapper_html_attr' => [ @@ -750,12 +750,12 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'price_variations_remove' => [ 'type' => 'note', - 'desc' => sprintf('', __('Remove', 'wp-ultimo')), + 'desc' => sprintf('', __('Remove', 'wp-multisite-waas')), 'wrapper_classes' => 'wu-absolute wu-top-0 wu-right-0', ], 'price_variations_duration' => [ 'type' => 'number', - 'title' => __('Duration', 'wp-ultimo'), + 'title' => __('Duration', 'wp-multisite-waas'), 'placeholder' => '', 'wrapper_classes' => 'wu-w-1/3', 'min' => 1, @@ -767,7 +767,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ], 'price_variations_duration_unit' => [ 'type' => 'select', - 'title' => __('Period', 'wp-ultimo'), + 'title' => __('Period', 'wp-multisite-waas'), 'placeholder' => '', 'wrapper_classes' => 'wu-w-1/3 wu-mx-2', 'html_attr' => [ @@ -775,10 +775,10 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { 'v-bind:name' => '"price_variations[" + index + "][duration_unit]"', ], 'options' => [ - 'day' => __('Days', 'wp-ultimo'), - 'week' => __('Weeks', 'wp-ultimo'), - 'month' => __('Months', 'wp-ultimo'), - 'year' => __('Years', 'wp-ultimo'), + 'day' => __('Days', 'wp-multisite-waas'), + 'week' => __('Weeks', 'wp-multisite-waas'), + 'month' => __('Months', 'wp-multisite-waas'), + 'year' => __('Years', 'wp-multisite-waas'), ], ], // Bind the amount of the price variation to another field so we don't send the formatted value to the server. @@ -791,7 +791,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ], '_price_variations_amount' => [ 'type' => 'text', - 'title' => __('New Price', 'wp-ultimo'), + 'title' => __('New Price', 'wp-multisite-waas'), 'placeholder' => wu_format_currency('99'), 'wrapper_classes' => 'wu-w-1/3', 'money' => true, @@ -804,7 +804,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ], 'repeat' => [ 'type' => 'submit', - 'title' => __('Add new Price Variation', 'wp-ultimo'), + 'title' => __('Add new Price Variation', 'wp-multisite-waas'), 'classes' => 'button wu-self-end', 'wrapper_classes' => 'wu-bg-whiten wu-items-end', 'wrapper_html_attr' => [ @@ -823,8 +823,8 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ]; $sections['taxes'] = [ - 'title' => __('Taxes', 'wp-ultimo'), - 'desc' => __('Tax settings for your products.', 'wp-ultimo'), + 'title' => __('Taxes', 'wp-multisite-waas'), + 'desc' => __('Tax settings for your products.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-credit', 'state' => [ 'taxable' => $this->get_object()->is_taxable(), @@ -832,8 +832,8 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'taxable' => [ 'type' => 'toggle', - 'title' => __('Is Taxable?', 'wp-ultimo'), - 'desc' => __('Enable this if you plan to collect taxes for this product.', 'wp-ultimo'), + 'title' => __('Is Taxable?', 'wp-multisite-waas'), + 'desc' => __('Enable this if you plan to collect taxes for this product.', 'wp-multisite-waas'), 'value' => $this->get_object()->is_taxable(), 'html_attr' => [ 'v-model' => 'taxable', @@ -841,8 +841,8 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ], 'tax_category' => [ 'type' => 'select', - 'title' => __('Tax Category', 'wp-ultimo'), - 'desc' => __('Select the product tax category.', 'wp-ultimo'), + 'title' => __('Tax Category', 'wp-multisite-waas'), + 'desc' => __('Select the product tax category.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_tax_category(), 'options' => 'wu_get_tax_categories_as_options', 'wrapper_html_attr' => [ @@ -854,8 +854,8 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ]; $sections['allowed_templates'] = [ - 'title' => __('Site Templates', 'wp-ultimo'), - 'desc' => __('Limit which site templates are available for this particular template.', 'wp-ultimo'), + 'title' => __('Site Templates', 'wp-multisite-waas'), + 'desc' => __('Limit which site templates are available for this particular template.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-grid1 wu-align-text-bottom', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'state' => [ @@ -866,8 +866,8 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'modules[site_templates][enabled]' => [ 'type' => 'toggle', - 'title' => __('Allow Site Templates', 'wp-ultimo'), - 'desc' => __('Toggle this option on to allow this plan to use Site Templates. If this option is disabled, sign-ups on this plan will get a default WordPress site.', 'wp-ultimo'), + 'title' => __('Allow Site Templates', 'wp-multisite-waas'), + 'desc' => __('Toggle this option on to allow this plan to use Site Templates. If this option is disabled, sign-ups on this plan will get a default WordPress site.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-cloak' => '1', ], @@ -877,15 +877,15 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ], 'modules[site_templates][mode]' => [ 'type' => 'select', - 'title' => __('Site Template Selection Mode', 'wp-ultimo'), - 'placeholder' => __('Site Template Selection Mode', 'wp-ultimo'), - 'desc' => __('Select the type of limitation you want to apply.', 'wp-ultimo'), - 'tooltip' => __('"Default" will follow the settings of the checkout form: if you have a template selection field in there, all the templates selected will show up. If no field is present, then a default WordPress site will be created.

"Assign Site Template" forces new accounts with this plan to use a particular template site (this option removes the template selection field from the signup, if one exists).

Finally, "Choose Available Site Templates", overrides the templates selected on the checkout form with the templates selected here, while also giving you the chance of pre-select a template to be used as default.', 'wp-ultimo'), + 'title' => __('Site Template Selection Mode', 'wp-multisite-waas'), + 'placeholder' => __('Site Template Selection Mode', 'wp-multisite-waas'), + 'desc' => __('Select the type of limitation you want to apply.', 'wp-multisite-waas'), + 'tooltip' => __('"Default" will follow the settings of the checkout form: if you have a template selection field in there, all the templates selected will show up. If no field is present, then a default WordPress site will be created.

"Assign Site Template" forces new accounts with this plan to use a particular template site (this option removes the template selection field from the signup, if one exists).

Finally, "Choose Available Site Templates", overrides the templates selected on the checkout form with the templates selected here, while also giving you the chance of pre-select a template to be used as default.', 'wp-multisite-waas'), 'value' => 'default', 'options' => [ - 'default' => __('Default', 'wp-ultimo'), - 'assign_template' => __('Assign Site Template', 'wp-ultimo'), - 'choose_available_templates' => __('Choose Available Site Templates', 'wp-ultimo'), + 'default' => __('Default', 'wp-multisite-waas'), + 'assign_template' => __('Assign Site Template', 'wp-multisite-waas'), + 'choose_available_templates' => __('Choose Available Site Templates', 'wp-multisite-waas'), ], 'html_attr' => [ 'v-model' => 'site_template_selection_mode', @@ -897,8 +897,8 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { ], 'templates' => [ 'type' => 'html', - 'title' => __('Site Templates', 'wp-ultimo'), - 'desc' => esc_attr(sprintf('{{ site_template_selection_mode === "assign_template" ? "%s" : "%s" }}', __('Select the Site Template to assign.', 'wp-ultimo'), __('Customize the access level of each Site Template below.', 'wp-ultimo'))), + 'title' => __('Site Templates', 'wp-multisite-waas'), + 'desc' => esc_attr(sprintf('{{ site_template_selection_mode === "assign_template" ? "%s" : "%s" }}', __('Select the Site Template to assign.', 'wp-multisite-waas'), __('Customize the access level of each Site Template below.', 'wp-multisite-waas'))), 'wrapper_html_attr' => [ 'v-cloak' => '1', 'v-show' => "allow_site_templates && site_template_selection_mode !== 'default'", @@ -940,7 +940,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_title() { - return $this->edit ? __('Edit Product', 'wp-ultimo') : __('Add new Product', 'wp-ultimo'); + return $this->edit ? __('Edit Product', 'wp-multisite-waas') : __('Add new Product', 'wp-multisite-waas'); } /** @@ -951,7 +951,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_menu_title() { - return __('Edit Product', 'wp-ultimo'); + return __('Edit Product', 'wp-multisite-waas'); } /** @@ -969,7 +969,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { $actions[] = [ 'url' => '#', - 'label' => __('Click to copy Shareable Link', 'wp-ultimo'), + 'label' => __('Click to copy Shareable Link', 'wp-multisite-waas'), 'icon' => 'wu-attachment', 'classes' => 'wu-copy', 'attrs' => 'data-clipboard-text="' . esc_attr($shareable_link) . '"', @@ -988,15 +988,15 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page { public function get_labels() { return [ - 'edit_label' => __('Edit Product', 'wp-ultimo'), - 'add_new_label' => __('Add new Product', 'wp-ultimo'), - 'updated_message' => __('Product updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Product Name', 'wp-ultimo'), - 'title_description' => __('This name will be used on pricing tables, invoices, and more.', 'wp-ultimo'), - 'save_button_label' => __('Save Product', 'wp-ultimo'), + 'edit_label' => __('Edit Product', 'wp-multisite-waas'), + 'add_new_label' => __('Add new Product', 'wp-multisite-waas'), + 'updated_message' => __('Product updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Product Name', 'wp-multisite-waas'), + 'title_description' => __('This name will be used on pricing tables, invoices, and more.', 'wp-multisite-waas'), + 'save_button_label' => __('Save Product', 'wp-multisite-waas'), 'save_description' => '', - 'delete_button_label' => __('Delete Product', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'delete_button_label' => __('Delete Product', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; } diff --git a/inc/admin-pages/class-product-list-admin-page.php b/inc/admin-pages/class-product-list-admin-page.php index 72d1ef3..9bbf96f 100644 --- a/inc/admin-pages/class-product-list-admin-page.php +++ b/inc/admin-pages/class-product-list-admin-page.php @@ -71,8 +71,8 @@ class Product_List_Admin_Page extends List_Admin_Page { public function get_labels() { return [ - 'deleted_message' => __('Product removed successfully.', 'wp-ultimo'), - 'search_label' => __('Search Product', 'wp-ultimo'), + 'deleted_message' => __('Product removed successfully.', 'wp-multisite-waas'), + 'search_label' => __('Search Product', 'wp-multisite-waas'), ]; } @@ -84,7 +84,7 @@ class Product_List_Admin_Page extends List_Admin_Page { */ public function get_title() { - return __('Products', 'wp-ultimo'); + return __('Products', 'wp-multisite-waas'); } /** @@ -95,7 +95,7 @@ class Product_List_Admin_Page extends List_Admin_Page { */ public function get_menu_title() { - return __('Products', 'wp-ultimo'); + return __('Products', 'wp-multisite-waas'); } /** @@ -106,7 +106,7 @@ class Product_List_Admin_Page extends List_Admin_Page { */ public function get_submenu_title() { - return __('Products', 'wp-ultimo'); + return __('Products', 'wp-multisite-waas'); } /** diff --git a/inc/admin-pages/class-settings-admin-page.php b/inc/admin-pages/class-settings-admin-page.php index b89bae6..45815f5 100644 --- a/inc/admin-pages/class-settings-admin-page.php +++ b/inc/admin-pages/class-settings-admin-page.php @@ -137,7 +137,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { wu_register_settings_side_panel( 'login-and-registration', [ - 'title' => __('Checkout Forms', 'wp-ultimo'), + 'title' => __('Checkout Forms', 'wp-multisite-waas'), 'render' => [$this, 'render_checkout_forms_side_panel'], ] ); @@ -145,7 +145,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { wu_register_settings_side_panel( 'sites', [ - 'title' => __('Template Previewer', 'wp-ultimo'), + 'title' => __('Template Previewer', 'wp-multisite-waas'), 'render' => [$this, 'render_site_template_side_panel'], ] ); @@ -153,7 +153,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { wu_register_settings_side_panel( 'sites', [ - 'title' => __('Placeholder Editor', 'wp-ultimo'), + 'title' => __('Placeholder Editor', 'wp-multisite-waas'), 'render' => [$this, 'render_site_placeholders_side_panel'], ] ); @@ -161,7 +161,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { wu_register_settings_side_panel( 'payment-gateways', [ - 'title' => __('Invoices', 'wp-ultimo'), + 'title' => __('Invoices', 'wp-multisite-waas'), 'render' => [$this, 'render_invoice_side_panel'], ] ); @@ -169,7 +169,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { wu_register_settings_side_panel( 'emails', [ - 'title' => __('System Emails', 'wp-ultimo'), + 'title' => __('System Emails', 'wp-multisite-waas'), 'render' => [$this, 'render_system_emails_side_panel'], ] ); @@ -177,7 +177,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { wu_register_settings_side_panel( 'emails', [ - 'title' => __('Email Template', 'wp-ultimo'), + 'title' => __('Email Template', 'wp-multisite-waas'), 'render' => [$this, 'render_email_template_side_panel'], ] ); @@ -197,15 +197,15 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
- +
- <?php esc_attr_e('Checkout Forms', 'wp-ultimo'); ?> + <?php esc_attr_e('Checkout Forms', 'wp-multisite-waas'); ?>

- +

@@ -214,7 +214,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { @@ -240,15 +240,15 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
- +
- <?php esc_attr_e('Customize the Template Previewer', 'wp-ultimo'); ?> + <?php esc_attr_e('Customize the Template Previewer', 'wp-multisite-waas'); ?>

- +

@@ -257,7 +257,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { @@ -283,15 +283,15 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
- +
- <?php esc_attr_e('Customize the Template Placeholders', 'wp-ultimo'); ?> + <?php esc_attr_e('Customize the Template Placeholders', 'wp-multisite-waas'); ?>

- +

@@ -300,7 +300,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { @@ -326,15 +326,15 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
- +
- <?php esc_attr_e('Customize the Invoice Template', 'wp-ultimo'); ?> + <?php esc_attr_e('Customize the Invoice Template', 'wp-multisite-waas'); ?>

- +

@@ -343,7 +343,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { @@ -369,15 +369,15 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
- +
- <?php esc_attr_e('Customize System Emails', 'wp-ultimo'); ?> + <?php esc_attr_e('Customize System Emails', 'wp-multisite-waas'); ?>

- +

@@ -386,7 +386,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { @@ -412,15 +412,15 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
- +
- <?php esc_attr_e('Customize Email Template', 'wp-ultimo'); ?> + <?php esc_attr_e('Customize Email Template', 'wp-multisite-waas'); ?>

- +

@@ -429,7 +429,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { @@ -450,7 +450,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { */ public function get_title() { - return __('Settings', 'wp-ultimo'); + return __('Settings', 'wp-multisite-waas'); } /** @@ -461,7 +461,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { */ public function get_menu_title() { - return __('Settings', 'wp-ultimo'); + return __('Settings', 'wp-multisite-waas'); } /** @@ -517,7 +517,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { public function default_handler(): void { if ( ! current_user_can('wu_edit_settings')) { - wp_die(__('You do not have the permissions required to change settings.', 'wp-ultimo')); + wp_die(__('You do not have the permissions required to change settings.', 'wp-multisite-waas')); } if ( ! isset($_POST['active_gateways']) && 'payment-gateways' === wu_request('tab')) { @@ -554,7 +554,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page { */ $fields['save'] = [ 'type' => 'submit', - 'title' => __('Save Settings', 'wp-ultimo'), + 'title' => __('Save Settings', 'wp-multisite-waas'), 'classes' => 'button button-primary button-large wu-ml-auto wu-w-full md:wu-w-auto', 'wrapper_classes' => 'wu-sticky wu-bottom-0 wu-save-button wu-mr-px wu-w-full md:wu-w-auto', 'html_attr' => [ diff --git a/inc/admin-pages/class-setup-wizard-admin-page.php b/inc/admin-pages/class-setup-wizard-admin-page.php index 2919968..51e61a1 100644 --- a/inc/admin-pages/class-setup-wizard-admin-page.php +++ b/inc/admin-pages/class-setup-wizard-admin-page.php @@ -236,7 +236,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { global $wpdb; if ( ! current_user_can('manage_network')) { - wp_send_json_error(new \WP_Error('not-allowed', __('Permission denied.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-allowed', __('Permission denied.', 'wp-multisite-waas'))); exit; } @@ -290,7 +290,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { */ public function get_title(): string { - return sprintf(__('Installation', 'wp-ultimo')); + return sprintf(__('Installation', 'wp-multisite-waas')); } /** @@ -301,7 +301,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { */ public function get_menu_title() { - return WP_Ultimo()->is_loaded() ? __('WP Multisite WaaS Install', 'wp-ultimo') : __('WP Multisite WaaS', 'wp-ultimo'); + return WP_Ultimo()->is_loaded() ? __('WP Multisite WaaS Install', 'wp-multisite-waas') : __('WP Multisite WaaS', 'wp-multisite-waas'); } /** @@ -314,22 +314,22 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { $sections = [ 'welcome' => [ - 'title' => __('Welcome', 'wp-ultimo'), + 'title' => __('Welcome', 'wp-multisite-waas'), 'description' => implode( '

', [ - __('...and thanks for choosing WP Multisite WaaS!', 'wp-ultimo'), - __('This quick setup wizard will make sure your server is correctly setup, help you configure your new network, and migrate data from previous WP Multisite WaaS versions if necessary.', 'wp-ultimo'), - __('You will also have the option of importing default content. It should take 10 minutes or less!', 'wp-ultimo'), + __('...and thanks for choosing WP Multisite WaaS!', 'wp-multisite-waas'), + __('This quick setup wizard will make sure your server is correctly setup, help you configure your new network, and migrate data from previous WP Multisite WaaS versions if necessary.', 'wp-multisite-waas'), + __('You will also have the option of importing default content. It should take 10 minutes or less!', 'wp-multisite-waas'), ] ), - 'next_label' => __('Get Started →', 'wp-ultimo'), + 'next_label' => __('Get Started →', 'wp-multisite-waas'), 'back' => false, ], 'checks' => [ - 'title' => __('Pre-install Checks', 'wp-ultimo'), - 'description' => __('Now it is time to see if this machine has what it takes to run WP Multisite WaaS well!', 'wp-ultimo'), - 'next_label' => \WP_Ultimo\Requirements::met() ? __('Go to the Next Step →', 'wp-ultimo') : __('Check Again', 'wp-ultimo'), + 'title' => __('Pre-install Checks', 'wp-multisite-waas'), + 'description' => __('Now it is time to see if this machine has what it takes to run WP Multisite WaaS well!', 'wp-multisite-waas'), + 'next_label' => \WP_Ultimo\Requirements::met() ? __('Go to the Next Step →', 'wp-multisite-waas') : __('Check Again', 'wp-multisite-waas'), 'handler' => [$this, 'handle_checks'], 'back' => false, 'fields' => [ @@ -340,9 +340,9 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { ], ], 'installation' => [ - 'title' => __('Installation', 'wp-ultimo'), - 'description' => __('Now, let\'s update your database and install the Sunrise.php file, which are necessary for the correct functioning of WP Multisite WaaS.', 'wp-ultimo'), - 'next_label' => Core_Installer::get_instance()->all_done() ? __('Go to the Next Step →', 'wp-ultimo') : __('Install', 'wp-ultimo'), + 'title' => __('Installation', 'wp-multisite-waas'), + 'description' => __('Now, let\'s update your database and install the Sunrise.php file, which are necessary for the correct functioning of WP Multisite WaaS.', 'wp-multisite-waas'), + 'next_label' => Core_Installer::get_instance()->all_done() ? __('Go to the Next Step →', 'wp-multisite-waas') : __('Install', 'wp-multisite-waas'), 'fields' => [ 'terms' => [ 'type' => 'note', @@ -364,14 +364,14 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { $back_traces = Migrator::get_instance()->get_back_traces(); - $next_label = __('Migrate!', 'wp-ultimo'); + $next_label = __('Migrate!', 'wp-multisite-waas'); - $description = __('No errors found during dry run! Now it is time to actually migrate!

We strongly recommend creating a backup of your database before moving forward with the migration.', 'wp-ultimo'); + $description = __('No errors found during dry run! Now it is time to actually migrate!

We strongly recommend creating a backup of your database before moving forward with the migration.', 'wp-multisite-waas'); if ($dry_run) { - $next_label = __('Run Check', 'wp-ultimo'); + $next_label = __('Run Check', 'wp-multisite-waas'); - $description = __('It seems that you were running WP Multisite WaaS 1.X on this network. This migrator will convert the data from the old version to the new one.', 'wp-ultimo') . '

' . __('First, let\'s run a test migration to see if we can spot any potential errors.', 'wp-ultimo'); + $description = __('It seems that you were running WP Multisite WaaS 1.X on this network. This migrator will convert the data from the old version to the new one.', 'wp-multisite-waas') . '

' . __('First, let\'s run a test migration to see if we can spot any potential errors.', 'wp-multisite-waas'); } $fields = [ @@ -398,17 +398,17 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { $message = implode(PHP_EOL . PHP_EOL, $message_lines); - $description = __('The dry run test detected issues during the test migration. Please, contact our support team to get help migrating from 1.X to version 2.', 'wp-ultimo'); + $description = __('The dry run test detected issues during the test migration. Please, contact our support team to get help migrating from 1.X to version 2.', 'wp-multisite-waas'); $next = true; - $next_label = __('Try Again!', 'wp-ultimo'); + $next_label = __('Try Again!', 'wp-multisite-waas'); - $error_list = '' . __('List of errors detected:', 'wp-ultimo') . '

'; + $error_list = '' . __('List of errors detected:', 'wp-multisite-waas') . '

'; $errors[] = sprintf( '
%1$s', - __('Download migration error log', 'wp-ultimo'), + __('Download migration error log', 'wp-multisite-waas'), add_query_arg( [ 'action' => 'download_migration_logs', @@ -420,7 +420,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { $errors[] = sprintf( '
%1$s', - __('Rollback to version 1.10.13', 'wp-ultimo'), + __('Rollback to version 1.10.13', 'wp-multisite-waas'), add_query_arg( [ 'page' => 'wp-ultimo-rollback', @@ -452,7 +452,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { } $sections['migration'] = [ - 'title' => __('Migration', 'wp-ultimo'), + 'title' => __('Migration', 'wp-multisite-waas'), 'description' => $description, 'next_label' => $next_label, 'skip' => false, @@ -462,16 +462,16 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { ]; } else { $sections['your-company'] = [ - 'title' => __('Your Company', 'wp-ultimo'), - 'description' => __('Before we move on, let\'s configure the basic settings of your network, shall we?', 'wp-ultimo'), + 'title' => __('Your Company', 'wp-multisite-waas'), + 'description' => __('Before we move on, let\'s configure the basic settings of your network, shall we?', 'wp-multisite-waas'), 'handler' => [$this, 'handle_save_settings'], 'fields' => [$this, 'get_general_settings'], ]; $sections['defaults'] = [ - 'title' => __('Default Content', 'wp-ultimo'), - 'description' => __('Starting from scratch can be scarry, specially when first starting out. In this step, you can create default content to have a starting point for your network. Everything can be customized later.', 'wp-ultimo'), - 'next_label' => Default_Content_Installer::get_instance()->all_done() ? __('Go to the Next Step →', 'wp-ultimo') : __('Install', 'wp-ultimo'), + 'title' => __('Default Content', 'wp-multisite-waas'), + 'description' => __('Starting from scratch can be scarry, specially when first starting out. In this step, you can create default content to have a starting point for your network. Everything can be customized later.', 'wp-multisite-waas'), + 'next_label' => Default_Content_Installer::get_instance()->all_done() ? __('Go to the Next Step →', 'wp-multisite-waas') : __('Install', 'wp-multisite-waas'), 'fields' => [ 'terms' => [ 'type' => 'note', @@ -482,7 +482,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { } $sections['done'] = [ - 'title' => __('Ready!', 'wp-ultimo'), + 'title' => __('Ready!', 'wp-multisite-waas'), 'view' => [$this, 'section_ready'], ]; @@ -580,7 +580,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { 'wu_setup_settings', [ 'dry_run' => wu_request('dry-run', true), - 'generic_error_message' => __('A server error happened while processing this item.', 'wp-ultimo'), + 'generic_error_message' => __('A server error happened while processing this item.', 'wp-multisite-waas'), ] ); @@ -619,7 +619,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { $requirements = [ 'php' => [ - 'name' => __('PHP', 'wp-ultimo'), + 'name' => __('PHP', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('wp-ultimo-requirements'), 'required_version' => \WP_Ultimo\Requirements::$php_version, 'recommended_version' => \WP_Ultimo\Requirements::$php_recommended_version, @@ -628,7 +628,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { 'pass_recommendation' => version_compare(phpversion(), \WP_Ultimo\Requirements::$php_recommended_version, '>='), ], 'wordpress' => [ - 'name' => __('WordPress', 'wp-ultimo'), + 'name' => __('WordPress', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('wp-ultimo-requirements'), 'required_version' => \WP_Ultimo\Requirements::$wp_version, 'recommended_version' => \WP_Ultimo\Requirements::$wp_recommended_version, @@ -640,21 +640,21 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { $plugin_requirements = [ 'multisite' => [ - 'name' => __('WordPress Multisite', 'wp-ultimo'), + 'name' => __('WordPress Multisite', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('wp-ultimo-requirements'), - 'condition' => __('Installed & Activated', 'wp-ultimo'), + 'condition' => __('Installed & Activated', 'wp-multisite-waas'), 'pass_requirements' => is_multisite(), ], 'wp-ultimo' => [ - 'name' => __('WP Multisite WaaS', 'wp-ultimo'), + 'name' => __('WP Multisite WaaS', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('wp-ultimo-requirements'), - 'condition' => apply_filters('wp_ultimo_skip_network_active_check', false) ? __('Bypassed via filter', 'wp-ultimo') : __('Network Activated', 'wp-ultimo'), + 'condition' => apply_filters('wp_ultimo_skip_network_active_check', false) ? __('Bypassed via filter', 'wp-multisite-waas') : __('Network Activated', 'wp-multisite-waas'), 'pass_requirements' => \WP_Ultimo\Requirements::is_network_active(), ], 'wp-cron' => [ - 'name' => __('WordPress Cron', 'wp-ultimo'), + 'name' => __('WordPress Cron', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('wp-ultimo-requirements'), - 'condition' => __('Activated', 'wp-ultimo'), + 'condition' => __('Activated', 'wp-multisite-waas'), 'pass_requirements' => \WP_Ultimo\Requirements::check_wp_cron(), ], ]; @@ -850,8 +850,8 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page { 'wu_fields', [ 'l10n' => [ - 'image_picker_title' => __('Select an Image.', 'wp-ultimo'), - 'image_picker_button_text' => __('Use this image', 'wp-ultimo'), + 'image_picker_title' => __('Select an Image.', 'wp-multisite-waas'), + 'image_picker_button_text' => __('Use this image', 'wp-multisite-waas'), ], ] ); diff --git a/inc/admin-pages/class-shortcodes-admin-page.php b/inc/admin-pages/class-shortcodes-admin-page.php index daa7b67..1f0e83a 100644 --- a/inc/admin-pages/class-shortcodes-admin-page.php +++ b/inc/admin-pages/class-shortcodes-admin-page.php @@ -91,7 +91,7 @@ class Shortcodes_Admin_Page extends Base_Admin_Page { */ public function get_title() { - return __('Available Shortcodes', 'wp-ultimo'); + return __('Available Shortcodes', 'wp-multisite-waas'); } /** @@ -102,7 +102,7 @@ class Shortcodes_Admin_Page extends Base_Admin_Page { */ public function get_menu_title() { - return __('Available Shortcodes', 'wp-ultimo'); + return __('Available Shortcodes', 'wp-multisite-waas'); } /** @@ -113,7 +113,7 @@ class Shortcodes_Admin_Page extends Base_Admin_Page { */ public function get_submenu_title() { - return __('Dashboard', 'wp-ultimo'); + return __('Dashboard', 'wp-multisite-waas'); } /** @@ -165,16 +165,16 @@ class Shortcodes_Admin_Page extends Base_Admin_Page { $params[ $key ]['options'] = implode(' | ', array_keys(wu_get_isset($value, 'options', []))); break; case 'int': - $params[ $key ]['options'] = __('integer', 'wp-ultimo'); + $params[ $key ]['options'] = __('integer', 'wp-multisite-waas'); break; case 'number': - $params[ $key ]['options'] = __('number', 'wp-ultimo'); + $params[ $key ]['options'] = __('number', 'wp-multisite-waas'); break; case 'text': - $params[ $key ]['options'] = __('text', 'wp-ultimo'); + $params[ $key ]['options'] = __('text', 'wp-multisite-waas'); break; case 'textarea': - $params[ $key ]['options'] = __('text', 'wp-ultimo'); + $params[ $key ]['options'] = __('text', 'wp-multisite-waas'); break; default: $params[ $key ]['options'] = $value['type']; diff --git a/inc/admin-pages/class-site-edit-admin-page.php b/inc/admin-pages/class-site-edit-admin-page.php index 07fc2fd..976fd35 100644 --- a/inc/admin-pages/class-site-edit-admin-page.php +++ b/inc/admin-pages/class-site-edit-admin-page.php @@ -151,16 +151,16 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { [ [ 'id' => 'new-site-template-warning', - 'title' => __('On adding a new Site Template...', 'wp-ultimo'), + 'title' => __('On adding a new Site Template...', 'wp-multisite-waas'), 'text' => [ - __("You just successfully added a new site template to your WP Multisite WaaS network and that's awesome!", 'wp-ultimo'), - __('Keep in mind that newly created site templates do not appear automatically in your checkout forms.', 'wp-ultimo'), - __('To make a site template available on registration, you will need to manually add it to the template selection field of your checkout forms.', 'wp-ultimo'), + __("You just successfully added a new site template to your WP Multisite WaaS network and that's awesome!", 'wp-multisite-waas'), + __('Keep in mind that newly created site templates do not appear automatically in your checkout forms.', 'wp-multisite-waas'), + __('To make a site template available on registration, you will need to manually add it to the template selection field of your checkout forms.', 'wp-multisite-waas'), ], 'buttons' => [ [ 'classes' => 'button wu-text-xs sm:wu-normal-case wu-float-left', - 'text' => __('Go to Checkout Forms', 'wp-ultimo'), + 'text' => __('Go to Checkout Forms', 'wp-multisite-waas'), 'url' => wu_network_admin_url('wp-ultimo-checkout-forms'), ], ], @@ -191,16 +191,16 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Transfer', 'wp-ultimo'), - 'desc' => __('This will start the transfer of assets from one membership to another.', 'wp-ultimo'), + 'title' => __('Confirm Transfer', 'wp-multisite-waas'), + 'desc' => __('This will start the transfer of assets from one membership to another.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Start Transfer', 'wp-ultimo'), - 'placeholder' => __('Start Transfer', 'wp-ultimo'), + 'title' => __('Start Transfer', 'wp-multisite-waas'), + 'placeholder' => __('Start Transfer', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -254,11 +254,11 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { $target_membership = wu_get_membership(wu_request('target_membership_id')); if ( ! $site) { - wp_send_json_error(new \WP_Error('not-found', __('Site not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('Site not found.', 'wp-multisite-waas'))); } if ( ! $target_membership) { - wp_send_json_error(new \WP_Error('not-found', __('Membership not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('Membership not found.', 'wp-multisite-waas'))); } $site->set_membership_id($target_membership->get_id()); @@ -305,7 +305,7 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'at_a_glance', [ - 'title' => __('At a Glance', 'wp-ultimo'), + 'title' => __('At a Glance', 'wp-multisite-waas'), 'position' => 'normal', 'classes' => 'wu-overflow-hidden wu-m-0 wu--mt-1 wu--mx-3 wu--mb-3', 'field_wrapper_classes' => 'wu-w-1/4 wu-box-border wu-items-center wu-flex wu-justify-between wu-p-4 wu-m-0 wu-border-t-0 wu-border-l-0 wu-border-r wu-border-b-0 wu-border-gray-300 wu-border-solid wu-float-left wu-relative', @@ -315,14 +315,14 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'type' => [ 'type' => 'text-display', - 'title' => __('Site Type', 'wp-ultimo'), + 'title' => __('Site Type', 'wp-multisite-waas'), 'display_value' => $tag, 'tooltip' => '', ], 'id' => [ 'type' => 'text-display', 'copy' => true, - 'title' => __('Site ID', 'wp-ultimo'), + 'title' => __('Site ID', 'wp-multisite-waas'), 'display_value' => $this->get_object()->get_id(), 'tooltip' => '', ], @@ -333,13 +333,13 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'description', [ - 'title' => __('Description', 'wp-ultimo'), + 'title' => __('Description', 'wp-multisite-waas'), 'position' => 'normal', 'fields' => [ 'description' => [ 'type' => 'textarea', - 'title' => __('Site Description', 'wp-ultimo'), - 'placeholder' => __('Tell your customers what this site is about.', 'wp-ultimo'), + 'title' => __('Site Description', 'wp-multisite-waas'), + 'placeholder' => __('Tell your customers what this site is about.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_option_blogdescription(), 'html_attr' => [ 'rows' => 3, @@ -352,7 +352,7 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { $this->add_tabs_widget( 'options', [ - 'title' => __('Site Options', 'wp-ultimo'), + 'title' => __('Site Options', 'wp-multisite-waas'), 'position' => 'normal', 'sections' => $this->get_site_option_sections(), ] @@ -361,7 +361,7 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'domains', [ - 'title' => __('Mapped Domains', 'wp-ultimo'), + 'title' => __('Mapped Domains', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Sites_Domain_List_Table(), 'query_filter' => [$this, 'domain_query_filter'], ] @@ -371,7 +371,7 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'membership', [ - 'title' => __('Linked Membership', 'wp-ultimo'), + 'title' => __('Linked Membership', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Customers_Membership_List_Table(), 'query_filter' => function ($query) { @@ -385,7 +385,7 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'customer', [ - 'title' => __('Linked Customer', 'wp-ultimo'), + 'title' => __('Linked Customer', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Site_Customer_List_Table(), 'query_filter' => function ($query) { @@ -400,7 +400,7 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'wp-ultimo'), + 'title' => __('Events', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'query_filter'], ] @@ -426,9 +426,9 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { // Fields for price 'type_main' => [ 'type' => 'text-display', - 'title' => __('Site Type', 'wp-ultimo'), - 'display_value' => __('Main Site', 'wp-ultimo'), - 'tooltip' => __('You can\'t change the main site type.', 'wp-ultimo'), + 'title' => __('Site Type', 'wp-multisite-waas'), + 'display_value' => __('Main Site', 'wp-multisite-waas'), + 'tooltip' => __('You can\'t change the main site type.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-cloak' => '1', 'v-show' => 'type === "main"', @@ -436,15 +436,15 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { ], 'type' => [ 'type' => 'select', - 'title' => __('Site Type', 'wp-ultimo'), - 'placeholder' => __('Select Site Type', 'wp-ultimo'), - 'desc' => __('Different site types have different options and settings.', 'wp-ultimo'), + 'title' => __('Site Type', 'wp-multisite-waas'), + 'placeholder' => __('Select Site Type', 'wp-multisite-waas'), + 'desc' => __('Different site types have different options and settings.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_type(), 'tooltip' => '', 'options' => [ - 'default' => __('Regular WordPress', 'wp-ultimo'), - 'site_template' => __('Site Template', 'wp-ultimo'), - 'customer_owned' => __('Customer-owned', 'wp-ultimo'), + 'default' => __('Regular WordPress', 'wp-multisite-waas'), + 'site_template' => __('Site Template', 'wp-multisite-waas'), + 'customer_owned' => __('Customer-owned', 'wp-multisite-waas'), ], 'html_attr' => [ 'v-model' => 'type', @@ -456,9 +456,9 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { ], 'categories' => [ 'type' => 'select', - 'title' => __('Template Categories', 'wp-ultimo'), - 'placeholder' => __('e.g.: Landing Page, Health...', 'wp-ultimo'), - 'desc' => __('Customers will be able to filter by categories during signup.', 'wp-ultimo'), + 'title' => __('Template Categories', 'wp-multisite-waas'), + 'placeholder' => __('e.g.: Landing Page, Health...', 'wp-multisite-waas'), + 'desc' => __('Customers will be able to filter by categories during signup.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_categories(), 'options' => Site::get_all_categories(), 'html_attr' => [ @@ -472,9 +472,9 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { ], 'membership_id' => [ 'type' => 'model', - 'title' => __('Associated Membership', 'wp-ultimo'), - 'placeholder' => __('Search Membership...', 'wp-ultimo'), - 'desc' => __('The membership that owns this site.', 'wp-ultimo'), + 'title' => __('Associated Membership', 'wp-multisite-waas'), + 'placeholder' => __('Search Membership...', 'wp-multisite-waas'), + 'desc' => __('The membership that owns this site.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_membership_id(), 'tooltip' => '', 'wrapper_html_attr' => [ @@ -492,7 +492,7 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { ], 'transfer_note' => [ 'type' => 'note', - 'desc' => __('Changing the membership will transfer the site and all its assets to the new membership.', 'wp-ultimo'), + 'desc' => __('Changing the membership will transfer the site and all its assets to the new membership.', 'wp-multisite-waas'), 'classes' => 'wu-p-2 wu-bg-red-100 wu-text-red-600 wu-rounded wu-w-full', 'wrapper_html_attr' => [ 'v-show' => '(original_membership_id != membership_id) && membership_id', @@ -501,8 +501,8 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { ], 'submit_save' => [ 'type' => 'submit', - 'title' => __('Save Site', 'wp-ultimo'), - 'placeholder' => __('Save Site', 'wp-ultimo'), + 'title' => __('Save Site', 'wp-multisite-waas'), + 'placeholder' => __('Save Site', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_html_attr' => [ @@ -512,7 +512,7 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { ], 'transfer' => [ 'type' => 'link', - 'display_value' => __('Transfer Site', 'wp-ultimo'), + 'display_value' => __('Transfer Site', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-bg-gray-200', 'classes' => 'button wubox wu-w-full wu-text-center', 'wrapper_html_attr' => [ @@ -527,7 +527,7 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { 'target_membership_id' => '', ] ) . "=' + membership_id", - 'title' => __('Transfer Site', 'wp-ultimo'), + 'title' => __('Transfer Site', 'wp-multisite-waas'), ], ], ], @@ -537,12 +537,12 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'active', [ - 'title' => __('Active', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), 'fields' => [ 'active' => [ 'type' => 'toggle', - 'title' => __('Active', 'wp-ultimo'), - 'desc' => __('Use this option to manually enable or disable this site.', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), + 'desc' => __('Use this option to manually enable or disable this site.', 'wp-multisite-waas'), 'value' => $this->get_object()->is_active(), ], ], @@ -552,19 +552,19 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'image', [ - 'title' => __('Site Image', 'wp-ultimo'), + 'title' => __('Site Image', 'wp-multisite-waas'), 'fields' => [ 'featured_image_id' => [ 'type' => 'image', 'stacked' => true, - 'title' => __('Site Image', 'wp-ultimo'), - 'desc' => __('This image is used on lists of sites and other places. It can be automatically generated by the screenshot scraper.', 'wp-ultimo'), + 'title' => __('Site Image', 'wp-multisite-waas'), + 'desc' => __('This image is used on lists of sites and other places. It can be automatically generated by the screenshot scraper.', 'wp-multisite-waas'), 'value' => $this->get_object()->get_featured_image_id(), 'img' => $this->get_object()->get_featured_image(), ], 'scraper_note' => [ 'type' => 'note', - 'desc' => __('You need to save the site for the change to take effect.', 'wp-ultimo'), + 'desc' => __('You need to save the site for the change to take effect.', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-hidden wu-scraper-note', ], 'scraper_error' => [ @@ -574,13 +574,13 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { ], 'scraper_message' => [ 'type' => 'note', - 'desc' => sprintf('%s', __('We detected that this network might be running locally. If that\'s the case, WP Multisite WaaS will not be able to take a screenshot of the site. A site needs to be publicly available to the outside world in order for this feature to work.', 'wp-ultimo')), + 'desc' => sprintf('%s', __('We detected that this network might be running locally. If that\'s the case, WP Multisite WaaS will not be able to take a screenshot of the site. A site needs to be publicly available to the outside world in order for this feature to work.', 'wp-multisite-waas')), 'wrapper_classes' => \WP_Ultimo\Domain_Mapping\Helper::is_development_mode() ? '' : 'wu-hidden', ], 'scraper' => [ 'type' => 'submit', - 'title' => __('Take Screenshot', 'wp-ultimo'), - 'title' => __('Take Screenshot', 'wp-ultimo'), + 'title' => __('Take Screenshot', 'wp-multisite-waas'), + 'title' => __('Take Screenshot', 'wp-multisite-waas'), 'classes' => 'button wu-w-full', ], ], @@ -615,7 +615,7 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_title() { - return $this->edit ? __('Edit Site', 'wp-ultimo') : __('Add new Site', 'wp-ultimo'); + return $this->edit ? __('Edit Site', 'wp-multisite-waas') : __('Add new Site', 'wp-multisite-waas'); } /** @@ -626,7 +626,7 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_menu_title() { - return __('Edit Site', 'wp-ultimo'); + return __('Edit Site', 'wp-multisite-waas'); } /** @@ -640,17 +640,17 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { return [ [ 'url' => network_admin_url('site-settings.php?id=' . $this->get_object()->get_id()), - 'label' => __('Go to the Default Edit Screen', 'wp-ultimo'), + 'label' => __('Go to the Default Edit Screen', 'wp-multisite-waas'), 'icon' => 'wu-cog', ], [ 'url' => get_site_url($this->get_object()->get_id()), - 'label' => __('Visit Site', 'wp-ultimo'), + 'label' => __('Visit Site', 'wp-multisite-waas'), 'icon' => 'wu-link', ], [ 'url' => get_admin_url($this->get_object()->get_id()), - 'label' => __('Dashboard', 'wp-ultimo'), + 'label' => __('Dashboard', 'wp-multisite-waas'), 'icon' => 'dashboard', ], ]; @@ -665,15 +665,15 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page { public function get_labels() { return [ - 'edit_label' => __('Edit Site', 'wp-ultimo'), - 'add_new_label' => __('Add new Site', 'wp-ultimo'), - 'updated_message' => __('Site updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Site Name', 'wp-ultimo'), - 'title_description' => __('This name will be used as the site title.', 'wp-ultimo'), - 'save_button_label' => __('Save Site', 'wp-ultimo'), + 'edit_label' => __('Edit Site', 'wp-multisite-waas'), + 'add_new_label' => __('Add new Site', 'wp-multisite-waas'), + 'updated_message' => __('Site updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Site Name', 'wp-multisite-waas'), + 'title_description' => __('This name will be used as the site title.', 'wp-multisite-waas'), + 'save_button_label' => __('Save Site', 'wp-multisite-waas'), 'save_description' => '', - 'delete_button_label' => __('Delete Site', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'delete_button_label' => __('Delete Site', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; } diff --git a/inc/admin-pages/class-site-list-admin-page.php b/inc/admin-pages/class-site-list-admin-page.php index 4e2d07b..7451d79 100644 --- a/inc/admin-pages/class-site-list-admin-page.php +++ b/inc/admin-pages/class-site-list-admin-page.php @@ -130,16 +130,16 @@ class Site_List_Admin_Page extends List_Admin_Page { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Publication', 'wp-ultimo'), - 'desc' => __('This action can not be undone.', 'wp-ultimo'), + 'title' => __('Confirm Publication', 'wp-multisite-waas'), + 'desc' => __('This action can not be undone.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Publish', 'wp-ultimo'), - 'placeholder' => __('Publish', 'wp-ultimo'), + 'title' => __('Publish', 'wp-multisite-waas'), + 'placeholder' => __('Publish', 'wp-multisite-waas'), 'value' => 'publish', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -189,13 +189,13 @@ class Site_List_Admin_Page extends List_Admin_Page { $membership = wu_get_membership(wu_request('membership_id')); if ( ! $membership) { - wp_send_json_error(new \WP_Error('not-found', __('Pending site not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('Pending site not found.', 'wp-multisite-waas'))); } $pending_site = $membership->get_pending_site(); if ( ! is_a($pending_site, '\\WP_Ultimo\\Models\\Site')) { - wp_send_json_error(new \WP_Error('not-found', __('Pending site not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('Pending site not found.', 'wp-multisite-waas'))); } $pending_site->set_type('customer_owned'); @@ -267,7 +267,7 @@ class Site_List_Admin_Page extends List_Admin_Page { } if ($site->get_blog_id() === false) { - $error = new \WP_Error('error', __('Something wrong happened.', 'wp-ultimo')); + $error = new \WP_Error('error', __('Something wrong happened.', 'wp-multisite-waas')); return wp_send_json_error($error); } @@ -314,19 +314,19 @@ class Site_List_Admin_Page extends List_Admin_Page { if ($duplicate_id && $site) { // translators: the %s is the site title. - $title = sprintf(__('Copy of %s', 'wp-ultimo'), $site->get_title()); + $title = sprintf(__('Copy of %s', 'wp-multisite-waas'), $site->get_title()); $path = sprintf('%s%s', trim($site->get_path(), '/'), 'copy'); $type = $site->get_type(); $template_id = $duplicate_id; $membership_id = $site->get_membership_id(); } - $save_label = $duplicate_id ? __('Duplicate Site', 'wp-ultimo') : __('Add new Site', 'wp-ultimo'); + $save_label = $duplicate_id ? __('Duplicate Site', 'wp-multisite-waas') : __('Add new Site', 'wp-multisite-waas'); $options = [ - 'sub-domain' => __('Subdomain', 'wp-ultimo'), - 'sub-directory' => __('Subdirectory', 'wp-ultimo'), - 'domain' => __('Domain', 'wp-ultimo'), + 'sub-domain' => __('Subdomain', 'wp-multisite-waas'), + 'sub-directory' => __('Subdirectory', 'wp-multisite-waas'), + 'domain' => __('Domain', 'wp-multisite-waas'), ]; /* @@ -351,19 +351,19 @@ class Site_List_Admin_Page extends List_Admin_Page { ], 'title' => [ 'type' => 'text', - 'title' => __('Site Title', 'wp-ultimo'), - 'placeholder' => __('New Network Site', 'wp-ultimo'), + 'title' => __('Site Title', 'wp-multisite-waas'), + 'placeholder' => __('New Network Site', 'wp-multisite-waas'), 'value' => $title, ], 'domain_group' => [ 'type' => 'group', // translators: the %s is the site preview url. - 'desc' => sprintf(__('The site URL will be: %s', 'wp-ultimo'), '{{ tab === "domain" ? domain : ( tab === "sub-directory" ? scheme + base_url + domain : scheme + domain + "." + base_url ) }}'), + 'desc' => sprintf(__('The site URL will be: %s', 'wp-multisite-waas'), '{{ tab === "domain" ? domain : ( tab === "sub-directory" ? scheme + base_url + domain : scheme + domain + "." + base_url ) }}'), 'fields' => [ 'domain' => [ 'type' => 'text', - 'title' => __('Site Domain/Path', 'wp-ultimo'), - 'tooltip' => __('Enter the complete domain for the site', 'wp-ultimo'), + 'title' => __('Site Domain/Path', 'wp-multisite-waas'), + 'tooltip' => __('Enter the complete domain for the site', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-w-full', 'html_attr' => [ 'v-bind:placeholder' => 'tab === "domain" ? "mysite.com" : "mysite"', @@ -375,13 +375,13 @@ class Site_List_Admin_Page extends List_Admin_Page { ], 'type' => [ 'type' => 'select', - 'title' => __('Site Type', 'wp-ultimo'), + 'title' => __('Site Type', 'wp-multisite-waas'), 'value' => $type, 'placeholder' => '', 'options' => [ - 'default' => __('Regular WP Site', 'wp-ultimo'), - 'site_template' => __('Site Template', 'wp-ultimo'), - 'customer_owned' => __('Customer-Owned', 'wp-ultimo'), + 'default' => __('Regular WP Site', 'wp-multisite-waas'), + 'site_template' => __('Site Template', 'wp-multisite-waas'), + 'customer_owned' => __('Customer-Owned', 'wp-multisite-waas'), ], 'html_attr' => [ 'v-model' => 'type', @@ -389,8 +389,8 @@ class Site_List_Admin_Page extends List_Admin_Page { ], 'membership_id' => [ 'type' => 'model', - 'title' => __('Associated Membership', 'wp-ultimo'), - 'placeholder' => __('Search Membership...', 'wp-ultimo'), + 'title' => __('Associated Membership', 'wp-multisite-waas'), + 'placeholder' => __('Search Membership...', 'wp-multisite-waas'), 'value' => '', 'tooltip' => '', 'wrapper_html_attr' => [ @@ -406,17 +406,17 @@ class Site_List_Admin_Page extends List_Admin_Page { ], 'copy' => [ 'type' => 'toggle', - 'title' => __('Copy Site', 'wp-ultimo'), - 'desc' => __('Select an existing site to use as a starting point.', 'wp-ultimo'), + 'title' => __('Copy Site', 'wp-multisite-waas'), + 'desc' => __('Select an existing site to use as a starting point.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'copy', ], ], 'template_site' => [ 'type' => 'model', - 'title' => __('Template Site', 'wp-ultimo'), - 'placeholder' => __('Search Sites...', 'wp-ultimo'), - 'desc' => __('The site selected will be copied and used as a starting point.', 'wp-ultimo'), + 'title' => __('Template Site', 'wp-multisite-waas'), + 'placeholder' => __('Search Sites...', 'wp-multisite-waas'), + 'desc' => __('The site selected will be copied and used as a starting point.', 'wp-multisite-waas'), 'value' => $template_id, 'html_attr' => [ 'data-model' => 'site', @@ -432,8 +432,8 @@ class Site_List_Admin_Page extends List_Admin_Page { ], 'copy_media' => [ 'type' => 'toggle', - 'title' => __('Copy Media on Duplication', 'wp-ultimo'), - 'desc' => __('Copy media files from the template site on duplication. Disabling this can lead to broken images on the new site.', 'wp-ultimo'), + 'title' => __('Copy Media on Duplication', 'wp-multisite-waas'), + 'desc' => __('Copy media files from the template site on duplication. Disabling this can lead to broken images on the new site.', 'wp-multisite-waas'), 'value' => true, 'wrapper_html_attr' => [ 'v-show' => 'copy', @@ -503,8 +503,8 @@ class Site_List_Admin_Page extends List_Admin_Page { public function get_labels() { return [ - 'deleted_message' => __('Site removed successfully.', 'wp-ultimo'), - 'search_label' => __('Search Site', 'wp-ultimo'), + 'deleted_message' => __('Site removed successfully.', 'wp-multisite-waas'), + 'search_label' => __('Search Site', 'wp-multisite-waas'), ]; } @@ -516,7 +516,7 @@ class Site_List_Admin_Page extends List_Admin_Page { */ public function get_title() { - return __('Sites', 'wp-ultimo'); + return __('Sites', 'wp-multisite-waas'); } /** @@ -527,7 +527,7 @@ class Site_List_Admin_Page extends List_Admin_Page { */ public function get_menu_title() { - return __('Sites', 'wp-ultimo'); + return __('Sites', 'wp-multisite-waas'); } /** @@ -538,7 +538,7 @@ class Site_List_Admin_Page extends List_Admin_Page { */ public function get_submenu_title() { - return __('Sites', 'wp-ultimo'); + return __('Sites', 'wp-multisite-waas'); } /** diff --git a/inc/admin-pages/class-system-info-admin-page.php b/inc/admin-pages/class-system-info-admin-page.php index 704d77a..bfa7944 100644 --- a/inc/admin-pages/class-system-info-admin-page.php +++ b/inc/admin-pages/class-system-info-admin-page.php @@ -150,7 +150,7 @@ class System_Info_Admin_Page extends Base_Admin_Page { */ public function get_title() { - return __('System Info', 'wp-ultimo'); + return __('System Info', 'wp-multisite-waas'); } /** @@ -161,7 +161,7 @@ class System_Info_Admin_Page extends Base_Admin_Page { */ public function get_menu_title() { - return __('System Info', 'wp-ultimo'); + return __('System Info', 'wp-multisite-waas'); } /** @@ -172,7 +172,7 @@ class System_Info_Admin_Page extends Base_Admin_Page { */ public function get_submenu_title() { - return __('Dashboard', 'wp-ultimo'); + return __('Dashboard', 'wp-multisite-waas'); } /** @@ -217,7 +217,7 @@ class System_Info_Admin_Page extends Base_Admin_Page { $memory_usage = $this->get_memory_usage(); // translators: %s is the number of seconds. - $max_execution_time = sprintf(__('%s seconds', 'wp-ultimo'), ini_get('max_execution_time')); + $max_execution_time = sprintf(__('%s seconds', 'wp-multisite-waas'), ini_get('max_execution_time')); $all_options = $this->get_all_options(); $all_options_serialized = serialize($all_options); @@ -243,7 +243,7 @@ class System_Info_Admin_Page extends Base_Admin_Page { $array_constants[] = [ 'tooltip' => '', 'title' => $constant, - 'value' => defined($constant) ? (is_bool(constant($constant)) ? __('Enabled', 'wp-ultimo') : constant($constant)) : __('Disabled', 'wp-ultimo'), + 'value' => defined($constant) ? (is_bool(constant($constant)) ? __('Enabled', 'wp-multisite-waas') : constant($constant)) : __('Disabled', 'wp-multisite-waas'), ]; } @@ -374,12 +374,12 @@ class System_Info_Admin_Page extends Base_Admin_Page { 'pluguins-url' => [ 'tooltip' => '', 'title' => 'Cookie Domain', - 'value' => defined('COOKIE_DOMAIN') ? COOKIE_DOMAIN ?: __('Disabled', 'wp-ultimo') : __('Not set', 'wp-ultimo'), + 'value' => defined('COOKIE_DOMAIN') ? COOKIE_DOMAIN ?: __('Disabled', 'wp-multisite-waas') : __('Not set', 'wp-multisite-waas'), ], 'multisite-active' => [ 'tooltip' => '', 'title' => 'Multi-Site Active', - 'value' => is_multisite() ? __('Yes', 'wp-ultimo') : __('No', 'wp-ultimo'), + 'value' => is_multisite() ? __('Yes', 'wp-multisite-waas') : __('No', 'wp-multisite-waas'), ], 'php-current-time-gmt' => [ 'tooltip' => '', @@ -404,12 +404,12 @@ class System_Info_Admin_Page extends Base_Admin_Page { 'php-curl-support' => [ 'tooltip' => '', 'title' => 'PHP cURL Support', - 'value' => function_exists('curl_init') ? __('Yes', 'wp-ultimo') : __('No', 'wp-ultimo'), + 'value' => function_exists('curl_init') ? __('Yes', 'wp-multisite-waas') : __('No', 'wp-multisite-waas'), ], 'php-gd-time' => [ 'tooltip' => '', 'title' => 'PHP GD Support', - 'value' => function_exists('gd_info') ? __('Yes', 'wp-ultimo') : __('No', 'wp-ultimo'), + 'value' => function_exists('gd_info') ? __('Yes', 'wp-multisite-waas') : __('No', 'wp-multisite-waas'), ], 'php-memory-limit' => [ 'tooltip' => '', @@ -464,47 +464,47 @@ class System_Info_Admin_Page extends Base_Admin_Page { 'wp-debug' => [ 'tooltip' => '', 'title' => 'WP Options Transients', - 'value' => defined('WP_DEBUG') ? WP_DEBUG ? __('Enabled', 'wp-ultimo') : __('Disabled', 'wp-ultimo') : __('Not set', 'wp-ultimo'), + 'value' => defined('WP_DEBUG') ? WP_DEBUG ? __('Enabled', 'wp-multisite-waas') : __('Disabled', 'wp-multisite-waas') : __('Not set', 'wp-multisite-waas'), ], 'script-debug' => [ 'tooltip' => '', 'title' => 'WP Options Transients', - 'value' => defined('SCRIPT_DEBUG') ? SCRIPT_DEBUG ? __('Enabled', 'wp-ultimo') : __('Disabled', 'wp-ultimo') : __('Not set', 'wp-ultimo'), + 'value' => defined('SCRIPT_DEBUG') ? SCRIPT_DEBUG ? __('Enabled', 'wp-multisite-waas') : __('Disabled', 'wp-multisite-waas') : __('Not set', 'wp-multisite-waas'), ], 'save-queries' => [ 'tooltip' => '', 'title' => 'WP Options Transients', - 'value' => defined('SAVEQUERIES') ? SAVEQUERIES ? __('Enabled', 'wp-ultimo') : __('Disabled', 'wp-ultimo') : __('Not set', 'wp-ultimo'), + 'value' => defined('SAVEQUERIES') ? SAVEQUERIES ? __('Enabled', 'wp-multisite-waas') : __('Disabled', 'wp-multisite-waas') : __('Not set', 'wp-multisite-waas'), ], 'autosave-interval' => [ 'tooltip' => '', 'title' => 'WP Options Transients', - 'value' => defined('AUTOSAVE_INTERVAL') ? AUTOSAVE_INTERVAL ?: __('Disabled', 'wp-ultimo') : __('Not set', 'wp-ultimo'), + 'value' => defined('AUTOSAVE_INTERVAL') ? AUTOSAVE_INTERVAL ?: __('Disabled', 'wp-multisite-waas') : __('Not set', 'wp-multisite-waas'), ], 'wp_post_revisions' => [ 'tooltip' => '', 'title' => 'WP Options Transients', - 'value' => defined('WP_POST_REVISIONS') ? WP_POST_REVISIONS ?: __('Disabled', 'wp-ultimo') : __('Not set', 'wp-ultimo'), + 'value' => defined('WP_POST_REVISIONS') ? WP_POST_REVISIONS ?: __('Disabled', 'wp-multisite-waas') : __('Not set', 'wp-multisite-waas'), ], 'disable_wp_cron' => [ 'tooltip' => '', 'title' => 'DISABLE_WP_CRON', - 'value' => defined('DISABLE_WP_CRON') ? DISABLE_WP_CRON ?: __('Yes', 'wp-ultimo') : __('No', 'wp-ultimo'), + 'value' => defined('DISABLE_WP_CRON') ? DISABLE_WP_CRON ?: __('Yes', 'wp-multisite-waas') : __('No', 'wp-multisite-waas'), ], 'wp_lang' => [ 'tooltip' => '', 'title' => 'WPLANG', - 'value' => defined('WPLANG') ? WPLANG ?: __('Yes', 'wp-ultimo') : __('No', 'wp-ultimo'), + 'value' => defined('WPLANG') ? WPLANG ?: __('Yes', 'wp-multisite-waas') : __('No', 'wp-multisite-waas'), ], 'wp_memory_limit' => [ 'tooltip' => '', 'title' => 'WP_MEMORY_LIMIT', - 'value' => (defined('WP_MEMORY_LIMIT') && WP_MEMORY_LIMIT) ? WP_MEMORY_LIMIT : __('Not set', 'wp-ultimo'), + 'value' => (defined('WP_MEMORY_LIMIT') && WP_MEMORY_LIMIT) ? WP_MEMORY_LIMIT : __('Not set', 'wp-multisite-waas'), ], 'wp_max_memory_limit' => [ 'tooltip' => '', 'title' => 'WP_MAX_MEMORY_LIMIT', - 'value' => (defined('WP_MAX_MEMORY_LIMIT') && WP_MAX_MEMORY_LIMIT) ? WP_MAX_MEMORY_LIMIT : __('Not set', 'wp-ultimo'), + 'value' => (defined('WP_MAX_MEMORY_LIMIT') && WP_MAX_MEMORY_LIMIT) ? WP_MAX_MEMORY_LIMIT : __('Not set', 'wp-multisite-waas'), ], 'operating-system' => [ 'tooltip' => '', @@ -541,7 +541,7 @@ class System_Info_Admin_Page extends Base_Admin_Page { 'logs-directory' => [ 'tooltip' => '', 'title' => 'Logs Directory', - 'value' => is_writable(Logger::get_logs_folder()) ? __('Writable', 'wp-ultimo') : __('Not Writable', 'wp-ultimo'), + 'value' => is_writable(Logger::get_logs_folder()) ? __('Writable', 'wp-multisite-waas') : __('Not Writable', 'wp-multisite-waas'), ], ], $wpultimo_settings diff --git a/inc/admin-pages/class-tax-rates-admin-page.php b/inc/admin-pages/class-tax-rates-admin-page.php index dc569bb..944c38c 100644 --- a/inc/admin-pages/class-tax-rates-admin-page.php +++ b/inc/admin-pages/class-tax-rates-admin-page.php @@ -72,7 +72,7 @@ class Tax_Rates_Admin_Page extends Base_Admin_Page { */ public function get_title() { - return __('Tax Rates', 'wp-ultimo'); + return __('Tax Rates', 'wp-multisite-waas'); } /** @@ -83,7 +83,7 @@ class Tax_Rates_Admin_Page extends Base_Admin_Page { */ public function get_menu_title() { - return __('Tax Rates', 'wp-ultimo'); + return __('Tax Rates', 'wp-multisite-waas'); } /** @@ -94,7 +94,7 @@ class Tax_Rates_Admin_Page extends Base_Admin_Page { */ public function get_submenu_title() { - return __('Tax Rates', 'wp-ultimo'); + return __('Tax Rates', 'wp-multisite-waas'); } /** @@ -110,11 +110,11 @@ class Tax_Rates_Admin_Page extends Base_Admin_Page { $columns = apply_filters( 'wu_tax_rates_columns', [ - 'title' => __('Label', 'wp-ultimo'), - 'country' => __('Country', 'wp-ultimo'), - 'state' => __('State / Province', 'wp-ultimo'), - 'city' => __('City', 'wp-ultimo'), - 'tax_rate' => __('Tax Rate (%)', 'wp-ultimo'), + 'title' => __('Label', 'wp-multisite-waas'), + 'country' => __('Country', 'wp-multisite-waas'), + 'state' => __('State / Province', 'wp-multisite-waas'), + 'city' => __('City', 'wp-multisite-waas'), + 'tax_rate' => __('Tax Rate (%)', 'wp-multisite-waas'), 'move' => '', ] ); @@ -145,9 +145,9 @@ class Tax_Rates_Admin_Page extends Base_Admin_Page { 'wu-tax-rates', 'wu_tax_ratesl10n', [ - 'name' => __('Tax', 'wp-ultimo'), - 'confirm_message' => __('Are you sure you want to delete this rows?', 'wp-ultimo'), - 'confirm_delete_tax_category_message' => __('Are you sure you want to delete this tax category?', 'wp-ultimo'), + 'name' => __('Tax', 'wp-multisite-waas'), + 'confirm_message' => __('Are you sure you want to delete this rows?', 'wp-multisite-waas'), + 'confirm_delete_tax_category_message' => __('Are you sure you want to delete this tax category?', 'wp-multisite-waas'), ] ); @@ -176,7 +176,7 @@ class Tax_Rates_Admin_Page extends Base_Admin_Page { 'widget_id' => $id, 'before' => '', 'after' => '', - 'title' => __('Fields', 'wp-ultimo'), + 'title' => __('Fields', 'wp-multisite-waas'), 'position' => 'side', 'screen' => get_current_screen(), 'fields' => [], @@ -194,7 +194,7 @@ class Tax_Rates_Admin_Page extends Base_Admin_Page { if (wu_get_isset($atts['html_attr'], 'data-wu-app')) { $atts['fields']['loading'] = [ 'type' => 'note', - 'desc' => sprintf('
%s
', __('Loading...', 'wp-ultimo')), + 'desc' => sprintf('
%s
', __('Loading...', 'wp-multisite-waas')), 'wrapper_html_attr' => [ 'v-if' => 0, ], diff --git a/inc/admin-pages/class-template-previewer-customize-admin-page.php b/inc/admin-pages/class-template-previewer-customize-admin-page.php index bcb6ca4..2bb915d 100644 --- a/inc/admin-pages/class-template-previewer-customize-admin-page.php +++ b/inc/admin-pages/class-template-previewer-customize-admin-page.php @@ -97,14 +97,14 @@ class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page { 'fields' => [ 'preview_url_parameter' => [ 'type' => 'text', - 'title' => __('URL Parameter', 'wp-ultimo'), - 'desc' => __('This is the URL parameter WP Multisite WaaS will use to generate the template preview URLs.', 'wp-ultimo'), + 'title' => __('URL Parameter', 'wp-multisite-waas'), + 'desc' => __('This is the URL parameter WP Multisite WaaS will use to generate the template preview URLs.', 'wp-multisite-waas'), 'value' => Template_Previewer::get_instance()->get_setting('preview_url_parameter', 'template-preview'), ], 'enabled' => [ 'type' => 'toggle', - 'title' => __('Active', 'wp-ultimo'), - 'desc' => __('If your site templates are not loading, you can disable the top-bar using this setting.', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), + 'desc' => __('If your site templates are not loading, you can disable the top-bar using this setting.', 'wp-multisite-waas'), 'value' => Template_Previewer::get_instance()->get_setting('enabled', true), 'html_attr' => [], ], @@ -129,16 +129,16 @@ class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page { 'v-model' => 'tab', ], 'options' => [ - 'general' => __('General', 'wp-ultimo'), - 'colors' => __('Colors', 'wp-ultimo'), - 'images' => __('Images', 'wp-ultimo'), + 'general' => __('General', 'wp-multisite-waas'), + 'colors' => __('Colors', 'wp-multisite-waas'), + 'images' => __('Images', 'wp-multisite-waas'), ], ], 'display_responsive_controls' => [ 'type' => 'toggle', - 'title' => __('Show Responsive Controls', 'wp-ultimo'), - 'desc' => __('Toggle to show or hide the responsive controls.', 'wp-ultimo'), + 'title' => __('Show Responsive Controls', 'wp-multisite-waas'), + 'desc' => __('Toggle to show or hide the responsive controls.', 'wp-multisite-waas'), 'value' => true, 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "general")', @@ -150,8 +150,8 @@ class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page { ], 'button_text' => [ 'type' => 'text', - 'title' => __('Button Text', 'wp-ultimo'), - 'value' => __('Use this Template', 'wp-ultimo'), + 'title' => __('Button Text', 'wp-multisite-waas'), + 'value' => __('Use this Template', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "general")', 'v-cloak' => 1, @@ -163,8 +163,8 @@ class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page { 'bg_color' => [ 'type' => 'color-picker', - 'title' => __('Background Color', 'wp-ultimo'), - 'desc' => __('Choose the background color for the top-bar.', 'wp-ultimo'), + 'title' => __('Background Color', 'wp-multisite-waas'), + 'desc' => __('Choose the background color for the top-bar.', 'wp-multisite-waas'), 'value' => '#f9f9f9', 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "colors")', @@ -176,8 +176,8 @@ class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page { ], 'button_bg_color' => [ 'type' => 'color-picker', - 'title' => __('Button BG Color', 'wp-ultimo'), - 'desc' => __('Pick the background color for the button.', 'wp-ultimo'), + 'title' => __('Button BG Color', 'wp-multisite-waas'), + 'desc' => __('Pick the background color for the button.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "colors")', 'v-cloak' => 1, @@ -189,8 +189,8 @@ class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page { 'use_custom_logo' => [ 'type' => 'toggle', - 'title' => __('Use Custom Logo', 'wp-ultimo'), - 'desc' => __('You can set a different logo to be used on the top-bar.', 'wp-ultimo'), + 'title' => __('Use Custom Logo', 'wp-multisite-waas'), + 'desc' => __('You can set a different logo to be used on the top-bar.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "images")', 'v-cloak' => 1, @@ -202,8 +202,8 @@ class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page { 'custom_logo' => [ 'type' => 'image', 'stacked' => true, - 'title' => __('Custom Logo', 'wp-ultimo'), - 'desc' => __('The logo is displayed on the preview page top-bar.', 'wp-ultimo'), + 'title' => __('Custom Logo', 'wp-multisite-waas'), + 'desc' => __('The logo is displayed on the preview page top-bar.', 'wp-multisite-waas'), 'value' => $custom_logo_id, 'img' => $custom_logo, 'wrapper_html_attr' => [ @@ -226,7 +226,7 @@ class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page { $this->add_fields_widget( 'customizer', [ - 'title' => __('Customizer', 'wp-ultimo'), + 'title' => __('Customizer', 'wp-multisite-waas'), 'position' => 'side', 'fields' => $fields, 'html_attr' => [ @@ -247,7 +247,7 @@ class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page { */ public function get_title() { - return __('Customize Template Previewer', 'wp-ultimo'); + return __('Customize Template Previewer', 'wp-multisite-waas'); } /** @@ -258,7 +258,7 @@ class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page { */ public function get_menu_title() { - return __('Customize Template Previewer', 'wp-ultimo'); + return __('Customize Template Previewer', 'wp-multisite-waas'); } /** @@ -281,13 +281,13 @@ class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page { public function get_labels() { return [ - 'customize_label' => __('Customize Template Previewer', 'wp-ultimo'), - 'add_new_label' => __('Customize Template Previewer', 'wp-ultimo'), - 'edit_label' => __('Edit Template Previewer', 'wp-ultimo'), - 'updated_message' => __('Template Previewer updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Template Previewer Name', 'wp-ultimo'), - 'title_description' => __('This name is used for internal reference only.', 'wp-ultimo'), - 'save_button_label' => __('Save Changes', 'wp-ultimo'), + 'customize_label' => __('Customize Template Previewer', 'wp-multisite-waas'), + 'add_new_label' => __('Customize Template Previewer', 'wp-multisite-waas'), + 'edit_label' => __('Edit Template Previewer', 'wp-multisite-waas'), + 'updated_message' => __('Template Previewer updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Template Previewer Name', 'wp-multisite-waas'), + 'title_description' => __('This name is used for internal reference only.', 'wp-multisite-waas'), + 'save_button_label' => __('Save Changes', 'wp-multisite-waas'), 'save_description' => '', ]; } diff --git a/inc/admin-pages/class-top-admin-nav-menu.php b/inc/admin-pages/class-top-admin-nav-menu.php index a0f6901..fb80654 100644 --- a/inc/admin-pages/class-top-admin-nav-menu.php +++ b/inc/admin-pages/class-top-admin-nav-menu.php @@ -52,11 +52,11 @@ class Top_Admin_Nav_Menu { // Add Parent element $parent = [ 'id' => 'wp-ultimo', - 'title' => __('Multisite Waas', 'wp-ultimo'), + 'title' => __('Multisite Waas', 'wp-multisite-waas'), 'href' => current_user_can('wu_read_dashboard') ? network_admin_url('admin.php?page=wp-ultimo') : '#', 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the dashboard', 'wp-ultimo'), + 'title' => __('Go to the dashboard', 'wp-multisite-waas'), ], ]; @@ -64,11 +64,11 @@ class Top_Admin_Nav_Menu { $sites = [ 'id' => 'wp-ultimo-sites', 'parent' => 'wp-ultimo', - 'title' => __('Manage Sites', 'wp-ultimo'), + 'title' => __('Manage Sites', 'wp-multisite-waas'), 'href' => network_admin_url('admin.php?page=wp-ultimo-sites'), 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the sites page', 'wp-ultimo'), + 'title' => __('Go to the sites page', 'wp-multisite-waas'), ], ]; @@ -76,11 +76,11 @@ class Top_Admin_Nav_Menu { $memberships = [ 'id' => 'wp-ultimo-memberships', 'parent' => 'wp-ultimo', - 'title' => __('Manage Memberships', 'wp-ultimo'), + 'title' => __('Manage Memberships', 'wp-multisite-waas'), 'href' => network_admin_url('admin.php?page=wp-ultimo-memberships'), 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the memberships page', 'wp-ultimo'), + 'title' => __('Go to the memberships page', 'wp-multisite-waas'), ], ]; @@ -88,11 +88,11 @@ class Top_Admin_Nav_Menu { $customers = [ 'id' => 'wp-ultimo-customers', 'parent' => 'wp-ultimo', - 'title' => __('Customers', 'wp-ultimo'), + 'title' => __('Customers', 'wp-multisite-waas'), 'href' => network_admin_url('admin.php?page=wp-ultimo-customers'), 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the customers page', 'wp-ultimo'), + 'title' => __('Go to the customers page', 'wp-multisite-waas'), ], ]; @@ -100,11 +100,11 @@ class Top_Admin_Nav_Menu { $products = [ 'id' => 'wp-ultimo-products', 'parent' => 'wp-ultimo', - 'title' => __('Products', 'wp-ultimo'), + 'title' => __('Products', 'wp-multisite-waas'), 'href' => network_admin_url('admin.php?page=wp-ultimo-products'), 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the products page', 'wp-ultimo'), + 'title' => __('Go to the products page', 'wp-multisite-waas'), ], ]; @@ -112,11 +112,11 @@ class Top_Admin_Nav_Menu { $payments = [ 'id' => 'wp-ultimo-payments', 'parent' => 'wp-ultimo', - 'title' => __('Payments', 'wp-ultimo'), + 'title' => __('Payments', 'wp-multisite-waas'), 'href' => network_admin_url('admin.php?page=wp-ultimo-payments'), 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the payments page', 'wp-ultimo'), + 'title' => __('Go to the payments page', 'wp-multisite-waas'), ], ]; @@ -124,11 +124,11 @@ class Top_Admin_Nav_Menu { $discount_codes = [ 'id' => 'wp-ultimo-discount-codes', 'parent' => 'wp-ultimo', - 'title' => __('Discount Codes', 'wp-ultimo'), + 'title' => __('Discount Codes', 'wp-multisite-waas'), 'href' => network_admin_url('admin.php?page=wp-ultimo-discount-codes'), 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the discount codes page', 'wp-ultimo'), + 'title' => __('Go to the discount codes page', 'wp-multisite-waas'), ], ]; @@ -136,11 +136,11 @@ class Top_Admin_Nav_Menu { 'id' => 'wp-ultimo-settings-group', 'parent' => 'wp-ultimo', 'group' => true, - 'title' => __('Settings Container', 'wp-ultimo'), + 'title' => __('Settings Container', 'wp-multisite-waas'), 'href' => '#', 'meta' => [ 'class' => 'wp-ultimo-top-menu ab-sub-secondary', - 'title' => __('Go to the settings page', 'wp-ultimo'), + 'title' => __('Go to the settings page', 'wp-multisite-waas'), ], ]; @@ -148,11 +148,11 @@ class Top_Admin_Nav_Menu { $settings = [ 'id' => 'wp-ultimo-settings', 'parent' => 'wp-ultimo-settings-group', - 'title' => __('Settings', 'wp-ultimo'), + 'title' => __('Settings', 'wp-multisite-waas'), 'href' => network_admin_url('admin.php?page=wp-ultimo-settings'), 'meta' => [ 'class' => 'wp-ultimo-top-menu ab-sub-secondary', - 'title' => __('Go to the settings page', 'wp-ultimo'), + 'title' => __('Go to the settings page', 'wp-multisite-waas'), ], ]; @@ -215,7 +215,7 @@ class Top_Admin_Nav_Menu { 'href' => network_admin_url('admin.php?page=wp-ultimo-settings&tab=') . $tab, 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the settings page', 'wp-ultimo'), + 'title' => __('Go to the settings page', 'wp-multisite-waas'), ], ]; diff --git a/inc/admin-pages/class-view-logs-admin-page.php b/inc/admin-pages/class-view-logs-admin-page.php index 0422e8f..aa488fb 100644 --- a/inc/admin-pages/class-view-logs-admin-page.php +++ b/inc/admin-pages/class-view-logs-admin-page.php @@ -100,7 +100,7 @@ class View_Logs_Admin_Page extends Edit_Admin_Page { 'wu_view_logs', [ 'i18n' => [ - 'copied' => __('Copied!', 'wp-ultimo'), + 'copied' => __('Copied!', 'wp-multisite-waas'), ], ] ); @@ -118,7 +118,7 @@ class View_Logs_Admin_Page extends Edit_Admin_Page { */ public function get_title() { - return __('View Log', 'wp-ultimo'); + return __('View Log', 'wp-multisite-waas'); } /** @@ -129,7 +129,7 @@ class View_Logs_Admin_Page extends Edit_Admin_Page { */ public function get_menu_title() { - return __('View Log', 'wp-ultimo'); + return __('View Log', 'wp-multisite-waas'); } /** @@ -152,7 +152,7 @@ class View_Logs_Admin_Page extends Edit_Admin_Page { $logs_list = array_combine(array_values($logs_list), array_map(fn($file) => str_replace(Logger::get_logs_folder(), '', (string) $file), $logs_list)); if (empty($logs_list)) { - $logs_list[''] = __('No log files found', 'wp-ultimo'); + $logs_list[''] = __('No log files found', 'wp-multisite-waas'); } $file = wu_request('file'); @@ -163,7 +163,7 @@ class View_Logs_Admin_Page extends Edit_Admin_Page { // Security check if ($file && ! stristr((string) $file, Logger::get_logs_folder())) { - wp_die(__('You can see files that are not WP Multisite WaaS\'s logs', 'wp-ultimo')); + wp_die(__('You can see files that are not WP Multisite WaaS\'s logs', 'wp-multisite-waas')); } if ( ! $file && ! empty($logs_list)) { @@ -172,7 +172,7 @@ class View_Logs_Admin_Page extends Edit_Admin_Page { $file_name = str_replace(Logger::get_logs_folder(), '', (string) $file); - $default_content = wu_request('return_ascii', 'yes') === 'yes' ? wu_get_template_contents('events/ascii-badge') : __('No log entries found.', 'wp-ultimo'); + $default_content = wu_request('return_ascii', 'yes') === 'yes' ? wu_get_template_contents('events/ascii-badge') : __('No log entries found.', 'wp-multisite-waas'); $contents = $file && file_exists($file) ? file_get_contents($file) : $default_content; @@ -200,24 +200,24 @@ class View_Logs_Admin_Page extends Edit_Admin_Page { $info = $this->handle_view_logs(); - add_meta_box('wp-ultimo-log-contents', __('Log Contents', 'wp-ultimo'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal', null, $info); + add_meta_box('wp-ultimo-log-contents', __('Log Contents', 'wp-multisite-waas'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal', null, $info); $this->add_fields_widget( 'file-selector', [ - 'title' => __('Log Files', 'wp-ultimo'), + 'title' => __('Log Files', 'wp-multisite-waas'), 'fields' => [ 'log_file' => [ 'type' => 'select', - 'title' => __('Select Log File', 'wp-ultimo'), - 'placeholder' => __('Select Log File', 'wp-ultimo'), + 'title' => __('Select Log File', 'wp-multisite-waas'), + 'placeholder' => __('Select Log File', 'wp-multisite-waas'), 'value' => wu_request('file'), 'tooltip' => '', 'options' => $info['logs_list'], ], 'download' => [ 'type' => 'submit', - 'title' => __('Download Log', 'wp-ultimo'), + 'title' => __('Download Log', 'wp-multisite-waas'), 'value' => 'download', 'classes' => 'button button-primary wu-w-full', ], @@ -228,11 +228,11 @@ class View_Logs_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'info', [ - 'title' => __('Timestamps', 'wp-ultimo'), + 'title' => __('Timestamps', 'wp-multisite-waas'), 'position' => 'side', 'fields' => [ 'date_modified' => [ - 'title' => __('Last Modified at', 'wp-ultimo'), + 'title' => __('Last Modified at', 'wp-multisite-waas'), 'type' => 'text-edit', 'date' => true, 'value' => date_i18n('Y-m-d H:i:s', filemtime($info['file'])), @@ -257,8 +257,8 @@ class View_Logs_Admin_Page extends Edit_Admin_Page { wu_get_template( 'events/widget-payload', [ - 'title' => __('Event Payload', 'wp-ultimo'), - 'loading_text' => __('Loading Payload', 'wp-ultimo'), + 'title' => __('Event Payload', 'wp-multisite-waas'), + 'loading_text' => __('Loading Payload', 'wp-multisite-waas'), 'payload' => $data['args']['contents'], ] ); @@ -273,12 +273,12 @@ class View_Logs_Admin_Page extends Edit_Admin_Page { public function get_labels() { return [ - 'edit_label' => __('View Log', 'wp-ultimo'), - 'add_new_label' => __('View Log', 'wp-ultimo'), - 'title_placeholder' => __('Enter Customer', 'wp-ultimo'), - 'title_description' => __('Viewing file: ', 'wp-ultimo'), - 'delete_button_label' => __('Delete Log File', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'edit_label' => __('View Log', 'wp-multisite-waas'), + 'add_new_label' => __('View Log', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Customer', 'wp-multisite-waas'), + 'title_description' => __('Viewing file: ', 'wp-multisite-waas'), + 'delete_button_label' => __('Delete Log File', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; } @@ -323,7 +323,7 @@ class View_Logs_Admin_Page extends Edit_Admin_Page { $action = wu_request('submit_button', 'none'); if ('none' === $action) { - WP_Ultimo()->notices->add(__('Something wrong happened', 'wp-ultimo'), 'error', 'network-admin'); + WP_Ultimo()->notices->add(__('Something wrong happened', 'wp-multisite-waas'), 'error', 'network-admin'); return; } @@ -331,7 +331,7 @@ class View_Logs_Admin_Page extends Edit_Admin_Page { $file = wu_request('log_file', false); if ( ! file_exists($file)) { - WP_Ultimo()->notices->add(__('File not found', 'wp-ultimo'), 'error', 'network-admin'); + WP_Ultimo()->notices->add(__('File not found', 'wp-multisite-waas'), 'error', 'network-admin'); return; } @@ -350,7 +350,7 @@ class View_Logs_Admin_Page extends Edit_Admin_Page { $status = unlink($file); if ( ! $status) { - WP_Ultimo()->notices->add(__('We were unable to delete file', 'wp-ultimo'), 'error', 'network-admin'); + WP_Ultimo()->notices->add(__('We were unable to delete file', 'wp-multisite-waas'), 'error', 'network-admin'); return; } diff --git a/inc/admin-pages/class-webhook-edit-admin-page.php b/inc/admin-pages/class-webhook-edit-admin-page.php index 3d5fd23..51a614f 100644 --- a/inc/admin-pages/class-webhook-edit-admin-page.php +++ b/inc/admin-pages/class-webhook-edit-admin-page.php @@ -97,9 +97,9 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page { 'wu_webhook_page', [ 'i18n' => [ - 'error_title' => __('Webhook Test', 'wp-ultimo'), - 'error_message' => __('An error occurred when sending the test webhook, please try again.', 'wp-ultimo'), - 'copied' => __('Copied!', 'wp-ultimo'), + 'error_title' => __('Webhook Test', 'wp-multisite-waas'), + 'error_message' => __('An error occurred when sending the test webhook, please try again.', 'wp-multisite-waas'), + 'copied' => __('Copied!', 'wp-multisite-waas'), ], ] ); @@ -138,22 +138,22 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'domain-url', [ - 'title' => __('Webhook URL', 'wp-ultimo'), + 'title' => __('Webhook URL', 'wp-multisite-waas'), 'position' => 'normal', 'fields' => [ 'webhook_url' => [ 'type' => 'url', - 'title' => __('Webhook URL', 'wp-ultimo'), - 'desc' => __('The URL where we will send the payload when the event triggers.', 'wp-ultimo'), - 'placeholder' => __('https://example.com', 'wp-ultimo'), + 'title' => __('Webhook URL', 'wp-multisite-waas'), + 'desc' => __('The URL where we will send the payload when the event triggers.', 'wp-multisite-waas'), + 'placeholder' => __('https://example.com', 'wp-multisite-waas'), 'value' => $this->get_object()->get_webhook_url(), ], 'actions' => [ 'type' => 'actions', - 'tooltip' => __('The event .', 'wp-ultimo'), + 'tooltip' => __('The event .', 'wp-multisite-waas'), 'actions' => [ 'send_test_event' => [ - 'title' => __('Send Test Event', 'wp-ultimo'), + 'title' => __('Send Test Event', 'wp-multisite-waas'), 'action' => 'wu_send_test_event', 'object_id' => $this->get_object()->get_id(), 'loading_text' => 'Sending Test...', @@ -168,12 +168,12 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page { ] ); - add_meta_box('wp-ultimo-payload', __('Event Payload', 'wp-ultimo'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal'); + add_meta_box('wp-ultimo-payload', __('Event Payload', 'wp-multisite-waas'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal'); $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'wp-ultimo'), + 'title' => __('Events', 'wp-multisite-waas'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'query_filter'], ] @@ -191,9 +191,9 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page { 'fields' => [ 'event' => [ 'type' => 'select', - 'title' => __('Event', 'wp-ultimo'), - 'desc' => __('The event that triggers this webhook.', 'wp-ultimo'), - 'placeholder' => __('Select Event', 'wp-ultimo'), + 'title' => __('Event', 'wp-multisite-waas'), + 'desc' => __('The event that triggers this webhook.', 'wp-multisite-waas'), + 'placeholder' => __('Select Event', 'wp-multisite-waas'), 'options' => $event_list, 'value' => $this->get_object()->get_event(), ], @@ -204,13 +204,13 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'active', [ - 'title' => __('Active', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), 'fields' => [ 'active' => [ 'type' => 'toggle', - 'title' => __('Active', 'wp-ultimo'), - 'tooltip' => __('Deactivate will end the event trigger for this webhook.', 'wp-ultimo'), - 'desc' => __('Use this option to manually enable or disable this webhook.', 'wp-ultimo'), + 'title' => __('Active', 'wp-multisite-waas'), + 'tooltip' => __('Deactivate will end the event trigger for this webhook.', 'wp-multisite-waas'), + 'desc' => __('Use this option to manually enable or disable this webhook.', 'wp-multisite-waas'), 'value' => $this->get_object()->is_active(), ], ], @@ -220,27 +220,27 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page { $this->add_fields_widget( 'options', [ - 'title' => __('Options', 'wp-ultimo'), + 'title' => __('Options', 'wp-multisite-waas'), 'fields' => [ 'integration' => [ 'edit' => true, - 'title' => __('Integration', 'wp-ultimo'), + 'title' => __('Integration', 'wp-multisite-waas'), 'type' => 'text-edit', 'placeholder' => 'manual', 'value' => $this->get_object()->get_integration(), 'display_value' => ucwords((string) $this->get_object()->get_integration()), - 'tooltip' => __('Name of the service responsible for creating this webhook. If you are manually creating this webhook, use the value "manual".', 'wp-ultimo'), + 'tooltip' => __('Name of the service responsible for creating this webhook. If you are manually creating this webhook, use the value "manual".', 'wp-multisite-waas'), ], 'event_count' => [ - 'title' => __('Run Count', 'wp-ultimo'), + 'title' => __('Run Count', 'wp-multisite-waas'), 'type' => 'text-edit', 'min' => 0, 'placeholder' => 0, 'edit' => true, 'value' => $this->get_object()->get_event_count(), // translators: %d is the number of times that this webhook was triggered. - 'display_value' => sprintf(__('This webhook was triggered %d time(s).', 'wp-ultimo'), $this->get_object()->get_event_count()), - 'tooltip' => __('The number of times that this webhook was triggered so far. It includes test runs.', 'wp-ultimo'), + 'display_value' => sprintf(__('This webhook was triggered %d time(s).', 'wp-multisite-waas'), $this->get_object()->get_event_count()), + 'tooltip' => __('The number of times that this webhook was triggered so far. It includes test runs.', 'wp-multisite-waas'), ], ], ] @@ -264,8 +264,8 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page { wu_get_template( 'events/widget-payload', [ - 'title' => __('Event Payload', 'wp-ultimo'), - 'loading_text' => __('Loading Payload', 'wp-ultimo'), + 'title' => __('Event Payload', 'wp-multisite-waas'), + 'loading_text' => __('Loading Payload', 'wp-multisite-waas'), 'payload' => $payload, ] ); @@ -297,7 +297,7 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_title() { - return $this->edit ? __('Edit Webhook', 'wp-ultimo') : __('Add new Webhook', 'wp-ultimo'); + return $this->edit ? __('Edit Webhook', 'wp-multisite-waas') : __('Add new Webhook', 'wp-multisite-waas'); } /** @@ -308,7 +308,7 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page { */ public function get_menu_title() { - return __('Edit Webhook', 'wp-ultimo'); + return __('Edit Webhook', 'wp-multisite-waas'); } /** @@ -331,15 +331,15 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page { public function get_labels() { return [ - 'edit_label' => __('Edit Webhook', 'wp-ultimo'), - 'add_new_label' => __('Add new Webhook', 'wp-ultimo'), - 'updated_message' => __('Webhook updated successfully!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Webhook', 'wp-ultimo'), + 'edit_label' => __('Edit Webhook', 'wp-multisite-waas'), + 'add_new_label' => __('Add new Webhook', 'wp-multisite-waas'), + 'updated_message' => __('Webhook updated successfully!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Webhook', 'wp-multisite-waas'), 'title_description' => '', - 'save_button_label' => __('Save Webhook', 'wp-ultimo'), + 'save_button_label' => __('Save Webhook', 'wp-multisite-waas'), 'save_description' => '', - 'delete_button_label' => __('Delete Webhook', 'wp-ultimo'), - 'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'), + 'delete_button_label' => __('Delete Webhook', 'wp-multisite-waas'), + 'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'), ]; } diff --git a/inc/admin-pages/class-webhook-list-admin-page.php b/inc/admin-pages/class-webhook-list-admin-page.php index 5b0ac80..744fb88 100644 --- a/inc/admin-pages/class-webhook-list-admin-page.php +++ b/inc/admin-pages/class-webhook-list-admin-page.php @@ -71,9 +71,9 @@ class Webhook_List_Admin_Page extends List_Admin_Page { 'wu_webhook_page', [ 'i18n' => [ - 'error_title' => __('Webhook Test', 'wp-ultimo'), - 'error_message' => __('An error occurred when sending the test webhook, please try again.', 'wp-ultimo'), - 'copied' => __('Copied!', 'wp-ultimo'), + 'error_title' => __('Webhook Test', 'wp-multisite-waas'), + 'error_message' => __('An error occurred when sending the test webhook, please try again.', 'wp-multisite-waas'), + 'copied' => __('Copied!', 'wp-multisite-waas'), ], ] ); @@ -120,25 +120,25 @@ class Webhook_List_Admin_Page extends List_Admin_Page { $fields = [ 'name' => [ 'type' => 'text', - 'title' => __('Webhook Name', 'wp-ultimo'), - 'desc' => __('A name to easily identify your webhook.', 'wp-ultimo'), - 'placeholder' => __('E.g. Zapier Integration', 'wp-ultimo'), + 'title' => __('Webhook Name', 'wp-multisite-waas'), + 'desc' => __('A name to easily identify your webhook.', 'wp-multisite-waas'), + 'placeholder' => __('E.g. Zapier Integration', 'wp-multisite-waas'), ], 'event' => [ - 'title' => __('Event', 'wp-ultimo'), + 'title' => __('Event', 'wp-multisite-waas'), 'type' => 'select', - 'desc' => __('The event that will trigger the webhook.', 'wp-ultimo'), + 'desc' => __('The event that will trigger the webhook.', 'wp-multisite-waas'), 'options' => $event_options, ], 'webhook_url' => [ 'type' => 'url', - 'title' => __('Webhook Url', 'wp-ultimo'), - 'desc' => __('The url of your webhook.', 'wp-ultimo'), - 'placeholder' => __('E.g. https://example.com/', 'wp-ultimo'), + 'title' => __('Webhook Url', 'wp-multisite-waas'), + 'desc' => __('The url of your webhook.', 'wp-multisite-waas'), + 'placeholder' => __('E.g. https://example.com/', 'wp-multisite-waas'), ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Add New Webhook', 'wp-ultimo'), + 'title' => __('Add New Webhook', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -212,8 +212,8 @@ class Webhook_List_Admin_Page extends List_Admin_Page { public function get_labels() { return [ - 'deleted_message' => __('Webhook removed successfully.', 'wp-ultimo'), - 'search_label' => __('Search Webhook', 'wp-ultimo'), + 'deleted_message' => __('Webhook removed successfully.', 'wp-multisite-waas'), + 'search_label' => __('Search Webhook', 'wp-multisite-waas'), ]; } @@ -225,7 +225,7 @@ class Webhook_List_Admin_Page extends List_Admin_Page { */ public function get_title() { - return __('Webhooks', 'wp-ultimo'); + return __('Webhooks', 'wp-multisite-waas'); } /** @@ -236,7 +236,7 @@ class Webhook_List_Admin_Page extends List_Admin_Page { */ public function get_menu_title() { - return __('Webhooks', 'wp-ultimo'); + return __('Webhooks', 'wp-multisite-waas'); } /** @@ -247,7 +247,7 @@ class Webhook_List_Admin_Page extends List_Admin_Page { */ public function get_submenu_title() { - return __('Webhooks', 'wp-ultimo'); + return __('Webhooks', 'wp-multisite-waas'); } /** @@ -260,7 +260,7 @@ class Webhook_List_Admin_Page extends List_Admin_Page { return [ [ - 'label' => __('Add New Webhook', 'wp-ultimo'), + 'label' => __('Add New Webhook', 'wp-multisite-waas'), 'icon' => 'wu-circle-with-plus', 'classes' => 'wubox', 'url' => wu_get_form_url('add_new_webhook_modal'), diff --git a/inc/admin-pages/class-wizard-admin-page.php b/inc/admin-pages/class-wizard-admin-page.php index 3eaec49..e86abb4 100644 --- a/inc/admin-pages/class-wizard-admin-page.php +++ b/inc/admin-pages/class-wizard-admin-page.php @@ -124,12 +124,12 @@ abstract class Wizard_Admin_Page extends Base_Admin_Page { public function get_labels() { return [ - 'edit_label' => __('Edit Object', 'wp-ultimo'), - 'add_new_label' => __('Add New Object', 'wp-ultimo'), - 'updated_message' => __('Object updated with success!', 'wp-ultimo'), - 'title_placeholder' => __('Enter Object Name', 'wp-ultimo'), + 'edit_label' => __('Edit Object', 'wp-multisite-waas'), + 'add_new_label' => __('Add New Object', 'wp-multisite-waas'), + 'updated_message' => __('Object updated with success!', 'wp-multisite-waas'), + 'title_placeholder' => __('Enter Object Name', 'wp-multisite-waas'), 'title_description' => '', - 'save_button_label' => __('Save', 'wp-ultimo'), + 'save_button_label' => __('Save', 'wp-multisite-waas'), 'save_description' => '', ]; } @@ -152,7 +152,7 @@ abstract class Wizard_Admin_Page extends Base_Admin_Page { return; } - add_meta_box('wp-ultimo-wizard-body', wu_get_isset($this->current_section, 'title', __('Section', 'wp-ultimo')), [$this, 'output_default_widget_body'], $screen->id, 'normal', null); + add_meta_box('wp-ultimo-wizard-body', wu_get_isset($this->current_section, 'title', __('Section', 'wp-multisite-waas')), [$this, 'output_default_widget_body'], $screen->id, 'normal', null); } /** @@ -319,9 +319,9 @@ abstract class Wizard_Admin_Page extends Base_Admin_Page { 'description' => '', 'content' => '', 'fields' => [], - 'next_label' => __('Continue →', 'wp-ultimo'), - 'back_label' => __('← Go Back', 'wp-ultimo'), - 'skip_label' => __('Skip this Step', 'wp-ultimo'), + 'next_label' => __('Continue →', 'wp-multisite-waas'), + 'back_label' => __('← Go Back', 'wp-multisite-waas'), + 'skip_label' => __('Skip this Step', 'wp-multisite-waas'), 'back' => false, 'skip' => false, 'next' => true, diff --git a/inc/admin-pages/customer-panel/class-account-admin-page.php b/inc/admin-pages/customer-panel/class-account-admin-page.php index 12ae960..067d41e 100644 --- a/inc/admin-pages/customer-panel/class-account-admin-page.php +++ b/inc/admin-pages/customer-panel/class-account-admin-page.php @@ -138,7 +138,7 @@ class Account_Admin_Page extends Base_Customer_Facing_Admin_Page { return; } - $update_message = apply_filters('wu_account_update_message', __('Your account was successfully updated.', 'wp-ultimo'), $update_type); + $update_message = apply_filters('wu_account_update_message', __('Your account was successfully updated.', 'wp-multisite-waas'), $update_type); WP_Ultimo()->notices->add($update_message); } @@ -197,7 +197,7 @@ class Account_Admin_Page extends Base_Customer_Facing_Admin_Page { */ public function get_title() { - return __('Account', 'wp-ultimo'); + return __('Account', 'wp-multisite-waas'); } /** @@ -208,7 +208,7 @@ class Account_Admin_Page extends Base_Customer_Facing_Admin_Page { */ public function get_menu_title() { - return __('Account', 'wp-ultimo'); + return __('Account', 'wp-multisite-waas'); } /** @@ -219,7 +219,7 @@ class Account_Admin_Page extends Base_Customer_Facing_Admin_Page { */ public function get_submenu_title() { - return __('Account', 'wp-ultimo'); + return __('Account', 'wp-multisite-waas'); } /** diff --git a/inc/admin-pages/customer-panel/class-add-new-site-admin-page.php b/inc/admin-pages/customer-panel/class-add-new-site-admin-page.php index d4c6b2b..6ad55cc 100644 --- a/inc/admin-pages/customer-panel/class-add-new-site-admin-page.php +++ b/inc/admin-pages/customer-panel/class-add-new-site-admin-page.php @@ -209,7 +209,7 @@ class Add_New_Site_Admin_Page extends Base_Customer_Facing_Admin_Page { */ public function get_title() { - return __('Add New Site', 'wp-ultimo'); + return __('Add New Site', 'wp-multisite-waas'); } /** @@ -220,7 +220,7 @@ class Add_New_Site_Admin_Page extends Base_Customer_Facing_Admin_Page { */ public function get_menu_title() { - return __('Add New Site', 'wp-ultimo'); + return __('Add New Site', 'wp-multisite-waas'); } /** @@ -231,7 +231,7 @@ class Add_New_Site_Admin_Page extends Base_Customer_Facing_Admin_Page { */ public function get_submenu_title() { - return __('Add New Site', 'wp-ultimo'); + return __('Add New Site', 'wp-multisite-waas'); } /** diff --git a/inc/admin-pages/customer-panel/class-checkout-admin-page.php b/inc/admin-pages/customer-panel/class-checkout-admin-page.php index 8c5355d..8336d32 100644 --- a/inc/admin-pages/customer-panel/class-checkout-admin-page.php +++ b/inc/admin-pages/customer-panel/class-checkout-admin-page.php @@ -95,7 +95,7 @@ class Checkout_Admin_Page extends \WP_Ultimo\Admin_Pages\Base_Customer_Facing_Ad */ public function get_title() { - return __('Checkout', 'wp-ultimo'); + return __('Checkout', 'wp-multisite-waas'); } /** @@ -106,7 +106,7 @@ class Checkout_Admin_Page extends \WP_Ultimo\Admin_Pages\Base_Customer_Facing_Ad */ public function get_menu_title() { - return __('Checkout', 'wp-ultimo'); + return __('Checkout', 'wp-multisite-waas'); } /** @@ -143,7 +143,7 @@ class Checkout_Admin_Page extends \WP_Ultimo\Admin_Pages\Base_Customer_Facing_Ad $sections = [ 'plan' => [ - 'title' => __('Change Membership', 'wp-ultimo'), + 'title' => __('Change Membership', 'wp-multisite-waas'), 'view' => [$this, 'display_checkout_form'], ], ]; diff --git a/inc/admin-pages/customer-panel/class-my-sites-admin-page.php b/inc/admin-pages/customer-panel/class-my-sites-admin-page.php index c698d1c..711467b 100644 --- a/inc/admin-pages/customer-panel/class-my-sites-admin-page.php +++ b/inc/admin-pages/customer-panel/class-my-sites-admin-page.php @@ -232,7 +232,7 @@ class My_Sites_Admin_Page extends Base_Customer_Facing_Admin_Page { */ public function get_title() { - return __('My Sites', 'wp-ultimo'); + return __('My Sites', 'wp-multisite-waas'); } /** @@ -243,7 +243,7 @@ class My_Sites_Admin_Page extends Base_Customer_Facing_Admin_Page { */ public function get_menu_title() { - return __('My Sites', 'wp-ultimo'); + return __('My Sites', 'wp-multisite-waas'); } /** @@ -254,7 +254,7 @@ class My_Sites_Admin_Page extends Base_Customer_Facing_Admin_Page { */ public function get_submenu_title() { - return __('My Sites', 'wp-ultimo'); + return __('My Sites', 'wp-multisite-waas'); } /** diff --git a/inc/admin-pages/customer-panel/class-template-switching-admin-page.php b/inc/admin-pages/customer-panel/class-template-switching-admin-page.php index a52ce91..825e638 100644 --- a/inc/admin-pages/customer-panel/class-template-switching-admin-page.php +++ b/inc/admin-pages/customer-panel/class-template-switching-admin-page.php @@ -103,7 +103,7 @@ class Template_Switching_Admin_Page extends \WP_Ultimo\Admin_Pages\Base_Customer */ public function get_title() { - return __('Switch Template', 'wp-ultimo'); + return __('Switch Template', 'wp-multisite-waas'); } /** @@ -114,7 +114,7 @@ class Template_Switching_Admin_Page extends \WP_Ultimo\Admin_Pages\Base_Customer */ public function get_menu_title() { - return __('Switch Template', 'wp-ultimo'); + return __('Switch Template', 'wp-multisite-waas'); } /** @@ -158,7 +158,7 @@ class Template_Switching_Admin_Page extends \WP_Ultimo\Admin_Pages\Base_Customer 'page' => $this, 'content' => '', 'labels' => [ - 'updated_message' => __('Template switched successfully!', 'wp-ultimo'), + 'updated_message' => __('Template switched successfully!', 'wp-multisite-waas'), ], ] ); diff --git a/inc/admin-pages/debug/class-debug-admin-page.php b/inc/admin-pages/debug/class-debug-admin-page.php index ebfa24a..0c7df0f 100644 --- a/inc/admin-pages/debug/class-debug-admin-page.php +++ b/inc/admin-pages/debug/class-debug-admin-page.php @@ -83,7 +83,7 @@ class Debug_Admin_Page extends Base_Admin_Page { add_meta_box( 'wp-ultimo-debug-pages', - __('All Registered Pages', 'wp-ultimo'), + __('All Registered Pages', 'wp-multisite-waas'), [$this, 'render_debug_pages'], get_current_screen()->id, 'normal', @@ -126,7 +126,7 @@ class Debug_Admin_Page extends Base_Admin_Page { */ public function get_title() { - return __('Registered Pages', 'wp-ultimo'); + return __('Registered Pages', 'wp-multisite-waas'); } /** @@ -137,7 +137,7 @@ class Debug_Admin_Page extends Base_Admin_Page { */ public function get_menu_title() { - return __('Registered Pages', 'wp-ultimo'); + return __('Registered Pages', 'wp-multisite-waas'); } /** @@ -148,7 +148,7 @@ class Debug_Admin_Page extends Base_Admin_Page { */ public function get_submenu_title() { - return __('Registered Pages', 'wp-ultimo'); + return __('Registered Pages', 'wp-multisite-waas'); } /** diff --git a/inc/api/class-register-endpoint.php b/inc/api/class-register-endpoint.php index 202fcaa..8ed9a43 100644 --- a/inc/api/class-register-endpoint.php +++ b/inc/api/class-register-endpoint.php @@ -130,7 +130,7 @@ class Register_Endpoint { $customer->add_note( [ - 'text' => __('Created via REST API', 'wp-ultimo'), + 'text' => __('Created via REST API', 'wp-multisite-waas'), 'author_id' => $customer->get_user_id(), ] ); @@ -168,7 +168,7 @@ class Register_Endpoint { if ($cart->is_valid() && count($cart->get_line_items()) === 0) { return new \WP_Error( 'invalid_cart', - __('Products are required.', 'wp-ultimo'), + __('Products are required.', 'wp-multisite-waas'), array_merge( (array) $cart->done(), [ @@ -215,7 +215,7 @@ class Register_Endpoint { $membership->add_note( [ - 'text' => __('Created via REST API', 'wp-ultimo'), + 'text' => __('Created via REST API', 'wp-multisite-waas'), 'author_id' => $customer->get_user_id(), ] ); @@ -253,7 +253,7 @@ class Register_Endpoint { $payment->add_note( [ - 'text' => __('Created via REST API', 'wp-ultimo'), + 'text' => __('Created via REST API', 'wp-multisite-waas'), 'author_id' => $customer->get_user_id(), ] ); @@ -333,29 +333,29 @@ class Register_Endpoint { $customer_args = [ 'customer_id' => [ - 'description' => __('The customer ID, if the customer already exists. If you also need to create a customer/wp user, use the "customer" property.', 'wp-ultimo'), + 'description' => __('The customer ID, if the customer already exists. If you also need to create a customer/wp user, use the "customer" property.', 'wp-multisite-waas'), 'type' => 'integer', ], 'customer' => [ - 'description' => __('Customer data. Needs to be present when customer id is not.', 'wp-ultimo'), + 'description' => __('Customer data. Needs to be present when customer id is not.', 'wp-multisite-waas'), 'type' => 'object', 'properties' => [ 'user_id' => [ - 'description' => __('Existing WordPress user id to attach this customer to. If you also need to create a WordPress user, pass the properties "username", "password", and "email".', 'wp-ultimo'), + 'description' => __('Existing WordPress user id to attach this customer to. If you also need to create a WordPress user, pass the properties "username", "password", and "email".', 'wp-multisite-waas'), 'type' => 'integer', ], 'username' => [ - 'description' => __('The customer username. This is used to create the WordPress user.', 'wp-ultimo'), + 'description' => __('The customer username. This is used to create the WordPress user.', 'wp-multisite-waas'), 'type' => 'string', 'minLength' => 4, ], 'password' => [ - 'description' => __('The customer password. This is used to create the WordPress user. Note that no validation is performed here to enforce strength.', 'wp-ultimo'), + 'description' => __('The customer password. This is used to create the WordPress user. Note that no validation is performed here to enforce strength.', 'wp-multisite-waas'), 'type' => 'string', 'minLength' => 6, ], 'email' => [ - 'description' => __('The customer email address. This is used to create the WordPress user.', 'wp-ultimo'), + 'description' => __('The customer email address. This is used to create the WordPress user.', 'wp-multisite-waas'), 'type' => 'string', 'format' => 'email', ], @@ -369,42 +369,42 @@ class Register_Endpoint { $membership_args = [ 'membership' => [ - 'description' => __('The membership data is automatically generated based on the cart info passed (e.g. products) but can be overridden with this property.', 'wp-ultimo'), + 'description' => __('The membership data is automatically generated based on the cart info passed (e.g. products) but can be overridden with this property.', 'wp-multisite-waas'), 'type' => 'object', 'properties' => [ 'status' => [ - 'description' => __('The membership status.', 'wp-ultimo'), + 'description' => __('The membership status.', 'wp-multisite-waas'), 'type' => 'string', 'enum' => array_values(Membership_Status::get_allowed_list()), 'default' => Membership_Status::PENDING, ], 'date_expiration' => [ - 'description' => __('The membership expiration date. Must be a valid PHP date format.', 'wp-ultimo'), + 'description' => __('The membership expiration date. Must be a valid PHP date format.', 'wp-multisite-waas'), 'type' => 'string', 'format' => 'date-time', ], 'date_trial_end' => [ - 'description' => __('The membership trial end date. Must be a valid PHP date format.', 'wp-ultimo'), + 'description' => __('The membership trial end date. Must be a valid PHP date format.', 'wp-multisite-waas'), 'type' => 'string', 'format' => 'date-time', ], 'date_activated' => [ - 'description' => __('The membership activation date. Must be a valid PHP date format.', 'wp-ultimo'), + 'description' => __('The membership activation date. Must be a valid PHP date format.', 'wp-multisite-waas'), 'type' => 'string', 'format' => 'date-time', ], 'date_renewed' => [ - 'description' => __('The membership last renewed date. Must be a valid PHP date format.', 'wp-ultimo'), + 'description' => __('The membership last renewed date. Must be a valid PHP date format.', 'wp-multisite-waas'), 'type' => 'string', 'format' => 'date-time', ], 'date_cancellation' => [ - 'description' => __('The membership cancellation date. Must be a valid PHP date format.', 'wp-ultimo'), + 'description' => __('The membership cancellation date. Must be a valid PHP date format.', 'wp-multisite-waas'), 'type' => 'string', 'format' => 'date-time', ], 'date_payment_plan_completed' => [ - 'description' => __('The membership completion date. Used when the membership is limited to a limited number of billing cycles. Must be a valid PHP date format.', 'wp-ultimo'), + 'description' => __('The membership completion date. Used when the membership is limited to a limited number of billing cycles. Must be a valid PHP date format.', 'wp-multisite-waas'), 'type' => 'string', 'format' => 'date-time', ], @@ -414,11 +414,11 @@ class Register_Endpoint { $payment_args = [ 'payment' => [ - 'description' => __('The payment data is automatically generated based on the cart info passed (e.g. products) but can be overridden with this property.', 'wp-ultimo'), + 'description' => __('The payment data is automatically generated based on the cart info passed (e.g. products) but can be overridden with this property.', 'wp-multisite-waas'), 'type' => 'object', 'properties' => [ 'status' => [ - 'description' => __('The payment status.', 'wp-ultimo'), + 'description' => __('The payment status.', 'wp-multisite-waas'), 'type' => 'string', 'enum' => array_values(Payment_Status::get_allowed_list()), 'default' => Payment_Status::PENDING, @@ -426,23 +426,23 @@ class Register_Endpoint { ], ], 'payment_method' => [ - 'description' => __('Payment method information. Useful when using the REST API to integrate other payment methods.', 'wp-ultimo'), + 'description' => __('Payment method information. Useful when using the REST API to integrate other payment methods.', 'wp-multisite-waas'), 'type' => 'object', 'properties' => [ 'gateway' => [ - 'description' => __('The gateway name. E.g. stripe.', 'wp-ultimo'), + 'description' => __('The gateway name. E.g. stripe.', 'wp-multisite-waas'), 'type' => 'string', ], 'gateway_customer_id' => [ - 'description' => __('The customer ID on the gateway system.', 'wp-ultimo'), + 'description' => __('The customer ID on the gateway system.', 'wp-multisite-waas'), 'type' => 'string', ], 'gateway_subscription_id' => [ - 'description' => __('The subscription ID on the gateway system.', 'wp-ultimo'), + 'description' => __('The subscription ID on the gateway system.', 'wp-multisite-waas'), 'type' => 'string', ], 'gateway_payment_id' => [ - 'description' => __('The payment ID on the gateway system.', 'wp-ultimo'), + 'description' => __('The payment ID on the gateway system.', 'wp-multisite-waas'), 'type' => 'string', ], ], @@ -455,31 +455,31 @@ class Register_Endpoint { 'properties' => [ 'site_url' => [ 'type' => 'string', - 'description' => __('The site subdomain or subdirectory (depending on your Multisite install). This would be "test" in "test.your-network.com".', 'wp-ultimo'), + 'description' => __('The site subdomain or subdirectory (depending on your Multisite install). This would be "test" in "test.your-network.com".', 'wp-multisite-waas'), 'minLength' => 4, 'required' => true, ], 'site_title' => [ 'type' => 'string', - 'description' => __('The site title. E.g. My Amazing Site', 'wp-ultimo'), + 'description' => __('The site title. E.g. My Amazing Site', 'wp-multisite-waas'), 'minLength' => 4, 'required' => true, ], 'publish' => [ - 'description' => __('If we should publish this site regardless of membership/payment status. Sites are created as pending by default, and are only published when a payment is received or the status of the membership changes to "active". This flag allows you to bypass the pending state.', 'wp-ultimo'), + 'description' => __('If we should publish this site regardless of membership/payment status. Sites are created as pending by default, and are only published when a payment is received or the status of the membership changes to "active". This flag allows you to bypass the pending state.', 'wp-multisite-waas'), 'type' => 'boolean', 'default' => false, ], 'template_id' => [ - 'description' => __('The template ID we should copy when creating this site. If left empty, the value dictated by the products will be used.', 'wp-ultimo'), + 'description' => __('The template ID we should copy when creating this site. If left empty, the value dictated by the products will be used.', 'wp-multisite-waas'), 'type' => 'integer', ], 'site_meta' => [ - 'description' => __('An associative array of key values to be saved as site_meta.', 'wp-ultimo'), + 'description' => __('An associative array of key values to be saved as site_meta.', 'wp-multisite-waas'), 'type' => 'object', ], 'site_option' => [ - 'description' => __('An associative array of key values to be saved as site_options. Useful for changing plugin settings and other site configurations.', 'wp-ultimo'), + 'description' => __('An associative array of key values to be saved as site_options. Useful for changing plugin settings and other site configurations.', 'wp-multisite-waas'), 'type' => 'object', ], ], @@ -488,17 +488,17 @@ class Register_Endpoint { $cart_args = [ 'products' => [ - 'description' => __('The products to be added to this membership. Takes an array of product ids or slugs.', 'wp-ultimo'), + 'description' => __('The products to be added to this membership. Takes an array of product ids or slugs.', 'wp-multisite-waas'), 'uniqueItems' => true, 'type' => 'array', ], 'duration' => [ - 'description' => __('The membership duration.', 'wp-ultimo'), + 'description' => __('The membership duration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'duration_unit' => [ - 'description' => __('The membership duration unit.', 'wp-ultimo'), + 'description' => __('The membership duration unit.', 'wp-multisite-waas'), 'type' => 'string', 'default' => 'month', 'enum' => [ @@ -509,22 +509,22 @@ class Register_Endpoint { ], ], 'discount_code' => [ - 'description' => __('A discount code. E.g. PROMO10.', 'wp-ultimo'), + 'description' => __('A discount code. E.g. PROMO10.', 'wp-multisite-waas'), 'type' => 'string', ], 'auto_renew' => [ - 'description' => __('The membership auto-renew status. Useful when integrating with other payment options via this REST API.', 'wp-ultimo'), + 'description' => __('The membership auto-renew status. Useful when integrating with other payment options via this REST API.', 'wp-multisite-waas'), 'type' => 'boolean', 'default' => false, 'required' => true, ], 'country' => [ - 'description' => __('The customer country. Used to calculate taxes and check if registration is allowed for that country.', 'wp-ultimo'), + 'description' => __('The customer country. Used to calculate taxes and check if registration is allowed for that country.', 'wp-multisite-waas'), 'type' => 'string', 'default' => '', ], 'currency' => [ - 'description' => __('The currency to be used.', 'wp-ultimo'), + 'description' => __('The currency to be used.', 'wp-multisite-waas'), 'type' => 'string', ], ]; @@ -550,7 +550,7 @@ class Register_Endpoint { $customer = wu_get_customer($customer_id); if ( ! $customer) { - return new \WP_Error('customer_not_found', __('The customer id sent does not correspond to a valid customer.', 'wp-ultimo')); + return new \WP_Error('customer_not_found', __('The customer id sent does not correspond to a valid customer.', 'wp-multisite-waas')); } } else { $customer = wu_create_customer($p['customer']); diff --git a/inc/api/schemas/broadcast-create.php b/inc/api/schemas/broadcast-create.php index 1f23764..9db9e0f 100644 --- a/inc/api/schemas/broadcast-create.php +++ b/inc/api/schemas/broadcast-create.php @@ -20,12 +20,12 @@ defined('ABSPATH') || exit; */ return [ 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'notice_type' => [ - 'description' => __('Can be info, success, warning or error.', 'wp-ultimo'), + 'description' => __('Can be info, success, warning or error.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -36,57 +36,57 @@ return [ ], ], 'name' => [ - 'description' => __('This broadcast name, which is used as broadcast title as well.', 'wp-ultimo'), + 'description' => __('This broadcast name, which is used as broadcast title as well.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'type' => [ - 'description' => __('The type being set.', 'wp-ultimo'), + 'description' => __('The type being set.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'status' => [ - 'description' => __('The status being set.', 'wp-ultimo'), + 'description' => __('The status being set.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'author_id' => [ - 'description' => __('The author ID.', 'wp-ultimo'), + 'description' => __('The author ID.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'title' => [ - 'description' => __('Post title.', 'wp-ultimo'), + 'description' => __('Post title.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'content' => [ - 'description' => __('Post content.', 'wp-ultimo'), + 'description' => __('Post content.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'excerpt' => [ - 'description' => __('Post excerpt.', 'wp-ultimo'), + 'description' => __('Post excerpt.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Post creation date.', 'wp-ultimo'), + 'description' => __('Post creation date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Post last modification date.', 'wp-ultimo'), + 'description' => __('Post last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'slug' => [ - 'description' => __('The slug.', 'wp-ultimo'), + 'description' => __('The slug.', 'wp-multisite-waas'), 'type' => 'mixed', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/broadcast-update.php b/inc/api/schemas/broadcast-update.php index bf2abcf..9a776b2 100644 --- a/inc/api/schemas/broadcast-update.php +++ b/inc/api/schemas/broadcast-update.php @@ -20,12 +20,12 @@ defined('ABSPATH') || exit; */ return [ 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'notice_type' => [ - 'description' => __('Can be info, success, warning or error.', 'wp-ultimo'), + 'description' => __('Can be info, success, warning or error.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -36,57 +36,57 @@ return [ ], ], 'name' => [ - 'description' => __('This broadcast name, which is used as broadcast title as well.', 'wp-ultimo'), + 'description' => __('This broadcast name, which is used as broadcast title as well.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'type' => [ - 'description' => __('The type being set.', 'wp-ultimo'), + 'description' => __('The type being set.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'status' => [ - 'description' => __('The status being set.', 'wp-ultimo'), + 'description' => __('The status being set.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'author_id' => [ - 'description' => __('The author ID.', 'wp-ultimo'), + 'description' => __('The author ID.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'title' => [ - 'description' => __('Post title.', 'wp-ultimo'), + 'description' => __('Post title.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'content' => [ - 'description' => __('Post content.', 'wp-ultimo'), + 'description' => __('Post content.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'excerpt' => [ - 'description' => __('Post excerpt.', 'wp-ultimo'), + 'description' => __('Post excerpt.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Post creation date.', 'wp-ultimo'), + 'description' => __('Post creation date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Post last modification date.', 'wp-ultimo'), + 'description' => __('Post last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'slug' => [ - 'description' => __('The slug.', 'wp-ultimo'), + 'description' => __('The slug.', 'wp-multisite-waas'), 'type' => 'mixed', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/checkout-form-create.php b/inc/api/schemas/checkout-form-create.php index afb13ad..da304ea 100644 --- a/inc/api/schemas/checkout-form-create.php +++ b/inc/api/schemas/checkout-form-create.php @@ -20,47 +20,47 @@ defined('ABSPATH') || exit; */ return [ 'slug' => [ - 'description' => __('The checkout form slug. It needs to be unique and preferably make it clear what it is about. E.g. my_checkout_form.', 'wp-ultimo'), + 'description' => __('The checkout form slug. It needs to be unique and preferably make it clear what it is about. E.g. my_checkout_form.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'name' => [ - 'description' => __('Your checkout form name, which is used as checkout form title as well.', 'wp-ultimo'), + 'description' => __('Your checkout form name, which is used as checkout form title as well.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'active' => [ - 'description' => __('Set this checkout form as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'), + 'description' => __('Set this checkout form as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => true, ], 'custom_css' => [ - 'description' => __('Custom CSS code for the checkout form.', 'wp-ultimo'), + 'description' => __('Custom CSS code for the checkout form.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'settings' => [ - 'description' => __('The checkout form settings and configurations.', 'wp-ultimo'), + 'description' => __('The checkout form settings and configurations.', 'wp-multisite-waas'), 'type' => 'object', 'required' => false, ], 'allowed_countries' => [ - 'description' => __('The allowed countries that can access this checkout.', 'wp-ultimo'), + 'description' => __('The allowed countries that can access this checkout.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'thank_you_page_id' => [ - 'description' => __('The thank you page ID. This page is shown after a successful purchase.', 'wp-ultimo'), + 'description' => __('The thank you page ID. This page is shown after a successful purchase.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'conversion_snippets' => [ - 'description' => __('Snippets to run on thank you page.', 'wp-ultimo'), + 'description' => __('Snippets to run on thank you page.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'template' => [ - 'description' => __("Template mode. Can be either 'blank', 'single-step' or 'multi-step'.", 'wp-ultimo'), + 'description' => __("Template mode. Can be either 'blank', 'single-step' or 'multi-step'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -70,22 +70,22 @@ return [ ], ], 'date_created' => [ - 'description' => __('Model creation date.', 'wp-ultimo'), + 'description' => __('Model creation date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/checkout-form-update.php b/inc/api/schemas/checkout-form-update.php index 04cf99b..71ac9f6 100644 --- a/inc/api/schemas/checkout-form-update.php +++ b/inc/api/schemas/checkout-form-update.php @@ -20,47 +20,47 @@ defined('ABSPATH') || exit; */ return [ 'slug' => [ - 'description' => __('The checkout form slug. It needs to be unique and preferably make it clear what it is about. E.g. my_checkout_form.', 'wp-ultimo'), + 'description' => __('The checkout form slug. It needs to be unique and preferably make it clear what it is about. E.g. my_checkout_form.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'name' => [ - 'description' => __('Your checkout form name, which is used as checkout form title as well.', 'wp-ultimo'), + 'description' => __('Your checkout form name, which is used as checkout form title as well.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'active' => [ - 'description' => __('Set this checkout form as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'), + 'description' => __('Set this checkout form as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'custom_css' => [ - 'description' => __('Custom CSS code for the checkout form.', 'wp-ultimo'), + 'description' => __('Custom CSS code for the checkout form.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'settings' => [ - 'description' => __('The checkout form settings and configurations.', 'wp-ultimo'), + 'description' => __('The checkout form settings and configurations.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'allowed_countries' => [ - 'description' => __('The allowed countries that can access this checkout.', 'wp-ultimo'), + 'description' => __('The allowed countries that can access this checkout.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'thank_you_page_id' => [ - 'description' => __('The thank you page ID. This page is shown after a successful purchase.', 'wp-ultimo'), + 'description' => __('The thank you page ID. This page is shown after a successful purchase.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'conversion_snippets' => [ - 'description' => __('Snippets to run on thank you page.', 'wp-ultimo'), + 'description' => __('Snippets to run on thank you page.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'template' => [ - 'description' => __("Template mode. Can be either 'blank', 'single-step' or 'multi-step'.", 'wp-ultimo'), + 'description' => __("Template mode. Can be either 'blank', 'single-step' or 'multi-step'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -70,22 +70,22 @@ return [ ], ], 'date_created' => [ - 'description' => __('Model creation date.', 'wp-ultimo'), + 'description' => __('Model creation date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/customer-create.php b/inc/api/schemas/customer-create.php index 3204a0f..70329c0 100644 --- a/inc/api/schemas/customer-create.php +++ b/inc/api/schemas/customer-create.php @@ -20,17 +20,17 @@ defined('ABSPATH') || exit; */ return [ 'user_id' => [ - 'description' => __('The WordPress user ID attached to this customer.', 'wp-ultimo'), + 'description' => __('The WordPress user ID attached to this customer.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => true, ], 'date_registered' => [ - 'description' => __('Date when the customer was created.', 'wp-ultimo'), + 'description' => __('Date when the customer was created.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'email_verification' => [ - 'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'wp-ultimo'), + 'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -40,32 +40,32 @@ return [ ], ], 'last_login' => [ - 'description' => __('Date this customer last logged in.', 'wp-ultimo'), + 'description' => __('Date this customer last logged in.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'has_trialed' => [ - 'description' => __('Whether or not the customer has trialed before.', 'wp-ultimo'), + 'description' => __('Whether or not the customer has trialed before.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'vip' => [ - 'description' => __('If this customer is a VIP customer or not.', 'wp-ultimo'), + 'description' => __('If this customer is a VIP customer or not.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'ips' => [ - 'description' => __('List of IP addresses used by this customer.', 'wp-ultimo'), + 'description' => __('List of IP addresses used by this customer.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'extra_information' => [ - 'description' => __('Any extra information related to this customer.', 'wp-ultimo'), + 'description' => __('Any extra information related to this customer.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'type' => [ - 'description' => __("The customer type. Can be 'customer'.", 'wp-ultimo'), + 'description' => __("The customer type. Can be 'customer'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -73,27 +73,27 @@ return [ ], ], 'signup_form' => [ - 'description' => __('The form used to signup.', 'wp-ultimo'), + 'description' => __('The form used to signup.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Model creation date.', 'wp-ultimo'), + 'description' => __('Model creation date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/customer-update.php b/inc/api/schemas/customer-update.php index 7a31b9c..11b094d 100644 --- a/inc/api/schemas/customer-update.php +++ b/inc/api/schemas/customer-update.php @@ -20,17 +20,17 @@ defined('ABSPATH') || exit; */ return [ 'user_id' => [ - 'description' => __('The WordPress user ID attached to this customer.', 'wp-ultimo'), + 'description' => __('The WordPress user ID attached to this customer.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'date_registered' => [ - 'description' => __('Date when the customer was created.', 'wp-ultimo'), + 'description' => __('Date when the customer was created.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'email_verification' => [ - 'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'wp-ultimo'), + 'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -40,32 +40,32 @@ return [ ], ], 'last_login' => [ - 'description' => __('Date this customer last logged in.', 'wp-ultimo'), + 'description' => __('Date this customer last logged in.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'has_trialed' => [ - 'description' => __('Whether or not the customer has trialed before.', 'wp-ultimo'), + 'description' => __('Whether or not the customer has trialed before.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'vip' => [ - 'description' => __('If this customer is a VIP customer or not.', 'wp-ultimo'), + 'description' => __('If this customer is a VIP customer or not.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'ips' => [ - 'description' => __('List of IP addresses used by this customer.', 'wp-ultimo'), + 'description' => __('List of IP addresses used by this customer.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'extra_information' => [ - 'description' => __('Any extra information related to this customer.', 'wp-ultimo'), + 'description' => __('Any extra information related to this customer.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'type' => [ - 'description' => __("The customer type. Can be 'customer'.", 'wp-ultimo'), + 'description' => __("The customer type. Can be 'customer'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -73,27 +73,27 @@ return [ ], ], 'signup_form' => [ - 'description' => __('The form used to signup.', 'wp-ultimo'), + 'description' => __('The form used to signup.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Model creation date.', 'wp-ultimo'), + 'description' => __('Model creation date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/discount-code-create.php b/inc/api/schemas/discount-code-create.php index 1dbeccf..3b62159 100644 --- a/inc/api/schemas/discount-code-create.php +++ b/inc/api/schemas/discount-code-create.php @@ -20,37 +20,37 @@ defined('ABSPATH') || exit; */ return [ 'name' => [ - 'description' => __('Your discount code name, which is used as discount code title as well.', 'wp-ultimo'), + 'description' => __('Your discount code name, which is used as discount code title as well.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'code' => [ - 'description' => __('A unique identification to redeem the discount code. E.g. PROMO10.', 'wp-ultimo'), + 'description' => __('A unique identification to redeem the discount code. E.g. PROMO10.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'description' => [ - 'description' => __('A description for the discount code, usually a short text.', 'wp-ultimo'), + 'description' => __('A description for the discount code, usually a short text.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'uses' => [ - 'description' => __('Number of times this discount was applied.', 'wp-ultimo'), + 'description' => __('Number of times this discount was applied.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'max_uses' => [ - 'description' => __('The number of times this discount can be used before becoming inactive.', 'wp-ultimo'), + 'description' => __('The number of times this discount can be used before becoming inactive.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'apply_to_renewals' => [ - 'description' => __('Wether or not we should apply the discount to membership renewals.', 'wp-ultimo'), + 'description' => __('Wether or not we should apply the discount to membership renewals.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'type' => [ - 'description' => __("The type of the discount code. Can be 'percentage' (e.g. 10%% OFF), 'absolute' (e.g. $10 OFF).", 'wp-ultimo'), + 'description' => __("The type of the discount code. Can be 'percentage' (e.g. 10%% OFF), 'absolute' (e.g. $10 OFF).", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -59,12 +59,12 @@ return [ ], ], 'value' => [ - 'description' => __('Amount discounted in cents.', 'wp-ultimo'), + 'description' => __('Amount discounted in cents.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => true, ], 'setup_fee_type' => [ - 'description' => __('Type of the discount for the setup fee value. Can be a percentage or absolute.', 'wp-ultimo'), + 'description' => __('Type of the discount for the setup fee value. Can be a percentage or absolute.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -73,52 +73,52 @@ return [ ], ], 'setup_fee_value' => [ - 'description' => __('Amount discounted for setup fees in cents.', 'wp-ultimo'), + 'description' => __('Amount discounted for setup fees in cents.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'active' => [ - 'description' => __('Set this discount code as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'), + 'description' => __('Set this discount code as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'date_start' => [ - 'description' => __('Start date for the coupon code to be considered valid.', 'wp-ultimo'), + 'description' => __('Start date for the coupon code to be considered valid.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_expiration' => [ - 'description' => __('Expiration date for the coupon code.', 'wp-ultimo'), + 'description' => __('Expiration date for the coupon code.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Date when this discount code was created.', 'wp-ultimo'), + 'description' => __('Date when this discount code was created.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'allowed_products' => [ - 'description' => __('The list of products that allows this discount code to be used. If empty, all products will accept this code.', 'wp-ultimo'), + 'description' => __('The list of products that allows this discount code to be used. If empty, all products will accept this code.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'limit_products' => [ - 'description' => __('This discount code will be limited to be used in certain products? If set to true, you must define a list of allowed products.', 'wp-ultimo'), + 'description' => __('This discount code will be limited to be used in certain products? If set to true, you must define a list of allowed products.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/discount-code-update.php b/inc/api/schemas/discount-code-update.php index f7e5874..3d5821b 100644 --- a/inc/api/schemas/discount-code-update.php +++ b/inc/api/schemas/discount-code-update.php @@ -20,37 +20,37 @@ defined('ABSPATH') || exit; */ return [ 'name' => [ - 'description' => __('Your discount code name, which is used as discount code title as well.', 'wp-ultimo'), + 'description' => __('Your discount code name, which is used as discount code title as well.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'code' => [ - 'description' => __('A unique identification to redeem the discount code. E.g. PROMO10.', 'wp-ultimo'), + 'description' => __('A unique identification to redeem the discount code. E.g. PROMO10.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'description' => [ - 'description' => __('A description for the discount code, usually a short text.', 'wp-ultimo'), + 'description' => __('A description for the discount code, usually a short text.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'uses' => [ - 'description' => __('Number of times this discount was applied.', 'wp-ultimo'), + 'description' => __('Number of times this discount was applied.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'max_uses' => [ - 'description' => __('The number of times this discount can be used before becoming inactive.', 'wp-ultimo'), + 'description' => __('The number of times this discount can be used before becoming inactive.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'apply_to_renewals' => [ - 'description' => __('Wether or not we should apply the discount to membership renewals.', 'wp-ultimo'), + 'description' => __('Wether or not we should apply the discount to membership renewals.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'type' => [ - 'description' => __("The type of the discount code. Can be 'percentage' (e.g. 10%% OFF), 'absolute' (e.g. $10 OFF).", 'wp-ultimo'), + 'description' => __("The type of the discount code. Can be 'percentage' (e.g. 10%% OFF), 'absolute' (e.g. $10 OFF).", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -59,12 +59,12 @@ return [ ], ], 'value' => [ - 'description' => __('Amount discounted in cents.', 'wp-ultimo'), + 'description' => __('Amount discounted in cents.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'setup_fee_type' => [ - 'description' => __('Type of the discount for the setup fee value. Can be a percentage or absolute.', 'wp-ultimo'), + 'description' => __('Type of the discount for the setup fee value. Can be a percentage or absolute.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -73,52 +73,52 @@ return [ ], ], 'setup_fee_value' => [ - 'description' => __('Amount discounted for setup fees in cents.', 'wp-ultimo'), + 'description' => __('Amount discounted for setup fees in cents.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'active' => [ - 'description' => __('Set this discount code as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'), + 'description' => __('Set this discount code as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'date_start' => [ - 'description' => __('Start date for the coupon code to be considered valid.', 'wp-ultimo'), + 'description' => __('Start date for the coupon code to be considered valid.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_expiration' => [ - 'description' => __('Expiration date for the coupon code.', 'wp-ultimo'), + 'description' => __('Expiration date for the coupon code.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Date when this discount code was created.', 'wp-ultimo'), + 'description' => __('Date when this discount code was created.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'allowed_products' => [ - 'description' => __('The list of products that allows this discount code to be used. If empty, all products will accept this code.', 'wp-ultimo'), + 'description' => __('The list of products that allows this discount code to be used. If empty, all products will accept this code.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'limit_products' => [ - 'description' => __('This discount code will be limited to be used in certain products? If set to true, you must define a list of allowed products.', 'wp-ultimo'), + 'description' => __('This discount code will be limited to be used in certain products? If set to true, you must define a list of allowed products.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/domain-create.php b/inc/api/schemas/domain-create.php index a851236..ed60435 100644 --- a/inc/api/schemas/domain-create.php +++ b/inc/api/schemas/domain-create.php @@ -20,32 +20,32 @@ defined('ABSPATH') || exit; */ return [ 'domain' => [ - 'description' => __("Your Domain name. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-ultimo'), + 'description' => __("Your Domain name. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'blog_id' => [ - 'description' => __('The blog ID attached to this domain.', 'wp-ultimo'), + 'description' => __('The blog ID attached to this domain.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => true, ], 'active' => [ - 'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'), + 'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'primary_domain' => [ - 'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'wp-ultimo'), + 'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'secure' => [ - 'description' => __('If this domain has some SSL security or not.', 'wp-ultimo'), + 'description' => __('If this domain has some SSL security or not.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'stage' => [ - 'description' => __('The state of the domain model object. Can be one of this options: checking-dns, checking-ssl-cert, done-without-ssl, done and failed.', 'wp-ultimo'), + 'description' => __('The state of the domain model object. Can be one of this options: checking-dns, checking-ssl-cert, done-without-ssl, done and failed.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -57,22 +57,22 @@ return [ ], ], 'date_created' => [ - 'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'wp-ultimo'), + 'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/domain-update.php b/inc/api/schemas/domain-update.php index 37a35a0..9d1f49a 100644 --- a/inc/api/schemas/domain-update.php +++ b/inc/api/schemas/domain-update.php @@ -20,32 +20,32 @@ defined('ABSPATH') || exit; */ return [ 'domain' => [ - 'description' => __("Your Domain name. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-ultimo'), + 'description' => __("Your Domain name. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'blog_id' => [ - 'description' => __('The blog ID attached to this domain.', 'wp-ultimo'), + 'description' => __('The blog ID attached to this domain.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'active' => [ - 'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'), + 'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'primary_domain' => [ - 'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'wp-ultimo'), + 'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'secure' => [ - 'description' => __('If this domain has some SSL security or not.', 'wp-ultimo'), + 'description' => __('If this domain has some SSL security or not.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'stage' => [ - 'description' => __('The state of the domain model object. Can be one of this options: checking-dns, checking-ssl-cert, done-without-ssl, done and failed.', 'wp-ultimo'), + 'description' => __('The state of the domain model object. Can be one of this options: checking-dns, checking-ssl-cert, done-without-ssl, done and failed.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -57,22 +57,22 @@ return [ ], ], 'date_created' => [ - 'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'wp-ultimo'), + 'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/email-create.php b/inc/api/schemas/email-create.php index 504ec28..5fd7ddb 100644 --- a/inc/api/schemas/email-create.php +++ b/inc/api/schemas/email-create.php @@ -20,7 +20,7 @@ defined('ABSPATH') || exit; */ return [ 'style' => [ - 'description' => __("The email style. Can be 'html' or 'plain-text'.", 'wp-ultimo'), + 'description' => __("The email style. Can be 'html' or 'plain-text'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -29,32 +29,32 @@ return [ ], ], 'schedule' => [ - 'description' => __('Whether or not this is a scheduled email.', 'wp-ultimo'), + 'description' => __('Whether or not this is a scheduled email.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'type' => [ - 'description' => __('The type being set.', 'wp-ultimo'), + 'description' => __('The type being set.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'event' => [ - 'description' => __('The event that needs to be fired for this email to be sent.', 'wp-ultimo'), + 'description' => __('The event that needs to be fired for this email to be sent.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'send_hours' => [ - 'description' => __('The amount of hours that the email will wait before is sent.', 'wp-ultimo'), + 'description' => __('The amount of hours that the email will wait before is sent.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'send_days' => [ - 'description' => __('The amount of days that the email will wait before is sent.', 'wp-ultimo'), + 'description' => __('The amount of days that the email will wait before is sent.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'schedule_type' => [ - 'description' => __("The type of schedule. Can be 'days' or 'hours'.", 'wp-ultimo'), + 'description' => __("The type of schedule. Can be 'days' or 'hours'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -63,27 +63,27 @@ return [ ], ], 'name' => [ - 'description' => __('The name being set as title.', 'wp-ultimo'), + 'description' => __('The name being set as title.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'custom_sender' => [ - 'description' => __('If has a custom sender.', 'wp-ultimo'), + 'description' => __('If has a custom sender.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'custom_sender_name' => [ - 'description' => __('The name of the custom sender. E.g. From: John Doe.', 'wp-ultimo'), + 'description' => __('The name of the custom sender. E.g. From: John Doe.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'custom_sender_email' => [ - 'description' => __('The email of the custom sender. E.g. From: johndoe@gmail.com.', 'wp-ultimo'), + 'description' => __('The email of the custom sender. E.g. From: johndoe@gmail.com.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'target' => [ - 'description' => __("If we should send this to a customer or to the network admin. Can be 'customer' or 'admin'.", 'wp-ultimo'), + 'description' => __("If we should send this to a customer or to the network admin. Can be 'customer' or 'admin'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -92,52 +92,52 @@ return [ ], ], 'send_copy_to_admin' => [ - 'description' => __('Checks if we should send a copy of the email to the admin.', 'wp-ultimo'), + 'description' => __('Checks if we should send a copy of the email to the admin.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'active' => [ - 'description' => __('Set this email as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-ultimo'), + 'description' => __('Set this email as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'legacy' => [ - 'description' => __('Whether or not this is a legacy email.', 'wp-ultimo'), + 'description' => __('Whether or not this is a legacy email.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'title' => [ - 'description' => __('Post title.', 'wp-ultimo'), + 'description' => __('Post title.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'content' => [ - 'description' => __('Post content.', 'wp-ultimo'), + 'description' => __('Post content.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'excerpt' => [ - 'description' => __('Post excerpt.', 'wp-ultimo'), + 'description' => __('Post excerpt.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Post creation date.', 'wp-ultimo'), + 'description' => __('Post creation date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Post last modification date.', 'wp-ultimo'), + 'description' => __('Post last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/email-update.php b/inc/api/schemas/email-update.php index a604767..56012e8 100644 --- a/inc/api/schemas/email-update.php +++ b/inc/api/schemas/email-update.php @@ -20,7 +20,7 @@ defined('ABSPATH') || exit; */ return [ 'style' => [ - 'description' => __("The email style. Can be 'html' or 'plain-text'.", 'wp-ultimo'), + 'description' => __("The email style. Can be 'html' or 'plain-text'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -29,32 +29,32 @@ return [ ], ], 'schedule' => [ - 'description' => __('Whether or not this is a scheduled email.', 'wp-ultimo'), + 'description' => __('Whether or not this is a scheduled email.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'type' => [ - 'description' => __('The type being set.', 'wp-ultimo'), + 'description' => __('The type being set.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'event' => [ - 'description' => __('The event that needs to be fired for this email to be sent.', 'wp-ultimo'), + 'description' => __('The event that needs to be fired for this email to be sent.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'send_hours' => [ - 'description' => __('The amount of hours that the email will wait before is sent.', 'wp-ultimo'), + 'description' => __('The amount of hours that the email will wait before is sent.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'send_days' => [ - 'description' => __('The amount of days that the email will wait before is sent.', 'wp-ultimo'), + 'description' => __('The amount of days that the email will wait before is sent.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'schedule_type' => [ - 'description' => __("The type of schedule. Can be 'days' or 'hours'.", 'wp-ultimo'), + 'description' => __("The type of schedule. Can be 'days' or 'hours'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -63,27 +63,27 @@ return [ ], ], 'name' => [ - 'description' => __('The name being set as title.', 'wp-ultimo'), + 'description' => __('The name being set as title.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'custom_sender' => [ - 'description' => __('If has a custom sender.', 'wp-ultimo'), + 'description' => __('If has a custom sender.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'custom_sender_name' => [ - 'description' => __('The name of the custom sender. E.g. From: John Doe.', 'wp-ultimo'), + 'description' => __('The name of the custom sender. E.g. From: John Doe.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'custom_sender_email' => [ - 'description' => __('The email of the custom sender. E.g. From: johndoe@gmail.com.', 'wp-ultimo'), + 'description' => __('The email of the custom sender. E.g. From: johndoe@gmail.com.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'target' => [ - 'description' => __("If we should send this to a customer or to the network admin. Can be 'customer' or 'admin'.", 'wp-ultimo'), + 'description' => __("If we should send this to a customer or to the network admin. Can be 'customer' or 'admin'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -92,52 +92,52 @@ return [ ], ], 'send_copy_to_admin' => [ - 'description' => __('Checks if we should send a copy of the email to the admin.', 'wp-ultimo'), + 'description' => __('Checks if we should send a copy of the email to the admin.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'active' => [ - 'description' => __('Set this email as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-ultimo'), + 'description' => __('Set this email as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'legacy' => [ - 'description' => __('Whether or not this is a legacy email.', 'wp-ultimo'), + 'description' => __('Whether or not this is a legacy email.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'title' => [ - 'description' => __('Post title.', 'wp-ultimo'), + 'description' => __('Post title.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'content' => [ - 'description' => __('Post content.', 'wp-ultimo'), + 'description' => __('Post content.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'excerpt' => [ - 'description' => __('Post excerpt.', 'wp-ultimo'), + 'description' => __('Post excerpt.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Post creation date.', 'wp-ultimo'), + 'description' => __('Post creation date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Post last modification date.', 'wp-ultimo'), + 'description' => __('Post last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/event-create.php b/inc/api/schemas/event-create.php index 9f82b38..956e24e 100644 --- a/inc/api/schemas/event-create.php +++ b/inc/api/schemas/event-create.php @@ -20,22 +20,22 @@ defined('ABSPATH') || exit; */ return [ 'severity' => [ - 'description' => __('Severity of the problem.', 'wp-ultimo'), + 'description' => __('Severity of the problem.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => true, ], 'date_created' => [ - 'description' => __('Date when the event was created.', 'wp-ultimo'), + 'description' => __('Date when the event was created.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'payload' => [ - 'description' => __('Payload of the event.', 'wp-ultimo'), + 'description' => __('Payload of the event.', 'wp-multisite-waas'), 'type' => 'object', 'required' => true, ], 'initiator' => [ - 'description' => __('The type of user responsible for initiating the event. There are two options: Manual and System. By default, the event is saved as manual.', 'wp-ultimo'), + 'description' => __('The type of user responsible for initiating the event. There are two options: Manual and System. By default, the event is saved as manual.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -44,32 +44,32 @@ return [ ], ], 'object_type' => [ - 'description' => __("The type of object related to this event. It's usually the model name.", 'wp-ultimo'), + 'description' => __("The type of object related to this event. It's usually the model name.", 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'slug' => [ - 'description' => __('The event slug. It needs to be unique and preferably make it clear what it is about. Example: account_created is about creating an account.', 'wp-ultimo'), + 'description' => __('The event slug. It needs to be unique and preferably make it clear what it is about. Example: account_created is about creating an account.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'object_id' => [ - 'description' => __('The ID of the related objects.', 'wp-ultimo'), + 'description' => __('The ID of the related objects.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/event-update.php b/inc/api/schemas/event-update.php index e8abcf8..82ab3a9 100644 --- a/inc/api/schemas/event-update.php +++ b/inc/api/schemas/event-update.php @@ -20,22 +20,22 @@ defined('ABSPATH') || exit; */ return [ 'severity' => [ - 'description' => __('Severity of the problem.', 'wp-ultimo'), + 'description' => __('Severity of the problem.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'date_created' => [ - 'description' => __('Date when the event was created.', 'wp-ultimo'), + 'description' => __('Date when the event was created.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'payload' => [ - 'description' => __('Payload of the event.', 'wp-ultimo'), + 'description' => __('Payload of the event.', 'wp-multisite-waas'), 'type' => 'object', 'required' => false, ], 'initiator' => [ - 'description' => __('The type of user responsible for initiating the event. There are two options: Manual and System. By default, the event is saved as manual.', 'wp-ultimo'), + 'description' => __('The type of user responsible for initiating the event. There are two options: Manual and System. By default, the event is saved as manual.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -44,32 +44,32 @@ return [ ], ], 'object_type' => [ - 'description' => __("The type of object related to this event. It's usually the model name.", 'wp-ultimo'), + 'description' => __("The type of object related to this event. It's usually the model name.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'slug' => [ - 'description' => __('The event slug. It needs to be unique and preferably make it clear what it is about. Example: account_created is about creating an account.', 'wp-ultimo'), + 'description' => __('The event slug. It needs to be unique and preferably make it clear what it is about. Example: account_created is about creating an account.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'object_id' => [ - 'description' => __('The ID of the related objects.', 'wp-ultimo'), + 'description' => __('The ID of the related objects.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/membership-create.php b/inc/api/schemas/membership-create.php index c5cbf4d..bbeff3f 100644 --- a/inc/api/schemas/membership-create.php +++ b/inc/api/schemas/membership-create.php @@ -22,37 +22,37 @@ use WP_Ultimo\Database\Memberships\Membership_Status; */ return [ 'customer_id' => [ - 'description' => __('The ID of the customer attached to this membership.', 'wp-ultimo'), + 'description' => __('The ID of the customer attached to this membership.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => true, ], 'user_id' => [ - 'description' => __('The user ID attached to this membership.', 'wp-ultimo'), + 'description' => __('The user ID attached to this membership.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'plan_id' => [ - 'description' => __('The plan ID associated with the membership.', 'wp-ultimo'), + 'description' => __('The plan ID associated with the membership.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => true, ], 'addon_products' => [ - 'description' => __('Additional products related to this membership. Services, Packages or other types of products.', 'wp-ultimo'), + 'description' => __('Additional products related to this membership. Services, Packages or other types of products.', 'wp-multisite-waas'), 'type' => 'mixed', 'required' => false, ], 'currency' => [ - 'description' => __("The currency that this membership. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'), + 'description' => __("The currency that this membership. It's a 3-letter code. E.g. 'USD'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'duration' => [ - 'description' => __('The interval period between a charge. Only the interval amount, the unit will be defined in another property.', 'wp-ultimo'), + 'description' => __('The interval period between a charge. Only the interval amount, the unit will be defined in another property.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'duration_unit' => [ - 'description' => __("The duration amount type. Can be 'day', 'week', 'month' or 'year'.", 'wp-ultimo'), + 'description' => __("The duration amount type. Can be 'day', 'week', 'month' or 'year'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -63,118 +63,118 @@ return [ ], ], 'amount' => [ - 'description' => __('The product amount.', 'wp-ultimo'), + 'description' => __('The product amount.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'initial_amount' => [ - 'description' => __('The initial amount charged for this membership, including the setup fee.', 'wp-ultimo'), + 'description' => __('The initial amount charged for this membership, including the setup fee.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'date_created' => [ - 'description' => __('Date of creation of this membership.', 'wp-ultimo'), + 'description' => __('Date of creation of this membership.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_activated' => [ - 'description' => __('Date when this membership was activated.', 'wp-ultimo'), + 'description' => __('Date when this membership was activated.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_trial_end' => [ - 'description' => __('Date when the trial period ends, if this membership has or had a trial period.', 'wp-ultimo'), + 'description' => __('Date when the trial period ends, if this membership has or had a trial period.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_renewed' => [ - 'description' => __('Date when the membership was cancelled.', 'wp-ultimo'), + 'description' => __('Date when the membership was cancelled.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_cancellation' => [ - 'description' => __('Date when the membership was cancelled.', 'wp-ultimo'), + 'description' => __('Date when the membership was cancelled.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_expiration' => [ - 'description' => __('Date when the membership will expiry.', 'wp-ultimo'), + 'description' => __('Date when the membership will expiry.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_payment_plan_completed' => [ - 'description' => __('Change of the payment completion for the plan value.', 'wp-ultimo'), + 'description' => __('Change of the payment completion for the plan value.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'auto_renew' => [ - 'description' => __('If this membership should auto-renewal.', 'wp-ultimo'), + 'description' => __('If this membership should auto-renewal.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'times_billed' => [ - 'description' => __('Amount of times this membership got billed.', 'wp-ultimo'), + 'description' => __('Amount of times this membership got billed.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'billing_cycles' => [ - 'description' => __('Maximum times we should charge this membership.', 'wp-ultimo'), + 'description' => __('Maximum times we should charge this membership.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'status' => [ - 'description' => __("The membership status. Can be 'pending', 'active', 'on-hold', 'expired', 'cancelled' or other values added by third-party add-ons.", 'wp-ultimo'), + 'description' => __("The membership status. Can be 'pending', 'active', 'on-hold', 'expired', 'cancelled' or other values added by third-party add-ons.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => Membership_Status::get_allowed_list(), ], 'gateway_customer_id' => [ - 'description' => __('The ID of the customer on the payment gateway database.', 'wp-ultimo'), + 'description' => __('The ID of the customer on the payment gateway database.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'gateway_subscription_id' => [ - 'description' => __('The ID of the subscription on the payment gateway database.', 'wp-ultimo'), + 'description' => __('The ID of the subscription on the payment gateway database.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'gateway' => [ - 'description' => __('ID of the gateway being used on this subscription.', 'wp-ultimo'), + 'description' => __('ID of the gateway being used on this subscription.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'signup_method' => [ - 'description' => __('Signup method used to create this membership.', 'wp-ultimo'), + 'description' => __('Signup method used to create this membership.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'upgraded_from' => [ - 'description' => __('Plan that this membership upgraded from.', 'wp-ultimo'), + 'description' => __('Plan that this membership upgraded from.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'date_modified' => [ - 'description' => __('Date this membership was last modified.', 'wp-ultimo'), + 'description' => __('Date this membership was last modified.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'disabled' => [ - 'description' => __('If this membership is a disabled one.', 'wp-ultimo'), + 'description' => __('If this membership is a disabled one.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'recurring' => [ - 'description' => __('If this membership is recurring (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'wp-ultimo'), + 'description' => __('If this membership is recurring (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/membership-update.php b/inc/api/schemas/membership-update.php index 2db88fa..534b781 100644 --- a/inc/api/schemas/membership-update.php +++ b/inc/api/schemas/membership-update.php @@ -22,37 +22,37 @@ use WP_Ultimo\Database\Memberships\Membership_Status; */ return [ 'customer_id' => [ - 'description' => __('The ID of the customer attached to this membership.', 'wp-ultimo'), + 'description' => __('The ID of the customer attached to this membership.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'user_id' => [ - 'description' => __('The user ID attached to this membership.', 'wp-ultimo'), + 'description' => __('The user ID attached to this membership.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'plan_id' => [ - 'description' => __('The plan ID associated with the membership.', 'wp-ultimo'), + 'description' => __('The plan ID associated with the membership.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'addon_products' => [ - 'description' => __('Additional products related to this membership. Services, Packages or other types of products.', 'wp-ultimo'), + 'description' => __('Additional products related to this membership. Services, Packages or other types of products.', 'wp-multisite-waas'), 'type' => 'mixed', 'required' => false, ], 'currency' => [ - 'description' => __("The currency that this membership. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'), + 'description' => __("The currency that this membership. It's a 3-letter code. E.g. 'USD'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'duration' => [ - 'description' => __('The interval period between a charge. Only the interval amount, the unit will be defined in another property.', 'wp-ultimo'), + 'description' => __('The interval period between a charge. Only the interval amount, the unit will be defined in another property.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'duration_unit' => [ - 'description' => __("The duration amount type. Can be 'day', 'week', 'month' or 'year'.", 'wp-ultimo'), + 'description' => __("The duration amount type. Can be 'day', 'week', 'month' or 'year'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -63,118 +63,118 @@ return [ ], ], 'amount' => [ - 'description' => __('The product amount.', 'wp-ultimo'), + 'description' => __('The product amount.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'initial_amount' => [ - 'description' => __('The initial amount charged for this membership, including the setup fee.', 'wp-ultimo'), + 'description' => __('The initial amount charged for this membership, including the setup fee.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'date_created' => [ - 'description' => __('Date of creation of this membership.', 'wp-ultimo'), + 'description' => __('Date of creation of this membership.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_activated' => [ - 'description' => __('Date when this membership was activated.', 'wp-ultimo'), + 'description' => __('Date when this membership was activated.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_trial_end' => [ - 'description' => __('Date when the trial period ends, if this membership has or had a trial period.', 'wp-ultimo'), + 'description' => __('Date when the trial period ends, if this membership has or had a trial period.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_renewed' => [ - 'description' => __('Date when the membership was cancelled.', 'wp-ultimo'), + 'description' => __('Date when the membership was cancelled.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_cancellation' => [ - 'description' => __('Date when the membership was cancelled.', 'wp-ultimo'), + 'description' => __('Date when the membership was cancelled.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_expiration' => [ - 'description' => __('Date when the membership will expiry.', 'wp-ultimo'), + 'description' => __('Date when the membership will expiry.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_payment_plan_completed' => [ - 'description' => __('Change of the payment completion for the plan value.', 'wp-ultimo'), + 'description' => __('Change of the payment completion for the plan value.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'auto_renew' => [ - 'description' => __('If this membership should auto-renewal.', 'wp-ultimo'), + 'description' => __('If this membership should auto-renewal.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'times_billed' => [ - 'description' => __('Amount of times this membership got billed.', 'wp-ultimo'), + 'description' => __('Amount of times this membership got billed.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'billing_cycles' => [ - 'description' => __('Maximum times we should charge this membership.', 'wp-ultimo'), + 'description' => __('Maximum times we should charge this membership.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'status' => [ - 'description' => __("The membership status. Can be 'pending', 'active', 'on-hold', 'expired', 'cancelled' or other values added by third-party add-ons.", 'wp-ultimo'), + 'description' => __("The membership status. Can be 'pending', 'active', 'on-hold', 'expired', 'cancelled' or other values added by third-party add-ons.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => Membership_Status::get_allowed_list(), ], 'gateway_customer_id' => [ - 'description' => __('The ID of the customer on the payment gateway database.', 'wp-ultimo'), + 'description' => __('The ID of the customer on the payment gateway database.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'gateway_subscription_id' => [ - 'description' => __('The ID of the subscription on the payment gateway database.', 'wp-ultimo'), + 'description' => __('The ID of the subscription on the payment gateway database.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'gateway' => [ - 'description' => __('ID of the gateway being used on this subscription.', 'wp-ultimo'), + 'description' => __('ID of the gateway being used on this subscription.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'signup_method' => [ - 'description' => __('Signup method used to create this membership.', 'wp-ultimo'), + 'description' => __('Signup method used to create this membership.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'upgraded_from' => [ - 'description' => __('Plan that this membership upgraded from.', 'wp-ultimo'), + 'description' => __('Plan that this membership upgraded from.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'date_modified' => [ - 'description' => __('Date this membership was last modified.', 'wp-ultimo'), + 'description' => __('Date this membership was last modified.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'disabled' => [ - 'description' => __('If this membership is a disabled one.', 'wp-ultimo'), + 'description' => __('If this membership is a disabled one.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'recurring' => [ - 'description' => __('If this membership is recurring (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'wp-ultimo'), + 'description' => __('If this membership is recurring (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/payment-create.php b/inc/api/schemas/payment-create.php index 1975ec0..bafa100 100644 --- a/inc/api/schemas/payment-create.php +++ b/inc/api/schemas/payment-create.php @@ -22,103 +22,103 @@ use WP_Ultimo\Database\Payments\Payment_Status; */ return [ 'customer_id' => [ - 'description' => __('The ID of the customer attached to this payment.', 'wp-ultimo'), + 'description' => __('The ID of the customer attached to this payment.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => true, ], 'membership_id' => [ - 'description' => __('The ID of the membership attached to this payment.', 'wp-ultimo'), + 'description' => __('The ID of the membership attached to this payment.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => true, ], 'parent_id' => [ - 'description' => __('The ID from another payment that this payment is related to.', 'wp-ultimo'), + 'description' => __('The ID from another payment that this payment is related to.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'currency' => [ - 'description' => __("The currency of this payment. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'), + 'description' => __("The currency of this payment. It's a 3-letter code. E.g. 'USD'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'subtotal' => [ - 'description' => __('Value before taxes, discounts, fees and other changes.', 'wp-ultimo'), + 'description' => __('Value before taxes, discounts, fees and other changes.', 'wp-multisite-waas'), 'type' => 'number', 'required' => true, ], 'refund_total' => [ - 'description' => __('Total amount refunded.', 'wp-ultimo'), + 'description' => __('Total amount refunded.', 'wp-multisite-waas'), 'type' => 'number', 'required' => false, ], 'tax_total' => [ - 'description' => __('The amount, in currency, of the tax.', 'wp-ultimo'), + 'description' => __('The amount, in currency, of the tax.', 'wp-multisite-waas'), 'type' => 'number', 'required' => false, ], 'discount_code' => [ - 'description' => __('Discount code used.', 'wp-ultimo'), + 'description' => __('Discount code used.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'total' => [ - 'description' => __('This takes into account fees, discounts and credits.', 'wp-ultimo'), + 'description' => __('This takes into account fees, discounts and credits.', 'wp-multisite-waas'), 'type' => 'number', 'required' => true, ], 'status' => [ - 'description' => __("The payment status: Can be 'pending', 'completed', 'refunded', 'partially-refunded', 'partially-paid', 'failed', 'cancelled' or other values added by third-party add-ons.", 'wp-ultimo'), + 'description' => __("The payment status: Can be 'pending', 'completed', 'refunded', 'partially-refunded', 'partially-paid', 'failed', 'cancelled' or other values added by third-party add-ons.", 'wp-multisite-waas'), 'type' => 'string', 'required' => true, 'enum' => Payment_Status::get_allowed_list(), ], 'gateway' => [ - 'description' => __('ID of the gateway being used on this payment.', 'wp-ultimo'), + 'description' => __('ID of the gateway being used on this payment.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'product_id' => [ - 'description' => __('The ID of the product of this payment.', 'wp-ultimo'), + 'description' => __('The ID of the product of this payment.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'gateway_payment_id' => [ - 'description' => __('The ID of the payment on the gateway, if it exists.', 'wp-ultimo'), + 'description' => __('The ID of the payment on the gateway, if it exists.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'discount_total' => [ - 'description' => __('The total value of the discounts applied to this payment.', 'wp-ultimo'), + 'description' => __('The total value of the discounts applied to this payment.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'invoice_number' => [ - 'description' => __('Sequential invoice number assigned to this payment.', 'wp-ultimo'), + 'description' => __('Sequential invoice number assigned to this payment.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'cancel_membership_on_refund' => [ - 'description' => __('Holds if we need to cancel the membership on refund.', 'wp-ultimo'), + 'description' => __('Holds if we need to cancel the membership on refund.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'date_created' => [ - 'description' => __('Model creation date.', 'wp-ultimo'), + 'description' => __('Model creation date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/payment-update.php b/inc/api/schemas/payment-update.php index 51aa85c..24a539d 100644 --- a/inc/api/schemas/payment-update.php +++ b/inc/api/schemas/payment-update.php @@ -22,103 +22,103 @@ use WP_Ultimo\Database\Payments\Payment_Status; */ return [ 'customer_id' => [ - 'description' => __('The ID of the customer attached to this payment.', 'wp-ultimo'), + 'description' => __('The ID of the customer attached to this payment.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'membership_id' => [ - 'description' => __('The ID of the membership attached to this payment.', 'wp-ultimo'), + 'description' => __('The ID of the membership attached to this payment.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'parent_id' => [ - 'description' => __('The ID from another payment that this payment is related to.', 'wp-ultimo'), + 'description' => __('The ID from another payment that this payment is related to.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'currency' => [ - 'description' => __("The currency of this payment. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'), + 'description' => __("The currency of this payment. It's a 3-letter code. E.g. 'USD'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'subtotal' => [ - 'description' => __('Value before taxes, discounts, fees and other changes.', 'wp-ultimo'), + 'description' => __('Value before taxes, discounts, fees and other changes.', 'wp-multisite-waas'), 'type' => 'number', 'required' => false, ], 'refund_total' => [ - 'description' => __('Total amount refunded.', 'wp-ultimo'), + 'description' => __('Total amount refunded.', 'wp-multisite-waas'), 'type' => 'number', 'required' => false, ], 'tax_total' => [ - 'description' => __('The amount, in currency, of the tax.', 'wp-ultimo'), + 'description' => __('The amount, in currency, of the tax.', 'wp-multisite-waas'), 'type' => 'number', 'required' => false, ], 'discount_code' => [ - 'description' => __('Discount code used.', 'wp-ultimo'), + 'description' => __('Discount code used.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'total' => [ - 'description' => __('This takes into account fees, discounts and credits.', 'wp-ultimo'), + 'description' => __('This takes into account fees, discounts and credits.', 'wp-multisite-waas'), 'type' => 'number', 'required' => false, ], 'status' => [ - 'description' => __("The payment status: Can be 'pending', 'completed', 'refunded', 'partially-refunded', 'partially-paid', 'failed', 'cancelled' or other values added by third-party add-ons.", 'wp-ultimo'), + 'description' => __("The payment status: Can be 'pending', 'completed', 'refunded', 'partially-refunded', 'partially-paid', 'failed', 'cancelled' or other values added by third-party add-ons.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => Payment_Status::get_allowed_list(), ], 'gateway' => [ - 'description' => __('ID of the gateway being used on this payment.', 'wp-ultimo'), + 'description' => __('ID of the gateway being used on this payment.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'product_id' => [ - 'description' => __('The ID of the product of this payment.', 'wp-ultimo'), + 'description' => __('The ID of the product of this payment.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'gateway_payment_id' => [ - 'description' => __('The ID of the payment on the gateway, if it exists.', 'wp-ultimo'), + 'description' => __('The ID of the payment on the gateway, if it exists.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'discount_total' => [ - 'description' => __('The total value of the discounts applied to this payment.', 'wp-ultimo'), + 'description' => __('The total value of the discounts applied to this payment.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'invoice_number' => [ - 'description' => __('Sequential invoice number assigned to this payment.', 'wp-ultimo'), + 'description' => __('Sequential invoice number assigned to this payment.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'cancel_membership_on_refund' => [ - 'description' => __('Holds if we need to cancel the membership on refund.', 'wp-ultimo'), + 'description' => __('Holds if we need to cancel the membership on refund.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'date_created' => [ - 'description' => __('Model creation date.', 'wp-ultimo'), + 'description' => __('Model creation date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/product-create.php b/inc/api/schemas/product-create.php index b0904e2..4a5c75b 100644 --- a/inc/api/schemas/product-create.php +++ b/inc/api/schemas/product-create.php @@ -20,32 +20,32 @@ defined('ABSPATH') || exit; */ return [ 'featured_image_id' => [ - 'description' => __('The ID of the feature image of the product.', 'wp-ultimo'), + 'description' => __('The ID of the feature image of the product.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'slug' => [ - 'description' => __('The product slug. It needs to be unique and preferably make it clear what it is about. Example: my_new_product.', 'wp-ultimo'), + 'description' => __('The product slug. It needs to be unique and preferably make it clear what it is about. Example: my_new_product.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'name' => [ - 'description' => __('Your product name, which is used as product title as well.', 'wp-ultimo'), + 'description' => __('Your product name, which is used as product title as well.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'description' => [ - 'description' => __('A description for the product, usually a short text.', 'wp-ultimo'), + 'description' => __('A description for the product, usually a short text.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'currency' => [ - 'description' => __("The currency that this product accepts. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'), + 'description' => __("The currency that this product accepts. It's a 3-letter code. E.g. 'USD'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'pricing_type' => [ - 'description' => __("The pricing type can be 'free', 'paid' or 'contact_us'.", 'wp-ultimo'), + 'description' => __("The pricing type can be 'free', 'paid' or 'contact_us'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -55,12 +55,12 @@ return [ ], ], 'trial_duration' => [ - 'description' => __('The duration of the trial period of this product, if the product has one.', 'wp-ultimo'), + 'description' => __('The duration of the trial period of this product, if the product has one.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'trial_duration_unit' => [ - 'description' => __('The unit of the trial duration amount. Can be day, week, month or year.', 'wp-ultimo'), + 'description' => __('The unit of the trial duration amount. Can be day, week, month or year.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -71,12 +71,12 @@ return [ ], ], 'duration' => [ - 'description' => __('Time interval between charges.', 'wp-ultimo'), + 'description' => __('Time interval between charges.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'duration_unit' => [ - 'description' => __('Time interval unit between charges.', 'wp-ultimo'), + 'description' => __('Time interval unit between charges.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -87,22 +87,22 @@ return [ ], ], 'amount' => [ - 'description' => __('The value of this product. E.g. 19.99.', 'wp-ultimo'), + 'description' => __('The value of this product. E.g. 19.99.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'setup_fee' => [ - 'description' => __('The setup fee value, if the product has one. E.g. 159.99.', 'wp-ultimo'), + 'description' => __('The setup fee value, if the product has one. E.g. 159.99.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'active' => [ - 'description' => __('Set this product as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'), + 'description' => __('Set this product as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'type' => [ - 'description' => __("The default product types are 'product', 'service' and 'package'. More types can be add using the product type filter.", 'wp-ultimo'), + 'description' => __("The default product types are 'product', 'service' and 'package'. More types can be add using the product type filter.", 'wp-multisite-waas'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -112,87 +112,87 @@ return [ ], ], 'parent_id' => [ - 'description' => __('The ID from another Product that this product is related to.', 'wp-ultimo'), + 'description' => __('The ID from another Product that this product is related to.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'recurring' => [ - 'description' => __('Set this product as a recurring one (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'wp-ultimo'), + 'description' => __('Set this product as a recurring one (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'billing_cycles' => [ - 'description' => __('The number of times we should charge this product.', 'wp-ultimo'), + 'description' => __('The number of times we should charge this product.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'date_created' => [ - 'description' => __('Date when this was created.', 'wp-ultimo'), + 'description' => __('Date when this was created.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Date when this was last modified.', 'wp-ultimo'), + 'description' => __('Date when this was last modified.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'taxable' => [ - 'description' => __('Set this product as a taxable one (true), which means tax rules are applied to, or not taxable (false).', 'wp-ultimo'), + 'description' => __('Set this product as a taxable one (true), which means tax rules are applied to, or not taxable (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'tax_category' => [ - 'description' => __('Category of taxes applied to this product. You need to set this if taxable is set to true.', 'wp-ultimo'), + 'description' => __('Category of taxes applied to this product. You need to set this if taxable is set to true.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'contact_us_label' => [ - 'description' => __("If the product is the 'contact_us' type, it will need a label for the contact us button.", 'wp-ultimo'), + 'description' => __("If the product is the 'contact_us' type, it will need a label for the contact us button.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'contact_us_link' => [ - 'description' => __('The url where the contact us button will lead to.', 'wp-ultimo'), + 'description' => __('The url where the contact us button will lead to.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'feature_list' => [ - 'description' => __('A list (array) of features of the product.', 'wp-ultimo'), + 'description' => __('A list (array) of features of the product.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'customer_role' => [ - 'description' => __('The customer role of this product.', 'wp-ultimo'), + 'description' => __('The customer role of this product.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'available_addons' => [ - 'description' => __('The available addons of this product.', 'wp-ultimo'), + 'description' => __('The available addons of this product.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'group' => [ - 'description' => __('The group of this product, if has any.', 'wp-ultimo'), + 'description' => __('The group of this product, if has any.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'legacy_options' => [ - 'description' => __('If the legacy options are enabled.', 'wp-ultimo'), + 'description' => __('If the legacy options are enabled.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'featured_plan' => [ - 'description' => __('Feature list for pricing tables.', 'wp-ultimo'), + 'description' => __('Feature list for pricing tables.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], diff --git a/inc/api/schemas/product-update.php b/inc/api/schemas/product-update.php index 46a175f..fe2ceb1 100644 --- a/inc/api/schemas/product-update.php +++ b/inc/api/schemas/product-update.php @@ -20,32 +20,32 @@ defined('ABSPATH') || exit; */ return [ 'featured_image_id' => [ - 'description' => __('The ID of the feature image of the product.', 'wp-ultimo'), + 'description' => __('The ID of the feature image of the product.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'slug' => [ - 'description' => __('The product slug. It needs to be unique and preferably make it clear what it is about. Example: my_new_product.', 'wp-ultimo'), + 'description' => __('The product slug. It needs to be unique and preferably make it clear what it is about. Example: my_new_product.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'name' => [ - 'description' => __('Your product name, which is used as product title as well.', 'wp-ultimo'), + 'description' => __('Your product name, which is used as product title as well.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'description' => [ - 'description' => __('A description for the product, usually a short text.', 'wp-ultimo'), + 'description' => __('A description for the product, usually a short text.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'currency' => [ - 'description' => __("The currency that this product accepts. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'), + 'description' => __("The currency that this product accepts. It's a 3-letter code. E.g. 'USD'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'pricing_type' => [ - 'description' => __("The pricing type can be 'free', 'paid' or 'contact_us'.", 'wp-ultimo'), + 'description' => __("The pricing type can be 'free', 'paid' or 'contact_us'.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -55,12 +55,12 @@ return [ ], ], 'trial_duration' => [ - 'description' => __('The duration of the trial period of this product, if the product has one.', 'wp-ultimo'), + 'description' => __('The duration of the trial period of this product, if the product has one.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'trial_duration_unit' => [ - 'description' => __('The unit of the trial duration amount. Can be day, week, month or year.', 'wp-ultimo'), + 'description' => __('The unit of the trial duration amount. Can be day, week, month or year.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -71,12 +71,12 @@ return [ ], ], 'duration' => [ - 'description' => __('Time interval between charges.', 'wp-ultimo'), + 'description' => __('Time interval between charges.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'duration_unit' => [ - 'description' => __('Time interval unit between charges.', 'wp-ultimo'), + 'description' => __('Time interval unit between charges.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -87,22 +87,22 @@ return [ ], ], 'amount' => [ - 'description' => __('The value of this product. E.g. 19.99.', 'wp-ultimo'), + 'description' => __('The value of this product. E.g. 19.99.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'setup_fee' => [ - 'description' => __('The setup fee value, if the product has one. E.g. 159.99.', 'wp-ultimo'), + 'description' => __('The setup fee value, if the product has one. E.g. 159.99.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'active' => [ - 'description' => __('Set this product as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'), + 'description' => __('Set this product as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'type' => [ - 'description' => __("The default product types are 'product', 'service' and 'package'. More types can be add using the product type filter.", 'wp-ultimo'), + 'description' => __("The default product types are 'product', 'service' and 'package'. More types can be add using the product type filter.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -112,87 +112,87 @@ return [ ], ], 'parent_id' => [ - 'description' => __('The ID from another Product that this product is related to.', 'wp-ultimo'), + 'description' => __('The ID from another Product that this product is related to.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'recurring' => [ - 'description' => __('Set this product as a recurring one (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'wp-ultimo'), + 'description' => __('Set this product as a recurring one (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'billing_cycles' => [ - 'description' => __('The number of times we should charge this product.', 'wp-ultimo'), + 'description' => __('The number of times we should charge this product.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'date_created' => [ - 'description' => __('Date when this was created.', 'wp-ultimo'), + 'description' => __('Date when this was created.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Date when this was last modified.', 'wp-ultimo'), + 'description' => __('Date when this was last modified.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'taxable' => [ - 'description' => __('Set this product as a taxable one (true), which means tax rules are applied to, or not taxable (false).', 'wp-ultimo'), + 'description' => __('Set this product as a taxable one (true), which means tax rules are applied to, or not taxable (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'tax_category' => [ - 'description' => __('Category of taxes applied to this product. You need to set this if taxable is set to true.', 'wp-ultimo'), + 'description' => __('Category of taxes applied to this product. You need to set this if taxable is set to true.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'contact_us_label' => [ - 'description' => __("If the product is the 'contact_us' type, it will need a label for the contact us button.", 'wp-ultimo'), + 'description' => __("If the product is the 'contact_us' type, it will need a label for the contact us button.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'contact_us_link' => [ - 'description' => __('The url where the contact us button will lead to.', 'wp-ultimo'), + 'description' => __('The url where the contact us button will lead to.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'feature_list' => [ - 'description' => __('A list (array) of features of the product.', 'wp-ultimo'), + 'description' => __('A list (array) of features of the product.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'customer_role' => [ - 'description' => __('The customer role of this product.', 'wp-ultimo'), + 'description' => __('The customer role of this product.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'available_addons' => [ - 'description' => __('The available addons of this product.', 'wp-ultimo'), + 'description' => __('The available addons of this product.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'group' => [ - 'description' => __('The group of this product, if has any.', 'wp-ultimo'), + 'description' => __('The group of this product, if has any.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'legacy_options' => [ - 'description' => __('If the legacy options are enabled.', 'wp-ultimo'), + 'description' => __('If the legacy options are enabled.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'featured_plan' => [ - 'description' => __('Feature list for pricing tables.', 'wp-ultimo'), + 'description' => __('Feature list for pricing tables.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], diff --git a/inc/api/schemas/site-create.php b/inc/api/schemas/site-create.php index fdfd14e..012390f 100644 --- a/inc/api/schemas/site-create.php +++ b/inc/api/schemas/site-create.php @@ -20,107 +20,107 @@ defined('ABSPATH') || exit; */ return [ 'categories' => [ - 'description' => __('The categories this site belongs to.', 'wp-ultimo'), + 'description' => __('The categories this site belongs to.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'featured_image_id' => [ - 'description' => __('The ID of the feature image of the site.', 'wp-ultimo'), + 'description' => __('The ID of the feature image of the site.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'site_id' => [ - 'description' => __('The network ID for this site.', 'wp-ultimo'), + 'description' => __('The network ID for this site.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => true, ], 'title' => [ - 'description' => __('The site title.', 'wp-ultimo'), + 'description' => __('The site title.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'name' => [ - 'description' => __('The site name.', 'wp-ultimo'), + 'description' => __('The site name.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'description' => [ - 'description' => __('A description for the site, usually a short text.', 'wp-ultimo'), + 'description' => __('A description for the site, usually a short text.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'domain' => [ - 'description' => __("The site domain. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-ultimo'), + 'description' => __("The site domain. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'path' => [ - 'description' => __('Path of the site. Used when in sub-directory mode.', 'wp-ultimo'), + 'description' => __('Path of the site. Used when in sub-directory mode.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'registered' => [ - 'description' => __('Date when the site was registered.', 'wp-ultimo'), + 'description' => __('Date when the site was registered.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'last_updated' => [ - 'description' => __('Date of the last update on this site.', 'wp-ultimo'), + 'description' => __('Date of the last update on this site.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'active' => [ - 'description' => __('Holds the ID of the customer that owns this site.', 'wp-ultimo'), + 'description' => __('Holds the ID of the customer that owns this site.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'public' => [ - 'description' => __('Set true if this site is a public one, false if not.', 'wp-ultimo'), + 'description' => __('Set true if this site is a public one, false if not.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'archived' => [ - 'description' => __('Is this an archived site.', 'wp-ultimo'), + 'description' => __('Is this an archived site.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'mature' => [ - 'description' => __('Is this a site with mature content.', 'wp-ultimo'), + 'description' => __('Is this a site with mature content.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'spam' => [ - 'description' => __('Is this an spam site.', 'wp-ultimo'), + 'description' => __('Is this an spam site.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'deleted' => [ - 'description' => __('Is this site deleted.', 'wp-ultimo'), + 'description' => __('Is this site deleted.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'lang_id' => [ - 'description' => __('The ID of the language being used on this site.', 'wp-ultimo'), + 'description' => __('The ID of the language being used on this site.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'customer_id' => [ - 'description' => __('The ID of the customer that owns this site.', 'wp-ultimo'), + 'description' => __('The ID of the customer that owns this site.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => true, ], 'membership_id' => [ - 'description' => __('The ID of the membership associated with this site, if any.', 'wp-ultimo'), + 'description' => __('The ID of the membership associated with this site, if any.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => true, ], 'template_id' => [ - 'description' => __('The ID of the templated used to create this site.', 'wp-ultimo'), + 'description' => __('The ID of the templated used to create this site.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'type' => [ - 'description' => __('The type of this particular site. Can be default, site_template, customer_owned, pending, external, main or other values added by third-party add-ons.', 'wp-ultimo'), + 'description' => __('The type of this particular site. Can be default, site_template, customer_owned, pending, external, main or other values added by third-party add-ons.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -133,32 +133,32 @@ return [ ], ], 'signup_options' => [ - 'description' => __('Keeps signup options for the site.', 'wp-ultimo'), + 'description' => __('Keeps signup options for the site.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'signup_meta' => [ - 'description' => __('Keeps signup meta for the site.', 'wp-ultimo'), + 'description' => __('Keeps signup meta for the site.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'date_created' => [ - 'description' => __('Model creation date.', 'wp-ultimo'), + 'description' => __('Model creation date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/site-update.php b/inc/api/schemas/site-update.php index 643306f..826a736 100644 --- a/inc/api/schemas/site-update.php +++ b/inc/api/schemas/site-update.php @@ -20,107 +20,107 @@ defined('ABSPATH') || exit; */ return [ 'categories' => [ - 'description' => __('The categories this site belongs to.', 'wp-ultimo'), + 'description' => __('The categories this site belongs to.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'featured_image_id' => [ - 'description' => __('The ID of the feature image of the site.', 'wp-ultimo'), + 'description' => __('The ID of the feature image of the site.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'site_id' => [ - 'description' => __('The network ID for this site.', 'wp-ultimo'), + 'description' => __('The network ID for this site.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'title' => [ - 'description' => __('The site title.', 'wp-ultimo'), + 'description' => __('The site title.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'name' => [ - 'description' => __('The site name.', 'wp-ultimo'), + 'description' => __('The site name.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'description' => [ - 'description' => __('A description for the site, usually a short text.', 'wp-ultimo'), + 'description' => __('A description for the site, usually a short text.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'domain' => [ - 'description' => __("The site domain. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-ultimo'), + 'description' => __("The site domain. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'path' => [ - 'description' => __('Path of the site. Used when in sub-directory mode.', 'wp-ultimo'), + 'description' => __('Path of the site. Used when in sub-directory mode.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'registered' => [ - 'description' => __('Date when the site was registered.', 'wp-ultimo'), + 'description' => __('Date when the site was registered.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'last_updated' => [ - 'description' => __('Date of the last update on this site.', 'wp-ultimo'), + 'description' => __('Date of the last update on this site.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'active' => [ - 'description' => __('Holds the ID of the customer that owns this site.', 'wp-ultimo'), + 'description' => __('Holds the ID of the customer that owns this site.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'public' => [ - 'description' => __('Set true if this site is a public one, false if not.', 'wp-ultimo'), + 'description' => __('Set true if this site is a public one, false if not.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'archived' => [ - 'description' => __('Is this an archived site.', 'wp-ultimo'), + 'description' => __('Is this an archived site.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'mature' => [ - 'description' => __('Is this a site with mature content.', 'wp-ultimo'), + 'description' => __('Is this a site with mature content.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'spam' => [ - 'description' => __('Is this an spam site.', 'wp-ultimo'), + 'description' => __('Is this an spam site.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'deleted' => [ - 'description' => __('Is this site deleted.', 'wp-ultimo'), + 'description' => __('Is this site deleted.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'lang_id' => [ - 'description' => __('The ID of the language being used on this site.', 'wp-ultimo'), + 'description' => __('The ID of the language being used on this site.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'customer_id' => [ - 'description' => __('The ID of the customer that owns this site.', 'wp-ultimo'), + 'description' => __('The ID of the customer that owns this site.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'membership_id' => [ - 'description' => __('The ID of the membership associated with this site, if any.', 'wp-ultimo'), + 'description' => __('The ID of the membership associated with this site, if any.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'template_id' => [ - 'description' => __('The ID of the templated used to create this site.', 'wp-ultimo'), + 'description' => __('The ID of the templated used to create this site.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'type' => [ - 'description' => __('The type of this particular site. Can be default, site_template, customer_owned, pending, external, main or other values added by third-party add-ons.', 'wp-ultimo'), + 'description' => __('The type of this particular site. Can be default, site_template, customer_owned, pending, external, main or other values added by third-party add-ons.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -133,32 +133,32 @@ return [ ], ], 'signup_options' => [ - 'description' => __('Keeps signup options for the site.', 'wp-ultimo'), + 'description' => __('Keeps signup options for the site.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'signup_meta' => [ - 'description' => __('Keeps signup meta for the site.', 'wp-ultimo'), + 'description' => __('Keeps signup meta for the site.', 'wp-multisite-waas'), 'type' => 'array', 'required' => false, ], 'date_created' => [ - 'description' => __('Model creation date.', 'wp-ultimo'), + 'description' => __('Model creation date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/webhook-create.php b/inc/api/schemas/webhook-create.php index 7a6160b..e507c76 100644 --- a/inc/api/schemas/webhook-create.php +++ b/inc/api/schemas/webhook-create.php @@ -20,62 +20,62 @@ defined('ABSPATH') || exit; */ return [ 'name' => [ - 'description' => __('Webhook name, which is used as product title as well.', 'wp-ultimo'), + 'description' => __('Webhook name, which is used as product title as well.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'webhook_url' => [ - 'description' => __('The URL used for the webhook call.', 'wp-ultimo'), + 'description' => __('The URL used for the webhook call.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'event' => [ - 'description' => __('The event that needs to be fired for this webhook to be sent.', 'wp-ultimo'), + 'description' => __('The event that needs to be fired for this webhook to be sent.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'event_count' => [ - 'description' => __('How many times this webhook was sent.', 'wp-ultimo'), + 'description' => __('How many times this webhook was sent.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'active' => [ - 'description' => __('Set this webhook as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-ultimo'), + 'description' => __('Set this webhook as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'hidden' => [ - 'description' => __('Is this webhook hidden.', 'wp-ultimo'), + 'description' => __('Is this webhook hidden.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'date_created' => [ - 'description' => __('Date when this was created.', 'wp-ultimo'), + 'description' => __('Date when this was created.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'integration' => [ - 'description' => __('The integration that created this webhook.', 'wp-ultimo'), + 'description' => __('The integration that created this webhook.', 'wp-multisite-waas'), 'type' => 'string', 'required' => true, ], 'date_last_failed' => [ - 'description' => __('The date when this webhook last fail.', 'wp-ultimo'), + 'description' => __('The date when this webhook last fail.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/webhook-update.php b/inc/api/schemas/webhook-update.php index 6ca7575..7c6effb 100644 --- a/inc/api/schemas/webhook-update.php +++ b/inc/api/schemas/webhook-update.php @@ -20,62 +20,62 @@ defined('ABSPATH') || exit; */ return [ 'name' => [ - 'description' => __('Webhook name, which is used as product title as well.', 'wp-ultimo'), + 'description' => __('Webhook name, which is used as product title as well.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'webhook_url' => [ - 'description' => __('The URL used for the webhook call.', 'wp-ultimo'), + 'description' => __('The URL used for the webhook call.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'event' => [ - 'description' => __('The event that needs to be fired for this webhook to be sent.', 'wp-ultimo'), + 'description' => __('The event that needs to be fired for this webhook to be sent.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'event_count' => [ - 'description' => __('How many times this webhook was sent.', 'wp-ultimo'), + 'description' => __('How many times this webhook was sent.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'active' => [ - 'description' => __('Set this webhook as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-ultimo'), + 'description' => __('Set this webhook as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'hidden' => [ - 'description' => __('Is this webhook hidden.', 'wp-ultimo'), + 'description' => __('Is this webhook hidden.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], 'date_created' => [ - 'description' => __('Date when this was created.', 'wp-ultimo'), + 'description' => __('Date when this was created.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'integration' => [ - 'description' => __('The integration that created this webhook.', 'wp-ultimo'), + 'description' => __('The integration that created this webhook.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_last_failed' => [ - 'description' => __('The date when this webhook last fail.', 'wp-ultimo'), + 'description' => __('The date when this webhook last fail.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'wp-ultimo'), + 'description' => __('Model last modification date.', 'wp-multisite-waas'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/trait-rest-api.php b/inc/api/trait-rest-api.php index a9e4ad2..aa82c7a 100644 --- a/inc/api/trait-rest-api.php +++ b/inc/api/trait-rest-api.php @@ -166,7 +166,7 @@ trait Rest_Api { $item = $this->model_class::get_by_id($request['id']); if (empty($item)) { - return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'wp-ultimo'), ['status' => 404]); + return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'wp-multisite-waas'), ['status' => 404]); } return rest_ensure_response($item); @@ -218,7 +218,7 @@ trait Rest_Api { } if ( ! $saved) { - return new \WP_Error("wu_rest_{$this->slug}", __('Something went wrong (Code 1).', 'wp-ultimo'), ['status' => 400]); + return new \WP_Error("wu_rest_{$this->slug}", __('Something went wrong (Code 1).', 'wp-multisite-waas'), ['status' => 400]); } return rest_ensure_response($item); @@ -239,7 +239,7 @@ trait Rest_Api { $item = $this->model_class::get_by_id($id); if (empty($item)) { - return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'wp-ultimo'), ['status' => 404]); + return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'wp-multisite-waas'), ['status' => 404]); } $params = array_filter( @@ -258,7 +258,7 @@ trait Rest_Api { } else { $error_message = sprintf( /* translators: 1. Object class name; 2. Set method name */ - __('The %1$s object does not have a %2$s method', 'wp-ultimo'), + __('The %1$s object does not have a %2$s method', 'wp-multisite-waas'), get_class($item), $set_method ); @@ -278,7 +278,7 @@ trait Rest_Api { } if ( ! $saved) { - return new \WP_Error("wu_rest_{$this->slug}", __('Something went wrong (Code 2).', 'wp-ultimo')); + return new \WP_Error("wu_rest_{$this->slug}", __('Something went wrong (Code 2).', 'wp-multisite-waas')); } return rest_ensure_response($item); @@ -297,7 +297,7 @@ trait Rest_Api { $item = $this->model_class::get_by_id($request['id']); if (empty($item)) { - return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'wp-ultimo'), ['status' => 404]); + return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'wp-multisite-waas'), ['status' => 404]); } $result = $item->delete(); diff --git a/inc/api/trait-wp-cli.php b/inc/api/trait-wp-cli.php index 678769f..fe73d3a 100644 --- a/inc/api/trait-wp-cli.php +++ b/inc/api/trait-wp-cli.php @@ -116,7 +116,7 @@ trait WP_CLI { $sub_command_data['synopsis'][] = [ 'name' => 'id', 'type' => 'positional', - 'description' => __('The id for the resource.', 'wp-ultimo'), + 'description' => __('The id for the resource.', 'wp-multisite-waas'), 'optional' => false, ]; } @@ -131,7 +131,7 @@ trait WP_CLI { $field = [ 'name' => $name, - 'description' => wu_get_isset($explanation, 'description', __('No description found.', 'wp-ultimo')), + 'description' => wu_get_isset($explanation, 'description', __('No description found.', 'wp-multisite-waas')), 'optional' => ! wu_get_isset($explanation, 'required'), 'type' => 'assoc', ]; @@ -150,7 +150,7 @@ trait WP_CLI { $sub_command_data['synopsis'][] = [ 'name' => 'porcelain', 'type' => 'flag', - 'description' => __('Output just the id when the operation is successful.', 'wp-ultimo'), + 'description' => __('Output just the id when the operation is successful.', 'wp-multisite-waas'), 'optional' => true, ]; } @@ -159,7 +159,7 @@ trait WP_CLI { $sub_command_data['synopsis'][] = [ 'name' => 'format', 'type' => 'assoc', - 'description' => __('Render response in a particular format.', 'wp-ultimo'), + 'description' => __('Render response in a particular format.', 'wp-multisite-waas'), 'optional' => true, 'default' => 'table', 'options' => [ @@ -175,7 +175,7 @@ trait WP_CLI { $sub_command_data['synopsis'][] = [ 'name' => 'fields', 'type' => 'assoc', - 'description' => __('Limit response to specific fields. Defaults to id, name', 'wp-ultimo'), + 'description' => __('Limit response to specific fields. Defaults to id, name', 'wp-multisite-waas'), 'optional' => true, 'options' => array_merge(['id'], $params), ]; @@ -335,7 +335,7 @@ trait WP_CLI { } else { $error_message = sprintf( /* translators: 1. Object class name; 2. Set method name */ - __('The %1$s object does not have a %2$s method', 'wp-ultimo'), + __('The %1$s object does not have a %2$s method', 'wp-multisite-waas'), get_class($item), $set_method ); diff --git a/inc/checkout/class-cart.php b/inc/checkout/class-cart.php index 88db86c..92dea43 100644 --- a/inc/checkout/class-cart.php +++ b/inc/checkout/class-cart.php @@ -556,7 +556,7 @@ class Cart implements \JsonSerializable { $payment = wu_get_payment($payment_id); if ( ! $payment) { - $this->errors->add('payment_not_found', __('The payment in question was not found.', 'wp-ultimo')); + $this->errors->add('payment_not_found', __('The payment in question was not found.', 'wp-multisite-waas')); return true; } @@ -583,7 +583,7 @@ class Cart implements \JsonSerializable { * a payment can pay it. Let's check for that. */ if (empty($this->customer) || $this->customer->get_id() !== $payment->get_customer_id()) { - $this->errors->add('lacks_permission', __('You are not allowed to modify this payment.', 'wp-ultimo')); + $this->errors->add('lacks_permission', __('You are not allowed to modify this payment.', 'wp-multisite-waas')); return true; } @@ -594,7 +594,7 @@ class Cart implements \JsonSerializable { $membership = $payment->get_membership(); if ( ! $membership) { - $this->errors->add('membership_not_found', __('The membership in question was not found.', 'wp-ultimo')); + $this->errors->add('membership_not_found', __('The membership in question was not found.', 'wp-multisite-waas')); return true; } @@ -683,7 +683,7 @@ class Cart implements \JsonSerializable { ); if ( ! in_array($payment->get_status(), $allowed_status, true)) { - $this->errors->add('invalid_status', __('The payment in question has an invalid status.', 'wp-ultimo')); + $this->errors->add('invalid_status', __('The payment in question has an invalid status.', 'wp-multisite-waas')); return true; } @@ -742,7 +742,7 @@ class Cart implements \JsonSerializable { $membership = wu_get_membership($membership_id); if ( ! $membership) { - $this->errors->add('membership_not_found', __('The membership in question was not found.', 'wp-ultimo')); + $this->errors->add('membership_not_found', __('The membership in question was not found.', 'wp-multisite-waas')); return true; } @@ -762,7 +762,7 @@ class Cart implements \JsonSerializable { * Only the customer that owns a membership can change it. */ if (empty($this->customer) || $this->customer->get_id() !== $membership->get_customer_id()) { - $this->errors->add('lacks_permission', __('You are not allowed to modify this membership.', 'wp-ultimo')); + $this->errors->add('lacks_permission', __('You are not allowed to modify this membership.', 'wp-multisite-waas')); return true; } @@ -794,7 +794,7 @@ class Cart implements \JsonSerializable { return false; } - $this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'wp-ultimo')); + $this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'wp-multisite-waas')); return true; } @@ -816,7 +816,7 @@ class Cart implements \JsonSerializable { */ if (empty($this->plan_id)) { if (count($this->products) === 0) { - $this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'wp-ultimo')); + $this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'wp-multisite-waas')); return true; } @@ -938,7 +938,7 @@ class Cart implements \JsonSerializable { $this->products = []; $this->line_items = []; - $this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'wp-ultimo')); + $this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'wp-multisite-waas')); return true; } @@ -1000,13 +1000,13 @@ class Cart implements \JsonSerializable { $description = sprintf( // translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc) - _n('%2$s', '%1$s %2$s', $membership->get_duration(), 'wp-ultimo'), // phpcs:ignore + _n('%2$s', '%1$s %2$s', $membership->get_duration(), 'wp-multisite-waas'), // phpcs:ignore $membership->get_duration(), wu_get_translatable_string(($membership->get_duration() <= 1 ? $membership->get_duration_unit() : $membership->get_duration_unit() . 's')) ); // Translators: Placeholder receives the recurring period description - $message = sprintf(__('You already have an active %s agreement.', 'wp-ultimo'), $description); + $message = sprintf(__('You already have an active %s agreement.', 'wp-multisite-waas'), $description); $this->errors->add('no_changes', $message); @@ -1027,8 +1027,8 @@ class Cart implements \JsonSerializable { 'wu_checkout_credit_line_item_params', [ 'type' => 'credit', - 'title' => __('Scheduled Swap Credit', 'wp-ultimo'), - 'description' => __('Swap scheduled to next billing cycle.', 'wp-ultimo'), + 'title' => __('Scheduled Swap Credit', 'wp-multisite-waas'), + 'description' => __('Swap scheduled to next billing cycle.', 'wp-multisite-waas'), 'discountable' => false, 'taxable' => false, 'quantity' => 1, @@ -1222,8 +1222,8 @@ class Cart implements \JsonSerializable { 'wu_checkout_credit_line_item_params', [ 'type' => 'credit', - 'title' => __('Credit', 'wp-ultimo'), - 'description' => __('Prorated amount based on the previous membership.', 'wp-ultimo'), + 'title' => __('Credit', 'wp-multisite-waas'), + 'description' => __('Prorated amount based on the previous membership.', 'wp-multisite-waas'), 'discountable' => false, 'taxable' => false, 'quantity' => 1, @@ -1259,7 +1259,7 @@ class Cart implements \JsonSerializable { if (empty($discount_code)) { // translators: %s is the coupon code being used, all-caps. e.g. PROMO10OFF - $this->errors->add('discount_code', sprintf(__('The code %s do not exist or is no longer valid.', 'wp-ultimo'), $code)); + $this->errors->add('discount_code', sprintf(__('The code %s do not exist or is no longer valid.', 'wp-multisite-waas'), $code)); return false; } @@ -1340,7 +1340,7 @@ class Cart implements \JsonSerializable { if ($line_item_interval !== $interval) { // translators: two intervals - $this->errors->add('wrong', sprintf(__('Interval %1$s and %2$s do not match.', 'wp-ultimo'), $line_item_interval, $interval)); + $this->errors->add('wrong', sprintf(__('Interval %1$s and %2$s do not match.', 'wp-multisite-waas'), $line_item_interval, $interval)); return false; } @@ -1503,7 +1503,7 @@ class Cart implements \JsonSerializable { $product = is_numeric($product_id_or_slug) ? wu_get_product($product_id_or_slug) : wu_get_product_by_slug($product_id_or_slug); if ( ! $product) { - $message = __('The product you are trying to add does not exist.', 'wp-ultimo'); + $message = __('The product you are trying to add does not exist.', 'wp-multisite-waas'); $this->errors->add('missing-product', $message); @@ -1515,7 +1515,7 @@ class Cart implements \JsonSerializable { $product = $product->get_as_variation($this->duration, $this->duration_unit); if ( ! $product) { - $message = __('The product you are trying to add does not exist for the selected duration.', 'wp-ultimo'); + $message = __('The product you are trying to add does not exist for the selected duration.', 'wp-multisite-waas'); $this->errors->add('missing-price-variations', $message); @@ -1529,7 +1529,7 @@ class Cart implements \JsonSerializable { * another one. Bail. */ if ( ! empty($this->plan_id)) { - $message = __('Theres already a plan in this membership.', 'wp-ultimo'); + $message = __('Theres already a plan in this membership.', 'wp-multisite-waas'); $this->errors->add('plan-already-added', $message); @@ -1591,7 +1591,7 @@ class Cart implements \JsonSerializable { * price variation. We need to add an error. */ // translators: respectively, product name, duration, and duration unit. - $message = sprintf(__('%1$s does not have a valid price variation for that billing period (every %2$s %3$s(s)) and was not added to the cart.', 'wp-ultimo'), $product->get_name(), $this->duration, $this->duration_unit); + $message = sprintf(__('%1$s does not have a valid price variation for that billing period (every %2$s %3$s(s)) and was not added to the cart.', 'wp-multisite-waas'), $product->get_name(), $this->duration, $this->duration_unit); $this->errors->add('missing-price-variations', $message); @@ -1655,7 +1655,7 @@ class Cart implements \JsonSerializable { } // translators: placeholder is the product name. - $description = ($product->get_setup_fee() > 0) ? __('Signup Fee for %s', 'wp-ultimo') : __('Signup Credit for %s', 'wp-ultimo'); + $description = ($product->get_setup_fee() > 0) ? __('Signup Fee for %s', 'wp-multisite-waas') : __('Signup Credit for %s', 'wp-multisite-waas'); $description = sprintf($description, $product->get_name()); diff --git a/inc/checkout/class-checkout-pages.php b/inc/checkout/class-checkout-pages.php index 7e159a2..89276c4 100644 --- a/inc/checkout/class-checkout-pages.php +++ b/inc/checkout/class-checkout-pages.php @@ -108,8 +108,8 @@ class Checkout_Pages {
name="_wu_force_elements_loading" /> @@ -190,7 +190,7 @@ class Checkout_Pages { public function get_error_message($error_code, $username = '') { $messages = [ - 'incorrect_password' => sprintf(__('Error: The password you entered is incorrect.', 'wp-ultimo')), + 'incorrect_password' => sprintf(__('Error: The password you entered is incorrect.', 'wp-multisite-waas')), // From here we are using the same messages as WordPress core. 'expired' => __('Your session has expired. Please log in to continue where you left off.'), 'confirm' => sprintf(__('Check your email for the confirmation link, then visit the login page.'), wp_login_url()), @@ -217,7 +217,7 @@ class Checkout_Pages { */ $messages = apply_filters('wu_checkout_pages_error_messages', $messages); - return wu_get_isset($messages, $error_code, __('Something went wrong', 'wp-ultimo')); + return wu_get_isset($messages, $error_code, __('Something went wrong', 'wp-multisite-waas')); } /** @@ -415,9 +415,9 @@ class Checkout_Pages { if ($payment->get_total() == 0 && $customer->get_email_verification() === 'pending') { $html = '
%s
'; - $message = __('Your email address is not yet verified. Your site will only be activated after your email address is verified. Check your inbox and verify your email address.', 'wp-ultimo'); + $message = __('Your email address is not yet verified. Your site will only be activated after your email address is verified. Check your inbox and verify your email address.', 'wp-multisite-waas'); - $message .= sprintf('
%s', __('Resend verification email →', 'wp-ultimo')); + $message .= sprintf('
%s', __('Resend verification email →', 'wp-multisite-waas')); printf($html, $message); } @@ -618,11 +618,11 @@ class Checkout_Pages { } $labels = [ - 'register' => __('WP Multisite WaaS - Register Page', 'wp-ultimo'), - 'login' => __('WP Multisite WaaS - Login Page', 'wp-ultimo'), - 'block_frontend' => __('WP Multisite WaaS - Site Blocked Page', 'wp-ultimo'), - 'update' => __('WP Multisite WaaS - Membership Update Page', 'wp-ultimo'), - 'new_site' => __('WP Multisite WaaS - New Site Page', 'wp-ultimo'), + 'register' => __('WP Multisite WaaS - Register Page', 'wp-multisite-waas'), + 'login' => __('WP Multisite WaaS - Login Page', 'wp-multisite-waas'), + 'block_frontend' => __('WP Multisite WaaS - Site Blocked Page', 'wp-multisite-waas'), + 'update' => __('WP Multisite WaaS - Membership Update Page', 'wp-multisite-waas'), + 'new_site' => __('WP Multisite WaaS - New Site Page', 'wp-multisite-waas'), ]; $pages = array_map('absint', $this->get_signup_pages()); diff --git a/inc/checkout/class-checkout.php b/inc/checkout/class-checkout.php index 1276e64..8b36dcb 100644 --- a/inc/checkout/class-checkout.php +++ b/inc/checkout/class-checkout.php @@ -645,7 +645,7 @@ class Checkout { if ($cart->should_collect_payment() === false) { $gateway = wu_get_gateway('free'); } elseif ( ! $gateway || $gateway->get_id() === 'free') { - $this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'wp-ultimo')); + $this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'wp-multisite-waas')); return false; } @@ -655,7 +655,7 @@ class Checkout { * we need to bail. */ if ( ! $gateway) { - return new \WP_Error('no-gateway', __('Payment gateway not registered.', 'wp-ultimo')); + return new \WP_Error('no-gateway', __('Payment gateway not registered.', 'wp-multisite-waas')); } $this->gateway_id = $gateway->get_id(); @@ -962,7 +962,7 @@ class Checkout { 'email_verification' => 'verified', ]; } elseif (isset($customer_data['email']) && get_user_by('email', $customer_data['email'])) { - return new \WP_Error('email_exists', __('The email address you entered is already in use.', 'wp-ultimo')); + return new \WP_Error('email_exists', __('The email address you entered is already in use.', 'wp-multisite-waas')); } /* @@ -1020,7 +1020,7 @@ class Checkout { * wrong with the customer update, we return a general error. */ if ( ! $address_saved) { - return new \WP_Error('address_failure', __('Something wrong happened while attempting to save the customer billing address', 'wp-ultimo')); + return new \WP_Error('address_failure', __('Something wrong happened while attempting to save the customer billing address', 'wp-multisite-waas')); } /* @@ -1549,9 +1549,9 @@ class Checkout { * Localized strings. */ $i18n = [ - 'loading' => __('Loading...', 'wp-ultimo'), - 'added_to_order' => __('The item was added!', 'wp-ultimo'), - 'weak_password' => __('The Password entered is too weak.', 'wp-ultimo'), + 'loading' => __('Loading...', 'wp-multisite-waas'), + 'added_to_order' => __('The item was added!', 'wp-multisite-waas'), + 'weak_password' => __('The Password entered is too weak.', 'wp-multisite-waas'), ]; /* @@ -1847,11 +1847,11 @@ class Checkout { // Add some hidden or compound fields ids $validation_aliases = array_merge( [ - 'password_conf' => __('Password confirmation', 'wp-ultimo'), - 'template_id' => __('Template ID', 'wp-ultimo'), - 'valid_password' => __('Valid password', 'wp-ultimo'), - 'products' => __('Products', 'wp-ultimo'), - 'gateway' => __('Payment Gateway', 'wp-ultimo'), + 'password_conf' => __('Password confirmation', 'wp-multisite-waas'), + 'template_id' => __('Template ID', 'wp-multisite-waas'), + 'valid_password' => __('Valid password', 'wp-multisite-waas'), + 'products' => __('Products', 'wp-multisite-waas'), + 'gateway' => __('Payment Gateway', 'wp-multisite-waas'), ], $base_aliases ); @@ -2068,13 +2068,13 @@ class Checkout { } elseif ($this->order->should_collect_payment() === false) { $gateway = wu_get_gateway('free'); } elseif ($gateway->get_id() === 'free') { - $this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'wp-ultimo')); + $this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'wp-multisite-waas')); return false; } if ( ! $gateway) { - $this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'wp-ultimo')); + $this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'wp-multisite-waas')); return false; } @@ -2171,7 +2171,7 @@ class Checkout { } catch (\Throwable $e) { $membership_id = $this->order->get_membership() ? $this->order->get_membership()->get_id() : 'unknown'; - $log_message = sprintf(__('Checkout failed for customer %s: ', 'wp-ultimo'), $membership_id); + $log_message = sprintf(__('Checkout failed for customer %s: ', 'wp-multisite-waas'), $membership_id); $log_message .= $e->getMessage(); wu_log_add('checkout', $log_message, LogLevel::ERROR); diff --git a/inc/checkout/class-legacy-checkout.php b/inc/checkout/class-legacy-checkout.php index 4b64b63..dc72ed8 100644 --- a/inc/checkout/class-legacy-checkout.php +++ b/inc/checkout/class-legacy-checkout.php @@ -95,7 +95,7 @@ class Legacy_Checkout { $this->session = wu_get_session('signup'); $this->templates = [ - 'signup-main.php' => __('WP Multisite WaaS Legacy Signup', 'wp-ultimo'), + 'signup-main.php' => __('WP Multisite WaaS Legacy Signup', 'wp-multisite-waas'), ]; // add_filter('request', array($this, 'maybe_render_legacy_signup')); @@ -388,7 +388,7 @@ class Legacy_Checkout { if (isset($location['country']) && $location['country'] && $allowed_countries) { if ( ! in_array($location['country'], $allowed_countries, true)) { - wp_die(apply_filters('wu_geolocation_error_message', __('Sorry. Our service is not allowed in your country.', 'wp-ultimo'))); + wp_die(apply_filters('wu_geolocation_error_message', __('Sorry. Our service is not allowed in your country.', 'wp-multisite-waas'))); } } } @@ -630,8 +630,8 @@ class Legacy_Checkout { // Plan Selector $steps['plan'] = [ - 'name' => __('Pick a Plan', 'wp-ultimo'), - 'desc' => __('Which one of our amazing plans you want to get?', 'wp-ultimo'), + 'name' => __('Pick a Plan', 'wp-multisite-waas'), + 'desc' => __('Which one of our amazing plans you want to get?', 'wp-multisite-waas'), 'view' => 'step-plans', 'handler' => [$this, 'plans_save'], 'order' => 10, @@ -646,8 +646,8 @@ class Legacy_Checkout { // We add template selection if this has template if ($site_templates) { $steps['template'] = [ - 'name' => __('Template Selection', 'wp-ultimo'), - 'desc' => __('Select the base template of your new site.', 'wp-ultimo'), + 'name' => __('Template Selection', 'wp-multisite-waas'), + 'desc' => __('Select the base template of your new site.', 'wp-multisite-waas'), 'view' => 'step-template', 'order' => 20, 'handler' => false, @@ -657,8 +657,8 @@ class Legacy_Checkout { // Domain registering $steps['domain'] = [ - 'name' => __('Site Details', 'wp-ultimo'), - 'desc' => __('Ok, now it\'s time to pick your site url and title!', 'wp-ultimo'), + 'name' => __('Site Details', 'wp-multisite-waas'), + 'desc' => __('Ok, now it\'s time to pick your site url and title!', 'wp-multisite-waas'), 'handler' => [$this, 'domain_save'], 'view' => false, 'order' => 30, @@ -668,34 +668,34 @@ class Legacy_Checkout { [ 'blog_title' => [ 'order' => 10, - 'name' => apply_filters('wu_signup_site_title_label', __('Site Title', 'wp-ultimo')), + 'name' => apply_filters('wu_signup_site_title_label', __('Site Title', 'wp-multisite-waas')), 'type' => 'text', 'default' => '', 'placeholder' => '', - 'tooltip' => apply_filters('wu_signup_site_title_tooltip', __('Select the title your site is going to have.', 'wp-ultimo')), + 'tooltip' => apply_filters('wu_signup_site_title_tooltip', __('Select the title your site is going to have.', 'wp-multisite-waas')), 'required' => true, 'core' => true, ], 'blogname' => [ 'order' => 20, - 'name' => apply_filters('wu_signup_site_url_label', __('URL', 'wp-ultimo')), + 'name' => apply_filters('wu_signup_site_url_label', __('URL', 'wp-multisite-waas')), 'type' => 'text', 'default' => '', 'placeholder' => '', - 'tooltip' => apply_filters('wu_signup_site_url_tooltip', __('Site urls can only contain lowercase letters (a-z) and numbers and must be at least 4 characters. .', 'wp-ultimo')), + 'tooltip' => apply_filters('wu_signup_site_url_tooltip', __('Site urls can only contain lowercase letters (a-z) and numbers and must be at least 4 characters. .', 'wp-multisite-waas')), 'required' => true, 'core' => true, ], 'url_preview' => [ 'order' => 30, - 'name' => __('Site URL Preview', 'wp-ultimo'), + 'name' => __('Site URL Preview', 'wp-multisite-waas'), 'type' => 'html', 'content' => wu_get_template_contents('legacy/signup/steps/step-domain-url-preview'), ], 'submit' => [ 'order' => 100, 'type' => 'submit', - 'name' => __('Continue to the next step', 'wp-ultimo'), + 'name' => __('Continue to the next step', 'wp-multisite-waas'), 'core' => true, ], ] @@ -710,18 +710,18 @@ class Legacy_Checkout { 'user_name' => [ 'order' => 10, - 'name' => apply_filters('wu_signup_username_label', __('Username', 'wp-ultimo')), + 'name' => apply_filters('wu_signup_username_label', __('Username', 'wp-multisite-waas')), 'type' => 'text', 'default' => '', 'placeholder' => '', - 'tooltip' => apply_filters('wu_signup_username_tooltip', __('Username must be at least 4 characters.', 'wp-ultimo')), + 'tooltip' => apply_filters('wu_signup_username_tooltip', __('Username must be at least 4 characters.', 'wp-multisite-waas')), 'required' => true, 'core' => true, ], 'user_email' => [ 'order' => 20, - 'name' => apply_filters('wu_signup_email_label', __('Email', 'wp-ultimo')), + 'name' => apply_filters('wu_signup_email_label', __('Email', 'wp-multisite-waas')), 'type' => 'email', 'default' => '', 'placeholder' => '', @@ -732,18 +732,18 @@ class Legacy_Checkout { 'user_pass' => [ 'order' => 30, - 'name' => apply_filters('wu_signup_password_label', __('Password', 'wp-ultimo')), + 'name' => apply_filters('wu_signup_password_label', __('Password', 'wp-multisite-waas')), 'type' => 'password', 'default' => '', 'placeholder' => '', - 'tooltip' => apply_filters('wu_signup_password_tooltip', __('Your password should be at least 6 characters long.', 'wp-ultimo')), + 'tooltip' => apply_filters('wu_signup_password_tooltip', __('Your password should be at least 6 characters long.', 'wp-multisite-waas')), 'required' => true, 'core' => true, ], 'user_pass_conf' => [ 'order' => 40, - 'name' => apply_filters('wu_signup_password_conf_label', __('Confirm Password', 'wp-ultimo')), + 'name' => apply_filters('wu_signup_password_conf_label', __('Confirm Password', 'wp-multisite-waas')), 'type' => 'password', 'default' => '', 'placeholder' => '', @@ -757,7 +757,7 @@ class Legacy_Checkout { */ 'site_url' => [ 'order' => random_int(1, 59), // Use random order for Honeypot - 'name' => __('Site URL', 'wp-ultimo'), + 'name' => __('Site URL', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'placeholder' => '', @@ -786,18 +786,18 @@ class Legacy_Checkout { // $account_fields['has_coupon'] = array( // 'order' => 50, // 'type' => 'checkbox', - // 'name' => __('Have a coupon code?', 'wp-ultimo'), + // 'name' => __('Have a coupon code?', 'wp-multisite-waas'), // 'core' => true, // 'check_if' => 'coupon', // Check if the input with this name is selected // 'checked' => $coupon ? true : false, // ); // $account_fields['coupon'] = array( // 'order' => 60, - // 'name' => __('Coupon Code', 'wp-ultimo'), + // 'name' => __('Coupon Code', 'wp-multisite-waas'), // 'type' => 'text', // 'default' => '', // 'placeholder' => '', - // 'tooltip' => __('The code should be an exact match. This field is case-sensitive.', 'wp-ultimo'), + // 'tooltip' => __('The code should be an exact match. This field is case-sensitive.', 'wp-multisite-waas'), // 'requires' => array('has_coupon' => true), // 'core' => true, // ); @@ -811,7 +811,7 @@ class Legacy_Checkout { // 'order' => 70, // 'type' => 'checkbox', // 'checked' => false, - // 'name' => sprintf(__('I agree with the Terms of Service', 'wp-ultimo'), $this->get_terms_url()), + // 'name' => sprintf(__('I agree with the Terms of Service', 'wp-multisite-waas'), $this->get_terms_url()), // 'core' => true, // ); // } @@ -822,13 +822,13 @@ class Legacy_Checkout { $account_fields['submit'] = [ 'order' => 100, 'type' => 'submit', - 'name' => __('Create Account', 'wp-ultimo'), + 'name' => __('Create Account', 'wp-multisite-waas'), 'core' => true, ]; // Account registering $steps['account'] = [ - 'name' => __('Account Details', 'wp-ultimo'), + 'name' => __('Account Details', 'wp-multisite-waas'), 'view' => false, 'handler' => [$this, 'account_save'], 'order' => 40, @@ -867,7 +867,7 @@ class Legacy_Checkout { */ $begin_signup = [ 'begin-signup' => [ - 'name' => __('Begin Signup Process', 'wp-ultimo'), + 'name' => __('Begin Signup Process', 'wp-multisite-waas'), 'handler' => [$this, 'begin_signup'], 'view' => false, 'hidden' => true, @@ -883,7 +883,7 @@ class Legacy_Checkout { */ $create_account = [ 'create-account' => [ - 'name' => __('Creating Account', 'wp-ultimo'), + 'name' => __('Creating Account', 'wp-multisite-waas'), 'handler' => [$this, 'create_account'], 'view' => false, 'hidden' => true, @@ -932,7 +932,7 @@ class Legacy_Checkout { if ($die && empty($transient)) { - // wp_die(__('Try again', 'wp-ultimo')); + // wp_die(__('Try again', 'wp-multisite-waas')); } if (is_null($transient)) { @@ -1161,13 +1161,13 @@ class Legacy_Checkout { // We need now to check for plan if ( ! isset($_POST['plan_id'])) { - $this->results['errors']->add('plan_id', __('You don\'t have any plan selected.', 'wp-ultimo')); + $this->results['errors']->add('plan_id', __('You don\'t have any plan selected.', 'wp-multisite-waas')); } else { // We need now to check if the plan exists $plan = wu_get_product($_POST['plan_id']); if ( ! $plan->exists()) { - $this->results['errors']->add('plan_id', __('The plan you\'ve selected doesn\'t exist.', 'wp-ultimo')); + $this->results['errors']->add('plan_id', __('The plan you\'ve selected doesn\'t exist.', 'wp-multisite-waas')); } } @@ -1328,7 +1328,7 @@ class Legacy_Checkout { // Checks for honey-trap id if ('site_url' === $id) { - wp_die(__('Please, do not use the "site_url" as one of your custom fields\' ids. We use it as a honeytrap field to prevent spam registration. Consider alternatives such as "url" or "website".', 'wp-ultimo')); + wp_die(__('Please, do not use the "site_url" as one of your custom fields\' ids. We use it as a honeytrap field to prevent spam registration. Consider alternatives such as "url" or "website".', 'wp-multisite-waas')); } // Saves the order diff --git a/inc/checkout/class-line-item.php b/inc/checkout/class-line-item.php index 70efa7e..a7763af 100644 --- a/inc/checkout/class-line-item.php +++ b/inc/checkout/class-line-item.php @@ -1093,7 +1093,7 @@ class Line_Item implements \JsonSerializable { $description = sprintf( // translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc) - _n('%2$s', 'every %1$s %2$s', $this->get_duration(), 'wp-ultimo'), // phpcs:ignore + _n('%2$s', 'every %1$s %2$s', $this->get_duration(), 'wp-multisite-waas'), // phpcs:ignore $this->get_duration(), wu_get_translatable_string(($this->get_duration() <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's')) ); diff --git a/inc/checkout/signup-fields/class-base-signup-field.php b/inc/checkout/signup-fields/class-base-signup-field.php index c0ac3cd..7e6730c 100644 --- a/inc/checkout/signup-fields/class-base-signup-field.php +++ b/inc/checkout/signup-fields/class-base-signup-field.php @@ -308,7 +308,7 @@ abstract class Base_Signup_Field { $final_field_list[ '_site_notice_field_' . uniqid() ] = [ 'type' => 'note', 'classes' => 'wu--mt-px', - 'desc' => sprintf('
%s
', __('This is a site-related field. For that reason, this field will not show up when no plans are present on the shopping cart.', 'wp-ultimo')), + 'desc' => sprintf('
%s
', __('This is a site-related field. For that reason, this field will not show up when no plans are present on the shopping cart.', 'wp-multisite-waas')), 'order' => 98.5, ]; } @@ -320,7 +320,7 @@ abstract class Base_Signup_Field { $final_field_list[ '_user_notice_field_' . uniqid() ] = [ 'type' => 'note', 'classes' => 'wu--mt-px', - 'desc' => sprintf('
%s
', __('This is a customer-related field. For that reason, this field will not show up when the user is logged and already has a customer on file.', 'wp-ultimo')), + 'desc' => sprintf('
%s
', __('This is a customer-related field. For that reason, this field will not show up when the user is logged and already has a customer on file.', 'wp-multisite-waas')), 'order' => 98.5, ]; } @@ -440,10 +440,10 @@ abstract class Base_Signup_Field { $fields['id'] = [ 'type' => 'text', - 'title' => __('Field ID', 'wp-ultimo'), - 'placeholder' => __('e.g. info-name', 'wp-ultimo'), - 'tooltip' => __('Only alpha-numeric and hyphens allowed.', 'wp-ultimo'), - 'desc' => __('The ID of the field. This is used to reference the field.', 'wp-ultimo'), + 'title' => __('Field ID', 'wp-multisite-waas'), + 'placeholder' => __('e.g. info-name', 'wp-multisite-waas'), + 'tooltip' => __('Only alpha-numeric and hyphens allowed.', 'wp-multisite-waas'), + 'desc' => __('The ID of the field. This is used to reference the field.', 'wp-multisite-waas'), 'value' => wu_request('id', ''), 'html_attr' => [ 'v-on:input' => 'id = $event.target.value.toLowerCase().replace(/[^a-z0-9-_]+/g, "")', @@ -453,10 +453,10 @@ abstract class Base_Signup_Field { $fields['name'] = [ 'type' => 'text', - 'title' => __('Field Label', 'wp-ultimo'), - 'placeholder' => __('e.g. Your Name', 'wp-ultimo'), - 'desc' => __('This is what your customer see as the field title.', 'wp-ultimo'), - 'tooltip' => __('Leave blank to hide the field label. You can also set a placeholder value and tip in the "Additional Settings" tab.', 'wp-ultimo'), + 'title' => __('Field Label', 'wp-multisite-waas'), + 'placeholder' => __('e.g. Your Name', 'wp-multisite-waas'), + 'desc' => __('This is what your customer see as the field title.', 'wp-multisite-waas'), + 'tooltip' => __('Leave blank to hide the field label. You can also set a placeholder value and tip in the "Additional Settings" tab.', 'wp-multisite-waas'), 'value' => '', 'html_attr' => [ 'v-model' => 'name', @@ -465,9 +465,9 @@ abstract class Base_Signup_Field { $fields['placeholder'] = [ 'type' => 'text', - 'title' => __('Field Placeholder', 'wp-ultimo'), - 'placeholder' => __('e.g. Placeholder value', 'wp-ultimo'), - 'desc' => __('This value appears inside the field, as an example of how to fill it.', 'wp-ultimo'), + 'title' => __('Field Placeholder', 'wp-multisite-waas'), + 'placeholder' => __('e.g. Placeholder value', 'wp-multisite-waas'), + 'desc' => __('This value appears inside the field, as an example of how to fill it.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => '', 'tab' => 'advanced', @@ -478,10 +478,10 @@ abstract class Base_Signup_Field { $fields['tooltip'] = [ 'type' => 'textarea', - 'title' => __('Field Tooltip', 'wp-ultimo'), - 'placeholder' => __('e.g. This field is great, be sure to fill it.', 'wp-ultimo'), + 'title' => __('Field Tooltip', 'wp-multisite-waas'), + 'placeholder' => __('e.g. This field is great, be sure to fill it.', 'wp-multisite-waas'), // translators: %is is the icon for a question mark. - 'desc' => sprintf(__('Any text entered here will be shown when the customer hovers the %s icon next to the field label.', 'wp-ultimo'), wu_tooltip(__('Just like this!', 'wp-ultimo'))), + 'desc' => sprintf(__('Any text entered here will be shown when the customer hovers the %s icon next to the field label.', 'wp-multisite-waas'), wu_tooltip(__('Just like this!', 'wp-multisite-waas'))), 'tooltip' => '', 'value' => '', 'tab' => 'advanced', @@ -493,8 +493,8 @@ abstract class Base_Signup_Field { $fields['default_value'] = [ 'type' => 'text', - 'title' => __('Default Value', 'wp-ultimo'), - 'placeholder' => __('e.g. None', 'wp-ultimo'), + 'title' => __('Default Value', 'wp-multisite-waas'), + 'placeholder' => __('e.g. None', 'wp-multisite-waas'), 'value' => '', 'html_attr' => [ 'v-model' => 'default_value', @@ -503,7 +503,7 @@ abstract class Base_Signup_Field { $fields['note'] = [ 'type' => 'textarea', - 'title' => __('Content', 'wp-ultimo'), + 'title' => __('Content', 'wp-multisite-waas'), 'placeholder' => '', 'tooltip' => '', 'value' => '', @@ -514,13 +514,13 @@ abstract class Base_Signup_Field { $fields['limits'] = [ 'type' => 'group', - 'title' => __('Field Length', 'wp-ultimo'), + 'title' => __('Field Length', 'wp-multisite-waas'), 'tooltip' => '', 'fields' => [ 'min' => [ 'type' => 'number', 'value' => '', - 'placeholder' => __('Min', 'wp-ultimo'), + 'placeholder' => __('Min', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-w-1/2', 'html_attr' => [ 'v-model' => 'min', @@ -529,7 +529,7 @@ abstract class Base_Signup_Field { 'max' => [ 'type' => 'number', 'value' => '', - 'placeholder' => __('Max', 'wp-ultimo'), + 'placeholder' => __('Max', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-ml-2 wu-w-1/2', 'html_attr' => [ 'v-model' => 'max', @@ -540,18 +540,18 @@ abstract class Base_Signup_Field { $fields['save_as'] = [ 'type' => 'select', - 'title' => __('Save As', 'wp-ultimo'), - 'desc' => __('Select how you want to save this piece of meta data. You can attach it to the customer or the site as site meta or as site option.', 'wp-ultimo'), + 'title' => __('Save As', 'wp-multisite-waas'), + 'desc' => __('Select how you want to save this piece of meta data. You can attach it to the customer or the site as site meta or as site option.', 'wp-multisite-waas'), 'placeholder' => '', 'tooltip' => '', 'value' => 'customer_meta', 'order' => 99.5, 'options' => [ - 'customer_meta' => __('Customer Meta', 'wp-ultimo'), - 'user_meta' => __('User Meta', 'wp-ultimo'), - 'site_meta' => __('Site Meta', 'wp-ultimo'), - 'site_option' => __('Site Option', 'wp-ultimo'), - 'nothing' => __('Do not save', 'wp-ultimo'), + 'customer_meta' => __('Customer Meta', 'wp-multisite-waas'), + 'user_meta' => __('User Meta', 'wp-multisite-waas'), + 'site_meta' => __('Site Meta', 'wp-multisite-waas'), + 'site_option' => __('Site Option', 'wp-multisite-waas'), + 'nothing' => __('Do not save', 'wp-multisite-waas'), ], 'html_attr' => [ 'v-model' => 'save_as', @@ -560,8 +560,8 @@ abstract class Base_Signup_Field { $fields['required'] = [ 'type' => 'toggle', - 'title' => __('Required', 'wp-ultimo'), - 'desc' => __('Mark this field as required. The checkout will not proceed unless this field is filled.', 'wp-ultimo'), + 'title' => __('Required', 'wp-multisite-waas'), + 'desc' => __('Mark this field as required. The checkout will not proceed unless this field is filled.', 'wp-multisite-waas'), 'value' => 0, 'order' => 98, 'html_attr' => [ diff --git a/inc/checkout/signup-fields/class-signup-field-billing-address.php b/inc/checkout/signup-fields/class-signup-field-billing-address.php index cf0e5d5..544bf63 100644 --- a/inc/checkout/signup-fields/class-signup-field-billing-address.php +++ b/inc/checkout/signup-fields/class-signup-field-billing-address.php @@ -69,7 +69,7 @@ class Signup_Field_Billing_Address extends Base_Signup_Field { */ public function get_title() { - return __('Address', 'wp-ultimo'); + return __('Address', 'wp-multisite-waas'); } /** @@ -82,7 +82,7 @@ class Signup_Field_Billing_Address extends Base_Signup_Field { */ public function get_description() { - return __('Adds billing address fields such as country, zip code.', 'wp-ultimo'); + return __('Adds billing address fields such as country, zip code.', 'wp-multisite-waas'); } /** @@ -95,7 +95,7 @@ class Signup_Field_Billing_Address extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds billing address fields such as country, zip code.', 'wp-ultimo'); + return __('Adds billing address fields such as country, zip code.', 'wp-multisite-waas'); } /** @@ -165,8 +165,8 @@ class Signup_Field_Billing_Address extends Base_Signup_Field { return [ 'zip_and_country' => [ 'type' => 'toggle', - 'title' => __('Display only ZIP and Country?', 'wp-ultimo'), - 'desc' => __('Checking this option will only add the ZIP and country fields, instead of all the normal billing address fields.', 'wp-ultimo'), + 'title' => __('Display only ZIP and Country?', 'wp-multisite-waas'), + 'desc' => __('Checking this option will only add the ZIP and country fields, instead of all the normal billing address fields.', 'wp-multisite-waas'), 'value' => true, ], ]; diff --git a/inc/checkout/signup-fields/class-signup-field-checkbox.php b/inc/checkout/signup-fields/class-signup-field-checkbox.php index da569fb..b40053a 100644 --- a/inc/checkout/signup-fields/class-signup-field-checkbox.php +++ b/inc/checkout/signup-fields/class-signup-field-checkbox.php @@ -69,7 +69,7 @@ class Signup_Field_Checkbox extends Base_Signup_Field { */ public function get_title() { - return __('Checkbox', 'wp-ultimo'); + return __('Checkbox', 'wp-multisite-waas'); } /** @@ -82,7 +82,7 @@ class Signup_Field_Checkbox extends Base_Signup_Field { */ public function get_description() { - return __('Adds a checkout box that can be checked by the customer.', 'wp-ultimo'); + return __('Adds a checkout box that can be checked by the customer.', 'wp-multisite-waas'); } /** @@ -95,7 +95,7 @@ class Signup_Field_Checkbox extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a checkout box that can be checked by the customer.', 'wp-ultimo'); + return __('Adds a checkout box that can be checked by the customer.', 'wp-multisite-waas'); } /** @@ -166,8 +166,8 @@ class Signup_Field_Checkbox extends Base_Signup_Field { return [ 'default_state' => [ 'type' => 'toggle', - 'title' => __('Default State', 'wp-ultimo'), - 'desc' => __('Use the toggle to the set the default state of the checkbox.', 'wp-ultimo'), + 'title' => __('Default State', 'wp-multisite-waas'), + 'desc' => __('Use the toggle to the set the default state of the checkbox.', 'wp-multisite-waas'), 'value' => 0, 'order' => 12, ], diff --git a/inc/checkout/signup-fields/class-signup-field-color.php b/inc/checkout/signup-fields/class-signup-field-color.php index 3a129a0..8c8ee78 100644 --- a/inc/checkout/signup-fields/class-signup-field-color.php +++ b/inc/checkout/signup-fields/class-signup-field-color.php @@ -55,7 +55,7 @@ class Signup_Field_Color extends Base_Signup_Field { */ public function get_title() { - return __('Color', 'wp-ultimo'); + return __('Color', 'wp-multisite-waas'); } /** @@ -68,7 +68,7 @@ class Signup_Field_Color extends Base_Signup_Field { */ public function get_description() { - return __('Adds a color picker field.', 'wp-ultimo'); + return __('Adds a color picker field.', 'wp-multisite-waas'); } /** @@ -81,7 +81,7 @@ class Signup_Field_Color extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a color picker field.', 'wp-ultimo'); + return __('Adds a color picker field.', 'wp-multisite-waas'); } /** @@ -154,8 +154,8 @@ class Signup_Field_Color extends Base_Signup_Field { 'default_value' => [ 'type' => 'color-picker', 'order' => 12, - 'title' => __('Default Color', 'wp-ultimo'), - 'desc' => __('Set the default value for this color field.', 'wp-ultimo'), + 'title' => __('Default Color', 'wp-multisite-waas'), + 'desc' => __('Set the default value for this color field.', 'wp-multisite-waas'), ], ]; } diff --git a/inc/checkout/signup-fields/class-signup-field-discount-code.php b/inc/checkout/signup-fields/class-signup-field-discount-code.php index 0accc39..7049514 100644 --- a/inc/checkout/signup-fields/class-signup-field-discount-code.php +++ b/inc/checkout/signup-fields/class-signup-field-discount-code.php @@ -55,7 +55,7 @@ class Signup_Field_Discount_Code extends Base_Signup_Field { */ public function get_title() { - return __('Coupon Code', 'wp-ultimo'); + return __('Coupon Code', 'wp-multisite-waas'); } /** @@ -68,7 +68,7 @@ class Signup_Field_Discount_Code extends Base_Signup_Field { */ public function get_description() { - return __('Adds an additional field to apply a discount code.', 'wp-ultimo'); + return __('Adds an additional field to apply a discount code.', 'wp-multisite-waas'); } /** @@ -81,7 +81,7 @@ class Signup_Field_Discount_Code extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds an additional field to apply a discount code.', 'wp-ultimo'); + return __('Adds an additional field to apply a discount code.', 'wp-multisite-waas'); } /** @@ -168,7 +168,7 @@ class Signup_Field_Discount_Code extends Base_Signup_Field { $checkout_fields['discount_code_checkbox'] = [ 'id' => 'discount_code', 'type' => 'toggle', - 'name' => __('Have a coupon code?', 'wp-ultimo'), + 'name' => __('Have a coupon code?', 'wp-multisite-waas'), 'class' => 'wu-w-auto', 'html_attr' => [ 'v-model' => 'toggle_discount_code', diff --git a/inc/checkout/signup-fields/class-signup-field-email.php b/inc/checkout/signup-fields/class-signup-field-email.php index 6824382..d34d11b 100644 --- a/inc/checkout/signup-fields/class-signup-field-email.php +++ b/inc/checkout/signup-fields/class-signup-field-email.php @@ -64,7 +64,7 @@ class Signup_Field_Email extends Base_Signup_Field { */ public function get_title() { - return __('Email', 'wp-ultimo'); + return __('Email', 'wp-multisite-waas'); } /** @@ -77,7 +77,7 @@ class Signup_Field_Email extends Base_Signup_Field { */ public function get_description() { - return __('Adds a email address field. This email address will be used to create the WordPress user.', 'wp-ultimo'); + return __('Adds a email address field. This email address will be used to create the WordPress user.', 'wp-multisite-waas'); } /** @@ -90,7 +90,7 @@ class Signup_Field_Email extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a email address field. This email address will be used to create the WordPress user.', 'wp-ultimo'); + return __('Adds a email address field. This email address will be used to create the WordPress user.', 'wp-multisite-waas'); } /** * Returns the icon to be used on the selector. @@ -160,8 +160,8 @@ class Signup_Field_Email extends Base_Signup_Field { return [ 'display_notices' => [ 'type' => 'toggle', - 'title' => __('Display Notices', 'wp-ultimo'), - 'desc' => __('When the customer is already logged in, a box with the customer\'s username and a link to logout is displayed instead of the email field. Disable this option if you do not want that box to show up.', 'wp-ultimo'), + 'title' => __('Display Notices', 'wp-multisite-waas'), + 'desc' => __('When the customer is already logged in, a box with the customer\'s username and a link to logout is displayed instead of the email field. Disable this option if you do not want that box to show up.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, 'html_attr' => [ @@ -187,7 +187,7 @@ class Signup_Field_Email extends Base_Signup_Field { if ($attributes['display_notices']) { $checkout_fields['login_note'] = [ 'type' => 'note', - 'title' => __('Not you?', 'wp-ultimo'), + 'title' => __('Not you?', 'wp-multisite-waas'), 'desc' => [$this, 'render_not_you_customer_message'], 'wrapper_classes' => wu_get_isset($attributes, 'wrapper_element_classes', ''), 'wrapper_html_attr' => [ @@ -199,7 +199,7 @@ class Signup_Field_Email extends Base_Signup_Field { if ($attributes['display_notices']) { $checkout_fields['login_note'] = [ 'type' => 'note', - 'title' => __('Existing customer?', 'wp-ultimo'), + 'title' => __('Existing customer?', 'wp-multisite-waas'), 'desc' => [$this, 'render_existing_customer_message'], 'wrapper_classes' => wu_get_isset($attributes, 'wrapper_element_classes', ''), 'wrapper_html_attr' => [ @@ -244,7 +244,7 @@ class Signup_Field_Email extends Base_Signup_Field { Log in to renew or change an existing membership.', 'wp-ultimo'), $login_url); + printf(__('Log in to renew or change an existing membership.', 'wp-multisite-waas'), $login_url); ?> @@ -273,7 +273,7 @@ class Signup_Field_Email extends Base_Signup_Field { Log in using your account.', 'wp-ultimo'), wp_get_current_user()->display_name, $login_url); + printf(__('Not %1$s? Log in using your account.', 'wp-multisite-waas'), wp_get_current_user()->display_name, $login_url); ?>

diff --git a/inc/checkout/signup-fields/class-signup-field-hidden.php b/inc/checkout/signup-fields/class-signup-field-hidden.php index 03bf559..753ee0b 100644 --- a/inc/checkout/signup-fields/class-signup-field-hidden.php +++ b/inc/checkout/signup-fields/class-signup-field-hidden.php @@ -55,7 +55,7 @@ class Signup_Field_Hidden extends Base_Signup_Field { */ public function get_title() { - return __('Hidden Field', 'wp-ultimo'); + return __('Hidden Field', 'wp-multisite-waas'); } /** @@ -68,7 +68,7 @@ class Signup_Field_Hidden extends Base_Signup_Field { */ public function get_description() { - return __('Adds a hidden field. This is useful when coupled with the "Fill from the Request" option, to load values from the URL, for example.', 'wp-ultimo'); + return __('Adds a hidden field. This is useful when coupled with the "Fill from the Request" option, to load values from the URL, for example.', 'wp-multisite-waas'); } /** @@ -81,7 +81,7 @@ class Signup_Field_Hidden extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a hidden field. This is useful when coupled with the "Fill from the Request" option, to load values from the URL, for example.', 'wp-ultimo'); + return __('Adds a hidden field. This is useful when coupled with the "Fill from the Request" option, to load values from the URL, for example.', 'wp-multisite-waas'); } /** @@ -150,9 +150,9 @@ class Signup_Field_Hidden extends Base_Signup_Field { 'fixed_value' => [ 'order' => 12, 'type' => 'text', - 'title' => __('Pre-filled Value', 'wp-ultimo'), - 'desc' => __('The field will be populated with this value. Can be overridden if the pre-fill from request option is enabled.', 'wp-ultimo'), - 'placeholder' => __('e.g. blue', 'wp-ultimo'), + 'title' => __('Pre-filled Value', 'wp-multisite-waas'), + 'desc' => __('The field will be populated with this value. Can be overridden if the pre-fill from request option is enabled.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. blue', 'wp-multisite-waas'), 'tooltip' => '', 'value' => '', ], diff --git a/inc/checkout/signup-fields/class-signup-field-order-bump.php b/inc/checkout/signup-fields/class-signup-field-order-bump.php index 5134fb7..f9599cb 100644 --- a/inc/checkout/signup-fields/class-signup-field-order-bump.php +++ b/inc/checkout/signup-fields/class-signup-field-order-bump.php @@ -56,7 +56,7 @@ class Signup_Field_Order_Bump extends Base_Signup_Field { */ public function get_title() { - return __('Order Bump', 'wp-ultimo'); + return __('Order Bump', 'wp-multisite-waas'); } /** @@ -69,7 +69,7 @@ class Signup_Field_Order_Bump extends Base_Signup_Field { */ public function get_description() { - return __('Adds a product offer that the customer can click to add to the current cart.', 'wp-ultimo'); + return __('Adds a product offer that the customer can click to add to the current cart.', 'wp-multisite-waas'); } /** @@ -82,7 +82,7 @@ class Signup_Field_Order_Bump extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a product offer that the customer can click to add to the current cart.', 'wp-ultimo'); + return __('Adds a product offer that the customer can click to add to the current cart.', 'wp-multisite-waas'); } /** @@ -166,9 +166,9 @@ class Signup_Field_Order_Bump extends Base_Signup_Field { $editor_fields = [ 'product' => [ 'type' => 'model', - 'title' => __('Product', 'wp-ultimo'), - 'placeholder' => __('e.g. Premium', 'wp-ultimo'), - 'desc' => __('Select the product that will be presented to the customer as an add-on option.', 'wp-ultimo'), + 'title' => __('Product', 'wp-multisite-waas'), + 'placeholder' => __('e.g. Premium', 'wp-multisite-waas'), + 'desc' => __('Select the product that will be presented to the customer as an add-on option.', 'wp-multisite-waas'), 'tooltip' => '', 'order' => 12, 'html_attr' => [ @@ -182,15 +182,15 @@ class Signup_Field_Order_Bump extends Base_Signup_Field { 'display_product_description' => [ 'order' => 13, 'type' => 'toggle', - 'title' => __('Display Product Description', 'wp-ultimo'), - 'desc' => __('Toggle to display the product description as well, if one is available.', 'wp-ultimo'), + 'title' => __('Display Product Description', 'wp-multisite-waas'), + 'desc' => __('Toggle to display the product description as well, if one is available.', 'wp-multisite-waas'), 'value' => 0, ], 'display_product_image' => [ 'order' => 14, 'type' => 'toggle', - 'title' => __('Display Product Image', 'wp-ultimo'), - 'desc' => __('Toggle to display the product image as well, if one is available.', 'wp-ultimo'), + 'title' => __('Display Product Image', 'wp-multisite-waas'), + 'desc' => __('Toggle to display the product image as well, if one is available.', 'wp-multisite-waas'), 'value' => 1, ], ]; @@ -202,8 +202,8 @@ class Signup_Field_Order_Bump extends Base_Signup_Field { // 'fields' => array( // 'order_bump_template' => array( // 'type' => 'select', - // 'title' => __('Layout', 'wp-ultimo'), - // 'placeholder' => __('Select your Layout', 'wp-ultimo'), + // 'title' => __('Layout', 'wp-multisite-waas'), + // 'placeholder' => __('Select your Layout', 'wp-multisite-waas'), // 'options' => array($this, 'get_templates'), // 'wrapper_classes' => 'wu-flex-grow', // 'html_attr' => array( @@ -219,7 +219,7 @@ class Signup_Field_Order_Bump extends Base_Signup_Field { // 'order' => 99, // 'wrapper_classes' => 'sm:wu-p-0 sm:wu-block', // 'classes' => '', - // 'desc' => sprintf('
%s
', __('Want to add customized order bump templates?
See how you can do that here.', 'wp-ultimo')), + // 'desc' => sprintf('
%s
', __('Want to add customized order bump templates?
See how you can do that here.', 'wp-multisite-waas')), // ); return $editor_fields; @@ -247,7 +247,7 @@ class Signup_Field_Order_Bump extends Base_Signup_Field { $template_class = Field_Templates_Manager::get_instance()->get_template_class('order_bump', $attributes['order_bump_template']); - $content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'wp-ultimo'); + $content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'wp-multisite-waas'); return [ $attributes['id'] => [ diff --git a/inc/checkout/signup-fields/class-signup-field-order-summary.php b/inc/checkout/signup-fields/class-signup-field-order-summary.php index 9fc3d73..d8fc13e 100644 --- a/inc/checkout/signup-fields/class-signup-field-order-summary.php +++ b/inc/checkout/signup-fields/class-signup-field-order-summary.php @@ -54,7 +54,7 @@ class Signup_Field_Order_Summary extends Base_Signup_Field { */ public function get_title() { - return __('Order Summary', 'wp-ultimo'); + return __('Order Summary', 'wp-multisite-waas'); } /** @@ -67,7 +67,7 @@ class Signup_Field_Order_Summary extends Base_Signup_Field { */ public function get_description() { - return __('Adds a summary table with prices, key subscription dates, discounts, and taxes.', 'wp-ultimo'); + return __('Adds a summary table with prices, key subscription dates, discounts, and taxes.', 'wp-multisite-waas'); } /** @@ -80,7 +80,7 @@ class Signup_Field_Order_Summary extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a summary table with prices, key subscription dates, discounts, and taxes.', 'wp-ultimo'); + return __('Adds a summary table with prices, key subscription dates, discounts, and taxes.', 'wp-multisite-waas'); } /** @@ -163,11 +163,11 @@ class Signup_Field_Order_Summary extends Base_Signup_Field { $editor_fields['table_columns'] = [ 'type' => 'select', - 'title' => __('Table Columns', 'wp-ultimo'), - 'desc' => __('"Simplified" will condense all discount and tax info into separate rows to keep the table with only two columns. "Display All" adds a discounts and taxes column to each product row.', 'wp-ultimo'), + 'title' => __('Table Columns', 'wp-multisite-waas'), + 'desc' => __('"Simplified" will condense all discount and tax info into separate rows to keep the table with only two columns. "Display All" adds a discounts and taxes column to each product row.', 'wp-multisite-waas'), 'options' => [ - 'simple' => __('Simplified', 'wp-ultimo'), - 'full' => __('Display All', 'wp-ultimo'), + 'simple' => __('Simplified', 'wp-multisite-waas'), + 'full' => __('Display All', 'wp-multisite-waas'), ], ]; @@ -177,8 +177,8 @@ class Signup_Field_Order_Summary extends Base_Signup_Field { 'fields' => [ 'order_summary_template' => [ 'type' => 'select', - 'title' => __('Layout', 'wp-ultimo'), - 'placeholder' => __('Select your Layout', 'wp-ultimo'), + 'title' => __('Layout', 'wp-multisite-waas'), + 'placeholder' => __('Select your Layout', 'wp-multisite-waas'), 'options' => [$this, 'get_templates'], 'wrapper_classes' => 'wu-flex-grow', 'html_attr' => [ @@ -194,7 +194,7 @@ class Signup_Field_Order_Summary extends Base_Signup_Field { // 'order' => 99, // 'wrapper_classes' => 'sm:wu-p-0 sm:wu-block', // 'classes' => '', - // 'desc' => sprintf('
%s
', __('Want to add customized order summary templates?
See how you can do that here.', 'wp-ultimo')), + // 'desc' => sprintf('
%s
', __('Want to add customized order summary templates?
See how you can do that here.', 'wp-multisite-waas')), // ); return $editor_fields; @@ -221,7 +221,7 @@ class Signup_Field_Order_Summary extends Base_Signup_Field { $template_class = Field_Templates_Manager::get_instance()->get_template_class('order_summary', $attributes['order_summary_template']); - $content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'wp-ultimo'); + $content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'wp-multisite-waas'); $checkout_fields[ $attributes['id'] ] = [ 'type' => 'note', diff --git a/inc/checkout/signup-fields/class-signup-field-password.php b/inc/checkout/signup-fields/class-signup-field-password.php index f356192..8bcf87d 100644 --- a/inc/checkout/signup-fields/class-signup-field-password.php +++ b/inc/checkout/signup-fields/class-signup-field-password.php @@ -69,7 +69,7 @@ class Signup_Field_Password extends Base_Signup_Field { */ public function get_title() { - return __('Password', 'wp-ultimo'); + return __('Password', 'wp-multisite-waas'); } /** @@ -82,7 +82,7 @@ class Signup_Field_Password extends Base_Signup_Field { */ public function get_description() { - return __('Adds a password field, with options for enforcing password strength and adding password confirmation field. This password is then used to create the WordPress user.', 'wp-ultimo'); + return __('Adds a password field, with options for enforcing password strength and adding password confirmation field. This password is then used to create the WordPress user.', 'wp-multisite-waas'); } /** @@ -95,7 +95,7 @@ class Signup_Field_Password extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a password field, with options for enforcing password strength and adding password confirmation field. This password is then used to create the WordPress user.', 'wp-ultimo'); + return __('Adds a password field, with options for enforcing password strength and adding password confirmation field. This password is then used to create the WordPress user.', 'wp-multisite-waas'); } /** @@ -124,7 +124,7 @@ class Signup_Field_Password extends Base_Signup_Field { return [ 'password_confirm_field' => false, - 'password_confirm_label' => __('Confirm Password', 'wp-ultimo'), + 'password_confirm_label' => __('Confirm Password', 'wp-multisite-waas'), ]; } @@ -168,14 +168,14 @@ class Signup_Field_Password extends Base_Signup_Field { return [ 'password_strength_meter' => [ 'type' => 'toggle', - 'title' => __('Display Password Strength Meter', 'wp-ultimo'), - 'desc' => __('Adds a password strength meter below the password field. Enabling this option also enforces passwords to be strong.', 'wp-ultimo'), + 'title' => __('Display Password Strength Meter', 'wp-multisite-waas'), + 'desc' => __('Adds a password strength meter below the password field. Enabling this option also enforces passwords to be strong.', 'wp-multisite-waas'), 'value' => 1, ], 'password_confirm_field' => [ 'type' => 'toggle', - 'title' => __('Display Password Confirm Field', 'wp-ultimo'), - 'desc' => __('Adds a "Confirm your Password" field below the default password field to reduce the chance or making a mistake.', 'wp-ultimo'), + 'title' => __('Display Password Confirm Field', 'wp-multisite-waas'), + 'desc' => __('Adds a "Confirm your Password" field below the default password field to reduce the chance or making a mistake.', 'wp-multisite-waas'), 'value' => 1, ], ]; diff --git a/inc/checkout/signup-fields/class-signup-field-payment.php b/inc/checkout/signup-fields/class-signup-field-payment.php index ea46890..5d0874b 100644 --- a/inc/checkout/signup-fields/class-signup-field-payment.php +++ b/inc/checkout/signup-fields/class-signup-field-payment.php @@ -56,7 +56,7 @@ class Signup_Field_Payment extends Base_Signup_Field { */ public function get_title() { - return __('Payment', 'wp-ultimo'); + return __('Payment', 'wp-multisite-waas'); } /** @@ -69,7 +69,7 @@ class Signup_Field_Payment extends Base_Signup_Field { */ public function get_description() { - return __('Adds the payment options and the additional fields required to complete a purchase (e.g. credit card field).', 'wp-ultimo'); + return __('Adds the payment options and the additional fields required to complete a purchase (e.g. credit card field).', 'wp-multisite-waas'); } /** @@ -82,7 +82,7 @@ class Signup_Field_Payment extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds the payment options and the additional fields required to complete a purchase (e.g. credit card field).', 'wp-ultimo'); + return __('Adds the payment options and the additional fields required to complete a purchase (e.g. credit card field).', 'wp-multisite-waas'); } /** @@ -190,7 +190,7 @@ class Signup_Field_Payment extends Base_Signup_Field { $fields['auto_renew'] = [ 'type' => 'toggle', 'id' => 'auto_renew', - 'name' => __('Auto-renew', 'wp-ultimo'), + 'name' => __('Auto-renew', 'wp-multisite-waas'), 'tooltip' => '', 'value' => '1', 'html_attr' => [ diff --git a/inc/checkout/signup-fields/class-signup-field-period-selection.php b/inc/checkout/signup-fields/class-signup-field-period-selection.php index 9888e4f..ccd4bd4 100644 --- a/inc/checkout/signup-fields/class-signup-field-period-selection.php +++ b/inc/checkout/signup-fields/class-signup-field-period-selection.php @@ -54,7 +54,7 @@ class Signup_Field_Period_Selection extends Base_Signup_Field { */ public function get_title() { - return __('Period Select', 'wp-ultimo'); + return __('Period Select', 'wp-multisite-waas'); } /** @@ -67,7 +67,7 @@ class Signup_Field_Period_Selection extends Base_Signup_Field { */ public function get_description() { - return __('Adds a period selector, that allows customers to switch between different billing periods.', 'wp-ultimo'); + return __('Adds a period selector, that allows customers to switch between different billing periods.', 'wp-multisite-waas'); } /** @@ -80,7 +80,7 @@ class Signup_Field_Period_Selection extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a period selector, that allows customers to switch between different billing periods.', 'wp-ultimo'); + return __('Adds a period selector, that allows customers to switch between different billing periods.', 'wp-multisite-waas'); } /** @@ -134,7 +134,7 @@ class Signup_Field_Period_Selection extends Base_Signup_Field { return [ 'id' => 'period_selection', - 'name' => __('Plan Duration Switch', 'wp-ultimo'), + 'name' => __('Plan Duration Switch', 'wp-multisite-waas'), 'required' => true, ]; } @@ -169,8 +169,8 @@ class Signup_Field_Period_Selection extends Base_Signup_Field { 'fields' => [ 'period_selection_template' => [ 'type' => 'select', - 'title' => __('Period Selector Template', 'wp-ultimo'), - 'placeholder' => __('Select your Template', 'wp-ultimo'), + 'title' => __('Period Selector Template', 'wp-multisite-waas'), + 'placeholder' => __('Select your Template', 'wp-multisite-waas'), 'options' => [$this, 'get_template_options'], 'wrapper_classes' => 'wu-flex-grow', 'html_attr' => [ @@ -182,14 +182,14 @@ class Signup_Field_Period_Selection extends Base_Signup_Field { $editor_fields['period_options_header'] = [ 'type' => 'small-header', - 'title' => __('Options', 'wp-ultimo'), - 'desc' => __('Add different options below. These need to match your product price variations.', 'wp-ultimo'), + 'title' => __('Options', 'wp-multisite-waas'), + 'desc' => __('Add different options below. These need to match your product price variations.', 'wp-multisite-waas'), 'order' => 90, ]; $editor_fields['period_options_empty'] = [ 'type' => 'note', - 'desc' => __('Add the first option using the button below.', 'wp-ultimo'), + 'desc' => __('Add the first option using the button below.', 'wp-multisite-waas'), 'classes' => 'wu-text-gray-600 wu-text-xs wu-text-center wu-w-full', 'wrapper_classes' => 'wu-bg-gray-100 wu-items-end', 'order' => 90.5, @@ -212,12 +212,12 @@ class Signup_Field_Period_Selection extends Base_Signup_Field { 'fields' => [ 'period_options_remove' => [ 'type' => 'note', - 'desc' => sprintf('', __('Remove', 'wp-ultimo')), + 'desc' => sprintf('', __('Remove', 'wp-multisite-waas')), 'wrapper_classes' => 'wu-absolute wu-top-0 wu-right-0', ], 'period_options_duration' => [ 'type' => 'number', - 'title' => __('Duration', 'wp-ultimo'), + 'title' => __('Duration', 'wp-multisite-waas'), 'placeholder' => '', 'wrapper_classes' => 'wu-w-2/12', 'min' => 1, @@ -237,16 +237,16 @@ class Signup_Field_Period_Selection extends Base_Signup_Field { 'v-bind:name' => '"period_options[" + index + "][duration_unit]"', ], 'options' => [ - 'day' => __('Days', 'wp-ultimo'), - 'week' => __('Weeks', 'wp-ultimo'), - 'month' => __('Months', 'wp-ultimo'), - 'year' => __('Years', 'wp-ultimo'), + 'day' => __('Days', 'wp-multisite-waas'), + 'week' => __('Weeks', 'wp-multisite-waas'), + 'month' => __('Months', 'wp-multisite-waas'), + 'year' => __('Years', 'wp-multisite-waas'), ], ], 'period_options_label' => [ 'type' => 'text', - 'title' => __('Label', 'wp-ultimo'), - 'placeholder' => __('e.g. Monthly', 'wp-ultimo'), + 'title' => __('Label', 'wp-multisite-waas'), + 'placeholder' => __('e.g. Monthly', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-w-5/12', 'html_attr' => [ 'v-model' => 'period_option.label', @@ -259,7 +259,7 @@ class Signup_Field_Period_Selection extends Base_Signup_Field { $editor_fields['repeat'] = [ 'order' => 92, 'type' => 'submit', - 'title' => __('+ Add option', 'wp-ultimo'), + 'title' => __('+ Add option', 'wp-multisite-waas'), 'classes' => 'wu-uppercase wu-text-2xs wu-text-blue-700 wu-border-none wu-bg-transparent wu-font-bold wu-text-right wu-w-full wu-cursor-pointer', 'wrapper_classes' => 'wu-bg-gray-100 wu-items-end', 'wrapper_html_attr' => [ @@ -297,7 +297,7 @@ class Signup_Field_Period_Selection extends Base_Signup_Field { $template_class = Field_Templates_Manager::get_instance()->get_template_class('period_selection', $attributes['period_selection_template']); - $content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'wp-ultimo'); + $content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'wp-multisite-waas'); $checkout_fields = []; diff --git a/inc/checkout/signup-fields/class-signup-field-pricing-table.php b/inc/checkout/signup-fields/class-signup-field-pricing-table.php index 7cea9f6..78fd725 100644 --- a/inc/checkout/signup-fields/class-signup-field-pricing-table.php +++ b/inc/checkout/signup-fields/class-signup-field-pricing-table.php @@ -54,7 +54,7 @@ class Signup_Field_Pricing_Table extends Base_Signup_Field { */ public function get_title() { - return __('Pricing Table', 'wp-ultimo'); + return __('Pricing Table', 'wp-multisite-waas'); } /** @@ -67,7 +67,7 @@ class Signup_Field_Pricing_Table extends Base_Signup_Field { */ public function get_description() { - return __('Adds a pricing table section that customers can use to choose a plan to subscribe to.', 'wp-ultimo'); + return __('Adds a pricing table section that customers can use to choose a plan to subscribe to.', 'wp-multisite-waas'); } /** @@ -80,7 +80,7 @@ class Signup_Field_Pricing_Table extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a pricing table section that customers can use to choose a plan to subscribe to.', 'wp-ultimo'); + return __('Adds a pricing table section that customers can use to choose a plan to subscribe to.', 'wp-multisite-waas'); } /** @@ -137,7 +137,7 @@ class Signup_Field_Pricing_Table extends Base_Signup_Field { return [ 'id' => 'pricing_table', - 'name' => __('Plan Selection', 'wp-ultimo'), + 'name' => __('Plan Selection', 'wp-multisite-waas'), 'required' => true, ]; } @@ -167,9 +167,9 @@ class Signup_Field_Pricing_Table extends Base_Signup_Field { $editor_fields['pricing_table_products'] = [ 'type' => 'model', - 'title' => __('Products', 'wp-ultimo'), - 'placeholder' => __('e.g. Premium', 'wp-ultimo'), - 'desc' => __('Be sure to add the products in the order you want them to show up.', 'wp-ultimo'), + 'title' => __('Products', 'wp-multisite-waas'), + 'placeholder' => __('e.g. Premium', 'wp-multisite-waas'), + 'desc' => __('Be sure to add the products in the order you want them to show up.', 'wp-multisite-waas'), 'tooltip' => '', 'order' => 20, 'html_attr' => [ @@ -184,8 +184,8 @@ class Signup_Field_Pricing_Table extends Base_Signup_Field { $editor_fields['force_different_durations'] = [ 'type' => 'toggle', - 'title' => __('Force Different Durations', 'wp-ultimo'), - 'desc' => __('Check this option to force the display of plans with different recurring durations.', 'wp-ultimo'), + 'title' => __('Force Different Durations', 'wp-multisite-waas'), + 'desc' => __('Check this option to force the display of plans with different recurring durations.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 0, 'order' => 22, @@ -196,9 +196,9 @@ class Signup_Field_Pricing_Table extends Base_Signup_Field { $editor_fields['hide_pricing_table_when_pre_selected'] = [ 'type' => 'toggle', - 'title' => __('Hide when Pre-Selected', 'wp-ultimo'), - 'desc' => __('Prevent customers from seeing this field when a plan was already selected via the URL.', 'wp-ultimo'), - 'tooltip' => __('If the pricing table field is the only field in the current step, the step will be skipped.', 'wp-ultimo'), + 'title' => __('Hide when Pre-Selected', 'wp-multisite-waas'), + 'desc' => __('Prevent customers from seeing this field when a plan was already selected via the URL.', 'wp-multisite-waas'), + 'tooltip' => __('If the pricing table field is the only field in the current step, the step will be skipped.', 'wp-multisite-waas'), 'value' => 0, 'order' => 24, 'html_attr' => [ @@ -213,8 +213,8 @@ class Signup_Field_Pricing_Table extends Base_Signup_Field { 'fields' => [ 'pricing_table_template' => [ 'type' => 'select', - 'title' => __('Pricing Table Template', 'wp-ultimo'), - 'placeholder' => __('Select your Template', 'wp-ultimo'), + 'title' => __('Pricing Table Template', 'wp-multisite-waas'), + 'placeholder' => __('Select your Template', 'wp-multisite-waas'), 'options' => [$this, 'get_pricing_table_templates'], 'wrapper_classes' => 'wu-flex-grow', 'html_attr' => [ @@ -230,7 +230,7 @@ class Signup_Field_Pricing_Table extends Base_Signup_Field { // 'order' => 99, // 'wrapper_classes' => 'sm:wu-p-0 sm:wu-block', // 'classes' => '', - // 'desc' => sprintf('
%s
', __('Want to add customized pricing table templates?
See how you can do that here.', 'wp-ultimo')), + // 'desc' => sprintf('
%s
', __('Want to add customized pricing table templates?
See how you can do that here.', 'wp-multisite-waas')), // ); return $editor_fields; @@ -277,7 +277,7 @@ class Signup_Field_Pricing_Table extends Base_Signup_Field { $template_class = Field_Templates_Manager::get_instance()->get_template_class('pricing_table', $attributes['pricing_table_template']); - $content = $template_class ? $template_class->render_container($template_attributes) : __('Template does not exist.', 'wp-ultimo'); + $content = $template_class ? $template_class->render_container($template_attributes) : __('Template does not exist.', 'wp-multisite-waas'); $checkout_fields = []; diff --git a/inc/checkout/signup-fields/class-signup-field-products.php b/inc/checkout/signup-fields/class-signup-field-products.php index ca2f49e..a9ca500 100644 --- a/inc/checkout/signup-fields/class-signup-field-products.php +++ b/inc/checkout/signup-fields/class-signup-field-products.php @@ -53,7 +53,7 @@ class Signup_Field_Products extends Base_Signup_Field { */ public function get_title() { - return __('Product', 'wp-ultimo'); + return __('Product', 'wp-multisite-waas'); } /** @@ -66,7 +66,7 @@ class Signup_Field_Products extends Base_Signup_Field { */ public function get_description() { - return __('Hidden field used to pre-select products. This is useful when you have a signup page for specific offering/bundles and do not want your customers to be able to choose plans and products manually.', 'wp-ultimo'); + return __('Hidden field used to pre-select products. This is useful when you have a signup page for specific offering/bundles and do not want your customers to be able to choose plans and products manually.', 'wp-multisite-waas'); } /** @@ -79,7 +79,7 @@ class Signup_Field_Products extends Base_Signup_Field { */ public function get_tooltip() { - return __('Hidden field used to pre-select products. This is useful when you have a signup page for specific offering/bundles and do not want your customers to be able to choose plans and products manually.', 'wp-ultimo'); + return __('Hidden field used to pre-select products. This is useful when you have a signup page for specific offering/bundles and do not want your customers to be able to choose plans and products manually.', 'wp-multisite-waas'); } /** @@ -130,7 +130,7 @@ class Signup_Field_Products extends Base_Signup_Field { public function force_attributes() { return [ - 'name' => __('Pre-selected Products', 'wp-ultimo'), + 'name' => __('Pre-selected Products', 'wp-multisite-waas'), 'id' => 'products', ]; } @@ -146,9 +146,9 @@ class Signup_Field_Products extends Base_Signup_Field { return [ 'products' => [ 'type' => 'model', - 'title' => __('Products', 'wp-ultimo'), - 'placeholder' => __('Products', 'wp-ultimo'), - 'desc' => __('Use this field to pre-select products. This is useful when you have a signup page for specific offering/bundles and do not want your customers to be able to choose plans and other products manually.', 'wp-ultimo'), + 'title' => __('Products', 'wp-multisite-waas'), + 'placeholder' => __('Products', 'wp-multisite-waas'), + 'desc' => __('Use this field to pre-select products. This is useful when you have a signup page for specific offering/bundles and do not want your customers to be able to choose plans and other products manually.', 'wp-multisite-waas'), 'tooltip' => '', 'html_attr' => [ 'data-model' => 'product', diff --git a/inc/checkout/signup-fields/class-signup-field-select.php b/inc/checkout/signup-fields/class-signup-field-select.php index 959069f..ad484a7 100644 --- a/inc/checkout/signup-fields/class-signup-field-select.php +++ b/inc/checkout/signup-fields/class-signup-field-select.php @@ -55,7 +55,7 @@ class Signup_Field_Select extends Base_Signup_Field { */ public function get_title() { - return __('Select', 'wp-ultimo'); + return __('Select', 'wp-multisite-waas'); } /** @@ -68,7 +68,7 @@ class Signup_Field_Select extends Base_Signup_Field { */ public function get_description() { - return __('Adds a select field.', 'wp-ultimo'); + return __('Adds a select field.', 'wp-multisite-waas'); } /** @@ -81,7 +81,7 @@ class Signup_Field_Select extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a select field.', 'wp-ultimo'); + return __('Adds a select field.', 'wp-multisite-waas'); } /** @@ -156,13 +156,13 @@ class Signup_Field_Select extends Base_Signup_Field { $editor_fields['options_header'] = [ 'order' => 12, 'type' => 'small-header', - 'title' => __('Options', 'wp-ultimo'), - 'desc' => __('Add different options below. The first option is used as the default.', 'wp-ultimo'), + 'title' => __('Options', 'wp-multisite-waas'), + 'desc' => __('Add different options below. The first option is used as the default.', 'wp-multisite-waas'), ]; $editor_fields['options_empty'] = [ 'type' => 'note', - 'desc' => __('Add the first option using the button below.', 'wp-ultimo'), + 'desc' => __('Add the first option using the button below.', 'wp-multisite-waas'), 'classes' => 'wu-text-gray-600 wu-text-xs wu-text-center wu-w-full', 'wrapper_classes' => 'wu-bg-gray-100 wu-items-end', 'order' => 13, @@ -185,13 +185,13 @@ class Signup_Field_Select extends Base_Signup_Field { 'fields' => [ 'options_remove' => [ 'type' => 'note', - 'desc' => sprintf('', __('Remove', 'wp-ultimo')), + 'desc' => sprintf('', __('Remove', 'wp-multisite-waas')), 'wrapper_classes' => 'wu-absolute wu-top-0 wu-right-0', ], 'options_key' => [ 'type' => 'text', - 'title' => __('Option Value', 'wp-ultimo'), - 'placeholder' => __('e.g. option1', 'wp-ultimo'), + 'title' => __('Option Value', 'wp-multisite-waas'), + 'placeholder' => __('e.g. option1', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-w-1/2 wu-mr-2', 'html_attr' => [ 'v-model' => 'option.key', @@ -201,8 +201,8 @@ class Signup_Field_Select extends Base_Signup_Field { ], 'options_label' => [ 'type' => 'text', - 'title' => __('Label', 'wp-ultimo'), - 'placeholder' => __('e.g. Option 1', 'wp-ultimo'), + 'title' => __('Label', 'wp-multisite-waas'), + 'placeholder' => __('e.g. Option 1', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-w-1/2 wu-ml-2', 'html_attr' => [ 'v-model' => 'option.label', @@ -215,7 +215,7 @@ class Signup_Field_Select extends Base_Signup_Field { $editor_fields['repeat_select_option'] = [ 'order' => 16, 'type' => 'submit', - 'title' => __('+ Add option', 'wp-ultimo'), + 'title' => __('+ Add option', 'wp-multisite-waas'), 'classes' => 'wu-uppercase wu-text-2xs wu-text-blue-700 wu-border-none wu-bg-transparent wu-font-bold wu-text-right wu-w-full wu-cursor-pointer', 'wrapper_classes' => 'wu-bg-gray-100 wu-items-end', 'wrapper_html_attr' => [ diff --git a/inc/checkout/signup-fields/class-signup-field-shortcode.php b/inc/checkout/signup-fields/class-signup-field-shortcode.php index e5d77d6..eb60c21 100644 --- a/inc/checkout/signup-fields/class-signup-field-shortcode.php +++ b/inc/checkout/signup-fields/class-signup-field-shortcode.php @@ -53,7 +53,7 @@ class Signup_Field_Shortcode extends Base_Signup_Field { */ public function get_title() { - return __('Shortcode', 'wp-ultimo'); + return __('Shortcode', 'wp-multisite-waas'); } /** @@ -66,7 +66,7 @@ class Signup_Field_Shortcode extends Base_Signup_Field { */ public function get_description() { - return __('Displays the content of a given WordPress shortcode. Can be useful to inset content from other plugins inside a WP Multisite WaaS checkout form.', 'wp-ultimo'); + return __('Displays the content of a given WordPress shortcode. Can be useful to inset content from other plugins inside a WP Multisite WaaS checkout form.', 'wp-multisite-waas'); } /** @@ -79,7 +79,7 @@ class Signup_Field_Shortcode extends Base_Signup_Field { */ public function get_tooltip() { - return __('Displays the content of a given WordPress shortcode. Can be useful to insert content from other plugins inside a WP Multisite WaaS checkout form.', 'wp-ultimo'); + return __('Displays the content of a given WordPress shortcode. Can be useful to insert content from other plugins inside a WP Multisite WaaS checkout form.', 'wp-multisite-waas'); } /** @@ -133,7 +133,7 @@ class Signup_Field_Shortcode extends Base_Signup_Field { public function force_attributes() { return [ - 'name' => __('Shortcode', 'wp-ultimo'), + 'name' => __('Shortcode', 'wp-multisite-waas'), ]; } @@ -148,9 +148,9 @@ class Signup_Field_Shortcode extends Base_Signup_Field { return [ 'shortcode_code' => [ 'type' => 'text', - 'title' => __('Shortcode', 'wp-ultimo'), - 'placeholder' => __('e.g. [shortcode]', 'wp-ultimo'), - 'desc' => __('Please, enter the full shortcode, including [].', 'wp-ultimo'), + 'title' => __('Shortcode', 'wp-multisite-waas'), + 'placeholder' => __('e.g. [shortcode]', 'wp-multisite-waas'), + 'desc' => __('Please, enter the full shortcode, including [].', 'wp-multisite-waas'), ], ]; } diff --git a/inc/checkout/signup-fields/class-signup-field-site-title.php b/inc/checkout/signup-fields/class-signup-field-site-title.php index 4bfa42a..73e770a 100644 --- a/inc/checkout/signup-fields/class-signup-field-site-title.php +++ b/inc/checkout/signup-fields/class-signup-field-site-title.php @@ -66,7 +66,7 @@ class Signup_Field_Site_Title extends Base_Signup_Field { */ public function get_title() { - return __('Site Title', 'wp-ultimo'); + return __('Site Title', 'wp-multisite-waas'); } /** @@ -79,7 +79,7 @@ class Signup_Field_Site_Title extends Base_Signup_Field { */ public function get_description() { - return __('Adds a Site Title field. This value is used to set the site title for the site being created.', 'wp-ultimo'); + return __('Adds a Site Title field. This value is used to set the site title for the site being created.', 'wp-multisite-waas'); } /** @@ -92,7 +92,7 @@ class Signup_Field_Site_Title extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a Site Title field. This value is used to set the site title for the site being created.', 'wp-ultimo'); + return __('Adds a Site Title field. This value is used to set the site title for the site being created.', 'wp-multisite-waas'); } /** @@ -164,8 +164,8 @@ class Signup_Field_Site_Title extends Base_Signup_Field { return [ 'auto_generate_site_title' => [ 'type' => 'toggle', - 'title' => __('Auto-generate?', 'wp-ultimo'), - 'desc' => __('Check this option to auto-generate this field based on the username of the customer.', 'wp-ultimo'), + 'title' => __('Auto-generate?', 'wp-multisite-waas'), + 'desc' => __('Check this option to auto-generate this field based on the username of the customer.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 0, 'html_attr' => [ diff --git a/inc/checkout/signup-fields/class-signup-field-site-url.php b/inc/checkout/signup-fields/class-signup-field-site-url.php index 3c9c05c..645e411 100644 --- a/inc/checkout/signup-fields/class-signup-field-site-url.php +++ b/inc/checkout/signup-fields/class-signup-field-site-url.php @@ -63,7 +63,7 @@ class Signup_Field_Site_Url extends Base_Signup_Field { */ public function get_title() { - return __('Site URL', 'wp-ultimo'); + return __('Site URL', 'wp-multisite-waas'); } /** @@ -76,7 +76,7 @@ class Signup_Field_Site_Url extends Base_Signup_Field { */ public function get_description() { - return __('Adds a Site URL field. This is used to set the URL of the site being created.', 'wp-ultimo'); + return __('Adds a Site URL field. This is used to set the URL of the site being created.', 'wp-multisite-waas'); } /** @@ -89,7 +89,7 @@ class Signup_Field_Site_Url extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a Site URL field. This is used to set the URL of the site being created.', 'wp-ultimo'); + return __('Adds a Site URL field. This is used to set the URL of the site being created.', 'wp-multisite-waas'); } /** @@ -169,8 +169,8 @@ class Signup_Field_Site_Url extends Base_Signup_Field { 'auto_generate_site_url' => [ 'order' => 12, 'type' => 'toggle', - 'title' => __('Auto-generate', 'wp-ultimo'), - 'desc' => __('Check this option to auto-generate this field based on the username of the customer.', 'wp-ultimo'), + 'title' => __('Auto-generate', 'wp-multisite-waas'), + 'desc' => __('Check this option to auto-generate this field based on the username of the customer.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 0, 'html_attr' => [ @@ -180,8 +180,8 @@ class Signup_Field_Site_Url extends Base_Signup_Field { 'display_field_attachments' => [ 'order' => 18, 'type' => 'toggle', - 'title' => __('Display URL field attachments', 'wp-ultimo'), - 'desc' => __('Adds the prefix and suffix blocks to the URL field.', 'wp-ultimo'), + 'title' => __('Display URL field attachments', 'wp-multisite-waas'), + 'desc' => __('Adds the prefix and suffix blocks to the URL field.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, 'tab' => 'content', @@ -195,8 +195,8 @@ class Signup_Field_Site_Url extends Base_Signup_Field { 'display_url_preview' => [ 'order' => 19, 'type' => 'toggle', - 'title' => __('Display URL preview block', 'wp-ultimo'), - 'desc' => __('Adds a preview block that shows the final URL.', 'wp-ultimo'), + 'title' => __('Display URL preview block', 'wp-multisite-waas'), + 'desc' => __('Adds a preview block that shows the final URL.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, 'tab' => 'content', @@ -210,8 +210,8 @@ class Signup_Field_Site_Url extends Base_Signup_Field { 'enable_domain_selection' => [ 'order' => 20, 'type' => 'toggle', - 'title' => __('Enable Domain Selection', 'wp-ultimo'), - 'desc' => __('Offer different domain options to your customers to choose from.', 'wp-ultimo'), + 'title' => __('Enable Domain Selection', 'wp-multisite-waas'), + 'desc' => __('Offer different domain options to your customers to choose from.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 0, 'tab' => 'content', @@ -226,9 +226,9 @@ class Signup_Field_Site_Url extends Base_Signup_Field { 'available_domains' => [ 'order' => 30, 'type' => 'textarea', - 'title' => __('Available Domains', 'wp-ultimo'), + 'title' => __('Available Domains', 'wp-multisite-waas'), 'desc' => '', - 'desc' => __('Enter one domain option per line.', 'wp-ultimo'), + 'desc' => __('Enter one domain option per line.', 'wp-multisite-waas'), 'value' => $current_site->domain . PHP_EOL, 'tab' => 'content', 'wrapper_html_attr' => [ @@ -250,8 +250,8 @@ class Signup_Field_Site_Url extends Base_Signup_Field { public function get_url_preview_templates() { $templates = [ - 'legacy/signup/steps/step-domain-url-preview' => __('New URL Preview', 'wp-ultimo'), - // 'legacy/signup/steps/step-domain-url-preview' => __('Legacy Template', 'wp-ultimo'), + 'legacy/signup/steps/step-domain-url-preview' => __('New URL Preview', 'wp-multisite-waas'), + // 'legacy/signup/steps/step-domain-url-preview' => __('Legacy Template', 'wp-multisite-waas'), ]; return apply_filters('wu_get_pricing_table_templates', $templates); @@ -331,7 +331,7 @@ class Signup_Field_Site_Url extends Base_Signup_Field { $options = $this->get_domain_options($attributes['available_domains']); $checkout_fields['site_domain'] = [ - 'name' => __('Domain', 'wp-ultimo'), + 'name' => __('Domain', 'wp-multisite-waas'), 'options' => $options, 'wrapper_classes' => wu_get_isset($attributes, 'wrapper_element_classes', ''), 'classes' => wu_get_isset($attributes, 'element_classes', ''), diff --git a/inc/checkout/signup-fields/class-signup-field-steps.php b/inc/checkout/signup-fields/class-signup-field-steps.php index 8d81b2f..4db9596 100644 --- a/inc/checkout/signup-fields/class-signup-field-steps.php +++ b/inc/checkout/signup-fields/class-signup-field-steps.php @@ -54,7 +54,7 @@ class Signup_Field_Steps extends Base_Signup_Field { */ public function get_title() { - return __('Steps', 'wp-ultimo'); + return __('Steps', 'wp-multisite-waas'); } /** @@ -67,7 +67,7 @@ class Signup_Field_Steps extends Base_Signup_Field { */ public function get_description() { - return __('Adds a list of the steps.', 'wp-ultimo'); + return __('Adds a list of the steps.', 'wp-multisite-waas'); } /** @@ -80,7 +80,7 @@ class Signup_Field_Steps extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a list of the steps.', 'wp-ultimo'); + return __('Adds a list of the steps.', 'wp-multisite-waas'); } /** @@ -163,8 +163,8 @@ class Signup_Field_Steps extends Base_Signup_Field { 'fields' => [ 'steps_template' => [ 'type' => 'select', - 'title' => __('Layout', 'wp-ultimo'), - 'placeholder' => __('Select your Layout', 'wp-ultimo'), + 'title' => __('Layout', 'wp-multisite-waas'), + 'placeholder' => __('Select your Layout', 'wp-multisite-waas'), 'options' => [$this, 'get_templates'], 'wrapper_classes' => 'wu-flex-grow', 'html_attr' => [ @@ -180,7 +180,7 @@ class Signup_Field_Steps extends Base_Signup_Field { // 'order' => 99, // 'wrapper_classes' => 'sm:wu-p-0 sm:wu-block', // 'classes' => '', - // 'desc' => sprintf('
%s
', __('Want to add customized steps templates?
See how you can do that here.', 'wp-ultimo')), + // 'desc' => sprintf('
%s
', __('Want to add customized steps templates?
See how you can do that here.', 'wp-multisite-waas')), // ); return $editor_fields; @@ -207,7 +207,7 @@ class Signup_Field_Steps extends Base_Signup_Field { $template_class = Field_Templates_Manager::get_instance()->get_template_class('steps', $attributes['steps_template']); - $content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'wp-ultimo'); + $content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'wp-multisite-waas'); return [ $attributes['id'] => [ diff --git a/inc/checkout/signup-fields/class-signup-field-submit-button.php b/inc/checkout/signup-fields/class-signup-field-submit-button.php index a14ceb8..bd5c36c 100644 --- a/inc/checkout/signup-fields/class-signup-field-submit-button.php +++ b/inc/checkout/signup-fields/class-signup-field-submit-button.php @@ -55,7 +55,7 @@ class Signup_Field_Submit_Button extends Base_Signup_Field { */ public function get_title() { - return __('Submit Button', 'wp-ultimo'); + return __('Submit Button', 'wp-multisite-waas'); } /** @@ -68,7 +68,7 @@ class Signup_Field_Submit_Button extends Base_Signup_Field { */ public function get_description() { - return __('Adds a submit button. This is required to finalize single-step checkout forms or to navigate to the next step on multi-step checkout forms.', 'wp-ultimo'); + return __('Adds a submit button. This is required to finalize single-step checkout forms or to navigate to the next step on multi-step checkout forms.', 'wp-multisite-waas'); } /** @@ -81,7 +81,7 @@ class Signup_Field_Submit_Button extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a submit button. This is required to finalize single-step checkout forms or to navigate to the next step on multi-step checkout forms.', 'wp-ultimo'); + return __('Adds a submit button. This is required to finalize single-step checkout forms or to navigate to the next step on multi-step checkout forms.', 'wp-multisite-waas'); } /** @@ -110,7 +110,7 @@ class Signup_Field_Submit_Button extends Base_Signup_Field { return [ 'enable_go_back_button' => false, - 'back_button_label' => __('← Go Back', 'wp-ultimo'), + 'back_button_label' => __('← Go Back', 'wp-multisite-waas'), ]; } @@ -150,8 +150,8 @@ class Signup_Field_Submit_Button extends Base_Signup_Field { return [ 'enable_go_back_button' => [ 'type' => 'toggle', - 'title' => __('Add "Go Back" button', 'wp-ultimo'), - 'desc' => __('Enable this option to add a "Go Back" button. Useful for multi-step checkout forms.', 'wp-ultimo'), + 'title' => __('Add "Go Back" button', 'wp-multisite-waas'), + 'desc' => __('Enable this option to add a "Go Back" button. Useful for multi-step checkout forms.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 0, 'html_attr' => [ @@ -160,10 +160,10 @@ class Signup_Field_Submit_Button extends Base_Signup_Field { ], 'back_button_label' => [ 'type' => 'text', - 'title' => __('"Go Back" Button Label', 'wp-ultimo'), - 'desc' => __('Value to be used as the "Go Back" label.', 'wp-ultimo'), - 'placeholder' => __('e.g. ← Go Back', 'wp-ultimo'), - 'value' => __('← Go Back', 'wp-ultimo'), + 'title' => __('"Go Back" Button Label', 'wp-multisite-waas'), + 'desc' => __('Value to be used as the "Go Back" label.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. ← Go Back', 'wp-multisite-waas'), + 'value' => __('← Go Back', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-cloak' => '1', 'v-show' => 'enable_go_back_button', diff --git a/inc/checkout/signup-fields/class-signup-field-template-selection.php b/inc/checkout/signup-fields/class-signup-field-template-selection.php index a393457..85e46dd 100644 --- a/inc/checkout/signup-fields/class-signup-field-template-selection.php +++ b/inc/checkout/signup-fields/class-signup-field-template-selection.php @@ -55,7 +55,7 @@ class Signup_Field_Template_Selection extends Base_Signup_Field { */ public function get_title() { - return __('Templates', 'wp-ultimo'); + return __('Templates', 'wp-multisite-waas'); } /** @@ -68,7 +68,7 @@ class Signup_Field_Template_Selection extends Base_Signup_Field { */ public function get_description() { - return __('Adds a template selection section. This allows the customer to choose a pre-built site to be used as a template for the site being currently created.', 'wp-ultimo'); + return __('Adds a template selection section. This allows the customer to choose a pre-built site to be used as a template for the site being currently created.', 'wp-multisite-waas'); } /** @@ -81,7 +81,7 @@ class Signup_Field_Template_Selection extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a template selection section. This allows the customer to choose a pre-built site to be used as a template for the site being currently created.', 'wp-ultimo'); + return __('Adds a template selection section. This allows the customer to choose a pre-built site to be used as a template for the site being currently created.', 'wp-multisite-waas'); } /** @@ -139,7 +139,7 @@ class Signup_Field_Template_Selection extends Base_Signup_Field { return [ 'id' => 'template_selection', - 'name' => __('Template Selection', 'wp-ultimo'), + 'name' => __('Template Selection', 'wp-multisite-waas'), 'required' => true, ]; } @@ -173,8 +173,8 @@ class Signup_Field_Template_Selection extends Base_Signup_Field { $editor_fields['template_selection_type'] = [ 'type' => 'select', - 'title' => __('Available templates', 'wp-ultimo'), - 'desc' => __('How do you want to choose available which templates will be available.', 'wp-ultimo'), + 'title' => __('Available templates', 'wp-multisite-waas'), + 'desc' => __('How do you want to choose available which templates will be available.', 'wp-multisite-waas'), 'order' => 20, 'options' => [ 'name' => __('Select by names'), @@ -188,9 +188,9 @@ class Signup_Field_Template_Selection extends Base_Signup_Field { $editor_fields['template_selection_categories'] = [ 'type' => 'select', - 'title' => __('Template Categories', 'wp-ultimo'), - 'placeholder' => __('e.g.: Landing Page, Health...', 'wp-ultimo'), - 'desc' => __('Customers will be able to filter by categories during signup.', 'wp-ultimo'), + 'title' => __('Template Categories', 'wp-multisite-waas'), + 'placeholder' => __('e.g.: Landing Page, Health...', 'wp-multisite-waas'), + 'desc' => __('Customers will be able to filter by categories during signup.', 'wp-multisite-waas'), 'order' => 21, 'options' => Site::get_all_categories(), 'html_attr' => [ @@ -204,9 +204,9 @@ class Signup_Field_Template_Selection extends Base_Signup_Field { $editor_fields['template_selection_sites'] = [ 'type' => 'model', - 'title' => __('Template Sites', 'wp-ultimo'), - 'placeholder' => __('e.g. Template Site 1, My Agency', 'wp-ultimo'), - 'desc' => __('Be sure to add the templates in the order you want them to show up.', 'wp-ultimo'), + 'title' => __('Template Sites', 'wp-multisite-waas'), + 'placeholder' => __('e.g. Template Site 1, My Agency', 'wp-multisite-waas'), + 'desc' => __('Be sure to add the templates in the order you want them to show up.', 'wp-multisite-waas'), 'order' => 22, 'html_attr' => [ 'v-model' => 'template_selection_sites', @@ -231,9 +231,9 @@ class Signup_Field_Template_Selection extends Base_Signup_Field { $editor_fields['hide_template_selection_when_pre_selected'] = [ 'type' => 'toggle', - 'title' => __('Hide when Pre-Selected', 'wp-ultimo'), - 'desc' => __('Prevent customers from seeing this field when a template was already selected via the URL.', 'wp-ultimo'), - 'tooltip' => __('If the template selection field is the only field in the current step, the step will be skipped.', 'wp-ultimo'), + 'title' => __('Hide when Pre-Selected', 'wp-multisite-waas'), + 'desc' => __('Prevent customers from seeing this field when a template was already selected via the URL.', 'wp-multisite-waas'), + 'tooltip' => __('If the template selection field is the only field in the current step, the step will be skipped.', 'wp-multisite-waas'), 'value' => 0, 'order' => 23, 'html_attr' => [ @@ -248,8 +248,8 @@ class Signup_Field_Template_Selection extends Base_Signup_Field { 'fields' => [ 'template_selection_template' => [ 'type' => 'select', - 'title' => __('Template Selector Template', 'wp-ultimo'), - 'placeholder' => __('Select your Template', 'wp-ultimo'), + 'title' => __('Template Selector Template', 'wp-multisite-waas'), + 'placeholder' => __('Select your Template', 'wp-multisite-waas'), 'options' => [$this, 'get_template_selection_templates'], 'wrapper_classes' => 'wu-flex-grow', 'html_attr' => [ @@ -265,7 +265,7 @@ class Signup_Field_Template_Selection extends Base_Signup_Field { // 'order' => 99, // 'wrapper_classes' => 'sm:wu-p-0 sm:wu-block', // 'classes' => '', - // 'desc' => sprintf('
%s
', __('Want to add customized template selection templates?
See how you can do that here.', 'wp-ultimo')), + // 'desc' => sprintf('
%s
', __('Want to add customized template selection templates?
See how you can do that here.', 'wp-multisite-waas')), // ); return $editor_fields; @@ -356,7 +356,7 @@ class Signup_Field_Template_Selection extends Base_Signup_Field { $template_class = Field_Templates_Manager::get_instance()->get_template_class('template_selection', $attributes['template_selection_template']); - $content = $template_class ? $template_class->render_container($template_attributes, $this) : __('Template does not exist.', 'wp-ultimo'); + $content = $template_class ? $template_class->render_container($template_attributes, $this) : __('Template does not exist.', 'wp-multisite-waas'); $checkout_fields[ $attributes['id'] ] = [ 'type' => 'note', diff --git a/inc/checkout/signup-fields/class-signup-field-terms-of-use.php b/inc/checkout/signup-fields/class-signup-field-terms-of-use.php index 7746cbb..f7eb3e3 100644 --- a/inc/checkout/signup-fields/class-signup-field-terms-of-use.php +++ b/inc/checkout/signup-fields/class-signup-field-terms-of-use.php @@ -69,7 +69,7 @@ class Signup_Field_Terms_Of_Use extends Base_Signup_Field { */ public function get_title() { - return __('Terms of Use', 'wp-ultimo'); + return __('Terms of Use', 'wp-multisite-waas'); } /** @@ -82,7 +82,7 @@ class Signup_Field_Terms_Of_Use extends Base_Signup_Field { */ public function get_description() { - return __('Adds a terms and conditions checkbox that must be marked before the account/site can be created.', 'wp-ultimo'); + return __('Adds a terms and conditions checkbox that must be marked before the account/site can be created.', 'wp-multisite-waas'); } /** @@ -95,7 +95,7 @@ class Signup_Field_Terms_Of_Use extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a terms and conditions checkbox that must be marked before the account/site can be created.', 'wp-ultimo'); + return __('Adds a terms and conditions checkbox that must be marked before the account/site can be created.', 'wp-multisite-waas'); } /** @@ -123,7 +123,7 @@ class Signup_Field_Terms_Of_Use extends Base_Signup_Field { public function defaults() { return [ - 'tou_name' => __('I agree with the terms of use.', 'wp-ultimo'), + 'tou_name' => __('I agree with the terms of use.', 'wp-multisite-waas'), ]; } @@ -148,7 +148,7 @@ class Signup_Field_Terms_Of_Use extends Base_Signup_Field { return [ 'id' => 'terms_of_use', - 'name' => __('Terms of Use', 'wp-ultimo'), + 'name' => __('Terms of Use', 'wp-multisite-waas'), ]; } @@ -164,15 +164,15 @@ class Signup_Field_Terms_Of_Use extends Base_Signup_Field { 'tou_name' => [ 'order' => 10, 'type' => 'text', - 'title' => __('Terms Checkbox Label', 'wp-ultimo'), - 'placeholder' => __('e.g. I agree with the terms of use.', 'wp-ultimo'), + 'title' => __('Terms Checkbox Label', 'wp-multisite-waas'), + 'placeholder' => __('e.g. I agree with the terms of use.', 'wp-multisite-waas'), ], 'tou_url' => [ 'order' => 20, 'type' => 'url', - 'title' => __('Link to the Terms Page', 'wp-ultimo'), - 'desc' => __('Enter the link to the terms of use content.', 'wp-ultimo'), - 'placeholder' => __('e.g. https://yoursite.com/terms', 'wp-ultimo'), + 'title' => __('Link to the Terms Page', 'wp-multisite-waas'), + 'desc' => __('Enter the link to the terms of use content.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. https://yoursite.com/terms', 'wp-multisite-waas'), ], ]; } @@ -189,7 +189,7 @@ class Signup_Field_Terms_Of_Use extends Base_Signup_Field { $checkout_fields = []; - $tou_link = sprintf('%s', $attributes['tou_url'], __('Read here', 'wp-ultimo')); + $tou_link = sprintf('%s', $attributes['tou_url'], __('Read here', 'wp-multisite-waas')); $checkout_fields['terms_of_use'] = [ 'type' => 'checkbox', diff --git a/inc/checkout/signup-fields/class-signup-field-text.php b/inc/checkout/signup-fields/class-signup-field-text.php index 686a816..93570f7 100644 --- a/inc/checkout/signup-fields/class-signup-field-text.php +++ b/inc/checkout/signup-fields/class-signup-field-text.php @@ -55,7 +55,7 @@ class Signup_Field_Text extends Base_Signup_Field { */ public function get_title() { - return __('Text', 'wp-ultimo'); + return __('Text', 'wp-multisite-waas'); } /** @@ -68,7 +68,7 @@ class Signup_Field_Text extends Base_Signup_Field { */ public function get_description() { - return __('Adds a text field that the customer can fill with arbitrary data.', 'wp-ultimo'); + return __('Adds a text field that the customer can fill with arbitrary data.', 'wp-multisite-waas'); } /** @@ -81,7 +81,7 @@ class Signup_Field_Text extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds a text field that the customer can fill with arbitrary data.', 'wp-ultimo'); + return __('Adds a text field that the customer can fill with arbitrary data.', 'wp-multisite-waas'); } /** diff --git a/inc/checkout/signup-fields/class-signup-field-username.php b/inc/checkout/signup-fields/class-signup-field-username.php index 5241773..1cd6e9f 100644 --- a/inc/checkout/signup-fields/class-signup-field-username.php +++ b/inc/checkout/signup-fields/class-signup-field-username.php @@ -69,7 +69,7 @@ class Signup_Field_Username extends Base_Signup_Field { */ public function get_title() { - return __('Username', 'wp-ultimo'); + return __('Username', 'wp-multisite-waas'); } /** @@ -82,7 +82,7 @@ class Signup_Field_Username extends Base_Signup_Field { */ public function get_description() { - return __('Adds an username field. This username will be used to create the WordPress user.', 'wp-ultimo'); + return __('Adds an username field. This username will be used to create the WordPress user.', 'wp-multisite-waas'); } /** @@ -95,7 +95,7 @@ class Signup_Field_Username extends Base_Signup_Field { */ public function get_tooltip() { - return __('Adds an username field. This username will be used to create the WordPress user.', 'wp-ultimo'); + return __('Adds an username field. This username will be used to create the WordPress user.', 'wp-multisite-waas'); } /** @@ -167,8 +167,8 @@ class Signup_Field_Username extends Base_Signup_Field { return [ 'auto_generate_username' => [ 'type' => 'toggle', - 'title' => __('Auto-generate', 'wp-ultimo'), - 'desc' => __('Check this option to auto-generate this field based on the email address of the customer.', 'wp-ultimo'), + 'title' => __('Auto-generate', 'wp-multisite-waas'), + 'desc' => __('Check this option to auto-generate this field based on the email address of the customer.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 0, 'html_attr' => [ diff --git a/inc/checkout/signup-fields/field-templates/class-base-field-template.php b/inc/checkout/signup-fields/field-templates/class-base-field-template.php index 8175dcb..29abdbb 100644 --- a/inc/checkout/signup-fields/field-templates/class-base-field-template.php +++ b/inc/checkout/signup-fields/field-templates/class-base-field-template.php @@ -78,7 +78,7 @@ class Base_Field_Template { */ public function get_title() { - return __('Field Template', 'wp-ultimo'); + return __('Field Template', 'wp-multisite-waas'); } /** @@ -91,7 +91,7 @@ class Base_Field_Template { */ public function get_description() { - return __('Description', 'wp-ultimo'); + return __('Description', 'wp-multisite-waas'); } /** diff --git a/inc/checkout/signup-fields/field-templates/order-bump/class-simple-order-bump-field-template.php b/inc/checkout/signup-fields/field-templates/order-bump/class-simple-order-bump-field-template.php index 56eb491..dc53c05 100644 --- a/inc/checkout/signup-fields/field-templates/order-bump/class-simple-order-bump-field-template.php +++ b/inc/checkout/signup-fields/field-templates/order-bump/class-simple-order-bump-field-template.php @@ -64,7 +64,7 @@ class Simple_Order_Bump_Field_Template extends Base_Field_Template { */ public function get_title() { - return __('Simple', 'wp-ultimo'); + return __('Simple', 'wp-multisite-waas'); } /** @@ -77,7 +77,7 @@ class Simple_Order_Bump_Field_Template extends Base_Field_Template { */ public function get_description() { - return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'wp-ultimo'); + return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'wp-multisite-waas'); } /** diff --git a/inc/checkout/signup-fields/field-templates/order-summary/class-clean-order-summary-field-template.php b/inc/checkout/signup-fields/field-templates/order-summary/class-clean-order-summary-field-template.php index f3fe23f..a5a9be1 100644 --- a/inc/checkout/signup-fields/field-templates/order-summary/class-clean-order-summary-field-template.php +++ b/inc/checkout/signup-fields/field-templates/order-summary/class-clean-order-summary-field-template.php @@ -64,7 +64,7 @@ class Clean_Order_Summary_Field_Template extends Base_Field_Template { */ public function get_title() { - return __('Clean', 'wp-ultimo'); + return __('Clean', 'wp-multisite-waas'); } /** @@ -77,7 +77,7 @@ class Clean_Order_Summary_Field_Template extends Base_Field_Template { */ public function get_description() { - return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'wp-ultimo'); + return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'wp-multisite-waas'); } /** diff --git a/inc/checkout/signup-fields/field-templates/period-selection/class-clean-period-selection-field-template.php b/inc/checkout/signup-fields/field-templates/period-selection/class-clean-period-selection-field-template.php index 475e752..15449cc 100644 --- a/inc/checkout/signup-fields/field-templates/period-selection/class-clean-period-selection-field-template.php +++ b/inc/checkout/signup-fields/field-templates/period-selection/class-clean-period-selection-field-template.php @@ -64,7 +64,7 @@ class Clean_Period_Selection_Field_Template extends Base_Field_Template { */ public function get_title() { - return __('Clean', 'wp-ultimo'); + return __('Clean', 'wp-multisite-waas'); } /** @@ -77,7 +77,7 @@ class Clean_Period_Selection_Field_Template extends Base_Field_Template { */ public function get_description() { - return __('A simple template with clean markup and no styling, ready to be customized with custom CSS.', 'wp-ultimo'); + return __('A simple template with clean markup and no styling, ready to be customized with custom CSS.', 'wp-multisite-waas'); } /** diff --git a/inc/checkout/signup-fields/field-templates/period-selection/class-legacy-period-selection-field-template.php b/inc/checkout/signup-fields/field-templates/period-selection/class-legacy-period-selection-field-template.php index 5cc182e..2f151f0 100644 --- a/inc/checkout/signup-fields/field-templates/period-selection/class-legacy-period-selection-field-template.php +++ b/inc/checkout/signup-fields/field-templates/period-selection/class-legacy-period-selection-field-template.php @@ -64,7 +64,7 @@ class Legacy_Period_Selection_Field_Template extends Base_Field_Template { */ public function get_title() { - return __('Legacy', 'wp-ultimo'); + return __('Legacy', 'wp-multisite-waas'); } /** @@ -77,7 +77,7 @@ class Legacy_Period_Selection_Field_Template extends Base_Field_Template { */ public function get_description() { - return __('Implementation of the layout that shipped with WP Multisite WaaS < 1.10.X.', 'wp-ultimo'); + return __('Implementation of the layout that shipped with WP Multisite WaaS < 1.10.X.', 'wp-multisite-waas'); } /** diff --git a/inc/checkout/signup-fields/field-templates/pricing-table/class-legacy-pricing-table-field-template.php b/inc/checkout/signup-fields/field-templates/pricing-table/class-legacy-pricing-table-field-template.php index 0fdd83e..8c8eb73 100644 --- a/inc/checkout/signup-fields/field-templates/pricing-table/class-legacy-pricing-table-field-template.php +++ b/inc/checkout/signup-fields/field-templates/pricing-table/class-legacy-pricing-table-field-template.php @@ -64,7 +64,7 @@ class Legacy_Pricing_Table_Field_Template extends Base_Field_Template { */ public function get_title() { - return __('Legacy', 'wp-ultimo'); + return __('Legacy', 'wp-multisite-waas'); } /** @@ -77,7 +77,7 @@ class Legacy_Pricing_Table_Field_Template extends Base_Field_Template { */ public function get_description() { - return __('Implementation of the layout that shipped with WP Ultimo < 1.10.X.', 'wp-ultimo'); + return __('Implementation of the layout that shipped with WP Ultimo < 1.10.X.', 'wp-multisite-waas'); } /** diff --git a/inc/checkout/signup-fields/field-templates/pricing-table/class-list-pricing-table-field-template.php b/inc/checkout/signup-fields/field-templates/pricing-table/class-list-pricing-table-field-template.php index dac11a5..6ee7227 100644 --- a/inc/checkout/signup-fields/field-templates/pricing-table/class-list-pricing-table-field-template.php +++ b/inc/checkout/signup-fields/field-templates/pricing-table/class-list-pricing-table-field-template.php @@ -42,7 +42,7 @@ class List_Pricing_Table_Field_Template extends Base_Field_Template { */ public function get_title() { - return __('Simple List', 'wp-ultimo'); + return __('Simple List', 'wp-multisite-waas'); } /** @@ -55,7 +55,7 @@ class List_Pricing_Table_Field_Template extends Base_Field_Template { */ public function get_description() { - return __('Simple stylized list with price, recurrence, and the plan description.', 'wp-ultimo'); + return __('Simple stylized list with price, recurrence, and the plan description.', 'wp-multisite-waas'); } /** diff --git a/inc/checkout/signup-fields/field-templates/steps/class-clean-steps-field-template.php b/inc/checkout/signup-fields/field-templates/steps/class-clean-steps-field-template.php index 6c2d49e..4161a00 100644 --- a/inc/checkout/signup-fields/field-templates/steps/class-clean-steps-field-template.php +++ b/inc/checkout/signup-fields/field-templates/steps/class-clean-steps-field-template.php @@ -64,7 +64,7 @@ class Clean_Steps_Field_Template extends Base_Field_Template { */ public function get_title() { - return __('Clean', 'wp-ultimo'); + return __('Clean', 'wp-multisite-waas'); } /** @@ -77,7 +77,7 @@ class Clean_Steps_Field_Template extends Base_Field_Template { */ public function get_description() { - return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'wp-ultimo'); + return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'wp-multisite-waas'); } /** diff --git a/inc/checkout/signup-fields/field-templates/steps/class-legacy-steps-field-template.php b/inc/checkout/signup-fields/field-templates/steps/class-legacy-steps-field-template.php index 55107ce..b75adba 100644 --- a/inc/checkout/signup-fields/field-templates/steps/class-legacy-steps-field-template.php +++ b/inc/checkout/signup-fields/field-templates/steps/class-legacy-steps-field-template.php @@ -64,7 +64,7 @@ class Legacy_Steps_Field_Template extends Base_Field_Template { */ public function get_title() { - return __('Legacy', 'wp-ultimo'); + return __('Legacy', 'wp-multisite-waas'); } /** @@ -77,7 +77,7 @@ class Legacy_Steps_Field_Template extends Base_Field_Template { */ public function get_description() { - return __('Implementation of the layout that shipped with WP Ultimo < 1.10.X.', 'wp-ultimo'); + return __('Implementation of the layout that shipped with WP Ultimo < 1.10.X.', 'wp-multisite-waas'); } /** diff --git a/inc/checkout/signup-fields/field-templates/steps/class-minimal-steps-field-template.php b/inc/checkout/signup-fields/field-templates/steps/class-minimal-steps-field-template.php index da84848..ae4462b 100644 --- a/inc/checkout/signup-fields/field-templates/steps/class-minimal-steps-field-template.php +++ b/inc/checkout/signup-fields/field-templates/steps/class-minimal-steps-field-template.php @@ -64,7 +64,7 @@ class Minimal_Steps_Field_Template extends Base_Field_Template { */ public function get_title() { - return __('Minimal', 'wp-ultimo'); + return __('Minimal', 'wp-multisite-waas'); } /** @@ -77,7 +77,7 @@ class Minimal_Steps_Field_Template extends Base_Field_Template { */ public function get_description() { - return __('A simple template with clean markup and no styling, ready to be customized with custom CSS.', 'wp-ultimo'); + return __('A simple template with clean markup and no styling, ready to be customized with custom CSS.', 'wp-multisite-waas'); } /** diff --git a/inc/checkout/signup-fields/field-templates/template-selection/class-clean-template-selection-field-template.php b/inc/checkout/signup-fields/field-templates/template-selection/class-clean-template-selection-field-template.php index 8b5b899..d57c001 100644 --- a/inc/checkout/signup-fields/field-templates/template-selection/class-clean-template-selection-field-template.php +++ b/inc/checkout/signup-fields/field-templates/template-selection/class-clean-template-selection-field-template.php @@ -64,7 +64,7 @@ class Clean_Template_Selection_Field_Template extends Base_Field_Template { */ public function get_title() { - return __('Clean', 'wp-ultimo'); + return __('Clean', 'wp-multisite-waas'); } /** @@ -77,7 +77,7 @@ class Clean_Template_Selection_Field_Template extends Base_Field_Template { */ public function get_description(): string { - return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'wp-ultimo'); + return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'wp-multisite-waas'); } /** diff --git a/inc/checkout/signup-fields/field-templates/template-selection/class-legacy-template-selection-field-template.php b/inc/checkout/signup-fields/field-templates/template-selection/class-legacy-template-selection-field-template.php index c02ed84..5c8a53b 100644 --- a/inc/checkout/signup-fields/field-templates/template-selection/class-legacy-template-selection-field-template.php +++ b/inc/checkout/signup-fields/field-templates/template-selection/class-legacy-template-selection-field-template.php @@ -53,7 +53,7 @@ class Legacy_Template_Selection_Field_Template extends Base_Field_Template { */ public function get_title() { - return __('Legacy', 'wp-ultimo'); + return __('Legacy', 'wp-multisite-waas'); } /** @@ -66,7 +66,7 @@ class Legacy_Template_Selection_Field_Template extends Base_Field_Template { */ public function get_description() { - return __('Implementation of the layout that shipped with WP Ultimo < 1.10.X.', 'wp-ultimo'); + return __('Implementation of the layout that shipped with WP Ultimo < 1.10.X.', 'wp-multisite-waas'); } /** diff --git a/inc/checkout/signup-fields/field-templates/template-selection/class-minimal-template-selection-field-template.php b/inc/checkout/signup-fields/field-templates/template-selection/class-minimal-template-selection-field-template.php index df52a75..d77ba0f 100644 --- a/inc/checkout/signup-fields/field-templates/template-selection/class-minimal-template-selection-field-template.php +++ b/inc/checkout/signup-fields/field-templates/template-selection/class-minimal-template-selection-field-template.php @@ -53,7 +53,7 @@ class Minimal_Template_Selection_Field_Template extends Base_Field_Template { */ public function get_title() { - return __('Minimal', 'wp-ultimo'); + return __('Minimal', 'wp-multisite-waas'); } /** @@ -66,7 +66,7 @@ class Minimal_Template_Selection_Field_Template extends Base_Field_Template { */ public function get_description() { - return __('A simple template with clean markup and no styling, ready to be customized with custom CSS.', 'wp-ultimo'); + return __('A simple template with clean markup and no styling, ready to be customized with custom CSS.', 'wp-multisite-waas'); } /** diff --git a/inc/class-api.php b/inc/class-api.php index bb26170..04f803d 100644 --- a/inc/class-api.php +++ b/inc/class-api.php @@ -142,8 +142,8 @@ class API { wu_register_settings_section( 'api', [ - 'title' => __('API & Webhooks', 'wp-ultimo'), - 'desc' => __('API & Webhooks', 'wp-ultimo'), + 'title' => __('API & Webhooks', 'wp-multisite-waas'), + 'desc' => __('API & Webhooks', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-paper-plane', 'order' => 95, ] @@ -153,8 +153,8 @@ class API { 'api', 'api_header', [ - 'title' => __('API Settings', 'wp-ultimo'), - 'desc' => __('Options related to WP Multisite WaaS API endpoints.', 'wp-ultimo'), + 'title' => __('API Settings', 'wp-multisite-waas'), + 'desc' => __('Options related to WP Multisite WaaS API endpoints.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -163,8 +163,8 @@ class API { 'api', 'enable_api', [ - 'title' => __('Enable API', 'wp-ultimo'), - 'desc' => __('Tick this box if you want WP Multisite WaaS to add its own endpoints to the WordPress REST API. This is required for some integrations to work, most notabily, Zapier.', 'wp-ultimo'), + 'title' => __('Enable API', 'wp-multisite-waas'), + 'desc' => __('Tick this box if you want WP Multisite WaaS to add its own endpoints to the WordPress REST API. This is required for some integrations to work, most notabily, Zapier.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -173,14 +173,14 @@ class API { $refreshed_tag = ''; if (wu_request('updated') && wu_request('api') === 'refreshed') { - $refreshed_tag = sprintf('%s', __('Credentials Refreshed', 'wp-ultimo')); + $refreshed_tag = sprintf('%s', __('Credentials Refreshed', 'wp-multisite-waas')); } wu_register_settings_field( 'api', 'api_url', [ - 'title' => __('API URL', 'wp-ultimo'), + 'title' => __('API URL', 'wp-multisite-waas'), 'desc' => '', 'tooltip' => '', 'copy' => true, @@ -196,7 +196,7 @@ class API { 'api', 'api_key', [ - 'title' => __('API Key', 'wp-ultimo') . $refreshed_tag, + 'title' => __('API Key', 'wp-multisite-waas') . $refreshed_tag, 'desc' => '', 'tooltip' => '', 'type' => 'text-display', @@ -213,7 +213,7 @@ class API { 'api', 'api_secret', [ - 'title' => __('API Secret', 'wp-ultimo') . $refreshed_tag, + 'title' => __('API Secret', 'wp-multisite-waas') . $refreshed_tag, 'tooltip' => '', 'type' => 'text-display', 'copy' => true, @@ -229,7 +229,7 @@ class API { 'api', 'api_note', [ - 'desc' => __('This is your API Key. You cannot change it directly. To reset the API key and secret, use the button "Refresh API credentials" below.', 'wp-ultimo'), + 'desc' => __('This is your API Key. You cannot change it directly. To reset the API key and secret, use the button "Refresh API credentials" below.', 'wp-multisite-waas'), 'type' => 'note', 'classes' => 'wu-text-gray-700 wu-text-xs', 'wrapper_classes' => 'wu-bg-white sm:wu-border-t-0 sm:wu-mt-0 sm:wu-pt-0', @@ -243,7 +243,7 @@ class API { 'api', 'refresh_api_credentials', [ - 'title' => __('Refresh API Credentials', 'wp-ultimo'), + 'title' => __('Refresh API Credentials', 'wp-multisite-waas'), 'type' => 'submit', 'classes' => 'button wu-ml-auto', 'wrapper_classes' => 'wu-bg-white sm:wu-border-t-0 sm:wu-mt-0 sm:wu-pt-0', @@ -257,8 +257,8 @@ class API { 'api', 'api_log_calls', [ - 'title' => __('Log API calls (Advanced)', 'wp-ultimo'), - 'desc' => __('Tick this box if you want to log all calls received via WP Multisite WaaS API endpoints. You can access the logs on WP Multisite WaaS → System Info → Logs.', 'wp-ultimo'), + 'title' => __('Log API calls (Advanced)', 'wp-multisite-waas'), + 'desc' => __('Tick this box if you want to log all calls received via WP Multisite WaaS API endpoints. You can access the logs on WP Multisite WaaS → System Info → Logs.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, 'require' => [ @@ -271,8 +271,8 @@ class API { 'api', 'webhook_header', [ - 'title' => __('Webhook Settings', 'wp-ultimo'), - 'desc' => __('Options related to WP Multisite WaaS API webhooks.', 'wp-ultimo'), + 'title' => __('Webhook Settings', 'wp-multisite-waas'), + 'desc' => __('Options related to WP Multisite WaaS API webhooks.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -281,8 +281,8 @@ class API { 'api', 'webhook_calls_blocking', [ - 'title' => __('Wait for Response (Advanced)', 'wp-ultimo'), - 'desc' => __('Tick this box if you want the WP Multisite WaaS\'s webhook calls to wait for the remote server to respond. Keeping this option enabled can have huge effects on your network\'s performance, only enable it if you know what you are doing and need to debug webhook calls.', 'wp-ultimo'), + 'title' => __('Wait for Response (Advanced)', 'wp-multisite-waas'), + 'desc' => __('Tick this box if you want the WP Multisite WaaS\'s webhook calls to wait for the remote server to respond. Keeping this option enabled can have huge effects on your network\'s performance, only enable it if you know what you are doing and need to debug webhook calls.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, ] @@ -486,7 +486,7 @@ class API { [ 'success' => true, 'label' => $current_site->site_name, - 'message' => __('Welcome to our API', 'wp-ultimo'), + 'message' => __('Welcome to our API', 'wp-multisite-waas'), ] ); } diff --git a/inc/class-dashboard-widgets.php b/inc/class-dashboard-widgets.php index 4cbd29f..12a7992 100644 --- a/inc/class-dashboard-widgets.php +++ b/inc/class-dashboard-widgets.php @@ -87,28 +87,28 @@ class Dashboard_Widgets { */ public function register_network_widgets(): void { - add_meta_box('wp-ultimo-setup', __('WP Multisite WaaS - First Steps', 'wp-ultimo'), [$this, 'output_widget_first_steps'], $this->screen_id, 'normal', 'high'); + add_meta_box('wp-ultimo-setup', __('WP Multisite WaaS - First Steps', 'wp-multisite-waas'), [$this, 'output_widget_first_steps'], $this->screen_id, 'normal', 'high'); - add_meta_box('wp-ultimo-summary', __('WP Multisite WaaS - Summary', 'wp-ultimo'), [$this, 'output_widget_summary'], $this->screen_id, 'normal', 'high'); + add_meta_box('wp-ultimo-summary', __('WP Multisite WaaS - Summary', 'wp-multisite-waas'), [$this, 'output_widget_summary'], $this->screen_id, 'normal', 'high'); - add_meta_box('wp-ultimo-activity-stream', __('WP Multisite WaaS - Activity Stream', 'wp-ultimo'), [$this, 'output_widget_activity_stream'], $this->screen_id, 'normal', 'high'); + add_meta_box('wp-ultimo-activity-stream', __('WP Multisite WaaS - Activity Stream', 'wp-multisite-waas'), [$this, 'output_widget_activity_stream'], $this->screen_id, 'normal', 'high'); \WP_Ultimo\UI\Tours::get_instance()->create_tour( 'dashboard', [ [ 'id' => 'welcome', - 'title' => __('Welcome!', 'wp-ultimo'), + 'title' => __('Welcome!', 'wp-multisite-waas'), 'text' => [ - __('Welcome to your new network dashboard!', 'wp-ultimo'), - __('You will notice that WP Multisite WaaS adds a couple of useful widgets here so you can keep an eye on how your network is doing.', 'wp-ultimo'), + __('Welcome to your new network dashboard!', 'wp-multisite-waas'), + __('You will notice that WP Multisite WaaS adds a couple of useful widgets here so you can keep an eye on how your network is doing.', 'wp-multisite-waas'), ], ], [ 'id' => 'finish-your-setup', - 'title' => __('Finish your setup', 'wp-ultimo'), + 'title' => __('Finish your setup', 'wp-multisite-waas'), 'text' => [ - __('You still have a couple of things to do configuration-wise. Check the steps on this list and make sure you complete them all.', 'wp-ultimo'), + __('You still have a couple of things to do configuration-wise. Check the steps on this list and make sure you complete them all.', 'wp-multisite-waas'), ], 'attachTo' => [ 'element' => '#wp-ultimo-setup', @@ -117,9 +117,9 @@ class Dashboard_Widgets { ], [ 'id' => 'wp-ultimo-menu', - 'title' => __('Our home', 'wp-ultimo'), + 'title' => __('Our home', 'wp-multisite-waas'), 'text' => [ - __('You can always find WP Multisite WaaS settings and other pages under our menu item, here on the Network-level dashboard. 😃', 'wp-ultimo'), + __('You can always find WP Multisite WaaS settings and other pages under our menu item, here on the Network-level dashboard. 😃', 'wp-multisite-waas'), ], 'attachTo' => [ 'element' => '.toplevel_page_wp-ultimo', @@ -182,16 +182,16 @@ class Dashboard_Widgets { $steps = [ 'inital-setup' => [ - 'title' => __('Initial Setup', 'wp-ultimo'), - 'desc' => __('Go through the initial Setup Wizard to configure the basic settings of your network.', 'wp-ultimo'), - 'action_label' => __('Finish the Setup Wizard', 'wp-ultimo'), + 'title' => __('Initial Setup', 'wp-multisite-waas'), + 'desc' => __('Go through the initial Setup Wizard to configure the basic settings of your network.', 'wp-multisite-waas'), + 'action_label' => __('Finish the Setup Wizard', 'wp-multisite-waas'), 'action_link' => wu_network_admin_url('wp-ultimo-setup'), 'done' => wu_string_to_bool($initial_setup_done), ], 'payment-method' => [ - 'title' => __('Payment Method', 'wp-ultimo'), - 'desc' => __('You will need to configure at least one payment gateway to be able to receive money from your customers.', 'wp-ultimo'), - 'action_label' => __('Add a Payment Method', 'wp-ultimo'), + 'title' => __('Payment Method', 'wp-multisite-waas'), + 'desc' => __('You will need to configure at least one payment gateway to be able to receive money from your customers.', 'wp-multisite-waas'), + 'action_label' => __('Add a Payment Method', 'wp-multisite-waas'), 'action_link' => wu_network_admin_url( 'wp-ultimo-settings', [ @@ -202,10 +202,10 @@ class Dashboard_Widgets { ], 'your-first-customer' => [ 'done' => ! empty(wu_get_customers()), - 'title' => __('Your First Customer', 'wp-ultimo'), - 'desc' => __('Open the link below in an incognito tab and go through your newly created signup form.', 'wp-ultimo'), + 'title' => __('Your First Customer', 'wp-multisite-waas'), + 'desc' => __('Open the link below in an incognito tab and go through your newly created signup form.', 'wp-multisite-waas'), 'action_link' => wp_registration_url(), - 'action_label' => __('Create a test Account', 'wp-ultimo'), + 'action_label' => __('Create a test Account', 'wp-multisite-waas'), ], ]; @@ -284,7 +284,7 @@ class Dashboard_Widgets { $_GET, [ 'url' => 'https://community.wpultimo.com/topics/feed', - 'title' => __('Forum Discussions', 'wp-ultimo'), + 'title' => __('Forum Discussions', 'wp-multisite-waas'), 'items' => 3, 'show_summary' => 1, 'show_author' => 0, diff --git a/inc/class-domain-mapping.php b/inc/class-domain-mapping.php index 5f8b678..aafdb2a 100644 --- a/inc/class-domain-mapping.php +++ b/inc/class-domain-mapping.php @@ -354,7 +354,7 @@ class Domain_Mapping { if (is_wp_error($error)) { // translators: First placeholder is the mapping ID, second is the site ID. - $message = sprintf(__('Unable to delete mapping %1$d for site %2$d', 'wp-ultimo'), $mapping->get_id(), $site->blog_id); + $message = sprintf(__('Unable to delete mapping %1$d for site %2$d', 'wp-multisite-waas'), $mapping->get_id(), $site->blog_id); trigger_error($message, E_USER_WARNING); } diff --git a/inc/class-hooks.php b/inc/class-hooks.php index 5bf09ab..48b55a4 100644 --- a/inc/class-hooks.php +++ b/inc/class-hooks.php @@ -56,7 +56,7 @@ class Hooks { */ public static function on_activation(): void { - wu_log_add('wp-ultimo-core', __('Activating WP Multisite WaaS...', 'wp-ultimo')); + wu_log_add('wp-ultimo-core', __('Activating WP Multisite WaaS...', 'wp-multisite-waas')); /* * Set the activation flag @@ -100,7 +100,7 @@ class Hooks { */ public static function on_deactivation(): void { - wu_log_add('wp-ultimo-core', __('Deactivating WP Multisite WaaS...', 'wp-ultimo')); + wu_log_add('wp-ultimo-core', __('Deactivating WP Multisite WaaS...', 'wp-multisite-waas')); /* * Update the sunrise meta file. diff --git a/inc/class-logger.php b/inc/class-logger.php index d95d959..a4896a1 100644 --- a/inc/class-logger.php +++ b/inc/class-logger.php @@ -181,7 +181,7 @@ class Logger extends AbstractLogger { $time_elapsed = microtime(true) - $start; // translators: the placeholder %s will be replaced by the time in seconds (float). - $message .= ' - ' . sprintf(__('This action took %s seconds.', 'wp-ultimo'), $time_elapsed); + $message .= ' - ' . sprintf(__('This action took %s seconds.', 'wp-multisite-waas'), $time_elapsed); self::add($handle, $message); diff --git a/inc/class-maintenance-mode.php b/inc/class-maintenance-mode.php index 0b3229b..e79ce73 100644 --- a/inc/class-maintenance-mode.php +++ b/inc/class-maintenance-mode.php @@ -84,11 +84,11 @@ class Maintenance_Mode { $args = [ 'id' => 'wu-maintenance-mode', 'parent' => 'top-secondary', - 'title' => __('Maintenance Mode - Active', 'wp-ultimo'), + 'title' => __('Maintenance Mode - Active', 'wp-multisite-waas'), 'href' => '#wp-ultimo-site-maintenance-element', 'meta' => [ 'class' => 'wu-maintenance-mode ' . (self::check_maintenance_mode() ? '' : 'hidden'), - 'title' => __('This means that your site is not available for visitors at the moment. Only you and other logged users have access to it. Click here to toggle this option.', 'wp-ultimo'), + 'title' => __('This means that your site is not available for visitors at the moment. Only you and other logged users have access to it. Click here to toggle this option.', 'wp-multisite-waas'), ], ]; @@ -110,12 +110,12 @@ class Maintenance_Mode { $text = apply_filters( 'wu_maintenance_mode_text', - __('Website under planned maintenance. Please check back later.', 'wp-ultimo') + __('Website under planned maintenance. Please check back later.', 'wp-multisite-waas') ); $title = apply_filters( 'wu_maintenance_mode_title', - __('Under Maintenance', 'wp-ultimo') + __('Under Maintenance', 'wp-multisite-waas') ); wp_die($text, $title, 503); @@ -147,7 +147,7 @@ class Maintenance_Mode { if ( ! current_user_can_for_blog($site_id, 'manage_options')) { wp_send_json_error( [ - 'message' => __('You do not have the necessary permissions to perform this option.', 'wp-ultimo'), + 'message' => __('You do not have the necessary permissions to perform this option.', 'wp-multisite-waas'), 'value' => false, ] ); @@ -160,7 +160,7 @@ class Maintenance_Mode { update_site_meta($site_id, 'wu_maintenance_mode', $value); $return = [ - 'message' => __('New maintenance settings saved.', 'wp-ultimo'), + 'message' => __('New maintenance settings saved.', 'wp-multisite-waas'), 'value' => $value, ]; @@ -182,8 +182,8 @@ class Maintenance_Mode { 'sites', 'maintenance_mode', [ - 'title' => __('Site Maintenance Mode', 'wp-ultimo'), - 'desc' => __('Allow your customers and super admins to quickly take sites offline via a toggle on the site dashboard.', 'wp-ultimo'), + 'title' => __('Site Maintenance Mode', 'wp-multisite-waas'), + 'desc' => __('Allow your customers and super admins to quickly take sites offline via a toggle on the site dashboard.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, 'order' => 23, diff --git a/inc/class-newsletter.php b/inc/class-newsletter.php index 9893c61..5a4ebd5 100644 --- a/inc/class-newsletter.php +++ b/inc/class-newsletter.php @@ -17,8 +17,8 @@ class Newsletter { 'general', self::SETTING_FIELD_SLUG, [ - 'title' => __('Signup for WP Multisite WaaS Newsletter', 'wp-ultimo'), - 'desc' => __('Be informed of new releases and all things related to running a WaaS Network.', 'wp-ultimo'), + 'title' => __('Signup for WP Multisite WaaS Newsletter', 'wp-multisite-waas'), + 'desc' => __('Be informed of new releases and all things related to running a WaaS Network.', 'wp-multisite-waas'), 'type' => 'toggle', 'value' => '1', ], diff --git a/inc/class-requirements.php b/inc/class-requirements.php index ddcba7c..4ac76d0 100644 --- a/inc/class-requirements.php +++ b/inc/class-requirements.php @@ -281,7 +281,7 @@ class Requirements { public static function notice_unsupported_php_version(): void { // translators: the %1$s placeholder is the required PHP version, while the %2$s is the current PHP version. - $message = sprintf(__('WP Multisite WaaS requires at least PHP version %1$s to run. Your current PHP version is %2$s. Please, contact your hosting company support to upgrade your PHP version. If you want maximum performance consider upgrading your PHP to version 7.0 or later.', 'wp-ultimo'), self::$php_version, phpversion()); + $message = sprintf(__('WP Multisite WaaS requires at least PHP version %1$s to run. Your current PHP version is %2$s. Please, contact your hosting company support to upgrade your PHP version. If you want maximum performance consider upgrading your PHP to version 7.0 or later.', 'wp-multisite-waas'), self::$php_version, phpversion()); printf('

%s

', $message); } @@ -297,7 +297,7 @@ class Requirements { global $wp_version; // translators: the %1$s placeholder is the required WP version, while the %2$s is the current WP version. - $message = sprintf(__('WP Multisite WaaS requires at least WordPress version %1$s to run. Your current WordPress version is %2$s.', 'wp-ultimo'), self::$wp_version, $wp_version); + $message = sprintf(__('WP Multisite WaaS requires at least WordPress version %1$s to run. Your current WordPress version is %2$s.', 'wp-multisite-waas'), self::$wp_version, $wp_version); printf('

%s

', $message); } @@ -310,7 +310,7 @@ class Requirements { */ public static function notice_not_multisite(): void { - $message = __('WP Multisite WaaS requires a multisite install to run properly. To know more about WordPress Networks, visit this link: Create a Network →', 'wp-ultimo'); + $message = __('WP Multisite WaaS requires a multisite install to run properly. To know more about WordPress Networks, visit this link: Create a Network →', 'wp-multisite-waas'); printf('

%s

', $message); } @@ -324,7 +324,7 @@ class Requirements { public static function notice_not_network_active(): void { // translators: %s is a placeholder for the Network Admin plugins page URL. - $message = sprintf(__('WP Multisite WaaS needs to be network active to run properly. You can "Network Activate" it here', 'wp-ultimo'), network_admin_url('plugins.php')); + $message = sprintf(__('WP Multisite WaaS needs to be network active to run properly. You can "Network Activate" it here', 'wp-multisite-waas'), network_admin_url('plugins.php')); printf('

%s

', $message); } diff --git a/inc/class-scripts.php b/inc/class-scripts.php index a5f4f02..e8e75bd 100644 --- a/inc/class-scripts.php +++ b/inc/class-scripts.php @@ -174,8 +174,8 @@ class Scripts { 'wu_fields', [ 'l10n' => [ - 'image_picker_title' => __('Select an Image.', 'wp-ultimo'), - 'image_picker_button_text' => __('Use this image', 'wp-ultimo'), + 'image_picker_title' => __('Select an Image.', 'wp-multisite-waas'), + 'image_picker_button_text' => __('Use this image', 'wp-multisite-waas'), ], ] ); @@ -271,7 +271,7 @@ class Scripts { 'LT' => $time_format, 'LTS' => str_replace(':i', ':i:s', (string) $time_format), /* translators: the day/month/year date format used by WP Multisite WaaS. You can changed it to localize this date format to your language. the default value is d/m/Y, which is the format 31/12/2021. */ - 'L' => __('d/m/Y', 'wp-ultimo'), + 'L' => __('d/m/Y', 'wp-multisite-waas'), 'LL' => $date_format, 'LLL' => sprintf('%s %s', $date_format, $time_format), 'LLLL' => sprintf('%s %s', $date_format, $time_format), @@ -281,22 +281,22 @@ class Scripts { // phpcs:disable $strings = [ 'relativeTime' => [ - 'future' => __('in %s', 'wp-ultimo'), - 'past' => __('%s ago', 'wp-ultimo'), - 's' => __('a few seconds', 'wp-ultimo'), - 'ss' => __('%d seconds', 'wp-ultimo'), - 'm' => __('a minute', 'wp-ultimo'), - 'mm' => __('%d minutes', 'wp-ultimo'), - 'h' => __('an hour', 'wp-ultimo'), - 'hh' => __('%d hours', 'wp-ultimo'), - 'd' => __('a day', 'wp-ultimo'), - 'dd' => __('%d days', 'wp-ultimo'), - 'w' => __('a week', 'wp-ultimo'), - 'ww' => __('%d weeks', 'wp-ultimo'), - 'M' => __('a month', 'wp-ultimo'), - 'MM' => __('%d months', 'wp-ultimo'), - 'y' => __('a year', 'wp-ultimo'), - 'yy' => __('%d years', 'wp-ultimo'), + 'future' => __('in %s', 'wp-multisite-waas'), + 'past' => __('%s ago', 'wp-multisite-waas'), + 's' => __('a few seconds', 'wp-multisite-waas'), + 'ss' => __('%d seconds', 'wp-multisite-waas'), + 'm' => __('a minute', 'wp-multisite-waas'), + 'mm' => __('%d minutes', 'wp-multisite-waas'), + 'h' => __('an hour', 'wp-multisite-waas'), + 'hh' => __('%d hours', 'wp-multisite-waas'), + 'd' => __('a day', 'wp-multisite-waas'), + 'dd' => __('%d days', 'wp-multisite-waas'), + 'w' => __('a week', 'wp-multisite-waas'), + 'ww' => __('%d weeks', 'wp-multisite-waas'), + 'M' => __('a month', 'wp-multisite-waas'), + 'MM' => __('%d months', 'wp-multisite-waas'), + 'y' => __('a year', 'wp-multisite-waas'), + 'yy' => __('%d years', 'wp-multisite-waas'), ], 'longDateFormat' => $long_date_formats, ]; diff --git a/inc/class-settings.php b/inc/class-settings.php index 2846863..216b66c 100644 --- a/inc/class-settings.php +++ b/inc/class-settings.php @@ -178,7 +178,7 @@ class Settings { $settings = $this->get_all(); if (str_contains($setting, '-')) { - _doing_it_wrong($setting, __('Dashes are no longer supported when registering a setting. You should change it to underscores in later versions.', 'wp-ultimo'), '2.0.0'); + _doing_it_wrong($setting, __('Dashes are no longer supported when registering a setting. You should change it to underscores in later versions.', 'wp-multisite-waas'), '2.0.0'); } $setting_value = $settings[ $setting ] ?? $default_value; @@ -401,7 +401,7 @@ class Settings { * We no longer support settings with hyphens. */ if (str_contains($field_slug, '-')) { - _doing_it_wrong($field_slug, __('Dashes are no longer supported when registering a setting. You should change it to underscores in later versions.', 'wp-ultimo'), '2.0.0'); + _doing_it_wrong($field_slug, __('Dashes are no longer supported when registering a setting. You should change it to underscores in later versions.', 'wp-multisite-waas'), '2.0.0'); } $default_order = (count($fields) + 1) * 10; @@ -522,8 +522,8 @@ class Settings { $this->add_section( 'general', [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), ] ); @@ -531,8 +531,8 @@ class Settings { 'general', 'company_header', [ - 'title' => __('Your Business', 'wp-ultimo'), - 'desc' => __('General information about your business..', 'wp-ultimo'), + 'title' => __('Your Business', 'wp-multisite-waas'), + 'desc' => __('General information about your business..', 'wp-multisite-waas'), 'type' => 'header', ], 10 @@ -542,8 +542,8 @@ class Settings { 'general', 'company_name', [ - 'title' => __('Company Name', 'wp-ultimo'), - 'desc' => __('This name is used when generating invoices, for example.', 'wp-ultimo'), + 'title' => __('Company Name', 'wp-multisite-waas'), + 'desc' => __('This name is used when generating invoices, for example.', 'wp-multisite-waas'), 'type' => 'text', 'default' => get_network_option(null, 'site_name'), ], @@ -554,8 +554,8 @@ class Settings { 'general', 'company_logo', [ - 'title' => __('Upload Company Logo', 'wp-ultimo'), - 'desc' => __('Add your company logo to be used on the login page and other places.', 'wp-ultimo'), + 'title' => __('Upload Company Logo', 'wp-multisite-waas'), + 'desc' => __('Add your company logo to be used on the login page and other places.', 'wp-multisite-waas'), 'type' => 'image', 'default' => '', ], @@ -566,8 +566,8 @@ class Settings { 'general', 'company_email', [ - 'title' => __('Company Email Address', 'wp-ultimo'), - 'desc' => __('This email is used when generating invoices, for example.', 'wp-ultimo'), + 'title' => __('Company Email Address', 'wp-multisite-waas'), + 'desc' => __('This email is used when generating invoices, for example.', 'wp-multisite-waas'), 'type' => 'text', 'default' => get_network_option(null, 'admin_email'), ], @@ -578,8 +578,8 @@ class Settings { 'general', 'company_address', [ - 'title' => __('Company Address', 'wp-ultimo'), - 'desc' => __('This address is used when generating invoices.', 'wp-ultimo'), + 'title' => __('Company Address', 'wp-multisite-waas'), + 'desc' => __('This address is used when generating invoices.', 'wp-multisite-waas'), 'type' => 'textarea', 'placeholder' => "350 Fifth Avenue\nManhattan, \nNew York City, NY \n10118", 'default' => '', @@ -594,8 +594,8 @@ class Settings { 'general', 'company_country', [ - 'title' => __('Company Country', 'wp-ultimo'), - 'desc' => __('This info is used when generating invoices, as well as for calculating when taxes apply in some contexts.', 'wp-ultimo'), + 'title' => __('Company Country', 'wp-multisite-waas'), + 'desc' => __('This info is used when generating invoices, as well as for calculating when taxes apply in some contexts.', 'wp-multisite-waas'), 'type' => 'select', 'options' => 'wu_get_countries', 'default' => [$this, 'get_default_company_country'], @@ -607,8 +607,8 @@ class Settings { 'general', 'currency_header', [ - 'title' => __('Currency Options', 'wp-ultimo'), - 'desc' => __('The following options affect how prices are displayed on the frontend, the backend and in reports.', 'wp-ultimo'), + 'title' => __('Currency Options', 'wp-multisite-waas'), + 'desc' => __('The following options affect how prices are displayed on the frontend, the backend and in reports.', 'wp-multisite-waas'), 'type' => 'header', ], 70 @@ -618,8 +618,8 @@ class Settings { 'general', 'currency_symbol', [ - 'title' => __('Currency', 'wp-ultimo'), - 'desc' => __('Select the currency to be used in WP Multisite WaaS.', 'wp-ultimo'), + 'title' => __('Currency', 'wp-multisite-waas'), + 'desc' => __('Select the currency to be used in WP Multisite WaaS.', 'wp-multisite-waas'), 'type' => 'select', 'default' => 'USD', 'options' => 'wu_get_currencies', @@ -631,16 +631,16 @@ class Settings { 'general', 'currency_position', [ - 'title' => __('Currency Position', 'wp-ultimo'), - 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'wp-ultimo'), + 'title' => __('Currency Position', 'wp-multisite-waas'), + 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'wp-multisite-waas'), 'desc' => '', 'type' => 'select', 'default' => '%s %v', 'options' => [ - '%s%v' => __('Left ($99.99)', 'wp-ultimo'), - '%v%s' => __('Right (99.99$)', 'wp-ultimo'), - '%s %v' => __('Left with space ($ 99.99)', 'wp-ultimo'), - '%v %s' => __('Right with space (99.99 $)', 'wp-ultimo'), + '%s%v' => __('Left ($99.99)', 'wp-multisite-waas'), + '%v%s' => __('Right (99.99$)', 'wp-multisite-waas'), + '%s %v' => __('Left with space ($ 99.99)', 'wp-multisite-waas'), + '%v %s' => __('Right with space (99.99 $)', 'wp-multisite-waas'), ], ], 90 @@ -650,8 +650,8 @@ class Settings { 'general', 'decimal_separator', [ - 'title' => __('Decimal Separator', 'wp-ultimo'), - 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'wp-ultimo'), + 'title' => __('Decimal Separator', 'wp-multisite-waas'), + 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'wp-multisite-waas'), 'type' => 'text', 'default' => '.', ], @@ -662,8 +662,8 @@ class Settings { 'general', 'thousand_separator', [ - 'title' => __('Thousand Separator', 'wp-ultimo'), - 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'wp-ultimo'), + 'title' => __('Thousand Separator', 'wp-multisite-waas'), + 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'wp-multisite-waas'), 'type' => 'text', 'default' => ',', 'raw' => true, @@ -675,8 +675,8 @@ class Settings { 'general', 'precision', [ - 'title' => __('Number of Decimals', 'wp-ultimo'), - 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'wp-ultimo'), + 'title' => __('Number of Decimals', 'wp-multisite-waas'), + 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'wp-multisite-waas'), 'type' => 'number', 'default' => '2', 'min' => 0, @@ -692,8 +692,8 @@ class Settings { $this->add_section( 'login-and-registration', [ - 'title' => __('Login & Registration', 'wp-ultimo'), - 'desc' => __('Login & Registration', 'wp-ultimo'), + 'title' => __('Login & Registration', 'wp-multisite-waas'), + 'desc' => __('Login & Registration', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-key', ] ); @@ -702,8 +702,8 @@ class Settings { 'login-and-registration', 'registration_header', [ - 'title' => __('Login and Registration Options', 'wp-ultimo'), - 'desc' => __('Options related to registration and login behavior.', 'wp-ultimo'), + 'title' => __('Login and Registration Options', 'wp-multisite-waas'), + 'desc' => __('Options related to registration and login behavior.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -712,8 +712,8 @@ class Settings { 'login-and-registration', 'enable_registration', [ - 'title' => __('Enable Registration', 'wp-ultimo'), - 'desc' => __('Turning this toggle off will disable registration in all checkout forms across the network.', 'wp-ultimo'), + 'title' => __('Enable Registration', 'wp-multisite-waas'), + 'desc' => __('Turning this toggle off will disable registration in all checkout forms across the network.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -723,8 +723,8 @@ class Settings { 'login-and-registration', 'enable_email_verification', [ - 'title' => __('Enable email verification', 'wp-ultimo'), - 'desc' => __('Enabling this option will require the customer to verify their email address when subscribing to a free plan or a plan with a trial period. Sites will not be created until the customer email verification status is changed to verified.', 'wp-ultimo'), + 'title' => __('Enable email verification', 'wp-multisite-waas'), + 'desc' => __('Enabling this option will require the customer to verify their email address when subscribing to a free plan or a plan with a trial period. Sites will not be created until the customer email verification status is changed to verified.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -735,9 +735,9 @@ class Settings { 'default_registration_page', [ 'type' => 'model', - 'title' => __('Default Registration Page', 'wp-ultimo'), - 'placeholder' => __('Search pages on the main site...', 'wp-ultimo'), - 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_checkout] shortcode.', 'wp-ultimo'), + 'title' => __('Default Registration Page', 'wp-multisite-waas'), + 'placeholder' => __('Search pages on the main site...', 'wp-multisite-waas'), + 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_checkout] shortcode.', 'wp-multisite-waas'), 'tooltip' => '', 'html_attr' => [ 'data-base-link' => get_admin_url(wu_get_main_site_id(), 'post.php?action=edit&post'), @@ -755,8 +755,8 @@ class Settings { 'login-and-registration', 'enable_custom_login_page', [ - 'title' => __('Use Custom Login Page', 'wp-ultimo'), - 'desc' => __('Turn this toggle on to select a custom page to be used as the login page.', 'wp-ultimo'), + 'title' => __('Use Custom Login Page', 'wp-multisite-waas'), + 'desc' => __('Turn this toggle on to select a custom page to be used as the login page.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, ] @@ -767,9 +767,9 @@ class Settings { 'default_login_page', [ 'type' => 'model', - 'title' => __('Default Login Page', 'wp-ultimo'), - 'placeholder' => __('Search pages on the main site...', 'wp-ultimo'), - 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_login_form] shortcode.', 'wp-ultimo'), + 'title' => __('Default Login Page', 'wp-multisite-waas'), + 'placeholder' => __('Search pages on the main site...', 'wp-multisite-waas'), + 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_login_form] shortcode.', 'wp-multisite-waas'), 'tooltip' => '', 'html_attr' => [ 'data-base-link' => get_admin_url(wu_get_main_site_id(), 'post.php?action=edit&post'), @@ -789,8 +789,8 @@ class Settings { 'login-and-registration', 'obfuscate_original_login_url', [ - 'title' => __('Obfuscate the Original Login URL (wp-login.php)', 'wp-ultimo'), - 'desc' => __('If this option is enabled, we will display a 404 error when a user tries to access the original wp-login.php link. This is useful to prevent brute-force attacks.', 'wp-ultimo'), + 'title' => __('Obfuscate the Original Login URL (wp-login.php)', 'wp-multisite-waas'), + 'desc' => __('If this option is enabled, we will display a 404 error when a user tries to access the original wp-login.php link. This is useful to prevent brute-force attacks.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, 'require' => [ @@ -803,8 +803,8 @@ class Settings { 'login-and-registration', 'subsite_custom_login_logo', [ - 'title' => __('Use Sub-site logo on Login Page', 'wp-ultimo'), - 'desc' => __('Toggle this option to replace the WordPress logo on the sub-site login page with the logo set for that sub-site. If unchecked, the network logo will be used instead.', 'wp-ultimo'), + 'title' => __('Use Sub-site logo on Login Page', 'wp-multisite-waas'), + 'desc' => __('Toggle this option to replace the WordPress logo on the sub-site login page with the logo set for that sub-site. If unchecked, the network logo will be used instead.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, 'require' => [ @@ -817,8 +817,8 @@ class Settings { 'login-and-registration', 'force_publish_sites_sync', [ - 'title' => __('Force Synchronous Site Publication ', 'wp-ultimo'), - 'desc' => __('By default, when a new pending site needs to be converted into a real network site, the publishing process happens via Job Queue, asynchronously. Enable this option to force the publication to happen in the same request as the signup. Be careful, as this can cause timeouts depending on the size of the site templates being copied.', 'wp-ultimo'), + 'title' => __('Force Synchronous Site Publication ', 'wp-multisite-waas'), + 'desc' => __('By default, when a new pending site needs to be converted into a real network site, the publishing process happens via Job Queue, asynchronously. Enable this option to force the publication to happen in the same request as the signup. Be careful, as this can cause timeouts depending on the size of the site templates being copied.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, ] @@ -828,8 +828,8 @@ class Settings { 'login-and-registration', 'other_header', [ - 'title' => __('Other Options', 'wp-ultimo'), - 'desc' => __('Other registration-related options.', 'wp-ultimo'), + 'title' => __('Other Options', 'wp-multisite-waas'), + 'desc' => __('Other registration-related options.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -838,8 +838,8 @@ class Settings { 'login-and-registration', 'default_role', [ - 'title' => __('Default Role', 'wp-ultimo'), - 'desc' => __('Set the role to be applied to the user during the signup process.', 'wp-ultimo'), + 'title' => __('Default Role', 'wp-multisite-waas'), + 'desc' => __('Set the role to be applied to the user during the signup process.', 'wp-multisite-waas'), 'type' => 'select', 'default' => 'administrator', 'options' => 'wu_get_roles_as_options', @@ -850,8 +850,8 @@ class Settings { 'login-and-registration', 'add_users_to_main_site', [ - 'title' => __('Add Users to the Main Site as well?', 'wp-ultimo'), - 'desc' => __('Enabling this option will also add the user to the main site of your network.', 'wp-ultimo'), + 'title' => __('Add Users to the Main Site as well?', 'wp-multisite-waas'), + 'desc' => __('Enabling this option will also add the user to the main site of your network.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, ] @@ -861,8 +861,8 @@ class Settings { 'login-and-registration', 'main_site_default_role', [ - 'title' => __('Add to Main Site with Role...', 'wp-ultimo'), - 'desc' => __('Select the role WP Multisite WaaS should use when adding the user to the main site of your network. Be careful.', 'wp-ultimo'), + 'title' => __('Add to Main Site with Role...', 'wp-multisite-waas'), + 'desc' => __('Select the role WP Multisite WaaS should use when adding the user to the main site of your network. Be careful.', 'wp-multisite-waas'), 'type' => 'select', 'default' => 'subscriber', 'options' => 'wu_get_roles_as_options', @@ -882,8 +882,8 @@ class Settings { $this->add_section( 'memberships', [ - 'title' => __('Memberships', 'wp-ultimo'), - 'desc' => __('Memberships', 'wp-ultimo'), + 'title' => __('Memberships', 'wp-multisite-waas'), + 'desc' => __('Memberships', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-infinity', ] ); @@ -893,9 +893,9 @@ class Settings { 'default_update_page', [ 'type' => 'model', - 'title' => __('Default Membership Update Page', 'wp-ultimo'), - 'placeholder' => __('Search pages on the main site...', 'wp-ultimo'), - 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_checkout] shortcode.', 'wp-ultimo'), + 'title' => __('Default Membership Update Page', 'wp-multisite-waas'), + 'placeholder' => __('Search pages on the main site...', 'wp-multisite-waas'), + 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_checkout] shortcode.', 'wp-multisite-waas'), 'tooltip' => '', 'html_attr' => [ 'data-base-link' => get_admin_url(wu_get_main_site_id(), 'post.php?action=edit&post'), @@ -913,9 +913,9 @@ class Settings { 'memberships', 'block_frontend', [ - 'title' => __('Block Frontend Access', 'wp-ultimo'), - 'desc' => __('Block the frontend access of network sites after a membership is no longer active.', 'wp-ultimo'), - 'tooltip' => __('By default, if a user does not pay and the account goes inactive, only the admin panel will be blocked, but the user\'s site will still be accessible on the frontend. If enabled, this option will also block frontend access in those cases.', 'wp-ultimo'), + 'title' => __('Block Frontend Access', 'wp-multisite-waas'), + 'desc' => __('Block the frontend access of network sites after a membership is no longer active.', 'wp-multisite-waas'), + 'tooltip' => __('By default, if a user does not pay and the account goes inactive, only the admin panel will be blocked, but the user\'s site will still be accessible on the frontend. If enabled, this option will also block frontend access in those cases.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, ] @@ -925,8 +925,8 @@ class Settings { 'memberships', 'block_frontend_grace_period', [ - 'title' => __('Frontend Block Grace Period', 'wp-ultimo'), - 'desc' => __('Select the number of days WP Multisite WaaS should wait after the membership goes inactive before blocking the frontend access. Leave 0 to block immediately after the membership becomes inactive.', 'wp-ultimo'), + 'title' => __('Frontend Block Grace Period', 'wp-multisite-waas'), + 'desc' => __('Select the number of days WP Multisite WaaS should wait after the membership goes inactive before blocking the frontend access. Leave 0 to block immediately after the membership becomes inactive.', 'wp-multisite-waas'), 'type' => 'number', 'default' => 0, 'min' => 0, @@ -940,8 +940,8 @@ class Settings { 'memberships', 'default_block_frontend_page', [ - 'title' => __('Frontend Block Page', 'wp-ultimo'), - 'desc' => __('Select a page on the main site to redirect user if access is blocked', 'wp-ultimo'), + 'title' => __('Frontend Block Page', 'wp-multisite-waas'), + 'desc' => __('Select a page on the main site to redirect user if access is blocked', 'wp-multisite-waas'), 'tooltip' => '', 'html_attr' => [ 'data-base-link' => get_admin_url(wu_get_main_site_id(), 'post.php?action=edit&post'), @@ -961,8 +961,8 @@ class Settings { 'memberships', 'enable_multiple_memberships', [ - 'title' => __('Enable Multiple Memberships per Customer', 'wp-ultimo'), - 'desc' => __('Enabling this option will allow your users to create more than one membership.', 'wp-ultimo'), + 'title' => __('Enable Multiple Memberships per Customer', 'wp-multisite-waas'), + 'desc' => __('Enabling this option will allow your users to create more than one membership.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, ] @@ -972,8 +972,8 @@ class Settings { 'memberships', 'enable_multiple_sites', [ - 'title' => __('Enable Multiple Sites per Membership', 'wp-ultimo'), - 'desc' => __('Enabling this option will allow your customers to create more than one site. You can limit how many sites your users can create in a per plan basis.', 'wp-ultimo'), + 'title' => __('Enable Multiple Sites per Membership', 'wp-multisite-waas'), + 'desc' => __('Enabling this option will allow your customers to create more than one site. You can limit how many sites your users can create in a per plan basis.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, ] @@ -983,15 +983,15 @@ class Settings { 'memberships', 'block_sites_on_downgrade', [ - 'title' => __('Block Sites on Downgrade', 'wp-ultimo'), - 'desc' => __('Choose how WP Multisite WaaS should handle client sites above their plan quota on downgrade.', 'wp-ultimo'), + 'title' => __('Block Sites on Downgrade', 'wp-multisite-waas'), + 'desc' => __('Choose how WP Multisite WaaS should handle client sites above their plan quota on downgrade.', 'wp-multisite-waas'), 'type' => 'select', 'default' => 'none', 'options' => [ - 'none' => __('Keep sites as is (do nothing)', 'wp-ultimo'), - 'block-frontend' => __('Block only frontend access', 'wp-ultimo'), - 'block-backend' => __('Block only backend access', 'wp-ultimo'), - 'block-both' => __('Block both frontend and backend access', 'wp-ultimo'), + 'none' => __('Keep sites as is (do nothing)', 'wp-multisite-waas'), + 'block-frontend' => __('Block only frontend access', 'wp-multisite-waas'), + 'block-backend' => __('Block only backend access', 'wp-multisite-waas'), + 'block-both' => __('Block both frontend and backend access', 'wp-multisite-waas'), ], 'require' => [ 'enable_multiple_sites' => true, @@ -1003,14 +1003,14 @@ class Settings { 'memberships', 'move_posts_on_downgrade', [ - 'title' => __('Move Posts on Downgrade', 'wp-ultimo'), - 'desc' => __('Select how you want to handle the posts above the quota on downgrade. This will apply to all post types with quotas set.', 'wp-ultimo'), + 'title' => __('Move Posts on Downgrade', 'wp-multisite-waas'), + 'desc' => __('Select how you want to handle the posts above the quota on downgrade. This will apply to all post types with quotas set.', 'wp-multisite-waas'), 'type' => 'select', 'default' => 'none', 'options' => [ - 'none' => __('Keep posts as is (do nothing)', 'wp-ultimo'), - 'trash' => __('Move posts above the new quota to the Trash', 'wp-ultimo'), - 'draft' => __('Mark posts above the new quota as Drafts', 'wp-ultimo'), + 'none' => __('Keep posts as is (do nothing)', 'wp-multisite-waas'), + 'trash' => __('Move posts above the new quota to the Trash', 'wp-multisite-waas'), + 'draft' => __('Mark posts above the new quota as Drafts', 'wp-multisite-waas'), ], ] ); @@ -1020,8 +1020,8 @@ class Settings { 'emulated_post_types_header', [ 'type' => 'header', - 'title' => __('Emulated Post Types', 'wp-ultimo'), - 'desc' => __('Emulates the registering of a custom post type to be able to create limits for it without having to activate plugins on the main site.', 'wp-ultimo'), + 'title' => __('Emulated Post Types', 'wp-multisite-waas'), + 'desc' => __('Emulates the registering of a custom post type to be able to create limits for it without having to activate plugins on the main site.', 'wp-multisite-waas'), ] ); @@ -1030,7 +1030,7 @@ class Settings { 'emulated_post_types_explanation', [ 'type' => 'note', - 'desc' => __('By default, WP Multisite WaaS only allows super admins to limit post types that are registered on the main site. This makes sense from a technical stand-point but it also forces you to have plugins network-activated in order to be able to set limitations for their custom post types. Using this option, you can emulate the registering of a post type. This will register them on the main site and allow you to create limits for them on your products.', 'wp-ultimo'), + 'desc' => __('By default, WP Multisite WaaS only allows super admins to limit post types that are registered on the main site. This makes sense from a technical stand-point but it also forces you to have plugins network-activated in order to be able to set limitations for their custom post types. Using this option, you can emulate the registering of a post type. This will register them on the main site and allow you to create limits for them on your products.', 'wp-multisite-waas'), 'classes' => '', 'wrapper_classes' => '', ] @@ -1041,7 +1041,7 @@ class Settings { 'emulated_post_types_empty', [ 'type' => 'note', - 'desc' => __('Add the first post type using the button below.', 'wp-ultimo'), + 'desc' => __('Add the first post type using the button below.', 'wp-multisite-waas'), 'classes' => 'wu-text-gray-600 wu-text-xs wu-text-center wu-w-full', 'wrapper_classes' => 'wu-bg-gray-100 wu-items-end', 'wrapper_html_attr' => [ @@ -1068,13 +1068,13 @@ class Settings { 'fields' => [ 'emulated_post_types_remove' => [ 'type' => 'note', - 'desc' => sprintf('', __('Remove', 'wp-ultimo')), + 'desc' => sprintf('', __('Remove', 'wp-multisite-waas')), 'wrapper_classes' => 'wu-absolute wu-top-0 wu-right-0', ], 'emulated_post_types_slug' => [ 'type' => 'text', - 'title' => __('Post Type Slug', 'wp-ultimo'), - 'placeholder' => __('e.g. product', 'wp-ultimo'), + 'title' => __('Post Type Slug', 'wp-multisite-waas'), + 'placeholder' => __('e.g. product', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-w-5/12', 'html_attr' => [ 'v-model' => 'emulated_post_type.post_type', @@ -1083,8 +1083,8 @@ class Settings { ], 'emulated_post_types_label' => [ 'type' => 'text', - 'title' => __('Post Type Label', 'wp-ultimo'), - 'placeholder' => __('e.g. Products', 'wp-ultimo'), + 'title' => __('Post Type Label', 'wp-multisite-waas'), + 'placeholder' => __('e.g. Products', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-w-7/12 wu-ml-2', 'html_attr' => [ 'v-model' => 'emulated_post_type.label', @@ -1100,7 +1100,7 @@ class Settings { 'emulated_post_types_repeat', [ 'type' => 'submit', - 'title' => __('+ Add Post Type', 'wp-ultimo'), + 'title' => __('+ Add Post Type', 'wp-multisite-waas'), 'classes' => 'wu-uppercase wu-text-2xs wu-text-blue-700 wu-border-none wu-bg-transparent wu-font-bold wu-text-right wu-w-full wu-cursor-pointer', 'wrapper_classes' => 'wu-bg-gray-100 wu-items-end', 'wrapper_html_attr' => [ @@ -1127,8 +1127,8 @@ class Settings { $this->add_section( 'sites', [ - 'title' => __('Sites', 'wp-ultimo'), - 'desc' => __('Sites', 'wp-ultimo'), + 'title' => __('Sites', 'wp-multisite-waas'), + 'desc' => __('Sites', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-browser', ] ); @@ -1137,8 +1137,8 @@ class Settings { 'sites', 'sites_features_heading', [ - 'title' => __('Site Options', 'wp-ultimo'), - 'desc' => __('Configure certain aspects of how network Sites behave.', 'wp-ultimo'), + 'title' => __('Site Options', 'wp-multisite-waas'), + 'desc' => __('Configure certain aspects of how network Sites behave.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -1148,9 +1148,9 @@ class Settings { 'default_new_site_page', [ 'type' => 'model', - 'title' => __('Default New Site Page', 'wp-ultimo'), - 'placeholder' => __('Search pages on the main site...', 'wp-ultimo'), - 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_checkout] shortcode.', 'wp-ultimo'), + 'title' => __('Default New Site Page', 'wp-multisite-waas'), + 'placeholder' => __('Search pages on the main site...', 'wp-multisite-waas'), + 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_checkout] shortcode.', 'wp-multisite-waas'), 'tooltip' => '', 'html_attr' => [ 'data-base-link' => get_admin_url(wu_get_main_site_id(), 'post.php?action=edit&post'), @@ -1168,8 +1168,8 @@ class Settings { 'sites', 'enable_visits_limiting', [ - 'title' => __('Enable Visits Limitation & Counting', 'wp-ultimo'), - 'desc' => __('Enabling this option will add visits limitation settings to the plans and add the functionality necessary to count site visits on the front-end.', 'wp-ultimo'), + 'title' => __('Enable Visits Limitation & Counting', 'wp-multisite-waas'), + 'desc' => __('Enabling this option will add visits limitation settings to the plans and add the functionality necessary to count site visits on the front-end.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -1179,8 +1179,8 @@ class Settings { 'sites', 'enable_screenshot_generator', [ - 'title' => __('Enable Screenshot Generator', 'wp-ultimo'), - 'desc' => __('With this option is enabled, WP Multisite WaaS will take a screenshot for every newly created site on your network and set the resulting image as that site\'s featured image. This features requires a valid license key to work and it is not supported for local sites.', 'wp-ultimo'), + 'title' => __('Enable Screenshot Generator', 'wp-multisite-waas'), + 'desc' => __('With this option is enabled, WP Multisite WaaS will take a screenshot for every newly created site on your network and set the resulting image as that site\'s featured image. This features requires a valid license key to work and it is not supported for local sites.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -1190,8 +1190,8 @@ class Settings { 'sites', 'wordpress_features_heading', [ - 'title' => __('WordPress Features', 'wp-ultimo'), - 'desc' => __('Override default WordPress settings for network Sites.', 'wp-ultimo'), + 'title' => __('WordPress Features', 'wp-multisite-waas'), + 'desc' => __('Override default WordPress settings for network Sites.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -1200,9 +1200,9 @@ class Settings { 'sites', 'menu_items_plugin', [ - 'title' => __('Enable Plugins Menu', 'wp-ultimo'), - 'desc' => __('Do you want to let users on the network to have access to the Plugins page, activating plugins for their sites? If this option is disabled, the customer will not be able to manage the site plugins.', 'wp-ultimo'), - 'tooltip' => __('You can select which plugins the user will be able to use for each plan.', 'wp-ultimo'), + 'title' => __('Enable Plugins Menu', 'wp-multisite-waas'), + 'desc' => __('Do you want to let users on the network to have access to the Plugins page, activating plugins for their sites? If this option is disabled, the customer will not be able to manage the site plugins.', 'wp-multisite-waas'), + 'tooltip' => __('You can select which plugins the user will be able to use for each plan.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -1212,9 +1212,9 @@ class Settings { 'sites', 'add_new_users', [ - 'title' => __('Add New Users', 'wp-ultimo'), - 'desc' => __('Allow site administrators to add new users to their site via the "Users → Add New" page.', 'wp-ultimo'), - 'tooltip' => __('You can limit the number of users allowed for each plan.', 'wp-ultimo'), + 'title' => __('Add New Users', 'wp-multisite-waas'), + 'desc' => __('Allow site administrators to add new users to their site via the "Users → Add New" page.', 'wp-multisite-waas'), + 'tooltip' => __('You can limit the number of users allowed for each plan.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -1224,8 +1224,8 @@ class Settings { 'sites', 'site_template_features_heading', [ - 'title' => __('Site Template Options', 'wp-ultimo'), - 'desc' => __('Configure certain aspects of how Site Templates behave.', 'wp-ultimo'), + 'title' => __('Site Template Options', 'wp-multisite-waas'), + 'desc' => __('Configure certain aspects of how Site Templates behave.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -1234,8 +1234,8 @@ class Settings { 'sites', 'allow_template_switching', [ - 'title' => __('Allow Template Switching', 'wp-ultimo'), - 'desc' => __("Enabling this option will add an option on your client's dashboard to switch their site template to another one available on the catalog of available templates. The data is lost after a switch as the data from the new template is copied over.", 'wp-ultimo'), + 'title' => __('Allow Template Switching', 'wp-multisite-waas'), + 'desc' => __("Enabling this option will add an option on your client's dashboard to switch their site template to another one available on the catalog of available templates. The data is lost after a switch as the data from the new template is copied over.", 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -1245,8 +1245,8 @@ class Settings { 'sites', 'allow_own_site_as_template', [ - 'title' => __('Allow Users to use their own Sites as Templates', 'wp-ultimo'), - 'desc' => __('Enabling this option will add the user own sites to the template screen, allowing them to create a new site based on the content and customizations they made previously.', 'wp-ultimo'), + 'title' => __('Allow Users to use their own Sites as Templates', 'wp-multisite-waas'), + 'desc' => __('Enabling this option will add the user own sites to the template screen, allowing them to create a new site based on the content and customizations they made previously.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, 'require' => [ @@ -1259,8 +1259,8 @@ class Settings { 'sites', 'copy_media', [ - 'title' => __('Copy Media on Template Duplication?', 'wp-ultimo'), - 'desc' => __('Checking this option will copy the media uploaded on the template site to the newly created site. This can be overridden on each of the plans.', 'wp-ultimo'), + 'title' => __('Copy Media on Template Duplication?', 'wp-multisite-waas'), + 'desc' => __('Checking this option will copy the media uploaded on the template site to the newly created site. This can be overridden on each of the plans.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -1270,8 +1270,8 @@ class Settings { 'sites', 'stop_template_indexing', [ - 'title' => __('Prevent Search Engines from indexing Site Templates', 'wp-ultimo'), - 'desc' => __('Checking this option will discourage search engines from indexing all the Site Templates on your network.', 'wp-ultimo'), + 'title' => __('Prevent Search Engines from indexing Site Templates', 'wp-multisite-waas'), + 'desc' => __('Checking this option will discourage search engines from indexing all the Site Templates on your network.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, ] @@ -1287,8 +1287,8 @@ class Settings { $this->add_section( 'payment-gateways', [ - 'title' => __('Payments', 'wp-ultimo'), - 'desc' => __('Payments', 'wp-ultimo'), + 'title' => __('Payments', 'wp-multisite-waas'), + 'desc' => __('Payments', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-credit-card', ] ); @@ -1297,8 +1297,8 @@ class Settings { 'payment-gateways', 'main_header', [ - 'title' => __('Payment Settings', 'wp-ultimo'), - 'desc' => __('The following options affect how prices are displayed on the frontend, the backend and in reports.', 'wp-ultimo'), + 'title' => __('Payment Settings', 'wp-multisite-waas'), + 'desc' => __('The following options affect how prices are displayed on the frontend, the backend and in reports.', 'wp-multisite-waas'), 'type' => 'header', 'show_as_submenu' => true, ] @@ -1308,8 +1308,8 @@ class Settings { 'payment-gateways', 'force_auto_renew', [ - 'title' => __('Force Auto-Renew', 'wp-ultimo'), - 'desc' => __('Enable this option if you want to make sure memberships are created with auto-renew activated whenever the selected gateway supports it. Disabling this option will show an auto-renew option during checkout.', 'wp-ultimo'), + 'title' => __('Force Auto-Renew', 'wp-multisite-waas'), + 'desc' => __('Enable this option if you want to make sure memberships are created with auto-renew activated whenever the selected gateway supports it. Disabling this option will show an auto-renew option during checkout.', 'wp-multisite-waas'), 'tooltip' => '', 'type' => 'toggle', 'default' => 1, @@ -1320,8 +1320,8 @@ class Settings { 'payment-gateways', 'allow_trial_without_payment_method', [ - 'title' => __('Allow Trials without Payment Method', 'wp-ultimo'), - 'desc' => __('By default, WP Multisite WaaS asks customers to add a payment method on sign-up even if a trial period is present. Enable this option to only ask for a payment method when the trial period is over.', 'wp-ultimo'), + 'title' => __('Allow Trials without Payment Method', 'wp-multisite-waas'), + 'desc' => __('By default, WP Multisite WaaS asks customers to add a payment method on sign-up even if a trial period is present. Enable this option to only ask for a payment method when the trial period is over.', 'wp-multisite-waas'), 'tooltip' => '', 'type' => 'toggle', 'default' => 0, @@ -1332,9 +1332,9 @@ class Settings { 'payment-gateways', 'attach_invoice_pdf', [ - 'title' => __('Send Invoice on Payment Confirmation', 'wp-ultimo'), - 'desc' => __('Enabling this option will attach a PDF invoice (marked paid) with the payment confirmation email. This option does not apply to the Manual Gateway, which sends invoices regardless of this option.', 'wp-ultimo'), - 'tooltip' => __('The invoice files will be saved on the wp-content/uploads/wu-invoices folder.', 'wp-ultimo'), + 'title' => __('Send Invoice on Payment Confirmation', 'wp-multisite-waas'), + 'desc' => __('Enabling this option will attach a PDF invoice (marked paid) with the payment confirmation email. This option does not apply to the Manual Gateway, which sends invoices regardless of this option.', 'wp-multisite-waas'), + 'tooltip' => __('The invoice files will be saved on the wp-content/uploads/wu-invoices folder.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -1344,14 +1344,14 @@ class Settings { 'payment-gateways', 'invoice_numbering_scheme', [ - 'title' => __('Invoice Numbering Scheme', 'wp-ultimo'), - 'desc' => __('What should WP Multisite WaaS use as the invoice number?', 'wp-ultimo'), + 'title' => __('Invoice Numbering Scheme', 'wp-multisite-waas'), + 'desc' => __('What should WP Multisite WaaS use as the invoice number?', 'wp-multisite-waas'), 'type' => 'select', 'default' => 'reference_code', 'tooltip' => '', 'options' => [ - 'reference_code' => __('Payment Reference Code', 'wp-ultimo'), - 'sequential_number' => __('Sequential Number', 'wp-ultimo'), + 'reference_code' => __('Payment Reference Code', 'wp-multisite-waas'), + 'sequential_number' => __('Sequential Number', 'wp-multisite-waas'), ], ] ); @@ -1360,8 +1360,8 @@ class Settings { 'payment-gateways', 'next_invoice_number', [ - 'title' => __('Next Invoice Number', 'wp-ultimo'), - 'desc' => __('This number will be used as the invoice number for the next invoice generated on the system. It is incremented by one every time a new invoice is created. You can change it and save it to reset the invoice sequential number to a specific value.', 'wp-ultimo'), + 'title' => __('Next Invoice Number', 'wp-multisite-waas'), + 'desc' => __('This number will be used as the invoice number for the next invoice generated on the system. It is incremented by one every time a new invoice is created. You can change it and save it to reset the invoice sequential number to a specific value.', 'wp-multisite-waas'), 'type' => 'number', 'default' => '1', 'min' => 0, @@ -1375,9 +1375,9 @@ class Settings { 'payment-gateways', 'invoice_prefix', [ - 'title' => __('Invoice Number Prefix', 'wp-ultimo'), - 'placeholder' => __('INV00', 'wp-ultimo'), - 'desc' => sprintf(__('Use %%YEAR%%, %%MONTH%%, and %%DAY%% to create a dynamic placeholder. E.g. %%YEAR%%-%%MONTH%%-INV will become %s.', 'wp-ultimo'), date('Y') . '-' . date('m') . '-INV'), // phpcs:ignore + 'title' => __('Invoice Number Prefix', 'wp-multisite-waas'), + 'placeholder' => __('INV00', 'wp-multisite-waas'), + 'desc' => sprintf(__('Use %%YEAR%%, %%MONTH%%, and %%DAY%% to create a dynamic placeholder. E.g. %%YEAR%%-%%MONTH%%-INV will become %s.', 'wp-multisite-waas'), date('Y') . '-' . date('m') . '-INV'), // phpcs:ignore 'default' => '', 'type' => 'text', 'raw' => true, // Necessary to prevent the removal of the %% tags. @@ -1391,8 +1391,8 @@ class Settings { 'payment-gateways', 'gateways_header', [ - 'title' => __('Payment Gateways', 'wp-ultimo'), - 'desc' => __('Activate and configure the installed payment gateways in this section.', 'wp-ultimo'), + 'title' => __('Payment Gateways', 'wp-multisite-waas'), + 'desc' => __('Activate and configure the installed payment gateways in this section.', 'wp-multisite-waas'), 'type' => 'header', 'show_as_submenu' => true, ] @@ -1407,8 +1407,8 @@ class Settings { $this->add_section( 'emails', [ - 'title' => __('Emails', 'wp-ultimo'), - 'desc' => __('Emails', 'wp-ultimo'), + 'title' => __('Emails', 'wp-multisite-waas'), + 'desc' => __('Emails', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-email', ] ); @@ -1423,8 +1423,8 @@ class Settings { $this->add_section( 'domain-mapping', [ - 'title' => __('Domain Mapping', 'wp-ultimo'), - 'desc' => __('Domain Mapping', 'wp-ultimo'), + 'title' => __('Domain Mapping', 'wp-multisite-waas'), + 'desc' => __('Domain Mapping', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-link', ] ); @@ -1439,8 +1439,8 @@ class Settings { $this->add_section( 'sso', [ - 'title' => __('Single Sign-On', 'wp-ultimo'), - 'desc' => __('Single Sign-On', 'wp-ultimo'), + 'title' => __('Single Sign-On', 'wp-multisite-waas'), + 'desc' => __('Single Sign-On', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-add-user', ] ); @@ -1455,8 +1455,8 @@ class Settings { $this->add_section( 'integrations', [ - 'title' => __('Integrations', 'wp-ultimo'), - 'desc' => __('Integrations', 'wp-ultimo'), + 'title' => __('Integrations', 'wp-multisite-waas'), + 'desc' => __('Integrations', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-power-plug', ] ); @@ -1465,8 +1465,8 @@ class Settings { 'integrations', 'hosting_providers_header', [ - 'title' => __('Hosting or Panel Providers', 'wp-ultimo'), - 'desc' => __('Configure and manage the integration with your Hosting or Panel Provider.', 'wp-ultimo'), + 'title' => __('Hosting or Panel Providers', 'wp-multisite-waas'), + 'desc' => __('Configure and manage the integration with your Hosting or Panel Provider.', 'wp-multisite-waas'), 'type' => 'header', 'show_as_submenu' => true, ] @@ -1482,8 +1482,8 @@ class Settings { $this->add_section( 'other', [ - 'title' => __('Other Options', 'wp-ultimo'), - 'desc' => __('Other Options', 'wp-ultimo'), + 'title' => __('Other Options', 'wp-multisite-waas'), + 'desc' => __('Other Options', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-switch', 'order' => 1000, ] @@ -1493,8 +1493,8 @@ class Settings { 'other', 'Other_header', [ - 'title' => __('Miscellaneous', 'wp-ultimo'), - 'desc' => __('Other options that do not fit anywhere else.', 'wp-ultimo'), + 'title' => __('Miscellaneous', 'wp-multisite-waas'), + 'desc' => __('Other options that do not fit anywhere else.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -1505,8 +1505,8 @@ class Settings { 'other', 'hide_tours', [ - 'title' => __('Hide UI Tours', 'wp-ultimo') . $preview_image, - 'desc' => __('The UI tours showed by WP Multisite WaaS should permanently hide themselves after being seen but if they persist for whatever reason, toggle this option to force them into their viewed state - which will prevent them from showing up again.', 'wp-ultimo'), + 'title' => __('Hide UI Tours', 'wp-multisite-waas') . $preview_image, + 'desc' => __('The UI tours showed by WP Multisite WaaS should permanently hide themselves after being seen but if they persist for whatever reason, toggle this option to force them into their viewed state - which will prevent them from showing up again.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, ] @@ -1518,8 +1518,8 @@ class Settings { 'other', 'disable_image_zoom', [ - 'title' => __('Disable "Hover to Zoom"', 'wp-ultimo') . $preview_image_2, - 'desc' => __('By default, WP Multisite WaaS adds a "hover to zoom" feature, allowing network admins to see larger version of site screenshots and other images across the UI in full-size when hovering over them. You can disable that feature here. Preview tags like the above are not affected.', 'wp-ultimo'), + 'title' => __('Disable "Hover to Zoom"', 'wp-multisite-waas') . $preview_image_2, + 'desc' => __('By default, WP Multisite WaaS adds a "hover to zoom" feature, allowing network admins to see larger version of site screenshots and other images across the UI in full-size when hovering over them. You can disable that feature here. Preview tags like the above are not affected.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, ] @@ -1529,8 +1529,8 @@ class Settings { 'other', 'error_reporting_header', [ - 'title' => __('Logging', 'wp-ultimo'), - 'desc' => __('Log WP Multisite WaaS data. This is useful for debugging purposes.', 'wp-ultimo'), + 'title' => __('Logging', 'wp-multisite-waas'), + 'desc' => __('Log WP Multisite WaaS data. This is useful for debugging purposes.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -1539,15 +1539,15 @@ class Settings { 'other', 'error_logging_level', [ - 'title' => __('Logging Level', 'wp-ultimo'), - 'desc' => __('Select the level of logging you want to use.', 'wp-ultimo'), + 'title' => __('Logging Level', 'wp-multisite-waas'), + 'desc' => __('Select the level of logging you want to use.', 'wp-multisite-waas'), 'type' => 'select', 'default' => 'default', 'options' => [ - 'default' => __('PHP Default', 'wp-ultimo'), - 'disabled' => __('Disabled', 'wp-ultimo'), - 'errors' => __('Errors Only', 'wp-ultimo'), - 'all' => __('Everything', 'wp-ultimo'), + 'default' => __('PHP Default', 'wp-multisite-waas'), + 'disabled' => __('Disabled', 'wp-multisite-waas'), + 'errors' => __('Errors Only', 'wp-multisite-waas'), + 'all' => __('Everything', 'wp-multisite-waas'), ], ] ); @@ -1556,8 +1556,8 @@ class Settings { 'other', 'enable_error_reporting', [ - 'title' => __('Send Error Data to WP Multisite WaaS Developers', 'wp-ultimo'), - 'desc' => __('With this option enabled, every time your installation runs into an error related to WP Multisite WaaS, that error data will be sent to us. No sensitive data gets collected, only environmental stuff (e.g. if this is this is a subdomain network, etc).', 'wp-ultimo'), + 'title' => __('Send Error Data to WP Multisite WaaS Developers', 'wp-multisite-waas'), + 'desc' => __('With this option enabled, every time your installation runs into an error related to WP Multisite WaaS, that error data will be sent to us. No sensitive data gets collected, only environmental stuff (e.g. if this is this is a subdomain network, etc).', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -1567,8 +1567,8 @@ class Settings { 'other', 'advanced_header', [ - 'title' => __('Advanced Options', 'wp-ultimo'), - 'desc' => __('Change the plugin and wordpress behavior.', 'wp-ultimo'), + 'title' => __('Advanced Options', 'wp-multisite-waas'), + 'desc' => __('Change the plugin and wordpress behavior.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -1583,15 +1583,15 @@ class Settings { if ( ! empty($plans)) { $url = wu_network_admin_url('wp-ultimo-migration-alert'); - $title = __('Run Migration Again', 'wp-ultimo') . sprintf( + $title = __('Run Migration Again', 'wp-multisite-waas') . sprintf( "%s", - __('Rerun the Migration Wizard if you experience data-loss after migrate.', 'wp-ultimo') + __('Rerun the Migration Wizard if you experience data-loss after migrate.', 'wp-multisite-waas') ) . sprintf( "%s", - __('Important: This process can have unexpected behavior with your current Ultimo models.
We recommend that you create a backup before continue.', 'wp-ultimo') + __('Important: This process can have unexpected behavior with your current Ultimo models.
We recommend that you create a backup before continue.', 'wp-multisite-waas') ); - $html = sprintf('%s', $url, __('Migrate', 'wp-ultimo')); + $html = sprintf('%s', $url, __('Migrate', 'wp-multisite-waas')); $this->add_field( 'other', @@ -1614,9 +1614,9 @@ class Settings { 'other', 'security_mode', [ - 'title' => __('Security Mode', 'wp-ultimo'), + 'title' => __('Security Mode', 'wp-multisite-waas'), // Translators: Placeholder adds the security mode key and current site url with query string - 'desc' => sprintf(__('Only WP Multisite WaaS and other must-use plugins will run on your WordPress install while this option is enabled.
Important: Copy the following URL to disable security mode if something goes wrong and this page becomes unavailable:%2$s
', 'wp-ultimo'), $security_mode_key, get_site_url() . $security_mode_key), + 'desc' => sprintf(__('Only WP Multisite WaaS and other must-use plugins will run on your WordPress install while this option is enabled.
Important: Copy the following URL to disable security mode if something goes wrong and this page becomes unavailable:%2$s
', 'wp-multisite-waas'), $security_mode_key, get_site_url() . $security_mode_key), 'type' => 'toggle', 'default' => 0, ] @@ -1627,8 +1627,8 @@ class Settings { 'other', 'uninstall_wipe_tables', [ - 'title' => __('Remove Data on Uninstall', 'wp-ultimo'), - 'desc' => __('Remove all saved data for WP Multisite WaaS when the plugin is uninstalled.', 'wp-ultimo'), + 'title' => __('Remove Data on Uninstall', 'wp-multisite-waas'), + 'desc' => __('Remove all saved data for WP Multisite WaaS when the plugin is uninstalled.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, ] diff --git a/inc/class-sunrise.php b/inc/class-sunrise.php index 663e69e..80779ac 100644 --- a/inc/class-sunrise.php +++ b/inc/class-sunrise.php @@ -265,10 +265,10 @@ class Sunrise { wu_log_add('sunrise', $error['message'], LogLevel::ERROR); /* translators: the placeholder is an error message */ - return new \WP_Error('error', sprintf(__('Sunrise copy failed: %s', 'wp-ultimo'), $error['message'])); + return new \WP_Error('error', sprintf(__('Sunrise copy failed: %s', 'wp-multisite-waas'), $error['message'])); } - wu_log_add('sunrise', __('Sunrise upgrade attempt succeeded.', 'wp-ultimo')); + wu_log_add('sunrise', __('Sunrise upgrade attempt succeeded.', 'wp-multisite-waas')); return true; } diff --git a/inc/class-user-switching.php b/inc/class-user-switching.php index ed7add2..8eaf85e 100644 --- a/inc/class-user-switching.php +++ b/inc/class-user-switching.php @@ -71,12 +71,12 @@ class User_Switching { 'title' => [ 'type' => 'text-display', 'title' => '', - 'display_value' => __('This feature requires the plugin User Switching to be installed and active.', 'wp-ultimo'), + 'display_value' => __('This feature requires the plugin User Switching to be installed and active.', 'wp-multisite-waas'), 'tooltip' => '', ], 'link' => [ 'type' => 'link', - 'display_value' => __('Install User Switching', 'wp-ultimo'), + 'display_value' => __('Install User Switching', 'wp-multisite-waas'), 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end wu-text-center wu-bg-gray-100', 'html_attr' => [ diff --git a/inc/class-whitelabel.php b/inc/class-whitelabel.php index 9e5663e..bdbf918 100644 --- a/inc/class-whitelabel.php +++ b/inc/class-whitelabel.php @@ -87,7 +87,7 @@ class Whitelabel { } - if (wu_get_setting('hide_sites_menu', tenqueue_stylesrue)) { + if (wu_get_setting('hide_sites_menu', true)) { add_action('network_admin_menu', [$this, 'remove_sites_admin_menu']); } } @@ -198,8 +198,8 @@ class Whitelabel { wu_register_settings_section( 'whitelabel', [ - 'title' => __('Whitelabel', 'wp-ultimo'), - 'desc' => __('Basic Whitelabel', 'wp-ultimo'), + 'title' => __('Whitelabel', 'wp-multisite-waas'), + 'desc' => __('Basic Whitelabel', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-eye', ] ); @@ -208,8 +208,8 @@ class Whitelabel { 'whitelabel', 'whitelabel_header', [ - 'title' => __('Whitelabel', 'wp-ultimo'), - 'desc' => __('Hide a couple specific WordPress elements and rename others.', 'wp-ultimo'), + 'title' => __('Whitelabel', 'wp-multisite-waas'), + 'desc' => __('Hide a couple specific WordPress elements and rename others.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -220,8 +220,8 @@ class Whitelabel { 'whitelabel', 'hide_wordpress_logo', [ - 'title' => __('Hide WordPress Logo', 'wp-ultimo') . $preview_image, - 'desc' => __('Hide the WordPress logo from the top-bar and replace the same logo on the My Sites top-bar item with a more generic icon.', 'wp-ultimo'), + 'title' => __('Hide WordPress Logo', 'wp-multisite-waas') . $preview_image, + 'desc' => __('Hide the WordPress logo from the top-bar and replace the same logo on the My Sites top-bar item with a more generic icon.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -231,8 +231,8 @@ class Whitelabel { 'whitelabel', 'hide_sites_menu', [ - 'title' => __('Hide Sites Admin Menu', 'wp-ultimo'), - 'desc' => __('We recommend that you manage all of your sites using the WP Multisite WaaS → Sites page. To avoid confusion, you can hide the default "Sites" item from the WordPress admin menu by toggling this option.', 'wp-ultimo'), + 'title' => __('Hide Sites Admin Menu', 'wp-multisite-waas'), + 'desc' => __('We recommend that you manage all of your sites using the WP Multisite WaaS → Sites page. To avoid confusion, you can hide the default "Sites" item from the WordPress admin menu by toggling this option.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, ] @@ -242,9 +242,9 @@ class Whitelabel { 'whitelabel', 'rename_wordpress', [ - 'title' => __('Replace the word "WordPress"', 'wp-ultimo'), - 'placeholder' => __('e.g. My App', 'wp-ultimo'), - 'desc' => __('Replace all occurrences of the word "WordPress" with a different word.', 'wp-ultimo'), + 'title' => __('Replace the word "WordPress"', 'wp-multisite-waas'), + 'placeholder' => __('e.g. My App', 'wp-multisite-waas'), + 'desc' => __('Replace all occurrences of the word "WordPress" with a different word.', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', ] @@ -254,9 +254,9 @@ class Whitelabel { 'whitelabel', 'rename_site_singular', [ - 'title' => __('Replace the word "Site" (singular)', 'wp-ultimo'), - 'placeholder' => __('e.g. App', 'wp-ultimo'), - 'desc' => __('Replace all occurrences of the word "Site" with a different word.', 'wp-ultimo'), + 'title' => __('Replace the word "Site" (singular)', 'wp-multisite-waas'), + 'placeholder' => __('e.g. App', 'wp-multisite-waas'), + 'desc' => __('Replace all occurrences of the word "Site" with a different word.', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'wrapper_classes' => 'wu-w-1/2', @@ -267,9 +267,9 @@ class Whitelabel { 'whitelabel', 'rename_site_plural', [ - 'title' => __('Replace the word "Sites" (plural)', 'wp-ultimo'), - 'placeholder' => __('e.g. Apps', 'wp-ultimo'), - 'desc' => __('Replace all occurrences of the word "Sites" with a different word.', 'wp-ultimo'), + 'title' => __('Replace the word "Sites" (plural)', 'wp-multisite-waas'), + 'placeholder' => __('e.g. Apps', 'wp-multisite-waas'), + 'desc' => __('Replace all occurrences of the word "Sites" with a different word.', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'wrapper_classes' => 'wu-w-1/2', diff --git a/inc/compat/class-general-compat.php b/inc/compat/class-general-compat.php index 751f4ed..d856d35 100644 --- a/inc/compat/class-general-compat.php +++ b/inc/compat/class-general-compat.php @@ -252,7 +252,7 @@ class General_Compat { */ public function add_wp_typography_warning_message(): void { - WP_Ultimo()->notices->add(__('WP Typography "Smart Quotes" replacement is not compatible with WP Multisite WaaS and will be automatically disabled.', 'wp-ultimo'), 'warning'); + WP_Ultimo()->notices->add(__('WP Typography "Smart Quotes" replacement is not compatible with WP Multisite WaaS and will be automatically disabled.', 'wp-multisite-waas'), 'warning'); } /** diff --git a/inc/compat/class-gutenberg-support.php b/inc/compat/class-gutenberg-support.php index de356b3..170800a 100644 --- a/inc/compat/class-gutenberg-support.php +++ b/inc/compat/class-gutenberg-support.php @@ -65,7 +65,7 @@ class Gutenberg_Support { wp_register_script('wu-gutenberg-support', wu_get_asset('gutenberg-support.js', 'js'), ['jquery'], wu_get_version(), true); // translators: the placeholder is replaced with the network name. - $preview_message = apply_filters('wu_gutenberg_support_preview_message', sprintf(__('%s is generating the preview...', 'wp-ultimo'), get_network_option(null, 'site_name'))); + $preview_message = apply_filters('wu_gutenberg_support_preview_message', sprintf(__('%s is generating the preview...', 'wp-multisite-waas'), get_network_option(null, 'site_name'))); wp_localize_script( 'wu-gutenberg-support', diff --git a/inc/compat/class-legacy-shortcodes.php b/inc/compat/class-legacy-shortcodes.php index ace25a3..45d882d 100644 --- a/inc/compat/class-legacy-shortcodes.php +++ b/inc/compat/class-legacy-shortcodes.php @@ -215,7 +215,7 @@ class Legacy_Shortcodes { $atts['plan_id'] = ! empty($atts['product_id']) ? $atts['product_id'] : $atts['plan_id']; if (empty($atts) || ! $atts['plan_id']) { - return __('You need to pass a valid plan ID.', 'wp-ultimo'); + return __('You need to pass a valid plan ID.', 'wp-multisite-waas'); } $query_products = get_query_var('products', []); @@ -349,17 +349,17 @@ class Legacy_Shortcodes { [ 'duration' => 1, 'duration_unit' => 'month', - 'label' => __('Monthly', 'wp-ultimo'), + 'label' => __('Monthly', 'wp-multisite-waas'), ], [ 'duration' => 3, 'duration_unit' => 'month', - 'label' => __('Quarterly', 'wp-ultimo'), + 'label' => __('Quarterly', 'wp-multisite-waas'), ], [ 'duration' => 1, 'duration_unit' => 'year', - 'label' => __('Yearly', 'wp-ultimo'), + 'label' => __('Yearly', 'wp-multisite-waas'), ], ], ]; @@ -369,7 +369,7 @@ class Legacy_Shortcodes { $fields[] = [ 'step' => 'checkout', - 'name' => __('Plans', 'wp-ultimo'), + 'name' => __('Plans', 'wp-multisite-waas'), 'type' => 'pricing_table', 'id' => 'pricing_table', 'required' => true, @@ -385,7 +385,7 @@ class Legacy_Shortcodes { if ('legacy' !== $layout) { $fields[] = [ 'step' => 'checkout', - 'name' => __('Get Started →', 'wp-ultimo'), + 'name' => __('Get Started →', 'wp-multisite-waas'), 'type' => 'submit_button', 'id' => 'checkout', ]; @@ -394,7 +394,7 @@ class Legacy_Shortcodes { $steps = [ [ 'id' => 'checkout', - 'name' => __('Checkout', 'wp-ultimo'), + 'name' => __('Checkout', 'wp-multisite-waas'), 'desc' => '', 'fields' => $fields, ], @@ -522,7 +522,7 @@ class Legacy_Shortcodes { $fields[] = [ 'step' => 'checkout', - 'name' => __('Templates', 'wp-ultimo'), + 'name' => __('Templates', 'wp-multisite-waas'), 'type' => 'template_selection', 'id' => 'template_selection', 'template_selection_sites' => implode(',', $templates ?: wu_get_site_templates($search_arguments)), @@ -534,7 +534,7 @@ class Legacy_Shortcodes { $steps = [ [ 'id' => 'checkout', - 'name' => __('Checkout', 'wp-ultimo'), + 'name' => __('Checkout', 'wp-multisite-waas'), 'desc' => '', 'fields' => $fields, ], diff --git a/inc/compat/class-multiple-accounts-compat.php b/inc/compat/class-multiple-accounts-compat.php index 5be3141..a9149f2 100644 --- a/inc/compat/class-multiple-accounts-compat.php +++ b/inc/compat/class-multiple-accounts-compat.php @@ -260,8 +260,8 @@ class Multiple_Accounts_Compat { 'login-and-registration', 'multiple_accounts_header', [ - 'title' => __('Multiple Accounts', 'wp-ultimo'), - 'desc' => __('Options related to the Multiple Accounts feature.', 'wp-ultimo'), + 'title' => __('Multiple Accounts', 'wp-multisite-waas'), + 'desc' => __('Options related to the Multiple Accounts feature.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -270,8 +270,8 @@ class Multiple_Accounts_Compat { 'login-and-registration', 'enable_multiple_accounts', [ - 'title' => __('Enable Multiple Accounts', 'wp-ultimo'), - 'desc' => __('Allow users to have accounts in different sites with the same email address. This is useful when running stores with WooCommerce and other plugins, for example.', 'wp-ultimo') . ' ' . sprintf('%s', wu_get_documentation_url('multiple-accounts'), __('Read More', 'wp-ultimo')), + 'title' => __('Enable Multiple Accounts', 'wp-multisite-waas'), + 'desc' => __('Allow users to have accounts in different sites with the same email address. This is useful when running stores with WooCommerce and other plugins, for example.', 'wp-multisite-waas') . ' ' . sprintf('%s', wu_get_documentation_url('multiple-accounts'), __('Read More', 'wp-multisite-waas')), 'type' => 'toggle', 'default' => 0, ] @@ -288,7 +288,7 @@ class Multiple_Accounts_Compat { */ public function add_multiple_account_column($columns) { - $columns['multiple_accounts'] = __('Multiple Accounts', 'wp-ultimo'); + $columns['multiple_accounts'] = __('Multiple Accounts', 'wp-multisite-waas'); return $columns; } @@ -320,9 +320,9 @@ class Multiple_Accounts_Compat { ); // translators: the %d is the account count for that email address. - $html = sprintf(__('%d accounts using this email.', 'wp-ultimo'), $users->total_users); + $html = sprintf(__('%d accounts using this email.', 'wp-multisite-waas'), $users->total_users); - $html .= sprintf("
" . __('See all', 'wp-ultimo') . ' »', network_admin_url('users.php?s=' . $user->user_email)); + $html .= sprintf("
" . __('See all', 'wp-multisite-waas') . ' »', network_admin_url('users.php?s=' . $user->user_email)); echo $html; } diff --git a/inc/compat/class-product-compat.php b/inc/compat/class-product-compat.php index c37a3d0..ddebaf1 100644 --- a/inc/compat/class-product-compat.php +++ b/inc/compat/class-product-compat.php @@ -94,8 +94,8 @@ class Product_Compat { public function add_legacy_section($sections, $object) { $sections['legacy_options_core'] = [ - 'title' => __('Legacy Options', 'wp-ultimo'), - 'desc' => __('Options used by old 1.X versions. ', 'wp-ultimo'), + 'title' => __('Legacy Options', 'wp-multisite-waas'), + 'desc' => __('Options used by old 1.X versions. ', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-spreadsheet', 'state' => [ 'legacy_options' => $object->get_legacy_options(), @@ -104,8 +104,8 @@ class Product_Compat { 'legacy_options' => [ 'type' => 'toggle', 'value' => $object->get_legacy_options(), - 'title' => __('Toggle Legacy Options', 'wp-ultimo'), - 'desc' => __('Toggle this option to edit legacy options.', 'wp-ultimo'), + 'title' => __('Toggle Legacy Options', 'wp-multisite-waas'), + 'desc' => __('Toggle this option to edit legacy options.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'legacy_options', ], @@ -113,17 +113,17 @@ class Product_Compat { 'featured_plan' => [ 'type' => 'toggle', 'value' => $object->is_featured_plan(), - 'title' => __('Featured Plan', 'wp-ultimo'), - 'desc' => __('Toggle this option to mark this product as featured on the legacy pricing tables.', 'wp-ultimo'), + 'title' => __('Featured Plan', 'wp-multisite-waas'), + 'desc' => __('Toggle this option to mark this product as featured on the legacy pricing tables.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => 'legacy_options', ], ], 'feature_list' => [ 'type' => 'textarea', - 'title' => __('Features List', 'wp-ultimo'), - 'placeholder' => __('E.g. Feature 1', 'wp-ultimo') . PHP_EOL . __('Feature 2', 'wp-ultimo'), - 'desc' => __('Add a feature per line. These will be shown on the pricing tables.', 'wp-ultimo'), + 'title' => __('Features List', 'wp-multisite-waas'), + 'placeholder' => __('E.g. Feature 1', 'wp-multisite-waas') . PHP_EOL . __('Feature 2', 'wp-multisite-waas'), + 'desc' => __('Add a feature per line. These will be shown on the pricing tables.', 'wp-multisite-waas'), 'value' => $object->get_feature_list(), 'wrapper_html_attr' => [ 'v-show' => 'legacy_options', diff --git a/inc/country/class-country-br.php b/inc/country/class-country-br.php index e8c3cec..adbfbf3 100644 --- a/inc/country/class-country-br.php +++ b/inc/country/class-country-br.php @@ -90,7 +90,7 @@ class Country_BR extends Country { */ public function get_name() { - return __('Brazil', 'wp-ultimo'); + return __('Brazil', 'wp-multisite-waas'); } /** @@ -102,33 +102,33 @@ class Country_BR extends Country { protected function states() { return [ - 'AC' => __('Acre', 'wp-ultimo'), - 'AL' => __('Alagoas', 'wp-ultimo'), - 'AP' => __('Amapá', 'wp-ultimo'), - 'AM' => __('Amazonas', 'wp-ultimo'), - 'BA' => __('Bahia', 'wp-ultimo'), - 'CE' => __('Ceará', 'wp-ultimo'), - 'DF' => __('Distrito Federal', 'wp-ultimo'), - 'ES' => __('Espírito Santo', 'wp-ultimo'), - 'GO' => __('Goiás', 'wp-ultimo'), - 'MA' => __('Maranhão', 'wp-ultimo'), - 'MT' => __('Mato Grosso', 'wp-ultimo'), - 'MS' => __('Mato Grosso do Sul', 'wp-ultimo'), - 'MG' => __('Minas Gerais', 'wp-ultimo'), - 'PR' => __('Paraná', 'wp-ultimo'), - 'PB' => __('Paraíba', 'wp-ultimo'), - 'PA' => __('Pará', 'wp-ultimo'), - 'PE' => __('Pernambuco', 'wp-ultimo'), - 'PI' => __('Piauí', 'wp-ultimo'), - 'RN' => __('Rio Grande do Norte', 'wp-ultimo'), - 'RS' => __('Rio Grande do Sul', 'wp-ultimo'), - 'RJ' => __('Rio de Janeiro', 'wp-ultimo'), - 'RO' => __('Rondônia', 'wp-ultimo'), - 'RR' => __('Roraima', 'wp-ultimo'), - 'SC' => __('Santa Catarina', 'wp-ultimo'), - 'SE' => __('Sergipe', 'wp-ultimo'), - 'SP' => __('São Paulo', 'wp-ultimo'), - 'TO' => __('Tocantins', 'wp-ultimo'), + 'AC' => __('Acre', 'wp-multisite-waas'), + 'AL' => __('Alagoas', 'wp-multisite-waas'), + 'AP' => __('Amapá', 'wp-multisite-waas'), + 'AM' => __('Amazonas', 'wp-multisite-waas'), + 'BA' => __('Bahia', 'wp-multisite-waas'), + 'CE' => __('Ceará', 'wp-multisite-waas'), + 'DF' => __('Distrito Federal', 'wp-multisite-waas'), + 'ES' => __('Espírito Santo', 'wp-multisite-waas'), + 'GO' => __('Goiás', 'wp-multisite-waas'), + 'MA' => __('Maranhão', 'wp-multisite-waas'), + 'MT' => __('Mato Grosso', 'wp-multisite-waas'), + 'MS' => __('Mato Grosso do Sul', 'wp-multisite-waas'), + 'MG' => __('Minas Gerais', 'wp-multisite-waas'), + 'PR' => __('Paraná', 'wp-multisite-waas'), + 'PB' => __('Paraíba', 'wp-multisite-waas'), + 'PA' => __('Pará', 'wp-multisite-waas'), + 'PE' => __('Pernambuco', 'wp-multisite-waas'), + 'PI' => __('Piauí', 'wp-multisite-waas'), + 'RN' => __('Rio Grande do Norte', 'wp-multisite-waas'), + 'RS' => __('Rio Grande do Sul', 'wp-multisite-waas'), + 'RJ' => __('Rio de Janeiro', 'wp-multisite-waas'), + 'RO' => __('Rondônia', 'wp-multisite-waas'), + 'RR' => __('Roraima', 'wp-multisite-waas'), + 'SC' => __('Santa Catarina', 'wp-multisite-waas'), + 'SE' => __('Sergipe', 'wp-multisite-waas'), + 'SP' => __('São Paulo', 'wp-multisite-waas'), + 'TO' => __('Tocantins', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-ca.php b/inc/country/class-country-ca.php index b69c96a..af91f0e 100644 --- a/inc/country/class-country-ca.php +++ b/inc/country/class-country-ca.php @@ -76,7 +76,7 @@ class Country_CA extends Country { */ public function get_name() { - return __('Canada', 'wp-ultimo'); + return __('Canada', 'wp-multisite-waas'); } /** @@ -88,19 +88,19 @@ class Country_CA extends Country { protected function states() { return [ - 'AB' => __('Alberta', 'wp-ultimo'), - 'BC' => __('British Columbia', 'wp-ultimo'), - 'MB' => __('Manitoba', 'wp-ultimo'), - 'NB' => __('New Brunswick', 'wp-ultimo'), - 'NL' => __('Newfoundland and Labrador', 'wp-ultimo'), - 'NT' => __('Northwest Territories', 'wp-ultimo'), - 'NS' => __('Nova Scotia', 'wp-ultimo'), - 'NU' => __('Nunavut', 'wp-ultimo'), - 'ON' => __('Ontario', 'wp-ultimo'), - 'PE' => __('Prince Edward Island', 'wp-ultimo'), - 'QC' => __('Quebec', 'wp-ultimo'), - 'SK' => __('Saskatchewan', 'wp-ultimo'), - 'YT' => __('Yukon', 'wp-ultimo'), + 'AB' => __('Alberta', 'wp-multisite-waas'), + 'BC' => __('British Columbia', 'wp-multisite-waas'), + 'MB' => __('Manitoba', 'wp-multisite-waas'), + 'NB' => __('New Brunswick', 'wp-multisite-waas'), + 'NL' => __('Newfoundland and Labrador', 'wp-multisite-waas'), + 'NT' => __('Northwest Territories', 'wp-multisite-waas'), + 'NS' => __('Nova Scotia', 'wp-multisite-waas'), + 'NU' => __('Nunavut', 'wp-multisite-waas'), + 'ON' => __('Ontario', 'wp-multisite-waas'), + 'PE' => __('Prince Edward Island', 'wp-multisite-waas'), + 'QC' => __('Quebec', 'wp-multisite-waas'), + 'SK' => __('Saskatchewan', 'wp-multisite-waas'), + 'YT' => __('Yukon', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-cn.php b/inc/country/class-country-cn.php index 2d81556..fcc1831 100644 --- a/inc/country/class-country-cn.php +++ b/inc/country/class-country-cn.php @@ -95,7 +95,7 @@ class Country_CN extends Country { */ public function get_name() { - return __('China', 'wp-ultimo'); + return __('China', 'wp-multisite-waas'); } /** @@ -107,40 +107,40 @@ class Country_CN extends Country { protected function states() { return [ - 'AH' => __('Anhui', 'wp-ultimo'), - 'BJ' => __('Beijing', 'wp-ultimo'), - 'CQ' => __('Chongqing', 'wp-ultimo'), - 'FJ' => __('Fujian', 'wp-ultimo'), - 'GS' => __('Gansu', 'wp-ultimo'), - 'GD' => __('Guangdong', 'wp-ultimo'), - 'GX' => __('Guangxi Zhuang', 'wp-ultimo'), - 'GZ' => __('Guizhou', 'wp-ultimo'), - 'HI' => __('Hainan', 'wp-ultimo'), - 'HE' => __('Hebei', 'wp-ultimo'), - 'HL' => __('Heilongjiang', 'wp-ultimo'), - 'HA' => __('Henan', 'wp-ultimo'), - 'HK' => __('Hong Kong SAR', 'wp-ultimo'), - 'HB' => __('Hubei', 'wp-ultimo'), - 'HN' => __('Hunan', 'wp-ultimo'), - 'NM' => __('Inner Mongolia', 'wp-ultimo'), - 'JS' => __('Jiangsu', 'wp-ultimo'), - 'JX' => __('Jiangxi', 'wp-ultimo'), - 'JL' => __('Jilin', 'wp-ultimo'), - 'LN' => __('Liaoning', 'wp-ultimo'), - 'MO' => __('Macau SAR', 'wp-ultimo'), - 'NX' => __('Ningxia Huizu', 'wp-ultimo'), - 'QH' => __('Qinghai', 'wp-ultimo'), - 'SN' => __('Shaanxi', 'wp-ultimo'), - 'SD' => __('Shandong', 'wp-ultimo'), - 'SH' => __('Shanghai', 'wp-ultimo'), - 'SX' => __('Shanxi', 'wp-ultimo'), - 'SC' => __('Sichuan', 'wp-ultimo'), - 'TW' => __('Taiwan', 'wp-ultimo'), - 'TJ' => __('Tianjin', 'wp-ultimo'), - 'XJ' => __('Xinjiang', 'wp-ultimo'), - 'XZ' => __('Xizang', 'wp-ultimo'), - 'YN' => __('Yunnan', 'wp-ultimo'), - 'ZJ' => __('Zhejiang', 'wp-ultimo'), + 'AH' => __('Anhui', 'wp-multisite-waas'), + 'BJ' => __('Beijing', 'wp-multisite-waas'), + 'CQ' => __('Chongqing', 'wp-multisite-waas'), + 'FJ' => __('Fujian', 'wp-multisite-waas'), + 'GS' => __('Gansu', 'wp-multisite-waas'), + 'GD' => __('Guangdong', 'wp-multisite-waas'), + 'GX' => __('Guangxi Zhuang', 'wp-multisite-waas'), + 'GZ' => __('Guizhou', 'wp-multisite-waas'), + 'HI' => __('Hainan', 'wp-multisite-waas'), + 'HE' => __('Hebei', 'wp-multisite-waas'), + 'HL' => __('Heilongjiang', 'wp-multisite-waas'), + 'HA' => __('Henan', 'wp-multisite-waas'), + 'HK' => __('Hong Kong SAR', 'wp-multisite-waas'), + 'HB' => __('Hubei', 'wp-multisite-waas'), + 'HN' => __('Hunan', 'wp-multisite-waas'), + 'NM' => __('Inner Mongolia', 'wp-multisite-waas'), + 'JS' => __('Jiangsu', 'wp-multisite-waas'), + 'JX' => __('Jiangxi', 'wp-multisite-waas'), + 'JL' => __('Jilin', 'wp-multisite-waas'), + 'LN' => __('Liaoning', 'wp-multisite-waas'), + 'MO' => __('Macau SAR', 'wp-multisite-waas'), + 'NX' => __('Ningxia Huizu', 'wp-multisite-waas'), + 'QH' => __('Qinghai', 'wp-multisite-waas'), + 'SN' => __('Shaanxi', 'wp-multisite-waas'), + 'SD' => __('Shandong', 'wp-multisite-waas'), + 'SH' => __('Shanghai', 'wp-multisite-waas'), + 'SX' => __('Shanxi', 'wp-multisite-waas'), + 'SC' => __('Sichuan', 'wp-multisite-waas'), + 'TW' => __('Taiwan', 'wp-multisite-waas'), + 'TJ' => __('Tianjin', 'wp-multisite-waas'), + 'XJ' => __('Xinjiang', 'wp-multisite-waas'), + 'XZ' => __('Xizang', 'wp-multisite-waas'), + 'YN' => __('Yunnan', 'wp-multisite-waas'), + 'ZJ' => __('Zhejiang', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-de.php b/inc/country/class-country-de.php index 9b0a05f..c95cc96 100644 --- a/inc/country/class-country-de.php +++ b/inc/country/class-country-de.php @@ -79,7 +79,7 @@ class Country_DE extends Country { */ public function get_name() { - return __('Germany', 'wp-ultimo'); + return __('Germany', 'wp-multisite-waas'); } /** @@ -91,22 +91,22 @@ class Country_DE extends Country { protected function states() { return [ - 'BW' => __('Baden-Württemberg', 'wp-ultimo'), - 'BY' => __('Bavaria', 'wp-ultimo'), - 'BE' => __('Berlin', 'wp-ultimo'), - 'BB' => __('Brandenburg', 'wp-ultimo'), - 'HB' => __('Bremen', 'wp-ultimo'), - 'HH' => __('Hamburg', 'wp-ultimo'), - 'HE' => __('Hesse', 'wp-ultimo'), - 'NI' => __('Lower Saxony', 'wp-ultimo'), - 'MV' => __('Mecklenburg-Vorpommern', 'wp-ultimo'), - 'NW' => __('North Rhine-Westphalia', 'wp-ultimo'), - 'RP' => __('Rhineland-Palatinate', 'wp-ultimo'), - 'SL' => __('Saarland', 'wp-ultimo'), - 'SN' => __('Saxony', 'wp-ultimo'), - 'ST' => __('Saxony-Anhalt', 'wp-ultimo'), - 'SH' => __('Schleswig-Holstein', 'wp-ultimo'), - 'TH' => __('Thuringia', 'wp-ultimo'), + 'BW' => __('Baden-Württemberg', 'wp-multisite-waas'), + 'BY' => __('Bavaria', 'wp-multisite-waas'), + 'BE' => __('Berlin', 'wp-multisite-waas'), + 'BB' => __('Brandenburg', 'wp-multisite-waas'), + 'HB' => __('Bremen', 'wp-multisite-waas'), + 'HH' => __('Hamburg', 'wp-multisite-waas'), + 'HE' => __('Hesse', 'wp-multisite-waas'), + 'NI' => __('Lower Saxony', 'wp-multisite-waas'), + 'MV' => __('Mecklenburg-Vorpommern', 'wp-multisite-waas'), + 'NW' => __('North Rhine-Westphalia', 'wp-multisite-waas'), + 'RP' => __('Rhineland-Palatinate', 'wp-multisite-waas'), + 'SL' => __('Saarland', 'wp-multisite-waas'), + 'SN' => __('Saxony', 'wp-multisite-waas'), + 'ST' => __('Saxony-Anhalt', 'wp-multisite-waas'), + 'SH' => __('Schleswig-Holstein', 'wp-multisite-waas'), + 'TH' => __('Thuringia', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-es.php b/inc/country/class-country-es.php index 5e5c3cf..2fa8bb6 100644 --- a/inc/country/class-country-es.php +++ b/inc/country/class-country-es.php @@ -81,7 +81,7 @@ class Country_ES extends Country { */ public function get_name() { - return __('Spain', 'wp-ultimo'); + return __('Spain', 'wp-multisite-waas'); } /** @@ -93,34 +93,34 @@ class Country_ES extends Country { protected function states() { return [ - 'AN' => __('Andalusia', 'wp-ultimo'), - 'AR' => __('Aragon', 'wp-ultimo'), - 'AS' => __('Asturias', 'wp-ultimo'), - 'PM' => __('Balearic Islands', 'wp-ultimo'), - 'PV' => __('Basque Country', 'wp-ultimo'), - 'BU' => __('Burgos Province', 'wp-ultimo'), - 'CN' => __('Canary Islands', 'wp-ultimo'), - 'CB' => __('Cantabria', 'wp-ultimo'), - 'CL' => __('Castile and León', 'wp-ultimo'), - 'CM' => __('Castilla La Mancha', 'wp-ultimo'), - 'CT' => __('Catalonia', 'wp-ultimo'), - 'CE' => __('Ceuta', 'wp-ultimo'), - 'EX' => __('Extremadura', 'wp-ultimo'), - 'GA' => __('Galicia', 'wp-ultimo'), - 'RI' => __('La Rioja', 'wp-ultimo'), - 'LE' => __('Léon', 'wp-ultimo'), - 'MD' => __('Madrid', 'wp-ultimo'), - 'ML' => __('Melilla', 'wp-ultimo'), - 'MC' => __('Murcia', 'wp-ultimo'), - 'NC' => __('Navarra', 'wp-ultimo'), - 'P' => __('Palencia Province', 'wp-ultimo'), - 'SA' => __('Salamanca Province', 'wp-ultimo'), - 'SG' => __('Segovia Province', 'wp-ultimo'), - 'SO' => __('Soria Province', 'wp-ultimo'), - 'VC' => __('Valencia', 'wp-ultimo'), - 'VA' => __('Valladolid Province', 'wp-ultimo'), - 'ZA' => __('Zamora Province', 'wp-ultimo'), - 'AV' => __('Ávila', 'wp-ultimo'), + 'AN' => __('Andalusia', 'wp-multisite-waas'), + 'AR' => __('Aragon', 'wp-multisite-waas'), + 'AS' => __('Asturias', 'wp-multisite-waas'), + 'PM' => __('Balearic Islands', 'wp-multisite-waas'), + 'PV' => __('Basque Country', 'wp-multisite-waas'), + 'BU' => __('Burgos Province', 'wp-multisite-waas'), + 'CN' => __('Canary Islands', 'wp-multisite-waas'), + 'CB' => __('Cantabria', 'wp-multisite-waas'), + 'CL' => __('Castile and León', 'wp-multisite-waas'), + 'CM' => __('Castilla La Mancha', 'wp-multisite-waas'), + 'CT' => __('Catalonia', 'wp-multisite-waas'), + 'CE' => __('Ceuta', 'wp-multisite-waas'), + 'EX' => __('Extremadura', 'wp-multisite-waas'), + 'GA' => __('Galicia', 'wp-multisite-waas'), + 'RI' => __('La Rioja', 'wp-multisite-waas'), + 'LE' => __('Léon', 'wp-multisite-waas'), + 'MD' => __('Madrid', 'wp-multisite-waas'), + 'ML' => __('Melilla', 'wp-multisite-waas'), + 'MC' => __('Murcia', 'wp-multisite-waas'), + 'NC' => __('Navarra', 'wp-multisite-waas'), + 'P' => __('Palencia Province', 'wp-multisite-waas'), + 'SA' => __('Salamanca Province', 'wp-multisite-waas'), + 'SG' => __('Segovia Province', 'wp-multisite-waas'), + 'SO' => __('Soria Province', 'wp-multisite-waas'), + 'VC' => __('Valencia', 'wp-multisite-waas'), + 'VA' => __('Valladolid Province', 'wp-multisite-waas'), + 'ZA' => __('Zamora Province', 'wp-multisite-waas'), + 'AV' => __('Ávila', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-fr.php b/inc/country/class-country-fr.php index 41faa0e..63ac6b0 100644 --- a/inc/country/class-country-fr.php +++ b/inc/country/class-country-fr.php @@ -76,7 +76,7 @@ class Country_FR extends Country { */ public function get_name() { - return __('France', 'wp-ultimo'); + return __('France', 'wp-multisite-waas'); } /** @@ -88,129 +88,129 @@ class Country_FR extends Country { protected function states() { return [ - '10' => __('Aube', 'wp-ultimo'), - '11' => __('Aude', 'wp-ultimo'), - '12' => __('Aveyron', 'wp-ultimo'), - '13' => __('Bouches-du-Rhône', 'wp-ultimo'), - '14' => __('Calvados', 'wp-ultimo'), - '15' => __('Cantal', 'wp-ultimo'), - '16' => __('Charente', 'wp-ultimo'), - '17' => __('Charente-Maritime', 'wp-ultimo'), - '18' => __('Cher', 'wp-ultimo'), - '19' => __('Corrèze', 'wp-ultimo'), - '21' => __("Côte-d'Or", 'wp-ultimo'), - '22' => __("Côtes-d'Armor", 'wp-ultimo'), - '23' => __('Creuse', 'wp-ultimo'), - '24' => __('Dordogne', 'wp-ultimo'), - '25' => __('Doubs', 'wp-ultimo'), - '26' => __('Drôme', 'wp-ultimo'), - '27' => __('Eure', 'wp-ultimo'), - '28' => __('Eure-et-Loir', 'wp-ultimo'), - '29' => __('Finistère', 'wp-ultimo'), - '30' => __('Gard', 'wp-ultimo'), - '31' => __('Haute-Garonne', 'wp-ultimo'), - '32' => __('Gers', 'wp-ultimo'), - '33' => __('Gironde', 'wp-ultimo'), - '34' => __('Hérault', 'wp-ultimo'), - '35' => __('Ille-et-Vilaine', 'wp-ultimo'), - '36' => __('Indre', 'wp-ultimo'), - '37' => __('Indre-et-Loire', 'wp-ultimo'), - '38' => __('Isère', 'wp-ultimo'), - '39' => __('Jura', 'wp-ultimo'), - '40' => __('Landes', 'wp-ultimo'), - '41' => __('Loir-et-Cher', 'wp-ultimo'), - '42' => __('Loire', 'wp-ultimo'), - '43' => __('Haute-Loire', 'wp-ultimo'), - '44' => __('Loire-Atlantique', 'wp-ultimo'), - '45' => __('Loiret', 'wp-ultimo'), - '46' => __('Lot', 'wp-ultimo'), - '47' => __('Lot-et-Garonne', 'wp-ultimo'), - '48' => __('Lozère', 'wp-ultimo'), - '49' => __('Maine-et-Loire', 'wp-ultimo'), - '50' => __('Manche', 'wp-ultimo'), - '51' => __('Marne', 'wp-ultimo'), - '52' => __('Haute-Marne', 'wp-ultimo'), - '53' => __('Mayenne', 'wp-ultimo'), - '54' => __('Meurthe-et-Moselle', 'wp-ultimo'), - '55' => __('Meuse', 'wp-ultimo'), - '56' => __('Morbihan', 'wp-ultimo'), - '57' => __('Moselle', 'wp-ultimo'), - '58' => __('Nièvre', 'wp-ultimo'), - '59' => __('Nord', 'wp-ultimo'), - '60' => __('Oise', 'wp-ultimo'), - '61' => __('Orne', 'wp-ultimo'), - '62' => __('Pas-de-Calais', 'wp-ultimo'), - '63' => __('Puy-de-Dôme', 'wp-ultimo'), - '64' => __('Pyrénées-Atlantiques', 'wp-ultimo'), - '65' => __('Hautes-Pyrénées', 'wp-ultimo'), - '66' => __('Pyrénées-Orientales', 'wp-ultimo'), - '67' => __('Bas-Rhin', 'wp-ultimo'), - '68' => __('Haut-Rhin', 'wp-ultimo'), - '69' => __('Rhône', 'wp-ultimo'), - '70' => __('Haute-Saône', 'wp-ultimo'), - '71' => __('Saône-et-Loire', 'wp-ultimo'), - '72' => __('Sarthe', 'wp-ultimo'), - '73' => __('Savoie', 'wp-ultimo'), - '74' => __('Haute-Savoie', 'wp-ultimo'), - '76' => __('Seine-Maritime', 'wp-ultimo'), - '77' => __('Seine-et-Marne', 'wp-ultimo'), - '78' => __('Yvelines', 'wp-ultimo'), - '79' => __('Deux-Sèvres', 'wp-ultimo'), - '80' => __('Somme', 'wp-ultimo'), - '81' => __('Tarn', 'wp-ultimo'), - '82' => __('Tarn-et-Garonne', 'wp-ultimo'), - '83' => __('Var', 'wp-ultimo'), - '84' => __('Vaucluse', 'wp-ultimo'), - '85' => __('Vendée', 'wp-ultimo'), - '86' => __('Vienne', 'wp-ultimo'), - '87' => __('Haute-Vienne', 'wp-ultimo'), - '88' => __('Vosges', 'wp-ultimo'), - '89' => __('Yonne', 'wp-ultimo'), - '90' => __('Territoire de Belfort', 'wp-ultimo'), - '91' => __('Essonne', 'wp-ultimo'), - '92' => __('Hauts-de-Seine', 'wp-ultimo'), - '93' => __('Seine-Saint-Denis', 'wp-ultimo'), - '94' => __('Val-de-Marne', 'wp-ultimo'), - '95' => __("Val-d'Oise", 'wp-ultimo'), - '971' => __('Guadeloupe', 'wp-ultimo'), - '972' => __('Martinique', 'wp-ultimo'), - '973' => __('French Guiana', 'wp-ultimo'), - '974' => __('La Réunion', 'wp-ultimo'), - '976' => __('Mayotte', 'wp-ultimo'), - '01' => __('Ain', 'wp-ultimo'), - '02' => __('Aisne', 'wp-ultimo'), - '03' => __('Allier', 'wp-ultimo'), - '06' => __('Alpes-Maritimes', 'wp-ultimo'), - '04' => __('Alpes-de-Haute-Provence', 'wp-ultimo'), - '6AE' => __('Alsace', 'wp-ultimo'), - '08' => __('Ardennes', 'wp-ultimo'), - '07' => __('Ardèche', 'wp-ultimo'), - '09' => __('Ariège', 'wp-ultimo'), - 'ARA' => __('Auvergne-Rhône-Alpes', 'wp-ultimo'), - 'BFC' => __('Bourgogne-Franche-Comté', 'wp-ultimo'), - 'BRE' => __('Bretagne', 'wp-ultimo'), - 'CVL' => __('Centre-Val de Loire', 'wp-ultimo'), - 'CP' => __('Clipperton', 'wp-ultimo'), - '20R' => __('Corse', 'wp-ultimo'), - '2A' => __('Corse-du-Sud', 'wp-ultimo'), - 'PF' => __('French Polynesia', 'wp-ultimo'), - 'TF' => __('French Southern and Antarctic Lands', 'wp-ultimo'), - 'GES' => __('Grand-Est', 'wp-ultimo'), - '2B' => __('Haute-Corse', 'wp-ultimo'), - '05' => __('Hautes-Alpes', 'wp-ultimo'), - 'HDF' => __('Hauts-de-France', 'wp-ultimo'), - '69M' => __('Métropole de Lyon', 'wp-ultimo'), - 'NOR' => __('Normandie', 'wp-ultimo'), - 'NAQ' => __('Nouvelle-Aquitaine', 'wp-ultimo'), - 'OCC' => __('Occitanie', 'wp-ultimo'), - '75C' => __('Paris', 'wp-ultimo'), - 'PDL' => __('Pays-de-la-Loire', 'wp-ultimo'), - 'PAC' => __('Provence-Alpes-Côte-d’Azur', 'wp-ultimo'), - 'PM' => __('Saint Pierre and Miquelon', 'wp-ultimo'), - 'BL' => __('Saint-Barthélemy', 'wp-ultimo'), - 'MF' => __('Saint-Martin', 'wp-ultimo'), - 'WF' => __('Wallis and Futuna', 'wp-ultimo'), - 'IDF' => __('Île-de-France', 'wp-ultimo'), + '10' => __('Aube', 'wp-multisite-waas'), + '11' => __('Aude', 'wp-multisite-waas'), + '12' => __('Aveyron', 'wp-multisite-waas'), + '13' => __('Bouches-du-Rhône', 'wp-multisite-waas'), + '14' => __('Calvados', 'wp-multisite-waas'), + '15' => __('Cantal', 'wp-multisite-waas'), + '16' => __('Charente', 'wp-multisite-waas'), + '17' => __('Charente-Maritime', 'wp-multisite-waas'), + '18' => __('Cher', 'wp-multisite-waas'), + '19' => __('Corrèze', 'wp-multisite-waas'), + '21' => __("Côte-d'Or", 'wp-multisite-waas'), + '22' => __("Côtes-d'Armor", 'wp-multisite-waas'), + '23' => __('Creuse', 'wp-multisite-waas'), + '24' => __('Dordogne', 'wp-multisite-waas'), + '25' => __('Doubs', 'wp-multisite-waas'), + '26' => __('Drôme', 'wp-multisite-waas'), + '27' => __('Eure', 'wp-multisite-waas'), + '28' => __('Eure-et-Loir', 'wp-multisite-waas'), + '29' => __('Finistère', 'wp-multisite-waas'), + '30' => __('Gard', 'wp-multisite-waas'), + '31' => __('Haute-Garonne', 'wp-multisite-waas'), + '32' => __('Gers', 'wp-multisite-waas'), + '33' => __('Gironde', 'wp-multisite-waas'), + '34' => __('Hérault', 'wp-multisite-waas'), + '35' => __('Ille-et-Vilaine', 'wp-multisite-waas'), + '36' => __('Indre', 'wp-multisite-waas'), + '37' => __('Indre-et-Loire', 'wp-multisite-waas'), + '38' => __('Isère', 'wp-multisite-waas'), + '39' => __('Jura', 'wp-multisite-waas'), + '40' => __('Landes', 'wp-multisite-waas'), + '41' => __('Loir-et-Cher', 'wp-multisite-waas'), + '42' => __('Loire', 'wp-multisite-waas'), + '43' => __('Haute-Loire', 'wp-multisite-waas'), + '44' => __('Loire-Atlantique', 'wp-multisite-waas'), + '45' => __('Loiret', 'wp-multisite-waas'), + '46' => __('Lot', 'wp-multisite-waas'), + '47' => __('Lot-et-Garonne', 'wp-multisite-waas'), + '48' => __('Lozère', 'wp-multisite-waas'), + '49' => __('Maine-et-Loire', 'wp-multisite-waas'), + '50' => __('Manche', 'wp-multisite-waas'), + '51' => __('Marne', 'wp-multisite-waas'), + '52' => __('Haute-Marne', 'wp-multisite-waas'), + '53' => __('Mayenne', 'wp-multisite-waas'), + '54' => __('Meurthe-et-Moselle', 'wp-multisite-waas'), + '55' => __('Meuse', 'wp-multisite-waas'), + '56' => __('Morbihan', 'wp-multisite-waas'), + '57' => __('Moselle', 'wp-multisite-waas'), + '58' => __('Nièvre', 'wp-multisite-waas'), + '59' => __('Nord', 'wp-multisite-waas'), + '60' => __('Oise', 'wp-multisite-waas'), + '61' => __('Orne', 'wp-multisite-waas'), + '62' => __('Pas-de-Calais', 'wp-multisite-waas'), + '63' => __('Puy-de-Dôme', 'wp-multisite-waas'), + '64' => __('Pyrénées-Atlantiques', 'wp-multisite-waas'), + '65' => __('Hautes-Pyrénées', 'wp-multisite-waas'), + '66' => __('Pyrénées-Orientales', 'wp-multisite-waas'), + '67' => __('Bas-Rhin', 'wp-multisite-waas'), + '68' => __('Haut-Rhin', 'wp-multisite-waas'), + '69' => __('Rhône', 'wp-multisite-waas'), + '70' => __('Haute-Saône', 'wp-multisite-waas'), + '71' => __('Saône-et-Loire', 'wp-multisite-waas'), + '72' => __('Sarthe', 'wp-multisite-waas'), + '73' => __('Savoie', 'wp-multisite-waas'), + '74' => __('Haute-Savoie', 'wp-multisite-waas'), + '76' => __('Seine-Maritime', 'wp-multisite-waas'), + '77' => __('Seine-et-Marne', 'wp-multisite-waas'), + '78' => __('Yvelines', 'wp-multisite-waas'), + '79' => __('Deux-Sèvres', 'wp-multisite-waas'), + '80' => __('Somme', 'wp-multisite-waas'), + '81' => __('Tarn', 'wp-multisite-waas'), + '82' => __('Tarn-et-Garonne', 'wp-multisite-waas'), + '83' => __('Var', 'wp-multisite-waas'), + '84' => __('Vaucluse', 'wp-multisite-waas'), + '85' => __('Vendée', 'wp-multisite-waas'), + '86' => __('Vienne', 'wp-multisite-waas'), + '87' => __('Haute-Vienne', 'wp-multisite-waas'), + '88' => __('Vosges', 'wp-multisite-waas'), + '89' => __('Yonne', 'wp-multisite-waas'), + '90' => __('Territoire de Belfort', 'wp-multisite-waas'), + '91' => __('Essonne', 'wp-multisite-waas'), + '92' => __('Hauts-de-Seine', 'wp-multisite-waas'), + '93' => __('Seine-Saint-Denis', 'wp-multisite-waas'), + '94' => __('Val-de-Marne', 'wp-multisite-waas'), + '95' => __("Val-d'Oise", 'wp-multisite-waas'), + '971' => __('Guadeloupe', 'wp-multisite-waas'), + '972' => __('Martinique', 'wp-multisite-waas'), + '973' => __('French Guiana', 'wp-multisite-waas'), + '974' => __('La Réunion', 'wp-multisite-waas'), + '976' => __('Mayotte', 'wp-multisite-waas'), + '01' => __('Ain', 'wp-multisite-waas'), + '02' => __('Aisne', 'wp-multisite-waas'), + '03' => __('Allier', 'wp-multisite-waas'), + '06' => __('Alpes-Maritimes', 'wp-multisite-waas'), + '04' => __('Alpes-de-Haute-Provence', 'wp-multisite-waas'), + '6AE' => __('Alsace', 'wp-multisite-waas'), + '08' => __('Ardennes', 'wp-multisite-waas'), + '07' => __('Ardèche', 'wp-multisite-waas'), + '09' => __('Ariège', 'wp-multisite-waas'), + 'ARA' => __('Auvergne-Rhône-Alpes', 'wp-multisite-waas'), + 'BFC' => __('Bourgogne-Franche-Comté', 'wp-multisite-waas'), + 'BRE' => __('Bretagne', 'wp-multisite-waas'), + 'CVL' => __('Centre-Val de Loire', 'wp-multisite-waas'), + 'CP' => __('Clipperton', 'wp-multisite-waas'), + '20R' => __('Corse', 'wp-multisite-waas'), + '2A' => __('Corse-du-Sud', 'wp-multisite-waas'), + 'PF' => __('French Polynesia', 'wp-multisite-waas'), + 'TF' => __('French Southern and Antarctic Lands', 'wp-multisite-waas'), + 'GES' => __('Grand-Est', 'wp-multisite-waas'), + '2B' => __('Haute-Corse', 'wp-multisite-waas'), + '05' => __('Hautes-Alpes', 'wp-multisite-waas'), + 'HDF' => __('Hauts-de-France', 'wp-multisite-waas'), + '69M' => __('Métropole de Lyon', 'wp-multisite-waas'), + 'NOR' => __('Normandie', 'wp-multisite-waas'), + 'NAQ' => __('Nouvelle-Aquitaine', 'wp-multisite-waas'), + 'OCC' => __('Occitanie', 'wp-multisite-waas'), + '75C' => __('Paris', 'wp-multisite-waas'), + 'PDL' => __('Pays-de-la-Loire', 'wp-multisite-waas'), + 'PAC' => __('Provence-Alpes-Côte-d’Azur', 'wp-multisite-waas'), + 'PM' => __('Saint Pierre and Miquelon', 'wp-multisite-waas'), + 'BL' => __('Saint-Barthélemy', 'wp-multisite-waas'), + 'MF' => __('Saint-Martin', 'wp-multisite-waas'), + 'WF' => __('Wallis and Futuna', 'wp-multisite-waas'), + 'IDF' => __('Île-de-France', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-gb.php b/inc/country/class-country-gb.php index e35d084..b3071bd 100644 --- a/inc/country/class-country-gb.php +++ b/inc/country/class-country-gb.php @@ -67,7 +67,7 @@ class Country_GB extends Country { */ public function get_name() { - return __('United Kingdom', 'wp-ultimo'); + return __('United Kingdom', 'wp-multisite-waas'); } /** @@ -79,253 +79,253 @@ class Country_GB extends Country { protected function states() { return [ - 'ABE' => __('Aberdeen', 'wp-ultimo'), - 'ABD' => __('Aberdeenshire', 'wp-ultimo'), - 'ANS' => __('Angus', 'wp-ultimo'), - 'ANT' => __('Antrim', 'wp-ultimo'), - 'ANN' => __('Antrim and Newtownabbey', 'wp-ultimo'), - 'ARD' => __('Ards', 'wp-ultimo'), - 'AND' => __('Ards and North Down', 'wp-ultimo'), - 'AGB' => __('Argyll and Bute', 'wp-ultimo'), - 'ARM' => __('Armagh City and District Council', 'wp-ultimo'), - 'ABC' => __('Armagh, Banbridge and Craigavon', 'wp-ultimo'), - 'SH-AC' => __('Ascension Island', 'wp-ultimo'), - 'BLA' => __('Ballymena Borough', 'wp-ultimo'), - 'BLY' => __('Ballymoney', 'wp-ultimo'), - 'BNB' => __('Banbridge', 'wp-ultimo'), - 'BNS' => __('Barnsley', 'wp-ultimo'), - 'BAS' => __('Bath and North East Somerset', 'wp-ultimo'), - 'BDF' => __('Bedford', 'wp-ultimo'), - 'BFS' => __('Belfast district', 'wp-ultimo'), - 'BIR' => __('Birmingham', 'wp-ultimo'), - 'BBD' => __('Blackburn with Darwen', 'wp-ultimo'), - 'BPL' => __('Blackpool', 'wp-ultimo'), - 'BGW' => __('Blaenau Gwent County Borough', 'wp-ultimo'), - 'BOL' => __('Bolton', 'wp-ultimo'), - 'BMH' => __('Bournemouth', 'wp-ultimo'), - 'BRC' => __('Bracknell Forest', 'wp-ultimo'), - 'BRD' => __('Bradford', 'wp-ultimo'), - 'BGE' => __('Bridgend County Borough', 'wp-ultimo'), - 'BNH' => __('Brighton and Hove', 'wp-ultimo'), - 'BKM' => __('Buckinghamshire', 'wp-ultimo'), - 'BUR' => __('Bury', 'wp-ultimo'), - 'CAY' => __('Caerphilly County Borough', 'wp-ultimo'), - 'CLD' => __('Calderdale', 'wp-ultimo'), - 'CAM' => __('Cambridgeshire', 'wp-ultimo'), - 'CMN' => __('Carmarthenshire', 'wp-ultimo'), - 'CKF' => __('Carrickfergus Borough Council', 'wp-ultimo'), - 'CSR' => __('Castlereagh', 'wp-ultimo'), - 'CCG' => __('Causeway Coast and Glens', 'wp-ultimo'), - 'CBF' => __('Central Bedfordshire', 'wp-ultimo'), - 'CGN' => __('Ceredigion', 'wp-ultimo'), - 'CHE' => __('Cheshire East', 'wp-ultimo'), - 'CHW' => __('Cheshire West and Chester', 'wp-ultimo'), - 'CRF' => __('City and County of Cardiff', 'wp-ultimo'), - 'SWA' => __('City and County of Swansea', 'wp-ultimo'), - 'BST' => __('City of Bristol', 'wp-ultimo'), - 'DER' => __('City of Derby', 'wp-ultimo'), - 'KHL' => __('City of Kingston upon Hull', 'wp-ultimo'), - 'LCE' => __('City of Leicester', 'wp-ultimo'), - 'LND' => __('City of London', 'wp-ultimo'), - 'NGM' => __('City of Nottingham', 'wp-ultimo'), - 'PTE' => __('City of Peterborough', 'wp-ultimo'), - 'PLY' => __('City of Plymouth', 'wp-ultimo'), - 'POR' => __('City of Portsmouth', 'wp-ultimo'), - 'STH' => __('City of Southampton', 'wp-ultimo'), - 'STE' => __('City of Stoke-on-Trent', 'wp-ultimo'), - 'SND' => __('City of Sunderland', 'wp-ultimo'), - 'WSM' => __('City of Westminster', 'wp-ultimo'), - 'WLV' => __('City of Wolverhampton', 'wp-ultimo'), - 'YOR' => __('City of York', 'wp-ultimo'), - 'CLK' => __('Clackmannanshire', 'wp-ultimo'), - 'CLR' => __('Coleraine Borough Council', 'wp-ultimo'), - 'CWY' => __('Conwy County Borough', 'wp-ultimo'), - 'CKT' => __('Cookstown District Council', 'wp-ultimo'), - 'CON' => __('Cornwall', 'wp-ultimo'), - 'DUR' => __('County Durham', 'wp-ultimo'), - 'COV' => __('Coventry', 'wp-ultimo'), - 'CGV' => __('Craigavon Borough Council', 'wp-ultimo'), - 'CMA' => __('Cumbria', 'wp-ultimo'), - 'DAL' => __('Darlington', 'wp-ultimo'), - 'DEN' => __('Denbighshire', 'wp-ultimo'), - 'DBY' => __('Derbyshire', 'wp-ultimo'), - 'DRY' => __('Derry City Council', 'wp-ultimo'), - 'DRS' => __('Derry City and Strabane', 'wp-ultimo'), - 'DEV' => __('Devon', 'wp-ultimo'), - 'DNC' => __('Doncaster', 'wp-ultimo'), - 'DOR' => __('Dorset', 'wp-ultimo'), - 'DOW' => __('Down District Council', 'wp-ultimo'), - 'DUD' => __('Dudley', 'wp-ultimo'), - 'DGY' => __('Dumfries and Galloway', 'wp-ultimo'), - 'DND' => __('Dundee', 'wp-ultimo'), - 'DGN' => __('Dungannon and South Tyrone Borough Council', 'wp-ultimo'), - 'EAY' => __('East Ayrshire', 'wp-ultimo'), - 'EDU' => __('East Dunbartonshire', 'wp-ultimo'), - 'ELN' => __('East Lothian', 'wp-ultimo'), - 'ERW' => __('East Renfrewshire', 'wp-ultimo'), - 'ERY' => __('East Riding of Yorkshire', 'wp-ultimo'), - 'ESX' => __('East Sussex', 'wp-ultimo'), - 'EDH' => __('Edinburgh', 'wp-ultimo'), - 'ENG' => __('England', 'wp-ultimo'), - 'ESS' => __('Essex', 'wp-ultimo'), - 'FAL' => __('Falkirk', 'wp-ultimo'), - 'FER' => __('Fermanagh District Council', 'wp-ultimo'), - 'FMO' => __('Fermanagh and Omagh', 'wp-ultimo'), - 'FIF' => __('Fife', 'wp-ultimo'), - 'FLN' => __('Flintshire', 'wp-ultimo'), - 'GAT' => __('Gateshead', 'wp-ultimo'), - 'GLG' => __('Glasgow', 'wp-ultimo'), - 'GLS' => __('Gloucestershire', 'wp-ultimo'), - 'GWN' => __('Gwynedd', 'wp-ultimo'), - 'HAL' => __('Halton', 'wp-ultimo'), - 'HAM' => __('Hampshire', 'wp-ultimo'), - 'HPL' => __('Hartlepool', 'wp-ultimo'), - 'HEF' => __('Herefordshire', 'wp-ultimo'), - 'HRT' => __('Hertfordshire', 'wp-ultimo'), - 'HLD' => __('Highland', 'wp-ultimo'), - 'IVC' => __('Inverclyde', 'wp-ultimo'), - 'IOW' => __('Isle of Wight', 'wp-ultimo'), - 'IOS' => __('Isles of Scilly', 'wp-ultimo'), - 'KEN' => __('Kent', 'wp-ultimo'), - 'KIR' => __('Kirklees', 'wp-ultimo'), - 'KWL' => __('Knowsley', 'wp-ultimo'), - 'LAN' => __('Lancashire', 'wp-ultimo'), - 'LRN' => __('Larne Borough Council', 'wp-ultimo'), - 'LDS' => __('Leeds', 'wp-ultimo'), - 'LEC' => __('Leicestershire', 'wp-ultimo'), - 'LMV' => __('Limavady Borough Council', 'wp-ultimo'), - 'LIN' => __('Lincolnshire', 'wp-ultimo'), - 'LSB' => __('Lisburn City Council', 'wp-ultimo'), - 'LBC' => __('Lisburn and Castlereagh', 'wp-ultimo'), - 'LIV' => __('Liverpool', 'wp-ultimo'), - 'BDG' => __('London Borough of Barking and Dagenham', 'wp-ultimo'), - 'BNE' => __('London Borough of Barnet', 'wp-ultimo'), - 'BEX' => __('London Borough of Bexley', 'wp-ultimo'), - 'BEN' => __('London Borough of Brent', 'wp-ultimo'), - 'BRY' => __('London Borough of Bromley', 'wp-ultimo'), - 'CMD' => __('London Borough of Camden', 'wp-ultimo'), - 'CRY' => __('London Borough of Croydon', 'wp-ultimo'), - 'EAL' => __('London Borough of Ealing', 'wp-ultimo'), - 'ENF' => __('London Borough of Enfield', 'wp-ultimo'), - 'HCK' => __('London Borough of Hackney', 'wp-ultimo'), - 'HMF' => __('London Borough of Hammersmith and Fulham', 'wp-ultimo'), - 'HRY' => __('London Borough of Haringey', 'wp-ultimo'), - 'HRW' => __('London Borough of Harrow', 'wp-ultimo'), - 'HAV' => __('London Borough of Havering', 'wp-ultimo'), - 'HIL' => __('London Borough of Hillingdon', 'wp-ultimo'), - 'HNS' => __('London Borough of Hounslow', 'wp-ultimo'), - 'ISL' => __('London Borough of Islington', 'wp-ultimo'), - 'LBH' => __('London Borough of Lambeth', 'wp-ultimo'), - 'LEW' => __('London Borough of Lewisham', 'wp-ultimo'), - 'MRT' => __('London Borough of Merton', 'wp-ultimo'), - 'NWM' => __('London Borough of Newham', 'wp-ultimo'), - 'RDB' => __('London Borough of Redbridge', 'wp-ultimo'), - 'RIC' => __('London Borough of Richmond upon Thames', 'wp-ultimo'), - 'SWK' => __('London Borough of Southwark', 'wp-ultimo'), - 'STN' => __('London Borough of Sutton', 'wp-ultimo'), - 'TWH' => __('London Borough of Tower Hamlets', 'wp-ultimo'), - 'WFT' => __('London Borough of Waltham Forest', 'wp-ultimo'), - 'WND' => __('London Borough of Wandsworth', 'wp-ultimo'), - 'MFT' => __('Magherafelt District Council', 'wp-ultimo'), - 'MAN' => __('Manchester', 'wp-ultimo'), - 'MDW' => __('Medway', 'wp-ultimo'), - 'MTY' => __('Merthyr Tydfil County Borough', 'wp-ultimo'), - 'WGN' => __('Metropolitan Borough of Wigan', 'wp-ultimo'), - 'MUL' => __('Mid Ulster', 'wp-ultimo'), - 'MEA' => __('Mid and East Antrim', 'wp-ultimo'), - 'MDB' => __('Middlesbrough', 'wp-ultimo'), - 'MLN' => __('Midlothian', 'wp-ultimo'), - 'MIK' => __('Milton Keynes', 'wp-ultimo'), - 'MON' => __('Monmouthshire', 'wp-ultimo'), - 'MRY' => __('Moray', 'wp-ultimo'), - 'MYL' => __('Moyle District Council', 'wp-ultimo'), - 'NTL' => __('Neath Port Talbot County Borough', 'wp-ultimo'), - 'NET' => __('Newcastle upon Tyne', 'wp-ultimo'), - 'NWP' => __('Newport', 'wp-ultimo'), - 'NYM' => __('Newry and Mourne District Council', 'wp-ultimo'), - 'NMD' => __('Newry, Mourne and Down', 'wp-ultimo'), - 'NTA' => __('Newtownabbey Borough Council', 'wp-ultimo'), - 'NFK' => __('Norfolk', 'wp-ultimo'), - 'NAY' => __('North Ayrshire', 'wp-ultimo'), - 'NDN' => __('North Down Borough Council', 'wp-ultimo'), - 'NEL' => __('North East Lincolnshire', 'wp-ultimo'), - 'NLK' => __('North Lanarkshire', 'wp-ultimo'), - 'NLN' => __('North Lincolnshire', 'wp-ultimo'), - 'NSM' => __('North Somerset', 'wp-ultimo'), - 'NTY' => __('North Tyneside', 'wp-ultimo'), - 'NYK' => __('North Yorkshire', 'wp-ultimo'), - 'NTH' => __('Northamptonshire', 'wp-ultimo'), - 'NIR' => __('Northern Ireland', 'wp-ultimo'), - 'NBL' => __('Northumberland', 'wp-ultimo'), - 'NTT' => __('Nottinghamshire', 'wp-ultimo'), - 'OLD' => __('Oldham', 'wp-ultimo'), - 'OMH' => __('Omagh District Council', 'wp-ultimo'), - 'ORK' => __('Orkney Islands', 'wp-ultimo'), - 'ELS' => __('Outer Hebrides', 'wp-ultimo'), - 'OXF' => __('Oxfordshire', 'wp-ultimo'), - 'PEM' => __('Pembrokeshire', 'wp-ultimo'), - 'PKN' => __('Perth and Kinross', 'wp-ultimo'), - 'POL' => __('Poole', 'wp-ultimo'), - 'POW' => __('Powys', 'wp-ultimo'), - 'RDG' => __('Reading', 'wp-ultimo'), - 'RCC' => __('Redcar and Cleveland', 'wp-ultimo'), - 'RFW' => __('Renfrewshire', 'wp-ultimo'), - 'RCT' => __('Rhondda Cynon Taf', 'wp-ultimo'), - 'RCH' => __('Rochdale', 'wp-ultimo'), - 'ROT' => __('Rotherham', 'wp-ultimo'), - 'GRE' => __('Royal Borough of Greenwich', 'wp-ultimo'), - 'KEC' => __('Royal Borough of Kensington and Chelsea', 'wp-ultimo'), - 'KTT' => __('Royal Borough of Kingston upon Thames', 'wp-ultimo'), - 'RUT' => __('Rutland', 'wp-ultimo'), - 'SH-HL' => __('Saint Helena', 'wp-ultimo'), - 'SLF' => __('Salford', 'wp-ultimo'), - 'SAW' => __('Sandwell', 'wp-ultimo'), - 'SCT' => __('Scotland', 'wp-ultimo'), - 'SCB' => __('Scottish Borders', 'wp-ultimo'), - 'SFT' => __('Sefton', 'wp-ultimo'), - 'SHF' => __('Sheffield', 'wp-ultimo'), - 'ZET' => __('Shetland Islands', 'wp-ultimo'), - 'SHR' => __('Shropshire', 'wp-ultimo'), - 'SLG' => __('Slough', 'wp-ultimo'), - 'SOL' => __('Solihull', 'wp-ultimo'), - 'SOM' => __('Somerset', 'wp-ultimo'), - 'SAY' => __('South Ayrshire', 'wp-ultimo'), - 'SGC' => __('South Gloucestershire', 'wp-ultimo'), - 'SLK' => __('South Lanarkshire', 'wp-ultimo'), - 'STY' => __('South Tyneside', 'wp-ultimo'), - 'SOS' => __('Southend-on-Sea', 'wp-ultimo'), - 'SHN' => __('St Helens', 'wp-ultimo'), - 'STS' => __('Staffordshire', 'wp-ultimo'), - 'STG' => __('Stirling', 'wp-ultimo'), - 'SKP' => __('Stockport', 'wp-ultimo'), - 'STT' => __('Stockton-on-Tees', 'wp-ultimo'), - 'STB' => __('Strabane District Council', 'wp-ultimo'), - 'SFK' => __('Suffolk', 'wp-ultimo'), - 'SRY' => __('Surrey', 'wp-ultimo'), - 'SWD' => __('Swindon', 'wp-ultimo'), - 'TAM' => __('Tameside', 'wp-ultimo'), - 'TFW' => __('Telford and Wrekin', 'wp-ultimo'), - 'THR' => __('Thurrock', 'wp-ultimo'), - 'TOB' => __('Torbay', 'wp-ultimo'), - 'TOF' => __('Torfaen', 'wp-ultimo'), - 'TRF' => __('Trafford', 'wp-ultimo'), - 'UKM' => __('United Kingdom', 'wp-ultimo'), - 'VGL' => __('Vale of Glamorgan', 'wp-ultimo'), - 'WKF' => __('Wakefield', 'wp-ultimo'), - 'WLS' => __('Wales', 'wp-ultimo'), - 'WLL' => __('Walsall', 'wp-ultimo'), - 'WRT' => __('Warrington', 'wp-ultimo'), - 'WAR' => __('Warwickshire', 'wp-ultimo'), - 'WBK' => __('West Berkshire', 'wp-ultimo'), - 'WDU' => __('West Dunbartonshire', 'wp-ultimo'), - 'WLN' => __('West Lothian', 'wp-ultimo'), - 'WSX' => __('West Sussex', 'wp-ultimo'), - 'WIL' => __('Wiltshire', 'wp-ultimo'), - 'WNM' => __('Windsor and Maidenhead', 'wp-ultimo'), - 'WRL' => __('Wirral', 'wp-ultimo'), - 'WOK' => __('Wokingham', 'wp-ultimo'), - 'WOR' => __('Worcestershire', 'wp-ultimo'), - 'WRX' => __('Wrexham County Borough', 'wp-ultimo'), + 'ABE' => __('Aberdeen', 'wp-multisite-waas'), + 'ABD' => __('Aberdeenshire', 'wp-multisite-waas'), + 'ANS' => __('Angus', 'wp-multisite-waas'), + 'ANT' => __('Antrim', 'wp-multisite-waas'), + 'ANN' => __('Antrim and Newtownabbey', 'wp-multisite-waas'), + 'ARD' => __('Ards', 'wp-multisite-waas'), + 'AND' => __('Ards and North Down', 'wp-multisite-waas'), + 'AGB' => __('Argyll and Bute', 'wp-multisite-waas'), + 'ARM' => __('Armagh City and District Council', 'wp-multisite-waas'), + 'ABC' => __('Armagh, Banbridge and Craigavon', 'wp-multisite-waas'), + 'SH-AC' => __('Ascension Island', 'wp-multisite-waas'), + 'BLA' => __('Ballymena Borough', 'wp-multisite-waas'), + 'BLY' => __('Ballymoney', 'wp-multisite-waas'), + 'BNB' => __('Banbridge', 'wp-multisite-waas'), + 'BNS' => __('Barnsley', 'wp-multisite-waas'), + 'BAS' => __('Bath and North East Somerset', 'wp-multisite-waas'), + 'BDF' => __('Bedford', 'wp-multisite-waas'), + 'BFS' => __('Belfast district', 'wp-multisite-waas'), + 'BIR' => __('Birmingham', 'wp-multisite-waas'), + 'BBD' => __('Blackburn with Darwen', 'wp-multisite-waas'), + 'BPL' => __('Blackpool', 'wp-multisite-waas'), + 'BGW' => __('Blaenau Gwent County Borough', 'wp-multisite-waas'), + 'BOL' => __('Bolton', 'wp-multisite-waas'), + 'BMH' => __('Bournemouth', 'wp-multisite-waas'), + 'BRC' => __('Bracknell Forest', 'wp-multisite-waas'), + 'BRD' => __('Bradford', 'wp-multisite-waas'), + 'BGE' => __('Bridgend County Borough', 'wp-multisite-waas'), + 'BNH' => __('Brighton and Hove', 'wp-multisite-waas'), + 'BKM' => __('Buckinghamshire', 'wp-multisite-waas'), + 'BUR' => __('Bury', 'wp-multisite-waas'), + 'CAY' => __('Caerphilly County Borough', 'wp-multisite-waas'), + 'CLD' => __('Calderdale', 'wp-multisite-waas'), + 'CAM' => __('Cambridgeshire', 'wp-multisite-waas'), + 'CMN' => __('Carmarthenshire', 'wp-multisite-waas'), + 'CKF' => __('Carrickfergus Borough Council', 'wp-multisite-waas'), + 'CSR' => __('Castlereagh', 'wp-multisite-waas'), + 'CCG' => __('Causeway Coast and Glens', 'wp-multisite-waas'), + 'CBF' => __('Central Bedfordshire', 'wp-multisite-waas'), + 'CGN' => __('Ceredigion', 'wp-multisite-waas'), + 'CHE' => __('Cheshire East', 'wp-multisite-waas'), + 'CHW' => __('Cheshire West and Chester', 'wp-multisite-waas'), + 'CRF' => __('City and County of Cardiff', 'wp-multisite-waas'), + 'SWA' => __('City and County of Swansea', 'wp-multisite-waas'), + 'BST' => __('City of Bristol', 'wp-multisite-waas'), + 'DER' => __('City of Derby', 'wp-multisite-waas'), + 'KHL' => __('City of Kingston upon Hull', 'wp-multisite-waas'), + 'LCE' => __('City of Leicester', 'wp-multisite-waas'), + 'LND' => __('City of London', 'wp-multisite-waas'), + 'NGM' => __('City of Nottingham', 'wp-multisite-waas'), + 'PTE' => __('City of Peterborough', 'wp-multisite-waas'), + 'PLY' => __('City of Plymouth', 'wp-multisite-waas'), + 'POR' => __('City of Portsmouth', 'wp-multisite-waas'), + 'STH' => __('City of Southampton', 'wp-multisite-waas'), + 'STE' => __('City of Stoke-on-Trent', 'wp-multisite-waas'), + 'SND' => __('City of Sunderland', 'wp-multisite-waas'), + 'WSM' => __('City of Westminster', 'wp-multisite-waas'), + 'WLV' => __('City of Wolverhampton', 'wp-multisite-waas'), + 'YOR' => __('City of York', 'wp-multisite-waas'), + 'CLK' => __('Clackmannanshire', 'wp-multisite-waas'), + 'CLR' => __('Coleraine Borough Council', 'wp-multisite-waas'), + 'CWY' => __('Conwy County Borough', 'wp-multisite-waas'), + 'CKT' => __('Cookstown District Council', 'wp-multisite-waas'), + 'CON' => __('Cornwall', 'wp-multisite-waas'), + 'DUR' => __('County Durham', 'wp-multisite-waas'), + 'COV' => __('Coventry', 'wp-multisite-waas'), + 'CGV' => __('Craigavon Borough Council', 'wp-multisite-waas'), + 'CMA' => __('Cumbria', 'wp-multisite-waas'), + 'DAL' => __('Darlington', 'wp-multisite-waas'), + 'DEN' => __('Denbighshire', 'wp-multisite-waas'), + 'DBY' => __('Derbyshire', 'wp-multisite-waas'), + 'DRY' => __('Derry City Council', 'wp-multisite-waas'), + 'DRS' => __('Derry City and Strabane', 'wp-multisite-waas'), + 'DEV' => __('Devon', 'wp-multisite-waas'), + 'DNC' => __('Doncaster', 'wp-multisite-waas'), + 'DOR' => __('Dorset', 'wp-multisite-waas'), + 'DOW' => __('Down District Council', 'wp-multisite-waas'), + 'DUD' => __('Dudley', 'wp-multisite-waas'), + 'DGY' => __('Dumfries and Galloway', 'wp-multisite-waas'), + 'DND' => __('Dundee', 'wp-multisite-waas'), + 'DGN' => __('Dungannon and South Tyrone Borough Council', 'wp-multisite-waas'), + 'EAY' => __('East Ayrshire', 'wp-multisite-waas'), + 'EDU' => __('East Dunbartonshire', 'wp-multisite-waas'), + 'ELN' => __('East Lothian', 'wp-multisite-waas'), + 'ERW' => __('East Renfrewshire', 'wp-multisite-waas'), + 'ERY' => __('East Riding of Yorkshire', 'wp-multisite-waas'), + 'ESX' => __('East Sussex', 'wp-multisite-waas'), + 'EDH' => __('Edinburgh', 'wp-multisite-waas'), + 'ENG' => __('England', 'wp-multisite-waas'), + 'ESS' => __('Essex', 'wp-multisite-waas'), + 'FAL' => __('Falkirk', 'wp-multisite-waas'), + 'FER' => __('Fermanagh District Council', 'wp-multisite-waas'), + 'FMO' => __('Fermanagh and Omagh', 'wp-multisite-waas'), + 'FIF' => __('Fife', 'wp-multisite-waas'), + 'FLN' => __('Flintshire', 'wp-multisite-waas'), + 'GAT' => __('Gateshead', 'wp-multisite-waas'), + 'GLG' => __('Glasgow', 'wp-multisite-waas'), + 'GLS' => __('Gloucestershire', 'wp-multisite-waas'), + 'GWN' => __('Gwynedd', 'wp-multisite-waas'), + 'HAL' => __('Halton', 'wp-multisite-waas'), + 'HAM' => __('Hampshire', 'wp-multisite-waas'), + 'HPL' => __('Hartlepool', 'wp-multisite-waas'), + 'HEF' => __('Herefordshire', 'wp-multisite-waas'), + 'HRT' => __('Hertfordshire', 'wp-multisite-waas'), + 'HLD' => __('Highland', 'wp-multisite-waas'), + 'IVC' => __('Inverclyde', 'wp-multisite-waas'), + 'IOW' => __('Isle of Wight', 'wp-multisite-waas'), + 'IOS' => __('Isles of Scilly', 'wp-multisite-waas'), + 'KEN' => __('Kent', 'wp-multisite-waas'), + 'KIR' => __('Kirklees', 'wp-multisite-waas'), + 'KWL' => __('Knowsley', 'wp-multisite-waas'), + 'LAN' => __('Lancashire', 'wp-multisite-waas'), + 'LRN' => __('Larne Borough Council', 'wp-multisite-waas'), + 'LDS' => __('Leeds', 'wp-multisite-waas'), + 'LEC' => __('Leicestershire', 'wp-multisite-waas'), + 'LMV' => __('Limavady Borough Council', 'wp-multisite-waas'), + 'LIN' => __('Lincolnshire', 'wp-multisite-waas'), + 'LSB' => __('Lisburn City Council', 'wp-multisite-waas'), + 'LBC' => __('Lisburn and Castlereagh', 'wp-multisite-waas'), + 'LIV' => __('Liverpool', 'wp-multisite-waas'), + 'BDG' => __('London Borough of Barking and Dagenham', 'wp-multisite-waas'), + 'BNE' => __('London Borough of Barnet', 'wp-multisite-waas'), + 'BEX' => __('London Borough of Bexley', 'wp-multisite-waas'), + 'BEN' => __('London Borough of Brent', 'wp-multisite-waas'), + 'BRY' => __('London Borough of Bromley', 'wp-multisite-waas'), + 'CMD' => __('London Borough of Camden', 'wp-multisite-waas'), + 'CRY' => __('London Borough of Croydon', 'wp-multisite-waas'), + 'EAL' => __('London Borough of Ealing', 'wp-multisite-waas'), + 'ENF' => __('London Borough of Enfield', 'wp-multisite-waas'), + 'HCK' => __('London Borough of Hackney', 'wp-multisite-waas'), + 'HMF' => __('London Borough of Hammersmith and Fulham', 'wp-multisite-waas'), + 'HRY' => __('London Borough of Haringey', 'wp-multisite-waas'), + 'HRW' => __('London Borough of Harrow', 'wp-multisite-waas'), + 'HAV' => __('London Borough of Havering', 'wp-multisite-waas'), + 'HIL' => __('London Borough of Hillingdon', 'wp-multisite-waas'), + 'HNS' => __('London Borough of Hounslow', 'wp-multisite-waas'), + 'ISL' => __('London Borough of Islington', 'wp-multisite-waas'), + 'LBH' => __('London Borough of Lambeth', 'wp-multisite-waas'), + 'LEW' => __('London Borough of Lewisham', 'wp-multisite-waas'), + 'MRT' => __('London Borough of Merton', 'wp-multisite-waas'), + 'NWM' => __('London Borough of Newham', 'wp-multisite-waas'), + 'RDB' => __('London Borough of Redbridge', 'wp-multisite-waas'), + 'RIC' => __('London Borough of Richmond upon Thames', 'wp-multisite-waas'), + 'SWK' => __('London Borough of Southwark', 'wp-multisite-waas'), + 'STN' => __('London Borough of Sutton', 'wp-multisite-waas'), + 'TWH' => __('London Borough of Tower Hamlets', 'wp-multisite-waas'), + 'WFT' => __('London Borough of Waltham Forest', 'wp-multisite-waas'), + 'WND' => __('London Borough of Wandsworth', 'wp-multisite-waas'), + 'MFT' => __('Magherafelt District Council', 'wp-multisite-waas'), + 'MAN' => __('Manchester', 'wp-multisite-waas'), + 'MDW' => __('Medway', 'wp-multisite-waas'), + 'MTY' => __('Merthyr Tydfil County Borough', 'wp-multisite-waas'), + 'WGN' => __('Metropolitan Borough of Wigan', 'wp-multisite-waas'), + 'MUL' => __('Mid Ulster', 'wp-multisite-waas'), + 'MEA' => __('Mid and East Antrim', 'wp-multisite-waas'), + 'MDB' => __('Middlesbrough', 'wp-multisite-waas'), + 'MLN' => __('Midlothian', 'wp-multisite-waas'), + 'MIK' => __('Milton Keynes', 'wp-multisite-waas'), + 'MON' => __('Monmouthshire', 'wp-multisite-waas'), + 'MRY' => __('Moray', 'wp-multisite-waas'), + 'MYL' => __('Moyle District Council', 'wp-multisite-waas'), + 'NTL' => __('Neath Port Talbot County Borough', 'wp-multisite-waas'), + 'NET' => __('Newcastle upon Tyne', 'wp-multisite-waas'), + 'NWP' => __('Newport', 'wp-multisite-waas'), + 'NYM' => __('Newry and Mourne District Council', 'wp-multisite-waas'), + 'NMD' => __('Newry, Mourne and Down', 'wp-multisite-waas'), + 'NTA' => __('Newtownabbey Borough Council', 'wp-multisite-waas'), + 'NFK' => __('Norfolk', 'wp-multisite-waas'), + 'NAY' => __('North Ayrshire', 'wp-multisite-waas'), + 'NDN' => __('North Down Borough Council', 'wp-multisite-waas'), + 'NEL' => __('North East Lincolnshire', 'wp-multisite-waas'), + 'NLK' => __('North Lanarkshire', 'wp-multisite-waas'), + 'NLN' => __('North Lincolnshire', 'wp-multisite-waas'), + 'NSM' => __('North Somerset', 'wp-multisite-waas'), + 'NTY' => __('North Tyneside', 'wp-multisite-waas'), + 'NYK' => __('North Yorkshire', 'wp-multisite-waas'), + 'NTH' => __('Northamptonshire', 'wp-multisite-waas'), + 'NIR' => __('Northern Ireland', 'wp-multisite-waas'), + 'NBL' => __('Northumberland', 'wp-multisite-waas'), + 'NTT' => __('Nottinghamshire', 'wp-multisite-waas'), + 'OLD' => __('Oldham', 'wp-multisite-waas'), + 'OMH' => __('Omagh District Council', 'wp-multisite-waas'), + 'ORK' => __('Orkney Islands', 'wp-multisite-waas'), + 'ELS' => __('Outer Hebrides', 'wp-multisite-waas'), + 'OXF' => __('Oxfordshire', 'wp-multisite-waas'), + 'PEM' => __('Pembrokeshire', 'wp-multisite-waas'), + 'PKN' => __('Perth and Kinross', 'wp-multisite-waas'), + 'POL' => __('Poole', 'wp-multisite-waas'), + 'POW' => __('Powys', 'wp-multisite-waas'), + 'RDG' => __('Reading', 'wp-multisite-waas'), + 'RCC' => __('Redcar and Cleveland', 'wp-multisite-waas'), + 'RFW' => __('Renfrewshire', 'wp-multisite-waas'), + 'RCT' => __('Rhondda Cynon Taf', 'wp-multisite-waas'), + 'RCH' => __('Rochdale', 'wp-multisite-waas'), + 'ROT' => __('Rotherham', 'wp-multisite-waas'), + 'GRE' => __('Royal Borough of Greenwich', 'wp-multisite-waas'), + 'KEC' => __('Royal Borough of Kensington and Chelsea', 'wp-multisite-waas'), + 'KTT' => __('Royal Borough of Kingston upon Thames', 'wp-multisite-waas'), + 'RUT' => __('Rutland', 'wp-multisite-waas'), + 'SH-HL' => __('Saint Helena', 'wp-multisite-waas'), + 'SLF' => __('Salford', 'wp-multisite-waas'), + 'SAW' => __('Sandwell', 'wp-multisite-waas'), + 'SCT' => __('Scotland', 'wp-multisite-waas'), + 'SCB' => __('Scottish Borders', 'wp-multisite-waas'), + 'SFT' => __('Sefton', 'wp-multisite-waas'), + 'SHF' => __('Sheffield', 'wp-multisite-waas'), + 'ZET' => __('Shetland Islands', 'wp-multisite-waas'), + 'SHR' => __('Shropshire', 'wp-multisite-waas'), + 'SLG' => __('Slough', 'wp-multisite-waas'), + 'SOL' => __('Solihull', 'wp-multisite-waas'), + 'SOM' => __('Somerset', 'wp-multisite-waas'), + 'SAY' => __('South Ayrshire', 'wp-multisite-waas'), + 'SGC' => __('South Gloucestershire', 'wp-multisite-waas'), + 'SLK' => __('South Lanarkshire', 'wp-multisite-waas'), + 'STY' => __('South Tyneside', 'wp-multisite-waas'), + 'SOS' => __('Southend-on-Sea', 'wp-multisite-waas'), + 'SHN' => __('St Helens', 'wp-multisite-waas'), + 'STS' => __('Staffordshire', 'wp-multisite-waas'), + 'STG' => __('Stirling', 'wp-multisite-waas'), + 'SKP' => __('Stockport', 'wp-multisite-waas'), + 'STT' => __('Stockton-on-Tees', 'wp-multisite-waas'), + 'STB' => __('Strabane District Council', 'wp-multisite-waas'), + 'SFK' => __('Suffolk', 'wp-multisite-waas'), + 'SRY' => __('Surrey', 'wp-multisite-waas'), + 'SWD' => __('Swindon', 'wp-multisite-waas'), + 'TAM' => __('Tameside', 'wp-multisite-waas'), + 'TFW' => __('Telford and Wrekin', 'wp-multisite-waas'), + 'THR' => __('Thurrock', 'wp-multisite-waas'), + 'TOB' => __('Torbay', 'wp-multisite-waas'), + 'TOF' => __('Torfaen', 'wp-multisite-waas'), + 'TRF' => __('Trafford', 'wp-multisite-waas'), + 'UKM' => __('United Kingdom', 'wp-multisite-waas'), + 'VGL' => __('Vale of Glamorgan', 'wp-multisite-waas'), + 'WKF' => __('Wakefield', 'wp-multisite-waas'), + 'WLS' => __('Wales', 'wp-multisite-waas'), + 'WLL' => __('Walsall', 'wp-multisite-waas'), + 'WRT' => __('Warrington', 'wp-multisite-waas'), + 'WAR' => __('Warwickshire', 'wp-multisite-waas'), + 'WBK' => __('West Berkshire', 'wp-multisite-waas'), + 'WDU' => __('West Dunbartonshire', 'wp-multisite-waas'), + 'WLN' => __('West Lothian', 'wp-multisite-waas'), + 'WSX' => __('West Sussex', 'wp-multisite-waas'), + 'WIL' => __('Wiltshire', 'wp-multisite-waas'), + 'WNM' => __('Windsor and Maidenhead', 'wp-multisite-waas'), + 'WRL' => __('Wirral', 'wp-multisite-waas'), + 'WOK' => __('Wokingham', 'wp-multisite-waas'), + 'WOR' => __('Worcestershire', 'wp-multisite-waas'), + 'WRX' => __('Wrexham County Borough', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-in.php b/inc/country/class-country-in.php index 4eacb54..5ef0f2e 100644 --- a/inc/country/class-country-in.php +++ b/inc/country/class-country-in.php @@ -99,7 +99,7 @@ class Country_IN extends Country { */ public function get_name() { - return __('India', 'wp-ultimo'); + return __('India', 'wp-multisite-waas'); } /** @@ -111,42 +111,42 @@ class Country_IN extends Country { protected function states() { return [ - 'AN' => __('Andaman and Nicobar Islands', 'wp-ultimo'), - 'AP' => __('Andhra Pradesh', 'wp-ultimo'), - 'AR' => __('Arunachal Pradesh', 'wp-ultimo'), - 'AS' => __('Assam', 'wp-ultimo'), - 'BR' => __('Bihar', 'wp-ultimo'), - 'CH' => __('Chandigarh', 'wp-ultimo'), - 'CT' => __('Chhattisgarh', 'wp-ultimo'), - 'DH' => __('Dadra and Nagar Haveli and Daman and Diu', 'wp-ultimo'), - 'DL' => __('Delhi', 'wp-ultimo'), - 'GA' => __('Goa', 'wp-ultimo'), - 'GJ' => __('Gujarat', 'wp-ultimo'), - 'HR' => __('Haryana', 'wp-ultimo'), - 'HP' => __('Himachal Pradesh', 'wp-ultimo'), - 'JK' => __('Jammu and Kashmir', 'wp-ultimo'), - 'JH' => __('Jharkhand', 'wp-ultimo'), - 'KA' => __('Karnataka', 'wp-ultimo'), - 'KL' => __('Kerala', 'wp-ultimo'), - 'LA' => __('Ladakh', 'wp-ultimo'), - 'LD' => __('Lakshadweep', 'wp-ultimo'), - 'MP' => __('Madhya Pradesh', 'wp-ultimo'), - 'MH' => __('Maharashtra', 'wp-ultimo'), - 'MN' => __('Manipur', 'wp-ultimo'), - 'ML' => __('Meghalaya', 'wp-ultimo'), - 'MZ' => __('Mizoram', 'wp-ultimo'), - 'NL' => __('Nagaland', 'wp-ultimo'), - 'OR' => __('Odisha', 'wp-ultimo'), - 'PY' => __('Puducherry', 'wp-ultimo'), - 'PB' => __('Punjab', 'wp-ultimo'), - 'RJ' => __('Rajasthan', 'wp-ultimo'), - 'SK' => __('Sikkim', 'wp-ultimo'), - 'TN' => __('Tamil Nadu', 'wp-ultimo'), - 'TG' => __('Telangana', 'wp-ultimo'), - 'TR' => __('Tripura', 'wp-ultimo'), - 'UP' => __('Uttar Pradesh', 'wp-ultimo'), - 'UT' => __('Uttarakhand', 'wp-ultimo'), - 'WB' => __('West Bengal', 'wp-ultimo'), + 'AN' => __('Andaman and Nicobar Islands', 'wp-multisite-waas'), + 'AP' => __('Andhra Pradesh', 'wp-multisite-waas'), + 'AR' => __('Arunachal Pradesh', 'wp-multisite-waas'), + 'AS' => __('Assam', 'wp-multisite-waas'), + 'BR' => __('Bihar', 'wp-multisite-waas'), + 'CH' => __('Chandigarh', 'wp-multisite-waas'), + 'CT' => __('Chhattisgarh', 'wp-multisite-waas'), + 'DH' => __('Dadra and Nagar Haveli and Daman and Diu', 'wp-multisite-waas'), + 'DL' => __('Delhi', 'wp-multisite-waas'), + 'GA' => __('Goa', 'wp-multisite-waas'), + 'GJ' => __('Gujarat', 'wp-multisite-waas'), + 'HR' => __('Haryana', 'wp-multisite-waas'), + 'HP' => __('Himachal Pradesh', 'wp-multisite-waas'), + 'JK' => __('Jammu and Kashmir', 'wp-multisite-waas'), + 'JH' => __('Jharkhand', 'wp-multisite-waas'), + 'KA' => __('Karnataka', 'wp-multisite-waas'), + 'KL' => __('Kerala', 'wp-multisite-waas'), + 'LA' => __('Ladakh', 'wp-multisite-waas'), + 'LD' => __('Lakshadweep', 'wp-multisite-waas'), + 'MP' => __('Madhya Pradesh', 'wp-multisite-waas'), + 'MH' => __('Maharashtra', 'wp-multisite-waas'), + 'MN' => __('Manipur', 'wp-multisite-waas'), + 'ML' => __('Meghalaya', 'wp-multisite-waas'), + 'MZ' => __('Mizoram', 'wp-multisite-waas'), + 'NL' => __('Nagaland', 'wp-multisite-waas'), + 'OR' => __('Odisha', 'wp-multisite-waas'), + 'PY' => __('Puducherry', 'wp-multisite-waas'), + 'PB' => __('Punjab', 'wp-multisite-waas'), + 'RJ' => __('Rajasthan', 'wp-multisite-waas'), + 'SK' => __('Sikkim', 'wp-multisite-waas'), + 'TN' => __('Tamil Nadu', 'wp-multisite-waas'), + 'TG' => __('Telangana', 'wp-multisite-waas'), + 'TR' => __('Tripura', 'wp-multisite-waas'), + 'UP' => __('Uttar Pradesh', 'wp-multisite-waas'), + 'UT' => __('Uttarakhand', 'wp-multisite-waas'), + 'WB' => __('West Bengal', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-jp.php b/inc/country/class-country-jp.php index 8f2b36d..483f5f1 100644 --- a/inc/country/class-country-jp.php +++ b/inc/country/class-country-jp.php @@ -110,7 +110,7 @@ class Country_JP extends Country { */ public function get_name() { - return __('Japan', 'wp-ultimo'); + return __('Japan', 'wp-multisite-waas'); } /** @@ -122,53 +122,53 @@ class Country_JP extends Country { protected function states() { return [ - '10' => __('Gunma Prefecture', 'wp-ultimo'), - '11' => __('Saitama Prefecture', 'wp-ultimo'), - '12' => __('Chiba Prefecture', 'wp-ultimo'), - '13' => __('Tokyo', 'wp-ultimo'), - '14' => __('Kanagawa Prefecture', 'wp-ultimo'), - '15' => __('Niigata Prefecture', 'wp-ultimo'), - '16' => __('Toyama Prefecture', 'wp-ultimo'), - '17' => __('Ishikawa Prefecture', 'wp-ultimo'), - '18' => __('Fukui Prefecture', 'wp-ultimo'), - '19' => __('Yamanashi Prefecture', 'wp-ultimo'), - '20' => __('Nagano Prefecture', 'wp-ultimo'), - '21' => __('Gifu Prefecture', 'wp-ultimo'), - '22' => __('Shizuoka Prefecture', 'wp-ultimo'), - '23' => __('Aichi Prefecture', 'wp-ultimo'), - '24' => __('Mie Prefecture', 'wp-ultimo'), - '25' => __('Shiga Prefecture', 'wp-ultimo'), - '26' => __('Kyōto Prefecture', 'wp-ultimo'), - '27' => __('Ōsaka Prefecture', 'wp-ultimo'), - '28' => __('Hyōgo Prefecture', 'wp-ultimo'), - '29' => __('Nara Prefecture', 'wp-ultimo'), - '30' => __('Wakayama Prefecture', 'wp-ultimo'), - '31' => __('Tottori Prefecture', 'wp-ultimo'), - '32' => __('Shimane Prefecture', 'wp-ultimo'), - '33' => __('Okayama Prefecture', 'wp-ultimo'), - '34' => __('Hiroshima Prefecture', 'wp-ultimo'), - '35' => __('Yamaguchi Prefecture', 'wp-ultimo'), - '36' => __('Tokushima Prefecture', 'wp-ultimo'), - '37' => __('Kagawa Prefecture', 'wp-ultimo'), - '38' => __('Ehime Prefecture', 'wp-ultimo'), - '39' => __('Kōchi Prefecture', 'wp-ultimo'), - '40' => __('Fukuoka Prefecture', 'wp-ultimo'), - '41' => __('Saga Prefecture', 'wp-ultimo'), - '42' => __('Nagasaki Prefecture', 'wp-ultimo'), - '43' => __('Kumamoto Prefecture', 'wp-ultimo'), - '44' => __('Ōita Prefecture', 'wp-ultimo'), - '45' => __('Miyazaki Prefecture', 'wp-ultimo'), - '46' => __('Kagoshima Prefecture', 'wp-ultimo'), - '47' => __('Okinawa Prefecture', 'wp-ultimo'), - '05' => __('Akita Prefecture', 'wp-ultimo'), - '02' => __('Aomori Prefecture', 'wp-ultimo'), - '07' => __('Fukushima Prefecture', 'wp-ultimo'), - '01' => __('Hokkaidō Prefecture', 'wp-ultimo'), - '08' => __('Ibaraki Prefecture', 'wp-ultimo'), - '03' => __('Iwate Prefecture', 'wp-ultimo'), - '04' => __('Miyagi Prefecture', 'wp-ultimo'), - '09' => __('Tochigi Prefecture', 'wp-ultimo'), - '06' => __('Yamagata Prefecture', 'wp-ultimo'), + '10' => __('Gunma Prefecture', 'wp-multisite-waas'), + '11' => __('Saitama Prefecture', 'wp-multisite-waas'), + '12' => __('Chiba Prefecture', 'wp-multisite-waas'), + '13' => __('Tokyo', 'wp-multisite-waas'), + '14' => __('Kanagawa Prefecture', 'wp-multisite-waas'), + '15' => __('Niigata Prefecture', 'wp-multisite-waas'), + '16' => __('Toyama Prefecture', 'wp-multisite-waas'), + '17' => __('Ishikawa Prefecture', 'wp-multisite-waas'), + '18' => __('Fukui Prefecture', 'wp-multisite-waas'), + '19' => __('Yamanashi Prefecture', 'wp-multisite-waas'), + '20' => __('Nagano Prefecture', 'wp-multisite-waas'), + '21' => __('Gifu Prefecture', 'wp-multisite-waas'), + '22' => __('Shizuoka Prefecture', 'wp-multisite-waas'), + '23' => __('Aichi Prefecture', 'wp-multisite-waas'), + '24' => __('Mie Prefecture', 'wp-multisite-waas'), + '25' => __('Shiga Prefecture', 'wp-multisite-waas'), + '26' => __('Kyōto Prefecture', 'wp-multisite-waas'), + '27' => __('Ōsaka Prefecture', 'wp-multisite-waas'), + '28' => __('Hyōgo Prefecture', 'wp-multisite-waas'), + '29' => __('Nara Prefecture', 'wp-multisite-waas'), + '30' => __('Wakayama Prefecture', 'wp-multisite-waas'), + '31' => __('Tottori Prefecture', 'wp-multisite-waas'), + '32' => __('Shimane Prefecture', 'wp-multisite-waas'), + '33' => __('Okayama Prefecture', 'wp-multisite-waas'), + '34' => __('Hiroshima Prefecture', 'wp-multisite-waas'), + '35' => __('Yamaguchi Prefecture', 'wp-multisite-waas'), + '36' => __('Tokushima Prefecture', 'wp-multisite-waas'), + '37' => __('Kagawa Prefecture', 'wp-multisite-waas'), + '38' => __('Ehime Prefecture', 'wp-multisite-waas'), + '39' => __('Kōchi Prefecture', 'wp-multisite-waas'), + '40' => __('Fukuoka Prefecture', 'wp-multisite-waas'), + '41' => __('Saga Prefecture', 'wp-multisite-waas'), + '42' => __('Nagasaki Prefecture', 'wp-multisite-waas'), + '43' => __('Kumamoto Prefecture', 'wp-multisite-waas'), + '44' => __('Ōita Prefecture', 'wp-multisite-waas'), + '45' => __('Miyazaki Prefecture', 'wp-multisite-waas'), + '46' => __('Kagoshima Prefecture', 'wp-multisite-waas'), + '47' => __('Okinawa Prefecture', 'wp-multisite-waas'), + '05' => __('Akita Prefecture', 'wp-multisite-waas'), + '02' => __('Aomori Prefecture', 'wp-multisite-waas'), + '07' => __('Fukushima Prefecture', 'wp-multisite-waas'), + '01' => __('Hokkaidō Prefecture', 'wp-multisite-waas'), + '08' => __('Ibaraki Prefecture', 'wp-multisite-waas'), + '03' => __('Iwate Prefecture', 'wp-multisite-waas'), + '04' => __('Miyagi Prefecture', 'wp-multisite-waas'), + '09' => __('Tochigi Prefecture', 'wp-multisite-waas'), + '06' => __('Yamagata Prefecture', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-mx.php b/inc/country/class-country-mx.php index 7fa12e1..380ded2 100644 --- a/inc/country/class-country-mx.php +++ b/inc/country/class-country-mx.php @@ -95,7 +95,7 @@ class Country_MX extends Country { */ public function get_name() { - return __('Mexico', 'wp-ultimo'); + return __('Mexico', 'wp-multisite-waas'); } /** @@ -107,38 +107,38 @@ class Country_MX extends Country { protected function states() { return [ - 'AGU' => __('Aguascalientes', 'wp-ultimo'), - 'BCN' => __('Baja California', 'wp-ultimo'), - 'BCS' => __('Baja California Sur', 'wp-ultimo'), - 'CAM' => __('Campeche', 'wp-ultimo'), - 'CHP' => __('Chiapas', 'wp-ultimo'), - 'CHH' => __('Chihuahua', 'wp-ultimo'), - 'CDMX' => __('Ciudad de México', 'wp-ultimo'), - 'COA' => __('Coahuila de Zaragoza', 'wp-ultimo'), - 'COL' => __('Colima', 'wp-ultimo'), - 'DUR' => __('Durango', 'wp-ultimo'), - 'MEX' => __('Estado de México', 'wp-ultimo'), - 'GUA' => __('Guanajuato', 'wp-ultimo'), - 'GRO' => __('Guerrero', 'wp-ultimo'), - 'HID' => __('Hidalgo', 'wp-ultimo'), - 'JAL' => __('Jalisco', 'wp-ultimo'), - 'MIC' => __('Michoacán de Ocampo', 'wp-ultimo'), - 'MOR' => __('Morelos', 'wp-ultimo'), - 'NAY' => __('Nayarit', 'wp-ultimo'), - 'NLE' => __('Nuevo León', 'wp-ultimo'), - 'OAX' => __('Oaxaca', 'wp-ultimo'), - 'PUE' => __('Puebla', 'wp-ultimo'), - 'QUE' => __('Querétaro', 'wp-ultimo'), - 'ROO' => __('Quintana Roo', 'wp-ultimo'), - 'SLP' => __('San Luis Potosí', 'wp-ultimo'), - 'SIN' => __('Sinaloa', 'wp-ultimo'), - 'SON' => __('Sonora', 'wp-ultimo'), - 'TAB' => __('Tabasco', 'wp-ultimo'), - 'TAM' => __('Tamaulipas', 'wp-ultimo'), - 'TLA' => __('Tlaxcala', 'wp-ultimo'), - 'VER' => __('Veracruz de Ignacio de la Llave', 'wp-ultimo'), - 'YUC' => __('Yucatán', 'wp-ultimo'), - 'ZAC' => __('Zacatecas', 'wp-ultimo'), + 'AGU' => __('Aguascalientes', 'wp-multisite-waas'), + 'BCN' => __('Baja California', 'wp-multisite-waas'), + 'BCS' => __('Baja California Sur', 'wp-multisite-waas'), + 'CAM' => __('Campeche', 'wp-multisite-waas'), + 'CHP' => __('Chiapas', 'wp-multisite-waas'), + 'CHH' => __('Chihuahua', 'wp-multisite-waas'), + 'CDMX' => __('Ciudad de México', 'wp-multisite-waas'), + 'COA' => __('Coahuila de Zaragoza', 'wp-multisite-waas'), + 'COL' => __('Colima', 'wp-multisite-waas'), + 'DUR' => __('Durango', 'wp-multisite-waas'), + 'MEX' => __('Estado de México', 'wp-multisite-waas'), + 'GUA' => __('Guanajuato', 'wp-multisite-waas'), + 'GRO' => __('Guerrero', 'wp-multisite-waas'), + 'HID' => __('Hidalgo', 'wp-multisite-waas'), + 'JAL' => __('Jalisco', 'wp-multisite-waas'), + 'MIC' => __('Michoacán de Ocampo', 'wp-multisite-waas'), + 'MOR' => __('Morelos', 'wp-multisite-waas'), + 'NAY' => __('Nayarit', 'wp-multisite-waas'), + 'NLE' => __('Nuevo León', 'wp-multisite-waas'), + 'OAX' => __('Oaxaca', 'wp-multisite-waas'), + 'PUE' => __('Puebla', 'wp-multisite-waas'), + 'QUE' => __('Querétaro', 'wp-multisite-waas'), + 'ROO' => __('Quintana Roo', 'wp-multisite-waas'), + 'SLP' => __('San Luis Potosí', 'wp-multisite-waas'), + 'SIN' => __('Sinaloa', 'wp-multisite-waas'), + 'SON' => __('Sonora', 'wp-multisite-waas'), + 'TAB' => __('Tabasco', 'wp-multisite-waas'), + 'TAM' => __('Tamaulipas', 'wp-multisite-waas'), + 'TLA' => __('Tlaxcala', 'wp-multisite-waas'), + 'VER' => __('Veracruz de Ignacio de la Llave', 'wp-multisite-waas'), + 'YUC' => __('Yucatán', 'wp-multisite-waas'), + 'ZAC' => __('Zacatecas', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-my.php b/inc/country/class-country-my.php index 97666df..ac08228 100644 --- a/inc/country/class-country-my.php +++ b/inc/country/class-country-my.php @@ -79,7 +79,7 @@ class Country_MY extends Country { */ public function get_name() { - return __('Malaysia', 'wp-ultimo'); + return __('Malaysia', 'wp-multisite-waas'); } /** @@ -91,22 +91,22 @@ class Country_MY extends Country { protected function states() { return [ - '10' => __('Selangor', 'wp-ultimo'), - '11' => __('Terengganu', 'wp-ultimo'), - '12' => __('Sabah', 'wp-ultimo'), - '13' => __('Sarawak', 'wp-ultimo'), - '14' => __('Kuala Lumpur', 'wp-ultimo'), - '15' => __('Labuan', 'wp-ultimo'), - '16' => __('Putrajaya', 'wp-ultimo'), - '01' => __('Johor', 'wp-ultimo'), - '02' => __('Kedah', 'wp-ultimo'), - '03' => __('Kelantan', 'wp-ultimo'), - '04' => __('Malacca', 'wp-ultimo'), - '05' => __('Negeri Sembilan', 'wp-ultimo'), - '06' => __('Pahang', 'wp-ultimo'), - '07' => __('Penang', 'wp-ultimo'), - '08' => __('Perak', 'wp-ultimo'), - '09' => __('Perlis', 'wp-ultimo'), + '10' => __('Selangor', 'wp-multisite-waas'), + '11' => __('Terengganu', 'wp-multisite-waas'), + '12' => __('Sabah', 'wp-multisite-waas'), + '13' => __('Sarawak', 'wp-multisite-waas'), + '14' => __('Kuala Lumpur', 'wp-multisite-waas'), + '15' => __('Labuan', 'wp-multisite-waas'), + '16' => __('Putrajaya', 'wp-multisite-waas'), + '01' => __('Johor', 'wp-multisite-waas'), + '02' => __('Kedah', 'wp-multisite-waas'), + '03' => __('Kelantan', 'wp-multisite-waas'), + '04' => __('Malacca', 'wp-multisite-waas'), + '05' => __('Negeri Sembilan', 'wp-multisite-waas'), + '06' => __('Pahang', 'wp-multisite-waas'), + '07' => __('Penang', 'wp-multisite-waas'), + '08' => __('Perak', 'wp-multisite-waas'), + '09' => __('Perlis', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-ne.php b/inc/country/class-country-ne.php index 4003995..85ab8c9 100644 --- a/inc/country/class-country-ne.php +++ b/inc/country/class-country-ne.php @@ -70,7 +70,7 @@ class Country_NE extends Country { */ public function get_name() { - return __('Niger', 'wp-ultimo'); + return __('Niger', 'wp-multisite-waas'); } /** @@ -82,13 +82,13 @@ class Country_NE extends Country { protected function states() { return [ - '1' => __('Agadez Region', 'wp-ultimo'), - '2' => __('Diffa Region', 'wp-ultimo'), - '3' => __('Dosso Region', 'wp-ultimo'), - '4' => __('Maradi Region', 'wp-ultimo'), - '5' => __('Tahoua Region', 'wp-ultimo'), - '6' => __('Tillabéri Region', 'wp-ultimo'), - '7' => __('Zinder Region', 'wp-ultimo'), + '1' => __('Agadez Region', 'wp-multisite-waas'), + '2' => __('Diffa Region', 'wp-multisite-waas'), + '3' => __('Dosso Region', 'wp-multisite-waas'), + '4' => __('Maradi Region', 'wp-multisite-waas'), + '5' => __('Tahoua Region', 'wp-multisite-waas'), + '6' => __('Tillabéri Region', 'wp-multisite-waas'), + '7' => __('Zinder Region', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-nl.php b/inc/country/class-country-nl.php index 80cf8fb..2916993 100644 --- a/inc/country/class-country-nl.php +++ b/inc/country/class-country-nl.php @@ -75,7 +75,7 @@ class Country_NL extends Country { */ public function get_name() { - return __('Netherlands', 'wp-ultimo'); + return __('Netherlands', 'wp-multisite-waas'); } /** @@ -87,21 +87,21 @@ class Country_NL extends Country { protected function states() { return [ - 'BQ1' => __('Bonaire', 'wp-ultimo'), - 'DR' => __('Drenthe', 'wp-ultimo'), - 'FL' => __('Flevoland', 'wp-ultimo'), - 'FR' => __('Friesland', 'wp-ultimo'), - 'GE' => __('Gelderland', 'wp-ultimo'), - 'GR' => __('Groningen', 'wp-ultimo'), - 'LI' => __('Limburg', 'wp-ultimo'), - 'NB' => __('North Brabant', 'wp-ultimo'), - 'NH' => __('North Holland', 'wp-ultimo'), - 'OV' => __('Overijssel', 'wp-ultimo'), - 'BQ2' => __('Saba', 'wp-ultimo'), - 'BQ3' => __('Sint Eustatius', 'wp-ultimo'), - 'ZH' => __('South Holland', 'wp-ultimo'), - 'UT' => __('Utrecht', 'wp-ultimo'), - 'ZE' => __('Zeeland', 'wp-ultimo'), + 'BQ1' => __('Bonaire', 'wp-multisite-waas'), + 'DR' => __('Drenthe', 'wp-multisite-waas'), + 'FL' => __('Flevoland', 'wp-multisite-waas'), + 'FR' => __('Friesland', 'wp-multisite-waas'), + 'GE' => __('Gelderland', 'wp-multisite-waas'), + 'GR' => __('Groningen', 'wp-multisite-waas'), + 'LI' => __('Limburg', 'wp-multisite-waas'), + 'NB' => __('North Brabant', 'wp-multisite-waas'), + 'NH' => __('North Holland', 'wp-multisite-waas'), + 'OV' => __('Overijssel', 'wp-multisite-waas'), + 'BQ2' => __('Saba', 'wp-multisite-waas'), + 'BQ3' => __('Sint Eustatius', 'wp-multisite-waas'), + 'ZH' => __('South Holland', 'wp-multisite-waas'), + 'UT' => __('Utrecht', 'wp-multisite-waas'), + 'ZE' => __('Zeeland', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-ru.php b/inc/country/class-country-ru.php index 1302b22..5d2bc33 100644 --- a/inc/country/class-country-ru.php +++ b/inc/country/class-country-ru.php @@ -146,7 +146,7 @@ class Country_RU extends Country { */ public function get_name() { - return __('Russia', 'wp-ultimo'); + return __('Russia', 'wp-multisite-waas'); } /** @@ -158,90 +158,90 @@ class Country_RU extends Country { protected function states() { return [ - 'ALT' => __('Altai Krai', 'wp-ultimo'), - 'AL' => __('Altai Republic', 'wp-ultimo'), - 'AMU' => __('Amur Oblast', 'wp-ultimo'), - 'ARK' => __('Arkhangelsk', 'wp-ultimo'), - 'AST' => __('Astrakhan Oblast', 'wp-ultimo'), - 'BEL' => __('Belgorod Oblast', 'wp-ultimo'), - 'BRY' => __('Bryansk Oblast', 'wp-ultimo'), - 'CE' => __('Chechen Republic', 'wp-ultimo'), - 'CHE' => __('Chelyabinsk Oblast', 'wp-ultimo'), - 'CHU' => __('Chukotka Autonomous Okrug', 'wp-ultimo'), - 'CU' => __('Chuvash Republic', 'wp-ultimo'), - 'IRK' => __('Irkutsk', 'wp-ultimo'), - 'IVA' => __('Ivanovo Oblast', 'wp-ultimo'), - 'YEV' => __('Jewish Autonomous Oblast', 'wp-ultimo'), - 'KB' => __('Kabardino-Balkar Republic', 'wp-ultimo'), - 'KGD' => __('Kaliningrad', 'wp-ultimo'), - 'KLU' => __('Kaluga Oblast', 'wp-ultimo'), - 'KAM' => __('Kamchatka Krai', 'wp-ultimo'), - 'KC' => __('Karachay-Cherkess Republic', 'wp-ultimo'), - 'KEM' => __('Kemerovo Oblast', 'wp-ultimo'), - 'KHA' => __('Khabarovsk Krai', 'wp-ultimo'), - 'KHM' => __('Khanty-Mansi Autonomous Okrug', 'wp-ultimo'), - 'KIR' => __('Kirov Oblast', 'wp-ultimo'), - 'KO' => __('Komi Republic', 'wp-ultimo'), - 'KOS' => __('Kostroma Oblast', 'wp-ultimo'), - 'KDA' => __('Krasnodar Krai', 'wp-ultimo'), - 'KYA' => __('Krasnoyarsk Krai', 'wp-ultimo'), - 'KGN' => __('Kurgan Oblast', 'wp-ultimo'), - 'KRS' => __('Kursk Oblast', 'wp-ultimo'), - 'LEN' => __('Leningrad Oblast', 'wp-ultimo'), - 'LIP' => __('Lipetsk Oblast', 'wp-ultimo'), - 'MAG' => __('Magadan Oblast', 'wp-ultimo'), - 'ME' => __('Mari El Republic', 'wp-ultimo'), - 'MOW' => __('Moscow', 'wp-ultimo'), - 'MOS' => __('Moscow Oblast', 'wp-ultimo'), - 'MUR' => __('Murmansk Oblast', 'wp-ultimo'), - 'NEN' => __('Nenets Autonomous Okrug', 'wp-ultimo'), - 'NIZ' => __('Nizhny Novgorod Oblast', 'wp-ultimo'), - 'NGR' => __('Novgorod Oblast', 'wp-ultimo'), - 'NVS' => __('Novosibirsk', 'wp-ultimo'), - 'OMS' => __('Omsk Oblast', 'wp-ultimo'), - 'ORE' => __('Orenburg Oblast', 'wp-ultimo'), - 'ORL' => __('Oryol Oblast', 'wp-ultimo'), - 'PNZ' => __('Penza Oblast', 'wp-ultimo'), - 'PER' => __('Perm Krai', 'wp-ultimo'), - 'PRI' => __('Primorsky Krai', 'wp-ultimo'), - 'PSK' => __('Pskov Oblast', 'wp-ultimo'), - 'AD' => __('Republic of Adygea', 'wp-ultimo'), - 'BA' => __('Republic of Bashkortostan', 'wp-ultimo'), - 'BU' => __('Republic of Buryatia', 'wp-ultimo'), - 'DA' => __('Republic of Dagestan', 'wp-ultimo'), - 'IN' => __('Republic of Ingushetia', 'wp-ultimo'), - 'KL' => __('Republic of Kalmykia', 'wp-ultimo'), - 'KR' => __('Republic of Karelia', 'wp-ultimo'), - 'KK' => __('Republic of Khakassia', 'wp-ultimo'), - 'MO' => __('Republic of Mordovia', 'wp-ultimo'), - 'SE' => __('Republic of North Ossetia-Alania', 'wp-ultimo'), - 'TA' => __('Republic of Tatarstan', 'wp-ultimo'), - 'ROS' => __('Rostov Oblast', 'wp-ultimo'), - 'RYA' => __('Ryazan Oblast', 'wp-ultimo'), - 'SPE' => __('Saint Petersburg', 'wp-ultimo'), - 'SA' => __('Sakha Republic', 'wp-ultimo'), - 'SAK' => __('Sakhalin', 'wp-ultimo'), - 'SAM' => __('Samara Oblast', 'wp-ultimo'), - 'SAR' => __('Saratov Oblast', 'wp-ultimo'), - 'UA-40' => __('Sevastopol', 'wp-ultimo'), - 'SMO' => __('Smolensk Oblast', 'wp-ultimo'), - 'STA' => __('Stavropol Krai', 'wp-ultimo'), - 'SVE' => __('Sverdlovsk', 'wp-ultimo'), - 'TAM' => __('Tambov Oblast', 'wp-ultimo'), - 'TOM' => __('Tomsk Oblast', 'wp-ultimo'), - 'TUL' => __('Tula Oblast', 'wp-ultimo'), - 'TY' => __('Tuva Republic', 'wp-ultimo'), - 'TVE' => __('Tver Oblast', 'wp-ultimo'), - 'TYU' => __('Tyumen Oblast', 'wp-ultimo'), - 'UD' => __('Udmurt Republic', 'wp-ultimo'), - 'ULY' => __('Ulyanovsk Oblast', 'wp-ultimo'), - 'VLA' => __('Vladimir Oblast', 'wp-ultimo'), - 'VGG' => __('Volgograd Oblast', 'wp-ultimo'), - 'VLG' => __('Vologda Oblast', 'wp-ultimo'), - 'VOR' => __('Voronezh Oblast', 'wp-ultimo'), - 'YAN' => __('Yamalo-Nenets Autonomous Okrug', 'wp-ultimo'), - 'YAR' => __('Yaroslavl Oblast', 'wp-ultimo'), - 'ZAB' => __('Zabaykalsky Krai', 'wp-ultimo'), + 'ALT' => __('Altai Krai', 'wp-multisite-waas'), + 'AL' => __('Altai Republic', 'wp-multisite-waas'), + 'AMU' => __('Amur Oblast', 'wp-multisite-waas'), + 'ARK' => __('Arkhangelsk', 'wp-multisite-waas'), + 'AST' => __('Astrakhan Oblast', 'wp-multisite-waas'), + 'BEL' => __('Belgorod Oblast', 'wp-multisite-waas'), + 'BRY' => __('Bryansk Oblast', 'wp-multisite-waas'), + 'CE' => __('Chechen Republic', 'wp-multisite-waas'), + 'CHE' => __('Chelyabinsk Oblast', 'wp-multisite-waas'), + 'CHU' => __('Chukotka Autonomous Okrug', 'wp-multisite-waas'), + 'CU' => __('Chuvash Republic', 'wp-multisite-waas'), + 'IRK' => __('Irkutsk', 'wp-multisite-waas'), + 'IVA' => __('Ivanovo Oblast', 'wp-multisite-waas'), + 'YEV' => __('Jewish Autonomous Oblast', 'wp-multisite-waas'), + 'KB' => __('Kabardino-Balkar Republic', 'wp-multisite-waas'), + 'KGD' => __('Kaliningrad', 'wp-multisite-waas'), + 'KLU' => __('Kaluga Oblast', 'wp-multisite-waas'), + 'KAM' => __('Kamchatka Krai', 'wp-multisite-waas'), + 'KC' => __('Karachay-Cherkess Republic', 'wp-multisite-waas'), + 'KEM' => __('Kemerovo Oblast', 'wp-multisite-waas'), + 'KHA' => __('Khabarovsk Krai', 'wp-multisite-waas'), + 'KHM' => __('Khanty-Mansi Autonomous Okrug', 'wp-multisite-waas'), + 'KIR' => __('Kirov Oblast', 'wp-multisite-waas'), + 'KO' => __('Komi Republic', 'wp-multisite-waas'), + 'KOS' => __('Kostroma Oblast', 'wp-multisite-waas'), + 'KDA' => __('Krasnodar Krai', 'wp-multisite-waas'), + 'KYA' => __('Krasnoyarsk Krai', 'wp-multisite-waas'), + 'KGN' => __('Kurgan Oblast', 'wp-multisite-waas'), + 'KRS' => __('Kursk Oblast', 'wp-multisite-waas'), + 'LEN' => __('Leningrad Oblast', 'wp-multisite-waas'), + 'LIP' => __('Lipetsk Oblast', 'wp-multisite-waas'), + 'MAG' => __('Magadan Oblast', 'wp-multisite-waas'), + 'ME' => __('Mari El Republic', 'wp-multisite-waas'), + 'MOW' => __('Moscow', 'wp-multisite-waas'), + 'MOS' => __('Moscow Oblast', 'wp-multisite-waas'), + 'MUR' => __('Murmansk Oblast', 'wp-multisite-waas'), + 'NEN' => __('Nenets Autonomous Okrug', 'wp-multisite-waas'), + 'NIZ' => __('Nizhny Novgorod Oblast', 'wp-multisite-waas'), + 'NGR' => __('Novgorod Oblast', 'wp-multisite-waas'), + 'NVS' => __('Novosibirsk', 'wp-multisite-waas'), + 'OMS' => __('Omsk Oblast', 'wp-multisite-waas'), + 'ORE' => __('Orenburg Oblast', 'wp-multisite-waas'), + 'ORL' => __('Oryol Oblast', 'wp-multisite-waas'), + 'PNZ' => __('Penza Oblast', 'wp-multisite-waas'), + 'PER' => __('Perm Krai', 'wp-multisite-waas'), + 'PRI' => __('Primorsky Krai', 'wp-multisite-waas'), + 'PSK' => __('Pskov Oblast', 'wp-multisite-waas'), + 'AD' => __('Republic of Adygea', 'wp-multisite-waas'), + 'BA' => __('Republic of Bashkortostan', 'wp-multisite-waas'), + 'BU' => __('Republic of Buryatia', 'wp-multisite-waas'), + 'DA' => __('Republic of Dagestan', 'wp-multisite-waas'), + 'IN' => __('Republic of Ingushetia', 'wp-multisite-waas'), + 'KL' => __('Republic of Kalmykia', 'wp-multisite-waas'), + 'KR' => __('Republic of Karelia', 'wp-multisite-waas'), + 'KK' => __('Republic of Khakassia', 'wp-multisite-waas'), + 'MO' => __('Republic of Mordovia', 'wp-multisite-waas'), + 'SE' => __('Republic of North Ossetia-Alania', 'wp-multisite-waas'), + 'TA' => __('Republic of Tatarstan', 'wp-multisite-waas'), + 'ROS' => __('Rostov Oblast', 'wp-multisite-waas'), + 'RYA' => __('Ryazan Oblast', 'wp-multisite-waas'), + 'SPE' => __('Saint Petersburg', 'wp-multisite-waas'), + 'SA' => __('Sakha Republic', 'wp-multisite-waas'), + 'SAK' => __('Sakhalin', 'wp-multisite-waas'), + 'SAM' => __('Samara Oblast', 'wp-multisite-waas'), + 'SAR' => __('Saratov Oblast', 'wp-multisite-waas'), + 'UA-40' => __('Sevastopol', 'wp-multisite-waas'), + 'SMO' => __('Smolensk Oblast', 'wp-multisite-waas'), + 'STA' => __('Stavropol Krai', 'wp-multisite-waas'), + 'SVE' => __('Sverdlovsk', 'wp-multisite-waas'), + 'TAM' => __('Tambov Oblast', 'wp-multisite-waas'), + 'TOM' => __('Tomsk Oblast', 'wp-multisite-waas'), + 'TUL' => __('Tula Oblast', 'wp-multisite-waas'), + 'TY' => __('Tuva Republic', 'wp-multisite-waas'), + 'TVE' => __('Tver Oblast', 'wp-multisite-waas'), + 'TYU' => __('Tyumen Oblast', 'wp-multisite-waas'), + 'UD' => __('Udmurt Republic', 'wp-multisite-waas'), + 'ULY' => __('Ulyanovsk Oblast', 'wp-multisite-waas'), + 'VLA' => __('Vladimir Oblast', 'wp-multisite-waas'), + 'VGG' => __('Volgograd Oblast', 'wp-multisite-waas'), + 'VLG' => __('Vologda Oblast', 'wp-multisite-waas'), + 'VOR' => __('Voronezh Oblast', 'wp-multisite-waas'), + 'YAN' => __('Yamalo-Nenets Autonomous Okrug', 'wp-multisite-waas'), + 'YAR' => __('Yaroslavl Oblast', 'wp-multisite-waas'), + 'ZAB' => __('Zabaykalsky Krai', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-sg.php b/inc/country/class-country-sg.php index 6bb993b..08a7e27 100644 --- a/inc/country/class-country-sg.php +++ b/inc/country/class-country-sg.php @@ -65,7 +65,7 @@ class Country_SG extends Country { */ public function get_name() { - return __('Singapore', 'wp-ultimo'); + return __('Singapore', 'wp-multisite-waas'); } /** @@ -77,11 +77,11 @@ class Country_SG extends Country { protected function states() { return [ - '01' => __('Central Singapore Community Development Council', 'wp-ultimo'), - '02' => __('North East Community Development Council', 'wp-ultimo'), - '03' => __('North West Community Development Council', 'wp-ultimo'), - '04' => __('South East Community Development Council', 'wp-ultimo'), - '05' => __('South West Community Development Council', 'wp-ultimo'), + '01' => __('Central Singapore Community Development Council', 'wp-multisite-waas'), + '02' => __('North East Community Development Council', 'wp-multisite-waas'), + '03' => __('North West Community Development Council', 'wp-multisite-waas'), + '04' => __('South East Community Development Council', 'wp-multisite-waas'), + '05' => __('South West Community Development Council', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-tr.php b/inc/country/class-country-tr.php index 7a93b00..f6683b3 100644 --- a/inc/country/class-country-tr.php +++ b/inc/country/class-country-tr.php @@ -144,7 +144,7 @@ class Country_TR extends Country { */ public function get_name() { - return __('Turkey', 'wp-ultimo'); + return __('Turkey', 'wp-multisite-waas'); } /** @@ -156,87 +156,87 @@ class Country_TR extends Country { protected function states() { return [ - '10' => __('Balıkesir', 'wp-ultimo'), - '11' => __('Bilecik', 'wp-ultimo'), - '12' => __('Bingöl', 'wp-ultimo'), - '13' => __('Bitlis', 'wp-ultimo'), - '14' => __('Bolu', 'wp-ultimo'), - '15' => __('Burdur', 'wp-ultimo'), - '16' => __('Bursa', 'wp-ultimo'), - '17' => __('Çanakkale', 'wp-ultimo'), - '18' => __('Çankırı', 'wp-ultimo'), - '19' => __('Çorum', 'wp-ultimo'), - '20' => __('Denizli', 'wp-ultimo'), - '21' => __('Diyarbakır', 'wp-ultimo'), - '22' => __('Edirne', 'wp-ultimo'), - '23' => __('Elazığ', 'wp-ultimo'), - '24' => __('Erzincan', 'wp-ultimo'), - '25' => __('Erzurum', 'wp-ultimo'), - '26' => __('Eskişehir', 'wp-ultimo'), - '27' => __('Gaziantep', 'wp-ultimo'), - '28' => __('Giresun', 'wp-ultimo'), - '29' => __('Gümüşhane', 'wp-ultimo'), - '30' => __('Hakkâri', 'wp-ultimo'), - '31' => __('Hatay', 'wp-ultimo'), - '32' => __('Isparta', 'wp-ultimo'), - '33' => __('Mersin', 'wp-ultimo'), - '34' => __('Istanbul', 'wp-ultimo'), - '35' => __('İzmir', 'wp-ultimo'), - '36' => __('Kars', 'wp-ultimo'), - '37' => __('Kastamonu', 'wp-ultimo'), - '38' => __('Kayseri', 'wp-ultimo'), - '39' => __('Kırklareli', 'wp-ultimo'), - '40' => __('Kırşehir', 'wp-ultimo'), - '41' => __('Kocaeli', 'wp-ultimo'), - '42' => __('Konya', 'wp-ultimo'), - '43' => __('Kütahya', 'wp-ultimo'), - '44' => __('Malatya', 'wp-ultimo'), - '45' => __('Manisa', 'wp-ultimo'), - '46' => __('Kahramanmaraş', 'wp-ultimo'), - '47' => __('Mardin', 'wp-ultimo'), - '48' => __('Muğla', 'wp-ultimo'), - '49' => __('Muş', 'wp-ultimo'), - '50' => __('Nevşehir', 'wp-ultimo'), - '51' => __('Niğde', 'wp-ultimo'), - '52' => __('Ordu', 'wp-ultimo'), - '53' => __('Rize', 'wp-ultimo'), - '54' => __('Sakarya', 'wp-ultimo'), - '55' => __('Samsun', 'wp-ultimo'), - '56' => __('Siirt', 'wp-ultimo'), - '57' => __('Sinop', 'wp-ultimo'), - '58' => __('Sivas', 'wp-ultimo'), - '59' => __('Tekirdağ', 'wp-ultimo'), - '60' => __('Tokat', 'wp-ultimo'), - '61' => __('Trabzon', 'wp-ultimo'), - '62' => __('Tunceli', 'wp-ultimo'), - '63' => __('Şanlıurfa', 'wp-ultimo'), - '64' => __('Uşak', 'wp-ultimo'), - '65' => __('Van', 'wp-ultimo'), - '66' => __('Yozgat', 'wp-ultimo'), - '67' => __('Zonguldak', 'wp-ultimo'), - '68' => __('Aksaray', 'wp-ultimo'), - '69' => __('Bayburt', 'wp-ultimo'), - '70' => __('Karaman', 'wp-ultimo'), - '71' => __('Kırıkkale', 'wp-ultimo'), - '72' => __('Batman', 'wp-ultimo'), - '73' => __('Şırnak', 'wp-ultimo'), - '74' => __('Bartın', 'wp-ultimo'), - '75' => __('Ardahan', 'wp-ultimo'), - '76' => __('Iğdır', 'wp-ultimo'), - '77' => __('Yalova', 'wp-ultimo'), - '78' => __('Karabük', 'wp-ultimo'), - '79' => __('Kilis', 'wp-ultimo'), - '80' => __('Osmaniye', 'wp-ultimo'), - '81' => __('Düzce', 'wp-ultimo'), - '01' => __('Adana', 'wp-ultimo'), - '02' => __('Adıyaman', 'wp-ultimo'), - '03' => __('Afyonkarahisar', 'wp-ultimo'), - '05' => __('Amasya', 'wp-ultimo'), - '06' => __('Ankara', 'wp-ultimo'), - '07' => __('Antalya', 'wp-ultimo'), - '08' => __('Artvin', 'wp-ultimo'), - '09' => __('Aydın', 'wp-ultimo'), - '04' => __('Ağrı', 'wp-ultimo'), + '10' => __('Balıkesir', 'wp-multisite-waas'), + '11' => __('Bilecik', 'wp-multisite-waas'), + '12' => __('Bingöl', 'wp-multisite-waas'), + '13' => __('Bitlis', 'wp-multisite-waas'), + '14' => __('Bolu', 'wp-multisite-waas'), + '15' => __('Burdur', 'wp-multisite-waas'), + '16' => __('Bursa', 'wp-multisite-waas'), + '17' => __('Çanakkale', 'wp-multisite-waas'), + '18' => __('Çankırı', 'wp-multisite-waas'), + '19' => __('Çorum', 'wp-multisite-waas'), + '20' => __('Denizli', 'wp-multisite-waas'), + '21' => __('Diyarbakır', 'wp-multisite-waas'), + '22' => __('Edirne', 'wp-multisite-waas'), + '23' => __('Elazığ', 'wp-multisite-waas'), + '24' => __('Erzincan', 'wp-multisite-waas'), + '25' => __('Erzurum', 'wp-multisite-waas'), + '26' => __('Eskişehir', 'wp-multisite-waas'), + '27' => __('Gaziantep', 'wp-multisite-waas'), + '28' => __('Giresun', 'wp-multisite-waas'), + '29' => __('Gümüşhane', 'wp-multisite-waas'), + '30' => __('Hakkâri', 'wp-multisite-waas'), + '31' => __('Hatay', 'wp-multisite-waas'), + '32' => __('Isparta', 'wp-multisite-waas'), + '33' => __('Mersin', 'wp-multisite-waas'), + '34' => __('Istanbul', 'wp-multisite-waas'), + '35' => __('İzmir', 'wp-multisite-waas'), + '36' => __('Kars', 'wp-multisite-waas'), + '37' => __('Kastamonu', 'wp-multisite-waas'), + '38' => __('Kayseri', 'wp-multisite-waas'), + '39' => __('Kırklareli', 'wp-multisite-waas'), + '40' => __('Kırşehir', 'wp-multisite-waas'), + '41' => __('Kocaeli', 'wp-multisite-waas'), + '42' => __('Konya', 'wp-multisite-waas'), + '43' => __('Kütahya', 'wp-multisite-waas'), + '44' => __('Malatya', 'wp-multisite-waas'), + '45' => __('Manisa', 'wp-multisite-waas'), + '46' => __('Kahramanmaraş', 'wp-multisite-waas'), + '47' => __('Mardin', 'wp-multisite-waas'), + '48' => __('Muğla', 'wp-multisite-waas'), + '49' => __('Muş', 'wp-multisite-waas'), + '50' => __('Nevşehir', 'wp-multisite-waas'), + '51' => __('Niğde', 'wp-multisite-waas'), + '52' => __('Ordu', 'wp-multisite-waas'), + '53' => __('Rize', 'wp-multisite-waas'), + '54' => __('Sakarya', 'wp-multisite-waas'), + '55' => __('Samsun', 'wp-multisite-waas'), + '56' => __('Siirt', 'wp-multisite-waas'), + '57' => __('Sinop', 'wp-multisite-waas'), + '58' => __('Sivas', 'wp-multisite-waas'), + '59' => __('Tekirdağ', 'wp-multisite-waas'), + '60' => __('Tokat', 'wp-multisite-waas'), + '61' => __('Trabzon', 'wp-multisite-waas'), + '62' => __('Tunceli', 'wp-multisite-waas'), + '63' => __('Şanlıurfa', 'wp-multisite-waas'), + '64' => __('Uşak', 'wp-multisite-waas'), + '65' => __('Van', 'wp-multisite-waas'), + '66' => __('Yozgat', 'wp-multisite-waas'), + '67' => __('Zonguldak', 'wp-multisite-waas'), + '68' => __('Aksaray', 'wp-multisite-waas'), + '69' => __('Bayburt', 'wp-multisite-waas'), + '70' => __('Karaman', 'wp-multisite-waas'), + '71' => __('Kırıkkale', 'wp-multisite-waas'), + '72' => __('Batman', 'wp-multisite-waas'), + '73' => __('Şırnak', 'wp-multisite-waas'), + '74' => __('Bartın', 'wp-multisite-waas'), + '75' => __('Ardahan', 'wp-multisite-waas'), + '76' => __('Iğdır', 'wp-multisite-waas'), + '77' => __('Yalova', 'wp-multisite-waas'), + '78' => __('Karabük', 'wp-multisite-waas'), + '79' => __('Kilis', 'wp-multisite-waas'), + '80' => __('Osmaniye', 'wp-multisite-waas'), + '81' => __('Düzce', 'wp-multisite-waas'), + '01' => __('Adana', 'wp-multisite-waas'), + '02' => __('Adıyaman', 'wp-multisite-waas'), + '03' => __('Afyonkarahisar', 'wp-multisite-waas'), + '05' => __('Amasya', 'wp-multisite-waas'), + '06' => __('Ankara', 'wp-multisite-waas'), + '07' => __('Antalya', 'wp-multisite-waas'), + '08' => __('Artvin', 'wp-multisite-waas'), + '09' => __('Aydın', 'wp-multisite-waas'), + '04' => __('Ağrı', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-us.php b/inc/country/class-country-us.php index 238883c..a09d54d 100644 --- a/inc/country/class-country-us.php +++ b/inc/country/class-country-us.php @@ -115,7 +115,7 @@ class Country_US extends Country { */ public function get_name() { - return __('United States', 'wp-ultimo'); + return __('United States', 'wp-multisite-waas'); } /** @@ -127,72 +127,72 @@ class Country_US extends Country { protected function states() { return [ - 'AL' => __('Alabama', 'wp-ultimo'), - 'AK' => __('Alaska', 'wp-ultimo'), - 'AS' => __('American Samoa', 'wp-ultimo'), - 'AZ' => __('Arizona', 'wp-ultimo'), - 'AR' => __('Arkansas', 'wp-ultimo'), - 'UM-81' => __('Baker Island', 'wp-ultimo'), - 'CA' => __('California', 'wp-ultimo'), - 'CO' => __('Colorado', 'wp-ultimo'), - 'CT' => __('Connecticut', 'wp-ultimo'), - 'DE' => __('Delaware', 'wp-ultimo'), - 'DC' => __('District of Columbia', 'wp-ultimo'), - 'FL' => __('Florida', 'wp-ultimo'), - 'GA' => __('Georgia', 'wp-ultimo'), - 'GU' => __('Guam', 'wp-ultimo'), - 'HI' => __('Hawaii', 'wp-ultimo'), - 'UM-84' => __('Howland Island', 'wp-ultimo'), - 'ID' => __('Idaho', 'wp-ultimo'), - 'IL' => __('Illinois', 'wp-ultimo'), - 'IN' => __('Indiana', 'wp-ultimo'), - 'IA' => __('Iowa', 'wp-ultimo'), - 'UM-86' => __('Jarvis Island', 'wp-ultimo'), - 'UM-67' => __('Johnston Atoll', 'wp-ultimo'), - 'KS' => __('Kansas', 'wp-ultimo'), - 'KY' => __('Kentucky', 'wp-ultimo'), - 'UM-89' => __('Kingman Reef', 'wp-ultimo'), - 'LA' => __('Louisiana', 'wp-ultimo'), - 'ME' => __('Maine', 'wp-ultimo'), - 'MD' => __('Maryland', 'wp-ultimo'), - 'MA' => __('Massachusetts', 'wp-ultimo'), - 'MI' => __('Michigan', 'wp-ultimo'), - 'UM-71' => __('Midway Atoll', 'wp-ultimo'), - 'MN' => __('Minnesota', 'wp-ultimo'), - 'MS' => __('Mississippi', 'wp-ultimo'), - 'MO' => __('Missouri', 'wp-ultimo'), - 'MT' => __('Montana', 'wp-ultimo'), - 'UM-76' => __('Navassa Island', 'wp-ultimo'), - 'NE' => __('Nebraska', 'wp-ultimo'), - 'NV' => __('Nevada', 'wp-ultimo'), - 'NH' => __('New Hampshire', 'wp-ultimo'), - 'NJ' => __('New Jersey', 'wp-ultimo'), - 'NM' => __('New Mexico', 'wp-ultimo'), - 'NY' => __('New York', 'wp-ultimo'), - 'NC' => __('North Carolina', 'wp-ultimo'), - 'ND' => __('North Dakota', 'wp-ultimo'), - 'MP' => __('Northern Mariana Islands', 'wp-ultimo'), - 'OH' => __('Ohio', 'wp-ultimo'), - 'OK' => __('Oklahoma', 'wp-ultimo'), - 'OR' => __('Oregon', 'wp-ultimo'), - 'UM-95' => __('Palmyra Atoll', 'wp-ultimo'), - 'PA' => __('Pennsylvania', 'wp-ultimo'), - 'PR' => __('Puerto Rico', 'wp-ultimo'), - 'RI' => __('Rhode Island', 'wp-ultimo'), - 'SC' => __('South Carolina', 'wp-ultimo'), - 'SD' => __('South Dakota', 'wp-ultimo'), - 'TN' => __('Tennessee', 'wp-ultimo'), - 'TX' => __('Texas', 'wp-ultimo'), - 'UM' => __('United States Minor Outlying Islands', 'wp-ultimo'), - 'VI' => __('United States Virgin Islands', 'wp-ultimo'), - 'UT' => __('Utah', 'wp-ultimo'), - 'VT' => __('Vermont', 'wp-ultimo'), - 'VA' => __('Virginia', 'wp-ultimo'), - 'UM-79' => __('Wake Island', 'wp-ultimo'), - 'WA' => __('Washington', 'wp-ultimo'), - 'WV' => __('West Virginia', 'wp-ultimo'), - 'WI' => __('Wisconsin', 'wp-ultimo'), - 'WY' => __('Wyoming', 'wp-ultimo'), + 'AL' => __('Alabama', 'wp-multisite-waas'), + 'AK' => __('Alaska', 'wp-multisite-waas'), + 'AS' => __('American Samoa', 'wp-multisite-waas'), + 'AZ' => __('Arizona', 'wp-multisite-waas'), + 'AR' => __('Arkansas', 'wp-multisite-waas'), + 'UM-81' => __('Baker Island', 'wp-multisite-waas'), + 'CA' => __('California', 'wp-multisite-waas'), + 'CO' => __('Colorado', 'wp-multisite-waas'), + 'CT' => __('Connecticut', 'wp-multisite-waas'), + 'DE' => __('Delaware', 'wp-multisite-waas'), + 'DC' => __('District of Columbia', 'wp-multisite-waas'), + 'FL' => __('Florida', 'wp-multisite-waas'), + 'GA' => __('Georgia', 'wp-multisite-waas'), + 'GU' => __('Guam', 'wp-multisite-waas'), + 'HI' => __('Hawaii', 'wp-multisite-waas'), + 'UM-84' => __('Howland Island', 'wp-multisite-waas'), + 'ID' => __('Idaho', 'wp-multisite-waas'), + 'IL' => __('Illinois', 'wp-multisite-waas'), + 'IN' => __('Indiana', 'wp-multisite-waas'), + 'IA' => __('Iowa', 'wp-multisite-waas'), + 'UM-86' => __('Jarvis Island', 'wp-multisite-waas'), + 'UM-67' => __('Johnston Atoll', 'wp-multisite-waas'), + 'KS' => __('Kansas', 'wp-multisite-waas'), + 'KY' => __('Kentucky', 'wp-multisite-waas'), + 'UM-89' => __('Kingman Reef', 'wp-multisite-waas'), + 'LA' => __('Louisiana', 'wp-multisite-waas'), + 'ME' => __('Maine', 'wp-multisite-waas'), + 'MD' => __('Maryland', 'wp-multisite-waas'), + 'MA' => __('Massachusetts', 'wp-multisite-waas'), + 'MI' => __('Michigan', 'wp-multisite-waas'), + 'UM-71' => __('Midway Atoll', 'wp-multisite-waas'), + 'MN' => __('Minnesota', 'wp-multisite-waas'), + 'MS' => __('Mississippi', 'wp-multisite-waas'), + 'MO' => __('Missouri', 'wp-multisite-waas'), + 'MT' => __('Montana', 'wp-multisite-waas'), + 'UM-76' => __('Navassa Island', 'wp-multisite-waas'), + 'NE' => __('Nebraska', 'wp-multisite-waas'), + 'NV' => __('Nevada', 'wp-multisite-waas'), + 'NH' => __('New Hampshire', 'wp-multisite-waas'), + 'NJ' => __('New Jersey', 'wp-multisite-waas'), + 'NM' => __('New Mexico', 'wp-multisite-waas'), + 'NY' => __('New York', 'wp-multisite-waas'), + 'NC' => __('North Carolina', 'wp-multisite-waas'), + 'ND' => __('North Dakota', 'wp-multisite-waas'), + 'MP' => __('Northern Mariana Islands', 'wp-multisite-waas'), + 'OH' => __('Ohio', 'wp-multisite-waas'), + 'OK' => __('Oklahoma', 'wp-multisite-waas'), + 'OR' => __('Oregon', 'wp-multisite-waas'), + 'UM-95' => __('Palmyra Atoll', 'wp-multisite-waas'), + 'PA' => __('Pennsylvania', 'wp-multisite-waas'), + 'PR' => __('Puerto Rico', 'wp-multisite-waas'), + 'RI' => __('Rhode Island', 'wp-multisite-waas'), + 'SC' => __('South Carolina', 'wp-multisite-waas'), + 'SD' => __('South Dakota', 'wp-multisite-waas'), + 'TN' => __('Tennessee', 'wp-multisite-waas'), + 'TX' => __('Texas', 'wp-multisite-waas'), + 'UM' => __('United States Minor Outlying Islands', 'wp-multisite-waas'), + 'VI' => __('United States Virgin Islands', 'wp-multisite-waas'), + 'UT' => __('Utah', 'wp-multisite-waas'), + 'VT' => __('Vermont', 'wp-multisite-waas'), + 'VA' => __('Virginia', 'wp-multisite-waas'), + 'UM-79' => __('Wake Island', 'wp-multisite-waas'), + 'WA' => __('Washington', 'wp-multisite-waas'), + 'WV' => __('West Virginia', 'wp-multisite-waas'), + 'WI' => __('Wisconsin', 'wp-multisite-waas'), + 'WY' => __('Wyoming', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country-za.php b/inc/country/class-country-za.php index ac7a90c..6b5d988 100644 --- a/inc/country/class-country-za.php +++ b/inc/country/class-country-za.php @@ -72,7 +72,7 @@ class Country_ZA extends Country { */ public function get_name() { - return __('South Africa', 'wp-ultimo'); + return __('South Africa', 'wp-multisite-waas'); } /** @@ -84,15 +84,15 @@ class Country_ZA extends Country { protected function states() { return [ - 'EC' => __('Eastern Cape', 'wp-ultimo'), - 'FS' => __('Free State', 'wp-ultimo'), - 'GP' => __('Gauteng', 'wp-ultimo'), - 'KZN' => __('KwaZulu-Natal', 'wp-ultimo'), - 'LP' => __('Limpopo', 'wp-ultimo'), - 'MP' => __('Mpumalanga', 'wp-ultimo'), - 'NW' => __('North West', 'wp-ultimo'), - 'NC' => __('Northern Cape', 'wp-ultimo'), - 'WC' => __('Western Cape', 'wp-ultimo'), + 'EC' => __('Eastern Cape', 'wp-multisite-waas'), + 'FS' => __('Free State', 'wp-multisite-waas'), + 'GP' => __('Gauteng', 'wp-multisite-waas'), + 'KZN' => __('KwaZulu-Natal', 'wp-multisite-waas'), + 'LP' => __('Limpopo', 'wp-multisite-waas'), + 'MP' => __('Mpumalanga', 'wp-multisite-waas'), + 'NW' => __('North West', 'wp-multisite-waas'), + 'NC' => __('Northern Cape', 'wp-multisite-waas'), + 'WC' => __('Western Cape', 'wp-multisite-waas'), ]; } } diff --git a/inc/country/class-country.php b/inc/country/class-country.php index 2c73dc5..9ece069 100644 --- a/inc/country/class-country.php +++ b/inc/country/class-country.php @@ -104,7 +104,7 @@ abstract class Country { $division_name = $this->get_administrative_division_name(); // translators: %s is the name of the administrative division (state, province, etc). - $placeholder_option[''] = '' !== $placeholder ? $placeholder : sprintf(__('Select your %s', 'wp-ultimo'), $division_name); + $placeholder_option[''] = '' !== $placeholder ? $placeholder : sprintf(__('Select your %s', 'wp-multisite-waas'), $division_name); } return array_merge($placeholder_option, $options); @@ -162,7 +162,7 @@ abstract class Country { $placeholder_option = []; if (false !== $placeholder && $options) { - $placeholder_option[''] = '' !== $placeholder ? $placeholder : __('Select your city', 'wp-ultimo'); + $placeholder_option[''] = '' !== $placeholder ? $placeholder : __('Select your city', 'wp-multisite-waas'); } $options = array_combine($options, $options); @@ -195,7 +195,7 @@ abstract class Country { */ public function get_municipality_name($state_code = null, $ucwords = false) { - $name = __('city', 'wp-ultimo'); + $name = __('city', 'wp-multisite-waas'); $name = $ucwords ? ucwords($name) : $name; @@ -217,18 +217,18 @@ abstract class Country { public function get_administrative_division_name($state_code = null, $ucwords = false) { $denominations = [ - 'province' => __('province', 'wp-ultimo'), - 'state' => __('state', 'wp-ultimo'), - 'territory' => __('territory', 'wp-ultimo'), - 'region' => __('region', 'wp-ultimo'), - 'department' => __('department', 'wp-ultimo'), - 'district' => __('district', 'wp-ultimo'), - 'prefecture' => __('prefecture', 'wp-ultimo'), - 'autonomous_community' => __('autonomous community', 'wp-ultimo'), - 'parish' => __('parish', 'wp-ultimo'), - 'county' => __('county', 'wp-ultimo'), - 'division' => __('division', 'wp-ultimo'), - 'unknown' => __('state / province', 'wp-ultimo'), + 'province' => __('province', 'wp-multisite-waas'), + 'state' => __('state', 'wp-multisite-waas'), + 'territory' => __('territory', 'wp-multisite-waas'), + 'region' => __('region', 'wp-multisite-waas'), + 'department' => __('department', 'wp-multisite-waas'), + 'district' => __('district', 'wp-multisite-waas'), + 'prefecture' => __('prefecture', 'wp-multisite-waas'), + 'autonomous_community' => __('autonomous community', 'wp-multisite-waas'), + 'parish' => __('parish', 'wp-multisite-waas'), + 'county' => __('county', 'wp-multisite-waas'), + 'division' => __('division', 'wp-multisite-waas'), + 'unknown' => __('state / province', 'wp-multisite-waas'), ]; $name = wu_get_isset($denominations, $this->state_type, $denominations['unknown']); diff --git a/inc/database/domains/class-domain-stage.php b/inc/database/domains/class-domain-stage.php index d3c862c..13a22a6 100644 --- a/inc/database/domains/class-domain-stage.php +++ b/inc/database/domains/class-domain-stage.php @@ -62,11 +62,11 @@ class Domain_Stage extends Enum { protected function labels() { return [ - static::FAILED => __('DNS Failed', 'wp-ultimo'), - static::CHECKING_DNS => __('Checking DNS', 'wp-ultimo'), - static::CHECKING_SSL => __('Checking SSL', 'wp-ultimo'), - static::DONE => __('Ready', 'wp-ultimo'), - static::DONE_WITHOUT_SSL => __('Ready (without SSL)', 'wp-ultimo'), + static::FAILED => __('DNS Failed', 'wp-multisite-waas'), + static::CHECKING_DNS => __('Checking DNS', 'wp-multisite-waas'), + static::CHECKING_SSL => __('Checking SSL', 'wp-multisite-waas'), + static::DONE => __('Ready', 'wp-multisite-waas'), + static::DONE_WITHOUT_SSL => __('Ready (without SSL)', 'wp-multisite-waas'), ]; } } diff --git a/inc/database/memberships/class-membership-status.php b/inc/database/memberships/class-membership-status.php index 2941bea..77e28dc 100644 --- a/inc/database/memberships/class-membership-status.php +++ b/inc/database/memberships/class-membership-status.php @@ -65,12 +65,12 @@ class Membership_Status extends Enum { protected function labels() { return [ - static::PENDING => __('Pending', 'wp-ultimo'), - static::ACTIVE => __('Active', 'wp-ultimo'), - static::TRIALING => __('Trialing', 'wp-ultimo'), - static::ON_HOLD => __('On Hold', 'wp-ultimo'), - static::EXPIRED => __('Expired', 'wp-ultimo'), - static::CANCELLED => __('Cancelled', 'wp-ultimo'), + static::PENDING => __('Pending', 'wp-multisite-waas'), + static::ACTIVE => __('Active', 'wp-multisite-waas'), + static::TRIALING => __('Trialing', 'wp-multisite-waas'), + static::ON_HOLD => __('On Hold', 'wp-multisite-waas'), + static::EXPIRED => __('Expired', 'wp-multisite-waas'), + static::CANCELLED => __('Cancelled', 'wp-multisite-waas'), ]; } } diff --git a/inc/database/payments/class-payment-status.php b/inc/database/payments/class-payment-status.php index d047c46..2fd6bab 100644 --- a/inc/database/payments/class-payment-status.php +++ b/inc/database/payments/class-payment-status.php @@ -87,13 +87,13 @@ class Payment_Status extends Enum { protected function labels() { return [ - static::PENDING => __('Pending', 'wp-ultimo'), - static::COMPLETED => __('Completed', 'wp-ultimo'), - static::REFUND => __('Refunded', 'wp-ultimo'), - static::PARTIAL_REFUND => __('Partially Refunded', 'wp-ultimo'), - static::PARTIAL => __('Partially Paid', 'wp-ultimo'), - static::FAILED => __('Failed', 'wp-ultimo'), - static::CANCELLED => __('Cancelled', 'wp-ultimo'), + static::PENDING => __('Pending', 'wp-multisite-waas'), + static::COMPLETED => __('Completed', 'wp-multisite-waas'), + static::REFUND => __('Refunded', 'wp-multisite-waas'), + static::PARTIAL_REFUND => __('Partially Refunded', 'wp-multisite-waas'), + static::PARTIAL => __('Partially Paid', 'wp-multisite-waas'), + static::FAILED => __('Failed', 'wp-multisite-waas'), + static::CANCELLED => __('Cancelled', 'wp-multisite-waas'), ]; } } diff --git a/inc/database/products/class-product-type.php b/inc/database/products/class-product-type.php index 371241f..a862b4f 100644 --- a/inc/database/products/class-product-type.php +++ b/inc/database/products/class-product-type.php @@ -56,9 +56,9 @@ class Product_Type extends Enum { protected function labels() { return [ - static::PLAN => __('Plan', 'wp-ultimo'), - static::PACKAGE => __('Package', 'wp-ultimo'), - static::SERVICE => __('Service', 'wp-ultimo'), + static::PLAN => __('Plan', 'wp-multisite-waas'), + static::PACKAGE => __('Package', 'wp-multisite-waas'), + static::SERVICE => __('Service', 'wp-multisite-waas'), ]; } } diff --git a/inc/database/sites/class-site-type.php b/inc/database/sites/class-site-type.php index a53d61d..ac63f45 100644 --- a/inc/database/sites/class-site-type.php +++ b/inc/database/sites/class-site-type.php @@ -65,11 +65,11 @@ class Site_Type extends Enum { protected function labels() { return [ - static::REGULAR => __('Regular Site', 'wp-ultimo'), - static::SITE_TEMPLATE => __('Site Template', 'wp-ultimo'), - static::CUSTOMER_OWNED => __('Customer-Owned', 'wp-ultimo'), - static::PENDING => __('Pending', 'wp-ultimo'), - static::MAIN => __('Main Site', 'wp-ultimo'), + static::REGULAR => __('Regular Site', 'wp-multisite-waas'), + static::SITE_TEMPLATE => __('Site Template', 'wp-multisite-waas'), + static::CUSTOMER_OWNED => __('Customer-Owned', 'wp-multisite-waas'), + static::PENDING => __('Pending', 'wp-multisite-waas'), + static::MAIN => __('Main Site', 'wp-multisite-waas'), ]; } } diff --git a/inc/debug/class-debug.php b/inc/debug/class-debug.php index 37ee3f6..6892864 100644 --- a/inc/debug/class-debug.php +++ b/inc/debug/class-debug.php @@ -72,37 +72,37 @@ class Debug { - + - + - + - + [ - 'title' => __('Customers', 'wp-ultimo'), - 'desc' => __('Toggle to generate customers.', 'wp-ultimo'), + 'title' => __('Customers', 'wp-multisite-waas'), + 'desc' => __('Toggle to generate customers.', 'wp-multisite-waas'), 'type' => 'toggle', 'html_attr' => [ 'v-model' => 'customers', ], ], 'customers_number' => [ - 'title' => __('Number of Customers', 'wp-ultimo'), + 'title' => __('Number of Customers', 'wp-multisite-waas'), 'type' => 'number', 'value' => 10, 'wrapper_html_attr' => [ @@ -179,15 +179,15 @@ class Debug { ], ], 'products' => [ - 'title' => __('Products', 'wp-ultimo'), - 'desc' => __('Toggle to generate products.', 'wp-ultimo'), + 'title' => __('Products', 'wp-multisite-waas'), + 'desc' => __('Toggle to generate products.', 'wp-multisite-waas'), 'type' => 'toggle', 'html_attr' => [ 'v-model' => 'products', ], ], 'products_number' => [ - 'title' => __('Number of Products', 'wp-ultimo'), + 'title' => __('Number of Products', 'wp-multisite-waas'), 'type' => 'number', 'value' => 10, 'wrapper_html_attr' => [ @@ -196,15 +196,15 @@ class Debug { ], ], 'memberships' => [ - 'title' => __('Memberships', 'wp-ultimo'), - 'desc' => __('Toggle to generate memberships.', 'wp-ultimo'), + 'title' => __('Memberships', 'wp-multisite-waas'), + 'desc' => __('Toggle to generate memberships.', 'wp-multisite-waas'), 'type' => 'toggle', 'html_attr' => [ 'v-model' => 'memberships', ], ], 'memberships_number' => [ - 'title' => __('Number of Memberships', 'wp-ultimo'), + 'title' => __('Number of Memberships', 'wp-multisite-waas'), 'type' => 'number', 'value' => 10, 'wrapper_html_attr' => [ @@ -213,15 +213,15 @@ class Debug { ], ], 'sites' => [ - 'title' => __('Sites', 'wp-ultimo'), - 'desc' => __('Toggle to generate sites.', 'wp-ultimo'), + 'title' => __('Sites', 'wp-multisite-waas'), + 'desc' => __('Toggle to generate sites.', 'wp-multisite-waas'), 'type' => 'toggle', 'html_attr' => [ 'v-model' => 'sites', ], ], 'sites_number' => [ - 'title' => __('Number of Sites', 'wp-ultimo'), + 'title' => __('Number of Sites', 'wp-multisite-waas'), 'type' => 'number', 'value' => 10, 'wrapper_html_attr' => [ @@ -230,15 +230,15 @@ class Debug { ], ], 'domains' => [ - 'title' => __('Domains', 'wp-ultimo'), - 'desc' => __('Toggle to generate domains.', 'wp-ultimo'), + 'title' => __('Domains', 'wp-multisite-waas'), + 'desc' => __('Toggle to generate domains.', 'wp-multisite-waas'), 'type' => 'toggle', 'html_attr' => [ 'v-model' => 'domains', ], ], 'domains_number' => [ - 'title' => __('Number of Domains', 'wp-ultimo'), + 'title' => __('Number of Domains', 'wp-multisite-waas'), 'type' => 'number', 'value' => 10, 'wrapper_html_attr' => [ @@ -247,15 +247,15 @@ class Debug { ], ], 'discount_codes' => [ - 'title' => __('Discount Codes', 'wp-ultimo'), - 'desc' => __('Toggle to generate discount codes.', 'wp-ultimo'), + 'title' => __('Discount Codes', 'wp-multisite-waas'), + 'desc' => __('Toggle to generate discount codes.', 'wp-multisite-waas'), 'type' => 'toggle', 'html_attr' => [ 'v-model' => 'discount_codes', ], ], 'discount_codes_number' => [ - 'title' => __('Number of Discount Codes', 'wp-ultimo'), + 'title' => __('Number of Discount Codes', 'wp-multisite-waas'), 'type' => 'number', 'value' => 10, 'wrapper_html_attr' => [ @@ -264,15 +264,15 @@ class Debug { ], ], 'payments' => [ - 'title' => __('Payments', 'wp-ultimo'), - 'desc' => __('Toggle to generate payments.', 'wp-ultimo'), + 'title' => __('Payments', 'wp-multisite-waas'), + 'desc' => __('Toggle to generate payments.', 'wp-multisite-waas'), 'type' => 'toggle', 'html_attr' => [ 'v-model' => 'payments', ], ], 'payments_number' => [ - 'title' => __('Number of Payments', 'wp-ultimo'), + 'title' => __('Number of Payments', 'wp-multisite-waas'), 'type' => 'number', 'value' => 30, 'wrapper_html_attr' => [ @@ -281,7 +281,7 @@ class Debug { ], ], 'submit_button' => [ - 'title' => __('Generate Data →', 'wp-ultimo'), + 'title' => __('Generate Data →', 'wp-multisite-waas'), 'type' => 'submit', 'value' => 'save', 'classes' => 'button button-primary wu-w-full', @@ -404,8 +404,8 @@ class Debug { $fields = [ 'reset_only_fake_data' => [ - 'title' => __('Only reset generated data.', 'wp-ultimo'), - 'desc' => __('Toggle this option to only remove data that was added by the generator previously. Untoggling this option will reset ALL data in WP Multisite WaaS tables.', 'wp-ultimo'), + 'title' => __('Only reset generated data.', 'wp-multisite-waas'), + 'desc' => __('Toggle this option to only remove data that was added by the generator previously. Untoggling this option will reset ALL data in WP Multisite WaaS tables.', 'wp-multisite-waas'), 'type' => 'toggle', 'value' => true, 'html_attr' => [ @@ -413,7 +413,7 @@ class Debug { ], ], 'submit_button' => [ - 'title' => __('Reset Database →', 'wp-ultimo'), + 'title' => __('Reset Database →', 'wp-multisite-waas'), 'type' => 'submit', 'value' => 'save', 'classes' => 'button button-primary wu-w-full', @@ -490,10 +490,10 @@ class Debug { $fields = [ 'reset_note' => [ 'type' => 'note', - 'desc' => __('This action will drop the WP Multisite WaaS database tables and is irreversable.', 'wp-ultimo'), + 'desc' => __('This action will drop the WP Multisite WaaS database tables and is irreversable.', 'wp-multisite-waas'), ], 'submit_button' => [ - 'title' => __('Drop Database Tables →', 'wp-ultimo'), + 'title' => __('Drop Database Tables →', 'wp-multisite-waas'), 'type' => 'submit', 'value' => 'save', 'classes' => 'button button-primary wu-w-full', diff --git a/inc/deprecated/deprecated.php b/inc/deprecated/deprecated.php index 1d694f8..d4a22f2 100644 --- a/inc/deprecated/deprecated.php +++ b/inc/deprecated/deprecated.php @@ -171,8 +171,8 @@ class WU_Page extends \WP_Ultimo\Admin_Pages\Base_Admin_Page { 'parent' => 'wp-ultimo', 'capability' => 'manage_network', 'menu_icon' => 'dashicons-menu', - 'title' => __('Admin Page', 'wp-ultimo'), - 'menu_title' => __('Admin Page', 'wp-ultimo'), + 'title' => __('Admin Page', 'wp-multisite-waas'), + 'menu_title' => __('Admin Page', 'wp-multisite-waas'), ] ); diff --git a/inc/development/query-monitor/panel/class-overview.php b/inc/development/query-monitor/panel/class-overview.php index 7ce5798..e4597d9 100644 --- a/inc/development/query-monitor/panel/class-overview.php +++ b/inc/development/query-monitor/panel/class-overview.php @@ -43,7 +43,7 @@ class Overview extends \QM_Output_Html { */ public function name() { - return __('WP Multisite WaaS', 'wp-ultimo'); + return __('WP Multisite WaaS', 'wp-multisite-waas'); } /** @@ -105,7 +105,7 @@ class Overview extends \QM_Output_Html { $new_menu = [ 'wp-ultimo' => $this->menu( [ - 'title' => esc_html__('WP Multisite WaaS', 'wp-ultimo'), + 'title' => esc_html__('WP Multisite WaaS', 'wp-multisite-waas'), 'id' => 'wp-ultimo', ] ), diff --git a/inc/domain-mapping/class-helper.php b/inc/domain-mapping/class-helper.php index ec0463d..32a46a5 100644 --- a/inc/domain-mapping/class-helper.php +++ b/inc/domain-mapping/class-helper.php @@ -230,7 +230,7 @@ class Helper { // Log the error message. wu_log_add( 'domain-ssl-checks', - sprintf(__('Certificate Invalid: %s', 'wp-ultimo'), $e->getMessage()), + sprintf(__('Certificate Invalid: %s', 'wp-multisite-waas'), $e->getMessage()), LogLevel::ERROR ); } diff --git a/inc/functions/admin.php b/inc/functions/admin.php index 950807a..27642f2 100644 --- a/inc/functions/admin.php +++ b/inc/functions/admin.php @@ -24,7 +24,7 @@ function wu_render_empty_state($args = []) { [ 'message' => __('This is not yet available...'), 'sub_message' => __('We\'re still working on this part of the product.'), - 'link_label' => __('← Go Back', 'wp-ultimo'), + 'link_label' => __('← Go Back', 'wp-multisite-waas'), 'link_url' => 'javascript:history.go(-1)', 'link_classes' => '', 'link_icon' => '', @@ -61,7 +61,7 @@ function wu_responsive_table_row($args = [], $first_row = [], $second_row = []) $args, [ 'id' => '', - 'title' => __('No Title', 'wp-ultimo'), + 'title' => __('No Title', 'wp-multisite-waas'), 'url' => '#', 'status' => '', 'image' => '', diff --git a/inc/functions/countries.php b/inc/functions/countries.php index 8c03251..c3d41a7 100644 --- a/inc/functions/countries.php +++ b/inc/functions/countries.php @@ -20,255 +20,255 @@ function wu_get_countries() { return apply_filters( 'wu_get_countries', [ - 'AF' => __('Afghanistan', 'wp-ultimo'), - 'AX' => __('Åland Islands', 'wp-ultimo'), - 'AL' => __('Albania', 'wp-ultimo'), - 'DZ' => __('Algeria', 'wp-ultimo'), - 'AS' => __('American Samoa', 'wp-ultimo'), - 'AD' => __('Andorra', 'wp-ultimo'), - 'AO' => __('Angola', 'wp-ultimo'), - 'AI' => __('Anguilla', 'wp-ultimo'), - 'AQ' => __('Antarctica', 'wp-ultimo'), - 'AG' => __('Antigua and Barbuda', 'wp-ultimo'), - 'AR' => __('Argentina', 'wp-ultimo'), - 'AM' => __('Armenia', 'wp-ultimo'), - 'AW' => __('Aruba', 'wp-ultimo'), - 'AU' => __('Australia', 'wp-ultimo'), - 'AT' => __('Austria', 'wp-ultimo'), - 'AZ' => __('Azerbaijan', 'wp-ultimo'), - 'BS' => __('Bahamas', 'wp-ultimo'), - 'BH' => __('Bahrain', 'wp-ultimo'), - 'BD' => __('Bangladesh', 'wp-ultimo'), - 'BB' => __('Barbados', 'wp-ultimo'), - 'BY' => __('Belarus', 'wp-ultimo'), - 'BE' => __('Belgium', 'wp-ultimo'), - 'PW' => __('Belau', 'wp-ultimo'), - 'BZ' => __('Belize', 'wp-ultimo'), - 'BJ' => __('Benin', 'wp-ultimo'), - 'BM' => __('Bermuda', 'wp-ultimo'), - 'BT' => __('Bhutan', 'wp-ultimo'), - 'BO' => __('Bolivia', 'wp-ultimo'), - 'BQ' => __('Bonaire, Saint Eustatius and Saba', 'wp-ultimo'), - 'BA' => __('Bosnia and Herzegovina', 'wp-ultimo'), - 'BW' => __('Botswana', 'wp-ultimo'), - 'BV' => __('Bouvet Island', 'wp-ultimo'), - 'BR' => __('Brazil', 'wp-ultimo'), - 'IO' => __('British Indian Ocean Territory', 'wp-ultimo'), - 'VG' => __('British Virgin Islands', 'wp-ultimo'), - 'BN' => __('Brunei', 'wp-ultimo'), - 'BG' => __('Bulgaria', 'wp-ultimo'), - 'BF' => __('Burkina Faso', 'wp-ultimo'), - 'BI' => __('Burundi', 'wp-ultimo'), - 'KH' => __('Cambodia', 'wp-ultimo'), - 'CM' => __('Cameroon', 'wp-ultimo'), - 'CA' => __('Canada', 'wp-ultimo'), - 'CV' => __('Cape Verde', 'wp-ultimo'), - 'KY' => __('Cayman Islands', 'wp-ultimo'), - 'CF' => __('Central African Republic', 'wp-ultimo'), - 'TD' => __('Chad', 'wp-ultimo'), - 'CL' => __('Chile', 'wp-ultimo'), - 'CN' => __('China', 'wp-ultimo'), - 'CX' => __('Christmas Island', 'wp-ultimo'), - 'CC' => __('Cocos (Keeling) Islands', 'wp-ultimo'), - 'CO' => __('Colombia', 'wp-ultimo'), - 'KM' => __('Comoros', 'wp-ultimo'), - 'CG' => __('Congo (Brazzaville)', 'wp-ultimo'), - 'CD' => __('Congo (Kinshasa)', 'wp-ultimo'), - 'CK' => __('Cook Islands', 'wp-ultimo'), - 'CR' => __('Costa Rica', 'wp-ultimo'), - 'HR' => __('Croatia', 'wp-ultimo'), - 'CU' => __('Cuba', 'wp-ultimo'), - 'CW' => __('Curaçao', 'wp-ultimo'), - 'CY' => __('Cyprus', 'wp-ultimo'), - 'CZ' => __('Czech Republic', 'wp-ultimo'), - 'DK' => __('Denmark', 'wp-ultimo'), - 'DJ' => __('Djibouti', 'wp-ultimo'), - 'DM' => __('Dominica', 'wp-ultimo'), - 'DO' => __('Dominican Republic', 'wp-ultimo'), - 'EC' => __('Ecuador', 'wp-ultimo'), - 'EG' => __('Egypt', 'wp-ultimo'), - 'SV' => __('El Salvador', 'wp-ultimo'), - 'GQ' => __('Equatorial Guinea', 'wp-ultimo'), - 'ER' => __('Eritrea', 'wp-ultimo'), - 'EE' => __('Estonia', 'wp-ultimo'), - 'ET' => __('Ethiopia', 'wp-ultimo'), - 'FK' => __('Falkland Islands', 'wp-ultimo'), - 'FO' => __('Faroe Islands', 'wp-ultimo'), - 'FJ' => __('Fiji', 'wp-ultimo'), - 'FI' => __('Finland', 'wp-ultimo'), - 'FR' => __('France', 'wp-ultimo'), - 'GF' => __('French Guiana', 'wp-ultimo'), - 'PF' => __('French Polynesia', 'wp-ultimo'), - 'TF' => __('French Southern Territories', 'wp-ultimo'), - 'GA' => __('Gabon', 'wp-ultimo'), - 'GM' => __('Gambia', 'wp-ultimo'), - 'GE' => __('Georgia', 'wp-ultimo'), - 'DE' => __('Germany', 'wp-ultimo'), - 'GH' => __('Ghana', 'wp-ultimo'), - 'GI' => __('Gibraltar', 'wp-ultimo'), - 'GR' => __('Greece', 'wp-ultimo'), - 'GL' => __('Greenland', 'wp-ultimo'), - 'GD' => __('Grenada', 'wp-ultimo'), - 'GP' => __('Guadeloupe', 'wp-ultimo'), - 'GU' => __('Guam', 'wp-ultimo'), - 'GT' => __('Guatemala', 'wp-ultimo'), - 'GG' => __('Guernsey', 'wp-ultimo'), - 'GN' => __('Guinea', 'wp-ultimo'), - 'GW' => __('Guinea-Bissau', 'wp-ultimo'), - 'GY' => __('Guyana', 'wp-ultimo'), - 'HT' => __('Haiti', 'wp-ultimo'), - 'HM' => __('Heard Island and McDonald Islands', 'wp-ultimo'), - 'HN' => __('Honduras', 'wp-ultimo'), - 'HK' => __('Hong Kong', 'wp-ultimo'), - 'HU' => __('Hungary', 'wp-ultimo'), - 'IS' => __('Iceland', 'wp-ultimo'), - 'IN' => __('India', 'wp-ultimo'), - 'ID' => __('Indonesia', 'wp-ultimo'), - 'IR' => __('Iran', 'wp-ultimo'), - 'IQ' => __('Iraq', 'wp-ultimo'), - 'IE' => __('Ireland', 'wp-ultimo'), - 'IM' => __('Isle of Man', 'wp-ultimo'), - 'IL' => __('Israel', 'wp-ultimo'), - 'IT' => __('Italy', 'wp-ultimo'), - 'CI' => __('Ivory Coast', 'wp-ultimo'), - 'JM' => __('Jamaica', 'wp-ultimo'), - 'JP' => __('Japan', 'wp-ultimo'), - 'JE' => __('Jersey', 'wp-ultimo'), - 'JO' => __('Jordan', 'wp-ultimo'), - 'KZ' => __('Kazakhstan', 'wp-ultimo'), - 'KE' => __('Kenya', 'wp-ultimo'), - 'KI' => __('Kiribati', 'wp-ultimo'), - 'KW' => __('Kuwait', 'wp-ultimo'), - 'KG' => __('Kyrgyzstan', 'wp-ultimo'), - 'LA' => __('Laos', 'wp-ultimo'), - 'LV' => __('Latvia', 'wp-ultimo'), - 'LB' => __('Lebanon', 'wp-ultimo'), - 'LS' => __('Lesotho', 'wp-ultimo'), - 'LR' => __('Liberia', 'wp-ultimo'), - 'LY' => __('Libya', 'wp-ultimo'), - 'LI' => __('Liechtenstein', 'wp-ultimo'), - 'LT' => __('Lithuania', 'wp-ultimo'), - 'LU' => __('Luxembourg', 'wp-ultimo'), - 'MO' => __('Macao S.A.R., China', 'wp-ultimo'), - 'MK' => __('Macedonia', 'wp-ultimo'), - 'MG' => __('Madagascar', 'wp-ultimo'), - 'MW' => __('Malawi', 'wp-ultimo'), - 'MY' => __('Malaysia', 'wp-ultimo'), - 'MV' => __('Maldives', 'wp-ultimo'), - 'ML' => __('Mali', 'wp-ultimo'), - 'MT' => __('Malta', 'wp-ultimo'), - 'MH' => __('Marshall Islands', 'wp-ultimo'), - 'MQ' => __('Martinique', 'wp-ultimo'), - 'MR' => __('Mauritania', 'wp-ultimo'), - 'MU' => __('Mauritius', 'wp-ultimo'), - 'YT' => __('Mayotte', 'wp-ultimo'), - 'MX' => __('Mexico', 'wp-ultimo'), - 'FM' => __('Micronesia', 'wp-ultimo'), - 'MD' => __('Moldova', 'wp-ultimo'), - 'MC' => __('Monaco', 'wp-ultimo'), - 'MN' => __('Mongolia', 'wp-ultimo'), - 'ME' => __('Montenegro', 'wp-ultimo'), - 'MS' => __('Montserrat', 'wp-ultimo'), - 'MA' => __('Morocco', 'wp-ultimo'), - 'MZ' => __('Mozambique', 'wp-ultimo'), - 'MM' => __('Myanmar', 'wp-ultimo'), - 'NA' => __('Namibia', 'wp-ultimo'), - 'NR' => __('Nauru', 'wp-ultimo'), - 'NP' => __('Nepal', 'wp-ultimo'), - 'NL' => __('Netherlands', 'wp-ultimo'), - 'NC' => __('New Caledonia', 'wp-ultimo'), - 'NZ' => __('New Zealand', 'wp-ultimo'), - 'NI' => __('Nicaragua', 'wp-ultimo'), - 'NE' => __('Niger', 'wp-ultimo'), - 'NG' => __('Nigeria', 'wp-ultimo'), - 'NU' => __('Niue', 'wp-ultimo'), - 'NF' => __('Norfolk Island', 'wp-ultimo'), - 'MP' => __('Northern Mariana Islands', 'wp-ultimo'), - 'KP' => __('North Korea', 'wp-ultimo'), - 'NO' => __('Norway', 'wp-ultimo'), - 'OM' => __('Oman', 'wp-ultimo'), - 'PK' => __('Pakistan', 'wp-ultimo'), - 'PS' => __('Palestinian Territory', 'wp-ultimo'), - 'PA' => __('Panama', 'wp-ultimo'), - 'PG' => __('Papua New Guinea', 'wp-ultimo'), - 'PY' => __('Paraguay', 'wp-ultimo'), - 'PE' => __('Peru', 'wp-ultimo'), - 'PH' => __('Philippines', 'wp-ultimo'), - 'PN' => __('Pitcairn', 'wp-ultimo'), - 'PL' => __('Poland', 'wp-ultimo'), - 'PT' => __('Portugal', 'wp-ultimo'), - 'PR' => __('Puerto Rico', 'wp-ultimo'), - 'QA' => __('Qatar', 'wp-ultimo'), - 'RE' => __('Reunion', 'wp-ultimo'), - 'RO' => __('Romania', 'wp-ultimo'), - 'RU' => __('Russia', 'wp-ultimo'), - 'RW' => __('Rwanda', 'wp-ultimo'), - 'BL' => __('Saint Barthélemy', 'wp-ultimo'), - 'SH' => __('Saint Helena', 'wp-ultimo'), - 'KN' => __('Saint Kitts and Nevis', 'wp-ultimo'), - 'LC' => __('Saint Lucia', 'wp-ultimo'), - 'MF' => __('Saint Martin (French part)', 'wp-ultimo'), - 'SX' => __('Saint Martin (Dutch part)', 'wp-ultimo'), - 'PM' => __('Saint Pierre and Miquelon', 'wp-ultimo'), - 'VC' => __('Saint Vincent and the Grenadines', 'wp-ultimo'), - 'SM' => __('San Marino', 'wp-ultimo'), - 'ST' => __('São Tomé and Príncipe', 'wp-ultimo'), - 'SA' => __('Saudi Arabia', 'wp-ultimo'), - 'SN' => __('Senegal', 'wp-ultimo'), - 'RS' => __('Serbia', 'wp-ultimo'), - 'SC' => __('Seychelles', 'wp-ultimo'), - 'SL' => __('Sierra Leone', 'wp-ultimo'), - 'SG' => __('Singapore', 'wp-ultimo'), - 'SK' => __('Slovakia', 'wp-ultimo'), - 'SI' => __('Slovenia', 'wp-ultimo'), - 'SB' => __('Solomon Islands', 'wp-ultimo'), - 'SO' => __('Somalia', 'wp-ultimo'), - 'ZA' => __('South Africa', 'wp-ultimo'), - 'GS' => __('South Georgia/Sandwich Islands', 'wp-ultimo'), - 'KR' => __('South Korea', 'wp-ultimo'), - 'SS' => __('South Sudan', 'wp-ultimo'), - 'ES' => __('Spain', 'wp-ultimo'), - 'LK' => __('Sri Lanka', 'wp-ultimo'), - 'SD' => __('Sudan', 'wp-ultimo'), - 'SR' => __('Suriname', 'wp-ultimo'), - 'SJ' => __('Svalbard and Jan Mayen', 'wp-ultimo'), - 'SZ' => __('Swaziland', 'wp-ultimo'), - 'SE' => __('Sweden', 'wp-ultimo'), - 'CH' => __('Switzerland', 'wp-ultimo'), - 'SY' => __('Syria', 'wp-ultimo'), - 'TW' => __('Taiwan', 'wp-ultimo'), - 'TJ' => __('Tajikistan', 'wp-ultimo'), - 'TZ' => __('Tanzania', 'wp-ultimo'), - 'TH' => __('Thailand', 'wp-ultimo'), - 'TL' => __('Timor-Leste', 'wp-ultimo'), - 'TG' => __('Togo', 'wp-ultimo'), - 'TK' => __('Tokelau', 'wp-ultimo'), - 'TO' => __('Tonga', 'wp-ultimo'), - 'TT' => __('Trinidad and Tobago', 'wp-ultimo'), - 'TN' => __('Tunisia', 'wp-ultimo'), - 'TR' => __('Turkey', 'wp-ultimo'), - 'TM' => __('Turkmenistan', 'wp-ultimo'), - 'TC' => __('Turks and Caicos Islands', 'wp-ultimo'), - 'TV' => __('Tuvalu', 'wp-ultimo'), - 'UG' => __('Uganda', 'wp-ultimo'), - 'UA' => __('Ukraine', 'wp-ultimo'), - 'AE' => __('United Arab Emirates', 'wp-ultimo'), - 'GB' => __('United Kingdom (UK)', 'wp-ultimo'), - 'US' => __('United States (US)', 'wp-ultimo'), - 'UM' => __('United States (US) Minor Outlying Islands', 'wp-ultimo'), - 'VI' => __('United States (US) Virgin Islands', 'wp-ultimo'), - 'UY' => __('Uruguay', 'wp-ultimo'), - 'UZ' => __('Uzbekistan', 'wp-ultimo'), - 'VU' => __('Vanuatu', 'wp-ultimo'), - 'VA' => __('Vatican', 'wp-ultimo'), - 'VE' => __('Venezuela', 'wp-ultimo'), - 'VN' => __('Vietnam', 'wp-ultimo'), - 'WF' => __('Wallis and Futuna', 'wp-ultimo'), - 'EH' => __('Western Sahara', 'wp-ultimo'), - 'WS' => __('Samoa', 'wp-ultimo'), - 'YE' => __('Yemen', 'wp-ultimo'), - 'ZM' => __('Zambia', 'wp-ultimo'), - 'ZW' => __('Zimbabwe', 'wp-ultimo'), + 'AF' => __('Afghanistan', 'wp-multisite-waas'), + 'AX' => __('Åland Islands', 'wp-multisite-waas'), + 'AL' => __('Albania', 'wp-multisite-waas'), + 'DZ' => __('Algeria', 'wp-multisite-waas'), + 'AS' => __('American Samoa', 'wp-multisite-waas'), + 'AD' => __('Andorra', 'wp-multisite-waas'), + 'AO' => __('Angola', 'wp-multisite-waas'), + 'AI' => __('Anguilla', 'wp-multisite-waas'), + 'AQ' => __('Antarctica', 'wp-multisite-waas'), + 'AG' => __('Antigua and Barbuda', 'wp-multisite-waas'), + 'AR' => __('Argentina', 'wp-multisite-waas'), + 'AM' => __('Armenia', 'wp-multisite-waas'), + 'AW' => __('Aruba', 'wp-multisite-waas'), + 'AU' => __('Australia', 'wp-multisite-waas'), + 'AT' => __('Austria', 'wp-multisite-waas'), + 'AZ' => __('Azerbaijan', 'wp-multisite-waas'), + 'BS' => __('Bahamas', 'wp-multisite-waas'), + 'BH' => __('Bahrain', 'wp-multisite-waas'), + 'BD' => __('Bangladesh', 'wp-multisite-waas'), + 'BB' => __('Barbados', 'wp-multisite-waas'), + 'BY' => __('Belarus', 'wp-multisite-waas'), + 'BE' => __('Belgium', 'wp-multisite-waas'), + 'PW' => __('Belau', 'wp-multisite-waas'), + 'BZ' => __('Belize', 'wp-multisite-waas'), + 'BJ' => __('Benin', 'wp-multisite-waas'), + 'BM' => __('Bermuda', 'wp-multisite-waas'), + 'BT' => __('Bhutan', 'wp-multisite-waas'), + 'BO' => __('Bolivia', 'wp-multisite-waas'), + 'BQ' => __('Bonaire, Saint Eustatius and Saba', 'wp-multisite-waas'), + 'BA' => __('Bosnia and Herzegovina', 'wp-multisite-waas'), + 'BW' => __('Botswana', 'wp-multisite-waas'), + 'BV' => __('Bouvet Island', 'wp-multisite-waas'), + 'BR' => __('Brazil', 'wp-multisite-waas'), + 'IO' => __('British Indian Ocean Territory', 'wp-multisite-waas'), + 'VG' => __('British Virgin Islands', 'wp-multisite-waas'), + 'BN' => __('Brunei', 'wp-multisite-waas'), + 'BG' => __('Bulgaria', 'wp-multisite-waas'), + 'BF' => __('Burkina Faso', 'wp-multisite-waas'), + 'BI' => __('Burundi', 'wp-multisite-waas'), + 'KH' => __('Cambodia', 'wp-multisite-waas'), + 'CM' => __('Cameroon', 'wp-multisite-waas'), + 'CA' => __('Canada', 'wp-multisite-waas'), + 'CV' => __('Cape Verde', 'wp-multisite-waas'), + 'KY' => __('Cayman Islands', 'wp-multisite-waas'), + 'CF' => __('Central African Republic', 'wp-multisite-waas'), + 'TD' => __('Chad', 'wp-multisite-waas'), + 'CL' => __('Chile', 'wp-multisite-waas'), + 'CN' => __('China', 'wp-multisite-waas'), + 'CX' => __('Christmas Island', 'wp-multisite-waas'), + 'CC' => __('Cocos (Keeling) Islands', 'wp-multisite-waas'), + 'CO' => __('Colombia', 'wp-multisite-waas'), + 'KM' => __('Comoros', 'wp-multisite-waas'), + 'CG' => __('Congo (Brazzaville)', 'wp-multisite-waas'), + 'CD' => __('Congo (Kinshasa)', 'wp-multisite-waas'), + 'CK' => __('Cook Islands', 'wp-multisite-waas'), + 'CR' => __('Costa Rica', 'wp-multisite-waas'), + 'HR' => __('Croatia', 'wp-multisite-waas'), + 'CU' => __('Cuba', 'wp-multisite-waas'), + 'CW' => __('Curaçao', 'wp-multisite-waas'), + 'CY' => __('Cyprus', 'wp-multisite-waas'), + 'CZ' => __('Czech Republic', 'wp-multisite-waas'), + 'DK' => __('Denmark', 'wp-multisite-waas'), + 'DJ' => __('Djibouti', 'wp-multisite-waas'), + 'DM' => __('Dominica', 'wp-multisite-waas'), + 'DO' => __('Dominican Republic', 'wp-multisite-waas'), + 'EC' => __('Ecuador', 'wp-multisite-waas'), + 'EG' => __('Egypt', 'wp-multisite-waas'), + 'SV' => __('El Salvador', 'wp-multisite-waas'), + 'GQ' => __('Equatorial Guinea', 'wp-multisite-waas'), + 'ER' => __('Eritrea', 'wp-multisite-waas'), + 'EE' => __('Estonia', 'wp-multisite-waas'), + 'ET' => __('Ethiopia', 'wp-multisite-waas'), + 'FK' => __('Falkland Islands', 'wp-multisite-waas'), + 'FO' => __('Faroe Islands', 'wp-multisite-waas'), + 'FJ' => __('Fiji', 'wp-multisite-waas'), + 'FI' => __('Finland', 'wp-multisite-waas'), + 'FR' => __('France', 'wp-multisite-waas'), + 'GF' => __('French Guiana', 'wp-multisite-waas'), + 'PF' => __('French Polynesia', 'wp-multisite-waas'), + 'TF' => __('French Southern Territories', 'wp-multisite-waas'), + 'GA' => __('Gabon', 'wp-multisite-waas'), + 'GM' => __('Gambia', 'wp-multisite-waas'), + 'GE' => __('Georgia', 'wp-multisite-waas'), + 'DE' => __('Germany', 'wp-multisite-waas'), + 'GH' => __('Ghana', 'wp-multisite-waas'), + 'GI' => __('Gibraltar', 'wp-multisite-waas'), + 'GR' => __('Greece', 'wp-multisite-waas'), + 'GL' => __('Greenland', 'wp-multisite-waas'), + 'GD' => __('Grenada', 'wp-multisite-waas'), + 'GP' => __('Guadeloupe', 'wp-multisite-waas'), + 'GU' => __('Guam', 'wp-multisite-waas'), + 'GT' => __('Guatemala', 'wp-multisite-waas'), + 'GG' => __('Guernsey', 'wp-multisite-waas'), + 'GN' => __('Guinea', 'wp-multisite-waas'), + 'GW' => __('Guinea-Bissau', 'wp-multisite-waas'), + 'GY' => __('Guyana', 'wp-multisite-waas'), + 'HT' => __('Haiti', 'wp-multisite-waas'), + 'HM' => __('Heard Island and McDonald Islands', 'wp-multisite-waas'), + 'HN' => __('Honduras', 'wp-multisite-waas'), + 'HK' => __('Hong Kong', 'wp-multisite-waas'), + 'HU' => __('Hungary', 'wp-multisite-waas'), + 'IS' => __('Iceland', 'wp-multisite-waas'), + 'IN' => __('India', 'wp-multisite-waas'), + 'ID' => __('Indonesia', 'wp-multisite-waas'), + 'IR' => __('Iran', 'wp-multisite-waas'), + 'IQ' => __('Iraq', 'wp-multisite-waas'), + 'IE' => __('Ireland', 'wp-multisite-waas'), + 'IM' => __('Isle of Man', 'wp-multisite-waas'), + 'IL' => __('Israel', 'wp-multisite-waas'), + 'IT' => __('Italy', 'wp-multisite-waas'), + 'CI' => __('Ivory Coast', 'wp-multisite-waas'), + 'JM' => __('Jamaica', 'wp-multisite-waas'), + 'JP' => __('Japan', 'wp-multisite-waas'), + 'JE' => __('Jersey', 'wp-multisite-waas'), + 'JO' => __('Jordan', 'wp-multisite-waas'), + 'KZ' => __('Kazakhstan', 'wp-multisite-waas'), + 'KE' => __('Kenya', 'wp-multisite-waas'), + 'KI' => __('Kiribati', 'wp-multisite-waas'), + 'KW' => __('Kuwait', 'wp-multisite-waas'), + 'KG' => __('Kyrgyzstan', 'wp-multisite-waas'), + 'LA' => __('Laos', 'wp-multisite-waas'), + 'LV' => __('Latvia', 'wp-multisite-waas'), + 'LB' => __('Lebanon', 'wp-multisite-waas'), + 'LS' => __('Lesotho', 'wp-multisite-waas'), + 'LR' => __('Liberia', 'wp-multisite-waas'), + 'LY' => __('Libya', 'wp-multisite-waas'), + 'LI' => __('Liechtenstein', 'wp-multisite-waas'), + 'LT' => __('Lithuania', 'wp-multisite-waas'), + 'LU' => __('Luxembourg', 'wp-multisite-waas'), + 'MO' => __('Macao S.A.R., China', 'wp-multisite-waas'), + 'MK' => __('Macedonia', 'wp-multisite-waas'), + 'MG' => __('Madagascar', 'wp-multisite-waas'), + 'MW' => __('Malawi', 'wp-multisite-waas'), + 'MY' => __('Malaysia', 'wp-multisite-waas'), + 'MV' => __('Maldives', 'wp-multisite-waas'), + 'ML' => __('Mali', 'wp-multisite-waas'), + 'MT' => __('Malta', 'wp-multisite-waas'), + 'MH' => __('Marshall Islands', 'wp-multisite-waas'), + 'MQ' => __('Martinique', 'wp-multisite-waas'), + 'MR' => __('Mauritania', 'wp-multisite-waas'), + 'MU' => __('Mauritius', 'wp-multisite-waas'), + 'YT' => __('Mayotte', 'wp-multisite-waas'), + 'MX' => __('Mexico', 'wp-multisite-waas'), + 'FM' => __('Micronesia', 'wp-multisite-waas'), + 'MD' => __('Moldova', 'wp-multisite-waas'), + 'MC' => __('Monaco', 'wp-multisite-waas'), + 'MN' => __('Mongolia', 'wp-multisite-waas'), + 'ME' => __('Montenegro', 'wp-multisite-waas'), + 'MS' => __('Montserrat', 'wp-multisite-waas'), + 'MA' => __('Morocco', 'wp-multisite-waas'), + 'MZ' => __('Mozambique', 'wp-multisite-waas'), + 'MM' => __('Myanmar', 'wp-multisite-waas'), + 'NA' => __('Namibia', 'wp-multisite-waas'), + 'NR' => __('Nauru', 'wp-multisite-waas'), + 'NP' => __('Nepal', 'wp-multisite-waas'), + 'NL' => __('Netherlands', 'wp-multisite-waas'), + 'NC' => __('New Caledonia', 'wp-multisite-waas'), + 'NZ' => __('New Zealand', 'wp-multisite-waas'), + 'NI' => __('Nicaragua', 'wp-multisite-waas'), + 'NE' => __('Niger', 'wp-multisite-waas'), + 'NG' => __('Nigeria', 'wp-multisite-waas'), + 'NU' => __('Niue', 'wp-multisite-waas'), + 'NF' => __('Norfolk Island', 'wp-multisite-waas'), + 'MP' => __('Northern Mariana Islands', 'wp-multisite-waas'), + 'KP' => __('North Korea', 'wp-multisite-waas'), + 'NO' => __('Norway', 'wp-multisite-waas'), + 'OM' => __('Oman', 'wp-multisite-waas'), + 'PK' => __('Pakistan', 'wp-multisite-waas'), + 'PS' => __('Palestinian Territory', 'wp-multisite-waas'), + 'PA' => __('Panama', 'wp-multisite-waas'), + 'PG' => __('Papua New Guinea', 'wp-multisite-waas'), + 'PY' => __('Paraguay', 'wp-multisite-waas'), + 'PE' => __('Peru', 'wp-multisite-waas'), + 'PH' => __('Philippines', 'wp-multisite-waas'), + 'PN' => __('Pitcairn', 'wp-multisite-waas'), + 'PL' => __('Poland', 'wp-multisite-waas'), + 'PT' => __('Portugal', 'wp-multisite-waas'), + 'PR' => __('Puerto Rico', 'wp-multisite-waas'), + 'QA' => __('Qatar', 'wp-multisite-waas'), + 'RE' => __('Reunion', 'wp-multisite-waas'), + 'RO' => __('Romania', 'wp-multisite-waas'), + 'RU' => __('Russia', 'wp-multisite-waas'), + 'RW' => __('Rwanda', 'wp-multisite-waas'), + 'BL' => __('Saint Barthélemy', 'wp-multisite-waas'), + 'SH' => __('Saint Helena', 'wp-multisite-waas'), + 'KN' => __('Saint Kitts and Nevis', 'wp-multisite-waas'), + 'LC' => __('Saint Lucia', 'wp-multisite-waas'), + 'MF' => __('Saint Martin (French part)', 'wp-multisite-waas'), + 'SX' => __('Saint Martin (Dutch part)', 'wp-multisite-waas'), + 'PM' => __('Saint Pierre and Miquelon', 'wp-multisite-waas'), + 'VC' => __('Saint Vincent and the Grenadines', 'wp-multisite-waas'), + 'SM' => __('San Marino', 'wp-multisite-waas'), + 'ST' => __('São Tomé and Príncipe', 'wp-multisite-waas'), + 'SA' => __('Saudi Arabia', 'wp-multisite-waas'), + 'SN' => __('Senegal', 'wp-multisite-waas'), + 'RS' => __('Serbia', 'wp-multisite-waas'), + 'SC' => __('Seychelles', 'wp-multisite-waas'), + 'SL' => __('Sierra Leone', 'wp-multisite-waas'), + 'SG' => __('Singapore', 'wp-multisite-waas'), + 'SK' => __('Slovakia', 'wp-multisite-waas'), + 'SI' => __('Slovenia', 'wp-multisite-waas'), + 'SB' => __('Solomon Islands', 'wp-multisite-waas'), + 'SO' => __('Somalia', 'wp-multisite-waas'), + 'ZA' => __('South Africa', 'wp-multisite-waas'), + 'GS' => __('South Georgia/Sandwich Islands', 'wp-multisite-waas'), + 'KR' => __('South Korea', 'wp-multisite-waas'), + 'SS' => __('South Sudan', 'wp-multisite-waas'), + 'ES' => __('Spain', 'wp-multisite-waas'), + 'LK' => __('Sri Lanka', 'wp-multisite-waas'), + 'SD' => __('Sudan', 'wp-multisite-waas'), + 'SR' => __('Suriname', 'wp-multisite-waas'), + 'SJ' => __('Svalbard and Jan Mayen', 'wp-multisite-waas'), + 'SZ' => __('Swaziland', 'wp-multisite-waas'), + 'SE' => __('Sweden', 'wp-multisite-waas'), + 'CH' => __('Switzerland', 'wp-multisite-waas'), + 'SY' => __('Syria', 'wp-multisite-waas'), + 'TW' => __('Taiwan', 'wp-multisite-waas'), + 'TJ' => __('Tajikistan', 'wp-multisite-waas'), + 'TZ' => __('Tanzania', 'wp-multisite-waas'), + 'TH' => __('Thailand', 'wp-multisite-waas'), + 'TL' => __('Timor-Leste', 'wp-multisite-waas'), + 'TG' => __('Togo', 'wp-multisite-waas'), + 'TK' => __('Tokelau', 'wp-multisite-waas'), + 'TO' => __('Tonga', 'wp-multisite-waas'), + 'TT' => __('Trinidad and Tobago', 'wp-multisite-waas'), + 'TN' => __('Tunisia', 'wp-multisite-waas'), + 'TR' => __('Turkey', 'wp-multisite-waas'), + 'TM' => __('Turkmenistan', 'wp-multisite-waas'), + 'TC' => __('Turks and Caicos Islands', 'wp-multisite-waas'), + 'TV' => __('Tuvalu', 'wp-multisite-waas'), + 'UG' => __('Uganda', 'wp-multisite-waas'), + 'UA' => __('Ukraine', 'wp-multisite-waas'), + 'AE' => __('United Arab Emirates', 'wp-multisite-waas'), + 'GB' => __('United Kingdom (UK)', 'wp-multisite-waas'), + 'US' => __('United States (US)', 'wp-multisite-waas'), + 'UM' => __('United States (US) Minor Outlying Islands', 'wp-multisite-waas'), + 'VI' => __('United States (US) Virgin Islands', 'wp-multisite-waas'), + 'UY' => __('Uruguay', 'wp-multisite-waas'), + 'UZ' => __('Uzbekistan', 'wp-multisite-waas'), + 'VU' => __('Vanuatu', 'wp-multisite-waas'), + 'VA' => __('Vatican', 'wp-multisite-waas'), + 'VE' => __('Venezuela', 'wp-multisite-waas'), + 'VN' => __('Vietnam', 'wp-multisite-waas'), + 'WF' => __('Wallis and Futuna', 'wp-multisite-waas'), + 'EH' => __('Western Sahara', 'wp-multisite-waas'), + 'WS' => __('Samoa', 'wp-multisite-waas'), + 'YE' => __('Yemen', 'wp-multisite-waas'), + 'ZM' => __('Zambia', 'wp-multisite-waas'), + 'ZW' => __('Zimbabwe', 'wp-multisite-waas'), ] ); } @@ -283,7 +283,7 @@ function wu_get_countries_as_options() { return array_merge( [ - '' => __('Select Country', 'wp-ultimo'), + '' => __('Select Country', 'wp-multisite-waas'), ], wu_get_countries() ); @@ -397,7 +397,7 @@ function wu_get_country_cities($country_code, $states, $key_name = 'id', $value_ */ function wu_get_country_name($country_code) { - $country_name = wu_get_isset(wu_get_countries(), $country_code, __('Not found', 'wp-ultimo')); + $country_name = wu_get_isset(wu_get_countries(), $country_code, __('Not found', 'wp-multisite-waas')); return apply_filters('wu_get_country_name', $country_name, $country_code); } diff --git a/inc/functions/currency.php b/inc/functions/currency.php index 70f6856..fbf8bbc 100644 --- a/inc/functions/currency.php +++ b/inc/functions/currency.php @@ -19,55 +19,55 @@ function wu_get_currencies(): array { $currencies = apply_filters( 'wu_currencies', [ - 'AED' => __('United Arab Emirates Dirham', 'wp-ultimo'), - 'ARS' => __('Argentine Peso', 'wp-ultimo'), - 'AUD' => __('Australian Dollars', 'wp-ultimo'), - 'BDT' => __('Bangladeshi Taka', 'wp-ultimo'), - 'BRL' => __('Brazilian Real', 'wp-ultimo'), - 'BGN' => __('Bulgarian Lev', 'wp-ultimo'), - 'CAD' => __('Canadian Dollars', 'wp-ultimo'), - 'CLP' => __('Chilean Peso', 'wp-ultimo'), - 'CNY' => __('Chinese Yuan', 'wp-ultimo'), - 'COP' => __('Colombian Peso', 'wp-ultimo'), - 'CZK' => __('Czech Koruna', 'wp-ultimo'), - 'DKK' => __('Danish Krone', 'wp-ultimo'), - 'DOP' => __('Dominican Peso', 'wp-ultimo'), - 'EUR' => __('Euros', 'wp-ultimo'), - 'HKD' => __('Hong Kong Dollar', 'wp-ultimo'), - 'HRK' => __('Croatia kuna', 'wp-ultimo'), - 'HUF' => __('Hungarian Forint', 'wp-ultimo'), - 'ISK' => __('Icelandic krona', 'wp-ultimo'), - 'IDR' => __('Indonesia Rupiah', 'wp-ultimo'), - 'INR' => __('Indian Rupee', 'wp-ultimo'), - 'NPR' => __('Nepali Rupee', 'wp-ultimo'), - 'ILS' => __('Israeli Shekel', 'wp-ultimo'), - 'JPY' => __('Japanese Yen', 'wp-ultimo'), - 'KES' => __('Kenyan Shilling', 'wp-ultimo'), - 'KIP' => __('Lao Kip', 'wp-ultimo'), - 'KRW' => __('South Korean Won', 'wp-ultimo'), - 'MYR' => __('Malaysian Ringgits', 'wp-ultimo'), - 'MXN' => __('Mexican Peso', 'wp-ultimo'), - 'NGN' => __('Nigerian Naira', 'wp-ultimo'), - 'NOK' => __('Norwegian Krone', 'wp-ultimo'), - 'NZD' => __('New Zealand Dollar', 'wp-ultimo'), - 'PYG' => __('Paraguayan Guaraní', 'wp-ultimo'), - 'PHP' => __('Philippine Pesos', 'wp-ultimo'), - 'PLN' => __('Polish Zloty', 'wp-ultimo'), - 'GBP' => __('Pounds Sterling', 'wp-ultimo'), - 'RON' => __('Romanian Leu', 'wp-ultimo'), - 'RUB' => __('Russian Ruble', 'wp-ultimo'), - 'SGD' => __('Singapore Dollar', 'wp-ultimo'), - 'ZAR' => __('South African rand', 'wp-ultimo'), - 'SAR' => __('Saudi Riyal', 'wp-ultimo'), - 'SEK' => __('Swedish Krona', 'wp-ultimo'), - 'CHF' => __('Swiss Franc', 'wp-ultimo'), - 'TWD' => __('Taiwan New Dollars', 'wp-ultimo'), - 'THB' => __('Thai Baht', 'wp-ultimo'), - 'TRY' => __('Turkish Lira', 'wp-ultimo'), - 'UAH' => __('Ukrainian Hryvnia', 'wp-ultimo'), - 'USD' => __('US Dollars', 'wp-ultimo'), - 'VND' => __('Vietnamese Dong', 'wp-ultimo'), - 'EGP' => __('Egyptian Pound', 'wp-ultimo'), + 'AED' => __('United Arab Emirates Dirham', 'wp-multisite-waas'), + 'ARS' => __('Argentine Peso', 'wp-multisite-waas'), + 'AUD' => __('Australian Dollars', 'wp-multisite-waas'), + 'BDT' => __('Bangladeshi Taka', 'wp-multisite-waas'), + 'BRL' => __('Brazilian Real', 'wp-multisite-waas'), + 'BGN' => __('Bulgarian Lev', 'wp-multisite-waas'), + 'CAD' => __('Canadian Dollars', 'wp-multisite-waas'), + 'CLP' => __('Chilean Peso', 'wp-multisite-waas'), + 'CNY' => __('Chinese Yuan', 'wp-multisite-waas'), + 'COP' => __('Colombian Peso', 'wp-multisite-waas'), + 'CZK' => __('Czech Koruna', 'wp-multisite-waas'), + 'DKK' => __('Danish Krone', 'wp-multisite-waas'), + 'DOP' => __('Dominican Peso', 'wp-multisite-waas'), + 'EUR' => __('Euros', 'wp-multisite-waas'), + 'HKD' => __('Hong Kong Dollar', 'wp-multisite-waas'), + 'HRK' => __('Croatia kuna', 'wp-multisite-waas'), + 'HUF' => __('Hungarian Forint', 'wp-multisite-waas'), + 'ISK' => __('Icelandic krona', 'wp-multisite-waas'), + 'IDR' => __('Indonesia Rupiah', 'wp-multisite-waas'), + 'INR' => __('Indian Rupee', 'wp-multisite-waas'), + 'NPR' => __('Nepali Rupee', 'wp-multisite-waas'), + 'ILS' => __('Israeli Shekel', 'wp-multisite-waas'), + 'JPY' => __('Japanese Yen', 'wp-multisite-waas'), + 'KES' => __('Kenyan Shilling', 'wp-multisite-waas'), + 'KIP' => __('Lao Kip', 'wp-multisite-waas'), + 'KRW' => __('South Korean Won', 'wp-multisite-waas'), + 'MYR' => __('Malaysian Ringgits', 'wp-multisite-waas'), + 'MXN' => __('Mexican Peso', 'wp-multisite-waas'), + 'NGN' => __('Nigerian Naira', 'wp-multisite-waas'), + 'NOK' => __('Norwegian Krone', 'wp-multisite-waas'), + 'NZD' => __('New Zealand Dollar', 'wp-multisite-waas'), + 'PYG' => __('Paraguayan Guaraní', 'wp-multisite-waas'), + 'PHP' => __('Philippine Pesos', 'wp-multisite-waas'), + 'PLN' => __('Polish Zloty', 'wp-multisite-waas'), + 'GBP' => __('Pounds Sterling', 'wp-multisite-waas'), + 'RON' => __('Romanian Leu', 'wp-multisite-waas'), + 'RUB' => __('Russian Ruble', 'wp-multisite-waas'), + 'SGD' => __('Singapore Dollar', 'wp-multisite-waas'), + 'ZAR' => __('South African rand', 'wp-multisite-waas'), + 'SAR' => __('Saudi Riyal', 'wp-multisite-waas'), + 'SEK' => __('Swedish Krona', 'wp-multisite-waas'), + 'CHF' => __('Swiss Franc', 'wp-multisite-waas'), + 'TWD' => __('Taiwan New Dollars', 'wp-multisite-waas'), + 'THB' => __('Thai Baht', 'wp-multisite-waas'), + 'TRY' => __('Turkish Lira', 'wp-multisite-waas'), + 'UAH' => __('Ukrainian Hryvnia', 'wp-multisite-waas'), + 'USD' => __('US Dollars', 'wp-multisite-waas'), + 'VND' => __('Vietnamese Dong', 'wp-multisite-waas'), + 'EGP' => __('Egyptian Pound', 'wp-multisite-waas'), ] ); diff --git a/inc/functions/customer.php b/inc/functions/customer.php index c581ffe..bdd0312 100644 --- a/inc/functions/customer.php +++ b/inc/functions/customer.php @@ -160,14 +160,14 @@ function wu_create_customer($customer_data) { } if (false === $user_id) { - return new \WP_Error('user', __('We were not able to create a new user with the provided username and email address combination.', 'wp-ultimo'), $customer_data); + return new \WP_Error('user', __('We were not able to create a new user with the provided username and email address combination.', 'wp-multisite-waas'), $customer_data); } } else { $user_id = $user->ID; } if ( ! get_userdata($user_id)) { - return new \WP_Error('user_id', __('We were not able to find a user with the given user_id.', 'wp-ultimo'), $customer_data); + return new \WP_Error('user_id', __('We were not able to find a user with the given user_id.', 'wp-multisite-waas'), $customer_data); } $customer = new Customer( diff --git a/inc/functions/date.php b/inc/functions/date.php index f3d9cea..2b7d11d 100644 --- a/inc/functions/date.php +++ b/inc/functions/date.php @@ -112,13 +112,13 @@ function wu_filter_duration_unit($unit, $length) { switch ($unit) { case 'day': - $new_unit = $length > 1 ? __('Days', 'wp-ultimo') : __('Day', 'wp-ultimo'); + $new_unit = $length > 1 ? __('Days', 'wp-multisite-waas') : __('Day', 'wp-multisite-waas'); break; case 'month': - $new_unit = $length > 1 ? __('Months', 'wp-ultimo') : __('Month', 'wp-ultimo'); + $new_unit = $length > 1 ? __('Months', 'wp-multisite-waas') : __('Month', 'wp-multisite-waas'); break; case 'year': - $new_unit = $length > 1 ? __('Years', 'wp-ultimo') : __('Year', 'wp-ultimo'); + $new_unit = $length > 1 ? __('Years', 'wp-multisite-waas') : __('Year', 'wp-multisite-waas'); break; default: $new_unit = $new_unit; @@ -146,14 +146,14 @@ function wu_human_time_diff($from, $limit = '-5 days', $to = false): string { if ($timestamp_from <= $limit) { // translators: %s: date. - return sprintf(__('on %s', 'wp-ultimo'), date_i18n(get_option('date_format'), $timestamp_from)); + return sprintf(__('on %s', 'wp-multisite-waas'), date_i18n(get_option('date_format'), $timestamp_from)); } if (false === $to) { $to = wu_get_current_time('timestamp'); // phpcs:ignore } - $placeholder = wu_get_current_time('timestamp') > $timestamp_from ? __('%s ago', 'wp-ultimo') : __('In %s', 'wp-ultimo'); // phpcs:ignore + $placeholder = wu_get_current_time('timestamp') > $timestamp_from ? __('%s ago', 'wp-multisite-waas') : __('In %s', 'wp-multisite-waas'); // phpcs:ignore return sprintf($placeholder, human_time_diff($timestamp_from, $to)); } diff --git a/inc/functions/gateway.php b/inc/functions/gateway.php index 8fdacff..30e7bf6 100644 --- a/inc/functions/gateway.php +++ b/inc/functions/gateway.php @@ -26,7 +26,7 @@ use WP_Ultimo\Managers\Gateway_Manager; function wu_register_gateway($id, $title, $desc, $class_name, $hidden = false) { if ( ! did_action('wu_register_gateways')) { - _doing_it_wrong(__FUNCTION__, __('You should not register new payment gateways before the wu_register_gateways hook.', 'wp-ultimo'), '2.0.0'); + _doing_it_wrong(__FUNCTION__, __('You should not register new payment gateways before the wu_register_gateways hook.', 'wp-multisite-waas'), '2.0.0'); } return Gateway_Manager::get_instance()->register_gateway($id, $title, $desc, $class_name, $hidden); diff --git a/inc/functions/legacy.php b/inc/functions/legacy.php index 6c1b387..4f6140d 100644 --- a/inc/functions/legacy.php +++ b/inc/functions/legacy.php @@ -336,7 +336,7 @@ function wu_print_signup_field($field_slug, $field, $results) { diff --git a/inc/functions/limitations.php b/inc/functions/limitations.php index e1e4b37..f1f0d3f 100644 --- a/inc/functions/limitations.php +++ b/inc/functions/limitations.php @@ -65,7 +65,7 @@ function wu_has_product($product_slug, $blocking = false, $site_id = '') { $site = wu_get_site($site_id); if (empty($site)) { - return new \WP_Error('site-not-found', __('Invalid site ID', 'wp-ultimo')); + return new \WP_Error('site-not-found', __('Invalid site ID', 'wp-multisite-waas')); } $membership = $site->get_membership(); @@ -104,7 +104,7 @@ function wu_is_membership_active($site_id = '') { $site = wu_get_site($site_id); if (empty($site)) { - return new \WP_Error('site-not-found', __('Invalid site ID', 'wp-ultimo')); + return new \WP_Error('site-not-found', __('Invalid site ID', 'wp-multisite-waas')); } $membership = $site->get_membership(); diff --git a/inc/functions/markup-helpers.php b/inc/functions/markup-helpers.php index 3faa570..7be894d 100644 --- a/inc/functions/markup-helpers.php +++ b/inc/functions/markup-helpers.php @@ -132,7 +132,7 @@ function wu_tooltip_text($tooltip): string { function wu_preview_image($image_url, $label = false): string { if (empty($label)) { - $label = __('Preview', 'wp-ultimo'); + $label = __('Preview', 'wp-multisite-waas'); } return sprintf(' %s %s', $image_url, "", $label); diff --git a/inc/functions/membership.php b/inc/functions/membership.php index 6b3afb7..9fa8337 100644 --- a/inc/functions/membership.php +++ b/inc/functions/membership.php @@ -374,14 +374,14 @@ function wu_get_membership_new_cart($membership) { $difference = $membership->get_amount() - $cart->get_recurring_total(); if (round(abs($difference), wu_currency_decimal_filter()) > 0) { - $type_translate = $difference < 0 ? __('credit', 'wp-ultimo') : __('debit', 'wp-ultimo'); + $type_translate = $difference < 0 ? __('credit', 'wp-multisite-waas') : __('debit', 'wp-multisite-waas'); $line_item_params = [ 'hash' => 'ADJUSTMENT', 'type' => $difference < 0 ? 'credit' : 'fee', // translators: %s is the type of adjustment (credit or debit). - 'title' => sprintf(__('Adjustment %s', 'wp-ultimo'), $type_translate), - 'description' => __('Amount adjustment based on previous deal.', 'wp-ultimo'), + 'title' => sprintf(__('Adjustment %s', 'wp-multisite-waas'), $type_translate), + 'description' => __('Amount adjustment based on previous deal.', 'wp-multisite-waas'), 'unit_price' => $difference, 'discountable' => false, 'taxable' => false, @@ -401,14 +401,14 @@ function wu_get_membership_new_cart($membership) { $y = $cart->get_total(); $difference = $membership->get_initial_amount() - $cart->get_total(); - $type_translate = $difference < 0 ? __('credit', 'wp-ultimo') : __('debit', 'wp-ultimo'); + $type_translate = $difference < 0 ? __('credit', 'wp-multisite-waas') : __('debit', 'wp-multisite-waas'); $line_item_params = [ 'hash' => 'INITADJUSTMENT', 'type' => $difference < 0 ? 'credit' : 'fee', // translators: %s is the type of adjustment (credit or debit). - 'title' => sprintf(__('Adjustment %s', 'wp-ultimo'), $type_translate), - 'description' => __('Initial amount adjustment based on previous deal.', 'wp-ultimo'), + 'title' => sprintf(__('Adjustment %s', 'wp-multisite-waas'), $type_translate), + 'description' => __('Initial amount adjustment based on previous deal.', 'wp-multisite-waas'), 'unit_price' => $difference, 'discountable' => false, 'taxable' => false, diff --git a/inc/functions/mock.php b/inc/functions/mock.php index 6213d40..fc648e3 100644 --- a/inc/functions/mock.php +++ b/inc/functions/mock.php @@ -21,9 +21,9 @@ function wu_mock_site($seed = false) { $atts = apply_filters( 'wu_mock_site', [ - 'title' => __('Example Site', 'wp-ultimo'), - 'description' => __('This is an example of a site description.', 'wp-ultimo'), - 'domain' => __('examplesite.dev', 'wp-ultimo'), + 'title' => __('Example Site', 'wp-multisite-waas'), + 'description' => __('This is an example of a site description.', 'wp-multisite-waas'), + 'domain' => __('examplesite.dev', 'wp-multisite-waas'), 'path' => '/', ] ); @@ -66,7 +66,7 @@ function wu_mock_product() { $product = new \WP_Ultimo\Models\Product( [ - 'name' => __('Test Product', 'wp-ultimo'), + 'name' => __('Test Product', 'wp-multisite-waas'), ] ); diff --git a/inc/functions/settings.php b/inc/functions/settings.php index f015e58..a712091 100644 --- a/inc/functions/settings.php +++ b/inc/functions/settings.php @@ -6,6 +6,8 @@ * @since 2.0.0 */ +use WP_Ultimo\Dependencies\Intervention\Image\ImageManagerStatic as Image; + // Exit if accessed directly defined('ABSPATH') || exit; @@ -107,7 +109,7 @@ function wu_register_settings_side_panel($section_slug, $atts) { $atts = wp_parse_args( $atts, [ - 'title' => __('Side Panel', 'wp-ultimo'), + 'title' => __('Side Panel', 'wp-multisite-waas'), 'render' => '__return_false', 'show' => '__return_true', ] @@ -146,7 +148,7 @@ function wu_get_network_logo($size = 'full') { switch_to_blog(wu_get_main_site_id()); - $settings_logo = wp_get_attachment_image_src(wu_get_setting('company_logo', ''), $size); // phpcs:ignore + $settings_logo = wp_get_attachment_image_src(wu_get_setting('company_logo', ''), $size); // phpcs:ignore restore_current_blog(); @@ -154,7 +156,7 @@ function wu_get_network_logo($size = 'full') { return $settings_logo[0]; } - $logo = wu_get_asset('logo.webp', 'img'); + $logo = wu_get_asset('logo.png', 'img'); $custom_logo = wp_get_attachment_image_src(get_theme_mod('custom_logo'), $size); @@ -165,6 +167,30 @@ function wu_get_network_logo($size = 'full') { return apply_filters('wu_get_logo', $logo); } +/** + * Retrieve the network custom logo attachement id. + * + * @return int With the logo's id. + */ +function wu_get_network_logo_attachement_id() { + + $settings_logo = wu_get_setting('company_logo'); + + if ($settings_logo) { + return $settings_logo; + } + + $logo = wu_get_asset('logo.png', 'img'); + + $custom_logo = get_theme_mod('custom_logo'); + + if ( ! empty($custom_logo)) { + $logo = $custom_logo; + } + + return apply_filters('wu_get_logo', $logo); +} + /** * Retrieve the network custom icon. * diff --git a/inc/functions/sunrise.php b/inc/functions/sunrise.php index 9d03ab7..af19656 100644 --- a/inc/functions/sunrise.php +++ b/inc/functions/sunrise.php @@ -36,7 +36,7 @@ function wu_should_load_sunrise() { function wu_get_setting_early($setting, $default = false) { if (did_action('wp_ultimo_load')) { - _doing_it_wrong('wu_get_setting_early', __('Regular setting APIs are already available. You should use wu_get_setting() instead.', 'wp-ultimo'), '2.0.0'); + _doing_it_wrong('wu_get_setting_early', __('Regular setting APIs are already available. You should use wu_get_setting() instead.', 'wp-multisite-waas'), '2.0.0'); } $settings_key = \WP_Ultimo\Settings::KEY; @@ -59,7 +59,7 @@ function wu_get_setting_early($setting, $default = false) { function wu_save_setting_early($key, $value) { if (did_action('wp_ultimo_load')) { - _doing_it_wrong('wu_save_setting_early', __('Regular setting APIs are already available. You should use wu_save_setting() instead.', 'wp-ultimo'), '2.0.20'); + _doing_it_wrong('wu_save_setting_early', __('Regular setting APIs are already available. You should use wu_save_setting() instead.', 'wp-multisite-waas'), '2.0.20'); } $settings_key = \WP_Ultimo\Settings::KEY; diff --git a/inc/functions/user.php b/inc/functions/user.php index 129e322..695f065 100644 --- a/inc/functions/user.php +++ b/inc/functions/user.php @@ -25,7 +25,7 @@ function wu_get_roles_as_options($add_default_option = false) { $roles = []; if ($add_default_option) { - $roles['default'] = __('Use WP Multisite WaaS default', 'wp-ultimo'); + $roles['default'] = __('Use WP Multisite WaaS default', 'wp-multisite-waas'); } $editable_roles = get_editable_roles(); diff --git a/inc/gateways/class-base-gateway.php b/inc/gateways/class-base-gateway.php index ac9e20f..600b56a 100644 --- a/inc/gateways/class-base-gateway.php +++ b/inc/gateways/class-base-gateway.php @@ -614,18 +614,18 @@ abstract class Base_Gateway { public function get_amount_update_message($to_customer = false) { if ( ! $this->supports_amount_update()) { - $message = __('The current payment integration will be cancelled.', 'wp-ultimo'); + $message = __('The current payment integration will be cancelled.', 'wp-multisite-waas'); if ($to_customer) { - $message .= ' ' . __('You will receive a new invoice on the next billing cycle.', 'wp-ultimo'); + $message .= ' ' . __('You will receive a new invoice on the next billing cycle.', 'wp-multisite-waas'); } else { - $message .= ' ' . __('The customer will receive a new invoice on the next billing cycle.', 'wp-ultimo'); + $message .= ' ' . __('The customer will receive a new invoice on the next billing cycle.', 'wp-multisite-waas'); } return $message; } - return __('The current payment integration will be updated.', 'wp-ultimo'); + return __('The current payment integration will be updated.', 'wp-multisite-waas'); } /** diff --git a/inc/gateways/class-base-stripe-gateway.php b/inc/gateways/class-base-stripe-gateway.php index 85a26c6..c43aad5 100644 --- a/inc/gateways/class-base-stripe-gateway.php +++ b/inc/gateways/class-base-stripe-gateway.php @@ -214,7 +214,7 @@ class Base_Stripe_Gateway extends Base_Gateway { if ( ! empty($s_subscription_id)) { $actions['change_payment_method'] = [ - 'label' => __('Change Payment Method', 'wp-ultimo'), + 'label' => __('Change Payment Method', 'wp-multisite-waas'), 'icon_classes' => 'dashicons-wu-edit wu-align-middle', 'href' => add_query_arg( [ @@ -250,7 +250,7 @@ class Base_Stripe_Gateway extends Base_Gateway { $customer = wu_get_current_customer(); if ( ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) { - wp_die(__('You are not allowed to modify this membership.', 'wp-ultimo')); + wp_die(__('You are not allowed to modify this membership.', 'wp-multisite-waas')); } $gateway_id = $membership->get_gateway(); @@ -315,7 +315,7 @@ class Base_Stripe_Gateway extends Base_Gateway { ], ], 'business_profile' => [ - 'headline' => __('Manage your membership payment methods.', 'wp-ultimo'), + 'headline' => __('Manage your membership payment methods.', 'wp-multisite-waas'), ], ] ); @@ -348,7 +348,7 @@ class Base_Stripe_Gateway extends Base_Gateway { $gateway_id = wu_replace_dashes($this->id); - return wu_get_setting("{$gateway_id}_public_title", __('Credit Card', 'wp-ultimo')); + return wu_get_setting("{$gateway_id}_public_title", __('Credit Card', 'wp-multisite-waas')); } /** @@ -365,7 +365,7 @@ class Base_Stripe_Gateway extends Base_Gateway { 'payment-gateways', "{$gateway_id}_enable_portal", [ - 'title' => __('Use Stripe Billing Portal', 'wp-ultimo'), + 'title' => __('Use Stripe Billing Portal', 'wp-multisite-waas'), 'desc' => 'Add a link to the Billing Portal in the site actions widget so your customer can change the payment method used in Stripe (additional charges from Stripe could be applied).', 'type' => 'toggle', 'default' => 0, @@ -514,7 +514,7 @@ class Base_Stripe_Gateway extends Base_Gateway { * The secret key is invalid; */ $t = "{$id}_{$stripe_mode}_sk_key_status"; - wu_save_setting("{$id}_{$stripe_mode}_sk_key_status", __('Invalid API Key provided', 'wp-ultimo')); + wu_save_setting("{$id}_{$stripe_mode}_sk_key_status", __('Invalid API Key provided', 'wp-multisite-waas')); } } @@ -538,7 +538,7 @@ class Base_Stripe_Gateway extends Base_Gateway { /** * The public key is invalid; */ - wu_save_setting("{$id}_{$stripe_mode}_pk_key_status", __('Invalid API Key provided', 'wp-ultimo')); + wu_save_setting("{$id}_{$stripe_mode}_pk_key_status", __('Invalid API Key provided', 'wp-multisite-waas')); } } } @@ -664,7 +664,7 @@ class Base_Stripe_Gateway extends Base_Gateway { $gateway_subscription_id = $membership->get_gateway_subscription_id(); if (empty($gateway_subscription_id)) { - return new \WP_Error('wu_stripe_no_subscription_id', __('Error: No gateway subscription ID found for this membership.', 'wp-ultimo')); + return new \WP_Error('wu_stripe_no_subscription_id', __('Error: No gateway subscription ID found for this membership.', 'wp-multisite-waas')); } $this->setup_api_keys(); @@ -748,7 +748,7 @@ class Base_Stripe_Gateway extends Base_Gateway { if (count($credits) > 1) { $credit = [ 'amount' => array_sum(wp_list_pluck($credits, 'amount')), - 'description' => __('Amount adjustment based on custom deal.', 'wp-ultimo'), + 'description' => __('Amount adjustment based on custom deal.', 'wp-multisite-waas'), ]; } else { $credit = $credits[0]; @@ -1033,7 +1033,7 @@ class Base_Stripe_Gateway extends Base_Gateway { $start_date = $datetime->getTimestamp() - HOUR_IN_SECONDS; // Reduce by 60 seconds to account for inaccurate server times. if (empty($payment_method)) { - throw new \Exception(__('Invalid payment method', 'wp-ultimo')); + throw new \Exception(__('Invalid payment method', 'wp-multisite-waas')); } /* @@ -1238,7 +1238,7 @@ class Base_Stripe_Gateway extends Base_Gateway { $coupon_data = [ 'id' => sprintf('%s-%s-%s', $s_amount, $currency, 'once'), - 'name' => __('Account credit and other discounts', 'wp-ultimo'), + 'name' => __('Account credit and other discounts', 'wp-multisite-waas'), 'amount_off' => $s_amount, 'duration' => 'once', 'currency' => $currency, @@ -1707,7 +1707,7 @@ class Base_Stripe_Gateway extends Base_Gateway { $gateway_payment_id = $payment->get_gateway_payment_id(); if (empty($gateway_payment_id)) { - throw new \Exception(__('Gateway payment ID not found. Cannot process refund automatically.', 'wp-ultimo')); + throw new \Exception(__('Gateway payment ID not found. Cannot process refund automatically.', 'wp-multisite-waas')); } /** @@ -1726,7 +1726,7 @@ class Base_Stripe_Gateway extends Base_Gateway { $gateway_payment_id = $invoice->charge; } else { - throw new Exception(__('Gateway payment ID not valid.', 'wp-ultimo')); + throw new Exception(__('Gateway payment ID not valid.', 'wp-multisite-waas')); } /* @@ -1859,7 +1859,7 @@ class Base_Stripe_Gateway extends Base_Gateway { $wp_error->add($error['code'], $this->get_localized_error_message($error['code'], $e->getMessage())); } else { - $wp_error->add('unknown_error', __('An unknown error has occurred.', 'wp-ultimo')); + $wp_error->add('unknown_error', __('An unknown error has occurred.', 'wp-multisite-waas')); } return $wp_error; @@ -1886,7 +1886,7 @@ class Base_Stripe_Gateway extends Base_Gateway { } else { // translators: 1 is the error code and 2 the message. - return sprintf(__('An error has occurred (code: %1$s; message: %2$s).', 'wp-ultimo'), $error_code, $error_message); + return sprintf(__('An error has occurred (code: %1$s; message: %2$s).', 'wp-multisite-waas'), $error_code, $error_message); } } @@ -1928,7 +1928,7 @@ class Base_Stripe_Gateway extends Base_Gateway { // for extra security, retrieve from the Stripe API if ( ! isset($received_event->id)) { - throw new \Exception(__('Event ID not found.', 'wp-ultimo')); + throw new \Exception(__('Event ID not found.', 'wp-multisite-waas')); } // Set the right mode for this request @@ -2031,7 +2031,7 @@ class Base_Stripe_Gateway extends Base_Gateway { if ($this->get_id() !== $membership->get_gateway()) { // translators: %s is the customer ID. - throw new Ignorable_Exception(sprintf(__('Exiting Stripe webhook - This call must be handled by %s webhook', 'wp-ultimo'), $membership->get_gateway())); + throw new Ignorable_Exception(sprintf(__('Exiting Stripe webhook - This call must be handled by %s webhook', 'wp-multisite-waas'), $membership->get_gateway())); } /* @@ -2309,7 +2309,7 @@ class Base_Stripe_Gateway extends Base_Gateway { * Throws to inform that * we have a duplicate payment. */ - throw new Ignorable_Exception(__('Duplicate payment.', 'wp-ultimo')); + throw new Ignorable_Exception(__('Duplicate payment.', 'wp-multisite-waas')); } } @@ -2326,13 +2326,13 @@ class Base_Stripe_Gateway extends Base_Gateway { $payment = wu_get_payment($payment_id); if (empty($payment)) { - throw new Ignorable_Exception(__('Payment not found on refund webhook call.', 'wp-ultimo')); + throw new Ignorable_Exception(__('Payment not found on refund webhook call.', 'wp-multisite-waas')); } $is_refundable = in_array($payment->get_status(), wu_get_refundable_payment_types(), true); if ( ! $is_refundable) { - throw new Ignorable_Exception(__('Payment is not refundable.', 'wp-ultimo')); + throw new Ignorable_Exception(__('Payment is not refundable.', 'wp-multisite-waas')); } /* @@ -2383,7 +2383,7 @@ class Base_Stripe_Gateway extends Base_Gateway { if ($membership->is_active()) { $membership->cancel(); - $membership->add_note(__('Membership cancelled via Stripe webhook.', 'wp-ultimo')); + $membership->add_note(__('Membership cancelled via Stripe webhook.', 'wp-multisite-waas')); } else { wu_log_add('stripe', sprintf('Membership #%d is not active - not cancelling account.', $membership->get_id())); } @@ -2416,7 +2416,7 @@ class Base_Stripe_Gateway extends Base_Gateway { foreach ($saved_payment_methods as $saved_payment_method) { $options[ $saved_payment_method->id ] = sprintf( // translators: 1 is the card brand (e.g. VISA), and 2 is the last 4 digits. - __('%1$s ending in %2$s', 'wp-ultimo'), + __('%1$s ending in %2$s', 'wp-multisite-waas'), strtoupper((string) $saved_payment_method->card->brand), $saved_payment_method->card->last4 ); @@ -2446,7 +2446,7 @@ class Base_Stripe_Gateway extends Base_Gateway {

- +

@@ -2592,7 +2592,7 @@ class Base_Stripe_Gateway extends Base_Gateway { // Name and price are required. if (empty($args['name']) || empty($args['price'])) { - return new \WP_Error('missing_name_price', __('Missing plan name or price.', 'wp-ultimo')); + return new \WP_Error('missing_name_price', __('Missing plan name or price.', 'wp-multisite-waas')); } /* @@ -2613,7 +2613,7 @@ class Base_Stripe_Gateway extends Base_Gateway { } if (empty($plan_id)) { - return new \WP_Error('empty_plan_id', __('Empty plan ID.', 'wp-ultimo')); + return new \WP_Error('empty_plan_id', __('Empty plan ID.', 'wp-multisite-waas')); } // Convert price to Stripe format. @@ -2694,7 +2694,7 @@ class Base_Stripe_Gateway extends Base_Gateway { // Name are required. if (empty($name)) { - return new \WP_Error('missing_name', __('Missing product name.', 'wp-ultimo')); + return new \WP_Error('missing_name', __('Missing product name.', 'wp-multisite-waas')); } if (empty($id)) { @@ -2706,7 +2706,7 @@ class Base_Stripe_Gateway extends Base_Gateway { } if (empty($product_id)) { - return new \WP_Error('empty_product_id', __('Empty product ID.', 'wp-ultimo')); + return new \WP_Error('empty_product_id', __('Empty product ID.', 'wp-multisite-waas')); } // First check to see if a product exists with this ID. If so, return that. diff --git a/inc/gateways/class-manual-gateway.php b/inc/gateways/class-manual-gateway.php index f8fe4b8..c111b3d 100644 --- a/inc/gateways/class-manual-gateway.php +++ b/inc/gateways/class-manual-gateway.php @@ -87,8 +87,8 @@ class Manual_Gateway extends Base_Gateway { 'payment-gateways', 'manual_header', [ - 'title' => __('Manual', 'wp-ultimo'), - 'desc' => __('Use the settings section below to configure the manual payment method. This method allows your customers to manually pay for their memberships, but those payments require manual confirmation on your part.', 'wp-ultimo'), + 'title' => __('Manual', 'wp-multisite-waas'), + 'desc' => __('Use the settings section below to configure the manual payment method. This method allows your customers to manually pay for their memberships, but those payments require manual confirmation on your part.', 'wp-multisite-waas'), 'type' => 'header', 'show_as_submenu' => true, 'require' => [ @@ -101,11 +101,11 @@ class Manual_Gateway extends Base_Gateway { 'payment-gateways', 'manual_payment_instructions', [ - 'title' => __('Payment Instructions', 'wp-ultimo'), - 'desc' => __('This instructions will be shown to the customer on the thank you page, as well as be sent via email.', 'wp-ultimo'), + 'title' => __('Payment Instructions', 'wp-multisite-waas'), + 'desc' => __('This instructions will be shown to the customer on the thank you page, as well as be sent via email.', 'wp-multisite-waas'), 'type' => 'wp_editor', 'allow_html' => true, - 'default' => __('Payment instructions here.', 'wp-ultimo'), + 'default' => __('Payment instructions here.', 'wp-multisite-waas'), 'require' => [ 'active_gateways' => 'manual', ], @@ -141,9 +141,9 @@ class Manual_Gateway extends Base_Gateway { public function get_amount_update_message($to_customer = false) { if ($to_customer) { - $message = __('You will receive a updated invoice on the next billing cycle.', 'wp-ultimo'); + $message = __('You will receive a updated invoice on the next billing cycle.', 'wp-multisite-waas'); } else { - $message = __('The customer will receive a updated invoice on the next billing cycle.', 'wp-ultimo'); + $message = __('The customer will receive a updated invoice on the next billing cycle.', 'wp-multisite-waas'); } return $message; @@ -352,7 +352,7 @@ class Manual_Gateway extends Base_Gateway { */ public function fields() { - $message = __('After you finish signing up, we will send you an email with instructions to finalize the payment. Your account will be pending until the payment is finalized and confirmed.', 'wp-ultimo'); + $message = __('After you finish signing up, we will send you an email with instructions to finalize the payment. Your account will be pending until the payment is finalized and confirmed.', 'wp-multisite-waas'); return sprintf('

%s

', $message); } @@ -385,7 +385,7 @@ class Manual_Gateway extends Base_Gateway {

- +

diff --git a/inc/gateways/class-paypal-gateway.php b/inc/gateways/class-paypal-gateway.php index cef178c..dd840b5 100644 --- a/inc/gateways/class-paypal-gateway.php +++ b/inc/gateways/class-paypal-gateway.php @@ -189,8 +189,8 @@ class PayPal_Gateway extends Base_Gateway { 'payment-gateways', 'paypal_header', [ - 'title' => __('PayPal', 'wp-ultimo'), - 'desc' => __('Use the settings section below to configure PayPal Express as a payment method.', 'wp-ultimo'), + 'title' => __('PayPal', 'wp-multisite-waas'), + 'desc' => __('Use the settings section below to configure PayPal Express as a payment method.', 'wp-multisite-waas'), 'type' => 'header', 'show_as_submenu' => true, 'require' => [ @@ -203,8 +203,8 @@ class PayPal_Gateway extends Base_Gateway { 'payment-gateways', 'paypal_sandbox_mode', [ - 'title' => __('PayPal Sandbox Mode', 'wp-ultimo'), - 'desc' => __('Toggle this to put PayPal on sandbox mode. This is useful for testing and making sure PayPal is correctly setup to handle your payments.', 'wp-ultimo'), + 'title' => __('PayPal Sandbox Mode', 'wp-multisite-waas'), + 'desc' => __('Toggle this to put PayPal on sandbox mode. This is useful for testing and making sure PayPal is correctly setup to handle your payments.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, 'html_attr' => [ @@ -220,10 +220,10 @@ class PayPal_Gateway extends Base_Gateway { 'payment-gateways', 'paypal_test_username', [ - 'title' => __('PayPal Test Username', 'wp-ultimo'), + 'title' => __('PayPal Test Username', 'wp-multisite-waas'), 'desc' => '', - 'tooltip' => __('Make sure you are placing the TEST username, not the live one.', 'wp-ultimo'), - 'placeholder' => __('e.g. username_api1.username.co', 'wp-ultimo'), + 'tooltip' => __('Make sure you are placing the TEST username, not the live one.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. username_api1.username.co', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -238,10 +238,10 @@ class PayPal_Gateway extends Base_Gateway { 'payment-gateways', 'paypal_test_password', [ - 'title' => __('PayPal Test Password', 'wp-ultimo'), + 'title' => __('PayPal Test Password', 'wp-multisite-waas'), 'desc' => '', - 'tooltip' => __('Make sure you are placing the TEST password, not the live one.', 'wp-ultimo'), - 'placeholder' => __('e.g. IUOSABK987HJG88N', 'wp-ultimo'), + 'tooltip' => __('Make sure you are placing the TEST password, not the live one.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. IUOSABK987HJG88N', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -256,10 +256,10 @@ class PayPal_Gateway extends Base_Gateway { 'payment-gateways', 'paypal_test_signature', [ - 'title' => __('PayPal Test Signature', 'wp-ultimo'), + 'title' => __('PayPal Test Signature', 'wp-multisite-waas'), 'desc' => '', - 'tooltip' => __('Make sure you are placing the TEST signature, not the live one.', 'wp-ultimo'), - 'placeholder' => __('e.g. AFcpSSRl31ADOdqnHNv4KZdVHEQzdMEEsWxV21C7fd0v3bYYYRCwYxqo', 'wp-ultimo'), + 'tooltip' => __('Make sure you are placing the TEST signature, not the live one.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. AFcpSSRl31ADOdqnHNv4KZdVHEQzdMEEsWxV21C7fd0v3bYYYRCwYxqo', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -274,10 +274,10 @@ class PayPal_Gateway extends Base_Gateway { 'payment-gateways', 'paypal_live_username', [ - 'title' => __('PayPal Live Username', 'wp-ultimo'), + 'title' => __('PayPal Live Username', 'wp-multisite-waas'), 'desc' => '', - 'tooltip' => __('Make sure you are placing the LIVE username, not the test one.', 'wp-ultimo'), - 'placeholder' => __('e.g. username_api1.username.co', 'wp-ultimo'), + 'tooltip' => __('Make sure you are placing the LIVE username, not the test one.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. username_api1.username.co', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -292,10 +292,10 @@ class PayPal_Gateway extends Base_Gateway { 'payment-gateways', 'paypal_live_password', [ - 'title' => __('PayPal Live Password', 'wp-ultimo'), + 'title' => __('PayPal Live Password', 'wp-multisite-waas'), 'desc' => '', - 'tooltip' => __('Make sure you are placing the LIVE password, not the test one.', 'wp-ultimo'), - 'placeholder' => __('e.g. IUOSABK987HJG88N', 'wp-ultimo'), + 'tooltip' => __('Make sure you are placing the LIVE password, not the test one.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. IUOSABK987HJG88N', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -310,10 +310,10 @@ class PayPal_Gateway extends Base_Gateway { 'payment-gateways', 'paypal_live_signature', [ - 'title' => __('PayPal Live Signature', 'wp-ultimo'), + 'title' => __('PayPal Live Signature', 'wp-multisite-waas'), 'desc' => '', - 'tooltip' => __('Make sure you are placing the LIVE signature, not the test one.', 'wp-ultimo'), - 'placeholder' => __('e.g. AFcpSSRl31ADOdqnHNv4KZdVHEQzdMEEsWxV21C7fd0v3bYYYRCwYxqo', 'wp-ultimo'), + 'tooltip' => __('Make sure you are placing the LIVE signature, not the test one.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. AFcpSSRl31ADOdqnHNv4KZdVHEQzdMEEsWxV21C7fd0v3bYYYRCwYxqo', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -341,7 +341,7 @@ class PayPal_Gateway extends Base_Gateway { $gateway_subscription_id = $membership->get_gateway_subscription_id(); if (empty($gateway_subscription_id)) { - return new \WP_Error('wu_paypal_no_subscription_id', __('Error: No gateway subscription ID found for this membership.', 'wp-ultimo')); + return new \WP_Error('wu_paypal_no_subscription_id', __('Error: No gateway subscription ID found for this membership.', 'wp-multisite-waas')); } $original = $membership->_get_original(); @@ -349,7 +349,7 @@ class PayPal_Gateway extends Base_Gateway { $has_duration_change = $membership->get_duration() !== absint(wu_get_isset($original, 'duration')) || $membership->get_duration_unit() !== wu_get_isset($original, 'duration_unit'); if ($has_duration_change) { - return new \WP_Error('wu_paypal_no_duration_change', __('Error: PayPal does not support changing the duration of a subscription.', 'wp-ultimo')); + return new \WP_Error('wu_paypal_no_duration_change', __('Error: PayPal does not support changing the duration of a subscription.', 'wp-multisite-waas')); } /** @@ -367,7 +367,7 @@ class PayPal_Gateway extends Base_Gateway { 'VERSION' => '124', 'METHOD' => 'UpdateRecurringPaymentsProfile', 'PROFILEID' => $gateway_subscription_id, - 'NOTE' => __('Membership update', 'wp-ultimo'), + 'NOTE' => __('Membership update', 'wp-multisite-waas'), 'DESC' => $description, 'AMT' => $temp_payment->get_total() - $temp_payment->get_tax_total(), 'TAXAMT' => $temp_payment->get_tax_total(), @@ -399,7 +399,7 @@ class PayPal_Gateway extends Base_Gateway { } if ('failure' === strtolower((string) $body['ACK'])) { - return new \WP_Error($body['L_ERRORCODE0'], __('PayPal Error:', 'wp-ultimo') . ' ' . $body['L_LONGMESSAGE0']); + return new \WP_Error($body['L_ERRORCODE0'], __('PayPal Error:', 'wp-multisite-waas') . ' ' . $body['L_LONGMESSAGE0']); } return true; @@ -504,7 +504,7 @@ class PayPal_Gateway extends Base_Gateway { $date = wp_date(get_option('date_format'), strtotime($membership->get_date_trial_end(), wu_get_current_time('timestamp', true))); - $notes[] = sprintf(__('Your trial period will end on %1$s.', 'wp-ultimo'), $date); + $notes[] = sprintf(__('Your trial period will end on %1$s.', 'wp-multisite-waas'), $date); } if ($is_recurring && $should_auto_renew) { @@ -522,21 +522,21 @@ class PayPal_Gateway extends Base_Gateway { if ($recurring_total !== $cart_total) { if ('downgrade' === $type) { if ($is_trial_setup) { - $notes[] = sprintf(__('Your updated membership will start on $1$s, from that date you will be billed %2$s every month.', 'wp-ultimo'), $date, $recurring_total_format); + $notes[] = sprintf(__('Your updated membership will start on $1$s, from that date you will be billed %2$s every month.', 'wp-multisite-waas'), $date, $recurring_total_format); } else { $date_renew = wp_date(get_option('date_format'), strtotime($membership->get_date_expiration(), wu_get_current_time('timestamp', true))); - $notes[] = sprintf(__('Your updated membership will start on %1$s, from that date you will be billed %2$s %3$s.', 'wp-ultimo'), $date_renew, $recurring_total_format, $desc); + $notes[] = sprintf(__('Your updated membership will start on %1$s, from that date you will be billed %2$s %3$s.', 'wp-multisite-waas'), $date_renew, $recurring_total_format, $desc); } } elseif ($is_trial_setup) { - $notes[] = sprintf(__('After the first payment you will be billed %1$s %2$s.', 'wp-ultimo'), $recurring_total_format, $desc); + $notes[] = sprintf(__('After the first payment you will be billed %1$s %2$s.', 'wp-multisite-waas'), $recurring_total_format, $desc); } else { - $notes[] = sprintf(__('After this payment you will be billed %1$s %2$s.', 'wp-ultimo'), $recurring_total_format, $desc); + $notes[] = sprintf(__('After this payment you will be billed %1$s %2$s.', 'wp-multisite-waas'), $recurring_total_format, $desc); } } elseif ($is_trial_setup) { - $notes[] = sprintf(__('From that date, you will be billed %1$s %2$s.', 'wp-ultimo'), $recurring_total_format, $desc); + $notes[] = sprintf(__('From that date, you will be billed %1$s %2$s.', 'wp-multisite-waas'), $recurring_total_format, $desc); } else { - $notes[] = sprintf(__('After this payment you will be billed %1$s.', 'wp-ultimo'), $desc); + $notes[] = sprintf(__('After this payment you will be billed %1$s.', 'wp-multisite-waas'), $desc); } } @@ -576,12 +576,12 @@ class PayPal_Gateway extends Base_Gateway { $discounts_total = $cart->get_total_discounts(); if ( ! empty($discounts_total)) { - __('Account credit and other discounts', 'wp-ultimo'); + __('Account credit and other discounts', 'wp-multisite-waas'); $args = array_merge( $args, [ - "L_PAYMENTREQUEST_0_NAME{$product_index}" => __('Account credit and other discounts', 'wp-ultimo'), + "L_PAYMENTREQUEST_0_NAME{$product_index}" => __('Account credit and other discounts', 'wp-multisite-waas'), "L_PAYMENTREQUEST_0_AMT{$product_index}" => $discounts_total, "L_PAYMENTREQUEST_0_QTY{$product_index}" => 1, ] @@ -652,7 +652,7 @@ class PayPal_Gateway extends Base_Gateway { /* * If we get here, something went wrong. */ - throw new \Exception(__('Something has gone wrong, please try again', 'wp-ultimo')); + throw new \Exception(__('Something has gone wrong, please try again', 'wp-multisite-waas')); } /** @@ -712,7 +712,7 @@ class PayPal_Gateway extends Base_Gateway { $gateway_payment_id = $payment->get_gateway_payment_id(); if (empty($gateway_payment_id)) { - throw new \Exception(__('Gateway payment ID not found. Cannot process refund automatically.', 'wp-ultimo')); + throw new \Exception(__('Gateway payment ID not found. Cannot process refund automatically.', 'wp-multisite-waas')); } $refund_type = 'Partial'; @@ -774,7 +774,7 @@ class PayPal_Gateway extends Base_Gateway { return true; } - throw new \Exception(__('Something went wrong.', 'wp-ultimo')); + throw new \Exception(__('Something went wrong.', 'wp-multisite-waas')); } /** @@ -789,7 +789,7 @@ class PayPal_Gateway extends Base_Gateway { */ public function fields() { - $message = __('You will be redirected to PayPal to complete the purchase.', 'wp-ultimo'); + $message = __('You will be redirected to PayPal to complete the purchase.', 'wp-multisite-waas'); return sprintf('

%s

', $message); } @@ -825,7 +825,7 @@ class PayPal_Gateway extends Base_Gateway { $details = $this->get_checkout_details(wu_request('token')); if (empty($details)) { - $error = new \WP_Error(__('PayPal token no longer valid.', 'wp-ultimo')); + $error = new \WP_Error(__('PayPal token no longer valid.', 'wp-multisite-waas')); wp_die($error); } @@ -841,7 +841,7 @@ class PayPal_Gateway extends Base_Gateway { * Bail. */ if (empty($payment)) { - $error = new \WP_Error(__('Pending payment does not exist.', 'wp-ultimo')); + $error = new \WP_Error(__('Pending payment does not exist.', 'wp-multisite-waas')); wp_die($error); } @@ -855,7 +855,7 @@ class PayPal_Gateway extends Base_Gateway { $original_cart = $payment->get_meta('wu_original_cart'); if (empty($original_cart)) { - $error = new \WP_Error('no-cart', __('Original cart does not exist.', 'wp-ultimo')); + $error = new \WP_Error('no-cart', __('Original cart does not exist.', 'wp-multisite-waas')); wp_die($error); } @@ -869,7 +869,7 @@ class PayPal_Gateway extends Base_Gateway { $is_recurring = $original_cart->has_recurring(); if (empty($membership) || empty($customer)) { - $error = new \WP_Error('no-membership', __('Missing membership or customer data.', 'wp-ultimo')); + $error = new \WP_Error('no-membership', __('Missing membership or customer data.', 'wp-multisite-waas')); wp_die($error); } @@ -923,7 +923,7 @@ class PayPal_Gateway extends Base_Gateway { } if (empty($membership)) { - throw new \Exception(__('Exiting PayPal Express IPN - membership ID not found.', 'wp-ultimo')); + throw new \Exception(__('Exiting PayPal Express IPN - membership ID not found.', 'wp-multisite-waas')); } wu_log_add('paypal', sprintf('Processing IPN for membership #%d.', $membership->get_id())); @@ -1041,15 +1041,15 @@ class PayPal_Gateway extends Base_Gateway { if ('failed' === strtolower((string) $posted['payment_status'])) { // Recurring payment failed. - $membership->add_note(sprintf(__('Transaction ID %s failed in PayPal.', 'wp-ultimo'), $posted['txn_id'])); + $membership->add_note(sprintf(__('Transaction ID %s failed in PayPal.', 'wp-multisite-waas'), $posted['txn_id'])); die('Subscription payment failed'); } elseif ('pending' === strtolower((string) $posted['payment_status'])) { // Recurring payment pending (such as echeck). - $pending_reason = ! empty($posted['pending_reason']) ? $posted['pending_reason'] : __('unknown', 'wp-ultimo'); + $pending_reason = ! empty($posted['pending_reason']) ? $posted['pending_reason'] : __('unknown', 'wp-multisite-waas'); - $membership->add_note(sprintf(__('Transaction ID %1$s is pending in PayPal for reason: %2$s', 'wp-ultimo'), $posted['txn_id'], $pending_reason)); + $membership->add_note(sprintf(__('Transaction ID %1$s is pending in PayPal for reason: %2$s', 'wp-multisite-waas'), $posted['txn_id'], $pending_reason)); die('Subscription payment pending'); } @@ -1093,9 +1093,9 @@ class PayPal_Gateway extends Base_Gateway { // Initial payment failed, so set the user back to pending. $membership->set_status('pending'); - $membership->add_note(__('Initial payment failed in PayPal Express.', 'wp-ultimo')); + $membership->add_note(__('Initial payment failed in PayPal Express.', 'wp-multisite-waas')); - $this->error_message = __('Initial payment failed.', 'wp-ultimo'); + $this->error_message = __('Initial payment failed.', 'wp-multisite-waas'); } else { // If this is a completed payment plan, we can skip any cancellation actions. This is handled in renewals. @@ -1108,7 +1108,7 @@ class PayPal_Gateway extends Base_Gateway { // user is marked as cancelled but retains access until end of term $membership->cancel(); - $membership->add_note(__('Membership cancelled via PayPal Express IPN.', 'wp-ultimo')); + $membership->add_note(__('Membership cancelled via PayPal Express IPN.', 'wp-multisite-waas')); } break; @@ -1353,8 +1353,8 @@ class PayPal_Gateway extends Base_Gateway { } } else { wp_die( - __('Something has gone wrong, please try again', 'wp-ultimo'), - __('Error', 'wp-ultimo'), + __('Something has gone wrong, please try again', 'wp-multisite-waas'), + __('Error', 'wp-multisite-waas'), [ 'back_link' => true, 'response' => '401', @@ -1508,8 +1508,8 @@ class PayPal_Gateway extends Base_Gateway { } } else { wp_die( - __('Something has gone wrong, please try again', 'wp-ultimo'), - __('Error', 'wp-ultimo'), + __('Something has gone wrong, please try again', 'wp-multisite-waas'), + __('Error', 'wp-multisite-waas'), [ 'back_link' => true, 'response' => '401', @@ -1531,10 +1531,10 @@ class PayPal_Gateway extends Base_Gateway { $checkout_details = $this->get_checkout_details($token); if ( ! is_array($checkout_details)) { - $error = is_wp_error($checkout_details) ? $checkout_details->get_error_message() : __('Invalid response code from PayPal', 'wp-ultimo'); + $error = is_wp_error($checkout_details) ? $checkout_details->get_error_message() : __('Invalid response code from PayPal', 'wp-multisite-waas'); // translators: %s is the paypal error message. - return '

' . sprintf(__('An unexpected PayPal error occurred. Error message: %s.', 'wp-ultimo'), $error) . '

'; + return '

' . sprintf(__('An unexpected PayPal error occurred. Error message: %s.', 'wp-multisite-waas'), $error) . '

'; } /* diff --git a/inc/gateways/class-stripe-checkout-gateway.php b/inc/gateways/class-stripe-checkout-gateway.php index 9020379..b6caf04 100644 --- a/inc/gateways/class-stripe-checkout-gateway.php +++ b/inc/gateways/class-stripe-checkout-gateway.php @@ -47,8 +47,8 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway { 'payment-gateways', 'stripe_checkout_header', [ - 'title' => __('Stripe Checkout', 'wp-ultimo'), - 'desc' => __('Use the settings section below to configure Stripe Checkout as a payment method.', 'wp-ultimo'), + 'title' => __('Stripe Checkout', 'wp-multisite-waas'), + 'desc' => __('Use the settings section below to configure Stripe Checkout as a payment method.', 'wp-multisite-waas'), 'type' => 'header', 'show_as_submenu' => true, 'require' => [ @@ -61,10 +61,10 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway { 'payment-gateways', 'stripe_checkout_public_title', [ - 'title' => __('Stripe Public Name', 'wp-ultimo'), - 'tooltip' => __('The name to display on the payment method selection field. By default, "Credit Card" is used.', 'wp-ultimo'), + 'title' => __('Stripe Public Name', 'wp-multisite-waas'), + 'tooltip' => __('The name to display on the payment method selection field. By default, "Credit Card" is used.', 'wp-multisite-waas'), 'type' => 'text', - 'default' => __('Credit Card', 'wp-ultimo'), + 'default' => __('Credit Card', 'wp-multisite-waas'), 'require' => [ 'active_gateways' => 'stripe-checkout', ], @@ -75,8 +75,8 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway { 'payment-gateways', 'stripe_checkout_sandbox_mode', [ - 'title' => __('Stripe Checkout Sandbox Mode', 'wp-ultimo'), - 'desc' => __('Toggle this to put Stripe on sandbox mode. This is useful for testing and making sure Stripe is correctly setup to handle your payments.', 'wp-ultimo'), + 'title' => __('Stripe Checkout Sandbox Mode', 'wp-multisite-waas'), + 'desc' => __('Toggle this to put Stripe on sandbox mode. This is useful for testing and making sure Stripe is correctly setup to handle your payments.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, 'html_attr' => [ @@ -94,10 +94,10 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway { 'payment-gateways', 'stripe_checkout_test_pk_key', [ - 'title' => __('Stripe Test Publishable Key', 'wp-ultimo'), + 'title' => __('Stripe Test Publishable Key', 'wp-multisite-waas'), 'desc' => ! empty($pk_test_status) ? sprintf($error_message_wrap, $pk_test_status) : '', - 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-ultimo'), - 'placeholder' => __('pk_test_***********', 'wp-ultimo'), + 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-multisite-waas'), + 'placeholder' => __('pk_test_***********', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -114,10 +114,10 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway { 'payment-gateways', 'stripe_checkout_test_sk_key', [ - 'title' => __('Stripe Test Secret Key', 'wp-ultimo'), + 'title' => __('Stripe Test Secret Key', 'wp-multisite-waas'), 'desc' => ! empty($sk_test_status) ? sprintf($error_message_wrap, $sk_test_status) : '', - 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-ultimo'), - 'placeholder' => __('sk_test_***********', 'wp-ultimo'), + 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-multisite-waas'), + 'placeholder' => __('sk_test_***********', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -134,10 +134,10 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway { 'payment-gateways', 'stripe_checkout_live_pk_key', [ - 'title' => __('Stripe Live Publishable Key', 'wp-ultimo'), + 'title' => __('Stripe Live Publishable Key', 'wp-multisite-waas'), 'desc' => ! empty($pk_status) ? sprintf($error_message_wrap, $pk_status) : '', - 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-ultimo'), - 'placeholder' => __('pk_live_***********', 'wp-ultimo'), + 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-multisite-waas'), + 'placeholder' => __('pk_live_***********', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -154,10 +154,10 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway { 'payment-gateways', 'stripe_checkout_live_sk_key', [ - 'title' => __('Stripe Live Secret Key', 'wp-ultimo'), + 'title' => __('Stripe Live Secret Key', 'wp-multisite-waas'), 'desc' => ! empty($sk_status) ? sprintf($error_message_wrap, $sk_status) : '', - 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-ultimo'), - 'placeholder' => __('sk_live_***********', 'wp-ultimo'), + 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-multisite-waas'), + 'placeholder' => __('sk_live_***********', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -168,15 +168,15 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway { ] ); - $webhook_message = sprintf('%s', __('Whenever you change your Stripe settings, WP Multisite WaaS will automatically check the webhook URLs on your Stripe account to make sure we get notified about changes in subscriptions and payments.', 'wp-ultimo')); + $webhook_message = sprintf('%s', __('Whenever you change your Stripe settings, WP Multisite WaaS will automatically check the webhook URLs on your Stripe account to make sure we get notified about changes in subscriptions and payments.', 'wp-multisite-waas')); wu_register_settings_field( 'payment-gateways', 'stripe_checkout_webhook_listener_explanation', [ - 'title' => __('Webhook Listener URL', 'wp-ultimo'), + 'title' => __('Webhook Listener URL', 'wp-multisite-waas'), 'desc' => $webhook_message, - 'tooltip' => __('This is the URL Stripe should send webhook calls to.', 'wp-ultimo'), + 'tooltip' => __('This is the URL Stripe should send webhook calls to.', 'wp-multisite-waas'), 'type' => 'text-display', 'copy' => true, 'default' => $this->get_webhook_listener_url(), @@ -397,7 +397,7 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway { */ public function fields(): string { - $message = __('You will be redirected to a checkout to complete the purchase.', 'wp-ultimo'); + $message = __('You will be redirected to a checkout to complete the purchase.', 'wp-multisite-waas'); return sprintf('

%s

', $message); } @@ -419,7 +419,7 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway { $fields = [ "payment_method_{$payment_method}" => [ 'type' => 'text-display', - 'title' => __('Saved Cards', 'wp-ultimo'), + 'title' => __('Saved Cards', 'wp-multisite-waas'), 'display_value' => $card, ], ]; diff --git a/inc/gateways/class-stripe-gateway.php b/inc/gateways/class-stripe-gateway.php index 690f893..fcab73e 100644 --- a/inc/gateways/class-stripe-gateway.php +++ b/inc/gateways/class-stripe-gateway.php @@ -73,8 +73,8 @@ class Stripe_Gateway extends Base_Stripe_Gateway { 'payment-gateways', 'stripe_header', [ - 'title' => __('Stripe', 'wp-ultimo'), - 'desc' => __('Use the settings section below to configure Stripe as a payment method.', 'wp-ultimo'), + 'title' => __('Stripe', 'wp-multisite-waas'), + 'desc' => __('Use the settings section below to configure Stripe as a payment method.', 'wp-multisite-waas'), 'type' => 'header', 'show_as_submenu' => true, 'require' => [ @@ -87,10 +87,10 @@ class Stripe_Gateway extends Base_Stripe_Gateway { 'payment-gateways', 'stripe_public_title', [ - 'title' => __('Stripe Public Name', 'wp-ultimo'), - 'tooltip' => __('The name to display on the payment method selection field. By default, "Credit Card" is used.', 'wp-ultimo'), + 'title' => __('Stripe Public Name', 'wp-multisite-waas'), + 'tooltip' => __('The name to display on the payment method selection field. By default, "Credit Card" is used.', 'wp-multisite-waas'), 'type' => 'text', - 'default' => __('Credit Card', 'wp-ultimo'), + 'default' => __('Credit Card', 'wp-multisite-waas'), 'require' => [ 'active_gateways' => 'stripe', ], @@ -101,8 +101,8 @@ class Stripe_Gateway extends Base_Stripe_Gateway { 'payment-gateways', 'stripe_sandbox_mode', [ - 'title' => __('Stripe Sandbox Mode', 'wp-ultimo'), - 'desc' => __('Toggle this to put Stripe on sandbox mode. This is useful for testing and making sure Stripe is correctly setup to handle your payments.', 'wp-ultimo'), + 'title' => __('Stripe Sandbox Mode', 'wp-multisite-waas'), + 'desc' => __('Toggle this to put Stripe on sandbox mode. This is useful for testing and making sure Stripe is correctly setup to handle your payments.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, 'html_attr' => [ @@ -120,10 +120,10 @@ class Stripe_Gateway extends Base_Stripe_Gateway { 'payment-gateways', 'stripe_test_pk_key', [ - 'title' => __('Stripe Test Publishable Key', 'wp-ultimo'), + 'title' => __('Stripe Test Publishable Key', 'wp-multisite-waas'), 'desc' => ! empty($pk_test_status) ? sprintf($error_message_wrap, $pk_test_status) : '', - 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-ultimo'), - 'placeholder' => __('pk_test_***********', 'wp-ultimo'), + 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-multisite-waas'), + 'placeholder' => __('pk_test_***********', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -140,10 +140,10 @@ class Stripe_Gateway extends Base_Stripe_Gateway { 'payment-gateways', 'stripe_test_sk_key', [ - 'title' => __('Stripe Test Secret Key', 'wp-ultimo'), + 'title' => __('Stripe Test Secret Key', 'wp-multisite-waas'), 'desc' => ! empty($sk_test_status) ? sprintf($error_message_wrap, $sk_test_status) : '', - 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-ultimo'), - 'placeholder' => __('sk_test_***********', 'wp-ultimo'), + 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-multisite-waas'), + 'placeholder' => __('sk_test_***********', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -160,10 +160,10 @@ class Stripe_Gateway extends Base_Stripe_Gateway { 'payment-gateways', 'stripe_live_pk_key', [ - 'title' => __('Stripe Live Publishable Key', 'wp-ultimo'), + 'title' => __('Stripe Live Publishable Key', 'wp-multisite-waas'), 'desc' => ! empty($pk_status) ? sprintf($error_message_wrap, $pk_status) : '', - 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-ultimo'), - 'placeholder' => __('pk_live_***********', 'wp-ultimo'), + 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-multisite-waas'), + 'placeholder' => __('pk_live_***********', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -180,10 +180,10 @@ class Stripe_Gateway extends Base_Stripe_Gateway { 'payment-gateways', 'stripe_live_sk_key', [ - 'title' => __('Stripe Live Secret Key', 'wp-ultimo'), + 'title' => __('Stripe Live Secret Key', 'wp-multisite-waas'), 'desc' => ! empty($sk_status) ? sprintf($error_message_wrap, $sk_status) : '', - 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-ultimo'), - 'placeholder' => __('sk_live_***********', 'wp-ultimo'), + 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-multisite-waas'), + 'placeholder' => __('sk_live_***********', 'wp-multisite-waas'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -194,15 +194,15 @@ class Stripe_Gateway extends Base_Stripe_Gateway { ] ); - $webhook_message = sprintf('%s', __('Whenever you change your Stripe settings, WP Multisite WaaS will automatically check the webhook URLs on your Stripe account to make sure we get notified about changes in subscriptions and payments.', 'wp-ultimo')); + $webhook_message = sprintf('%s', __('Whenever you change your Stripe settings, WP Multisite WaaS will automatically check the webhook URLs on your Stripe account to make sure we get notified about changes in subscriptions and payments.', 'wp-multisite-waas')); wu_register_settings_field( 'payment-gateways', 'stripe_webhook_listener_explanation', [ - 'title' => __('Webhook Listener URL', 'wp-ultimo'), + 'title' => __('Webhook Listener URL', 'wp-multisite-waas'), 'desc' => $webhook_message, - 'tooltip' => __('This is the URL Stripe should send webhook calls to.', 'wp-ultimo'), + 'tooltip' => __('This is the URL Stripe should send webhook calls to.', 'wp-multisite-waas'), 'type' => 'text-display', 'copy' => true, 'default' => $this->get_webhook_listener_url(), @@ -257,7 +257,7 @@ class Stripe_Gateway extends Base_Stripe_Gateway { if (is_wp_error($s_customer)) { // translators: %s is the error message. - return new \WP_Error($s_customer->get_error_code(), sprintf(__('Error creating Stripe customer: %s', 'wp-ultimo'), $s_customer->get_error_message())); + return new \WP_Error($s_customer->get_error_code(), sprintf(__('Error creating Stripe customer: %s', 'wp-multisite-waas'), $s_customer->get_error_message())); } $this->membership->set_gateway_customer_id($s_customer->id); @@ -509,7 +509,7 @@ class Stripe_Gateway extends Base_Stripe_Gateway { $payment_intent_id = $payment->get_meta('stripe_payment_intent_id'); if (empty($payment_intent_id)) { - throw new \Exception(__('Missing Stripe payment intent, please try again or contact support if the issue persists.', 'wp-ultimo'), 'missing_stripe_payment_intent'); + throw new \Exception(__('Missing Stripe payment intent, please try again or contact support if the issue persists.', 'wp-multisite-waas'), 'missing_stripe_payment_intent'); } /** @@ -544,7 +544,7 @@ class Stripe_Gateway extends Base_Stripe_Gateway { $s_customer = $this->get_or_create_customer($customer->get_id(), $customer->get_user_id(), $payment_intent->customer); // translators: first is the customer id, then the customer email. - $description = sprintf(__('Customer ID: %1$d - User Email: %2$s', 'wp-ultimo'), $customer->get_id(), $customer->get_email_address()); + $description = sprintf(__('Customer ID: %1$d - User Email: %2$s', 'wp-multisite-waas'), $customer->get_id(), $customer->get_email_address()); if (strlen($description) > 350) { $description = substr($description, 0, 350); @@ -646,12 +646,12 @@ class Stripe_Gateway extends Base_Stripe_Gateway { $card_options = $this->get_saved_card_options(); if ($card_options) { - $card_options['add-new'] = __('Add new card', 'wp-ultimo'); + $card_options['add-new'] = __('Add new card', 'wp-multisite-waas'); $fields = [ 'payment_method' => [ 'type' => 'radio', - 'title' => __('Saved Payment Methods', 'wp-ultimo'), + 'title' => __('Saved Payment Methods', 'wp-multisite-waas'), 'value' => wu_request('payment_method'), 'options' => $card_options, 'html_attr' => [ @@ -721,7 +721,7 @@ class Stripe_Gateway extends Base_Stripe_Gateway { $fields = [ "payment_method_{$payment_method}" => [ 'type' => 'text-display', - 'title' => __('Saved Cards', 'wp-ultimo'), + 'title' => __('Saved Cards', 'wp-multisite-waas'), 'display_value' => $card, ], ]; diff --git a/inc/helpers/class-screenshot.php b/inc/helpers/class-screenshot.php index b930970..655b976 100644 --- a/inc/helpers/class-screenshot.php +++ b/inc/helpers/class-screenshot.php @@ -83,7 +83,7 @@ class Screenshot { * Check if the results contain a PNG header. */ if (! str_starts_with($response['body'], "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a")) { - wu_log_add('screenshot-generator', $log_prefix . __('Result is not a PNG file.', 'wp-ultimo'), LogLevel::ERROR); + wu_log_add('screenshot-generator', $log_prefix . __('Result is not a PNG file.', 'wp-multisite-waas'), LogLevel::ERROR); return false; } @@ -122,7 +122,7 @@ class Screenshot { // Assign metadata to attachment wp_update_attachment_metadata($attach_id, $attach_data); - wu_log_add('screenshot-generator', $log_prefix . __('Success!', 'wp-ultimo')); + wu_log_add('screenshot-generator', $log_prefix . __('Success!', 'wp-multisite-waas')); return $attach_id; } diff --git a/inc/helpers/class-site-duplicator.php b/inc/helpers/class-site-duplicator.php index 25b1da9..a858adc 100644 --- a/inc/helpers/class-site-duplicator.php +++ b/inc/helpers/class-site-duplicator.php @@ -56,7 +56,7 @@ class Site_Duplicator { if (is_wp_error($duplicate_site)) { // translators: %s id the template site id and %s is the error message returned. - $message = sprintf(__('Attempt to duplicate site %1$d failed: %2$s', 'wp-ultimo'), $from_site_id, $duplicate_site->get_error_message()); + $message = sprintf(__('Attempt to duplicate site %1$d failed: %2$s', 'wp-multisite-waas'), $from_site_id, $duplicate_site->get_error_message()); wu_log_add('site-duplication', $message, LogLevel::ERROR); @@ -64,7 +64,7 @@ class Site_Duplicator { } // translators: %1$d is the ID of the site template used, and %2$d is the id of the new site. - $message = sprintf(__('Attempt to duplicate site %1$d successful - New site id: %2$d', 'wp-ultimo'), $from_site_id, $duplicate_site); + $message = sprintf(__('Attempt to duplicate site %1$d successful - New site id: %2$d', 'wp-multisite-waas'), $from_site_id, $duplicate_site); wu_log_add('site-duplication', $message); @@ -108,7 +108,7 @@ class Site_Duplicator { if (is_wp_error($duplicate_site_id)) { // translators: %s id the template site id and %s is the error message returned. - $message = sprintf(__('Attempt to override site %1$d with data from site %2$d failed: %3$s', 'wp-ultimo'), $from_site_id, $to_site_id, $duplicate_site_id->get_error_message()); + $message = sprintf(__('Attempt to override site %1$d with data from site %2$d failed: %3$s', 'wp-multisite-waas'), $from_site_id, $to_site_id, $duplicate_site_id->get_error_message()); wu_log_add('site-duplication', $message, LogLevel::ERROR); @@ -132,7 +132,7 @@ class Site_Duplicator { if ($saved) { // translators: %1$d is the ID of the site template used, and %2$d is the ID of the overriden site. - $message = sprintf(__('Attempt to override site %1$d with data from site %2$d successful.', 'wp-ultimo'), $from_site_id, $duplicate_site_id); + $message = sprintf(__('Attempt to override site %1$d with data from site %2$d successful.', 'wp-multisite-waas'), $from_site_id, $duplicate_site_id); wu_log_add('site-duplication', $message); @@ -188,7 +188,7 @@ class Site_Duplicator { $wpdb->hide_errors(); if ( ! $args->from_site_id) { - return new \WP_Error('from_site_id_required', __('You need to provide a valid site to duplicate.', 'wp-ultimo')); + return new \WP_Error('from_site_id_required', __('You need to provide a valid site to duplicate.', 'wp-multisite-waas')); } $user_id = ! empty($args->user_id) ? $args->user_id : self::create_admin($args->email, $site_domain); @@ -210,7 +210,7 @@ class Site_Duplicator { } if ( ! is_numeric($args->to_site_id)) { - return new \WP_Error('site_creation_failed', __('An attempt to create a new site failed.', 'wp-ultimo')); + return new \WP_Error('site_creation_failed', __('An attempt to create a new site failed.', 'wp-multisite-waas')); } if ( ! is_super_admin($user_id) && ! get_user_option('primary_blog', $user_id)) { @@ -274,7 +274,7 @@ class Site_Duplicator { $user_id = wpmu_create_user($domain, $password, $email); if (false === $user_id) { - return new \WP_Error('user_creation_error', __('We were not able to create a new admin user for the site being duplicated.', 'wp-ultimo')); + return new \WP_Error('user_creation_error', __('We were not able to create a new admin user for the site being duplicated.', 'wp-multisite-waas')); } else { wp_new_user_notification($user_id); } diff --git a/inc/helpers/class-validator.php b/inc/helpers/class-validator.php index 8d2da8e..87f9b0f 100644 --- a/inc/helpers/class-validator.php +++ b/inc/helpers/class-validator.php @@ -64,7 +64,7 @@ class Validator { public function __construct() { // translators: %s is the field name. - $field_required_message = sprintf(__('The %s field is required', 'wp-ultimo'), ':attribute'); + $field_required_message = sprintf(__('The %s field is required', 'wp-multisite-waas'), ':attribute'); $validation_error_messages = apply_filters( 'wu_validator_error_messages', @@ -73,17 +73,17 @@ class Validator { 'required_without' => $field_required_message, 'required_with' => $field_required_message, // translators: %s is the email field identifier - 'email' => sprintf(__('The %s is not valid email', 'wp-ultimo'), ':attribute'), + 'email' => sprintf(__('The %s is not valid email', 'wp-multisite-waas'), ':attribute'), // translators: 1st %s is the field name; 2nd is the allowed value - 'min' => sprintf(__('The %1$s minimum is %2$s', 'wp-ultimo'), ':attribute', ':min'), + 'min' => sprintf(__('The %1$s minimum is %2$s', 'wp-multisite-waas'), ':attribute', ':min'), // translators: 1st %s is the field name; 2nd is the allowed value - 'max' => sprintf(__('The %1$s maximum is %2$s', 'wp-ultimo'), ':attribute', ':max'), + 'max' => sprintf(__('The %1$s maximum is %2$s', 'wp-multisite-waas'), ':attribute', ':max'), // translators: %s is the field identifier - 'alpha_dash' => sprintf(__('The %s only allows a-z, 0-9, _ and -', 'wp-ultimo'), ':attribute'), + 'alpha_dash' => sprintf(__('The %s only allows a-z, 0-9, _ and -', 'wp-multisite-waas'), ':attribute'), // translators: %s is the field identifier - 'lowercase' => sprintf(__('The %s must be lowercase', 'wp-ultimo'), ':attribute'), + 'lowercase' => sprintf(__('The %s must be lowercase', 'wp-multisite-waas'), ':attribute'), // translators: %s is the field identifier - 'integer' => sprintf(__('The %s must be integer', 'wp-ultimo'), ':attribute'), + 'integer' => sprintf(__('The %s must be integer', 'wp-multisite-waas'), ':attribute'), ], $this ); @@ -92,8 +92,8 @@ class Validator { $this->validator->setTranslations( [ - 'and' => __('and', 'wp-ultimo'), - 'or' => __('or', 'wp-ultimo'), + 'and' => __('and', 'wp-multisite-waas'), + 'or' => __('or', 'wp-multisite-waas'), ] ); diff --git a/inc/helpers/class-wp-config.php b/inc/helpers/class-wp-config.php index 2ec4782..9ff538d 100644 --- a/inc/helpers/class-wp-config.php +++ b/inc/helpers/class-wp-config.php @@ -37,7 +37,7 @@ class WP_Config { if ( ! is_writable($config_path)) { // translators: %s is the file name. - return new \WP_Error('not-writeable', sprintf(__('The file %s is not writable', 'wp-ultimo'), $config_path)); + return new \WP_Error('not-writeable', sprintf(__('The file %s is not writable', 'wp-multisite-waas'), $config_path)); } $config = file($config_path); @@ -52,7 +52,7 @@ class WP_Config { $hook_line = $this->find_reference_hook_line($config); if (false === $hook_line) { - return new \WP_Error('unknown-wpconfig', __("WP Multisite WaaS can't recognize your wp-config.php, please revert it to original state for further process.", 'wp-ultimo')); + return new \WP_Error('unknown-wpconfig', __("WP Multisite WaaS can't recognize your wp-config.php, please revert it to original state for further process.", 'wp-multisite-waas')); } $config = $this->inject_contents($config, $hook_line + 1, PHP_EOL . $content . PHP_EOL); @@ -180,7 +180,7 @@ class WP_Config { if ( ! is_writable($config_path)) { // translators: %s is the file name. - return new \WP_Error('not-writeable', sprintf(__('The file %s is not writable', 'wp-ultimo'), $config_path)); + return new \WP_Error('not-writeable', sprintf(__('The file %s is not writable', 'wp-multisite-waas'), $config_path)); } $config = file($config_path); diff --git a/inc/helpers/validation-rules/class-checkout-steps.php b/inc/helpers/validation-rules/class-checkout-steps.php index 37c2ec2..f67f57f 100644 --- a/inc/helpers/validation-rules/class-checkout-steps.php +++ b/inc/helpers/validation-rules/class-checkout-steps.php @@ -75,7 +75,7 @@ class Checkout_Steps extends Rule { foreach ($required_fields_list as $field_slug) { if (! in_array($field_slug, $all_fields_list, true)) { - $this->message = sprintf(__('The %s field must be present in at least one of the checkout form steps.', 'wp-ultimo'), wu_slug_to_name($field_slug)); + $this->message = sprintf(__('The %s field must be present in at least one of the checkout form steps.', 'wp-multisite-waas'), wu_slug_to_name($field_slug)); return false; } @@ -111,7 +111,7 @@ class Checkout_Steps extends Rule { ); if (empty($found_submittable_field_types)) { - $this->message = sprintf(__('The %s step is missing a submit field', 'wp-ultimo'), $step['name']); + $this->message = sprintf(__('The %s step is missing a submit field', 'wp-multisite-waas'), $step['name']); return false; } diff --git a/inc/helpers/validation-rules/class-products.php b/inc/helpers/validation-rules/class-products.php index a3b42db..35d1ae4 100644 --- a/inc/helpers/validation-rules/class-products.php +++ b/inc/helpers/validation-rules/class-products.php @@ -55,7 +55,7 @@ class Products extends Rule { return true; } - $this->message = __('A plan is required.', 'wp-ultimo'); + $this->message = __('A plan is required.', 'wp-multisite-waas'); return false; } diff --git a/inc/helpers/validation-rules/class-site-template.php b/inc/helpers/validation-rules/class-site-template.php index 78847e0..9acfb4d 100644 --- a/inc/helpers/validation-rules/class-site-template.php +++ b/inc/helpers/validation-rules/class-site-template.php @@ -56,14 +56,14 @@ class Site_Template extends Rule { $site = wu_get_site($template_id); if (! $site || ($site->get_type() !== Site_Type::SITE_TEMPLATE && $site->get_type() !== Site_Type::CUSTOMER_OWNED)) { - $this->message = __('The Template ID does not correspond to a valid Template', 'wp-ultimo'); + $this->message = __('The Template ID does not correspond to a valid Template', 'wp-multisite-waas'); return false; } if ($site->get_type() === Site_Type::CUSTOMER_OWNED) { if (! wu_get_setting('allow_own_site_as_template')) { - $this->message = __('You can not use your sites as template', 'wp-ultimo'); + $this->message = __('You can not use your sites as template', 'wp-multisite-waas'); return false; } @@ -71,7 +71,7 @@ class Site_Template extends Rule { $customer = wu_get_current_customer(); if (! $customer || $site->get_customer_id() !== $customer->get_id()) { - $this->message = __('The selected template is not available.', 'wp-ultimo'); + $this->message = __('The selected template is not available.', 'wp-multisite-waas'); return false; } @@ -103,7 +103,7 @@ class Site_Template extends Rule { if (is_array($allowed_templates) && !in_array($template_id, $allowed_templates)) { // phpcs:ignore - $this->message = __('The selected template is not available for this product.', 'wp-ultimo'); + $this->message = __('The selected template is not available for this product.', 'wp-multisite-waas'); return false; } diff --git a/inc/helpers/validation-rules/class-unique.php b/inc/helpers/validation-rules/class-unique.php index a00b8c6..adf5478 100644 --- a/inc/helpers/validation-rules/class-unique.php +++ b/inc/helpers/validation-rules/class-unique.php @@ -78,7 +78,7 @@ class Unique extends Rule { * Customize the error message for the customer. */ if (in_array($model, $user_models, true)) { - $this->message = __('A customer with the same email address or username already exists.', 'wp-ultimo'); + $this->message = __('A customer with the same email address or username already exists.', 'wp-multisite-waas'); } if ( ! $existing) { diff --git a/inc/installers/class-core-installer.php b/inc/installers/class-core-installer.php index bb03b4a..2de900b 100644 --- a/inc/installers/class-core-installer.php +++ b/inc/installers/class-core-installer.php @@ -41,7 +41,7 @@ class Core_Installer extends Base_Installer { if ( ! (defined('SUNRISE') && SUNRISE)) { // translators: %s is a URL to a documentation link. - $closte_message = sprintf(__('You are using Closte and they prevent the wp-config.php file from being written to. Follow these instructions to do it manually.', 'wp-ultimo'), wu_get_documentation_url('wp-ultimo-closte-config')); + $closte_message = sprintf(__('You are using Closte and they prevent the wp-config.php file from being written to. Follow these instructions to do it manually.', 'wp-multisite-waas'), wu_get_documentation_url('wp-ultimo-closte-config')); throw new \Exception($closte_message); } @@ -68,21 +68,21 @@ class Core_Installer extends Base_Installer { $steps['database_tables'] = [ 'done' => $has_tables_installed, - 'title' => __('Create Database Tables', 'wp-ultimo'), - 'description' => __('WP Multisite WaaS uses custom tables for performance reasons. We need to create those tables and make sure they are setup properly before we can activate the plugin.', 'wp-ultimo'), - 'pending' => __('Pending', 'wp-ultimo'), - 'installing' => __('Creating default tables...', 'wp-ultimo'), - 'success' => __('Success!', 'wp-ultimo'), + 'title' => __('Create Database Tables', 'wp-multisite-waas'), + 'description' => __('WP Multisite WaaS uses custom tables for performance reasons. We need to create those tables and make sure they are setup properly before we can activate the plugin.', 'wp-multisite-waas'), + 'pending' => __('Pending', 'wp-multisite-waas'), + 'installing' => __('Creating default tables...', 'wp-multisite-waas'), + 'success' => __('Success!', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('installation-errors'), ]; $steps['sunrise'] = [ 'done' => defined('SUNRISE') && SUNRISE && defined('WP_ULTIMO_SUNRISE_VERSION'), - 'title' => __('Install sunrise.php File', 'wp-ultimo'), - 'description' => __('We need to add our own sunrise.php file to the wp-content folder in order to be able to control access to sites and plugins before anything else happens on WordPress. ', 'wp-ultimo'), - 'pending' => __('Pending', 'wp-ultimo'), - 'installing' => __('Installing sunrise file...', 'wp-ultimo'), - 'success' => __('Success!', 'wp-ultimo'), + 'title' => __('Install sunrise.php File', 'wp-multisite-waas'), + 'description' => __('We need to add our own sunrise.php file to the wp-content folder in order to be able to control access to sites and plugins before anything else happens on WordPress. ', 'wp-multisite-waas'), + 'pending' => __('Pending', 'wp-multisite-waas'), + 'installing' => __('Installing sunrise file...', 'wp-multisite-waas'), + 'success' => __('Success!', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('installation-errors'), ]; @@ -117,7 +117,7 @@ class Core_Installer extends Base_Installer { if (false === $success) { // translators: %s is the name of a database table, e.g. wu_memberships. - $error_message = sprintf(__('Installation of the table %s failed', 'wp-ultimo'), $table->get_name()); + $error_message = sprintf(__('Installation of the table %s failed', 'wp-multisite-waas'), $table->get_name()); throw new \Exception($error_message); } diff --git a/inc/installers/class-default-content-installer.php b/inc/installers/class-default-content-installer.php index 8825fb9..7042964 100644 --- a/inc/installers/class-default-content-installer.php +++ b/inc/installers/class-default-content-installer.php @@ -147,51 +147,51 @@ class Default_Content_Installer extends Base_Installer { $steps['create_template_site'] = [ 'done' => $this->done_creating_template_site(), - 'title' => __('Create Example Template Site', 'wp-ultimo'), - 'description' => __('This will create a template site on your network that you can use as a starting point.', 'wp-ultimo'), - 'pending' => __('Pending', 'wp-ultimo'), - 'installing' => __('Creating Template Site...', 'wp-ultimo'), - 'success' => __('Success!', 'wp-ultimo'), + 'title' => __('Create Example Template Site', 'wp-multisite-waas'), + 'description' => __('This will create a template site on your network that you can use as a starting point.', 'wp-multisite-waas'), + 'pending' => __('Pending', 'wp-multisite-waas'), + 'installing' => __('Creating Template Site...', 'wp-multisite-waas'), + 'success' => __('Success!', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('installation-errors'), ]; $steps['create_products'] = [ 'done' => $this->done_creating_products(), - 'title' => __('Create Example Products', 'wp-ultimo'), - 'description' => __('This action will create example products (plans, packages, and services), so you have an starting point.', 'wp-ultimo'), - 'pending' => __('Pending', 'wp-ultimo'), - 'installing' => __('Creating Products...', 'wp-ultimo'), - 'success' => __('Success!', 'wp-ultimo'), + 'title' => __('Create Example Products', 'wp-multisite-waas'), + 'description' => __('This action will create example products (plans, packages, and services), so you have an starting point.', 'wp-multisite-waas'), + 'pending' => __('Pending', 'wp-multisite-waas'), + 'installing' => __('Creating Products...', 'wp-multisite-waas'), + 'success' => __('Success!', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('installation-errors'), ]; $steps['create_checkout'] = [ 'done' => $this->done_creating_checkout_forms(), - 'title' => __('Create a Checkout Form', 'wp-ultimo'), - 'description' => __('This action will create a single-step checkout form that your customers will use to place purchases, as well as the page that goes with it.', 'wp-ultimo'), - 'pending' => __('Pending', 'wp-ultimo'), - 'installing' => __('Creating Checkout Form and Registration Page...', 'wp-ultimo'), - 'success' => __('Success!', 'wp-ultimo'), + 'title' => __('Create a Checkout Form', 'wp-multisite-waas'), + 'description' => __('This action will create a single-step checkout form that your customers will use to place purchases, as well as the page that goes with it.', 'wp-multisite-waas'), + 'pending' => __('Pending', 'wp-multisite-waas'), + 'installing' => __('Creating Checkout Form and Registration Page...', 'wp-multisite-waas'), + 'success' => __('Success!', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('installation-errors'), ]; $steps['create_emails'] = [ 'done' => $this->done_creating_emails(), - 'title' => __('Create the System Emails', 'wp-ultimo'), - 'description' => __('This action will create all emails sent by WP Multisite WaaS.', 'wp-ultimo'), - 'pending' => __('Pending', 'wp-ultimo'), - 'installing' => __('Creating System Emails...', 'wp-ultimo'), - 'success' => __('Success!', 'wp-ultimo'), + 'title' => __('Create the System Emails', 'wp-multisite-waas'), + 'description' => __('This action will create all emails sent by WP Multisite WaaS.', 'wp-multisite-waas'), + 'pending' => __('Pending', 'wp-multisite-waas'), + 'installing' => __('Creating System Emails...', 'wp-multisite-waas'), + 'success' => __('Success!', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('installation-errors'), ]; $steps['create_login_page'] = [ 'done' => $this->done_creating_login_page(), - 'title' => __('Create Custom Login Page', 'wp-ultimo'), - 'description' => __('This action will create a custom login page and replace the default one.', 'wp-ultimo'), - 'pending' => __('Pending', 'wp-ultimo'), - 'installing' => __('Creating Custom Login Page...', 'wp-ultimo'), - 'success' => __('Success!', 'wp-ultimo'), + 'title' => __('Create Custom Login Page', 'wp-multisite-waas'), + 'description' => __('This action will create a custom login page and replace the default one.', 'wp-multisite-waas'), + 'pending' => __('Pending', 'wp-multisite-waas'), + 'installing' => __('Creating Custom Login Page...', 'wp-multisite-waas'), + 'success' => __('Success!', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('installation-errors'), ]; @@ -214,7 +214,7 @@ class Default_Content_Installer extends Base_Installer { $template_site = [ 'domain' => $d->domain, 'path' => $d->path, - 'title' => __('Template Site', 'wp-ultimo'), + 'title' => __('Template Site', 'wp-multisite-waas'), 'type' => 'site_template', ]; @@ -225,7 +225,7 @@ class Default_Content_Installer extends Base_Installer { } if ( ! $status) { - $error_message = __('Template Site was not created. Maybe a site with the /template path already exists?', 'wp-ultimo'); + $error_message = __('Template Site was not created. Maybe a site with the /template path already exists?', 'wp-multisite-waas'); throw new \Exception($error_message); } @@ -256,8 +256,8 @@ class Default_Content_Installer extends Base_Installer { * Free Plan */ $products[] = [ - 'name' => __('Free', 'wp-ultimo'), - 'description' => __('This is an example of a free plan.', 'wp-ultimo'), + 'name' => __('Free', 'wp-multisite-waas'), + 'description' => __('This is an example of a free plan.', 'wp-multisite-waas'), 'currency' => wu_get_setting('currency_symbol', 'USD'), 'pricing_type' => 'free', 'duration' => 1, @@ -276,8 +276,8 @@ class Default_Content_Installer extends Base_Installer { * Premium Plan */ $products[] = [ - 'name' => __('Premium', 'wp-ultimo'), - 'description' => __('This is an example of a paid plan.', 'wp-ultimo'), + 'name' => __('Premium', 'wp-multisite-waas'), + 'description' => __('This is an example of a paid plan.', 'wp-multisite-waas'), 'currency' => wu_get_setting('currency_symbol', 'USD'), 'pricing_type' => 'paid', 'type' => 'plan', @@ -296,8 +296,8 @@ class Default_Content_Installer extends Base_Installer { * Service */ $products[] = [ - 'name' => __('SEO Consulting', 'wp-ultimo'), - 'description' => __('This is an example of a service that you can create and charge customers for.', 'wp-ultimo'), + 'name' => __('SEO Consulting', 'wp-multisite-waas'), + 'description' => __('This is an example of a service that you can create and charge customers for.', 'wp-multisite-waas'), 'currency' => wu_get_setting('currency_symbol', 'USD'), 'pricing_type' => 'paid', 'type' => 'service', @@ -335,7 +335,7 @@ class Default_Content_Installer extends Base_Installer { public function _install_create_checkout(): void { $checkout_form = [ - 'name' => __('Registration Form', 'wp-ultimo'), + 'name' => __('Registration Form', 'wp-multisite-waas'), 'slug' => 'main-form', 'settings' => [], ]; @@ -361,7 +361,7 @@ class Default_Content_Installer extends Base_Installer { */ $post_details = [ 'post_name' => 'register', - 'post_title' => __('Register', 'wp-ultimo'), + 'post_title' => __('Register', 'wp-multisite-waas'), 'post_content' => sprintf($post_content, $status->get_slug()), 'post_status' => 'publish', 'post_type' => 'page', @@ -408,7 +408,7 @@ class Default_Content_Installer extends Base_Installer { '; $page_args = [ - 'post_title' => __('Login', 'wp-ultimo'), + 'post_title' => __('Login', 'wp-multisite-waas'), 'post_content' => $page_content, 'post_status' => 'publish', 'post_author' => get_current_user_id(), diff --git a/inc/installers/class-migrator.php b/inc/installers/class-migrator.php index 6be3974..133605d 100644 --- a/inc/installers/class-migrator.php +++ b/inc/installers/class-migrator.php @@ -253,12 +253,12 @@ class Migrator extends Base_Installer { if ($dry_run && ! $force_all) { $steps['dry_run_check'] = [ - 'title' => __('Pre-Migration Check', 'wp-ultimo'), - 'description' => __('Runs all migrations in a sand-boxed environment to see if it hits an error.', 'wp-ultimo'), + 'title' => __('Pre-Migration Check', 'wp-multisite-waas'), + 'description' => __('Runs all migrations in a sand-boxed environment to see if it hits an error.', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), - 'pending' => __('Pending', 'wp-ultimo'), - 'installing' => __('Checking...', 'wp-ultimo'), - 'success' => __('Success!', 'wp-ultimo'), + 'pending' => __('Pending', 'wp-multisite-waas'), + 'installing' => __('Checking...', 'wp-multisite-waas'), + 'success' => __('Success!', 'wp-multisite-waas'), 'done' => false, ]; @@ -267,105 +267,105 @@ class Migrator extends Base_Installer { if ( ! $dry_run) { $steps['backup'] = [ - 'title' => __('Prepare for Migration', 'wp-ultimo'), - 'description' => __('Verifies the data before going forward with the migration.', 'wp-ultimo'), - 'pending' => __('Pending', 'wp-ultimo'), - 'installing' => __('Preparing...', 'wp-ultimo'), - 'success' => __('Success!', 'wp-ultimo'), + 'title' => __('Prepare for Migration', 'wp-multisite-waas'), + 'description' => __('Verifies the data before going forward with the migration.', 'wp-multisite-waas'), + 'pending' => __('Pending', 'wp-multisite-waas'), + 'installing' => __('Preparing...', 'wp-multisite-waas'), + 'success' => __('Success!', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; } $steps['settings'] = [ - 'title' => __('Settings', 'wp-ultimo'), - 'description' => __('Migrates the settings from the older version.', 'wp-ultimo'), + 'title' => __('Settings', 'wp-multisite-waas'), + 'description' => __('Migrates the settings from the older version.', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['products'] = [ - 'title' => __('Plans to Products', 'wp-ultimo'), - 'description' => __('Converts the old plans into products.', 'wp-ultimo'), + 'title' => __('Plans to Products', 'wp-multisite-waas'), + 'description' => __('Converts the old plans into products.', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['customers'] = [ - 'title' => __('Users to Customers', 'wp-ultimo'), - 'description' => __('Creates customers based on the existing users.', 'wp-ultimo'), + 'title' => __('Users to Customers', 'wp-multisite-waas'), + 'description' => __('Creates customers based on the existing users.', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['memberships'] = [ - 'title' => __('Subscriptions to Memberships', 'wp-ultimo'), - 'description' => __('Converts subscriptions into Memberships.', 'wp-ultimo'), + 'title' => __('Subscriptions to Memberships', 'wp-multisite-waas'), + 'description' => __('Converts subscriptions into Memberships.', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['transactions'] = [ - 'title' => __('Transactions to Payments & Events', 'wp-ultimo'), - 'description' => __('Converts transactions into payments and events.', 'wp-ultimo'), + 'title' => __('Transactions to Payments & Events', 'wp-multisite-waas'), + 'description' => __('Converts transactions into payments and events.', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['discount_codes'] = [ - 'title' => __('Coupons to Discount Codes', 'wp-ultimo'), - 'description' => __('Converts coupons into discount codes.', 'wp-ultimo'), + 'title' => __('Coupons to Discount Codes', 'wp-multisite-waas'), + 'description' => __('Converts coupons into discount codes.', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['sites'] = [ - 'title' => __('Customer Sites', 'wp-ultimo'), - 'description' => __('Adjusts existing customer sites.', 'wp-ultimo'), - 'installing' => __('Making Adjustments...', 'wp-ultimo'), + 'title' => __('Customer Sites', 'wp-multisite-waas'), + 'description' => __('Adjusts existing customer sites.', 'wp-multisite-waas'), + 'installing' => __('Making Adjustments...', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['site_templates'] = [ - 'title' => __('Sites Templates', 'wp-ultimo'), - 'description' => __('Adjusts existing site templates.', 'wp-ultimo'), - 'installing' => __('Making Adjustments...', 'wp-ultimo'), + 'title' => __('Sites Templates', 'wp-multisite-waas'), + 'description' => __('Adjusts existing site templates.', 'wp-multisite-waas'), + 'installing' => __('Making Adjustments...', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['domains'] = [ - 'title' => __('Mapped Domains', 'wp-ultimo'), - 'description' => __('Converts mapped domains.', 'wp-ultimo'), + 'title' => __('Mapped Domains', 'wp-multisite-waas'), + 'description' => __('Converts mapped domains.', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['forms'] = [ - 'title' => __('Checkout Forms', 'wp-ultimo'), - 'description' => __('Creates a checkout form based on the existing signup flow.', 'wp-ultimo'), + 'title' => __('Checkout Forms', 'wp-multisite-waas'), + 'description' => __('Creates a checkout form based on the existing signup flow.', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['emails'] = [ - 'title' => __('Emails & Broadcasts', 'wp-ultimo'), - 'description' => __('Converts the emails and broadcasts.', 'wp-ultimo'), + 'title' => __('Emails & Broadcasts', 'wp-multisite-waas'), + 'description' => __('Converts the emails and broadcasts.', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['webhooks'] = [ - 'title' => __('Webhooks', 'wp-ultimo'), - 'description' => __('Migrates existing webhooks.', 'wp-ultimo'), + 'title' => __('Webhooks', 'wp-multisite-waas'), + 'description' => __('Migrates existing webhooks.', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['other'] = [ - 'title' => __('Other Migrations', 'wp-ultimo'), - 'description' => __('Other migrations that don\'t really fit anywhere else.', 'wp-ultimo'), + 'title' => __('Other Migrations', 'wp-multisite-waas'), + 'description' => __('Other migrations that don\'t really fit anywhere else.', 'wp-multisite-waas'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; @@ -374,9 +374,9 @@ class Migrator extends Base_Installer { fn($item) => wp_parse_args( $item, [ - 'pending' => __('Pending', 'wp-ultimo'), - 'installing' => __('Migrating...', 'wp-ultimo'), - 'success' => __('Success!', 'wp-ultimo'), + 'pending' => __('Pending', 'wp-multisite-waas'), + 'installing' => __('Migrating...', 'wp-multisite-waas'), + 'success' => __('Success!', 'wp-multisite-waas'), ] ), $steps @@ -578,7 +578,7 @@ class Migrator extends Base_Installer { $caller = $dry_run ? $wu_migrator_current_installer : $installer; // Translators: %s is the name of the installer. - $error_nice_message = sprintf(__('Critical error found when migrating "%s".', 'wp-ultimo'), $caller); + $error_nice_message = sprintf(__('Critical error found when migrating "%s".', 'wp-multisite-waas'), $caller); if ($session) { $errors = (array) $session->get('errors'); @@ -912,7 +912,7 @@ class Migrator extends Base_Installer { 'preview_url_parameter' => 'template-preview', 'bg_color' => $this->get_old_setting('top-bar-bg-color', '#f9f9f9'), 'button_bg_color' => $this->get_old_setting('top-bar-button-bg-color', '#00a1ff'), - 'button_text' => $this->get_old_setting('top-bar-button-text', __('Use this Template', 'wp-ultimo')), + 'button_text' => $this->get_old_setting('top-bar-button-text', __('Use this Template', 'wp-multisite-waas')), 'display_responsive_controls' => $this->get_old_setting('top-bar-enable-resize', true), 'use_custom_logo' => $this->get_old_setting('top-bar-use-logo'), 'custom_logo' => $this->get_old_setting('top-bar-logo'), @@ -2310,7 +2310,7 @@ class Migrator extends Base_Installer { } $checkout_form = [ - 'name' => __('Signup Form', 'wp-ultimo'), + 'name' => __('Signup Form', 'wp-multisite-waas'), 'slug' => 'main-form', 'allowed_countries' => $this->get_old_setting('allowed_countries', []), 'settings' => [], @@ -2347,7 +2347,7 @@ class Migrator extends Base_Installer { */ $post_details = [ 'post_name' => $page_slug, - 'post_title' => __('Signup', 'wp-ultimo'), + 'post_title' => __('Signup', 'wp-multisite-waas'), 'post_status' => 'publish', 'post_type' => 'page', 'post_content' => sprintf($post_content, $status->get_slug()), @@ -2387,7 +2387,7 @@ class Migrator extends Base_Installer { */ $login_post_details = [ 'post_name' => $login_page_slug, - 'post_title' => __('Login', 'wp-ultimo'), + 'post_title' => __('Login', 'wp-multisite-waas'), 'post_status' => 'publish', 'post_type' => 'page', 'post_content' => '', diff --git a/inc/integrations/host-providers/class-base-host-provider.php b/inc/integrations/host-providers/class-base-host-provider.php index 3903a3f..c695ee0 100644 --- a/inc/integrations/host-providers/class-base-host-provider.php +++ b/inc/integrations/host-providers/class-base-host-provider.php @@ -200,7 +200,7 @@ abstract class Base_Host_Provider { $slug = $this->get_id(); - $html = $this->is_enabled() ? sprintf(' %s', __('Activated', 'wp-ultimo')) : ''; + $html = $this->is_enabled() ? sprintf(' %s', __('Activated', 'wp-multisite-waas')) : ''; $url = wu_network_admin_url( 'wp-ultimo-hosting-integration-wizard', @@ -209,14 +209,14 @@ abstract class Base_Host_Provider { ] ); - $html .= sprintf('%s', $url, __('Configuration', 'wp-ultimo')); + $html .= sprintf('%s', $url, __('Configuration', 'wp-multisite-waas')); // translators: %s is the name of a host provider (e.g. Cloudways, WPMUDev, Closte...). - $title = sprintf(__('%s Integration', 'wp-ultimo'), $this->get_title()); + $title = sprintf(__('%s Integration', 'wp-multisite-waas'), $this->get_title()); $title .= sprintf( "%s", - __('Go to the setup wizard to setup this integration.', 'wp-ultimo') + __('Go to the setup wizard to setup this integration.', 'wp-multisite-waas') ); wu_register_settings_field( @@ -243,14 +243,14 @@ abstract class Base_Host_Provider { } // translators: %1$s will be replaced with the integration title. E.g. RunCloud - $message = sprintf(__('It looks like you are using %1$s as your hosting provider, yet the %1$s integration module is not active. In order for the domain mapping integration to work with %1$s, you might want to activate that module.', 'wp-ultimo'), $this->get_title()); + $message = sprintf(__('It looks like you are using %1$s as your hosting provider, yet the %1$s integration module is not active. In order for the domain mapping integration to work with %1$s, you might want to activate that module.', 'wp-multisite-waas'), $this->get_title()); $slug = $this->get_id(); $actions = [ 'activate' => [ // translators: %s is the integration name. - 'title' => sprintf(__('Activate %s', 'wp-ultimo'), $this->get_title()), + 'title' => sprintf(__('Activate %s', 'wp-multisite-waas'), $this->get_title()), 'url' => wu_network_admin_url( 'wp-ultimo-hosting-integration-wizard', [ @@ -276,14 +276,14 @@ abstract class Base_Host_Provider { } // translators: %1$s will be replaced with the integration title. E.g. RunCloud. - $message = sprintf(__('It looks like you are using %1$s as your hosting provider, yet the %1$s integration module was not properly setup. In order for the domain mapping integration to work with %1$s, you need to configure that module.', 'wp-ultimo'), $this->get_title()); + $message = sprintf(__('It looks like you are using %1$s as your hosting provider, yet the %1$s integration module was not properly setup. In order for the domain mapping integration to work with %1$s, you need to configure that module.', 'wp-multisite-waas'), $this->get_title()); $slug = $this->get_id(); $actions = [ 'activate' => [ // translators: %s is the integration name - 'title' => sprintf(__('Setup %s', 'wp-ultimo'), $this->get_title()), + 'title' => sprintf(__('Setup %s', 'wp-multisite-waas'), $this->get_title()), 'url' => wu_network_admin_url( 'wp-ultimo-hosting-integration-wizard', [ @@ -560,7 +560,7 @@ abstract class Base_Host_Provider { $explainer_lines = [ 'will' => [ // translators: %s is the name of the integration e.g. RunCloud - 'send_domains' => sprintf(__('Send API calls to %s servers with domain names added to this network', 'wp-ultimo'), $this->get_title()), + 'send_domains' => sprintf(__('Send API calls to %s servers with domain names added to this network', 'wp-multisite-waas'), $this->get_title()), ], 'will_not' => [], ]; @@ -568,11 +568,11 @@ abstract class Base_Host_Provider { if ($this->supports('autossl')) { // translators: %s is the name of the integration e.g. RunCloud - $explainer_lines['will'][] = sprintf(__('Fetch and install a SSL certificate on %s platform after the domain is added.', 'wp-ultimo'), $this->get_title()); + $explainer_lines['will'][] = sprintf(__('Fetch and install a SSL certificate on %s platform after the domain is added.', 'wp-multisite-waas'), $this->get_title()); } else { // translators: %s is the name of the integration e.g. RunCloud - $explainer_lines['will_not'][] = sprintf(__('Fetch and install a SSL certificate on %s platform after the domain is added. This needs to be done manually.', 'wp-ultimo'), $this->get_title()); + $explainer_lines['will_not'][] = sprintf(__('Fetch and install a SSL certificate on %s platform after the domain is added. This needs to be done manually.', 'wp-multisite-waas'), $this->get_title()); } return $explainer_lines; @@ -643,7 +643,7 @@ abstract class Base_Host_Provider { */ public function get_description() { - return __('No description provided.', 'wp-ultimo'); + return __('No description provided.', 'wp-multisite-waas'); } /** diff --git a/inc/integrations/host-providers/class-closte-host-provider.php b/inc/integrations/host-providers/class-closte-host-provider.php index 9bdb871..7e8ecff 100644 --- a/inc/integrations/host-providers/class-closte-host-provider.php +++ b/inc/integrations/host-providers/class-closte-host-provider.php @@ -162,7 +162,7 @@ class Closte_Host_Provider extends Base_Host_Provider { ); } - $error = new \WP_Error('not-auth', __('Something went wrong', 'wp-ultimo')); + $error = new \WP_Error('not-auth', __('Something went wrong', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -224,7 +224,7 @@ class Closte_Host_Provider extends Base_Host_Provider { */ public function get_description() { - return __('Closte is not just another web hosting who advertise their services as a cloud hosting while still provides fixed plans like in 1995.', 'wp-ultimo'); + return __('Closte is not just another web hosting who advertise their services as a cloud hosting while still provides fixed plans like in 1995.', 'wp-multisite-waas'); } /** diff --git a/inc/integrations/host-providers/class-cloudflare-host-provider.php b/inc/integrations/host-providers/class-cloudflare-host-provider.php index b029dce..761b41c 100644 --- a/inc/integrations/host-providers/class-cloudflare-host-provider.php +++ b/inc/integrations/host-providers/class-cloudflare-host-provider.php @@ -116,9 +116,9 @@ class Cloudflare_Host_Provider extends Base_Host_Provider { ); if ( ! empty($dns_entries->result)) { - $proxied_tag = sprintf('%s', wu_tooltip_text(__('Proxied', 'wp-ultimo')), __('Cloudflare', 'wp-ultimo')); + $proxied_tag = sprintf('%s', wu_tooltip_text(__('Proxied', 'wp-multisite-waas')), __('Cloudflare', 'wp-multisite-waas')); - $not_proxied_tag = sprintf('%s', wu_tooltip_text(__('Not Proxied', 'wp-ultimo')), __('Cloudflare', 'wp-ultimo')); + $not_proxied_tag = sprintf('%s', wu_tooltip_text(__('Not Proxied', 'wp-multisite-waas')), __('Cloudflare', 'wp-multisite-waas')); foreach ($dns_entries->result as $entry) { $dns_records[] = [ @@ -163,12 +163,12 @@ class Cloudflare_Host_Provider extends Base_Host_Provider { return [ 'WU_CLOUDFLARE_ZONE_ID' => [ - 'title' => __('Zone ID', 'wp-ultimo'), - 'placeholder' => __('e.g. 644c7705723d62e31f700bb798219c75', 'wp-ultimo'), + 'title' => __('Zone ID', 'wp-multisite-waas'), + 'placeholder' => __('e.g. 644c7705723d62e31f700bb798219c75', 'wp-multisite-waas'), ], 'WU_CLOUDFLARE_API_KEY' => [ - 'title' => __('API Key', 'wp-ultimo'), - 'placeholder' => __('e.g. xKGbxxVDpdcUv9dUzRf4i4ngv0QNf1wCtbehiec_o', 'wp-ultimo'), + 'title' => __('API Key', 'wp-multisite-waas'), + 'placeholder' => __('e.g. xKGbxxVDpdcUv9dUzRf4i4ngv0QNf1wCtbehiec_o', 'wp-multisite-waas'), ], ]; } @@ -423,7 +423,7 @@ class Cloudflare_Host_Provider extends Base_Host_Provider { */ public function get_description() { - return __('Cloudflare secures and ensures the reliability of your external-facing resources such as websites, APIs, and applications. It protects your internal resources such as behind-the-firewall applications, teams, and devices. And it is your platform for developing globally-scalable applications.', 'wp-ultimo'); + return __('Cloudflare secures and ensures the reliability of your external-facing resources such as websites, APIs, and applications. It protects your internal resources such as behind-the-firewall applications, teams, and devices. And it is your platform for developing globally-scalable applications.', 'wp-multisite-waas'); } /** @@ -451,12 +451,12 @@ class Cloudflare_Host_Provider extends Base_Host_Provider { ]; if (is_subdomain_install()) { - $explainer_lines['will']['send_sub_domains'] = __('Add a new proxied subdomain to the configured CloudFlare zone whenever a new site gets created', 'wp-ultimo'); + $explainer_lines['will']['send_sub_domains'] = __('Add a new proxied subdomain to the configured CloudFlare zone whenever a new site gets created', 'wp-multisite-waas'); } else { - $explainer_lines['will']['subdirectory'] = __('Do nothing! The CloudFlare integration has no effect in subdirectory multisite installs such as this one', 'wp-ultimo'); + $explainer_lines['will']['subdirectory'] = __('Do nothing! The CloudFlare integration has no effect in subdirectory multisite installs such as this one', 'wp-multisite-waas'); } - $explainer_lines['will_not']['send_domain'] = __('Add domain mappings as new CloudFlare zones', 'wp-ultimo'); + $explainer_lines['will_not']['send_domain'] = __('Add domain mappings as new CloudFlare zones', 'wp-multisite-waas'); return $explainer_lines; } diff --git a/inc/integrations/host-providers/class-cloudways-host-provider.php b/inc/integrations/host-providers/class-cloudways-host-provider.php index 9572960..59c1882 100644 --- a/inc/integrations/host-providers/class-cloudways-host-provider.php +++ b/inc/integrations/host-providers/class-cloudways-host-provider.php @@ -146,30 +146,30 @@ class Cloudways_Host_Provider extends Base_Host_Provider { return [ 'WU_CLOUDWAYS_EMAIL' => [ - 'title' => __('Cloudways Account Email', 'wp-ultimo'), - 'desc' => __('Your Cloudways account email address.', 'wp-ultimo'), - 'placeholder' => __('e.g. me@gmail.com', 'wp-ultimo'), + 'title' => __('Cloudways Account Email', 'wp-multisite-waas'), + 'desc' => __('Your Cloudways account email address.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. me@gmail.com', 'wp-multisite-waas'), ], 'WU_CLOUDWAYS_API_KEY' => [ - 'title' => __('Cloudways API Key', 'wp-ultimo'), - 'desc' => __('The API Key retrieved in the previous step.', 'wp-ultimo'), - 'placeholder' => __('e.g. eYP0Jo3Fzzm5SOZCi5nLR0Mki2lbYZ', 'wp-ultimo'), + 'title' => __('Cloudways API Key', 'wp-multisite-waas'), + 'desc' => __('The API Key retrieved in the previous step.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. eYP0Jo3Fzzm5SOZCi5nLR0Mki2lbYZ', 'wp-multisite-waas'), ], 'WU_CLOUDWAYS_SERVER_ID' => [ - 'title' => __('Cloudways Server ID', 'wp-ultimo'), - 'desc' => __('The Server ID retrieved in the previous step.', 'wp-ultimo'), - 'placeholder' => __('e.g. 11667', 'wp-ultimo'), + 'title' => __('Cloudways Server ID', 'wp-multisite-waas'), + 'desc' => __('The Server ID retrieved in the previous step.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. 11667', 'wp-multisite-waas'), ], 'WU_CLOUDWAYS_APP_ID' => [ - 'title' => __('Cloudways App ID', 'wp-ultimo'), - 'desc' => __('The App ID retrieved in the previous step.', 'wp-ultimo'), - 'placeholder' => __('e.g. 940288', 'wp-ultimo'), + 'title' => __('Cloudways App ID', 'wp-multisite-waas'), + 'desc' => __('The App ID retrieved in the previous step.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. 940288', 'wp-multisite-waas'), ], 'WU_CLOUDWAYS_EXTRA_DOMAINS' => [ - 'title' => __('Cloudways Extra Domains', 'wp-ultimo'), - 'tooltip' => __('The Cloudways API is a bit strange in that it doesn’t offer a way to add or remove just one domain, only a way to update the whole domain list. That means that WP Multisite WaaS will replace all domains you might have there with the list of mapped domains of the network every time a new domain is added.', 'wp-ultimo'), - 'desc' => __('Comma-separated list of additional domains to add to Cloudways.', 'wp-ultimo'), - 'placeholder' => __('e.g. *.test.com, test.com', 'wp-ultimo'), + 'title' => __('Cloudways Extra Domains', 'wp-multisite-waas'), + 'tooltip' => __('The Cloudways API is a bit strange in that it doesn’t offer a way to add or remove just one domain, only a way to update the whole domain list. That means that WP Multisite WaaS will replace all domains you might have there with the list of mapped domains of the network every time a new domain is added.', 'wp-multisite-waas'), + 'desc' => __('Comma-separated list of additional domains to add to Cloudways.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. *.test.com, test.com', 'wp-multisite-waas'), ], ]; } @@ -530,7 +530,7 @@ class Cloudways_Host_Provider extends Base_Host_Provider { */ public function get_description() { - return __('Focus on your business and avoid all the web hosting hassles. Our managed hosting guarantees unmatched performance, reliability and choice with 24/7 support that acts as your extended team, making Cloudways an ultimate choice for growing agencies and e-commerce businesses.', 'wp-ultimo'); + return __('Focus on your business and avoid all the web hosting hassles. Our managed hosting guarantees unmatched performance, reliability and choice with 24/7 support that acts as your extended team, making Cloudways an ultimate choice for growing agencies and e-commerce businesses.', 'wp-multisite-waas'); } /** diff --git a/inc/integrations/host-providers/class-cpanel-host-provider.php b/inc/integrations/host-providers/class-cpanel-host-provider.php index 08777f8..96333ba 100644 --- a/inc/integrations/host-providers/class-cpanel-host-provider.php +++ b/inc/integrations/host-providers/class-cpanel-host-provider.php @@ -112,26 +112,26 @@ class CPanel_Host_Provider extends Base_Host_Provider { return [ 'WU_CPANEL_USERNAME' => [ - 'title' => __('cPanel Username', 'wp-ultimo'), - 'placeholder' => __('e.g. username', 'wp-ultimo'), + 'title' => __('cPanel Username', 'wp-multisite-waas'), + 'placeholder' => __('e.g. username', 'wp-multisite-waas'), ], 'WU_CPANEL_PASSWORD' => [ 'type' => 'password', - 'title' => __('cPanel Password', 'wp-ultimo'), - 'placeholder' => __('password', 'wp-ultimo'), + 'title' => __('cPanel Password', 'wp-multisite-waas'), + 'placeholder' => __('password', 'wp-multisite-waas'), ], 'WU_CPANEL_HOST' => [ - 'title' => __('cPanel Host', 'wp-ultimo'), - 'placeholder' => __('e.g. yourdomain.com', 'wp-ultimo'), + 'title' => __('cPanel Host', 'wp-multisite-waas'), + 'placeholder' => __('e.g. yourdomain.com', 'wp-multisite-waas'), ], 'WU_CPANEL_PORT' => [ - 'title' => __('cPanel Port', 'wp-ultimo'), - 'placeholder' => __('Defaults to 2083', 'wp-ultimo'), + 'title' => __('cPanel Port', 'wp-multisite-waas'), + 'placeholder' => __('Defaults to 2083', 'wp-multisite-waas'), 'value' => 2083, ], 'WU_CPANEL_ROOT_DIR' => [ - 'title' => __('Root Directory', 'wp-ultimo'), - 'placeholder' => __('Defaults to /public_html', 'wp-ultimo'), + 'title' => __('Root Directory', 'wp-multisite-waas'), + 'placeholder' => __('Defaults to /public_html', 'wp-multisite-waas'), 'value' => '/public_html', ], ]; @@ -300,7 +300,7 @@ class CPanel_Host_Provider extends Base_Host_Provider { if (is_object($results->cpanelresult->data)) { return wu_log_add('integration-cpanel', $results->cpanelresult->data->reason); } elseif ( ! isset($results->cpanelresult->data[0])) { - return wu_log_add('integration-cpanel', __('Unexpected error ocurred trying to sync domains with CPanel', 'wp-ultimo'), LogLevel::ERROR); + return wu_log_add('integration-cpanel', __('Unexpected error ocurred trying to sync domains with CPanel', 'wp-multisite-waas'), LogLevel::ERROR); } return wu_log_add('integration-cpanel', $results->cpanelresult->data[0]->reason); @@ -314,7 +314,7 @@ class CPanel_Host_Provider extends Base_Host_Provider { */ public function get_description() { - return __('cPanel is the management panel being used on a large number of shared and dedicated hosts across the globe.', 'wp-ultimo'); + return __('cPanel is the management panel being used on a large number of shared and dedicated hosts across the globe.', 'wp-multisite-waas'); } /** @@ -359,13 +359,13 @@ class CPanel_Host_Provider extends Base_Host_Provider { $explainer_lines = [ 'will' => [ - 'send_domains' => __('Add a new Addon Domain on cPanel whenever a new domain mapping gets created on your network', 'wp-ultimo'), + 'send_domains' => __('Add a new Addon Domain on cPanel whenever a new domain mapping gets created on your network', 'wp-multisite-waas'), ], 'will_not' => [], ]; if (is_subdomain_install()) { - $explainer_lines['will']['send_sub_domains'] = __('Add a new SubDomain on cPanel whenever a new site gets created on your network', 'wp-ultimo'); + $explainer_lines['will']['send_sub_domains'] = __('Add a new SubDomain on cPanel whenever a new site gets created on your network', 'wp-multisite-waas'); } return $explainer_lines; diff --git a/inc/integrations/host-providers/class-gridpane-host-provider.php b/inc/integrations/host-providers/class-gridpane-host-provider.php index 7af16bd..597520d 100644 --- a/inc/integrations/host-providers/class-gridpane-host-provider.php +++ b/inc/integrations/host-providers/class-gridpane-host-provider.php @@ -208,7 +208,7 @@ class Gridpane_Host_Provider extends Base_Host_Provider { if (wu_get_isset($results, 'message') === 'This action is unauthorized.') { wp_send_json_error( [ - 'error' => __('We were not able to successfully establish a connection.', 'wp-ultimo'), + 'error' => __('We were not able to successfully establish a connection.', 'wp-multisite-waas'), ] ); } @@ -216,14 +216,14 @@ class Gridpane_Host_Provider extends Base_Host_Provider { if (is_wp_error($results)) { wp_send_json_error( [ - 'error' => __('We were not able to successfully establish a connection.', 'wp-ultimo'), + 'error' => __('We were not able to successfully establish a connection.', 'wp-multisite-waas'), ] ); } wp_send_json_success( [ - 'success' => __('Connection successfully established.', 'wp-ultimo'), + 'success' => __('Connection successfully established.', 'wp-multisite-waas'), ] ); } @@ -247,7 +247,7 @@ class Gridpane_Host_Provider extends Base_Host_Provider { */ public function get_description() { - return __("GridPane is the world's first hosting control panel built exclusively for serious WordPress professionals.", 'wp-ultimo'); + return __("GridPane is the world's first hosting control panel built exclusively for serious WordPress professionals.", 'wp-multisite-waas'); } /** diff --git a/inc/integrations/host-providers/class-runcloud-host-provider.php b/inc/integrations/host-providers/class-runcloud-host-provider.php index 8b28579..0232904 100644 --- a/inc/integrations/host-providers/class-runcloud-host-provider.php +++ b/inc/integrations/host-providers/class-runcloud-host-provider.php @@ -91,24 +91,24 @@ class Runcloud_Host_Provider extends Base_Host_Provider { return [ 'WU_RUNCLOUD_API_KEY' => [ - 'title' => __('RunCloud API Key', 'wp-ultimo'), - 'desc' => __('The API Key retrieved in the previous step.', 'wp-ultimo'), - 'placeholder' => __('e.g. Sx9tHAn5XMrkeyZKS1a7uj8dGTLgKnlEOaJEFRt1m95L', 'wp-ultimo'), + 'title' => __('RunCloud API Key', 'wp-multisite-waas'), + 'desc' => __('The API Key retrieved in the previous step.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. Sx9tHAn5XMrkeyZKS1a7uj8dGTLgKnlEOaJEFRt1m95L', 'wp-multisite-waas'), ], 'WU_RUNCLOUD_API_SECRET' => [ - 'title' => __('RunCloud API Secret', 'wp-ultimo'), - 'desc' => __('The API secret retrieved in the previous step.', 'wp-ultimo'), - 'placeholder' => __('e.g. ZlAebXp2sa6J5xsrPoiPcMXZRIVsHJ2rEkNCNGknZnF0UK5cSNSePS8GBW9FXIQd', 'wp-ultimo'), + 'title' => __('RunCloud API Secret', 'wp-multisite-waas'), + 'desc' => __('The API secret retrieved in the previous step.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. ZlAebXp2sa6J5xsrPoiPcMXZRIVsHJ2rEkNCNGknZnF0UK5cSNSePS8GBW9FXIQd', 'wp-multisite-waas'), ], 'WU_RUNCLOUD_SERVER_ID' => [ - 'title' => __('RunCloud Server ID', 'wp-ultimo'), - 'desc' => __('The Server ID retrieved in the previous step.', 'wp-ultimo'), - 'placeholder' => __('e.g. 11667', 'wp-ultimo'), + 'title' => __('RunCloud Server ID', 'wp-multisite-waas'), + 'desc' => __('The Server ID retrieved in the previous step.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. 11667', 'wp-multisite-waas'), ], 'WU_RUNCLOUD_APP_ID' => [ - 'title' => __('RunCloud App ID', 'wp-ultimo'), - 'desc' => __('The App ID retrieved in the previous step.', 'wp-ultimo'), - 'placeholder' => __('e.g. 940288', 'wp-ultimo'), + 'title' => __('RunCloud App ID', 'wp-multisite-waas'), + 'desc' => __('The App ID retrieved in the previous step.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. 940288', 'wp-multisite-waas'), ], ]; } @@ -168,7 +168,7 @@ class Runcloud_Host_Provider extends Base_Host_Provider { $domain_id = $this->get_runcloud_domain_id($domain); if ( ! $domain_id) { - wu_log_add('integration-runcloud', __('Domain name not found on runcloud', 'wp-ultimo')); + wu_log_add('integration-runcloud', __('Domain name not found on runcloud', 'wp-multisite-waas')); } $response = $this->send_runcloud_request($this->get_runcloud_base_url("domains/$domain_id"), [], 'DELETE'); @@ -372,7 +372,7 @@ class Runcloud_Host_Provider extends Base_Host_Provider { */ public function get_description() { - return __('With RunCloud, you don’t need to be a Linux expert to build a website powered by DigitalOcean, AWS, or Google Cloud. Use our graphical interface and build a business on the cloud affordably.', 'wp-ultimo'); + return __('With RunCloud, you don’t need to be a Linux expert to build a website powered by DigitalOcean, AWS, or Google Cloud. Use our graphical interface and build a business on the cloud affordably.', 'wp-multisite-waas'); } /** diff --git a/inc/integrations/host-providers/class-serverpilot-host-provider.php b/inc/integrations/host-providers/class-serverpilot-host-provider.php index 3e4e0a9..34374ee 100644 --- a/inc/integrations/host-providers/class-serverpilot-host-provider.php +++ b/inc/integrations/host-providers/class-serverpilot-host-provider.php @@ -91,19 +91,19 @@ class ServerPilot_Host_Provider extends Base_Host_Provider { return [ 'WU_SERVER_PILOT_CLIENT_ID' => [ - 'title' => __('ServerPilot Client ID', 'wp-ultimo'), - 'desc' => __('Your ServerPilot Client ID.', 'wp-ultimo'), - 'placeholder' => __('e.g. cid_lSmjevkdoSOpasYVqm', 'wp-ultimo'), + 'title' => __('ServerPilot Client ID', 'wp-multisite-waas'), + 'desc' => __('Your ServerPilot Client ID.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. cid_lSmjevkdoSOpasYVqm', 'wp-multisite-waas'), ], 'WU_SERVER_PILOT_API_KEY' => [ - 'title' => __('ServerPilot API Key', 'wp-ultimo'), - 'desc' => __('The API Key retrieved in the previous step.', 'wp-ultimo'), - 'placeholder' => __('e.g. eYP0Jo3Fzzm5SOZCi5nLR0Mki2lbYZ', 'wp-ultimo'), + 'title' => __('ServerPilot API Key', 'wp-multisite-waas'), + 'desc' => __('The API Key retrieved in the previous step.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. eYP0Jo3Fzzm5SOZCi5nLR0Mki2lbYZ', 'wp-multisite-waas'), ], 'WU_SERVER_PILOT_APP_ID' => [ - 'title' => __('ServerPilot App ID', 'wp-ultimo'), - 'desc' => __('The App ID retrieved in the previous step.', 'wp-ultimo'), - 'placeholder' => __('e.g. 940288', 'wp-ultimo'), + 'title' => __('ServerPilot App ID', 'wp-multisite-waas'), + 'desc' => __('The App ID retrieved in the previous step.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. 940288', 'wp-multisite-waas'), ], ]; } @@ -274,7 +274,7 @@ class ServerPilot_Host_Provider extends Base_Host_Provider { */ // translators: %s is the json_encode of the error. - wu_log_add('integration-serverpilot', sprintf(__('An error occurred while trying to get the current list of domains: %s', 'wp-ultimo'), json_encode($app_info)), LogLevel::ERROR); + wu_log_add('integration-serverpilot', sprintf(__('An error occurred while trying to get the current list of domains: %s', 'wp-multisite-waas'), json_encode($app_info)), LogLevel::ERROR); return false; } @@ -315,7 +315,7 @@ class ServerPilot_Host_Provider extends Base_Host_Provider { */ public function get_description() { - return __('ServerPilot is a cloud service for hosting WordPress and other PHP websites on servers at DigitalOcean, Amazon, Google, or any other server provider. You can think of ServerPilot as a modern, centralized hosting control panel.', 'wp-ultimo'); + return __('ServerPilot is a cloud service for hosting WordPress and other PHP websites on servers at DigitalOcean, Amazon, Google, or any other server provider. You can think of ServerPilot as a modern, centralized hosting control panel.', 'wp-multisite-waas'); } /** diff --git a/inc/integrations/host-providers/class-wpengine-host-provider.php b/inc/integrations/host-providers/class-wpengine-host-provider.php index 0b1cae3..10d56f8 100644 --- a/inc/integrations/host-providers/class-wpengine-host-provider.php +++ b/inc/integrations/host-providers/class-wpengine-host-provider.php @@ -172,9 +172,9 @@ class WPEngine_Host_Provider extends Base_Host_Provider { */ public function get_description() { - $description = __('WP Engine drives your business forward faster with the first and only WordPress Digital Experience Platform. We offer the best WordPress hosting and developer experience on a proven, reliable architecture that delivers unparalleled speed, scalability, and security for your sites.', 'wp-ultimo'); + $description = __('WP Engine drives your business forward faster with the first and only WordPress Digital Experience Platform. We offer the best WordPress hosting and developer experience on a proven, reliable architecture that delivers unparalleled speed, scalability, and security for your sites.', 'wp-multisite-waas'); - $description .= '

' . __('We recommend to enter in contact with WP Engine support to ask for a Wildcard domain if you are using a subdomain install.', 'wp-ultimo') . ''; + $description .= '

' . __('We recommend to enter in contact with WP Engine support to ask for a Wildcard domain if you are using a subdomain install.', 'wp-multisite-waas') . ''; return $description; } diff --git a/inc/integrations/host-providers/class-wpmudev-host-provider.php b/inc/integrations/host-providers/class-wpmudev-host-provider.php index 75040c0..1607d2e 100644 --- a/inc/integrations/host-providers/class-wpmudev-host-provider.php +++ b/inc/integrations/host-providers/class-wpmudev-host-provider.php @@ -157,7 +157,7 @@ class WPMUDEV_Host_Provider extends Base_Host_Provider { if (is_wp_error($response)) { // translators: The %s placeholder will be replaced with the domain name. - wu_log_add('integration-wpmudev', sprintf(__('An error occurred while trying to add the custom domain %s to WPMU Dev hosting.', 'wp-ultimo'), $_domain), LogLevel::ERROR); + wu_log_add('integration-wpmudev', sprintf(__('An error occurred while trying to add the custom domain %s to WPMU Dev hosting.', 'wp-multisite-waas'), $_domain), LogLevel::ERROR); } $body = json_decode(wp_remote_retrieve_body($response)); @@ -165,11 +165,11 @@ class WPMUDEV_Host_Provider extends Base_Host_Provider { if ($body->message) { // translators: The %1$s will be replaced with the domain name and %2$s is the error message. - wu_log_add('integration-wpmudev', sprintf(__('An error occurred while trying to add the custom domain %1$s to WPMU Dev hosting: %2$s', 'wp-ultimo'), $_domain, $body->message->message), LogLevel::ERROR); + wu_log_add('integration-wpmudev', sprintf(__('An error occurred while trying to add the custom domain %1$s to WPMU Dev hosting: %2$s', 'wp-multisite-waas'), $_domain, $body->message->message), LogLevel::ERROR); } else { // translators: The %s placeholder will be replaced with the domain name. - wu_log_add('integration-wpmudev', sprintf(__('Domain %s added to WPMU Dev hosting successfully.', 'wp-ultimo'), $_domain)); + wu_log_add('integration-wpmudev', sprintf(__('Domain %s added to WPMU Dev hosting successfully.', 'wp-multisite-waas'), $_domain)); } } } @@ -253,7 +253,7 @@ class WPMUDEV_Host_Provider extends Base_Host_Provider { */ public function get_description() { - return __('WPMU DEV is one of the largest companies in the WordPress space. Founded in 2004, it was one of the first companies to scale the Website as a Service model with products such as Edublogs and CampusPress.', 'wp-ultimo'); + return __('WPMU DEV is one of the largest companies in the WordPress space. Founded in 2004, it was one of the first companies to scale the Website as a Service model with products such as Edublogs and CampusPress.', 'wp-multisite-waas'); } /** diff --git a/inc/integrations/host-providers/cpanel-api/class-cpanel-api.php b/inc/integrations/host-providers/cpanel-api/class-cpanel-api.php index fdcbc13..cbeb879 100644 --- a/inc/integrations/host-providers/cpanel-api/class-cpanel-api.php +++ b/inc/integrations/host-providers/cpanel-api/class-cpanel-api.php @@ -154,13 +154,13 @@ class CPanel_API { fopen($this->cookie_file, 'w'); } catch (Exception $ex) { if ( ! file_exists($this->cookie_file)) { - $this->log($ex . __('Cookie file missing.', 'wp-ultimo')); + $this->log($ex . __('Cookie file missing.', 'wp-multisite-waas')); return false; } } } elseif ( ! is_writable($this->cookie_file)) { - $this->log(__('Cookie file not writable', 'wp-ultimo')); + $this->log(__('Cookie file not writable', 'wp-multisite-waas')); return false; } @@ -204,7 +204,7 @@ class CPanel_API { if (curl_error($ch)) { // translators: %s is the cURL error. - $this->log(sprintf(__('cPanel API Error: %s', 'wp-ultimo'), curl_error($ch))); + $this->log(sprintf(__('cPanel API Error: %s', 'wp-multisite-waas'), curl_error($ch))); return false; } @@ -249,7 +249,7 @@ class CPanel_API { $this->homepage = $this->get_base_url() . $reply['redirect']; $this->ex_page = $this->get_base_url() . "/{$this->cpsess}/execute/"; } else { - return $this->log(__('Cannot connect to your cPanel server : Invalid Credentials', 'wp-ultimo')); + return $this->log(__('Cannot connect to your cPanel server : Invalid Credentials', 'wp-multisite-waas')); } } diff --git a/inc/internal/class-memory-trap.php b/inc/internal/class-memory-trap.php index 5d7fd95..e3863d3 100644 --- a/inc/internal/class-memory-trap.php +++ b/inc/internal/class-memory-trap.php @@ -97,7 +97,7 @@ class Memory_Trap { */ public function memory_limit_error_handler($error): void { // phpcs:ignore - $message = sprintf(__('Your server\'s PHP and WordPress memory limits are too low to perform this check. You might need to contact your host provider and ask the PHP memory limit in particular to be raised.', 'wp-ultimo')); + $message = sprintf(__('Your server\'s PHP and WordPress memory limits are too low to perform this check. You might need to contact your host provider and ask the PHP memory limit in particular to be raised.', 'wp-multisite-waas')); if ('json' === $this->return_type) { wp_send_json_error( diff --git a/inc/invoices/class-invoice.php b/inc/invoices/class-invoice.php index d921bb5..c79bf61 100644 --- a/inc/invoices/class-invoice.php +++ b/inc/invoices/class-invoice.php @@ -104,7 +104,7 @@ class Invoice { $this->printer->SetProtection(['print']); - $this->printer->SetTitle(__('Invoice', 'wp-ultimo')); + $this->printer->SetTitle(__('Invoice', 'wp-multisite-waas')); $this->printer->SetAuthor($this->company_name); @@ -251,7 +251,7 @@ class Invoice { 'use_custom_logo' => false, 'custom_logo' => false, 'footer_message' => '', - 'paid_tag_text' => __('Paid', 'wp-ultimo'), + 'paid_tag_text' => __('Paid', 'wp-multisite-waas'), ] ); diff --git a/inc/limits/class-customer-user-role-limits.php b/inc/limits/class-customer-user-role-limits.php index 095673a..1f5c836 100644 --- a/inc/limits/class-customer-user-role-limits.php +++ b/inc/limits/class-customer-user-role-limits.php @@ -62,7 +62,7 @@ class Customer_User_Role_Limits { return; } - $message = __('You reached your membership users limit.', 'wp-ultimo'); + $message = __('You reached your membership users limit.', 'wp-multisite-waas'); /** * Allow developers to change the message about the membership users limit @@ -71,7 +71,7 @@ class Customer_User_Role_Limits { */ $message = apply_filters('wu_users_membership_limit_message', $message); - wp_die($message, __('Limit Reached', 'wp-ultimo'), ['back_link' => true]); + wp_die($message, __('Limit Reached', 'wp-multisite-waas'), ['back_link' => true]); } /** diff --git a/inc/limits/class-plugin-limits.php b/inc/limits/class-plugin-limits.php index d479773..03da257 100644 --- a/inc/limits/class-plugin-limits.php +++ b/inc/limits/class-plugin-limits.php @@ -145,7 +145,7 @@ class Plugin_Limits { %s ', - __('Always Loaded', 'wp-ultimo') + __('Always Loaded', 'wp-multisite-waas') ); } @@ -160,8 +160,8 @@ class Plugin_Limits { 'type' => $plugin_file, ] ), - __('Upgrade to unlock', 'wp-ultimo'), - __('Upgrade to unlock', 'wp-ultimo') + __('Upgrade to unlock', 'wp-multisite-waas'), + __('Upgrade to unlock', 'wp-multisite-waas') ); $actions['upgrade'] = $upgrade; @@ -196,7 +196,7 @@ class Plugin_Limits { unset($plugins[ $plugin_slug ]); } - if (str_starts_with($plugin_slug, 'wp-ultimo')) { + if (str_starts_with($plugin_slug, 'wp-multisite-waas')) { unset($plugins[ $plugin_slug ]); } @@ -236,7 +236,7 @@ class Plugin_Limits { $plugin_limits = wu_get_current_site()->get_limitations()->plugins; foreach ($plugins as $plugin_slug => $timestamp) { - if (str_contains($plugin_slug, 'wp-ultimo')) { + if (str_contains($plugin_slug, 'wp-multisite-waas')) { continue; } @@ -289,7 +289,7 @@ class Plugin_Limits { $plugin_limits = wu_get_current_site()->get_limitations()->plugins; foreach ($plugins as $plugin_slug) { - if (str_contains((string) $plugin_slug, 'wp-ultimo')) { + if (str_contains((string) $plugin_slug, 'wp-multisite-waas')) { continue; } diff --git a/inc/limits/class-post-type-limits.php b/inc/limits/class-post-type-limits.php index dfd6022..0900a1f 100644 --- a/inc/limits/class-post-type-limits.php +++ b/inc/limits/class-post-type-limits.php @@ -132,18 +132,18 @@ class Post_Type_Limits { $screen = get_current_screen(); if ( ! wu_get_current_site()->get_limitations()->post_types->{$screen->post_type}->enabled) { - $upgrade_message = __('Your plan does not support this post type.', 'wp-ultimo'); + $upgrade_message = __('Your plan does not support this post type.', 'wp-multisite-waas'); // translators: %s is the URL. - wp_die($upgrade_message, __('Limit Reached', 'wp-ultimo'), ['back_link' => true]); + wp_die($upgrade_message, __('Limit Reached', 'wp-multisite-waas'), ['back_link' => true]); } // Check if that is more than our limit if (wu_get_current_site()->get_limitations()->post_types->is_post_above_limit($screen->post_type)) { - $upgrade_message = __('You reached your plan\'s post limit.', 'wp-ultimo'); + $upgrade_message = __('You reached your plan\'s post limit.', 'wp-multisite-waas'); // translators: %s is the URL - wp_die($upgrade_message, __('Limit Reached', 'wp-ultimo'), ['back_link' => true]); + wp_die($upgrade_message, __('Limit Reached', 'wp-multisite-waas'), ['back_link' => true]); } } @@ -196,7 +196,7 @@ class Post_Type_Limits { public function limit_media($file) { if ( ! wu_get_current_site()->get_limitations()->post_types->attachment->enabled) { - $file['error'] = __('Your plan does not support media upload.', 'wp-ultimo'); + $file['error'] = __('Your plan does not support media upload.', 'wp-multisite-waas'); return $file; } @@ -223,7 +223,7 @@ class Post_Type_Limits { if ($quota > 0 && $post_count >= $quota) { // translators: %d is the number of images allowed. - $file['error'] = sprintf(__('You reached your media upload limit of %d images. Upgrade your account to unlock more media uploads.', 'wp-ultimo'), $quota, '#'); + $file['error'] = sprintf(__('You reached your media upload limit of %d images. Upgrade your account to unlock more media uploads.', 'wp-multisite-waas'), $quota, '#'); } return $file; diff --git a/inc/limits/class-theme-limits.php b/inc/limits/class-theme-limits.php index 78f9f5c..1402a06 100644 --- a/inc/limits/class-theme-limits.php +++ b/inc/limits/class-theme-limits.php @@ -126,7 +126,7 @@ class Theme_Limits { if ($theme_limitations->allowed($new_theme, 'not_available')) { $response = [ 'code' => 'not-available', - 'message' => __('This theme is not available on your current plan.', 'wp-ultimo'), + 'message' => __('This theme is not available on your current plan.', 'wp-multisite-waas'), ]; wp_send_json($response, 'not-available'); @@ -168,7 +168,7 @@ class Theme_Limits { } $upgrade_button = wu_generate_upgrade_to_unlock_button( - __('Upgrade to unlock', 'wp-ultimo'), + __('Upgrade to unlock', 'wp-multisite-waas'), [ 'module' => 'themes', 'type' => 'EXTENSION', diff --git a/inc/list-tables/class-base-list-table.php b/inc/list-tables/class-base-list-table.php index fcdfea7..498968d 100644 --- a/inc/list-tables/class-base-list-table.php +++ b/inc/list-tables/class-base-list-table.php @@ -171,7 +171,7 @@ class Base_List_Table extends \WP_List_Table { if ('grid' === $this->current_mode) { printf( '', - __('Select All', 'wp-ultimo') + __('Select All', 'wp-multisite-waas') ); } } @@ -405,7 +405,7 @@ class Base_List_Table extends \WP_List_Table { 'base_url' => wu_get_form_url('bulk_actions'), 'model' => strstr($this->get_table_id(), '_', true), 'i18n' => [ - 'confirm' => __('Confirm Action', 'wp-ultimo'), + 'confirm' => __('Confirm Action', 'wp-multisite-waas'), ], ] ); @@ -504,10 +504,10 @@ class Base_List_Table extends \WP_List_Table { if ( ! $this->has_items() && 'page' === $this->context) { echo wu_render_empty_state( [ - 'message' => sprintf(__("You don't have any %s yet.", 'wp-ultimo'), $this->labels['plural']), - 'sub_message' => $this->_args['add_new'] ? __('How about we create a new one?', 'wp-ultimo') : __('...but you will see them here once they get created.', 'wp-ultimo'), + 'message' => sprintf(__("You don't have any %s yet.", 'wp-multisite-waas'), $this->labels['plural']), + 'sub_message' => $this->_args['add_new'] ? __('How about we create a new one?', 'wp-multisite-waas') : __('...but you will see them here once they get created.', 'wp-multisite-waas'), // translators: %s is the singular value of the model, such as Product, or Payment. - 'link_label' => sprintf(__('Create a new %s', 'wp-ultimo'), $this->labels['singular']), + 'link_label' => sprintf(__('Create a new %s', 'wp-multisite-waas'), $this->labels['singular']), 'link_url' => wu_get_isset($this->_args['add_new'], 'url', ''), 'link_classes' => wu_get_isset($this->_args['add_new'], 'classes', ''), 'link_icon' => 'dashicons-wu-circle-with-plus', @@ -596,7 +596,7 @@ class Base_List_Table extends \WP_List_Table { '
%s
', - __('No items found', 'wp-ultimo') + __('No items found', 'wp-multisite-waas') ); } @@ -608,7 +608,7 @@ class Base_List_Table extends \WP_List_Table { public function get_bulk_actions() { $default_bulk_actions = [ - 'delete' => __('Delete', 'wp-ultimo'), + 'delete' => __('Delete', 'wp-multisite-waas'), ]; $has_active = $this->get_schema_columns( @@ -618,8 +618,8 @@ class Base_List_Table extends \WP_List_Table { ); if ($has_active) { - $default_bulk_actions['activate'] = __('Activate', 'wp-ultimo'); - $default_bulk_actions['deactivate'] = __('Deactivate', 'wp-ultimo'); + $default_bulk_actions['activate'] = __('Activate', 'wp-multisite-waas'); + $default_bulk_actions['deactivate'] = __('Deactivate', 'wp-multisite-waas'); } return apply_filters('wu_bulk_actions', $default_bulk_actions, $this->id); @@ -660,7 +660,7 @@ class Base_List_Table extends \WP_List_Table { $func_name = $prefix . $model; if ( ! function_exists($func_name)) { - return new \WP_Error('func-not-exists', __('Something went wrong.', 'wp-ultimo')); + return new \WP_Error('func-not-exists', __('Something went wrong.', 'wp-multisite-waas')); } switch ($bulk_action) { @@ -827,14 +827,14 @@ class Base_List_Table extends \WP_List_Table { public function _column_datetime($date) { if ( ! wu_validate_date($date)) { - return __('--', 'wp-ultimo'); + return __('--', 'wp-multisite-waas'); } $time = strtotime(get_date_from_gmt((string) $date)); $formatted_value = date_i18n(get_option('date_format'), $time); - $placeholder = wu_get_current_time('timestamp') > $time ? __('%s ago', 'wp-ultimo') : __('In %s', 'wp-ultimo'); // phpcs:ignore + $placeholder = wu_get_current_time('timestamp') > $time ? __('%s ago', 'wp-multisite-waas') : __('In %s', 'wp-multisite-waas'); // phpcs:ignore $text = $formatted_value . sprintf('
%s', sprintf($placeholder, human_time_diff($time))); @@ -854,7 +854,7 @@ class Base_List_Table extends \WP_List_Table { $membership = $item->get_membership(); if ( ! $membership) { - $not_found = __('No membership found', 'wp-ultimo'); + $not_found = __('No membership found', 'wp-multisite-waas'); return "
  @@ -902,7 +902,7 @@ class Base_List_Table extends \WP_List_Table { $payment = $item->get_payment(); if ( ! $payment) { - $not_found = __('No payment found', 'wp-ultimo'); + $not_found = __('No payment found', 'wp-multisite-waas'); return "
  @@ -922,7 +922,7 @@ class Base_List_Table extends \WP_List_Table { $reference = $payment->get_hash(); - $description = sprintf(__('Total %s', 'wp-ultimo'), wu_format_currency($payment->get_total(), $payment->get_currency())); + $description = sprintf(__('Total %s', 'wp-multisite-waas'), wu_format_currency($payment->get_total(), $payment->get_currency())); $payment_link = wu_network_admin_url('wp-ultimo-edit-payment', $url_atts); @@ -950,7 +950,7 @@ class Base_List_Table extends \WP_List_Table { $customer = $item->get_customer(); if ( ! $customer) { - $not_found = __('No customer found', 'wp-ultimo'); + $not_found = __('No customer found', 'wp-multisite-waas'); return "
  @@ -1007,7 +1007,7 @@ class Base_List_Table extends \WP_List_Table { $product = $item->get_plan(); if ( ! $product) { - $not_found = __('No product found', 'wp-ultimo'); + $not_found = __('No product found', 'wp-multisite-waas'); return "
  @@ -1060,7 +1060,7 @@ class Base_List_Table extends \WP_List_Table { $site = $item->get_site(); if ( ! $site) { - $not_found = __('No site found', 'wp-ultimo'); + $not_found = __('No site found', 'wp-multisite-waas'); return "
  @@ -1220,47 +1220,47 @@ class Base_List_Table extends \WP_List_Table { return [ 'all' => [ - 'label' => __('All', 'wp-ultimo'), + 'label' => __('All', 'wp-multisite-waas'), 'after' => null, 'before' => null, ], 'today' => [ - 'label' => __('Today', 'wp-ultimo'), + 'label' => __('Today', 'wp-multisite-waas'), 'after' => date_i18n('Y-m-d 00:00:00', strtotime('today')), 'before' => date_i18n('Y-m-d 23:59:59', strtotime('today')), ], 'yesterday' => [ - 'label' => __('Yesterday', 'wp-ultimo'), + 'label' => __('Yesterday', 'wp-multisite-waas'), 'after' => date_i18n('Y-m-d 00:00:00', strtotime('yesterday')), 'before' => date_i18n('Y-m-d 23:59:59', strtotime('yesterday')), ], 'last_week' => [ - 'label' => __('Last 7 Days', 'wp-ultimo'), + 'label' => __('Last 7 Days', 'wp-multisite-waas'), 'after' => date_i18n('Y-m-d 00:00:00', strtotime('last week')), 'before' => date_i18n('Y-m-d 23:59:59', strtotime('today')), ], 'last_month' => [ - 'label' => __('Last 30 Days', 'wp-ultimo'), + 'label' => __('Last 30 Days', 'wp-multisite-waas'), 'after' => date_i18n('Y-m-d 00:00:00', strtotime('last month')), 'before' => date_i18n('Y-m-d 23:59:59', strtotime('today')), ], 'current_month' => [ - 'label' => __('Current Month', 'wp-ultimo'), + 'label' => __('Current Month', 'wp-multisite-waas'), 'after' => date_i18n('Y-m-d 00:00:00', strtotime('first day of this month')), 'before' => date_i18n('Y-m-d 23:59:59', strtotime('today')), ], 'last_year' => [ - 'label' => __('Last 12 Months', 'wp-ultimo'), + 'label' => __('Last 12 Months', 'wp-multisite-waas'), 'after' => date_i18n('Y-m-d 00:00:00', strtotime('last year')), 'before' => date_i18n('Y-m-d 23:59:59', strtotime('today')), ], 'year_to_date' => [ - 'label' => __('Year to Date', 'wp-ultimo'), + 'label' => __('Year to Date', 'wp-multisite-waas'), 'after' => date_i18n('Y-m-d 00:00:00', strtotime('first day of january this year')), 'before' => date_i18n('Y-m-d 23:59:59', strtotime('today')), ], 'custom' => [ - 'label' => __('Custom', 'wp-ultimo'), + 'label' => __('Custom', 'wp-multisite-waas'), 'after' => null, 'before' => null, ], @@ -1409,7 +1409,7 @@ class Base_List_Table extends \WP_List_Table { 'all' => [ 'field' => 'type', 'url' => '#', - 'label' => sprintf(__('All %s', 'wp-ultimo'), $this->get_label('plural')), + 'label' => sprintf(__('All %s', 'wp-multisite-waas'), $this->get_label('plural')), 'count' => 0, ], ]; diff --git a/inc/list-tables/class-broadcast-list-table.php b/inc/list-tables/class-broadcast-list-table.php index 4c5497c..db1040f 100644 --- a/inc/list-tables/class-broadcast-list-table.php +++ b/inc/list-tables/class-broadcast-list-table.php @@ -36,8 +36,8 @@ class Broadcast_List_Table extends Base_List_Table { parent::__construct( [ - 'singular' => __('Broadcast', 'wp-ultimo'), // singular name of the listed records - 'plural' => __('Broadcasts', 'wp-ultimo'), // plural name of the listed records + 'singular' => __('Broadcast', 'wp-multisite-waas'), // singular name of the listed records + 'plural' => __('Broadcasts', 'wp-multisite-waas'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_get_form_url('add_new_broadcast_message'), @@ -79,13 +79,13 @@ class Broadcast_List_Table extends Base_List_Table { $class = 'wu-bg-gray-200'; if ('broadcast_email' === $type) { - $label = __('Email', 'wp-ultimo'); + $label = __('Email', 'wp-multisite-waas'); } if ('broadcast_notice' === $type) { $status = $item->get_notice_type(); - $label = __('Notice', 'wp-ultimo'); + $label = __('Notice', 'wp-multisite-waas'); if ('info' === $status) { $class = 'wu-bg-blue-200'; @@ -121,8 +121,8 @@ class Broadcast_List_Table extends Base_List_Table { ]; $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-broadcast', $url_atts), __('Edit', 'wp-ultimo')), - 'delete' => sprintf('%s', __('Delete', 'wp-ultimo'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'wp-ultimo')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-broadcast', $url_atts), __('Edit', 'wp-multisite-waas')), + 'delete' => sprintf('%s', __('Delete', 'wp-multisite-waas'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'wp-multisite-waas')), ]; return $title . $content . $this->row_actions($actions); @@ -148,7 +148,7 @@ class Broadcast_List_Table extends Base_List_Table { switch ($targets_count) { case 0: - $not_found = __('No customer found', 'wp-ultimo'); + $not_found = __('No customer found', 'wp-multisite-waas'); return "
  @@ -235,9 +235,9 @@ class Broadcast_List_Table extends Base_List_Table { %s %s
', wu_get_form_url('view_broadcast_targets', $modal_atts), - __('Targets', 'wp-ultimo'), + __('Targets', 'wp-multisite-waas'), $targets_count, - __('Targets', 'wp-ultimo') + __('Targets', 'wp-multisite-waas') ); $html .= '
'; @@ -258,9 +258,9 @@ class Broadcast_List_Table extends Base_List_Table { %s %s
', wu_get_form_url('view_broadcast_targets', $modal_atts), - __('Targets', 'wp-ultimo'), + __('Targets', 'wp-multisite-waas'), $targets_count, - __('Targets', 'wp-ultimo') + __('Targets', 'wp-multisite-waas') ); $html .= '
'; @@ -291,7 +291,7 @@ class Broadcast_List_Table extends Base_List_Table { switch ($product_count) { case 0: - $not_found = __('No product found', 'wp-ultimo'); + $not_found = __('No product found', 'wp-multisite-waas'); $html = "
  @@ -325,7 +325,7 @@ class Broadcast_List_Table extends Base_List_Table { $customer_count = count($plan_customers); } - $description = sprintf(__('%s customer(s) targeted.', 'wp-ultimo'), $customer_count); + $description = sprintf(__('%s customer(s) targeted.', 'wp-multisite-waas'), $customer_count); $url_atts = [ 'id' => $product->get_id(), @@ -384,9 +384,9 @@ class Broadcast_List_Table extends Base_List_Table { '', wu_get_form_url('view_broadcast_targets', $modal_atts), - __('Targets', 'wp-ultimo'), + __('Targets', 'wp-multisite-waas'), $product_count, - __('Targets', 'wp-ultimo') + __('Targets', 'wp-multisite-waas') ); $html .= '
'; @@ -402,7 +402,7 @@ class Broadcast_List_Table extends Base_List_Table { 'target_type' => 'products', ]; - $html .= sprintf('', wu_get_form_url('view_broadcast_targets', $modal_atts), __('Targets', 'wp-ultimo'), $product_count, __('Targets', 'wp-ultimo')); + $html .= sprintf('', wu_get_form_url('view_broadcast_targets', $modal_atts), __('Targets', 'wp-multisite-waas'), $product_count, __('Targets', 'wp-multisite-waas')); $html .= '
'; @@ -419,12 +419,12 @@ class Broadcast_List_Table extends Base_List_Table { $columns = [ 'cb' => '', - 'type' => __('Type', 'wp-ultimo'), - 'the_content' => __('Content', 'wp-ultimo'), - 'target_customers' => __('Target Customers', 'wp-ultimo'), - 'target_products' => __('Target Products', 'wp-ultimo'), - 'date_created' => __('Date', 'wp-ultimo'), - 'id' => __('ID', 'wp-ultimo'), + 'type' => __('Type', 'wp-multisite-waas'), + 'the_content' => __('Content', 'wp-multisite-waas'), + 'target_customers' => __('Target Customers', 'wp-multisite-waas'), + 'target_products' => __('Target Products', 'wp-multisite-waas'), + 'date_created' => __('Date', 'wp-multisite-waas'), + 'id' => __('ID', 'wp-multisite-waas'), ]; return $columns; @@ -440,25 +440,25 @@ class Broadcast_List_Table extends Base_List_Table { return [ 'filters' => [ 'type' => [ - 'label' => __('Broadcast Type', 'wp-ultimo'), + 'label' => __('Broadcast Type', 'wp-multisite-waas'), 'options' => [ - 'broadcast_notice' => __('Email', 'wp-ultimo'), - 'broadcast_email' => __('Notices', 'wp-ultimo'), + 'broadcast_notice' => __('Email', 'wp-multisite-waas'), + 'broadcast_email' => __('Notices', 'wp-multisite-waas'), ], ], 'status' => [ - 'label' => __('Notice Type', 'wp-ultimo'), + 'label' => __('Notice Type', 'wp-multisite-waas'), 'options' => [ - 'info' => __('Info - Blue', 'wp-ultimo'), - 'success' => __('Success - Green', 'wp-ultimo'), - 'warning' => __('Warning - Yellow', 'wp-ultimo'), - 'error' => __('Error - Red', 'wp-ultimo'), + 'info' => __('Info - Blue', 'wp-multisite-waas'), + 'success' => __('Success - Green', 'wp-multisite-waas'), + 'warning' => __('Warning - Yellow', 'wp-multisite-waas'), + 'error' => __('Error - Red', 'wp-multisite-waas'), ], ], ], 'date_filters' => [ 'date_created' => [ - 'label' => __('Date', 'wp-ultimo'), + 'label' => __('Date', 'wp-multisite-waas'), 'options' => $this->get_default_date_filter_options(), ], ], @@ -488,19 +488,19 @@ class Broadcast_List_Table extends Base_List_Table { 'all' => [ 'field' => 'status', 'url' => add_query_arg('type', 'all'), - 'label' => __('All Broadcasts', 'wp-ultimo'), + 'label' => __('All Broadcasts', 'wp-multisite-waas'), 'count' => 0, ], 'broadcast_email' => [ 'field' => 'type', 'url' => add_query_arg('type', 'broadcast_email'), - 'label' => __('Emails', 'wp-ultimo'), + 'label' => __('Emails', 'wp-multisite-waas'), 'count' => 0, ], 'broadcast_notice' => [ 'field' => 'type', 'url' => add_query_arg('type', 'broadcast_notice'), - 'label' => __('Notices', 'wp-ultimo'), + 'label' => __('Notices', 'wp-multisite-waas'), 'count' => 0, ], ]; diff --git a/inc/list-tables/class-checkout-form-list-table.php b/inc/list-tables/class-checkout-form-list-table.php index 9b091ee..a4e1e9f 100644 --- a/inc/list-tables/class-checkout-form-list-table.php +++ b/inc/list-tables/class-checkout-form-list-table.php @@ -36,8 +36,8 @@ class Checkout_Form_List_Table extends Base_List_Table { parent::__construct( [ - 'singular' => __('Checkout Form', 'wp-ultimo'), // singular name of the listed records - 'plural' => __('Checkout Forms', 'wp-ultimo'), // plural name of the listed records + 'singular' => __('Checkout Form', 'wp-multisite-waas'), // singular name of the listed records + 'plural' => __('Checkout Forms', 'wp-multisite-waas'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_get_form_url('add_new_checkout_form'), @@ -65,7 +65,7 @@ class Checkout_Form_List_Table extends Base_List_Table { $title = sprintf('%s', wu_network_admin_url('wp-ultimo-edit-checkout-form', $url_atts), $item->get_name()); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-checkout-form', $url_atts), __('Edit', 'wp-ultimo')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-checkout-form', $url_atts), __('Edit', 'wp-multisite-waas')), 'duplicate' => sprintf( '%s', wu_network_admin_url( @@ -75,10 +75,10 @@ class Checkout_Form_List_Table extends Base_List_Table { 'id' => $item->get_id(), ] ), - __('Duplicate', 'wp-ultimo') + __('Duplicate', 'wp-multisite-waas') ), - 'get_shortcode' => sprintf('%s', __('Shortcode', 'wp-ultimo'), wu_get_form_url('shortcode_checkout', $url_atts), __('Shortcode', 'wp-ultimo')), - 'delete' => sprintf('%s', __('Delete', 'wp-ultimo'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'wp-ultimo')), + 'get_shortcode' => sprintf('%s', __('Shortcode', 'wp-multisite-waas'), wu_get_form_url('shortcode_checkout', $url_atts), __('Shortcode', 'wp-multisite-waas')), + 'delete' => sprintf('%s', __('Delete', 'wp-multisite-waas'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'wp-multisite-waas')), ]; return $title . $this->row_actions($actions); @@ -108,7 +108,7 @@ class Checkout_Form_List_Table extends Base_List_Table { */ public function column_steps($item): string { - return sprintf(__('%1$d Step(s) and %2$d Field(s)', 'wp-ultimo'), $item->get_step_count(), $item->get_field_count()); + return sprintf(__('%1$d Step(s) and %2$d Field(s)', 'wp-multisite-waas'), $item->get_step_count(), $item->get_field_count()); } /** @@ -125,7 +125,7 @@ class Checkout_Form_List_Table extends Base_List_Table { ', - __('Copy to the Clipboard', 'wp-ultimo') + __('Copy to the Clipboard', 'wp-multisite-waas') ); return sprintf('', esc_attr($item->get_shortcode()), ''); @@ -147,14 +147,14 @@ class Checkout_Form_List_Table extends Base_List_Table { $checkout_form = wu_get_checkout_form($checkout_form_id); if ( ! $checkout_form) { - WP_Ultimo()->notices->add(__('Checkout form not found.', 'wp-ultimo'), 'error', 'network-admin'); + WP_Ultimo()->notices->add(__('Checkout form not found.', 'wp-multisite-waas'), 'error', 'network-admin'); return; } $new_checkout_form = $checkout_form->duplicate(); - $new_name = sprintf(__('Copy of %s', 'wp-ultimo'), $checkout_form->get_name()); + $new_name = sprintf(__('Copy of %s', 'wp-multisite-waas'), $checkout_form->get_name()); $new_checkout_form->set_name($new_name); @@ -194,10 +194,10 @@ class Checkout_Form_List_Table extends Base_List_Table { $columns = [ 'cb' => '', - 'name' => __('Form Name', 'wp-ultimo'), - 'slug' => __('Form Slug', 'wp-ultimo'), - 'steps' => __('Steps', 'wp-ultimo'), - 'id' => __('ID', 'wp-ultimo'), + 'name' => __('Form Name', 'wp-multisite-waas'), + 'slug' => __('Form Slug', 'wp-multisite-waas'), + 'steps' => __('Steps', 'wp-multisite-waas'), + 'id' => __('ID', 'wp-multisite-waas'), ]; return $columns; diff --git a/inc/list-tables/class-customer-list-table.php b/inc/list-tables/class-customer-list-table.php index 1d232dc..d4ae1e1 100644 --- a/inc/list-tables/class-customer-list-table.php +++ b/inc/list-tables/class-customer-list-table.php @@ -43,8 +43,8 @@ class Customer_List_Table extends Base_List_Table { $args = wp_parse_args( $args, [ - 'singular' => __('Customer', 'wp-ultimo'), // singular name of the listed records - 'plural' => __('Customers', 'wp-ultimo'), // plural name of the listed records + 'singular' => __('Customer', 'wp-multisite-waas'), // singular name of the listed records + 'plural' => __('Customers', 'wp-multisite-waas'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_get_form_url('add_new_customer'), @@ -122,10 +122,10 @@ class Customer_List_Table extends Base_List_Table { // Check if user exists if ( ! $user) { $actions = [ - 'delete' => sprintf('%s', __('Delete', 'wp-ultimo'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'wp-ultimo')), + 'delete' => sprintf('%s', __('Delete', 'wp-multisite-waas'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'wp-multisite-waas')), ]; - return sprintf('#%s - %s', $item->get_user_id(), __('User not found', 'wp-ultimo')) . $this->row_actions($actions); + return sprintf('#%s - %s', $item->get_user_id(), __('User not found', 'wp-multisite-waas')) . $this->row_actions($actions); } $customer_id = sprintf('#%s', $item->get_id(), $item->get_id()); @@ -144,19 +144,19 @@ class Customer_List_Table extends Base_List_Table { // Concatenate the two blocks $title = "$customer_user"; - $desc = sprintf('(%s)', wu_tooltip_text(__('Send an email to this customer', 'wp-ultimo')), $user->user_email, $user->user_email); + $desc = sprintf('(%s)', wu_tooltip_text(__('Send an email to this customer', 'wp-multisite-waas')), $user->user_email, $user->user_email); // Concatenate switch to url $is_modal_switch_to = \WP_Ultimo\User_Switching::get_instance()->check_user_switching_is_activated() ? '' : 'wubox'; - $url_switch_to = sprintf('%s', __('Switch To', 'wp-ultimo'), $is_modal_switch_to, \WP_Ultimo\User_Switching::get_instance()->render($item->get_user_id()), __('Switch To', 'wp-ultimo')); + $url_switch_to = sprintf('%s', __('Switch To', 'wp-multisite-waas'), $is_modal_switch_to, \WP_Ultimo\User_Switching::get_instance()->render($item->get_user_id()), __('Switch To', 'wp-multisite-waas')); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-customer', $url_atts), __('Edit', 'wp-ultimo')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-customer', $url_atts), __('Edit', 'wp-multisite-waas')), 'switch-to' => $item->get_user_id() !== get_current_user_id() ? $url_switch_to : false, 'delete' => sprintf( '%s', - __('Delete', 'wp-ultimo'), + __('Delete', 'wp-multisite-waas'), wu_get_form_url( 'delete_modal', [ @@ -164,7 +164,7 @@ class Customer_List_Table extends Base_List_Table { 'id' => $item->get_id(), ] ), - __('Delete', 'wp-ultimo') + __('Delete', 'wp-multisite-waas') ), ]; @@ -186,7 +186,7 @@ class Customer_List_Table extends Base_List_Table { $html = '
'; if ($item->is_vip()) { - $html .= sprintf('%s', __('VIP', 'wp-ultimo')); + $html .= sprintf('%s', __('VIP', 'wp-multisite-waas')); } $html .= get_avatar( @@ -221,7 +221,7 @@ class Customer_List_Table extends Base_List_Table { ]; $actions = [ - 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-memberships', $url_atts), __('View', 'wp-ultimo')), + 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-memberships', $url_atts), __('View', 'wp-multisite-waas')), ]; return $subscription_count . $this->row_actions($actions); @@ -238,11 +238,11 @@ class Customer_List_Table extends Base_List_Table { $columns = [ 'cb' => '', 'customer_status' => '', - 'name' => __('Name', 'wp-ultimo'), - 'last_login' => __('Last Login', 'wp-ultimo'), - 'date_registered' => __('Customer Since', 'wp-ultimo'), - 'memberships' => __('Memberships', 'wp-ultimo'), - 'id' => __('ID', 'wp-ultimo'), + 'name' => __('Name', 'wp-multisite-waas'), + 'last_login' => __('Last Login', 'wp-multisite-waas'), + 'date_registered' => __('Customer Since', 'wp-multisite-waas'), + 'memberships' => __('Memberships', 'wp-multisite-waas'), + 'id' => __('ID', 'wp-multisite-waas'), ]; return $columns; @@ -331,19 +331,19 @@ class Customer_List_Table extends Base_List_Table { 'filter' => 'all', ] ), - 'label' => __('All Customers', 'wp-ultimo'), + 'label' => __('All Customers', 'wp-multisite-waas'), 'count' => 0, ], 'vip' => [ 'field' => 'filter', 'url' => add_query_arg('filter', 'vip'), - 'label' => __('VIP Customers', 'wp-ultimo'), + 'label' => __('VIP Customers', 'wp-multisite-waas'), 'count' => 0, ], 'online' => [ 'field' => 'filter', 'url' => add_query_arg('filter', 'online'), - 'label' => __('Online Customers', 'wp-ultimo'), + 'label' => __('Online Customers', 'wp-multisite-waas'), 'count' => 0, ], ]; @@ -360,7 +360,7 @@ class Customer_List_Table extends Base_List_Table { public function column_last_login($item) { if ($item->is_online()) { - return '' . __('Online', 'wp-ultimo'); + return '' . __('Online', 'wp-multisite-waas'); } return $this->_column_datetime($item->get_last_login()); diff --git a/inc/list-tables/class-customers-membership-list-table.php b/inc/list-tables/class-customers-membership-list-table.php index 0ec64aa..4063d8b 100644 --- a/inc/list-tables/class-customers-membership-list-table.php +++ b/inc/list-tables/class-customers-membership-list-table.php @@ -50,7 +50,7 @@ class Customers_Membership_List_Table extends Membership_List_Table { $product_count = 1 + count($item->get_addon_ids()); - $products_list = $p ? sprintf(_n('Contains %s', 'Contains %1$s and %2$s other product(s)', $product_count, 'wp-ultimo'), $p->get_name(), count($item->get_addon_ids())) : ''; // phpcs:ignore + $products_list = $p ? sprintf(_n('Contains %s', 'Contains %1$s and %2$s other product(s)', $product_count, 'wp-multisite-waas'), $p->get_name(), count($item->get_addon_ids())) : ''; // phpcs:ignore echo wu_responsive_table_row( [ @@ -67,30 +67,30 @@ class Customers_Membership_List_Table extends Membership_List_Table { [ 'total' => [ 'icon' => 'dashicons-wu-shopping-bag1 wu-align-middle wu-mr-1', - 'label' => __('Payment Total', 'wp-ultimo'), + 'label' => __('Payment Total', 'wp-multisite-waas'), 'value' => $item->get_price_description(), ], 'products' => [ 'icon' => 'dashicons-wu-package wu-align-middle wu-mr-1', - 'label' => __('Products', 'wp-ultimo'), + 'label' => __('Products', 'wp-multisite-waas'), 'value' => $products_list, ], 'gateway' => [ 'icon' => 'dashicons-wu-credit-card2 wu-align-middle wu-mr-1', - 'label' => __('Gateway', 'wp-ultimo'), + 'label' => __('Gateway', 'wp-multisite-waas'), 'value' => wu_slug_to_name($item->get_gateway()), ], ], [ 'date_expiration' => [ 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', - 'label' => __('Expires', 'wp-ultimo'), - 'value' => sprintf($expired ? __('Expired %s', 'wp-ultimo') : __('Expiring %s', 'wp-ultimo'), wu_human_time_diff(strtotime((string) $item->get_date_expiration()))), + 'label' => __('Expires', 'wp-multisite-waas'), + 'value' => sprintf($expired ? __('Expired %s', 'wp-multisite-waas') : __('Expiring %s', 'wp-multisite-waas'), wu_human_time_diff(strtotime((string) $item->get_date_expiration()))), ], 'date_created' => [ 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', - 'label' => __('Created at', 'wp-ultimo'), - 'value' => sprintf(__('Created %s', 'wp-ultimo'), wu_human_time_diff(strtotime((string) $item->get_date_created()))), + 'label' => __('Created at', 'wp-multisite-waas'), + 'value' => sprintf(__('Created %s', 'wp-multisite-waas'), wu_human_time_diff(strtotime((string) $item->get_date_created()))), ], ] ); diff --git a/inc/list-tables/class-customers-payment-list-table.php b/inc/list-tables/class-customers-payment-list-table.php index c8bede7..375765c 100644 --- a/inc/list-tables/class-customers-payment-list-table.php +++ b/inc/list-tables/class-customers-payment-list-table.php @@ -59,12 +59,12 @@ class Customers_Payment_List_Table extends Payment_List_Table { [ 'total' => [ 'icon' => 'dashicons-wu-shopping-bag1 wu-align-middle wu-mr-1', - 'label' => __('Payment Total', 'wp-ultimo'), + 'label' => __('Payment Total', 'wp-multisite-waas'), 'value' => wu_format_currency($item->get_total()), ], 'gateway' => [ 'icon' => 'dashicons-wu-credit-card2 wu-align-middle wu-mr-1', - 'label' => __('Gateway', 'wp-ultimo'), + 'label' => __('Gateway', 'wp-multisite-waas'), 'value' => wu_slug_to_name($item->get_gateway()), ], ], @@ -72,7 +72,7 @@ class Customers_Payment_List_Table extends Payment_List_Table { 'date_created' => [ 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', 'label' => '', - 'value' => sprintf(__('Created %s', 'wp-ultimo'), wu_human_time_diff(strtotime((string) $item->get_date_created()))), + 'value' => sprintf(__('Created %s', 'wp-multisite-waas'), wu_human_time_diff(strtotime((string) $item->get_date_created()))), ], ] ); diff --git a/inc/list-tables/class-customers-site-list-table.php b/inc/list-tables/class-customers-site-list-table.php index 44d5e1b..3878810 100644 --- a/inc/list-tables/class-customers-site-list-table.php +++ b/inc/list-tables/class-customers-site-list-table.php @@ -76,19 +76,19 @@ class Customers_Site_List_Table extends Site_List_Table { [ 'link' => [ 'icon' => 'dashicons-wu-link1 wu-align-middle wu-mr-1', - 'label' => __('Visit Site', 'wp-ultimo'), + 'label' => __('Visit Site', 'wp-multisite-waas'), 'url' => $item->get_active_site_url(), 'value' => $item->get_active_site_url(), ], 'dashboard' => [ 'icon' => 'dashicons-wu-browser wu-align-middle wu-mr-1', - 'label' => __('Go to the Dashboard', 'wp-ultimo'), - 'value' => __('Dashboard', 'wp-ultimo'), + 'label' => __('Go to the Dashboard', 'wp-multisite-waas'), + 'value' => __('Dashboard', 'wp-multisite-waas'), 'url' => get_admin_url($item->get_id()), ], 'membership' => [ 'icon' => 'dashicons-wu-rotate-ccw wu-align-middle wu-mr-1', - 'label' => __('Go to the Membership', 'wp-ultimo'), + 'label' => __('Go to the Membership', 'wp-multisite-waas'), 'value' => $m ? $m->get_hash() : '', 'url' => $m ? wu_network_admin_url( 'wp-ultimo-edit-membership', @@ -103,7 +103,7 @@ class Customers_Site_List_Table extends Site_List_Table { 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', 'label' => '', /* translators: the placeholder is a date */ - 'value' => $item->get_type() === 'pending' ? __('Not Available', 'wp-ultimo') : sprintf(__('Created %s', 'wp-ultimo'), wu_human_time_diff(strtotime((string) $item->get_date_registered()))), + 'value' => $item->get_type() === 'pending' ? __('Not Available', 'wp-multisite-waas') : sprintf(__('Created %s', 'wp-multisite-waas'), wu_human_time_diff(strtotime((string) $item->get_date_registered()))), ], ] ); diff --git a/inc/list-tables/class-discount-code-list-table.php b/inc/list-tables/class-discount-code-list-table.php index a9bfc7a..d256fe3 100644 --- a/inc/list-tables/class-discount-code-list-table.php +++ b/inc/list-tables/class-discount-code-list-table.php @@ -36,8 +36,8 @@ class Discount_Code_List_Table extends Base_List_Table { parent::__construct( [ - 'singular' => __('Discount Code', 'wp-ultimo'), // singular name of the listed records - 'plural' => __('Discount Codes', 'wp-ultimo'), // plural name of the listed records + 'singular' => __('Discount Code', 'wp-multisite-waas'), // singular name of the listed records + 'plural' => __('Discount Codes', 'wp-multisite-waas'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_network_admin_url('wp-ultimo-edit-discount-code'), @@ -64,15 +64,15 @@ class Discount_Code_List_Table extends Base_List_Table { $title = sprintf('%s', wu_network_admin_url('wp-ultimo-edit-discount-code', $url_atts), $item->get_name()); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-discount-code', $url_atts), __('Edit', 'wp-ultimo')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-discount-code', $url_atts), __('Edit', 'wp-multisite-waas')), 'delete' => sprintf( '%s', - __('Delete', 'wp-ultimo'), + __('Delete', 'wp-multisite-waas'), wu_get_form_url( 'delete_modal', $url_atts ), - __('Delete', 'wp-ultimo') + __('Delete', 'wp-multisite-waas') ), ]; @@ -91,7 +91,7 @@ class Discount_Code_List_Table extends Base_List_Table { public function column_value($item) { if ( ! $item->get_value()) { - return __('No Discount', 'wp-ultimo'); + return __('No Discount', 'wp-multisite-waas'); } $value = wu_format_currency($item->get_value()); @@ -101,7 +101,7 @@ class Discount_Code_List_Table extends Base_List_Table { } // translators: placeholder is the amount of discount. e.g. 10% or $5. - return sprintf(__('%s OFF', 'wp-ultimo'), $value); + return sprintf(__('%s OFF', 'wp-multisite-waas'), $value); } /** @@ -116,7 +116,7 @@ class Discount_Code_List_Table extends Base_List_Table { public function column_setup_fee_value($item) { if ( ! $item->get_setup_fee_value()) { - return __('No Discount', 'wp-ultimo'); + return __('No Discount', 'wp-multisite-waas'); } $value = wu_format_currency($item->get_setup_fee_value()); @@ -126,7 +126,7 @@ class Discount_Code_List_Table extends Base_List_Table { } // translators: placeholder is the amount of discount. e.g. 10% or $5. - return sprintf(__('%s OFF', 'wp-ultimo'), $value); + return sprintf(__('%s OFF', 'wp-multisite-waas'), $value); } /** @@ -140,14 +140,14 @@ class Discount_Code_List_Table extends Base_List_Table { public function column_uses($item) { // translators: the placeholder is the number of times this coupon was used. - $html = sprintf(__('Used %d time(s)', 'wp-ultimo'), $item->get_uses()); + $html = sprintf(__('Used %d time(s)', 'wp-multisite-waas'), $item->get_uses()); if ($item->get_max_uses() > 0) { // translators: the placeholder is the number of times this coupon can be used before becoming inactive. - $html .= '' . sprintf(__('Allowed uses: %d', 'wp-ultimo'), $item->get_max_uses()) . ''; + $html .= '' . sprintf(__('Allowed uses: %d', 'wp-multisite-waas'), $item->get_max_uses()) . ''; } else { - $html .= '' . __('No Limits', 'wp-ultimo') . ''; + $html .= '' . __('No Limits', 'wp-multisite-waas') . ''; } return $html; @@ -170,7 +170,7 @@ class Discount_Code_List_Table extends Base_List_Table { $valid = $item->is_valid(); if (is_wp_error($valid)) { - $html .= sprintf('%s', wu_tooltip_text($valid->get_error_message()), __('Inactive', 'wp-ultimo')); + $html .= sprintf('%s', wu_tooltip_text($valid->get_error_message()), __('Inactive', 'wp-multisite-waas')); } return $html; @@ -186,12 +186,12 @@ class Discount_Code_List_Table extends Base_List_Table { $columns = [ 'cb' => '', - 'name' => __('Name', 'wp-ultimo'), - 'coupon_code' => __('Code', 'wp-ultimo'), - 'uses' => __('Uses', 'wp-ultimo'), - 'value' => __('Value', 'wp-ultimo'), - 'setup_fee_value' => __('Setup Fee Value', 'wp-ultimo'), - 'date_expiration' => __('Dates', 'wp-ultimo'), + 'name' => __('Name', 'wp-multisite-waas'), + 'coupon_code' => __('Code', 'wp-multisite-waas'), + 'uses' => __('Uses', 'wp-multisite-waas'), + 'value' => __('Value', 'wp-multisite-waas'), + 'setup_fee_value' => __('Setup Fee Value', 'wp-multisite-waas'), + 'date_expiration' => __('Dates', 'wp-multisite-waas'), ]; return $columns; diff --git a/inc/list-tables/class-domain-list-table.php b/inc/list-tables/class-domain-list-table.php index 54fec5d..c43378f 100644 --- a/inc/list-tables/class-domain-list-table.php +++ b/inc/list-tables/class-domain-list-table.php @@ -39,8 +39,8 @@ class Domain_List_Table extends Base_List_Table { parent::__construct( [ - 'singular' => __('Domain', 'wp-ultimo'), // singular name of the listed records - 'plural' => __('Domains', 'wp-ultimo'), // plural name of the listed records + 'singular' => __('Domain', 'wp-multisite-waas'), // singular name of the listed records + 'plural' => __('Domains', 'wp-multisite-waas'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_get_form_url('add_new_domain'), @@ -86,8 +86,8 @@ class Domain_List_Table extends Base_List_Table { $html = "{$domain}"; $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-domain', $url_atts), __('Edit', 'wp-ultimo')), - 'delete' => sprintf('%s', __('Delete', 'wp-ultimo'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'wp-ultimo')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-domain', $url_atts), __('Edit', 'wp-multisite-waas')), + 'delete' => sprintf('%s', __('Delete', 'wp-multisite-waas'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'wp-multisite-waas')), ]; return $html . $this->row_actions($actions); @@ -103,7 +103,7 @@ class Domain_List_Table extends Base_List_Table { */ public function column_active($item) { - return $item->is_active() ? __('Yes', 'wp-ultimo') : __('No', 'wp-ultimo'); + return $item->is_active() ? __('Yes', 'wp-multisite-waas') : __('No', 'wp-multisite-waas'); } /** @@ -116,7 +116,7 @@ class Domain_List_Table extends Base_List_Table { */ public function column_primary_domain($item) { - return $item->is_primary_domain() ? __('Yes', 'wp-ultimo') : __('No', 'wp-ultimo'); + return $item->is_primary_domain() ? __('Yes', 'wp-multisite-waas') : __('No', 'wp-multisite-waas'); } /** @@ -129,7 +129,7 @@ class Domain_List_Table extends Base_List_Table { */ public function column_secure($item) { - return $item->is_secure() ? __('Yes', 'wp-ultimo') : __('No', 'wp-ultimo'); + return $item->is_secure() ? __('Yes', 'wp-multisite-waas') : __('No', 'wp-multisite-waas'); } /** @@ -159,13 +159,13 @@ class Domain_List_Table extends Base_List_Table { $columns = [ 'cb' => '', - 'domain' => __('Domain', 'wp-ultimo'), - 'stage' => __('Stage', 'wp-ultimo'), - 'blog_id' => __('Site', 'wp-ultimo'), - 'active' => __('Active', 'wp-ultimo'), - 'primary_domain' => __('Primary', 'wp-ultimo'), - 'secure' => __('HTTPS', 'wp-ultimo'), - 'id' => __('ID', 'wp-ultimo'), + 'domain' => __('Domain', 'wp-multisite-waas'), + 'stage' => __('Stage', 'wp-multisite-waas'), + 'blog_id' => __('Site', 'wp-multisite-waas'), + 'active' => __('Active', 'wp-multisite-waas'), + 'primary_domain' => __('Primary', 'wp-multisite-waas'), + 'secure' => __('HTTPS', 'wp-multisite-waas'), + 'id' => __('ID', 'wp-multisite-waas'), ]; return $columns; @@ -185,10 +185,10 @@ class Domain_List_Table extends Base_List_Table { * Active */ 'active' => [ - 'label' => __('Active', 'wp-ultimo'), + 'label' => __('Active', 'wp-multisite-waas'), 'options' => [ - 0 => __('Inactive', 'wp-ultimo'), - 1 => __('Active', 'wp-ultimo'), + 0 => __('Inactive', 'wp-multisite-waas'), + 1 => __('Active', 'wp-multisite-waas'), ], ], @@ -196,10 +196,10 @@ class Domain_List_Table extends Base_List_Table { * Primay */ 'primary_domain' => [ - 'label' => __('Is Primary', 'wp-ultimo'), + 'label' => __('Is Primary', 'wp-multisite-waas'), 'options' => [ - 0 => __('Not Primary Domain', 'wp-ultimo'), - 1 => __('Primary Domain', 'wp-ultimo'), + 0 => __('Not Primary Domain', 'wp-multisite-waas'), + 1 => __('Primary Domain', 'wp-multisite-waas'), ], ], @@ -207,10 +207,10 @@ class Domain_List_Table extends Base_List_Table { * Secure (HTTPS) */ 'secure' => [ - 'label' => __('HTTPS', 'wp-ultimo'), + 'label' => __('HTTPS', 'wp-multisite-waas'), 'options' => [ - 0 => __('Non-HTTPS', 'wp-ultimo'), - 1 => __('HTTPS', 'wp-ultimo'), + 0 => __('Non-HTTPS', 'wp-multisite-waas'), + 1 => __('HTTPS', 'wp-multisite-waas'), ], ], @@ -218,7 +218,7 @@ class Domain_List_Table extends Base_List_Table { * Stage */ 'stage' => [ - 'label' => __('Verification Stage', 'wp-ultimo'), + 'label' => __('Verification Stage', 'wp-multisite-waas'), 'options' => Domain_Stage::to_array(), ], diff --git a/inc/list-tables/class-email-list-table.php b/inc/list-tables/class-email-list-table.php index 33e9219..5a51f87 100644 --- a/inc/list-tables/class-email-list-table.php +++ b/inc/list-tables/class-email-list-table.php @@ -36,8 +36,8 @@ class Email_List_Table extends Base_List_Table { parent::__construct( [ - 'singular' => __('Email', 'wp-ultimo'), // singular name of the listed records - 'plural' => __('Emails', 'wp-ultimo'), // plural name of the listed records + 'singular' => __('Email', 'wp-multisite-waas'), // singular name of the listed records + 'plural' => __('Emails', 'wp-multisite-waas'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_network_admin_url('wp-ultimo-edit-email'), @@ -110,9 +110,9 @@ class Email_List_Table extends Base_List_Table { $content = wp_trim_words(wp_strip_all_tags($item->get_content()), 6); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-email', $url_atts), __('Edit', 'wp-ultimo')), - 'duplicate' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-email', $url_atts), __('Duplicate', 'wp-ultimo')), - 'send-test' => sprintf('%s', __('Send Test Email', 'wp-ultimo'), wu_get_form_url('send_new_test', $url_atts), __('Send Test Email', 'wp-ultimo')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-email', $url_atts), __('Edit', 'wp-multisite-waas')), + 'duplicate' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-email', $url_atts), __('Duplicate', 'wp-multisite-waas')), + 'send-test' => sprintf('%s', __('Send Test Email', 'wp-multisite-waas'), wu_get_form_url('send_new_test', $url_atts), __('Send Test Email', 'wp-multisite-waas')), ]; $slug = $item->get_slug(); @@ -120,10 +120,10 @@ class Email_List_Table extends Base_List_Table { $default_system_emails = wu_get_default_system_emails(); if (isset($default_system_emails[ $slug ])) { - $actions['reset'] = sprintf('%s', __('Reset', 'wp-ultimo'), wu_get_form_url('reset_confirmation', $url_atts), __('Reset', 'wp-ultimo')); + $actions['reset'] = sprintf('%s', __('Reset', 'wp-multisite-waas'), wu_get_form_url('reset_confirmation', $url_atts), __('Reset', 'wp-multisite-waas')); } - $actions['delete'] = sprintf('%s', __('Delete', 'wp-ultimo'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'wp-ultimo')); + $actions['delete'] = sprintf('%s', __('Delete', 'wp-multisite-waas'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'wp-multisite-waas')); return $title . $content . $this->row_actions($actions); } @@ -172,12 +172,12 @@ class Email_List_Table extends Base_List_Table { if ($item->get_schedule_type() === 'hours') { $time = explode(':', (string) $item->get_send_hours()); - $text = sprintf(__('%1$s hour(s) and %2$s minute(s) after the event.', 'wp-ultimo'), $time[0], $time[1]); + $text = sprintf(__('%1$s hour(s) and %2$s minute(s) after the event.', 'wp-multisite-waas'), $time[0], $time[1]); } elseif ($item->get_schedule_type() === 'days') { - $text = sprintf(__('%s day(s) after the event.', 'wp-ultimo'), $item->get_send_days()); + $text = sprintf(__('%s day(s) after the event.', 'wp-multisite-waas'), $item->get_send_days()); } } else { - $text = __('Sent immediately after the event.', 'wp-ultimo'); + $text = __('Sent immediately after the event.', 'wp-multisite-waas'); } return $text; @@ -193,11 +193,11 @@ class Email_List_Table extends Base_List_Table { $columns = [ 'cb' => '', - 'title' => __('Content', 'wp-ultimo'), - 'slug' => __('Event', 'wp-ultimo'), - 'event' => __('slug', 'wp-ultimo'), - 'schedule' => __('When', 'wp-ultimo'), - 'id' => __('ID', 'wp-ultimo'), + 'title' => __('Content', 'wp-multisite-waas'), + 'slug' => __('Event', 'wp-multisite-waas'), + 'event' => __('slug', 'wp-multisite-waas'), + 'schedule' => __('When', 'wp-multisite-waas'), + 'id' => __('ID', 'wp-multisite-waas'), ]; return $columns; @@ -219,14 +219,14 @@ class Email_List_Table extends Base_List_Table { $email = wu_get_email($email_id); if ( ! $email) { - WP_Ultimo()->notices->add(__('Email not found.', 'wp-ultimo'), 'error', 'network-admin'); + WP_Ultimo()->notices->add(__('Email not found.', 'wp-multisite-waas'), 'error', 'network-admin'); return; } $new_email = $email->duplicate(); - $new_name = sprintf(__('Copy of %s', 'wp-ultimo'), $email->get_name()); + $new_name = sprintf(__('Copy of %s', 'wp-multisite-waas'), $email->get_name()); $new_email->set_name($new_name); @@ -292,16 +292,16 @@ class Email_List_Table extends Base_List_Table { return [ 'filters' => [ 'type' => [ - 'label' => __('Email Type', 'wp-ultimo'), + 'label' => __('Email Type', 'wp-multisite-waas'), 'options' => [ - 'email_email' => __('Email', 'wp-ultimo'), - 'broadcast_email' => __('Notices', 'wp-ultimo'), + 'email_email' => __('Email', 'wp-multisite-waas'), + 'broadcast_email' => __('Notices', 'wp-multisite-waas'), ], ], ], 'date_filters' => [ 'date_created' => [ - 'label' => __('Date', 'wp-ultimo'), + 'label' => __('Date', 'wp-multisite-waas'), 'options' => $this->get_default_date_filter_options(), ], ], @@ -320,19 +320,19 @@ class Email_List_Table extends Base_List_Table { 'all' => [ 'field' => 'target', 'url' => add_query_arg('target', 'all'), - 'label' => __('All Emails', 'wp-ultimo'), + 'label' => __('All Emails', 'wp-multisite-waas'), 'count' => 0, ], 'admin' => [ 'field' => 'target', 'url' => add_query_arg('target', 'admin'), - 'label' => __('Admin Emails', 'wp-ultimo'), + 'label' => __('Admin Emails', 'wp-multisite-waas'), 'count' => 0, ], 'customer' => [ 'field' => 'target', 'url' => add_query_arg('target', 'customer'), - 'label' => __('Customer Emails', 'wp-ultimo'), + 'label' => __('Customer Emails', 'wp-multisite-waas'), 'count' => 0, ], ]; diff --git a/inc/list-tables/class-event-list-table.php b/inc/list-tables/class-event-list-table.php index fe15d86..f826a0c 100644 --- a/inc/list-tables/class-event-list-table.php +++ b/inc/list-tables/class-event-list-table.php @@ -38,8 +38,8 @@ class Event_List_Table extends Base_List_Table { parent::__construct( [ - 'singular' => __('Event', 'wp-ultimo'), // singular name of the listed records - 'plural' => __('Events', 'wp-ultimo'), // plural name of the listed records + 'singular' => __('Event', 'wp-multisite-waas'), // singular name of the listed records + 'plural' => __('Events', 'wp-multisite-waas'), // plural name of the listed records 'ajax' => true, // does this table support ajax? ] ); @@ -93,7 +93,7 @@ class Event_List_Table extends Base_List_Table {
{$system_text} - " . __('Automatically started', 'wp-ultimo') . " + " . __('Automatically started', 'wp-multisite-waas') . "
"; // phpcs:enable @@ -137,7 +137,7 @@ class Event_List_Table extends Base_List_Table {
"; } else { - $not_found = __('No initiator found', 'wp-ultimo'); + $not_found = __('No initiator found', 'wp-multisite-waas'); $html = "
  @@ -182,15 +182,15 @@ class Event_List_Table extends Base_List_Table { ]; $actions = [ - 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-view-event', $url_atts), __('View', 'wp-ultimo')), + 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-view-event', $url_atts), __('View', 'wp-multisite-waas')), 'delete' => sprintf( '%s', - __('Delete', 'wp-ultimo'), + __('Delete', 'wp-multisite-waas'), wu_get_form_url( 'delete_modal', $url_atts ), - __('Delete', 'wp-ultimo') + __('Delete', 'wp-multisite-waas') ), ]; @@ -207,12 +207,12 @@ class Event_List_Table extends Base_List_Table { $columns = [ 'cb' => '', - 'initiator' => __('Initiator', 'wp-ultimo'), - 'message' => __('Event Message', 'wp-ultimo'), - 'slug' => __('SLug', 'wp-ultimo'), - 'object_type' => __('Type', 'wp-ultimo'), - 'date_created' => __('Created at', 'wp-ultimo'), - 'id' => __('ID', 'wp-ultimo'), + 'initiator' => __('Initiator', 'wp-multisite-waas'), + 'message' => __('Event Message', 'wp-multisite-waas'), + 'slug' => __('SLug', 'wp-multisite-waas'), + 'object_type' => __('Type', 'wp-multisite-waas'), + 'date_created' => __('Created at', 'wp-multisite-waas'), + 'id' => __('ID', 'wp-multisite-waas'), ]; return apply_filters('wu_events_list_table_get_columns', $columns, $this); @@ -228,19 +228,19 @@ class Event_List_Table extends Base_List_Table { return [ 'filters' => [ 'severity' => [ - 'label' => __('Severity', 'wp-ultimo'), + 'label' => __('Severity', 'wp-multisite-waas'), 'options' => [ - Event::SEVERITY_SUCCESS => __('Success', 'wp-ultimo'), - Event::SEVERITY_NEUTRAL => __('Neutral', 'wp-ultimo'), - Event::SEVERITY_INFO => __('Info', 'wp-ultimo'), - Event::SEVERITY_WARNING => __('Warning', 'wp-ultimo'), - Event::SEVERITY_FATAL => __('Fatal', 'wp-ultimo'), + Event::SEVERITY_SUCCESS => __('Success', 'wp-multisite-waas'), + Event::SEVERITY_NEUTRAL => __('Neutral', 'wp-multisite-waas'), + Event::SEVERITY_INFO => __('Info', 'wp-multisite-waas'), + Event::SEVERITY_WARNING => __('Warning', 'wp-multisite-waas'), + Event::SEVERITY_FATAL => __('Fatal', 'wp-multisite-waas'), ], ], ], 'date_filters' => [ 'date_created' => [ - 'label' => __('Created At', 'wp-ultimo'), + 'label' => __('Created At', 'wp-multisite-waas'), 'options' => $this->get_default_date_filter_options(), ], ], diff --git a/inc/list-tables/class-inside-events-list-table.php b/inc/list-tables/class-inside-events-list-table.php index 290960f..b58be6e 100644 --- a/inc/list-tables/class-inside-events-list-table.php +++ b/inc/list-tables/class-inside-events-list-table.php @@ -47,12 +47,12 @@ class Inside_Events_List_Table extends Event_List_Table { $first_row = [ 'id' => [ 'icon' => 'dashicons-wu-hash wu-align-middle wu-mr-1', - 'label' => __('Event ID', 'wp-ultimo'), + 'label' => __('Event ID', 'wp-multisite-waas'), 'value' => $item->get_id(), ], 'slug' => [ 'icon' => 'dashicons-wu-bookmark1 wu-align-middle wu-mr-1', - 'label' => __('Event Type', 'wp-ultimo'), + 'label' => __('Event Type', 'wp-multisite-waas'), 'value' => wu_slug_to_name($item->get_slug()), ], ]; @@ -60,7 +60,7 @@ class Inside_Events_List_Table extends Event_List_Table { $object_initiator = $item->get_initiator(); if ('system' === $object_initiator) { - $value = sprintf('%s', __('Automatically processed by WP Multisite WaaS', 'wp-ultimo')); + $value = sprintf('%s', __('Automatically processed by WP Multisite WaaS', 'wp-multisite-waas')); } elseif ('manual' === $object_initiator) { $avatar = get_avatar( $item->get_author_id(), @@ -95,7 +95,7 @@ class Inside_Events_List_Table extends Event_List_Table { 'date_created' => [ 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', 'label' => '', - 'value' => sprintf(__('Processed %s', 'wp-ultimo'), wu_human_time_diff($item->get_date_created(), '-1 day')), + 'value' => sprintf(__('Processed %s', 'wp-multisite-waas'), wu_human_time_diff($item->get_date_created(), '-1 day')), ], ] ); diff --git a/inc/list-tables/class-line-item-list-table.php b/inc/list-tables/class-line-item-list-table.php index 2f045aa..c053aa9 100644 --- a/inc/list-tables/class-line-item-list-table.php +++ b/inc/list-tables/class-line-item-list-table.php @@ -36,8 +36,8 @@ class Line_Item_List_Table extends Payment_List_Table { parent::__construct( [ - 'singular' => __('Line Item', 'wp-ultimo'), // singular name of the listed records - 'plural' => __('Line Items', 'wp-ultimo'), // plural name of the listed records + 'singular' => __('Line Item', 'wp-multisite-waas'), // singular name of the listed records + 'plural' => __('Line Items', 'wp-multisite-waas'), // plural name of the listed records 'ajax' => true, // does this table support ajax? ] ); @@ -99,8 +99,8 @@ class Line_Item_List_Table extends Payment_List_Table { ]; $actions = [ - 'edit' => sprintf('%s', __('Edit Item', 'wp-ultimo'), wu_get_form_url('edit_line_item', $url_atts), __('Edit', 'wp-ultimo')), - 'delete' => sprintf('%s', __('Delete Item', 'wp-ultimo'), wu_get_form_url('delete_line_item', $url_atts), __('Delete', 'wp-ultimo')), + 'edit' => sprintf('%s', __('Edit Item', 'wp-multisite-waas'), wu_get_form_url('edit_line_item', $url_atts), __('Edit', 'wp-multisite-waas')), + 'delete' => sprintf('%s', __('Delete Item', 'wp-multisite-waas'), wu_get_form_url('delete_line_item', $url_atts), __('Delete', 'wp-multisite-waas')), ]; $html = sprintf('%s', $item->get_title()); @@ -122,7 +122,7 @@ class Line_Item_List_Table extends Payment_List_Table { $html = wu_format_currency($item->get_unit_price()); - $quantity = sprintf(__('Quantity: %s', 'wp-ultimo'), $item->get_quantity()); // phpcs:ignore + $quantity = sprintf(__('Quantity: %s', 'wp-multisite-waas'), $item->get_quantity()); // phpcs:ignore return $html . sprintf('%s', $quantity); } @@ -145,7 +145,7 @@ class Line_Item_List_Table extends Payment_List_Table { $tax_rate = $item->get_tax_rate() . '%'; } - $tax_label = $item->get_tax_rate() ? ($item->get_tax_label() ?: __('Tax Applied', 'wp-ultimo')) : __('No Taxes Applied', 'wp-ultimo'); + $tax_label = $item->get_tax_rate() ? ($item->get_tax_label() ?: __('Tax Applied', 'wp-multisite-waas')) : __('No Taxes Applied', 'wp-multisite-waas'); return $html . sprintf('%s (%s)', $tax_rate, $tax_label); } @@ -168,7 +168,7 @@ class Line_Item_List_Table extends Payment_List_Table { $tax_rate = $item->get_discount_rate() . '%'; } - $tax_label = $item->get_discount_rate() ? ($item->get_discount_label() ?: __('Discount', 'wp-ultimo')) : __('No discount', 'wp-ultimo'); + $tax_label = $item->get_discount_rate() ? ($item->get_discount_label() ?: __('Discount', 'wp-multisite-waas')) : __('No discount', 'wp-multisite-waas'); return $html . sprintf('%s (%s)', $tax_rate, $tax_label); } @@ -208,12 +208,12 @@ class Line_Item_List_Table extends Payment_List_Table { public function get_columns() { $columns = [ - 'service' => __('Service', 'wp-ultimo'), - 'unit_price' => __('Unit Price', 'wp-ultimo'), - 'discounts_total' => __('discounts', 'wp-ultimo'), - 'subtotal' => __('Subtotal', 'wp-ultimo'), - 'tax_total' => __('Taxes', 'wp-ultimo'), - 'total' => __('Total', 'wp-ultimo'), + 'service' => __('Service', 'wp-multisite-waas'), + 'unit_price' => __('Unit Price', 'wp-multisite-waas'), + 'discounts_total' => __('discounts', 'wp-multisite-waas'), + 'subtotal' => __('Subtotal', 'wp-multisite-waas'), + 'tax_total' => __('Taxes', 'wp-multisite-waas'), + 'total' => __('Total', 'wp-multisite-waas'), ]; return $columns; diff --git a/inc/list-tables/class-membership-line-item-list-table.php b/inc/list-tables/class-membership-line-item-list-table.php index 7c76ba4..4ff9b40 100644 --- a/inc/list-tables/class-membership-line-item-list-table.php +++ b/inc/list-tables/class-membership-line-item-list-table.php @@ -78,15 +78,15 @@ class Membership_Line_Item_List_Table extends Product_List_Table { [ 'url' => false, 'id' => 'not-found', - 'title' => __('Product not found', 'wp-ultimo'), + 'title' => __('Product not found', 'wp-multisite-waas'), 'status' => '', 'image' => $this->column_featured_image_id(new \WP_Ultimo\Models\Product()), ], [ 'quantity' => [ 'icon' => 'dashicons-wu-package wu-align-middle wu-mr-1', - 'label' => __('Quantity', 'wp-ultimo'), - 'value' => sprintf(__('x%d', 'wp-ultimo'), $quantity), + 'label' => __('Quantity', 'wp-multisite-waas'), + 'value' => sprintf(__('x%d', 'wp-multisite-waas'), $quantity), ], ] ); @@ -97,12 +97,12 @@ class Membership_Line_Item_List_Table extends Product_List_Table { $first_row = [ 'quantity' => [ 'icon' => 'dashicons-wu-package wu-align-middle wu-mr-1', - 'label' => __('Quantity', 'wp-ultimo'), - 'value' => sprintf(__('x%d', 'wp-ultimo'), $quantity), + 'label' => __('Quantity', 'wp-multisite-waas'), + 'value' => sprintf(__('x%d', 'wp-multisite-waas'), $quantity), ], 'total' => [ 'icon' => 'dashicons-wu-shopping-bag1 wu-align-middle wu-mr-1', - 'label' => __('Price description', 'wp-ultimo'), + 'label' => __('Price description', 'wp-multisite-waas'), 'value' => $item->get_price_description(), ], ]; @@ -110,7 +110,7 @@ class Membership_Line_Item_List_Table extends Product_List_Table { $second_row = [ 'slug' => [ 'icon' => 'dashicons-wu-bookmark1 wu-align-middle wu-mr-1', - 'label' => __('Product Slug', 'wp-ultimo'), + 'label' => __('Product Slug', 'wp-multisite-waas'), 'value' => $item->get_slug(), ], ]; @@ -120,7 +120,7 @@ class Membership_Line_Item_List_Table extends Product_List_Table { 'wrapper_classes' => 'wubox', 'icon' => 'dashicons-wu-edit1 wu-align-middle wu-mr-1', 'label' => '', - 'value' => __('Upgrade or Downgrade', 'wp-ultimo'), + 'value' => __('Upgrade or Downgrade', 'wp-multisite-waas'), 'url' => wu_get_form_url( 'change_membership_plan', [ @@ -134,7 +134,7 @@ class Membership_Line_Item_List_Table extends Product_List_Table { 'wrapper_classes' => 'wu-text-red-500 wubox', 'icon' => 'dashicons-wu-trash-2 wu-align-middle wu-mr-1', 'label' => '', - 'value' => __('Remove', 'wp-ultimo'), + 'value' => __('Remove', 'wp-multisite-waas'), 'url' => wu_get_form_url( 'remove_membership_product', [ diff --git a/inc/list-tables/class-membership-list-table-widget.php b/inc/list-tables/class-membership-list-table-widget.php index 461536d..4831081 100644 --- a/inc/list-tables/class-membership-list-table-widget.php +++ b/inc/list-tables/class-membership-list-table-widget.php @@ -38,8 +38,8 @@ class Membership_List_Table_Widget extends Base_List_Table { parent::__construct( [ - 'singular' => __('Membership', 'wp-ultimo'), // singular name of the listed records - 'plural' => __('Memberships', 'wp-ultimo'), // plural name of the listed records + 'singular' => __('Membership', 'wp-multisite-waas'), // singular name of the listed records + 'plural' => __('Memberships', 'wp-multisite-waas'), // plural name of the listed records 'ajax' => true, // does this table support ajax? ] ); @@ -129,8 +129,8 @@ class Membership_List_Table_Widget extends Base_List_Table { $code = sprintf('%s', wu_network_admin_url('wp-ultimo-edit-membership', $url_atts), $item->get_hash()); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-membership', $url_atts), __('Edit', 'wp-ultimo')), - 'delete' => sprintf('%s', '', __('Delete', 'wp-ultimo')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-membership', $url_atts), __('Edit', 'wp-multisite-waas')), + 'delete' => sprintf('%s', '', __('Delete', 'wp-multisite-waas')), ]; $html = "{$code}"; @@ -166,7 +166,7 @@ class Membership_List_Table_Widget extends Base_List_Table { public function column_amount($item) { if (empty($item->get_amount())) { - return __('Free', 'wp-ultimo'); + return __('Free', 'wp-multisite-waas'); } $amount = wu_format_currency($item->get_amount(), $item->get_currency()); @@ -176,7 +176,7 @@ class Membership_List_Table_Widget extends Base_List_Table { $message = sprintf( // translators: %1$s is the formatted price, %2$s the duration, and %3$s the duration unit (day, week, month, etc) - _n('every %2$s', 'every %1$s %2$s', $duration, 'wp-ultimo'), // phpcs:ignore + _n('every %2$s', 'every %1$s %2$s', $duration, 'wp-multisite-waas'), // phpcs:ignore $duration, $item->get_duration_unit() ); @@ -184,14 +184,14 @@ class Membership_List_Table_Widget extends Base_List_Table { if ( ! $item->is_forever_recurring()) { $billing_cycles_message = sprintf( // translators: %s is the number of billing cycles. - _n('for %s cycle', 'for %s cycles', $item->get_billing_cycles(), 'wp-ultimo'), + _n('for %s cycle', 'for %s cycles', $item->get_billing_cycles(), 'wp-multisite-waas'), $item->get_billing_cycles() ); $message .= ' ' . $billing_cycles_message; } } else { - $message = __('one time payment', 'wp-ultimo'); + $message = __('one time payment', 'wp-multisite-waas'); } return sprintf('%s
%s', $amount, $message); @@ -210,7 +210,7 @@ class Membership_List_Table_Widget extends Base_List_Table { $customer = $item->get_customer(); if ( ! $customer) { - $not_found = __('No customer found', 'wp-ultimo'); + $not_found = __('No customer found', 'wp-multisite-waas'); return "
  @@ -262,10 +262,10 @@ class Membership_List_Table_Widget extends Base_List_Table { public function get_columns() { $columns = [ - 'hash' => __('Ref.', 'wp-ultimo'), - 'status' => __('Status', 'wp-ultimo'), - 'customer' => __('Customer', 'wp-ultimo'), - 'amount' => __('Price', 'wp-ultimo'), + 'hash' => __('Ref.', 'wp-multisite-waas'), + 'status' => __('Status', 'wp-multisite-waas'), + 'customer' => __('Customer', 'wp-multisite-waas'), + 'amount' => __('Price', 'wp-multisite-waas'), ]; return $columns; diff --git a/inc/list-tables/class-membership-list-table.php b/inc/list-tables/class-membership-list-table.php index c6f4099..210cfd8 100644 --- a/inc/list-tables/class-membership-list-table.php +++ b/inc/list-tables/class-membership-list-table.php @@ -36,8 +36,8 @@ class Membership_List_Table extends Base_List_Table { parent::__construct( [ - 'singular' => __('Membership', 'wp-ultimo'), // singular name of the listed records - 'plural' => __('Memberships', 'wp-ultimo'), // plural name of the listed records + 'singular' => __('Membership', 'wp-multisite-waas'), // singular name of the listed records + 'plural' => __('Memberships', 'wp-multisite-waas'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_get_form_url('add_new_membership'), @@ -82,15 +82,15 @@ class Membership_List_Table extends Base_List_Table { $code = sprintf('%s', wu_network_admin_url('wp-ultimo-edit-membership', $url_atts), $item->get_hash()); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-membership', $url_atts), __('Edit', 'wp-ultimo')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-membership', $url_atts), __('Edit', 'wp-multisite-waas')), 'delete' => sprintf( '%s', - __('Delete', 'wp-ultimo'), + __('Delete', 'wp-multisite-waas'), wu_get_form_url( 'delete_modal', $url_atts ), - __('Delete', 'wp-ultimo') + __('Delete', 'wp-multisite-waas') ), ]; @@ -129,7 +129,7 @@ class Membership_List_Table extends Base_List_Table { public function column_amount($item) { if (empty($item->get_amount()) && empty($item->get_initial_amount())) { - return __('Free', 'wp-ultimo'); + return __('Free', 'wp-multisite-waas'); } if ($item->is_recurring()) { @@ -139,7 +139,7 @@ class Membership_List_Table extends Base_List_Table { $message = sprintf( // translators: %1$s is the formatted price, %2$s the duration, and %3$s the duration unit (day, week, month, etc) - _n('every %2$s', 'every %1$s %2$s', $duration, 'wp-ultimo'), // phpcs:ignore + _n('every %2$s', 'every %1$s %2$s', $duration, 'wp-multisite-waas'), // phpcs:ignore $duration, $item->get_duration_unit() ); @@ -147,7 +147,7 @@ class Membership_List_Table extends Base_List_Table { if ( ! $item->is_forever_recurring()) { $billing_cycles_message = sprintf( // translators: %s is the number of billing cycles. - _n('for %s cycle', 'for %s cycles', $item->get_billing_cycles(), 'wp-ultimo'), + _n('for %s cycle', 'for %s cycles', $item->get_billing_cycles(), 'wp-multisite-waas'), $item->get_billing_cycles() ); @@ -156,7 +156,7 @@ class Membership_List_Table extends Base_List_Table { } else { $amount = wu_format_currency($item->get_initial_amount(), $item->get_currency()); - $message = __('one time payment', 'wp-ultimo'); + $message = __('one time payment', 'wp-multisite-waas'); } return sprintf('%s
%s', $amount, $message); @@ -172,15 +172,15 @@ class Membership_List_Table extends Base_List_Table { $columns = [ 'cb' => '', - 'hash' => wu_tooltip(__('Reference Code', 'wp-ultimo'), 'dashicons-wu-hash wu-text-xs'), - 'status' => __('Status', 'wp-ultimo'), - 'customer' => __('Customer', 'wp-ultimo'), - 'product' => __('Product', 'wp-ultimo'), - 'amount' => __('Price', 'wp-ultimo'), - // 'sites' => __('Sites', 'wp-ultimo'), - 'date_created' => __('Created at', 'wp-ultimo'), - 'date_expiration' => __('Expiration', 'wp-ultimo'), - 'id' => __('ID', 'wp-ultimo'), + 'hash' => wu_tooltip(__('Reference Code', 'wp-multisite-waas'), 'dashicons-wu-hash wu-text-xs'), + 'status' => __('Status', 'wp-multisite-waas'), + 'customer' => __('Customer', 'wp-multisite-waas'), + 'product' => __('Product', 'wp-multisite-waas'), + 'amount' => __('Price', 'wp-multisite-waas'), + // 'sites' => __('Sites', 'wp-multisite-waas'), + 'date_created' => __('Created at', 'wp-multisite-waas'), + 'date_expiration' => __('Expiration', 'wp-multisite-waas'), + 'id' => __('ID', 'wp-multisite-waas'), ]; return $columns; @@ -199,18 +199,18 @@ class Membership_List_Table extends Base_List_Table { $date = $item->get_date_expiration(); if (empty($date) || '0000-00-00 00:00:00' === $date) { - return sprintf('%s
%s', __('Lifetime', 'wp-ultimo'), __('It never expires', 'wp-ultimo')); + return sprintf('%s
%s', __('Lifetime', 'wp-multisite-waas'), __('It never expires', 'wp-multisite-waas')); } if ( ! wu_validate_date($date)) { - return __('--', 'wp-ultimo'); + return __('--', 'wp-multisite-waas'); } $time = strtotime(get_date_from_gmt($date)); $formatted_value = date_i18n(get_option('date_format'), $time); - $placeholder = wu_get_current_time('timestamp') > $time ? __('%s ago', 'wp-ultimo') : __('In %s', 'wp-ultimo'); // phpcs:ignore + $placeholder = wu_get_current_time('timestamp') > $time ? __('%s ago', 'wp-multisite-waas') : __('In %s', 'wp-multisite-waas'); // phpcs:ignore $text = $formatted_value . sprintf('
%s', sprintf($placeholder, human_time_diff($time))); @@ -233,7 +233,7 @@ class Membership_List_Table extends Base_List_Table { * Status */ 'status' => [ - 'label' => __('Status', 'wp-ultimo'), + 'label' => __('Status', 'wp-multisite-waas'), 'options' => $membership_status::to_array(), ], @@ -244,7 +244,7 @@ class Membership_List_Table extends Base_List_Table { * Created At */ 'date_created' => [ - 'label' => __('Created At', 'wp-ultimo'), + 'label' => __('Created At', 'wp-multisite-waas'), 'options' => $this->get_default_date_filter_options(), ], @@ -252,7 +252,7 @@ class Membership_List_Table extends Base_List_Table { * Expiration Date */ 'date_expiration' => [ - 'label' => __('Expiration Date', 'wp-ultimo'), + 'label' => __('Expiration Date', 'wp-multisite-waas'), 'options' => $this->get_default_date_filter_options(), ], @@ -260,7 +260,7 @@ class Membership_List_Table extends Base_List_Table { * Renewal Date */ 'date_renewed' => [ - 'label' => __('Renewal Date', 'wp-ultimo'), + 'label' => __('Renewal Date', 'wp-multisite-waas'), 'options' => $this->get_default_date_filter_options(), ], ], @@ -279,43 +279,43 @@ class Membership_List_Table extends Base_List_Table { 'all' => [ 'field' => 'status', 'url' => add_query_arg('status', 'all'), - 'label' => __('All Memberships', 'wp-ultimo'), + 'label' => __('All Memberships', 'wp-multisite-waas'), 'count' => 0, ], 'active' => [ 'field' => 'status', 'url' => add_query_arg('status', 'active'), - 'label' => __('Active', 'wp-ultimo'), + 'label' => __('Active', 'wp-multisite-waas'), 'count' => 0, ], 'trialing' => [ 'field' => 'status', 'url' => add_query_arg('status', 'trialing'), - 'label' => __('Trialing', 'wp-ultimo'), + 'label' => __('Trialing', 'wp-multisite-waas'), 'count' => 0, ], 'pending' => [ 'field' => 'status', 'url' => add_query_arg('status', 'pending'), - 'label' => __('Pending', 'wp-ultimo'), + 'label' => __('Pending', 'wp-multisite-waas'), 'count' => 0, ], 'on-hold' => [ 'field' => 'status', 'url' => add_query_arg('status', 'on-hold'), - 'label' => __('On Hold', 'wp-ultimo'), + 'label' => __('On Hold', 'wp-multisite-waas'), 'count' => 0, ], 'expired' => [ 'field' => 'status', 'url' => add_query_arg('status', 'expired'), - 'label' => __('Expired', 'wp-ultimo'), + 'label' => __('Expired', 'wp-multisite-waas'), 'count' => 0, ], 'cancelled' => [ 'field' => 'status', 'url' => add_query_arg('status', 'cancelled'), - 'label' => __('Cancelled', 'wp-ultimo'), + 'label' => __('Cancelled', 'wp-multisite-waas'), 'count' => 0, ], ]; diff --git a/inc/list-tables/class-memberships-site-list-table.php b/inc/list-tables/class-memberships-site-list-table.php index a96e3af..5b36eb0 100644 --- a/inc/list-tables/class-memberships-site-list-table.php +++ b/inc/list-tables/class-memberships-site-list-table.php @@ -62,14 +62,14 @@ class Memberships_Site_List_Table extends Customers_Site_List_Table { [ 'link' => [ 'icon' => 'dashicons-wu-link1 wu-align-middle wu-mr-1', - 'label' => __('Visit Site', 'wp-ultimo'), - 'value' => __('Homepage', 'wp-ultimo'), + 'label' => __('Visit Site', 'wp-multisite-waas'), + 'value' => __('Homepage', 'wp-multisite-waas'), 'url' => $item->get_active_site_url(), ], 'dashboard' => [ 'icon' => 'dashicons-wu-browser wu-align-middle wu-mr-1', - 'label' => __('Go to the Dashboard', 'wp-ultimo'), - 'value' => __('Dashboard', 'wp-ultimo'), + 'label' => __('Go to the Dashboard', 'wp-multisite-waas'), + 'value' => __('Dashboard', 'wp-multisite-waas'), 'url' => get_admin_url($item->get_id()), ], ], @@ -77,7 +77,7 @@ class Memberships_Site_List_Table extends Customers_Site_List_Table { 'date_created' => [ 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', 'label' => '', - 'value' => $item->get_type() === 'pending' ? __('Not Available', 'wp-ultimo') : sprintf(__('Created %s', 'wp-ultimo'), wu_human_time_diff(strtotime((string) $item->get_date_registered()))), + 'value' => $item->get_type() === 'pending' ? __('Not Available', 'wp-multisite-waas') : sprintf(__('Created %s', 'wp-multisite-waas'), wu_human_time_diff(strtotime((string) $item->get_date_registered()))), ], ] ); diff --git a/inc/list-tables/class-payment-line-item-list-table.php b/inc/list-tables/class-payment-line-item-list-table.php index 5ae58d7..072f147 100644 --- a/inc/list-tables/class-payment-line-item-list-table.php +++ b/inc/list-tables/class-payment-line-item-list-table.php @@ -49,12 +49,12 @@ class Payment_Line_Item_List_Table extends Line_Item_List_Table { $first_row = [ 'quantity' => [ 'icon' => 'dashicons-wu-package wu-align-middle wu-mr-1', - 'label' => __('Quantity', 'wp-ultimo'), - 'value' => sprintf(__('x%d', 'wp-ultimo'), $item->get_quantity()), + 'label' => __('Quantity', 'wp-multisite-waas'), + 'value' => sprintf(__('x%d', 'wp-multisite-waas'), $item->get_quantity()), ], 'unit_price' => [ 'icon' => 'dashicons-wu-info1 wu-align-middle wu-mr-1', - 'label' => __('Unit Price', 'wp-ultimo'), + 'label' => __('Unit Price', 'wp-multisite-waas'), 'value' => wu_format_currency($item->get_unit_price()), ], ]; @@ -70,7 +70,7 @@ class Payment_Line_Item_List_Table extends Line_Item_List_Table { 'wrapper_classes' => 'wubox', 'icon' => 'dashicons-wu-edit1 wu-align-middle wu-mr-1', 'label' => '', - 'value' => __('Edit', 'wp-ultimo'), + 'value' => __('Edit', 'wp-multisite-waas'), 'url' => wu_get_form_url('edit_line_item', $url_atts), ]; @@ -78,7 +78,7 @@ class Payment_Line_Item_List_Table extends Line_Item_List_Table { 'wrapper_classes' => 'wu-text-red-500 wubox', 'icon' => 'dashicons-wu-trash-2 wu-align-middle wu-mr-1', 'label' => '', - 'value' => __('Remove', 'wp-ultimo'), + 'value' => __('Remove', 'wp-multisite-waas'), 'url' => wu_get_form_url('delete_line_item', $url_atts), ]; @@ -90,21 +90,21 @@ class Payment_Line_Item_List_Table extends Line_Item_List_Table { $tax_rate = $item->get_discount_rate() . '%'; } - $tax_label = $item->get_discount_rate() ? ($item->get_discount_label() ?: __('Discount', 'wp-ultimo')) : __('No discount', 'wp-ultimo'); + $tax_label = $item->get_discount_rate() ? ($item->get_discount_label() ?: __('Discount', 'wp-multisite-waas')) : __('No discount', 'wp-multisite-waas'); $tooltip = sprintf('%s (%s)', $tax_rate, $tax_label); $first_row['discounts_total'] = [ 'icon' => 'dashicons-wu-percent wu-align-middle wu-mr-1', 'label' => $tooltip, - 'value' => sprintf(__('Discounts: %s', 'wp-ultimo'), wu_format_currency($item->get_discount_total())), + 'value' => sprintf(__('Discounts: %s', 'wp-multisite-waas'), wu_format_currency($item->get_discount_total())), ]; } $first_row['subtotal'] = [ 'icon' => 'dashicons-wu-info1 wu-align-middle wu-mr-1', 'label' => '', - 'value' => sprintf(__('Subtotal: %s', 'wp-ultimo'), wu_format_currency($item->get_subtotal())), + 'value' => sprintf(__('Subtotal: %s', 'wp-multisite-waas'), wu_format_currency($item->get_subtotal())), ]; /* @@ -115,20 +115,20 @@ class Payment_Line_Item_List_Table extends Line_Item_List_Table { $tax_rate = $item->get_tax_rate() . '%'; } - $tax_label = $item->get_tax_rate() ? ($item->get_tax_label() ?: __('Tax Applied', 'wp-ultimo')) : __('No Taxes Applied', 'wp-ultimo'); + $tax_label = $item->get_tax_rate() ? ($item->get_tax_label() ?: __('Tax Applied', 'wp-multisite-waas')) : __('No Taxes Applied', 'wp-multisite-waas'); $tooltip = sprintf('%s (%s)', $tax_rate, $tax_label); $first_row['tax_total'] = [ 'icon' => 'dashicons-wu-percent wu-align-middle wu-mr-1', 'label' => $tooltip, - 'value' => sprintf(__('Taxes: %s', 'wp-ultimo'), wu_format_currency($item->get_tax_total())), + 'value' => sprintf(__('Taxes: %s', 'wp-multisite-waas'), wu_format_currency($item->get_tax_total())), ]; } $first_row['description'] = [ 'icon' => 'dashicons-wu-file-text wu-align-middle wu-mr-1', - 'label' => __('Item Description', 'wp-ultimo'), + 'label' => __('Item Description', 'wp-multisite-waas'), 'value' => $item->get_description(), ]; diff --git a/inc/list-tables/class-payment-list-table-widget.php b/inc/list-tables/class-payment-list-table-widget.php index 042f1bc..b338eae 100644 --- a/inc/list-tables/class-payment-list-table-widget.php +++ b/inc/list-tables/class-payment-list-table-widget.php @@ -38,8 +38,8 @@ class Payment_List_Table_Widget extends Base_List_Table { parent::__construct( [ - 'singular' => __('Payment', 'wp-ultimo'), // singular name of the listed records - 'plural' => __('Payments', 'wp-ultimo'), // plural name of the listed records + 'singular' => __('Payment', 'wp-multisite-waas'), // singular name of the listed records + 'plural' => __('Payments', 'wp-multisite-waas'), // plural name of the listed records 'ajax' => true, // does this table support ajax? ] ); @@ -112,8 +112,8 @@ class Payment_List_Table_Widget extends Base_List_Table { $code = sprintf('%s', wu_network_admin_url('wp-ultimo-edit-payment', $url_atts), $item->get_hash()); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-payment', $url_atts), __('Edit', 'wp-ultimo')), - 'delete' => sprintf('%s', '', __('Delete', 'wp-ultimo')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-payment', $url_atts), __('Edit', 'wp-multisite-waas')), + 'delete' => sprintf('%s', '', __('Delete', 'wp-multisite-waas')), ]; $html = "{$code}"; @@ -152,7 +152,7 @@ class Payment_List_Table_Widget extends Base_List_Table { $customer = $item->get_customer(); if ( ! $customer) { - $not_found = __('No customer found', 'wp-ultimo'); + $not_found = __('No customer found', 'wp-multisite-waas'); return "
  @@ -218,10 +218,10 @@ class Payment_List_Table_Widget extends Base_List_Table { public function get_columns() { $columns = [ - 'hash' => __('Ref.', 'wp-ultimo'), - 'customer' => __('Customer', 'wp-ultimo'), - 'total' => __('Total', 'wp-ultimo'), - 'date_created' => __('Created at', 'wp-ultimo'), + 'hash' => __('Ref.', 'wp-multisite-waas'), + 'customer' => __('Customer', 'wp-multisite-waas'), + 'total' => __('Total', 'wp-multisite-waas'), + 'date_created' => __('Created at', 'wp-multisite-waas'), ]; return $columns; diff --git a/inc/list-tables/class-payment-list-table.php b/inc/list-tables/class-payment-list-table.php index 0e79f16..44f7f9d 100644 --- a/inc/list-tables/class-payment-list-table.php +++ b/inc/list-tables/class-payment-list-table.php @@ -38,8 +38,8 @@ class Payment_List_Table extends Base_List_Table { parent::__construct( [ - 'singular' => __('Payment', 'wp-ultimo'), - 'plural' => __('Payments', 'wp-ultimo'), + 'singular' => __('Payment', 'wp-multisite-waas'), + 'plural' => __('Payments', 'wp-multisite-waas'), 'ajax' => true, 'add_new' => [ 'url' => wu_get_form_url('add_new_payment'), @@ -87,10 +87,10 @@ class Payment_List_Table extends Base_List_Table { $code = sprintf('%s', wu_network_admin_url('wp-ultimo-edit-payment', $url_atts), $item->get_hash()); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-payment', $url_atts), __('Edit', 'wp-ultimo')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-payment', $url_atts), __('Edit', 'wp-multisite-waas')), 'delete' => sprintf( '%s', - __('Delete', 'wp-ultimo'), + __('Delete', 'wp-multisite-waas'), wu_get_form_url( 'delete_modal', [ @@ -98,7 +98,7 @@ class Payment_List_Table extends Base_List_Table { 'id' => $item->get_id(), ] ), - __('Delete', 'wp-ultimo') + __('Delete', 'wp-multisite-waas') ), ]; @@ -137,7 +137,7 @@ class Payment_List_Table extends Base_List_Table { $product = $item->get_product(); if ( ! $product) { - return __('No product found', 'wp-ultimo'); + return __('No product found', 'wp-multisite-waas'); } $url_atts = [ @@ -145,7 +145,7 @@ class Payment_List_Table extends Base_List_Table { ]; $actions = [ - 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-product', $url_atts), __('View', 'wp-ultimo')), + 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-product', $url_atts), __('View', 'wp-multisite-waas')), ]; $html = $product->get_name(); @@ -178,13 +178,13 @@ class Payment_List_Table extends Base_List_Table { $columns = [ 'cb' => '', - 'hash' => wu_tooltip(__('Reference Code', 'wp-ultimo'), 'dashicons-wu-hash wu-text-xs'), - 'status' => __('Status', 'wp-ultimo'), - 'customer' => __('Customer', 'wp-ultimo'), - 'membership' => __('Membership', 'wp-ultimo'), - 'total' => __('Total', 'wp-ultimo'), - 'date_created' => __('Created at', 'wp-ultimo'), - 'id' => __('ID', 'wp-ultimo'), + 'hash' => wu_tooltip(__('Reference Code', 'wp-multisite-waas'), 'dashicons-wu-hash wu-text-xs'), + 'status' => __('Status', 'wp-multisite-waas'), + 'customer' => __('Customer', 'wp-multisite-waas'), + 'membership' => __('Membership', 'wp-multisite-waas'), + 'total' => __('Total', 'wp-multisite-waas'), + 'date_created' => __('Created at', 'wp-multisite-waas'), + 'id' => __('ID', 'wp-multisite-waas'), ]; return $columns; @@ -204,13 +204,13 @@ class Payment_List_Table extends Base_List_Table { * Status */ 'status' => [ - 'label' => __('Status', 'wp-ultimo'), + 'label' => __('Status', 'wp-multisite-waas'), 'options' => [ - 'pending' => __('Pending', 'wp-ultimo'), - 'completed' => __('Completed', 'wp-ultimo'), - 'refund' => __('Refund', 'wp-ultimo'), - 'partial' => __('Partial', 'wp-ultimo'), - 'failed' => __('Failed', 'wp-ultimo'), + 'pending' => __('Pending', 'wp-multisite-waas'), + 'completed' => __('Completed', 'wp-multisite-waas'), + 'refund' => __('Refund', 'wp-multisite-waas'), + 'partial' => __('Partial', 'wp-multisite-waas'), + 'failed' => __('Failed', 'wp-multisite-waas'), ], ], @@ -218,12 +218,12 @@ class Payment_List_Table extends Base_List_Table { * Gateway */ 'gateway' => [ - 'label' => __('Gateway', 'wp-ultimo'), + 'label' => __('Gateway', 'wp-multisite-waas'), 'options' => [ - 'free' => __('Free', 'wp-ultimo'), - 'manual' => __('Manual', 'wp-ultimo'), - 'paypal' => __('Paypal', 'wp-ultimo'), - 'stripe' => __('Stripe', 'wp-ultimo'), + 'free' => __('Free', 'wp-multisite-waas'), + 'manual' => __('Manual', 'wp-multisite-waas'), + 'paypal' => __('Paypal', 'wp-multisite-waas'), + 'stripe' => __('Stripe', 'wp-multisite-waas'), ], ], ], @@ -233,7 +233,7 @@ class Payment_List_Table extends Base_List_Table { * Created At */ 'date_created' => [ - 'label' => __('Created At', 'wp-ultimo'), + 'label' => __('Created At', 'wp-multisite-waas'), 'options' => $this->get_default_date_filter_options(), ], ], @@ -252,37 +252,37 @@ class Payment_List_Table extends Base_List_Table { 'all' => [ 'field' => 'status', 'url' => add_query_arg('status', 'all'), - 'label' => __('All Payments', 'wp-ultimo'), + 'label' => __('All Payments', 'wp-multisite-waas'), 'count' => 0, ], Payment_Status::COMPLETED() => [ 'field' => 'status', 'url' => add_query_arg('status', Payment_Status::COMPLETED()), - 'label' => __('Completed', 'wp-ultimo'), + 'label' => __('Completed', 'wp-multisite-waas'), 'count' => 0, ], Payment_Status::PENDING() => [ 'field' => 'status', 'url' => add_query_arg('status', Payment_Status::PENDING()), - 'label' => __('Pending', 'wp-ultimo'), + 'label' => __('Pending', 'wp-multisite-waas'), 'count' => 0, ], Payment_Status::PARTIAL_REFUND() => [ 'field' => 'status', 'url' => add_query_arg('status', Payment_Status::PARTIAL_REFUND()), - 'label' => __('Partially Refunded', 'wp-ultimo'), + 'label' => __('Partially Refunded', 'wp-multisite-waas'), 'count' => 0, ], Payment_Status::REFUND() => [ 'field' => 'status', 'url' => add_query_arg('status', Payment_Status::REFUND()), - 'label' => __('Refunded', 'wp-ultimo'), + 'label' => __('Refunded', 'wp-multisite-waas'), 'count' => 0, ], Payment_Status::FAILED() => [ 'field' => 'status', 'url' => add_query_arg('status', Payment_Status::FAILED()), - 'label' => __('Failed', 'wp-ultimo'), + 'label' => __('Failed', 'wp-multisite-waas'), 'count' => 0, ], ]; diff --git a/inc/list-tables/class-product-list-table.php b/inc/list-tables/class-product-list-table.php index 300728a..ab643c3 100644 --- a/inc/list-tables/class-product-list-table.php +++ b/inc/list-tables/class-product-list-table.php @@ -36,8 +36,8 @@ class Product_List_Table extends Base_List_Table { parent::__construct( [ - 'singular' => __('Product', 'wp-ultimo'), // singular name of the listed records - 'plural' => __('Products', 'wp-ultimo'), // plural name of the listed records + 'singular' => __('Product', 'wp-multisite-waas'), // singular name of the listed records + 'plural' => __('Products', 'wp-multisite-waas'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_network_admin_url('wp-ultimo-edit-product'), @@ -68,7 +68,7 @@ class Product_List_Table extends Base_List_Table { $title = "$title"; $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-product', $url_atts), __('Edit', 'wp-ultimo')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-product', $url_atts), __('Edit', 'wp-multisite-waas')), 'duplicate' => sprintf( '%s', wu_network_admin_url( @@ -78,9 +78,9 @@ class Product_List_Table extends Base_List_Table { 'id' => $item->get_id(), ] ), - __('Duplicate', 'wp-ultimo') + __('Duplicate', 'wp-multisite-waas') ), - 'delete' => sprintf('%s', __('Delete', 'wp-ultimo'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'wp-ultimo')), + 'delete' => sprintf('%s', __('Delete', 'wp-multisite-waas'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'wp-multisite-waas')), ]; return $title . $this->row_actions($actions); @@ -129,11 +129,11 @@ class Product_List_Table extends Base_List_Table { public function column_amount($item) { if ($item->get_pricing_type() === 'contact_us') { - return __('None', 'wp-ultimo') . sprintf('
%s', __('Requires contact', 'wp-ultimo')); + return __('None', 'wp-multisite-waas') . sprintf('
%s', __('Requires contact', 'wp-multisite-waas')); } if (empty($item->get_amount())) { - return __('Free', 'wp-ultimo'); + return __('Free', 'wp-multisite-waas'); } $amount = wu_format_currency($item->get_amount(), $item->get_currency()); @@ -143,7 +143,7 @@ class Product_List_Table extends Base_List_Table { $message = sprintf( // translators: %1$s is the formatted price, %2$s the duration, and %3$s the duration unit (day, week, month, etc) - _n('every %2$s', 'every %1$s %2$s', $duration, 'wp-ultimo'), // phpcs:ignore + _n('every %2$s', 'every %1$s %2$s', $duration, 'wp-multisite-waas'), // phpcs:ignore $duration, $item->get_duration_unit() ); @@ -151,14 +151,14 @@ class Product_List_Table extends Base_List_Table { if ( ! $item->is_forever_recurring()) { $billing_cycles_message = sprintf( // translators: %s is the number of billing cycles. - _n('for %s cycle', 'for %s cycles', $item->get_billing_cycles(), 'wp-ultimo'), + _n('for %s cycle', 'for %s cycles', $item->get_billing_cycles(), 'wp-multisite-waas'), $item->get_billing_cycles() ); $message .= ' ' . $billing_cycles_message; } } else { - $message = __('one time payment', 'wp-ultimo'); + $message = __('one time payment', 'wp-multisite-waas'); } return sprintf('%s
%s', $amount, $message); @@ -175,11 +175,11 @@ class Product_List_Table extends Base_List_Table { public function column_setup_fee($item) { if ($item->get_pricing_type() === 'contact_us') { - return __('None', 'wp-ultimo') . sprintf('
%s', __('Requires contact', 'wp-ultimo')); + return __('None', 'wp-multisite-waas') . sprintf('
%s', __('Requires contact', 'wp-multisite-waas')); } if ( ! $item->has_setup_fee()) { - return __('No Setup Fee', 'wp-ultimo'); + return __('No Setup Fee', 'wp-multisite-waas'); } return wu_format_currency($item->get_setup_fee(), $item->get_currency()); @@ -201,14 +201,14 @@ class Product_List_Table extends Base_List_Table { $product = wu_get_product($product); if ( ! $product) { - WP_Ultimo()->notices->add(__('Product not found.', 'wp-ultimo'), 'error', 'network-admin'); + WP_Ultimo()->notices->add(__('Product not found.', 'wp-multisite-waas'), 'error', 'network-admin'); return; } $new_product = $product->duplicate(); - $new_name = sprintf(__('Copy of %s', 'wp-ultimo'), $product->get_name()); + $new_name = sprintf(__('Copy of %s', 'wp-multisite-waas'), $product->get_name()); $new_product->set_name($new_name); @@ -249,12 +249,12 @@ class Product_List_Table extends Base_List_Table { $columns = [ 'cb' => '', 'featured_image_id' => '', - 'name' => __('Name', 'wp-ultimo'), - 'type' => __('Type', 'wp-ultimo'), - 'slug' => __('Slug', 'wp-ultimo'), - 'amount' => __('Price', 'wp-ultimo'), - 'setup_fee' => __('Setup Fee', 'wp-ultimo'), - 'id' => __('ID', 'wp-ultimo'), + 'name' => __('Name', 'wp-multisite-waas'), + 'type' => __('Type', 'wp-multisite-waas'), + 'slug' => __('Slug', 'wp-multisite-waas'), + 'amount' => __('Price', 'wp-multisite-waas'), + 'setup_fee' => __('Setup Fee', 'wp-multisite-waas'), + 'id' => __('ID', 'wp-multisite-waas'), ]; return $columns; @@ -303,25 +303,25 @@ class Product_List_Table extends Base_List_Table { 'all' => [ 'field' => 'type', 'url' => add_query_arg('type', 'all'), - 'label' => __('All Products', 'wp-ultimo'), + 'label' => __('All Products', 'wp-multisite-waas'), 'count' => 0, ], 'plan' => [ 'field' => 'type', 'url' => add_query_arg('type', 'plan'), - 'label' => __('Plans', 'wp-ultimo'), + 'label' => __('Plans', 'wp-multisite-waas'), 'count' => 0, ], 'package' => [ 'field' => 'type', 'url' => add_query_arg('type', 'package'), - 'label' => __('Packages', 'wp-ultimo'), + 'label' => __('Packages', 'wp-multisite-waas'), 'count' => 0, ], 'service' => [ 'field' => 'type', 'url' => add_query_arg('type', 'service'), - 'label' => __('Services', 'wp-ultimo'), + 'label' => __('Services', 'wp-multisite-waas'), 'count' => 0, ], ]; diff --git a/inc/list-tables/class-site-customer-list-table.php b/inc/list-tables/class-site-customer-list-table.php index 43a2a10..b1816d8 100644 --- a/inc/list-tables/class-site-customer-list-table.php +++ b/inc/list-tables/class-site-customer-list-table.php @@ -56,10 +56,10 @@ class Site_Customer_List_Table extends Customer_List_Table { */ public function column_responsive($item): void { - $last_login = sprintf(__('Last login %s', 'wp-ultimo'), wu_human_time_diff(strtotime((string) $item->get_last_login()))); + $last_login = sprintf(__('Last login %s', 'wp-multisite-waas'), wu_human_time_diff(strtotime((string) $item->get_last_login()))); if ($item->is_online()) { - $last_login = '' . __('Online', 'wp-ultimo'); + $last_login = '' . __('Online', 'wp-multisite-waas'); } echo wu_responsive_table_row( @@ -87,20 +87,20 @@ class Site_Customer_List_Table extends Customer_List_Table { [ 'total' => [ 'icon' => 'dashicons-wu-at-sign wu-align-middle wu-mr-1', - 'label' => __('Email Address', 'wp-ultimo'), + 'label' => __('Email Address', 'wp-multisite-waas'), 'value' => $item->get_email_address(), ], ], [ 'date_expiration' => [ 'icon' => $item->is_online() === false ? 'dashicons-wu-calendar1 wu-align-middle wu-mr-1' : '', - 'label' => __('Last Login', 'wp-ultimo'), + 'label' => __('Last Login', 'wp-multisite-waas'), 'value' => $last_login, ], 'date_created' => [ 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', 'label' => '', - 'value' => sprintf(__('Registered %s', 'wp-ultimo'), wu_human_time_diff(strtotime((string) $item->get_date_registered()))), + 'value' => sprintf(__('Registered %s', 'wp-multisite-waas'), wu_human_time_diff(strtotime((string) $item->get_date_registered()))), ], ] ); diff --git a/inc/list-tables/class-site-list-table.php b/inc/list-tables/class-site-list-table.php index b10cfe4..becaa16 100644 --- a/inc/list-tables/class-site-list-table.php +++ b/inc/list-tables/class-site-list-table.php @@ -41,8 +41,8 @@ class Site_List_Table extends Base_List_Table { parent::__construct( [ - 'singular' => __('Site', 'wp-ultimo'), // singular name of the listed records - 'plural' => __('Sites', 'wp-ultimo'), // plural name of the listed records + 'singular' => __('Site', 'wp-multisite-waas'), // singular name of the listed records + 'plural' => __('Sites', 'wp-multisite-waas'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_get_form_url('add_new_site'), @@ -129,24 +129,24 @@ class Site_List_Table extends Base_List_Table { $title = "$title"; $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-site', $url_atts), __('Edit', 'wp-ultimo')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-site', $url_atts), __('Edit', 'wp-multisite-waas')), 'duplicate' => sprintf( '%s', - __('Duplicate Site', 'wp-ultimo'), + __('Duplicate Site', 'wp-multisite-waas'), wu_get_form_url( 'add_new_site', $url_atts ), - __('Duplicate', 'wp-ultimo') + __('Duplicate', 'wp-multisite-waas') ), 'delete' => sprintf( '%s', - __('Delete', 'wp-ultimo'), + __('Delete', 'wp-multisite-waas'), wu_get_form_url( 'delete_modal', $url_atts ), - __('Delete', 'wp-ultimo') + __('Delete', 'wp-multisite-waas') ), ]; @@ -154,16 +154,16 @@ class Site_List_Table extends Base_List_Table { $actions = [ 'duplicate' => sprintf( '%s', - __('Publish Site', 'wp-ultimo'), + __('Publish Site', 'wp-multisite-waas'), wu_get_form_url( 'publish_pending_site', ['membership_id' => $item->get_membership_id()] ), - __('Publish', 'wp-ultimo') + __('Publish', 'wp-multisite-waas') ), 'delete' => sprintf( '%s', - __('Delete', 'wp-ultimo'), + __('Delete', 'wp-multisite-waas'), wu_get_form_url( 'delete_modal', [ @@ -180,7 +180,7 @@ class Site_List_Table extends Base_List_Table { ), ] ), - __('Delete', 'wp-ultimo') + __('Delete', 'wp-multisite-waas') ), ]; } @@ -253,7 +253,7 @@ class Site_List_Table extends Base_List_Table { ]; $actions = [ - 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-domains', $url_atts), __('View', 'wp-ultimo')), + 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-domains', $url_atts), __('View', 'wp-multisite-waas')), ]; return $domain . $this->row_actions($actions); @@ -270,12 +270,12 @@ class Site_List_Table extends Base_List_Table { $columns = [ 'cb' => '', 'featured_image_id' => '', - 'path' => __('URL', 'wp-ultimo'), - 'type' => __('Type', 'wp-ultimo'), - 'customer' => __('Customer', 'wp-ultimo'), - 'membership' => __('Membership', 'wp-ultimo'), - 'domains' => __('Domains', 'wp-ultimo'), - 'blog_id' => __('ID', 'wp-ultimo'), + 'path' => __('URL', 'wp-multisite-waas'), + 'type' => __('Type', 'wp-multisite-waas'), + 'customer' => __('Customer', 'wp-multisite-waas'), + 'membership' => __('Membership', 'wp-multisite-waas'), + 'domains' => __('Domains', 'wp-multisite-waas'), + 'blog_id' => __('ID', 'wp-multisite-waas'), ]; return $columns; @@ -310,20 +310,20 @@ class Site_List_Table extends Base_List_Table { return [ 'filters' => [ 'vip' => [ - 'label' => __('VIP Status', 'wp-ultimo'), + 'label' => __('VIP Status', 'wp-multisite-waas'), 'options' => [ - '0' => __('Regular Sites', 'wp-ultimo'), - '1' => __('VIP Sites', 'wp-ultimo'), + '0' => __('Regular Sites', 'wp-multisite-waas'), + '1' => __('VIP Sites', 'wp-multisite-waas'), ], ], ], 'date_filters' => [ 'last_login' => [ - 'label' => __('Last Login', 'wp-ultimo'), + 'label' => __('Last Login', 'wp-multisite-waas'), 'options' => $this->get_default_date_filter_options(), ], 'date_registered' => [ - 'label' => __('Site Since', 'wp-ultimo'), + 'label' => __('Site Since', 'wp-multisite-waas'), 'options' => $this->get_default_date_filter_options(), ], ], @@ -342,25 +342,25 @@ class Site_List_Table extends Base_List_Table { 'all' => [ 'field' => 'type', 'url' => add_query_arg('type', 'all'), - 'label' => __('All Sites', 'wp-ultimo'), + 'label' => __('All Sites', 'wp-multisite-waas'), 'count' => 0, ], 'customer_owned' => [ 'field' => 'type', 'url' => add_query_arg('type', 'customer_owned'), - 'label' => __('Customer-Owned', 'wp-ultimo'), + 'label' => __('Customer-Owned', 'wp-multisite-waas'), 'count' => 0, ], 'site_template' => [ 'field' => 'type', 'url' => add_query_arg('type', 'site_template'), - 'label' => __('Templates', 'wp-ultimo'), + 'label' => __('Templates', 'wp-multisite-waas'), 'count' => 0, ], 'pending' => [ 'field' => 'type', 'url' => add_query_arg('type', 'pending'), - 'label' => __('Pending', 'wp-ultimo'), + 'label' => __('Pending', 'wp-multisite-waas'), 'count' => 0, ], ]; @@ -374,10 +374,10 @@ class Site_List_Table extends Base_List_Table { public function get_bulk_actions() { $actions = [ - 'screenshot' => __('Take Screenshot', 'wp-ultimo'), + 'screenshot' => __('Take Screenshot', 'wp-multisite-waas'), ]; - $actions[ wu_request('type', 'all') === 'pending' ? 'delete-pending' : 'delete' ] = __('Delete', 'wp-ultimo'); + $actions[ wu_request('type', 'all') === 'pending' ? 'delete-pending' : 'delete' ] = __('Delete', 'wp-multisite-waas'); return $actions; } @@ -398,14 +398,14 @@ class Site_List_Table extends Base_List_Table { $site = wu_get_site($site_id); if ( ! $site) { - WP_Ultimo()->notices->add(__('Site not found.', 'wp-ultimo'), 'error', 'network-admin'); + WP_Ultimo()->notices->add(__('Site not found.', 'wp-multisite-waas'), 'error', 'network-admin'); return; } $new_site = $site->duplicate(); - $new_name = sprintf(__('Copy of %s', 'wp-ultimo'), $new_site->get_title()); + $new_name = sprintf(__('Copy of %s', 'wp-multisite-waas'), $new_site->get_title()); $new_path = sprintf('%s%s', trim((string) $new_site->get_path(), '/'), 'copy'); diff --git a/inc/list-tables/class-sites-domain-list-table.php b/inc/list-tables/class-sites-domain-list-table.php index 2556acb..04ebd08 100644 --- a/inc/list-tables/class-sites-domain-list-table.php +++ b/inc/list-tables/class-sites-domain-list-table.php @@ -60,20 +60,20 @@ class Sites_Domain_List_Table extends Domain_List_Table { 'primary' => [ 'icon' => $item->is_primary_domain() ? 'dashicons-wu-filter_1 wu-align-text-bottom wu-mr-1' : 'dashicons-wu-plus-square wu-align-text-bottom wu-mr-1', 'label' => '', - 'value' => $item->is_primary_domain() ? __('Primary', 'wp-ultimo') : __('Alias', 'wp-ultimo'), + 'value' => $item->is_primary_domain() ? __('Primary', 'wp-multisite-waas') : __('Alias', 'wp-multisite-waas'), ], 'secure' => [ 'wrapper_classes' => $item->is_secure() ? 'wu-text-green-500' : '', 'icon' => $item->is_secure() ? 'dashicons-wu-lock1 wu-align-text-bottom wu-mr-1' : 'dashicons-wu-lock1 wu-align-text-bottom wu-mr-1', 'label' => '', - 'value' => $item->is_secure() ? __('Secure (HTTPS)', 'wp-ultimo') : __('Not Secure (HTTP)', 'wp-ultimo'), + 'value' => $item->is_secure() ? __('Secure (HTTPS)', 'wp-multisite-waas') : __('Not Secure (HTTP)', 'wp-multisite-waas'), ], ], [ 'date_created' => [ 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', 'label' => '', - 'value' => sprintf(__('Created %s', 'wp-ultimo'), wu_human_time_diff(strtotime((string) $item->get_date_created()))), + 'value' => sprintf(__('Created %s', 'wp-multisite-waas'), wu_human_time_diff(strtotime((string) $item->get_date_created()))), ], ] ); diff --git a/inc/list-tables/class-webhook-list-table.php b/inc/list-tables/class-webhook-list-table.php index 78e1a9d..d59fe22 100644 --- a/inc/list-tables/class-webhook-list-table.php +++ b/inc/list-tables/class-webhook-list-table.php @@ -36,8 +36,8 @@ class Webhook_List_Table extends Base_List_Table { parent::__construct( [ - 'singular' => __('Webhook', 'wp-ultimo'), // singular name of the listed records - 'plural' => __('Webhooks', 'wp-ultimo'), // plural name of the listed records + 'singular' => __('Webhook', 'wp-multisite-waas'), // singular name of the listed records + 'plural' => __('Webhooks', 'wp-multisite-waas'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_get_form_url('add_new_webhook_modal'), @@ -67,20 +67,20 @@ class Webhook_List_Table extends Base_List_Table { wu_network_admin_url('wp-ultimo-edit-webhook', $url_atts), $item->get_name(), $item->get_id(), - __('Sending Test..', 'wp-ultimo') + __('Sending Test..', 'wp-multisite-waas') ); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-webhook', $url_atts), __('Edit', 'wp-ultimo')), - 'test' => sprintf('%s', $item->get_webhook_url(), __('Send Test', 'wp-ultimo')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-webhook', $url_atts), __('Edit', 'wp-multisite-waas')), + 'test' => sprintf('%s', $item->get_webhook_url(), __('Send Test', 'wp-multisite-waas')), 'delete' => sprintf( '%s', - __('Delete', 'wp-ultimo'), + __('Delete', 'wp-multisite-waas'), wu_get_form_url( 'delete_modal', $url_atts ), - __('Delete', 'wp-ultimo') + __('Delete', 'wp-multisite-waas') ), ]; @@ -129,7 +129,7 @@ class Webhook_List_Table extends Base_List_Table { $count = $item->get_count(); $actions = [ - 'edit' => sprintf('%s', '', __('See Events', 'wp-ultimo')), + 'edit' => sprintf('%s', '', __('See Events', 'wp-multisite-waas')), ]; return $count . $this->row_actions($actions); @@ -157,7 +157,7 @@ class Webhook_List_Table extends Base_List_Table { */ public function column_active($item) { - return $item->is_active() ? __('Yes', 'wp-ultimo') : __('No', 'wp-ultimo'); + return $item->is_active() ? __('Yes', 'wp-multisite-waas') : __('No', 'wp-multisite-waas'); } /** @@ -170,13 +170,13 @@ class Webhook_List_Table extends Base_List_Table { $columns = [ 'cb' => '', - 'name' => __('Name', 'wp-ultimo'), - 'webhook_url' => __('Target URL', 'wp-ultimo'), - 'event' => __('Trigger Event', 'wp-ultimo'), - 'event_count' => __('Count', 'wp-ultimo'), - 'integration' => __('Integration', 'wp-ultimo'), - 'active' => __('Active', 'wp-ultimo'), - 'id' => __('ID', 'wp-ultimo'), + 'name' => __('Name', 'wp-multisite-waas'), + 'webhook_url' => __('Target URL', 'wp-multisite-waas'), + 'event' => __('Trigger Event', 'wp-multisite-waas'), + 'event_count' => __('Count', 'wp-multisite-waas'), + 'integration' => __('Integration', 'wp-multisite-waas'), + 'active' => __('Active', 'wp-multisite-waas'), + 'id' => __('ID', 'wp-multisite-waas'), ]; return $columns; diff --git a/inc/list-tables/customer-panel/class-invoice-list-table.php b/inc/list-tables/customer-panel/class-invoice-list-table.php index 6f03304..9199a28 100644 --- a/inc/list-tables/customer-panel/class-invoice-list-table.php +++ b/inc/list-tables/customer-panel/class-invoice-list-table.php @@ -30,10 +30,10 @@ class Invoice_List_Table extends Parent_Payment_List_Table { public function get_columns() { $columns = [ - 'hash' => __('Code', 'wp-ultimo'), - 'status' => __('Status', 'wp-ultimo'), - 'total' => __('Total', 'wp-ultimo'), - 'date_created' => __('Created at', 'wp-ultimo'), + 'hash' => __('Code', 'wp-multisite-waas'), + 'status' => __('Status', 'wp-multisite-waas'), + 'total' => __('Total', 'wp-multisite-waas'), + 'date_created' => __('Created at', 'wp-multisite-waas'), ]; return $columns; diff --git a/inc/list-tables/customer-panel/class-site-list-table.php b/inc/list-tables/customer-panel/class-site-list-table.php index b237e3a..aaef15e 100644 --- a/inc/list-tables/customer-panel/class-site-list-table.php +++ b/inc/list-tables/customer-panel/class-site-list-table.php @@ -73,7 +73,7 @@ class Site_List_Table extends Parent_Site_List_Table { 'all' => [ 'field' => 'type', 'url' => add_query_arg('type', 'all'), - 'label' => __('Your Sites', 'wp-ultimo'), + 'label' => __('Your Sites', 'wp-multisite-waas'), 'count' => 0, ], ]; diff --git a/inc/managers/class-block-manager.php b/inc/managers/class-block-manager.php index f9abb7c..aa3fea3 100644 --- a/inc/managers/class-block-manager.php +++ b/inc/managers/class-block-manager.php @@ -56,7 +56,7 @@ class Block_Manager extends Base_Manager { [ [ 'slug' => 'wp-ultimo', - 'title' => __('Multisite WaaS', 'wp-ultimo'), + 'title' => __('Multisite WaaS', 'wp-multisite-waas'), ], ] ); diff --git a/inc/managers/class-broadcast-manager.php b/inc/managers/class-broadcast-manager.php index f84cbef..4db66ea 100644 --- a/inc/managers/class-broadcast-manager.php +++ b/inc/managers/class-broadcast-manager.php @@ -127,7 +127,7 @@ class Broadcast_Manager extends Base_Manager { $target_products = wu_request('target_products', ''); if ( ! $target_customers && ! $target_products) { - wp_send_json_error(new \WP_Error('error', __('No product or customer target was selected.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('error', __('No product or customer target was selected.', 'wp-multisite-waas'))); } $broadcast_type = wu_request('type', 'broadcast_notice'); @@ -248,7 +248,7 @@ class Broadcast_Manager extends Base_Manager { } } - $error = new \WP_Error('mail-error', __('Something wrong happened.', 'wp-ultimo')); + $error = new \WP_Error('mail-error', __('Something wrong happened.', 'wp-multisite-waas')); wp_send_json_error($error); } diff --git a/inc/managers/class-customer-manager.php b/inc/managers/class-customer-manager.php index 35791a0..0521fd7 100644 --- a/inc/managers/class-customer-manager.php +++ b/inc/managers/class-customer-manager.php @@ -62,7 +62,7 @@ class Customer_Manager extends Base_Manager { function () { Event_Manager::register_model_events( 'customer', - __('Customer', 'wp-ultimo'), + __('Customer', 'wp-multisite-waas'), ['created', 'updated'] ); } @@ -89,7 +89,7 @@ class Customer_Manager extends Base_Manager { public function handle_resend_verification_email(): void { if ( ! check_ajax_referer('wu_resend_verification_email_nonce', false, false)) { - wp_send_json_error(new \WP_Error('not-allowed', __('Error: you are not allowed to perform this action.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-allowed', __('Error: you are not allowed to perform this action.', 'wp-multisite-waas'))); exit; } @@ -97,7 +97,7 @@ class Customer_Manager extends Base_Manager { $customer = wu_get_current_customer(); if ( ! $customer) { - wp_send_json_error(new \WP_Error('customer-not-found', __('Error: customer not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('customer-not-found', __('Error: customer not found.', 'wp-multisite-waas'))); exit; } @@ -200,7 +200,7 @@ class Customer_Manager extends Base_Manager { wp_die( sprintf( /* translators: the placeholder is the login URL */ - __('You must be authenticated in order to verify your email address. Click here to access your account.', 'wp-ultimo'), + __('You must be authenticated in order to verify your email address. Click here to access your account.', 'wp-multisite-waas'), wp_login_url( add_query_arg( [ @@ -214,31 +214,31 @@ class Customer_Manager extends Base_Manager { } if ( ! $customer_to_verify) { - wp_die(__('Invalid verification key.', 'wp-ultimo')); + wp_die(__('Invalid verification key.', 'wp-multisite-waas')); } $current_customer = wu_get_current_customer(); if ( ! $current_customer) { - wp_die(__('Invalid verification key.', 'wp-ultimo')); + wp_die(__('Invalid verification key.', 'wp-multisite-waas')); } if ($current_customer->get_id() !== $customer_to_verify->get_id()) { - wp_die(__('Invalid verification key.', 'wp-ultimo')); + wp_die(__('Invalid verification key.', 'wp-multisite-waas')); } if ($customer_to_verify->get_email_verification() !== 'pending') { - wp_die(__('Invalid verification key.', 'wp-ultimo')); + wp_die(__('Invalid verification key.', 'wp-multisite-waas')); } $key = $customer_to_verify->get_verification_key(); if ( ! $key) { - wp_die(__('Invalid verification key.', 'wp-ultimo')); + wp_die(__('Invalid verification key.', 'wp-multisite-waas')); } if ($key !== $email_verify_key) { - wp_die(__('Invalid verification key.', 'wp-ultimo')); + wp_die(__('Invalid verification key.', 'wp-multisite-waas')); } /* diff --git a/inc/managers/class-domain-manager.php b/inc/managers/class-domain-manager.php index b9d0289..4add35e 100644 --- a/inc/managers/class-domain-manager.php +++ b/inc/managers/class-domain-manager.php @@ -255,8 +255,8 @@ class Domain_Manager extends Base_Manager { 'domain-mapping', 'domain_mapping_header', [ - 'title' => __('Domain Mapping Settings', 'wp-ultimo'), - 'desc' => __('Define the domain mapping settings for your network.', 'wp-ultimo'), + 'title' => __('Domain Mapping Settings', 'wp-multisite-waas'), + 'desc' => __('Define the domain mapping settings for your network.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -265,8 +265,8 @@ class Domain_Manager extends Base_Manager { 'domain-mapping', 'enable_domain_mapping', [ - 'title' => __('Enable Domain Mapping?', 'wp-ultimo'), - 'desc' => __('Do you want to enable domain mapping?', 'wp-ultimo'), + 'title' => __('Enable Domain Mapping?', 'wp-multisite-waas'), + 'desc' => __('Do you want to enable domain mapping?', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -276,16 +276,16 @@ class Domain_Manager extends Base_Manager { 'domain-mapping', 'force_admin_redirect', [ - 'title' => __('Force Admin Redirect', 'wp-ultimo'), - 'desc' => __('Select how you want your users to access the admin panel if they have mapped domains.', 'wp-ultimo') . '

' . __('Force Redirect to Mapped Domain: your users with mapped domains will be redirected to theirdomain.com/wp-admin, even if they access using yournetworkdomain.com/wp-admin.', 'wp-ultimo') . '

' . __('Force Redirect to Network Domain: your users with mapped domains will be redirect to yournetworkdomain.com/wp-admin, even if they access using theirdomain.com/wp-admin.', 'wp-ultimo'), + 'title' => __('Force Admin Redirect', 'wp-multisite-waas'), + 'desc' => __('Select how you want your users to access the admin panel if they have mapped domains.', 'wp-multisite-waas') . '

' . __('Force Redirect to Mapped Domain: your users with mapped domains will be redirected to theirdomain.com/wp-admin, even if they access using yournetworkdomain.com/wp-admin.', 'wp-multisite-waas') . '

' . __('Force Redirect to Network Domain: your users with mapped domains will be redirect to yournetworkdomain.com/wp-admin, even if they access using theirdomain.com/wp-admin.', 'wp-multisite-waas'), 'tooltip' => '', 'type' => 'select', 'default' => 'both', 'require' => ['enable_domain_mapping' => 1], 'options' => [ - 'both' => __('Allow access to the admin by both mapped domain and network domain', 'wp-ultimo'), - 'force_map' => __('Force Redirect to Mapped Domain', 'wp-ultimo'), - 'force_network' => __('Force Redirect to Network Domain', 'wp-ultimo'), + 'both' => __('Allow access to the admin by both mapped domain and network domain', 'wp-multisite-waas'), + 'force_map' => __('Force Redirect to Mapped Domain', 'wp-multisite-waas'), + 'force_network' => __('Force Redirect to Network Domain', 'wp-multisite-waas'), ], ] ); @@ -294,8 +294,8 @@ class Domain_Manager extends Base_Manager { 'domain-mapping', 'custom_domains', [ - 'title' => __('Enable Custom Domains?', 'wp-ultimo'), - 'desc' => __('Toggle this option if you wish to allow end-customers to add their own domains. This can be controlled on a plan per plan basis.', 'wp-ultimo'), + 'title' => __('Enable Custom Domains?', 'wp-multisite-waas'), + 'desc' => __('Toggle this option if you wish to allow end-customers to add their own domains. This can be controlled on a plan per plan basis.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, 'require' => [ @@ -308,9 +308,9 @@ class Domain_Manager extends Base_Manager { 'domain-mapping', 'domain_mapping_instructions', [ - 'title' => __('Add New Domain Instructions', 'wp-ultimo'), - 'tooltip' => __('Display a customized message with instructions for the mapping and alerting the end-user of the risks of mapping a misconfigured domain.', 'wp-ultimo'), - 'desc' => __('You can use the placeholder %NETWORK_DOMAIN% and %NETWORK_IP%.', 'wp-ultimo'), + 'title' => __('Add New Domain Instructions', 'wp-multisite-waas'), + 'tooltip' => __('Display a customized message with instructions for the mapping and alerting the end-user of the risks of mapping a misconfigured domain.', 'wp-multisite-waas'), + 'desc' => __('You can use the placeholder %NETWORK_DOMAIN% and %NETWORK_IP%.', 'wp-multisite-waas'), 'type' => 'textarea', 'default' => [$this, 'default_domain_mapping_instructions'], 'html_attr' => [ @@ -336,8 +336,8 @@ class Domain_Manager extends Base_Manager { 'sso', 'sso_header', [ - 'title' => __('Single Sign-On Settings', 'wp-ultimo'), - 'desc' => __('Settings to configure the Single Sign-On functionality of WP Multisite WaaS, responsible for keeping customers and admins logged in across all network domains.', 'wp-ultimo'), + 'title' => __('Single Sign-On Settings', 'wp-multisite-waas'), + 'desc' => __('Settings to configure the Single Sign-On functionality of WP Multisite WaaS, responsible for keeping customers and admins logged in across all network domains.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -346,8 +346,8 @@ class Domain_Manager extends Base_Manager { 'sso', 'enable_sso', [ - 'title' => __('Enable Single Sign-On', 'wp-ultimo'), - 'desc' => __('Enables the Single Sign-on functionality.', 'wp-ultimo'), + 'title' => __('Enable Single Sign-On', 'wp-multisite-waas'), + 'desc' => __('Enables the Single Sign-on functionality.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -357,8 +357,8 @@ class Domain_Manager extends Base_Manager { 'sso', 'restrict_sso_to_login_pages', [ - 'title' => __('Restrict SSO Checks to Login Pages', 'wp-ultimo'), - 'desc' => __('The Single Sign-on feature adds one extra ajax calls to every page load on sites with custom domains active to check if it should perform an auth loopback. You can restrict these extra calls to the login pages of sub-sites using this option. If enabled, SSO will only work on login pages.', 'wp-ultimo'), + 'title' => __('Restrict SSO Checks to Login Pages', 'wp-multisite-waas'), + 'desc' => __('The Single Sign-on feature adds one extra ajax calls to every page load on sites with custom domains active to check if it should perform an auth loopback. You can restrict these extra calls to the login pages of sub-sites using this option. If enabled, SSO will only work on login pages.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, 'require' => [ @@ -371,8 +371,8 @@ class Domain_Manager extends Base_Manager { 'sso', 'enable_sso_loading_overlay', [ - 'title' => __('Enable SSO Loading Overlay', 'wp-ultimo'), - 'desc' => __('When active, a loading overlay will be added on-top of the site currently being viewed while the SSO auth loopback is performed on the background.', 'wp-ultimo'), + 'title' => __('Enable SSO Loading Overlay', 'wp-multisite-waas'), + 'desc' => __('When active, a loading overlay will be added on-top of the site currently being viewed while the SSO auth loopback is performed on the background.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, 'require' => [ @@ -391,11 +391,11 @@ class Domain_Manager extends Base_Manager { $instructions = []; - $instructions[] = __("Cool! You're about to make this site accessible using your own domain name!", 'wp-ultimo'); + $instructions[] = __("Cool! You're about to make this site accessible using your own domain name!", 'wp-multisite-waas'); - $instructions[] = __("For that to work, you'll need to create a new CNAME record pointing to %NETWORK_DOMAIN% on your DNS manager.", 'wp-ultimo'); + $instructions[] = __("For that to work, you'll need to create a new CNAME record pointing to %NETWORK_DOMAIN% on your DNS manager.", 'wp-multisite-waas'); - $instructions[] = __('After you finish that step, come back to this screen and click the button below.', 'wp-ultimo'); + $instructions[] = __('After you finish that step, come back to this screen and click the button below.', 'wp-multisite-waas'); return implode(PHP_EOL . PHP_EOL, $instructions); } @@ -480,7 +480,7 @@ class Domain_Manager extends Base_Manager { $domain_url = $domain->get_domain(); // translators: %s is the domain name - wu_log_add("domain-{$domain_url}", sprintf(__('Starting Check for %s', 'wp-ultimo'), $domain_url)); + wu_log_add("domain-{$domain_url}", sprintf(__('Starting Check for %s', 'wp-multisite-waas'), $domain_url)); if ('checking-dns' === $stage) { if ($domain->has_correct_dns()) { @@ -490,7 +490,7 @@ class Domain_Manager extends Base_Manager { wu_log_add( "domain-{$domain_url}", - __('- DNS propagation finished, advancing domain to next step...', 'wp-ultimo') + __('- DNS propagation finished, advancing domain to next step...', 'wp-multisite-waas') ); wu_enqueue_async_action( @@ -517,7 +517,7 @@ class Domain_Manager extends Base_Manager { wu_log_add( "domain-{$domain_url}", // translators: %d is the number of minutes to try again. - sprintf(__('- DNS propagation checks tried for the max amount of times (5 times, one every %d minutes). Marking as failed.', 'wp-ultimo'), $try_again_time) + sprintf(__('- DNS propagation checks tried for the max amount of times (5 times, one every %d minutes). Marking as failed.', 'wp-multisite-waas'), $try_again_time) ); return; @@ -526,7 +526,7 @@ class Domain_Manager extends Base_Manager { wu_log_add( "domain-{$domain_url}", // translators: %d is the number of minutes before trying again. - sprintf(__('- DNS propagation not finished, retrying in %d minutes...', 'wp-ultimo'), $try_again_time) + sprintf(__('- DNS propagation not finished, retrying in %d minutes...', 'wp-multisite-waas'), $try_again_time) ); wu_schedule_single_action( @@ -551,7 +551,7 @@ class Domain_Manager extends Base_Manager { wu_log_add( "domain-{$domain_url}", - __('- Valid SSL cert found. Marking domain as done.', 'wp-ultimo') + __('- Valid SSL cert found. Marking domain as done.', 'wp-multisite-waas') ); return; @@ -567,7 +567,7 @@ class Domain_Manager extends Base_Manager { wu_log_add( "domain-{$domain_url}", // translators: %d is the number of minutes to try again. - sprintf(__('- SSL checks tried for the max amount of times (5 times, one every %d minutes). Marking as ready without SSL.', 'wp-ultimo'), $try_again_time) + sprintf(__('- SSL checks tried for the max amount of times (5 times, one every %d minutes). Marking as ready without SSL.', 'wp-multisite-waas'), $try_again_time) ); return; @@ -576,7 +576,7 @@ class Domain_Manager extends Base_Manager { wu_log_add( "domain-{$domain_url}", // translators: %d is the number of minutes before trying again. - sprintf(__('- SSL Cert not found, retrying in %d minute(s)...', 'wp-ultimo'), $try_again_time) + sprintf(__('- SSL Cert not found, retrying in %d minute(s)...', 'wp-multisite-waas'), $try_again_time) ); wu_schedule_single_action( @@ -665,7 +665,7 @@ class Domain_Manager extends Base_Manager { $domain = wu_request('domain'); if ( ! $domain) { - wp_send_json_error(new \WP_Error('domain-missing', __('A valid domain was not passed.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('domain-missing', __('A valid domain was not passed.', 'wp-multisite-waas'))); } $auth_ns = []; @@ -678,7 +678,7 @@ class Domain_Manager extends Base_Manager { wp_send_json_error( new \WP_Error( 'error', - __('Not able to fetch DNS entries.', 'wp-ultimo'), + __('Not able to fetch DNS entries.', 'wp-multisite-waas'), [ 'exception' => $e->getMessage(), ] @@ -687,7 +687,7 @@ class Domain_Manager extends Base_Manager { } if (false === $result) { - wp_send_json_error(new \WP_Error('error', __('Not able to fetch DNS entries.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('error', __('Not able to fetch DNS entries.', 'wp-multisite-waas'))); } wp_send_json_success( @@ -738,7 +738,7 @@ class Domain_Manager extends Base_Manager { if ( ! $integration) { wp_send_json_error( [ - 'message' => __('Invalid Integration ID', 'wp-ultimo'), + 'message' => __('Invalid Integration ID', 'wp-multisite-waas'), ] ); } @@ -750,7 +750,7 @@ class Domain_Manager extends Base_Manager { wp_send_json_error( [ 'message' => sprintf( - __('The necessary constants were not found on your wp-config.php file: %s', 'wp-ultimo'), + __('The necessary constants were not found on your wp-config.php file: %s', 'wp-multisite-waas'), implode(', ', $integration->get_missing_constants()) ), ] diff --git a/inc/managers/class-email-manager.php b/inc/managers/class-email-manager.php index 1e88c6c..4ee9f5f 100644 --- a/inc/managers/class-email-manager.php +++ b/inc/managers/class-email-manager.php @@ -133,7 +133,7 @@ class Email_Manager extends Base_Manager { $to = $email->get_target_list($payload); if (empty($to)) { - wu_log_add('mailer', __('No targets found.', 'wp-ultimo')); + wu_log_add('mailer', __('No targets found.', 'wp-multisite-waas')); return; } @@ -218,8 +218,8 @@ class Email_Manager extends Base_Manager { 'emails', 'sender_header', [ - 'title' => __('Sender Settings', 'wp-ultimo'), - 'desc' => __('Change the settings of the email headers, like from and name.', 'wp-ultimo'), + 'title' => __('Sender Settings', 'wp-multisite-waas'), + 'desc' => __('Change the settings of the email headers, like from and name.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -228,8 +228,8 @@ class Email_Manager extends Base_Manager { 'emails', 'from_name', [ - 'title' => __('"From" Name', 'wp-ultimo'), - 'desc' => __('How the sender name will appear in emails sent by WP Multisite WaaS.', 'wp-ultimo'), + 'title' => __('"From" Name', 'wp-multisite-waas'), + 'desc' => __('How the sender name will appear in emails sent by WP Multisite WaaS.', 'wp-multisite-waas'), 'type' => 'text', 'placeholder' => get_network_option(null, 'site_name'), 'default' => get_network_option(null, 'site_name'), @@ -243,8 +243,8 @@ class Email_Manager extends Base_Manager { 'emails', 'from_email', [ - 'title' => __('"From" E-mail', 'wp-ultimo'), - 'desc' => __('How the sender email will appear in emails sent by WP Multisite WaaS.', 'wp-ultimo'), + 'title' => __('"From" E-mail', 'wp-multisite-waas'), + 'desc' => __('How the sender email will appear in emails sent by WP Multisite WaaS.', 'wp-multisite-waas'), 'type' => 'email', 'placeholder' => get_network_option(null, 'admin_email'), 'default' => get_network_option(null, 'admin_email'), @@ -258,8 +258,8 @@ class Email_Manager extends Base_Manager { 'emails', 'template_header', [ - 'title' => __('Template Settings', 'wp-ultimo'), - 'desc' => __('Change the settings of the email templates.', 'wp-ultimo'), + 'title' => __('Template Settings', 'wp-multisite-waas'), + 'desc' => __('Change the settings of the email templates.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -268,13 +268,13 @@ class Email_Manager extends Base_Manager { 'emails', 'email_template_type', [ - 'title' => __('Email Templates Style', 'wp-ultimo'), - 'desc' => __('Choose if email body will be sent using the HTML template or in plain text.', 'wp-ultimo'), + 'title' => __('Email Templates Style', 'wp-multisite-waas'), + 'desc' => __('Choose if email body will be sent using the HTML template or in plain text.', 'wp-multisite-waas'), 'type' => 'select', 'default' => 'html', 'options' => [ - 'html' => __('HTML Emails', 'wp-ultimo'), - 'plain' => __('Plain Emails', 'wp-ultimo'), + 'html' => __('HTML Emails', 'wp-multisite-waas'), + 'plain' => __('Plain Emails', 'wp-multisite-waas'), ], 'html_attr' => [ 'v-model' => 'emails_template', @@ -286,8 +286,8 @@ class Email_Manager extends Base_Manager { 'emails', 'expiring_header', [ - 'title' => __('Expiring Notification Settings', 'wp-ultimo'), - 'desc' => __('Change the settings for the expiring notification (trials and subscriptions) emails.', 'wp-ultimo'), + 'title' => __('Expiring Notification Settings', 'wp-multisite-waas'), + 'desc' => __('Change the settings for the expiring notification (trials and subscriptions) emails.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -296,10 +296,10 @@ class Email_Manager extends Base_Manager { 'emails', 'expiring_days', [ - 'title' => __('Days to Expire', 'wp-ultimo'), - 'desc' => __('Select when we should send the notification email. If you select 3 days, for example, a notification email will be sent to every membership (or trial period) expiring in the next 3 days. Memberships are checked hourly.', 'wp-ultimo'), + 'title' => __('Days to Expire', 'wp-multisite-waas'), + 'desc' => __('Select when we should send the notification email. If you select 3 days, for example, a notification email will be sent to every membership (or trial period) expiring in the next 3 days. Memberships are checked hourly.', 'wp-multisite-waas'), 'type' => 'number', - 'placeholder' => __('e.g. 3', 'wp-ultimo'), + 'placeholder' => __('e.g. 3', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'expiring_days', ], @@ -391,7 +391,7 @@ class Email_Manager extends Base_Manager { 'event' => 'payment_received', 'slug' => 'payment_received_admin', 'target' => 'admin', - 'title' => __('You got a new payment!', 'wp-ultimo'), + 'title' => __('You got a new payment!', 'wp-multisite-waas'), 'content' => wu_get_template_contents('emails/admin/payment-received'), ] ); @@ -404,7 +404,7 @@ class Email_Manager extends Base_Manager { 'event' => 'payment_received', 'slug' => 'payment_received_customer', 'target' => 'customer', - 'title' => __('We got your payment!', 'wp-ultimo'), + 'title' => __('We got your payment!', 'wp-multisite-waas'), 'content' => wu_get_template_contents('emails/customer/payment-received'), ] ); @@ -417,7 +417,7 @@ class Email_Manager extends Base_Manager { 'event' => 'site_published', 'target' => 'admin', 'slug' => 'site_published_admin', - 'title' => __('A new site was created on your Network!', 'wp-ultimo'), + 'title' => __('A new site was created on your Network!', 'wp-multisite-waas'), 'content' => wu_get_template_contents('emails/admin/site-published'), ] ); @@ -430,7 +430,7 @@ class Email_Manager extends Base_Manager { 'event' => 'site_published', 'target' => 'customer', 'slug' => 'site_published_customer', - 'title' => __('Your site is ready!', 'wp-ultimo'), + 'title' => __('Your site is ready!', 'wp-multisite-waas'), 'content' => wu_get_template_contents('emails/customer/site-published'), ] ); @@ -443,7 +443,7 @@ class Email_Manager extends Base_Manager { 'event' => 'confirm_email_address', 'target' => 'customer', 'slug' => 'confirm_email_address', - 'title' => __('Confirm your email address!', 'wp-ultimo'), + 'title' => __('Confirm your email address!', 'wp-multisite-waas'), 'content' => wu_get_template_contents('emails/customer/confirm-email-address'), ] ); @@ -456,7 +456,7 @@ class Email_Manager extends Base_Manager { 'event' => 'domain_created', 'target' => 'admin', 'slug' => 'domain_created_admin', - 'title' => __('A new domain was added to your Network!', 'wp-ultimo'), + 'title' => __('A new domain was added to your Network!', 'wp-multisite-waas'), 'content' => wu_get_template_contents('emails/admin/domain-created'), ] ); @@ -469,7 +469,7 @@ class Email_Manager extends Base_Manager { 'event' => 'renewal_payment_created', 'target' => 'customer', 'slug' => 'renewal_payment_created', - 'title' => __('You have a new pending payment!', 'wp-ultimo'), + 'title' => __('You have a new pending payment!', 'wp-multisite-waas'), 'content' => wu_get_template_contents('emails/customer/renewal-payment-created'), ] ); diff --git a/inc/managers/class-event-manager.php b/inc/managers/class-event-manager.php index 3a01ce9..2e14a9c 100644 --- a/inc/managers/class-event-manager.php +++ b/inc/managers/class-event-manager.php @@ -191,19 +191,19 @@ class Event_Manager extends Base_Manager { public function event_payload_preview(): void { if ( ! wu_request('event')) { - wp_send_json_error(new \WP_Error('error', __('No event was selected.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('error', __('No event was selected.', 'wp-multisite-waas'))); } $slug = wu_request('event'); if ( ! $slug) { - wp_send_json_error(new \WP_Error('not-found', __('Event was not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('Event was not found.', 'wp-multisite-waas'))); } $event = wu_get_event_type($slug); if ( ! $event) { - wp_send_json_error(new \WP_Error('not-found', __('Data not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('Data not found.', 'wp-multisite-waas'))); } else { $payload = isset($event['payload']) ? wu_maybe_lazy_load_payload($event['payload']) : '{}'; @@ -367,8 +367,8 @@ class Event_Manager extends Base_Manager { wu_register_event_type( 'payment_received', [ - 'name' => __('Payment Received', 'wp-ultimo'), - 'desc' => __('This event is fired every time a new payment is received, regardless of the payment status.', 'wp-ultimo'), + 'name' => __('Payment Received', 'wp-multisite-waas'), + 'desc' => __('This event is fired every time a new payment is received, regardless of the payment status.', 'wp-multisite-waas'), 'payload' => fn() => array_merge( wu_generate_event_payload('payment'), wu_generate_event_payload('membership'), @@ -390,8 +390,8 @@ class Event_Manager extends Base_Manager { wu_register_event_type( 'site_published', [ - 'name' => __('Site Published', 'wp-ultimo'), - 'desc' => __('This event is fired every time a new site is created tied to a membership, or transitions from a pending state to a published state.', 'wp-ultimo'), + 'name' => __('Site Published', 'wp-multisite-waas'), + 'desc' => __('This event is fired every time a new site is created tied to a membership, or transitions from a pending state to a published state.', 'wp-multisite-waas'), 'payload' => fn() => array_merge( wu_generate_event_payload('site'), wu_generate_event_payload('customer'), @@ -407,8 +407,8 @@ class Event_Manager extends Base_Manager { wu_register_event_type( 'confirm_email_address', [ - 'name' => __('Email Verification Needed', 'wp-ultimo'), - 'desc' => __('This event is fired every time a new customer is added with an email verification status of pending.', 'wp-ultimo'), + 'name' => __('Email Verification Needed', 'wp-multisite-waas'), + 'desc' => __('This event is fired every time a new customer is added with an email verification status of pending.', 'wp-multisite-waas'), 'payload' => fn() => array_merge( [ 'verification_link' => 'https://linktoverifyemail.com', @@ -425,8 +425,8 @@ class Event_Manager extends Base_Manager { wu_register_event_type( 'domain_created', [ - 'name' => __('New Domain Mapping Added', 'wp-ultimo'), - 'desc' => __('This event is fired every time a new domain mapping is added by a customer.', 'wp-ultimo'), + 'name' => __('New Domain Mapping Added', 'wp-multisite-waas'), + 'desc' => __('This event is fired every time a new domain mapping is added by a customer.', 'wp-multisite-waas'), 'payload' => fn() => array_merge( wu_generate_event_payload('domain'), wu_generate_event_payload('site'), @@ -449,8 +449,8 @@ class Event_Manager extends Base_Manager { wu_register_event_type( 'renewal_payment_created', [ - 'name' => __('New Renewal Payment Created', 'wp-ultimo'), - 'desc' => __('This event is fired every time a new renewal payment is created by WP Multisite WaaS.', 'wp-ultimo'), + 'name' => __('New Renewal Payment Created', 'wp-multisite-waas'), + 'desc' => __('This event is fired every time a new renewal payment is created by WP Multisite WaaS.', 'wp-multisite-waas'), 'payload' => fn() => array_merge( [ 'default_payment_url' => 'https://linktopayment.com', @@ -470,8 +470,8 @@ class Event_Manager extends Base_Manager { wu_register_event_type( $model . '_' . $type, [ - 'name' => sprintf(__('%1$s %2$s', 'wp-ultimo'), $params['label'], ucfirst($type)), - 'desc' => sprintf(__('This event is fired every time a %1$s is %2$s by WP Multisite WaaS.', 'wp-ultimo'), $params['label'], $type), + 'name' => sprintf(__('%1$s %2$s', 'wp-multisite-waas'), $params['label'], ucfirst($type)), + 'desc' => sprintf(__('This event is fired every time a %1$s is %2$s by WP Multisite WaaS.', 'wp-multisite-waas'), $params['label'], $type), 'deprecated_args' => [], 'payload' => fn() => $this->get_model_payload($model), ] @@ -621,7 +621,7 @@ class Event_Manager extends Base_Manager { } } - wu_log_add('wu-cron', sprintf(__('Removed %1$d events successfully. Failed to remove %2$d events.', 'wp-ultimo'), $success_count, count($events_to_remove) - $success_count)); + wu_log_add('wu-cron', sprintf(__('Removed %1$d events successfully. Failed to remove %2$d events.', 'wp-multisite-waas'), $success_count, count($events_to_remove) - $success_count)); return true; } diff --git a/inc/managers/class-field-templates-manager.php b/inc/managers/class-field-templates-manager.php index 0895c5f..cbf9012 100644 --- a/inc/managers/class-field-templates-manager.php +++ b/inc/managers/class-field-templates-manager.php @@ -61,7 +61,7 @@ class Field_Templates_Manager extends Base_Manager { $template_class = $this->get_template_class($template_parts[0], $template_parts[1]); if ( ! $template_class) { - wp_send_json_error(new \WP_Error('template', __('Template not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('template', __('Template not found.', 'wp-multisite-waas'))); } $key = $template_parts[0]; diff --git a/inc/managers/class-form-manager.php b/inc/managers/class-form-manager.php index 400cca7..019605e 100644 --- a/inc/managers/class-form-manager.php +++ b/inc/managers/class-form-manager.php @@ -64,7 +64,7 @@ class Form_Manager extends Base_Manager { */ public function display_form_unavailable($error = false): void { - $message = __('Form not available', 'wp-ultimo'); + $message = __('Form not available', 'wp-multisite-waas'); if (is_wp_error($error)) { $message = $error->get_error_message(); @@ -352,7 +352,7 @@ class Form_Manager extends Base_Manager { $object = apply_filters("wu_delete_form_get_object_{$model}", $object, $id, $model); if ( ! $object) { - $this->display_form_unavailable(new \WP_Error('not-found', __('Object not found.', 'wp-ultimo'))); + $this->display_form_unavailable(new \WP_Error('not-found', __('Object not found.', 'wp-multisite-waas'))); return; } @@ -362,16 +362,16 @@ class Form_Manager extends Base_Manager { [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Deletion', 'wp-ultimo'), - 'desc' => __('This action can not be undone.', 'wp-ultimo'), + 'title' => __('Confirm Deletion', 'wp-multisite-waas'), + 'desc' => __('This action can not be undone.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Delete', 'wp-ultimo'), - 'placeholder' => __('Delete', 'wp-ultimo'), + 'title' => __('Delete', 'wp-multisite-waas'), + 'placeholder' => __('Delete', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -471,7 +471,7 @@ class Form_Manager extends Base_Manager { $object = apply_filters("wu_delete_form_get_object_{$model}", $object, $id, $model); if ( ! $object) { - wp_send_json_error(new \WP_Error('not-found', __('Object not found.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('Object not found.', 'wp-multisite-waas'))); } /* @@ -496,7 +496,7 @@ class Form_Manager extends Base_Manager { wp_send_json_success($data_json_success); } else { - wp_send_json_error(new \WP_Error('model-not-found', __('Something went wrong.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('model-not-found', __('Something went wrong.', 'wp-multisite-waas'))); } } @@ -517,8 +517,8 @@ class Form_Manager extends Base_Manager { [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Action', 'wp-ultimo'), - 'desc' => __('Review this action carefully.', 'wp-ultimo'), + 'title' => __('Confirm Action', 'wp-multisite-waas'), + 'desc' => __('Review this action carefully.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], diff --git a/inc/managers/class-gateway-manager.php b/inc/managers/class-gateway-manager.php index 58803ff..1bfc221 100644 --- a/inc/managers/class-gateway-manager.php +++ b/inc/managers/class-gateway-manager.php @@ -278,11 +278,11 @@ class Gateway_Manager extends Base_Manager { $gateway = wu_get_gateway($gateway_id); if ( ! $gateway) { - $error = new \WP_Error('missing_gateway', esc_html__('Missing gateway parameter.', 'wp-ultimo')); + $error = new \WP_Error('missing_gateway', esc_html__('Missing gateway parameter.', 'wp-multisite-waas')); wp_die( $error, - esc_html__('Error', 'wp-ultimo'), + esc_html__('Error', 'wp-multisite-waas'), [ 'back_link' => true, 'response' => '200', @@ -311,7 +311,7 @@ class Gateway_Manager extends Base_Manager { if (is_wp_error($results)) { wp_die( $results, - __('Error', 'wp-ultimo'), + __('Error', 'wp-multisite-waas'), [ 'back_link' => true, 'response' => '200', @@ -323,7 +323,7 @@ class Gateway_Manager extends Base_Manager { wp_die( $error, - __('Error', 'wp-ultimo'), + __('Error', 'wp-multisite-waas'), [ 'back_link' => true, 'response' => '200', @@ -354,8 +354,8 @@ class Gateway_Manager extends Base_Manager { 'payment-gateways', 'active_gateways', [ - 'title' => __('Active Payment Gateways', 'wp-ultimo'), - 'desc' => __('Payment gateways are what your customers will use to pay.', 'wp-ultimo'), + 'title' => __('Active Payment Gateways', 'wp-multisite-waas'), + 'desc' => __('Payment gateways are what your customers will use to pay.', 'wp-multisite-waas'), 'type' => 'multiselect', 'columns' => 2, 'options' => [$this, 'get_gateways_as_options'], @@ -393,31 +393,31 @@ class Gateway_Manager extends Base_Manager { /* * Free Payments */ - wu_register_gateway('free', __('Free', 'wp-ultimo'), '', Free_Gateway::class, true); + wu_register_gateway('free', __('Free', 'wp-multisite-waas'), '', Free_Gateway::class, true); /* * Stripe Payments */ - $stripe_desc = __('Stripe is a suite of payment APIs that powers commerce for businesses of all sizes, including subscription management.', 'wp-ultimo'); - wu_register_gateway('stripe', __('Stripe', 'wp-ultimo'), $stripe_desc, Stripe_Gateway::class); + $stripe_desc = __('Stripe is a suite of payment APIs that powers commerce for businesses of all sizes, including subscription management.', 'wp-multisite-waas'); + wu_register_gateway('stripe', __('Stripe', 'wp-multisite-waas'), $stripe_desc, Stripe_Gateway::class); /* * Stripe Checkout Payments */ - $stripe_checkout_desc = __('Stripe Checkout is the hosted solution for checkouts using Stripe.', 'wp-ultimo'); - wu_register_gateway('stripe-checkout', __('Stripe Checkout', 'wp-ultimo'), $stripe_checkout_desc, Stripe_Checkout_Gateway::class); + $stripe_checkout_desc = __('Stripe Checkout is the hosted solution for checkouts using Stripe.', 'wp-multisite-waas'); + wu_register_gateway('stripe-checkout', __('Stripe Checkout', 'wp-multisite-waas'), $stripe_checkout_desc, Stripe_Checkout_Gateway::class); /* * PayPal Payments */ - $paypal_desc = __('PayPal is the leading provider in checkout solutions and it is the easier way to get your network subscriptions going.', 'wp-ultimo'); - wu_register_gateway('paypal', __('PayPal', 'wp-ultimo'), $paypal_desc, PayPal_Gateway::class); + $paypal_desc = __('PayPal is the leading provider in checkout solutions and it is the easier way to get your network subscriptions going.', 'wp-multisite-waas'); + wu_register_gateway('paypal', __('PayPal', 'wp-multisite-waas'), $paypal_desc, PayPal_Gateway::class); /* * Manual Payments */ - $manual_desc = __('Use the Manual Gateway to allow users to pay you directly via bank transfers, checks, or other channels.', 'wp-ultimo'); - wu_register_gateway('manual', __('Manual', 'wp-ultimo'), $manual_desc, Manual_Gateway::class); + $manual_desc = __('Use the Manual Gateway to allow users to pay you directly via bank transfers, checks, or other channels.', 'wp-multisite-waas'); + wu_register_gateway('manual', __('Manual', 'wp-multisite-waas'), $manual_desc, Manual_Gateway::class); } /** diff --git a/inc/managers/class-limitation-manager.php b/inc/managers/class-limitation-manager.php index 8cf6579..213fd07 100644 --- a/inc/managers/class-limitation-manager.php +++ b/inc/managers/class-limitation-manager.php @@ -138,15 +138,15 @@ class Limitation_Manager { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Reset', 'wp-ultimo'), - 'desc' => __('This action can not be undone.', 'wp-ultimo'), + 'title' => __('Confirm Reset', 'wp-multisite-waas'), + 'desc' => __('This action can not be undone.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Reset Limitations', 'wp-ultimo'), + 'title' => __('Reset Limitations', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -165,7 +165,7 @@ class Limitation_Manager { ]; $form_attributes = [ - 'title' => __('Reset', 'wp-ultimo'), + 'title' => __('Reset', 'wp-multisite-waas'), 'views' => 'admin-pages/fields', 'classes' => 'wu-modal-form wu-widget-list wu-striped wu-m-0 wu-mt-0', 'field_wrapper_classes' => 'wu-w-full wu-box-border wu-items-center wu-flex wu-justify-between wu-p-4 wu-m-0 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300 wu-border-solid', @@ -200,7 +200,7 @@ class Limitation_Manager { wp_send_json_error( new \WP_Error( 'parameters-not-found', - __('Required parameters are missing.', 'wp-ultimo') + __('Required parameters are missing.', 'wp-multisite-waas') ) ); } @@ -258,11 +258,11 @@ class Limitation_Manager { public function add_limitation_sections($sections, $object) { if ($this->get_object_type($object) === 'site' && $object->get_type() !== Site_Type::CUSTOMER_OWNED) { - $html = sprintf('%s', __('Limitations are only available for customer-owned sites. You need to change the type to Customer-owned and save this site before the options are shown.', 'wp-ultimo')); + $html = sprintf('%s', __('Limitations are only available for customer-owned sites. You need to change the type to Customer-owned and save this site before the options are shown.', 'wp-multisite-waas')); $sections['sites'] = [ - 'title' => __('Limits', 'wp-ultimo'), - 'desc' => __('Only customer-owned sites have limitations.', 'wp-ultimo'), + 'title' => __('Limits', 'wp-multisite-waas'), + 'desc' => __('Only customer-owned sites have limitations.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-browser', 'fields' => [ 'note' => [ @@ -277,8 +277,8 @@ class Limitation_Manager { if ($this->get_object_type($object) !== 'site') { $sections['sites'] = [ - 'title' => __('Sites', 'wp-ultimo'), - 'desc' => __('Control limitations imposed to the number of sites allowed for memberships attached to this product.', 'wp-ultimo'), + 'title' => __('Sites', 'wp-multisite-waas'), + 'desc' => __('Control limitations imposed to the number of sites allowed for memberships attached to this product.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-browser', 'fields' => $this->get_sites_fields($object), 'v-show' => "get_state_value('product_type', 'none') !== 'service'", @@ -293,8 +293,8 @@ class Limitation_Manager { */ if ((bool) wu_get_setting('enable_visits_limiting', true)) { $sections['visits'] = [ - 'title' => __('Visits', 'wp-ultimo'), - 'desc' => __('Control limitations imposed to the number of unique visitors allowed for memberships attached to this product.', 'wp-ultimo'), + 'title' => __('Visits', 'wp-multisite-waas'), + 'desc' => __('Control limitations imposed to the number of unique visitors allowed for memberships attached to this product.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-man', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'state' => [ @@ -303,8 +303,8 @@ class Limitation_Manager { 'fields' => [ 'modules[visits][enabled]' => [ 'type' => 'toggle', - 'title' => __('Limit Unique Visits', 'wp-ultimo'), - 'desc' => __('Toggle this option to enable unique visits limitation.', 'wp-ultimo'), + 'title' => __('Limit Unique Visits', 'wp-multisite-waas'), + 'desc' => __('Toggle this option to enable unique visits limitation.', 'wp-multisite-waas'), 'value' => 10, 'html_attr' => [ 'v-model' => 'limit_visits', @@ -319,9 +319,9 @@ class Limitation_Manager { $sections['visits']['fields']['modules[visits][limit]'] = [ 'type' => 'number', - 'title' => __('Unique Visits Quota', 'wp-ultimo'), - 'desc' => __('Set a top limit for the number of monthly unique visits. Leave empty or 0 to allow for unlimited visits.', 'wp-ultimo'), - 'placeholder' => __('e.g. 10000', 'wp-ultimo'), + 'title' => __('Unique Visits Quota', 'wp-multisite-waas'), + 'desc' => __('Set a top limit for the number of monthly unique visits. Leave empty or 0 to allow for unlimited visits.', 'wp-multisite-waas'), + 'placeholder' => __('e.g. 10000', 'wp-multisite-waas'), 'value' => $object->get_limitations()->visits->get_limit(), 'wrapper_html_attr' => [ 'v-show' => 'limit_visits', @@ -343,8 +343,8 @@ class Limitation_Manager { if ($this->get_object_type($object) === 'site') { $sections['visits']['fields']['visits_count'] = [ 'type' => 'text-display', - 'title' => __('Current Unique Visits Count this Month', 'wp-ultimo'), - 'desc' => __('Current visits count for this particular site.', 'wp-ultimo'), + 'title' => __('Current Unique Visits Count this Month', 'wp-multisite-waas'), + 'desc' => __('Current visits count for this particular site.', 'wp-multisite-waas'), 'display_value' => sprintf('%s visit(s)', $object->get_visits_count()), 'wrapper_html_attr' => [ 'v-show' => 'limit_visits', @@ -355,8 +355,8 @@ class Limitation_Manager { } $sections['users'] = [ - 'title' => __('Users', 'wp-ultimo'), - 'desc' => __('Control limitations imposed to the number of user allowed for memberships attached to this product.', 'wp-ultimo'), + 'title' => __('Users', 'wp-multisite-waas'), + 'desc' => __('Control limitations imposed to the number of user allowed for memberships attached to this product.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-users', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'state' => [ @@ -365,8 +365,8 @@ class Limitation_Manager { 'fields' => [ 'modules[users][enabled]' => [ 'type' => 'toggle', - 'title' => __('Limit User', 'wp-ultimo'), - 'desc' => __('Enable user limitations for this product.', 'wp-ultimo'), + 'title' => __('Limit User', 'wp-multisite-waas'), + 'desc' => __('Enable user limitations for this product.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'limit_users', ], @@ -381,8 +381,8 @@ class Limitation_Manager { $this->register_user_fields($sections, $object); $sections['post_types'] = [ - 'title' => __('Post Types', 'wp-ultimo'), - 'desc' => __('Control limitations imposed to the number of posts allowed for memberships attached to this product.', 'wp-ultimo'), + 'title' => __('Post Types', 'wp-multisite-waas'), + 'desc' => __('Control limitations imposed to the number of posts allowed for memberships attached to this product.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-book', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'state' => [ @@ -391,8 +391,8 @@ class Limitation_Manager { 'fields' => [ 'modules[post_types][enabled]' => [ 'type' => 'toggle', - 'title' => __('Limit Post Types', 'wp-ultimo'), - 'desc' => __('Toggle this option to set limits to each post type.', 'wp-ultimo'), + 'title' => __('Limit Post Types', 'wp-multisite-waas'), + 'desc' => __('Toggle this option to set limits to each post type.', 'wp-multisite-waas'), 'value' => false, 'html_attr' => [ 'v-model' => 'limit_post_types', @@ -407,7 +407,7 @@ class Limitation_Manager { $sections['post_types']['post_quota_note'] = [ 'type' => 'note', - 'desc' => __('Note: Using the fields below you can set a post limit for each of the post types activated.
Toggle the switch to deactivate the post type altogether. Leave 0 or blank for unlimited posts.', 'wp-ultimo'), + 'desc' => __('Note: Using the fields below you can set a post limit for each of the post types activated.
Toggle the switch to deactivate the post type altogether. Leave 0 or blank for unlimited posts.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => 'limit_post_types', 'v-cloak' => '1', @@ -417,8 +417,8 @@ class Limitation_Manager { $this->register_post_type_fields($sections, $object); $sections['limit_disk_space'] = [ - 'title' => __('Disk Space', 'wp-ultimo'), - 'desc' => __('Control limitations imposed to the disk space allowed for memberships attached to this entity.', 'wp-ultimo'), + 'title' => __('Disk Space', 'wp-multisite-waas'), + 'desc' => __('Control limitations imposed to the disk space allowed for memberships attached to this entity.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-drive', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'state' => [ @@ -427,8 +427,8 @@ class Limitation_Manager { 'fields' => [ 'modules[disk_space][enabled]' => [ 'type' => 'toggle', - 'title' => __('Limit Disk Space per Site', 'wp-ultimo'), - 'desc' => __('Enable disk space limitations for this entity.', 'wp-ultimo'), + 'title' => __('Limit Disk Space per Site', 'wp-multisite-waas'), + 'desc' => __('Enable disk space limitations for this entity.', 'wp-multisite-waas'), 'value' => true, 'html_attr' => [ 'v-model' => 'limit_disk_space', @@ -443,8 +443,8 @@ class Limitation_Manager { $sections['limit_disk_space']['fields']['modules[disk_space][limit]'] = [ 'type' => 'number', - 'title' => __('Disk Space Allowance', 'wp-ultimo'), - 'desc' => __('Set a limit in MBs for the disk space for each individual site.', 'wp-ultimo'), + 'title' => __('Disk Space Allowance', 'wp-multisite-waas'), + 'desc' => __('Set a limit in MBs for the disk space for each individual site.', 'wp-multisite-waas'), 'min' => 0, 'placeholder' => 100, 'value' => $object->get_limitations()->disk_space->get_limit(), @@ -459,8 +459,8 @@ class Limitation_Manager { } $sections['custom_domain'] = [ - 'title' => __('Custom Domains', 'wp-ultimo'), - 'desc' => __('Limit the number of users on each role, posts, pages, and more.', 'wp-ultimo'), + 'title' => __('Custom Domains', 'wp-multisite-waas'), + 'desc' => __('Limit the number of users on each role, posts, pages, and more.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-link1', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'state' => [ @@ -469,8 +469,8 @@ class Limitation_Manager { 'fields' => [ 'modules[domain_mapping][enabled]' => [ 'type' => 'toggle', - 'title' => __('Allow Custom Domains', 'wp-ultimo'), - 'desc' => __('Toggle this option on to allow this plan to enable custom domains for sign-ups on this plan.', 'wp-ultimo'), + 'title' => __('Allow Custom Domains', 'wp-multisite-waas'), + 'desc' => __('Toggle this option on to allow this plan to enable custom domains for sign-ups on this plan.', 'wp-multisite-waas'), 'value' => $object->get_limitations()->domain_mapping->is_enabled(), 'wrapper_html_attr' => [ 'v-cloak' => '1', @@ -487,8 +487,8 @@ class Limitation_Manager { } $sections['allowed_themes'] = [ - 'title' => __('Themes', 'wp-ultimo'), - 'desc' => __('Limit the number of users on each role, posts, pages, and more.', 'wp-ultimo'), + 'title' => __('Themes', 'wp-multisite-waas'), + 'desc' => __('Limit the number of users on each role, posts, pages, and more.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-palette', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'state' => [ @@ -497,23 +497,23 @@ class Limitation_Manager { 'fields' => [ 'themes' => [ 'type' => 'html', - 'title' => __('Themes', 'wp-ultimo'), - 'desc' => __('Select how the themes installed on the network should behave.', 'wp-ultimo'), + 'title' => __('Themes', 'wp-multisite-waas'), + 'desc' => __('Select how the themes installed on the network should behave.', 'wp-multisite-waas'), 'content' => fn() => $this->get_theme_selection_list($object, $sections['allowed_themes']), ], ], ]; $sections['allowed_plugins'] = [ - 'title' => __('Plugins', 'wp-ultimo'), - 'desc' => __('You can choose the behavior of each plugin installed on the platform.', 'wp-ultimo'), + 'title' => __('Plugins', 'wp-multisite-waas'), + 'desc' => __('You can choose the behavior of each plugin installed on the platform.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-power-plug', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'fields' => [ 'plugins' => [ 'type' => 'html', - 'title' => __('Plugins', 'wp-ultimo'), - 'desc' => __('Select how the plugins installed on the network should behave.', 'wp-ultimo'), + 'title' => __('Plugins', 'wp-multisite-waas'), + 'desc' => __('Select how the plugins installed on the network should behave.', 'wp-multisite-waas'), 'content' => fn() => $this->get_plugin_selection_list($object), ], ], @@ -528,14 +528,14 @@ class Limitation_Manager { ); $sections['reset_limitations'] = [ - 'title' => __('Reset Limitations', 'wp-ultimo'), - 'desc' => __('Reset the limitations applied to this element.', 'wp-ultimo'), + 'title' => __('Reset Limitations', 'wp-multisite-waas'), + 'desc' => __('Reset the limitations applied to this element.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-back-in-time', 'fields' => [ 'reset_permissions' => [ 'type' => 'note', - 'title' => sprintf("%s%s", __('Reset Limitations', 'wp-ultimo'), __('Use this option to reset the custom limitations applied to this object.', 'wp-ultimo')), - 'desc' => sprintf('%s', $reset_url, __('Reset Limitations', 'wp-ultimo'), __('Reset Limitations', 'wp-ultimo')), + 'title' => sprintf("%s%s", __('Reset Limitations', 'wp-multisite-waas'), __('Use this option to reset the custom limitations applied to this object.', 'wp-multisite-waas')), + 'desc' => sprintf('%s', $reset_url, __('Reset Limitations', 'wp-multisite-waas'), __('Reset Limitations', 'wp-multisite-waas')), ], ], ]; @@ -554,7 +554,7 @@ class Limitation_Manager { */ protected function override_notice($show = false, $additional_checks = []) { - $text = sprintf('

%s

', __('This value is being applied only to this entity. Changes made to the membership or product permissions will not affect this particular value.', 'wp-ultimo')); + $text = sprintf('

%s

', __('This value is being applied only to this entity. Changes made to the membership or product permissions will not affect this particular value.', 'wp-multisite-waas')); return [ 'desc' => $text, @@ -588,8 +588,8 @@ class Limitation_Manager { $sections['users']['fields'][ "control_{$user_role_slug}" ] = [ 'type' => 'group', - 'title' => sprintf(__('Limit %s Role', 'wp-ultimo'), $user_role['name']), - 'desc' => sprintf(__('The customer will be able to create %s users(s) of this user role.', 'wp-ultimo'), "{{ roles['{$user_role_slug}'].enabled ? ( parseInt(roles['{$user_role_slug}'].number, 10) ? roles['{$user_role_slug}'].number : '" . __('unlimited', 'wp-ultimo') . "' ) : '" . __('no', 'wp-ultimo') . "' }}"), + 'title' => sprintf(__('Limit %s Role', 'wp-multisite-waas'), $user_role['name']), + 'desc' => sprintf(__('The customer will be able to create %s users(s) of this user role.', 'wp-multisite-waas'), "{{ roles['{$user_role_slug}'].enabled ? ( parseInt(roles['{$user_role_slug}'].number, 10) ? roles['{$user_role_slug}'].number : '" . __('unlimited', 'wp-multisite-waas') . "' ) : '" . __('no', 'wp-multisite-waas') . "' }}"), 'tooltip' => '', 'wrapper_html_attr' => [ 'v-bind:class' => "!roles['{$user_role_slug}'].enabled ? 'wu-opacity-75' : ''", @@ -599,7 +599,7 @@ class Limitation_Manager { 'fields' => [ "modules[users][limit][{$user_role_slug}][number]" => [ 'type' => 'number', - 'placeholder' => sprintf(__('%s Role Quota. e.g. 10', 'wp-ultimo'), $user_role['name']), + 'placeholder' => sprintf(__('%s Role Quota. e.g. 10', 'wp-multisite-waas'), $user_role['name']), 'min' => 0, 'wrapper_classes' => 'wu-w-full', 'html_attr' => [ @@ -646,8 +646,8 @@ class Limitation_Manager { $sections['post_types']['fields'][ "control_{$post_type_slug}" ] = [ 'type' => 'group', - 'title' => sprintf(__('Limit %s', 'wp-ultimo'), $post_type->label), - 'desc' => sprintf(__('The customer will be able to create %s post(s) of this post type.', 'wp-ultimo'), "{{ types['{$post_type_slug}'].enabled ? ( parseInt(types['{$post_type_slug}'].number, 10) ? types['{$post_type_slug}'].number : '" . __('unlimited', 'wp-ultimo') . "' ) : '" . __('no', 'wp-ultimo') . "' }}"), + 'title' => sprintf(__('Limit %s', 'wp-multisite-waas'), $post_type->label), + 'desc' => sprintf(__('The customer will be able to create %s post(s) of this post type.', 'wp-multisite-waas'), "{{ types['{$post_type_slug}'].enabled ? ( parseInt(types['{$post_type_slug}'].number, 10) ? types['{$post_type_slug}'].number : '" . __('unlimited', 'wp-multisite-waas') . "' ) : '" . __('no', 'wp-multisite-waas') . "' }}"), 'tooltip' => '', 'wrapper_html_attr' => [ 'v-bind:class' => "!types['{$post_type_slug}'].enabled ? 'wu-opacity-75' : ''", @@ -657,7 +657,7 @@ class Limitation_Manager { 'fields' => [ "modules[post_types][limit][{$post_type_slug}][number]" => [ 'type' => 'number', - 'placeholder' => sprintf(__('%s Quota. e.g. 200', 'wp-ultimo'), $post_type->label), + 'placeholder' => sprintf(__('%s Quota. e.g. 200', 'wp-multisite-waas'), $post_type->label), 'min' => 0, 'wrapper_classes' => 'wu-w-full', 'html_attr' => [ @@ -702,8 +702,8 @@ class Limitation_Manager { $fields = [ 'modules[sites][enabled]' => [ 'type' => 'toggle', - 'title' => __('Limit Sites', 'wp-ultimo'), - 'desc' => __('Enable site limitations for this product.', 'wp-ultimo'), + 'title' => __('Limit Sites', 'wp-multisite-waas'), + 'desc' => __('Enable site limitations for this product.', 'wp-multisite-waas'), 'value' => $object->get_limitations()->sites->is_enabled(), 'html_attr' => [ 'v-model' => 'limit_sites', @@ -720,7 +720,7 @@ class Limitation_Manager { */ $fields['site_not_allowed_note'] = [ 'type' => 'note', - 'desc' => __('The product type selection does not support allowing for the creating of extra sites.', 'wp-ultimo'), + 'desc' => __('The product type selection does not support allowing for the creating of extra sites.', 'wp-multisite-waas'), 'tooltip' => '', 'wrapper_html_attr' => [ 'v-show' => "get_state_value('product_type', 'none') === 'service' && limit_sites", @@ -731,8 +731,8 @@ class Limitation_Manager { $fields['modules[sites][limit]'] = [ 'type' => 'number', 'min' => 1, - 'title' => __('Site Allowance', 'wp-ultimo'), - 'desc' => __('This is the number of sites the customer will be able to create under this membership.', 'wp-ultimo'), + 'title' => __('Site Allowance', 'wp-multisite-waas'), + 'desc' => __('This is the number of sites the customer will be able to create under this membership.', 'wp-multisite-waas'), 'placeholder' => 1, 'value' => $object->get_limitations()->sites->get_limit(), 'wrapper_html_attr' => [ diff --git a/inc/managers/class-membership-manager.php b/inc/managers/class-membership-manager.php index 4d58b15..918bfe9 100644 --- a/inc/managers/class-membership-manager.php +++ b/inc/managers/class-membership-manager.php @@ -60,7 +60,7 @@ class Membership_Manager extends Base_Manager { add_action( 'init', function () { - Event_Manager::register_model_events('membership', __('Membership', 'wp-ultimo'), ['created', 'updated']); + Event_Manager::register_model_events('membership', __('Membership', 'wp-multisite-waas'), ['created', 'updated']); } ); @@ -128,7 +128,7 @@ class Membership_Manager extends Base_Manager { $membership = wu_get_membership($membership_id); if ( ! $membership) { - return new \WP_Error('error', __('An unexpected error happened.', 'wp-ultimo')); + return new \WP_Error('error', __('An unexpected error happened.', 'wp-multisite-waas')); } $status = $membership->publish_pending_site(); @@ -152,7 +152,7 @@ class Membership_Manager extends Base_Manager { $membership = wu_get_membership_by_hash($membership_id); if ( ! $membership) { - return new \WP_Error('error', __('An unexpected error happened.', 'wp-ultimo')); + return new \WP_Error('error', __('An unexpected error happened.', 'wp-multisite-waas')); } $pending_site = $membership->get_pending_site(); @@ -186,13 +186,13 @@ class Membership_Manager extends Base_Manager { $membership = wu_get_membership($membership_id); if ( ! $membership) { - return new \WP_Error('error', __('An unexpected error happened.', 'wp-ultimo')); + return new \WP_Error('error', __('An unexpected error happened.', 'wp-multisite-waas')); } $scheduled_swap = $membership->get_scheduled_swap(); if (empty($scheduled_swap)) { - return new \WP_Error('error', __('An unexpected error happened.', 'wp-ultimo')); + return new \WP_Error('error', __('An unexpected error happened.', 'wp-multisite-waas')); } $order = $scheduled_swap->order; @@ -207,12 +207,12 @@ class Membership_Manager extends Base_Manager { if (is_wp_error($status)) { $wpdb->query('ROLLBACK'); - return new \WP_Error('error', __('An unexpected error happened.', 'wp-ultimo')); + return new \WP_Error('error', __('An unexpected error happened.', 'wp-multisite-waas')); } } catch (\Throwable $exception) { $wpdb->query('ROLLBACK'); - return new \WP_Error('error', __('An unexpected error happened.', 'wp-ultimo')); + return new \WP_Error('error', __('An unexpected error happened.', 'wp-multisite-waas')); } /* @@ -308,7 +308,7 @@ class Membership_Manager extends Base_Manager { $target_customer = wu_get_customer($target_customer_id); if ( ! $membership || ! $target_customer || absint($membership->get_customer_id()) === absint($target_customer->get_id())) { - return new \WP_Error('error', __('An unexpected error happened.', 'wp-ultimo')); + return new \WP_Error('error', __('An unexpected error happened.', 'wp-multisite-waas')); } $wpdb->query('START TRANSACTION'); @@ -380,7 +380,7 @@ class Membership_Manager extends Base_Manager { $membership = wu_get_membership($membership_id); if ( ! $membership) { - return new \WP_Error('error', __('An unexpected error happened.', 'wp-ultimo')); + return new \WP_Error('error', __('An unexpected error happened.', 'wp-multisite-waas')); } $wpdb->query('START TRANSACTION'); diff --git a/inc/managers/class-notes-manager.php b/inc/managers/class-notes-manager.php index 0422e80..c74e35f 100644 --- a/inc/managers/class-notes-manager.php +++ b/inc/managers/class-notes-manager.php @@ -142,7 +142,7 @@ class Notes_Manager extends Base_Manager { if (current_user_can('delete_notes')) { $fields_buttons['button_clear_notes'] = [ 'type' => 'link', - 'display_value' => __('Clear Notes', 'wp-ultimo'), + 'display_value' => __('Clear Notes', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-mb-0', 'classes' => 'button wubox', 'html_attr' => [ @@ -153,7 +153,7 @@ class Notes_Manager extends Base_Manager { 'model' => $object->model, ] ), - 'title' => __('Clear Notes', 'wp-ultimo'), + 'title' => __('Clear Notes', 'wp-multisite-waas'), ], ]; } @@ -161,7 +161,7 @@ class Notes_Manager extends Base_Manager { if (current_user_can('edit_notes')) { $fields_buttons['button_add_note'] = [ 'type' => 'link', - 'display_value' => __('Add new Note', 'wp-ultimo'), + 'display_value' => __('Add new Note', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-mb-0', 'classes' => 'button button-primary wubox wu-absolute wu-right-5', 'html_attr' => [ @@ -173,7 +173,7 @@ class Notes_Manager extends Base_Manager { 'height' => 306, ] ), - 'title' => __('Add new Note', 'wp-ultimo'), + 'title' => __('Add new Note', 'wp-multisite-waas'), ], ]; } @@ -185,8 +185,8 @@ class Notes_Manager extends Base_Manager { ]; $sections['notes'] = [ - 'title' => __('Notes', 'wp-ultimo'), - 'desc' => __('Add notes to this model.', 'wp-ultimo'), + 'title' => __('Notes', 'wp-multisite-waas'), + 'desc' => __('Add notes to this model.', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-text-document', 'order' => 1001, 'fields' => $fields, @@ -207,8 +207,8 @@ class Notes_Manager extends Base_Manager { 'content' => [ 'id' => 'content', 'type' => 'wp-editor', - 'title' => __('Note Content', 'wp-ultimo'), - 'desc' => __('Basic formatting is supported.', 'wp-ultimo'), + 'title' => __('Note Content', 'wp-multisite-waas'), + 'desc' => __('Basic formatting is supported.', 'wp-multisite-waas'), 'settings' => [ 'tinymce' => [ 'toolbar1' => 'bold,italic,strikethrough,link,unlink,undo,redo,pastetext', @@ -220,8 +220,8 @@ class Notes_Manager extends Base_Manager { ], 'submit_add_note' => [ 'type' => 'submit', - 'title' => __('Add Note', 'wp-ultimo'), - 'placeholder' => __('Add Note', 'wp-ultimo'), + 'title' => __('Add Note', 'wp-multisite-waas'), + 'placeholder' => __('Add Note', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -308,16 +308,16 @@ class Notes_Manager extends Base_Manager { $fields = [ 'confirm_clear_notes' => [ 'type' => 'toggle', - 'title' => __('Confirm clear all notes?', 'wp-ultimo'), - 'desc' => __('This action can not be undone.', 'wp-ultimo'), + 'title' => __('Confirm clear all notes?', 'wp-multisite-waas'), + 'desc' => __('This action can not be undone.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_clear_notes' => [ 'type' => 'submit', - 'title' => __('Clear Notes', 'wp-ultimo'), - 'placeholder' => __('Clear Notes', 'wp-ultimo'), + 'title' => __('Clear Notes', 'wp-multisite-waas'), + 'placeholder' => __('Clear Notes', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -403,16 +403,16 @@ class Notes_Manager extends Base_Manager { $fields = [ 'confirm_delete_note' => [ 'type' => 'toggle', - 'title' => __('Confirm clear the note?', 'wp-ultimo'), - 'desc' => __('This action can not be undone.', 'wp-ultimo'), + 'title' => __('Confirm clear the note?', 'wp-multisite-waas'), + 'desc' => __('This action can not be undone.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_delete_note' => [ 'type' => 'submit', - 'title' => __('Clear Note', 'wp-ultimo'), - 'placeholder' => __('Clear Note', 'wp-ultimo'), + 'title' => __('Clear Note', 'wp-multisite-waas'), + 'placeholder' => __('Clear Note', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -475,7 +475,7 @@ class Notes_Manager extends Base_Manager { $status = $object->delete_note($note_id); if (is_wp_error($status) || false === $status) { - wp_send_json_error(new \WP_Error('not-found', __('Note not found', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('not-found', __('Note not found', 'wp-multisite-waas'))); } wp_send_json_success( diff --git a/inc/managers/class-notification-manager.php b/inc/managers/class-notification-manager.php index cc8d88f..767c2b4 100644 --- a/inc/managers/class-notification-manager.php +++ b/inc/managers/class-notification-manager.php @@ -121,8 +121,8 @@ class Notification_Manager { 'sites', 'hide_notifications_subsites', [ - 'title' => __('Hide Admin Notices on Sites', 'wp-ultimo'), - 'desc' => __('Hide all admin notices on network sites, except for WP Multisite WaaS broadcasts.', 'wp-ultimo'), + 'title' => __('Hide Admin Notices on Sites', 'wp-multisite-waas'), + 'desc' => __('Hide all admin notices on network sites, except for WP Multisite WaaS broadcasts.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, 'order' => 25, diff --git a/inc/managers/class-payment-manager.php b/inc/managers/class-payment-manager.php index eb2770a..7ad1d1f 100644 --- a/inc/managers/class-payment-manager.php +++ b/inc/managers/class-payment-manager.php @@ -66,7 +66,7 @@ class Payment_Manager extends Base_Manager { function () { Event_Manager::register_model_events( 'payment', - __('Payment', 'wp-ultimo'), + __('Payment', 'wp-multisite-waas'), ['created', 'updated'] ); } @@ -169,7 +169,7 @@ class Payment_Manager extends Base_Manager { wp_enqueue_style('wu-admin'); add_wubox(); - $form_title = __('Pending Payments', 'wp-ultimo'); + $form_title = __('Pending Payments', 'wp-multisite-waas'); $form_url = wu_get_form_url('pending_payments'); wp_add_inline_script('wubox', "document.addEventListener('DOMContentLoaded', function(){wubox.show('$form_title', '$form_url');});"); @@ -225,7 +225,7 @@ class Payment_Manager extends Base_Manager { } } - $message = ! empty($pending_payments) ? __('You have pending payments on your account!', 'wp-ultimo') : __('You do not have pending payments on your account!', 'wp-ultimo'); + $message = ! empty($pending_payments) ? __('You have pending payments on your account!', 'wp-multisite-waas') : __('You do not have pending payments on your account!', 'wp-multisite-waas'); /** * Allow user to change the message about the pending payments. @@ -252,7 +252,7 @@ class Payment_Manager extends Base_Manager { $url = $payment->get_payment_url(); - $html = sprintf('%s', $url, __('Pay Now', 'wp-ultimo')); + $html = sprintf('%s', $url, __('Pay Now', 'wp-multisite-waas')); $title = $slug; @@ -291,13 +291,13 @@ class Payment_Manager extends Base_Manager { */ if ( ! wp_verify_nonce(wu_request('key'), 'see_invoice')) { - // wp_die(__('You do not have permissions to access this file.', 'wp-ultimo')); + // wp_die(__('You do not have permissions to access this file.', 'wp-multisite-waas')); } $payment = wu_get_payment_by_hash(wu_request('reference')); if ( ! $payment) { - wp_die(__('This invoice does not exist.', 'wp-ultimo')); + wp_die(__('This invoice does not exist.', 'wp-multisite-waas')); } $invoice = new Invoice($payment); @@ -329,7 +329,7 @@ class Payment_Manager extends Base_Manager { $target_customer = wu_get_customer($target_customer_id); if ( ! $payment || ! $target_customer || $payment->get_customer_id() === $target_customer->get_id()) { - return new \WP_Error('error', __('An unexpected error happened.', 'wp-ultimo')); + return new \WP_Error('error', __('An unexpected error happened.', 'wp-multisite-waas')); } $wpdb->query('START TRANSACTION'); @@ -374,7 +374,7 @@ class Payment_Manager extends Base_Manager { $payment = wu_get_payment($payment_id); if ( ! $payment) { - return new \WP_Error('error', __('An unexpected error happened.', 'wp-ultimo')); + return new \WP_Error('error', __('An unexpected error happened.', 'wp-multisite-waas')); } $wpdb->query('START TRANSACTION'); diff --git a/inc/managers/class-site-manager.php b/inc/managers/class-site-manager.php index 7413347..62cf916 100644 --- a/inc/managers/class-site-manager.php +++ b/inc/managers/class-site-manager.php @@ -132,7 +132,7 @@ class Site_Manager extends Base_Manager { } if (preg_match('/[^a-z0-9-]+/', (string) $result['blogname'])) { - $result['errors']->add('blogname', __('Site names can only contain lowercase letters (a-z), numbers, and hyphens.', 'wp-ultimo')); + $result['errors']->add('blogname', __('Site names can only contain lowercase letters (a-z), numbers, and hyphens.', 'wp-multisite-waas')); } } @@ -165,7 +165,7 @@ class Site_Manager extends Base_Manager { $customer = wu_get_current_customer(); if ( ! $customer || ! $membership || $customer->get_id() !== $membership->get_customer_id()) { - $errors->add('not-owner', __('You do not have the necessary permissions to create a site to this membership', 'wp-ultimo')); + $errors->add('not-owner', __('You do not have the necessary permissions to create a site to this membership', 'wp-multisite-waas')); } if ($errors->has_errors() === false) { @@ -316,9 +316,9 @@ class Site_Manager extends Base_Manager { new \WP_Error( 'not-available', // phpcs:ignore - sprintf( __('This site is not available at the moment.
If you are the site admin, click here to login.', 'wp-ultimo'), wp_login_url()), + sprintf( __('This site is not available at the moment.
If you are the site admin, click here to login.', 'wp-multisite-waas'), wp_login_url()), [ - 'title' => __('Site not available', 'wp-ultimo'), + 'title' => __('Site not available', 'wp-multisite-waas'), ] ), '', @@ -370,7 +370,7 @@ class Site_Manager extends Base_Manager { if ( ! $site) { wp_send_json_error( - new \WP_Error('missing-site', __('Site not found.', 'wp-ultimo')) + new \WP_Error('missing-site', __('Site not found.', 'wp-multisite-waas')) ); } @@ -380,7 +380,7 @@ class Site_Manager extends Base_Manager { if ( ! $attachment_id) { wp_send_json_error( - new \WP_Error('error', __('We were not able to fetch the screenshot.', 'wp-ultimo')) + new \WP_Error('error', __('We were not able to fetch the screenshot.', 'wp-multisite-waas')) ); } @@ -421,7 +421,7 @@ class Site_Manager extends Base_Manager { public function add_no_index_warning(): void { if (wu_get_setting('stop_template_indexing', false)) { - add_meta_box('wu-warnings', __('WP Multisite WaaS - Search Engines', 'wp-ultimo'), [$this, 'render_no_index_warning'], 'dashboard-network', 'normal', 'high'); + add_meta_box('wu-warnings', __('WP Multisite WaaS - Search Engines', 'wp-multisite-waas'), [$this, 'render_no_index_warning'], 'dashboard-network', 'normal', 'high'); } } @@ -437,9 +437,9 @@ class Site_Manager extends Base_Manager {
-

prevent search engines such as Google from indexing your template sites.', 'wp-ultimo'); ?>

+

prevent search engines such as Google from indexing your template sites.', 'wp-multisite-waas'); ?>

-

here.', 'wp-ultimo'), wu_network_admin_url('wp-ultimo-settings', ['tab' => 'sites'])); ?>

+

here.', 'wp-multisite-waas'), wu_network_admin_url('wp-ultimo-settings', ['tab' => 'sites'])); ?>

@@ -540,7 +540,7 @@ class Site_Manager extends Base_Manager { */ public function add_notices_to_default_site_page(): void { - $notice = __('Hey there! We highly recommend managing your network sites using the WP Multisite WaaS → Sites page.
If you want to avoid confusion, you can also hide this page from the admin panel completely on the WP Multisite WaaS → Settings → Whitelabel options.', 'wp-ultimo'); + $notice = __('Hey there! We highly recommend managing your network sites using the WP Multisite WaaS → Sites page.
If you want to avoid confusion, you can also hide this page from the admin panel completely on the WP Multisite WaaS → Settings → Whitelabel options.', 'wp-multisite-waas'); WP_Ultimo()->notices->add( $notice, @@ -549,11 +549,11 @@ class Site_Manager extends Base_Manager { 'wu-sites-use-wp-ultimo', [ [ - 'title' => __('Go to the WP Multisite WaaS Sites page →', 'wp-ultimo'), + 'title' => __('Go to the WP Multisite WaaS Sites page →', 'wp-multisite-waas'), 'url' => wu_network_admin_url('wp-ultimo-sites'), ], [ - 'title' => __('Go to the Whitelabel Settings →', 'wp-ultimo'), + 'title' => __('Go to the Whitelabel Settings →', 'wp-multisite-waas'), 'url' => wu_network_admin_url( 'wp-ultimo-settings', [ diff --git a/inc/managers/class-visits-manager.php b/inc/managers/class-visits-manager.php index df4a5b6..4ffa179 100644 --- a/inc/managers/class-visits-manager.php +++ b/inc/managers/class-visits-manager.php @@ -69,7 +69,7 @@ class Visits_Manager { } if ($site->has_limitations() && $site->get_visits_count() > $site->get_limitations()->visits->get_limit()) { - wp_die(__('This site is not available at this time.', 'wp-ultimo'), __('Not available', 'wp-ultimo'), 404); + wp_die(__('This site is not available at this time.', 'wp-multisite-waas'), __('Not available', 'wp-multisite-waas'), 404); } } diff --git a/inc/managers/class-webhook-manager.php b/inc/managers/class-webhook-manager.php index 0db0b2d..16782b2 100644 --- a/inc/managers/class-webhook-manager.php +++ b/inc/managers/class-webhook-manager.php @@ -196,7 +196,7 @@ class Webhook_Manager extends Base_Manager { if ( ! current_user_can('manage_network')) { wp_send_json( [ - 'response' => __('You do not have enough permissions to send a test event.', 'wp-ultimo'), + 'response' => __('You do not have enough permissions to send a test event.', 'wp-multisite-waas'), 'webhooks' => Webhook::get_items_as_array(), ] ); @@ -249,7 +249,7 @@ class Webhook_Manager extends Base_Manager { '; if ( ! current_user_can('manage_network')) { - echo __('You do not have enough permissions to read the logs of this webhook.', 'wp-ultimo'); + echo __('You do not have enough permissions to read the logs of this webhook.', 'wp-multisite-waas'); exit; } diff --git a/inc/models/class-base-model.php b/inc/models/class-base-model.php index 9a3885d..7ee0fd6 100644 --- a/inc/models/class-base-model.php +++ b/inc/models/class-base-model.php @@ -182,7 +182,7 @@ abstract class Base_Model implements \JsonSerializable { $value = call_user_func([$this, "get_{$field}"]); if ( ! is_numeric($value)) { - _doing_it_wrong(__METHOD__, __('You can only use numeric fields to generate hashes.', 'wp-ultimo'), '2.0.0'); + _doing_it_wrong(__METHOD__, __('You can only use numeric fields to generate hashes.', 'wp-multisite-waas'), '2.0.0'); return false; } @@ -607,7 +607,7 @@ abstract class Base_Model implements \JsonSerializable { public function delete() { if ( ! $this->get_id()) { - return new \WP_Error("wu_{$this->model}_delete_unsaved_item", __('Item not found.', 'wp-ultimo')); + return new \WP_Error("wu_{$this->model}_delete_unsaved_item", __('Item not found.', 'wp-multisite-waas')); } /** @@ -681,12 +681,12 @@ abstract class Base_Model implements \JsonSerializable { if ( ! $this->get_meta_table_name()) { - // _doing_it_wrong(__METHOD__, __('This model does not support metadata.', 'wp-ultimo'), '2.0.0'); + // _doing_it_wrong(__METHOD__, __('This model does not support metadata.', 'wp-multisite-waas'), '2.0.0'); return false; } - // _doing_it_wrong(__METHOD__, __('Model metadata only works for already saved models.', 'wp-ultimo'), '2.0.0'); + // _doing_it_wrong(__METHOD__, __('Model metadata only works for already saved models.', 'wp-multisite-waas'), '2.0.0'); return !(! $this->get_id() && ! $this->_mocked); } @@ -730,7 +730,7 @@ abstract class Base_Model implements \JsonSerializable { } if ( ! is_array($meta)) { - _doing_it_wrong(__METHOD__, __('This method expects an array as argument.', 'wp-ultimo'), '2.0.0'); + _doing_it_wrong(__METHOD__, __('This method expects an array as argument.', 'wp-multisite-waas'), '2.0.0'); return false; } diff --git a/inc/models/class-checkout-form.php b/inc/models/class-checkout-form.php index 2497229..4d94334 100644 --- a/inc/models/class-checkout-form.php +++ b/inc/models/class-checkout-form.php @@ -537,12 +537,12 @@ class Checkout_Form extends Base_Model { $steps = [ [ 'id' => 'checkout', - 'name' => __('Checkout', 'wp-ultimo'), + 'name' => __('Checkout', 'wp-multisite-waas'), 'desc' => '', 'fields' => [ [ 'step' => 'checkout', - 'name' => __('Plans', 'wp-ultimo'), + 'name' => __('Plans', 'wp-multisite-waas'), 'type' => 'pricing_table', 'id' => 'pricing_table', 'required' => true, @@ -551,7 +551,7 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Email', 'wp-ultimo'), + 'name' => __('Email', 'wp-multisite-waas'), 'type' => 'email', 'id' => 'email_address', 'required' => true, @@ -560,7 +560,7 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Username', 'wp-ultimo'), + 'name' => __('Username', 'wp-multisite-waas'), 'type' => 'username', 'id' => 'username', 'required' => true, @@ -570,7 +570,7 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Password', 'wp-ultimo'), + 'name' => __('Password', 'wp-multisite-waas'), 'type' => 'password', 'id' => 'password', 'required' => true, @@ -581,7 +581,7 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Site Title', 'wp-ultimo'), + 'name' => __('Site Title', 'wp-multisite-waas'), 'type' => 'site_title', 'id' => 'site_title', 'required' => true, @@ -591,7 +591,7 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Site URL', 'wp-ultimo'), + 'name' => __('Site URL', 'wp-multisite-waas'), 'type' => 'site_url', 'id' => 'site_url', 'placeholder' => '', @@ -602,7 +602,7 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Your Order', 'wp-ultimo'), + 'name' => __('Your Order', 'wp-multisite-waas'), 'type' => 'order_summary', 'id' => 'order_summary', 'order_summary_template' => 'clean', @@ -610,13 +610,13 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Payment Method', 'wp-ultimo'), + 'name' => __('Payment Method', 'wp-multisite-waas'), 'type' => 'payment', 'id' => 'payment', ], [ 'step' => 'checkout', - 'name' => __('Billing Address', 'wp-ultimo'), + 'name' => __('Billing Address', 'wp-multisite-waas'), 'type' => 'billing_address', 'id' => 'billing_address', 'required' => true, @@ -624,7 +624,7 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Checkout', 'wp-ultimo'), + 'name' => __('Checkout', 'wp-multisite-waas'), 'type' => 'submit_button', 'id' => 'checkout', ], @@ -646,7 +646,7 @@ class Checkout_Form extends Base_Model { $steps = [ [ 'id' => 'checkout', - 'name' => __('Checkout', 'wp-ultimo'), + 'name' => __('Checkout', 'wp-multisite-waas'), 'desc' => '', 'fields' => [ [ @@ -660,7 +660,7 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Next Step', 'wp-ultimo'), + 'name' => __('Next Step', 'wp-multisite-waas'), 'type' => 'submit_button', 'id' => 'next_step', ], @@ -668,12 +668,12 @@ class Checkout_Form extends Base_Model { ], [ 'id' => 'site', - 'name' => __('Site Info', 'wp-ultimo'), + 'name' => __('Site Info', 'wp-multisite-waas'), 'desc' => '', 'fields' => [ [ 'step' => 'checkout', - 'name' => __('Site Title', 'wp-ultimo'), + 'name' => __('Site Title', 'wp-multisite-waas'), 'type' => 'site_title', 'id' => 'site_title', 'required' => true, @@ -683,7 +683,7 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Site URL', 'wp-ultimo'), + 'name' => __('Site URL', 'wp-multisite-waas'), 'type' => 'site_url', 'id' => 'site_url', 'required' => true, @@ -694,7 +694,7 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'site', - 'name' => __('Next Step', 'wp-ultimo'), + 'name' => __('Next Step', 'wp-multisite-waas'), 'type' => 'submit_button', 'id' => 'next_step_site', ], @@ -702,13 +702,13 @@ class Checkout_Form extends Base_Model { ], [ 'id' => 'user', - 'name' => __('User Info', 'wp-ultimo'), + 'name' => __('User Info', 'wp-multisite-waas'), 'logged' => 'guests_only', 'desc' => '', 'fields' => [ [ 'step' => 'checkout', - 'name' => __('Email', 'wp-ultimo'), + 'name' => __('Email', 'wp-multisite-waas'), 'type' => 'email', 'id' => 'email_address', 'required' => true, @@ -717,7 +717,7 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Username', 'wp-ultimo'), + 'name' => __('Username', 'wp-multisite-waas'), 'type' => 'username', 'id' => 'username', 'required' => true, @@ -727,7 +727,7 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Password', 'wp-ultimo'), + 'name' => __('Password', 'wp-multisite-waas'), 'type' => 'password', 'id' => 'password', 'required' => true, @@ -738,7 +738,7 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'user', - 'name' => __('Next Step', 'wp-ultimo'), + 'name' => __('Next Step', 'wp-multisite-waas'), 'type' => 'submit_button', 'id' => 'next_step_user', ], @@ -746,12 +746,12 @@ class Checkout_Form extends Base_Model { ], [ 'id' => 'payment', - 'name' => __('Payment', 'wp-ultimo'), + 'name' => __('Payment', 'wp-multisite-waas'), 'desc' => '', 'fields' => [ [ 'step' => 'checkout', - 'name' => __('Your Order', 'wp-ultimo'), + 'name' => __('Your Order', 'wp-multisite-waas'), 'type' => 'order_summary', 'id' => 'order_summary', 'order_summary_template' => 'clean', @@ -759,13 +759,13 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Payment Method', 'wp-ultimo'), + 'name' => __('Payment Method', 'wp-multisite-waas'), 'type' => 'payment', 'id' => 'payment', ], [ 'step' => 'checkout', - 'name' => __('Billing Address', 'wp-ultimo'), + 'name' => __('Billing Address', 'wp-multisite-waas'), 'type' => 'billing_address', 'id' => 'billing_address', 'required' => true, @@ -773,7 +773,7 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Checkout', 'wp-ultimo'), + 'name' => __('Checkout', 'wp-multisite-waas'), 'type' => 'submit_button', 'id' => 'checkout', ], @@ -832,17 +832,17 @@ class Checkout_Form extends Base_Model { 'enable_price_1' => [ 'duration' => '1', 'duration_unit' => 'month', - 'label' => __('Monthly', 'wp-ultimo'), + 'label' => __('Monthly', 'wp-multisite-waas'), ], 'enable_price_3' => [ 'duration' => '3', 'duration_unit' => 'month', - 'label' => __('Quarterly', 'wp-ultimo'), + 'label' => __('Quarterly', 'wp-multisite-waas'), ], 'enable_price_12' => [ 'duration' => '1', 'duration_unit' => 'year', - 'label' => __('Yearly', 'wp-ultimo'), + 'label' => __('Yearly', 'wp-multisite-waas'), ], ]; @@ -867,7 +867,7 @@ class Checkout_Form extends Base_Model { } $step['fields']['pricing_table'] = [ - 'name' => __('Pricing Tables', 'wp-ultimo'), + 'name' => __('Pricing Tables', 'wp-multisite-waas'), 'id' => 'pricing_table', 'type' => 'pricing_table', 'pricing_table_template' => 'legacy', @@ -893,7 +893,7 @@ class Checkout_Form extends Base_Model { $step['fields'] = [ 'template_selection' => [ - 'name' => __('Template Selection', 'wp-ultimo'), + 'name' => __('Template Selection', 'wp-multisite-waas'), 'id' => 'template_selection', 'type' => 'template_selection', 'template_selection_template' => 'legacy', @@ -940,7 +940,7 @@ class Checkout_Form extends Base_Model { $field['id'] = 'password'; $field['password_strength_meter'] = false; $field['password_confirm_field'] = true; - $field['password_confirm_label'] = wu_get_isset($step['fields']['user_pass_conf'], 'name', __('Confirm Password', 'wp-ultimo')); + $field['password_confirm_label'] = wu_get_isset($step['fields']['user_pass_conf'], 'name', __('Confirm Password', 'wp-multisite-waas')); break; case 'user_email': @@ -971,7 +971,7 @@ class Checkout_Form extends Base_Model { $field['id'] = 'submit_button'; if ('account' === $step_id) { - $field['name'] = __('Continue to the Next Step', 'wp-ultimo'); + $field['name'] = __('Continue to the Next Step', 'wp-multisite-waas'); } break; @@ -992,17 +992,17 @@ class Checkout_Form extends Base_Model { */ $new_format[] = [ 'id' => 'payment', - 'name' => __('Checkout', 'wp-ultimo'), + 'name' => __('Checkout', 'wp-multisite-waas'), 'fields' => [ [ - 'name' => __('Order Summary', 'wp-ultimo'), + 'name' => __('Order Summary', 'wp-multisite-waas'), 'type' => 'order_summary', 'id' => 'order_summary', 'order_summary_template' => 'clean', 'table_columns' => 'simple', ], [ - 'name' => __('Billing Address', 'wp-ultimo'), + 'name' => __('Billing Address', 'wp-multisite-waas'), 'type' => 'billing_address', 'id' => 'billing_address', 'zip_and_country' => true, @@ -1010,19 +1010,19 @@ class Checkout_Form extends Base_Model { [ 'type' => 'discount_code', 'id' => 'discount_code', - 'name' => __('Coupon Code', 'wp-ultimo'), - 'tooltip' => __('Coupon Code', 'wp-ultimo'), + 'name' => __('Coupon Code', 'wp-multisite-waas'), + 'tooltip' => __('Coupon Code', 'wp-multisite-waas'), 'display_checkbox' => true, ], [ - 'name' => __('Payment Methods', 'wp-ultimo'), + 'name' => __('Payment Methods', 'wp-multisite-waas'), 'type' => 'payment', 'id' => 'payment', ], [ 'type' => 'submit_button', 'id' => 'submit_button', - 'name' => __('Pay & Create Account', 'wp-ultimo'), + 'name' => __('Pay & Create Account', 'wp-multisite-waas'), ], ], ]; @@ -1212,7 +1212,7 @@ class Checkout_Form extends Base_Model { $fields = [ [ 'step' => 'checkout', - 'name' => __('Your Order', 'wp-ultimo'), + 'name' => __('Your Order', 'wp-multisite-waas'), 'type' => 'order_summary', 'id' => 'order_summary', 'order_summary_template' => 'clean', @@ -1220,13 +1220,13 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Payment Method', 'wp-ultimo'), + 'name' => __('Payment Method', 'wp-multisite-waas'), 'type' => 'payment', 'id' => 'payment', ], [ 'step' => 'checkout', - 'name' => __('Finish Payment', 'wp-ultimo'), + 'name' => __('Finish Payment', 'wp-multisite-waas'), 'type' => 'submit_button', 'id' => 'checkout', 'order' => 0, @@ -1236,7 +1236,7 @@ class Checkout_Form extends Base_Model { $steps = [ [ 'id' => 'checkout', - 'name' => __('Checkout', 'wp-ultimo'), + 'name' => __('Checkout', 'wp-multisite-waas'), 'desc' => '', 'fields' => $fields, ], @@ -1312,7 +1312,7 @@ class Checkout_Form extends Base_Model { $label = sprintf( // translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc) - _n('%2$s', '%1$s %2$s', $product->get_duration(), 'wp-ultimo'), // phpcs:ignore + _n('%2$s', '%1$s %2$s', $product->get_duration(), 'wp-multisite-waas'), // phpcs:ignore $product->get_duration(), wu_get_translatable_string($product->get_duration() <= 1 ? $product->get_duration_unit() : $product->get_duration_unit() . 's') ); @@ -1343,7 +1343,7 @@ class Checkout_Form extends Base_Model { $label = sprintf( // translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc) - _n('%2$s', '%1$s %2$s', $variation['duration'], 'wp-ultimo'), // phpcs:ignore + _n('%2$s', '%1$s %2$s', $variation['duration'], 'wp-multisite-waas'), // phpcs:ignore $variation['duration'], wu_get_translatable_string($variation['duration'] <= 1 ? $variation['duration_unit'] : $variation['duration_unit'] . 's') ); @@ -1371,7 +1371,7 @@ class Checkout_Form extends Base_Model { $fields[] = [ 'step' => 'checkout', - 'name' => __('Plans', 'wp-ultimo'), + 'name' => __('Plans', 'wp-multisite-waas'), 'type' => 'pricing_table', 'id' => 'pricing_table', 'required' => true, @@ -1406,7 +1406,7 @@ class Checkout_Form extends Base_Model { $end_fields = [ [ 'step' => 'checkout', - 'name' => __('Your Order', 'wp-ultimo'), + 'name' => __('Your Order', 'wp-multisite-waas'), 'type' => 'order_summary', 'id' => 'order_summary', 'order_summary_template' => 'clean', @@ -1414,13 +1414,13 @@ class Checkout_Form extends Base_Model { ], [ 'step' => 'checkout', - 'name' => __('Payment Method', 'wp-ultimo'), + 'name' => __('Payment Method', 'wp-multisite-waas'), 'type' => 'payment', 'id' => 'payment', ], [ 'step' => 'checkout', - 'name' => __('Complete Checkout', 'wp-ultimo'), + 'name' => __('Complete Checkout', 'wp-multisite-waas'), 'type' => 'submit_button', 'id' => 'checkout', 'order' => 0, @@ -1432,7 +1432,7 @@ class Checkout_Form extends Base_Model { $steps = [ [ 'id' => 'checkout', - 'name' => __('Checkout', 'wp-ultimo'), + 'name' => __('Checkout', 'wp-multisite-waas'), 'desc' => '', 'fields' => $fields, ], @@ -1468,7 +1468,7 @@ class Checkout_Form extends Base_Model { $template_selection_fields = [ [ 'step' => 'template', - 'name' => __('Template Selection', 'wp-ultimo'), + 'name' => __('Template Selection', 'wp-multisite-waas'), 'type' => 'template_selection', 'id' => 'template_selection', 'cols' => 4, @@ -1485,7 +1485,7 @@ class Checkout_Form extends Base_Model { $steps[] = [ 'id' => 'template', - 'name' => __('Template Selection', 'wp-ultimo'), + 'name' => __('Template Selection', 'wp-multisite-waas'), 'desc' => '', 'fields' => $template_selection_fields, ]; @@ -1521,7 +1521,7 @@ class Checkout_Form extends Base_Model { $final_fields[] = [ 'step' => 'create', 'id' => 'site_title', - 'name' => __('Site Title', 'wp-ultimo'), + 'name' => __('Site Title', 'wp-multisite-waas'), 'tooltip' => '', 'placeholder' => '', 'type' => 'site_title', @@ -1532,7 +1532,7 @@ class Checkout_Form extends Base_Model { $final_fields[] = [ 'step' => 'create', 'id' => 'site_url', - 'name' => __('Site URL', 'wp-ultimo'), + 'name' => __('Site URL', 'wp-multisite-waas'), 'tooltip' => '', 'placeholder' => '', 'display_field_attachments' => false, @@ -1543,7 +1543,7 @@ class Checkout_Form extends Base_Model { $final_fields[] = [ 'step' => 'create', - 'name' => __('Create Site', 'wp-ultimo'), + 'name' => __('Create Site', 'wp-multisite-waas'), 'type' => 'submit_button', 'id' => 'checkout', 'order' => 0, @@ -1551,7 +1551,7 @@ class Checkout_Form extends Base_Model { $steps[] = [ 'id' => 'create', - 'name' => __('Create Site', 'wp-ultimo'), + 'name' => __('Create Site', 'wp-multisite-waas'), 'desc' => '', 'classes' => 'wu-max-w-sm', 'fields' => $final_fields, diff --git a/inc/models/class-customer.php b/inc/models/class-customer.php index b85e5cd..2e4394f 100644 --- a/inc/models/class-customer.php +++ b/inc/models/class-customer.php @@ -211,7 +211,7 @@ class Customer extends Base_Model { $user = $this->get_user(); if (empty($user)) { - return __('User Deleted', 'wp-ultimo'); + return __('User Deleted', 'wp-multisite-waas'); } return $user->display_name; @@ -267,7 +267,7 @@ class Customer extends Base_Model { $user = $this->get_user(); if (empty($user)) { - return __('none', 'wp-ultimo'); + return __('none', 'wp-multisite-waas'); } return $user->user_login; @@ -284,7 +284,7 @@ class Customer extends Base_Model { $user = $this->get_user(); if (empty($user)) { - return __('none', 'wp-ultimo'); + return __('none', 'wp-multisite-waas'); } return $user->user_email; diff --git a/inc/models/class-discount-code.php b/inc/models/class-discount-code.php index 3b7c16c..37c792e 100644 --- a/inc/models/class-discount-code.php +++ b/inc/models/class-discount-code.php @@ -465,14 +465,14 @@ class Discount_Code extends Base_Model { public function is_valid($product = false) { if ($this->is_active() === false) { - return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-ultimo')); + return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-multisite-waas')); } /* * Check for uses */ if ($this->has_max_uses() && $this->get_uses() >= $this->get_max_uses()) { - return new \WP_Error('discount_code', __('This discount code was already redeemed the maximum amount of times allowed.', 'wp-ultimo')); + return new \WP_Error('discount_code', __('This discount code was already redeemed the maximum amount of times allowed.', 'wp-multisite-waas')); } /* @@ -487,9 +487,9 @@ class Discount_Code extends Base_Model { $start_date_instance = wu_date($start_date); if ($now < $start_date_instance) { - return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-ultimo')); + return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-multisite-waas')); - return new \WP_Error('discount_code', __('The coupon code is not valid yet.', 'wp-ultimo')); + return new \WP_Error('discount_code', __('The coupon code is not valid yet.', 'wp-multisite-waas')); } } @@ -497,7 +497,7 @@ class Discount_Code extends Base_Model { $expiration_date_instance = wu_date($expiration_date); if ($now > $expiration_date_instance) { - return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-ultimo')); + return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-multisite-waas')); } } @@ -515,7 +515,7 @@ class Discount_Code extends Base_Model { $allowed = $this->get_limit_products() && in_array($product_id, $this->get_allowed_products()); // phpcs:ignore if (false === $allowed) { - return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-ultimo')); + return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-multisite-waas')); } } @@ -640,7 +640,7 @@ class Discount_Code extends Base_Model { $description[] = sprintf( // translators: placeholder is the value off. Can be wither $X.XX or X% - __('%1$s OFF on Subscriptions', 'wp-ultimo'), + __('%1$s OFF on Subscriptions', 'wp-multisite-waas'), $value ); } @@ -654,12 +654,12 @@ class Discount_Code extends Base_Model { $description[] = sprintf( // translators: placeholder is the value off. Can be wither $X.XX or X% - __('%1$s OFF on Setup Fees', 'wp-ultimo'), + __('%1$s OFF on Setup Fees', 'wp-multisite-waas'), $setup_fee_value ); } - return implode(' ' . __('and', 'wp-ultimo') . ' ', $description); + return implode(' ' . __('and', 'wp-multisite-waas') . ' ', $description); } /** diff --git a/inc/models/class-domain.php b/inc/models/class-domain.php index 14a73d6..e38256f 100644 --- a/inc/models/class-domain.php +++ b/inc/models/class-domain.php @@ -532,7 +532,7 @@ class Domain extends Base_Model { */ wu_log_clear("domain-{$this->get_domain()}"); - wu_log_add("domain-{$this->get_domain()}", __('Domain deleted and logs cleared...', 'wp-ultimo')); + wu_log_add("domain-{$this->get_domain()}", __('Domain deleted and logs cleared...', 'wp-multisite-waas')); return $results; } diff --git a/inc/models/class-event.php b/inc/models/class-event.php index 0949366..28efd48 100644 --- a/inc/models/class-event.php +++ b/inc/models/class-event.php @@ -156,14 +156,14 @@ class Event extends Base_Model { public function get_severity_label() { $labels = [ - self::SEVERITY_SUCCESS => __('Success', 'wp-ultimo'), - self::SEVERITY_NEUTRAL => __('Neutral', 'wp-ultimo'), - self::SEVERITY_INFO => __('Info', 'wp-ultimo'), - self::SEVERITY_WARNING => __('Warning', 'wp-ultimo'), - self::SEVERITY_FATAL => __('Fatal', 'wp-ultimo'), + self::SEVERITY_SUCCESS => __('Success', 'wp-multisite-waas'), + self::SEVERITY_NEUTRAL => __('Neutral', 'wp-multisite-waas'), + self::SEVERITY_INFO => __('Info', 'wp-multisite-waas'), + self::SEVERITY_WARNING => __('Warning', 'wp-multisite-waas'), + self::SEVERITY_FATAL => __('Fatal', 'wp-multisite-waas'), ]; - return $labels[ $this->get_severity() ] ?? __('Note', 'wp-ultimo'); + return $labels[ $this->get_severity() ] ?? __('Note', 'wp-multisite-waas'); } /** @@ -303,12 +303,12 @@ class Event extends Base_Model { $default_messages = []; - $default_messages['changed'] = __('The {{model}} #{{object_id}} was changed: {{payload}}', 'wp-ultimo'); - $default_messages['created'] = __('The {{model}} #{{object_id}} was created.', 'wp-ultimo'); + $default_messages['changed'] = __('The {{model}} #{{object_id}} was changed: {{payload}}', 'wp-multisite-waas'); + $default_messages['created'] = __('The {{model}} #{{object_id}} was created.', 'wp-multisite-waas'); $default_messages = apply_filters('wu_get_default_system_messages', $default_messages); - return wu_get_isset($default_messages, $slug, __('No Message', 'wp-ultimo')); + return wu_get_isset($default_messages, $slug, __('No Message', 'wp-multisite-waas')); } diff --git a/inc/models/class-membership.php b/inc/models/class-membership.php index 04c0af4..ca611be 100644 --- a/inc/models/class-membership.php +++ b/inc/models/class-membership.php @@ -670,7 +670,7 @@ class Membership extends Base_Model { public function swap($order) { if ( ! is_a($order, Cart::class)) { - return new \WP_Error('invalid-date', __('Swap Cart is invalid.', 'wp-ultimo')); + return new \WP_Error('invalid-date', __('Swap Cart is invalid.', 'wp-multisite-waas')); } // clear the current addons. @@ -743,11 +743,11 @@ class Membership extends Base_Model { } if ( ! wu_validate_date($schedule_date)) { - return new \WP_Error('invalid-date', __('Schedule date is invalid.', 'wp-ultimo')); + return new \WP_Error('invalid-date', __('Schedule date is invalid.', 'wp-multisite-waas')); } if ( ! is_a($order, Cart::class)) { - return new \WP_Error('invalid-date', __('Swap Cart is invalid.', 'wp-ultimo')); + return new \WP_Error('invalid-date', __('Swap Cart is invalid.', 'wp-multisite-waas')); } $date_instance = wu_date($schedule_date); @@ -831,7 +831,7 @@ class Membership extends Base_Model { $description = sprintf( // translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc) - _n('every %2$s', 'every %1$s %2$s', $this->get_duration(), 'wp-ultimo'), // phpcs:ignore + _n('every %2$s', 'every %1$s %2$s', $this->get_duration(), 'wp-multisite-waas'), // phpcs:ignore $this->get_duration(), wu_get_translatable_string(($this->get_duration() <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's')) ); @@ -847,12 +847,12 @@ class Membership extends Base_Model { public function get_times_billed_description(): string { // translators: times billed / subscription duration in cycles. e.g. 1/12 cycles - $description = __('%1$s / %2$s cycles', 'wp-ultimo'); + $description = __('%1$s / %2$s cycles', 'wp-multisite-waas'); if ($this->is_forever_recurring()) { // translators: the place holder is the number of times the membership was billed. - $description = __('%1$s / until cancelled', 'wp-ultimo'); + $description = __('%1$s / until cancelled', 'wp-multisite-waas'); } return sprintf($description, $this->get_times_billed(), $this->get_billing_cycles()); @@ -872,7 +872,7 @@ class Membership extends Base_Model { $message = sprintf( // translators: %1$s is the formatted price, %2$s the duration, and %3$s the duration unit (day, week, month, etc) - _n('%1$s every %3$s', '%1$s every %2$s %3$s', $duration, 'wp-ultimo'), // phpcs:ignore + _n('%1$s every %3$s', '%1$s every %2$s %3$s', $duration, 'wp-multisite-waas'), // phpcs:ignore wu_format_currency($this->get_amount(), $this->get_currency()), $duration, wu_get_translatable_string($duration <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's') @@ -883,7 +883,7 @@ class Membership extends Base_Model { if ( ! $this->is_forever_recurring()) { $billing_cycles_message = sprintf( // translators: %s is the number of billing cycles. - _n('for %s cycle', 'for %s cycles', $this->get_billing_cycles(), 'wp-ultimo'), + _n('for %s cycle', 'for %s cycles', $this->get_billing_cycles(), 'wp-multisite-waas'), $this->get_billing_cycles() ); @@ -892,13 +892,13 @@ class Membership extends Base_Model { } else { $pricing['subscription'] = sprintf( // translators: %1$s is the formatted price of the product - __('%1$s one time payment', 'wp-ultimo'), + __('%1$s one time payment', 'wp-multisite-waas'), wu_format_currency($this->get_initial_amount(), $this->get_currency()) ); } if ($this->is_free()) { - $pricing['subscription'] = __('Free!', 'wp-ultimo'); + $pricing['subscription'] = __('Free!', 'wp-multisite-waas'); } return implode(' + ', $pricing); diff --git a/inc/models/class-payment.php b/inc/models/class-payment.php index 9ae7b1e..ec02ae0 100644 --- a/inc/models/class-payment.php +++ b/inc/models/class-payment.php @@ -548,13 +548,13 @@ class Payment extends Base_Model { $gateway = $this->get_gateway(); if ( ! $gateway) { - return __('None', 'wp-ultimo'); + return __('None', 'wp-multisite-waas'); } $gateway_class = wu_get_gateway($gateway); if ( ! $gateway_class) { - return __('None', 'wp-ultimo'); + return __('None', 'wp-multisite-waas'); } $title = $gateway_class->get_public_title(); @@ -930,7 +930,7 @@ class Payment extends Base_Model { $prefix = str_replace($search, $replace, (string) $prefix); - return sprintf('%s%s %s', $prefix, $this->invoice_number, $provisional ? __('(provisional)', 'wp-ultimo') : ''); + return sprintf('%s%s %s', $prefix, $this->invoice_number, $provisional ? __('(provisional)', 'wp-multisite-waas') : ''); } /** @@ -1050,11 +1050,11 @@ class Payment extends Base_Model { * it is a partial refund. */ if ($amount >= $this->get_total()) { - $title = __('Full Refund', 'wp-ultimo'); + $title = __('Full Refund', 'wp-multisite-waas'); $new_status = Payment_Status::REFUND; } else { - $title = __('Partial Refund', 'wp-ultimo'); + $title = __('Partial Refund', 'wp-multisite-waas'); $new_status = Payment_Status::PARTIAL_REFUND; } @@ -1064,7 +1064,7 @@ class Payment extends Base_Model { $formatted_value = date_i18n(get_option('date_format'), $time); // translators: %s is the date of processing. - $description = sprintf(__('Processed on %s', 'wp-ultimo'), $formatted_value); + $description = sprintf(__('Processed on %s', 'wp-multisite-waas'), $formatted_value); $line_item_data = [ 'type' => 'refund', diff --git a/inc/models/class-product.php b/inc/models/class-product.php index ca8da91..006dab0 100644 --- a/inc/models/class-product.php +++ b/inc/models/class-product.php @@ -620,11 +620,11 @@ class Product extends Base_Model { public function get_formatted_amount($key = 'amount') { if ($this->is_free()) { - return __('Free!', 'wp-ultimo'); + return __('Free!', 'wp-multisite-waas'); } if ($this->get_pricing_type() === 'contact_us') { - return $this->get_contact_us_label() ?: __('Contact Us', 'wp-ultimo'); + return $this->get_contact_us_label() ?: __('Contact Us', 'wp-multisite-waas'); } return wu_format_currency($this->get_amount(), $this->get_currency()); @@ -697,11 +697,11 @@ class Product extends Base_Model { $pricing = []; if ($this->get_pricing_type() === 'contact_us') { - return __('Contact us', 'wp-ultimo'); + return __('Contact us', 'wp-multisite-waas'); } if ($this->is_free()) { - return __('Free!', 'wp-ultimo'); + return __('Free!', 'wp-multisite-waas'); } if ($this->is_recurring()) { @@ -709,7 +709,7 @@ class Product extends Base_Model { $message = sprintf( // translators: %1$s is the formatted price, %2$s the duration, and %3$s the duration unit (day, week, month, etc) - _n('%1$s every %3$s', '%1$s every %2$s %3$s', $duration, 'wp-ultimo'), // phpcs:ignore + _n('%1$s every %3$s', '%1$s every %2$s %3$s', $duration, 'wp-multisite-waas'), // phpcs:ignore wu_format_currency($this->get_amount(), $this->get_currency()), $duration, wu_get_translatable_string($duration <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's') @@ -720,7 +720,7 @@ class Product extends Base_Model { if ( ! $this->is_forever_recurring()) { $billing_cycles_message = sprintf( // translators: %s is the number of billing cycles. - _n('for %s cycle', 'for %s cycles', $this->get_billing_cycles(), 'wp-ultimo'), + _n('for %s cycle', 'for %s cycles', $this->get_billing_cycles(), 'wp-multisite-waas'), $this->get_billing_cycles() ); @@ -729,7 +729,7 @@ class Product extends Base_Model { } else { $pricing['subscription'] = sprintf( // translators: %1$s is the formatted price of the product - __('%1$s one time payment', 'wp-ultimo'), + __('%1$s one time payment', 'wp-multisite-waas'), wu_format_currency($this->get_amount(), $this->get_currency()) ); } @@ -737,7 +737,7 @@ class Product extends Base_Model { if ($this->has_setup_fee() && $include_fees) { $pricing['fee'] = sprintf( // translators: %1$s is the formatted price of the setup fee - __('Setup Fee of %1$s', 'wp-ultimo'), + __('Setup Fee of %1$s', 'wp-multisite-waas'), wu_format_currency($this->get_setup_fee(), $this->get_currency()) ); } @@ -758,12 +758,12 @@ class Product extends Base_Model { } if ( ! $this->is_recurring()) { - return __('one-time payment', 'wp-ultimo'); + return __('one-time payment', 'wp-multisite-waas'); } $description = sprintf( // translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc) - _n('every %2$s', 'every %1$s %2$s', $this->get_duration(), 'wp-ultimo'), // phpcs:ignore + _n('every %2$s', 'every %1$s %2$s', $this->get_duration(), 'wp-multisite-waas'), // phpcs:ignore $this->get_duration(), wu_get_translatable_string($this->get_duration() <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's') ); diff --git a/inc/models/class-site.php b/inc/models/class-site.php index 325bbba..d2513d5 100644 --- a/inc/models/class-site.php +++ b/inc/models/class-site.php @@ -1437,7 +1437,7 @@ class Site extends Base_Model { public function delete() { if ( ! $this->get_id()) { - return new \WP_Error("wu_{$this->model}_delete_unsaved_item", __('Item not found.', 'wp-ultimo')); + return new \WP_Error("wu_{$this->model}_delete_unsaved_item", __('Item not found.', 'wp-multisite-waas')); } /** diff --git a/inc/objects/class-billing-address.php b/inc/objects/class-billing-address.php index b0f8927..c2d299b 100644 --- a/inc/objects/class-billing-address.php +++ b/inc/objects/class-billing-address.php @@ -239,38 +239,38 @@ class Billing_Address { $fields['company_name'] = [ 'type' => 'text', - 'title' => __('Company Name', 'wp-ultimo'), - 'default_placeholder' => __('E.g. Google (optional)', 'wp-ultimo'), + 'title' => __('Company Name', 'wp-multisite-waas'), + 'default_placeholder' => __('E.g. Google (optional)', 'wp-multisite-waas'), 'wrapper_classes' => 'sm:wu-col-span-1', ]; $fields['billing_email'] = [ 'type' => 'text', - 'title' => __('Billing Email', 'wp-ultimo'), - 'default_placeholder' => __('E.g. john@company.com', 'wp-ultimo'), + 'title' => __('Billing Email', 'wp-multisite-waas'), + 'default_placeholder' => __('E.g. john@company.com', 'wp-multisite-waas'), 'wrapper_classes' => 'sm:wu-col-span-1', 'required' => true, ]; $fields['billing_address_line_1'] = [ 'type' => 'text', - 'title' => __('Address Line 1', 'wp-ultimo'), - 'default_placeholder' => __('E.g. 555 1st Avenue', 'wp-ultimo'), + 'title' => __('Address Line 1', 'wp-multisite-waas'), + 'default_placeholder' => __('E.g. 555 1st Avenue', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-col-span-2', 'required' => true, ]; $fields['billing_address_line_2'] = [ 'type' => 'text', - 'title' => __('Address Line 2', 'wp-ultimo'), - 'default_placeholder' => __('E.g. Apartment 10a', 'wp-ultimo'), + 'title' => __('Address Line 2', 'wp-multisite-waas'), + 'default_placeholder' => __('E.g. Apartment 10a', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-col-span-2', ]; $fields['billing_country'] = [ 'type' => 'select', - 'title' => __('Country', 'wp-ultimo'), - 'default_placeholder' => __('E.g. US', 'wp-ultimo'), + 'title' => __('Country', 'wp-multisite-waas'), + 'default_placeholder' => __('E.g. US', 'wp-multisite-waas'), 'wrapper_classes' => 'sm:wu-col-span-1', 'value' => ' ', 'options' => $countries, @@ -279,22 +279,22 @@ class Billing_Address { $fields['billing_state'] = [ 'type' => 'text', - 'title' => __('State / Province', 'wp-ultimo'), - 'default_placeholder' => __('E.g. NY', 'wp-ultimo'), + 'title' => __('State / Province', 'wp-multisite-waas'), + 'default_placeholder' => __('E.g. NY', 'wp-multisite-waas'), 'wrapper_classes' => 'sm:wu-col-span-1', ]; $fields['billing_city'] = [ 'type' => 'text', - 'title' => __('City / Town', 'wp-ultimo'), - 'default_placeholder' => __('E.g. New York City', 'wp-ultimo'), + 'title' => __('City / Town', 'wp-multisite-waas'), + 'default_placeholder' => __('E.g. New York City', 'wp-multisite-waas'), 'wrapper_classes' => 'sm:wu-col-span-1', ]; $fields['billing_zip_code'] = [ 'type' => 'text', - 'title' => __('ZIP / Postal Code', 'wp-ultimo'), - 'default_placeholder' => __('E.g. 10009', 'wp-ultimo'), + 'title' => __('ZIP / Postal Code', 'wp-multisite-waas'), + 'default_placeholder' => __('E.g. 10009', 'wp-multisite-waas'), 'wrapper_classes' => 'sm:wu-col-span-1', 'required' => true, ]; diff --git a/inc/objects/class-note.php b/inc/objects/class-note.php index bd8f84c..a901c73 100644 --- a/inc/objects/class-note.php +++ b/inc/objects/class-note.php @@ -195,17 +195,17 @@ class Note { $fields['text'] = [ 'type' => 'text', - 'title' => __('Text', 'wp-ultimo'), + 'title' => __('Text', 'wp-multisite-waas'), ]; $fields['author_id'] = [ 'type' => 'number', - 'title' => __('Author ID', 'wp-ultimo'), + 'title' => __('Author ID', 'wp-multisite-waas'), ]; $fields['note_id'] = [ 'type' => 'text', - 'title' => __('Note ID', 'wp-ultimo'), + 'title' => __('Note ID', 'wp-multisite-waas'), ]; uasort($fields, 'wu_sort_by_order'); diff --git a/inc/site-templates/class-template-placeholders.php b/inc/site-templates/class-template-placeholders.php index bdd68b9..b537541 100644 --- a/inc/site-templates/class-template-placeholders.php +++ b/inc/site-templates/class-template-placeholders.php @@ -161,7 +161,7 @@ class Template_Placeholders { wp_send_json( [ 'code' => 'not-enough-permissions', - 'message' => __('You don\'t have permission to alter placeholders.', 'wp-ultimo'), + 'message' => __('You don\'t have permission to alter placeholders.', 'wp-multisite-waas'), ] ); } @@ -180,7 +180,7 @@ class Template_Placeholders { wp_send_json( [ 'code' => 'success', - 'message' => __('Placeholders successfully updated!', 'wp-ultimo'), + 'message' => __('Placeholders successfully updated!', 'wp-multisite-waas'), ] ); } diff --git a/inc/sso/class-sso.php b/inc/sso/class-sso.php index a67c308..a0f907e 100644 --- a/inc/sso/class-sso.php +++ b/inc/sso/class-sso.php @@ -946,7 +946,7 @@ class SSO { try { $int_version = (int) \DateTime::createFromFormat('Y-m-d H:i:s', $date, $tz)->format('mdisY'); } catch (\Throwable $exception) { - throw new Exception\SSO_Exception(__('SSO secret creation failed.', 'wp-ultimo'), 500); + throw new Exception\SSO_Exception(__('SSO secret creation failed.', 'wp-multisite-waas'), 500); } return wp_hash($int_version); diff --git a/inc/tax/class-dashboard-taxes-tab.php b/inc/tax/class-dashboard-taxes-tab.php index fe378f9..3a829fa 100644 --- a/inc/tax/class-dashboard-taxes-tab.php +++ b/inc/tax/class-dashboard-taxes-tab.php @@ -60,7 +60,7 @@ class Dashboard_Taxes_Tab { $dashboard_filters['taxes'] = [ 'field' => 'type', - 'label' => __('Taxes', 'wp-ultimo'), + 'label' => __('Taxes', 'wp-multisite-waas'), 'url' => add_query_arg('tab', 'taxes'), 'count' => 0, ]; @@ -80,7 +80,7 @@ class Dashboard_Taxes_Tab { [ 'message' => __('You do not have tax support enabled yet...'), 'sub_message' => __('If you need to collect taxes, you\'ll be glad to hear that WP Multisite WaaS offers tax support!'), - 'link_label' => __('Enable Tax Support', 'wp-ultimo'), + 'link_label' => __('Enable Tax Support', 'wp-multisite-waas'), 'link_url' => wu_network_admin_url( 'wp-ultimo-settings', [ @@ -104,7 +104,7 @@ class Dashboard_Taxes_Tab { $back_link = [ [ 'url' => wu_network_admin_url('wp-ultimo'), - 'label' => __('Go Back', 'wp-ultimo'), + 'label' => __('Go Back', 'wp-multisite-waas'), 'icon' => 'wu-reply', ], ]; @@ -148,11 +148,11 @@ class Dashboard_Taxes_Tab { $this->dashboard_page = $dashboard_page; - add_meta_box('wp-ultimo-taxes', __('Taxes', 'wp-ultimo'), [$this, 'output_widget_taxes'], $screen->id, 'full', 'high'); + add_meta_box('wp-ultimo-taxes', __('Taxes', 'wp-multisite-waas'), [$this, 'output_widget_taxes'], $screen->id, 'full', 'high'); - add_meta_box('wp-ultimo-taxes-by-rate', __('Taxes by Code', 'wp-ultimo'), [$this, 'output_widget_taxes_by_rate'], $screen->id, 'normal', 'high'); + add_meta_box('wp-ultimo-taxes-by-rate', __('Taxes by Code', 'wp-multisite-waas'), [$this, 'output_widget_taxes_by_rate'], $screen->id, 'normal', 'high'); - add_meta_box('wp-ultimo-taxes-by-day', __('Taxes by Day', 'wp-ultimo'), [$this, 'output_widget_taxes_by_day'], $screen->id, 'side', 'high'); + add_meta_box('wp-ultimo-taxes-by-day', __('Taxes by Day', 'wp-multisite-waas'), [$this, 'output_widget_taxes_by_day'], $screen->id, 'side', 'high'); $this->register_scripts(); } @@ -211,8 +211,8 @@ class Dashboard_Taxes_Tab { 'today' => date_i18n('Y-m-d', strtotime('tomorrow')), 'month_list' => $month_list, 'i18n' => [ - 'net_profit_label' => __('Net Profit', 'wp-ultimo'), - 'taxes_label' => __('Taxes Collected', 'wp-ultimo'), + 'net_profit_label' => __('Net Profit', 'wp-multisite-waas'), + 'taxes_label' => __('Taxes Collected', 'wp-multisite-waas'), ], ] ); diff --git a/inc/tax/class-tax.php b/inc/tax/class-tax.php index 8d8168d..233331d 100644 --- a/inc/tax/class-tax.php +++ b/inc/tax/class-tax.php @@ -101,8 +101,8 @@ class Tax { wu_register_settings_section( 'taxes', [ - 'title' => __('Taxes', 'wp-ultimo'), - 'desc' => __('Taxes', 'wp-ultimo'), + 'title' => __('Taxes', 'wp-multisite-waas'), + 'desc' => __('Taxes', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-percent', 'order' => 55, ] @@ -112,8 +112,8 @@ class Tax { 'taxes', 'enable_taxes', [ - 'title' => __('Enable Taxes', 'wp-ultimo'), - 'desc' => __('Enable this option to be able to collect sales taxes on your network payments.', 'wp-ultimo'), + 'title' => __('Enable Taxes', 'wp-multisite-waas'), + 'desc' => __('Enable this option to be able to collect sales taxes on your network payments.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, ] @@ -123,8 +123,8 @@ class Tax { 'taxes', 'inclusive_tax', [ - 'title' => __('Inclusive Tax', 'wp-ultimo'), - 'desc' => __('Enable this option if your prices include taxes. In that case, WP Multisite WaaS will calculate the included tax instead of adding taxes to the price.', 'wp-ultimo'), + 'title' => __('Inclusive Tax', 'wp-multisite-waas'), + 'desc' => __('Enable this option if your prices include taxes. In that case, WP Multisite WaaS will calculate the included tax instead of adding taxes to the price.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 0, 'require' => [ @@ -145,7 +145,7 @@ class Tax { wu_register_settings_side_panel( 'taxes', [ - 'title' => __('Tax Rates', 'wp-ultimo'), + 'title' => __('Tax Rates', 'wp-multisite-waas'), 'render' => [$this, 'render_taxes_side_panel'], ] ); @@ -186,7 +186,7 @@ class Tax { return apply_filters( 'wu_get_tax_rate_types', [ - 'regular' => __('Regular', 'wp-ultimo'), + 'regular' => __('Regular', 'wp-multisite-waas'), ] ); } @@ -201,7 +201,7 @@ class Tax { $defaults = [ 'id' => uniqid(), - 'title' => __('Tax Rate', 'wp-ultimo'), + 'title' => __('Tax Rate', 'wp-multisite-waas'), 'country' => '', 'state' => '', 'city' => '', @@ -229,7 +229,7 @@ class Tax { 'tax_rates', [ 'default' => [ - 'name' => __('Default', 'wp-ultimo'), + 'name' => __('Default', 'wp-multisite-waas'), 'rates' => [], ], ] @@ -292,7 +292,7 @@ class Tax { wp_send_json( [ 'code' => 'not-enough-permissions', - 'message' => __('You don\'t have permission to alter tax rates', 'wp-ultimo'), + 'message' => __('You don\'t have permission to alter tax rates', 'wp-multisite-waas'), ] ); } @@ -305,7 +305,7 @@ class Tax { wp_send_json( [ 'code' => 'tax-rates-not-found', - 'message' => __('No tax rates present in the request', 'wp-ultimo'), + 'message' => __('No tax rates present in the request', 'wp-multisite-waas'), ] ); } @@ -337,7 +337,7 @@ class Tax { wp_send_json( [ 'code' => 'success', - 'message' => __('Tax Rates successfully updated!', 'wp-ultimo'), + 'message' => __('Tax Rates successfully updated!', 'wp-multisite-waas'), 'tax_category' => strtolower(sanitize_title(wu_get_isset($data, 'tax_category', 'default'))), ] ); @@ -357,21 +357,21 @@ class Tax {
- +
- <?php esc_attr_e('Manage Tax Rates', 'wp-ultimo'); ?> + <?php esc_attr_e('Manage Tax Rates', 'wp-multisite-waas'); ?>

- +

- +
@@ -379,17 +379,17 @@ class Tax {
- +
- +
diff --git a/inc/traits/trait-wp-ultimo-coupon-deprecated.php b/inc/traits/trait-wp-ultimo-coupon-deprecated.php index 6e12a32..0d16227 100644 --- a/inc/traits/trait-wp-ultimo-coupon-deprecated.php +++ b/inc/traits/trait-wp-ultimo-coupon-deprecated.php @@ -29,7 +29,7 @@ trait WP_Ultimo_Coupon_Deprecated { * * @since 2.0.0 */ - _doing_it_wrong($key, __('Discount Code keys should not be set directly.', 'wp-ultimo'), '2.0.0'); + _doing_it_wrong($key, __('Discount Code keys should not be set directly.', 'wp-multisite-waas'), '2.0.0'); $this->meta[ "wpu_{$key}" ] = $value; } @@ -55,7 +55,7 @@ trait WP_Ultimo_Coupon_Deprecated { if (null === $value) { // translators: the placeholder is the key. - $message = sprintf(__('Discount Codes do not have a %s parameter', 'wp-ultimo'), $key); + $message = sprintf(__('Discount Codes do not have a %s parameter', 'wp-multisite-waas'), $key); // throw new \Exception($message); @@ -67,7 +67,7 @@ trait WP_Ultimo_Coupon_Deprecated { * * @since 2.0.0 */ - _doing_it_wrong($key, __('Discount Code keys should not be accessed directly', 'wp-ultimo'), '2.0.0'); + _doing_it_wrong($key, __('Discount Code keys should not be accessed directly', 'wp-multisite-waas'), '2.0.0'); return $value; } diff --git a/inc/traits/trait-wp-ultimo-plan-deprecated.php b/inc/traits/trait-wp-ultimo-plan-deprecated.php index dd34b4b..7f68476 100644 --- a/inc/traits/trait-wp-ultimo-plan-deprecated.php +++ b/inc/traits/trait-wp-ultimo-plan-deprecated.php @@ -80,7 +80,7 @@ trait WP_Ultimo_Plan_Deprecated { * * @since 2.0.0 */ - _doing_it_wrong($key, __('Product keys should not be accessed directly', 'wp-ultimo'), '2.0.0'); + _doing_it_wrong($key, __('Product keys should not be accessed directly', 'wp-multisite-waas'), '2.0.0'); return $value; } @@ -142,11 +142,11 @@ trait WP_Ultimo_Plan_Deprecated { */ if ($this->should_display_quota_on_pricing_tables('setup_fee', true)) { if ($this->get_pricing_type() === 'contact_us') { - $pricing_table_lines['wu_product_contact_us'] = __('Contact Us to know more', 'wp-ultimo'); + $pricing_table_lines['wu_product_contact_us'] = __('Contact Us to know more', 'wp-multisite-waas'); } else { $pricing_table_lines['wu_product_setup_fee'] = $this->has_setup_fee() - ? sprintf(__('Setup Fee: %s', 'wp-ultimo'), "" . wu_format_currency($this->get_setup_fee()) . '') - : __('No Setup Fee', 'wp-ultimo'); + ? sprintf(__('Setup Fee: %s', 'wp-multisite-waas'), "" . wu_format_currency($this->get_setup_fee()) . '') + : __('No Setup Fee', 'wp-multisite-waas'); } } @@ -169,7 +169,7 @@ trait WP_Ultimo_Plan_Deprecated { if ($this->is_post_type_disabled($pt_slug)) { // Translators: used as "No Posts" where a post type is disabled - $pricing_table_lines[ 'wu_product_limit_post_type_' . $pt_slug ] = sprintf(__('No %s', 'wp-ultimo'), $post_type->labels->name); + $pricing_table_lines[ 'wu_product_limit_post_type_' . $pt_slug ] = sprintf(__('No %s', 'wp-multisite-waas'), $post_type->labels->name); continue; } @@ -180,7 +180,7 @@ trait WP_Ultimo_Plan_Deprecated { * @var integer|string */ $is_unlimited = (int) $this->get_limitations()->post_types->{$pt_slug}->number === 0 || ! $this->get_limitations()->post_types->is_enabled(); - $value = $is_unlimited ? __('Unlimited', 'wp-ultimo') : $this->get_limitations()->post_types->{$pt_slug}->number; + $value = $is_unlimited ? __('Unlimited', 'wp-multisite-waas') : $this->get_limitations()->post_types->{$pt_slug}->number; // Add Line $label = 1 == $value ? $post_type->labels->singular_name : $post_type->labels->name; @@ -196,10 +196,10 @@ trait WP_Ultimo_Plan_Deprecated { */ if (wu_get_setting('enable_multiple_sites') && $this->should_display_quota_on_pricing_tables('sites')) { $is_unlimited = (int) $this->get_limitations()->sites->get_limit() === 0 || ! $this->get_limitations()->sites->is_enabled(); - $value = $is_unlimited ? __('Unlimited', 'wp-ultimo') : $this->get_limitations()->sites->get_limit(); + $value = $is_unlimited ? __('Unlimited', 'wp-multisite-waas') : $this->get_limitations()->sites->get_limit(); // Add Line - $pricing_table_lines['wu_product_limit_sites'] = sprintf('%s %s', $value, _n('Site', 'Sites', $this->get_limitations()->sites->get_limit(), 'wp-ultimo')); + $pricing_table_lines['wu_product_limit_sites'] = sprintf('%s %s', $value, _n('Site', 'Sites', $this->get_limitations()->sites->get_limit(), 'wp-multisite-waas')); } /** @@ -207,10 +207,10 @@ trait WP_Ultimo_Plan_Deprecated { */ if ($this->should_display_quota_on_pricing_tables('upload')) { $is_unlimited = (int) $this->get_limitations()->disk_space->get_limit() === 0 || ! $this->get_limitations()->disk_space->is_enabled(); - $disk_space = $is_unlimited ? __('Unlimited', 'wp-ultimo') : size_format(absint($this->get_limitations()->disk_space->get_limit()) * 1024 * 1024); + $disk_space = $is_unlimited ? __('Unlimited', 'wp-multisite-waas') : size_format(absint($this->get_limitations()->disk_space->get_limit()) * 1024 * 1024); // Add Line - $pricing_table_lines['wu_product_limit_disk_space'] = ! empty($disk_space) ? sprintf(__('%s Disk Space', 'wp-ultimo'), $disk_space) : false; + $pricing_table_lines['wu_product_limit_disk_space'] = ! empty($disk_space) ? sprintf(__('%s Disk Space', 'wp-multisite-waas'), $disk_space) : false; } /** @@ -220,10 +220,10 @@ trait WP_Ultimo_Plan_Deprecated { */ if ($this->should_display_quota_on_pricing_tables('visits')) { $is_unlimited = (int) $this->get_limitations()->visits->get_limit() === 0 || ! $this->get_limitations()->visits->is_enabled(); - $value = $is_unlimited ? __('Unlimited', 'wp-ultimo') : number_format($this->get_limitations()->visits->get_limit()); + $value = $is_unlimited ? __('Unlimited', 'wp-multisite-waas') : number_format($this->get_limitations()->visits->get_limit()); // Add Line - $pricing_table_lines['wu_product_limit_visits'] = sprintf('%s %s', $value, _n('Visit per month', 'Visits per month', $this->get_limitations()->visits->get_limit(), 'wp-ultimo')); + $pricing_table_lines['wu_product_limit_visits'] = sprintf('%s %s', $value, _n('Visit per month', 'Visits per month', $this->get_limitations()->visits->get_limit(), 'wp-multisite-waas')); } /** @@ -235,7 +235,7 @@ trait WP_Ultimo_Plan_Deprecated { if ($trial_days > 0 || $trial_days_plan) { $trial_days = $trial_days_plan ?: $trial_days; - $pricing_table_lines['wu_product_trial'] = ! $this->is_free() ? sprintf(__('%s day Free Trial', 'wp-ultimo'), $trial_days) : '-'; + $pricing_table_lines['wu_product_trial'] = ! $this->is_free() ? sprintf(__('%s day Free Trial', 'wp-multisite-waas'), $trial_days) : '-'; } /** diff --git a/inc/traits/trait-wp-ultimo-settings-deprecated.php b/inc/traits/trait-wp-ultimo-settings-deprecated.php index b71b8e6..c717e3a 100644 --- a/inc/traits/trait-wp-ultimo-settings-deprecated.php +++ b/inc/traits/trait-wp-ultimo-settings-deprecated.php @@ -74,8 +74,8 @@ trait WP_Ultimo_Settings_Deprecated { $this->add_section( 'other', [ - 'title' => __('Other', 'wp-ultimo'), - 'desc' => __('Other', 'wp-ultimo'), + 'title' => __('Other', 'wp-multisite-waas'), + 'desc' => __('Other', 'wp-multisite-waas'), ] ); diff --git a/inc/traits/trait-wp-ultimo-site-deprecated.php b/inc/traits/trait-wp-ultimo-site-deprecated.php index 6db5237..1d78f74 100644 --- a/inc/traits/trait-wp-ultimo-site-deprecated.php +++ b/inc/traits/trait-wp-ultimo-site-deprecated.php @@ -39,7 +39,7 @@ trait WP_Ultimo_Site_Deprecated { * * @since 2.0.0 */ - _doing_it_wrong($key, __('Product keys should not be accessed directly', 'wp-ultimo'), '2.0.0'); + _doing_it_wrong($key, __('Product keys should not be accessed directly', 'wp-multisite-waas'), '2.0.0'); return $value; } diff --git a/inc/traits/trait-wp-ultimo-subscription-deprecated.php b/inc/traits/trait-wp-ultimo-subscription-deprecated.php index 442db11..c89eba7 100644 --- a/inc/traits/trait-wp-ultimo-subscription-deprecated.php +++ b/inc/traits/trait-wp-ultimo-subscription-deprecated.php @@ -38,7 +38,7 @@ trait WP_Ultimo_Subscription_Deprecated { * * @since 2.0.0 */ - _doing_it_wrong($key, __('Membership keys should not be accessed directly', 'wp-ultimo'), '2.0.0'); + _doing_it_wrong($key, __('Membership keys should not be accessed directly', 'wp-multisite-waas'), '2.0.0'); return $value; } diff --git a/inc/ui/class-account-summary-element.php b/inc/ui/class-account-summary-element.php index eb918ad..c608b4b 100644 --- a/inc/ui/class-account-summary-element.php +++ b/inc/ui/class-account-summary-element.php @@ -100,14 +100,14 @@ class Account_Summary_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Account Summary', 'wp-ultimo'); + return __('Account Summary', 'wp-multisite-waas'); } /** @@ -116,14 +116,14 @@ class Account_Summary_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a account summary block to the page.', 'wp-ultimo'); + return __('Adds a account summary block to the page.', 'wp-multisite-waas'); } /** @@ -148,16 +148,16 @@ class Account_Summary_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'wp-ultimo'), - 'value' => __('About this Site', 'wp-ultimo'), - 'desc' => __('Leave blank to hide the title completely.', 'wp-ultimo'), + 'title' => __('Title', 'wp-multisite-waas'), + 'value' => __('About this Site', 'wp-multisite-waas'), + 'desc' => __('Leave blank to hide the title completely.', 'wp-multisite-waas'), 'tooltip' => '', ]; @@ -208,7 +208,7 @@ class Account_Summary_Element extends Base_Element { public function defaults() { return [ - 'title' => __('About this Site', 'wp-ultimo'), + 'title' => __('About this Site', 'wp-multisite-waas'), ]; } diff --git a/inc/ui/class-base-element.php b/inc/ui/class-base-element.php index 129787c..e0c6e4f 100644 --- a/inc/ui/class-base-element.php +++ b/inc/ui/class-base-element.php @@ -120,7 +120,7 @@ abstract class Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string @@ -133,7 +133,7 @@ abstract class Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string @@ -743,12 +743,12 @@ abstract class Base_Element { $fields['shortcode_result'] = [ 'type' => 'note', 'wrapper_classes' => 'sm:wu-block', - 'desc' => '
' . __('Result', 'wp-ultimo') . '
', + 'desc' => '
' . __('Result', 'wp-multisite-waas') . '
', ]; $fields['submit_copy'] = [ 'type' => 'submit', - 'title' => __('Copy Shortcode', 'wp-ultimo'), + 'title' => __('Copy Shortcode', 'wp-multisite-waas'), 'value' => 'edit', 'classes' => 'button button-primary wu-w-full wu-copy', 'wrapper_classes' => 'wu-items-end', @@ -797,8 +797,8 @@ abstract class Base_Element { $fields['hide'] = [ 'type' => 'toggle', - 'title' => __('Hide Element', 'wp-ultimo'), - 'desc' => __('Be careful. Hiding an element from the account page might remove important functionality from your customers\' reach.', 'wp-ultimo'), + 'title' => __('Hide Element', 'wp-multisite-waas'), + 'desc' => __('Be careful. Hiding an element from the account page might remove important functionality from your customers\' reach.', 'wp-multisite-waas'), 'value' => $this->hidden_by_default, 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -833,14 +833,14 @@ abstract class Base_Element { 'fields' => [ 'restore' => [ 'type' => 'submit', - 'title' => __('Reset Settings', 'wp-ultimo'), + 'title' => __('Reset Settings', 'wp-multisite-waas'), 'value' => 'edit', 'classes' => 'button', 'wrapper_classes' => 'wu-mb-0', ], 'submit' => [ 'type' => 'submit', - 'title' => __('Save Changes', 'wp-ultimo'), + 'title' => __('Save Changes', 'wp-multisite-waas'), 'value' => 'edit', 'classes' => 'button button-primary', 'wrapper_classes' => 'wu-mb-0', @@ -1052,7 +1052,7 @@ abstract class Base_Element { public function as_inline_content($screen_id, $hook = 'admin_notices', $atts = []): void { if ( ! function_exists('get_current_screen')) { - _doing_it_wrong(__METHOD__, esc_html__('An element can not be loaded as inline content unless the get_current_screen() function is already available.', 'wp-ultimo'), '2.0.0'); + _doing_it_wrong(__METHOD__, esc_html__('An element can not be loaded as inline content unless the get_current_screen() function is already available.', 'wp-multisite-waas'), '2.0.0'); return; } @@ -1206,9 +1206,9 @@ abstract class Base_Element { if ($should_display) { // translators: %1$s is the URL to the customize modal. %2$s is the URL of the shortcode generation modal - $message = __('Customize this element, or generate a shortcode to use it on the front-end!', 'wp-ultimo'); + $message = __('Customize this element, or generate a shortcode to use it on the front-end!', 'wp-multisite-waas'); - $message .= wu_tooltip(__('You are seeing this because you are a super admin', 'wp-ultimo')); + $message .= wu_tooltip(__('You are seeing this because you are a super admin', 'wp-multisite-waas')); $link_shortcode = wu_get_form_url("shortcode_{$this->id}"); $link_customize = wu_get_form_url("customize_{$this->id}"); diff --git a/inc/ui/class-billing-info-element.php b/inc/ui/class-billing-info-element.php index 57bf74b..7ef494d 100644 --- a/inc/ui/class-billing-info-element.php +++ b/inc/ui/class-billing-info-element.php @@ -114,14 +114,14 @@ class Billing_Info_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Billing Information', 'wp-ultimo'); + return __('Billing Information', 'wp-multisite-waas'); } /** @@ -130,14 +130,14 @@ class Billing_Info_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'wp-ultimo'); + return __('Adds a checkout form block to the page.', 'wp-multisite-waas'); } /** @@ -162,16 +162,16 @@ class Billing_Info_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'wp-ultimo'), - 'value' => __('Billing Address', 'wp-ultimo'), - 'desc' => __('Leave blank to hide the title completely.', 'wp-ultimo'), + 'title' => __('Title', 'wp-multisite-waas'), + 'value' => __('Billing Address', 'wp-multisite-waas'), + 'desc' => __('Leave blank to hide the title completely.', 'wp-multisite-waas'), 'tooltip' => '', ]; @@ -223,7 +223,7 @@ class Billing_Info_Element extends Base_Element { public function defaults() { return [ - 'title' => __('Billing Address', 'wp-ultimo'), + 'title' => __('Billing Address', 'wp-multisite-waas'), ]; } @@ -325,8 +325,8 @@ class Billing_Info_Element extends Base_Element { $fields['billing-title'] = [ 'type' => 'header', 'order' => 1, - 'title' => __('Your Address', 'wp-ultimo'), - 'desc' => __('Enter your billing address here. This info will be used on your invoices.', 'wp-ultimo'), + 'title' => __('Your Address', 'wp-multisite-waas'), + 'desc' => __('Enter your billing address here. This info will be used on your invoices.', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-col-span-2', ]; @@ -336,7 +336,7 @@ class Billing_Info_Element extends Base_Element { $fields['submit'] = [ 'type' => 'submit', - 'title' => __('Save Changes', 'wp-ultimo'), + 'title' => __('Save Changes', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-col-span-2', @@ -375,7 +375,7 @@ class Billing_Info_Element extends Base_Element { $membership = wu_get_membership_by_hash(wu_request('membership')); if ( ! $membership) { - $error = new \WP_Error('membership-dont-exist', __('Something went wrong.', 'wp-ultimo')); + $error = new \WP_Error('membership-dont-exist', __('Something went wrong.', 'wp-multisite-waas')); wp_send_json_error($error); } diff --git a/inc/ui/class-checkout-element.php b/inc/ui/class-checkout-element.php index 67a2f65..e34c5be 100644 --- a/inc/ui/class-checkout-element.php +++ b/inc/ui/class-checkout-element.php @@ -101,14 +101,14 @@ class Checkout_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Checkout', 'wp-ultimo'); + return __('Checkout', 'wp-multisite-waas'); } /** @@ -117,14 +117,14 @@ class Checkout_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'wp-ultimo'); + return __('Adds a checkout form block to the page.', 'wp-multisite-waas'); } /** @@ -149,14 +149,14 @@ class Checkout_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['slug'] = [ - 'title' => __('Slug', 'wp-ultimo'), - 'desc' => __('The checkout form slug.', 'wp-ultimo'), + 'title' => __('Slug', 'wp-multisite-waas'), + 'desc' => __('The checkout form slug.', 'wp-multisite-waas'), 'type' => 'text', ]; @@ -336,7 +336,7 @@ class Checkout_Element extends Base_Element { */ // Translators: Placeholder receives the customer display name - $message = sprintf(__('Hi %s. You have a pending payment for your membership!', 'wp-ultimo'), $customer->get_display_name()); + $message = sprintf(__('Hi %s. You have a pending payment for your membership!', 'wp-multisite-waas'), $customer->get_display_name()); $payment_url = add_query_arg( [ @@ -346,7 +346,7 @@ class Checkout_Element extends Base_Element { ); // Translators: The link to registration url with payment hash - $message .= '
' . sprintf(__('Click here to pay.', 'wp-ultimo'), $payment_url); + $message .= '
' . sprintf(__('Click here to pay.', 'wp-multisite-waas'), $payment_url); $message = '

' . $message . '

'; @@ -367,7 +367,7 @@ class Checkout_Element extends Base_Element { if ( ! $membership->is_active() && $membership->get_status() !== Membership_Status::TRIALING && in_array($atts['slug'], $membership_blocked_forms, true)) { // Translators: Placeholder receives the customer display name - $message = sprintf(__('Hi %s. You cannot take action on your membership while it is not active!', 'wp-ultimo'), $customer->get_display_name()); + $message = sprintf(__('Hi %s. You cannot take action on your membership while it is not active!', 'wp-multisite-waas'), $customer->get_display_name()); if ($membership->get_status() === Membership_Status::PENDING && $customer->get_email_verification() === 'pending') { /** @@ -383,17 +383,17 @@ class Checkout_Element extends Base_Element { 'resend_verification_email_nonce' => wp_create_nonce('wu_resend_verification_email_nonce'), 'membership_hash' => $membership->get_hash(), 'i18n' => [ - 'resending_verification_email' => __('Resending verification email...', 'wp-ultimo'), - 'email_sent' => __('Verification email sent!', 'wp-ultimo'), + 'resending_verification_email' => __('Resending verification email...', 'wp-multisite-waas'), + 'email_sent' => __('Verification email sent!', 'wp-multisite-waas'), ], ] ); wp_enqueue_script('wu-thank-you'); - $message .= '

' . __('Check your inbox and verify your email address.', 'wp-ultimo') . '

'; + $message .= '

' . __('Check your inbox and verify your email address.', 'wp-multisite-waas') . '

'; $message .= ''; - $message .= sprintf('%s', __('Resend verification email', 'wp-ultimo')); + $message .= sprintf('%s', __('Resend verification email', 'wp-multisite-waas')); $message .= ''; } @@ -423,11 +423,11 @@ class Checkout_Element extends Base_Element { ); if ( ! in_array($slug, $allowed_forms, true) && ! wu_request('payment')) { - $message = sprintf('

%s

', __('You already have a membership!', 'wp-ultimo')); + $message = sprintf('

%s

', __('You already have a membership!', 'wp-multisite-waas')); if (isset($published_sites[0])) { $account_link = get_admin_url($published_sites[0]->get_id(), 'admin.php?page=account'); - $button_text = __('Go to my account', 'wp-ultimo'); + $button_text = __('Go to my account', 'wp-multisite-waas'); $message .= "

$button_text

"; } @@ -443,7 +443,7 @@ class Checkout_Element extends Base_Element { } if ($membership && $membership->get_customer_id() !== $customer->get_id()) { - $message = sprintf('

%s

', __('You are not allowed to change this membership!', 'wp-ultimo')); + $message = sprintf('

%s

', __('You are not allowed to change this membership!', 'wp-multisite-waas')); /** * Allow developers to change the message if customer is not part of the membership @@ -482,13 +482,13 @@ class Checkout_Element extends Base_Element { if ($used_limit >= $limit_max) { // Translators: Placeholder receives the limit name - $message = '

' . sprintf(__('You reached your membership %s limit!', 'wp-ultimo'), $limitation) . '

'; + $message = '

' . sprintf(__('You reached your membership %s limit!', 'wp-multisite-waas'), $limitation) . '

'; $message .= ''; if (wu_multiple_memberships_enabled()) { $register_page = wu_get_registration_url(); - $button_text = __('Buy a new membership', 'wp-ultimo'); + $button_text = __('Buy a new membership', 'wp-multisite-waas'); $message .= "$button_text"; } @@ -514,7 +514,7 @@ class Checkout_Element extends Base_Element { } if ( ! empty($update_link)) { - $button_text = __('Upgrade your account', 'wp-ultimo'); + $button_text = __('Upgrade your account', 'wp-multisite-waas'); $message .= "$button_text"; } @@ -538,12 +538,12 @@ class Checkout_Element extends Base_Element { } } elseif ( ! $customer && 'wu-finish-checkout' === $slug) { if (is_user_logged_in()) { - $message = __('You need to be the account owner to complete this payment.', 'wp-ultimo'); + $message = __('You need to be the account owner to complete this payment.', 'wp-multisite-waas'); } else { - $message = __('You need to be logged in to complete a payment', 'wp-ultimo'); + $message = __('You need to be logged in to complete a payment', 'wp-multisite-waas'); // Translators: The link to login url with redirect_to url - $message .= '
' . sprintf(__('Click here sign in.', 'wp-ultimo'), wp_login_url(wu_get_current_url())); + $message .= '
' . sprintf(__('Click here sign in.', 'wp-multisite-waas'), wp_login_url(wu_get_current_url())); } $message = '

' . $message . '

'; @@ -561,24 +561,24 @@ class Checkout_Element extends Base_Element { if ( ! $checkout_form) { // translators: %s is the id of the form. e.g. main-form - return sprintf(__('Checkout form %s not found.', 'wp-ultimo'), $slug); + return sprintf(__('Checkout form %s not found.', 'wp-multisite-waas'), $slug); } if ($checkout_form->get_field_count() === 0) { // translators: %s is the id of the form. e.g. main-form - return sprintf(__('Checkout form %s contains no fields.', 'wp-ultimo'), $slug); + return sprintf(__('Checkout form %s contains no fields.', 'wp-multisite-waas'), $slug); } if ( ! $checkout_form->is_active() || ! wu_get_setting('enable_registration', true)) { - return sprintf('

%s

', __('Registration is not available at this time.', 'wp-ultimo')); + return sprintf('

%s

', __('Registration is not available at this time.', 'wp-multisite-waas')); } if ($checkout_form->has_country_lock()) { $geolocation = \WP_Ultimo\Geolocation::geolocate_ip('', true); if ( ! in_array($geolocation['country'], $checkout_form->get_allowed_countries(), true)) { - return sprintf('

%s

', __('Registration is closed for your location.', 'wp-ultimo')); + return sprintf('

%s

', __('Registration is closed for your location.', 'wp-multisite-waas')); } } diff --git a/inc/ui/class-current-membership-element.php b/inc/ui/class-current-membership-element.php index ef149ca..79496b2 100644 --- a/inc/ui/class-current-membership-element.php +++ b/inc/ui/class-current-membership-element.php @@ -123,14 +123,14 @@ class Current_Membership_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Membership', 'wp-ultimo'); + return __('Membership', 'wp-multisite-waas'); } /** @@ -139,14 +139,14 @@ class Current_Membership_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'wp-ultimo'); + return __('Adds a checkout form block to the page.', 'wp-multisite-waas'); } /** @@ -171,31 +171,31 @@ class Current_Membership_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'wp-ultimo'), - 'value' => __('Your Membership', 'wp-ultimo'), - 'desc' => __('Leave blank to hide the title completely.', 'wp-ultimo'), + 'title' => __('Title', 'wp-multisite-waas'), + 'value' => __('Your Membership', 'wp-multisite-waas'), + 'desc' => __('Leave blank to hide the title completely.', 'wp-multisite-waas'), 'tooltip' => '', ]; $fields['display_images'] = [ 'type' => 'toggle', - 'title' => __('Display Product Images?', 'wp-ultimo'), - 'desc' => __('Toggle to show/hide the product images on the element.', 'wp-ultimo'), + 'title' => __('Display Product Images?', 'wp-multisite-waas'), + 'desc' => __('Toggle to show/hide the product images on the element.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, ]; $fields['columns'] = [ 'type' => 'number', - 'title' => __('Columns', 'wp-ultimo'), - 'desc' => __('How many columns to use.', 'wp-ultimo'), + 'title' => __('Columns', 'wp-multisite-waas'), + 'desc' => __('How many columns to use.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 2, 'min' => 1, @@ -250,7 +250,7 @@ class Current_Membership_Element extends Base_Element { public function defaults() { return [ - 'title' => __('Your Membership', 'wp-ultimo'), + 'title' => __('Your Membership', 'wp-multisite-waas'), 'display_images' => 1, 'columns' => 2, ]; @@ -370,19 +370,19 @@ class Current_Membership_Element extends Base_Element { $error = ''; if ( ! $membership) { - $error = __('Membership not selected.', 'wp-ultimo'); + $error = __('Membership not selected.', 'wp-multisite-waas'); } $product = wu_get_product_by_slug(wu_request('product')); if ( ! $product) { - $error = __('Product not selected.', 'wp-ultimo'); + $error = __('Product not selected.', 'wp-multisite-waas'); } $customer = wu_get_current_customer(); if (empty($error) && ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) { - $error = __('You are not allowed to do this.', 'wp-ultimo'); + $error = __('You are not allowed to do this.', 'wp-multisite-waas'); } if ( ! empty($error)) { @@ -439,7 +439,7 @@ class Current_Membership_Element extends Base_Element { ], 'quantity' => [ 'type' => 'number', - 'title' => __('Quantity to Cancel', 'wp-ultimo'), + 'title' => __('Quantity to Cancel', 'wp-multisite-waas'), 'value' => 1, 'placeholder' => 1, 'wrapper_classes' => 'wu-w-1/2', @@ -455,8 +455,8 @@ class Current_Membership_Element extends Base_Element { ], 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Product Cancellation', 'wp-ultimo'), - 'desc' => __('This action can not be undone.', 'wp-ultimo'), + 'title' => __('Confirm Product Cancellation', 'wp-multisite-waas'), + 'desc' => __('This action can not be undone.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], @@ -468,8 +468,8 @@ class Current_Membership_Element extends Base_Element { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Cancel Product Subscription', 'wp-ultimo'), - 'placeholder' => __('Cancel Product Subscription', 'wp-ultimo'), + 'title' => __('Cancel Product Subscription', 'wp-multisite-waas'), + 'placeholder' => __('Cancel Product Subscription', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -513,7 +513,7 @@ class Current_Membership_Element extends Base_Element { public function handle_edit_membership_product_modal(): void { if ( ! wu_request('confirm')) { - $error = new \WP_Error('not-confirmed', __('Please confirm the cancellation.', 'wp-ultimo')); + $error = new \WP_Error('not-confirmed', __('Please confirm the cancellation.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -521,7 +521,7 @@ class Current_Membership_Element extends Base_Element { $membership = wu_get_membership_by_hash(wu_request('membership')); if ( ! $membership) { - $error = new \WP_Error('membership-not-found', __('Membership not found.', 'wp-ultimo')); + $error = new \WP_Error('membership-not-found', __('Membership not found.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -529,7 +529,7 @@ class Current_Membership_Element extends Base_Element { $product = wu_get_product_by_slug(wu_request('product')); if ( ! $product) { - $error = new \WP_Error('product-not-found', __('Product not found.', 'wp-ultimo')); + $error = new \WP_Error('product-not-found', __('Product not found.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -537,7 +537,7 @@ class Current_Membership_Element extends Base_Element { $customer = wu_get_current_customer(); if ( ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) { - $error = __('You are not allowed to do this.', 'wp-ultimo'); + $error = __('You are not allowed to do this.', 'wp-multisite-waas'); wp_send_json_error($error); } @@ -587,7 +587,7 @@ class Current_Membership_Element extends Base_Element { $removed_quantity = $quantity + $existing_difference; // translators: %1$s is the quantity removed, %2$s is the product name. - $description = sprintf(__('remove %1$s %2$s from membership', 'wp-ultimo'), $removed_quantity, $product->get_name()); + $description = sprintf(__('remove %1$s %2$s from membership', 'wp-multisite-waas'), $removed_quantity, $product->get_name()); $cart->set_cart_descriptor($description); diff --git a/inc/ui/class-current-site-element.php b/inc/ui/class-current-site-element.php index 6bdf708..e043f44 100644 --- a/inc/ui/class-current-site-element.php +++ b/inc/ui/class-current-site-element.php @@ -103,14 +103,14 @@ class Current_Site_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Site', 'wp-ultimo'); + return __('Site', 'wp-multisite-waas'); } /** @@ -119,14 +119,14 @@ class Current_Site_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a block to display the current site being managed.', 'wp-ultimo'); + return __('Adds a block to display the current site being managed.', 'wp-multisite-waas'); } /** @@ -151,15 +151,15 @@ class Current_Site_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['display_breadcrumbs'] = [ 'type' => 'toggle', - 'title' => __('Display Breadcrumbs?', 'wp-ultimo'), - 'desc' => __('Toggle to show/hide the breadcrumbs block.', 'wp-ultimo'), + 'title' => __('Display Breadcrumbs?', 'wp-multisite-waas'), + 'desc' => __('Toggle to show/hide the breadcrumbs block.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, ]; @@ -172,7 +172,7 @@ class Current_Site_Element extends Base_Element { $pages = $pages ?: []; - $pages_list = [0 => __('Current Page', 'wp-ultimo')]; + $pages_list = [0 => __('Current Page', 'wp-multisite-waas')]; foreach ($pages as $page) { $pages_list[ $page->ID ] = $page->post_title; @@ -180,31 +180,31 @@ class Current_Site_Element extends Base_Element { $fields['breadcrumbs_my_sites_page'] = [ 'type' => 'select', - 'title' => __('My Sites Page', 'wp-ultimo'), + 'title' => __('My Sites Page', 'wp-multisite-waas'), 'value' => 0, - 'desc' => __('The page with the customer sites list.', 'wp-ultimo'), + 'desc' => __('The page with the customer sites list.', 'wp-multisite-waas'), 'options' => $pages_list, ]; $fields['display_description'] = [ 'type' => 'toggle', - 'title' => __('Display Site Description?', 'wp-ultimo'), - 'desc' => __('Toggle to show/hide the site description on the element.', 'wp-ultimo'), + 'title' => __('Display Site Description?', 'wp-multisite-waas'), + 'desc' => __('Toggle to show/hide the site description on the element.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 0, ]; $fields['display_image'] = [ 'type' => 'toggle', - 'title' => __('Display Site Screenshot?', 'wp-ultimo'), - 'desc' => __('Toggle to show/hide the site screenshots on the element.', 'wp-ultimo'), + 'title' => __('Display Site Screenshot?', 'wp-multisite-waas'), + 'desc' => __('Toggle to show/hide the site screenshots on the element.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, ]; $fields['screenshot_size'] = [ 'type' => 'number', - 'title' => __('Screenshot Size', 'wp-ultimo'), + 'title' => __('Screenshot Size', 'wp-multisite-waas'), 'desc' => '', 'tooltip' => '', 'value' => 200, @@ -217,10 +217,10 @@ class Current_Site_Element extends Base_Element { $fields['screenshot_position'] = [ 'type' => 'select', - 'title' => __('Screenshot Position', 'wp-ultimo'), + 'title' => __('Screenshot Position', 'wp-multisite-waas'), 'options' => [ - 'right' => __('Right', 'wp-ultimo'), - 'left' => __('Left', 'wp-ultimo'), + 'right' => __('Right', 'wp-multisite-waas'), + 'left' => __('Left', 'wp-multisite-waas'), ], 'desc' => '', 'tooltip' => '', @@ -232,8 +232,8 @@ class Current_Site_Element extends Base_Element { $fields['show_admin_link'] = [ 'type' => 'toggle', - 'title' => __('Show Admin Link?', 'wp-ultimo'), - 'desc' => __('Toggle to show/hide the WP admin link on the element.', 'wp-ultimo'), + 'title' => __('Show Admin Link?', 'wp-multisite-waas'), + 'desc' => __('Toggle to show/hide the WP admin link on the element.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, ]; @@ -356,13 +356,13 @@ class Current_Site_Element extends Base_Element { $actions = [ 'visit_site' => [ - 'label' => __('Visit Site', 'wp-ultimo'), + 'label' => __('Visit Site', 'wp-multisite-waas'), 'icon_classes' => 'dashicons-wu-browser wu-align-text-bottom', 'classes' => '', 'href' => $this->site->get_active_site_url(), ], 'edit_site' => [ - 'label' => __('Edit Site', 'wp-ultimo'), + 'label' => __('Edit Site', 'wp-multisite-waas'), 'icon_classes' => 'dashicons-wu-edit wu-align-text-bottom', 'classes' => 'wubox', 'href' => wu_get_form_url( @@ -376,7 +376,7 @@ class Current_Site_Element extends Base_Element { if ($atts['show_admin_link']) { $actions['site_admin'] = [ - 'label' => __('Admin Panel', 'wp-ultimo'), + 'label' => __('Admin Panel', 'wp-multisite-waas'), 'icon_classes' => 'dashicons-wu-grid wu-align-text-bottom', 'classes' => '', 'href' => get_admin_url($this->site->get_id()), @@ -413,8 +413,8 @@ class Current_Site_Element extends Base_Element { $fields = [ 'site_title' => [ 'type' => 'text', - 'title' => __('Site Title', 'wp-ultimo'), - 'placeholder' => __('e.g. My Awesome Site', 'wp-ultimo'), + 'title' => __('Site Title', 'wp-multisite-waas'), + 'placeholder' => __('e.g. My Awesome Site', 'wp-multisite-waas'), 'value' => $site->get_title(), 'html_attr' => [ 'v-model' => 'site_title', @@ -422,8 +422,8 @@ class Current_Site_Element extends Base_Element { ], 'site_description' => [ 'type' => 'textarea', - 'title' => __('Site Description', 'wp-ultimo'), - 'placeholder' => __('e.g. My Awesome Site description.', 'wp-ultimo'), + 'title' => __('Site Description', 'wp-multisite-waas'), + 'placeholder' => __('e.g. My Awesome Site description.', 'wp-multisite-waas'), 'value' => $site->get_description(), 'html_attr' => [ 'rows' => 5, @@ -435,7 +435,7 @@ class Current_Site_Element extends Base_Element { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Save Changes', 'wp-ultimo'), + 'title' => __('Save Changes', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -479,7 +479,7 @@ class Current_Site_Element extends Base_Element { $site = wu_get_site_by_hash(wu_request('site')); if ( ! $site) { - $error = new \WP_Error('site-dont-exist', __('Something went wrong.', 'wp-ultimo')); + $error = new \WP_Error('site-dont-exist', __('Something went wrong.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -487,7 +487,7 @@ class Current_Site_Element extends Base_Element { $new_title = wu_request('site_title'); if ( ! $new_title) { - $error = new \WP_Error('title_empty', __('Site title can not be empty.', 'wp-ultimo')); + $error = new \WP_Error('title_empty', __('Site title can not be empty.', 'wp-multisite-waas')); wp_send_json_error($error); } diff --git a/inc/ui/class-domain-mapping-element.php b/inc/ui/class-domain-mapping-element.php index d1c8258..42b2650 100644 --- a/inc/ui/class-domain-mapping-element.php +++ b/inc/ui/class-domain-mapping-element.php @@ -87,14 +87,14 @@ class Domain_Mapping_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Domains', 'wp-ultimo'); + return __('Domains', 'wp-multisite-waas'); } /** @@ -103,14 +103,14 @@ class Domain_Mapping_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds the site\'s domains block.', 'wp-ultimo'); + return __('Adds the site\'s domains block.', 'wp-multisite-waas'); } /** @@ -135,16 +135,16 @@ class Domain_Mapping_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'wp-ultimo'), - 'value' => __('Domains', 'wp-ultimo'), - 'desc' => __('Leave blank to hide the title completely.', 'wp-ultimo'), + 'title' => __('Title', 'wp-multisite-waas'), + 'value' => __('Domains', 'wp-multisite-waas'), + 'desc' => __('Leave blank to hide the title completely.', 'wp-multisite-waas'), 'tooltip' => '', ]; @@ -194,7 +194,7 @@ class Domain_Mapping_Element extends Base_Element { public function defaults() { return [ - 'title' => __('Domains', 'wp-ultimo'), + 'title' => __('Domains', 'wp-multisite-waas'), ]; } @@ -291,7 +291,7 @@ class Domain_Mapping_Element extends Base_Element { $fields = [ 'instructions_note' => [ 'type' => 'note', - 'desc' => sprintf('%s', __('← Back to the Instructions', 'wp-ultimo')), + 'desc' => sprintf('%s', __('← Back to the Instructions', 'wp-multisite-waas')), 'wrapper_html_attr' => [ 'v-if' => 'ready', 'v-cloak' => '1', @@ -300,7 +300,7 @@ class Domain_Mapping_Element extends Base_Element { 'instructions' => [ 'type' => 'text-display', 'copy' => false, - 'title' => __('Instructions', 'wp-ultimo'), + 'title' => __('Instructions', 'wp-multisite-waas'), 'tooltip' => '', 'display_value' => sprintf('
%s
', wpautop($instructions)), 'wrapper_html_attr' => [ @@ -310,7 +310,7 @@ class Domain_Mapping_Element extends Base_Element { ], 'ready' => [ 'type' => 'submit', - 'title' => __('Next Step →', 'wp-ultimo'), + 'title' => __('Next Step →', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -328,8 +328,8 @@ class Domain_Mapping_Element extends Base_Element { ], 'domain' => [ 'type' => 'text', - 'title' => __('Domain', 'wp-ultimo'), - 'placeholder' => __('mydomain.com', 'wp-ultimo'), + 'title' => __('Domain', 'wp-multisite-waas'), + 'placeholder' => __('mydomain.com', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => 'ready', 'v-cloak' => 1, @@ -337,8 +337,8 @@ class Domain_Mapping_Element extends Base_Element { ], 'primary_domain' => [ 'type' => 'toggle', - 'title' => __('Primary Domain', 'wp-ultimo'), - 'desc' => __('Check to set this domain as the primary', 'wp-ultimo'), + 'title' => __('Primary Domain', 'wp-multisite-waas'), + 'desc' => __('Check to set this domain as the primary', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'primary_domain', ], @@ -349,7 +349,7 @@ class Domain_Mapping_Element extends Base_Element { ], 'primary_note' => [ 'type' => 'note', - 'desc' => __('By making this the primary domain, we will convert the previous primary domain for this site, if one exists, into an alias domain.', 'wp-ultimo'), + 'desc' => __('By making this the primary domain, we will convert the previous primary domain for this site, if one exists, into an alias domain.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-if' => "require('primary_domain', true) && ready", 'v-cloak' => 1, @@ -357,7 +357,7 @@ class Domain_Mapping_Element extends Base_Element { ], 'submit_button_new' => [ 'type' => 'submit', - 'title' => __('Add Domain', 'wp-ultimo'), + 'title' => __('Add Domain', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -406,7 +406,7 @@ class Domain_Mapping_Element extends Base_Element { if ( ! is_super_admin() && (! $current_site || $current_site->get_customer()->get_user_id() !== $current_user_id)) { wp_send_json_error( - new \WP_Error('no-permissions', __('You do not have permissions to perform this action.', 'wp-ultimo')) + new \WP_Error('no-permissions', __('You do not have permissions to perform this action.', 'wp-multisite-waas')) ); exit; @@ -470,8 +470,8 @@ class Domain_Mapping_Element extends Base_Element { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Deletion', 'wp-ultimo'), - 'desc' => __('This action can not be undone.', 'wp-ultimo'), + 'title' => __('Confirm Deletion', 'wp-multisite-waas'), + 'desc' => __('This action can not be undone.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], @@ -482,8 +482,8 @@ class Domain_Mapping_Element extends Base_Element { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Delete', 'wp-ultimo'), - 'placeholder' => __('Delete', 'wp-ultimo'), + 'title' => __('Delete', 'wp-multisite-waas'), + 'placeholder' => __('Delete', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -554,8 +554,8 @@ class Domain_Mapping_Element extends Base_Element { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Action', 'wp-ultimo'), - 'desc' => __('This action will also convert the previous primary domain (if any) to an alias to prevent unexpected behavior.', 'wp-ultimo'), + 'title' => __('Confirm Action', 'wp-multisite-waas'), + 'desc' => __('This action will also convert the previous primary domain (if any) to an alias to prevent unexpected behavior.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], @@ -566,8 +566,8 @@ class Domain_Mapping_Element extends Base_Element { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Make it Primary', 'wp-ultimo'), - 'placeholder' => __('Make it Primary', 'wp-ultimo'), + 'title' => __('Make it Primary', 'wp-multisite-waas'), + 'placeholder' => __('Make it Primary', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -642,7 +642,7 @@ class Domain_Mapping_Element extends Base_Element { ); } - wp_send_json_error(new \WP_Error('error', __('Something wrong happenned.', 'wp-ultimo'))); + wp_send_json_error(new \WP_Error('error', __('Something wrong happenned.', 'wp-multisite-waas'))); } /** @@ -712,12 +712,12 @@ class Domain_Mapping_Element extends Base_Element { $secure = 'dashicons-wu-lock-open'; - $secure_message = __('Domain not secured with HTTPS', 'wp-ultimo'); + $secure_message = __('Domain not secured with HTTPS', 'wp-multisite-waas'); if ($domain->is_secure()) { $secure = 'dashicons-wu-lock wu-text-green-500'; - $secure_message = __('Domain secured with HTTPS', 'wp-ultimo'); + $secure_message = __('Domain secured with HTTPS', 'wp-multisite-waas'); } $url_atts = [ @@ -749,7 +749,7 @@ class Domain_Mapping_Element extends Base_Element { $other_atts = [ 'domains' => $domains, 'modal' => [ - 'label' => __('Add Domain', 'wp-ultimo'), + 'label' => __('Add Domain', 'wp-multisite-waas'), 'icon' => 'wu-circle-with-plus', 'classes' => 'wubox', 'url' => wu_get_form_url('user_add_new_domain', $url_atts), diff --git a/inc/ui/class-invoices-element.php b/inc/ui/class-invoices-element.php index 060d38b..ce82ef1 100644 --- a/inc/ui/class-invoices-element.php +++ b/inc/ui/class-invoices-element.php @@ -76,14 +76,14 @@ class Invoices_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Invoices', 'wp-ultimo'); + return __('Invoices', 'wp-multisite-waas'); } /** @@ -92,14 +92,14 @@ class Invoices_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'wp-ultimo'); + return __('Adds a checkout form block to the page.', 'wp-multisite-waas'); } /** @@ -124,24 +124,24 @@ class Invoices_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'wp-ultimo'), - 'value' => __('Invoices', 'wp-ultimo'), - 'desc' => __('Leave blank to hide the title completely.', 'wp-ultimo'), + 'title' => __('Title', 'wp-multisite-waas'), + 'value' => __('Invoices', 'wp-multisite-waas'), + 'desc' => __('Leave blank to hide the title completely.', 'wp-multisite-waas'), 'tooltip' => '', ]; $fields['limit'] = [ 'type' => 'int', - 'title' => __('Limit', 'wp-ultimo'), + 'title' => __('Limit', 'wp-multisite-waas'), 'value' => 10, - 'desc' => __('Limit the number of invoices to show.', 'wp-ultimo'), + 'desc' => __('Limit the number of invoices to show.', 'wp-multisite-waas'), 'tooltip' => '', ]; @@ -193,7 +193,7 @@ class Invoices_Element extends Base_Element { public function defaults() { return [ - 'title' => __('Invoices', 'wp-ultimo'), + 'title' => __('Invoices', 'wp-multisite-waas'), 'limit' => 0, ]; } diff --git a/inc/ui/class-jumper.php b/inc/ui/class-jumper.php index bab134f..0bbced2 100644 --- a/inc/ui/class-jumper.php +++ b/inc/ui/class-jumper.php @@ -185,7 +185,7 @@ class Jumper { $custom_links = $this->get_user_custom_links(); if ( ! empty($custom_links)) { - $links[ __('Custom Links', 'wp-ultimo') ] = $custom_links; + $links[ __('Custom Links', 'wp-multisite-waas') ] = $custom_links; } return $links; @@ -203,27 +203,27 @@ class Jumper { if (isset($links['WP Ultimo'])) { $settings_tabs = [ - 'general' => __('General', 'wp-ultimo'), - 'network' => __('Network Settings', 'wp-ultimo'), - 'gateways' => __('Payment Gateways', 'wp-ultimo'), - 'domain_mapping' => __('Domain Mapping & SSL', 'wp-ultimo'), - 'emails' => __('Emails', 'wp-ultimo'), - 'styling' => __('Styling', 'wp-ultimo'), - 'tools' => __('Tools', 'wp-ultimo'), - 'advanced' => __('Advanced', 'wp-ultimo'), - 'activation' => __('Activation & Support', 'wp-ultimo'), + 'general' => __('General', 'wp-multisite-waas'), + 'network' => __('Network Settings', 'wp-multisite-waas'), + 'gateways' => __('Payment Gateways', 'wp-multisite-waas'), + 'domain_mapping' => __('Domain Mapping & SSL', 'wp-multisite-waas'), + 'emails' => __('Emails', 'wp-multisite-waas'), + 'styling' => __('Styling', 'wp-multisite-waas'), + 'tools' => __('Tools', 'wp-multisite-waas'), + 'advanced' => __('Advanced', 'wp-multisite-waas'), + 'activation' => __('Activation & Support', 'wp-multisite-waas'), ]; foreach ($settings_tabs as $tab => $tab_label) { $url = network_admin_url('admin.php?page=wp-ultimo-settings&wu-tab=' . $tab); // translators: The placeholder represents the title of the Settings tab. - $links['WP Ultimo'][ $url ] = sprintf(__('Settings: %s', 'wp-ultimo'), $tab_label); + $links['WP Ultimo'][ $url ] = sprintf(__('Settings: %s', 'wp-multisite-waas'), $tab_label); } - $links['WP Ultimo'][ network_admin_url('admin.php?page=wp-ultimo-settings&wu-tab=tools') ] = __('Settings: Webhooks', 'wp-ultimo'); + $links['WP Ultimo'][ network_admin_url('admin.php?page=wp-ultimo-settings&wu-tab=tools') ] = __('Settings: Webhooks', 'wp-multisite-waas'); - $links['WP Ultimo'][ network_admin_url('admin.php?page=wp-ultimo-system-info&wu-tab=logs') ] = __('System Info: Logs', 'wp-ultimo'); + $links['WP Ultimo'][ network_admin_url('admin.php?page=wp-ultimo-system-info&wu-tab=logs') ] = __('System Info: Logs', 'wp-multisite-waas'); /** * Adds Main Site Dashboard @@ -231,7 +231,7 @@ class Jumper { if (isset($links[ __('Sites') ])) { $main_site_url = get_admin_url(get_current_site()->blog_id); - $links[ __('Sites') ][ $main_site_url ] = __('Main Site Dashboard', 'wp-ultimo'); + $links[ __('Sites') ][ $main_site_url ] = __('Main Site Dashboard', 'wp-multisite-waas'); } } @@ -298,7 +298,7 @@ class Jumper { $html = trim($html, '+'); // translators: the %s placeholder is the key combination to trigger the Jumper. - return '' . sprintf(__('Quick Tip: Use %s to jump between pages.', 'wp-ultimo'), $html) . '' . $text; + return '' . sprintf(__('Quick Tip: Use %s to jump between pages.', 'wp-multisite-waas'), $html) . '' . $text; } /** @@ -317,7 +317,7 @@ class Jumper { 'wu-jumper', 'wu_jumper_vars', [ - 'not_found_message' => __('Nothing found for', 'wp-ultimo'), + 'not_found_message' => __('Nothing found for', 'wp-multisite-waas'), 'trigger_key' => $this->get_defined_trigger_key(), 'network_base_url' => network_admin_url(), 'ajaxurl' => wu_ajax_url(), @@ -406,7 +406,7 @@ class Jumper { return Logger::track_time( 'jumper', - __('Regenerating Jumper menu items', 'wp-ultimo'), + __('Regenerating Jumper menu items', 'wp-multisite-waas'), function () { global $menu, $submenu; @@ -487,8 +487,8 @@ class Jumper { wu_register_settings_section( 'tools', [ - 'title' => __('Tools', 'wp-ultimo'), - 'desc' => __('Tools', 'wp-ultimo'), + 'title' => __('Tools', 'wp-multisite-waas'), + 'desc' => __('Tools', 'wp-multisite-waas'), 'icon' => 'dashicons-wu-tools', ] ); @@ -497,8 +497,8 @@ class Jumper { 'tools', 'tools_header', [ - 'title' => __('Jumper', 'wp-ultimo'), - 'desc' => __('Spotlight-like search bar that allows you to easily access everything on your network.', 'wp-ultimo'), + 'title' => __('Jumper', 'wp-multisite-waas'), + 'desc' => __('Spotlight-like search bar that allows you to easily access everything on your network.', 'wp-multisite-waas'), 'type' => 'header', ] ); @@ -507,8 +507,8 @@ class Jumper { 'tools', 'enable_jumper', [ - 'title' => __('Enable Jumper', 'wp-ultimo'), - 'desc' => __('Turn this option on to make the Jumper available on your network.', 'wp-ultimo'), + 'title' => __('Enable Jumper', 'wp-multisite-waas'), + 'desc' => __('Turn this option on to make the Jumper available on your network.', 'wp-multisite-waas'), 'type' => 'toggle', 'default' => 1, ] @@ -518,8 +518,8 @@ class Jumper { 'tools', 'jumper_key', [ - 'title' => __('Trigger Key', 'wp-ultimo'), - 'desc' => __('Change the keyboard key used in conjunction with ctrl + alt (or cmd + option), to trigger the Jumper box.', 'wp-ultimo'), + 'title' => __('Trigger Key', 'wp-multisite-waas'), + 'desc' => __('Change the keyboard key used in conjunction with ctrl + alt (or cmd + option), to trigger the Jumper box.', 'wp-multisite-waas'), 'type' => 'text', 'default' => 'g', 'require' => [ @@ -532,9 +532,9 @@ class Jumper { 'tools', 'jumper_custom_links', [ - 'title' => __('Custom Links', 'wp-ultimo'), - 'desc' => __('Use this textarea to add custom links to the Jumper. Add one per line, with the format "Title : url".', 'wp-ultimo'), - 'placeholder' => __('Tile of Custom Link : http://link.com', 'wp-ultimo'), + 'title' => __('Custom Links', 'wp-multisite-waas'), + 'desc' => __('Use this textarea to add custom links to the Jumper. Add one per line, with the format "Title : url".', 'wp-multisite-waas'), + 'placeholder' => __('Tile of Custom Link : http://link.com', 'wp-multisite-waas'), 'type' => 'textarea', 'html_attr' => [ 'rows' => 4, diff --git a/inc/ui/class-limits-element.php b/inc/ui/class-limits-element.php index 4d1dd67..c51ff1e 100644 --- a/inc/ui/class-limits-element.php +++ b/inc/ui/class-limits-element.php @@ -75,14 +75,14 @@ class Limits_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Limits & Quotas', 'wp-ultimo'); + return __('Limits & Quotas', 'wp-multisite-waas'); } /** @@ -91,14 +91,14 @@ class Limits_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'wp-ultimo'); + return __('Adds a checkout form block to the page.', 'wp-multisite-waas'); } /** @@ -123,23 +123,23 @@ class Limits_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'wp-ultimo'), - 'value' => __('Site Limits', 'wp-ultimo'), - 'desc' => __('Leave blank to hide the title completely.', 'wp-ultimo'), + 'title' => __('Title', 'wp-multisite-waas'), + 'value' => __('Site Limits', 'wp-multisite-waas'), + 'desc' => __('Leave blank to hide the title completely.', 'wp-multisite-waas'), 'tooltip' => '', ]; $fields['columns'] = [ 'type' => 'number', - 'title' => __('Columns', 'wp-ultimo'), - 'desc' => __('How many columns to use.', 'wp-ultimo'), + 'title' => __('Columns', 'wp-multisite-waas'), + 'desc' => __('How many columns to use.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, 'min' => 1, @@ -195,7 +195,7 @@ class Limits_Element extends Base_Element { return [ 'columns' => 1, - 'title' => __('Site Limits', 'wp-ultimo'), + 'title' => __('Site Limits', 'wp-multisite-waas'), ]; } diff --git a/inc/ui/class-login-form-element.php b/inc/ui/class-login-form-element.php index 69269c2..2700046 100644 --- a/inc/ui/class-login-form-element.php +++ b/inc/ui/class-login-form-element.php @@ -90,14 +90,14 @@ class Login_Form_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Login Form', 'wp-ultimo'); + return __('Login Form', 'wp-multisite-waas'); } /** @@ -106,14 +106,14 @@ class Login_Form_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a login form to the page.', 'wp-ultimo'); + return __('Adds a login form to the page.', 'wp-multisite-waas'); } /** @@ -138,23 +138,23 @@ class Login_Form_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['display_title'] = [ 'type' => 'toggle', - 'title' => __('Display Title?', 'wp-ultimo'), - 'desc' => __('Toggle to show/hide the title element.', 'wp-ultimo'), + 'title' => __('Display Title?', 'wp-multisite-waas'), + 'desc' => __('Toggle to show/hide the title element.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'wp-ultimo'), - 'value' => __('Login', 'wp-ultimo'), + 'title' => __('Title', 'wp-multisite-waas'), + 'value' => __('Login', 'wp-multisite-waas'), 'desc' => '', 'tooltip' => '', 'required' => [ @@ -164,22 +164,22 @@ class Login_Form_Element extends Base_Element { $fields['redirect_type'] = [ 'type' => 'select', - 'title' => __('Redirect Type', 'wp-ultimo'), - 'desc' => __('The behavior after login', 'wp-ultimo'), + 'title' => __('Redirect Type', 'wp-multisite-waas'), + 'desc' => __('The behavior after login', 'wp-multisite-waas'), 'tooltip' => '', 'default' => 'default', 'options' => [ - 'default' => __('Wordpress Default', 'wp-ultimo'), - 'customer_site' => __('Send To Customer Site', 'wp-ultimo'), - 'main_site' => __('Send To Main Site', 'wp-ultimo'), + 'default' => __('Wordpress Default', 'wp-multisite-waas'), + 'customer_site' => __('Send To Customer Site', 'wp-multisite-waas'), + 'main_site' => __('Send To Main Site', 'wp-multisite-waas'), ], ]; $fields['customer_redirect_path'] = [ 'type' => 'text', - 'title' => __('Customer Redirect Path', 'wp-ultimo'), - 'value' => __('/wp-admin', 'wp-ultimo'), - 'desc' => __('e.g. /wp-admin', 'wp-ultimo'), + 'title' => __('Customer Redirect Path', 'wp-multisite-waas'), + 'value' => __('/wp-admin', 'wp-multisite-waas'), + 'desc' => __('e.g. /wp-admin', 'wp-multisite-waas'), 'tooltip' => '', 'required' => [ 'redirect_type' => 'customer_site', @@ -188,9 +188,9 @@ class Login_Form_Element extends Base_Element { $fields['main_redirect_path'] = [ 'type' => 'text', - 'title' => __('Main Site Redirect Path', 'wp-ultimo'), - 'value' => __('/wp-admin', 'wp-ultimo'), - 'desc' => __('e.g. /wp-admin', 'wp-ultimo'), + 'title' => __('Main Site Redirect Path', 'wp-multisite-waas'), + 'value' => __('/wp-admin', 'wp-multisite-waas'), + 'desc' => __('e.g. /wp-admin', 'wp-multisite-waas'), 'tooltip' => '', 'required' => [ 'redirect_type' => 'main_site', @@ -198,66 +198,66 @@ class Login_Form_Element extends Base_Element { ]; $fields['header_username'] = [ - 'title' => __('Username Field', 'wp-ultimo'), - 'desc' => __('Username Field', 'wp-ultimo'), + 'title' => __('Username Field', 'wp-multisite-waas'), + 'desc' => __('Username Field', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['label_username'] = [ 'type' => 'text', - 'title' => __('Username Field Label', 'wp-ultimo'), - 'value' => __('Username or Email Address', 'wp-ultimo'), - 'desc' => __('Leave blank to hide.', 'wp-ultimo'), + 'title' => __('Username Field Label', 'wp-multisite-waas'), + 'value' => __('Username or Email Address', 'wp-multisite-waas'), + 'desc' => __('Leave blank to hide.', 'wp-multisite-waas'), 'tooltip' => '', ]; $fields['placeholder_username'] = [ 'type' => 'text', - 'title' => __('Username Field Placeholder', 'wp-ultimo'), - 'desc' => __('e.g. Username Here', 'wp-ultimo'), + 'title' => __('Username Field Placeholder', 'wp-multisite-waas'), + 'desc' => __('e.g. Username Here', 'wp-multisite-waas'), 'value' => '', 'tooltip' => '', ]; $fields['header_password'] = [ - 'title' => __('Password Field', 'wp-ultimo'), - 'desc' => __('Password Field', 'wp-ultimo'), + 'title' => __('Password Field', 'wp-multisite-waas'), + 'desc' => __('Password Field', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['label_password'] = [ 'type' => 'text', - 'title' => __('Password Field Label', 'wp-ultimo'), - 'value' => __('Password', 'wp-ultimo'), - 'desc' => __('Leave blank to hide.', 'wp-ultimo'), + 'title' => __('Password Field Label', 'wp-multisite-waas'), + 'value' => __('Password', 'wp-multisite-waas'), + 'desc' => __('Leave blank to hide.', 'wp-multisite-waas'), 'tooltip' => '', ]; $fields['placeholder_password'] = [ 'type' => 'text', - 'title' => __('Password Field Placeholder', 'wp-ultimo'), - 'desc' => __('e.g. Your Password', 'wp-ultimo'), + 'title' => __('Password Field Placeholder', 'wp-multisite-waas'), + 'desc' => __('e.g. Your Password', 'wp-multisite-waas'), 'value' => '', 'tooltip' => '', ]; $fields['header_remember'] = [ - 'title' => __('Remember Me', 'wp-ultimo'), - 'desc' => __('Remember Me', 'wp-ultimo'), + 'title' => __('Remember Me', 'wp-multisite-waas'), + 'desc' => __('Remember Me', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['remember'] = [ 'type' => 'toggle', - 'title' => __('Display Remember Toggle?', 'wp-ultimo'), - 'desc' => __('Toggle to show/hide the remember me checkbox.', 'wp-ultimo'), + 'title' => __('Display Remember Toggle?', 'wp-multisite-waas'), + 'desc' => __('Toggle to show/hide the remember me checkbox.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, ]; $fields['label_remember'] = [ 'type' => 'text', - 'title' => __('Remember Me Label', 'wp-ultimo'), + 'title' => __('Remember Me Label', 'wp-multisite-waas'), 'value' => __('Remember Me'), 'desc' => '', 'tooltip' => '', @@ -268,8 +268,8 @@ class Login_Form_Element extends Base_Element { $fields['desc_remember'] = [ 'type' => 'text', - 'title' => __('Remember Me Description', 'wp-ultimo'), - 'value' => __('Keep me logged in for two weeks.', 'wp-ultimo'), + 'title' => __('Remember Me Description', 'wp-multisite-waas'), + 'value' => __('Keep me logged in for two weeks.', 'wp-multisite-waas'), 'desc' => '', 'tooltip' => '', 'required' => [ @@ -278,15 +278,15 @@ class Login_Form_Element extends Base_Element { ]; $fields['header_submit'] = [ - 'title' => __('Submit Button', 'wp-ultimo'), - 'desc' => __('Submit Button', 'wp-ultimo'), + 'title' => __('Submit Button', 'wp-multisite-waas'), + 'desc' => __('Submit Button', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['label_log_in'] = [ 'type' => 'text', - 'title' => __('Submit Button Label', 'wp-ultimo'), - 'value' => __('Log In', 'wp-ultimo'), + 'title' => __('Submit Button Label', 'wp-multisite-waas'), + 'value' => __('Log In', 'wp-multisite-waas'), 'tooltip' => '', ]; @@ -352,7 +352,7 @@ class Login_Form_Element extends Base_Element { return [ 'display_title' => 1, - 'title' => __('Login', 'wp-ultimo'), + 'title' => __('Login', 'wp-multisite-waas'), 'redirect_type' => 'default', 'customer_redirect_path' => '/wp-admin', @@ -368,7 +368,7 @@ class Login_Form_Element extends Base_Element { 'placeholder_password' => '', 'label_remember' => __('Remember Me'), - 'desc_remember' => __('Keep me logged in for two weeks.', 'wp-ultimo'), + 'desc_remember' => __('Keep me logged in for two weeks.', 'wp-multisite-waas'), 'label_log_in' => __('Log In'), diff --git a/inc/ui/class-my-sites-element.php b/inc/ui/class-my-sites-element.php index 7f71f11..1ffeeed 100644 --- a/inc/ui/class-my-sites-element.php +++ b/inc/ui/class-my-sites-element.php @@ -85,14 +85,14 @@ class My_Sites_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('My Sites', 'wp-ultimo'); + return __('My Sites', 'wp-multisite-waas'); } /** @@ -101,14 +101,14 @@ class My_Sites_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a block to display the sites owned by the current customer.', 'wp-ultimo'); + return __('Adds a block to display the sites owned by the current customer.', 'wp-multisite-waas'); } /** @@ -133,33 +133,33 @@ class My_Sites_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['site_manage_type'] = [ 'type' => 'select', - 'title' => __('Site Manage Type', 'wp-ultimo'), - 'desc' => __('The page to manage a site.', 'wp-ultimo'), + 'title' => __('Site Manage Type', 'wp-multisite-waas'), + 'desc' => __('The page to manage a site.', 'wp-multisite-waas'), 'tooltip' => '', 'default' => 'default', 'options' => [ - 'default' => __('Same Page', 'wp-ultimo'), - 'wp_admin' => __('WP Admin', 'wp-ultimo'), - 'custom_page' => __('Custom Page', 'wp-ultimo'), + 'default' => __('Same Page', 'wp-multisite-waas'), + 'wp_admin' => __('WP Admin', 'wp-multisite-waas'), + 'custom_page' => __('Custom Page', 'wp-multisite-waas'), ], ]; $fields['site_show'] = [ 'type' => 'select', - 'title' => __('Which sites to show?', 'wp-ultimo'), - 'desc' => __('Select which sites should be listed for user.', 'wp-ultimo'), + 'title' => __('Which sites to show?', 'wp-multisite-waas'), + 'desc' => __('Select which sites should be listed for user.', 'wp-multisite-waas'), 'tooltip' => '', 'default' => 'all', 'options' => [ - 'all' => __('All', 'wp-ultimo'), - 'owned' => __('Owned', 'wp-ultimo'), + 'all' => __('All', 'wp-multisite-waas'), + 'owned' => __('Owned', 'wp-multisite-waas'), ], ]; @@ -171,7 +171,7 @@ class My_Sites_Element extends Base_Element { $pages = $pages ?: []; - $pages_list = [0 => __('Current Page', 'wp-ultimo')]; + $pages_list = [0 => __('Current Page', 'wp-multisite-waas')]; foreach ($pages as $page) { $pages_list[ $page->ID ] = $page->post_title; @@ -179,9 +179,9 @@ class My_Sites_Element extends Base_Element { $fields['custom_manage_page'] = [ 'type' => 'select', - 'title' => __('Manage Redirect Page', 'wp-ultimo'), + 'title' => __('Manage Redirect Page', 'wp-multisite-waas'), 'value' => 0, - 'desc' => __('The page to redirect user after select a site.', 'wp-ultimo'), + 'desc' => __('The page to redirect user after select a site.', 'wp-multisite-waas'), 'tooltip' => '', 'required' => [ 'site_manage_type' => 'custom_page', @@ -191,8 +191,8 @@ class My_Sites_Element extends Base_Element { $fields['columns'] = [ 'type' => 'number', - 'title' => __('Columns', 'wp-ultimo'), - 'desc' => __('How many columns to use.', 'wp-ultimo'), + 'title' => __('Columns', 'wp-multisite-waas'), + 'desc' => __('How many columns to use.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 4, 'min' => 1, @@ -201,8 +201,8 @@ class My_Sites_Element extends Base_Element { $fields['display_images'] = [ 'type' => 'toggle', - 'title' => __('Display Site Screenshot?', 'wp-ultimo'), - 'desc' => __('Toggle to show/hide the site screenshots on the element.', 'wp-ultimo'), + 'title' => __('Display Site Screenshot?', 'wp-multisite-waas'), + 'desc' => __('Toggle to show/hide the site screenshots on the element.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, ]; diff --git a/inc/ui/class-payment-methods-element.php b/inc/ui/class-payment-methods-element.php index 9a2f9fb..361f2ca 100644 --- a/inc/ui/class-payment-methods-element.php +++ b/inc/ui/class-payment-methods-element.php @@ -60,14 +60,14 @@ class Payment_Methods_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Payment Methods', 'wp-ultimo'); + return __('Payment Methods', 'wp-multisite-waas'); } /** @@ -76,14 +76,14 @@ class Payment_Methods_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'wp-ultimo'); + return __('Adds a checkout form block to the page.', 'wp-multisite-waas'); } /** @@ -108,23 +108,23 @@ class Payment_Methods_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['password_strength'] = [ 'type' => 'toggle', - 'title' => __('Password Strength Meter', 'wp-ultimo'), - 'desc' => __('Set this customer as a VIP.', 'wp-ultimo'), + 'title' => __('Password Strength Meter', 'wp-multisite-waas'), + 'desc' => __('Set this customer as a VIP.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, ]; $fields['apply_styles'] = [ 'type' => 'toggle', - 'title' => __('Apply Styles', 'wp-ultimo'), - 'desc' => __('Set this customer as a VIP.', 'wp-ultimo'), + 'title' => __('Apply Styles', 'wp-multisite-waas'), + 'desc' => __('Set this customer as a VIP.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, ]; diff --git a/inc/ui/class-simple-text-element.php b/inc/ui/class-simple-text-element.php index c264d11..971abdf 100644 --- a/inc/ui/class-simple-text-element.php +++ b/inc/ui/class-simple-text-element.php @@ -76,14 +76,14 @@ class Simple_Text_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Simple Text', 'wp-ultimo'); + return __('Simple Text', 'wp-multisite-waas'); } /** @@ -92,14 +92,14 @@ class Simple_Text_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a simple text block to the page.', 'wp-ultimo'); + return __('Adds a simple text block to the page.', 'wp-multisite-waas'); } /** @@ -124,16 +124,16 @@ class Simple_Text_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['simple_text'] = [ 'type' => 'textarea', - 'title' => __('Content', 'wp-ultimo'), - 'placeholder' => __('E.g. Text, HTML or shortcode.', 'wp-ultimo'), - 'desc' => __('You can insert plain text, HTML or a shortcode in this block.', 'wp-ultimo'), + 'title' => __('Content', 'wp-multisite-waas'), + 'placeholder' => __('E.g. Text, HTML or shortcode.', 'wp-multisite-waas'), + 'desc' => __('You can insert plain text, HTML or a shortcode in this block.', 'wp-multisite-waas'), 'tooltip' => '', 'html_attr' => [ 'rows' => 6, @@ -200,7 +200,7 @@ class Simple_Text_Element extends Base_Element { public function defaults() { return [ - 'simple_text' => __('Text, HTML or shortcode.', 'wp-ultimo'), + 'simple_text' => __('Text, HTML or shortcode.', 'wp-multisite-waas'), ]; } diff --git a/inc/ui/class-site-actions-element.php b/inc/ui/class-site-actions-element.php index 34d6bda..ba232df 100644 --- a/inc/ui/class-site-actions-element.php +++ b/inc/ui/class-site-actions-element.php @@ -97,14 +97,14 @@ class Site_Actions_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Actions', 'wp-ultimo'); + return __('Actions', 'wp-multisite-waas'); } /** @@ -113,14 +113,14 @@ class Site_Actions_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'wp-ultimo'); + return __('Adds a checkout form block to the page.', 'wp-multisite-waas'); } /** @@ -145,31 +145,31 @@ class Site_Actions_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['show_change_password'] = [ 'type' => 'toggle', - 'title' => __('Show Change Password', 'wp-ultimo'), - 'desc' => __('Toggle to show/hide the password link.', 'wp-ultimo'), + 'title' => __('Show Change Password', 'wp-multisite-waas'), + 'desc' => __('Toggle to show/hide the password link.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, ]; $fields['show_change_default_site'] = [ 'type' => 'toggle', - 'title' => __('Show Change Default Site', 'wp-ultimo'), - 'desc' => __('Toggle to show/hide the change default site link.', 'wp-ultimo'), + 'title' => __('Show Change Default Site', 'wp-multisite-waas'), + 'desc' => __('Toggle to show/hide the change default site link.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, ]; $fields['show_change_payment_method'] = [ 'type' => 'toggle', - 'title' => __('Show Change Payment Method', 'wp-ultimo'), - 'desc' => __('Toggle to show/hide the option to cancel the current payment method.', 'wp-ultimo'), + 'title' => __('Show Change Payment Method', 'wp-multisite-waas'), + 'desc' => __('Toggle to show/hide the option to cancel the current payment method.', 'wp-multisite-waas'), 'tooltip' => '', 'value' => 1, ]; @@ -182,7 +182,7 @@ class Site_Actions_Element extends Base_Element { $pages = $pages ?: []; - $pages_list = [0 => __('Default', 'wp-ultimo')]; + $pages_list = [0 => __('Default', 'wp-multisite-waas')]; foreach ($pages as $page) { $pages_list[ $page->ID ] = $page->post_title; @@ -190,9 +190,9 @@ class Site_Actions_Element extends Base_Element { $fields['redirect_after_delete'] = [ 'type' => 'select', - 'title' => __('Redirect After Delete', 'wp-ultimo'), + 'title' => __('Redirect After Delete', 'wp-multisite-waas'), 'value' => 0, - 'desc' => __('The page to redirect user after delete current site.', 'wp-ultimo'), + 'desc' => __('The page to redirect user after delete current site.', 'wp-multisite-waas'), 'tooltip' => '', 'options' => $pages_list, ]; @@ -372,7 +372,7 @@ class Site_Actions_Element extends Base_Element { if ($is_template_switching_enabled && $this->site) { $actions['template_switching'] = [ - 'label' => __('Change Site Template', 'wp-ultimo'), + 'label' => __('Change Site Template', 'wp-multisite-waas'), 'icon_classes' => 'dashicons-wu-edit wu-align-middle', 'href' => add_query_arg( [ @@ -385,7 +385,7 @@ class Site_Actions_Element extends Base_Element { if (count($all_blogs) > 1 && wu_get_isset($atts, 'show_change_default_site')) { $actions['default_site'] = [ - 'label' => __('Change Default Site', 'wp-ultimo'), + 'label' => __('Change Default Site', 'wp-multisite-waas'), 'icon_classes' => 'dashicons-wu-edit wu-align-middle', 'classes' => 'wubox', 'href' => wu_get_form_url('change_default_site'), @@ -394,7 +394,7 @@ class Site_Actions_Element extends Base_Element { if (wu_get_isset($atts, 'show_change_password')) { $actions['change_password'] = [ - 'label' => __('Change Password', 'wp-ultimo'), + 'label' => __('Change Password', 'wp-multisite-waas'), 'icon_classes' => 'dashicons-wu-edit wu-align-middle', 'classes' => 'wubox', 'href' => wu_get_form_url('change_password'), @@ -405,7 +405,7 @@ class Site_Actions_Element extends Base_Element { if (wu_get_isset($atts, 'show_change_payment_method') && $payment_gateway) { $actions['cancel_payment_method'] = [ - 'label' => __('Cancel Current Payment Method', 'wp-ultimo'), + 'label' => __('Cancel Current Payment Method', 'wp-multisite-waas'), 'icon_classes' => 'dashicons-wu-edit wu-align-middle', 'classes' => 'wubox', 'href' => wu_get_form_url( @@ -436,7 +436,7 @@ class Site_Actions_Element extends Base_Element { $actions = array_merge( [ 'delete_site' => [ - 'label' => __('Delete Site', 'wp-ultimo'), + 'label' => __('Delete Site', 'wp-multisite-waas'), 'icon_classes' => 'dashicons-wu-edit wu-align-middle', 'classes' => 'wubox wu-text-red-500', 'href' => wu_get_form_url( @@ -456,7 +456,7 @@ class Site_Actions_Element extends Base_Element { $actions = array_merge( [ 'cancel_membership' => [ - 'label' => __('Cancel Membership', 'wp-ultimo'), + 'label' => __('Cancel Membership', 'wp-multisite-waas'), 'icon_classes' => 'dashicons-wu-edit wu-align-middle', 'classes' => 'wubox wu-text-red-500', 'href' => wu_get_form_url( @@ -488,13 +488,13 @@ class Site_Actions_Element extends Base_Element { $error = ''; if ( ! $site) { - $error = __('Site not selected.', 'wp-ultimo'); + $error = __('Site not selected.', 'wp-multisite-waas'); } $customer = wu_get_current_customer(); if ( ! $customer || $customer->get_id() !== $site->get_customer_id()) { - $error = __('You are not allowed to do this.', 'wp-ultimo'); + $error = __('You are not allowed to do this.', 'wp-multisite-waas'); } if ( ! empty($error)) { @@ -531,16 +531,16 @@ class Site_Actions_Element extends Base_Element { ], 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Site Deletion', 'wp-ultimo'), - 'desc' => __('This action can not be undone.', 'wp-ultimo'), + 'title' => __('Confirm Site Deletion', 'wp-multisite-waas'), + 'desc' => __('This action can not be undone.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Delete Site', 'wp-ultimo'), - 'placeholder' => __('Delete Site', 'wp-ultimo'), + 'title' => __('Delete Site', 'wp-multisite-waas'), + 'placeholder' => __('Delete Site', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -585,13 +585,13 @@ class Site_Actions_Element extends Base_Element { $site = wu_get_site_by_hash(wu_request('site')); if ( ! $site || ! $site->is_customer_allowed()) { - return new \WP_Error('error', __('An unexpected error happened.', 'wp-ultimo')); + return new \WP_Error('error', __('An unexpected error happened.', 'wp-multisite-waas')); } $customer = wu_get_current_customer(); if ( ! $customer || $customer->get_id() !== $site->get_customer_id()) { - return new \WP_Error('error', __('You are not allowed to do this.', 'wp-ultimo')); + return new \WP_Error('error', __('You are not allowed to do this.', 'wp-multisite-waas')); } $wpdb->query('START TRANSACTION'); @@ -639,23 +639,23 @@ class Site_Actions_Element extends Base_Element { $fields = [ 'password' => [ 'type' => 'password', - 'title' => __('Current Password', 'wp-ultimo'), - 'placeholder' => __('******', 'wp-ultimo'), + 'title' => __('Current Password', 'wp-multisite-waas'), + 'placeholder' => __('******', 'wp-multisite-waas'), ], 'new_password' => [ 'type' => 'password', - 'title' => __('New Password', 'wp-ultimo'), - 'placeholder' => __('******', 'wp-ultimo'), + 'title' => __('New Password', 'wp-multisite-waas'), + 'placeholder' => __('******', 'wp-multisite-waas'), 'meter' => true, ], 'new_password_conf' => [ 'type' => 'password', - 'placeholder' => __('******', 'wp-ultimo'), - 'title' => __('Confirm New Password', 'wp-ultimo'), + 'placeholder' => __('******', 'wp-multisite-waas'), + 'title' => __('Confirm New Password', 'wp-multisite-waas'), ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Reset Password', 'wp-ultimo'), + 'title' => __('Reset Password', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -693,7 +693,7 @@ class Site_Actions_Element extends Base_Element { $user = wp_get_current_user(); if ( ! $user) { - $error = new \WP_Error('user-dont-exist', __('Something went wrong.', 'wp-ultimo')); + $error = new \WP_Error('user-dont-exist', __('Something went wrong.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -701,7 +701,7 @@ class Site_Actions_Element extends Base_Element { $current_password = wu_request('password'); if ( ! wp_check_password($current_password, $user->user_pass, $user->ID)) { - $error = new \WP_Error('wrong-password', __('Your current password is wrong.', 'wp-ultimo')); + $error = new \WP_Error('wrong-password', __('Your current password is wrong.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -710,13 +710,13 @@ class Site_Actions_Element extends Base_Element { $new_password_conf = wu_request('new_password_conf'); if ( ! $new_password || strlen((string) $new_password) < 6) { - $error = new \WP_Error('password-min-length', __('The new password must be at least 6 characters long.', 'wp-ultimo')); + $error = new \WP_Error('password-min-length', __('The new password must be at least 6 characters long.', 'wp-multisite-waas')); wp_send_json_error($error); } if ($new_password !== $new_password_conf) { - $error = new \WP_Error('passwords-dont-match', __('New passwords do not match.', 'wp-ultimo')); + $error = new \WP_Error('passwords-dont-match', __('New passwords do not match.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -756,8 +756,8 @@ class Site_Actions_Element extends Base_Element { $fields = [ 'new_primary_site' => [ 'type' => 'select', - 'title' => __('Primary Site', 'wp-ultimo'), - 'desc' => __('Change the primary site of your network.', 'wp-ultimo'), + 'title' => __('Primary Site', 'wp-multisite-waas'), + 'desc' => __('Change the primary site of your network.', 'wp-multisite-waas'), 'options' => $option_blogs, 'value' => $primary_blog, 'html_attr' => [ @@ -766,7 +766,7 @@ class Site_Actions_Element extends Base_Element { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Change Default Site', 'wp-ultimo'), + 'title' => __('Change Default Site', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -817,7 +817,7 @@ class Site_Actions_Element extends Base_Element { ); } - $error = new \WP_Error('no-site-selected', __('You need to select a new primary site.', 'wp-ultimo')); + $error = new \WP_Error('no-site-selected', __('You need to select a new primary site.', 'wp-multisite-waas')); wp_send_json_error($error); } @@ -835,13 +835,13 @@ class Site_Actions_Element extends Base_Element { $error = ''; if ( ! $membership) { - $error = __('Membership not selected.', 'wp-ultimo'); + $error = __('Membership not selected.', 'wp-multisite-waas'); } $customer = wu_get_current_customer(); if ( ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) { - $error = __('You are not allowed to do this.', 'wp-ultimo'); + $error = __('You are not allowed to do this.', 'wp-multisite-waas'); } if ( ! empty($error)) { @@ -878,16 +878,16 @@ class Site_Actions_Element extends Base_Element { ], 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Payment Method Cancellation', 'wp-ultimo'), - 'desc' => __('This action can not be undone.', 'wp-ultimo'), + 'title' => __('Confirm Payment Method Cancellation', 'wp-multisite-waas'), + 'desc' => __('This action can not be undone.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Cancel Payment Method', 'wp-ultimo'), - 'placeholder' => __('Cancel Payment Method', 'wp-ultimo'), + 'title' => __('Cancel Payment Method', 'wp-multisite-waas'), + 'placeholder' => __('Cancel Payment Method', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -929,7 +929,7 @@ class Site_Actions_Element extends Base_Element { $membership = wu_get_membership_by_hash(wu_request('membership')); if ( ! $membership) { - $error = new \WP_Error('error', __('An unexpected error happened.', 'wp-ultimo')); + $error = new \WP_Error('error', __('An unexpected error happened.', 'wp-multisite-waas')); wp_send_json_error($error); @@ -939,7 +939,7 @@ class Site_Actions_Element extends Base_Element { $customer = wu_get_current_customer(); if ( ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) { - $error = new \WP_Error('error', __('You are not allowed to do this.', 'wp-ultimo')); + $error = new \WP_Error('error', __('You are not allowed to do this.', 'wp-multisite-waas')); wp_send_json_error($error); @@ -982,13 +982,13 @@ class Site_Actions_Element extends Base_Element { $error = ''; if ( ! $membership) { - $error = __('Membership not selected.', 'wp-ultimo'); + $error = __('Membership not selected.', 'wp-multisite-waas'); } $customer = wu_get_current_customer(); if ( ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) { - $error = __('You are not allowed to do this.', 'wp-ultimo'); + $error = __('You are not allowed to do this.', 'wp-multisite-waas'); } if ( ! empty($error)) { @@ -1025,33 +1025,33 @@ class Site_Actions_Element extends Base_Element { ], 'cancellation_reason' => [ 'type' => 'select', - 'title' => __('Please tell us why you are cancelling.', 'wp-ultimo'), - 'desc' => __('We would love your feedback.', 'wp-ultimo'), + 'title' => __('Please tell us why you are cancelling.', 'wp-multisite-waas'), + 'desc' => __('We would love your feedback.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'cancellation_reason', ], 'default' => '', 'options' => [ - '' => __('Select a reason', 'wp-ultimo'), - 'unused' => __('I no longer need it', 'wp-ultimo'), - 'too_expensive' => __('It\'s too expensive', 'wp-ultimo'), - 'missing_features' => __('I need more features', 'wp-ultimo'), - 'switched_service' => __('Switched to another service', 'wp-ultimo'), - 'customer_service' => __('Customer support is less than expected', 'wp-ultimo'), - 'too_complex' => __('Too complex', 'wp-ultimo'), - 'other' => __('Other', 'wp-ultimo'), + '' => __('Select a reason', 'wp-multisite-waas'), + 'unused' => __('I no longer need it', 'wp-multisite-waas'), + 'too_expensive' => __('It\'s too expensive', 'wp-multisite-waas'), + 'missing_features' => __('I need more features', 'wp-multisite-waas'), + 'switched_service' => __('Switched to another service', 'wp-multisite-waas'), + 'customer_service' => __('Customer support is less than expected', 'wp-multisite-waas'), + 'too_complex' => __('Too complex', 'wp-multisite-waas'), + 'other' => __('Other', 'wp-multisite-waas'), ], ], 'cancellation_explanation' => [ 'type' => 'textarea', - 'title' => __('Please provide additional details.', 'wp-ultimo'), + 'title' => __('Please provide additional details.', 'wp-multisite-waas'), 'wrapper_html_attr' => [ 'v-show' => 'cancellation_reason === "other"', ], ], 'confirm' => [ 'type' => 'text', - 'title' => __('Type CANCEL to confirm this membership cancellation.', 'wp-ultimo'), + 'title' => __('Type CANCEL to confirm this membership cancellation.', 'wp-multisite-waas'), 'html_attr' => [ 'v-model' => 'confirmation', ], @@ -1068,19 +1068,19 @@ class Site_Actions_Element extends Base_Element { $fields['next_charge'] = [ 'type' => 'note', // translators: %s: Next charge date. - 'desc' => sprintf(__('Your sites will stay working until %s.', 'wp-ultimo'), date_i18n(get_option('date_format'), $next_charge)), + 'desc' => sprintf(__('Your sites will stay working until %s.', 'wp-multisite-waas'), date_i18n(get_option('date_format'), $next_charge)), ]; } $fields['submit_button'] = [ 'type' => 'submit', - 'title' => __('Cancel Membership', 'wp-ultimo'), - 'placeholder' => __('Cancel Membership', 'wp-ultimo'), + 'title' => __('Cancel Membership', 'wp-multisite-waas'), + 'placeholder' => __('Cancel Membership', 'wp-multisite-waas'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', 'html_attr' => [ - 'v-bind:disabled' => 'confirmation !== "' . __('CANCEL', 'wp-ultimo') . '" || cancellation_reason === ""', + 'v-bind:disabled' => 'confirmation !== "' . __('CANCEL', 'wp-multisite-waas') . '" || cancellation_reason === ""', ], ]; @@ -1117,7 +1117,7 @@ class Site_Actions_Element extends Base_Element { $membership = wu_get_membership_by_hash(wu_request('membership')); if ( ! $membership) { - $error = new \WP_Error('error', __('An unexpected error happened.', 'wp-ultimo')); + $error = new \WP_Error('error', __('An unexpected error happened.', 'wp-multisite-waas')); wp_send_json_error($error); @@ -1127,7 +1127,7 @@ class Site_Actions_Element extends Base_Element { $customer = wu_get_current_customer(); if ( ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) { - $error = new \WP_Error('error', __('You are not allowed to do this.', 'wp-ultimo')); + $error = new \WP_Error('error', __('You are not allowed to do this.', 'wp-multisite-waas')); wp_send_json_error($error); @@ -1135,12 +1135,12 @@ class Site_Actions_Element extends Base_Element { } $cancellation_options = [ - 'unused' => __('I no longer need it', 'wp-ultimo'), - 'too_expensive' => __('It\'s too expensive', 'wp-ultimo'), - 'missing_features' => __('I need more features', 'wp-ultimo'), - 'switched_service' => __('Switched to another service', 'wp-ultimo'), - 'customer_service' => __('Customer support is less than expected', 'wp-ultimo'), - 'too_complex' => __('Too complex', 'wp-ultimo'), + 'unused' => __('I no longer need it', 'wp-multisite-waas'), + 'too_expensive' => __('It\'s too expensive', 'wp-multisite-waas'), + 'missing_features' => __('I need more features', 'wp-multisite-waas'), + 'switched_service' => __('Switched to another service', 'wp-multisite-waas'), + 'customer_service' => __('Customer support is less than expected', 'wp-multisite-waas'), + 'too_complex' => __('Too complex', 'wp-multisite-waas'), 'other' => wu_request('cancellation_explanation'), ]; diff --git a/inc/ui/class-site-maintenance-element.php b/inc/ui/class-site-maintenance-element.php index bcac46e..0e358e1 100644 --- a/inc/ui/class-site-maintenance-element.php +++ b/inc/ui/class-site-maintenance-element.php @@ -81,14 +81,14 @@ class Site_Maintenance_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Site Maintenance', 'wp-ultimo'); + return __('Site Maintenance', 'wp-multisite-waas'); } /** @@ -97,14 +97,14 @@ class Site_Maintenance_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds the toggle control to turn maintenance mode on.', 'wp-ultimo'); + return __('Adds the toggle control to turn maintenance mode on.', 'wp-multisite-waas'); } /** @@ -129,23 +129,23 @@ class Site_Maintenance_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Label', 'wp-ultimo'), - 'value' => __('Toggle Maintenance Mode', 'wp-ultimo'), - 'placeholder' => __('e.g. Toggle Maintenance Mode', 'wp-ultimo'), + 'title' => __('Label', 'wp-multisite-waas'), + 'value' => __('Toggle Maintenance Mode', 'wp-multisite-waas'), + 'placeholder' => __('e.g. Toggle Maintenance Mode', 'wp-multisite-waas'), 'tooltip' => '', ]; $fields['desc'] = [ 'type' => 'textarea', - 'title' => __('Description', 'wp-ultimo'), - 'value' => __('Put your site on maintenance mode. When activated, the front-end will only be accessible to logged users.', 'wp-ultimo'), + 'title' => __('Description', 'wp-multisite-waas'), + 'value' => __('Put your site on maintenance mode. When activated, the front-end will only be accessible to logged users.', 'wp-multisite-waas'), 'tooltip' => '', ]; @@ -196,8 +196,8 @@ class Site_Maintenance_Element extends Base_Element { public function defaults() { return [ - 'title' => __('Toggle Maintenance Mode', 'wp-ultimo'), - 'desc' => __('Put your site on maintenance mode. When activated, the front-end will only be accessible to logged users.', 'wp-ultimo'), + 'title' => __('Toggle Maintenance Mode', 'wp-multisite-waas'), + 'desc' => __('Put your site on maintenance mode. When activated, the front-end will only be accessible to logged users.', 'wp-multisite-waas'), ]; } diff --git a/inc/ui/class-template-previewer.php b/inc/ui/class-template-previewer.php index 6a75d70..9c94663 100644 --- a/inc/ui/class-template-previewer.php +++ b/inc/ui/class-template-previewer.php @@ -240,7 +240,7 @@ class Template_Previewer { * Check if this is a site template */ if ( ! $selected_template || ($selected_template->get_type() !== Site_Type::SITE_TEMPLATE && ! wu_request('customizer'))) { - wp_die(__('This template is not available', 'wp-ultimo')); + wp_die(__('This template is not available', 'wp-multisite-waas')); } $categories = []; @@ -360,7 +360,7 @@ class Template_Previewer { 'bg_color' => '#f9f9f9', 'button_bg_color' => '#00a1ff', 'logo_url' => wu_get_network_logo(), - 'button_text' => __('Use this Template', 'wp-ultimo'), + 'button_text' => __('Use this Template', 'wp-multisite-waas'), 'preview_url_parameter' => 'template-preview', 'display_responsive_controls' => true, 'use_custom_logo' => false, diff --git a/inc/ui/class-template-switching-element.php b/inc/ui/class-template-switching-element.php index cb92ffc..8a3a820 100644 --- a/inc/ui/class-template-switching-element.php +++ b/inc/ui/class-template-switching-element.php @@ -82,7 +82,7 @@ class Template_Switching_Element extends Base_Element { */ public function get_title() { - return __('Template Switching', 'wp-ultimo'); + return __('Template Switching', 'wp-multisite-waas'); } /** @@ -93,7 +93,7 @@ class Template_Switching_Element extends Base_Element { */ public function get_description() { - return __('Adds the template switching form to this page.', 'wp-ultimo'); + return __('Adds the template switching form to this page.', 'wp-multisite-waas'); } /** @@ -142,8 +142,8 @@ class Template_Switching_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('Layout', 'wp-ultimo'), - 'desc' => __('Layout', 'wp-ultimo'), + 'title' => __('Layout', 'wp-multisite-waas'), + 'desc' => __('Layout', 'wp-multisite-waas'), 'type' => 'header', ]; @@ -153,8 +153,8 @@ class Template_Switching_Element extends Base_Element { 'fields' => [ 'template_selection_template' => [ 'type' => 'select', - 'title' => __('Template Selector Layout', 'wp-ultimo'), - 'placeholder' => __('Select your Layout', 'wp-ultimo'), + 'title' => __('Template Selector Layout', 'wp-multisite-waas'), + 'placeholder' => __('Select your Layout', 'wp-multisite-waas'), 'default' => 'clean', 'options' => [$this, 'get_template_selection_templates'], 'wrapper_classes' => 'wu-flex-grow', @@ -170,7 +170,7 @@ class Template_Switching_Element extends Base_Element { 'order' => 99, 'wrapper_classes' => 'sm:wu-p-0 sm:wu-block', 'classes' => '', - 'desc' => sprintf('
%s
', __('Want to add customized template selection templates?
See how you can do that here.', 'wp-ultimo')), + 'desc' => sprintf('
%s
', __('Want to add customized template selection templates?
See how you can do that here.', 'wp-multisite-waas')), ]; return $fields; @@ -275,7 +275,7 @@ class Template_Switching_Element extends Base_Element { $template_id = wu_request('template_id', ''); if ( ! $template_id) { - return new \WP_Error('template_id_required', __('You need to provide a valid template to duplicate.', 'wp-ultimo')); + return new \WP_Error('template_id_required', __('You need to provide a valid template to duplicate.', 'wp-multisite-waas')); } $switch = \WP_Ultimo\Helpers\Site_Duplicator::override_site($template_id, $this->site->get_id()); @@ -349,12 +349,12 @@ class Template_Switching_Element extends Base_Element { $template_class = Field_Templates_Manager::get_instance()->get_template_class('template_selection', $atts['template_selection_template']); - $content = $template_class ? $template_class->render_container($template_attributes, $reducer_class) : __('Template does not exist.', 'wp-ultimo'); + $content = $template_class ? $template_class->render_container($template_attributes, $reducer_class) : __('Template does not exist.', 'wp-multisite-waas'); $checkout_fields['back_to_template_selection'] = [ 'type' => 'note', 'order' => 0, - 'desc' => sprintf('%s', __('← Back to Template Selection', 'wp-ultimo')), + 'desc' => sprintf('%s', __('← Back to Template Selection', 'wp-multisite-waas')), 'wrapper_html_attr' => [ 'v-init:original_template_id' => $this->site->get_template_id(), 'v-show' => 'template_id != original_template_id', @@ -375,8 +375,8 @@ class Template_Switching_Element extends Base_Element { $checkout_fields['confirm_switch'] = [ 'type' => 'toggle', - 'title' => __('Confirm template switch?', 'wp-ultimo'), - 'desc' => __('Switching your current template completely overwrites the content of your site with the contents of the newly chosen template. All customizations will be lost. This action cannot be undone.', 'wp-ultimo'), + 'title' => __('Confirm template switch?', 'wp-multisite-waas'), + 'desc' => __('Switching your current template completely overwrites the content of your site with the contents of the newly chosen template. All customizations will be lost. This action cannot be undone.', 'wp-multisite-waas'), 'tooltip' => '', 'wrapper_classes' => '', 'value' => 0, @@ -391,7 +391,7 @@ class Template_Switching_Element extends Base_Element { $checkout_fields['submit_switch'] = [ 'type' => 'link', - 'display_value' => __('Process Switch', 'wp-ultimo'), + 'display_value' => __('Process Switch', 'wp-multisite-waas'), 'wrapper_classes' => 'wu-text-right wu-bg-gray-100', 'classes' => 'button button-primary', 'wrapper_html_attr' => [ diff --git a/inc/ui/class-thank-you-element.php b/inc/ui/class-thank-you-element.php index 536918f..8d4f703 100644 --- a/inc/ui/class-thank-you-element.php +++ b/inc/ui/class-thank-you-element.php @@ -148,8 +148,8 @@ class Thank_You_Element extends Base_Element { 'resend_verification_email_nonce' => wp_create_nonce('wu_resend_verification_email_nonce'), 'membership_hash' => $this->membership ? $this->membership->get_hash() : false, 'i18n' => [ - 'resending_verification_email' => __('Resending verification email...', 'wp-ultimo'), - 'email_sent' => __('Verification email sent!', 'wp-ultimo'), + 'resending_verification_email' => __('Resending verification email...', 'wp-multisite-waas'), + 'email_sent' => __('Verification email sent!', 'wp-multisite-waas'), ], ] ); @@ -162,14 +162,14 @@ class Thank_You_Element extends Base_Element { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'wp-ultimo'). + * e.g. return __('My Element', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Thank You', 'wp-ultimo'); + return __('Thank You', 'wp-multisite-waas'); } /** @@ -178,14 +178,14 @@ class Thank_You_Element extends Base_Element { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'wp-ultimo'). + * e.g. return __('Adds a checkout form to the page', 'wp-multisite-waas'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'wp-ultimo'); + return __('Adds a checkout form block to the page.', 'wp-multisite-waas'); } /** @@ -210,24 +210,24 @@ class Thank_You_Element extends Base_Element { $fields = []; $fields['header'] = [ - 'title' => __('General', 'wp-ultimo'), - 'desc' => __('General', 'wp-ultimo'), + 'title' => __('General', 'wp-multisite-waas'), + 'desc' => __('General', 'wp-multisite-waas'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'wp-ultimo'), - 'value' => __('Thank You', 'wp-ultimo'), - 'desc' => __('Leave blank to hide the title completely.', 'wp-ultimo'), + 'title' => __('Title', 'wp-multisite-waas'), + 'value' => __('Thank You', 'wp-multisite-waas'), + 'desc' => __('Leave blank to hide the title completely.', 'wp-multisite-waas'), 'tooltip' => '', ]; $fields['thank_you_message'] = [ 'type' => 'textarea', - 'title' => __('Thank You Message', 'wp-ultimo'), - 'desc' => __('Shortcodes are supported.', 'wp-ultimo'), - 'value' => __('Thank you for your payment! Your transaction has been completed and a receipt for your purchase has been emailed to you.', 'wp-ultimo'), + 'title' => __('Thank You Message', 'wp-multisite-waas'), + 'desc' => __('Shortcodes are supported.', 'wp-multisite-waas'), + 'value' => __('Thank you for your payment! Your transaction has been completed and a receipt for your purchase has been emailed to you.', 'wp-multisite-waas'), 'tooltip' => '', 'html_attr' => [ 'rows' => 4, @@ -236,17 +236,17 @@ class Thank_You_Element extends Base_Element { $fields['title_pending'] = [ 'type' => 'text', - 'title' => __('Title (Pending)', 'wp-ultimo'), - 'value' => __('Thank You', 'wp-ultimo'), - 'desc' => __('Leave blank to hide the title completely. This title is used when the payment was not yet confirmed.', 'wp-ultimo'), + 'title' => __('Title (Pending)', 'wp-multisite-waas'), + 'value' => __('Thank You', 'wp-multisite-waas'), + 'desc' => __('Leave blank to hide the title completely. This title is used when the payment was not yet confirmed.', 'wp-multisite-waas'), 'tooltip' => '', ]; $fields['thank_you_message_pending'] = [ 'type' => 'textarea', - 'title' => __('Thank You Message (Pending)', 'wp-ultimo'), - 'desc' => __('This content is used when the payment was not yet confirmed. Shortcodes are supported.', 'wp-ultimo'), - 'value' => __('Thank you for your order! We are waiting on the payment processor to confirm your payment, which can take up to 5 minutes. We will notify you via email when your site is ready.', 'wp-ultimo'), + 'title' => __('Thank You Message (Pending)', 'wp-multisite-waas'), + 'desc' => __('This content is used when the payment was not yet confirmed. Shortcodes are supported.', 'wp-multisite-waas'), + 'value' => __('Thank you for your order! We are waiting on the payment processor to confirm your payment, which can take up to 5 minutes. We will notify you via email when your site is ready.', 'wp-multisite-waas'), 'tooltip' => '', 'html_attr' => [ 'rows' => 4, @@ -255,9 +255,9 @@ class Thank_You_Element extends Base_Element { $fields['no_sites_message'] = [ 'type' => 'textarea', - 'title' => __('No Sites Message', 'wp-ultimo'), - 'desc' => __('A message to show if membership has no sites. Shortcodes are supported.', 'wp-ultimo'), - 'value' => __('No sites found', 'wp-ultimo'), + 'title' => __('No Sites Message', 'wp-multisite-waas'), + 'desc' => __('A message to show if membership has no sites. Shortcodes are supported.', 'wp-multisite-waas'), + 'value' => __('No sites found', 'wp-multisite-waas'), 'tooltip' => '', 'html_attr' => [ 'rows' => 4, @@ -312,11 +312,11 @@ class Thank_You_Element extends Base_Element { public function defaults() { return [ - 'title' => __('Thank You', 'wp-ultimo'), - 'thank_you_message' => __('Thank you for your payment! Your transaction has been completed and a receipt for your purchase has been emailed to you.', 'wp-ultimo'), - 'title_pending' => __('Thank You', 'wp-ultimo'), - 'thank_you_message_pending' => __('Thank you for your order! We are waiting on the payment processor to confirm your payment, which can take up to 5 minutes. We will notify you via email when your site is ready.', 'wp-ultimo'), - 'no_sites_message' => __('No sites found', 'wp-ultimo'), + 'title' => __('Thank You', 'wp-multisite-waas'), + 'thank_you_message' => __('Thank you for your payment! Your transaction has been completed and a receipt for your purchase has been emailed to you.', 'wp-multisite-waas'), + 'title_pending' => __('Thank You', 'wp-multisite-waas'), + 'thank_you_message_pending' => __('Thank you for your order! We are waiting on the payment processor to confirm your payment, which can take up to 5 minutes. We will notify you via email when your site is ready.', 'wp-multisite-waas'), + 'no_sites_message' => __('No sites found', 'wp-multisite-waas'), ]; } diff --git a/inc/ui/class-tours.php b/inc/ui/class-tours.php index 4834e5d..99a4cc4 100644 --- a/inc/ui/class-tours.php +++ b/inc/ui/class-tours.php @@ -95,8 +95,8 @@ class Tours { 'ajaxurl' => wu_ajax_url(), 'nonce' => wp_create_nonce('wu_tour_finished'), 'i18n' => [ - 'next' => __('Next', 'wp-ultimo'), - 'finish' => __('Close', 'wp-ultimo'), + 'next' => __('Next', 'wp-multisite-waas'), + 'finish' => __('Close', 'wp-multisite-waas'), ], ] ); diff --git a/sunrise.php b/sunrise.php index 8bd3d8f..ec0266c 100644 --- a/sunrise.php +++ b/sunrise.php @@ -66,6 +66,8 @@ foreach ([$wu_sunrise, $wu_mu_sunrise] as $wu_sunrise_file) { } } unset($wu_sunrise_file); +unset($wu_mu_sunrise); +unset($wu_sunrise); /** * Include Mercator. * @@ -81,6 +83,7 @@ $wu_mercator = defined('WP_PLUGIN_DIR') if (file_exists($wu_mercator)) { require $wu_mercator; } +unset($wu_mercator) /** * Adds a warning when WP Multisite WaaS is not present but the sunrise file is. diff --git a/views/about.php b/views/about.php index 5d00822..89c3c2f 100644 --- a/views/about.php +++ b/views/about.php @@ -21,7 +21,7 @@ - +
diff --git a/views/admin-pages/fields/field-dashicon.php b/views/admin-pages/fields/field-dashicon.php index b2ebfe4..b97ad47 100644 --- a/views/admin-pages/fields/field-dashicon.php +++ b/views/admin-pages/fields/field-dashicon.php @@ -28,7 +28,7 @@ get_html_attributes(); ?> placeholder="placeholder; ?>"> + - + - +
diff --git a/views/base/edit.php b/views/base/edit.php index a9027a5..62cdb15 100644 --- a/views/base/edit.php +++ b/views/base/edit.php @@ -9,7 +9,7 @@

- edit ? $labels['edit_label'] : $labels['add_new_label']; ?> + edit ? $labels['edit_label'] : $labels['add_new_label']); ?> - > + > @@ -34,7 +34,7 @@ - + diff --git a/views/base/edit/display-notes.php b/views/base/edit/display-notes.php index 54aef2e..cc01c1a 100644 --- a/views/base/edit/display-notes.php +++ b/views/base/edit/display-notes.php @@ -11,8 +11,8 @@ __('No notes yet.', 'wp-ultimo'), - 'sub_message' => __('Use the "Add new Note" to create the first one.', 'wp-ultimo'), + 'message' => __('No notes yet.', 'wp-multisite-waas'), + 'sub_message' => __('Use the "Add new Note" to create the first one.', 'wp-multisite-waas'), 'link_url' => false, 'display_background_image' => false, ] @@ -77,7 +77,7 @@ + title=""> diff --git a/views/base/edit/editor-customizer.php b/views/base/edit/editor-customizer.php index 671d4db..bedf953 100644 --- a/views/base/edit/editor-customizer.php +++ b/views/base/edit/editor-customizer.php @@ -13,7 +13,7 @@ - + @@ -31,7 +31,7 @@ - + @@ -43,7 +43,7 @@
- +
diff --git a/views/base/edit/widget-list-table.php b/views/base/edit/widget-list-table.php index 280cdc8..a6999fb 100644 --- a/views/base/edit/widget-list-table.php +++ b/views/base/edit/widget-list-table.php @@ -28,7 +28,7 @@
- +
diff --git a/views/base/edit/widget-tabs.php b/views/base/edit/widget-tabs.php index 35bc8ea..4690d5e 100644 --- a/views/base/edit/widget-tabs.php +++ b/views/base/edit/widget-tabs.php @@ -33,7 +33,7 @@   - + @@ -79,13 +79,13 @@ - + - + @@ -101,7 +101,7 @@ - + diff --git a/views/base/empty-state.php b/views/base/empty-state.php index dbc6428..8be99fd 100644 --- a/views/base/empty-state.php +++ b/views/base/empty-state.php @@ -7,14 +7,14 @@ ?>
- + @@ -22,7 +22,7 @@
- +
@@ -40,7 +40,7 @@ - + @@ -50,7 +50,7 @@
- +
diff --git a/views/base/filter.php b/views/base/filter.php index 2f8e50e..f265739 100644 --- a/views/base/filter.php +++ b/views/base/filter.php @@ -47,11 +47,11 @@ class="button drawer-toggle" v-bind:aria-expanded="open ? 'true' : 'false'" > - +
- +
@@ -110,7 +110,7 @@ class="wu-uppercase wu-font-semibold wu-text-gray-600 wu-text-xs" v-if="index === 0" > - + - - + +
@@ -151,24 +151,24 @@
@@ -178,7 +178,7 @@ @@ -193,7 +193,7 @@ class="button" v-show="index > 0" > - +
@@ -206,7 +206,7 @@ class="button button-primary wu-float-right" v-show="index === filters.length - 1" > - +

diff --git a/views/base/list.php b/views/base/list.php index f599b28..1e76c53 100644 --- a/views/base/list.php +++ b/views/base/list.php @@ -9,7 +9,7 @@

- get_title(); ?> + get_title()); ?> - + diff --git a/views/base/products/grid-item.php b/views/base/products/grid-item.php index 717d6b0..d53867a 100644 --- a/views/base/products/grid-item.php +++ b/views/base/products/grid-item.php @@ -19,11 +19,11 @@
- get_type_label(); ?> + get_type_label()); ?>
- get_type_label(); ?> + get_type_label()); ?>
- get_name(); ?> + get_name()); ?>
@@ -61,11 +61,11 @@ - +

diff --git a/views/base/responsive-table-row.php b/views/base/responsive-table-row.php index 225349d..edb589a 100644 --- a/views/base/responsive-table-row.php +++ b/views/base/responsive-table-row.php @@ -127,7 +127,7 @@ endforeach;
- + diff --git a/views/base/settings.php b/views/base/settings.php index 8585898..093ca84 100644 --- a/views/base/settings.php +++ b/views/base/settings.php @@ -53,7 +53,7 @@
-

+

@@ -88,7 +88,7 @@
  • - +
  • @@ -183,7 +183,7 @@
    • - +
    • $section) : ?> diff --git a/views/base/sites/grid-item.php b/views/base/sites/grid-item.php index ceee0e4..b1fb734 100644 --- a/views/base/sites/grid-item.php +++ b/views/base/sites/grid-item.php @@ -14,14 +14,14 @@
      - get_type_label(); ?> + get_type_label()); ?>
      @@ -31,12 +31,12 @@
      @@ -48,23 +48,23 @@ get_type() === 'pending') : ?> - - + + - - + + @@ -73,8 +73,8 @@   - - + + diff --git a/views/base/wizard/submit-box.php b/views/base/wizard/submit-box.php index a4dbf49..01f2bf1 100644 --- a/views/base/wizard/submit-box.php +++ b/views/base/wizard/submit-box.php @@ -9,13 +9,13 @@
      - + diff --git a/views/broadcast/widget-targets.php b/views/broadcast/widget-targets.php index 83feafc..698491c 100644 --- a/views/broadcast/widget-targets.php +++ b/views/broadcast/widget-targets.php @@ -53,7 +53,7 @@ - + diff --git a/views/checkout/fields/field-password.php b/views/checkout/fields/field-password.php index 35883fb..8f6ccd9 100644 --- a/views/checkout/fields/field-password.php +++ b/views/checkout/fields/field-password.php @@ -31,7 +31,7 @@ - + diff --git a/views/checkout/partials/pricing-table-list.php b/views/checkout/partials/pricing-table-list.php index 48ef492..5beffa8 100644 --- a/views/checkout/partials/pricing-table-list.php +++ b/views/checkout/partials/pricing-table-list.php @@ -18,7 +18,7 @@
      - +
      @@ -54,7 +54,7 @@ diff --git a/views/checkout/paypal/confirm.php b/views/checkout/paypal/confirm.php index 08ff8c1..48724c8 100644 --- a/views/checkout/paypal/confirm.php +++ b/views/checkout/paypal/confirm.php @@ -14,7 +14,7 @@ if ($is_trial_setup) { $date = wp_date(get_option('date_format'), strtotime($membership->get_date_trial_end(), wu_get_current_time('timestamp', true))); - $notes[] = sprintf(__('Your trial period will end on %1$s.', 'wp-ultimo'), $date); + $notes[] = sprintf(__('Your trial period will end on %1$s.', 'wp-multisite-waas'), $date); } // end if; $original_cart = $payment->get_meta('wu_original_cart'); @@ -34,26 +34,26 @@ if ($membership->is_recurring() && $should_auto_renew) { if ($original_cart->get_cart_type() === 'downgrade') { $subtotal = wu_format_currency($payment->get_subtotal(), $payment->get_currency()); if ($is_trial_setup) { - $notes[] = sprintf(__('Your updated membership will start on $1$s, from that date you will be billed %2$s %3$s.', 'wp-ultimo'), $date, $subtotal, $desc); + $notes[] = sprintf(__('Your updated membership will start on $1$s, from that date you will be billed %2$s %3$s.', 'wp-multisite-waas'), $date, $subtotal, $desc); } else { $date_renew = wp_date(get_option('date_format'), strtotime($membership->get_date_expiration(), wu_get_current_time('timestamp', true))); - $notes[] = sprintf(__('Your updated membership will start on %1$s, from that date you will be billed %2$s %3$s.', 'wp-ultimo'), $date_renew, $subtotal, $desc); + $notes[] = sprintf(__('Your updated membership will start on %1$s, from that date you will be billed %2$s %3$s.', 'wp-multisite-waas'), $date_renew, $subtotal, $desc); } // end if; } elseif ($is_trial_setup) { $initial_amount_format = wu_format_currency($membership->get_initial_amount(), $payment->get_currency()); - $notes[] = sprintf(__('After the first payment of %1$s you will be billed %2$s %3$s.', 'wp-ultimo'), $initial_amount_format, $recurring_total_format, $desc); + $notes[] = sprintf(__('After the first payment of %1$s you will be billed %2$s %3$s.', 'wp-multisite-waas'), $initial_amount_format, $recurring_total_format, $desc); } else { - $notes[] = sprintf(__('After this payment you will be billed %1$s %2$s.', 'wp-ultimo'), $recurring_total_format, $desc); + $notes[] = sprintf(__('After this payment you will be billed %1$s %2$s.', 'wp-multisite-waas'), $recurring_total_format, $desc); } // end if; } else { $recurring_total_format = wu_format_currency($recurring_total, $payment->get_currency()); if ($is_trial_setup) { - $notes[] = sprintf(__('From that date, you will be billed %1$s %2$s.', 'wp-ultimo'), $recurring_total_format, $desc); + $notes[] = sprintf(__('From that date, you will be billed %1$s %2$s.', 'wp-multisite-waas'), $recurring_total_format, $desc); } else { - $notes[] = sprintf(__('After this payment you will be billed %1$s.', 'wp-ultimo'), $desc); + $notes[] = sprintf(__('After this payment you will be billed %1$s.', 'wp-multisite-waas'), $desc); } // end if; } // end if; } // end if; @@ -66,7 +66,7 @@ $subtotal = 0;
      -

      +

      @@ -75,8 +75,8 @@ $subtotal = 0;

      - -
      + +

      @@ -85,8 +85,8 @@ $subtotal = 0; - - + + @@ -112,21 +112,21 @@ $subtotal = 0; - + get_tax_breakthrough() as $rate => $total) : ?> - + - + @@ -157,7 +157,7 @@ $subtotal = 0;
      diff --git a/views/checkout/register.php b/views/checkout/register.php index 199fcad..f62b60c 100644 --- a/views/checkout/register.php +++ b/views/checkout/register.php @@ -11,7 +11,7 @@ 'product-fields', $product_fields, [ - 'title' => __('Products', 'wp-ultimo'), + 'title' => __('Products', 'wp-multisite-waas'), 'views' => 'checkout/fields', ] ); diff --git a/views/checkout/templates/order-bump/simple.php b/views/checkout/templates/order-bump/simple.php index 5683eb1..5e095d9 100644 --- a/views/checkout/templates/order-bump/simple.php +++ b/views/checkout/templates/order-bump/simple.php @@ -55,10 +55,10 @@ if (false !== $product_variation) {
      - +
      - +
      diff --git a/views/checkout/templates/order-summary/simple.php b/views/checkout/templates/order-summary/simple.php index caaf736..50c5c83 100644 --- a/views/checkout/templates/order-summary/simple.php +++ b/views/checkout/templates/order-summary/simple.php @@ -9,7 +9,7 @@
      - +
      @@ -22,31 +22,31 @@ @@ -61,7 +61,7 @@ @@ -71,13 +71,13 @@ @@ -183,7 +183,7 @@ @@ -201,7 +201,7 @@ @@ -224,7 +224,7 @@ @@ -245,7 +245,7 @@
    • - +
    • @@ -253,12 +253,12 @@ - + diff --git a/views/checkout/templates/pricing-table/legacy.php b/views/checkout/templates/pricing-table/legacy.php index b6526a9..c40100f 100644 --- a/views/checkout/templates/pricing-table/legacy.php +++ b/views/checkout/templates/pricing-table/legacy.php @@ -101,7 +101,7 @@ if (null !== $first_recurring_product) {
      - +
      @@ -130,7 +130,7 @@ if (null !== $first_recurring_product) { /** * Featured tag. */ - echo apply_filters('wu_featured_plan_label', __('Featured Plan', 'wp-ultimo'), $product); + echo apply_filters('wu_featured_plan_label', __('Featured Plan', 'wp-multisite-waas'), $product); ?> @@ -158,7 +158,7 @@ if (null !== $first_recurring_product) { - + @@ -178,7 +178,7 @@ if (null !== $first_recurring_product) { - + @@ -256,7 +256,7 @@ if (null !== $first_recurring_product) { /** * Period Unit. */ - $symbol = $product->is_recurring() ? __('/mo', 'wp-ultimo') : ''; + $symbol = $product->is_recurring() ? __('/mo', 'wp-multisite-waas') : ''; echo (! $symbol_left ? wu_get_currency_symbol() : '') . ' ' . $symbol; @@ -304,8 +304,8 @@ if (null !== $first_recurring_product) { * Display quarterly and Annually plans, to be hidden. */ $prices_total = [ - 3 => __('every 3 months', 'wp-ultimo'), - 12 => __('yearly', 'wp-ultimo'), + 3 => __('every 3 months', 'wp-multisite-waas'), + 12 => __('yearly', 'wp-multisite-waas'), ]; foreach ($prices_total as $freq => $string) { @@ -314,7 +314,7 @@ if (null !== $first_recurring_product) { if ( ! $price_variation || $product->get_pricing_type() == 'free' || $product->get_pricing_type() == 'contact_us') { echo "
    • -
    • "; } else { - $text = sprintf(__('%1$s, billed %2$s', 'wp-ultimo'), wu_format_currency($price_variation['amount']), $string); + $text = sprintf(__('%1$s, billed %2$s', 'wp-multisite-waas'), wu_format_currency($price_variation['amount']), $string); $extra_check_for_annual = ''; @@ -344,7 +344,7 @@ if (null !== $first_recurring_product) { value="get_id(); ?>" class="button button-primary button-next" > - + diff --git a/views/checkout/templates/steps/clean.php b/views/checkout/templates/steps/clean.php index dbb72c4..e6a7ef6 100644 --- a/views/checkout/templates/steps/clean.php +++ b/views/checkout/templates/steps/clean.php @@ -22,7 +22,7 @@ if ( ! defined('ABSPATH')) { ?> - - - + + @@ -96,7 +96,7 @@ $page->render_csv_button( = 0) : ?> - + @@ -114,7 +114,7 @@ $page->render_csv_button(
      - +
      diff --git a/views/dashboard-statistics/widget-forms.php b/views/dashboard-statistics/widget-forms.php index ff43a61..30e0b83 100644 --- a/views/dashboard-statistics/widget-forms.php +++ b/views/dashboard-statistics/widget-forms.php @@ -15,8 +15,8 @@ $data = []; $slug = 'signup_forms'; $headers = [ - __('Checkout Form', 'wp-ultimo'), - __('Signups', 'wp-ultimo'), + __('Checkout Form', 'wp-multisite-waas'), + __('Signups', 'wp-multisite-waas'), ]; foreach ($forms as $form) { @@ -50,8 +50,8 @@ $page->render_csv_button(
      - - + + @@ -63,7 +63,7 @@ $page->render_csv_button( @@ -81,7 +81,7 @@ $page->render_csv_button(
      - +
      diff --git a/views/dashboard-statistics/widget-most-visited-sites.php b/views/dashboard-statistics/widget-most-visited-sites.php index fb231c8..4314934 100644 --- a/views/dashboard-statistics/widget-most-visited-sites.php +++ b/views/dashboard-statistics/widget-most-visited-sites.php @@ -15,8 +15,8 @@ $data = []; $slug = 'most_visited_sites'; $headers = [ - __('Site', 'wp-ultimo'), - __('Visits', 'wp-ultimo'), + __('Site', 'wp-multisite-waas'), + __('Visits', 'wp-multisite-waas'), ]; foreach ($sites as $site_visits) { @@ -52,8 +52,8 @@ $page->render_csv_button(
      - - + + @@ -69,24 +69,24 @@ $page->render_csv_button( @@ -102,7 +102,7 @@ $page->render_csv_button(
      - +
      diff --git a/views/dashboard-statistics/widget-mrr-growth.php b/views/dashboard-statistics/widget-mrr-growth.php index 5f5b773..755de5d 100644 --- a/views/dashboard-statistics/widget-mrr-growth.php +++ b/views/dashboard-statistics/widget-mrr-growth.php @@ -11,7 +11,7 @@ - + diff --git a/views/dashboard-statistics/widget-new-accounts.php b/views/dashboard-statistics/widget-new-accounts.php index e292e60..a08ca53 100644 --- a/views/dashboard-statistics/widget-new-accounts.php +++ b/views/dashboard-statistics/widget-new-accounts.php @@ -20,7 +20,7 @@
      - +
      @@ -34,8 +34,8 @@ - - + + @@ -60,7 +60,7 @@ diff --git a/views/dashboard-statistics/widget-revenue.php b/views/dashboard-statistics/widget-revenue.php index f01ac0f..18b571f 100644 --- a/views/dashboard-statistics/widget-revenue.php +++ b/views/dashboard-statistics/widget-revenue.php @@ -9,7 +9,7 @@
        -
      • > +
      • >
        @@ -20,7 +20,7 @@
        - +
      • @@ -36,7 +36,7 @@
        - +
        @@ -52,7 +52,7 @@
        - +
        @@ -65,8 +65,8 @@
      - - + + @@ -91,7 +91,7 @@ diff --git a/views/dashboard-statistics/widget-tax-by-code.php b/views/dashboard-statistics/widget-tax-by-code.php index 3d8b5d1..62d0ebb 100644 --- a/views/dashboard-statistics/widget-tax-by-code.php +++ b/views/dashboard-statistics/widget-tax-by-code.php @@ -14,10 +14,10 @@ $data = []; $slug = 'taxes_by_code'; $headers = [ - __('Tax', 'wp-ultimo'), - __('Rate', 'wp-ultimo'), - __('Orders', 'wp-ultimo'), - __('Tax Total', 'wp-ultimo'), + __('Tax', 'wp-multisite-waas'), + __('Rate', 'wp-multisite-waas'), + __('Orders', 'wp-multisite-waas'), + __('Tax Total', 'wp-multisite-waas'), ]; foreach ($taxes_by_rate as $tax_line) { @@ -45,10 +45,10 @@ - - - - + + + + @@ -79,7 +79,7 @@ diff --git a/views/dashboard-statistics/widget-tax-by-day.php b/views/dashboard-statistics/widget-tax-by-day.php index 752ce52..65820d6 100644 --- a/views/dashboard-statistics/widget-tax-by-day.php +++ b/views/dashboard-statistics/widget-tax-by-day.php @@ -14,11 +14,11 @@ $data = []; $slug = 'taxes_by_day'; $headers = [ - __('Day', 'wp-ultimo'), - __('Orders', 'wp-ultimo'), - __('Total Sales', 'wp-ultimo'), - __('Tax Total', 'wp-ultimo'), - __('Net Profit', 'wp-ultimo'), + __('Day', 'wp-multisite-waas'), + __('Orders', 'wp-multisite-waas'), + __('Total Sales', 'wp-multisite-waas'), + __('Tax Total', 'wp-multisite-waas'), + __('Net Profit', 'wp-multisite-waas'), ]; foreach ($taxes_by_day as $day => $tax_line) { @@ -47,11 +47,11 @@ - - - - - + + + + + @@ -85,7 +85,7 @@ diff --git a/views/dashboard-statistics/widget-tax-graph.php b/views/dashboard-statistics/widget-tax-graph.php index 5f5b773..755de5d 100644 --- a/views/dashboard-statistics/widget-tax-graph.php +++ b/views/dashboard-statistics/widget-tax-graph.php @@ -11,7 +11,7 @@ - + diff --git a/views/dashboard-statistics/widget-taxes.php b/views/dashboard-statistics/widget-taxes.php index 5f5b773..755de5d 100644 --- a/views/dashboard-statistics/widget-taxes.php +++ b/views/dashboard-statistics/widget-taxes.php @@ -11,7 +11,7 @@ - + diff --git a/views/dashboard-widgets/account-summary.php b/views/dashboard-widgets/account-summary.php index ea7ea8e..e887891 100644 --- a/views/dashboard-widgets/account-summary.php +++ b/views/dashboard-widgets/account-summary.php @@ -27,12 +27,12 @@
      - + @@ -60,8 +60,8 @@
      - - + +
      @@ -75,14 +75,14 @@
      - +
      - - + +
      @@ -113,8 +113,8 @@
      - - + +
      diff --git a/views/dashboard-widgets/activity-stream.php b/views/dashboard-widgets/activity-stream.php index ebfa360..c04dc05 100644 --- a/views/dashboard-widgets/activity-stream.php +++ b/views/dashboard-widgets/activity-stream.php @@ -11,11 +11,11 @@
      - +
      - +
      @@ -58,7 +58,7 @@

      {{ event.object_type }}

      - +

      @@ -67,7 +67,7 @@

      {{ $moment(event.date_created, "YYYYMMDD").fromNow() }} - +

      @@ -91,17 +91,17 @@ class='wu-feed-pagination wu-m-0 wu-flex wu-justify-between'>
    • - +
    • - ← + ←
    • - +
    • diff --git a/views/dashboard-widgets/billing-info.php b/views/dashboard-widgets/billing-info.php index fe9e653..9db36fb 100644 --- a/views/dashboard-widgets/billing-info.php +++ b/views/dashboard-widgets/billing-info.php @@ -29,12 +29,12 @@
      - + @@ -49,7 +49,7 @@
      - here to add one.', 'wp-ultimo'), __('Update Billing Address', 'wp-ultimo'), $update_billing_address_link); ?> + here to add one.', 'wp-multisite-waas'), __('Update Billing Address', 'wp-multisite-waas'), $update_billing_address_link); ?>
      @@ -99,7 +99,7 @@

      - +

      @@ -108,12 +108,12 @@
      - + diff --git a/views/dashboard-widgets/current-membership-product-details.php b/views/dashboard-widgets/current-membership-product-details.php index 3c86cff..075cc6d 100644 --- a/views/dashboard-widgets/current-membership-product-details.php +++ b/views/dashboard-widgets/current-membership-product-details.php @@ -38,7 +38,7 @@ - + @@ -48,7 +48,7 @@ - + diff --git a/views/dashboard-widgets/current-membership.php b/views/dashboard-widgets/current-membership.php index 0d67308..180d6ee 100644 --- a/views/dashboard-widgets/current-membership.php +++ b/views/dashboard-widgets/current-membership.php @@ -27,12 +27,12 @@
      - + @@ -93,7 +93,7 @@
      - %1\$s. Changing to %2\$s.", 'wp-ultimo'), $pending_change_date, $pending_change); ?> + %1\$s. Changing to %2\$s.", 'wp-multisite-waas'), $pending_change_date, $pending_change); ?>
      @@ -116,7 +116,7 @@
      - +
      @@ -134,7 +134,7 @@
      - +
      @@ -148,7 +148,7 @@
      - +
      @@ -164,7 +164,7 @@
      - +
      @@ -226,7 +226,7 @@

      - +

      @@ -268,7 +268,7 @@
      - + is_recurring() && (! $pending_products || wu_get_isset($pending_products, $addon['product']->get_id()))) : ?> - title="get_name())); ?>" + title="get_name())); ?>" href=" - + @@ -329,7 +329,7 @@
      - +
      @@ -344,7 +344,7 @@
      - + diff --git a/views/dashboard-widgets/current-site.php b/views/dashboard-widgets/current-site.php index 84a0132..1fc42d1 100644 --- a/views/dashboard-widgets/current-site.php +++ b/views/dashboard-widgets/current-site.php @@ -17,7 +17,7 @@
      @@ -78,7 +78,7 @@ style="max-width: px;" class="wu-w-full wu-rounded wu-border wu-border-solid " src="get_featured_image(); ?>" - alt="get_title()); ?>" + alt="get_title()); ?>" >
      diff --git a/views/dashboard-widgets/domain-mapping.php b/views/dashboard-widgets/domain-mapping.php index 739059c..968b2db 100644 --- a/views/dashboard-widgets/domain-mapping.php +++ b/views/dashboard-widgets/domain-mapping.php @@ -24,9 +24,9 @@
      - + - + @@ -57,7 +57,7 @@ $label = $item->get_stage_label(); if ( ! $item->is_active()) { - $label = sprintf('%s (%s)', $label, __('Inactive', 'wp-ultimo')); + $label = sprintf('%s (%s)', $label, __('Inactive', 'wp-multisite-waas')); } // end if; $class = $item->get_stage_class(); @@ -72,7 +72,7 @@ 'icon' => 'dashicons-wu-edit1 wu-align-middle wu-mr-1', 'label' => '', 'url' => $domain['primary_link'], - 'value' => __('Make Primary', 'wp-ultimo'), + 'value' => __('Make Primary', 'wp-multisite-waas'), ]; } // end if; @@ -80,7 +80,7 @@ 'wrapper_classes' => 'wu-text-red-500 wubox', 'icon' => 'dashicons-wu-trash-2 wu-align-middle wu-mr-1', 'label' => '', - 'value' => __('Delete', 'wp-ultimo'), + 'value' => __('Delete', 'wp-multisite-waas'), 'url' => $domain['delete_link'], ]; @@ -96,13 +96,13 @@ 'wrapper_classes' => $item->is_primary_domain() ? 'wu-text-blue-600' : '', 'icon' => $item->is_primary_domain() ? 'dashicons-wu-filter_1 wu-align-text-bottom wu-mr-1' : 'dashicons-wu-plus-square wu-align-text-bottom wu-mr-1', 'label' => '', - 'value' => $item->is_primary_domain() ? __('Primary', 'wp-ultimo') . wu_tooltip(__('All other mapped domains will redirect to the primary domain.', 'wp-ultimo'), 'dashicons-editor-help wu-align-middle wu-ml-1') : __('Alias', 'wp-ultimo'), + 'value' => $item->is_primary_domain() ? __('Primary', 'wp-multisite-waas') . wu_tooltip(__('All other mapped domains will redirect to the primary domain.', 'wp-multisite-waas'), 'dashicons-editor-help wu-align-middle wu-ml-1') : __('Alias', 'wp-multisite-waas'), ], 'secure' => [ 'wrapper_classes' => $item->is_secure() ? 'wu-text-green-500' : '', 'icon' => $item->is_secure() ? 'dashicons-wu-lock1 wu-align-text-bottom wu-mr-1' : 'dashicons-wu-lock1 wu-align-text-bottom wu-mr-1', 'label' => '', - 'value' => $item->is_secure() ? __('Secure (HTTPS)', 'wp-ultimo') : __('Not Secure (HTTP)', 'wp-ultimo'), + 'value' => $item->is_secure() ? __('Secure (HTTPS)', 'wp-multisite-waas') : __('Not Secure (HTTP)', 'wp-multisite-waas'), ], ], $second_row_actions @@ -119,7 +119,7 @@
      - +
      diff --git a/views/dashboard-widgets/first-steps.php b/views/dashboard-widgets/first-steps.php index 04e598c..79a3801 100644 --- a/views/dashboard-widgets/first-steps.php +++ b/views/dashboard-widgets/first-steps.php @@ -12,11 +12,11 @@
      - + - +
      @@ -24,7 +24,7 @@
      - +
      @@ -92,7 +92,7 @@ endforeach; class="button wu-text-center hide-postbox-tog" id="wp-ultimo-setup-hide" > - +
      diff --git a/views/dashboard-widgets/invoices.php b/views/dashboard-widgets/invoices.php index 2bbd4e2..78afa5f 100644 --- a/views/dashboard-widgets/invoices.php +++ b/views/dashboard-widgets/invoices.php @@ -47,15 +47,15 @@ ', $payment->get_invoice_url(), - esc_attr__('Download Invoice', 'wp-ultimo') + esc_attr__('Download Invoice', 'wp-multisite-waas') ); $payment_column = $payment->get_status() === 'pending' ? [ 'pay_now' => [ 'url' => add_query_arg(['payment' => $payment->get_hash()], wu_get_registration_url()), 'icon' => 'dashicons-wu-credit-card wu-align-middle wu-mr-1', - 'label' => __('Go to payment', 'wp-ultimo'), - 'value' => __('Pay Now', 'wp-ultimo'), + 'label' => __('Go to payment', 'wp-multisite-waas'), + 'value' => __('Pay Now', 'wp-multisite-waas'), ], ] : []; diff --git a/views/dashboard-widgets/limits-and-quotas.php b/views/dashboard-widgets/limits-and-quotas.php index 29b147d..92f4991 100644 --- a/views/dashboard-widgets/limits-and-quotas.php +++ b/views/dashboard-widgets/limits-and-quotas.php @@ -74,7 +74,7 @@ / - {$post_type_slug}->number) ? __('Unlimited', 'wp-ultimo') : $post_type_limits->{$post_type_slug}->number; ?> + {$post_type_slug}->number) ? __('Unlimited', 'wp-multisite-waas') : $post_type_limits->{$post_type_slug}->number; ?>
      @@ -113,9 +113,9 @@ endforeach;
      - + - +
      @@ -129,7 +129,7 @@ endforeach; / - get_limit() == 0 ? __('Unlimited', 'wp-ultimo') : number_format((int) $visit_limitations->get_limit()); ?> + get_limit() == 0 ? __('Unlimited', 'wp-multisite-waas') : number_format((int) $visit_limitations->get_limit()); ?>
      diff --git a/views/dashboard-widgets/login-form.php b/views/dashboard-widgets/login-form.php index f2e06d3..02504f1 100644 --- a/views/dashboard-widgets/login-form.php +++ b/views/dashboard-widgets/login-form.php @@ -16,7 +16,7 @@ Log in using your account.', 'wp-ultimo'), wp_get_current_user()->display_name, $login_url); + printf(__('Not %1$s? Log in using your account.', 'wp-multisite-waas'), wp_get_current_user()->display_name, $login_url); ?> @@ -44,12 +44,12 @@
      - + diff --git a/views/dashboard-widgets/my-sites.php b/views/dashboard-widgets/my-sites.php index 1f07a96..9e63f67 100644 --- a/views/dashboard-widgets/my-sites.php +++ b/views/dashboard-widgets/my-sites.php @@ -52,7 +52,7 @@ $show_add_new = apply_filters('wp_ultimo_my_sites_show_add_new', $show_add_new); - + @@ -69,7 +69,7 @@ $show_add_new = apply_filters('wp_ultimo_my_sites_show_add_new', $show_add_new); - + @@ -87,7 +87,7 @@ $show_add_new = apply_filters('wp_ultimo_my_sites_show_add_new', $show_add_new); <?php printf(esc_attr__('Site Image: %s', 'wp-ultimo'), $site->get_title()); ?> @@ -106,7 +106,7 @@ $show_add_new = apply_filters('wp_ultimo_my_sites_show_add_new', $show_add_new); get_id()) : ?> - > + > get_title(); ?> @@ -139,7 +139,7 @@ $show_add_new = apply_filters('wp_ultimo_my_sites_show_add_new', $show_add_new);
    • - +
    • @@ -148,7 +148,7 @@ $show_add_new = apply_filters('wp_ultimo_my_sites_show_add_new', $show_add_new);
    • - +
    • @@ -170,7 +170,7 @@ $show_add_new = apply_filters('wp_ultimo_my_sites_show_add_new', $show_add_new); - + diff --git a/views/dashboard-widgets/site-actions.php b/views/dashboard-widgets/site-actions.php index 447c398..ea8e82d 100644 --- a/views/dashboard-widgets/site-actions.php +++ b/views/dashboard-widgets/site-actions.php @@ -16,7 +16,7 @@

      - +

      @@ -61,7 +61,7 @@

      - +

      diff --git a/views/dashboard-widgets/summary.php b/views/dashboard-widgets/summary.php index fae23ed..593d118 100644 --- a/views/dashboard-widgets/summary.php +++ b/views/dashboard-widgets/summary.php @@ -20,12 +20,12 @@
      - +
      -
    • > +
    • >
      @@ -36,7 +36,7 @@
      - +
    • @@ -52,7 +52,7 @@
      - +
      diff --git a/views/dashboard-widgets/thank-you.php b/views/dashboard-widgets/thank-you.php index bcdd6ea..3a1abd1 100644 --- a/views/dashboard-widgets/thank-you.php +++ b/views/dashboard-widgets/thank-you.php @@ -45,7 +45,7 @@ - + @@ -69,7 +69,7 @@ - + @@ -87,7 +87,7 @@ - + @@ -141,7 +141,7 @@ - + @@ -159,7 +159,7 @@ - + @@ -177,7 +177,7 @@ - + @@ -195,7 +195,7 @@ - + @@ -227,7 +227,7 @@

      - +

      @@ -277,7 +277,7 @@ - + @@ -302,23 +302,23 @@ - +
      - +
      - + - + @@ -357,7 +357,7 @@

      - +

      @@ -374,8 +374,8 @@
      - - + + @@ -404,21 +404,21 @@ - + get_tax_breakthrough() as $rate => $total) : ?> - + - + @@ -442,7 +442,7 @@

      - +

      diff --git a/views/domain/dns-table.php b/views/domain/dns-table.php index eeb366a..6775708 100644 --- a/views/domain/dns-table.php +++ b/views/domain/dns-table.php @@ -11,10 +11,10 @@ - - - - + + + + @@ -24,7 +24,7 @@ @@ -70,7 +70,7 @@ - + diff --git a/views/domain/log.php b/views/domain/log.php index 8ecf05b..9ad90dd 100644 --- a/views/domain/log.php +++ b/views/domain/log.php @@ -8,7 +8,7 @@
      -	
      +	
       	
      @@ -16,7 +16,7 @@
      diff --git a/views/email/widget-placeholders.php b/views/email/widget-placeholders.php index 2f9f097..8b3ad0f 100644 --- a/views/email/widget-placeholders.php +++ b/views/email/widget-placeholders.php @@ -13,7 +13,7 @@
      - +
      @@ -27,13 +27,13 @@ @@ -57,7 +57,7 @@ @@ -272,11 +271,11 @@ $has_tax_included = false; @@ -284,7 +283,7 @@ $has_tax_included = false; diff --git a/views/legacy/signup/pricing-table/coupon-code.php b/views/legacy/signup/pricing-table/coupon-code.php index 5451f2a..5590af4 100644 --- a/views/legacy/signup/pricing-table/coupon-code.php +++ b/views/legacy/signup/pricing-table/coupon-code.php @@ -172,7 +172,7 @@ if (isset($_GET['coupon']) && wu_get_coupon($_GET['coupon']) !== false && isset( $(this).find('.old-price').html(accounting.formatMoney(parseFloat(old_price))); if (!$(this).find('.off-value').get(0)) { - $(this).find('.old-price').after('
      (' + off_with_symbol + ' ' + '' + ')
      '); + $(this).find('.old-price').after('
      (' + off_with_symbol + ' ' + '' + ')
      '); } @@ -185,7 +185,7 @@ if (isset($_GET['coupon']) && wu_get_coupon($_GET['coupon']) !== false && isset( if (!$(this).find('.setupfee-off-value').get(0)) { - $(this).find('.pricing-table-setupfee').after(' (' + setupfee_off_with_symbol + ' ' + '' + ')'); + $(this).find('.pricing-table-setupfee').after(' (' + setupfee_off_with_symbol + ' ' + '' + ')'); } @@ -241,7 +241,7 @@ if (isset($_GET['coupon']) && wu_get_coupon($_GET['coupon']) !== false && isset( } else { - $(this).find('.total-price.total-price-' + $('#wu_plan_freq').val() ).html(' '); + $(this).find('.total-price.total-price-' + $('#wu_plan_freq').val() ).html(' '); } @@ -251,7 +251,7 @@ if (isset($_GET['coupon']) && wu_get_coupon($_GET['coupon']) !== false && isset( } else { - $(this).find('.pricing-table-setupfee').html(' '); + $(this).find('.pricing-table-setupfee').html(' '); } @@ -268,7 +268,7 @@ if (isset($_GET['coupon']) && wu_get_coupon($_GET['coupon']) !== false && isset( } else { let plan_price = $(this).find('.plan-price'); - plan_price.html(' '); + plan_price.html(' '); let hagacinco = $(this).find('h5'); hagacinco.find('sub').hide(); hagacinco.find('.superscript').hide(); diff --git a/views/legacy/signup/pricing-table/frequency-selector.php b/views/legacy/signup/pricing-table/frequency-selector.php index f98f1c1..5b08cf9 100644 --- a/views/legacy/signup/pricing-table/frequency-selector.php +++ b/views/legacy/signup/pricing-table/frequency-selector.php @@ -28,9 +28,9 @@ if ( ! defined('ABSPATH')) { __('Monthly', 'wp-ultimo'), - 3 => __('Quarterly', 'wp-ultimo'), - 12 => __('Yearly', 'wp-ultimo'), + 1 => __('Monthly', 'wp-multisite-waas'), + 3 => __('Quarterly', 'wp-multisite-waas'), + 12 => __('Yearly', 'wp-multisite-waas'), ]; $first = true; diff --git a/views/legacy/signup/pricing-table/no-plans.php b/views/legacy/signup/pricing-table/no-plans.php index ae31553..1f1ea9c 100644 --- a/views/legacy/signup/pricing-table/no-plans.php +++ b/views/legacy/signup/pricing-table/no-plans.php @@ -22,5 +22,5 @@ if ( ! defined('ABSPATH')) { ?>
      -


      +


      diff --git a/views/legacy/signup/pricing-table/plan.php b/views/legacy/signup/pricing-table/plan.php index ad18367..aacf1c1 100644 --- a/views/legacy/signup/pricing-table/plan.php +++ b/views/legacy/signup/pricing-table/plan.php @@ -31,7 +31,7 @@ if ( ! defined('ABSPATH')) { $plan_attrs = ''; foreach ([1, 3, 12] as $type) { - $price = $plan->free ? __('Free!', 'wp-ultimo') : str_replace(wu_get_currency_symbol(), '', wu_format_currency((((float) $plan->{'price_' . $type}) / $type))); + $price = $plan->free ? __('Free!', 'wp-multisite-waas') : str_replace(wu_get_currency_symbol(), '', wu_format_currency((((float) $plan->{'price_' . $type}) / $type))); $plan_attrs .= " data-price-$type='$price'"; } // end foreach; @@ -43,7 +43,7 @@ $plan_attrs = apply_filters('wu_pricing_table_plan', $plan_attrs, $plan); is_featured_plan()) : ?> -
      +
      @@ -53,13 +53,13 @@ $plan_attrs = apply_filters('wu_pricing_table_plan', $plan_attrs, $plan); is_free()) : ?>
      - +
      is_contact_us()) : ?>
      - +
      @@ -71,7 +71,7 @@ $plan_attrs = apply_filters('wu_pricing_table_plan', $plan_attrs, $plan); ?> price_1)); ?> - + @@ -89,12 +89,12 @@ $plan_attrs = apply_filters('wu_pricing_table_plan', $plan_attrs, $plan); * Display quarterly and Annually plans, to be hidden */ $prices_total = [ - 3 => __('every 3 months', 'wp-ultimo'), - 12 => __('yearly', 'wp-ultimo'), + 3 => __('every 3 months', 'wp-multisite-waas'), + 12 => __('yearly', 'wp-multisite-waas'), ]; foreach ($prices_total as $freq => $string) { - $text = sprintf(__('%1$s, billed %2$s', 'wp-ultimo'), wu_format_currency($plan->{"price_$freq"}), $string); + $text = sprintf(__('%1$s, billed %2$s', 'wp-multisite-waas'), wu_format_currency($plan->{"price_$freq"}), $string); if ($plan->free || $plan->is_contact_us()) { echo "
    • -
    • "; @@ -115,7 +115,7 @@ $plan_attrs = apply_filters('wu_pricing_table_plan', $plan_attrs, $plan); get_id() == $current_plan->id ? __('This is your current plan', 'wp-ultimo') : __('Select Plan', 'wp-ultimo'); + $button_label = null != $current_plan && $plan->get_id() == $current_plan->id ? __('This is your current plan', 'wp-multisite-waas') : __('Select Plan', 'wp-multisite-waas'); $button_label = apply_filters('wu_plan_select_button_label', $button_label, $plan, $current_plan); ?> diff --git a/views/legacy/signup/signup-main.php b/views/legacy/signup/signup-main.php index 563e7fa..ce41734 100644 --- a/views/legacy/signup/signup-main.php +++ b/views/legacy/signup/signup-main.php @@ -60,7 +60,7 @@ do_action('wu_checkout_scripts'); - <?php echo apply_filters('wu_signup_page_title', sprintf(__('%s - Signup', 'wp-ultimo'), get_bloginfo('Name'), get_bloginfo('Name'))); ?> + <?php echo apply_filters('wu_signup_page_title', sprintf(__('%s - Signup', 'wp-multisite-waas'), get_bloginfo('Name'), get_bloginfo('Name'))); ?> @@ -97,7 +97,7 @@ do_action('wu_checkout_scripts');

      - +

      diff --git a/views/legacy/signup/signup-nav-links.php b/views/legacy/signup/signup-nav-links.php index c712fb4..a2d7833 100644 --- a/views/legacy/signup/signup-nav-links.php +++ b/views/legacy/signup/signup-nav-links.php @@ -31,8 +31,8 @@ if ( ! defined('ABSPATH')) { $nav_links = apply_filters( 'wu_signup_form_nav_links', [ - home_url() => __('Return to Home', 'wp-ultimo'), - wp_login_url() => sprintf('%s', __('Log In', 'wp-ultimo')), + home_url() => __('Return to Home', 'wp-multisite-waas'), + wp_login_url() => sprintf('%s', __('Log In', 'wp-multisite-waas')), ] ); diff --git a/views/legacy/signup/signup-steps-navigation.php b/views/legacy/signup/signup-steps-navigation.php index 93b5ca5..4163b32 100644 --- a/views/legacy/signup/signup-steps-navigation.php +++ b/views/legacy/signup/signup-steps-navigation.php @@ -72,7 +72,7 @@ $percent = 100 / $count; diff --git a/views/legacy/signup/steps/step-domain-url-preview.php b/views/legacy/signup/steps/step-domain-url-preview.php index 4c39263..16e9595 100644 --- a/views/legacy/signup/steps/step-domain-url-preview.php +++ b/views/legacy/signup/steps/step-domain-url-preview.php @@ -23,7 +23,7 @@ if ( ! defined('ABSPATH')) {
      -
      +
      '; // This is used on the yoursite.network.com during sign-up - $dynamic_part .= $signup->results['blogname'] ?? __('yoursite', 'wp-ultimo'); + $dynamic_part .= $signup->results['blogname'] ?? __('yoursite', 'wp-multisite-waas'); $dynamic_part .= ''; $site_url = preg_replace('#^https?://#', '', WU_Signup()->get_site_url_for_previewer()); diff --git a/views/limitations/plugin-selector.php b/views/limitations/plugin-selector.php index 528031c..5726316 100644 --- a/views/limitations/plugin-selector.php +++ b/views/limitations/plugin-selector.php @@ -25,7 +25,7 @@ - + @@ -43,11 +43,11 @@
      - + - +
      @@ -58,27 +58,27 @@

      - +

      - +

      @@ -90,7 +90,7 @@ model && $object->get_limitations(false)->plugins->exists($plugin_path)) : ?>

      - +

      diff --git a/views/limitations/site-template-selector.php b/views/limitations/site-template-selector.php index 94f8c04..6126a4a 100644 --- a/views/limitations/site-template-selector.php +++ b/views/limitations/site-template-selector.php @@ -42,7 +42,7 @@ - get_categories() ? __('No categories', 'wp-ultimo') : implode(', ', $site_template->get_categories()); ?> + get_categories() ? __('No categories', 'wp-multisite-waas') : implode(', ', $site_template->get_categories()); ?> @@ -52,7 +52,7 @@

      - +

      @@ -61,9 +61,9 @@ name="modules[site_templates][limit][get_id()); ?>][behavior]" class="wu-w-full" > - - - + + + diff --git a/views/limitations/theme-selector.php b/views/limitations/theme-selector.php index cb5ca4f..3c3579c 100644 --- a/views/limitations/theme-selector.php +++ b/views/limitations/theme-selector.php @@ -43,11 +43,11 @@
      - + - +
      @@ -60,25 +60,25 @@

      - +

      - +

      @@ -88,7 +88,7 @@ model && $object->get_limitations(false)->themes->exists($theme_path)) : ?>

      - +

      diff --git a/views/memberships/product-list.php b/views/memberships/product-list.php index 4aea022..ce9f9f1 100644 --- a/views/memberships/product-list.php +++ b/views/memberships/product-list.php @@ -13,11 +13,11 @@ - + diff --git a/views/payments/line-item-actions.php b/views/payments/line-item-actions.php index 2f0a3f4..4e8b574 100644 --- a/views/payments/line-item-actions.php +++ b/views/payments/line-item-actions.php @@ -41,7 +41,7 @@ - + @@ -57,7 +57,7 @@ - + diff --git a/views/payments/tax-details.php b/views/payments/tax-details.php index 6c83c18..de4c8aa 100644 --- a/views/payments/tax-details.php +++ b/views/payments/tax-details.php @@ -21,7 +21,7 @@ - + @@ -30,7 +30,7 @@ diff --git a/views/settings/fields/field-image.php b/views/settings/fields/field-image.php index 90dedca..cddbdda 100644 --- a/views/settings/fields/field-image.php +++ b/views/settings/fields/field-image.php @@ -47,7 +47,7 @@ wp_enqueue_script('wu-field-button-upload', WP_Ultimo()->get_asset("wu-field-ima - + diff --git a/views/settings/fields/field-multi_checkbox.php b/views/settings/fields/field-multi_checkbox.php index 5363027..c964186 100644 --- a/views/settings/fields/field-multi_checkbox.php +++ b/views/settings/fields/field-multi_checkbox.php @@ -71,7 +71,7 @@ - +
      diff --git a/views/shortcodes/shortcodes.php b/views/shortcodes/shortcodes.php index 4717271..949399a 100644 --- a/views/shortcodes/shortcodes.php +++ b/views/shortcodes/shortcodes.php @@ -8,7 +8,7 @@
      -

      +

      @@ -24,10 +24,10 @@ - +

      @@ -43,16 +43,16 @@

      get_currency()); ?>
      get_currency()); ?>
      get_total(), $payment->get_currency()); ?>
      - + - + - + - + - + - + - + - + - + @@ -93,7 +93,7 @@ - + @@ -167,7 +167,7 @@ - + - + - + - +
      |⟶ |⟶
      signup_form; ?> signup_form) : ?> - + count; ?>
      - count, 'wp-ultimo'), $site_visits->count); ?> + count, 'wp-multisite-waas'), $site_visits->count); ?>
      - +
      - +
      - +
      - +
      get_subtotal(), $payment->get_currency()); ?>
      get_currency()); ?>
      get_total(), $payment->get_currency()); ?>
      - +
      {{ results.network_ip }}
      - + - + - class="wu-no-underline wp-ui-text-highlight wu-copy" href="#" data-clipboard-action="copy" :data-clipboard-target="'#payload_event_placeholder_' + placeholder.placeholder"> + class="wu-no-underline wp-ui-text-highlight wu-copy" href="#" data-clipboard-action="copy" :data-clipboard-target="'#payload_event_placeholder_' + placeholder.placeholder"> diff --git a/views/emails/admin/domain-created.php b/views/emails/admin/domain-created.php index 54940be..0122196 100644 --- a/views/emails/admin/domain-created.php +++ b/views/emails/admin/domain-created.php @@ -5,132 +5,132 @@ * @since 2.0.0 */ ?> -

      +

      -

      +

      -

      +

      - + - + - + - + - + - + - +
      {{domain_domain}}
      {{domain_id}}
      {{domain_stage}}
      {{domain_active}}
      {{domain_primary}}
      {{domain_secure}}
      - +
      -

      +

      - + - + - + - + - +
      {{site_title}}
      {{site_id}}
      - +
      - +
      - +
      -

      +

      - + - + - + - + - + - + diff --git a/views/emails/admin/payment-received.php b/views/emails/admin/payment-received.php index b5f3ca9..68b16a6 100644 --- a/views/emails/admin/payment-received.php +++ b/views/emails/admin/payment-received.php @@ -5,153 +5,153 @@ * @since 2.0.0 */ ?> -

      +

      -

      +

      -

      +

      -

      +

      {{membership_description}}
      {{membership_initial_amount}}
      {{membership_id}}
      {{membership_reference_code}}
      {{membership_date_expiration}}
      - +
      - + - + - + - + - + - + - + - + - + - + - +
      {{payment_product_names}}
      {{payment_subtotal}}
      {{payment_tax_total}}
      {{payment_total}}
      {{payment_gateway}}
      {{payment_id}}
      {{payment_reference_code}}
      {{payment_date_created}}
      - +
      Initial Payment
      - +
      -

      +

      - + - + - + - + - + - +
      {{membership_description}}
      {{membership_initial_amount}}
      {{membership_id}}
      {{membership_reference_code}}
      {{membership_date_expiration}}
      - +
      -

      +

      - + - + - + - + - + diff --git a/views/emails/admin/site-published.php b/views/emails/admin/site-published.php index 9eab9a2..3f76e1a 100644 --- a/views/emails/admin/site-published.php +++ b/views/emails/admin/site-published.php @@ -5,119 +5,119 @@ * @since 2.0.0 */ ?> -

      +

      -

      %1$s (%2$s), was created successfully on your network!', 'wp-ultimo'), '{{site_title}}', '{{site_url}}'); ?>

      +

      %1$s (%2$s), was created successfully on your network!', 'wp-multisite-waas'), '{{site_title}}', '{{site_url}}'); ?>

      -

      +

      {{customer_avatar}}
      {{customer_name}}
      {{customer_user_email}}
      {{customer_id}}
      {{customer_billing_address}}
      - +
      - + - + - + - + - +
      {{site_title}}
      {{site_id}}
      - +
      - +
      - +
      -

      +

      - + - + - + - + - + - +
      {{membership_description}}
      {{membership_initial_amount}}
      {{membership_id}}
      {{membership_reference_code}}
      {{membership_date_expiration}}
      - +
      -

      +

      - + - + - + - + - + diff --git a/views/emails/customer/confirm-email-address.php b/views/emails/customer/confirm-email-address.php index 67feff0..1d72a34 100644 --- a/views/emails/customer/confirm-email-address.php +++ b/views/emails/customer/confirm-email-address.php @@ -5,14 +5,14 @@ * @since 2.0.0 */ ?> -

      +

      -

      +

      -

      +

      - +
      - {{verification_link}}'); ?> + {{verification_link}}'); ?>

      diff --git a/views/emails/customer/payment-received.php b/views/emails/customer/payment-received.php index 6052a75..2fceb69 100644 --- a/views/emails/customer/payment-received.php +++ b/views/emails/customer/payment-received.php @@ -5,54 +5,54 @@ * @since 2.0.0 */ ?> -

      +

      -

      +

      -

      +

      -

      +

      {{customer_avatar}}
      {{customer_name}}
      {{customer_user_email}}
      {{customer_id}}
      {{customer_billing_address}}
      - +
      - + - + - + - + - + - + - + diff --git a/views/emails/customer/renewal-payment-created.php b/views/emails/customer/renewal-payment-created.php index f5c867e..9c310ef 100644 --- a/views/emails/customer/renewal-payment-created.php +++ b/views/emails/customer/renewal-payment-created.php @@ -5,42 +5,42 @@ * @since 2.0.19 */ ?> -

      +

      -

      +

      -

      +

      -

      +

      {{payment_product_names}}
      {{payment_subtotal}}
      {{payment_tax_total}}
      {{payment_total}}
      {{payment_date_created}}
      - +
      Initial Payment
      - + - + - + - + - + diff --git a/views/emails/customer/site-published.php b/views/emails/customer/site-published.php index 1ea84e1..60b4054 100644 --- a/views/emails/customer/site-published.php +++ b/views/emails/customer/site-published.php @@ -5,30 +5,30 @@ * @since 2.0.0 */ ?> -

      +

      -

      %1$s (%2$s) was created successfully and is ready!', 'wp-ultimo'), '{{site_title}}', '{{site_url}}'); ?>

      +

      %1$s (%2$s) was created successfully and is ready!', 'wp-multisite-waas'), '{{site_title}}', '{{site_url}}'); ?>

      -

      +

      {{payment_product_names}}
      {{payment_subtotal}}
      {{payment_tax_total}}
      {{payment_total}}
      {{payment_date_created}}
      - + - + - + diff --git a/views/events/widget-initiator.php b/views/events/widget-initiator.php index 98ff56c..912d971 100644 --- a/views/events/widget-initiator.php +++ b/views/events/widget-initiator.php @@ -11,7 +11,7 @@
    • -

      +

      get_initiator() == 'manual') : ?> @@ -74,7 +74,7 @@ get_initiator()); ?> - + @@ -88,7 +88,7 @@
    • -

      get_object_type())); ?>

      +

      get_object_type())); ?>

      -

      +

      get_message(); ?> diff --git a/views/events/widget-payload.php b/views/events/widget-payload.php index 548eac3..4bb1924 100644 --- a/views/events/widget-payload.php +++ b/views/events/widget-payload.php @@ -31,7 +31,7 @@ diff --git a/views/invoice/template.php b/views/invoice/template.php index 8229f4d..a16340d 100644 --- a/views/invoice/template.php +++ b/views/invoice/template.php @@ -127,7 +127,7 @@ $has_tax_included = false; .primary-color { padding: 10px; - background-color: ; + background-color: ; } @@ -140,23 +140,22 @@ $has_tax_included = false;
    • {{site_title}}
      - +
      - +
      - - - + 'width: 100px; height: auto;')); ?> - <?php echo get_network_option(null, 'site_name'); ?> + <?php echo esc_attr(get_network_option(null, 'site_name')); ?> -
      - get_invoice_number(); ?> +
      + get_invoice_number()); ?>
      - get_date_created()))); ?>
      -
      + get_date_created())))); ?>
      + +
      @@ -174,7 +173,7 @@ $has_tax_included = false; /** * Displays company name. */ - echo $company_name; + echo esc_html($company_name); ?> @@ -186,20 +185,20 @@ $has_tax_included = false; /** * Displays the company address. */ - echo nl2br($company_address); + echo wp_kses(nl2br($company_address), array('br' => array())); ?>
      - +
      array())); ?> @@ -212,23 +211,23 @@ $has_tax_included = false;
      - + - + - + - + - +
      - * + * - get_total(), $payment->get_currency())); ?> + get_total(), $payment->get_currency())); ?>
      - +
      get_tax_total()); ?>
      - +
      $value) { ?> diff --git a/views/sites/edit-placeholders.php b/views/sites/edit-placeholders.php index a0561f1..58489a5 100644 --- a/views/sites/edit-placeholders.php +++ b/views/sites/edit-placeholders.php @@ -9,7 +9,7 @@

      - +

      @@ -27,7 +27,7 @@ - {{data.placeholders.length}} + {{data.placeholders.length}} @@ -73,7 +73,7 @@
      - +
      @@ -87,7 +87,7 @@
      - +
      @@ -206,13 +206,13 @@ @@ -238,11 +238,11 @@ - + - + diff --git a/views/system-info/system-info.php b/views/system-info/system-info.php index 9fc82c3..e572275 100644 --- a/views/system-info/system-info.php +++ b/views/system-info/system-info.php @@ -10,7 +10,7 @@
      -

      +

      - + - + - + - +
      - +