Prep Plugin for release on WordPress.org (#23)
* Update translation text domain * Escape everything that should be escaped. * Add nonce checks where needed. * Sanitize all inputs. * Apply Code style changes across the codebase. * Correct many deprecation notices. * Optimize load order of many filters. * Add Proper Build script * Use emojii flags * Fix i18n deprecation notice for translating too early * Put all scripts in footer and load async
This commit is contained in:
@ -54,7 +54,7 @@ class Signup_Field_Order_Summary extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_title() {
|
||||
|
||||
return __('Order Summary', 'wp-ultimo');
|
||||
return __('Order Summary', 'wp-multisite-waas');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,7 +67,7 @@ class Signup_Field_Order_Summary extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_description() {
|
||||
|
||||
return __('Adds a summary table with prices, key subscription dates, discounts, and taxes.', 'wp-ultimo');
|
||||
return __('Adds a summary table with prices, key subscription dates, discounts, and taxes.', 'wp-multisite-waas');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -80,7 +80,7 @@ class Signup_Field_Order_Summary extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_tooltip() {
|
||||
|
||||
return __('Adds a summary table with prices, key subscription dates, discounts, and taxes.', 'wp-ultimo');
|
||||
return __('Adds a summary table with prices, key subscription dates, discounts, and taxes.', 'wp-multisite-waas');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -163,11 +163,11 @@ class Signup_Field_Order_Summary extends Base_Signup_Field {
|
||||
|
||||
$editor_fields['table_columns'] = [
|
||||
'type' => 'select',
|
||||
'title' => __('Table Columns', 'wp-ultimo'),
|
||||
'desc' => __('"Simplified" will condense all discount and tax info into separate rows to keep the table with only two columns. "Display All" adds a discounts and taxes column to each product row.', 'wp-ultimo'),
|
||||
'title' => __('Table Columns', 'wp-multisite-waas'),
|
||||
'desc' => __('"Simplified" will condense all discount and tax info into separate rows to keep the table with only two columns. "Display All" adds a discounts and taxes column to each product row.', 'wp-multisite-waas'),
|
||||
'options' => [
|
||||
'simple' => __('Simplified', 'wp-ultimo'),
|
||||
'full' => __('Display All', 'wp-ultimo'),
|
||||
'simple' => __('Simplified', 'wp-multisite-waas'),
|
||||
'full' => __('Display All', 'wp-multisite-waas'),
|
||||
],
|
||||
];
|
||||
|
||||
@ -177,8 +177,8 @@ class Signup_Field_Order_Summary extends Base_Signup_Field {
|
||||
'fields' => [
|
||||
'order_summary_template' => [
|
||||
'type' => 'select',
|
||||
'title' => __('Layout', 'wp-ultimo'),
|
||||
'placeholder' => __('Select your Layout', 'wp-ultimo'),
|
||||
'title' => __('Layout', 'wp-multisite-waas'),
|
||||
'placeholder' => __('Select your Layout', 'wp-multisite-waas'),
|
||||
'options' => [$this, 'get_templates'],
|
||||
'wrapper_classes' => 'wu-flex-grow',
|
||||
'html_attr' => [
|
||||
@ -194,7 +194,7 @@ class Signup_Field_Order_Summary extends Base_Signup_Field {
|
||||
// 'order' => 99,
|
||||
// 'wrapper_classes' => 'sm:wu-p-0 sm:wu-block',
|
||||
// 'classes' => '',
|
||||
// 'desc' => sprintf('<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')),
|
||||
// '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')),
|
||||
// );
|
||||
|
||||
return $editor_fields;
|
||||
@ -221,7 +221,7 @@ class Signup_Field_Order_Summary extends Base_Signup_Field {
|
||||
|
||||
$template_class = Field_Templates_Manager::get_instance()->get_template_class('order_summary', $attributes['order_summary_template']);
|
||||
|
||||
$content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'wp-ultimo');
|
||||
$content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'wp-multisite-waas');
|
||||
|
||||
$checkout_fields[ $attributes['id'] ] = [
|
||||
'type' => 'note',
|
||||
|
Reference in New Issue
Block a user