Compare commits
3 Commits
f05ab77418
...
readme-fix
Author | SHA1 | Date | |
---|---|---|---|
4966b6aa29 | |||
ea22717edd | |||
62729e05bd |
1828
assets/css/flags.css
1828
assets/css/flags.css
File diff suppressed because it is too large
Load Diff
1825
assets/css/flags/flag-icon.css
Normal file
1825
assets/css/flags/flag-icon.css
Normal file
File diff suppressed because it is too large
Load Diff
1
assets/css/flags/flag-icon.min.css
vendored
Normal file
1
assets/css/flags/flag-icon.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 4.6 KiB |
@ -1,2 +0,0 @@
|
||||
import { polyfillCountryFlagEmojis } from "https://cdn.skypack.dev/country-flag-emoji-polyfill";
|
||||
polyfillCountryFlagEmojis();
|
@ -10,12 +10,12 @@
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
return [
|
||||
'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'),
|
||||
'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'),
|
||||
];
|
||||
|
@ -86,7 +86,7 @@ class About_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('About', 'wp-multisite-waas');
|
||||
return __('About', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -97,7 +97,7 @@ class About_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Multisite WaaS', 'wp-multisite-waas');
|
||||
return __('Multisite WaaS', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -108,7 +108,7 @@ class About_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('About', 'wp-multisite-waas');
|
||||
return __('About', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -188,7 +188,7 @@ abstract class Base_Admin_Page {
|
||||
/*
|
||||
* Add forms
|
||||
*/
|
||||
$this->register_forms();
|
||||
add_action('plugins_loaded', [$this, 'register_forms']);
|
||||
|
||||
/**
|
||||
* Allow plugin developers to run additional things when pages are registered.
|
||||
@ -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-multisite-waas'),
|
||||
'label' => __('Documentation', 'wp-ultimo'),
|
||||
'icon' => 'wu-open-book',
|
||||
];
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ abstract class Base_Customer_Facing_Admin_Page extends Base_Admin_Page {
|
||||
|
||||
$fields['title'] = [
|
||||
'type' => 'text',
|
||||
'title' => __('Page & Menu Title', 'wp-multisite-waas'),
|
||||
'title' => __('Page & Menu Title', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Menu', 'wp-ultimo'),
|
||||
'value' => wu_get_isset($settings, 'position', ''),
|
||||
'tooltip' => '',
|
||||
];
|
||||
|
||||
$fields['menu_icon'] = [
|
||||
'type' => 'dashicon',
|
||||
'title' => __('Menu Icon', 'wp-multisite-waas'),
|
||||
'title' => __('Menu Icon', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Reset Settings', 'wp-ultimo'),
|
||||
'value' => 'edit',
|
||||
'classes' => 'button',
|
||||
'wrapper_classes' => 'wu-mb-0',
|
||||
],
|
||||
'submit' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Save Changes', 'wp-multisite-waas'),
|
||||
'title' => __('Save Changes', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'customize_label' => __('Customize Elements', 'wp-multisite-waas'),
|
||||
'close_label' => __('Exit Customize Mode', 'wp-multisite-waas'),
|
||||
'page_customize_label' => __('Customize Page', 'wp-ultimo'),
|
||||
'customize_label' => __('Customize Elements', 'wp-ultimo'),
|
||||
'close_label' => __('Exit Customize Mode', 'wp-ultimo'),
|
||||
],
|
||||
]
|
||||
);
|
||||
|
@ -93,7 +93,7 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$this->add_list_table_widget(
|
||||
'events',
|
||||
[
|
||||
'title' => __('Events', 'wp-multisite-waas'),
|
||||
'title' => __('Events', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Type', 'wp-multisite-waas'),
|
||||
'desc' => __('Broadcast type cannot be edited.', 'wp-multisite-waas'),
|
||||
'title' => __('Broadcast Type', 'wp-ultimo'),
|
||||
'placeholder' => __('Type', 'wp-ultimo'),
|
||||
'desc' => __('Broadcast type cannot be edited.', 'wp-ultimo'),
|
||||
'options' => [
|
||||
'broadcast_email' => __('Email', 'wp-multisite-waas'),
|
||||
'broadcast_notice' => __('Admin Notice', 'wp-multisite-waas'),
|
||||
'broadcast_email' => __('Email', 'wp-ultimo'),
|
||||
'broadcast_notice' => __('Admin Notice', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Status', 'wp-multisite-waas'),
|
||||
'desc' => __('This option determines the color of the admin notice.', 'wp-multisite-waas'),
|
||||
'title' => __('Broadcast Status', 'wp-ultimo'),
|
||||
'placeholder' => __('Status', 'wp-ultimo'),
|
||||
'desc' => __('This option determines the color of the admin notice.', 'wp-ultimo'),
|
||||
'options' => [
|
||||
'info' => __('Info (blue)', 'wp-multisite-waas'),
|
||||
'success' => __('Success (green)', 'wp-multisite-waas'),
|
||||
'warning' => __('Warning (yellow)', 'wp-multisite-waas'),
|
||||
'error' => __('Error (red)', 'wp-multisite-waas'),
|
||||
'info' => __('Info (blue)', 'wp-ultimo'),
|
||||
'success' => __('Success (green)', 'wp-ultimo'),
|
||||
'warning' => __('Warning (yellow)', 'wp-ultimo'),
|
||||
'error' => __('Error (red)', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'), [$this, 'output_default_widget_customer_targets'], get_current_screen()->id, 'side');
|
||||
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-product-targets', __('Product Targets', 'wp-multisite-waas'), [$this, 'output_default_widget_product_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');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
$not_found = __('No customer found', 'wp-ultimo');
|
||||
|
||||
$html .= "<span class='dashicons dashicons-wu-block wu-text-gray-600 wu-px-1 wu-pr-3'> </span>
|
||||
<div class=''>
|
||||
@ -270,9 +270,9 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
<a href="%s" title="%s" class="wubox wu-no-underline"><span class="wu-ml-6 wu-uppercase wu-text-xs wu-text-gray-600 wu-font-bold"> %s %s</span></a>
|
||||
</div>',
|
||||
wu_get_form_url('view_broadcast_targets', $modal_atts),
|
||||
__('Targets', 'wp-multisite-waas'),
|
||||
__('Targets', 'wp-ultimo'),
|
||||
$targets_count,
|
||||
__('Targets', 'wp-multisite-waas')
|
||||
__('Targets', 'wp-ultimo')
|
||||
);
|
||||
} else {
|
||||
$count = $targets_count - 6;
|
||||
@ -290,9 +290,9 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
<a href="%s" title="%s" class="wubox wu-no-underline"><span class="wu-pl-2 wu-uppercase wu-text-xs wu-font-bold"> %s %s</span></a>
|
||||
</div>',
|
||||
wu_get_form_url('view_broadcast_targets', $modal_atts),
|
||||
__('Targets', 'wp-multisite-waas'),
|
||||
__('Targets', 'wp-ultimo'),
|
||||
$targets_count,
|
||||
__('Targets', 'wp-multisite-waas')
|
||||
__('Targets', 'wp-ultimo')
|
||||
);
|
||||
}
|
||||
|
||||
@ -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-multisite-waas'), $customer_count);
|
||||
$description = sprintf(__('%s customer(s) targeted.', 'wp-ultimo'), $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-multisite-waas'),
|
||||
'loading_text' => __('Loading...', 'wp-ultimo'),
|
||||
'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-multisite-waas') : __('Add new Broadcast', 'wp-multisite-waas');
|
||||
return $this->edit ? __('Edit Broadcast', 'wp-ultimo') : __('Add new Broadcast', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -387,7 +387,7 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Edit Broadcast', 'wp-multisite-waas');
|
||||
return __('Edit Broadcast', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -410,15 +410,15 @@ class Broadcast_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
public function get_labels() {
|
||||
|
||||
return [
|
||||
'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'),
|
||||
'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'),
|
||||
'save_description' => '',
|
||||
'delete_button_label' => __('Delete Broadcast', 'wp-multisite-waas'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'),
|
||||
'delete_button_label' => __('Delete Broadcast', 'wp-ultimo'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -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-multisite-waas'), $customer_count);
|
||||
$description = sprintf(__('%s customer(s) targeted.', 'wp-ultimo'), $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-multisite-waas'),
|
||||
'desc' => __('Select the type of message you want to send.', 'wp-multisite-waas'),
|
||||
'title' => __('Broadcast Type', 'wp-ultimo'),
|
||||
'desc' => __('Select the type of message you want to send.', 'wp-ultimo'),
|
||||
'placeholder' => '',
|
||||
'tooltip' => '',
|
||||
'value' => '',
|
||||
@ -281,29 +281,29 @@ class Broadcast_List_Admin_Page extends List_Admin_Page {
|
||||
],
|
||||
'options' => [
|
||||
'broadcast_notice' => [
|
||||
'title' => __('Message', 'wp-multisite-waas'),
|
||||
'tooltip' => __('Display a message on your customers\' dashboard.', 'wp-multisite-waas'),
|
||||
'title' => __('Message', 'wp-ultimo'),
|
||||
'tooltip' => __('Display a message on your customers\' dashboard.', 'wp-ultimo'),
|
||||
'icon' => 'dashicons-before dashicons-excerpt-view',
|
||||
],
|
||||
'broadcast_email' => [
|
||||
'title' => __('Email', 'wp-multisite-waas'),
|
||||
'tooltip' => __('Send an email to your customers.', 'wp-multisite-waas'),
|
||||
'title' => __('Email', 'wp-ultimo'),
|
||||
'tooltip' => __('Send an email to your customers.', 'wp-ultimo'),
|
||||
'icon' => 'dashicons-before dashicons-email',
|
||||
],
|
||||
],
|
||||
],
|
||||
'step_note' => [
|
||||
'type' => 'note',
|
||||
'desc' => sprintf('<a href="#" class="wu-no-underline wu-mt-1 wu-uppercase wu-text-2xs wu-font-semibold wu-text-gray-600" v-show="step === 2" v-on:click.prevent="step = 1">%s</a>', __('← Back to Type Selection', 'wp-multisite-waas')),
|
||||
'desc' => sprintf('<a href="#" class="wu-no-underline wu-mt-1 wu-uppercase wu-text-2xs wu-font-semibold wu-text-gray-600" v-show="step === 2" v-on:click.prevent="step = 1">%s</a>', __('← Back to Type Selection', 'wp-ultimo')),
|
||||
'wrapper_html_attr' => [
|
||||
'v-show' => 'step === 2',
|
||||
],
|
||||
],
|
||||
'target_customers' => [
|
||||
'type' => 'model',
|
||||
'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'),
|
||||
'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'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('The color of the notice is based on the type.', 'wp-multisite-waas'),
|
||||
'title' => __('Message Type', 'wp-ultimo'),
|
||||
'desc' => __('The color of the notice is based on the type.', 'wp-ultimo'),
|
||||
'type' => 'select',
|
||||
'default' => 'success',
|
||||
'options' => [
|
||||
'success' => __('Success (green)', 'wp-multisite-waas'),
|
||||
'info' => __('Info (blue)', 'wp-multisite-waas'),
|
||||
'warning' => __('Warning (orange)', 'wp-multisite-waas'),
|
||||
'error' => __('Error (red)', 'wp-multisite-waas'),
|
||||
'success' => __('Success (green)', 'wp-ultimo'),
|
||||
'info' => __('Info (blue)', 'wp-ultimo'),
|
||||
'warning' => __('Warning (orange)', 'wp-ultimo'),
|
||||
'error' => __('Error (red)', 'wp-ultimo'),
|
||||
],
|
||||
'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('<a href="#" class="wu-no-underline wu-mt-1 wu-uppercase wu-text-2xs wu-font-semibold wu-text-gray-600" v-show="step === 3" v-on:click.prevent="step = 2">%s</a>', __('← Back to Target Selection', 'wp-multisite-waas')),
|
||||
'desc' => sprintf('<a href="#" class="wu-no-underline wu-mt-1 wu-uppercase wu-text-2xs wu-font-semibold wu-text-gray-600" v-show="step === 3" v-on:click.prevent="step = 2">%s</a>', __('← Back to Target Selection', 'wp-ultimo')),
|
||||
'wrapper_html_attr' => [
|
||||
'v-show' => 'step === 3',
|
||||
],
|
||||
],
|
||||
'subject' => [
|
||||
'type' => 'text',
|
||||
'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'),
|
||||
'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'),
|
||||
'html_attr' => [
|
||||
'v-model' => 'subject',
|
||||
],
|
||||
@ -371,8 +371,8 @@ class Broadcast_List_Admin_Page extends List_Admin_Page {
|
||||
],
|
||||
'content' => [
|
||||
'id' => 'content',
|
||||
'title' => __('Content', 'wp-multisite-waas'),
|
||||
'desc' => __('The main content of your broadcast.', 'wp-multisite-waas'),
|
||||
'title' => __('Content', 'wp-ultimo'),
|
||||
'desc' => __('The main content of your broadcast.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Next Step →', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Next Step →', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Send →', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'search_label' => __('Search Broadcast', 'wp-multisite-waas'),
|
||||
'deleted_message' => __('Broadcast removed successfully.', 'wp-ultimo'),
|
||||
'search_label' => __('Search Broadcast', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -497,7 +497,7 @@ class Broadcast_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Broadcast', 'wp-multisite-waas');
|
||||
return __('Broadcast', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -508,7 +508,7 @@ class Broadcast_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Broadcasts', 'wp-multisite-waas');
|
||||
return __('Broadcasts', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -519,7 +519,7 @@ class Broadcast_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Broadcasts', 'wp-multisite-waas');
|
||||
return __('Broadcasts', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -532,7 +532,7 @@ class Broadcast_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
return [
|
||||
[
|
||||
'label' => __('Add Broadcast', 'wp-multisite-waas'),
|
||||
'label' => __('Add Broadcast', 'wp-ultimo'),
|
||||
'icon' => 'wu-circle-with-plus',
|
||||
'classes' => 'wubox',
|
||||
'url' => wu_get_form_url('add_new_broadcast_message'),
|
||||
|
@ -212,7 +212,7 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
);
|
||||
|
||||
if ($index < $count - 1) {
|
||||
$content .= sprintf('<hr class="sm:wu-bg-transparent wu-hr-text wu-font-semibold wu-my-4 wu-mt-6 wu-text-gray-600 wu-text-sm" data-content="%s">', __('Step Separator', 'wp-multisite-waas'));
|
||||
$content .= sprintf('<hr class="sm:wu-bg-transparent wu-hr-text wu-font-semibold wu-my-4 wu-mt-6 wu-text-gray-600 wu-text-sm" data-content="%s">', __('Step Separator', 'wp-ultimo'));
|
||||
}
|
||||
}
|
||||
|
||||
@ -380,9 +380,9 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
'v-model' => 'tab',
|
||||
],
|
||||
'options' => [
|
||||
'content' => __('Field', 'wp-multisite-waas'),
|
||||
'advanced' => __('Additional Settings', 'wp-multisite-waas'),
|
||||
'style' => __('Style', 'wp-multisite-waas'),
|
||||
'content' => __('Field', 'wp-ultimo'),
|
||||
'advanced' => __('Additional Settings', 'wp-ultimo'),
|
||||
'style' => __('Style', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Select the type of field you want to add to the checkout form.', 'wp-multisite-waas'),
|
||||
'title' => __('Field Type', 'wp-ultimo'),
|
||||
'desc' => __('Select the type of field you want to add to the checkout form.', 'wp-ultimo'),
|
||||
'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('<a href="#" class="wu-no-underline wu-mt-1 wu-uppercase wu-text-2xs wu-font-semibold wu-text-gray-600" v-on:click.prevent="type = \'\'">%s</a>', __('← Back to Field Type Selection', 'wp-multisite-waas')),
|
||||
'desc' => sprintf('<a href="#" class="wu-no-underline wu-mt-1 wu-uppercase wu-text-2xs wu-font-semibold wu-text-gray-600" v-on:click.prevent="type = \'\'">%s</a>', __('← Back to Field Type Selection', 'wp-ultimo')),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Select the visibility of this field.', 'wp-multisite-waas'),
|
||||
'title' => __('Field Visibility', 'wp-ultimo'),
|
||||
'desc' => __('Select the visibility of this field.', 'wp-ultimo'),
|
||||
'options' => [
|
||||
'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'),
|
||||
'always' => __('Always show', 'wp-ultimo'),
|
||||
'logged_only' => __('Only show for logged in users', 'wp-ultimo'),
|
||||
'guests_only' => __('Only show for guests', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('100', 'wp-multisite-waas'),
|
||||
'desc' => __('Set the width of this field wrapper (in %).', 'wp-multisite-waas'),
|
||||
'title' => __('Wrapper Width', 'wp-ultimo'),
|
||||
'placeholder' => __('100', 'wp-ultimo'),
|
||||
'desc' => __('Set the width of this field wrapper (in %).', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas') : __('Save Field', 'wp-multisite-waas'),
|
||||
'title' => empty($attributes) ? __('Add Field', 'wp-ultimo') : __('Save Field', 'wp-ultimo'),
|
||||
'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-multisite-waas')
|
||||
__('The checkout form could not be found.', 'wp-ultimo')
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -855,18 +855,18 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
'v-model' => 'tab',
|
||||
],
|
||||
'options' => [
|
||||
'content' => __('Content', 'wp-multisite-waas'),
|
||||
'visibility' => __('Visibility', 'wp-multisite-waas'),
|
||||
'style' => __('Style', 'wp-multisite-waas'),
|
||||
'content' => __('Content', 'wp-ultimo'),
|
||||
'visibility' => __('Visibility', 'wp-ultimo'),
|
||||
'style' => __('Style', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
|
||||
// Content Tab
|
||||
'id' => [
|
||||
'type' => 'text',
|
||||
'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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('e.g. My Extra Step', 'wp-multisite-waas'),
|
||||
'desc' => __('Mostly used internally, but made available for templates.', 'wp-multisite-waas'),
|
||||
'title' => __('Step Title', 'wp-ultimo'),
|
||||
'placeholder' => __('e.g. My Extra Step', 'wp-ultimo'),
|
||||
'desc' => __('Mostly used internally, but made available for templates.', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Select the visibility of this step.', 'wp-multisite-waas'),
|
||||
'title' => __('Logged Status', 'wp-ultimo'),
|
||||
'desc' => __('Select the visibility of this step.', 'wp-ultimo'),
|
||||
'options' => [
|
||||
'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'),
|
||||
'always' => __('Always show', 'wp-ultimo'),
|
||||
'logged_only' => __('Only show for logged in users', 'wp-ultimo'),
|
||||
'guests_only' => __('Only show for guests', 'wp-ultimo'),
|
||||
],
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('custom-field example-class', 'wp-multisite-waas'),
|
||||
'desc' => __('You can enter multiple CSS classes separated by spaces.', 'wp-multisite-waas'),
|
||||
'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'),
|
||||
'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-multisite-waas') : __('Save Step', 'wp-multisite-waas'),
|
||||
'title' => empty($_step) ? __('Add Step', 'wp-ultimo') : __('Save Step', 'wp-ultimo'),
|
||||
'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-multisite-waas')
|
||||
__('The checkout form could not be found.', 'wp-ultimo')
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -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-multisite-waas'),
|
||||
'name' => __('Label', 'wp-multisite-waas'),
|
||||
'type' => __('Type', 'wp-multisite-waas'),
|
||||
'slug' => __('Slug', 'wp-multisite-waas'),
|
||||
'order' => __('Order', 'wp-ultimo'),
|
||||
'name' => __('Label', 'wp-ultimo'),
|
||||
'type' => __('Type', 'wp-ultimo'),
|
||||
'slug' => __('Slug', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Conversion Snippets', 'wp-ultimo'),
|
||||
// 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.<br> Available placeholders are: %s', 'wp-multisite-waas'), $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.<br> Available placeholders are: %s', 'wp-ultimo'), $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-multisite-waas'),
|
||||
'title' => __('Advanced Options', 'wp-ultimo'),
|
||||
'position' => 'advanced',
|
||||
'html_attr' => [
|
||||
'data-on-load' => 'wu_initialize_code_editors',
|
||||
],
|
||||
'sections' => [
|
||||
'thank-you' => [
|
||||
'title' => __('Thank You', 'wp-multisite-waas'),
|
||||
'desc' => __('Configure the Thank You page for this Checkout Form.', 'wp-multisite-waas'),
|
||||
'title' => __('Thank You', 'wp-ultimo'),
|
||||
'desc' => __('Configure the Thank You page for this Checkout Form.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Configure the Thank You page for this Checkout Form.', 'wp-multisite-waas'),
|
||||
'title' => __('Scripts', 'wp-ultimo'),
|
||||
'desc' => __('Configure the Thank You page for this Checkout Form.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Add custom CSS code to your checkout form. SCSS syntax is supported.', 'wp-multisite-waas'),
|
||||
'title' => __('Custom CSS', 'wp-ultimo'),
|
||||
'desc' => __('Add custom CSS code to your checkout form. SCSS syntax is supported.', 'wp-ultimo'),
|
||||
'value' => $this->get_object()->get_custom_css(),
|
||||
'lang' => 'css',
|
||||
],
|
||||
],
|
||||
],
|
||||
'restrictions' => [
|
||||
'title' => __('Restrictions', 'wp-multisite-waas'),
|
||||
'desc' => __('Control the access to this checkout form.', 'wp-multisite-waas'),
|
||||
'title' => __('Restrictions', 'wp-ultimo'),
|
||||
'desc' => __('Control the access to this checkout form.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Restrict this checkout form to specific countries.', 'wp-multisite-waas'),
|
||||
'title' => __('Restrict by Country', 'wp-ultimo'),
|
||||
'desc' => __('Restrict this checkout form to specific countries.', 'wp-ultimo'),
|
||||
'html_attr' => [
|
||||
'v-model' => 'restrict_by_country',
|
||||
],
|
||||
],
|
||||
'allowed_countries' => [
|
||||
'type' => 'select',
|
||||
'title' => __('Allowed Countries', 'wp-multisite-waas'),
|
||||
'desc' => __('Select the allowed countries.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Type to search countries...', 'wp-multisite-waas'),
|
||||
'title' => __('Allowed Countries', 'wp-ultimo'),
|
||||
'desc' => __('Select the allowed countries.', 'wp-ultimo'),
|
||||
'placeholder' => __('Type to search countries...', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Events', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('This is used to create shortcodes and more.', 'wp-multisite-waas'),
|
||||
'title' => __('Checkout Form Slug', 'wp-ultimo'),
|
||||
'desc' => __('This is used to create shortcodes and more.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Active', 'wp-ultimo'),
|
||||
'fields' => [
|
||||
'active' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Active', 'wp-multisite-waas'),
|
||||
'desc' => __('Use this option to manually enable or disable this checkout form.', 'wp-multisite-waas'),
|
||||
'title' => __('Active', 'wp-ultimo'),
|
||||
'desc' => __('Use this option to manually enable or disable this checkout form.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Welcome to the Checkout Form builder!', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
__('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'),
|
||||
],
|
||||
],
|
||||
[
|
||||
'id' => 'add-new-step',
|
||||
'title' => __('Adding new Steps', 'wp-multisite-waas'),
|
||||
'title' => __('Adding new Steps', 'wp-ultimo'),
|
||||
'text' => [
|
||||
__('To add a new step to the registration form, use this button here.', 'wp-multisite-waas'),
|
||||
__('To add a new step to the registration form, use this button here.', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Adding new Fields', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
sprintf('<a class="wu-no-underline" href="%s" target="_blank">%s</a>', wu_get_documentation_url('wp-ultimo-populate-site-template'), __('You can learn more about that here →', 'wp-multisite-waas')),
|
||||
__('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('<a class="wu-no-underline" href="%s" target="_blank">%s</a>', wu_get_documentation_url('wp-ultimo-populate-site-template'), __('You can learn more about that here →', 'wp-ultimo')),
|
||||
],
|
||||
'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-multisite-waas') : __('Add new Checkout Form', 'wp-multisite-waas');
|
||||
return $this->edit ? __('Edit Checkout Form', 'wp-ultimo') : __('Add new Checkout Form', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1441,7 +1441,7 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Edit Checkout_Form', 'wp-multisite-waas');
|
||||
return __('Edit Checkout_Form', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-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'),
|
||||
'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'),
|
||||
'save_description' => '',
|
||||
'delete_button_label' => __('Delete Checkout Form', 'wp-multisite-waas'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'),
|
||||
'delete_button_label' => __('Delete Checkout Form', 'wp-ultimo'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -69,17 +69,17 @@ class Checkout_Form_List_Admin_Page extends List_Admin_Page {
|
||||
[
|
||||
[
|
||||
'id' => 'checkout-form-list',
|
||||
'title' => __('Checkout Forms', 'wp-multisite-waas'),
|
||||
'title' => __('Checkout Forms', 'wp-ultimo'),
|
||||
'text' => [
|
||||
__('Checkout Forms are an easy and flexible way to experiment with different approaches when trying to convert new customers.', 'wp-multisite-waas'),
|
||||
__('Checkout Forms are an easy and flexible way to experiment with different approaches when trying to convert new customers.', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
[
|
||||
'id' => 'default-form',
|
||||
'title' => __('Experiment!', 'wp-multisite-waas'),
|
||||
'title' => __('Experiment!', 'wp-ultimo'),
|
||||
'text' => [
|
||||
__('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'),
|
||||
__('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'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Select a starting point for a new Checkout Form.', 'wp-multisite-waas'),
|
||||
'title' => __('Checkout Form Template', 'wp-ultimo'),
|
||||
'desc' => __('Select a starting point for a new Checkout Form.', 'wp-ultimo'),
|
||||
'placeholder' => '',
|
||||
'tooltip' => '',
|
||||
'value' => '',
|
||||
@ -132,22 +132,22 @@ class Checkout_Form_List_Admin_Page extends List_Admin_Page {
|
||||
],
|
||||
'options' => [
|
||||
'single-step' => [
|
||||
'title' => __('Single Step', 'wp-multisite-waas'),
|
||||
'title' => __('Single Step', 'wp-ultimo'),
|
||||
'icon' => 'dashicons-before dashicons-list-view',
|
||||
],
|
||||
'multi-step' => [
|
||||
'title' => __('Multi-Step', 'wp-multisite-waas'),
|
||||
'title' => __('Multi-Step', 'wp-ultimo'),
|
||||
'icon' => 'dashicons-before dashicons-excerpt-view',
|
||||
],
|
||||
'blank' => [
|
||||
'title' => __('Blank', 'wp-multisite-waas'),
|
||||
'title' => __('Blank', 'wp-ultimo'),
|
||||
'icon' => 'dashicons-before dashicons-admin-page',
|
||||
],
|
||||
],
|
||||
],
|
||||
'submit_button' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Go to the Editor →', 'wp-multisite-waas'),
|
||||
'title' => __('Go to the Editor →', 'wp-ultimo'),
|
||||
'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-multisite-waas'));
|
||||
$checkout_form->set_name(__('Draft Checkout Form', 'wp-ultimo'));
|
||||
|
||||
$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-multisite-waas'),
|
||||
'search_label' => __('Search Checkout Form', 'wp-multisite-waas'),
|
||||
'deleted_message' => __('Checkout Form removed successfully.', 'wp-ultimo'),
|
||||
'search_label' => __('Search Checkout Form', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -235,7 +235,7 @@ class Checkout_Form_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Checkout Forms', 'wp-multisite-waas');
|
||||
return __('Checkout Forms', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -246,7 +246,7 @@ class Checkout_Form_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Checkout Forms', 'wp-multisite-waas');
|
||||
return __('Checkout Forms', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -257,7 +257,7 @@ class Checkout_Form_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Checkout Forms', 'wp-multisite-waas');
|
||||
return __('Checkout Forms', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -108,8 +108,6 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
wp_enqueue_style('wu-flags');
|
||||
|
||||
wp_enqueue_script_module('wu-flags-polyfill');
|
||||
|
||||
wp_enqueue_editor();
|
||||
|
||||
wp_enqueue_media();
|
||||
@ -161,16 +159,16 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$fields = [
|
||||
'confirm' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Confirm Transfer', 'wp-multisite-waas'),
|
||||
'desc' => __('This will start the transfer of assets from one user to another.', 'wp-multisite-waas'),
|
||||
'title' => __('Confirm Transfer', 'wp-ultimo'),
|
||||
'desc' => __('This will start the transfer of assets from one user to another.', 'wp-ultimo'),
|
||||
'html_attr' => [
|
||||
'v-model' => 'confirmed',
|
||||
],
|
||||
],
|
||||
'submit_button' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Start Transfer', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Start Transfer', 'wp-multisite-waas'),
|
||||
'title' => __('Start Transfer', 'wp-ultimo'),
|
||||
'placeholder' => __('Start Transfer', 'wp-ultimo'),
|
||||
'value' => 'save',
|
||||
'classes' => 'button button-primary wu-w-full',
|
||||
'wrapper_classes' => 'wu-items-end',
|
||||
@ -223,11 +221,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-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('not-found', __('Customer not found.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
if ( ! $target_user) {
|
||||
wp_send_json_error(new \WP_Error('not-found', __('User not found.', 'wp-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('not-found', __('User not found.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
$customer->set_user_id($target_user->ID);
|
||||
@ -263,8 +261,8 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$custom_fields = [
|
||||
'delete_all' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Delete everything', 'wp-multisite-waas'),
|
||||
'desc' => __('Sites, payments and memberships.', 'wp-multisite-waas'),
|
||||
'title' => __('Delete everything', 'wp-ultimo'),
|
||||
'desc' => __('Sites, payments and memberships.', 'wp-ultimo'),
|
||||
'html_attr' => [
|
||||
'v-bind:value' => 'delete_all_confirmed',
|
||||
'v-model' => 'delete_all_confirmed',
|
||||
@ -272,8 +270,8 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
],
|
||||
're_assignment_customer_id' => [
|
||||
'type' => 'model',
|
||||
'title' => __('Re-assignment to customer', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Select Customer...', 'wp-multisite-waas'),
|
||||
'title' => __('Re-assignment to customer', 'wp-ultimo'),
|
||||
'placeholder' => __('Select Customer...', 'wp-ultimo'),
|
||||
'html_attr' => [
|
||||
'data-model' => 'customer',
|
||||
'data-value-field' => 'id',
|
||||
@ -429,7 +427,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
$location = sprintf(
|
||||
'<small><strong>%s</strong> %s</small>',
|
||||
__('Location:', 'wp-multisite-waas'),
|
||||
__('Location:', 'wp-ultimo'),
|
||||
implode(' → ', array_filter($field_location_breadcrumbs))
|
||||
);
|
||||
|
||||
@ -477,7 +475,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
if ($meta_fields_unset) {
|
||||
$collapsible_header['display_unset_fields'] = [
|
||||
'title' => __('Display unset fields', 'wp-multisite-waas'),
|
||||
'title' => __('Display unset fields', 'wp-ultimo'),
|
||||
'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 +493,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-multisite-waas'),
|
||||
'desc' => __('No custom meta data collected and no custom fields found.', 'wp-ultimo'),
|
||||
'classes' => 'wu-text-center',
|
||||
];
|
||||
}
|
||||
|
||||
$final_fields['display_new_meta_repeater'] = [
|
||||
'title' => __('Manually add custom meta fields', 'wp-multisite-waas'),
|
||||
'desc' => __('Add new custom meta fields to this customer.', 'wp-multisite-waas'),
|
||||
'title' => __('Manually add custom meta fields', 'wp-ultimo'),
|
||||
'desc' => __('Add new custom meta fields to this customer.', 'wp-ultimo'),
|
||||
'type' => 'toggle',
|
||||
'wrapper_classes' => 'wu-bg-gray-100',
|
||||
'html_attr' => [
|
||||
@ -511,7 +509,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
];
|
||||
|
||||
$default_meta_value = fn(string $type, $value = '', bool $is_default = false) => [
|
||||
'title' => __('Value', 'wp-multisite-waas'),
|
||||
'title' => __('Value', 'wp-ultimo'),
|
||||
'type' => $type,
|
||||
'value' => $value,
|
||||
'wrapper_classes' => 'wu-w-1/4 wu-ml-2',
|
||||
@ -536,12 +534,12 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
'type' => 'note',
|
||||
'desc' => sprintf(
|
||||
'<a title="%s" class="wu-no-underline wu-inline-block wu-text-gray-600" href="#" @click.prevent="() => new_meta_fields.splice(index, 1)"><span class="dashicons-wu-squared-cross"></span></a>',
|
||||
__('Remove', 'wp-multisite-waas')
|
||||
__('Remove', 'wp-ultimo')
|
||||
),
|
||||
'wrapper_classes' => 'wu-absolute wu-top-0 wu-right-0',
|
||||
],
|
||||
'new_meta_slug' => [
|
||||
'title' => __('Slug', 'wp-multisite-waas'),
|
||||
'title' => __('Slug', 'wp-ultimo'),
|
||||
'type' => 'text',
|
||||
'value' => '',
|
||||
'wrapper_classes' => 'wu-w-1/4',
|
||||
@ -552,7 +550,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
],
|
||||
],
|
||||
'new_meta_title' => [
|
||||
'title' => __('Title', 'wp-multisite-waas'),
|
||||
'title' => __('Title', 'wp-ultimo'),
|
||||
'type' => 'text',
|
||||
'value' => '',
|
||||
'wrapper_classes' => 'wu-w-1/4 wu-ml-2',
|
||||
@ -561,14 +559,14 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
],
|
||||
],
|
||||
'new_meta_type' => [
|
||||
'title' => __('Type', 'wp-multisite-waas'),
|
||||
'title' => __('Type', 'wp-ultimo'),
|
||||
'type' => 'select',
|
||||
'options' => [
|
||||
'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'),
|
||||
'text' => __('Text', 'wp-ultimo'),
|
||||
'textarea' => __('Textarea', 'wp-ultimo'),
|
||||
'checkbox' => __('Checkbox', 'wp-ultimo'),
|
||||
'color' => __('Color', 'wp-ultimo'),
|
||||
'image' => __('Image', 'wp-ultimo'),
|
||||
],
|
||||
'wrapper_classes' => 'wu-w-1/4 wu-ml-2',
|
||||
'html_attr' => [
|
||||
@ -591,7 +589,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
],
|
||||
'repeat_option' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('+ Add meta field', 'wp-multisite-waas'),
|
||||
'title' => __('+ Add meta field', 'wp-ultimo'),
|
||||
'classes' => 'button wu-self-end',
|
||||
'wrapper_classes' => 'wu-bg-whiten wu-items-end',
|
||||
'html_attr' => [
|
||||
@ -630,7 +628,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$this->add_fields_widget(
|
||||
'at_a_glance',
|
||||
[
|
||||
'title' => __('At a Glance', 'wp-multisite-waas'),
|
||||
'title' => __('At a Glance', 'wp-ultimo'),
|
||||
'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 +639,13 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
'id' => [
|
||||
'type' => 'text-display',
|
||||
'copy' => true,
|
||||
'title' => __('Customer ID', 'wp-multisite-waas'),
|
||||
'title' => __('Customer ID', 'wp-ultimo'),
|
||||
'display_value' => $this->get_object()->get_id(),
|
||||
'tooltip' => '',
|
||||
],
|
||||
'last_login' => [
|
||||
'edit' => false,
|
||||
'title' => __('Last Login', 'wp-multisite-waas'),
|
||||
'title' => __('Last Login', 'wp-ultimo'),
|
||||
'type' => 'text-edit',
|
||||
'value' => $this->edit ? $this->get_object()->get_last_login(false) : __(
|
||||
'No date',
|
||||
@ -657,7 +655,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
],
|
||||
'total_grossed' => [
|
||||
'type' => 'text-display',
|
||||
'title' => __('Total Grossed', 'wp-multisite-waas'),
|
||||
'title' => __('Total Grossed', 'wp-ultimo'),
|
||||
'display_value' => wu_format_currency($this->get_object()->get_total_grossed()),
|
||||
'tooltip' => '',
|
||||
],
|
||||
@ -668,7 +666,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$this->add_list_table_widget(
|
||||
'memberships',
|
||||
[
|
||||
'title' => __('Memberships', 'wp-multisite-waas'),
|
||||
'title' => __('Memberships', 'wp-ultimo'),
|
||||
'table' => new \WP_Ultimo\List_Tables\Customers_Membership_List_Table(),
|
||||
'query_filter' => [$this, 'memberships_query_filter'],
|
||||
]
|
||||
@ -677,34 +675,34 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$this->add_tabs_widget(
|
||||
'options',
|
||||
[
|
||||
'title' => __('Customer Options', 'wp-multisite-waas'),
|
||||
'title' => __('Customer Options', 'wp-ultimo'),
|
||||
'position' => 'normal',
|
||||
'sections' => apply_filters(
|
||||
'wu_customer_options_sections',
|
||||
[
|
||||
'general' => [
|
||||
'title' => __('General', 'wp-multisite-waas'),
|
||||
'desc' => __('General options for the customer.', 'wp-multisite-waas'),
|
||||
'title' => __('General', 'wp-ultimo'),
|
||||
'desc' => __('General options for the customer.', 'wp-ultimo'),
|
||||
'icon' => 'dashicons-wu-globe',
|
||||
'fields' => [
|
||||
'vip' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('VIP', 'wp-multisite-waas'),
|
||||
'desc' => __('Set this customer as a VIP.', 'wp-multisite-waas'),
|
||||
'title' => __('VIP', 'wp-ultimo'),
|
||||
'desc' => __('Set this customer as a VIP.', 'wp-ultimo'),
|
||||
'tooltip' => '',
|
||||
'value' => $this->get_object()->is_vip(),
|
||||
],
|
||||
],
|
||||
],
|
||||
'billing_info' => [
|
||||
'title' => __('Billing Info', 'wp-multisite-waas'),
|
||||
'desc' => __('Billing information for this particular customer', 'wp-multisite-waas'),
|
||||
'title' => __('Billing Info', 'wp-ultimo'),
|
||||
'desc' => __('Billing information for this particular customer', 'wp-ultimo'),
|
||||
'icon' => 'dashicons-wu-address',
|
||||
'fields' => $this->get_object()->get_billing_address()->get_fields(),
|
||||
],
|
||||
'custom_meta' => [
|
||||
'title' => __('Custom Meta', 'wp-multisite-waas'),
|
||||
'desc' => __('Custom data collected via WP Multisite WaaS forms.', 'wp-multisite-waas'),
|
||||
'title' => __('Custom Meta', 'wp-ultimo'),
|
||||
'desc' => __('Custom data collected via WP Multisite WaaS forms.', 'wp-ultimo'),
|
||||
'icon' => 'dashicons-wu-database wu-pt-px',
|
||||
'fields' => $this->generate_customer_meta_fields(),
|
||||
'state' => [
|
||||
@ -721,8 +719,8 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
// @todo: bring these back
|
||||
// phpcs:disable
|
||||
// 'payment_methods' => array(
|
||||
// 'title' => __('Payment Methods', 'wp-multisite-waas'),
|
||||
// 'desc' => __('Add extra information to this customer.', 'wp-multisite-waas'),
|
||||
// 'title' => __('Payment Methods', 'wp-ultimo'),
|
||||
// 'desc' => __('Add extra information to this customer.', 'wp-ultimo'),
|
||||
// 'icon' => 'dashicons-wu-credit-card',
|
||||
// 'fields' => apply_filters('wu_customer_payment_methods', array(), $this->get_object(), $this),
|
||||
// ),
|
||||
@ -736,7 +734,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$this->add_list_table_widget(
|
||||
'payments',
|
||||
[
|
||||
'title' => __('Payments', 'wp-multisite-waas'),
|
||||
'title' => __('Payments', 'wp-ultimo'),
|
||||
'table' => new \WP_Ultimo\List_Tables\Customers_Payment_List_Table(),
|
||||
'query_filter' => [$this, 'memberships_query_filter'],
|
||||
]
|
||||
@ -745,7 +743,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$this->add_list_table_widget(
|
||||
'sites',
|
||||
[
|
||||
'title' => __('Sites', 'wp-multisite-waas'),
|
||||
'title' => __('Sites', 'wp-ultimo'),
|
||||
'table' => new \WP_Ultimo\List_Tables\Customers_Site_List_Table(),
|
||||
'query_filter' => [$this, 'sites_query_filter'],
|
||||
]
|
||||
@ -754,7 +752,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$this->add_list_table_widget(
|
||||
'events',
|
||||
[
|
||||
'title' => __('Events', 'wp-multisite-waas'),
|
||||
'title' => __('Events', 'wp-ultimo'),
|
||||
'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(),
|
||||
'query_filter' => [$this, 'events_query_filter'],
|
||||
]
|
||||
@ -784,9 +782,9 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
'fields' => [
|
||||
'user_id' => [
|
||||
'type' => 'model',
|
||||
'title' => __('User', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Search WordPress user...', 'wp-multisite-waas'),
|
||||
'desc' => __('The WordPress user associated to this customer.', 'wp-multisite-waas'),
|
||||
'title' => __('User', 'wp-ultimo'),
|
||||
'placeholder' => __('Search WordPress user...', 'wp-ultimo'),
|
||||
'desc' => __('The WordPress user associated to this customer.', 'wp-ultimo'),
|
||||
'value' => $this->get_object()->get_user_id(),
|
||||
'tooltip' => '',
|
||||
'min' => 1,
|
||||
@ -817,16 +815,16 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
],
|
||||
'email_verification' => [
|
||||
'type' => 'select',
|
||||
'title' => __('Email Verification', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Select Status', 'wp-multisite-waas'),
|
||||
'title' => __('Email Verification', 'wp-ultimo'),
|
||||
'placeholder' => __('Select Status', 'wp-ultimo'),
|
||||
'desc' => __(
|
||||
'The email verification status. This gets automatically switched to Verified when the customer verifies their email address.',
|
||||
'wp-ultimo'
|
||||
),
|
||||
'options' => [
|
||||
'none' => __('None', 'wp-multisite-waas'),
|
||||
'pending' => __('Pending', 'wp-multisite-waas'),
|
||||
'verified' => __('Verified', 'wp-multisite-waas'),
|
||||
'none' => __('None', 'wp-ultimo'),
|
||||
'pending' => __('Pending', 'wp-ultimo'),
|
||||
'verified' => __('Verified', 'wp-ultimo'),
|
||||
],
|
||||
'value' => $this->get_object()->get_email_verification(),
|
||||
'tooltip' => '',
|
||||
@ -839,7 +837,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
],
|
||||
'confirm_membership' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Activate Memberships', 'wp-multisite-waas'),
|
||||
'title' => __('Activate Memberships', 'wp-ultimo'),
|
||||
'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 +850,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
],
|
||||
'send_verification' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Re-send Verification Email →', 'wp-multisite-waas'),
|
||||
'title' => __('Re-send Verification Email →', 'wp-ultimo'),
|
||||
'value' => 'send_verification',
|
||||
'classes' => 'button wu-w-full',
|
||||
'wrapper_html_attr' => [
|
||||
@ -873,7 +871,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
],
|
||||
'transfer' => [
|
||||
'type' => 'link',
|
||||
'display_value' => __('Transfer Customer', 'wp-multisite-waas'),
|
||||
'display_value' => __('Transfer Customer', 'wp-ultimo'),
|
||||
'wrapper_classes' => 'wu-bg-gray-200',
|
||||
'classes' => 'button wubox wu-w-full wu-text-center',
|
||||
'wrapper_html_attr' => [
|
||||
@ -888,7 +886,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
'target_user_id' => '',
|
||||
]
|
||||
) . "=' + user_id",
|
||||
'title' => __('Transfer Customer', 'wp-multisite-waas'),
|
||||
'title' => __('Transfer Customer', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
],
|
||||
@ -898,11 +896,11 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$this->add_fields_widget(
|
||||
'last-login',
|
||||
[
|
||||
'title' => __('Last Login & IPs', 'wp-multisite-waas'),
|
||||
'title' => __('Last Login & IPs', 'wp-ultimo'),
|
||||
'fields' => [
|
||||
'last_login' => [
|
||||
'edit' => true,
|
||||
'title' => __('Last Login', 'wp-multisite-waas'),
|
||||
'title' => __('Last Login', 'wp-ultimo'),
|
||||
'type' => 'text-edit',
|
||||
'date' => true,
|
||||
'value' => $this->edit ? $this->get_object()->get_last_login(false) : __(
|
||||
@ -918,12 +916,12 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
],
|
||||
],
|
||||
'ips' => [
|
||||
'title' => __('IP Address', 'wp-multisite-waas'),
|
||||
'title' => __('IP Address', 'wp-ultimo'),
|
||||
'type' => 'text-edit',
|
||||
'display_value' => $this->get_object()->get_last_ip(),
|
||||
],
|
||||
'country' => [
|
||||
'title' => __('IP Address Country', 'wp-multisite-waas'),
|
||||
'title' => __('IP Address Country', 'wp-ultimo'),
|
||||
'type' => 'text-edit',
|
||||
'display_value' => [$this, 'render_country'],
|
||||
],
|
||||
@ -946,10 +944,10 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
if ($country_code) {
|
||||
$html = sprintf(
|
||||
'<span>%s</span><span class="wu-flag-icon wu-w-5 wu-ml-1" %s>%s</span>',
|
||||
'<span>%s</span><span class="wu-flag-icon wu-flag-icon-%s wu-w-5 wu-ml-1" %s></span>',
|
||||
$country_name,
|
||||
wu_tooltip_text($country_name),
|
||||
wu_get_flag_emoji((string) $country_code)
|
||||
strtolower((string) $country_code),
|
||||
wu_tooltip_text($country_name)
|
||||
);
|
||||
} else {
|
||||
$html = $country_name;
|
||||
@ -966,7 +964,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return $this->edit ? __('Edit Customer', 'wp-multisite-waas') : __('Add new Customer', 'wp-multisite-waas');
|
||||
return $this->edit ? __('Edit Customer', 'wp-ultimo') : __('Add new Customer', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -977,7 +975,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Edit Customer', 'wp-multisite-waas');
|
||||
return __('Edit Customer', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1000,15 +998,15 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
public function get_labels() {
|
||||
|
||||
return [
|
||||
'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'),
|
||||
'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'),
|
||||
'title_description' => '',
|
||||
'save_button_label' => __('Save Customer', 'wp-multisite-waas'),
|
||||
'save_button_label' => __('Save Customer', 'wp-ultimo'),
|
||||
'save_description' => '',
|
||||
'delete_button_label' => __('Delete Customer', 'wp-multisite-waas'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'),
|
||||
'delete_button_label' => __('Delete Customer', 'wp-ultimo'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -1224,7 +1222,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
if (isset($_GET['notice_verification_sent'])) : ?>
|
||||
|
||||
<div id="message" class="updated notice wu-admin-notice notice-success is-dismissible below-h2">
|
||||
<p><?php esc_html_e('Verification email sent!', 'wp-multisite-waas'); ?></p>
|
||||
<p><?php esc_html_e('Verification email sent!', 'wp-ultimo'); ?></p>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
@ -66,7 +66,7 @@ class Customer_List_Admin_Page extends List_Admin_Page {
|
||||
}
|
||||
|
||||
if ( ! wp_verify_nonce(wu_request('nonce'), 'wu_export_customers')) {
|
||||
wp_die(__('You do not have permissions to access this file.', 'wp-multisite-waas'));
|
||||
wp_die(__('You do not have permissions to access this file.', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
$customer_data = array_map(
|
||||
@ -183,14 +183,14 @@ class Customer_List_Admin_Page extends List_Admin_Page {
|
||||
'v-model' => 'type',
|
||||
],
|
||||
'options' => [
|
||||
'existing' => __('Existing User', 'wp-multisite-waas'),
|
||||
'new' => __('Invite New', 'wp-multisite-waas'),
|
||||
'existing' => __('Existing User', 'wp-ultimo'),
|
||||
'new' => __('Invite New', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
'user_id' => [
|
||||
'type' => 'model',
|
||||
'title' => __('Existing User', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Search WordPress user...', 'wp-multisite-waas'),
|
||||
'title' => __('Existing User', 'wp-ultimo'),
|
||||
'placeholder' => __('Search WordPress user...', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('E.g. johnsmith', 'wp-multisite-waas'),
|
||||
'title' => __('Username', 'wp-ultimo'),
|
||||
'placeholder' => __('E.g. johnsmith', 'wp-ultimo'),
|
||||
'wrapper_html_attr' => [
|
||||
'v-show' => "require('type', 'new')",
|
||||
],
|
||||
],
|
||||
'email_address' => [
|
||||
'type' => 'email',
|
||||
'title' => __('Email Address', 'wp-multisite-waas'),
|
||||
'placeholder' => __('E.g. customer@wpultimo.dev', 'wp-multisite-waas'),
|
||||
'title' => __('Email Address', 'wp-ultimo'),
|
||||
'placeholder' => __('E.g. customer@wpultimo.dev', 'wp-ultimo'),
|
||||
'wrapper_html_attr' => [
|
||||
'v-show' => "require('type', 'new')",
|
||||
],
|
||||
],
|
||||
'set_password' => [
|
||||
'type' => 'toggle',
|
||||
'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'),
|
||||
'title' => __('Set Password', 'wp-ultimo'),
|
||||
'desc' => __('If not set, the user will be asked to set a password after accepting the invite.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('E.g. p@$$w0rd', 'wp-multisite-waas'),
|
||||
'title' => __('Password', 'wp-ultimo'),
|
||||
'placeholder' => __('E.g. p@$$w0rd', 'wp-ultimo'),
|
||||
'wrapper_html_attr' => [
|
||||
'v-show' => "require('type', 'new') && require('set_password', true)",
|
||||
],
|
||||
],
|
||||
'submit_button' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Create Customer', 'wp-multisite-waas'),
|
||||
'title' => __('Create Customer', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'search_label' => __('Search Customer', 'wp-multisite-waas'),
|
||||
'deleted_message' => __('Customer removed successfully.', 'wp-ultimo'),
|
||||
'search_label' => __('Search Customer', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -345,7 +345,7 @@ class Customer_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Customers', 'wp-multisite-waas');
|
||||
return __('Customers', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -356,7 +356,7 @@ class Customer_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Customers', 'wp-multisite-waas');
|
||||
return __('Customers', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -367,7 +367,7 @@ class Customer_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Customers', 'wp-multisite-waas');
|
||||
return __('Customers', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -380,13 +380,13 @@ class Customer_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
return [
|
||||
[
|
||||
'label' => __('Add Customer', 'wp-multisite-waas'),
|
||||
'label' => __('Add Customer', 'wp-ultimo'),
|
||||
'icon' => 'wu-circle-with-plus',
|
||||
'classes' => 'wubox',
|
||||
'url' => wu_get_form_url('add_new_customer'),
|
||||
],
|
||||
[
|
||||
'label' => __('Export as CSV', 'wp-multisite-waas'),
|
||||
'label' => __('Export as CSV', 'wp-ultimo'),
|
||||
'icon' => 'wu-export',
|
||||
'url' => add_query_arg(
|
||||
[
|
||||
|
@ -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_Ultimo::VERSION, ['async' => true, 'in_footer' => true]);
|
||||
wp_enqueue_script('wu-customizer', wu_get_asset('customizer.js', 'js'), ['jquery', 'wu-vue', 'wu-block-ui']);
|
||||
|
||||
wp_enqueue_style('wp-color-picker');
|
||||
|
||||
|
@ -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-multisite-waas'),
|
||||
'label' => __('Last 7 days', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'label' => __('Last 30 days', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'label' => __('Year to date', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'label' => __('General', 'wp-ultimo'),
|
||||
'count' => 0,
|
||||
],
|
||||
];
|
||||
@ -230,16 +230,16 @@ class Dashboard_Admin_Page extends Base_Admin_Page {
|
||||
[
|
||||
[
|
||||
'id' => 'your-dashboard',
|
||||
'title' => __('Our dashboard', 'wp-multisite-waas'),
|
||||
'title' => __('Our dashboard', 'wp-ultimo'),
|
||||
'text' => [
|
||||
__('This is the <strong>WP Multisite WaaS Dashboard</strong>, where you will find most of the important information you will need regarding your business\' performance.', 'wp-multisite-waas'),
|
||||
__('This is the <strong>WP Multisite WaaS Dashboard</strong>, where you will find most of the important information you will need regarding your business\' performance.', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
[
|
||||
'id' => 'documentation',
|
||||
'title' => __('Learning more', 'wp-multisite-waas'),
|
||||
'title' => __('Learning more', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
__('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'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'title' => __('It\'s all about growth!', 'wp-ultimo'),
|
||||
'text' => [
|
||||
__('This graph allows you to follow how your monthly recurring revenue is growing this year.', 'wp-multisite-waas'),
|
||||
__('This graph allows you to follow how your monthly recurring revenue is growing this year.', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Date-range support', 'wp-ultimo'),
|
||||
'text' => [
|
||||
__('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'),
|
||||
__('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'),
|
||||
],
|
||||
'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-multisite-waas'), [$this, 'output_widget_mrr_growth'], $screen->id, 'full', 'high');
|
||||
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-revenue', __('Revenue', 'wp-multisite-waas'), [$this, 'output_widget_revenues'], $screen->id, 'normal', 'high');
|
||||
add_meta_box('wp-ultimo-revenue', __('Revenue', 'wp-ultimo'), [$this, 'output_widget_revenues'], $screen->id, 'normal', '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-countries', __('Signups by Countries', 'wp-ultimo'), [$this, 'output_widget_countries'], $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-signups', __('Signups by Form', 'wp-ultimo'), [$this, 'output_widget_forms'], $screen->id, 'side', 'high');
|
||||
|
||||
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-most-visited-sites', __('Most Visited Sites', 'wp-ultimo'), [$this, 'output_widget_most_visited_sites'], $screen->id, 'side', 'low');
|
||||
|
||||
add_meta_box('wp-ultimo-new-accounts', __('New Memberships', 'wp-multisite-waas'), [$this, 'output_widget_new_accounts'], $screen->id, 'normal', 'low');
|
||||
add_meta_box('wp-ultimo-new-accounts', __('New Memberships', 'wp-ultimo'), [$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-multisite-waas'),
|
||||
'name' => __('No Product', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'cancellations' => __('Cancellations', 'wp-multisite-waas'),
|
||||
'new_mrr' => __('New MRR', 'wp-ultimo'),
|
||||
'cancellations' => __('Cancellations', 'wp-ultimo'),
|
||||
],
|
||||
]
|
||||
);
|
||||
@ -525,8 +525,6 @@ class Dashboard_Admin_Page extends Base_Admin_Page {
|
||||
wp_enqueue_style('wu-apex-charts', wu_get_asset('apexcharts.css', 'css'), [], wu_get_version());
|
||||
|
||||
wp_enqueue_style('wu-flags');
|
||||
|
||||
wp_enqueue_script_module('wu-flags-polyfill');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -537,7 +535,7 @@ class Dashboard_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Dashboard', 'wp-multisite-waas');
|
||||
return __('Dashboard', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -548,7 +546,7 @@ class Dashboard_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Multisite WaaS', 'wp-multisite-waas');
|
||||
return __('Multisite WaaS', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -559,7 +557,7 @@ class Dashboard_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Dashboard', 'wp-multisite-waas');
|
||||
return __('Dashboard', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -622,6 +620,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-multisite-waas')));
|
||||
printf($html, apply_filters('wu_export_data_table_label', __('CSV', 'wp-ultimo')));
|
||||
}
|
||||
}
|
||||
|
@ -94,13 +94,13 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$this->add_fields_widget(
|
||||
'description',
|
||||
[
|
||||
'title' => __('Description', 'wp-multisite-waas'),
|
||||
'title' => __('Description', 'wp-ultimo'),
|
||||
'position' => 'normal',
|
||||
'fields' => [
|
||||
'description' => [
|
||||
'type' => 'textarea',
|
||||
'title' => __('Description', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Tell your customers what this product is about.', 'wp-multisite-waas'),
|
||||
'title' => __('Description', 'wp-ultimo'),
|
||||
'placeholder' => __('Tell your customers what this product is about.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Limit Uses', 'wp-ultimo'),
|
||||
'icon' => 'dashicons-wu-lock',
|
||||
'desc' => __('Rules and limitations to the applicability of this discount code.', 'wp-multisite-waas'),
|
||||
'desc' => __('Rules and limitations to the applicability of this discount code.', 'wp-ultimo'),
|
||||
'fields' => [
|
||||
'uses' => [
|
||||
'title' => __('Uses', 'wp-multisite-waas'),
|
||||
'title' => __('Uses', 'wp-ultimo'),
|
||||
'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-multisite-waas'), $this->get_object()->get_uses()),
|
||||
'tooltip' => __('The number of times that this discount code was used so far.', 'wp-multisite-waas'),
|
||||
'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'),
|
||||
],
|
||||
'max_uses' => [
|
||||
'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'),
|
||||
'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'),
|
||||
'type' => 'number',
|
||||
'min' => 0,
|
||||
'placeholder' => 0,
|
||||
'value' => $this->get_object()->has_max_uses() ? $this->get_object()->get_max_uses() : __('Unlimited', 'wp-multisite-waas'),
|
||||
'value' => $this->get_object()->has_max_uses() ? $this->get_object()->get_max_uses() : __('Unlimited', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
],
|
||||
'time' => [
|
||||
'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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Allows you to set a start date for this coupon code.', 'wp-multisite-waas'),
|
||||
'title' => __('Enable Start Date', 'wp-ultimo'),
|
||||
'desc' => __('Allows you to set a start date for this coupon code.', 'wp-ultimo'),
|
||||
'value' => 1,
|
||||
'html_attr' => [
|
||||
'v-model' => 'enable_date_start',
|
||||
],
|
||||
],
|
||||
'date_start' => [
|
||||
'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,
|
||||
'title' => __('Start Date', 'wp-ultimo'),
|
||||
'desc' => __('The discount code will only be good to be used after this date.', 'wp-ultimo') . ' ' . $tz_note,
|
||||
'type' => 'text',
|
||||
'date' => true,
|
||||
'value' => $this->edit ? $this->get_object()->get_date_start() : __('No date', 'wp-multisite-waas'),
|
||||
'value' => $this->edit ? $this->get_object()->get_date_start() : __('No date', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Allows you to set an expiration date for this coupon code.', 'wp-multisite-waas'),
|
||||
'title' => __('Enable Expiration Date', 'wp-ultimo'),
|
||||
'desc' => __('Allows you to set an expiration date for this coupon code.', 'wp-ultimo'),
|
||||
'value' => 1,
|
||||
'html_attr' => [
|
||||
'v-model' => 'enable_date_expiration',
|
||||
],
|
||||
],
|
||||
'date_expiration' => [
|
||||
'title' => __('Expiration Date', 'wp-multisite-waas'),
|
||||
'desc' => __('The discount code will expire after this date.', 'wp-multisite-waas') . ' ' . $tz_note,
|
||||
'title' => __('Expiration Date', 'wp-ultimo'),
|
||||
'desc' => __('The discount code will expire after this date.', 'wp-ultimo') . ' ' . $tz_note,
|
||||
'type' => 'text',
|
||||
'date' => true,
|
||||
'value' => $this->edit ? $this->get_object()->get_date_expiration() : __('Never Expires', 'wp-multisite-waas'),
|
||||
'value' => $this->edit ? $this->get_object()->get_date_expiration() : __('Never Expires', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Determine if you want this discount code to apply to all discountable products or not.', 'wp-multisite-waas'),
|
||||
'title' => __('Limit Products', 'wp-ultimo'),
|
||||
'desc' => __('Determine if you want this discount code to apply to all discountable products or not.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Manually select to which products this discount code should be applicable.', 'wp-multisite-waas'),
|
||||
'title' => __('Select Products', 'wp-ultimo'),
|
||||
'desc' => __('Manually select to which products this discount code should be applicable.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Advanced Options', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Events', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Coupon Code', 'wp-ultimo'),
|
||||
'type' => 'text',
|
||||
'placeholder' => __('E.g. XMAS10OFF', 'wp-multisite-waas'),
|
||||
'desc' => __('The actual code your customers will enter during checkout.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('E.g. XMAS10OFF', 'wp-ultimo'),
|
||||
'desc' => __('The actual code your customers will enter during checkout.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Discount', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'percentage' => __('Percentage (%)', 'wp-ultimo'),
|
||||
// translators: %s is the currency symbol. e.g. $
|
||||
'absolute' => sprintf(__('Absolute (%s)', 'wp-multisite-waas'), wu_get_currency_symbol()),
|
||||
'absolute' => sprintf(__('Absolute (%s)', 'wp-ultimo'), 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-multisite-waas'),
|
||||
'desc' => __('By default, discounts are only applied to the first payment.', 'wp-multisite-waas'),
|
||||
'title' => __('Apply to Renewals', 'wp-ultimo'),
|
||||
'desc' => __('By default, discounts are only applied to the first payment.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Also set a discount for setup fee?', 'wp-multisite-waas'),
|
||||
'title' => __('Setup Fee Discount', 'wp-ultimo'),
|
||||
'desc' => __('Also set a discount for setup fee?', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Setup Fee Discount', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'percentage' => __('Percentage (%)', 'wp-ultimo'),
|
||||
// translators: %s is the currency symbol. e.g $
|
||||
'absolute' => sprintf(__('Absolute (%s)', 'wp-multisite-waas'), wu_get_currency_symbol()),
|
||||
'absolute' => sprintf(__('Absolute (%s)', 'wp-ultimo'), 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-multisite-waas'),
|
||||
'title' => __('Active', 'wp-ultimo'),
|
||||
'fields' => [
|
||||
'active' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Active', 'wp-multisite-waas'),
|
||||
'desc' => __('Use this option to manually enable or disable this discount code for new sign-ups.', 'wp-multisite-waas'),
|
||||
'title' => __('Active', 'wp-ultimo'),
|
||||
'desc' => __('Use this option to manually enable or disable this discount code for new sign-ups.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Make applicable to this product.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('You do not have any products at this moment.', 'wp-ultimo'),
|
||||
'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-multisite-waas')];
|
||||
$tabs = [__('Legacy Add-ons', 'wp-ultimo')];
|
||||
|
||||
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-multisite-waas'),
|
||||
'title' => __('Legacy Options', 'wp-ultimo'),
|
||||
// translators: %s is the comma-separated list of legacy add-ons.
|
||||
'desc' => sprintf(__('Options for %s, and others.', 'wp-multisite-waas'), implode(', ', $tabs)),
|
||||
'desc' => sprintf(__('Options for %s, and others.', 'wp-ultimo'), 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-multisite-waas'),
|
||||
'title' => __('Legacy Options', 'wp-ultimo'),
|
||||
'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-multisite-waas') : __('Add new Discount Code', 'wp-multisite-waas');
|
||||
return $this->edit ? __('Edit Discount Code', 'wp-ultimo') : __('Add new Discount Code', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -556,7 +556,7 @@ class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Edit Discount Code', 'wp-multisite-waas');
|
||||
return __('Edit Discount Code', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-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'),
|
||||
'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'),
|
||||
'title_description' => '',
|
||||
'save_button_label' => __('Save Discount Code', 'wp-multisite-waas'),
|
||||
'save_button_label' => __('Save Discount Code', 'wp-ultimo'),
|
||||
'save_description' => '',
|
||||
'delete_button_label' => __('Delete Discount Code', 'wp-multisite-waas'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'),
|
||||
'delete_button_label' => __('Delete Discount Code', 'wp-ultimo'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -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-multisite-waas'),
|
||||
'search_label' => __('Search Discount Code', 'wp-multisite-waas'),
|
||||
'deleted_message' => __('Discount Code removed successfully.', 'wp-ultimo'),
|
||||
'search_label' => __('Search Discount Code', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -84,7 +84,7 @@ class Discount_Code_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Discount Codes', 'wp-multisite-waas');
|
||||
return __('Discount Codes', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -95,7 +95,7 @@ class Discount_Code_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Discount Codes', 'wp-multisite-waas');
|
||||
return __('Discount Codes', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -106,7 +106,7 @@ class Discount_Code_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Discount Codes', 'wp-multisite-waas');
|
||||
return __('Discount Codes', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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-multisite-waas'),
|
||||
'title' => __('Set another domain as primary', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('This action can not be undone.', 'wp-multisite-waas'),
|
||||
'title' => __('Confirm Deletion', 'wp-ultimo'),
|
||||
'desc' => __('This action can not be undone.', 'wp-ultimo'),
|
||||
'html_attr' => [
|
||||
'v-model' => 'confirmed',
|
||||
],
|
||||
],
|
||||
'submit_button' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Delete', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Delete', 'wp-multisite-waas'),
|
||||
'title' => __('Delete', 'wp-ultimo'),
|
||||
'placeholder' => __('Delete', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Domain URL', 'wp-ultimo'),
|
||||
'position' => 'normal',
|
||||
'after' => [$this, 'render_dns_widget'],
|
||||
'fields' => [
|
||||
'domain' => [
|
||||
'type' => 'text-display',
|
||||
'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'),
|
||||
'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'),
|
||||
'display_value' => '<span class="wu-text-sm wu-uppercase wu-font-mono">' . $this->get_object()->get_domain() . '</span> <a target="_blank" class="wu-no-underline" href="' . esc_url($this->get_object()->get_url()) . '"><span class="dashicons-wu-link1 "></span></a>',
|
||||
],
|
||||
],
|
||||
@ -212,12 +212,12 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$this->add_tabs_widget(
|
||||
'options',
|
||||
[
|
||||
'title' => __('Domain Options', 'wp-multisite-waas'),
|
||||
'title' => __('Domain Options', 'wp-ultimo'),
|
||||
'position' => 'normal',
|
||||
'sections' => [
|
||||
'general' => [
|
||||
'title' => __('General', 'wp-multisite-waas'),
|
||||
'desc' => __('General options for the domain.', 'wp-multisite-waas'),
|
||||
'title' => __('General', 'wp-ultimo'),
|
||||
'desc' => __('General options for the domain.', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'wrapper_html_attr' => [
|
||||
'v-if' => "require('primary_domain', true)",
|
||||
],
|
||||
],
|
||||
'secure' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Is Secure?', 'wp-multisite-waas'),
|
||||
'desc' => __('Force the load using HTTPS.', 'wp-multisite-waas'),
|
||||
'title' => __('Is Secure?', 'wp-ultimo'),
|
||||
'desc' => __('Force the load using HTTPS.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Linked Site', 'wp-ultimo'),
|
||||
'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-multisite-waas'), [$this, 'render_log_widget'], get_current_screen()->id, 'normal', null);
|
||||
add_meta_box('wp-ultimo-domain-log', __('Domain Test Log', 'wp-ultimo'), [$this, 'render_log_widget'], get_current_screen()->id, 'normal', null);
|
||||
|
||||
$this->add_list_table_widget(
|
||||
'events',
|
||||
[
|
||||
'title' => __('Events', 'wp-multisite-waas'),
|
||||
'title' => __('Events', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Select Stage', 'wp-multisite-waas'),
|
||||
'desc' => __('The stage in the checking lifecycle of this domain.', 'wp-multisite-waas'),
|
||||
'title' => __('Stage', 'wp-ultimo'),
|
||||
'placeholder' => __('Select Stage', 'wp-ultimo'),
|
||||
'desc' => __('The stage in the checking lifecycle of this domain.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Search Site...', 'wp-multisite-waas'),
|
||||
'desc' => __('The target site of this domain.', 'wp-multisite-waas'),
|
||||
'title' => __('Site', 'wp-ultimo'),
|
||||
'placeholder' => __('Search Site...', 'wp-ultimo'),
|
||||
'desc' => __('The target site of this domain.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Active', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Use this option to manually enable or disable this domain.', 'wp-multisite-waas'),
|
||||
'title' => __('Active', 'wp-ultimo'),
|
||||
'desc' => __('Use this option to manually enable or disable this domain.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'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-multisite-waas') : __('Add new Domain', 'wp-multisite-waas');
|
||||
return $this->edit ? __('Edit Domain', 'wp-ultimo') : __('Add new Domain', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -417,7 +417,7 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Edit Domain', 'wp-multisite-waas');
|
||||
return __('Edit Domain', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -440,15 +440,15 @@ class Domain_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
public function get_labels() {
|
||||
|
||||
return [
|
||||
'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'),
|
||||
'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'),
|
||||
'title_description' => '',
|
||||
'save_button_label' => __('Save Domain', 'wp-multisite-waas'),
|
||||
'save_button_label' => __('Save Domain', 'wp-ultimo'),
|
||||
'save_description' => '',
|
||||
'delete_button_label' => __('Delete Domain', 'wp-multisite-waas'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'),
|
||||
'delete_button_label' => __('Delete Domain', 'wp-ultimo'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -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 <a href="%s" target="_blank" class="wu-no-underline">WP Multisite WaaS: Domain Seller</a> add-on.', 'wp-multisite-waas'), $addon_url);
|
||||
$note_desc = sprintf(__('To activate this feature you need to install the <a href="%s" target="_blank" class="wu-no-underline">WP Multisite WaaS: Domain Seller</a> add-on.', 'wp-ultimo'), $addon_url);
|
||||
|
||||
$fields = [
|
||||
'type' => [
|
||||
'type' => 'tab-select',
|
||||
'options' => [
|
||||
'add' => __('Add Existing Domain', 'wp-multisite-waas'),
|
||||
'register' => __('Register New', 'wp-multisite-waas'),
|
||||
'add' => __('Add Existing Domain', 'wp-ultimo'),
|
||||
'register' => __('Register New', 'wp-ultimo'),
|
||||
],
|
||||
'html_attr' => [
|
||||
'v-model' => 'type',
|
||||
@ -108,18 +108,18 @@ class Domain_List_Admin_Page extends List_Admin_Page {
|
||||
],
|
||||
'domain' => [
|
||||
'type' => 'text',
|
||||
'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'),
|
||||
'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'),
|
||||
'wrapper_html_attr' => [
|
||||
'v-show' => "require('type', 'add')",
|
||||
],
|
||||
],
|
||||
'blog_id' => [
|
||||
'type' => 'model',
|
||||
'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'),
|
||||
'title' => __('Apply to Site', 'wp-ultimo'),
|
||||
'placeholder' => __('Search Sites...', 'wp-ultimo'),
|
||||
'desc' => __('The target site of the domain being added.', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'options' => Domain_Stage::to_array(),
|
||||
'value' => Domain_Stage::CHECKING_DNS,
|
||||
],
|
||||
'primary_domain' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Primary Domain', 'wp-multisite-waas'),
|
||||
'desc' => __('Check to set this domain as the primary', 'wp-multisite-waas'),
|
||||
'title' => __('Primary Domain', 'wp-ultimo'),
|
||||
'desc' => __('Check to set this domain as the primary', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'wrapper_html_attr' => [
|
||||
'v-show' => "require('primary_domain', true)",
|
||||
],
|
||||
],
|
||||
'submit_button_new' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Add Existing Domain', 'wp-multisite-waas'),
|
||||
'title' => __('Add Existing Domain', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Register and Add Domain (soon)', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'search_label' => __('Search Domains', 'wp-multisite-waas'),
|
||||
'deleted_message' => __('Domains removed successfully.', 'wp-ultimo'),
|
||||
'search_label' => __('Search Domains', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -294,7 +294,7 @@ class Domain_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Domains', 'wp-multisite-waas');
|
||||
return __('Domains', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -305,7 +305,7 @@ class Domain_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Domains', 'wp-multisite-waas');
|
||||
return __('Domains', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -316,7 +316,7 @@ class Domain_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Domains', 'wp-multisite-waas');
|
||||
return __('Domains', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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.<br />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);
|
||||
$message = sprintf(__('This item is locked from editions.<br />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);
|
||||
|
||||
$actions = [
|
||||
'preview' => [
|
||||
'title' => __('Unlock', 'wp-multisite-waas'),
|
||||
'title' => __('Unlock', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'title_description' => '',
|
||||
'save_button_label' => __('Save', 'wp-multisite-waas'),
|
||||
'save_button_label' => __('Save', 'wp-ultimo'),
|
||||
'save_description' => '',
|
||||
'delete_button_label' => __('Delete', 'wp-multisite-waas'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'),
|
||||
'delete_button_label' => __('Delete', 'wp-ultimo'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'),
|
||||
];
|
||||
|
||||
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-multisite-waas'),
|
||||
'title' => __('Timestamps', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Created at', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Last Modified at', 'wp-ultimo'),
|
||||
'type' => 'text-display',
|
||||
'date' => true,
|
||||
'display_value' => $this->edit ? $this->get_object()->get_date_modified() : __('No date', 'wp-multisite-waas'),
|
||||
'display_value' => $this->edit ? $this->get_object()->get_date_modified() : __('No date', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('List Table', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Fields', 'wp-ultimo'),
|
||||
'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('<div class="wu-block wu-text-center wu-blinking-animation wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">%s</div>', __('Loading...', 'wp-multisite-waas')),
|
||||
'desc' => sprintf('<div class="wu-block wu-text-center wu-blinking-animation wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">%s</div>', __('Loading...', 'wp-ultimo')),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Tabs', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Fields', 'wp-ultimo'),
|
||||
'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-multisite-waas');
|
||||
$atts['title'] = __('Save', 'wp-ultimo');
|
||||
|
||||
/**
|
||||
* 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-multisite-waas');
|
||||
$atts['fields']['submit_save']['title'] = __('Locked', 'wp-ultimo');
|
||||
$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-multisite-waas'),
|
||||
'title' => __('Delete', 'wp-ultimo'),
|
||||
'position' => 'side-bottom',
|
||||
];
|
||||
$atts = array_merge($atts_default, $atts);
|
||||
|
@ -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-multisite-waas'), '{{ days }}');
|
||||
$days_text = sprintf(__('Send %s day(s) after the event.', 'wp-ultimo'), '{{ 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-multisite-waas'), '{{ hours.split(":").shift() }}', '{{ hours.split(":").pop() }}');
|
||||
$hour_text = sprintf(__('Send %1$s hour(s) and %2$s minute(s) after the event.', 'wp-ultimo'), '{{ hours.split(":").shift() }}', '{{ hours.split(":").pop() }}');
|
||||
|
||||
$desc = sprintf(
|
||||
'<span v-show="schedule && schedule_type == \'days\'">%s</span>
|
||||
@ -155,8 +155,8 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
'fields' => [
|
||||
'slug' => [
|
||||
'type' => 'text',
|
||||
'title' => __('Slug', 'wp-multisite-waas'),
|
||||
'desc' => __('An unique identifier for this system email.', 'wp-multisite-waas'),
|
||||
'title' => __('Slug', 'wp-ultimo'),
|
||||
'desc' => __('An unique identifier for this system email.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('The event that will trigger the sending of this email.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Event', 'wp-multisite-waas'),
|
||||
'title' => __('Event', 'wp-ultimo'),
|
||||
'desc' => __('The event that will trigger the sending of this email.', 'wp-ultimo'),
|
||||
'placeholder' => __('Event', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('To whom this email should be sent.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Network Administrators', 'wp-multisite-waas'),
|
||||
'title' => __('Target', 'wp-ultimo'),
|
||||
'desc' => __('To whom this email should be sent.', 'wp-ultimo'),
|
||||
'placeholder' => __('Network Administrators', 'wp-ultimo'),
|
||||
'value' => $this->edit ? $object->get_target() : 'admin',
|
||||
'options' => [
|
||||
'admin' => __('Network Administrators', 'wp-multisite-waas'),
|
||||
'customer' => __('Customer', 'wp-multisite-waas'),
|
||||
'admin' => __('Network Administrators', 'wp-ultimo'),
|
||||
'customer' => __('Customer', 'wp-ultimo'),
|
||||
],
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('You can define when the email is sent after the event triggers.', 'wp-multisite-waas'),
|
||||
'title' => __('Schedule?', 'wp-ultimo'),
|
||||
'desc' => __('You can define when the email is sent after the event triggers.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'tooltip' => __('When this email will be sent after the event?', 'wp-multisite-waas'),
|
||||
'title' => __('Scheduling Options', 'wp-ultimo'),
|
||||
'tooltip' => __('When this email will be sent after the event?', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'days' => __('Delay for days', 'wp-multisite-waas'),
|
||||
'hours' => __('Delay for hours', 'wp-ultimo'),
|
||||
'days' => __('Delay for days', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'), [$this, 'output_default_widget_placeholders'], get_current_screen()->id, 'normal', null, []);
|
||||
add_meta_box('wp-ultimo-placeholders', __('Placeholders', 'wp-ultimo'), [$this, 'output_default_widget_placeholders'], get_current_screen()->id, 'normal', null, []);
|
||||
|
||||
$this->add_fields_widget(
|
||||
'active',
|
||||
[
|
||||
'title' => __('Active', 'wp-multisite-waas'),
|
||||
'title' => __('Active', 'wp-ultimo'),
|
||||
'fields' => [
|
||||
'active' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Active', 'wp-multisite-waas'),
|
||||
'desc' => __('Use this option to manually enable or disable this email.', 'wp-multisite-waas'),
|
||||
'title' => __('Active', 'wp-ultimo'),
|
||||
'desc' => __('Use this option to manually enable or disable this email.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Advanced Options', 'wp-ultimo'),
|
||||
'position' => 'normal',
|
||||
'sections' => [
|
||||
'general' => [
|
||||
'title' => __('General', 'wp-multisite-waas'),
|
||||
'title' => __('General', 'wp-ultimo'),
|
||||
'icon' => 'dashicons-wu-lock',
|
||||
'desc' => __('Rules and limitations to the applicability of this discount code.', 'wp-multisite-waas'),
|
||||
'desc' => __('Rules and limitations to the applicability of this discount code.', 'wp-ultimo'),
|
||||
'state' => [
|
||||
'sender' => $this->edit ? $object->get_custom_sender() : 0,
|
||||
],
|
||||
'fields' => [
|
||||
'style' => [
|
||||
'type' => 'select',
|
||||
'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'),
|
||||
'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'),
|
||||
'options' => [
|
||||
'default' => __('Use Default', 'wp-multisite-waas'),
|
||||
'html' => __('HTML Emails', 'wp-multisite-waas'),
|
||||
'plain' => __('Plain Emails', 'wp-multisite-waas'),
|
||||
'default' => __('Use Default', 'wp-ultimo'),
|
||||
'html' => __('HTML Emails', 'wp-ultimo'),
|
||||
'plain' => __('Plain Emails', 'wp-ultimo'),
|
||||
],
|
||||
'value' => $this->edit ? $object->get_style() : 'html',
|
||||
],
|
||||
],
|
||||
],
|
||||
'sender' => [
|
||||
'title' => __('Custom Sender', 'wp-multisite-waas'),
|
||||
'title' => __('Custom Sender', 'wp-ultimo'),
|
||||
'icon' => 'dashicons-wu-mail',
|
||||
'desc' => __('You can define an email and a name that will only be used when this email is sent.', 'wp-multisite-waas'),
|
||||
'desc' => __('You can define an email and a name that will only be used when this email is sent.', 'wp-ultimo'),
|
||||
'fields' => [
|
||||
'custom_sender' => [
|
||||
'type' => 'toggle',
|
||||
'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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Override the global from name for this particular email.', 'wp-multisite-waas'),
|
||||
'title' => __('From "Name"', 'wp-ultimo'),
|
||||
'desc' => __('Override the global from name for this particular email.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Override the global from email for this particular email.', 'wp-multisite-waas'),
|
||||
'title' => __('From "Email"', 'wp-ultimo'),
|
||||
'desc' => __('Override the global from email for this particular email.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'loading_text' => __('Loading Payload', 'wp-multisite-waas'),
|
||||
'title' => __('Event Payload', 'wp-ultimo'),
|
||||
'loading_text' => __('Loading Payload', 'wp-ultimo'),
|
||||
]
|
||||
);
|
||||
}
|
||||
@ -387,7 +387,7 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return $this->edit ? __('Edit Email', 'wp-multisite-waas') : __('Add new Email', 'wp-multisite-waas');
|
||||
return $this->edit ? __('Edit Email', 'wp-ultimo') : __('Add new Email', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -398,7 +398,7 @@ class Email_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Edit Email', 'wp-multisite-waas');
|
||||
return __('Edit Email', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas'),
|
||||
'label' => __('Go Back', 'wp-ultimo'),
|
||||
'icon' => 'wu-reply',
|
||||
],
|
||||
[
|
||||
'url' => $send_test_link,
|
||||
'label' => __('Send Test Email', 'wp-multisite-waas'),
|
||||
'label' => __('Send Test Email', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'save_description' => '',
|
||||
'delete_button_label' => __('Delete Email', 'wp-multisite-waas'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'),
|
||||
'delete_button_label' => __('Delete Email', 'wp-ultimo'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -102,7 +102,7 @@ class Email_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('System Emails', 'wp-multisite-waas');
|
||||
return __('System Emails', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -113,7 +113,7 @@ class Email_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('System Emails', 'wp-multisite-waas');
|
||||
return __('System Emails', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -124,7 +124,7 @@ class Email_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('System Emails', 'wp-multisite-waas');
|
||||
return __('System Emails', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -182,9 +182,9 @@ class Email_List_Admin_Page extends List_Admin_Page {
|
||||
$fields = [
|
||||
'send_to' => [
|
||||
'type' => 'email',
|
||||
'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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Send Test Email', 'wp-ultimo'),
|
||||
'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-multisite-waas'));
|
||||
$error = new \WP_Error('error', __('Something wrong happened.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$error = new \WP_Error('error', __('Something wrong happened with your test.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'),
|
||||
'test_notice' => __('Test sent successfully', 'wp-ultimo'),
|
||||
]
|
||||
),
|
||||
]
|
||||
@ -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-multisite-waas'),
|
||||
'notice' => __('Test sent successfully', 'wp-ultimo'),
|
||||
]
|
||||
),
|
||||
]
|
||||
@ -326,8 +326,8 @@ class Email_List_Admin_Page extends List_Admin_Page {
|
||||
$fields = [
|
||||
'reset_emails' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Reset System Emails ', 'wp-multisite-waas'),
|
||||
'desc' => __('Restore the system emails to their original content.', 'wp-multisite-waas'),
|
||||
'title' => __('Reset System Emails ', 'wp-ultimo'),
|
||||
'desc' => __('Restore the system emails to their original content.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('No emails to reset.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Add new system emails based on WP Multisite WaaS presets.', 'wp-multisite-waas'),
|
||||
'title' => __('Import System Emails', 'wp-ultimo'),
|
||||
'desc' => __('Add new system emails based on WP Multisite WaaS presets.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('All emails are already present.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Reset and/or Import', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('This action can not be undone.', 'wp-multisite-waas'),
|
||||
'title' => __('Confirm Reset', 'wp-ultimo'),
|
||||
'desc' => __('This action can not be undone.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Reset Email', 'wp-ultimo'),
|
||||
'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-multisite-waas'));
|
||||
$error = new \WP_Error('error', __('Something wrong happened.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$error = new \WP_Error('error', __('Something wrong happened.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'),
|
||||
'label' => __('Add System Email', 'wp-ultimo'),
|
||||
'icon' => 'wu-circle-with-plus',
|
||||
],
|
||||
[
|
||||
'url' => wu_network_admin_url('wp-ultimo-customize-email-template&id=' . $email_template_default),
|
||||
'label' => __('Email Template', 'wp-multisite-waas'),
|
||||
'label' => __('Email Template', 'wp-ultimo'),
|
||||
'icon' => 'wu-mail',
|
||||
],
|
||||
[
|
||||
'url' => wu_get_form_url('reset_import'),
|
||||
'classes' => 'wubox',
|
||||
'label' => __('Reset or Import', 'wp-multisite-waas'),
|
||||
'label' => __('Reset or Import', 'wp-ultimo'),
|
||||
'icon' => 'wu-cycle',
|
||||
],
|
||||
];
|
||||
|
@ -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-multisite-waas'),
|
||||
'subject' => __('Sample Subject', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('System emails and broadcasts will be sent using this template.', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
]
|
||||
@ -243,15 +243,15 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page {
|
||||
'v-model' => 'tab',
|
||||
],
|
||||
'options' => [
|
||||
'header' => __('Header', 'wp-multisite-waas'),
|
||||
'content' => __('Content', 'wp-multisite-waas'),
|
||||
'footer' => __('Footer', 'wp-multisite-waas'),
|
||||
'header' => __('Header', 'wp-ultimo'),
|
||||
'content' => __('Content', 'wp-ultimo'),
|
||||
'footer' => __('Footer', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
'use_custom_logo' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Use Custom Logo', 'wp-multisite-waas'),
|
||||
'desc' => __('You can set a different logo to be used on the system emails.', 'wp-multisite-waas'),
|
||||
'title' => __('Use Custom Logo', 'wp-ultimo'),
|
||||
'desc' => __('You can set a different logo to be used on the system emails.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('The custom logo is used in the email header, if HTML emails are used.', 'wp-multisite-waas'),
|
||||
'title' => __('Custom Logo', 'wp-ultimo'),
|
||||
'desc' => __('The custom logo is used in the email header, if HTML emails are used.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'tooltip' => __('The cover background color of the email.', 'wp-multisite-waas'),
|
||||
'title' => __('Background Color', 'wp-ultimo'),
|
||||
'tooltip' => __('The cover background color of the email.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Title Color', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Title Size', 'wp-ultimo'),
|
||||
'value' => wu_get_isset($settings, 'title_size'),
|
||||
'options' => [
|
||||
'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'),
|
||||
'h1' => __('h1', 'wp-ultimo'),
|
||||
'h2' => __('h2', 'wp-ultimo'),
|
||||
'h3' => __('h3', 'wp-ultimo'),
|
||||
'h4' => __('h4', 'wp-ultimo'),
|
||||
'h5' => __('h5', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'tooltip' => __('Aligment of the font in the title.', 'wp-multisite-waas'),
|
||||
'title' => __('Title Align', 'wp-ultimo'),
|
||||
'tooltip' => __('Aligment of the font in the title.', 'wp-ultimo'),
|
||||
'value' => wu_get_isset($settings, 'title_align', ''),
|
||||
'options' => [
|
||||
'left' => __('Left', 'wp-multisite-waas'),
|
||||
'center' => __('Center', 'wp-multisite-waas'),
|
||||
'right' => __('Right', 'wp-multisite-waas'),
|
||||
'left' => __('Left', 'wp-ultimo'),
|
||||
'center' => __('Center', 'wp-ultimo'),
|
||||
'right' => __('Right', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Title Font-Family', 'wp-ultimo'),
|
||||
'value' => wu_get_isset($settings, 'title_font', ''),
|
||||
'options' => [
|
||||
'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'),
|
||||
'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'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Content Color', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'tooltip' => __('Alignment of the font in the main email content.', 'wp-multisite-waas'),
|
||||
'title' => __('Content Alignment', 'wp-ultimo'),
|
||||
'tooltip' => __('Alignment of the font in the main email content.', 'wp-ultimo'),
|
||||
'value' => wu_get_isset($settings, 'content_align', ''),
|
||||
'options' => [
|
||||
'left' => __('Left', 'wp-multisite-waas'),
|
||||
'center' => __('Center', 'wp-multisite-waas'),
|
||||
'right' => __('Right', 'wp-multisite-waas'),
|
||||
'left' => __('Left', 'wp-ultimo'),
|
||||
'center' => __('Center', 'wp-ultimo'),
|
||||
'right' => __('Right', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Content Font-Family', 'wp-ultimo'),
|
||||
'value' => wu_get_isset($settings, 'content_font', ''),
|
||||
'options' => [
|
||||
'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'),
|
||||
'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'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Toggle to show/hide your company address.', 'wp-multisite-waas'),
|
||||
'title' => __('Display Company Address', 'wp-ultimo'),
|
||||
'desc' => __('Toggle to show/hide your company address.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('e.g. Extra info in the email footer.', 'wp-multisite-waas'),
|
||||
'title' => __('Footer Content', 'wp-ultimo'),
|
||||
'placeholder' => __('e.g. Extra info in the email footer.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Footer Font-Family', 'wp-ultimo'),
|
||||
'value' => wu_get_isset($settings, 'footer_font', ''),
|
||||
'options' => [
|
||||
'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'),
|
||||
'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'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Footer Color', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'tooltip' => __('Alignment of the font in the main email footer.', 'wp-multisite-waas'),
|
||||
'title' => __('Footer Alignment', 'wp-ultimo'),
|
||||
'tooltip' => __('Alignment of the font in the main email footer.', 'wp-ultimo'),
|
||||
'value' => wu_get_isset($settings, 'footer_align', ''),
|
||||
'options' => [
|
||||
'left' => __('Left', 'wp-multisite-waas'),
|
||||
'center' => __('Center', 'wp-multisite-waas'),
|
||||
'right' => __('Right', 'wp-multisite-waas'),
|
||||
'left' => __('Left', 'wp-ultimo'),
|
||||
'center' => __('Center', 'wp-ultimo'),
|
||||
'right' => __('Right', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Customizer', 'wp-ultimo'),
|
||||
'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-multisite-waas');
|
||||
return __('Customize Email Template:', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -521,7 +521,7 @@ class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Customize Email Template', 'wp-multisite-waas');
|
||||
return __('Customize Email Template', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-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'),
|
||||
'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'),
|
||||
'save_description' => '',
|
||||
'delete_button_label' => __('Delete Email Template', 'wp-multisite-waas'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'),
|
||||
'delete_button_label' => __('Delete Email Template', 'wp-ultimo'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -160,8 +160,8 @@ class Event_List_Admin_Page extends List_Admin_Page {
|
||||
public function get_labels() {
|
||||
|
||||
return [
|
||||
'deleted_message' => __('Event removed successfully.', 'wp-multisite-waas'),
|
||||
'search_label' => __('Search Event', 'wp-multisite-waas'),
|
||||
'deleted_message' => __('Event removed successfully.', 'wp-ultimo'),
|
||||
'search_label' => __('Search Event', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -173,7 +173,7 @@ class Event_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Events', 'wp-multisite-waas');
|
||||
return __('Events', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -184,7 +184,7 @@ class Event_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Events', 'wp-multisite-waas');
|
||||
return __('Events', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -195,7 +195,7 @@ class Event_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Events', 'wp-multisite-waas');
|
||||
return __('Events', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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-multisite-waas'), [$this, 'output_default_widget_message'], get_current_screen()->id, 'normal', 'default');
|
||||
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-initiator', __('Event', 'wp-multisite-waas'), [$this, 'output_default_widget_initiator'], get_current_screen()->id, 'side', '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-payload', __('Event Payload', 'wp-multisite-waas'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal', 'default');
|
||||
add_meta_box('wp-ultimo-payload', __('Event Payload', 'wp-ultimo'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal', 'default');
|
||||
|
||||
$this->add_info_widget(
|
||||
'info',
|
||||
[
|
||||
'title' => __('Timestamps', 'wp-multisite-waas'),
|
||||
'title' => __('Timestamps', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'loading_text' => __('Loading Payload', 'wp-multisite-waas'),
|
||||
'title' => __('Event Payload', 'wp-ultimo'),
|
||||
'loading_text' => __('Loading Payload', 'wp-ultimo'),
|
||||
'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-multisite-waas') : __('Add new Event', 'wp-multisite-waas');
|
||||
return $this->edit ? __('Edit Event', 'wp-ultimo') : __('Add new Event', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -219,7 +219,7 @@ class Event_View_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Edit Event', 'wp-multisite-waas');
|
||||
return __('Edit Event', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -242,15 +242,15 @@ class Event_View_Admin_Page extends Edit_Admin_Page {
|
||||
public function get_labels() {
|
||||
|
||||
return [
|
||||
'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'),
|
||||
'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'),
|
||||
'title_description' => '',
|
||||
'save_button_label' => __('Save Event', 'wp-multisite-waas'),
|
||||
'save_button_label' => __('Save Event', 'wp-ultimo'),
|
||||
'save_description' => '',
|
||||
'delete_button_label' => __('Delete Event', 'wp-multisite-waas'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'),
|
||||
'delete_button_label' => __('Delete Event', 'wp-ultimo'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ class Hosting_Integration_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
*/
|
||||
public function get_title(): string {
|
||||
|
||||
return sprintf(__('Integration Setup', 'wp-multisite-waas'));
|
||||
return sprintf(__('Integration Setup', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -120,7 +120,7 @@ class Hosting_Integration_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Host Provider Integration', 'wp-multisite-waas');
|
||||
return __('Host Provider Integration', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -133,25 +133,25 @@ class Hosting_Integration_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
$sections = [
|
||||
'activation' => [
|
||||
'title' => __('Activation', 'wp-multisite-waas'),
|
||||
'title' => __('Activation', 'wp-ultimo'),
|
||||
'view' => [$this, 'section_activation'],
|
||||
'handler' => [$this, 'handle_activation'],
|
||||
],
|
||||
'instructions' => [
|
||||
'title' => __('Instructions', 'wp-multisite-waas'),
|
||||
'title' => __('Instructions', 'wp-ultimo'),
|
||||
'view' => [$this, 'section_instructions'],
|
||||
],
|
||||
'config' => [
|
||||
'title' => __('Configuration', 'wp-multisite-waas'),
|
||||
'title' => __('Configuration', 'wp-ultimo'),
|
||||
'view' => [$this, 'section_configuration'],
|
||||
'handler' => [$this, 'handle_configuration'],
|
||||
],
|
||||
'testing' => [
|
||||
'title' => __('Testing Integration', 'wp-multisite-waas'),
|
||||
'title' => __('Testing Integration', 'wp-ultimo'),
|
||||
'view' => [$this, 'section_test'],
|
||||
],
|
||||
'done' => [
|
||||
'title' => __('Ready!', 'wp-multisite-waas'),
|
||||
'title' => __('Ready!', 'wp-ultimo'),
|
||||
'view' => [$this, 'section_ready'],
|
||||
],
|
||||
];
|
||||
|
@ -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. <br><br>Existing PDF Invoices will not be affected unless explicitly re-generated', 'wp-multisite-waas'),
|
||||
'desc' => __('Changes to this template will be applied to all PDF invoices generated after the change. <br><br>Existing PDF Invoices will not be affected unless explicitly re-generated', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
]
|
||||
@ -167,17 +167,17 @@ class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page {
|
||||
'v-model' => 'tab',
|
||||
],
|
||||
'options' => [
|
||||
'general' => __('General', 'wp-multisite-waas'),
|
||||
'colors' => __('Colors', 'wp-multisite-waas'),
|
||||
'images' => __('Images', 'wp-multisite-waas'),
|
||||
'general' => __('General', 'wp-ultimo'),
|
||||
'colors' => __('Colors', 'wp-ultimo'),
|
||||
'images' => __('Images', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
|
||||
'paid_tag_text' => [
|
||||
'type' => 'text',
|
||||
'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')),
|
||||
'title' => __('Paid Tag', 'wp-ultimo'),
|
||||
'placeholder' => __('e.g. Paid.', 'wp-ultimo'),
|
||||
'value' => wu_get_isset($settings, 'paid_tag_text', __('Paid', 'wp-ultimo')),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Font-Family', 'wp-ultimo'),
|
||||
'value' => wu_get_isset($settings, 'font', ''),
|
||||
'options' => [
|
||||
'DejaVuSansCondensed' => __('Sans-Serif', 'wp-multisite-waas'),
|
||||
'DejaVuSerifCondensed' => __('Serif', 'wp-multisite-waas'),
|
||||
'FreeMono' => __('Mono', 'wp-multisite-waas'),
|
||||
'DejaVuSansCondensed' => __('Sans-Serif', 'wp-ultimo'),
|
||||
'DejaVuSerifCondensed' => __('Serif', 'wp-ultimo'),
|
||||
'FreeMono' => __('Mono', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('e.g. Extra Info about the Invoice.', 'wp-multisite-waas'),
|
||||
'title' => __('Footer Content', 'wp-ultimo'),
|
||||
'placeholder' => __('e.g. Extra Info about the Invoice.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Primary Color', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('You can set a different logo to be used on the invoice.', 'wp-multisite-waas'),
|
||||
'title' => __('Use Custom Logo', 'wp-ultimo'),
|
||||
'desc' => __('You can set a different logo to be used on the invoice.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('This will be added to the top of the generated PDF.', 'wp-multisite-waas'),
|
||||
'title' => __('Custom Logo', 'wp-ultimo'),
|
||||
'desc' => __('This will be added to the top of the generated PDF.', 'wp-ultimo'),
|
||||
'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-multisite-waas')),
|
||||
'paid_tag_text' => wu_get_isset($settings, 'paid_tag_text', __('Paid', 'wp-ultimo')),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Customizer', 'wp-ultimo'),
|
||||
'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-multisite-waas');
|
||||
return __('Customize Invoice Template', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -311,7 +311,7 @@ class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Customize Invoice Template', 'wp-multisite-waas');
|
||||
return __('Customize Invoice Template', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-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'),
|
||||
'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'),
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -108,7 +108,7 @@ class Jobs_List_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Jobs', 'wp-multisite-waas');
|
||||
return __('Jobs', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -119,7 +119,7 @@ class Jobs_List_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Jobs', 'wp-multisite-waas');
|
||||
return __('Jobs', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -130,7 +130,7 @@ class Jobs_List_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Jobs', 'wp-multisite-waas');
|
||||
return __('Jobs', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -123,8 +123,8 @@ abstract class List_Admin_Page extends Base_Admin_Page {
|
||||
public function get_labels() {
|
||||
|
||||
return [
|
||||
'deleted_message' => __('Object removed successfully.', 'wp-multisite-waas'),
|
||||
'search_label' => __('Search Object', 'wp-multisite-waas'),
|
||||
'deleted_message' => __('Object removed successfully.', 'wp-ultimo'),
|
||||
'search_label' => __('Search Object', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -120,7 +120,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
$actions = [
|
||||
'preview' => [
|
||||
'title' => __('Preview', 'wp-multisite-waas'),
|
||||
'title' => __('Preview', 'wp-ultimo'),
|
||||
'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 <strong>%s</strong>. You can preview the changes here. Scheduled changes are usually created by downgrades.', 'wp-multisite-waas'), $date->format(get_option('date_format')));
|
||||
$message = sprintf(__('There is a change scheduled to take place on this membership in <strong>%s</strong>. You can preview the changes here. Scheduled changes are usually created by downgrades.', 'wp-ultimo'), $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-multisite-waas'),
|
||||
'desc' => __('This will start the transfer of assets from one customer to another.', 'wp-multisite-waas'),
|
||||
'title' => __('Confirm Transfer', 'wp-ultimo'),
|
||||
'desc' => __('This will start the transfer of assets from one customer to another.', 'wp-ultimo'),
|
||||
'html_attr' => [
|
||||
'v-model' => 'confirmed',
|
||||
],
|
||||
],
|
||||
'submit_button' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Start Transfer', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Start Transfer', 'wp-multisite-waas'),
|
||||
'title' => __('Start Transfer', 'wp-ultimo'),
|
||||
'placeholder' => __('Start Transfer', 'wp-ultimo'),
|
||||
'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-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('not-found', __('Membership not found.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
$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-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('not-found', __('Target customer not found.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
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-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('not-found', __('Cannot transfer to the same customer.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -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-multisite-waas'),
|
||||
'title' => __('At a Glance', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Membership Status', 'wp-ultimo'),
|
||||
'display_value' => $tag,
|
||||
'tooltip' => '',
|
||||
],
|
||||
'hash' => [
|
||||
'copy' => true,
|
||||
'type' => 'text-display',
|
||||
'title' => __('Reference ID', 'wp-multisite-waas'),
|
||||
'title' => __('Reference ID', 'wp-ultimo'),
|
||||
'display_value' => $this->get_object()->get_hash(),
|
||||
],
|
||||
'total_grossed' => [
|
||||
'type' => 'text-display',
|
||||
'title' => __('Total Grossed', 'wp-multisite-waas'),
|
||||
'title' => __('Total Grossed', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Products', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Payments', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Sites', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Linked Customer', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Membership Options', 'wp-ultimo'),
|
||||
'position' => 'normal',
|
||||
'sections' => apply_filters(
|
||||
'wu_membership_options_sections',
|
||||
[
|
||||
'general' => [
|
||||
'title' => __('General', 'wp-multisite-waas'),
|
||||
'desc' => __('General membership options', 'wp-multisite-waas'),
|
||||
'title' => __('General', 'wp-ultimo'),
|
||||
'desc' => __('General membership options', 'wp-ultimo'),
|
||||
'icon' => 'dashicons-wu-globe',
|
||||
'fields' => [
|
||||
'blocking' => [
|
||||
'type' => 'toggle',
|
||||
'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'),
|
||||
'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'),
|
||||
'value' => true,
|
||||
],
|
||||
],
|
||||
],
|
||||
'billing_info' => [
|
||||
'title' => __('Billing Info', 'wp-multisite-waas'),
|
||||
'desc' => __('Billing information for this particular membership.', 'wp-multisite-waas'),
|
||||
'title' => __('Billing Info', 'wp-ultimo'),
|
||||
'desc' => __('Billing information for this particular membership.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Events', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('The membership current status.', 'wp-multisite-waas'),
|
||||
'title' => __('Status', 'wp-ultimo'),
|
||||
'desc' => __('The membership current status.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('The reason why the customer cancelled this membership.', 'wp-multisite-waas'),
|
||||
'title' => __('Cancellation Reason', 'wp-ultimo'),
|
||||
'desc' => __('The reason why the customer cancelled this membership.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('If enable we will cancel the subscription on payment method', 'wp-multisite-waas'),
|
||||
'title' => __('Cancel on gateway', 'wp-ultimo'),
|
||||
'desc' => __('If enable we will cancel the subscription on payment method', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Search a Customer...', 'wp-multisite-waas'),
|
||||
'desc' => __('The owner of this membership.', 'wp-multisite-waas'),
|
||||
'title' => __('Customer', 'wp-ultimo'),
|
||||
'placeholder' => __('Search a Customer...', 'wp-ultimo'),
|
||||
'desc' => __('The owner of this membership.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Changing the customer will transfer this membership and all its assets, including sites, to the new customer.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'display_value' => __('Transfer Membership', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Transfer Membership', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
];
|
||||
@ -573,7 +573,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
unset($regular_fields['transfer']);
|
||||
|
||||
$regular_fields['submit_save']['title'] = __('Locked', 'wp-multisite-waas');
|
||||
$regular_fields['submit_save']['title'] = __('Locked', 'wp-ultimo');
|
||||
$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-multisite-waas'),
|
||||
'title' => __('Billing Amount', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Initial Amount', 'wp-ultimo'),
|
||||
// translators: %s is a price placeholder value.
|
||||
'placeholder' => sprintf(__('E.g. %s', 'wp-multisite-waas'), wu_format_currency(199)),
|
||||
'desc' => __('The initial amount collected on the first payment.', 'wp-multisite-waas'),
|
||||
'placeholder' => sprintf(__('E.g. %s', 'wp-ultimo'), wu_format_currency(199)),
|
||||
'desc' => __('The initial amount collected on the first payment.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Use this option to manually enable or disable this membership.', 'wp-multisite-waas'),
|
||||
'title' => __('Is Recurring', 'wp-ultimo'),
|
||||
'desc' => __('Use this option to manually enable or disable this membership.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Recurring Amount', 'wp-ultimo'),
|
||||
// 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-multisite-waas'), '{{ wu_format_money(amount) }}', '{{ duration }}', '{{ duration_unit }}'),
|
||||
'desc' => sprintf(__('The customer will be charged %1$s every %2$s %3$s(s).', 'wp-ultimo'), '{{ 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-multisite-waas'),
|
||||
'week' => __('Weeks', 'wp-multisite-waas'),
|
||||
'month' => __('Months', 'wp-multisite-waas'),
|
||||
'year' => __('Years', 'wp-multisite-waas'),
|
||||
'day' => __('Days', 'wp-ultimo'),
|
||||
'week' => __('Weeks', 'wp-ultimo'),
|
||||
'month' => __('Months', 'wp-ultimo'),
|
||||
'year' => __('Years', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
],
|
||||
@ -733,9 +733,9 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
],
|
||||
'billing_cycles' => [
|
||||
'type' => 'number',
|
||||
'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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('The number of times this membership was billed so far.', 'wp-multisite-waas'),
|
||||
'title' => __('Times Billed', 'wp-ultimo'),
|
||||
'desc' => __('The number of times this membership was billed so far.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Activating this will tell the gateway to try to automatically charge for this membership.', 'wp-multisite-waas'),
|
||||
'title' => __('Auto-Renew?', 'wp-ultimo'),
|
||||
'desc' => __('Activating this will tell the gateway to try to automatically charge for this membership.', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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('<a class="wu-text-gray-800 wu-text-center wu-w-full wu-no-underline" href="%s" target="_blank">%s</a>', esc_attr($url), __('View on Gateway →', 'wp-multisite-waas'));
|
||||
return sprintf('<a class="wu-text-gray-800 wu-text-center wu-w-full wu-no-underline" href="%s" target="_blank">%s</a>', esc_attr($url), __('View on Gateway →', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
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-multisite-waas'),
|
||||
'placeholder' => __('Gateway Customer ID', 'wp-multisite-waas'),
|
||||
'title' => __('Gateway Customer ID', 'wp-ultimo'),
|
||||
'placeholder' => __('Gateway Customer ID', 'wp-ultimo'),
|
||||
'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('<a class="wu-text-gray-800 wu-text-center wu-w-full wu-no-underline" href="%s" target="_blank">%s</a>', esc_attr($url), __('View on Gateway →', 'wp-multisite-waas'));
|
||||
return sprintf('<a class="wu-text-gray-800 wu-text-center wu-w-full wu-no-underline" href="%s" target="_blank">%s</a>', esc_attr($url), __('View on Gateway →', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
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-multisite-waas'),
|
||||
'placeholder' => __('Gateway Subscription ID', 'wp-multisite-waas'),
|
||||
'title' => __('Gateway Subscription ID', 'wp-ultimo'),
|
||||
'placeholder' => __('Gateway Subscription ID', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('We will try to cancel the old subscription on the gateway.', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
];
|
||||
|
||||
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-multisite-waas'),
|
||||
'title' => __('Convert to Lifetime', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Important Timestamps', 'wp-ultimo'),
|
||||
'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-multisite-waas') : __('Add new Membership', 'wp-multisite-waas');
|
||||
return $this->edit ? __('Edit Membership', 'wp-ultimo') : __('Add new Membership', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -962,7 +962,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Edit Membership', 'wp-multisite-waas');
|
||||
return __('Edit Membership', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -985,15 +985,15 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
public function get_labels() {
|
||||
|
||||
return [
|
||||
'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'),
|
||||
'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'),
|
||||
'save_description' => '',
|
||||
'delete_button_label' => __('Delete Membership', 'wp-multisite-waas'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'),
|
||||
'delete_button_label' => __('Delete Membership', 'wp-ultimo'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -1103,7 +1103,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
$actions = [
|
||||
'preview' => [
|
||||
'title' => __('← Go back', 'wp-multisite-waas'),
|
||||
'title' => __('← Go back', 'wp-ultimo'),
|
||||
'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 <strong>preview</strong>. This page displays the final stage of the membership after the changes scheduled for <strong>%s</strong>. Saving here will persist these changes, so be careful.', 'wp-multisite-waas'), $date->format(get_option('date_format')));
|
||||
$message = sprintf(__('This is a <strong>preview</strong>. This page displays the final stage of the membership after the changes scheduled for <strong>%s</strong>. Saving here will persist these changes, so be careful.', 'wp-ultimo'), $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-multisite-waas'),
|
||||
'placeholder' => __('Search product...', 'wp-multisite-waas'),
|
||||
'title' => __('Product', 'wp-ultimo'),
|
||||
'placeholder' => __('Search product...', 'wp-ultimo'),
|
||||
'value' => '',
|
||||
'tooltip' => '',
|
||||
'html_attr' => [
|
||||
@ -1275,7 +1275,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
],
|
||||
'quantity' => [
|
||||
'type' => 'number',
|
||||
'title' => __('Quantity', 'wp-multisite-waas'),
|
||||
'title' => __('Quantity', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Add Product', 'wp-multisite-waas'),
|
||||
'title' => __('Add Product', 'wp-ultimo'),
|
||||
'placeholder' => __('Add Product', 'wp-ultimo'),
|
||||
'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-multisite-waas'));
|
||||
$error = new \WP_Error('membership-not-found', __('Membership not found.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$error = new \WP_Error('product-not-found', __('Product not found.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'),
|
||||
'title' => __('Quantity', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Remove Product', 'wp-multisite-waas'),
|
||||
'title' => __('Remove Product', 'wp-ultimo'),
|
||||
'placeholder' => __('Remove Product', 'wp-ultimo'),
|
||||
'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-multisite-waas'));
|
||||
$error = new \WP_Error('membership-not-found', __('Membership not found.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$error = new \WP_Error('product-not-found', __('Product not found.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'),
|
||||
'placeholder' => __('Search new Plan...', 'wp-multisite-waas'),
|
||||
'desc' => __('Select a new plan for this membership.', 'wp-multisite-waas'),
|
||||
'title' => __('Plan', 'wp-ultimo'),
|
||||
'placeholder' => __('Search new Plan...', 'wp-ultimo'),
|
||||
'desc' => __('Select a new plan for this membership.', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Change Product', 'wp-multisite-waas'),
|
||||
'title' => __('Change Product', 'wp-ultimo'),
|
||||
'placeholder' => __('Change Product', 'wp-ultimo'),
|
||||
'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-multisite-waas'));
|
||||
$error = new \WP_Error('membership-not-found', __('Membership not found.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$error = new \WP_Error('plan-not-found', __('Plan not found.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$error = new \WP_Error('same-plan', __('No change performed. The same plan selected.', 'wp-ultimo'));
|
||||
|
||||
wp_send_json_error($error);
|
||||
}
|
||||
|
@ -88,9 +88,9 @@ class Membership_List_Admin_Page extends List_Admin_Page {
|
||||
$fields = [
|
||||
'customer_id' => [
|
||||
'type' => 'model',
|
||||
'title' => __('Customer', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Search Customer...', 'wp-multisite-waas'),
|
||||
'desc' => __('The customer to attach this membership to.', 'wp-multisite-waas'),
|
||||
'title' => __('Customer', 'wp-ultimo'),
|
||||
'placeholder' => __('Search Customer...', 'wp-ultimo'),
|
||||
'desc' => __('The customer to attach this membership to.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Search Products...', 'wp-multisite-waas'),
|
||||
'desc' => __('You can add multiples products to this membership.', 'wp-multisite-waas'),
|
||||
'title' => __('Products', 'wp-ultimo'),
|
||||
'placeholder' => __('Search Products...', 'wp-ultimo'),
|
||||
'desc' => __('You can add multiples products to this membership.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Status', 'wp-multisite-waas'),
|
||||
'desc' => __('The membership status.', 'wp-multisite-waas'),
|
||||
'title' => __('Status', 'wp-ultimo'),
|
||||
'placeholder' => __('Status', 'wp-ultimo'),
|
||||
'desc' => __('The membership status.', 'wp-ultimo'),
|
||||
'tooltip' => '',
|
||||
'value' => Membership_Status::PENDING,
|
||||
'options' => Membership_Status::to_array(),
|
||||
],
|
||||
'lifetime' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Lifetime', 'wp-multisite-waas'),
|
||||
'desc' => __('Activate this toggle to mark the newly created membership as lifetime.', 'wp-multisite-waas'),
|
||||
'title' => __('Lifetime', 'wp-ultimo'),
|
||||
'desc' => __('Activate this toggle to mark the newly created membership as lifetime.', 'wp-ultimo'),
|
||||
'value' => 1,
|
||||
'html_attr' => [
|
||||
'v-model' => 'lifetime',
|
||||
],
|
||||
],
|
||||
'date_expiration' => [
|
||||
'title' => __('Expiration Date', 'wp-multisite-waas'),
|
||||
'desc' => __('Set the expiration date of the membership to be created.', 'wp-multisite-waas'),
|
||||
'title' => __('Expiration Date', 'wp-ultimo'),
|
||||
'desc' => __('Set the expiration date of the membership to be created.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Create Membership', 'wp-ultimo'),
|
||||
'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-multisite-waas')
|
||||
__('Products can not be empty.', 'wp-ultimo')
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -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-multisite-waas')
|
||||
__('The selected customer does not exist.', 'wp-ultimo')
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -263,8 +263,8 @@ class Membership_List_Admin_Page extends List_Admin_Page {
|
||||
public function get_labels() {
|
||||
|
||||
return [
|
||||
'deleted_message' => __('Membership removed successfully.', 'wp-multisite-waas'),
|
||||
'search_label' => __('Search Membership', 'wp-multisite-waas'),
|
||||
'deleted_message' => __('Membership removed successfully.', 'wp-ultimo'),
|
||||
'search_label' => __('Search Membership', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -276,7 +276,7 @@ class Membership_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Memberships', 'wp-multisite-waas');
|
||||
return __('Memberships', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -287,7 +287,7 @@ class Membership_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Memberships', 'wp-multisite-waas');
|
||||
return __('Memberships', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -298,7 +298,7 @@ class Membership_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Memberships', 'wp-multisite-waas');
|
||||
return __('Memberships', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -104,7 +104,7 @@ class Migration_Alert_Admin_Page extends Wizard_Admin_Page {
|
||||
*/
|
||||
public function get_title(): string {
|
||||
|
||||
return sprintf(__('Migration', 'wp-multisite-waas'));
|
||||
return sprintf(__('Migration', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas') : __('WP Multisite WaaS', 'wp-multisite-waas');
|
||||
return WP_Ultimo()->is_loaded() ? __('WP Multisite WaaS Migration Alert', 'wp-ultimo') : __('WP Multisite WaaS', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -128,7 +128,7 @@ class Migration_Alert_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
return [
|
||||
'alert' => [
|
||||
'title' => __('Alert!', 'wp-multisite-waas'),
|
||||
'title' => __('Alert!', 'wp-ultimo'),
|
||||
'view' => [$this, 'section_alert'],
|
||||
'handler' => [$this, 'handle_proceed'],
|
||||
],
|
||||
|
@ -167,15 +167,15 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$fields = [
|
||||
'confirm' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Confirm Deletion', 'wp-multisite-waas'),
|
||||
'desc' => __('This action can not be undone.', 'wp-multisite-waas'),
|
||||
'title' => __('Confirm Deletion', 'wp-ultimo'),
|
||||
'desc' => __('This action can not be undone.', 'wp-ultimo'),
|
||||
'html_attr' => [
|
||||
'v-model' => 'confirmed',
|
||||
],
|
||||
],
|
||||
'submit_button' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Delete', 'wp-multisite-waas'),
|
||||
'title' => __('Delete', 'wp-ultimo'),
|
||||
'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-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('not-found', __('Payment not found.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
$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-multisite-waas'),
|
||||
'placeholder' => __('Refund Amount', 'wp-multisite-waas'),
|
||||
'title' => __('Refund Amount', 'wp-ultimo'),
|
||||
'placeholder' => __('Refund Amount', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Checking this option will cancel the membership as well.', 'wp-multisite-waas'),
|
||||
'title' => __('Cancel Related Membership?', 'wp-ultimo'),
|
||||
'desc' => __('Checking this option will cancel the membership as well.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('This action can not be undone.', 'wp-multisite-waas'),
|
||||
'title' => __('Confirm Refund', 'wp-ultimo'),
|
||||
'desc' => __('This action can not be undone.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Next Step', 'wp-multisite-waas'),
|
||||
'title' => __('Next Step', 'wp-ultimo'),
|
||||
'placeholder' => __('Next Step', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Issue Refund', 'wp-multisite-waas'),
|
||||
'title' => __('Issue Refund', 'wp-ultimo'),
|
||||
'placeholder' => __('Issue Refund', 'wp-ultimo'),
|
||||
'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-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('not-found', __('Payment not found.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
/*
|
||||
* 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-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('invalid-amount', __('The refund amount is out of bounds.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -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-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('payment-not-refunded', __('This payment is not in a refundable state.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -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-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('gateway-not-found', __('Payment gateway not found.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -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-multisite-waas'), $status->get_error_message()));
|
||||
$error = new \WP_Error('refund-error', sprintf(__('An error occurred: %s', 'wp-ultimo'), $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-multisite-waas'), $e->getMessage()));
|
||||
$error = new \WP_Error('refund-error', sprintf(__('An error occurred: %s', 'wp-ultimo'), $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-multisite-waas'));
|
||||
$error = new \WP_Error('missing-product', __('The product was not found.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$error = new \WP_Error('invalid-type', __('The line item type is invalid.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('error', __('Something wrong happened.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
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-multisite-waas'),
|
||||
'info' => __('Additional Info', 'wp-multisite-waas'),
|
||||
'tax' => __('Tax Info', 'wp-multisite-waas'),
|
||||
'type' => __('Type', 'wp-ultimo'),
|
||||
'info' => __('Additional Info', 'wp-ultimo'),
|
||||
'tax' => __('Tax Info', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Select the line item type.', 'wp-multisite-waas'),
|
||||
'title' => __('Line Item Type', 'wp-ultimo'),
|
||||
'desc' => __('Select the line item type.', 'wp-ultimo'),
|
||||
'options' => [
|
||||
'product' => __('Product', 'wp-multisite-waas'),
|
||||
'refund' => __('Refund', 'wp-multisite-waas'),
|
||||
'fee' => __('Fee', 'wp-multisite-waas'),
|
||||
'credit' => __('Credit', 'wp-multisite-waas'),
|
||||
'product' => __('Product', 'wp-ultimo'),
|
||||
'refund' => __('Refund', 'wp-ultimo'),
|
||||
'fee' => __('Fee', 'wp-ultimo'),
|
||||
'credit' => __('Credit', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Product associated with this line item.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Search Products', 'wp-multisite-waas'),
|
||||
'title' => __('Product', 'wp-ultimo'),
|
||||
'desc' => __('Product associated with this line item.', 'wp-ultimo'),
|
||||
'placeholder' => __('Search Products', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('E.g. Extra Charge', 'wp-multisite-waas'),
|
||||
'desc' => __('This is used when generating invoices.', 'wp-multisite-waas'),
|
||||
'title' => __('Line Item Title', 'wp-ultimo'),
|
||||
'placeholder' => __('E.g. Extra Charge', 'wp-ultimo'),
|
||||
'desc' => __('This is used when generating invoices.', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Item quantity.', 'wp-multisite-waas'),
|
||||
'title' => __('Quantity', 'wp-ultimo'),
|
||||
'desc' => __('Item quantity.', 'wp-ultimo'),
|
||||
'value' => $line_item->get_quantity(),
|
||||
'placeholder' => __('E.g. 1', 'wp-multisite-waas'),
|
||||
'placeholder' => __('E.g. 1', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Item unit price. This is multiplied by the quantity to calculate the sub-total.', 'wp-multisite-waas'),
|
||||
'title' => __('Unit Price', 'wp-ultimo'),
|
||||
'desc' => __('Item unit price. This is multiplied by the quantity to calculate the sub-total.', 'wp-ultimo'),
|
||||
// translators: %s is a price placeholder value.
|
||||
'placeholder' => sprintf(__('E.g. %s', 'wp-multisite-waas'), wu_format_currency(99)),
|
||||
'placeholder' => sprintf(__('E.g. %s', 'wp-ultimo'), 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-multisite-waas'),
|
||||
'desc' => __('Refund, credit or fee amount.', 'wp-multisite-waas'),
|
||||
'title' => __('Amount', 'wp-ultimo'),
|
||||
'desc' => __('Refund, credit or fee amount.', 'wp-ultimo'),
|
||||
// translators: %s is a price placeholder value.
|
||||
'placeholder' => sprintf(__('E.g. %s', 'wp-multisite-waas'), wu_format_currency(99)),
|
||||
'placeholder' => sprintf(__('E.g. %s', 'wp-ultimo'), 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-multisite-waas'),
|
||||
'desc' => __('Checking this box will toggle the tax controls.', 'wp-multisite-waas'),
|
||||
'title' => __('Is Taxable?', 'wp-ultimo'),
|
||||
'desc' => __('Checking this box will toggle the tax controls.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('E.g. ES VAT', 'wp-multisite-waas'),
|
||||
'desc' => __('Tax description. This is shown on invoices to end customers.', 'wp-multisite-waas'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Tax rate and type to apply to this item.', 'wp-multisite-waas'),
|
||||
'title' => __('Tax Rate', 'wp-ultimo'),
|
||||
'desc' => __('Tax rate and type to apply to this item.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'absolute' => __('Flat Rate ($)', 'wp-multisite-waas'),
|
||||
'percentage' => __('Percentage (%)', 'wp-ultimo'),
|
||||
'absolute' => __('Flat Rate ($)', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'submit_button' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Save', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Save', 'wp-multisite-waas'),
|
||||
'title' => __('Save', 'wp-ultimo'),
|
||||
'placeholder' => __('Save', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'label' => __('Refund Payment', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'label' => __('Add Line Item', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('At a Glance', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Payment Status', 'wp-ultimo'),
|
||||
'display_value' => $tag,
|
||||
'tooltip' => '',
|
||||
],
|
||||
'hash' => [
|
||||
'copy' => true,
|
||||
'type' => 'text-display',
|
||||
'title' => __('Reference ID', 'wp-multisite-waas'),
|
||||
'title' => __('Reference ID', 'wp-ultimo'),
|
||||
'display_value' => $this->get_object()->get_hash(),
|
||||
],
|
||||
'total' => [
|
||||
'type' => 'text-display',
|
||||
'title' => __('Total', 'wp-multisite-waas'),
|
||||
'title' => __('Total', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Line Items', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Tax Rate Breakthrough', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Payment Options', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Events', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Status', 'wp-multisite-waas'),
|
||||
'desc' => __('The payment current status.', 'wp-multisite-waas'),
|
||||
'title' => __('Status', 'wp-ultimo'),
|
||||
'placeholder' => __('Status', 'wp-ultimo'),
|
||||
'desc' => __('The payment current status.', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('The membership associated with this payment.', 'wp-multisite-waas'),
|
||||
'title' => __('Membership', 'wp-ultimo'),
|
||||
'desc' => __('The membership associated with this payment.', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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('<a class="wu-text-gray-800 wu-text-center wu-w-full wu-no-underline" href="%s" target="_blank">%s</a>', esc_attr($url), __('View on Gateway →', 'wp-multisite-waas'));
|
||||
return sprintf('<a class="wu-text-gray-800 wu-text-center wu-w-full wu-no-underline" href="%s" target="_blank">%s</a>', esc_attr($url), __('View on Gateway →', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
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-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'),
|
||||
'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'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas') : __('Add new Payment', 'wp-multisite-waas');
|
||||
return $this->edit ? __('Edit Payment', 'wp-ultimo') : __('Add new Payment', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1169,7 +1169,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Edit Payment', 'wp-multisite-waas');
|
||||
return __('Edit Payment', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas'),
|
||||
'label' => __('Generate Invoice', 'wp-ultimo'),
|
||||
'icon' => 'wu-attachment',
|
||||
];
|
||||
|
||||
if ($payment->is_payable()) {
|
||||
$actions[] = [
|
||||
'url' => $payment->get_payment_url(),
|
||||
'label' => __('Payment URL', 'wp-multisite-waas'),
|
||||
'label' => __('Payment URL', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'save_description' => '',
|
||||
'delete_button_label' => __('Delete Payment', 'wp-multisite-waas'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'),
|
||||
'delete_button_label' => __('Delete Payment', 'wp-ultimo'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -87,9 +87,9 @@ class Payment_List_Admin_Page extends List_Admin_Page {
|
||||
$fields = [
|
||||
'products' => [
|
||||
'type' => 'model',
|
||||
'title' => __('Products', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Search Products...', 'wp-multisite-waas'),
|
||||
'desc' => __('Each product will be added as a line item.', 'wp-multisite-waas'),
|
||||
'title' => __('Products', 'wp-ultimo'),
|
||||
'placeholder' => __('Search Products...', 'wp-ultimo'),
|
||||
'desc' => __('Each product will be added as a line item.', 'wp-ultimo'),
|
||||
'value' => '',
|
||||
'tooltip' => '',
|
||||
'html_attr' => [
|
||||
@ -102,18 +102,18 @@ class Payment_List_Admin_Page extends List_Admin_Page {
|
||||
],
|
||||
'status' => [
|
||||
'type' => 'select',
|
||||
'title' => __('Status', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Status', 'wp-multisite-waas'),
|
||||
'desc' => __('The payment status to attach to the newly created payment.', 'wp-multisite-waas'),
|
||||
'title' => __('Status', 'wp-ultimo'),
|
||||
'placeholder' => __('Status', 'wp-ultimo'),
|
||||
'desc' => __('The payment status to attach to the newly created payment.', 'wp-ultimo'),
|
||||
'value' => Payment_Status::COMPLETED,
|
||||
'options' => Payment_Status::to_array(),
|
||||
'tooltip' => '',
|
||||
],
|
||||
'membership_id' => [
|
||||
'type' => 'model',
|
||||
'title' => __('Membership', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Search Membership...', 'wp-multisite-waas'),
|
||||
'desc' => __('The membership associated with this payment.', 'wp-multisite-waas'),
|
||||
'title' => __('Membership', 'wp-ultimo'),
|
||||
'placeholder' => __('Search Membership...', 'wp-ultimo'),
|
||||
'desc' => __('The membership associated with this payment.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Checking this box will include setup fees attached to the selected products as well.', 'wp-multisite-waas'),
|
||||
'title' => __('Include Setup Fees', 'wp-ultimo'),
|
||||
'desc' => __('Checking this box will include setup fees attached to the selected products as well.', 'wp-ultimo'),
|
||||
'value' => 1,
|
||||
],
|
||||
'submit_button' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Add Payment', 'wp-multisite-waas'),
|
||||
'title' => __('Add Payment', 'wp-ultimo'),
|
||||
'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-multisite-waas'));
|
||||
$error = new \WP_Error('invalid-membership', __('Invalid membership.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'),
|
||||
'search_label' => __('Search Payment', 'wp-multisite-waas'),
|
||||
'deleted_message' => __('Payment removed successfully.', 'wp-ultimo'),
|
||||
'search_label' => __('Search Payment', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -241,7 +241,7 @@ class Payment_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Payments', 'wp-multisite-waas');
|
||||
return __('Payments', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -252,7 +252,7 @@ class Payment_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Payments', 'wp-multisite-waas');
|
||||
return __('Payments', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -263,7 +263,7 @@ class Payment_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Payments', 'wp-multisite-waas');
|
||||
return __('Payments', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -276,7 +276,7 @@ class Payment_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
return [
|
||||
[
|
||||
'label' => __('Add Payment', 'wp-multisite-waas'),
|
||||
'label' => __('Add Payment', 'wp-ultimo'),
|
||||
'icon' => 'wu-circle-with-plus',
|
||||
'classes' => 'wubox',
|
||||
'url' => wu_get_form_url('add_new_payment'),
|
||||
|
@ -70,7 +70,7 @@ class Placeholders_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Edit Template Placeholders', 'wp-multisite-waas');
|
||||
return __('Edit Template Placeholders', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -81,7 +81,7 @@ class Placeholders_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Edit Template Placeholders', 'wp-multisite-waas');
|
||||
return __('Edit Template Placeholders', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -92,7 +92,7 @@ class Placeholders_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Edit Template Placeholders', 'wp-multisite-waas');
|
||||
return __('Edit Template Placeholders', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -108,8 +108,8 @@ class Placeholders_Admin_Page extends Base_Admin_Page {
|
||||
$columns = apply_filters(
|
||||
'wu_edit_placeholders_columns',
|
||||
[
|
||||
'placeholder' => __('Placeholder', 'wp-multisite-waas'),
|
||||
'content' => __('Content', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Placeholder', 'wp-ultimo'),
|
||||
'content' => __('Content', 'wp-ultimo'),
|
||||
]
|
||||
);
|
||||
|
||||
@ -138,9 +138,9 @@ class Placeholders_Admin_Page extends Base_Admin_Page {
|
||||
'wu-edit-placeholders',
|
||||
'wu_placeholdersl10n',
|
||||
[
|
||||
'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'),
|
||||
'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'),
|
||||
]
|
||||
);
|
||||
|
||||
|
@ -116,16 +116,16 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
[
|
||||
[
|
||||
'id' => 'new-product-warning',
|
||||
'title' => __('On adding a new product...', 'wp-multisite-waas'),
|
||||
'title' => __('On adding a new product...', 'wp-ultimo'),
|
||||
'text' => [
|
||||
__("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'),
|
||||
__("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'),
|
||||
],
|
||||
'buttons' => [
|
||||
[
|
||||
'classes' => 'button wu-text-xs sm:wu-normal-case wu-float-left',
|
||||
'text' => __('Go to Checkout Forms', 'wp-multisite-waas'),
|
||||
'text' => __('Go to Checkout Forms', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Description', 'wp-ultimo'),
|
||||
'position' => 'normal',
|
||||
'fields' => [
|
||||
'description' => [
|
||||
'type' => 'textarea',
|
||||
'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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Product Options', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Events', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Select Pricing Type', 'wp-multisite-waas'),
|
||||
'desc' => __('Products can be free, paid, or require further contact for pricing.', 'wp-multisite-waas'),
|
||||
'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'),
|
||||
'value' => $this->get_object()->get_pricing_type(),
|
||||
'tooltip' => '',
|
||||
'options' => [
|
||||
'paid' => __('Paid', 'wp-multisite-waas'),
|
||||
'free' => __('Free', 'wp-multisite-waas'),
|
||||
'contact_us' => __('Contact Us', 'wp-multisite-waas'),
|
||||
'paid' => __('Paid', 'wp-ultimo'),
|
||||
'free' => __('Free', 'wp-ultimo'),
|
||||
'contact_us' => __('Contact Us', 'wp-ultimo'),
|
||||
],
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Check this if this product has a recurring charge.', 'wp-multisite-waas'),
|
||||
'title' => __('Is Recurring?', 'wp-ultimo'),
|
||||
'desc' => __('Check this if this product has a recurring charge.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Price', 'wp-multisite-waas'),
|
||||
'title' => __('Price', 'wp-ultimo'),
|
||||
'placeholder' => __('Price', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Price', 'wp-ultimo'),
|
||||
// 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-multisite-waas'), '{{ wu_format_money(amount) }}', '{{ duration }}', '{{ duration_unit }}'),
|
||||
'desc' => sprintf(__('The customer will be charged %1$s every %2$s %3$s(s).', 'wp-ultimo'), '{{ 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-multisite-waas'),
|
||||
'week' => __('Weeks', 'wp-multisite-waas'),
|
||||
'month' => __('Months', 'wp-multisite-waas'),
|
||||
'year' => __('Years', 'wp-multisite-waas'),
|
||||
'day' => __('Days', 'wp-ultimo'),
|
||||
'week' => __('Weeks', 'wp-ultimo'),
|
||||
'month' => __('Months', 'wp-ultimo'),
|
||||
'year' => __('Years', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'billing_cycles' => [
|
||||
'type' => 'number',
|
||||
'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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Check if you want to add a trial period to this product.', 'wp-multisite-waas'),
|
||||
'title' => __('Offer Trial', 'wp-ultimo'),
|
||||
'desc' => __('Check if you want to add a trial period to this product.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Trial', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'week' => __('Weeks', 'wp-multisite-waas'),
|
||||
'month' => __('Months', 'wp-multisite-waas'),
|
||||
'year' => __('Years', 'wp-multisite-waas'),
|
||||
'day' => __('Days', 'wp-ultimo'),
|
||||
'week' => __('Weeks', 'wp-ultimo'),
|
||||
'month' => __('Months', 'wp-ultimo'),
|
||||
'year' => __('Years', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'has_setup_fee' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Add Setup Fee?', 'wp-multisite-waas'),
|
||||
'desc' => __('Check if you want to add a setup fee.', 'wp-multisite-waas'),
|
||||
'title' => __('Add Setup Fee?', 'wp-ultimo'),
|
||||
'desc' => __('Check if you want to add a setup fee.', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
// translators: %s is a price placeholder value.
|
||||
'placeholder' => sprintf(__('E.g. %s', 'wp-multisite-waas'), wu_format_currency(199)),
|
||||
'placeholder' => sprintf(__('E.g. %s', 'wp-ultimo'), 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-multisite-waas'),
|
||||
'title' => __('Active', 'wp-ultimo'),
|
||||
'fields' => [
|
||||
'active' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Active', 'wp-multisite-waas'),
|
||||
'desc' => __('Use this option to manually enable or disable this product for new sign-ups.', 'wp-multisite-waas'),
|
||||
'title' => __('Active', 'wp-ultimo'),
|
||||
'desc' => __('Use this option to manually enable or disable this product for new sign-ups.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Product Image', 'wp-ultimo'),
|
||||
'fields' => [
|
||||
'featured_image_id' => [
|
||||
'type' => 'image',
|
||||
'stacked' => true,
|
||||
'title' => __('Product Image', 'wp-multisite-waas'),
|
||||
'desc' => __('This image is used on product list tables and other places.', 'wp-multisite-waas'),
|
||||
'title' => __('Product Image', 'wp-ultimo'),
|
||||
'desc' => __('This image is used on product list tables and other places.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Legacy Options', 'wp-ultimo'),
|
||||
// translators: %s is the name of legacy add-ons.
|
||||
'desc' => sprintf(__('Options for %s, and others.', 'wp-multisite-waas'), implode(', ', $tabs)),
|
||||
'desc' => sprintf(__('Options for %s, and others.', 'wp-ultimo'), 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-multisite-waas'),
|
||||
'title' => __('Legacy Options', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('General product options such as product slug, type, etc.', 'wp-multisite-waas'),
|
||||
'title' => __('General', 'wp-ultimo'),
|
||||
'desc' => __('General product options such as product slug, type, etc.', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'value' => $this->get_object()->get_slug(),
|
||||
'tooltip' => __('Lowercase alpha-numeric characters with dashes or underlines. No spaces allowed.', 'wp-multisite-waas'),
|
||||
'tooltip' => __('Lowercase alpha-numeric characters with dashes or underlines. No spaces allowed.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Product Type', 'wp-multisite-waas'),
|
||||
'desc' => __('Different product types have different options.', 'wp-multisite-waas'),
|
||||
'title' => __('Product Type', 'wp-ultimo'),
|
||||
'placeholder' => __('Product Type', 'wp-ultimo'),
|
||||
'desc' => __('Different product types have different options.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Select the role WP Multisite WaaS should use when adding the user to their newly created site.', 'wp-multisite-waas'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Settings related to upgrade and downgrade flows.', 'wp-multisite-waas'),
|
||||
'title' => __('Up & Downgrades', 'wp-ultimo'),
|
||||
'desc' => __('Settings related to upgrade and downgrade flows.', 'wp-ultimo'),
|
||||
'icon' => 'dashicons-wu-shop',
|
||||
'v-show' => 'product_type === "plan"',
|
||||
'state' => [],
|
||||
'fields' => [
|
||||
'group' => [
|
||||
'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'),
|
||||
'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'),
|
||||
'type' => 'select',
|
||||
'value' => $this->get_object()->get_group(),
|
||||
'options' => array_merge(['' => __('Select Group', 'wp-multisite-waas')], wu_get_product_groups()),
|
||||
'options' => array_merge(['' => __('Select Group', 'wp-ultimo')], wu_get_product_groups()),
|
||||
'html_attr' => [
|
||||
'data-selectize-categories' => 999,
|
||||
'data-max-items' => 1,
|
||||
],
|
||||
],
|
||||
'list_order' => [
|
||||
'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'),
|
||||
'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'),
|
||||
'type' => 'number',
|
||||
'value' => $this->get_object()->get_list_order(),
|
||||
],
|
||||
'available_addons' => [
|
||||
'type' => 'model',
|
||||
'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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Discounts for longer membership commitments.', 'wp-multisite-waas'),
|
||||
'title' => __('Price Variations', 'wp-ultimo'),
|
||||
'desc' => __('Discounts for longer membership commitments.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Price Variations are an easy way to offer discounted prices for longer subscription commitments.', 'wp-multisite-waas'),
|
||||
'title' => __('Enable Price Variations', 'wp-ultimo'),
|
||||
'desc' => __('Price Variations are an easy way to offer discounted prices for longer subscription commitments.', 'wp-ultimo'),
|
||||
'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-multisite-waas'), '{{ 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-ultimo'), '{{ 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('<a title="%s" class="wu-no-underline wu-inline-block wu-text-gray-600 wu-mt-2 wu-mr-2" href="#" @click.prevent="() => price_variations.splice(index, 1)"><span class="dashicons-wu-squared-cross"></span></a>', __('Remove', 'wp-multisite-waas')),
|
||||
'desc' => sprintf('<a title="%s" class="wu-no-underline wu-inline-block wu-text-gray-600 wu-mt-2 wu-mr-2" href="#" @click.prevent="() => price_variations.splice(index, 1)"><span class="dashicons-wu-squared-cross"></span></a>', __('Remove', 'wp-ultimo')),
|
||||
'wrapper_classes' => 'wu-absolute wu-top-0 wu-right-0',
|
||||
],
|
||||
'price_variations_duration' => [
|
||||
'type' => 'number',
|
||||
'title' => __('Duration', 'wp-multisite-waas'),
|
||||
'title' => __('Duration', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Period', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'week' => __('Weeks', 'wp-multisite-waas'),
|
||||
'month' => __('Months', 'wp-multisite-waas'),
|
||||
'year' => __('Years', 'wp-multisite-waas'),
|
||||
'day' => __('Days', 'wp-ultimo'),
|
||||
'week' => __('Weeks', 'wp-ultimo'),
|
||||
'month' => __('Months', 'wp-ultimo'),
|
||||
'year' => __('Years', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
// 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-multisite-waas'),
|
||||
'title' => __('New Price', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Add new Price Variation', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Tax settings for your products.', 'wp-multisite-waas'),
|
||||
'title' => __('Taxes', 'wp-ultimo'),
|
||||
'desc' => __('Tax settings for your products.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Enable this if you plan to collect taxes for this product.', 'wp-multisite-waas'),
|
||||
'title' => __('Is Taxable?', 'wp-ultimo'),
|
||||
'desc' => __('Enable this if you plan to collect taxes for this product.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Select the product tax category.', 'wp-multisite-waas'),
|
||||
'title' => __('Tax Category', 'wp-ultimo'),
|
||||
'desc' => __('Select the product tax category.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Limit which site templates are available for this particular template.', 'wp-multisite-waas'),
|
||||
'title' => __('Site Templates', 'wp-ultimo'),
|
||||
'desc' => __('Limit which site templates are available for this particular template.', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-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. <br><br>"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). <br><br>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'),
|
||||
'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. <br><br>"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). <br><br>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'),
|
||||
'value' => 'default',
|
||||
'options' => [
|
||||
'default' => __('Default', 'wp-multisite-waas'),
|
||||
'assign_template' => __('Assign Site Template', 'wp-multisite-waas'),
|
||||
'choose_available_templates' => __('Choose Available Site Templates', 'wp-multisite-waas'),
|
||||
'default' => __('Default', 'wp-ultimo'),
|
||||
'assign_template' => __('Assign Site Template', 'wp-ultimo'),
|
||||
'choose_available_templates' => __('Choose Available Site Templates', 'wp-ultimo'),
|
||||
],
|
||||
'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-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'))),
|
||||
'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'))),
|
||||
'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-multisite-waas') : __('Add new Product', 'wp-multisite-waas');
|
||||
return $this->edit ? __('Edit Product', 'wp-ultimo') : __('Add new Product', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -951,7 +951,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Edit Product', 'wp-multisite-waas');
|
||||
return __('Edit Product', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -969,7 +969,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
$actions[] = [
|
||||
'url' => '#',
|
||||
'label' => __('Click to copy Shareable Link', 'wp-multisite-waas'),
|
||||
'label' => __('Click to copy Shareable Link', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'save_description' => '',
|
||||
'delete_button_label' => __('Delete Product', 'wp-multisite-waas'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'),
|
||||
'delete_button_label' => __('Delete Product', 'wp-ultimo'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -71,8 +71,8 @@ class Product_List_Admin_Page extends List_Admin_Page {
|
||||
public function get_labels() {
|
||||
|
||||
return [
|
||||
'deleted_message' => __('Product removed successfully.', 'wp-multisite-waas'),
|
||||
'search_label' => __('Search Product', 'wp-multisite-waas'),
|
||||
'deleted_message' => __('Product removed successfully.', 'wp-ultimo'),
|
||||
'search_label' => __('Search Product', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -84,7 +84,7 @@ class Product_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Products', 'wp-multisite-waas');
|
||||
return __('Products', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -95,7 +95,7 @@ class Product_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Products', 'wp-multisite-waas');
|
||||
return __('Products', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -106,7 +106,7 @@ class Product_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Products', 'wp-multisite-waas');
|
||||
return __('Products', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -137,7 +137,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
wu_register_settings_side_panel(
|
||||
'login-and-registration',
|
||||
[
|
||||
'title' => __('Checkout Forms', 'wp-multisite-waas'),
|
||||
'title' => __('Checkout Forms', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Template Previewer', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Placeholder Editor', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Invoices', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('System Emails', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Email Template', 'wp-ultimo'),
|
||||
'render' => [$this, 'render_email_template_side_panel'],
|
||||
]
|
||||
);
|
||||
@ -197,15 +197,15 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
<div class="wu-p-4">
|
||||
|
||||
<span class="wu-text-gray-700 wu-font-bold wu-uppercase wu-tracking-wide wu-text-xs">
|
||||
<?php _e('Checkout Forms', 'wp-multisite-waas'); ?>
|
||||
<?php _e('Checkout Forms', 'wp-ultimo'); ?>
|
||||
</span>
|
||||
|
||||
<div class="wu-py-2">
|
||||
<img class="wu-w-full" alt="<?php esc_attr_e('Checkout Forms', 'wp-multisite-waas'); ?>" src="<?php echo wu_get_asset('sidebar/checkout-forms.webp'); ?>">
|
||||
<img class="wu-w-full" alt="<?php esc_attr_e('Checkout Forms', 'wp-ultimo'); ?>" src="<?php echo wu_get_asset('sidebar/checkout-forms.webp'); ?>">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-gray-600 wu-p-0 wu-m-0">
|
||||
<?php _e('You can create multiple Checkout Forms for different occasions (seasonal campaigns, launches, etc)!', 'wp-multisite-waas'); ?>
|
||||
<?php _e('You can create multiple Checkout Forms for different occasions (seasonal campaigns, launches, etc)!', 'wp-ultimo'); ?>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@ -214,7 +214,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
<div class="wu-p-4 wu-bg-gray-100 wu-border-solid wu-border-0 wu-border-t wu-border-gray-300">
|
||||
<a class="button wu-w-full wu-text-center" href="<?php echo wu_network_admin_url('wp-ultimo-checkout-forms'); ?>">
|
||||
<?php _e('Manage Checkout Forms →', 'wp-multisite-waas'); ?>
|
||||
<?php _e('Manage Checkout Forms →', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@ -240,15 +240,15 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
<div class="wu-p-4">
|
||||
|
||||
<span class="wu-text-gray-700 wu-font-bold wu-uppercase wu-tracking-wide wu-text-xs">
|
||||
<?php _e('Customize the Template Previewer', 'wp-multisite-waas'); ?>
|
||||
<?php _e('Customize the Template Previewer', 'wp-ultimo'); ?>
|
||||
</span>
|
||||
|
||||
<div class="wu-py-2">
|
||||
<img class="wu-w-full" alt="<?php esc_attr_e('Customize the Template Previewer', 'wp-multisite-waas'); ?>" src="<?php echo wu_get_asset('sidebar/site-template.webp'); ?>">
|
||||
<img class="wu-w-full" alt="<?php esc_attr_e('Customize the Template Previewer', 'wp-ultimo'); ?>" src="<?php echo wu_get_asset('sidebar/site-template.webp'); ?>">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-gray-600 wu-p-0 wu-m-0">
|
||||
<?php _e('Did you know that you can customize colors, logos, and more options of the Site Template Previewer top-bar?', 'wp-multisite-waas'); ?>
|
||||
<?php _e('Did you know that you can customize colors, logos, and more options of the Site Template Previewer top-bar?', 'wp-ultimo'); ?>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@ -257,7 +257,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
<div class="wu-p-4 wu-bg-gray-100 wu-border-solid wu-border-0 wu-border-t wu-border-gray-300">
|
||||
<a class="button wu-w-full wu-text-center" target="_blank" href="<?php echo wu_network_admin_url('wp-ultimo-customize-template-previewer'); ?>">
|
||||
<?php _e('Go to Customizer →', 'wp-multisite-waas'); ?>
|
||||
<?php _e('Go to Customizer →', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@ -283,15 +283,15 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
<div class="wu-p-4">
|
||||
|
||||
<span class="wu-text-gray-700 wu-font-bold wu-uppercase wu-tracking-wide wu-text-xs">
|
||||
<?php _e('Customize the Template Placeholders', 'wp-multisite-waas'); ?>
|
||||
<?php _e('Customize the Template Placeholders', 'wp-ultimo'); ?>
|
||||
</span>
|
||||
|
||||
<div class="wu-py-2">
|
||||
<img class="wu-w-full" alt="<?php esc_attr_e('Customize the Template Placeholders', 'wp-multisite-waas'); ?>" src="<?php echo wu_get_asset('sidebar/template-placeholders.webp'); ?>">
|
||||
<img class="wu-w-full" alt="<?php esc_attr_e('Customize the Template Placeholders', 'wp-ultimo'); ?>" src="<?php echo wu_get_asset('sidebar/template-placeholders.webp'); ?>">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-gray-600 wu-p-0 wu-m-0">
|
||||
<?php _e('If you are using placeholder substitutions inside your site templates, use this tool to add, remove, or change the default content of those placeholders.', 'wp-multisite-waas'); ?>
|
||||
<?php _e('If you are using placeholder substitutions inside your site templates, use this tool to add, remove, or change the default content of those placeholders.', 'wp-ultimo'); ?>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@ -300,7 +300,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
<div class="wu-p-4 wu-bg-gray-100 wu-border-solid wu-border-0 wu-border-t wu-border-gray-300">
|
||||
<a class="button wu-w-full wu-text-center" target="_blank" href="<?php echo wu_network_admin_url('wp-ultimo-template-placeholders'); ?>">
|
||||
<?php _e('Edit Placeholders →', 'wp-multisite-waas'); ?>
|
||||
<?php _e('Edit Placeholders →', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@ -326,15 +326,15 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
<div class="wu-p-4">
|
||||
|
||||
<span class="wu-text-gray-700 wu-font-bold wu-uppercase wu-tracking-wide wu-text-xs">
|
||||
<?php _e('Customize the Invoice Template', 'wp-multisite-waas'); ?>
|
||||
<?php _e('Customize the Invoice Template', 'wp-ultimo'); ?>
|
||||
</span>
|
||||
|
||||
<div class="wu-py-2">
|
||||
<img class="wu-w-full" alt="<?php esc_attr_e('Customize the Invoice Template', 'wp-multisite-waas'); ?>" src="<?php echo wu_get_asset('sidebar/invoice-template.webp'); ?>">
|
||||
<img class="wu-w-full" alt="<?php esc_attr_e('Customize the Invoice Template', 'wp-ultimo'); ?>" src="<?php echo wu_get_asset('sidebar/invoice-template.webp'); ?>">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-gray-600 wu-p-0 wu-m-0">
|
||||
<?php _e('Did you know that you can customize colors, logos, and more options of the Invoice PDF template?', 'wp-multisite-waas'); ?>
|
||||
<?php _e('Did you know that you can customize colors, logos, and more options of the Invoice PDF template?', 'wp-ultimo'); ?>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@ -343,7 +343,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
<div class="wu-p-4 wu-bg-gray-100 wu-border-solid wu-border-0 wu-border-t wu-border-gray-300">
|
||||
<a class="button wu-w-full wu-text-center" target="_blank" href="<?php echo wu_network_admin_url('wp-ultimo-customize-invoice-template'); ?>">
|
||||
<?php _e('Go to Customizer →', 'wp-multisite-waas'); ?>
|
||||
<?php _e('Go to Customizer →', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@ -369,15 +369,15 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
<div class="wu-p-4">
|
||||
|
||||
<span class="wu-text-gray-700 wu-font-bold wu-uppercase wu-tracking-wide wu-text-xs">
|
||||
<?php _e('Customize System Emails', 'wp-multisite-waas'); ?>
|
||||
<?php _e('Customize System Emails', 'wp-ultimo'); ?>
|
||||
</span>
|
||||
|
||||
<div class="wu-py-2">
|
||||
<img class="wu-w-full" alt="<?php esc_attr_e('Customize System Emails', 'wp-multisite-waas'); ?>" src="<?php echo wu_get_asset('sidebar/system-emails.webp'); ?>">
|
||||
<img class="wu-w-full" alt="<?php esc_attr_e('Customize System Emails', 'wp-ultimo'); ?>" src="<?php echo wu_get_asset('sidebar/system-emails.webp'); ?>">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-gray-600 wu-p-0 wu-m-0">
|
||||
<?php _e('You can completely customize the contents of the emails sent out by WP Multisite WaaS when particular events occur, such as Account Creation, Payment Failures, etc.', 'wp-multisite-waas'); ?>
|
||||
<?php _e('You can completely customize the contents of the emails sent out by WP Multisite WaaS when particular events occur, such as Account Creation, Payment Failures, etc.', 'wp-ultimo'); ?>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@ -386,7 +386,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
<div class="wu-p-4 wu-bg-gray-100 wu-border-solid wu-border-0 wu-border-t wu-border-gray-300">
|
||||
<a class="button wu-w-full wu-text-center" target="_blank" href="<?php echo wu_network_admin_url('wp-ultimo-emails'); ?>">
|
||||
<?php _e('Customize System Emails →', 'wp-multisite-waas'); ?>
|
||||
<?php _e('Customize System Emails →', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@ -412,15 +412,15 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
<div class="wu-p-4">
|
||||
|
||||
<span class="wu-text-gray-700 wu-font-bold wu-uppercase wu-tracking-wide wu-text-xs">
|
||||
<?php _e('Customize Email Template', 'wp-multisite-waas'); ?>
|
||||
<?php _e('Customize Email Template', 'wp-ultimo'); ?>
|
||||
</span>
|
||||
|
||||
<div class="wu-py-2">
|
||||
<img class="wu-w-full" alt="<?php esc_attr_e('Customize Email Template', 'wp-multisite-waas'); ?>" src="<?php echo wu_get_asset('sidebar/email-template.webp'); ?>">
|
||||
<img class="wu-w-full" alt="<?php esc_attr_e('Customize Email Template', 'wp-ultimo'); ?>" src="<?php echo wu_get_asset('sidebar/email-template.webp'); ?>">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-gray-600 wu-p-0 wu-m-0">
|
||||
<?php _e('If your network is using the HTML email option, you can customize the look and feel of the email template.', 'wp-multisite-waas'); ?>
|
||||
<?php _e('If your network is using the HTML email option, you can customize the look and feel of the email template.', 'wp-ultimo'); ?>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@ -429,7 +429,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
<div class="wu-p-4 wu-bg-gray-100 wu-border-solid wu-border-0 wu-border-t wu-border-gray-300">
|
||||
<a class="button wu-w-full wu-text-center" target="_blank" href="<?php echo wu_network_admin_url('wp-ultimo-customize-email-template'); ?>">
|
||||
<?php _e('Customize Email Template →', 'wp-multisite-waas'); ?>
|
||||
<?php _e('Customize Email Template →', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@ -450,7 +450,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Settings', 'wp-multisite-waas');
|
||||
return __('Settings', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -461,7 +461,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Settings', 'wp-multisite-waas');
|
||||
return __('Settings', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas'));
|
||||
wp_die(__('You do not have the permissions required to change settings.', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
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-multisite-waas'),
|
||||
'title' => __('Save Settings', 'wp-ultimo'),
|
||||
'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' => [
|
||||
|
@ -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-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('not-allowed', __('Permission denied.', 'wp-ultimo')));
|
||||
|
||||
exit;
|
||||
}
|
||||
@ -290,7 +290,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
*/
|
||||
public function get_title(): string {
|
||||
|
||||
return sprintf(__('Installation', 'wp-multisite-waas'));
|
||||
return sprintf(__('Installation', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas') : __('WP Multisite WaaS', 'wp-multisite-waas');
|
||||
return WP_Ultimo()->is_loaded() ? __('WP Multisite WaaS Install', 'wp-ultimo') : __('WP Multisite WaaS', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -314,22 +314,22 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
$sections = [
|
||||
'welcome' => [
|
||||
'title' => __('Welcome', 'wp-multisite-waas'),
|
||||
'title' => __('Welcome', 'wp-ultimo'),
|
||||
'description' => implode(
|
||||
'<br><br>',
|
||||
[
|
||||
__('...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'),
|
||||
__('...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'),
|
||||
]
|
||||
),
|
||||
'next_label' => __('Get Started →', 'wp-multisite-waas'),
|
||||
'next_label' => __('Get Started →', 'wp-ultimo'),
|
||||
'back' => false,
|
||||
],
|
||||
'checks' => [
|
||||
'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'),
|
||||
'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'),
|
||||
'handler' => [$this, 'handle_checks'],
|
||||
'back' => false,
|
||||
'fields' => [
|
||||
@ -340,9 +340,9 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
],
|
||||
],
|
||||
'installation' => [
|
||||
'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'),
|
||||
'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'),
|
||||
'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-multisite-waas');
|
||||
$next_label = __('Migrate!', 'wp-ultimo');
|
||||
|
||||
$description = __('No errors found during dry run! Now it is time to actually migrate! <br><br><strong>We strongly recommend creating a backup of your database before moving forward with the migration.</strong>', 'wp-multisite-waas');
|
||||
$description = __('No errors found during dry run! Now it is time to actually migrate! <br><br><strong>We strongly recommend creating a backup of your database before moving forward with the migration.</strong>', 'wp-ultimo');
|
||||
|
||||
if ($dry_run) {
|
||||
$next_label = __('Run Check', 'wp-multisite-waas');
|
||||
$next_label = __('Run Check', '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') . '<br><br>' . __('First, let\'s run a test migration to see if we can spot any potential errors.', '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') . '<br><br>' . __('First, let\'s run a test migration to see if we can spot any potential errors.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
$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, <a class="wu-trigger-support" href="#">contact our support team</a> to get help migrating from 1.X to version 2.', 'wp-multisite-waas');
|
||||
$description = __('The dry run test detected issues during the test migration. Please, <a class="wu-trigger-support" href="#">contact our support team</a> to get help migrating from 1.X to version 2.', 'wp-ultimo');
|
||||
|
||||
$next = true;
|
||||
|
||||
$next_label = __('Try Again!', 'wp-multisite-waas');
|
||||
$next_label = __('Try Again!', 'wp-ultimo');
|
||||
|
||||
$error_list = '<strong>' . __('List of errors detected:', 'wp-multisite-waas') . '</strong><br><br>';
|
||||
$error_list = '<strong>' . __('List of errors detected:', 'wp-ultimo') . '</strong><br><br>';
|
||||
|
||||
$errors[] = sprintf(
|
||||
'<br><a href="%2$s" class="wu-no-underline wu-text-red-500 wu-font-bold"><span class="dashicons-wu-download wu-mr-2"></span>%1$s</a>',
|
||||
__('Download migration error log', 'wp-multisite-waas'),
|
||||
__('Download migration error log', 'wp-ultimo'),
|
||||
add_query_arg(
|
||||
[
|
||||
'action' => 'download_migration_logs',
|
||||
@ -420,7 +420,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
$errors[] = sprintf(
|
||||
'<br><a href="%2$s" class="wu-no-underline wu-text-red-500 wu-font-bold"><span class="dashicons-wu-back-in-time wu-mr-2"></span>%1$s</a>',
|
||||
__('Rollback to version 1.10.13', 'wp-multisite-waas'),
|
||||
__('Rollback to version 1.10.13', 'wp-ultimo'),
|
||||
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-multisite-waas'),
|
||||
'title' => __('Migration', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Before we move on, let\'s configure the basic settings of your network, shall we?', 'wp-multisite-waas'),
|
||||
'title' => __('Your Company', 'wp-ultimo'),
|
||||
'description' => __('Before we move on, let\'s configure the basic settings of your network, shall we?', 'wp-ultimo'),
|
||||
'handler' => [$this, 'handle_save_settings'],
|
||||
'fields' => [$this, 'get_general_settings'],
|
||||
];
|
||||
|
||||
$sections['defaults'] = [
|
||||
'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'),
|
||||
'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'),
|
||||
'fields' => [
|
||||
'terms' => [
|
||||
'type' => 'note',
|
||||
@ -482,7 +482,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
}
|
||||
|
||||
$sections['done'] = [
|
||||
'title' => __('Ready!', 'wp-multisite-waas'),
|
||||
'title' => __('Ready!', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'generic_error_message' => __('A server error happened while processing this item.', 'wp-ultimo'),
|
||||
]
|
||||
);
|
||||
|
||||
@ -619,7 +619,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
$requirements = [
|
||||
'php' => [
|
||||
'name' => __('PHP', 'wp-multisite-waas'),
|
||||
'name' => __('PHP', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'name' => __('WordPress', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'name' => __('WordPress Multisite', 'wp-ultimo'),
|
||||
'help' => wu_get_documentation_url('wp-ultimo-requirements'),
|
||||
'condition' => __('Installed & Activated', 'wp-multisite-waas'),
|
||||
'condition' => __('Installed & Activated', 'wp-ultimo'),
|
||||
'pass_requirements' => is_multisite(),
|
||||
],
|
||||
'wp-ultimo' => [
|
||||
'name' => __('WP Multisite WaaS', 'wp-multisite-waas'),
|
||||
'name' => __('WP Multisite WaaS', 'wp-ultimo'),
|
||||
'help' => wu_get_documentation_url('wp-ultimo-requirements'),
|
||||
'condition' => apply_filters('wp_ultimo_skip_network_active_check', false) ? __('Bypassed via filter', 'wp-multisite-waas') : __('Network Activated', 'wp-multisite-waas'),
|
||||
'condition' => apply_filters('wp_ultimo_skip_network_active_check', false) ? __('Bypassed via filter', 'wp-ultimo') : __('Network Activated', 'wp-ultimo'),
|
||||
'pass_requirements' => \WP_Ultimo\Requirements::is_network_active(),
|
||||
],
|
||||
'wp-cron' => [
|
||||
'name' => __('WordPress Cron', 'wp-multisite-waas'),
|
||||
'name' => __('WordPress Cron', 'wp-ultimo'),
|
||||
'help' => wu_get_documentation_url('wp-ultimo-requirements'),
|
||||
'condition' => __('Activated', 'wp-multisite-waas'),
|
||||
'condition' => __('Activated', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'image_picker_button_text' => __('Use this image', 'wp-multisite-waas'),
|
||||
'image_picker_title' => __('Select an Image.', 'wp-ultimo'),
|
||||
'image_picker_button_text' => __('Use this image', 'wp-ultimo'),
|
||||
],
|
||||
]
|
||||
);
|
||||
|
@ -91,7 +91,7 @@ class Shortcodes_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Available Shortcodes', 'wp-multisite-waas');
|
||||
return __('Available Shortcodes', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -102,7 +102,7 @@ class Shortcodes_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Available Shortcodes', 'wp-multisite-waas');
|
||||
return __('Available Shortcodes', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -113,7 +113,7 @@ class Shortcodes_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Dashboard', 'wp-multisite-waas');
|
||||
return __('Dashboard', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
$params[ $key ]['options'] = __('integer', 'wp-ultimo');
|
||||
break;
|
||||
case 'number':
|
||||
$params[ $key ]['options'] = __('number', 'wp-multisite-waas');
|
||||
$params[ $key ]['options'] = __('number', 'wp-ultimo');
|
||||
break;
|
||||
case 'text':
|
||||
$params[ $key ]['options'] = __('text', 'wp-multisite-waas');
|
||||
$params[ $key ]['options'] = __('text', 'wp-ultimo');
|
||||
break;
|
||||
case 'textarea':
|
||||
$params[ $key ]['options'] = __('text', 'wp-multisite-waas');
|
||||
$params[ $key ]['options'] = __('text', 'wp-ultimo');
|
||||
break;
|
||||
default:
|
||||
$params[ $key ]['options'] = $value['type'];
|
||||
|
@ -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-multisite-waas'),
|
||||
'title' => __('On adding a new Site Template...', 'wp-ultimo'),
|
||||
'text' => [
|
||||
__("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'),
|
||||
__("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'),
|
||||
],
|
||||
'buttons' => [
|
||||
[
|
||||
'classes' => 'button wu-text-xs sm:wu-normal-case wu-float-left',
|
||||
'text' => __('Go to Checkout Forms', 'wp-multisite-waas'),
|
||||
'text' => __('Go to Checkout Forms', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('This will start the transfer of assets from one membership to another.', 'wp-multisite-waas'),
|
||||
'title' => __('Confirm Transfer', 'wp-ultimo'),
|
||||
'desc' => __('This will start the transfer of assets from one membership to another.', 'wp-ultimo'),
|
||||
'html_attr' => [
|
||||
'v-model' => 'confirmed',
|
||||
],
|
||||
],
|
||||
'submit_button' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Start Transfer', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Start Transfer', 'wp-multisite-waas'),
|
||||
'title' => __('Start Transfer', 'wp-ultimo'),
|
||||
'placeholder' => __('Start Transfer', 'wp-ultimo'),
|
||||
'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-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('not-found', __('Site not found.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
if ( ! $target_membership) {
|
||||
wp_send_json_error(new \WP_Error('not-found', __('Membership not found.', 'wp-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('not-found', __('Membership not found.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
$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-multisite-waas'),
|
||||
'title' => __('At a Glance', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Site Type', 'wp-ultimo'),
|
||||
'display_value' => $tag,
|
||||
'tooltip' => '',
|
||||
],
|
||||
'id' => [
|
||||
'type' => 'text-display',
|
||||
'copy' => true,
|
||||
'title' => __('Site ID', 'wp-multisite-waas'),
|
||||
'title' => __('Site ID', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Description', 'wp-ultimo'),
|
||||
'position' => 'normal',
|
||||
'fields' => [
|
||||
'description' => [
|
||||
'type' => 'textarea',
|
||||
'title' => __('Site Description', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Tell your customers what this site is about.', 'wp-multisite-waas'),
|
||||
'title' => __('Site Description', 'wp-ultimo'),
|
||||
'placeholder' => __('Tell your customers what this site is about.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Site Options', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Mapped Domains', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Linked Membership', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Linked Customer', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Events', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'display_value' => __('Main Site', 'wp-multisite-waas'),
|
||||
'tooltip' => __('You can\'t change the main site type.', 'wp-multisite-waas'),
|
||||
'title' => __('Site Type', 'wp-ultimo'),
|
||||
'display_value' => __('Main Site', 'wp-ultimo'),
|
||||
'tooltip' => __('You can\'t change the main site type.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Select Site Type', 'wp-multisite-waas'),
|
||||
'desc' => __('Different site types have different options and settings.', 'wp-multisite-waas'),
|
||||
'title' => __('Site Type', 'wp-ultimo'),
|
||||
'placeholder' => __('Select Site Type', 'wp-ultimo'),
|
||||
'desc' => __('Different site types have different options and settings.', 'wp-ultimo'),
|
||||
'value' => $this->get_object()->get_type(),
|
||||
'tooltip' => '',
|
||||
'options' => [
|
||||
'default' => __('Regular WordPress', 'wp-multisite-waas'),
|
||||
'site_template' => __('Site Template', 'wp-multisite-waas'),
|
||||
'customer_owned' => __('Customer-owned', 'wp-multisite-waas'),
|
||||
'default' => __('Regular WordPress', 'wp-ultimo'),
|
||||
'site_template' => __('Site Template', 'wp-ultimo'),
|
||||
'customer_owned' => __('Customer-owned', 'wp-ultimo'),
|
||||
],
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Search Membership...', 'wp-multisite-waas'),
|
||||
'desc' => __('The membership that owns this site.', 'wp-multisite-waas'),
|
||||
'title' => __('Associated Membership', 'wp-ultimo'),
|
||||
'placeholder' => __('Search Membership...', 'wp-ultimo'),
|
||||
'desc' => __('The membership that owns this site.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Changing the membership will transfer the site and all its assets to the new membership.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Save Site', 'wp-multisite-waas'),
|
||||
'title' => __('Save Site', 'wp-ultimo'),
|
||||
'placeholder' => __('Save Site', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'display_value' => __('Transfer Site', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Transfer Site', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
],
|
||||
@ -537,12 +537,12 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$this->add_fields_widget(
|
||||
'active',
|
||||
[
|
||||
'title' => __('Active', 'wp-multisite-waas'),
|
||||
'title' => __('Active', 'wp-ultimo'),
|
||||
'fields' => [
|
||||
'active' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Active', 'wp-multisite-waas'),
|
||||
'desc' => __('Use this option to manually enable or disable this site.', 'wp-multisite-waas'),
|
||||
'title' => __('Active', 'wp-ultimo'),
|
||||
'desc' => __('Use this option to manually enable or disable this site.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Site Image', 'wp-ultimo'),
|
||||
'fields' => [
|
||||
'featured_image_id' => [
|
||||
'type' => 'image',
|
||||
'stacked' => true,
|
||||
'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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('You need to save the site for the change to take effect.', 'wp-ultimo'),
|
||||
'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('<span class="wu-p-2 wu-bg-red-100 wu-text-red-600 wu-rounded wu-block">%s</span>', __('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')),
|
||||
'desc' => sprintf('<span class="wu-p-2 wu-bg-red-100 wu-text-red-600 wu-rounded wu-block">%s</span>', __('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')),
|
||||
'wrapper_classes' => \WP_Ultimo\Domain_Mapping\Helper::is_development_mode() ? '' : 'wu-hidden',
|
||||
],
|
||||
'scraper' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Take Screenshot', 'wp-multisite-waas'),
|
||||
'title' => __('Take Screenshot', 'wp-multisite-waas'),
|
||||
'title' => __('Take Screenshot', 'wp-ultimo'),
|
||||
'title' => __('Take Screenshot', 'wp-ultimo'),
|
||||
'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-multisite-waas') : __('Add new Site', 'wp-multisite-waas');
|
||||
return $this->edit ? __('Edit Site', 'wp-ultimo') : __('Add new Site', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -626,7 +626,7 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Edit Site', 'wp-multisite-waas');
|
||||
return __('Edit Site', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas'),
|
||||
'label' => __('Go to the Default Edit Screen', 'wp-ultimo'),
|
||||
'icon' => 'wu-cog',
|
||||
],
|
||||
[
|
||||
'url' => get_site_url($this->get_object()->get_id()),
|
||||
'label' => __('Visit Site', 'wp-multisite-waas'),
|
||||
'label' => __('Visit Site', 'wp-ultimo'),
|
||||
'icon' => 'wu-link',
|
||||
],
|
||||
[
|
||||
'url' => get_admin_url($this->get_object()->get_id()),
|
||||
'label' => __('Dashboard', 'wp-multisite-waas'),
|
||||
'label' => __('Dashboard', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'save_description' => '',
|
||||
'delete_button_label' => __('Delete Site', 'wp-multisite-waas'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'),
|
||||
'delete_button_label' => __('Delete Site', 'wp-ultimo'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -130,16 +130,16 @@ class Site_List_Admin_Page extends List_Admin_Page {
|
||||
$fields = [
|
||||
'confirm' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Confirm Publication', 'wp-multisite-waas'),
|
||||
'desc' => __('This action can not be undone.', 'wp-multisite-waas'),
|
||||
'title' => __('Confirm Publication', 'wp-ultimo'),
|
||||
'desc' => __('This action can not be undone.', 'wp-ultimo'),
|
||||
'html_attr' => [
|
||||
'v-model' => 'confirmed',
|
||||
],
|
||||
],
|
||||
'submit_button' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Publish', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Publish', 'wp-multisite-waas'),
|
||||
'title' => __('Publish', 'wp-ultimo'),
|
||||
'placeholder' => __('Publish', 'wp-ultimo'),
|
||||
'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-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('not-found', __('Pending site not found.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
$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-multisite-waas')));
|
||||
wp_send_json_error(new \WP_Error('not-found', __('Pending site not found.', 'wp-ultimo')));
|
||||
}
|
||||
|
||||
$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-multisite-waas'));
|
||||
$error = new \WP_Error('error', __('Something wrong happened.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'), $site->get_title());
|
||||
$title = sprintf(__('Copy of %s', 'wp-ultimo'), $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-multisite-waas') : __('Add new Site', 'wp-multisite-waas');
|
||||
$save_label = $duplicate_id ? __('Duplicate Site', 'wp-ultimo') : __('Add new Site', 'wp-ultimo');
|
||||
|
||||
$options = [
|
||||
'sub-domain' => __('Subdomain', 'wp-multisite-waas'),
|
||||
'sub-directory' => __('Subdirectory', 'wp-multisite-waas'),
|
||||
'domain' => __('Domain', 'wp-multisite-waas'),
|
||||
'sub-domain' => __('Subdomain', 'wp-ultimo'),
|
||||
'sub-directory' => __('Subdirectory', 'wp-ultimo'),
|
||||
'domain' => __('Domain', 'wp-ultimo'),
|
||||
];
|
||||
|
||||
/*
|
||||
@ -351,19 +351,19 @@ class Site_List_Admin_Page extends List_Admin_Page {
|
||||
],
|
||||
'title' => [
|
||||
'type' => 'text',
|
||||
'title' => __('Site Title', 'wp-multisite-waas'),
|
||||
'placeholder' => __('New Network Site', 'wp-multisite-waas'),
|
||||
'title' => __('Site Title', 'wp-ultimo'),
|
||||
'placeholder' => __('New Network Site', 'wp-ultimo'),
|
||||
'value' => $title,
|
||||
],
|
||||
'domain_group' => [
|
||||
'type' => 'group',
|
||||
// translators: the %s is the site preview url.
|
||||
'desc' => sprintf(__('The site URL will be: %s', 'wp-multisite-waas'), '<span class="wu-font-mono">{{ tab === "domain" ? domain : ( tab === "sub-directory" ? scheme + base_url + domain : scheme + domain + "." + base_url ) }}</span>'),
|
||||
'desc' => sprintf(__('The site URL will be: %s', 'wp-ultimo'), '<span class="wu-font-mono">{{ tab === "domain" ? domain : ( tab === "sub-directory" ? scheme + base_url + domain : scheme + domain + "." + base_url ) }}</span>'),
|
||||
'fields' => [
|
||||
'domain' => [
|
||||
'type' => 'text',
|
||||
'title' => __('Site Domain/Path', 'wp-multisite-waas'),
|
||||
'tooltip' => __('Enter the complete domain for the site', 'wp-multisite-waas'),
|
||||
'title' => __('Site Domain/Path', 'wp-ultimo'),
|
||||
'tooltip' => __('Enter the complete domain for the site', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Site Type', 'wp-ultimo'),
|
||||
'value' => $type,
|
||||
'placeholder' => '',
|
||||
'options' => [
|
||||
'default' => __('Regular WP Site', 'wp-multisite-waas'),
|
||||
'site_template' => __('Site Template', 'wp-multisite-waas'),
|
||||
'customer_owned' => __('Customer-Owned', 'wp-multisite-waas'),
|
||||
'default' => __('Regular WP Site', 'wp-ultimo'),
|
||||
'site_template' => __('Site Template', 'wp-ultimo'),
|
||||
'customer_owned' => __('Customer-Owned', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Search Membership...', 'wp-multisite-waas'),
|
||||
'title' => __('Associated Membership', 'wp-ultimo'),
|
||||
'placeholder' => __('Search Membership...', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Select an existing site to use as a starting point.', 'wp-multisite-waas'),
|
||||
'title' => __('Copy Site', 'wp-ultimo'),
|
||||
'desc' => __('Select an existing site to use as a starting point.', 'wp-ultimo'),
|
||||
'html_attr' => [
|
||||
'v-model' => 'copy',
|
||||
],
|
||||
],
|
||||
'template_site' => [
|
||||
'type' => 'model',
|
||||
'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'),
|
||||
'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'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'search_label' => __('Search Site', 'wp-multisite-waas'),
|
||||
'deleted_message' => __('Site removed successfully.', 'wp-ultimo'),
|
||||
'search_label' => __('Search Site', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -516,7 +516,7 @@ class Site_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Sites', 'wp-multisite-waas');
|
||||
return __('Sites', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -527,7 +527,7 @@ class Site_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Sites', 'wp-multisite-waas');
|
||||
return __('Sites', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -538,7 +538,7 @@ class Site_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Sites', 'wp-multisite-waas');
|
||||
return __('Sites', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -150,7 +150,7 @@ class System_Info_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('System Info', 'wp-multisite-waas');
|
||||
return __('System Info', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -161,7 +161,7 @@ class System_Info_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('System Info', 'wp-multisite-waas');
|
||||
return __('System Info', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -172,7 +172,7 @@ class System_Info_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Dashboard', 'wp-multisite-waas');
|
||||
return __('Dashboard', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas'), ini_get('max_execution_time'));
|
||||
$max_execution_time = sprintf(__('%s seconds', 'wp-ultimo'), 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-multisite-waas') : constant($constant)) : __('Disabled', 'wp-multisite-waas'),
|
||||
'value' => defined($constant) ? (is_bool(constant($constant)) ? __('Enabled', 'wp-ultimo') : constant($constant)) : __('Disabled', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -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-multisite-waas') : __('Not set', 'wp-multisite-waas'),
|
||||
'value' => defined('COOKIE_DOMAIN') ? COOKIE_DOMAIN ?: __('Disabled', 'wp-ultimo') : __('Not set', 'wp-ultimo'),
|
||||
],
|
||||
'multisite-active' => [
|
||||
'tooltip' => '',
|
||||
'title' => 'Multi-Site Active',
|
||||
'value' => is_multisite() ? __('Yes', 'wp-multisite-waas') : __('No', 'wp-multisite-waas'),
|
||||
'value' => is_multisite() ? __('Yes', 'wp-ultimo') : __('No', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas') : __('No', 'wp-multisite-waas'),
|
||||
'value' => function_exists('curl_init') ? __('Yes', 'wp-ultimo') : __('No', 'wp-ultimo'),
|
||||
],
|
||||
'php-gd-time' => [
|
||||
'tooltip' => '',
|
||||
'title' => 'PHP GD Support',
|
||||
'value' => function_exists('gd_info') ? __('Yes', 'wp-multisite-waas') : __('No', 'wp-multisite-waas'),
|
||||
'value' => function_exists('gd_info') ? __('Yes', 'wp-ultimo') : __('No', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas') : __('Disabled', 'wp-multisite-waas') : __('Not set', 'wp-multisite-waas'),
|
||||
'value' => defined('WP_DEBUG') ? WP_DEBUG ? __('Enabled', 'wp-ultimo') : __('Disabled', 'wp-ultimo') : __('Not set', 'wp-ultimo'),
|
||||
],
|
||||
'script-debug' => [
|
||||
'tooltip' => '',
|
||||
'title' => 'WP Options Transients',
|
||||
'value' => defined('SCRIPT_DEBUG') ? SCRIPT_DEBUG ? __('Enabled', 'wp-multisite-waas') : __('Disabled', 'wp-multisite-waas') : __('Not set', 'wp-multisite-waas'),
|
||||
'value' => defined('SCRIPT_DEBUG') ? SCRIPT_DEBUG ? __('Enabled', 'wp-ultimo') : __('Disabled', 'wp-ultimo') : __('Not set', 'wp-ultimo'),
|
||||
],
|
||||
'save-queries' => [
|
||||
'tooltip' => '',
|
||||
'title' => 'WP Options Transients',
|
||||
'value' => defined('SAVEQUERIES') ? SAVEQUERIES ? __('Enabled', 'wp-multisite-waas') : __('Disabled', 'wp-multisite-waas') : __('Not set', 'wp-multisite-waas'),
|
||||
'value' => defined('SAVEQUERIES') ? SAVEQUERIES ? __('Enabled', 'wp-ultimo') : __('Disabled', 'wp-ultimo') : __('Not set', 'wp-ultimo'),
|
||||
],
|
||||
'autosave-interval' => [
|
||||
'tooltip' => '',
|
||||
'title' => 'WP Options Transients',
|
||||
'value' => defined('AUTOSAVE_INTERVAL') ? AUTOSAVE_INTERVAL ?: __('Disabled', 'wp-multisite-waas') : __('Not set', 'wp-multisite-waas'),
|
||||
'value' => defined('AUTOSAVE_INTERVAL') ? AUTOSAVE_INTERVAL ?: __('Disabled', 'wp-ultimo') : __('Not set', 'wp-ultimo'),
|
||||
],
|
||||
'wp_post_revisions' => [
|
||||
'tooltip' => '',
|
||||
'title' => 'WP Options Transients',
|
||||
'value' => defined('WP_POST_REVISIONS') ? WP_POST_REVISIONS ?: __('Disabled', 'wp-multisite-waas') : __('Not set', 'wp-multisite-waas'),
|
||||
'value' => defined('WP_POST_REVISIONS') ? WP_POST_REVISIONS ?: __('Disabled', 'wp-ultimo') : __('Not set', 'wp-ultimo'),
|
||||
],
|
||||
'disable_wp_cron' => [
|
||||
'tooltip' => '',
|
||||
'title' => 'DISABLE_WP_CRON',
|
||||
'value' => defined('DISABLE_WP_CRON') ? DISABLE_WP_CRON ?: __('Yes', 'wp-multisite-waas') : __('No', 'wp-multisite-waas'),
|
||||
'value' => defined('DISABLE_WP_CRON') ? DISABLE_WP_CRON ?: __('Yes', 'wp-ultimo') : __('No', 'wp-ultimo'),
|
||||
],
|
||||
'wp_lang' => [
|
||||
'tooltip' => '',
|
||||
'title' => 'WPLANG',
|
||||
'value' => defined('WPLANG') ? WPLANG ?: __('Yes', 'wp-multisite-waas') : __('No', 'wp-multisite-waas'),
|
||||
'value' => defined('WPLANG') ? WPLANG ?: __('Yes', 'wp-ultimo') : __('No', 'wp-ultimo'),
|
||||
],
|
||||
'wp_memory_limit' => [
|
||||
'tooltip' => '',
|
||||
'title' => 'WP_MEMORY_LIMIT',
|
||||
'value' => (defined('WP_MEMORY_LIMIT') && WP_MEMORY_LIMIT) ? WP_MEMORY_LIMIT : __('Not set', 'wp-multisite-waas'),
|
||||
'value' => (defined('WP_MEMORY_LIMIT') && WP_MEMORY_LIMIT) ? WP_MEMORY_LIMIT : __('Not set', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas'),
|
||||
'value' => (defined('WP_MAX_MEMORY_LIMIT') && WP_MAX_MEMORY_LIMIT) ? WP_MAX_MEMORY_LIMIT : __('Not set', 'wp-ultimo'),
|
||||
],
|
||||
'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-multisite-waas') : __('Not Writable', 'wp-multisite-waas'),
|
||||
'value' => is_writable(Logger::get_logs_folder()) ? __('Writable', 'wp-ultimo') : __('Not Writable', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
$wpultimo_settings
|
||||
|
@ -72,7 +72,7 @@ class Tax_Rates_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Tax Rates', 'wp-multisite-waas');
|
||||
return __('Tax Rates', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -83,7 +83,7 @@ class Tax_Rates_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Tax Rates', 'wp-multisite-waas');
|
||||
return __('Tax Rates', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -94,7 +94,7 @@ class Tax_Rates_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Tax Rates', 'wp-multisite-waas');
|
||||
return __('Tax Rates', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -110,11 +110,11 @@ class Tax_Rates_Admin_Page extends Base_Admin_Page {
|
||||
$columns = apply_filters(
|
||||
'wu_tax_rates_columns',
|
||||
[
|
||||
'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'),
|
||||
'title' => __('Label', 'wp-ultimo'),
|
||||
'country' => __('Country', 'wp-ultimo'),
|
||||
'state' => __('State / Province', 'wp-ultimo'),
|
||||
'city' => __('City', 'wp-ultimo'),
|
||||
'tax_rate' => __('Tax Rate (%)', 'wp-ultimo'),
|
||||
'move' => '',
|
||||
]
|
||||
);
|
||||
@ -145,9 +145,9 @@ class Tax_Rates_Admin_Page extends Base_Admin_Page {
|
||||
'wu-tax-rates',
|
||||
'wu_tax_ratesl10n',
|
||||
[
|
||||
'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'),
|
||||
'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'),
|
||||
]
|
||||
);
|
||||
|
||||
@ -176,7 +176,7 @@ class Tax_Rates_Admin_Page extends Base_Admin_Page {
|
||||
'widget_id' => $id,
|
||||
'before' => '',
|
||||
'after' => '',
|
||||
'title' => __('Fields', 'wp-multisite-waas'),
|
||||
'title' => __('Fields', 'wp-ultimo'),
|
||||
'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('<div class="wu-block wu-text-center wu-blinking-animation wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">%s</div>', __('Loading...', 'wp-multisite-waas')),
|
||||
'desc' => sprintf('<div class="wu-block wu-text-center wu-blinking-animation wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">%s</div>', __('Loading...', 'wp-ultimo')),
|
||||
'wrapper_html_attr' => [
|
||||
'v-if' => 0,
|
||||
],
|
||||
|
@ -97,14 +97,14 @@ class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page {
|
||||
'fields' => [
|
||||
'preview_url_parameter' => [
|
||||
'type' => 'text',
|
||||
'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'),
|
||||
'title' => __('URL Parameter', 'wp-ultimo'),
|
||||
'desc' => __('This is the URL parameter WP Multisite WaaS will use to generate the template preview URLs.', 'wp-ultimo'),
|
||||
'value' => Template_Previewer::get_instance()->get_setting('preview_url_parameter', 'template-preview'),
|
||||
],
|
||||
'enabled' => [
|
||||
'type' => 'toggle',
|
||||
'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'),
|
||||
'title' => __('Active', 'wp-ultimo'),
|
||||
'desc' => __('If your site templates are not loading, you can disable the top-bar using this setting.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'colors' => __('Colors', 'wp-multisite-waas'),
|
||||
'images' => __('Images', 'wp-multisite-waas'),
|
||||
'general' => __('General', 'wp-ultimo'),
|
||||
'colors' => __('Colors', 'wp-ultimo'),
|
||||
'images' => __('Images', 'wp-ultimo'),
|
||||
],
|
||||
],
|
||||
|
||||
'display_responsive_controls' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Show Responsive Controls', 'wp-multisite-waas'),
|
||||
'desc' => __('Toggle to show or hide the responsive controls.', 'wp-multisite-waas'),
|
||||
'title' => __('Show Responsive Controls', 'wp-ultimo'),
|
||||
'desc' => __('Toggle to show or hide the responsive controls.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'value' => __('Use this Template', 'wp-multisite-waas'),
|
||||
'title' => __('Button Text', 'wp-ultimo'),
|
||||
'value' => __('Use this Template', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Choose the background color for the top-bar.', 'wp-multisite-waas'),
|
||||
'title' => __('Background Color', 'wp-ultimo'),
|
||||
'desc' => __('Choose the background color for the top-bar.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Pick the background color for the button.', 'wp-multisite-waas'),
|
||||
'title' => __('Button BG Color', 'wp-ultimo'),
|
||||
'desc' => __('Pick the background color for the button.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('You can set a different logo to be used on the top-bar.', 'wp-multisite-waas'),
|
||||
'title' => __('Use Custom Logo', 'wp-ultimo'),
|
||||
'desc' => __('You can set a different logo to be used on the top-bar.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('The logo is displayed on the preview page top-bar.', 'wp-multisite-waas'),
|
||||
'title' => __('Custom Logo', 'wp-ultimo'),
|
||||
'desc' => __('The logo is displayed on the preview page top-bar.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Customizer', 'wp-ultimo'),
|
||||
'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-multisite-waas');
|
||||
return __('Customize Template Previewer', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -258,7 +258,7 @@ class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Customize Template Previewer', 'wp-multisite-waas');
|
||||
return __('Customize Template Previewer', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-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'),
|
||||
'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'),
|
||||
'save_description' => '',
|
||||
];
|
||||
}
|
||||
|
@ -52,11 +52,11 @@ class Top_Admin_Nav_Menu {
|
||||
// Add Parent element
|
||||
$parent = [
|
||||
'id' => 'wp-ultimo',
|
||||
'title' => __('Multisite Waas', 'wp-multisite-waas'),
|
||||
'title' => __('Multisite Waas', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Go to the dashboard', 'wp-ultimo'),
|
||||
],
|
||||
];
|
||||
|
||||
@ -64,11 +64,11 @@ class Top_Admin_Nav_Menu {
|
||||
$sites = [
|
||||
'id' => 'wp-ultimo-sites',
|
||||
'parent' => 'wp-ultimo',
|
||||
'title' => __('Manage Sites', 'wp-multisite-waas'),
|
||||
'title' => __('Manage Sites', 'wp-ultimo'),
|
||||
'href' => network_admin_url('admin.php?page=wp-ultimo-sites'),
|
||||
'meta' => [
|
||||
'class' => 'wp-ultimo-top-menu',
|
||||
'title' => __('Go to the sites page', 'wp-multisite-waas'),
|
||||
'title' => __('Go to the sites page', 'wp-ultimo'),
|
||||
],
|
||||
];
|
||||
|
||||
@ -76,11 +76,11 @@ class Top_Admin_Nav_Menu {
|
||||
$memberships = [
|
||||
'id' => 'wp-ultimo-memberships',
|
||||
'parent' => 'wp-ultimo',
|
||||
'title' => __('Manage Memberships', 'wp-multisite-waas'),
|
||||
'title' => __('Manage Memberships', 'wp-ultimo'),
|
||||
'href' => network_admin_url('admin.php?page=wp-ultimo-memberships'),
|
||||
'meta' => [
|
||||
'class' => 'wp-ultimo-top-menu',
|
||||
'title' => __('Go to the memberships page', 'wp-multisite-waas'),
|
||||
'title' => __('Go to the memberships page', 'wp-ultimo'),
|
||||
],
|
||||
];
|
||||
|
||||
@ -88,11 +88,11 @@ class Top_Admin_Nav_Menu {
|
||||
$customers = [
|
||||
'id' => 'wp-ultimo-customers',
|
||||
'parent' => 'wp-ultimo',
|
||||
'title' => __('Customers', 'wp-multisite-waas'),
|
||||
'title' => __('Customers', 'wp-ultimo'),
|
||||
'href' => network_admin_url('admin.php?page=wp-ultimo-customers'),
|
||||
'meta' => [
|
||||
'class' => 'wp-ultimo-top-menu',
|
||||
'title' => __('Go to the customers page', 'wp-multisite-waas'),
|
||||
'title' => __('Go to the customers page', 'wp-ultimo'),
|
||||
],
|
||||
];
|
||||
|
||||
@ -100,11 +100,11 @@ class Top_Admin_Nav_Menu {
|
||||
$products = [
|
||||
'id' => 'wp-ultimo-products',
|
||||
'parent' => 'wp-ultimo',
|
||||
'title' => __('Products', 'wp-multisite-waas'),
|
||||
'title' => __('Products', 'wp-ultimo'),
|
||||
'href' => network_admin_url('admin.php?page=wp-ultimo-products'),
|
||||
'meta' => [
|
||||
'class' => 'wp-ultimo-top-menu',
|
||||
'title' => __('Go to the products page', 'wp-multisite-waas'),
|
||||
'title' => __('Go to the products page', 'wp-ultimo'),
|
||||
],
|
||||
];
|
||||
|
||||
@ -112,11 +112,11 @@ class Top_Admin_Nav_Menu {
|
||||
$payments = [
|
||||
'id' => 'wp-ultimo-payments',
|
||||
'parent' => 'wp-ultimo',
|
||||
'title' => __('Payments', 'wp-multisite-waas'),
|
||||
'title' => __('Payments', 'wp-ultimo'),
|
||||
'href' => network_admin_url('admin.php?page=wp-ultimo-payments'),
|
||||
'meta' => [
|
||||
'class' => 'wp-ultimo-top-menu',
|
||||
'title' => __('Go to the payments page', 'wp-multisite-waas'),
|
||||
'title' => __('Go to the payments page', 'wp-ultimo'),
|
||||
],
|
||||
];
|
||||
|
||||
@ -124,11 +124,11 @@ class Top_Admin_Nav_Menu {
|
||||
$discount_codes = [
|
||||
'id' => 'wp-ultimo-discount-codes',
|
||||
'parent' => 'wp-ultimo',
|
||||
'title' => __('Discount Codes', 'wp-multisite-waas'),
|
||||
'title' => __('Discount Codes', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Go to the discount codes page', 'wp-ultimo'),
|
||||
],
|
||||
];
|
||||
|
||||
@ -136,11 +136,11 @@ class Top_Admin_Nav_Menu {
|
||||
'id' => 'wp-ultimo-settings-group',
|
||||
'parent' => 'wp-ultimo',
|
||||
'group' => true,
|
||||
'title' => __('Settings Container', 'wp-multisite-waas'),
|
||||
'title' => __('Settings Container', 'wp-ultimo'),
|
||||
'href' => '#',
|
||||
'meta' => [
|
||||
'class' => 'wp-ultimo-top-menu ab-sub-secondary',
|
||||
'title' => __('Go to the settings page', 'wp-multisite-waas'),
|
||||
'title' => __('Go to the settings page', 'wp-ultimo'),
|
||||
],
|
||||
];
|
||||
|
||||
@ -148,11 +148,11 @@ class Top_Admin_Nav_Menu {
|
||||
$settings = [
|
||||
'id' => 'wp-ultimo-settings',
|
||||
'parent' => 'wp-ultimo-settings-group',
|
||||
'title' => __('Settings', 'wp-multisite-waas'),
|
||||
'title' => __('Settings', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Go to the settings page', 'wp-ultimo'),
|
||||
],
|
||||
];
|
||||
|
||||
@ -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-multisite-waas'),
|
||||
'title' => __('Go to the settings page', 'wp-ultimo'),
|
||||
],
|
||||
];
|
||||
|
||||
|
@ -100,7 +100,7 @@ class View_Logs_Admin_Page extends Edit_Admin_Page {
|
||||
'wu_view_logs',
|
||||
[
|
||||
'i18n' => [
|
||||
'copied' => __('Copied!', 'wp-multisite-waas'),
|
||||
'copied' => __('Copied!', 'wp-ultimo'),
|
||||
],
|
||||
]
|
||||
);
|
||||
@ -118,7 +118,7 @@ class View_Logs_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('View Log', 'wp-multisite-waas');
|
||||
return __('View Log', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -129,7 +129,7 @@ class View_Logs_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('View Log', 'wp-multisite-waas');
|
||||
return __('View Log', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
$logs_list[''] = __('No log files found', 'wp-ultimo');
|
||||
}
|
||||
|
||||
$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-multisite-waas'));
|
||||
wp_die(__('You can see files that are not WP Multisite WaaS\'s logs', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
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-multisite-waas');
|
||||
$default_content = wu_request('return_ascii', 'yes') === 'yes' ? wu_get_template_contents('events/ascii-badge') : __('No log entries found.', 'wp-ultimo');
|
||||
|
||||
$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-multisite-waas'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal', null, $info);
|
||||
add_meta_box('wp-ultimo-log-contents', __('Log Contents', 'wp-ultimo'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal', null, $info);
|
||||
|
||||
$this->add_fields_widget(
|
||||
'file-selector',
|
||||
[
|
||||
'title' => __('Log Files', 'wp-multisite-waas'),
|
||||
'title' => __('Log Files', 'wp-ultimo'),
|
||||
'fields' => [
|
||||
'log_file' => [
|
||||
'type' => 'select',
|
||||
'title' => __('Select Log File', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Select Log File', 'wp-multisite-waas'),
|
||||
'title' => __('Select Log File', 'wp-ultimo'),
|
||||
'placeholder' => __('Select Log File', 'wp-ultimo'),
|
||||
'value' => wu_request('file'),
|
||||
'tooltip' => '',
|
||||
'options' => $info['logs_list'],
|
||||
],
|
||||
'download' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Download Log', 'wp-multisite-waas'),
|
||||
'title' => __('Download Log', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Timestamps', 'wp-ultimo'),
|
||||
'position' => 'side',
|
||||
'fields' => [
|
||||
'date_modified' => [
|
||||
'title' => __('Last Modified at', 'wp-multisite-waas'),
|
||||
'title' => __('Last Modified at', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'loading_text' => __('Loading Payload', 'wp-multisite-waas'),
|
||||
'title' => __('Event Payload', 'wp-ultimo'),
|
||||
'loading_text' => __('Loading Payload', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -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-multisite-waas'), 'error', 'network-admin');
|
||||
WP_Ultimo()->notices->add(__('Something wrong happened', 'wp-ultimo'), '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-multisite-waas'), 'error', 'network-admin');
|
||||
WP_Ultimo()->notices->add(__('File not found', 'wp-ultimo'), '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-multisite-waas'), 'error', 'network-admin');
|
||||
WP_Ultimo()->notices->add(__('We were unable to delete file', 'wp-ultimo'), 'error', 'network-admin');
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -97,9 +97,9 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
'wu_webhook_page',
|
||||
[
|
||||
'i18n' => [
|
||||
'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'),
|
||||
'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'),
|
||||
],
|
||||
]
|
||||
);
|
||||
@ -138,22 +138,22 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$this->add_fields_widget(
|
||||
'domain-url',
|
||||
[
|
||||
'title' => __('Webhook URL', 'wp-multisite-waas'),
|
||||
'title' => __('Webhook URL', 'wp-ultimo'),
|
||||
'position' => 'normal',
|
||||
'fields' => [
|
||||
'webhook_url' => [
|
||||
'type' => 'url',
|
||||
'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'),
|
||||
'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'),
|
||||
'value' => $this->get_object()->get_webhook_url(),
|
||||
],
|
||||
'actions' => [
|
||||
'type' => 'actions',
|
||||
'tooltip' => __('The event .', 'wp-multisite-waas'),
|
||||
'tooltip' => __('The event .', 'wp-ultimo'),
|
||||
'actions' => [
|
||||
'send_test_event' => [
|
||||
'title' => __('Send Test Event', 'wp-multisite-waas'),
|
||||
'title' => __('Send Test Event', 'wp-ultimo'),
|
||||
'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-multisite-waas'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal');
|
||||
add_meta_box('wp-ultimo-payload', __('Event Payload', 'wp-ultimo'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal');
|
||||
|
||||
$this->add_list_table_widget(
|
||||
'events',
|
||||
[
|
||||
'title' => __('Events', 'wp-multisite-waas'),
|
||||
'title' => __('Events', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('The event that triggers this webhook.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Select Event', 'wp-multisite-waas'),
|
||||
'title' => __('Event', 'wp-ultimo'),
|
||||
'desc' => __('The event that triggers this webhook.', 'wp-ultimo'),
|
||||
'placeholder' => __('Select Event', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Active', 'wp-ultimo'),
|
||||
'fields' => [
|
||||
'active' => [
|
||||
'type' => 'toggle',
|
||||
'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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Options', 'wp-ultimo'),
|
||||
'fields' => [
|
||||
'integration' => [
|
||||
'edit' => true,
|
||||
'title' => __('Integration', 'wp-multisite-waas'),
|
||||
'title' => __('Integration', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'tooltip' => __('Name of the service responsible for creating this webhook. If you are manually creating this webhook, use the value "manual".', 'wp-ultimo'),
|
||||
],
|
||||
'event_count' => [
|
||||
'title' => __('Run Count', 'wp-multisite-waas'),
|
||||
'title' => __('Run Count', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
],
|
||||
],
|
||||
]
|
||||
@ -264,8 +264,8 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
wu_get_template(
|
||||
'events/widget-payload',
|
||||
[
|
||||
'title' => __('Event Payload', 'wp-multisite-waas'),
|
||||
'loading_text' => __('Loading Payload', 'wp-multisite-waas'),
|
||||
'title' => __('Event Payload', 'wp-ultimo'),
|
||||
'loading_text' => __('Loading Payload', 'wp-ultimo'),
|
||||
'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-multisite-waas') : __('Add new Webhook', 'wp-multisite-waas');
|
||||
return $this->edit ? __('Edit Webhook', 'wp-ultimo') : __('Add new Webhook', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -308,7 +308,7 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Edit Webhook', 'wp-multisite-waas');
|
||||
return __('Edit Webhook', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -331,15 +331,15 @@ class Webhook_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
public function get_labels() {
|
||||
|
||||
return [
|
||||
'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'),
|
||||
'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'),
|
||||
'title_description' => '',
|
||||
'save_button_label' => __('Save Webhook', 'wp-multisite-waas'),
|
||||
'save_button_label' => __('Save Webhook', 'wp-ultimo'),
|
||||
'save_description' => '',
|
||||
'delete_button_label' => __('Delete Webhook', 'wp-multisite-waas'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-multisite-waas'),
|
||||
'delete_button_label' => __('Delete Webhook', 'wp-ultimo'),
|
||||
'delete_description' => __('Be careful. This action is irreversible.', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -71,9 +71,9 @@ class Webhook_List_Admin_Page extends List_Admin_Page {
|
||||
'wu_webhook_page',
|
||||
[
|
||||
'i18n' => [
|
||||
'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'),
|
||||
'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'),
|
||||
],
|
||||
]
|
||||
);
|
||||
@ -120,25 +120,25 @@ class Webhook_List_Admin_Page extends List_Admin_Page {
|
||||
$fields = [
|
||||
'name' => [
|
||||
'type' => 'text',
|
||||
'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'),
|
||||
'title' => __('Webhook Name', 'wp-ultimo'),
|
||||
'desc' => __('A name to easily identify your webhook.', 'wp-ultimo'),
|
||||
'placeholder' => __('E.g. Zapier Integration', 'wp-ultimo'),
|
||||
],
|
||||
'event' => [
|
||||
'title' => __('Event', 'wp-multisite-waas'),
|
||||
'title' => __('Event', 'wp-ultimo'),
|
||||
'type' => 'select',
|
||||
'desc' => __('The event that will trigger the webhook.', 'wp-multisite-waas'),
|
||||
'desc' => __('The event that will trigger the webhook.', 'wp-ultimo'),
|
||||
'options' => $event_options,
|
||||
],
|
||||
'webhook_url' => [
|
||||
'type' => 'url',
|
||||
'title' => __('Webhook Url', 'wp-multisite-waas'),
|
||||
'desc' => __('The url of your webhook.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('E.g. https://example.com/', 'wp-multisite-waas'),
|
||||
'title' => __('Webhook Url', 'wp-ultimo'),
|
||||
'desc' => __('The url of your webhook.', 'wp-ultimo'),
|
||||
'placeholder' => __('E.g. https://example.com/', 'wp-ultimo'),
|
||||
],
|
||||
'submit_button' => [
|
||||
'type' => 'submit',
|
||||
'title' => __('Add New Webhook', 'wp-multisite-waas'),
|
||||
'title' => __('Add New Webhook', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'search_label' => __('Search Webhook', 'wp-multisite-waas'),
|
||||
'deleted_message' => __('Webhook removed successfully.', 'wp-ultimo'),
|
||||
'search_label' => __('Search Webhook', 'wp-ultimo'),
|
||||
];
|
||||
}
|
||||
|
||||
@ -225,7 +225,7 @@ class Webhook_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Webhooks', 'wp-multisite-waas');
|
||||
return __('Webhooks', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -236,7 +236,7 @@ class Webhook_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Webhooks', 'wp-multisite-waas');
|
||||
return __('Webhooks', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -247,7 +247,7 @@ class Webhook_List_Admin_Page extends List_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Webhooks', 'wp-multisite-waas');
|
||||
return __('Webhooks', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -260,7 +260,7 @@ class Webhook_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
return [
|
||||
[
|
||||
'label' => __('Add New Webhook', 'wp-multisite-waas'),
|
||||
'label' => __('Add New Webhook', 'wp-ultimo'),
|
||||
'icon' => 'wu-circle-with-plus',
|
||||
'classes' => 'wubox',
|
||||
'url' => wu_get_form_url('add_new_webhook_modal'),
|
||||
|
@ -124,12 +124,12 @@ abstract class Wizard_Admin_Page extends Base_Admin_Page {
|
||||
public function get_labels() {
|
||||
|
||||
return [
|
||||
'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'),
|
||||
'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'),
|
||||
'title_description' => '',
|
||||
'save_button_label' => __('Save', 'wp-multisite-waas'),
|
||||
'save_button_label' => __('Save', 'wp-ultimo'),
|
||||
'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-multisite-waas')), [$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-ultimo')), [$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-multisite-waas'),
|
||||
'back_label' => __('← Go Back', 'wp-multisite-waas'),
|
||||
'skip_label' => __('Skip this Step', 'wp-multisite-waas'),
|
||||
'next_label' => __('Continue →', 'wp-ultimo'),
|
||||
'back_label' => __('← Go Back', 'wp-ultimo'),
|
||||
'skip_label' => __('Skip this Step', 'wp-ultimo'),
|
||||
'back' => false,
|
||||
'skip' => false,
|
||||
'next' => true,
|
||||
|
@ -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-multisite-waas'), $update_type);
|
||||
$update_message = apply_filters('wu_account_update_message', __('Your account was successfully updated.', 'wp-ultimo'), $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-multisite-waas');
|
||||
return __('Account', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -208,7 +208,7 @@ class Account_Admin_Page extends Base_Customer_Facing_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Account', 'wp-multisite-waas');
|
||||
return __('Account', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -219,7 +219,7 @@ class Account_Admin_Page extends Base_Customer_Facing_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Account', 'wp-multisite-waas');
|
||||
return __('Account', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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-multisite-waas');
|
||||
return __('Add New Site', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Add New Site', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Add New Site', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -95,7 +95,7 @@ class Checkout_Admin_Page extends \WP_Ultimo\Admin_Pages\Base_Customer_Facing_Ad
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Checkout', 'wp-multisite-waas');
|
||||
return sprintf(__('Checkout', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Checkout', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -143,7 +143,7 @@ class Checkout_Admin_Page extends \WP_Ultimo\Admin_Pages\Base_Customer_Facing_Ad
|
||||
|
||||
$sections = [
|
||||
'plan' => [
|
||||
'title' => __('Change Membership', 'wp-multisite-waas'),
|
||||
'title' => __('Change Membership', 'wp-ultimo'),
|
||||
'view' => [$this, 'display_checkout_form'],
|
||||
],
|
||||
];
|
||||
|
@ -232,7 +232,7 @@ class My_Sites_Admin_Page extends Base_Customer_Facing_Admin_Page {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('My Sites', 'wp-multisite-waas');
|
||||
return __('My Sites', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -243,7 +243,7 @@ class My_Sites_Admin_Page extends Base_Customer_Facing_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('My Sites', 'wp-multisite-waas');
|
||||
return __('My Sites', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -254,7 +254,7 @@ class My_Sites_Admin_Page extends Base_Customer_Facing_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('My Sites', 'wp-multisite-waas');
|
||||
return __('My Sites', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -103,7 +103,7 @@ class Template_Switching_Admin_Page extends \WP_Ultimo\Admin_Pages\Base_Customer
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Switch Template', 'wp-multisite-waas');
|
||||
return __('Switch Template', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Switch Template', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas'),
|
||||
'updated_message' => __('Template switched successfully!', 'wp-ultimo'),
|
||||
],
|
||||
]
|
||||
);
|
||||
|
@ -83,7 +83,7 @@ class Debug_Admin_Page extends Base_Admin_Page {
|
||||
|
||||
add_meta_box(
|
||||
'wp-ultimo-debug-pages',
|
||||
__('All Registered Pages', 'wp-multisite-waas'),
|
||||
__('All Registered Pages', 'wp-ultimo'),
|
||||
[$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-multisite-waas');
|
||||
return __('Registered Pages', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -137,7 +137,7 @@ class Debug_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('Registered Pages', 'wp-multisite-waas');
|
||||
return __('Registered Pages', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -148,7 +148,7 @@ class Debug_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_submenu_title() {
|
||||
|
||||
return __('Registered Pages', 'wp-multisite-waas');
|
||||
return __('Registered Pages', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -130,7 +130,7 @@ class Register_Endpoint {
|
||||
|
||||
$customer->add_note(
|
||||
[
|
||||
'text' => __('Created via REST API', 'wp-multisite-waas'),
|
||||
'text' => __('Created via REST API', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
__('Products are required.', 'wp-ultimo'),
|
||||
array_merge(
|
||||
(array) $cart->done(),
|
||||
[
|
||||
@ -215,7 +215,7 @@ class Register_Endpoint {
|
||||
|
||||
$membership->add_note(
|
||||
[
|
||||
'text' => __('Created via REST API', 'wp-multisite-waas'),
|
||||
'text' => __('Created via REST API', 'wp-ultimo'),
|
||||
'author_id' => $customer->get_user_id(),
|
||||
]
|
||||
);
|
||||
@ -253,7 +253,7 @@ class Register_Endpoint {
|
||||
|
||||
$payment->add_note(
|
||||
[
|
||||
'text' => __('Created via REST API', 'wp-multisite-waas'),
|
||||
'text' => __('Created via REST API', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'integer',
|
||||
],
|
||||
'customer' => [
|
||||
'description' => __('Customer data. Needs to be present when customer id is not.', 'wp-multisite-waas'),
|
||||
'description' => __('Customer data. Needs to be present when customer id is not.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'integer',
|
||||
],
|
||||
'username' => [
|
||||
'description' => __('The customer username. This is used to create the WordPress user.', 'wp-multisite-waas'),
|
||||
'description' => __('The customer username. This is used to create the WordPress user.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The customer password. This is used to create the WordPress user. Note that no validation is performed here to enforce strength.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'minLength' => 6,
|
||||
],
|
||||
'email' => [
|
||||
'description' => __('The customer email address. This is used to create the WordPress user.', 'wp-multisite-waas'),
|
||||
'description' => __('The customer email address. This is used to create the WordPress user.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'object',
|
||||
'properties' => [
|
||||
'status' => [
|
||||
'description' => __('The membership status.', 'wp-multisite-waas'),
|
||||
'description' => __('The membership status.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The membership expiration date. Must be a valid PHP date format.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'format' => 'date-time',
|
||||
],
|
||||
'date_trial_end' => [
|
||||
'description' => __('The membership trial end date. Must be a valid PHP date format.', 'wp-multisite-waas'),
|
||||
'description' => __('The membership trial end date. Must be a valid PHP date format.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'format' => 'date-time',
|
||||
],
|
||||
'date_activated' => [
|
||||
'description' => __('The membership activation date. Must be a valid PHP date format.', 'wp-multisite-waas'),
|
||||
'description' => __('The membership activation date. Must be a valid PHP date format.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'format' => 'date-time',
|
||||
],
|
||||
'date_renewed' => [
|
||||
'description' => __('The membership last renewed date. Must be a valid PHP date format.', 'wp-multisite-waas'),
|
||||
'description' => __('The membership last renewed date. Must be a valid PHP date format.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'format' => 'date-time',
|
||||
],
|
||||
'date_cancellation' => [
|
||||
'description' => __('The membership cancellation date. Must be a valid PHP date format.', 'wp-multisite-waas'),
|
||||
'description' => __('The membership cancellation date. Must be a valid PHP date format.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'object',
|
||||
'properties' => [
|
||||
'status' => [
|
||||
'description' => __('The payment status.', 'wp-multisite-waas'),
|
||||
'description' => __('The payment status.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Payment method information. Useful when using the REST API to integrate other payment methods.', 'wp-ultimo'),
|
||||
'type' => 'object',
|
||||
'properties' => [
|
||||
'gateway' => [
|
||||
'description' => __('The gateway name. E.g. stripe.', 'wp-multisite-waas'),
|
||||
'description' => __('The gateway name. E.g. stripe.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
],
|
||||
'gateway_customer_id' => [
|
||||
'description' => __('The customer ID on the gateway system.', 'wp-multisite-waas'),
|
||||
'description' => __('The customer ID on the gateway system.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
],
|
||||
'gateway_subscription_id' => [
|
||||
'description' => __('The subscription ID on the gateway system.', 'wp-multisite-waas'),
|
||||
'description' => __('The subscription ID on the gateway system.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
],
|
||||
'gateway_payment_id' => [
|
||||
'description' => __('The payment ID on the gateway system.', 'wp-multisite-waas'),
|
||||
'description' => __('The payment ID on the gateway system.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The site subdomain or subdirectory (depending on your Multisite install). This would be "test" in "test.your-network.com".', 'wp-ultimo'),
|
||||
'minLength' => 4,
|
||||
'required' => true,
|
||||
],
|
||||
'site_title' => [
|
||||
'type' => 'string',
|
||||
'description' => __('The site title. E.g. My Amazing Site', 'wp-multisite-waas'),
|
||||
'description' => __('The site title. E.g. My Amazing Site', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'integer',
|
||||
],
|
||||
'site_meta' => [
|
||||
'description' => __('An associative array of key values to be saved as site_meta.', 'wp-multisite-waas'),
|
||||
'description' => __('An associative array of key values to be saved as site_meta.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('An associative array of key values to be saved as site_options. Useful for changing plugin settings and other site configurations.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The products to be added to this membership. Takes an array of product ids or slugs.', 'wp-ultimo'),
|
||||
'uniqueItems' => true,
|
||||
'type' => 'array',
|
||||
],
|
||||
'duration' => [
|
||||
'description' => __('The membership duration.', 'wp-multisite-waas'),
|
||||
'description' => __('The membership duration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'duration_unit' => [
|
||||
'description' => __('The membership duration unit.', 'wp-multisite-waas'),
|
||||
'description' => __('The membership duration unit.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'default' => 'month',
|
||||
'enum' => [
|
||||
@ -509,22 +509,22 @@ class Register_Endpoint {
|
||||
],
|
||||
],
|
||||
'discount_code' => [
|
||||
'description' => __('A discount code. E.g. PROMO10.', 'wp-multisite-waas'),
|
||||
'description' => __('A discount code. E.g. PROMO10.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
],
|
||||
'auto_renew' => [
|
||||
'description' => __('The membership auto-renew status. Useful when integrating with other payment options via this REST API.', 'wp-multisite-waas'),
|
||||
'description' => __('The membership auto-renew status. Useful when integrating with other payment options via this REST API.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The customer country. Used to calculate taxes and check if registration is allowed for that country.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'default' => '',
|
||||
],
|
||||
'currency' => [
|
||||
'description' => __('The currency to be used.', 'wp-multisite-waas'),
|
||||
'description' => __('The currency to be used.', 'wp-ultimo'),
|
||||
'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-multisite-waas'));
|
||||
return new \WP_Error('customer_not_found', __('The customer id sent does not correspond to a valid customer.', 'wp-ultimo'));
|
||||
}
|
||||
} else {
|
||||
$customer = wu_create_customer($p['customer']);
|
||||
|
@ -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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'notice_type' => [
|
||||
'description' => __('Can be info, success, warning or error.', 'wp-multisite-waas'),
|
||||
'description' => __('Can be info, success, warning or error.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -36,57 +36,57 @@ return [
|
||||
],
|
||||
],
|
||||
'name' => [
|
||||
'description' => __('This broadcast name, which is used as broadcast title as well.', 'wp-multisite-waas'),
|
||||
'description' => __('This broadcast name, which is used as broadcast title as well.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'type' => [
|
||||
'description' => __('The type being set.', 'wp-multisite-waas'),
|
||||
'description' => __('The type being set.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'status' => [
|
||||
'description' => __('The status being set.', 'wp-multisite-waas'),
|
||||
'description' => __('The status being set.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'author_id' => [
|
||||
'description' => __('The author ID.', 'wp-multisite-waas'),
|
||||
'description' => __('The author ID.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'title' => [
|
||||
'description' => __('Post title.', 'wp-multisite-waas'),
|
||||
'description' => __('Post title.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'content' => [
|
||||
'description' => __('Post content.', 'wp-multisite-waas'),
|
||||
'description' => __('Post content.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'excerpt' => [
|
||||
'description' => __('Post excerpt.', 'wp-multisite-waas'),
|
||||
'description' => __('Post excerpt.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Post creation date.', 'wp-multisite-waas'),
|
||||
'description' => __('Post creation date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Post last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Post last modification date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'slug' => [
|
||||
'description' => __('The slug.', 'wp-multisite-waas'),
|
||||
'description' => __('The slug.', 'wp-ultimo'),
|
||||
'type' => 'mixed',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'notice_type' => [
|
||||
'description' => __('Can be info, success, warning or error.', 'wp-multisite-waas'),
|
||||
'description' => __('Can be info, success, warning or error.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -36,57 +36,57 @@ return [
|
||||
],
|
||||
],
|
||||
'name' => [
|
||||
'description' => __('This broadcast name, which is used as broadcast title as well.', 'wp-multisite-waas'),
|
||||
'description' => __('This broadcast name, which is used as broadcast title as well.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'type' => [
|
||||
'description' => __('The type being set.', 'wp-multisite-waas'),
|
||||
'description' => __('The type being set.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'status' => [
|
||||
'description' => __('The status being set.', 'wp-multisite-waas'),
|
||||
'description' => __('The status being set.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'author_id' => [
|
||||
'description' => __('The author ID.', 'wp-multisite-waas'),
|
||||
'description' => __('The author ID.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'title' => [
|
||||
'description' => __('Post title.', 'wp-multisite-waas'),
|
||||
'description' => __('Post title.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'content' => [
|
||||
'description' => __('Post content.', 'wp-multisite-waas'),
|
||||
'description' => __('Post content.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'excerpt' => [
|
||||
'description' => __('Post excerpt.', 'wp-multisite-waas'),
|
||||
'description' => __('Post excerpt.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Post creation date.', 'wp-multisite-waas'),
|
||||
'description' => __('Post creation date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Post last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Post last modification date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'slug' => [
|
||||
'description' => __('The slug.', 'wp-multisite-waas'),
|
||||
'description' => __('The slug.', 'wp-ultimo'),
|
||||
'type' => 'mixed',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'name' => [
|
||||
'description' => __('Your checkout form name, which is used as checkout form title as well.', 'wp-multisite-waas'),
|
||||
'description' => __('Your checkout form name, which is used as checkout form title as well.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'active' => [
|
||||
'description' => __('Set this checkout form as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'),
|
||||
'description' => __('Set this checkout form as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => true,
|
||||
],
|
||||
'custom_css' => [
|
||||
'description' => __('Custom CSS code for the checkout form.', 'wp-multisite-waas'),
|
||||
'description' => __('Custom CSS code for the checkout form.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'settings' => [
|
||||
'description' => __('The checkout form settings and configurations.', 'wp-multisite-waas'),
|
||||
'description' => __('The checkout form settings and configurations.', 'wp-ultimo'),
|
||||
'type' => 'object',
|
||||
'required' => false,
|
||||
],
|
||||
'allowed_countries' => [
|
||||
'description' => __('The allowed countries that can access this checkout.', 'wp-multisite-waas'),
|
||||
'description' => __('The allowed countries that can access this checkout.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'thank_you_page_id' => [
|
||||
'description' => __('The thank you page ID. This page is shown after a successful purchase.', 'wp-multisite-waas'),
|
||||
'description' => __('The thank you page ID. This page is shown after a successful purchase.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'conversion_snippets' => [
|
||||
'description' => __('Snippets to run on thank you page.', 'wp-multisite-waas'),
|
||||
'description' => __('Snippets to run on thank you page.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'template' => [
|
||||
'description' => __("Template mode. Can be either 'blank', 'single-step' or 'multi-step'.", 'wp-multisite-waas'),
|
||||
'description' => __("Template mode. Can be either 'blank', 'single-step' or 'multi-step'.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -70,22 +70,22 @@ return [
|
||||
],
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Model creation date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model creation date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'name' => [
|
||||
'description' => __('Your checkout form name, which is used as checkout form title as well.', 'wp-multisite-waas'),
|
||||
'description' => __('Your checkout form name, which is used as checkout form title as well.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'active' => [
|
||||
'description' => __('Set this checkout form as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'),
|
||||
'description' => __('Set this checkout form as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'custom_css' => [
|
||||
'description' => __('Custom CSS code for the checkout form.', 'wp-multisite-waas'),
|
||||
'description' => __('Custom CSS code for the checkout form.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'settings' => [
|
||||
'description' => __('The checkout form settings and configurations.', 'wp-multisite-waas'),
|
||||
'description' => __('The checkout form settings and configurations.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'allowed_countries' => [
|
||||
'description' => __('The allowed countries that can access this checkout.', 'wp-multisite-waas'),
|
||||
'description' => __('The allowed countries that can access this checkout.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'thank_you_page_id' => [
|
||||
'description' => __('The thank you page ID. This page is shown after a successful purchase.', 'wp-multisite-waas'),
|
||||
'description' => __('The thank you page ID. This page is shown after a successful purchase.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'conversion_snippets' => [
|
||||
'description' => __('Snippets to run on thank you page.', 'wp-multisite-waas'),
|
||||
'description' => __('Snippets to run on thank you page.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'template' => [
|
||||
'description' => __("Template mode. Can be either 'blank', 'single-step' or 'multi-step'.", 'wp-multisite-waas'),
|
||||
'description' => __("Template mode. Can be either 'blank', 'single-step' or 'multi-step'.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -70,22 +70,22 @@ return [
|
||||
],
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Model creation date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model creation date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -20,17 +20,17 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
return [
|
||||
'user_id' => [
|
||||
'description' => __('The WordPress user ID attached to this customer.', 'wp-multisite-waas'),
|
||||
'description' => __('The WordPress user ID attached to this customer.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
],
|
||||
'date_registered' => [
|
||||
'description' => __('Date when the customer was created.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when the customer was created.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'email_verification' => [
|
||||
'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'wp-multisite-waas'),
|
||||
'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
'enum' => [
|
||||
@ -40,32 +40,32 @@ return [
|
||||
],
|
||||
],
|
||||
'last_login' => [
|
||||
'description' => __('Date this customer last logged in.', 'wp-multisite-waas'),
|
||||
'description' => __('Date this customer last logged in.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'has_trialed' => [
|
||||
'description' => __('Whether or not the customer has trialed before.', 'wp-multisite-waas'),
|
||||
'description' => __('Whether or not the customer has trialed before.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'vip' => [
|
||||
'description' => __('If this customer is a VIP customer or not.', 'wp-multisite-waas'),
|
||||
'description' => __('If this customer is a VIP customer or not.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'ips' => [
|
||||
'description' => __('List of IP addresses used by this customer.', 'wp-multisite-waas'),
|
||||
'description' => __('List of IP addresses used by this customer.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'extra_information' => [
|
||||
'description' => __('Any extra information related to this customer.', 'wp-multisite-waas'),
|
||||
'description' => __('Any extra information related to this customer.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'type' => [
|
||||
'description' => __("The customer type. Can be 'customer'.", 'wp-multisite-waas'),
|
||||
'description' => __("The customer type. Can be 'customer'.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
'enum' => [
|
||||
@ -73,27 +73,27 @@ return [
|
||||
],
|
||||
],
|
||||
'signup_form' => [
|
||||
'description' => __('The form used to signup.', 'wp-multisite-waas'),
|
||||
'description' => __('The form used to signup.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Model creation date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model creation date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -20,17 +20,17 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
return [
|
||||
'user_id' => [
|
||||
'description' => __('The WordPress user ID attached to this customer.', 'wp-multisite-waas'),
|
||||
'description' => __('The WordPress user ID attached to this customer.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'date_registered' => [
|
||||
'description' => __('Date when the customer was created.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when the customer was created.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'email_verification' => [
|
||||
'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'wp-multisite-waas'),
|
||||
'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -40,32 +40,32 @@ return [
|
||||
],
|
||||
],
|
||||
'last_login' => [
|
||||
'description' => __('Date this customer last logged in.', 'wp-multisite-waas'),
|
||||
'description' => __('Date this customer last logged in.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'has_trialed' => [
|
||||
'description' => __('Whether or not the customer has trialed before.', 'wp-multisite-waas'),
|
||||
'description' => __('Whether or not the customer has trialed before.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'vip' => [
|
||||
'description' => __('If this customer is a VIP customer or not.', 'wp-multisite-waas'),
|
||||
'description' => __('If this customer is a VIP customer or not.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'ips' => [
|
||||
'description' => __('List of IP addresses used by this customer.', 'wp-multisite-waas'),
|
||||
'description' => __('List of IP addresses used by this customer.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'extra_information' => [
|
||||
'description' => __('Any extra information related to this customer.', 'wp-multisite-waas'),
|
||||
'description' => __('Any extra information related to this customer.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'type' => [
|
||||
'description' => __("The customer type. Can be 'customer'.", 'wp-multisite-waas'),
|
||||
'description' => __("The customer type. Can be 'customer'.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -73,27 +73,27 @@ return [
|
||||
],
|
||||
],
|
||||
'signup_form' => [
|
||||
'description' => __('The form used to signup.', 'wp-multisite-waas'),
|
||||
'description' => __('The form used to signup.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Model creation date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model creation date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -20,37 +20,37 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
return [
|
||||
'name' => [
|
||||
'description' => __('Your discount code name, which is used as discount code title as well.', 'wp-multisite-waas'),
|
||||
'description' => __('Your discount code name, which is used as discount code title as well.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'code' => [
|
||||
'description' => __('A unique identification to redeem the discount code. E.g. PROMO10.', 'wp-multisite-waas'),
|
||||
'description' => __('A unique identification to redeem the discount code. E.g. PROMO10.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'description' => [
|
||||
'description' => __('A description for the discount code, usually a short text.', 'wp-multisite-waas'),
|
||||
'description' => __('A description for the discount code, usually a short text.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'uses' => [
|
||||
'description' => __('Number of times this discount was applied.', 'wp-multisite-waas'),
|
||||
'description' => __('Number of times this discount was applied.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'max_uses' => [
|
||||
'description' => __('The number of times this discount can be used before becoming inactive.', 'wp-multisite-waas'),
|
||||
'description' => __('The number of times this discount can be used before becoming inactive.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'apply_to_renewals' => [
|
||||
'description' => __('Wether or not we should apply the discount to membership renewals.', 'wp-multisite-waas'),
|
||||
'description' => __('Wether or not we should apply the discount to membership renewals.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __("The type of the discount code. Can be 'percentage' (e.g. 10%% OFF), 'absolute' (e.g. $10 OFF).", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -59,12 +59,12 @@ return [
|
||||
],
|
||||
],
|
||||
'value' => [
|
||||
'description' => __('Amount discounted in cents.', 'wp-multisite-waas'),
|
||||
'description' => __('Amount discounted in cents.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
],
|
||||
'setup_fee_type' => [
|
||||
'description' => __('Type of the discount for the setup fee value. Can be a percentage or absolute.', 'wp-multisite-waas'),
|
||||
'description' => __('Type of the discount for the setup fee value. Can be a percentage or absolute.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -73,52 +73,52 @@ return [
|
||||
],
|
||||
],
|
||||
'setup_fee_value' => [
|
||||
'description' => __('Amount discounted for setup fees in cents.', 'wp-multisite-waas'),
|
||||
'description' => __('Amount discounted for setup fees in cents.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'active' => [
|
||||
'description' => __('Set this discount code as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'),
|
||||
'description' => __('Set this discount code as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'date_start' => [
|
||||
'description' => __('Start date for the coupon code to be considered valid.', 'wp-multisite-waas'),
|
||||
'description' => __('Start date for the coupon code to be considered valid.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_expiration' => [
|
||||
'description' => __('Expiration date for the coupon code.', 'wp-multisite-waas'),
|
||||
'description' => __('Expiration date for the coupon code.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Date when this discount code was created.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when this discount code was created.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The list of products that allows this discount code to be used. If empty, all products will accept this code.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -20,37 +20,37 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
return [
|
||||
'name' => [
|
||||
'description' => __('Your discount code name, which is used as discount code title as well.', 'wp-multisite-waas'),
|
||||
'description' => __('Your discount code name, which is used as discount code title as well.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'code' => [
|
||||
'description' => __('A unique identification to redeem the discount code. E.g. PROMO10.', 'wp-multisite-waas'),
|
||||
'description' => __('A unique identification to redeem the discount code. E.g. PROMO10.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'description' => [
|
||||
'description' => __('A description for the discount code, usually a short text.', 'wp-multisite-waas'),
|
||||
'description' => __('A description for the discount code, usually a short text.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'uses' => [
|
||||
'description' => __('Number of times this discount was applied.', 'wp-multisite-waas'),
|
||||
'description' => __('Number of times this discount was applied.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'max_uses' => [
|
||||
'description' => __('The number of times this discount can be used before becoming inactive.', 'wp-multisite-waas'),
|
||||
'description' => __('The number of times this discount can be used before becoming inactive.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'apply_to_renewals' => [
|
||||
'description' => __('Wether or not we should apply the discount to membership renewals.', 'wp-multisite-waas'),
|
||||
'description' => __('Wether or not we should apply the discount to membership renewals.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __("The type of the discount code. Can be 'percentage' (e.g. 10%% OFF), 'absolute' (e.g. $10 OFF).", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -59,12 +59,12 @@ return [
|
||||
],
|
||||
],
|
||||
'value' => [
|
||||
'description' => __('Amount discounted in cents.', 'wp-multisite-waas'),
|
||||
'description' => __('Amount discounted in cents.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'setup_fee_type' => [
|
||||
'description' => __('Type of the discount for the setup fee value. Can be a percentage or absolute.', 'wp-multisite-waas'),
|
||||
'description' => __('Type of the discount for the setup fee value. Can be a percentage or absolute.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -73,52 +73,52 @@ return [
|
||||
],
|
||||
],
|
||||
'setup_fee_value' => [
|
||||
'description' => __('Amount discounted for setup fees in cents.', 'wp-multisite-waas'),
|
||||
'description' => __('Amount discounted for setup fees in cents.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'active' => [
|
||||
'description' => __('Set this discount code as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'),
|
||||
'description' => __('Set this discount code as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'date_start' => [
|
||||
'description' => __('Start date for the coupon code to be considered valid.', 'wp-multisite-waas'),
|
||||
'description' => __('Start date for the coupon code to be considered valid.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_expiration' => [
|
||||
'description' => __('Expiration date for the coupon code.', 'wp-multisite-waas'),
|
||||
'description' => __('Expiration date for the coupon code.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Date when this discount code was created.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when this discount code was created.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The list of products that allows this discount code to be used. If empty, all products will accept this code.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'blog_id' => [
|
||||
'description' => __('The blog ID attached to this domain.', 'wp-multisite-waas'),
|
||||
'description' => __('The blog ID attached to this domain.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
],
|
||||
'active' => [
|
||||
'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'),
|
||||
'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'secure' => [
|
||||
'description' => __('If this domain has some SSL security or not.', 'wp-multisite-waas'),
|
||||
'description' => __('If this domain has some SSL security or not.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'blog_id' => [
|
||||
'description' => __('The blog ID attached to this domain.', 'wp-multisite-waas'),
|
||||
'description' => __('The blog ID attached to this domain.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'active' => [
|
||||
'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'),
|
||||
'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'secure' => [
|
||||
'description' => __('If this domain has some SSL security or not.', 'wp-multisite-waas'),
|
||||
'description' => __('If this domain has some SSL security or not.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -20,7 +20,7 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
return [
|
||||
'style' => [
|
||||
'description' => __("The email style. Can be 'html' or 'plain-text'.", 'wp-multisite-waas'),
|
||||
'description' => __("The email style. Can be 'html' or 'plain-text'.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -29,32 +29,32 @@ return [
|
||||
],
|
||||
],
|
||||
'schedule' => [
|
||||
'description' => __('Whether or not this is a scheduled email.', 'wp-multisite-waas'),
|
||||
'description' => __('Whether or not this is a scheduled email.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'type' => [
|
||||
'description' => __('The type being set.', 'wp-multisite-waas'),
|
||||
'description' => __('The type being set.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'event' => [
|
||||
'description' => __('The event that needs to be fired for this email to be sent.', 'wp-multisite-waas'),
|
||||
'description' => __('The event that needs to be fired for this email to be sent.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'send_hours' => [
|
||||
'description' => __('The amount of hours that the email will wait before is sent.', 'wp-multisite-waas'),
|
||||
'description' => __('The amount of hours that the email will wait before is sent.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'send_days' => [
|
||||
'description' => __('The amount of days that the email will wait before is sent.', 'wp-multisite-waas'),
|
||||
'description' => __('The amount of days that the email will wait before is sent.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'schedule_type' => [
|
||||
'description' => __("The type of schedule. Can be 'days' or 'hours'.", 'wp-multisite-waas'),
|
||||
'description' => __("The type of schedule. Can be 'days' or 'hours'.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -63,27 +63,27 @@ return [
|
||||
],
|
||||
],
|
||||
'name' => [
|
||||
'description' => __('The name being set as title.', 'wp-multisite-waas'),
|
||||
'description' => __('The name being set as title.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'custom_sender' => [
|
||||
'description' => __('If has a custom sender.', 'wp-multisite-waas'),
|
||||
'description' => __('If has a custom sender.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'custom_sender_name' => [
|
||||
'description' => __('The name of the custom sender. E.g. From: John Doe.', 'wp-multisite-waas'),
|
||||
'description' => __('The name of the custom sender. E.g. From: John Doe.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'custom_sender_email' => [
|
||||
'description' => __('The email of the custom sender. E.g. From: johndoe@gmail.com.', 'wp-multisite-waas'),
|
||||
'description' => __('The email of the custom sender. E.g. From: johndoe@gmail.com.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __("If we should send this to a customer or to the network admin. Can be 'customer' or 'admin'.", 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Checks if we should send a copy of the email to the admin.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Set this email as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'legacy' => [
|
||||
'description' => __('Whether or not this is a legacy email.', 'wp-multisite-waas'),
|
||||
'description' => __('Whether or not this is a legacy email.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'title' => [
|
||||
'description' => __('Post title.', 'wp-multisite-waas'),
|
||||
'description' => __('Post title.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'content' => [
|
||||
'description' => __('Post content.', 'wp-multisite-waas'),
|
||||
'description' => __('Post content.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'excerpt' => [
|
||||
'description' => __('Post excerpt.', 'wp-multisite-waas'),
|
||||
'description' => __('Post excerpt.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Post creation date.', 'wp-multisite-waas'),
|
||||
'description' => __('Post creation date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Post last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Post last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -20,7 +20,7 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
return [
|
||||
'style' => [
|
||||
'description' => __("The email style. Can be 'html' or 'plain-text'.", 'wp-multisite-waas'),
|
||||
'description' => __("The email style. Can be 'html' or 'plain-text'.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -29,32 +29,32 @@ return [
|
||||
],
|
||||
],
|
||||
'schedule' => [
|
||||
'description' => __('Whether or not this is a scheduled email.', 'wp-multisite-waas'),
|
||||
'description' => __('Whether or not this is a scheduled email.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'type' => [
|
||||
'description' => __('The type being set.', 'wp-multisite-waas'),
|
||||
'description' => __('The type being set.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'event' => [
|
||||
'description' => __('The event that needs to be fired for this email to be sent.', 'wp-multisite-waas'),
|
||||
'description' => __('The event that needs to be fired for this email to be sent.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'send_hours' => [
|
||||
'description' => __('The amount of hours that the email will wait before is sent.', 'wp-multisite-waas'),
|
||||
'description' => __('The amount of hours that the email will wait before is sent.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'send_days' => [
|
||||
'description' => __('The amount of days that the email will wait before is sent.', 'wp-multisite-waas'),
|
||||
'description' => __('The amount of days that the email will wait before is sent.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'schedule_type' => [
|
||||
'description' => __("The type of schedule. Can be 'days' or 'hours'.", 'wp-multisite-waas'),
|
||||
'description' => __("The type of schedule. Can be 'days' or 'hours'.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -63,27 +63,27 @@ return [
|
||||
],
|
||||
],
|
||||
'name' => [
|
||||
'description' => __('The name being set as title.', 'wp-multisite-waas'),
|
||||
'description' => __('The name being set as title.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'custom_sender' => [
|
||||
'description' => __('If has a custom sender.', 'wp-multisite-waas'),
|
||||
'description' => __('If has a custom sender.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'custom_sender_name' => [
|
||||
'description' => __('The name of the custom sender. E.g. From: John Doe.', 'wp-multisite-waas'),
|
||||
'description' => __('The name of the custom sender. E.g. From: John Doe.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'custom_sender_email' => [
|
||||
'description' => __('The email of the custom sender. E.g. From: johndoe@gmail.com.', 'wp-multisite-waas'),
|
||||
'description' => __('The email of the custom sender. E.g. From: johndoe@gmail.com.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __("If we should send this to a customer or to the network admin. Can be 'customer' or 'admin'.", 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Checks if we should send a copy of the email to the admin.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Set this email as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'legacy' => [
|
||||
'description' => __('Whether or not this is a legacy email.', 'wp-multisite-waas'),
|
||||
'description' => __('Whether or not this is a legacy email.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'title' => [
|
||||
'description' => __('Post title.', 'wp-multisite-waas'),
|
||||
'description' => __('Post title.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'content' => [
|
||||
'description' => __('Post content.', 'wp-multisite-waas'),
|
||||
'description' => __('Post content.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'excerpt' => [
|
||||
'description' => __('Post excerpt.', 'wp-multisite-waas'),
|
||||
'description' => __('Post excerpt.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Post creation date.', 'wp-multisite-waas'),
|
||||
'description' => __('Post creation date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Post last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Post last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -20,22 +20,22 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
return [
|
||||
'severity' => [
|
||||
'description' => __('Severity of the problem.', 'wp-multisite-waas'),
|
||||
'description' => __('Severity of the problem.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Date when the event was created.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when the event was created.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'payload' => [
|
||||
'description' => __('Payload of the event.', 'wp-multisite-waas'),
|
||||
'description' => __('Payload of the event.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __("The type of object related to this event. It's usually the model name.", 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'object_id' => [
|
||||
'description' => __('The ID of the related objects.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the related objects.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -20,22 +20,22 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
return [
|
||||
'severity' => [
|
||||
'description' => __('Severity of the problem.', 'wp-multisite-waas'),
|
||||
'description' => __('Severity of the problem.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Date when the event was created.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when the event was created.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'payload' => [
|
||||
'description' => __('Payload of the event.', 'wp-multisite-waas'),
|
||||
'description' => __('Payload of the event.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __("The type of object related to this event. It's usually the model name.", 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'object_id' => [
|
||||
'description' => __('The ID of the related objects.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the related objects.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -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-multisite-waas'),
|
||||
'description' => __('The ID of the customer attached to this membership.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
],
|
||||
'user_id' => [
|
||||
'description' => __('The user ID attached to this membership.', 'wp-multisite-waas'),
|
||||
'description' => __('The user ID attached to this membership.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'plan_id' => [
|
||||
'description' => __('The plan ID associated with the membership.', 'wp-multisite-waas'),
|
||||
'description' => __('The plan ID associated with the membership.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
],
|
||||
'addon_products' => [
|
||||
'description' => __('Additional products related to this membership. Services, Packages or other types of products.', 'wp-multisite-waas'),
|
||||
'description' => __('Additional products related to this membership. Services, Packages or other types of products.', 'wp-ultimo'),
|
||||
'type' => 'mixed',
|
||||
'required' => false,
|
||||
],
|
||||
'currency' => [
|
||||
'description' => __("The currency that this membership. It's a 3-letter code. E.g. 'USD'.", 'wp-multisite-waas'),
|
||||
'description' => __("The currency that this membership. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The interval period between a charge. Only the interval amount, the unit will be defined in another property.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'duration_unit' => [
|
||||
'description' => __("The duration amount type. Can be 'day', 'week', 'month' or 'year'.", 'wp-multisite-waas'),
|
||||
'description' => __("The duration amount type. Can be 'day', 'week', 'month' or 'year'.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -63,118 +63,118 @@ return [
|
||||
],
|
||||
],
|
||||
'amount' => [
|
||||
'description' => __('The product amount.', 'wp-multisite-waas'),
|
||||
'description' => __('The product amount.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'initial_amount' => [
|
||||
'description' => __('The initial amount charged for this membership, including the setup fee.', 'wp-multisite-waas'),
|
||||
'description' => __('The initial amount charged for this membership, including the setup fee.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Date of creation of this membership.', 'wp-multisite-waas'),
|
||||
'description' => __('Date of creation of this membership.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_activated' => [
|
||||
'description' => __('Date when this membership was activated.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when this membership was activated.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_trial_end' => [
|
||||
'description' => __('Date when the trial period ends, if this membership has or had a trial period.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when the trial period ends, if this membership has or had a trial period.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_renewed' => [
|
||||
'description' => __('Date when the membership was cancelled.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when the membership was cancelled.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_cancellation' => [
|
||||
'description' => __('Date when the membership was cancelled.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when the membership was cancelled.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_expiration' => [
|
||||
'description' => __('Date when the membership will expiry.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when the membership will expiry.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_payment_plan_completed' => [
|
||||
'description' => __('Change of the payment completion for the plan value.', 'wp-multisite-waas'),
|
||||
'description' => __('Change of the payment completion for the plan value.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'auto_renew' => [
|
||||
'description' => __('If this membership should auto-renewal.', 'wp-multisite-waas'),
|
||||
'description' => __('If this membership should auto-renewal.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'times_billed' => [
|
||||
'description' => __('Amount of times this membership got billed.', 'wp-multisite-waas'),
|
||||
'description' => __('Amount of times this membership got billed.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'billing_cycles' => [
|
||||
'description' => __('Maximum times we should charge this membership.', 'wp-multisite-waas'),
|
||||
'description' => __('Maximum times we should charge this membership.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __("The membership status. Can be 'pending', 'active', 'on-hold', 'expired', 'cancelled' or other values added by third-party add-ons.", 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the customer on the payment gateway database.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'gateway_subscription_id' => [
|
||||
'description' => __('The ID of the subscription on the payment gateway database.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the subscription on the payment gateway database.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'gateway' => [
|
||||
'description' => __('ID of the gateway being used on this subscription.', 'wp-multisite-waas'),
|
||||
'description' => __('ID of the gateway being used on this subscription.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'signup_method' => [
|
||||
'description' => __('Signup method used to create this membership.', 'wp-multisite-waas'),
|
||||
'description' => __('Signup method used to create this membership.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'upgraded_from' => [
|
||||
'description' => __('Plan that this membership upgraded from.', 'wp-multisite-waas'),
|
||||
'description' => __('Plan that this membership upgraded from.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Date this membership was last modified.', 'wp-multisite-waas'),
|
||||
'description' => __('Date this membership was last modified.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'disabled' => [
|
||||
'description' => __('If this membership is a disabled one.', 'wp-multisite-waas'),
|
||||
'description' => __('If this membership is a disabled one.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -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-multisite-waas'),
|
||||
'description' => __('The ID of the customer attached to this membership.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'user_id' => [
|
||||
'description' => __('The user ID attached to this membership.', 'wp-multisite-waas'),
|
||||
'description' => __('The user ID attached to this membership.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'plan_id' => [
|
||||
'description' => __('The plan ID associated with the membership.', 'wp-multisite-waas'),
|
||||
'description' => __('The plan ID associated with the membership.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'addon_products' => [
|
||||
'description' => __('Additional products related to this membership. Services, Packages or other types of products.', 'wp-multisite-waas'),
|
||||
'description' => __('Additional products related to this membership. Services, Packages or other types of products.', 'wp-ultimo'),
|
||||
'type' => 'mixed',
|
||||
'required' => false,
|
||||
],
|
||||
'currency' => [
|
||||
'description' => __("The currency that this membership. It's a 3-letter code. E.g. 'USD'.", 'wp-multisite-waas'),
|
||||
'description' => __("The currency that this membership. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The interval period between a charge. Only the interval amount, the unit will be defined in another property.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'duration_unit' => [
|
||||
'description' => __("The duration amount type. Can be 'day', 'week', 'month' or 'year'.", 'wp-multisite-waas'),
|
||||
'description' => __("The duration amount type. Can be 'day', 'week', 'month' or 'year'.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -63,118 +63,118 @@ return [
|
||||
],
|
||||
],
|
||||
'amount' => [
|
||||
'description' => __('The product amount.', 'wp-multisite-waas'),
|
||||
'description' => __('The product amount.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'initial_amount' => [
|
||||
'description' => __('The initial amount charged for this membership, including the setup fee.', 'wp-multisite-waas'),
|
||||
'description' => __('The initial amount charged for this membership, including the setup fee.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Date of creation of this membership.', 'wp-multisite-waas'),
|
||||
'description' => __('Date of creation of this membership.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_activated' => [
|
||||
'description' => __('Date when this membership was activated.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when this membership was activated.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_trial_end' => [
|
||||
'description' => __('Date when the trial period ends, if this membership has or had a trial period.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when the trial period ends, if this membership has or had a trial period.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_renewed' => [
|
||||
'description' => __('Date when the membership was cancelled.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when the membership was cancelled.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_cancellation' => [
|
||||
'description' => __('Date when the membership was cancelled.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when the membership was cancelled.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_expiration' => [
|
||||
'description' => __('Date when the membership will expiry.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when the membership will expiry.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_payment_plan_completed' => [
|
||||
'description' => __('Change of the payment completion for the plan value.', 'wp-multisite-waas'),
|
||||
'description' => __('Change of the payment completion for the plan value.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'auto_renew' => [
|
||||
'description' => __('If this membership should auto-renewal.', 'wp-multisite-waas'),
|
||||
'description' => __('If this membership should auto-renewal.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'times_billed' => [
|
||||
'description' => __('Amount of times this membership got billed.', 'wp-multisite-waas'),
|
||||
'description' => __('Amount of times this membership got billed.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'billing_cycles' => [
|
||||
'description' => __('Maximum times we should charge this membership.', 'wp-multisite-waas'),
|
||||
'description' => __('Maximum times we should charge this membership.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __("The membership status. Can be 'pending', 'active', 'on-hold', 'expired', 'cancelled' or other values added by third-party add-ons.", 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the customer on the payment gateway database.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'gateway_subscription_id' => [
|
||||
'description' => __('The ID of the subscription on the payment gateway database.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the subscription on the payment gateway database.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'gateway' => [
|
||||
'description' => __('ID of the gateway being used on this subscription.', 'wp-multisite-waas'),
|
||||
'description' => __('ID of the gateway being used on this subscription.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'signup_method' => [
|
||||
'description' => __('Signup method used to create this membership.', 'wp-multisite-waas'),
|
||||
'description' => __('Signup method used to create this membership.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'upgraded_from' => [
|
||||
'description' => __('Plan that this membership upgraded from.', 'wp-multisite-waas'),
|
||||
'description' => __('Plan that this membership upgraded from.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Date this membership was last modified.', 'wp-multisite-waas'),
|
||||
'description' => __('Date this membership was last modified.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'disabled' => [
|
||||
'description' => __('If this membership is a disabled one.', 'wp-multisite-waas'),
|
||||
'description' => __('If this membership is a disabled one.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -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-multisite-waas'),
|
||||
'description' => __('The ID of the customer attached to this payment.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
],
|
||||
'membership_id' => [
|
||||
'description' => __('The ID of the membership attached to this payment.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the membership attached to this payment.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
],
|
||||
'parent_id' => [
|
||||
'description' => __('The ID from another payment that this payment is related to.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID from another payment that this payment is related to.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'currency' => [
|
||||
'description' => __("The currency of this payment. It's a 3-letter code. E.g. 'USD'.", 'wp-multisite-waas'),
|
||||
'description' => __("The currency of this payment. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'subtotal' => [
|
||||
'description' => __('Value before taxes, discounts, fees and other changes.', 'wp-multisite-waas'),
|
||||
'description' => __('Value before taxes, discounts, fees and other changes.', 'wp-ultimo'),
|
||||
'type' => 'number',
|
||||
'required' => true,
|
||||
],
|
||||
'refund_total' => [
|
||||
'description' => __('Total amount refunded.', 'wp-multisite-waas'),
|
||||
'description' => __('Total amount refunded.', 'wp-ultimo'),
|
||||
'type' => 'number',
|
||||
'required' => false,
|
||||
],
|
||||
'tax_total' => [
|
||||
'description' => __('The amount, in currency, of the tax.', 'wp-multisite-waas'),
|
||||
'description' => __('The amount, in currency, of the tax.', 'wp-ultimo'),
|
||||
'type' => 'number',
|
||||
'required' => false,
|
||||
],
|
||||
'discount_code' => [
|
||||
'description' => __('Discount code used.', 'wp-multisite-waas'),
|
||||
'description' => __('Discount code used.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'total' => [
|
||||
'description' => __('This takes into account fees, discounts and credits.', 'wp-multisite-waas'),
|
||||
'description' => __('This takes into account fees, discounts and credits.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
'enum' => Payment_Status::get_allowed_list(),
|
||||
],
|
||||
'gateway' => [
|
||||
'description' => __('ID of the gateway being used on this payment.', 'wp-multisite-waas'),
|
||||
'description' => __('ID of the gateway being used on this payment.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'product_id' => [
|
||||
'description' => __('The ID of the product of this payment.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the product of this payment.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'gateway_payment_id' => [
|
||||
'description' => __('The ID of the payment on the gateway, if it exists.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the payment on the gateway, if it exists.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'discount_total' => [
|
||||
'description' => __('The total value of the discounts applied to this payment.', 'wp-multisite-waas'),
|
||||
'description' => __('The total value of the discounts applied to this payment.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'invoice_number' => [
|
||||
'description' => __('Sequential invoice number assigned to this payment.', 'wp-multisite-waas'),
|
||||
'description' => __('Sequential invoice number assigned to this payment.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'cancel_membership_on_refund' => [
|
||||
'description' => __('Holds if we need to cancel the membership on refund.', 'wp-multisite-waas'),
|
||||
'description' => __('Holds if we need to cancel the membership on refund.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Model creation date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model creation date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -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-multisite-waas'),
|
||||
'description' => __('The ID of the customer attached to this payment.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'membership_id' => [
|
||||
'description' => __('The ID of the membership attached to this payment.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the membership attached to this payment.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'parent_id' => [
|
||||
'description' => __('The ID from another payment that this payment is related to.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID from another payment that this payment is related to.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'currency' => [
|
||||
'description' => __("The currency of this payment. It's a 3-letter code. E.g. 'USD'.", 'wp-multisite-waas'),
|
||||
'description' => __("The currency of this payment. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'subtotal' => [
|
||||
'description' => __('Value before taxes, discounts, fees and other changes.', 'wp-multisite-waas'),
|
||||
'description' => __('Value before taxes, discounts, fees and other changes.', 'wp-ultimo'),
|
||||
'type' => 'number',
|
||||
'required' => false,
|
||||
],
|
||||
'refund_total' => [
|
||||
'description' => __('Total amount refunded.', 'wp-multisite-waas'),
|
||||
'description' => __('Total amount refunded.', 'wp-ultimo'),
|
||||
'type' => 'number',
|
||||
'required' => false,
|
||||
],
|
||||
'tax_total' => [
|
||||
'description' => __('The amount, in currency, of the tax.', 'wp-multisite-waas'),
|
||||
'description' => __('The amount, in currency, of the tax.', 'wp-ultimo'),
|
||||
'type' => 'number',
|
||||
'required' => false,
|
||||
],
|
||||
'discount_code' => [
|
||||
'description' => __('Discount code used.', 'wp-multisite-waas'),
|
||||
'description' => __('Discount code used.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'total' => [
|
||||
'description' => __('This takes into account fees, discounts and credits.', 'wp-multisite-waas'),
|
||||
'description' => __('This takes into account fees, discounts and credits.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => Payment_Status::get_allowed_list(),
|
||||
],
|
||||
'gateway' => [
|
||||
'description' => __('ID of the gateway being used on this payment.', 'wp-multisite-waas'),
|
||||
'description' => __('ID of the gateway being used on this payment.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'product_id' => [
|
||||
'description' => __('The ID of the product of this payment.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the product of this payment.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'gateway_payment_id' => [
|
||||
'description' => __('The ID of the payment on the gateway, if it exists.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the payment on the gateway, if it exists.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'discount_total' => [
|
||||
'description' => __('The total value of the discounts applied to this payment.', 'wp-multisite-waas'),
|
||||
'description' => __('The total value of the discounts applied to this payment.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'invoice_number' => [
|
||||
'description' => __('Sequential invoice number assigned to this payment.', 'wp-multisite-waas'),
|
||||
'description' => __('Sequential invoice number assigned to this payment.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'cancel_membership_on_refund' => [
|
||||
'description' => __('Holds if we need to cancel the membership on refund.', 'wp-multisite-waas'),
|
||||
'description' => __('Holds if we need to cancel the membership on refund.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Model creation date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model creation date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -20,32 +20,32 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
return [
|
||||
'featured_image_id' => [
|
||||
'description' => __('The ID of the feature image of the product.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the feature image of the product.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The product slug. It needs to be unique and preferably make it clear what it is about. Example: my_new_product.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'name' => [
|
||||
'description' => __('Your product name, which is used as product title as well.', 'wp-multisite-waas'),
|
||||
'description' => __('Your product name, which is used as product title as well.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'description' => [
|
||||
'description' => __('A description for the product, usually a short text.', 'wp-multisite-waas'),
|
||||
'description' => __('A description for the product, usually a short text.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'currency' => [
|
||||
'description' => __("The currency that this product accepts. It's a 3-letter code. E.g. 'USD'.", 'wp-multisite-waas'),
|
||||
'description' => __("The currency that this product accepts. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'pricing_type' => [
|
||||
'description' => __("The pricing type can be 'free', 'paid' or 'contact_us'.", 'wp-multisite-waas'),
|
||||
'description' => __("The pricing type can be 'free', 'paid' or 'contact_us'.", 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The duration of the trial period of this product, if the product has one.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'trial_duration_unit' => [
|
||||
'description' => __('The unit of the trial duration amount. Can be day, week, month or year.', 'wp-multisite-waas'),
|
||||
'description' => __('The unit of the trial duration amount. Can be day, week, month or year.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -71,12 +71,12 @@ return [
|
||||
],
|
||||
],
|
||||
'duration' => [
|
||||
'description' => __('Time interval between charges.', 'wp-multisite-waas'),
|
||||
'description' => __('Time interval between charges.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'duration_unit' => [
|
||||
'description' => __('Time interval unit between charges.', 'wp-multisite-waas'),
|
||||
'description' => __('Time interval unit between charges.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -87,22 +87,22 @@ return [
|
||||
],
|
||||
],
|
||||
'amount' => [
|
||||
'description' => __('The value of this product. E.g. 19.99.', 'wp-multisite-waas'),
|
||||
'description' => __('The value of this product. E.g. 19.99.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'setup_fee' => [
|
||||
'description' => __('The setup fee value, if the product has one. E.g. 159.99.', 'wp-multisite-waas'),
|
||||
'description' => __('The setup fee value, if the product has one. E.g. 159.99.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'active' => [
|
||||
'description' => __('Set this product as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'),
|
||||
'description' => __('Set this product as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __("The default product types are 'product', 'service' and 'package'. More types can be add using the product type filter.", 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID from another Product that this product is related to.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'billing_cycles' => [
|
||||
'description' => __('The number of times we should charge this product.', 'wp-multisite-waas'),
|
||||
'description' => __('The number of times we should charge this product.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Date when this was created.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when this was created.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Date when this was last modified.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when this was last modified.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Set this product as a taxable one (true), which means tax rules are applied to, or not taxable (false).', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Category of taxes applied to this product. You need to set this if taxable is set to true.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __("If the product is the 'contact_us' type, it will need a label for the contact us button.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'contact_us_link' => [
|
||||
'description' => __('The url where the contact us button will lead to.', 'wp-multisite-waas'),
|
||||
'description' => __('The url where the contact us button will lead to.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'feature_list' => [
|
||||
'description' => __('A list (array) of features of the product.', 'wp-multisite-waas'),
|
||||
'description' => __('A list (array) of features of the product.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'customer_role' => [
|
||||
'description' => __('The customer role of this product.', 'wp-multisite-waas'),
|
||||
'description' => __('The customer role of this product.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'available_addons' => [
|
||||
'description' => __('The available addons of this product.', 'wp-multisite-waas'),
|
||||
'description' => __('The available addons of this product.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'group' => [
|
||||
'description' => __('The group of this product, if has any.', 'wp-multisite-waas'),
|
||||
'description' => __('The group of this product, if has any.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'legacy_options' => [
|
||||
'description' => __('If the legacy options are enabled.', 'wp-multisite-waas'),
|
||||
'description' => __('If the legacy options are enabled.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'featured_plan' => [
|
||||
'description' => __('Feature list for pricing tables.', 'wp-multisite-waas'),
|
||||
'description' => __('Feature list for pricing tables.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -20,32 +20,32 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
return [
|
||||
'featured_image_id' => [
|
||||
'description' => __('The ID of the feature image of the product.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the feature image of the product.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The product slug. It needs to be unique and preferably make it clear what it is about. Example: my_new_product.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'name' => [
|
||||
'description' => __('Your product name, which is used as product title as well.', 'wp-multisite-waas'),
|
||||
'description' => __('Your product name, which is used as product title as well.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'description' => [
|
||||
'description' => __('A description for the product, usually a short text.', 'wp-multisite-waas'),
|
||||
'description' => __('A description for the product, usually a short text.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'currency' => [
|
||||
'description' => __("The currency that this product accepts. It's a 3-letter code. E.g. 'USD'.", 'wp-multisite-waas'),
|
||||
'description' => __("The currency that this product accepts. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'pricing_type' => [
|
||||
'description' => __("The pricing type can be 'free', 'paid' or 'contact_us'.", 'wp-multisite-waas'),
|
||||
'description' => __("The pricing type can be 'free', 'paid' or 'contact_us'.", 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The duration of the trial period of this product, if the product has one.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'trial_duration_unit' => [
|
||||
'description' => __('The unit of the trial duration amount. Can be day, week, month or year.', 'wp-multisite-waas'),
|
||||
'description' => __('The unit of the trial duration amount. Can be day, week, month or year.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -71,12 +71,12 @@ return [
|
||||
],
|
||||
],
|
||||
'duration' => [
|
||||
'description' => __('Time interval between charges.', 'wp-multisite-waas'),
|
||||
'description' => __('Time interval between charges.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'duration_unit' => [
|
||||
'description' => __('Time interval unit between charges.', 'wp-multisite-waas'),
|
||||
'description' => __('Time interval unit between charges.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -87,22 +87,22 @@ return [
|
||||
],
|
||||
],
|
||||
'amount' => [
|
||||
'description' => __('The value of this product. E.g. 19.99.', 'wp-multisite-waas'),
|
||||
'description' => __('The value of this product. E.g. 19.99.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'setup_fee' => [
|
||||
'description' => __('The setup fee value, if the product has one. E.g. 159.99.', 'wp-multisite-waas'),
|
||||
'description' => __('The setup fee value, if the product has one. E.g. 159.99.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'active' => [
|
||||
'description' => __('Set this product as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'),
|
||||
'description' => __('Set this product as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __("The default product types are 'product', 'service' and 'package'. More types can be add using the product type filter.", 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID from another Product that this product is related to.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'billing_cycles' => [
|
||||
'description' => __('The number of times we should charge this product.', 'wp-multisite-waas'),
|
||||
'description' => __('The number of times we should charge this product.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Date when this was created.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when this was created.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Date when this was last modified.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when this was last modified.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Set this product as a taxable one (true), which means tax rules are applied to, or not taxable (false).', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Category of taxes applied to this product. You need to set this if taxable is set to true.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __("If the product is the 'contact_us' type, it will need a label for the contact us button.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'contact_us_link' => [
|
||||
'description' => __('The url where the contact us button will lead to.', 'wp-multisite-waas'),
|
||||
'description' => __('The url where the contact us button will lead to.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'feature_list' => [
|
||||
'description' => __('A list (array) of features of the product.', 'wp-multisite-waas'),
|
||||
'description' => __('A list (array) of features of the product.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'customer_role' => [
|
||||
'description' => __('The customer role of this product.', 'wp-multisite-waas'),
|
||||
'description' => __('The customer role of this product.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'available_addons' => [
|
||||
'description' => __('The available addons of this product.', 'wp-multisite-waas'),
|
||||
'description' => __('The available addons of this product.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'group' => [
|
||||
'description' => __('The group of this product, if has any.', 'wp-multisite-waas'),
|
||||
'description' => __('The group of this product, if has any.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'legacy_options' => [
|
||||
'description' => __('If the legacy options are enabled.', 'wp-multisite-waas'),
|
||||
'description' => __('If the legacy options are enabled.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'featured_plan' => [
|
||||
'description' => __('Feature list for pricing tables.', 'wp-multisite-waas'),
|
||||
'description' => __('Feature list for pricing tables.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -20,107 +20,107 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
return [
|
||||
'categories' => [
|
||||
'description' => __('The categories this site belongs to.', 'wp-multisite-waas'),
|
||||
'description' => __('The categories this site belongs to.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'featured_image_id' => [
|
||||
'description' => __('The ID of the feature image of the site.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the feature image of the site.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'site_id' => [
|
||||
'description' => __('The network ID for this site.', 'wp-multisite-waas'),
|
||||
'description' => __('The network ID for this site.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
],
|
||||
'title' => [
|
||||
'description' => __('The site title.', 'wp-multisite-waas'),
|
||||
'description' => __('The site title.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'name' => [
|
||||
'description' => __('The site name.', 'wp-multisite-waas'),
|
||||
'description' => __('The site name.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'description' => [
|
||||
'description' => __('A description for the site, usually a short text.', 'wp-multisite-waas'),
|
||||
'description' => __('A description for the site, usually a short text.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'path' => [
|
||||
'description' => __('Path of the site. Used when in sub-directory mode.', 'wp-multisite-waas'),
|
||||
'description' => __('Path of the site. Used when in sub-directory mode.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'registered' => [
|
||||
'description' => __('Date when the site was registered.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when the site was registered.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'last_updated' => [
|
||||
'description' => __('Date of the last update on this site.', 'wp-multisite-waas'),
|
||||
'description' => __('Date of the last update on this site.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'active' => [
|
||||
'description' => __('Holds the ID of the customer that owns this site.', 'wp-multisite-waas'),
|
||||
'description' => __('Holds the ID of the customer that owns this site.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'public' => [
|
||||
'description' => __('Set true if this site is a public one, false if not.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true if this site is a public one, false if not.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'archived' => [
|
||||
'description' => __('Is this an archived site.', 'wp-multisite-waas'),
|
||||
'description' => __('Is this an archived site.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'mature' => [
|
||||
'description' => __('Is this a site with mature content.', 'wp-multisite-waas'),
|
||||
'description' => __('Is this a site with mature content.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'spam' => [
|
||||
'description' => __('Is this an spam site.', 'wp-multisite-waas'),
|
||||
'description' => __('Is this an spam site.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'deleted' => [
|
||||
'description' => __('Is this site deleted.', 'wp-multisite-waas'),
|
||||
'description' => __('Is this site deleted.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'lang_id' => [
|
||||
'description' => __('The ID of the language being used on this site.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the language being used on this site.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'customer_id' => [
|
||||
'description' => __('The ID of the customer that owns this site.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the customer that owns this site.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
],
|
||||
'membership_id' => [
|
||||
'description' => __('The ID of the membership associated with this site, if any.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the membership associated with this site, if any.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
],
|
||||
'template_id' => [
|
||||
'description' => __('The ID of the templated used to create this site.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the templated used to create this site.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
'enum' => [
|
||||
@ -133,32 +133,32 @@ return [
|
||||
],
|
||||
],
|
||||
'signup_options' => [
|
||||
'description' => __('Keeps signup options for the site.', 'wp-multisite-waas'),
|
||||
'description' => __('Keeps signup options for the site.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'signup_meta' => [
|
||||
'description' => __('Keeps signup meta for the site.', 'wp-multisite-waas'),
|
||||
'description' => __('Keeps signup meta for the site.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Model creation date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model creation date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -20,107 +20,107 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
return [
|
||||
'categories' => [
|
||||
'description' => __('The categories this site belongs to.', 'wp-multisite-waas'),
|
||||
'description' => __('The categories this site belongs to.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'featured_image_id' => [
|
||||
'description' => __('The ID of the feature image of the site.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the feature image of the site.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'site_id' => [
|
||||
'description' => __('The network ID for this site.', 'wp-multisite-waas'),
|
||||
'description' => __('The network ID for this site.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'title' => [
|
||||
'description' => __('The site title.', 'wp-multisite-waas'),
|
||||
'description' => __('The site title.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'name' => [
|
||||
'description' => __('The site name.', 'wp-multisite-waas'),
|
||||
'description' => __('The site name.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'description' => [
|
||||
'description' => __('A description for the site, usually a short text.', 'wp-multisite-waas'),
|
||||
'description' => __('A description for the site, usually a short text.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'path' => [
|
||||
'description' => __('Path of the site. Used when in sub-directory mode.', 'wp-multisite-waas'),
|
||||
'description' => __('Path of the site. Used when in sub-directory mode.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'registered' => [
|
||||
'description' => __('Date when the site was registered.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when the site was registered.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'last_updated' => [
|
||||
'description' => __('Date of the last update on this site.', 'wp-multisite-waas'),
|
||||
'description' => __('Date of the last update on this site.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'active' => [
|
||||
'description' => __('Holds the ID of the customer that owns this site.', 'wp-multisite-waas'),
|
||||
'description' => __('Holds the ID of the customer that owns this site.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'public' => [
|
||||
'description' => __('Set true if this site is a public one, false if not.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true if this site is a public one, false if not.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'archived' => [
|
||||
'description' => __('Is this an archived site.', 'wp-multisite-waas'),
|
||||
'description' => __('Is this an archived site.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'mature' => [
|
||||
'description' => __('Is this a site with mature content.', 'wp-multisite-waas'),
|
||||
'description' => __('Is this a site with mature content.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'spam' => [
|
||||
'description' => __('Is this an spam site.', 'wp-multisite-waas'),
|
||||
'description' => __('Is this an spam site.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'deleted' => [
|
||||
'description' => __('Is this site deleted.', 'wp-multisite-waas'),
|
||||
'description' => __('Is this site deleted.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'lang_id' => [
|
||||
'description' => __('The ID of the language being used on this site.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the language being used on this site.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'customer_id' => [
|
||||
'description' => __('The ID of the customer that owns this site.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the customer that owns this site.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'membership_id' => [
|
||||
'description' => __('The ID of the membership associated with this site, if any.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the membership associated with this site, if any.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'template_id' => [
|
||||
'description' => __('The ID of the templated used to create this site.', 'wp-multisite-waas'),
|
||||
'description' => __('The ID of the templated used to create this site.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'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'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
'enum' => [
|
||||
@ -133,32 +133,32 @@ return [
|
||||
],
|
||||
],
|
||||
'signup_options' => [
|
||||
'description' => __('Keeps signup options for the site.', 'wp-multisite-waas'),
|
||||
'description' => __('Keeps signup options for the site.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'signup_meta' => [
|
||||
'description' => __('Keeps signup meta for the site.', 'wp-multisite-waas'),
|
||||
'description' => __('Keeps signup meta for the site.', 'wp-ultimo'),
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Model creation date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model creation date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -20,62 +20,62 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
return [
|
||||
'name' => [
|
||||
'description' => __('Webhook name, which is used as product title as well.', 'wp-multisite-waas'),
|
||||
'description' => __('Webhook name, which is used as product title as well.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'webhook_url' => [
|
||||
'description' => __('The URL used for the webhook call.', 'wp-multisite-waas'),
|
||||
'description' => __('The URL used for the webhook call.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'event' => [
|
||||
'description' => __('The event that needs to be fired for this webhook to be sent.', 'wp-multisite-waas'),
|
||||
'description' => __('The event that needs to be fired for this webhook to be sent.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'event_count' => [
|
||||
'description' => __('How many times this webhook was sent.', 'wp-multisite-waas'),
|
||||
'description' => __('How many times this webhook was sent.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Set this webhook as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'hidden' => [
|
||||
'description' => __('Is this webhook hidden.', 'wp-multisite-waas'),
|
||||
'description' => __('Is this webhook hidden.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Date when this was created.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when this was created.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'integration' => [
|
||||
'description' => __('The integration that created this webhook.', 'wp-multisite-waas'),
|
||||
'description' => __('The integration that created this webhook.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'date_last_failed' => [
|
||||
'description' => __('The date when this webhook last fail.', 'wp-multisite-waas'),
|
||||
'description' => __('The date when this webhook last fail.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -20,62 +20,62 @@ defined('ABSPATH') || exit;
|
||||
*/
|
||||
return [
|
||||
'name' => [
|
||||
'description' => __('Webhook name, which is used as product title as well.', 'wp-multisite-waas'),
|
||||
'description' => __('Webhook name, which is used as product title as well.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'webhook_url' => [
|
||||
'description' => __('The URL used for the webhook call.', 'wp-multisite-waas'),
|
||||
'description' => __('The URL used for the webhook call.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'event' => [
|
||||
'description' => __('The event that needs to be fired for this webhook to be sent.', 'wp-multisite-waas'),
|
||||
'description' => __('The event that needs to be fired for this webhook to be sent.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'event_count' => [
|
||||
'description' => __('How many times this webhook was sent.', 'wp-multisite-waas'),
|
||||
'description' => __('How many times this webhook was sent.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Set this webhook as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'hidden' => [
|
||||
'description' => __('Is this webhook hidden.', 'wp-multisite-waas'),
|
||||
'description' => __('Is this webhook hidden.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
'date_created' => [
|
||||
'description' => __('Date when this was created.', 'wp-multisite-waas'),
|
||||
'description' => __('Date when this was created.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'integration' => [
|
||||
'description' => __('The integration that created this webhook.', 'wp-multisite-waas'),
|
||||
'description' => __('The integration that created this webhook.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_last_failed' => [
|
||||
'description' => __('The date when this webhook last fail.', 'wp-multisite-waas'),
|
||||
'description' => __('The date when this webhook last fail.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'date_modified' => [
|
||||
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'skip_validation' => [
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
],
|
||||
|
@ -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-multisite-waas'), ['status' => 404]);
|
||||
return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'wp-ultimo'), ['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-multisite-waas'), ['status' => 400]);
|
||||
return new \WP_Error("wu_rest_{$this->slug}", __('Something went wrong (Code 1).', 'wp-ultimo'), ['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-multisite-waas'), ['status' => 404]);
|
||||
return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'wp-ultimo'), ['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-multisite-waas'),
|
||||
__('The %1$s object does not have a %2$s method', 'wp-ultimo'),
|
||||
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-multisite-waas'));
|
||||
return new \WP_Error("wu_rest_{$this->slug}", __('Something went wrong (Code 2).', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
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-multisite-waas'), ['status' => 404]);
|
||||
return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'wp-ultimo'), ['status' => 404]);
|
||||
}
|
||||
|
||||
$result = $item->delete();
|
||||
|
@ -116,7 +116,7 @@ trait WP_CLI {
|
||||
$sub_command_data['synopsis'][] = [
|
||||
'name' => 'id',
|
||||
'type' => 'positional',
|
||||
'description' => __('The id for the resource.', 'wp-multisite-waas'),
|
||||
'description' => __('The id for the resource.', 'wp-ultimo'),
|
||||
'optional' => false,
|
||||
];
|
||||
}
|
||||
@ -131,7 +131,7 @@ trait WP_CLI {
|
||||
|
||||
$field = [
|
||||
'name' => $name,
|
||||
'description' => wu_get_isset($explanation, 'description', __('No description found.', 'wp-multisite-waas')),
|
||||
'description' => wu_get_isset($explanation, 'description', __('No description found.', 'wp-ultimo')),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Output just the id when the operation is successful.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Render response in a particular format.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Limit response to specific fields. Defaults to id, name', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
__('The %1$s object does not have a %2$s method', 'wp-ultimo'),
|
||||
get_class($item),
|
||||
$set_method
|
||||
);
|
||||
|
@ -64,7 +64,7 @@ class Block_Editor_Widget_Manager {
|
||||
*/
|
||||
public function is_block_preview($is_preview) {
|
||||
|
||||
if (defined('REST_REQUEST') && true === REST_REQUEST && ! empty($_GET['context']) && 'edit' === $_GET['context']) { // phpcs:ignore WordPress.Security.NonceVerification
|
||||
if (defined('REST_REQUEST') && true === REST_REQUEST && 'edit' === filter_input(INPUT_GET, 'context', FILTER_SANITIZE_STRING)) {
|
||||
$is_preview = true;
|
||||
}
|
||||
|
||||
|
@ -502,7 +502,7 @@ class Cart implements \JsonSerializable {
|
||||
return $this->cart_descriptor;
|
||||
}
|
||||
|
||||
$desc = wu_get_setting('company_name', get_network_option(null, 'site_name'));
|
||||
$desc = wu_get_setting('company_name', __('Subscription', 'wp-ultimo'));
|
||||
|
||||
$products = [];
|
||||
|
||||
@ -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-multisite-waas'));
|
||||
$this->errors->add('payment_not_found', __('The payment in question was not found.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$this->errors->add('lacks_permission', __('You are not allowed to modify this payment.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$this->errors->add('membership_not_found', __('The membership in question was not found.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$this->errors->add('invalid_status', __('The payment in question has an invalid status.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$this->errors->add('membership_not_found', __('The membership in question was not found.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$this->errors->add('lacks_permission', __('You are not allowed to modify this membership.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
$this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'), // phpcs:ignore
|
||||
_n('%2$s', '%1$s %2$s', $membership->get_duration(), 'wp-ultimo'), // 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-multisite-waas'), $description);
|
||||
$message = sprintf(__('You already have an active %s agreement.', 'wp-ultimo'), $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-multisite-waas'),
|
||||
'description' => __('Swap scheduled to next billing cycle.', 'wp-multisite-waas'),
|
||||
'title' => __('Scheduled Swap Credit', 'wp-ultimo'),
|
||||
'description' => __('Swap scheduled to next billing cycle.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'description' => __('Prorated amount based on the previous membership.', 'wp-multisite-waas'),
|
||||
'title' => __('Credit', 'wp-ultimo'),
|
||||
'description' => __('Prorated amount based on the previous membership.', 'wp-ultimo'),
|
||||
'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-multisite-waas'), $code));
|
||||
$this->errors->add('discount_code', sprintf(__('The code %s do not exist or is no longer valid.', 'wp-ultimo'), $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-multisite-waas'), $line_item_interval, $interval));
|
||||
$this->errors->add('wrong', sprintf(__('Interval %1$s and %2$s do not match.', 'wp-ultimo'), $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-multisite-waas');
|
||||
$message = __('The product you are trying to add does not exist.', 'wp-ultimo');
|
||||
|
||||
$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-multisite-waas');
|
||||
$message = __('The product you are trying to add does not exist for the selected duration.', 'wp-ultimo');
|
||||
|
||||
$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-multisite-waas');
|
||||
$message = __('Theres already a plan in this membership.', 'wp-ultimo');
|
||||
|
||||
$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-multisite-waas'), $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-ultimo'), $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-multisite-waas') : __('Signup Credit for %s', 'wp-multisite-waas');
|
||||
$description = ($product->get_setup_fee() > 0) ? __('Signup Fee for %s', 'wp-ultimo') : __('Signup Credit for %s', 'wp-ultimo');
|
||||
|
||||
$description = sprintf($description, $product->get_name());
|
||||
|
||||
|
@ -108,8 +108,8 @@ class Checkout_Pages {
|
||||
|
||||
<div class="misc-pub-section misc-pub-section-last" style="margin-top: 12px; margin-bottom: 6px; display: flex; align-items: center;">
|
||||
<label for="wu-compat-mode">
|
||||
<span style="display: block; font-weight: 600; margin-bottom: 3px;"><?php _e('WP Multisite WaaS Compatibility Mode', 'wp-multisite-waas'); ?></span>
|
||||
<small style="display: block; line-height: 1.8em;"><?php _e('Toggle this option on if WP Multisite WaaS elements are not loading correctly or at all.', 'wp-multisite-waas'); ?></small>
|
||||
<span style="display: block; font-weight: 600; margin-bottom: 3px;"><?php _e('WP Multisite WaaS Compatibility Mode', 'wp-ultimo'); ?></span>
|
||||
<small style="display: block; line-height: 1.8em;"><?php _e('Toggle this option on if WP Multisite WaaS elements are not loading correctly or at all.', 'wp-ultimo'); ?></small>
|
||||
</label>
|
||||
<div style="margin-left: 6px;">
|
||||
<input id="wu-compat-mode" type="checkbox" value="1" <?php checked($value, true, true); ?> name="_wu_force_elements_loading" />
|
||||
@ -190,7 +190,7 @@ class Checkout_Pages {
|
||||
public function get_error_message($error_code, $username = '') {
|
||||
|
||||
$messages = [
|
||||
'incorrect_password' => sprintf(__('<strong>Error:</strong> The password you entered is incorrect.', 'wp-multisite-waas')),
|
||||
'incorrect_password' => sprintf(__('<strong>Error:</strong> The password you entered is incorrect.', 'wp-ultimo')),
|
||||
// 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 <a href="%s">login page</a>.'), 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-multisite-waas'));
|
||||
return wu_get_isset($messages, $error_code, __('Something went wrong', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -415,9 +415,9 @@ class Checkout_Pages {
|
||||
if ($payment->get_total() == 0 && $customer->get_email_verification() === 'pending') {
|
||||
$html = '<div class="wu-p-4 wu-bg-yellow-200 wu-mb-2 wu-text-yellow-700 wu-rounded">%s</div>';
|
||||
|
||||
$message = __('Your email address is not yet verified. Your site <strong>will only be activated</strong> after your email address is verified. Check your inbox and verify your email address.', 'wp-multisite-waas');
|
||||
$message = __('Your email address is not yet verified. Your site <strong>will only be activated</strong> after your email address is verified. Check your inbox and verify your email address.', 'wp-ultimo');
|
||||
|
||||
$message .= sprintf('<br><a href="#" class="wu-resend-verification-email wu-text-gray-700">%s</a>', __('Resend verification email →', 'wp-multisite-waas'));
|
||||
$message .= sprintf('<br><a href="#" class="wu-resend-verification-email wu-text-gray-700">%s</a>', __('Resend verification email →', 'wp-ultimo'));
|
||||
|
||||
printf($html, $message);
|
||||
}
|
||||
@ -618,11 +618,11 @@ class Checkout_Pages {
|
||||
}
|
||||
|
||||
$labels = [
|
||||
'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'),
|
||||
'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'),
|
||||
];
|
||||
|
||||
$pages = array_map('absint', $this->get_signup_pages());
|
||||
|
@ -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-multisite-waas'));
|
||||
$this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'));
|
||||
return new \WP_Error('no-gateway', __('Payment gateway not registered.', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
$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-multisite-waas'));
|
||||
return new \WP_Error('email_exists', __('The email address you entered is already in use.', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -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-multisite-waas'));
|
||||
return new \WP_Error('address_failure', __('Something wrong happened while attempting to save the customer billing address', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -1549,9 +1549,9 @@ class Checkout {
|
||||
* Localized strings.
|
||||
*/
|
||||
$i18n = [
|
||||
'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'),
|
||||
'loading' => __('Loading...', 'wp-ultimo'),
|
||||
'added_to_order' => __('The item was added!', 'wp-ultimo'),
|
||||
'weak_password' => __('The Password entered is too weak.', 'wp-ultimo'),
|
||||
];
|
||||
|
||||
/*
|
||||
@ -1847,11 +1847,11 @@ class Checkout {
|
||||
// Add some hidden or compound fields ids
|
||||
$validation_aliases = array_merge(
|
||||
[
|
||||
'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'),
|
||||
'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'),
|
||||
],
|
||||
$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-multisite-waas'));
|
||||
$this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'wp-ultimo'));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! $gateway) {
|
||||
$this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'wp-multisite-waas'));
|
||||
$this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'wp-ultimo'));
|
||||
|
||||
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-multisite-waas'), $membership_id);
|
||||
$log_message = sprintf(__('Checkout failed for customer %s: ', 'wp-ultimo'), $membership_id);
|
||||
$log_message .= $e->getMessage();
|
||||
|
||||
wu_log_add('checkout', $log_message, LogLevel::ERROR);
|
||||
|
@ -95,7 +95,7 @@ class Legacy_Checkout {
|
||||
$this->session = wu_get_session('signup');
|
||||
|
||||
$this->templates = [
|
||||
'signup-main.php' => __('WP Multisite WaaS Legacy Signup', 'wp-multisite-waas'),
|
||||
'signup-main.php' => __('WP Multisite WaaS Legacy Signup', 'wp-ultimo'),
|
||||
];
|
||||
|
||||
// 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-multisite-waas')));
|
||||
wp_die(apply_filters('wu_geolocation_error_message', __('Sorry. Our service is not allowed in your country.', 'wp-ultimo')));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -630,8 +630,8 @@ class Legacy_Checkout {
|
||||
|
||||
// Plan Selector
|
||||
$steps['plan'] = [
|
||||
'name' => __('Pick a Plan', 'wp-multisite-waas'),
|
||||
'desc' => __('Which one of our amazing plans you want to get?', 'wp-multisite-waas'),
|
||||
'name' => __('Pick a Plan', 'wp-ultimo'),
|
||||
'desc' => __('Which one of our amazing plans you want to get?', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Select the base template of your new site.', 'wp-multisite-waas'),
|
||||
'name' => __('Template Selection', 'wp-ultimo'),
|
||||
'desc' => __('Select the base template of your new site.', 'wp-ultimo'),
|
||||
'view' => 'step-template',
|
||||
'order' => 20,
|
||||
'handler' => false,
|
||||
@ -657,8 +657,8 @@ class Legacy_Checkout {
|
||||
|
||||
// Domain registering
|
||||
$steps['domain'] = [
|
||||
'name' => __('Site Details', 'wp-multisite-waas'),
|
||||
'desc' => __('Ok, now it\'s time to pick your site url and title!', 'wp-multisite-waas'),
|
||||
'name' => __('Site Details', 'wp-ultimo'),
|
||||
'desc' => __('Ok, now it\'s time to pick your site url and title!', 'wp-ultimo'),
|
||||
'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-multisite-waas')),
|
||||
'name' => apply_filters('wu_signup_site_title_label', __('Site Title', 'wp-ultimo')),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'placeholder' => '',
|
||||
'tooltip' => apply_filters('wu_signup_site_title_tooltip', __('Select the title your site is going to have.', 'wp-multisite-waas')),
|
||||
'tooltip' => apply_filters('wu_signup_site_title_tooltip', __('Select the title your site is going to have.', 'wp-ultimo')),
|
||||
'required' => true,
|
||||
'core' => true,
|
||||
],
|
||||
'blogname' => [
|
||||
'order' => 20,
|
||||
'name' => apply_filters('wu_signup_site_url_label', __('URL', 'wp-multisite-waas')),
|
||||
'name' => apply_filters('wu_signup_site_url_label', __('URL', 'wp-ultimo')),
|
||||
'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-multisite-waas')),
|
||||
'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')),
|
||||
'required' => true,
|
||||
'core' => true,
|
||||
],
|
||||
'url_preview' => [
|
||||
'order' => 30,
|
||||
'name' => __('Site URL Preview', 'wp-multisite-waas'),
|
||||
'name' => __('Site URL Preview', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'name' => __('Continue to the next step', 'wp-ultimo'),
|
||||
'core' => true,
|
||||
],
|
||||
]
|
||||
@ -710,18 +710,18 @@ class Legacy_Checkout {
|
||||
|
||||
'user_name' => [
|
||||
'order' => 10,
|
||||
'name' => apply_filters('wu_signup_username_label', __('Username', 'wp-multisite-waas')),
|
||||
'name' => apply_filters('wu_signup_username_label', __('Username', 'wp-ultimo')),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'placeholder' => '',
|
||||
'tooltip' => apply_filters('wu_signup_username_tooltip', __('Username must be at least 4 characters.', 'wp-multisite-waas')),
|
||||
'tooltip' => apply_filters('wu_signup_username_tooltip', __('Username must be at least 4 characters.', 'wp-ultimo')),
|
||||
'required' => true,
|
||||
'core' => true,
|
||||
],
|
||||
|
||||
'user_email' => [
|
||||
'order' => 20,
|
||||
'name' => apply_filters('wu_signup_email_label', __('Email', 'wp-multisite-waas')),
|
||||
'name' => apply_filters('wu_signup_email_label', __('Email', 'wp-ultimo')),
|
||||
'type' => 'email',
|
||||
'default' => '',
|
||||
'placeholder' => '',
|
||||
@ -732,18 +732,18 @@ class Legacy_Checkout {
|
||||
|
||||
'user_pass' => [
|
||||
'order' => 30,
|
||||
'name' => apply_filters('wu_signup_password_label', __('Password', 'wp-multisite-waas')),
|
||||
'name' => apply_filters('wu_signup_password_label', __('Password', 'wp-ultimo')),
|
||||
'type' => 'password',
|
||||
'default' => '',
|
||||
'placeholder' => '',
|
||||
'tooltip' => apply_filters('wu_signup_password_tooltip', __('Your password should be at least 6 characters long.', 'wp-multisite-waas')),
|
||||
'tooltip' => apply_filters('wu_signup_password_tooltip', __('Your password should be at least 6 characters long.', 'wp-ultimo')),
|
||||
'required' => true,
|
||||
'core' => true,
|
||||
],
|
||||
|
||||
'user_pass_conf' => [
|
||||
'order' => 40,
|
||||
'name' => apply_filters('wu_signup_password_conf_label', __('Confirm Password', 'wp-multisite-waas')),
|
||||
'name' => apply_filters('wu_signup_password_conf_label', __('Confirm Password', 'wp-ultimo')),
|
||||
'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-multisite-waas'),
|
||||
'name' => __('Site URL', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
// 'name' => __('Have a coupon code?', 'wp-ultimo'),
|
||||
// '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-multisite-waas'),
|
||||
// 'name' => __('Coupon Code', 'wp-ultimo'),
|
||||
// 'type' => 'text',
|
||||
// 'default' => '',
|
||||
// 'placeholder' => '',
|
||||
// 'tooltip' => __('The code should be an exact match. This field is case-sensitive.', 'wp-multisite-waas'),
|
||||
// 'tooltip' => __('The code should be an exact match. This field is case-sensitive.', 'wp-ultimo'),
|
||||
// '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 <a href="%s" target="_blank">Terms of Service</a>', 'wp-multisite-waas'), $this->get_terms_url()),
|
||||
// 'name' => sprintf(__('I agree with the <a href="%s" target="_blank">Terms of Service</a>', 'wp-ultimo'), $this->get_terms_url()),
|
||||
// 'core' => true,
|
||||
// );
|
||||
// }
|
||||
@ -822,13 +822,13 @@ class Legacy_Checkout {
|
||||
$account_fields['submit'] = [
|
||||
'order' => 100,
|
||||
'type' => 'submit',
|
||||
'name' => __('Create Account', 'wp-multisite-waas'),
|
||||
'name' => __('Create Account', 'wp-ultimo'),
|
||||
'core' => true,
|
||||
];
|
||||
|
||||
// Account registering
|
||||
$steps['account'] = [
|
||||
'name' => __('Account Details', 'wp-multisite-waas'),
|
||||
'name' => __('Account Details', 'wp-ultimo'),
|
||||
'view' => false,
|
||||
'handler' => [$this, 'account_save'],
|
||||
'order' => 40,
|
||||
@ -867,7 +867,7 @@ class Legacy_Checkout {
|
||||
*/
|
||||
$begin_signup = [
|
||||
'begin-signup' => [
|
||||
'name' => __('Begin Signup Process', 'wp-multisite-waas'),
|
||||
'name' => __('Begin Signup Process', 'wp-ultimo'),
|
||||
'handler' => [$this, 'begin_signup'],
|
||||
'view' => false,
|
||||
'hidden' => true,
|
||||
@ -883,7 +883,7 @@ class Legacy_Checkout {
|
||||
*/
|
||||
$create_account = [
|
||||
'create-account' => [
|
||||
'name' => __('Creating Account', 'wp-multisite-waas'),
|
||||
'name' => __('Creating Account', 'wp-ultimo'),
|
||||
'handler' => [$this, 'create_account'],
|
||||
'view' => false,
|
||||
'hidden' => true,
|
||||
@ -932,7 +932,7 @@ class Legacy_Checkout {
|
||||
|
||||
if ($die && empty($transient)) {
|
||||
|
||||
// wp_die(__('Try again', 'wp-multisite-waas'));
|
||||
// wp_die(__('Try again', 'wp-ultimo'));
|
||||
}
|
||||
|
||||
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-multisite-waas'));
|
||||
$this->results['errors']->add('plan_id', __('You don\'t have any plan selected.', 'wp-ultimo'));
|
||||
} 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-multisite-waas'));
|
||||
$this->results['errors']->add('plan_id', __('The plan you\'ve selected doesn\'t exist.', 'wp-ultimo'));
|
||||
}
|
||||
}
|
||||
|
||||
@ -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-multisite-waas'));
|
||||
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'));
|
||||
}
|
||||
|
||||
// Saves the order
|
||||
|
@ -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-multisite-waas'), // phpcs:ignore
|
||||
_n('%2$s', 'every %1$s %2$s', $this->get_duration(), 'wp-ultimo'), // phpcs:ignore
|
||||
$this->get_duration(),
|
||||
wu_get_translatable_string(($this->get_duration() <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's'))
|
||||
);
|
||||
|
@ -308,7 +308,7 @@ abstract class Base_Signup_Field {
|
||||
$final_field_list[ '_site_notice_field_' . uniqid() ] = [
|
||||
'type' => 'note',
|
||||
'classes' => 'wu--mt-px',
|
||||
'desc' => sprintf('<div class="wu-p-4 wu--m-4 wu-bg-blue-100 wu-text-blue-600 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300 wu-border-solid">%s</div>', __('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')),
|
||||
'desc' => sprintf('<div class="wu-p-4 wu--m-4 wu-bg-blue-100 wu-text-blue-600 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300 wu-border-solid">%s</div>', __('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')),
|
||||
'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('<div class="wu-p-4 wu--m-4 wu-bg-blue-100 wu-text-blue-600 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300 wu-border-solid">%s</div>', __('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')),
|
||||
'desc' => sprintf('<div class="wu-p-4 wu--m-4 wu-bg-blue-100 wu-text-blue-600 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300 wu-border-solid">%s</div>', __('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')),
|
||||
'order' => 98.5,
|
||||
];
|
||||
}
|
||||
@ -440,10 +440,10 @@ abstract class Base_Signup_Field {
|
||||
|
||||
$fields['id'] = [
|
||||
'type' => 'text',
|
||||
'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'),
|
||||
'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'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'value' => '',
|
||||
'html_attr' => [
|
||||
'v-model' => 'name',
|
||||
@ -465,9 +465,9 @@ abstract class Base_Signup_Field {
|
||||
|
||||
$fields['placeholder'] = [
|
||||
'type' => 'text',
|
||||
'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'),
|
||||
'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'),
|
||||
'tooltip' => '',
|
||||
'value' => '',
|
||||
'tab' => 'advanced',
|
||||
@ -478,10 +478,10 @@ abstract class Base_Signup_Field {
|
||||
|
||||
$fields['tooltip'] = [
|
||||
'type' => 'textarea',
|
||||
'title' => __('Field Tooltip', 'wp-multisite-waas'),
|
||||
'placeholder' => __('e.g. This field is great, be sure to fill it.', 'wp-multisite-waas'),
|
||||
'title' => __('Field Tooltip', 'wp-ultimo'),
|
||||
'placeholder' => __('e.g. This field is great, be sure to fill it.', 'wp-ultimo'),
|
||||
// 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-multisite-waas'), wu_tooltip(__('Just like this!', 'wp-multisite-waas'))),
|
||||
'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'))),
|
||||
'tooltip' => '',
|
||||
'value' => '',
|
||||
'tab' => 'advanced',
|
||||
@ -493,8 +493,8 @@ abstract class Base_Signup_Field {
|
||||
|
||||
$fields['default_value'] = [
|
||||
'type' => 'text',
|
||||
'title' => __('Default Value', 'wp-multisite-waas'),
|
||||
'placeholder' => __('e.g. None', 'wp-multisite-waas'),
|
||||
'title' => __('Default Value', 'wp-ultimo'),
|
||||
'placeholder' => __('e.g. None', 'wp-ultimo'),
|
||||
'value' => '',
|
||||
'html_attr' => [
|
||||
'v-model' => 'default_value',
|
||||
@ -503,7 +503,7 @@ abstract class Base_Signup_Field {
|
||||
|
||||
$fields['note'] = [
|
||||
'type' => 'textarea',
|
||||
'title' => __('Content', 'wp-multisite-waas'),
|
||||
'title' => __('Content', 'wp-ultimo'),
|
||||
'placeholder' => '',
|
||||
'tooltip' => '',
|
||||
'value' => '',
|
||||
@ -514,13 +514,13 @@ abstract class Base_Signup_Field {
|
||||
|
||||
$fields['limits'] = [
|
||||
'type' => 'group',
|
||||
'title' => __('Field Length', 'wp-multisite-waas'),
|
||||
'title' => __('Field Length', 'wp-ultimo'),
|
||||
'tooltip' => '',
|
||||
'fields' => [
|
||||
'min' => [
|
||||
'type' => 'number',
|
||||
'value' => '',
|
||||
'placeholder' => __('Min', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Min', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'placeholder' => __('Max', 'wp-ultimo'),
|
||||
'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-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'),
|
||||
'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'),
|
||||
'placeholder' => '',
|
||||
'tooltip' => '',
|
||||
'value' => 'customer_meta',
|
||||
'order' => 99.5,
|
||||
'options' => [
|
||||
'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'),
|
||||
'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'),
|
||||
],
|
||||
'html_attr' => [
|
||||
'v-model' => 'save_as',
|
||||
@ -560,8 +560,8 @@ abstract class Base_Signup_Field {
|
||||
|
||||
$fields['required'] = [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Required', 'wp-multisite-waas'),
|
||||
'desc' => __('Mark this field as required. The checkout will not proceed unless this field is filled.', 'wp-multisite-waas'),
|
||||
'title' => __('Required', 'wp-ultimo'),
|
||||
'desc' => __('Mark this field as required. The checkout will not proceed unless this field is filled.', 'wp-ultimo'),
|
||||
'value' => 0,
|
||||
'order' => 98,
|
||||
'html_attr' => [
|
||||
|
@ -69,7 +69,7 @@ class Signup_Field_Billing_Address extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Address', 'wp-multisite-waas');
|
||||
return __('Address', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Adds billing address fields such as country, zip code.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Adds billing address fields such as country, zip code.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-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'),
|
||||
'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'),
|
||||
'value' => true,
|
||||
],
|
||||
];
|
||||
|
@ -69,7 +69,7 @@ class Signup_Field_Checkbox extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Checkbox', 'wp-multisite-waas');
|
||||
return __('Checkbox', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Adds a checkout box that can be checked by the customer.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Adds a checkout box that can be checked by the customer.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -166,8 +166,8 @@ class Signup_Field_Checkbox extends Base_Signup_Field {
|
||||
return [
|
||||
'default_state' => [
|
||||
'type' => 'toggle',
|
||||
'title' => __('Default State', 'wp-multisite-waas'),
|
||||
'desc' => __('Use the toggle to the set the default state of the checkbox.', 'wp-multisite-waas'),
|
||||
'title' => __('Default State', 'wp-ultimo'),
|
||||
'desc' => __('Use the toggle to the set the default state of the checkbox.', 'wp-ultimo'),
|
||||
'value' => 0,
|
||||
'order' => 12,
|
||||
],
|
||||
|
@ -55,7 +55,7 @@ class Signup_Field_Color extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Color', 'wp-multisite-waas');
|
||||
return __('Color', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -68,7 +68,7 @@ class Signup_Field_Color extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_description() {
|
||||
|
||||
return __('Adds a color picker field.', 'wp-multisite-waas');
|
||||
return __('Adds a color picker field.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -81,7 +81,7 @@ class Signup_Field_Color extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_tooltip() {
|
||||
|
||||
return __('Adds a color picker field.', 'wp-multisite-waas');
|
||||
return __('Adds a color picker field.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -154,8 +154,8 @@ class Signup_Field_Color extends Base_Signup_Field {
|
||||
'default_value' => [
|
||||
'type' => 'color-picker',
|
||||
'order' => 12,
|
||||
'title' => __('Default Color', 'wp-multisite-waas'),
|
||||
'desc' => __('Set the default value for this color field.', 'wp-multisite-waas'),
|
||||
'title' => __('Default Color', 'wp-ultimo'),
|
||||
'desc' => __('Set the default value for this color field.', 'wp-ultimo'),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ class Signup_Field_Discount_Code extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Coupon Code', 'wp-multisite-waas');
|
||||
return __('Coupon Code', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Adds an additional field to apply a discount code.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Adds an additional field to apply a discount code.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas'),
|
||||
'name' => __('Have a coupon code?', 'wp-ultimo'),
|
||||
'class' => 'wu-w-auto',
|
||||
'html_attr' => [
|
||||
'v-model' => 'toggle_discount_code',
|
||||
|
@ -64,7 +64,7 @@ class Signup_Field_Email extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Email', 'wp-multisite-waas');
|
||||
return __('Email', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Adds a email address field. This email address will be used to create the WordPress user.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Adds a email address field. This email address will be used to create the WordPress user.', 'wp-ultimo');
|
||||
}
|
||||
/**
|
||||
* 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-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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Not you?', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
'title' => __('Existing customer?', 'wp-ultimo'),
|
||||
'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 {
|
||||
<?php // phpcs:disable
|
||||
|
||||
// translators: %s is the login URL.
|
||||
printf(__('<a href="%s">Log in</a> to renew or change an existing membership.', 'wp-multisite-waas'), $login_url);
|
||||
printf(__('<a href="%s">Log in</a> to renew or change an existing membership.', 'wp-ultimo'), $login_url);
|
||||
|
||||
?>
|
||||
|
||||
@ -273,7 +273,7 @@ class Signup_Field_Email extends Base_Signup_Field {
|
||||
<?php
|
||||
|
||||
// translators: 1$s is the display name of the user currently logged in.
|
||||
printf(__('Not %1$s? <a href="%2$s">Log in</a> using your account.', 'wp-multisite-waas'), wp_get_current_user()->display_name, $login_url);
|
||||
printf(__('Not %1$s? <a href="%2$s">Log in</a> using your account.', 'wp-ultimo'), wp_get_current_user()->display_name, $login_url);
|
||||
|
||||
?>
|
||||
</p>
|
||||
|
@ -55,7 +55,7 @@ class Signup_Field_Hidden extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Hidden Field', 'wp-multisite-waas');
|
||||
return __('Hidden Field', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
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');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
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');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -150,9 +150,9 @@ class Signup_Field_Hidden extends Base_Signup_Field {
|
||||
'fixed_value' => [
|
||||
'order' => 12,
|
||||
'type' => 'text',
|
||||
'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'),
|
||||
'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'),
|
||||
'tooltip' => '',
|
||||
'value' => '',
|
||||
],
|
||||
|
@ -56,7 +56,7 @@ class Signup_Field_Order_Bump extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Order Bump', 'wp-multisite-waas');
|
||||
return __('Order Bump', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Adds a product offer that the customer can click to add to the current cart.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Adds a product offer that the customer can click to add to the current cart.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -166,9 +166,9 @@ class Signup_Field_Order_Bump extends Base_Signup_Field {
|
||||
$editor_fields = [
|
||||
'product' => [
|
||||
'type' => 'model',
|
||||
'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'),
|
||||
'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'),
|
||||
'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-multisite-waas'),
|
||||
'desc' => __('Toggle to display the product description as well, if one is available.', 'wp-multisite-waas'),
|
||||
'title' => __('Display Product Description', 'wp-ultimo'),
|
||||
'desc' => __('Toggle to display the product description as well, if one is available.', 'wp-ultimo'),
|
||||
'value' => 0,
|
||||
],
|
||||
'display_product_image' => [
|
||||
'order' => 14,
|
||||
'type' => 'toggle',
|
||||
'title' => __('Display Product Image', 'wp-multisite-waas'),
|
||||
'desc' => __('Toggle to display the product image as well, if one is available.', 'wp-multisite-waas'),
|
||||
'title' => __('Display Product Image', 'wp-ultimo'),
|
||||
'desc' => __('Toggle to display the product image as well, if one is available.', 'wp-ultimo'),
|
||||
'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-multisite-waas'),
|
||||
// 'placeholder' => __('Select your Layout', 'wp-multisite-waas'),
|
||||
// 'title' => __('Layout', 'wp-ultimo'),
|
||||
// 'placeholder' => __('Select your Layout', 'wp-ultimo'),
|
||||
// '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('<div class="wu-p-4 wu-bg-blue-100 wu-text-grey-600">%s</div>', __('Want to add customized order bump templates?<br><a target="_blank" class="wu-no-underline" href="https://help.wpultimo.com/article/343-customize-your-checkout-flow-using-field-templates">See how you can do that here</a>.', 'wp-multisite-waas')),
|
||||
// 'desc' => sprintf('<div class="wu-p-4 wu-bg-blue-100 wu-text-grey-600">%s</div>', __('Want to add customized order bump templates?<br><a target="_blank" class="wu-no-underline" href="https://help.wpultimo.com/article/343-customize-your-checkout-flow-using-field-templates">See how you can do that here</a>.', 'wp-ultimo')),
|
||||
// );
|
||||
|
||||
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-multisite-waas');
|
||||
$content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'wp-ultimo');
|
||||
|
||||
return [
|
||||
$attributes['id'] => [
|
||||
|
@ -54,7 +54,7 @@ class Signup_Field_Order_Summary extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Order Summary', 'wp-multisite-waas');
|
||||
return __('Order Summary', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Adds a summary table with prices, key subscription dates, discounts, and taxes.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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-multisite-waas');
|
||||
return __('Adds a summary table with prices, key subscription dates, discounts, and taxes.', 'wp-ultimo');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -163,11 +163,11 @@ class Signup_Field_Order_Summary extends Base_Signup_Field {
|
||||
|
||||
$editor_fields['table_columns'] = [
|
||||
'type' => 'select',
|
||||
'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'),
|
||||
'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'),
|
||||
'options' => [
|
||||
'simple' => __('Simplified', 'wp-multisite-waas'),
|
||||
'full' => __('Display All', 'wp-multisite-waas'),
|
||||
'simple' => __('Simplified', 'wp-ultimo'),
|
||||
'full' => __('Display All', 'wp-ultimo'),
|
||||
],
|
||||
];
|
||||
|
||||
@ -177,8 +177,8 @@ class Signup_Field_Order_Summary extends Base_Signup_Field {
|
||||
'fields' => [
|
||||
'order_summary_template' => [
|
||||
'type' => 'select',
|
||||
'title' => __('Layout', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Select your Layout', 'wp-multisite-waas'),
|
||||
'title' => __('Layout', 'wp-ultimo'),
|
||||
'placeholder' => __('Select your Layout', 'wp-ultimo'),
|
||||
'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('<div class="wu-p-4 wu-bg-blue-100 wu-text-grey-600">%s</div>', __('Want to add customized order summary templates?<br><a target="_blank" class="wu-no-underline" href="https://help.wpultimo.com/article/343-customize-your-checkout-flow-using-field-templates">See how you can do that here</a>.', 'wp-multisite-waas')),
|
||||
// 'desc' => sprintf('<div class="wu-p-4 wu-bg-blue-100 wu-text-grey-600">%s</div>', __('Want to add customized order summary templates?<br><a target="_blank" class="wu-no-underline" href="https://help.wpultimo.com/article/343-customize-your-checkout-flow-using-field-templates">See how you can do that here</a>.', 'wp-ultimo')),
|
||||
// );
|
||||
|
||||
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-multisite-waas');
|
||||
$content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'wp-ultimo');
|
||||
|
||||
$checkout_fields[ $attributes['id'] ] = [
|
||||
'type' => 'note',
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user