From f033810c4b441bdba64401318fbd44b391eb1552 Mon Sep 17 00:00:00 2001
From: "Soare Robert Daniel (Mac 2023)"
Date: Fri, 13 Dec 2024 11:59:06 +0200
Subject: [PATCH 1/9] fix: separate domain based on plugin
---
.eslintrc | 5 +-
.gitignore | 1 +
inc/class-blocks-animation.php | 22 +--
inc/class-pro.php | 32 ++--
inc/css/class-block-frontend.php | 4 +-
inc/css/class-css-handler.php | 12 +-
phpcs.xml | 17 +-
plugins/otter-pro/inc/class-main.php | 4 +-
.../inc/plugins/class-block-conditions.php | 4 +-
.../inc/plugins/class-dynamic-content.php | 6 +-
.../inc/plugins/class-fonts-module.php | 4 +-
.../inc/plugins/class-form-emails-storing.php | 108 ++++++------
.../inc/plugins/class-form-pro-features.php | 6 +-
.../otter-pro/inc/plugins/class-license.php | 4 +-
.../inc/plugins/class-live-search.php | 8 +-
.../inc/plugins/class-options-settings.php | 10 +-
.../plugins/class-posts-acf-integration.php | 4 +-
.../plugins/class-review-woo-integration.php | 6 +-
.../inc/plugins/class-stripe-pro-features.php | 4 +-
.../inc/plugins/class-woocommerce-builder.php | 14 +-
.../inc/render/class-form-file-block.php | 2 +-
.../inc/render/class-form-hidden-block.php | 2 +-
.../inc/render/class-form-stripe-block.php | 6 +-
.../render/class-review-comparison-block.php | 28 +--
.../class-product-rating-block.php | 2 +-
.../woocommerce/class-product-stock-block.php | 2 +-
.../inc/server/class-dashboard-server.php | 8 +-
.../inc/server/class-filter-blocks-server.php | 8 +-
.../inc/server/class-live-search-server.php | 4 +-
.../inc/server/class-posts-acf-server.php | 6 +-
plugins/otter-pro/otter-pro.php | 6 +-
src/animation/components/animation-popover.js | 8 +-
src/animation/count/index.js | 4 +-
src/animation/count/inline-controls.js | 6 +-
src/animation/data.js | 164 +++++++++---------
src/animation/editor.js | 52 +++---
src/animation/index.js | 2 +-
src/animation/typing/index.js | 4 +-
src/animation/typing/inline-controls.js | 6 +-
src/blocks/blocks/form/inspector.js | 4 +-
src/blocks/blocks/google-map/inspector.js | 2 +-
src/blocks/blocks/review/inspector.js | 2 +-
src/blocks/blocks/section/columns/index.js | 17 +-
src/blocks/blocks/sharing-icons/inspector.js | 2 +-
.../blocks/stripe-checkout/inspector.js | 2 +-
.../block-appender-button/index.tsx | 2 +-
.../components/responsive-control/index.js | 6 +-
src/blocks/plugins/ai-content/index.tsx | 2 +-
src/blocks/plugins/feedback/feedback-form.js | 2 +-
.../plugins/otter-tools-inspector/index.tsx | 2 +-
src/blocks/plugins/sticky/edit.tsx | 2 +-
src/css/editor.js | 16 +-
src/css/index.js | 4 +-
src/export-import/exporter.js | 4 +-
src/export-import/importer.js | 16 +-
src/export-import/index.js | 6 +-
src/pro/blocks/add-to-cart-button/edit.js | 6 +-
src/pro/blocks/add-to-cart-button/index.js | 16 +-
.../blocks/add-to-cart-button/inspector.js | 8 +-
src/pro/blocks/business-hours/edit.js | 30 ++--
src/pro/blocks/business-hours/index.js | 8 +-
src/pro/blocks/business-hours/inspector.js | 20 +--
src/pro/blocks/business-hours/item/edit.js | 4 +-
src/pro/blocks/business-hours/item/index.js | 4 +-
.../blocks/business-hours/item/inspector.js | 8 +-
src/pro/blocks/file/edit.js | 6 +-
src/pro/blocks/file/index.js | 4 +-
src/pro/blocks/file/inspector.js | 40 ++---
src/pro/blocks/form-hidden-field/edit.js | 6 +-
src/pro/blocks/form-hidden-field/index.js | 4 +-
src/pro/blocks/form-hidden-field/inspector.js | 28 +--
src/pro/blocks/form-stripe-field/edit.js | 32 ++--
src/pro/blocks/form-stripe-field/index.js | 4 +-
src/pro/blocks/form-stripe-field/inspector.js | 48 ++---
src/pro/blocks/modal/edit.js | 8 +-
src/pro/blocks/modal/index.js | 4 +-
src/pro/blocks/modal/inspector.js | 70 ++++----
src/pro/blocks/review-comparison/controls.js | 2 +-
src/pro/blocks/review-comparison/edit.js | 14 +-
src/pro/blocks/review-comparison/index.js | 4 +-
src/pro/blocks/review-comparison/inspector.js | 6 +-
.../blocks/review-comparison/placeholder.js | 22 +--
src/pro/blocks/woo-comparison/index.js | 6 +-
src/pro/components/acf-image-select/index.js | 2 +-
src/pro/components/autoresponder/index.js | 6 +-
src/pro/components/inactive/index.js | 4 +-
src/pro/components/webhook-editor/index.tsx | 54 +++---
src/pro/dashboard/index.js | 18 +-
src/pro/plugins/conditions/edit.js | 160 ++++++++---------
src/pro/plugins/conditions/index.js | 90 +++++-----
src/pro/plugins/countdown/index.tsx | 66 +++----
src/pro/plugins/dynamic-content/index.js | 8 +-
src/pro/plugins/dynamic-content/link-edit.js | 8 +-
src/pro/plugins/dynamic-content/link.js | 4 +-
src/pro/plugins/dynamic-content/media.js | 12 +-
src/pro/plugins/dynamic-content/value-edit.js | 72 ++++----
src/pro/plugins/dynamic-content/value.js | 26 +--
src/pro/plugins/form/index.js | 74 ++++----
src/pro/plugins/live-search/edit.js | 22 +--
src/pro/plugins/live-search/index.js | 8 +-
src/pro/plugins/popup/index.js | 38 ++--
src/pro/plugins/posts/index.js | 34 ++--
src/pro/plugins/sticky/index.js | 42 ++---
src/pro/plugins/stripe-checkout/index.js | 14 +-
src/pro/plugins/wc-integration/edit.js | 16 +-
src/pro/plugins/wc-integration/utility.js | 2 +-
src/pro/woocommerce/add-to-cart/index.js | 4 +-
src/pro/woocommerce/images/index.js | 4 +-
src/pro/woocommerce/meta/index.js | 4 +-
src/pro/woocommerce/price/index.js | 4 +-
src/pro/woocommerce/rating/index.js | 4 +-
src/pro/woocommerce/related-products/index.js | 6 +-
.../woocommerce/short-description/index.js | 4 +-
src/pro/woocommerce/stock/index.js | 4 +-
src/pro/woocommerce/tabs/index.js | 6 +-
src/pro/woocommerce/title/index.js | 4 +-
src/pro/woocommerce/upsells/index.js | 6 +-
117 files changed, 965 insertions(+), 963 deletions(-)
diff --git a/.eslintrc b/.eslintrc
index 9a90fc4fc..a2aad4869 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -86,6 +86,9 @@
"jsx-a11y/alt-text": "warn",
"jsx-a11y/anchor-is-valid": "warn",
"jsx-a11y/no-noninteractive-element-interactions": "warn",
- "jsx-a11y/no-autofocus": "warn"
+ "jsx-a11y/no-autofocus": "warn",
+ "@wordpress/i18n-text-domain": ["error", {
+ "allowedTextDomain": ["otter-blocks", "otter-pro", "blocks-export-import", "blocks-css", "blocks-animation"]
+ }]
}
}
diff --git a/.gitignore b/.gitignore
index 38d5af04c..be94975d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@ license.json
.fleet
tests/assets/*_tmp
.phpunit.result.cache
+languages
diff --git a/inc/class-blocks-animation.php b/inc/class-blocks-animation.php
index 1920aca11..614a04b24 100644
--- a/inc/class-blocks-animation.php
+++ b/inc/class-blocks-animation.php
@@ -251,7 +251,7 @@ public function render_welcome_notice() {
true
);
- wp_set_script_translations( 'otter-animation-welcome-notice-scripts', 'otter-blocks' );
+ wp_set_script_translations( 'otter-animation-welcome-notice-scripts', 'blocks-animation' );
wp_localize_script(
'otter-animation-welcome-notice-scripts',
@@ -272,9 +272,9 @@ public function render_welcome_notice() {
admin_url( 'plugins.php' )
)
),
- 'activating' => __( 'Activating', 'otter-blocks' ) . '…',
- 'installing' => __( 'Installing', 'otter-blocks' ) . '…',
- 'done' => __( 'Done', 'otter-blocks' ),
+ 'activating' => __( 'Activating', 'blocks-animation' ) . '…',
+ 'installing' => __( 'Installing', 'blocks-animation' ) . '…',
+ 'done' => __( 'Done', 'blocks-animation' ),
)
);
@@ -290,14 +290,14 @@ public function render_welcome_notice() {
$notice_html .= sprintf(
/* translators: %1$s: Add-on Blocks, %2$s: Enhanced Animations, %3$s: Visibility Conditions */
__( 'Power Up Your Site with %1$s, %2$s, %3$s, and more!', 'otter-blocks' ),
- '' . __( 'Add-on Blocks', 'otter-blocks' ) . ' ',
- '' . __( 'Enhanced Animations', 'otter-blocks' ) . ' ',
- '' . __( 'Visibility Conditions', 'otter-blocks' ) . ' '
+ '' . __( 'Add-on Blocks', 'blocks-animation' ) . ' ',
+ '' . __( 'Enhanced Animations', 'blocks-animation' ) . ' ',
+ '' . __( 'Visibility Conditions', 'blocks-animation' ) . ' '
);
$notice_html .= '';
- $notice_html .= '' . __( 'Otter is a Gutenberg Blocks page builder plugin that adds extra functionality to the WordPress Block Editor (also known as Gutenberg) for a better page building experience without the need for traditional page builders.', 'otter-blocks' ) . '
';
+ $notice_html .= '' . __( 'Otter is a Gutenberg Blocks page builder plugin that adds extra functionality to the WordPress Block Editor (also known as Gutenberg) for a better page building experience without the need for traditional page builders.', 'blocks-animation' ) . '
';
$notice_html .= '';
@@ -307,14 +307,14 @@ public function render_welcome_notice() {
$notice_html .= '
';
$notice_html .= 'installed' === $otter_status ?
/* translators: %s: Otter Blocks */
- sprintf( __( 'Activate %s', 'otter-blocks' ), 'Otter Blocks' ) :
+ sprintf( __( 'Activate %s', 'blocks-animation' ), 'Otter Blocks' ) :
/* translators: %s: Otter Blocks */
- sprintf( __( 'Install & Activate %s', 'otter-blocks' ), 'Otter Blocks' );
+ sprintf( __( 'Install & Activate %s', 'blocks-animation' ), 'Otter Blocks' );
$notice_html .= ' ';
$notice_html .= '';
$notice_html .= '
';
- $notice_html .= '' . __( 'Learn More', 'otter-blocks' ) . ' ';
+ $notice_html .= '' . __( 'blocks-animation', 'otter-blocks' ) . ' ';
$notice_html .= ' ';
$notice_html .= ' ';
diff --git a/inc/class-pro.php b/inc/class-pro.php
index 7ef94b576..4339691b1 100644
--- a/inc/class-pro.php
+++ b/inc/class-pro.php
@@ -207,7 +207,7 @@ public function should_show_dashboard_upsell() {
public function register_metabox( $post_type ) {
add_meta_box(
'otter_woo_builder',
- __( 'WooCommerce Builder by Otter', 'otter-blocks' ),
+ __( 'WooCommerce Builder by Otter', 'otter-pro' ),
array( $this, 'render_metabox_upsell' ),
'product',
'side',
@@ -241,17 +241,17 @@ public function render_metabox_upsell( $post_type ) {
}
%1$s %2$s %4$s
',
esc_html( $plugin_name ),
esc_html( $message ),
esc_url( admin_url( 'update-core.php' ) ),
- esc_html__( 'Update', 'otter-blocks' )
+ esc_html__( 'Update', 'otter-pro' )
);
}
@@ -320,8 +320,8 @@ public function dashboard_upsell_notice() {
jQuery( document ).ready( () => disableNotice( jQuery ) );
@@ -369,7 +369,7 @@ public function dismiss_dashboard_notice() {
public function add_cron_schedules( $schedules = array() ) {
// Adds once monthly to the existing schedules.
$schedules['monthly'] = array(
- 'display' => __( 'Monthly', 'otter-blocks' ),
+ 'display' => __( 'Monthly', 'otter-pro' ),
'interval' => 2635200,
);
@@ -420,7 +420,7 @@ public function add_pro_link( $links ) {
$links[] = sprintf(
'%s ',
esc_url_raw( tsdk_utmify( self::get_url(), 'pluginspage', 'action' ) ),
- __( 'Get Otter Pro', 'otter-blocks' )
+ __( 'Get Otter Pro', 'otter-pro' )
);
return $links;
diff --git a/inc/css/class-block-frontend.php b/inc/css/class-block-frontend.php
index 0ec65053c..9eca99920 100644
--- a/inc/css/class-block-frontend.php
+++ b/inc/css/class-block-frontend.php
@@ -700,7 +700,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'blocks-css' ), '1.0.0' );
}
/**
@@ -712,6 +712,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'blocks-css' ), '1.0.0' );
}
}
diff --git a/inc/css/class-css-handler.php b/inc/css/class-css-handler.php
index 55a9fb4c9..286b82f3e 100644
--- a/inc/css/class-css-handler.php
+++ b/inc/css/class-css-handler.php
@@ -136,7 +136,7 @@ public function register_routes() {
'id' => array(
'type' => 'integer',
'required' => true,
- 'description' => __( 'ID of the Post.', 'otter-blocks' ),
+ 'description' => __( 'ID of the Post.', 'blocks-css' ),
'validate_callback' => function ( $param, $request, $key ) {
return is_numeric( $param );
},
@@ -160,7 +160,7 @@ public function register_routes() {
'id' => array(
'type' => 'integer',
'required' => true,
- 'description' => __( 'ID of the Reusable Block.', 'otter-blocks' ),
+ 'description' => __( 'ID of the Reusable Block.', 'blocks-css' ),
'validate_callback' => function ( $param, $request, $key ) {
return is_numeric( $param );
},
@@ -224,7 +224,7 @@ public function save_post_meta( \WP_REST_Request $request ) {
self::mark_review_block_metadata( $post_id );
- return rest_ensure_response( array( 'message' => __( 'CSS updated.', 'otter-blocks' ) ) );
+ return rest_ensure_response( array( 'message' => __( 'CSS updated.', 'blocks-css' ) ) );
}
/**
@@ -311,7 +311,7 @@ public function save_block_meta( \WP_REST_Request $request ) {
self::mark_review_block_metadata( $post_id );
- return rest_ensure_response( array( 'message' => __( 'CSS updated.', 'otter-blocks' ) ) );
+ return rest_ensure_response( array( 'message' => __( 'CSS updated.', 'blocks-css' ) ) );
}
/**
@@ -598,7 +598,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'blocks-css' ), '1.0.0' );
}
/**
@@ -610,6 +610,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'blocks-css' ), '1.0.0' );
}
}
diff --git a/phpcs.xml b/phpcs.xml
index e30843d49..9e4079b1e 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -9,23 +9,28 @@
-
+
-
+
-
+
+
+
+
+
+
+
-
-
-
+
+
.
node_modules/*
diff --git a/plugins/otter-pro/inc/class-main.php b/plugins/otter-pro/inc/class-main.php
index ba691e650..2d09d9137 100644
--- a/plugins/otter-pro/inc/class-main.php
+++ b/plugins/otter-pro/inc/class-main.php
@@ -275,7 +275,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -287,6 +287,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/plugins/class-block-conditions.php b/plugins/otter-pro/inc/plugins/class-block-conditions.php
index b152732a6..8937c31cd 100644
--- a/plugins/otter-pro/inc/plugins/class-block-conditions.php
+++ b/plugins/otter-pro/inc/plugins/class-block-conditions.php
@@ -697,7 +697,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -709,6 +709,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/plugins/class-dynamic-content.php b/plugins/otter-pro/inc/plugins/class-dynamic-content.php
index b1bd072ea..4ff5f911f 100644
--- a/plugins/otter-pro/inc/plugins/class-dynamic-content.php
+++ b/plugins/otter-pro/inc/plugins/class-dynamic-content.php
@@ -246,7 +246,7 @@ public function get_acf( $data ) {
}
if ( false === $meta || true === $meta ) {
- $meta = $meta ? __( 'Yes', 'otter-blocks' ) : __( 'No', 'otter-blocks' );
+ $meta = $meta ? __( 'Yes', 'otter-pro' ) : __( 'No', 'otter-pro' );
}
if ( empty( $meta ) || ! is_string( $meta ) ) {
@@ -615,7 +615,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -627,6 +627,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/plugins/class-fonts-module.php b/plugins/otter-pro/inc/plugins/class-fonts-module.php
index f23c81364..2709be700 100644
--- a/plugins/otter-pro/inc/plugins/class-fonts-module.php
+++ b/plugins/otter-pro/inc/plugins/class-fonts-module.php
@@ -110,7 +110,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -122,6 +122,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/plugins/class-form-emails-storing.php b/plugins/otter-pro/inc/plugins/class-form-emails-storing.php
index fc751501a..17ff2c890 100644
--- a/plugins/otter-pro/inc/plugins/class-form-emails-storing.php
+++ b/plugins/otter-pro/inc/plugins/class-form-emails-storing.php
@@ -92,20 +92,20 @@ public function create_form_records_type() {
self::FORM_RECORD_TYPE,
array(
'labels' => array(
- 'name' => esc_html_x( 'Form Submissions', '', 'otter-blocks' ),
- 'singular_name' => esc_html_x( 'Form Submission', '', 'otter-blocks' ),
- 'search_items' => esc_html__( 'Search Submissions', 'otter-blocks' ),
- 'all_items' => esc_html__( 'Form Submissions', 'otter-blocks' ),
- 'view_item' => esc_html__( 'View Submission', 'otter-blocks' ),
- 'update_item' => esc_html__( 'Update Submission', 'otter-blocks' ),
- 'not_found' => esc_html__( 'No submissions found', 'otter-blocks' ),
- 'not_found_in_trash' => esc_html__( 'No submissions found in the Trash', 'otter-blocks' ),
+ 'name' => esc_html_x( 'Form Submissions', '', 'otter-pro' ),
+ 'singular_name' => esc_html_x( 'Form Submission', '', 'otter-pro' ),
+ 'search_items' => esc_html__( 'Search Submissions', 'otter-pro' ),
+ 'all_items' => esc_html__( 'Form Submissions', 'otter-pro' ),
+ 'view_item' => esc_html__( 'View Submission', 'otter-pro' ),
+ 'update_item' => esc_html__( 'Update Submission', 'otter-pro' ),
+ 'not_found' => esc_html__( 'No submissions found', 'otter-pro' ),
+ 'not_found_in_trash' => esc_html__( 'No submissions found in the Trash', 'otter-pro' ),
),
'capability_type' => self::FORM_RECORD_TYPE,
'capabilities' => array(
'create_posts' => 'create_otter_form_records',
),
- 'description' => __( 'Holds the data from the form submissions', 'otter-blocks' ),
+ 'description' => __( 'Holds the data from the form submissions', 'otter-pro' ),
'public' => false,
'show_ui' => true,
'show_in_rest' => false,
@@ -116,7 +116,7 @@ public function create_form_records_type() {
register_post_status(
'read',
array(
- 'label' => _x( 'Read', 'otter-form-record', 'otter-blocks' ),
+ 'label' => _x( 'Read', 'otter-form-record', 'otter-pro' ),
'public' => true,
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
@@ -125,7 +125,7 @@ public function create_form_records_type() {
'label_count' => _n_noop(
'Read (%s) ',
'Read (%s) ',
- 'otter-blocks'
+ 'otter-pro'
),
)
);
@@ -133,7 +133,7 @@ public function create_form_records_type() {
register_post_status(
'unread',
array(
- 'label' => _x( 'Unread', 'otter-form-record', 'otter-blocks' ),
+ 'label' => _x( 'Unread', 'otter-form-record', 'otter-pro' ),
'public' => true,
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
@@ -142,7 +142,7 @@ public function create_form_records_type() {
'label_count' => _n_noop(
'Unread (%s) ',
'Unread (%s) ',
- 'otter-blocks'
+ 'otter-pro'
),
)
);
@@ -213,7 +213,7 @@ public function store_form_record( $form_data ) {
array(
'ID' => $post_id,
/* translators: %s the ID of the submission */
- 'post_title' => sprintf( __( 'Submission #%s', 'otter-blocks' ), $post_id ),
+ 'post_title' => sprintf( __( 'Submission #%s', 'otter-pro' ), $post_id ),
)
);
@@ -223,19 +223,19 @@ public function store_form_record( $form_data ) {
$meta = array(
'form' => array(
- 'label' => __( 'Form', 'otter-blocks' ),
+ 'label' => __( 'Form', 'otter-pro' ),
'value' => $form_data->get_data_from_payload( 'formId' ),
),
'post_url' => array(
- 'label' => __( 'Post URL', 'otter-blocks' ),
+ 'label' => __( 'Post URL', 'otter-pro' ),
'value' => $form_data->get_data_from_payload( 'postUrl' ),
),
'post_id' => array(
- 'label' => __( 'Post ID', 'otter-blocks' ),
+ 'label' => __( 'Post ID', 'otter-pro' ),
'value' => $form_data->get_data_from_payload( 'postId' ),
),
'dump' => array(
- 'label' => __( 'Dumped data', 'otter-blocks' ),
+ 'label' => __( 'Dumped data', 'otter-pro' ),
'value' => $form_data->is_temporary() ? $form_data->dump_data() : array(),
),
);
@@ -326,11 +326,11 @@ public function add_style() {
public function form_record_columns() {
return array(
'cb' => ' ',
- 'title' => __( 'Title', 'otter-blocks' ),
- 'form' => __( 'Form ID', 'otter-blocks' ),
- 'post_url' => __( 'Post', 'otter-blocks' ),
- 'ID' => __( 'ID', 'otter-blocks' ),
- 'submission_date' => __( 'Submission Date', 'otter-blocks' ),
+ 'title' => __( 'Title', 'otter-pro' ),
+ 'form' => __( 'Form ID', 'otter-pro' ),
+ 'post_url' => __( 'Post', 'otter-pro' ),
+ 'ID' => __( 'ID', 'otter-pro' ),
+ 'submission_date' => __( 'Submission Date', 'otter-pro' ),
);
}
@@ -341,9 +341,9 @@ public function form_record_columns() {
*/
public function form_record_sortable_columns() {
return array(
- 'title' => __( 'Title', 'otter-blocks' ),
- 'ID' => __( 'ID', 'otter-blocks' ),
- 'submission_date' => __( 'Submission Date', 'otter-blocks' ),
+ 'title' => __( 'Title', 'otter-pro' ),
+ 'ID' => __( 'ID', 'otter-pro' ),
+ 'submission_date' => __( 'Submission Date', 'otter-pro' ),
);
}
@@ -357,18 +357,18 @@ public function form_record_bulk_actions() {
$bulk_actions = array();
if ( 'trash' !== $status ) {
- $bulk_actions['trash'] = __( 'Move to Trash', 'otter-blocks' );
+ $bulk_actions['trash'] = __( 'Move to Trash', 'otter-pro' );
if ( 'unread' !== $status ) {
- $bulk_actions['unread'] = __( 'Mark as Unread', 'otter-blocks' );
+ $bulk_actions['unread'] = __( 'Mark as Unread', 'otter-pro' );
}
if ( 'read' !== $status ) {
- $bulk_actions['read'] = __( 'Mark as Read', 'otter-blocks' );
+ $bulk_actions['read'] = __( 'Mark as Read', 'otter-pro' );
}
} else {
- $bulk_actions['untrash'] = __( 'Restore', 'otter-blocks' );
- $bulk_actions['delete'] = __( 'Delete Permanently', 'otter-blocks' );
+ $bulk_actions['untrash'] = __( 'Restore', 'otter-pro' );
+ $bulk_actions['delete'] = __( 'Delete Permanently', 'otter-pro' );
}
return $bulk_actions;
@@ -395,7 +395,7 @@ public function form_record_row_actions( $actions, $post ) {
$actions['view'] = sprintf(
'%s ',
get_edit_post_link( $post->ID ),
- __( 'View', 'otter-blocks' )
+ __( 'View', 'otter-pro' )
);
}
@@ -405,7 +405,7 @@ public function form_record_row_actions( $actions, $post ) {
'row-read',
$post->ID,
wp_create_nonce( 'read-' . self::FORM_RECORD_TYPE . '_' . $post->ID ),
- __( 'Mark as Read', 'otter-blocks' )
+ __( 'Mark as Read', 'otter-pro' )
);
} elseif ( 'trash' !== $status ) {
$actions['unread'] = sprintf(
@@ -413,7 +413,7 @@ public function form_record_row_actions( $actions, $post ) {
'row-unread',
$post->ID,
wp_create_nonce( 'unread-' . self::FORM_RECORD_TYPE . '_' . $post->ID ),
- __( 'Mark as Unread', 'otter-blocks' )
+ __( 'Mark as Unread', 'otter-pro' )
);
}
@@ -637,8 +637,8 @@ public function handle_admin_menu() {
add_submenu_page(
'otter',
- __( 'Submissions', 'otter-blocks' ),
- __( 'Submissions', 'otter-blocks' ),
+ __( 'Submissions', 'otter-pro' ),
+ __( 'Submissions', 'otter-pro' ),
'manage_options',
'edit.php?post_type=' . self::FORM_RECORD_TYPE
);
@@ -652,7 +652,7 @@ public function handle_admin_menu() {
public function add_form_record_meta_box() {
add_meta_box(
'field_values_meta_box',
- esc_html__( 'Submission Data', 'otter-blocks' ),
+ esc_html__( 'Submission Data', 'otter-pro' ),
array( $this, 'fields_meta_box_markup' ),
self::FORM_RECORD_TYPE
);
@@ -660,7 +660,7 @@ public function add_form_record_meta_box() {
// this will replace the default publish box, that's why it's using its id.
add_meta_box(
'submitpost',
- esc_html__( 'Update', 'otter-blocks' ),
+ esc_html__( 'Update', 'otter-pro' ),
array( $this, 'update_meta_box_markup' ),
self::FORM_RECORD_TYPE,
'side'
@@ -689,11 +689,11 @@ public function form_record_save_meta_box( $post_id, $post ) {
}
if ( empty( $_POST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( wp_unslash( $_POST['_wpnonce'] ) ), 'update-post_' . $post->ID ) ) {
- wp_die( esc_html__( 'Nonce not verified.', 'otter-blocks' ) );
+ wp_die( esc_html__( 'Nonce not verified.', 'otter-pro' ) );
}
if ( ! current_user_can( 'edit_post', $post_id ) ) {
- wp_die( esc_html__( 'User cannot edit this post.', 'otter-blocks' ) );
+ wp_die( esc_html__( 'User cannot edit this post.', 'otter-pro' ) );
}
$meta = get_post_meta( $post_id, self::FORM_RECORD_META_KEY, true );
@@ -868,12 +868,12 @@ public function update_meta_box_markup( $post ) {
- :
+ :
@@ -885,7 +885,7 @@ public function update_meta_box_markup( $post ) {
'trash',
intval( $post->ID ),
esc_attr( wp_create_nonce( 'trash-post_' . $post->ID ) ),
- esc_html__( 'Move to Trash', 'otter-blocks' )
+ esc_html__( 'Move to Trash', 'otter-pro' )
);
?>
@@ -894,7 +894,7 @@ public function update_meta_box_markup( $post ) {
',
- esc_html__( 'Update', 'otter-blocks' )
+ esc_html__( 'Update', 'otter-pro' )
);
?>
@@ -956,19 +956,19 @@ public function check_posts( $action ) {
$post = get_post( $id );
if ( empty( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( wp_unslash( $_REQUEST['_wpnonce'] ) ), $action . '-' . self::FORM_RECORD_TYPE . '_' . $id ) ) {
- wp_die( esc_html__( 'Security check failed', 'otter-blocks' ) );
+ wp_die( esc_html__( 'Security check failed', 'otter-pro' ) );
}
if ( ! isset( $_REQUEST[ self::FORM_RECORD_TYPE ] ) ) {
- wp_die( esc_html__( 'Post ID is required', 'otter-blocks' ) );
+ wp_die( esc_html__( 'Post ID is required', 'otter-pro' ) );
}
if ( ! $post ) {
- wp_die( esc_html__( 'Invalid post ID', 'otter-blocks' ) );
+ wp_die( esc_html__( 'Invalid post ID', 'otter-pro' ) );
}
if ( self::FORM_RECORD_TYPE !== $post->post_type ) {
- wp_die( esc_html__( 'Invalid post type', 'otter-blocks' ) );
+ wp_die( esc_html__( 'Invalid post type', 'otter-pro' ) );
}
return $id;
@@ -1079,7 +1079,7 @@ private function form_dropdown() {
?>
-
+
$form_name ) : ?>
>
@@ -1105,7 +1105,7 @@ private function post_dropdown() {
?>
-
+
$post_title ) : ?>
>
@@ -1333,7 +1333,7 @@ public function schedule_automatic_confirmation() {
public function export_submissions() {
$nonce = isset( $_POST['_nonce'] ) ? sanitize_text_field( $_POST['_nonce'] ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification
if ( ! wp_verify_nonce( $nonce, 'otter_form_export_submissions' ) ) {
- wp_die( esc_html( __( 'Invalid nonce.', 'otter-blocks' ) ) );
+ wp_die( esc_html( __( 'Invalid nonce.', 'otter-pro' ) ) );
}
// Export submissions.
@@ -1374,7 +1374,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -1385,6 +1385,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/plugins/class-form-pro-features.php b/plugins/otter-pro/inc/plugins/class-form-pro-features.php
index b5cb389f3..3729769bb 100644
--- a/plugins/otter-pro/inc/plugins/class-form-pro-features.php
+++ b/plugins/otter-pro/inc/plugins/class-form-pro-features.php
@@ -417,7 +417,7 @@ public function trigger_webhook( $form_data ) {
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
// TODO: use logger.
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log
- error_log( __( '[Otter Webhook]', 'otter-blocks' ) . $response->get_error_message() );
+ error_log( __( '[Otter Webhook]', 'otter-pro' ) . $response->get_error_message() );
}
}
}
@@ -707,7 +707,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -719,6 +719,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/plugins/class-license.php b/plugins/otter-pro/inc/plugins/class-license.php
index b864756dd..5316dfb57 100644
--- a/plugins/otter-pro/inc/plugins/class-license.php
+++ b/plugins/otter-pro/inc/plugins/class-license.php
@@ -194,7 +194,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -206,6 +206,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/plugins/class-live-search.php b/plugins/otter-pro/inc/plugins/class-live-search.php
index 1dbbfd606..484f3a78d 100644
--- a/plugins/otter-pro/inc/plugins/class-live-search.php
+++ b/plugins/otter-pro/inc/plugins/class-live-search.php
@@ -99,8 +99,8 @@ public static function load_deps() {
'permalinkStructure' => get_option( 'permalink_structure' ),
'strings' => array(
/* translators: This is followed by the search string */
- 'noResults' => __( 'No results for', 'otter-blocks' ),
- 'noTitle' => sprintf( '(%s)', __( 'no title', 'otter-blocks' ) ),
+ 'noResults' => __( 'No results for', 'otter-pro' ),
+ 'noTitle' => sprintf( '(%s)', __( 'no title', 'otter-pro' ) ),
),
)
);
@@ -139,7 +139,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -151,6 +151,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/plugins/class-options-settings.php b/plugins/otter-pro/inc/plugins/class-options-settings.php
index 46354975d..821ff701a 100644
--- a/plugins/otter-pro/inc/plugins/class-options-settings.php
+++ b/plugins/otter-pro/inc/plugins/class-options-settings.php
@@ -38,7 +38,7 @@ public function register_settings() {
'otter_inherited_autoactivate',
array(
'type' => 'boolean',
- 'description' => __( 'Inherit license from Neve Pro.', 'otter-blocks' ),
+ 'description' => __( 'Inherit license from Neve Pro.', 'otter-pro' ),
'show_in_rest' => true,
'default' => false,
)
@@ -49,7 +49,7 @@ public function register_settings() {
'otter_offload_fonts',
array(
'type' => 'boolean',
- 'description' => __( 'Store Google Fonts Offline.', 'otter-blocks' ),
+ 'description' => __( 'Store Google Fonts Offline.', 'otter-pro' ),
'show_in_rest' => true,
'default' => true === boolval( get_option( 'nv_pro_enable_local_fonts', false ) ) ? true : false,
)
@@ -60,7 +60,7 @@ public function register_settings() {
'otter_iphub_api_key',
array(
'type' => 'string',
- 'description' => __( 'IPHub API Key.', 'otter-blocks' ),
+ 'description' => __( 'IPHub API Key.', 'otter-pro' ),
'sanitize_callback' => 'sanitize_text_field',
'show_in_rest' => true,
'default' => '',
@@ -98,7 +98,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -110,6 +110,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/plugins/class-posts-acf-integration.php b/plugins/otter-pro/inc/plugins/class-posts-acf-integration.php
index 9519d468e..aca2283bf 100644
--- a/plugins/otter-pro/inc/plugins/class-posts-acf-integration.php
+++ b/plugins/otter-pro/inc/plugins/class-posts-acf-integration.php
@@ -109,7 +109,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -121,6 +121,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/plugins/class-review-woo-integration.php b/plugins/otter-pro/inc/plugins/class-review-woo-integration.php
index 00a9e3a86..543df4c92 100644
--- a/plugins/otter-pro/inc/plugins/class-review-woo-integration.php
+++ b/plugins/otter-pro/inc/plugins/class-review-woo-integration.php
@@ -62,7 +62,7 @@ public function apply_woo_data( $attributes ) {
$attributes['links'] = array(
array(
- 'label' => __( 'Buy Now', 'otter-blocks' ),
+ 'label' => __( 'Buy Now', 'otter-pro' ),
'href' => method_exists( $product, 'get_product_url' ) ? $product->get_product_url() : $product->get_permalink(),
'isSponsored' => method_exists( $product, 'get_product_url' ),
),
@@ -101,7 +101,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -113,6 +113,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/plugins/class-stripe-pro-features.php b/plugins/otter-pro/inc/plugins/class-stripe-pro-features.php
index 243c1cb08..42b9878c2 100644
--- a/plugins/otter-pro/inc/plugins/class-stripe-pro-features.php
+++ b/plugins/otter-pro/inc/plugins/class-stripe-pro-features.php
@@ -100,7 +100,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -112,6 +112,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/plugins/class-woocommerce-builder.php b/plugins/otter-pro/inc/plugins/class-woocommerce-builder.php
index 9ef1cfe8d..10979450a 100644
--- a/plugins/otter-pro/inc/plugins/class-woocommerce-builder.php
+++ b/plugins/otter-pro/inc/plugins/class-woocommerce-builder.php
@@ -50,7 +50,7 @@ public function register_metabox( $post_type ) {
add_meta_box(
'otter_woo_builder',
- __( 'WooCommerce Builder by Otter', 'otter-blocks' ),
+ __( 'WooCommerce Builder by Otter', 'otter-pro' ),
array( $this, 'render_metabox' ),
'product',
'side',
@@ -72,20 +72,20 @@ public function render_metabox( $post_type ) {
if ( boolval( $woo_builder_enabled ) ) {
?>
1 );
diff --git a/plugins/otter-pro/inc/render/class-form-hidden-block.php b/plugins/otter-pro/inc/render/class-form-hidden-block.php
index e015c2645..de9206cd1 100644
--- a/plugins/otter-pro/inc/render/class-form-hidden-block.php
+++ b/plugins/otter-pro/inc/render/class-form-hidden-block.php
@@ -30,7 +30,7 @@ public function render( $attributes ) {
}
$id = isset( $attributes['id'] ) ? esc_attr( $attributes['id'] ) : '';
- $label = isset( $attributes['label'] ) ? esc_html( $attributes['label'] ) : __( 'Hidden Field', 'otter-blocks' );
+ $label = isset( $attributes['label'] ) ? esc_html( $attributes['label'] ) : __( 'Hidden Field', 'otter-pro' );
$param_name = isset( $attributes['paramName'] ) ? esc_attr( $attributes['paramName'] ) : '';
$mapped_name = isset( $attributes['mappedName'] ) ? esc_attr( $attributes['mappedName'] ) : 'field-' . $id;
$default_value = isset( $attributes['defaultValue'] ) ? esc_attr( $attributes['defaultValue'] ) : '';
diff --git a/plugins/otter-pro/inc/render/class-form-stripe-block.php b/plugins/otter-pro/inc/render/class-form-stripe-block.php
index b1c78d0eb..07902ea34 100644
--- a/plugins/otter-pro/inc/render/class-form-stripe-block.php
+++ b/plugins/otter-pro/inc/render/class-form-stripe-block.php
@@ -43,7 +43,7 @@ public function render( $attributes ) {
return sprintf(
'',
get_block_wrapper_attributes(),
- __( 'An error occurred! Could not retrieve product information!', 'otter-blocks' ) . $this->format_error( $product )
+ __( 'An error occurred! Could not retrieve product information!', 'otter-pro' ) . $this->format_error( $product )
);
}
@@ -59,7 +59,7 @@ public function render( $attributes ) {
return sprintf(
'',
get_block_wrapper_attributes(),
- __( 'An error occurred! Could not retrieve the price of the product!', 'otter-blocks' ) . $this->format_error( $price )
+ __( 'An error occurred! Could not retrieve the price of the product!', 'otter-pro' ) . $this->format_error( $price )
);
}
@@ -90,7 +90,7 @@ public function render( $attributes ) {
*/
private function format_error( $error ) {
return defined( 'WP_DEBUG' ) && WP_DEBUG ? (
- '' . __( 'Error message: ', 'otter-blocks' ) . ' ' . $error->get_error_message() . ' '
+ '' . __( 'Error message: ', 'otter-pro' ) . ' ' . $error->get_error_message() . ' '
) : '';
}
}
diff --git a/plugins/otter-pro/inc/render/class-review-comparison-block.php b/plugins/otter-pro/inc/render/class-review-comparison-block.php
index 5a27d7b8b..d14733292 100644
--- a/plugins/otter-pro/inc/render/class-review-comparison-block.php
+++ b/plugins/otter-pro/inc/render/class-review-comparison-block.php
@@ -73,7 +73,7 @@ public function render( $attributes ) {
$block['attrs']['links'] = array(
array(
- 'label' => __( 'Buy Now', 'otter-blocks' ),
+ 'label' => __( 'Buy Now', 'otter-pro' ),
'href' => method_exists( $product, 'get_product_url' ) ? $product->get_product_url() : $product->get_permalink(),
'isSponsored' => method_exists( $product, 'get_product_url' ),
),
@@ -82,19 +82,19 @@ public function render( $attributes ) {
$features = array(
array(
- 'title' => __( 'Stability', 'otter-blocks' ),
+ 'title' => __( 'Stability', 'otter-pro' ),
'rating' => 9,
),
array(
- 'title' => __( 'Ease of Use', 'otter-blocks' ),
+ 'title' => __( 'Ease of Use', 'otter-pro' ),
'rating' => 4,
),
array(
- 'title' => __( 'Look & Feel', 'otter-blocks' ),
+ 'title' => __( 'Look & Feel', 'otter-pro' ),
'rating' => 9,
),
array(
- 'title' => __( 'Price', 'otter-blocks' ),
+ 'title' => __( 'Price', 'otter-pro' ),
'rating' => 7,
),
);
@@ -112,7 +112,7 @@ public function render( $attributes ) {
$table_title .= '';
if ( isset( $block['attrs']['title'] ) ) {
$table_title .= '';
- $table_title .= $block['attrs']['title'] ? $block['attrs']['title'] : __( 'Untitled review', 'otter-blocks' );
+ $table_title .= $block['attrs']['title'] ? $block['attrs']['title'] : __( 'Untitled review', 'otter-pro' );
$table_title .= ' ';
}
$table_title .= ' ';
@@ -150,12 +150,12 @@ public function render( $attributes ) {
$links = array(
array(
- 'label' => __( 'Buy on Amazon', 'otter-blocks' ),
+ 'label' => __( 'Buy on Amazon', 'otter-pro' ),
'href' => '',
'isSponsored' => false,
),
array(
- 'label' => __( 'Buy on eBay', 'otter-blocks' ),
+ 'label' => __( 'Buy on eBay', 'otter-pro' ),
'href' => '',
'isSponsored' => false,
),
@@ -195,32 +195,32 @@ public function render( $attributes ) {
$html .= ' ';
$html .= ' ';
- $html .= ' ' . __( 'Name', 'otter-blocks' ) . ' ';
+ $html .= ' ' . __( 'Name', 'otter-pro' ) . ' ';
$html .= $table_title;
$html .= ' ';
$html .= ' ';
- $html .= ' ' . __( 'Price', 'otter-blocks' ) . ' ';
+ $html .= ' ' . __( 'Price', 'otter-pro' ) . ' ';
$html .= $table_price;
$html .= ' ';
$html .= ' ';
- $html .= ' ' . __( 'Rating', 'otter-blocks' ) . ' ';
+ $html .= ' ' . __( 'Rating', 'otter-pro' ) . ' ';
$html .= $table_ratings;
$html .= ' ';
$html .= ' ';
- $html .= ' ' . __( 'Description', 'otter-blocks' ) . ' ';
+ $html .= ' ' . __( 'Description', 'otter-pro' ) . ' ';
$html .= $table_description;
$html .= ' ';
$html .= ' ';
- $html .= ' ' . __( 'Statistics', 'otter-blocks' ) . ' ';
+ $html .= ' ' . __( 'Statistics', 'otter-pro' ) . ' ';
$html .= $table_features;
$html .= ' ';
$html .= ' ';
- $html .= ' ' . __( 'Buy this product', 'otter-blocks' ) . ' ';
+ $html .= ' ' . __( 'Buy this product', 'otter-pro' ) . ' ';
$html .= $table_links;
$html .= ' ';
$html .= ' ';
diff --git a/plugins/otter-pro/inc/render/woocommerce/class-product-rating-block.php b/plugins/otter-pro/inc/render/woocommerce/class-product-rating-block.php
index 116f06e33..298669586 100644
--- a/plugins/otter-pro/inc/render/woocommerce/class-product-rating-block.php
+++ b/plugins/otter-pro/inc/render/woocommerce/class-product-rating-block.php
@@ -37,7 +37,7 @@ public function render( $attributes ) {
$output = ob_get_clean();
if ( empty( $output ) ) {
- $output = __( 'Your product ratings will display here.', 'otter-blocks' );
+ $output = __( 'Your product ratings will display here.', 'otter-pro' );
}
return $output;
}
diff --git a/plugins/otter-pro/inc/render/woocommerce/class-product-stock-block.php b/plugins/otter-pro/inc/render/woocommerce/class-product-stock-block.php
index 293565ed5..a20a53e41 100644
--- a/plugins/otter-pro/inc/render/woocommerce/class-product-stock-block.php
+++ b/plugins/otter-pro/inc/render/woocommerce/class-product-stock-block.php
@@ -34,7 +34,7 @@ public function render( $attributes ) {
$output = wc_get_stock_html( $product );
if ( empty( $output ) ) {
- $output = __( 'Your product stock will display here.', 'otter-blocks' );
+ $output = __( 'Your product stock will display here.', 'otter-pro' );
}
return $output;
}
diff --git a/plugins/otter-pro/inc/server/class-dashboard-server.php b/plugins/otter-pro/inc/server/class-dashboard-server.php
index be9d5714e..2bc3fe35a 100644
--- a/plugins/otter-pro/inc/server/class-dashboard-server.php
+++ b/plugins/otter-pro/inc/server/class-dashboard-server.php
@@ -125,7 +125,7 @@ public function toggle_license( $request ) {
if ( ! isset( $fields['key'] ) || ! isset( $fields['action'] ) ) {
return new \WP_REST_Response(
array(
- 'message' => __( 'Invalid Action. Please refresh the page and try again.', 'otter-blocks' ),
+ 'message' => __( 'Invalid Action. Please refresh the page and try again.', 'otter-pro' ),
'success' => false,
)
);
@@ -145,7 +145,7 @@ public function toggle_license( $request ) {
return new \WP_REST_Response(
array(
'success' => true,
- 'message' => 'activate' === $fields['action'] ? __( 'Activated.', 'otter-blocks' ) : __( 'Deactivated', 'otter-blocks' ),
+ 'message' => 'activate' === $fields['action'] ? __( 'Activated.', 'otter-pro' ) : __( 'Deactivated', 'otter-pro' ),
'license' => array(
'key' => apply_filters( 'product_otter_license_key', 'free' ),
'valid' => apply_filters( 'product_otter_license_status', false ),
@@ -185,7 +185,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -197,6 +197,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/server/class-filter-blocks-server.php b/plugins/otter-pro/inc/server/class-filter-blocks-server.php
index 985ce0f44..950bc15fa 100644
--- a/plugins/otter-pro/inc/server/class-filter-blocks-server.php
+++ b/plugins/otter-pro/inc/server/class-filter-blocks-server.php
@@ -57,7 +57,7 @@ public function register_routes() {
'block' => array(
'type' => 'string',
'required' => true,
- 'description' => __( 'Block namespace.', 'otter-blocks' ),
+ 'description' => __( 'Block namespace.', 'otter-pro' ),
),
),
'permission_callback' => function () {
@@ -161,7 +161,7 @@ public function get_review_blocks( $post, $post_blocks, $block, $blocks ) {
$post_block['attrs']['links'] = array(
array(
- 'label' => __( 'Buy Now', 'otter-blocks' ),
+ 'label' => __( 'Buy Now', 'otter-pro' ),
'href' => method_exists( $product, 'get_product_url' ) ? $product->get_product_url() : $product->get_permalink(),
'isSponsored' => method_exists( $product, 'get_product_url' ),
),
@@ -216,7 +216,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -228,6 +228,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/server/class-live-search-server.php b/plugins/otter-pro/inc/server/class-live-search-server.php
index e64eeacd5..6fbb0e75e 100644
--- a/plugins/otter-pro/inc/server/class-live-search-server.php
+++ b/plugins/otter-pro/inc/server/class-live-search-server.php
@@ -234,7 +234,7 @@ function( $post_type ) use ( $needed_post_types ) {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -246,6 +246,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/inc/server/class-posts-acf-server.php b/plugins/otter-pro/inc/server/class-posts-acf-server.php
index d379156d5..b254943f4 100644
--- a/plugins/otter-pro/inc/server/class-posts-acf-server.php
+++ b/plugins/otter-pro/inc/server/class-posts-acf-server.php
@@ -76,7 +76,7 @@ public function get_acf_fields( $request ) {
);
if ( ! ( function_exists( 'acf_get_field_groups' ) && function_exists( 'acf_get_fields' ) ) ) {
- $return['error'] = esc_html__( 'ACF is not installed!', 'otter-blocks' );
+ $return['error'] = esc_html__( 'ACF is not installed!', 'otter-pro' );
$return['eror_code'] = 1;
return rest_ensure_response( $return );
}
@@ -132,7 +132,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
/**
@@ -144,6 +144,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
- _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-blocks' ), '1.0.0' );
+ _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'otter-pro' ), '1.0.0' );
}
}
diff --git a/plugins/otter-pro/otter-pro.php b/plugins/otter-pro/otter-pro.php
index 238ae34f1..f1babab7d 100644
--- a/plugins/otter-pro/otter-pro.php
+++ b/plugins/otter-pro/otter-pro.php
@@ -65,7 +65,7 @@ function ( $message ) {
add_action(
'admin_notices',
function() {
- $message = __( 'You need to install Otter – Page Builder Blocks & Extensions for Gutenberg plugin to use Otter Pro.', 'otter-blocks' );
+ $message = __( 'You need to install Otter – Page Builder Blocks & Extensions for Gutenberg plugin to use Otter Pro.', 'otter-pro' );
$link = wp_nonce_url(
add_query_arg(
array(
@@ -81,7 +81,7 @@ function() {
'',
esc_html( $message ),
esc_url( $link ),
- esc_html__( 'Install', 'otter-blocks' )
+ esc_html__( 'Install', 'otter-pro' )
);
}
);
@@ -91,7 +91,7 @@ function() {
add_action(
'admin_notices',
function() {
- $message = __( 'You need to update Otter – Page Builder Blocks & Extensions for Gutenberg to the latest version to use Otter Pro.', 'otter-blocks' );
+ $message = __( 'You need to update Otter – Page Builder Blocks & Extensions for Gutenberg to the latest version to use Otter Pro.', 'otter-pro' );
printf(
'',
diff --git a/src/animation/components/animation-popover.js b/src/animation/components/animation-popover.js
index 588337ad6..c518f4eb8 100644
--- a/src/animation/components/animation-popover.js
+++ b/src/animation/components/animation-popover.js
@@ -71,7 +71,7 @@ function AnimationPopover({
const id = `inspector-o-animations-control-${ instanceId }`;
return (
-
+
) }
renderContent={ ({ onToggle }) => (
-
+
{
setCurrentInput( e );
@@ -121,7 +121,7 @@ function AnimationPopover({
{ __(
'Nothing found. Try searching for something else!',
- 'otter-blocks'
+ 'blocks-animation'
) }
) }
diff --git a/src/animation/count/index.js b/src/animation/count/index.js
index 73861a7d9..1430c9a6c 100644
--- a/src/animation/count/index.js
+++ b/src/animation/count/index.js
@@ -26,7 +26,7 @@ const name = 'themeisle-blocks/count-animation';
export const format = {
name,
- title: __( 'Count Animation', 'otter-blocks' ),
+ title: __( 'Count Animation', 'blocks-animation' ),
tagName: 'o-anim-count',
className: null,
@@ -48,7 +48,7 @@ export const format = {
- { __( 'Count Animation', 'otter-blocks' ) }
+ { __( 'Count Animation', 'blocks-animation' ) }
updateAnimConfig( 'count', countDelay, value, () => setCountDelay( value ), attributes, setAttributes ) }
/>
updateAnimConfig( 'count', countSpeed, value, () => setCountSpeed( value ), attributes, setAttributes ) }
diff --git a/src/animation/data.js b/src/animation/data.js
index b1987d3a6..cca146cbe 100644
--- a/src/animation/data.js
+++ b/src/animation/data.js
@@ -5,270 +5,270 @@ import { __ } from '@wordpress/i18n';
export const animationsList = [
{
- label: __( 'None', 'otter-blocks' ),
+ label: __( 'None', 'blocks-animation' ),
value: 'none'
},
{
- label: __( 'Back In Down', 'otter-blocks' ),
+ label: __( 'Back In Down', 'blocks-animation' ),
value: 'backInDown'
},
{
- label: __( 'Back In Left', 'otter-blocks' ),
+ label: __( 'Back In Left', 'blocks-animation' ),
value: 'backInLeft'
},
{
- label: __( 'Back In Right', 'otter-blocks' ),
+ label: __( 'Back In Right', 'blocks-animation' ),
value: 'backInRight'
},
{
- label: __( 'Back In Up', 'otter-blocks' ),
+ label: __( 'Back In Up', 'blocks-animation' ),
value: 'backInUp'
},
{
- label: __( 'Bounce', 'otter-blocks' ),
+ label: __( 'Bounce', 'blocks-animation' ),
value: 'bounce'
},
{
- label: __( 'Bounce In', 'otter-blocks' ),
+ label: __( 'Bounce In', 'blocks-animation' ),
value: 'bounceIn'
},
{
- label: __( 'Bounce In Down', 'otter-blocks' ),
+ label: __( 'Bounce In Down', 'blocks-animation' ),
value: 'bounceInDown'
},
{
- label: __( 'Bounce In Left', 'otter-blocks' ),
+ label: __( 'Bounce In Left', 'blocks-animation' ),
value: 'bounceInLeft'
},
{
- label: __( 'Bounce In Right', 'otter-blocks' ),
+ label: __( 'Bounce In Right', 'blocks-animation' ),
value: 'bounceInRight'
},
{
- label: __( 'Bounce In Up', 'otter-blocks' ),
+ label: __( 'Bounce In Up', 'blocks-animation' ),
value: 'bounceInUp'
},
{
- label: __( 'Fade In', 'otter-blocks' ),
+ label: __( 'Fade In', 'blocks-animation' ),
value: 'fadeIn'
},
{
- label: __( 'Fade In Down', 'otter-blocks' ),
+ label: __( 'Fade In Down', 'blocks-animation' ),
value: 'fadeInDown'
},
{
- label: __( 'Fade In Down Big', 'otter-blocks' ),
+ label: __( 'Fade In Down Big', 'blocks-animation' ),
value: 'fadeInDownBig'
},
{
- label: __( 'Fade In Left', 'otter-blocks' ),
+ label: __( 'Fade In Left', 'blocks-animation' ),
value: 'fadeInLeft'
},
{
- label: __( 'Fade In Left Big', 'otter-blocks' ),
+ label: __( 'Fade In Left Big', 'blocks-animation' ),
value: 'fadeInLeftBig'
},
{
- label: __( 'Fade In Right', 'otter-blocks' ),
+ label: __( 'Fade In Right', 'blocks-animation' ),
value: 'fadeInRight'
},
{
- label: __( 'Fade In Right Big', 'otter-blocks' ),
+ label: __( 'Fade In Right Big', 'blocks-animation' ),
value: 'fadeInRightBig'
},
{
- label: __( 'Fade In Up', 'otter-blocks' ),
+ label: __( 'Fade In Up', 'blocks-animation' ),
value: 'fadeInUp'
},
{
- label: __( 'Fade In Top Left', 'otter-blocks' ),
+ label: __( 'Fade In Top Left', 'blocks-animation' ),
value: 'fadeInTopLeft'
},
{
- label: __( 'Fade In Top Right', 'otter-blocks' ),
+ label: __( 'Fade In Top Right', 'blocks-animation' ),
value: 'fadeInTopRight'
},
{
- label: __( 'Fade In Bottom Left', 'otter-blocks' ),
+ label: __( 'Fade In Bottom Left', 'blocks-animation' ),
value: 'fadeInBottomLeft'
},
{
- label: __( 'Fade In Bottom Right', 'otter-blocks' ),
+ label: __( 'Fade In Bottom Right', 'blocks-animation' ),
value: 'fadeInBottomRight'
},
{
- label: __( 'Flip', 'otter-blocks' ),
+ label: __( 'Flip', 'blocks-animation' ),
value: 'flip'
},
{
- label: __( 'Flip In X', 'otter-blocks' ),
+ label: __( 'Flip In X', 'blocks-animation' ),
value: 'flipInX'
},
{
- label: __( 'Flip In Y', 'otter-blocks' ),
+ label: __( 'Flip In Y', 'blocks-animation' ),
value: 'flipInY'
},
{
- label: __( 'Rotate In', 'otter-blocks' ),
+ label: __( 'Rotate In', 'blocks-animation' ),
value: 'rotateIn'
},
{
- label: __( 'Rotate In Down Left', 'otter-blocks' ),
+ label: __( 'Rotate In Down Left', 'blocks-animation' ),
value: 'rotateInDownLeft'
},
{
- label: __( 'Rotate In Down Right', 'otter-blocks' ),
+ label: __( 'Rotate In Down Right', 'blocks-animation' ),
value: 'rotateInDownRight'
},
{
- label: __( 'Rotate In Up Left', 'otter-blocks' ),
+ label: __( 'Rotate In Up Left', 'blocks-animation' ),
value: 'rotateInUpLeft'
},
{
- label: __( 'Rotate In Up Right', 'otter-blocks' ),
+ label: __( 'Rotate In Up Right', 'blocks-animation' ),
value: 'rotateInUpRight'
},
{
- label: __( 'Slide In Down', 'otter-blocks' ),
+ label: __( 'Slide In Down', 'blocks-animation' ),
value: 'slideInDown'
},
{
- label: __( 'Slide In Left', 'otter-blocks' ),
+ label: __( 'Slide In Left', 'blocks-animation' ),
value: 'slideInLeft'
},
{
- label: __( 'Slide In Right', 'otter-blocks' ),
+ label: __( 'Slide In Right', 'blocks-animation' ),
value: 'slideInRight'
},
{
- label: __( 'Slide In Up', 'otter-blocks' ),
+ label: __( 'Slide In Up', 'blocks-animation' ),
value: 'slideInUp'
},
{
- label: __( 'Zoom In', 'otter-blocks' ),
+ label: __( 'Zoom In', 'blocks-animation' ),
value: 'zoomIn'
},
{
- label: __( 'Zoom In Down', 'otter-blocks' ),
+ label: __( 'Zoom In Down', 'blocks-animation' ),
value: 'zoomInDown'
},
{
- label: __( 'Zoom In Left', 'otter-blocks' ),
+ label: __( 'Zoom In Left', 'blocks-animation' ),
value: 'zoomInLeft'
},
{
- label: __( 'Zoom In Right', 'otter-blocks' ),
+ label: __( 'Zoom In Right', 'blocks-animation' ),
value: 'zoomInRight'
},
{
- label: __( 'Zoom In Up', 'otter-blocks' ),
+ label: __( 'Zoom In Up', 'blocks-animation' ),
value: 'zoomInUp'
},
{
- label: __( 'Roll In', 'otter-blocks' ),
+ label: __( 'Roll In', 'blocks-animation' ),
value: 'rollIn'
},
{
- label: __( 'Light Speed In Right', 'otter-blocks' ),
+ label: __( 'Light Speed In Right', 'blocks-animation' ),
value: 'lightSpeedInRight'
},
{
- label: __( 'Light Speed In Left', 'otter-blocks' ),
+ label: __( 'Light Speed In Left', 'blocks-animation' ),
value: 'lightSpeedInLeft'
},
{
- label: __( 'Flash', 'otter-blocks' ),
+ label: __( 'Flash', 'blocks-animation' ),
value: 'flash'
},
{
- label: __( 'Pulse', 'otter-blocks' ),
+ label: __( 'Pulse', 'blocks-animation' ),
value: 'pulse'
},
{
- label: __( 'Rubber Band', 'otter-blocks' ),
+ label: __( 'Rubber Band', 'blocks-animation' ),
value: 'rubberBand'
},
{
- label: __( 'Shake X', 'otter-blocks' ),
+ label: __( 'Shake X', 'blocks-animation' ),
value: 'shakeX'
},
{
- label: __( 'Shake Y', 'otter-blocks' ),
+ label: __( 'Shake Y', 'blocks-animation' ),
value: 'shakeY'
},
{
- label: __( 'Head Shake', 'otter-blocks' ),
+ label: __( 'Head Shake', 'blocks-animation' ),
value: 'headShake'
},
{
- label: __( 'Swing', 'otter-blocks' ),
+ label: __( 'Swing', 'blocks-animation' ),
value: 'swing'
},
{
- label: __( 'TaDa', 'otter-blocks' ),
+ label: __( 'TaDa', 'blocks-animation' ),
value: 'tada'
},
{
- label: __( 'Wobble', 'otter-blocks' ),
+ label: __( 'Wobble', 'blocks-animation' ),
value: 'wobble'
},
{
- label: __( 'Jello', 'otter-blocks' ),
+ label: __( 'Jello', 'blocks-animation' ),
value: 'jello'
},
{
- label: __( 'Heart Beat', 'otter-blocks' ),
+ label: __( 'Heart Beat', 'blocks-animation' ),
value: 'heartBeat'
},
{
- label: __( 'Hinge', 'otter-blocks' ),
+ label: __( 'Hinge', 'blocks-animation' ),
value: 'hinge'
},
{
- label: __( 'Jack In The Box', 'otter-blocks' ),
+ label: __( 'Jack In The Box', 'blocks-animation' ),
value: 'jackInTheBox'
}
];
export const categories = [
{
- label: __( 'Backing', 'otter-blocks' ),
+ label: __( 'Backing', 'blocks-animation' ),
value: 'backInDown'
},
{
- label: __( 'Bouncing', 'otter-blocks' ),
+ label: __( 'Bouncing', 'blocks-animation' ),
value: 'bounce'
},
{
- label: __( 'Fading', 'otter-blocks' ),
+ label: __( 'Fading', 'blocks-animation' ),
value: 'fadeIn'
},
{
- label: __( 'Flipping', 'otter-blocks' ),
+ label: __( 'Flipping', 'blocks-animation' ),
value: 'flip'
},
{
- label: __( 'Rotating', 'otter-blocks' ),
+ label: __( 'Rotating', 'blocks-animation' ),
value: 'rotateIn'
},
{
- label: __( 'Sliding', 'otter-blocks' ),
+ label: __( 'Sliding', 'blocks-animation' ),
value: 'slideInDown'
},
{
- label: __( 'Zooming', 'otter-blocks' ),
+ label: __( 'Zooming', 'blocks-animation' ),
value: 'zoomIn'
},
{
- label: __( 'Rolling', 'otter-blocks' ),
+ label: __( 'Rolling', 'blocks-animation' ),
value: 'rollIn'
},
{
- label: __( 'Light Speed', 'otter-blocks' ),
+ label: __( 'Light Speed', 'blocks-animation' ),
value: 'lightSpeedInRight'
},
{
- label: __( 'Other', 'otter-blocks' ),
+ label: __( 'Other', 'blocks-animation' ),
value: 'flash'
}
];
@@ -319,70 +319,70 @@ export const outAnimation = [
export const delayList = [
{
- label: __( 'None', 'otter-blocks' ),
+ label: __( 'None', 'blocks-animation' ),
value: 'none'
},
{
- label: __( '100 Milliseconds', 'otter-blocks' ),
+ label: __( '100 Milliseconds', 'blocks-animation' ),
value: 'delay-100ms'
},
{
- label: __( '200 Milliseconds', 'otter-blocks' ),
+ label: __( '200 Milliseconds', 'blocks-animation' ),
value: 'delay-200ms'
},
{
- label: __( '500 Milliseconds', 'otter-blocks' ),
+ label: __( '500 Milliseconds', 'blocks-animation' ),
value: 'delay-500ms'
},
{
- label: __( 'One Second', 'otter-blocks' ),
+ label: __( 'One Second', 'blocks-animation' ),
value: 'delay-1s'
},
{
- label: __( 'Two Second', 'otter-blocks' ),
+ label: __( 'Two Second', 'blocks-animation' ),
value: 'delay-2s'
},
{
- label: __( 'Three Second', 'otter-blocks' ),
+ label: __( 'Three Second', 'blocks-animation' ),
value: 'delay-3s'
},
{
- label: __( 'Four Second', 'otter-blocks' ),
+ label: __( 'Four Second', 'blocks-animation' ),
value: 'delay-4s'
},
{
- label: __( 'Five Second', 'otter-blocks' ),
+ label: __( 'Five Second', 'blocks-animation' ),
value: 'delay-5s'
},
{
- label: __( 'Custom', 'otter-blocks' ),
+ label: __( 'Custom', 'blocks-animation' ),
value: 'o-anim-custom-delay'
}
];
export const speedList = [
{
- label: __( 'Slow', 'otter-blocks' ),
+ label: __( 'Slow', 'blocks-animation' ),
value: 'slow'
},
{
- label: __( 'Slower', 'otter-blocks' ),
+ label: __( 'Slower', 'blocks-animation' ),
value: 'slower'
},
{
- label: __( 'Default', 'otter-blocks' ),
+ label: __( 'Default', 'blocks-animation' ),
value: 'none'
},
{
- label: __( 'Fast', 'otter-blocks' ),
+ label: __( 'Fast', 'blocks-animation' ),
value: 'fast'
},
{
- label: __( 'Faster', 'otter-blocks' ),
+ label: __( 'Faster', 'blocks-animation' ),
value: 'faster'
},
{
- label: __( 'Custom', 'otter-blocks' ),
+ label: __( 'Custom', 'blocks-animation' ),
value: 'o-anim-custom-speed'
}
];
diff --git a/src/animation/editor.js b/src/animation/editor.js
index c23c58d3d..29ac655df 100644
--- a/src/animation/editor.js
+++ b/src/animation/editor.js
@@ -122,7 +122,7 @@ function AnimationControls({
const [ animation, setAnimation ] = useState( 'none' );
const [ delay, setDelay ] = useState( 'none' );
const [ speed, setSpeed ] = useState( 'none' );
- const [ currentAnimationLabel, setCurrentAnimationLabel ] = useState( __( 'None', 'otter-blocks' ) );
+ const [ currentAnimationLabel, setCurrentAnimationLabel ] = useState( __( 'None', 'blocks-animation' ) );
const [ customDelayValue, setCustomDelayValue ] = useState( 0 );
const [ customSpeedValue, setCustomSpeedValue ] = useState( 0 );
const [ playOnHover, setPlayOnHover ] = useState( false );
@@ -315,7 +315,7 @@ function AnimationControls({
return (
@@ -329,7 +329,7 @@ function AnimationControls({
{ 'none' !== animation && (
updateAnimConfig( AnimationType.default, delay, value, () => setDelay( value ), attributes, setAttributes ) }
@@ -338,7 +338,7 @@ function AnimationControls({
{
'o-anim-custom-delay' === delay && (
updateAnimConfig( AnimationType.default, 'o-anim-value-delay-', value ? `o-anim-value-delay-${value}` : undefined, () => setCustomDelayValue( value ), attributes, setAttributes ) }
min={ 0 }
@@ -347,11 +347,11 @@ function AnimationControls({
units={
[
{
- label: __( 'S', 'otter-blocks' ),
+ label: __( 'S', 'blocks-animation' ),
value: 's'
},
{
- label: __( 'MS', 'otter-blocks' ),
+ label: __( 'MS', 'blocks-animation' ),
value: 'ms'
}
]
@@ -361,7 +361,7 @@ function AnimationControls({
}
updateAnimConfig( AnimationType.default, speed, value, () => setSpeed( value ), attributes, setAttributes ) }
@@ -370,7 +370,7 @@ function AnimationControls({
{
'o-anim-custom-speed' === speed && (
updateAnimConfig( AnimationType.default, 'o-anim-value-speed-', `o-anim-value-speed-${value}`, () => setCustomSpeedValue( value ), attributes, setAttributes ) }
min={ 0 }
@@ -379,11 +379,11 @@ function AnimationControls({
units={
[
{
- label: __( 'S', 'otter-blocks' ),
+ label: __( 'S', 'blocks-animation' ),
value: 's'
},
{
- label: __( 'MS', 'otter-blocks' ),
+ label: __( 'MS', 'blocks-animation' ),
value: 'ms'
}
]
@@ -393,14 +393,14 @@ function AnimationControls({
}
updateAnimConfig( AnimationType.default, 'o-anim-hover', value ? 'o-anim-hover' : '', () => setPlayOnHover( value ), attributes, setAttributes ) }
/>
updateAnimConfig(
@@ -414,13 +414,13 @@ function AnimationControls({
setAttributes
)
}
- help={ __( 'This will offset the trigger of animation relative to the screen.', 'otter-blocks' ) }
+ help={ __( 'This will offset the trigger of animation relative to the screen.', 'blocks-animation' ) }
/>
{
Boolean( triggerOffset ) && (
)
}
@@ -446,36 +446,36 @@ function AnimationControls({
variant="secondary"
onClick={ replayAnimation }
>
- { __( 'Replay Animation', 'otter-blocks' ) }
+ { __( 'Replay Animation', 'blocks-animation' ) }
) }
- { __( 'You can add counting animation from the format toolbar of this block.', 'otter-blocks' ) }
- { __( 'Note: This feature is not available in all the blocks.', 'otter-blocks' ) }
+ { __( 'You can add counting animation from the format toolbar of this block.', 'blocks-animation' ) }
+ { __( 'Note: This feature is not available in all the blocks.', 'blocks-animation' ) }
- { __( 'You can add typing animation from the format toolbar of this block.', 'otter-blocks' ) }
- { __( 'Note: This feature is not available in all the blocks.', 'otter-blocks' ) }
+ { __( 'You can add typing animation from the format toolbar of this block.', 'blocks-animation' ) }
+ { __( 'Note: This feature is not available in all the blocks.', 'blocks-animation' ) }
diff --git a/src/animation/index.js b/src/animation/index.js
index b21fea478..039c1aae8 100644
--- a/src/animation/index.js
+++ b/src/animation/index.js
@@ -39,7 +39,7 @@ const BlockAnimation = ( el, props ) => {
Boolean( props?.attributes?.className?.includes( 'animated' ) ) }
- label={ __( 'Animations', 'otter-blocks' ) }
+ label={ __( 'Animations', 'blocks-animation' ) }
onDeselect={ () => window?.blocksAnimation?.removeAnimation() }
isShownByDefault={ showAsDefault }
>
diff --git a/src/animation/typing/index.js b/src/animation/typing/index.js
index a92126e3d..8c58478c5 100644
--- a/src/animation/typing/index.js
+++ b/src/animation/typing/index.js
@@ -26,7 +26,7 @@ const name = 'themeisle-blocks/typing-animation';
export const format = {
name,
- title: __( 'Typing Animation', 'otter-blocks' ),
+ title: __( 'Typing Animation', 'blocks-animation' ),
tagName: 'o-anim-typing',
className: null,
@@ -44,7 +44,7 @@ export const format = {
diff --git a/src/animation/typing/inline-controls.js b/src/animation/typing/inline-controls.js
index 76cbc9398..2340faec4 100644
--- a/src/animation/typing/inline-controls.js
+++ b/src/animation/typing/inline-controls.js
@@ -96,17 +96,17 @@ const InlineControls = ({
focusOnMount={ false }
className="o-animation-popover"
>
- { __( 'Typing Animation', 'otter-blocks' ) }
+ { __( 'Typing Animation', 'blocks-animation' ) }
updateAnimConfig( 'typing', typingDelay, value, () => setTypingDelay( value ), attributes, setAttributes ) }
/>
updateAnimConfig( 'typing', typingSpeed, value, () => setTypingSpeed( value ), attributes, setAttributes ) }
diff --git a/src/blocks/blocks/form/inspector.js b/src/blocks/blocks/form/inspector.js
index 0f1af355a..6f9ce466c 100644
--- a/src/blocks/blocks/form/inspector.js
+++ b/src/blocks/blocks/form/inspector.js
@@ -448,7 +448,7 @@ const Inspector = ({
) }
{ 'loading' === loadingState?.formOptions && (
@@ -709,7 +709,7 @@ const Inspector = ({
placeholder={ __( 'Error. Please try again.', 'otter-blocks' ) }
value={ formOptions.errorMessage }
onChange={ errorMessage => setFormOption({ errorMessage }) }
- help={ __( 'This message will be displayed when there is a problem with the server.' ) }
+ help={ __( 'This message will be displayed when there is a problem with the server.', 'otter-blocks' ) }
/>
diff --git a/src/blocks/blocks/google-map/inspector.js b/src/blocks/blocks/google-map/inspector.js
index b640fc665..1f1c3c23d 100644
--- a/src/blocks/blocks/google-map/inspector.js
+++ b/src/blocks/blocks/google-map/inspector.js
@@ -174,7 +174,7 @@ const Inspector = ({
title={ __( 'Location', 'otter-blocks' ) }
>
onChangeFeature({ action: 'update', index, value: { description }}) }
/>
diff --git a/src/blocks/blocks/section/columns/index.js b/src/blocks/blocks/section/columns/index.js
index 9aebf2901..b5920cd60 100644
--- a/src/blocks/blocks/section/columns/index.js
+++ b/src/blocks/blocks/section/columns/index.js
@@ -46,9 +46,8 @@ registerBlockType( name, {
{
name: 'core/paragraph',
attributes: {
- content: __(
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.'
- )
+ content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.',
+
}
},
{
@@ -60,9 +59,7 @@ registerBlockType( name, {
{
name: 'core/paragraph',
attributes: {
- content: __(
- 'Suspendisse commodo neque lacus, a dictum orci interdum et.'
- )
+ content: 'Suspendisse commodo neque lacus, a dictum orci interdum et.'
}
}
]
@@ -78,17 +75,13 @@ registerBlockType( name, {
{
name: 'core/paragraph',
attributes: {
- content: __(
- 'Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.'
- )
+ content: 'Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.'
}
},
{
name: 'core/paragraph',
attributes: {
- content: __(
- 'Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.'
- )
+ content: 'Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.'
}
}
]
diff --git a/src/blocks/blocks/sharing-icons/inspector.js b/src/blocks/blocks/sharing-icons/inspector.js
index 6e0adea43..9aa3c74c7 100644
--- a/src/blocks/blocks/sharing-icons/inspector.js
+++ b/src/blocks/blocks/sharing-icons/inspector.js
@@ -53,7 +53,7 @@ const Inspector = ({
setOpen( false )}
shouldCloseOnClickOutside={ false }
>
diff --git a/src/blocks/components/block-appender-button/index.tsx b/src/blocks/components/block-appender-button/index.tsx
index 66ae7fda6..f72f81706 100644
--- a/src/blocks/components/block-appender-button/index.tsx
+++ b/src/blocks/components/block-appender-button/index.tsx
@@ -32,7 +32,7 @@ type BlockAppenderButtonProps = {
* @param {Object} params.props - Additional button props.
*/
const BlockAppender = ({
- buttonText = __( 'Add Item' ),
+ buttonText = __( 'Add Item', 'otter-blocks' ),
clientId,
allowedBlock,
...props
diff --git a/src/blocks/components/responsive-control/index.js b/src/blocks/components/responsive-control/index.js
index a5593a539..b5ef501eb 100644
--- a/src/blocks/components/responsive-control/index.js
+++ b/src/blocks/components/responsive-control/index.js
@@ -80,7 +80,7 @@ const ResponsiveControl = ({
setView( 'Desktop' ) }
className={ classnames({
'is-selected': 'Desktop' === getView
@@ -88,7 +88,7 @@ const ResponsiveControl = ({
/>
setView( 'Tablet' ) }
className={ classnames({
'is-selected': 'Tablet' === getView
@@ -96,7 +96,7 @@ const ResponsiveControl = ({
/>
setView( 'Mobile' ) }
className={ classnames({
'is-selected': 'Mobile' === getView
diff --git a/src/blocks/plugins/ai-content/index.tsx b/src/blocks/plugins/ai-content/index.tsx
index 4445b76a0..957e386e1 100644
--- a/src/blocks/plugins/ai-content/index.tsx
+++ b/src/blocks/plugins/ai-content/index.tsx
@@ -333,7 +333,7 @@ const withConditions = createHigherOrderComponent( BlockEdit => {
{
({ onClose }) => (
diff --git a/src/blocks/plugins/feedback/feedback-form.js b/src/blocks/plugins/feedback/feedback-form.js
index 5dc9bf6d7..852af05e7 100644
--- a/src/blocks/plugins/feedback/feedback-form.js
+++ b/src/blocks/plugins/feedback/feedback-form.js
@@ -36,7 +36,7 @@ const collectedInfo = [
];
const helpTextByStatus = {
- error: __( 'There has been an error. Your feedback couldn\'t be sent.' ),
+ error: __( 'There has been an error. Your feedback couldn\'t be sent.', 'otter-blocks' ),
emptyFeedback: __( 'Please provide a feedback before submitting the form.', 'otter-blocks' )
};
diff --git a/src/blocks/plugins/otter-tools-inspector/index.tsx b/src/blocks/plugins/otter-tools-inspector/index.tsx
index 66da93e8a..22aa78848 100644
--- a/src/blocks/plugins/otter-tools-inspector/index.tsx
+++ b/src/blocks/plugins/otter-tools-inspector/index.tsx
@@ -40,7 +40,7 @@ const FeaturePanel = ({ props }) => {
return (
{ applyFilters( 'otter.blockTools', '', props ) }
diff --git a/src/blocks/plugins/sticky/edit.tsx b/src/blocks/plugins/sticky/edit.tsx
index c5806be99..8d297cfd0 100644
--- a/src/blocks/plugins/sticky/edit.tsx
+++ b/src/blocks/plugins/sticky/edit.tsx
@@ -105,7 +105,7 @@ const ProFeatures = () => {
- { __( 'Blocks CSS is not fully compatible with the Site Editor. We recommend installing Otter for Site Builder compatibility.', 'otter-blocks' ) }
+ { __( 'Blocks CSS is not fully compatible with the Site Editor. We recommend installing Otter for Site Builder compatibility.', 'blocks-css' ) }
@@ -148,12 +148,12 @@ const CSSEditor = ({
href={ window?.blocksCSS?.installOtter }
target="_blank"
>
- { __( 'Install Otter', 'otter-blocks' ) }
+ { __( 'Install Otter', 'blocks-css' ) }
) }
- {__( 'Add your custom CSS.', 'otter-blocks' )}
+ {__( 'Add your custom CSS.', 'blocks-css' )}
@@ -163,7 +163,7 @@ const CSSEditor = ({
status="error"
isDismissible={ false }
>
- { __( 'Attention needed! We found following errors with your code:', 'otter-blocks' ) }
+ { __( 'Attention needed! We found following errors with your code:', 'blocks-css' ) }
@@ -183,20 +183,20 @@ const CSSEditor = ({
onClick={() => checkInput( editorRef.current, true )}
style={{ width: 'max-content', marginBottom: '20px' }}
>
- { __( 'Override', 'otter-blocks' ) }
+ { __( 'Override', 'blocks-css' ) }
) }
- {__( 'Use', 'otter-blocks' )} selector
{__( 'to target block wrapper.', 'otter-blocks' )}
+ {__( 'Use', 'blocks-css' )} selector
{__( 'to target block wrapper.', 'blocks-css' )}
- {__( 'Example:', 'otter-blocks' )}
+ {__( 'Example:', 'blocks-css' )}
{'selector {\n background: #000;\n}\n\nselector img {\n border-radius: 100%;\n}'}
- {__( 'You can also use other CSS syntax here, such as media queries.', 'otter-blocks' )}
+ {__( 'You can also use other CSS syntax here, such as media queries.', 'blocks-css' )}
);
};
diff --git a/src/css/index.js b/src/css/index.js
index 4a12fb63f..4e60df97f 100644
--- a/src/css/index.js
+++ b/src/css/index.js
@@ -60,7 +60,7 @@ const Edit = ({
}) => {
return (
{
Boolean( props.attributes?.hasCustomCSS ) }
- label={ __( 'Custom CSS', 'otter-blocks' ) }
+ label={ __( 'Custom CSS', 'blocks-css' ) }
onDeselect={ () => {
props.setAttributes({
hasCustomCSS: false,
diff --git a/src/export-import/exporter.js b/src/export-import/exporter.js
index 36ce02ea6..0e3585b84 100644
--- a/src/export-import/exporter.js
+++ b/src/export-import/exporter.js
@@ -110,7 +110,7 @@ const BlocksExporter = () => {
createNotice(
'success',
- __( 'Blocks exported.', 'otter-blocks' ),
+ __( 'Blocks exported.', 'blocks-export-import' ),
{
type: 'snackbar'
}
@@ -126,7 +126,7 @@ const BlocksExporter = () => {
icon={ external }
onClick={ exportBlocks }
>
- { __( 'Export as JSON', 'otter-blocks' ) }
+ { __( 'Export as JSON', 'blocks-export-import' ) }
) }
diff --git a/src/export-import/importer.js b/src/export-import/importer.js
index 195bcd657..dfe3a637c 100644
--- a/src/export-import/importer.js
+++ b/src/export-import/importer.js
@@ -52,7 +52,7 @@ const BlocksImporter = ({
': ',
__(
'Sorry, only JSON files are supported here.',
- 'otter-blocks'
+ 'blocks-export-import'
)
];
noticeOperations.removeAllNotices();
@@ -70,7 +70,7 @@ const BlocksImporter = ({
} catch ( error ) {
noticeOperations.removeAllNotices();
noticeOperations.createErrorNotice(
- __( 'Invalid JSON file', 'otter-blocks' )
+ __( 'Invalid JSON file', 'blocks-export-import' )
);
setLoading( false );
return;
@@ -92,7 +92,7 @@ const BlocksImporter = ({
data.title ||
__(
'Untitled Reusable Block',
- 'otter-blocks'
+ 'blocks-export-import'
),
content: data.content,
status: 'publish'
@@ -105,7 +105,7 @@ const BlocksImporter = ({
noticeOperations.createErrorNotice(
__(
'Invalid Reusable Block JSON file',
- 'otter-blocks'
+ 'blocks-export-import'
)
);
setLoading( false );
@@ -138,10 +138,10 @@ const BlocksImporter = ({
return (
uploadImport( e.target.files ) }
isSecondary
>
- { __( 'Upload' ) }
+ { __( 'Upload', 'blocks-export-import' ) }
diff --git a/src/export-import/index.js b/src/export-import/index.js
index 2176eb3d3..974794862 100644
--- a/src/export-import/index.js
+++ b/src/export-import/index.js
@@ -18,7 +18,7 @@ import edit from './importer.js';
registerBlockType( 'themeisle-blocks/importer', {
apiVersion: 2,
- title: __( 'Import Blocks from JSON', 'otter-blocks' ),
+ title: __( 'Import Blocks from JSON', 'blocks-export-import' ),
description: __(
'Allows you import blocks from a JSON file.',
'blocks-export-import'
@@ -26,8 +26,8 @@ registerBlockType( 'themeisle-blocks/importer', {
icon: 'category',
category: 'widgets',
keywords: [
- __( 'JSON', 'otter-blocks' ),
- __( 'Importer', 'otter-blocks' ),
+ __( 'JSON', 'blocks-export-import' ),
+ __( 'Importer', 'blocks-export-import' ),
__( 'Import', 'blocks-export-import' )
],
attributes: {
diff --git a/src/pro/blocks/add-to-cart-button/edit.js b/src/pro/blocks/add-to-cart-button/edit.js
index 1e975db47..953c572f4 100644
--- a/src/pro/blocks/add-to-cart-button/edit.js
+++ b/src/pro/blocks/add-to-cart-button/edit.js
@@ -50,11 +50,11 @@ const Edit = ({
) : (
{
diff --git a/src/pro/blocks/add-to-cart-button/index.js b/src/pro/blocks/add-to-cart-button/index.js
index 175bd1475..d6fc8a643 100644
--- a/src/pro/blocks/add-to-cart-button/index.js
+++ b/src/pro/blocks/add-to-cart-button/index.js
@@ -30,9 +30,9 @@ if ( Boolean( window.otterPro.hasWooCommerce ) ) {
}
registerBlockType( name, {
- title: __( 'Add to Cart Button', 'otter-blocks' ),
+ title: __( 'Add to Cart Button', 'otter-pro' ),
...metadata,
- description: __( 'Display an Add to Cart button for your WooCommerce products. Powered by Otter.', 'otter-blocks' ),
+ description: __( 'Display an Add to Cart button for your WooCommerce products. Powered by Otter.', 'otter-pro' ),
icon,
keywords: [
'woocommerce',
@@ -45,16 +45,16 @@ if ( Boolean( window.otterPro.hasWooCommerce ) ) {
styles: [
{
name: 'default',
- label: __( 'Default', 'otter-blocks' ),
+ label: __( 'Default', 'otter-pro' ),
isDefault: true
},
{
name: 'primary',
- label: __( 'Primary', 'otter-blocks' )
+ label: __( 'Primary', 'otter-pro' )
},
{
name: 'secondary',
- label: __( 'Secondary', 'otter-blocks' )
+ label: __( 'Secondary', 'otter-pro' )
}
],
edit,
@@ -63,8 +63,8 @@ if ( Boolean( window.otterPro.hasWooCommerce ) ) {
} else {
registerBlockType( name, {
...metadata,
- title: __( 'Add to Cart Button', 'otter-blocks' ),
- description: __( 'Display an Add to Cart button for your WooCommerce products. Powered by Otter.', 'otter-blocks' ),
+ title: __( 'Add to Cart Button', 'otter-pro' ),
+ description: __( 'Display an Add to Cart button for your WooCommerce products. Powered by Otter.', 'otter-pro' ),
icon,
keywords: [
'woocommerce',
@@ -74,7 +74,7 @@ if ( Boolean( window.otterPro.hasWooCommerce ) ) {
supports: {
inserter: false
},
- edit: () => { __( 'You need to have WooCommerce installed to edit Add to Cart Button block.', 'otter-blocks' ) } ,
+ edit: () => { __( 'You need to have WooCommerce installed to edit Add to Cart Button block.', 'otter-pro' ) } ,
save: () => null
});
}
diff --git a/src/pro/blocks/add-to-cart-button/inspector.js b/src/pro/blocks/add-to-cart-button/inspector.js
index a031681db..a046b1675 100644
--- a/src/pro/blocks/add-to-cart-button/inspector.js
+++ b/src/pro/blocks/add-to-cart-button/inspector.js
@@ -23,10 +23,10 @@ const Inspector = ({
return (
{
@@ -36,8 +36,8 @@ const Inspector = ({
/>
setAttributes({ label }) }
/>
diff --git a/src/pro/blocks/business-hours/edit.js b/src/pro/blocks/business-hours/edit.js
index e70946ebd..6ea9a18f8 100644
--- a/src/pro/blocks/business-hours/edit.js
+++ b/src/pro/blocks/business-hours/edit.js
@@ -107,7 +107,7 @@ const Edit = ({
className="otter-business-hour__title"
>
{
setAttributes({ title });
@@ -126,51 +126,51 @@ const Edit = ({
[
'themeisle-blocks/business-hours-item',
{
- label: __( 'Monday', 'otter-blocks' ),
- time: __( '09:00 AM - 05:00 PM', 'otter-blocks' )
+ label: __( 'Monday', 'otter-pro' ),
+ time: __( '09:00 AM - 05:00 PM', 'otter-pro' )
}
],
[
'themeisle-blocks/business-hours-item',
{
- label: __( 'Tuesday', 'otter-blocks' ),
- time: __( '09:00 AM - 05:00 PM', 'otter-blocks' )
+ label: __( 'Tuesday', 'otter-pro' ),
+ time: __( '09:00 AM - 05:00 PM', 'otter-pro' )
}
],
[
'themeisle-blocks/business-hours-item',
{
- label: __( 'Wednesday', 'otter-blocks' ),
- time: __( '09:00 AM - 05:00 PM', 'otter-blocks' )
+ label: __( 'Wednesday', 'otter-pro' ),
+ time: __( '09:00 AM - 05:00 PM', 'otter-pro' )
}
],
[
'themeisle-blocks/business-hours-item',
{
- label: __( 'Thursday', 'otter-blocks' ),
- time: __( '09:00 AM - 05:00 PM', 'otter-blocks' )
+ label: __( 'Thursday', 'otter-pro' ),
+ time: __( '09:00 AM - 05:00 PM', 'otter-pro' )
}
],
[
'themeisle-blocks/business-hours-item',
{
- label: __( 'Friday', 'otter-blocks' ),
- time: __( '09:00 AM - 05:00 PM', 'otter-blocks' )
+ label: __( 'Friday', 'otter-pro' ),
+ time: __( '09:00 AM - 05:00 PM', 'otter-pro' )
}
],
[
'themeisle-blocks/business-hours-item',
{
- label: __( 'Saturday', 'otter-blocks' ),
- time: __( 'Closed', 'otter-blocks' ),
+ label: __( 'Saturday', 'otter-pro' ),
+ time: __( 'Closed', 'otter-pro' ),
timeColor: '#F8002A'
}
],
[
'themeisle-blocks/business-hours-item',
{
- label: __( 'Sunday', 'otter-blocks' ),
- time: __( 'Closed', 'otter-blocks' ),
+ label: __( 'Sunday', 'otter-pro' ),
+ time: __( 'Closed', 'otter-pro' ),
timeColor: '#F8002A'
}
]
diff --git a/src/pro/blocks/business-hours/index.js b/src/pro/blocks/business-hours/index.js
index b9080413d..cfcd5b248 100644
--- a/src/pro/blocks/business-hours/index.js
+++ b/src/pro/blocks/business-hours/index.js
@@ -30,8 +30,8 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
registerBlockType( name, {
...metadata,
- title: __( 'Business Hours', 'otter-blocks' ),
- description: __( 'Display your business schedule on your website. Powered by Otter.', 'otter-blocks' ),
+ title: __( 'Business Hours', 'otter-pro' ),
+ description: __( 'Display your business schedule on your website. Powered by Otter.', 'otter-pro' ),
icon,
keywords: [
'business',
@@ -45,12 +45,12 @@ registerBlockType( name, {
styles: [
{
name: 'default',
- label: __( 'Default', 'otter-blocks' ),
+ label: __( 'Default', 'otter-pro' ),
isDefault: true
},
{
name: 'black-white',
- label: __( 'Black & White', 'otter-blocks' )
+ label: __( 'Black & White', 'otter-pro' )
}
],
edit,
diff --git a/src/pro/blocks/business-hours/inspector.js b/src/pro/blocks/business-hours/inspector.js
index cfa60acb4..0f8f1d0d6 100644
--- a/src/pro/blocks/business-hours/inspector.js
+++ b/src/pro/blocks/business-hours/inspector.js
@@ -26,10 +26,10 @@ const Inspector = ({
return (
setAttributes({ gap: Number( value ) }) }
min={ 0 }
@@ -37,7 +37,7 @@ const Inspector = ({
/>
setAttributes({ titleFontSize: Number( value ) }) }
step={ 0.1 }
@@ -46,7 +46,7 @@ const Inspector = ({
/>
setAttributes({ itemsFontSize: Number( value ) }) }
step={ 0.1 }
@@ -55,7 +55,7 @@ const Inspector = ({
/>
setAttributes({ borderRadius: Number( value ) }) }
step={ 0.1 }
@@ -64,7 +64,7 @@ const Inspector = ({
/>
setAttributes({ borderWidth: Number( value ) }) }
step={ 0.1 }
@@ -74,25 +74,25 @@ const Inspector = ({
setAttributes({ titleColor }),
- label: __( 'Title', 'otter-blocks' ),
+ label: __( 'Title', 'otter-pro' ),
isShownByDefault: true
},
{
value: attributes.backgroundColor,
onChange: backgroundColor => setAttributes({ backgroundColor }),
- label: __( 'Background', 'otter-blocks' ),
+ label: __( 'Background', 'otter-pro' ),
isShownByDefault: true
},
{
value: attributes.borderColor,
onChange: borderColor => setAttributes({ borderColor }),
- label: __( 'Border', 'otter-blocks' ),
+ label: __( 'Border', 'otter-pro' ),
isShownByDefault: true
}
] }
diff --git a/src/pro/blocks/business-hours/item/edit.js b/src/pro/blocks/business-hours/item/edit.js
index 2512459a6..24116ae77 100644
--- a/src/pro/blocks/business-hours/item/edit.js
+++ b/src/pro/blocks/business-hours/item/edit.js
@@ -65,7 +65,7 @@ const Edit = ({
} }
>
{
setAttributes({ label });
@@ -81,7 +81,7 @@ const Edit = ({
} }
>
{
setAttributes({ time });
diff --git a/src/pro/blocks/business-hours/item/index.js b/src/pro/blocks/business-hours/item/index.js
index 78d45f115..ff3db06d4 100644
--- a/src/pro/blocks/business-hours/item/index.js
+++ b/src/pro/blocks/business-hours/item/index.js
@@ -18,8 +18,8 @@ const { name } = metadata;
registerBlockType( name, {
...metadata,
- title: __( 'Business Hours Item', 'otter-blocks' ),
- description: __( 'Item used by Business Hours block to display the time. Powered by Otter.', 'otter-blocks' ),
+ title: __( 'Business Hours Item', 'otter-pro' ),
+ description: __( 'Item used by Business Hours block to display the time. Powered by Otter.', 'otter-pro' ),
icon,
parent: [ 'themeisle-blocks/business-hours' ],
category: 'themeisle-blocks',
diff --git a/src/pro/blocks/business-hours/item/inspector.js b/src/pro/blocks/business-hours/item/inspector.js
index 67d63727f..2a00ff1f8 100644
--- a/src/pro/blocks/business-hours/item/inspector.js
+++ b/src/pro/blocks/business-hours/item/inspector.js
@@ -16,25 +16,25 @@ const Inspector = ({
return (
setAttributes({ backgroundColor }),
- label: __( 'Background', 'otter-blocks' ),
+ label: __( 'Background', 'otter-pro' ),
isShownByDefault: true
},
{
value: attributes.labelColor,
onChange: labelColor => setAttributes({ labelColor }),
- label: __( 'Label', 'otter-blocks' ),
+ label: __( 'Label', 'otter-pro' ),
isShownByDefault: true
},
{
value: attributes.timeColor,
onChange: timeColor => setAttributes({ timeColor }),
- label: __( 'Time', 'otter-blocks' ),
+ label: __( 'Time', 'otter-pro' ),
isShownByDefault: true
}
] }
diff --git a/src/pro/blocks/file/edit.js b/src/pro/blocks/file/edit.js
index 8b02299cd..2287b871a 100644
--- a/src/pro/blocks/file/edit.js
+++ b/src/pro/blocks/file/edit.js
@@ -102,13 +102,13 @@ const Edit = ({
}
}, ( res, error ) => {
if ( error ) {
- createNotice( 'error', __( 'Error saving File Field settings.', 'otter-blocks' ), {
+ createNotice( 'error', __( 'Error saving File Field settings.', 'otter-pro' ), {
isDismissible: true,
type: 'snackbar',
id: 'file-field-option-error'
});
} else {
- createNotice( 'info', __( 'File Field settings saved.', 'otter-blocks' ), {
+ createNotice( 'info', __( 'File Field settings saved.', 'otter-pro' ), {
isDismissible: true,
type: 'snackbar',
id: 'file-field-option-success'
@@ -141,7 +141,7 @@ const Edit = ({
className="otter-form-input-label"
>
setAttributes({ label }) }
diff --git a/src/pro/blocks/file/index.js b/src/pro/blocks/file/index.js
index 22452818b..d3b02c8f5 100644
--- a/src/pro/blocks/file/index.js
+++ b/src/pro/blocks/file/index.js
@@ -30,8 +30,8 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
registerBlockType( name, {
...metadata,
- title: __( 'File Field', 'otter-blocks' ),
- description: __( 'Display a file field for uploading.', 'otter-blocks' ),
+ title: __( 'File Field', 'otter-pro' ),
+ description: __( 'Display a file field for uploading.', 'otter-pro' ),
icon,
keywords: [
'input',
diff --git a/src/pro/blocks/file/inspector.js b/src/pro/blocks/file/inspector.js
index ad8d4d4c0..8db46486f 100644
--- a/src/pro/blocks/file/inspector.js
+++ b/src/pro/blocks/file/inspector.js
@@ -37,7 +37,7 @@ const ProPreview = ({ attributes }) => {
{} }
/>
@@ -45,51 +45,51 @@ const ProPreview = ({ attributes }) => {
{} } />
{} }
- help={ __( 'You may need to contact your hosting provider to increase file sizes.', 'otter-blocks' ) }
+ help={ __( 'You may need to contact your hosting provider to increase file sizes.', 'otter-pro' ) }
/>
{} }
- help={ __( 'Add the allowed files types that can be loaded. E.g.: jpg, zip, pdf.', 'otter-blocks' ) }
+ help={ __( 'Add the allowed files types that can be loaded. E.g.: jpg, zip, pdf.', 'otter-pro' ) }
/>
{} }
/>
{} }
/>
{} }
/>
{} }
- placeholder={ __( 'photos', 'otter-blocks' ) }
+ placeholder={ __( 'photos', 'otter-pro' ) }
/>
{
attributes.multipleFiles && (
{} }
@@ -98,8 +98,8 @@ const ProPreview = ({ attributes }) => {
}
{} }
/>
@@ -107,7 +107,7 @@ const ProPreview = ({ attributes }) => {
{ ! Boolean( window.themeisleGutenberg.hasPro ) && (
{ __( 'Get more options with Otter Pro.', 'otter-blocks' ) } }
+ notice={ { __( 'Get more options with Otter Pro.', 'otter-pro' ) } }
variant="upsell"
/> ) }
@@ -134,18 +134,18 @@ const Inspector = ({
return (
selectForm?.() }
>
- { __( 'Back to the Form', 'otter-blocks' ) }
+ { __( 'Back to the Form', 'otter-pro' ) }
{
@@ -168,13 +168,13 @@ const Inspector = ({
setAttributes({ labelColor }),
- label: __( 'Label Color', 'otter-blocks' )
+ label: __( 'Label Color', 'otter-pro' )
}
] }
/>
diff --git a/src/pro/blocks/form-hidden-field/edit.js b/src/pro/blocks/form-hidden-field/edit.js
index 25b0c2546..d1e61c0bc 100644
--- a/src/pro/blocks/form-hidden-field/edit.js
+++ b/src/pro/blocks/form-hidden-field/edit.js
@@ -46,7 +46,7 @@ const Edit = ({
const placeholder = attributes.paramName ? sprintf(
/* translators: %s: URL parameter name */
- __( 'Get the value of the URL param: %s', 'otter-blocks' ),
+ __( 'Get the value of the URL param: %s', 'otter-pro' ),
attributes.paramName
) : '';
@@ -71,10 +71,10 @@ const Edit = ({
className="otter-form-input-label"
>
- { __( 'Hidden Field', 'otter-blocks' ) }
+ { __( 'Hidden Field', 'otter-pro' ) }
setAttributes({ label }) }
diff --git a/src/pro/blocks/form-hidden-field/index.js b/src/pro/blocks/form-hidden-field/index.js
index b2088b334..e75673ae4 100644
--- a/src/pro/blocks/form-hidden-field/index.js
+++ b/src/pro/blocks/form-hidden-field/index.js
@@ -34,8 +34,8 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
registerBlockType( name, {
...metadata,
- title: __( 'Hidden Field', 'otter-blocks' ),
- description: __( 'A field used for adding extra metadata to the Form via URL params.', 'otter-blocks' ),
+ title: __( 'Hidden Field', 'otter-pro' ),
+ description: __( 'A field used for adding extra metadata to the Form via URL params.', 'otter-pro' ),
icon,
edit,
save: () => null,
diff --git a/src/pro/blocks/form-hidden-field/inspector.js b/src/pro/blocks/form-hidden-field/inspector.js
index 969e27c14..299e394e7 100644
--- a/src/pro/blocks/form-hidden-field/inspector.js
+++ b/src/pro/blocks/form-hidden-field/inspector.js
@@ -45,18 +45,18 @@ const Inspector = ({
return (
selectForm?.() }
>
- { __( 'Back to the Form', 'otter-blocks' ) }
+ { __( 'Back to the Form', 'otter-pro' ) }
{
@@ -67,44 +67,44 @@ const Inspector = ({
/>
setAttributes({ label }) }
- help={ __( 'The label will be used as the field name.', 'otter-blocks' ) }
+ help={ __( 'The label will be used as the field name.', 'otter-pro' ) }
disabled={! Boolean( window?.otterPro?.isActive )}
/>
setAttributes({ paramName }) }
- help={ __( 'The query parameter name that is used in URL. If the param is present, its value will be extracted and send with the Form.', 'otter-blocks' ) }
- placeholder={ __( 'e.g. utm_source', 'otter-blocks' ) }
+ help={ __( 'The query parameter name that is used in URL. If the param is present, its value will be extracted and send with the Form.', 'otter-pro' ) }
+ placeholder={ __( 'e.g. utm_source', 'otter-pro' ) }
disabled={! Boolean( window?.otterPro?.isActive )}
/>
setAttributes({ defaultValue }) }
- placeholder={ __( 'e.g. medium', 'otter-blocks' ) }
+ placeholder={ __( 'e.g. medium', 'otter-pro' ) }
disabled={! Boolean( window?.otterPro?.isActive )}
/>
setAttributes({ mappedName }) }
- placeholder={ __( 'car_type', 'otter-blocks' ) }
+ placeholder={ __( 'car_type', 'otter-pro' ) }
disabled={! Boolean( window?.otterPro?.isActive )}
/>
{ ! Boolean( window?.otterPro?.isActive ) && (
)
diff --git a/src/pro/blocks/form-stripe-field/edit.js b/src/pro/blocks/form-stripe-field/edit.js
index 2f18641d2..c865f19dc 100644
--- a/src/pro/blocks/form-stripe-field/edit.js
+++ b/src/pro/blocks/form-stripe-field/edit.js
@@ -167,7 +167,7 @@ const Edit = ({
const saveApiKey = () => {
setCanRetrieveProducts( false );
- updateOption( 'themeisle_stripe_api_key', apiKey?.replace?.( /\s/g, '' ), __( 'Stripe API Key saved!', 'otter-blocks' ), 'stripe-api-key', reset );
+ updateOption( 'themeisle_stripe_api_key', apiKey?.replace?.( /\s/g, '' ), __( 'Stripe API Key saved!', 'otter-pro' ), 'stripe-api-key', reset );
};
@@ -188,7 +188,7 @@ const Edit = ({
if ( error ) {
createNotice(
'info',
- __( 'Error saving Stripe product on Form.', 'otter-blocks' ),
+ __( 'Error saving Stripe product on Form.', 'otter-pro' ),
{
type: 'snackbar',
isDismissible: true,
@@ -198,7 +198,7 @@ const Edit = ({
} else {
createNotice(
'success',
- __( 'Form Stripe product saved.', 'otter-blocks' ),
+ __( 'Form Stripe product saved.', 'otter-pro' ),
{
type: 'snackbar',
isDismissible: true,
@@ -259,13 +259,13 @@ const Edit = ({
{
( 'loading' === status || 'saving' === status ) && (
- { __( 'Checking the API Key…', 'otter-blocks' ) }
+ { __( 'Checking the API Key…', 'otter-pro' ) }
)
@@ -295,9 +295,9 @@ const Edit = ({
- { __( 'Save', 'otter-blocks' ) }
+ { __( 'Save', 'otter-pro' ) }
- { __( 'You can also set it from Dashboard', 'otter-blocks' ) }
+ { __( 'You can also set it from Dashboard', 'otter-pro' ) }
)
}
@@ -324,7 +324,7 @@ const Edit = ({
{
'error' === status && (
- {__( 'An error occurred during API Key checking.', 'otter-blocks' )}
+ {__( 'An error occurred during API Key checking.', 'otter-pro' )}
)
}
@@ -334,11 +334,11 @@ const Edit = ({
{ ! isLoadingProducts && (
)}
- { 'success' === view && ( attributes.successMessage || __( 'Your payment was successful. If you have any questions, please email orders@example.com.', 'otter-blocks' ) ) }
- { 'cancel' === view && ( attributes.cancelMessage || __( 'Your payment was unsuccessful. If you have any questions, please email orders@example.com.', 'otter-blocks' ) ) }
+ { 'success' === view && ( attributes.successMessage || __( 'Your payment was successful. If you have any questions, please email orders@example.com.', 'otter-pro' ) ) }
+ { 'cancel' === view && ( attributes.cancelMessage || __( 'Your payment was unsuccessful. If you have any questions, please email orders@example.com.', 'otter-pro' ) ) }
);
diff --git a/src/pro/blocks/form-stripe-field/index.js b/src/pro/blocks/form-stripe-field/index.js
index b5e32170f..facbbf925 100644
--- a/src/pro/blocks/form-stripe-field/index.js
+++ b/src/pro/blocks/form-stripe-field/index.js
@@ -34,8 +34,8 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
registerBlockType( name, {
...metadata,
- title: __( 'Stripe Field', 'otter-blocks' ),
- description: __( 'A field used for adding Stripe products to the form.', 'otter-blocks' ),
+ title: __( 'Stripe Field', 'otter-pro' ),
+ description: __( 'A field used for adding Stripe products to the form.', 'otter-pro' ),
icon,
edit,
save: () => null,
diff --git a/src/pro/blocks/form-stripe-field/inspector.js b/src/pro/blocks/form-stripe-field/inspector.js
index 7bb4a58a3..056341d6b 100644
--- a/src/pro/blocks/form-stripe-field/inspector.js
+++ b/src/pro/blocks/form-stripe-field/inspector.js
@@ -59,18 +59,18 @@ const Inspector = ({
selectForm?.() }
>
- { __( 'Back to the Form', 'otter-blocks' ) }
+ { __( 'Back to the Form', 'otter-pro' ) }
{
@@ -83,18 +83,18 @@ const Inspector = ({
setAttributes({ mappedName }) }
- placeholder={ __( 'product', 'otter-blocks' ) }
+ placeholder={ __( 'product', 'otter-pro' ) }
/>
{ ! Boolean( window?.otterPro?.isActive ) && (
)
@@ -110,15 +110,15 @@ const Inspector = ({
{ ! isLoadingProducts && (
setAttributes({ labelColor }),
- label: __( 'Label Color', 'otter-blocks' )
+ label: __( 'Label Color', 'otter-pro' )
},
{
value: attributes.borderColor,
onChange: borderColor => setAttributes({ borderColor }),
- label: __( 'Border Color', 'otter-blocks' )
+ label: __( 'Border Color', 'otter-pro' )
}
] }
/>
setAttributes({ borderWidth }) }
/>
setAttributes({ borderRadius }) }
/>
- { __( 'Save API Key', 'otter-blocks' ) }
+ { __( 'Save API Key', 'otter-pro' ) }
diff --git a/src/pro/blocks/modal/edit.js b/src/pro/blocks/modal/edit.js
index ce95a6366..6cd6b70de 100644
--- a/src/pro/blocks/modal/edit.js
+++ b/src/pro/blocks/modal/edit.js
@@ -179,7 +179,7 @@ const Edit = ({
createBlock(
'core/button',
{
- text: __( 'Open Modal', 'otter-blocks' ),
+ text: __( 'Open Modal', 'otter-pro' ),
anchor: modalAnchor
}
)
@@ -204,7 +204,7 @@ const Edit = ({
icon={ external }
onClick={ () => setEditing( true ) }
>
- { __( 'Edit Modal', 'otter-blocks' ) }
+ { __( 'Edit Modal', 'otter-pro' ) }
{ isEditing && (
@@ -242,8 +242,8 @@ const Edit = ({
},
[
[ 'core/image', { height: '150px' }],
- [ 'core/heading', { placeholder: __( 'Modal Title' ) }],
- [ 'core/paragraph', { placeholder: __( 'Modal Content' ) }]
+ [ 'core/heading', { placeholder: __( 'Modal Title', 'otter-pro' ) }],
+ [ 'core/paragraph', { placeholder: __( 'Modal Content', 'otter-pro' ) }]
]
]
]} />
diff --git a/src/pro/blocks/modal/index.js b/src/pro/blocks/modal/index.js
index e125dcb46..625932526 100644
--- a/src/pro/blocks/modal/index.js
+++ b/src/pro/blocks/modal/index.js
@@ -28,8 +28,8 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
registerBlockType( name, {
...metadata,
- title: __( 'Modal', 'otter-blocks' ),
- description: __( 'Display your content in beautiful Modal with many customization options. Powered by Otter.', 'otter-blocks' ),
+ title: __( 'Modal', 'otter-pro' ),
+ description: __( 'Display your content in beautiful Modal with many customization options. Powered by Otter.', 'otter-pro' ),
icon,
keywords: [
'modal',
diff --git a/src/pro/blocks/modal/inspector.js b/src/pro/blocks/modal/inspector.js
index af04cc852..37d901d18 100644
--- a/src/pro/blocks/modal/inspector.js
+++ b/src/pro/blocks/modal/inspector.js
@@ -69,13 +69,13 @@ const Inspector = ({
return (
setAttributes({ showClose: ! attributes.showClose }) }
/>
setAttributes({ outsideClose: ! attributes.outsideClose }) }
/>
@@ -85,17 +85,17 @@ const Inspector = ({
return (
- { applyFilters( 'otter.feedback', '', 'popup-block', __( 'Help us improve this block', 'otter-blocks' ) ) }
+ { applyFilters( 'otter.feedback', '', 'popup-block', __( 'Help us improve this block', 'otter-pro' ) ) }
setAttributes({ anchor }) }
/>
setAttributes({ anchorClose: ! attributes.anchorClose }) }
/>
{ attributes.anchorClose && (
setAttributes({ closeAnchor }) }
/>
@@ -132,11 +132,11 @@ const Inspector = ({
setAttributes({ backgroundColor }),
- label: __( 'Background', 'otter-blocks' ),
+ label: __( 'Background', 'otter-pro' ),
isShownByDefault: false
},
{
value: attributes.closeColor,
onChange: closeColor => setAttributes({ closeColor }),
- label: __( 'Close Button', 'otter-blocks' ),
+ label: __( 'Close Button', 'otter-pro' ),
isShownByDefault: false
},
{
value: attributes.overlayColor,
onChange: overlayColor => setAttributes({ overlayColor }),
- label: __( 'Overlay', 'otter-blocks' ),
+ label: __( 'Overlay', 'otter-pro' ),
isShownByDefault: false
},
{
value: attributes.borderColor,
onChange: borderColor => setAttributes({ borderColor }),
- label: __( 'Border', 'otter-blocks' ),
+ label: __( 'Border', 'otter-pro' ),
isShownByDefault: false
}
] }
/>
setAttributes({ overlayOpacity: value !== undefined ? Number( value ) : undefined }) }
@@ -277,23 +277,23 @@ const Inspector = ({
setAttributes({ showClose: ! attributes.showClose }) }
/>
{
setAttributes({
@@ -318,7 +318,7 @@ const Inspector = ({
{
setAttributes({
diff --git a/src/pro/blocks/review-comparison/controls.js b/src/pro/blocks/review-comparison/controls.js
index f36626c25..93a189164 100644
--- a/src/pro/blocks/review-comparison/controls.js
+++ b/src/pro/blocks/review-comparison/controls.js
@@ -22,7 +22,7 @@ const Controls = ({
diff --git a/src/pro/blocks/review-comparison/edit.js b/src/pro/blocks/review-comparison/edit.js
index 102f56000..e585a20a9 100644
--- a/src/pro/blocks/review-comparison/edit.js
+++ b/src/pro/blocks/review-comparison/edit.js
@@ -152,7 +152,7 @@ const Edit = ({
});
tableImages.push( { review.attrs.image && } );
- tableName.push( { review.attrs.title || __( 'Untitled review', 'otter-blocks' ) } );
+ tableName.push( { review.attrs.title || __( 'Untitled review', 'otter-pro' ) } );
tablePrice.push( { review.attrs.discounted ? { currency + review.attrs.price } { currency + review.attrs.discounted } : ( review.attrs.price ? ( currency + review.attrs.price ) : '-' ) } );
tableRating.push( { getStars( overallRatings ) }
);
tableDescription.push( );
@@ -234,32 +234,32 @@ const Edit = ({
- { __( 'Name', 'otter-blocks' ) }
+ { __( 'Name', 'otter-pro' ) }
{ tableName }
- { __( 'Price', 'otter-blocks' ) }
+ { __( 'Price', 'otter-pro' ) }
{ tablePrice }
- { __( 'Rating', 'otter-blocks' ) }
+ { __( 'Rating', 'otter-pro' ) }
{ tableRating }
- { __( 'Description', 'otter-blocks' ) }
+ { __( 'Description', 'otter-pro' ) }
{ tableDescription }
- { __( 'Statistics', 'otter-blocks' ) }
+ { __( 'Statistics', 'otter-pro' ) }
{ tableStatistics }
- { __( 'Buy this product', 'otter-blocks' ) }
+ { __( 'Buy this product', 'otter-pro' ) }
{ tableLinks }
diff --git a/src/pro/blocks/review-comparison/index.js b/src/pro/blocks/review-comparison/index.js
index 9d830a8f0..118cae0f9 100644
--- a/src/pro/blocks/review-comparison/index.js
+++ b/src/pro/blocks/review-comparison/index.js
@@ -28,8 +28,8 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
registerBlockType( name, {
...metadata,
- title: __( 'Review Comparison Table', 'otter-blocks' ),
- description: __( 'A way to compare different product reviews made on the website. Powered by Otter.', 'otter-blocks' ),
+ title: __( 'Review Comparison Table', 'otter-pro' ),
+ description: __( 'A way to compare different product reviews made on the website. Powered by Otter.', 'otter-pro' ),
icon,
keywords: [
'product',
diff --git a/src/pro/blocks/review-comparison/inspector.js b/src/pro/blocks/review-comparison/inspector.js
index 8857c2f58..be8c9c513 100644
--- a/src/pro/blocks/review-comparison/inspector.js
+++ b/src/pro/blocks/review-comparison/inspector.js
@@ -21,19 +21,19 @@ const Inspector = ({
return (
setAttributes({ buttonColor: value }),
- label: __( 'Button', 'otter-blocks' ),
+ label: __( 'Button', 'otter-pro' ),
isShownByDefault: true
},
{
value: attributes.buttonText,
onChange: value => setAttributes({ buttonText: value }),
- label: __( 'Button text', 'otter-blocks' ),
+ label: __( 'Button text', 'otter-pro' ),
isShownByDefault: true
}
] }
diff --git a/src/pro/blocks/review-comparison/placeholder.js b/src/pro/blocks/review-comparison/placeholder.js
index 7cf844858..8d35da248 100644
--- a/src/pro/blocks/review-comparison/placeholder.js
+++ b/src/pro/blocks/review-comparison/placeholder.js
@@ -55,7 +55,7 @@ const BlockPlaceholder = ({
toggleReview( value ) }
/>
@@ -68,7 +68,7 @@ const BlockPlaceholder = ({
}).map( value => {
const values = value.split( '-' );
const review = data.find( review => review.ID === Number( values[0]) && review.attrs.id.slice( review.attrs.id.length - 8 ) === values[1]);
- const label = review.attrs.title || __( 'Untitled review', 'otter-blocks' );
+ const label = review.attrs.title || __( 'Untitled review', 'otter-pro' );
return {
label,
@@ -78,17 +78,17 @@ const BlockPlaceholder = ({
return (
{ isLoading && }
- { isError && __( 'There seems to have been an error.', 'otter-blocks' ) }
+ { isError && __( 'There seems to have been an error.', 'otter-pro' ) }
- { ( isComplete && ! Boolean( data.length ) ) && __( 'No reviews found.', 'otter-blocks' ) }
+ { ( isComplete && ! Boolean( data.length ) ) && __( 'No reviews found.', 'otter-pro' ) }
{ ( isComplete && Boolean( data.length ) ) && (
@@ -97,7 +97,7 @@ const BlockPlaceholder = ({
{
/* translators: %s Number of selected reviews. */
- sprintf( __( '%s reviews selected', 'otter-blocks' ), attributes.reviews.length )
+ sprintf( __( '%s reviews selected', 'otter-pro' ), attributes.reviews.length )
}
@@ -111,19 +111,19 @@ const BlockPlaceholder = ({
- { data.filter( review => ( review.attrs.title || __( 'Untitled review', 'otter-blocks' ) ).toLowerCase().includes( query.toLowerCase() ) ).map( review => {
+ { data.filter( review => ( review.attrs.title || __( 'Untitled review', 'otter-pro' ) ).toLowerCase().includes( query.toLowerCase() ) ).map( review => {
const ID = review.ID + '-' + review.attrs.id.slice( review.attrs.id.length - 8 );
return (
toggleReview( ID ) }
/>
@@ -135,7 +135,7 @@ const BlockPlaceholder = ({
isPrimary
onClick={ onComplete }
>
- { __( 'Done', 'otter-blocks' ) }
+ { __( 'Done', 'otter-pro' ) }
) }
diff --git a/src/pro/blocks/woo-comparison/index.js b/src/pro/blocks/woo-comparison/index.js
index f658a55cc..25b281a87 100644
--- a/src/pro/blocks/woo-comparison/index.js
+++ b/src/pro/blocks/woo-comparison/index.js
@@ -53,15 +53,15 @@ const edit = ({
return (
-
{ __( 'You need to install the latest version of Neve with Sparks for WooCommerce to use WooCommerce Comparison Table.', 'otter-blocks' ) }
+
{ __( 'You need to install the latest version of Neve with Sparks for WooCommerce to use WooCommerce Comparison Table.', 'otter-pro' ) }
);
};
registerBlockType( name, {
...metadata,
- title: __( 'WooCommerce Comparison Table', 'otter-blocks' ),
- description: __( 'A way to compare different WooCommerce products made on the website.', 'otter-blocks' ),
+ title: __( 'WooCommerce Comparison Table', 'otter-pro' ),
+ description: __( 'A way to compare different WooCommerce products made on the website.', 'otter-pro' ),
icon: 'editor-table',
keywords: [
'woocommerce',
diff --git a/src/pro/components/acf-image-select/index.js b/src/pro/components/acf-image-select/index.js
index d53b4ca2a..ceeb215ce 100644
--- a/src/pro/components/acf-image-select/index.js
+++ b/src/pro/components/acf-image-select/index.js
@@ -49,7 +49,7 @@ const ACFImageSelect = ({
value={ value }
options={ [
{
- label: __( 'Select a field', 'otter-blocks' ),
+ label: __( 'Select a field', 'otter-pro' ),
value: 'none'
},
...fields
diff --git a/src/pro/components/autoresponder/index.js b/src/pro/components/autoresponder/index.js
index aa62ceb68..4c677bd77 100644
--- a/src/pro/components/autoresponder/index.js
+++ b/src/pro/components/autoresponder/index.js
@@ -11,14 +11,14 @@ const AutoresponderBodyModal = ({ value, onChange, area, addExtraMargin }) => {
<>
{ isOpen && (
setOpen( false )}
shouldCloseOnClickOutside={ false }
>
@@ -29,7 +29,7 @@ const AutoresponderBodyModal = ({ value, onChange, area, addExtraMargin }) => {
onClick={() => setOpen( true )}
className={ classNames({ 'o-autoresponder-margin': Boolean( addExtraMargin ) }) }
>
- { __( 'Add Autoresponder Body', 'otter-blocks' ) }
+ { __( 'Add Autoresponder Body', 'otter-pro' ) }
>
);
diff --git a/src/pro/components/inactive/index.js b/src/pro/components/inactive/index.js
index c307eb724..2c64383a6 100644
--- a/src/pro/components/inactive/index.js
+++ b/src/pro/components/inactive/index.js
@@ -15,9 +15,9 @@ const Inactive = ({
}) => {
const instructions = sprintf(
// translators: %1$s: block name, %2$s: action (renew or activate)
- __( 'You need to %2$s your Otter Pro license in order to use %1$s block.', 'otter-blocks' ),
+ __( 'You need to %2$s your Otter Pro license in order to use %1$s block.', 'otter-pro' ),
label,
- Boolean( window.otterPro.isExpired ) ? __( 'renew', 'otter-blocks' ) : __( 'activate', 'otter-blocks' )
+ Boolean( window.otterPro.isExpired ) ? __( 'renew', 'otter-pro' ) : __( 'activate', 'otter-pro' )
);
return (
diff --git a/src/pro/components/webhook-editor/index.tsx b/src/pro/components/webhook-editor/index.tsx
index 070ab31ab..eeacf31b3 100644
--- a/src/pro/components/webhook-editor/index.tsx
+++ b/src/pro/components/webhook-editor/index.tsx
@@ -72,17 +72,17 @@ const WebhookEditor = ( props: WebhookEditorProps ) => {
const checkWebhook = ( webhook: Webhook ) => {
if ( ! webhook.name ) {
- return __( 'Please enter a webhook name.', 'otter-blocks' );
+ return __( 'Please enter a webhook name.', 'otter-pro' );
}
if ( ! webhook.url ) {
- return __( 'Please enter a webhook URL.', 'otter-blocks' );
+ return __( 'Please enter a webhook URL.', 'otter-pro' );
}
if ( 0 < webhook.headers.length ) {
for ( const header of webhook.headers ) {
if ( ! header.key || ! header.value ) {
- return __( 'Please enter a key and value for all headers.', 'otter-blocks' );
+ return __( 'Please enter a key and value for all headers.', 'otter-pro' );
}
}
}
@@ -96,7 +96,7 @@ const WebhookEditor = ( props: WebhookEditorProps ) => {
if ( true !== check ) {
const msg = sprintf(
/* translators: %s: webhook name */
- __( 'There was an error saving the webhook: %s', 'otter-blocks' ),
+ __( 'There was an error saving the webhook: %s', 'otter-pro' ),
webhook?.name
) + '\n';
setError( msg + check );
@@ -105,7 +105,7 @@ const WebhookEditor = ( props: WebhookEditorProps ) => {
}
// Save to wp options
- setOption?.( 'themeisle_webhooks_options', [ ...webhooksToSave ], __( 'Webhooks saved.', 'otter-blocks' ), 'webhook', ( response ) => {
+ setOption?.( 'themeisle_webhooks_options', [ ...webhooksToSave ], __( 'Webhooks saved.', 'otter-pro' ), 'webhook', ( response ) => {
setWebhooks( response?.['themeisle_webhooks_options'] ?? []);
window.oTrk?.add({ feature: 'webhook', featureComponent: 'saving' });
});
@@ -128,7 +128,7 @@ const WebhookEditor = ( props: WebhookEditorProps ) => {
{ isOpen && (
setOpen( false )}
shouldCloseOnClickOutside={ false }
>
@@ -136,21 +136,21 @@ const WebhookEditor = ( props: WebhookEditorProps ) => {
id ? (
{
/>
@@ -318,7 +318,7 @@ const WebhookEditor = ( props: WebhookEditorProps ) => {
setMethod( 'POST' );
setHeaders([]);
}}>
- { __( 'Add New Webhook', 'otter-blocks' ) }
+ { __( 'Add New Webhook', 'otter-pro' ) }
@@ -347,19 +347,19 @@ const WebhookEditor = ( props: WebhookEditorProps ) => {
- { __( 'Loading Webhooks', 'otter-blocks' ) }
+ { __( 'Loading Webhooks', 'otter-pro' ) }
)
}
{
onClick={() => setOpen( true )}
className="wp-block-themeisle-blocks-tabs-inspector-add-tab"
>
- { __( 'Edit Webhooks', 'otter-blocks' ) }
+ { __( 'Edit Webhooks', 'otter-pro' ) }
< br />
- { __( 'Learn more about webhooks.', 'otter-blocks' ) }
+ { __( 'Learn more about webhooks.', 'otter-pro' ) }
);
diff --git a/src/pro/dashboard/index.js b/src/pro/dashboard/index.js
index 1c9fb21d2..82a249167 100644
--- a/src/pro/dashboard/index.js
+++ b/src/pro/dashboard/index.js
@@ -37,13 +37,13 @@ const Integrations = props => {
return (
{
@@ -55,14 +55,14 @@ const Integrations = props => {
@@ -70,7 +70,7 @@ const Integrations = props => {
type="password"
id="otter-options-iphub-api"
value={ IPHubAPI }
- placeholder={ __( 'IPHub API Key', 'otter-blocks' ) }
+ placeholder={ __( 'IPHub API Key', 'otter-pro' ) }
disabled={ 'saving' === status }
onChange={ e => setIPHubAPI( e.target.value ) }
/>
@@ -85,13 +85,13 @@ const Integrations = props => {
updateOption( 'otter_iphub_api_key', IPHubAPI );
} }
>
- { __( 'Save', 'otter-blocks' ) }
+ { __( 'Save', 'otter-pro' ) }
- { __( 'Get API Key', 'otter-blocks' ) }
+ { __( 'Get API Key', 'otter-pro' ) }
diff --git a/src/pro/plugins/conditions/edit.js b/src/pro/plugins/conditions/edit.js
index c3ee1b5fa..dd0f84df2 100644
--- a/src/pro/plugins/conditions/edit.js
+++ b/src/pro/plugins/conditions/edit.js
@@ -35,31 +35,31 @@ import { decodeEntities } from '@wordpress/html-entities';
const week = [
{
value: 'monday',
- label: __( 'Monday', 'otter-blocks' )
+ label: __( 'Monday', 'otter-pro' )
},
{
value: 'tuesday',
- label: __( 'Tuesday', 'otter-blocks' )
+ label: __( 'Tuesday', 'otter-pro' )
},
{
value: 'wednesday',
- label: __( 'Wednesday', 'otter-blocks' )
+ label: __( 'Wednesday', 'otter-pro' )
},
{
value: 'thursday',
- label: __( 'Thursday', 'otter-blocks' )
+ label: __( 'Thursday', 'otter-pro' )
},
{
value: 'friday',
- label: __( 'Friday', 'otter-blocks' )
+ label: __( 'Friday', 'otter-pro' )
},
{
value: 'saturday',
- label: __( 'Saturday', 'otter-blocks' )
+ label: __( 'Saturday', 'otter-pro' )
},
{
value: 'sunday',
- label: __( 'Sunday', 'otter-blocks' )
+ label: __( 'Sunday', 'otter-pro' )
}
];
@@ -86,7 +86,7 @@ const DateRange = ({
isSecondary
aria-expanded={ isOpen }
>
- { value ? format( settings.formats.datetime, value ) : __( 'Select Date', 'otter-blocks' ) }
+ { value ? format( settings.formats.datetime, value ) : __( 'Select Date', 'otter-pro' ) }
>
) }
@@ -297,7 +297,7 @@ const WooAttributes = ( props ) => {
options={ [
{
value: '',
- label: __( 'Select an attribute', 'otter-blocks' )
+ label: __( 'Select an attribute', 'otter-pro' )
},
...attributes
] }
@@ -363,7 +363,7 @@ const CoursesSelect = ( props ) => {
options={ courses }
/>
) : (
- { __( 'No courses available.', 'otter-blocks' ) }
+ { __( 'No courses available.', 'otter-pro' ) }
) }
{ props.children }
@@ -518,35 +518,35 @@ const Edit = ({
{ [ 'postMeta', 'loggedInUserMeta' ].includes( item.type ) && (
changeValue( e, groupIndex, itemIndex, 'meta_key' ) }
/>
changeValue( e, groupIndex, itemIndex, 'meta_value' ) }
/>
@@ -567,23 +567,23 @@ const Edit = ({
{ 'queryString' === item.type && (
changeValue( e.replaceAll( '\itemIndex', '&' ), groupIndex, itemIndex, 'query_string' ) }
/>
{ ! Boolean( window.otterPro.hasIPHubAPI ) && (
- { __( 'Setup API to use this feature.', 'otter-blocks' ) }
+ { __( 'Setup API to use this feature.', 'otter-pro' ) }
) }
changeValue( e, groupIndex, itemIndex, 'value' ) }
/>
- { __( 'A list of country codes.', 'otter-blocks' ) }
+ { __( 'A list of country codes.', 'otter-pro' ) }
) }
{ 'cookie' === item.type && (
changeValue( e, groupIndex, itemIndex, 'cookie_key' ) }
/>
changeValue( e, groupIndex, itemIndex, 'cookie_value' ) }
/>
@@ -661,14 +661,14 @@ const Edit = ({
{ 'dateRange' === item.type && (
changeValue( e, groupIndex, itemIndex, 'start_date' ) }
/>
changeValue( e, groupIndex, itemIndex, 'end_date' ) }
@@ -678,8 +678,8 @@ const Edit = ({
{ 'dateRecurring' === item.type && (
{ week.map( ({ label, value }) => (
- { __( 'Reset', 'otter-blocks' ) }
+ { __( 'Reset', 'otter-pro' ) }
- { __( 'Reset', 'otter-blocks' ) }
+ { __( 'Reset', 'otter-pro' ) }
@@ -833,15 +833,15 @@ const Edit = ({
{ 'wooProductsInCart' === item.type && (
changeProducts( values, groupIndex, itemIndex ) }
/>
@@ -861,7 +861,7 @@ const Edit = ({
{ 'categories' === item.on && (
changeCategories( values, groupIndex, itemIndex ) }
/>
@@ -872,11 +872,11 @@ const Edit = ({
{ 'wooTotalCartValue' === item.type && (
)', 'otter-blocks' )
+ label: __( 'Greater Than (>)', 'otter-pro' )
},
{
value: 'less_than',
- label: __( 'Less Than (<)', 'otter-blocks' )
+ label: __( 'Less Than (<)', 'otter-pro' )
}
] }
value={ item.compare }
@@ -923,7 +923,7 @@ const Edit = ({
{ 'wooPurchaseHistory' === item.type && (
changeProducts( values, groupIndex, itemIndex ) }
/>
@@ -932,14 +932,14 @@ const Edit = ({
{ 'wooCategory' === item.type && (
changeCategories( values, groupIndex, itemIndex ) }
/>
) }
{ 'wooTag' === item.type && (
changeTags( values, groupIndex, itemIndex ) }
/>
@@ -948,15 +948,15 @@ const Edit = ({
{ 'wooAttribute' === item.type && (
changeAttribute( values, groupIndex, itemIndex ) }
/>
{ !! item.attribute && (
changeArrayValue( terms, groupIndex, itemIndex, 'terms' ) }
/>
@@ -967,15 +967,15 @@ const Edit = ({
{ 'learnDashPurchaseHistory' === item.type && (
changeCourses( values, groupIndex, itemIndex ) }
/>
@@ -995,7 +995,7 @@ const Edit = ({
{ 'groups' === item.on && (
changeGroups( values, groupIndex, itemIndex ) }
/>
@@ -1007,24 +1007,24 @@ const Edit = ({
{ 'learnDashCourseStatus' === item.type && (
changeValue( Number( e ), groupIndex, itemIndex, 'course' ) }
>
{
const proConditions = {
'users': {
- label: __( 'Users', 'otter-blocks' ),
+ label: __( 'Users', 'otter-pro' ),
conditions: [
{
value: 'loggedInUserMeta',
- label: __( 'Logged-in User Meta', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on meta of the logged-in user condition.' ),
+ label: __( 'Logged-in User Meta', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on meta of the logged-in user condition.', 'otter-pro' ),
toogleVisibility: true
}
]
},
'posts': {
- label: __( 'Posts', 'otter-blocks' ),
+ label: __( 'Posts', 'otter-pro' ),
conditions: [
{
value: 'postMeta',
- label: __( 'Post Meta', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on post meta condition.' ),
+ label: __( 'Post Meta', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on post meta condition.', 'otter-pro' ),
toogleVisibility: true
}
]
},
'dateAndTime': {
- label: __( 'Date & Time', 'otter-blocks' ),
+ label: __( 'Date & Time', 'otter-pro' ),
conditions: [
{
value: 'dateRange',
- label: __( 'Date Range', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on the date range. Timezone is used based on your WordPress settings.' )
+ label: __( 'Date Range', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on the date range. Timezone is used based on your WordPress settings.', 'otter-pro' )
},
{
value: 'dateRecurring',
- label: __( 'Date Recurring', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on the selected days. Timezone is used based on your WordPress settings.' )
+ label: __( 'Date Recurring', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on the selected days. Timezone is used based on your WordPress settings.', 'otter-pro' )
},
{
value: 'timeRecurring',
- label: __( 'Time Recurring', 'otter-blocks' ),
- help: __( 'The selected block will be visible during the selected time. Timezone is used based on your WordPress settings.' )
+ label: __( 'Time Recurring', 'otter-pro' ),
+ help: __( 'The selected block will be visible during the selected time. Timezone is used based on your WordPress settings.', 'otter-pro' )
}
]
},
'advance': {
- label: __( 'Advance', 'otter-blocks' ),
+ label: __( 'Advance', 'otter-pro' ),
conditions: [
{
value: 'queryString',
- label: __( 'Query String', 'otter-blocks' ),
- help: __( 'The condition will be met if the URL contains specified parameters.' ),
+ label: __( 'Query String', 'otter-pro' ),
+ help: __( 'The condition will be met if the URL contains specified parameters.', 'otter-pro' ),
toogleVisibility: true
},
{
value: 'country',
- label: __( 'Country', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on user\'s country based on the IP address.' ),
+ label: __( 'Country', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on user\'s country based on the IP address.', 'otter-pro' ),
toogleVisibility: true
},
{
value: 'cookie',
- label: __( 'Cookie', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on PHP cookies.' ),
+ label: __( 'Cookie', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on PHP cookies.', 'otter-pro' ),
toogleVisibility: true
}
]
},
'woocommerce': {
- label: __( 'WooCommerce', 'otter-blocks' ),
+ label: __( 'WooCommerce', 'otter-pro' ),
conditions: [
{
value: 'wooProductsInCart',
- label: __( 'Products in Cart', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on the products added to WooCommerce cart.' ),
+ label: __( 'Products in Cart', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on the products added to WooCommerce cart.', 'otter-pro' ),
toogleVisibility: true,
isDisabled: ! Boolean( window.otterPro.hasWooCommerce )
},
{
value: 'wooTotalCartValue',
- label: __( 'Total Cart Value', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on the total value of WooCommerce cart.' ),
+ label: __( 'Total Cart Value', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on the total value of WooCommerce cart.', 'otter-pro' ),
isDisabled: ! Boolean( window.otterPro.hasWooCommerce )
},
{
value: 'wooPurchaseHistory',
- label: __( 'Purchase History', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on user\'s WooCommerce purchase history.' ),
+ label: __( 'Purchase History', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on user\'s WooCommerce purchase history.', 'otter-pro' ),
toogleVisibility: true,
isDisabled: ! Boolean( window.otterPro.hasWooCommerce )
},
{
value: 'wooTotalSpent',
- label: __( 'Total Spent', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on how much the user spent during lifetime.' ),
+ label: __( 'Total Spent', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on how much the user spent during lifetime.', 'otter-pro' ),
isDisabled: ! Boolean( window.otterPro.hasWooCommerce )
}
]
},
'woocommerceProduct': {
- label: __( 'WooCommerce Product', 'otter-blocks' ),
+ label: __( 'WooCommerce Product', 'otter-pro' ),
conditions: [
{
value: 'wooCategory',
- label: __( 'Product Categories', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on the product categories.' ),
+ label: __( 'Product Categories', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on the product categories.', 'otter-pro' ),
toogleVisibility: true,
isDisabled: ! Boolean( window.otterPro.hasWooCommerce )
},
{
value: 'wooTag',
- label: __( 'Product Tags', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on the product tags.' ),
+ label: __( 'Product Tags', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on the product tags.', 'otter-pro' ),
toogleVisibility: true,
isDisabled: ! Boolean( window.otterPro.hasWooCommerce )
},
{
value: 'wooAttribute',
- label: __( 'Product Attributes', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on the product attribute.' ),
+ label: __( 'Product Attributes', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on the product attribute.', 'otter-pro' ),
toogleVisibility: true,
isDisabled: ! Boolean( window.otterPro.hasWooCommerce )
}
]
},
'learndash': {
- label: __( 'LearnDash', 'otter-blocks' ),
+ label: __( 'LearnDash', 'otter-pro' ),
conditions: [
{
value: 'learnDashPurchaseHistory',
- label: __( 'Purchase History', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on user\'s LearnDash purchase history.' ),
+ label: __( 'Purchase History', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on user\'s LearnDash purchase history.', 'otter-pro' ),
toogleVisibility: true,
isDisabled: ! Boolean( window.otterPro.hasLearnDash )
},
{
value: 'learnDashCourseStatus',
- label: __( 'Course Status', 'otter-blocks' ),
- help: __( 'The selected block will be visible based on user\'s LearnDash course status.' ),
+ label: __( 'Course Status', 'otter-pro' ),
+ help: __( 'The selected block will be visible based on user\'s LearnDash course status.', 'otter-pro' ),
toogleVisibility: true,
isDisabled: ! Boolean( window.otterPro.hasLearnDash )
}
@@ -238,8 +238,8 @@ const Notices = el => {
if ( Boolean( window.otterPro.isExpired ) ) {
return (
);
}
@@ -247,8 +247,8 @@ const Notices = el => {
if ( ! Boolean( window.otterPro.isActive ) ) {
return (
);
}
diff --git a/src/pro/plugins/countdown/index.tsx b/src/pro/plugins/countdown/index.tsx
index 986c2f692..8dd4fadc0 100644
--- a/src/pro/plugins/countdown/index.tsx
+++ b/src/pro/plugins/countdown/index.tsx
@@ -33,24 +33,24 @@ const { Notice } = window.otterComponents;
const countdownMoveHelpMsgCountdown = ( mode: any ) => {
switch ( mode ) {
case 'timer':
- return __( 'A fixed amount of time for each browser session (Evergreen Countdown)', 'otter-blocks' );
+ return __( 'A fixed amount of time for each browser session (Evergreen Countdown)', 'otter-pro' );
case 'interval':
- return __( 'The countdown will be active only between the Start Date and the End Date', 'otter-blocks' );
+ return __( 'The countdown will be active only between the Start Date and the End Date', 'otter-pro' );
default:
- return __( 'An universal deadline for all visitors', 'otter-blocks' );
+ return __( 'An universal deadline for all visitors', 'otter-pro' );
}
};
const onExpireHelpMsgCountdown = ( behaviour: any ) => {
switch ( behaviour ) {
case 'redirectLink':
- return __( 'Redirect the user to another URL, when the countdown reaches 0', 'otter-blocks' );
+ return __( 'Redirect the user to another URL, when the countdown reaches 0', 'otter-pro' );
case 'hide':
- return __( 'Hide when the countdown reaches 0', 'otter-blocks' );
+ return __( 'Hide when the countdown reaches 0', 'otter-pro' );
case 'restart':
return 'The Countdown will restart when it reaches 0 and the page is refreshed';
default:
- return __( 'The countdown remains visible when it reaches 0', 'otter-blocks' );
+ return __( 'The countdown remains visible when it reaches 0', 'otter-pro' );
}
};
@@ -68,7 +68,7 @@ const CountdownProFeaturesSettings = ( Template: React.FC<{}>, { attributes, set
return (
{
const attrs: any = {
@@ -98,15 +98,15 @@ const CountdownProFeaturesSettings = ( Template: React.FC<{}>, { attributes, set
}
options={[
{
- label: __( 'Static', 'otter-blocks' ),
+ label: __( 'Static', 'otter-pro' ),
value: ''
},
{
- label: __( 'Evergreen', 'otter-blocks' ),
+ label: __( 'Evergreen', 'otter-pro' ),
value: 'timer'
},
{
- label: __( 'Interval', 'otter-blocks' ),
+ label: __( 'Interval', 'otter-pro' ),
value: 'interval'
}
]}
@@ -117,7 +117,7 @@ const CountdownProFeaturesSettings = ( Template: React.FC<{}>, { attributes, set
{
setAttributes({
@@ -127,7 +127,7 @@ const CountdownProFeaturesSettings = ( Template: React.FC<{}>, { attributes, set
/>
{
setAttributes({
@@ -137,7 +137,7 @@ const CountdownProFeaturesSettings = ( Template: React.FC<{}>, { attributes, set
/>
{
setAttributes({
@@ -147,7 +147,7 @@ const CountdownProFeaturesSettings = ( Template: React.FC<{}>, { attributes, set
/>
{
setAttributes({
@@ -161,11 +161,11 @@ const CountdownProFeaturesSettings = ( Template: React.FC<{}>, { attributes, set
{ 'interval' === attributes.mode && (
(
<>
, { attributes, set
aria-expanded={ isOpen }
className="o-extend-btn"
>
- { attributes.startInterval ? format( settings.formats.datetime, attributes.startInterval ) : __( 'Select Start Date', 'otter-blocks' ) }
+ { attributes.startInterval ? format( settings.formats.datetime, attributes.startInterval ) : __( 'Select Start Date', 'otter-pro' ) }
>
) }
@@ -189,11 +189,11 @@ const CountdownProFeaturesSettings = ( Template: React.FC<{}>, { attributes, set
(
<>
, { attributes, set
aria-expanded={ isOpen }
className="o-extend-btn"
>
- { attributes.endInterval ? format( settings.formats.datetime, attributes.endInterval ) : __( 'Select End Date', 'otter-blocks' ) }
+ { attributes.endInterval ? format( settings.formats.datetime, attributes.endInterval ) : __( 'Select End Date', 'otter-pro' ) }
>
) }
@@ -231,8 +231,8 @@ const CountdownProFeaturesEnd = ( Template: React.FC<{}>, {
{ Template }
);
@@ -241,7 +241,7 @@ const CountdownProFeaturesEnd = ( Template: React.FC<{}>, {
return (
{
window.oTrk?.set( `${attributes.id}_beh`, { feature: 'countdown', featureComponent: 'countdown-behaviour', featureValue: behaviour, groupID: attributes.id });
@@ -253,19 +253,19 @@ const CountdownProFeaturesEnd = ( Template: React.FC<{}>, {
}}
options={[
{
- label: __( 'No action', 'otter-blocks' ),
+ label: __( 'No action', 'otter-pro' ),
value: ''
},
{
- label: __( 'Hide the Countdown', 'otter-blocks' ),
+ label: __( 'Hide the Countdown', 'otter-pro' ),
value: 'hide'
},
...( 'timer' === attributes.mode ? [{
- label: __( 'Restart the Countdown', 'otter-blocks' ),
+ label: __( 'Restart the Countdown', 'otter-pro' ),
value: 'restart'
}] : []),
{
- label: __( 'Redirect to link', 'otter-blocks' ),
+ label: __( 'Redirect to link', 'otter-pro' ),
value: 'redirectLink'
}
]}
@@ -274,15 +274,15 @@ const CountdownProFeaturesEnd = ( Template: React.FC<{}>, {
{ 'redirectLink' === attributes.behaviour && (
setAttributes({ redirectLink })}
/>
) }
{
window.oTrk?.set( `${attributes.id}_hide`, { feature: 'countdown', featureComponent: 'countdown-hide', featureValue: value ? 'all' : 'none', groupID: attributes.id });
@@ -297,13 +297,13 @@ const CountdownProFeaturesEnd = ( Template: React.FC<{}>, {
{ attributes?.onEndAction && (
- { __( 'Paste the following code in the block that you want to show up or hide (in the same page) when the countdown end. Select the block, go to Inspector > Advanced, and paste into the field "Additional CSS class"', 'otter-blocks' ) }
+ { __( 'Paste the following code in the block that you want to show up or hide (in the same page) when the countdown end. Select the block, go to Inspector > Advanced, and paste into the field "Additional CSS class"', 'otter-pro' ) }
- { __( 'Show trigger', 'otter-blocks' ) }
+ { __( 'Show trigger', 'otter-pro' ) }
{ `o-countdown-trigger-on-end-${ attributes.id?.split( '-' ).pop()} o-cntdn-bhv-show` }
- { __( 'Hide trigger', 'otter-blocks' ) }
+ { __( 'Hide trigger', 'otter-pro' ) }
{ `o-countdown-trigger-on-end-${ attributes.id?.split( '-' ).pop()} o-cntdn-bhv-hide` }
diff --git a/src/pro/plugins/dynamic-content/index.js b/src/pro/plugins/dynamic-content/index.js
index 0bce8ab5e..e6d94bb63 100644
--- a/src/pro/plugins/dynamic-content/index.js
+++ b/src/pro/plugins/dynamic-content/index.js
@@ -18,8 +18,8 @@ const Notices = el => {
if ( Boolean( window.otterPro.isExpired ) ) {
return (
);
}
@@ -27,8 +27,8 @@ const Notices = el => {
if ( ! Boolean( window.otterPro.isActive ) ) {
return (
);
}
diff --git a/src/pro/plugins/dynamic-content/link-edit.js b/src/pro/plugins/dynamic-content/link-edit.js
index 73c362329..c56a31de0 100644
--- a/src/pro/plugins/dynamic-content/link-edit.js
+++ b/src/pro/plugins/dynamic-content/link-edit.js
@@ -39,7 +39,7 @@ const Edit = ({
{ ( 'acfURL' === attributes.type && Boolean( window.otterPro.hasACF ) ) && (
{ isLoaded ? (
changeAttributes({ metaKey: event.target.value }) }
className="components-select-control__input"
>
- { __( 'Select a field', 'otter-blocks' ) }
+ { __( 'Select a field', 'otter-pro' ) }
{ groups.map( group => {
return (
@@ -74,12 +74,12 @@ const Edit = ({
) }
{ ( 'acfURL' === attributes.type && ! Boolean( window.otterPro.hasACF ) ) && (
- { __( 'You need to have Advanced Custom Fields plugin installed to use this feature.', 'otter-blocks' ) }
+ { __( 'You need to have Advanced Custom Fields plugin installed to use this feature.', 'otter-pro' ) }
) }
{ 'postMetaURL' === attributes.type && (
changeAttributes({ metaKey }) }
/>
diff --git a/src/pro/plugins/dynamic-content/link.js b/src/pro/plugins/dynamic-content/link.js
index 8dfa08f14..a068f819b 100644
--- a/src/pro/plugins/dynamic-content/link.js
+++ b/src/pro/plugins/dynamic-content/link.js
@@ -18,11 +18,11 @@ import Edit from './link-edit.js';
const applyProContent = options => {
const proOptions = [
{
- label: __( 'Post Custom Field', 'otter-blocks' ),
+ label: __( 'Post Custom Field', 'otter-pro' ),
value: 'postMetaURL'
},
{
- label: __( 'Advanced Custom Fields', 'otter-blocks' ),
+ label: __( 'Advanced Custom Fields', 'otter-pro' ),
value: 'acfURL'
}
];
diff --git a/src/pro/plugins/dynamic-content/media.js b/src/pro/plugins/dynamic-content/media.js
index 776bf2714..3cd71a15b 100644
--- a/src/pro/plugins/dynamic-content/media.js
+++ b/src/pro/plugins/dynamic-content/media.js
@@ -25,18 +25,18 @@ const applyProContent = options => {
const proOptions = [
{
type: 'postMeta',
- label: __( 'Post Meta', 'otter-blocks' ),
+ label: __( 'Post Meta', 'otter-pro' ),
icon: window.themeisleGutenberg.assetsPath + '/icons/meta.svg'
},
{
type: 'product',
- label: __( 'Woo Product', 'otter-blocks' ),
+ label: __( 'Woo Product', 'otter-pro' ),
icon: window.themeisleGutenberg.assetsPath + '/icons/woo.svg',
isAvailable: Boolean( window.otterPro.hasWooCommerce )
},
{
type: 'acf',
- label: __( 'ACF Image', 'otter-blocks' ),
+ label: __( 'ACF Image', 'otter-pro' ),
icon: window.themeisleGutenberg.assetsPath + '/icons/acf.svg',
isAvailable: Boolean( window.otterPro.hasACF )
}
@@ -58,7 +58,7 @@ const DynamicContent = (
{ 'postMeta' === attributes?.type && (
changeAttributes({ meta }) }
/>
@@ -66,7 +66,7 @@ const DynamicContent = (
{ 'product' === attributes?.type && (
changeAttributes({ id: 0 === product ? undefined : product }) }
/>
@@ -74,7 +74,7 @@ const DynamicContent = (
{ 'acf' === attributes?.type && (
changeAttributes({ meta }) }
/>
diff --git a/src/pro/plugins/dynamic-content/value-edit.js b/src/pro/plugins/dynamic-content/value-edit.js
index 8dedcdc8c..0a2a5f46c 100644
--- a/src/pro/plugins/dynamic-content/value-edit.js
+++ b/src/pro/plugins/dynamic-content/value-edit.js
@@ -96,15 +96,15 @@ const Edit = ({
{ [ 'postDate' ].includes( attributes.type ) && (
({
@@ -124,7 +124,7 @@ const Edit = ({
value: key
}) ),
{
- label: __( 'Custom', 'otter-blocks' ),
+ label: __( 'Custom', 'otter-pro' ),
value: 'custom'
}
] }
@@ -133,8 +133,8 @@ const Edit = ({
{ 'custom' === attributes.dateFormat && (
{ __( 'Formatting Date and Time in WordPress', 'otter-blocks' ) } }
+ label={ __( 'Custom Format', 'otter-pro' ) }
+ help={ { __( 'Formatting Date and Time in WordPress', 'otter-pro' ) } }
type="text"
value={ attributes.dateCustom || '' }
onChange={ dateCustom => changeAttributes({ dateCustom }) }
@@ -146,15 +146,15 @@ const Edit = ({
{ [ 'postTime' ].includes( attributes.type ) && (
({
@@ -174,7 +174,7 @@ const Edit = ({
value: key
}) ),
{
- label: __( 'Custom', 'otter-blocks' ),
+ label: __( 'Custom', 'otter-pro' ),
value: 'custom'
}
] }
@@ -183,8 +183,8 @@ const Edit = ({
{ 'custom' === attributes.timeFormat && (
{ __( 'Formatting Date and Time in WordPress', 'otter-blocks' ) } }
+ label={ __( 'Custom Format', 'otter-pro' ) }
+ help={ { __( 'Formatting Date and Time in WordPress', 'otter-pro' ) } }
type="text"
value={ attributes.timeCustom || '' }
onChange={ timeCustom => changeAttributes({ timeCustom }) }
@@ -196,19 +196,19 @@ const Edit = ({
{ 'postTerms' === attributes.type && (
changeAttributes({ taxonomy }) }
/>
@@ -228,7 +228,7 @@ const Edit = ({
}
changeAttributes({ termSeparator }) }
@@ -239,7 +239,7 @@ const Edit = ({
{ ( 'acf' === attributes.type && Boolean( window.otterPro.hasACF ) ) && (
{ isLoaded ? (
changeAttributes({ metaKey: event.target.value }) }
className="components-select-control__input"
>
- { __( 'Select a field', 'otter-blocks' ) }
+ { __( 'Select a field', 'otter-pro' ) }
{ groups.map( group => {
return (
@@ -274,13 +274,13 @@ const Edit = ({
) }
{ ( 'acf' === attributes.type && ! Boolean( window.otterPro.hasACF ) ) && (
- { __( 'You need to have Advanced Custom Fields plugin installed to use this feature.', 'otter-blocks' ) }
+ { __( 'You need to have Advanced Custom Fields plugin installed to use this feature.', 'otter-pro' ) }
) }
{ ([ 'postMeta', 'authorMeta', 'loggedInUserMeta' ].includes( attributes.type ) ) && (
- { __( 'Type your own or select a pre-defined value. Press Enter to confirm.', 'otter-blocks' ) }
+ { __( 'Type your own or select a pre-defined value. Press Enter to confirm.', 'otter-pro' ) }
) }
{ ([ 'queryString' ].includes( attributes.type ) ) && (
changeAttributes({ parameter }) }
/>
{ __( 'Setup API to use this feature.', 'otter-blocks' ) }
+ { __( 'Setup API to use this feature.', 'otter-pro' ) }
) }
);
diff --git a/src/pro/plugins/dynamic-content/value.js b/src/pro/plugins/dynamic-content/value.js
index 2400163c6..71c30992d 100644
--- a/src/pro/plugins/dynamic-content/value.js
+++ b/src/pro/plugins/dynamic-content/value.js
@@ -18,57 +18,57 @@ import Edit from './value-edit.js';
const applyProContent = options => {
const proOptions = {
'posts': {
- label: __( 'Posts', 'otter-blocks' ),
+ label: __( 'Posts', 'otter-pro' ),
options: [
{
- label: __( 'Post Date', 'otter-blocks' ),
+ label: __( 'Post Date', 'otter-pro' ),
value: 'postDate'
},
{
- label: __( 'Post Time', 'otter-blocks' ),
+ label: __( 'Post Time', 'otter-pro' ),
value: 'postTime'
},
{
- label: __( 'Post Terms', 'otter-blocks' ),
+ label: __( 'Post Terms', 'otter-pro' ),
value: 'postTerms'
},
{
- label: __( 'Post Custom Field', 'otter-blocks' ),
+ label: __( 'Post Custom Field', 'otter-pro' ),
value: 'postMeta'
},
{
- label: __( 'Advanced Custom Field', 'otter-blocks' ),
+ label: __( 'Advanced Custom Field', 'otter-pro' ),
value: 'acf'
}
]
},
'author': {
- label: __( 'Author', 'otter-blocks' ),
+ label: __( 'Author', 'otter-pro' ),
options: [
{
- label: __( 'Author Meta', 'otter-blocks' ),
+ label: __( 'Author Meta', 'otter-pro' ),
value: 'authorMeta'
}
]
},
'loggedInUser': {
- label: __( 'Logged-in User', 'otter-blocks' ),
+ label: __( 'Logged-in User', 'otter-pro' ),
options: [
{
- label: __( 'Logged-in User Meta', 'otter-blocks' ),
+ label: __( 'Logged-in User Meta', 'otter-pro' ),
value: 'loggedInUserMeta'
}
]
},
'misc': {
- label: __( 'Miscellaneous', 'otter-blocks' ),
+ label: __( 'Miscellaneous', 'otter-pro' ),
options: [
{
- label: __( 'URL Parameter', 'otter-blocks' ),
+ label: __( 'URL Parameter', 'otter-pro' ),
value: 'queryString'
},
{
- label: __( 'Country', 'otter-blocks' ),
+ label: __( 'Country', 'otter-pro' ),
value: 'country'
}
]
diff --git a/src/pro/plugins/form/index.js b/src/pro/plugins/form/index.js
index 96948cf55..f83da0328 100644
--- a/src/pro/plugins/form/index.js
+++ b/src/pro/plugins/form/index.js
@@ -34,9 +34,9 @@ const AutoresponderBody = ({ formOptions, setFormOption }) => {
};
const helpMessages = {
- 'database': __( 'Save form submissions to the database. You can see the submissions in Otter Blocks > Form Submissions on Dashboard Panel', 'otter-blocks' ),
- 'email': __( 'The submissions are send only via email. No data will be saved on the server, use this option to handle sensitive data.', 'otter-blocks' ),
- 'database-email': __( 'Save the submissions to the database and notify also via email.', 'otter-blocks' )
+ 'database': __( 'Save form submissions to the database. You can see the submissions in Otter Blocks > Form Submissions on Dashboard Panel', 'otter-pro' ),
+ 'email': __( 'The submissions are send only via email. No data will be saved on the server, use this option to handle sensitive data.', 'otter-pro' ),
+ 'database-email': __( 'Save the submissions to the database and notify also via email.', 'otter-pro' )
};
/**
@@ -57,13 +57,13 @@ const FormOptions = ( Options, formOptions, setFormOption, config, attributes )
undefined !== formOptions.submissionsSaveLocation }
- label={ __( 'Submissions', 'otter-blocks' ) }
+ label={ __( 'Submissions', 'otter-pro' ) }
onDeselect={ () => setFormOption({ submissionsSaveLocation: undefined }) }
isShownByDefault={ true }
>
{Boolean( window.otterPro.isActive ) ? (
{
window.oTrk?.set( `${attributes.id}_save`, { feature: 'form-storing', featureComponent: 'save-location', featureValue: submissionsSaveLocation, groupID: attributes.id });
@@ -71,9 +71,9 @@ const FormOptions = ( Options, formOptions, setFormOption, config, attributes )
} }
options={
[
- { label: __( 'Database', 'otter-blocks' ), value: 'database' },
- { label: __( 'Email Only', 'otter-blocks' ), value: 'email' },
- { label: __( 'Database and Email', 'otter-blocks' ), value: 'database-email' }
+ { label: __( 'Database', 'otter-pro' ), value: 'database' },
+ { label: __( 'Email Only', 'otter-pro' ), value: 'email' },
+ { label: __( 'Database and Email', 'otter-pro' ), value: 'database-email' }
]
}
help={ helpMessages?.[formOptions?.submissionsSaveLocation] ?? helpMessages.database }
@@ -82,11 +82,11 @@ const FormOptions = ( Options, formOptions, setFormOption, config, attributes )
@@ -98,16 +98,16 @@ const FormOptions = ( Options, formOptions, setFormOption, config, attributes )
undefined !== formOptions.autoresponder?.subject ||
undefined !== formOptions.autoresponder?.body
}
- label={__( 'Autoresponder', 'otter-blocks' )}
+ label={__( 'Autoresponder', 'otter-pro' )}
onDeselect={() => setFormOption({ autoresponder: undefined })}
>
{Boolean( window.otterPro.isActive ) ? (
<>
{
@@ -121,7 +121,7 @@ const FormOptions = ( Options, formOptions, setFormOption, config, attributes )
}}
help={__(
'Enter the subject of the autoresponder email.',
- 'otter-blocks'
+ 'otter-pro'
)}
/>
@@ -134,7 +134,7 @@ const FormOptions = ( Options, formOptions, setFormOption, config, attributes )
config?.showAutoResponderNotice && (
{
- __( 'In order for Autoresponder to work, you need to have at least one Email field in Form.', 'otter-blocks' )
+ __( 'In order for Autoresponder to work, you need to have at least one Email field in Form.', 'otter-pro' )
}
)
@@ -146,11 +146,11 @@ const FormOptions = ( Options, formOptions, setFormOption, config, attributes )
@@ -158,7 +158,7 @@ const FormOptions = ( Options, formOptions, setFormOption, config, attributes )
formOptions?.webhookId }
- label={__( 'Webhook', 'otter-blocks' )}
+ label={__( 'Webhook', 'otter-pro' )}
onDeselect={() => setFormOption({ webhookId: undefined })}
>
{Boolean( window.otterPro.isActive ) ? (
@@ -178,11 +178,11 @@ const FormOptions = ( Options, formOptions, setFormOption, config, attributes )
@@ -257,8 +257,8 @@ const FormFileInspector = ( Template, {
{ Template }
);
@@ -267,7 +267,7 @@ const FormFileInspector = ( Template, {
return (
setAttributes({ label }) }
/>
@@ -277,7 +277,7 @@ const FormFileInspector = ( Template, {
{
@@ -285,44 +285,44 @@ const FormFileInspector = ( Template, {
setSavedState( attributes.id, true );
setAttributes({ maxFileSize: maxFileSize ? maxFileSize?.toString() : undefined });
} }
- help={ __( 'You may need to contact your hosting provider to increase file sizes.', 'otter-blocks' ) }
+ help={ __( 'You may need to contact your hosting provider to increase file sizes.', 'otter-pro' ) }
/>
{
window.oTrk?.set( `${attributes.id}_type`, { feature: 'form-file', featureComponent: 'file-type', featureValue: allowedFileTypes, groupID: attributes.id });
setSavedState( attributes.id, true );
setAttributes({ allowedFileTypes: allowedFileTypes ? allowedFileTypes.map( replaceJPGWithJPEG ) : undefined });
} }
- help={ __( 'Add the allowed files types that can be loaded. E.g.: .png, .mp4, .jpeg, .zip, .pdf. Attention: The host provider might not allow to saving of all type of files.', 'otter-blocks' ) }
+ help={ __( 'Add the allowed files types that can be loaded. E.g.: .png, .mp4, .jpeg, .zip, .pdf. Attention: The host provider might not allow to saving of all type of files.', 'otter-pro' ) }
suggestions={ fileTypeSuggestions }
/>
setAttributes({ helpText }) }
/>
setAttributes({ isRequired }) }
/>
setAttributes({ mappedName }) }
- placeholder={ __( 'photos', 'otter-blocks' ) }
+ placeholder={ __( 'photos', 'otter-pro' ) }
/>
{
window.oTrk?.add({ feature: 'form-file', featureComponent: 'enable-multiple-file', groupID: attributes.id });
@@ -334,7 +334,7 @@ const FormFileInspector = ( Template, {
{
attributes.multipleFiles && (
{
@@ -342,14 +342,14 @@ const FormFileInspector = ( Template, {
setSavedState( attributes.id, true );
setAttributes({ maxFilesNumber: maxFilesNumber ? maxFilesNumber?.toString() : undefined });
} }
- help={ __( 'By default, only 10 files are allowed to load.', 'otter-blocks' )}
+ help={ __( 'By default, only 10 files are allowed to load.', 'otter-pro' )}
/>
)
}
{
window.oTrk?.add({ feature: 'form-file', featureComponent: 'enable-media-saving', groupID: attributes.id });
diff --git a/src/pro/plugins/live-search/edit.js b/src/pro/plugins/live-search/edit.js
index cd8232168..b31442920 100644
--- a/src/pro/plugins/live-search/edit.js
+++ b/src/pro/plugins/live-search/edit.js
@@ -47,8 +47,8 @@ const Edit = ({
if ( ! hasNecessaryPlan ) {
return (
);
}
@@ -56,8 +56,8 @@ const Edit = ({
if ( Boolean( window.otterPro.isExpired ) ) {
return (
);
}
@@ -65,8 +65,8 @@ const Edit = ({
if ( ! Boolean( window.otterPro.isActive ) ) {
return (
);
}
@@ -78,14 +78,14 @@ const Edit = ({
{ ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExpired ) ) && hasNecessaryPlan &&
(
<>
{
@@ -100,7 +100,7 @@ const Edit = ({
{ props.attributes.otterIsLive && (
<>
! excludeTypes.includes( type ) ) }
onChange={ types => onUpdateQuery( 'post_type', types ) }
@@ -109,13 +109,13 @@ const Edit = ({
/>
{ props.attributes.otterSearchQuery && 1 === props.attributes.otterSearchQuery['post_type']?.length && props.attributes.otterSearchQuery['post_type'].includes( 'post' ) && (
onUpdateQuery( 'cat', cat.join( ',' ) ) }
/>
diff --git a/src/pro/plugins/live-search/index.js b/src/pro/plugins/live-search/index.js
index 984f930a7..b47cfff3c 100644
--- a/src/pro/plugins/live-search/index.js
+++ b/src/pro/plugins/live-search/index.js
@@ -50,13 +50,13 @@ if ( ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExpir
registerBlockVariation( 'core/search', {
name: 'themeisle-gutenberg/live-search',
- title: __( 'Live Search', 'otter-blocks' ),
- description: __( 'this is a temporary description.', 'otter-blocks' ),
+ title: __( 'Live Search', 'otter-pro' ),
+ description: __( 'this is a temporary description.', 'otter-pro' ),
icon,
category: 'themeisle-blocks',
attributes: {
- buttonText: __( 'Search' ),
- label: __( 'Search' ),
+ buttonText: __( 'Search', 'otter-pro' ),
+ label: __( 'Search', 'otter-pro' ),
otterIsLive: true
}
});
diff --git a/src/pro/plugins/popup/index.js b/src/pro/plugins/popup/index.js
index a5f8e9850..5063d903b 100644
--- a/src/pro/plugins/popup/index.js
+++ b/src/pro/plugins/popup/index.js
@@ -18,21 +18,21 @@ const { Notice } = window.otterComponents;
const applyTriggerOptions = () => {
return [
{
- label: __( 'On Load', 'otter-blocks' ),
+ label: __( 'On Load', 'otter-pro' ),
value: 'onLoad'
},
{
- label: __( 'On Anchor Click', 'otter-blocks' ),
+ label: __( 'On Anchor Click', 'otter-pro' ),
value: 'onClick',
disabled: ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExpired ) )
},
{
- label: __( 'On Scroll', 'otter-blocks' ),
+ label: __( 'On Scroll', 'otter-pro' ),
value: 'onScroll',
disabled: ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExpired ) )
},
{
- label: __( 'On Exit', 'otter-blocks' ),
+ label: __( 'On Exit', 'otter-pro' ),
value: 'onExit',
disabled: ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExpired ) )
}
@@ -50,8 +50,8 @@ const PopupControls = (
{ Controls }
);
@@ -61,8 +61,8 @@ const PopupControls = (
{ 'onClick' === attributes.trigger && (
setAttributes({ anchor }) }
/>
@@ -70,15 +70,15 @@ const PopupControls = (
{ Boolean( window.otterPro.isExpired ) && (
) }
{ 'onScroll' === attributes.trigger && (
{ __( 'Shows the modal when the user moves the mouse outside of the top of the window.', 'otter-blocks' ) }
+ { __( 'Shows the modal when the user moves the mouse outside of the top of the window.', 'otter-pro' ) }
) }
{ Controls }
setAttributes({ anchorClose: ! attributes.anchorClose }) }
/>
{ attributes.anchorClose && (
setAttributes({ closeAnchor }) }
/>
@@ -111,7 +111,7 @@ const PopupControls = (
{ 'onClick' !== attributes.trigger && (
setAttributes({ recurringClose: ! attributes.recurringClose }) }
/>
@@ -119,8 +119,8 @@ const PopupControls = (
{ ( attributes.recurringClose && 'onClick' !== attributes.trigger ) && (
- { __( 'Activate Advanced Custom Fields to add more fields.', 'otter-blocks' ) }
+ { __( 'Activate Advanced Custom Fields to add more fields.', 'otter-pro' ) }
);
}
@@ -120,20 +120,20 @@ const AddFields = (
});
} }
>
- { __( 'Add Custom Field', 'otter-blocks' ) }
+ { __( 'Add Custom Field', 'otter-pro' ) }
{ Boolean( window.otterPro.isExpired ) && (
) }
{ ! Boolean( window.otterPro.isActive ) && (
) }
@@ -206,7 +206,7 @@ const Controls = (
if ( ! Boolean( window.otterPro.isActive ) ) {
return (
);
}
@@ -215,7 +215,7 @@ const Controls = (
{ ! isEmpty( groups ) && (
- { __( 'Select a field', 'otter-blocks' ) }
+ { __( 'Select a field', 'otter-pro' ) }
{ groups.map( group => {
return (
@@ -252,7 +252,7 @@ const Controls = (
{ ( fields[ customMeta.field ][ 'default_value' ]) && (
@@ -260,7 +260,7 @@ const Controls = (
{ ( fields[ customMeta.field ].prepend ) && (
@@ -268,7 +268,7 @@ const Controls = (
{ ( fields[ customMeta.field ].append ) && (
@@ -282,7 +282,7 @@ const Controls = (
href={ fields[ customMeta.field ]?.urlLocation }
target='_blank'
>
- { __( 'Edit in ACF', 'otter-blocks' ) }
+ { __( 'Edit in ACF', 'otter-pro' ) }
@@ -293,10 +293,10 @@ const Controls = (
href={ `${ window.otterPro.rootUrl || '' }/wp-admin/edit.php?post_type=acf-field-group` }
target='_blank'
>
- { __( 'There are no ACF fields. You can use this option after you add some.', 'otter-blocks' ) }
+ { __( 'There are no ACF fields. You can use this option after you add some.', 'otter-pro' ) }
) : ! fields[ customMeta.field ] && (
- __( 'The selected field does not longer exists. Please select another field.', 'otter-blocks' )
+ __( 'The selected field does not longer exists. Please select another field.', 'otter-pro' )
) }
- { __( 'Delete', 'otter-blocks' ) }
+ { __( 'Delete', 'otter-pro' ) }
);
@@ -324,7 +324,7 @@ const changeTabLabel = (
};
}, []);
- return startCase( toLower( fields[ customMeta.field ]?.label || __( 'Custom Type', 'otter-blocks' ) ) );
+ return startCase( toLower( fields[ customMeta.field ]?.label || __( 'Custom Type', 'otter-pro' ) ) );
};
addFilter( 'blocks.registerBlockType', 'themeisle-gutenberg/posts-acf-extension-attributes', addAttribute );
diff --git a/src/pro/plugins/sticky/index.js b/src/pro/plugins/sticky/index.js
index 7e69209c8..a39788e51 100644
--- a/src/pro/plugins/sticky/index.js
+++ b/src/pro/plugins/sticky/index.js
@@ -28,8 +28,8 @@ const StickyControls = (
{ Controls }
);
@@ -53,22 +53,22 @@ const StickyControls = (
{ Boolean( window.otterPro.isExpired ) && (
) }
- { __( 'The block will stack with other sticky elements with the same \'Stick To\' container, and Stack option in Behaviour. It works better with \'Stick to\' as Top Level Block or Screen.', 'otter-blocks' ) }
+ { __( 'The block will stack with other sticky elements with the same \'Stick To\' container, and Stack option in Behavior. It works better with \'Stick to\' as Top Level Block or Screen.', 'otter-pro' ) }
) }
addOption( value ? 'o-sticky-use-mobile' : undefined, FILTER_OPTIONS.usage ) }
/>
@@ -128,16 +128,16 @@ const StickyControls = (
{
isActive && (
- { __( 'You can make another block that is inside the sticky element to behave like a closing button by adding the following CSS class.' )}
+ { __( 'You can make another block that is inside the sticky element to behave like a closing button by adding the following CSS class.', 'otter-pro' )}
{ 'o-sticky-close' }
- { __( 'You can transform a Button into a Close button by inserting the following anchor.', 'otter-blocks' )}
+ { __( 'You can transform a Button into a Close button by inserting the following anchor.', 'otter-pro' )}
{ '#o-sticky-close' }
diff --git a/src/pro/plugins/stripe-checkout/index.js b/src/pro/plugins/stripe-checkout/index.js
index 14bb4f927..c7f70e980 100644
--- a/src/pro/plugins/stripe-checkout/index.js
+++ b/src/pro/plugins/stripe-checkout/index.js
@@ -16,35 +16,35 @@ const Autoresponder = ( Template, attributes, setAttributes ) => {
return (
setAttributes({ autoresponder: value ? { subject: undefined, body: undefined } : undefined })}
- help={ __( 'Enable autoresponder email to be sent to the customer after a successful purchase.', 'otter-blocks' ) }
+ help={ __( 'Enable autoresponder email to be sent to the customer after a successful purchase.', 'otter-pro' ) }
/>
{
attributes.autoresponder && (
setAttributes({ autoresponder: { ...attributes.autoresponder, subject }})}
help={__(
'Enter the subject of the autoresponder email.',
- 'otter-blocks'
+ 'otter-pro'
)}
/>
EXAMPLE, which can be applied during checkout on our website .', 'otter-blocks' ) }
+ value={ attributes.autoresponder?.body ?? __( 'Message example: We appreciate your recent purchase made on our website. You have received a promotional code, namely EXAMPLE , which can be applied during checkout on our website .', 'otter-pro' ) }
onChange={ ( body ) => setAttributes({ autoresponder: { ...attributes.autoresponder, body }}) }
area="stripe-autoresponder"
/>
diff --git a/src/pro/plugins/wc-integration/edit.js b/src/pro/plugins/wc-integration/edit.js
index e42180410..818fc9758 100644
--- a/src/pro/plugins/wc-integration/edit.js
+++ b/src/pro/plugins/wc-integration/edit.js
@@ -42,7 +42,7 @@ const Edit = ({
results: {},
status: {
isError: true,
- message: error.message || __( 'Unknown error', 'otter-blocks' )
+ message: error.message || __( 'Unknown error', 'otter-pro' )
}
};
}
@@ -72,13 +72,13 @@ const Edit = ({
- { __( 'By selecting a product, the current review information will sync with the selected WooCommerce product.', 'otter-blocks' ) }
+ { __( 'By selecting a product, the current review information will sync with the selected WooCommerce product.', 'otter-pro' ) }
props.setAttributes({ product: 0 === product ? undefined : product }) }
@@ -86,15 +86,15 @@ const Edit = ({
{ Boolean( window.otterPro.isExpired ) && (
) }
{ ! Boolean( window.otterPro.isActive ) && (
) }
diff --git a/src/pro/plugins/wc-integration/utility.js b/src/pro/plugins/wc-integration/utility.js
index 840acf45c..544a00f6c 100644
--- a/src/pro/plugins/wc-integration/utility.js
+++ b/src/pro/plugins/wc-integration/utility.js
@@ -19,7 +19,7 @@ export const extractProductData = rawProduct => {
price: ( window.wc.priceFormat.formatPrice( Number( rawProduct?.prices?.regular_price ) ) ).replace( /[^0-9.-]+/g, '' ),
discounted: rawProduct?.prices?.regular_price !== rawProduct?.prices?.sale_price ? ( window.wc.priceFormat.formatPrice( Number( rawProduct?.prices?.sale_price ) ) ).replace( /[^0-9.-]+/g, '' ) : undefined,
currency: rawProduct?.prices?.currency_code,
- links: [{ label: __( 'Buy Now', 'otter-blocks' ), href: rawProduct?.add_to_cart?.url, isSpoonsored: 'external' === rawProduct?.type }],
+ links: [{ label: __( 'Buy Now', 'otter-pro' ), href: rawProduct?.add_to_cart?.url, isSpoonsored: 'external' === rawProduct?.type }],
image: 0 < rawProduct?.images?.length ? extractImageData( rawProduct?.images[0]) : undefined
};
};
diff --git a/src/pro/woocommerce/add-to-cart/index.js b/src/pro/woocommerce/add-to-cart/index.js
index e178ce513..7273d3c0b 100644
--- a/src/pro/woocommerce/add-to-cart/index.js
+++ b/src/pro/woocommerce/add-to-cart/index.js
@@ -29,8 +29,8 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
if ( Boolean( window.otterPro.hasWooCommerce ) ) {
registerBlockType( name, {
...metadata,
- title: __( 'Product Add to Cart', 'otter-blocks' ),
- description: __( 'Display the add to cart section of your WooCommerce product.', 'otter-blocks' ),
+ title: __( 'Product Add to Cart', 'otter-pro' ),
+ description: __( 'Display the add to cart section of your WooCommerce product.', 'otter-pro' ),
icon,
keywords: [
'woocommerce',
diff --git a/src/pro/woocommerce/images/index.js b/src/pro/woocommerce/images/index.js
index 8ff812b4a..de62e668c 100644
--- a/src/pro/woocommerce/images/index.js
+++ b/src/pro/woocommerce/images/index.js
@@ -29,8 +29,8 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
if ( Boolean( window.otterPro.hasWooCommerce ) ) {
registerBlockType( name, {
...metadata,
- title: __( 'Product Images', 'otter-blocks' ),
- description: __( 'Display images of your WooCommerce product.', 'otter-blocks' ),
+ title: __( 'Product Images', 'otter-pro' ),
+ description: __( 'Display images of your WooCommerce product.', 'otter-pro' ),
icon,
keywords: [
'woocommerce',
diff --git a/src/pro/woocommerce/meta/index.js b/src/pro/woocommerce/meta/index.js
index ff408861a..1eb1c1296 100644
--- a/src/pro/woocommerce/meta/index.js
+++ b/src/pro/woocommerce/meta/index.js
@@ -29,8 +29,8 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
if ( Boolean( window.otterPro.hasWooCommerce ) ) {
registerBlockType( name, {
...metadata,
- title: __( 'Product Meta', 'otter-blocks' ),
- description: __( 'Display the meta of your WooCommerce product.', 'otter-blocks' ),
+ title: __( 'Product Meta', 'otter-pro' ),
+ description: __( 'Display the meta of your WooCommerce product.', 'otter-pro' ),
icon,
keywords: [
'woocommerce',
diff --git a/src/pro/woocommerce/price/index.js b/src/pro/woocommerce/price/index.js
index 10ac6ee0e..568210880 100644
--- a/src/pro/woocommerce/price/index.js
+++ b/src/pro/woocommerce/price/index.js
@@ -29,8 +29,8 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
if ( Boolean( window.otterPro.hasWooCommerce ) ) {
registerBlockType( name, {
...metadata,
- title: __( 'Product Price', 'otter-blocks' ),
- description: __( 'Display the price of your WooCommerce product.', 'otter-blocks' ),
+ title: __( 'Product Price', 'otter-pro' ),
+ description: __( 'Display the price of your WooCommerce product.', 'otter-pro' ),
icon,
keywords: [
'woocommerce',
diff --git a/src/pro/woocommerce/rating/index.js b/src/pro/woocommerce/rating/index.js
index a2c9c0cc2..933f6bacd 100644
--- a/src/pro/woocommerce/rating/index.js
+++ b/src/pro/woocommerce/rating/index.js
@@ -29,8 +29,8 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
if ( Boolean( window.otterPro.hasWooCommerce ) ) {
registerBlockType( name, {
...metadata,
- title: __( 'Product Rating', 'otter-blocks' ),
- description: __( 'Display the rating of your WooCommerce product.', 'otter-blocks' ),
+ title: __( 'Product Rating', 'otter-pro' ),
+ description: __( 'Display the rating of your WooCommerce product.', 'otter-pro' ),
icon,
keywords: [
'woocommerce',
diff --git a/src/pro/woocommerce/related-products/index.js b/src/pro/woocommerce/related-products/index.js
index 9086aad43..969c018a7 100644
--- a/src/pro/woocommerce/related-products/index.js
+++ b/src/pro/woocommerce/related-products/index.js
@@ -28,14 +28,14 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
blockProps={ useBlockProps() }
/>;
} else {
- edit = () => { __( 'Related products will be displayed here on the product page.', 'otter-blocks' ) } ;
+ edit = () => { __( 'Related products will be displayed here on the product page.', 'otter-pro' ) } ;
}
if ( Boolean( window.otterPro.hasWooCommerce ) ) {
registerBlockType( name, {
...metadata,
- title: __( 'Product Related Products', 'otter-blocks' ),
- description: __( 'Display related products for your WooCommerce product.', 'otter-blocks' ),
+ title: __( 'Product Related Products', 'otter-pro' ),
+ description: __( 'Display related products for your WooCommerce product.', 'otter-pro' ),
icon,
keywords: [
'woocommerce',
diff --git a/src/pro/woocommerce/short-description/index.js b/src/pro/woocommerce/short-description/index.js
index 46c5b4887..381f4144c 100644
--- a/src/pro/woocommerce/short-description/index.js
+++ b/src/pro/woocommerce/short-description/index.js
@@ -29,8 +29,8 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
if ( Boolean( window.otterPro.hasWooCommerce ) ) {
registerBlockType( name, {
...metadata,
- title: __( 'Product Short Description', 'otter-blocks' ),
- description: __( 'Display the short description of your WooCommerce product.', 'otter-blocks' ),
+ title: __( 'Product Short Description', 'otter-pro' ),
+ description: __( 'Display the short description of your WooCommerce product.', 'otter-pro' ),
icon,
keywords: [
'woocommerce',
diff --git a/src/pro/woocommerce/stock/index.js b/src/pro/woocommerce/stock/index.js
index 06a4f96af..c9804a0be 100644
--- a/src/pro/woocommerce/stock/index.js
+++ b/src/pro/woocommerce/stock/index.js
@@ -29,8 +29,8 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
if ( Boolean( window.otterPro.hasWooCommerce ) ) {
registerBlockType( name, {
...metadata,
- title: __( 'Product Stock', 'otter-blocks' ),
- description: __( 'Display the stock of your WooCommerce product.', 'otter-blocks' ),
+ title: __( 'Product Stock', 'otter-pro' ),
+ description: __( 'Display the stock of your WooCommerce product.', 'otter-pro' ),
icon,
keywords: [
'woocommerce',
diff --git a/src/pro/woocommerce/tabs/index.js b/src/pro/woocommerce/tabs/index.js
index 668975b37..86cc3a3f1 100644
--- a/src/pro/woocommerce/tabs/index.js
+++ b/src/pro/woocommerce/tabs/index.js
@@ -28,14 +28,14 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
blockProps={ useBlockProps() }
/>;
} else {
- edit = () => { __( 'Tabs will be displayed here on the product page.', 'otter-blocks' ) } ;
+ edit = () => { __( 'Tabs will be displayed here on the product page.', 'otter-pro' ) } ;
}
if ( Boolean( window.otterPro.hasWooCommerce ) ) {
registerBlockType( name, {
...metadata,
- title: __( 'Product Tabs', 'otter-blocks' ),
- description: __( 'Display the tabs for your WooCommerce product.', 'otter-blocks' ),
+ title: __( 'Product Tabs', 'otter-pro' ),
+ description: __( 'Display the tabs for your WooCommerce product.', 'otter-pro' ),
icon,
keywords: [
'woocommerce',
diff --git a/src/pro/woocommerce/title/index.js b/src/pro/woocommerce/title/index.js
index ea35e5d37..210155b63 100644
--- a/src/pro/woocommerce/title/index.js
+++ b/src/pro/woocommerce/title/index.js
@@ -29,8 +29,8 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
if ( Boolean( window.otterPro.hasWooCommerce ) ) {
registerBlockType( name, {
...metadata,
- title: __( 'Product Title', 'otter-blocks' ),
- description: __( 'Display the title of your WooCommerce product.', 'otter-blocks' ),
+ title: __( 'Product Title', 'otter-pro' ),
+ description: __( 'Display the title of your WooCommerce product.', 'otter-pro' ),
icon,
keywords: [
'woocommerce',
diff --git a/src/pro/woocommerce/upsells/index.js b/src/pro/woocommerce/upsells/index.js
index d157d031c..c69b4ea58 100644
--- a/src/pro/woocommerce/upsells/index.js
+++ b/src/pro/woocommerce/upsells/index.js
@@ -28,14 +28,14 @@ if ( ! ( Boolean( window.otterPro.isActive ) && ! Boolean( window.otterPro.isExp
blockProps={ useBlockProps() }
/>;
} else {
- edit = () => { __( 'Upsell products will be displayed here on the product page.', 'otter-blocks' ) } ;
+ edit = () => { __( 'Upsell products will be displayed here on the product page.', 'otter-pro' ) } ;
}
if ( Boolean( window.otterPro.hasWooCommerce ) ) {
registerBlockType( name, {
...metadata,
- title: __( 'Product Upsells', 'otter-blocks' ),
- description: __( 'Display upsells for your WooCommerce product.', 'otter-blocks' ),
+ title: __( 'Product Upsells', 'otter-pro' ),
+ description: __( 'Display upsells for your WooCommerce product.', 'otter-pro' ),
icon,
keywords: [
'woocommerce',
From bcd914d90dd79511534f530a93787783b21e6601 Mon Sep 17 00:00:00 2001
From: "Soare Robert Daniel (Mac 2023)"
Date: Fri, 13 Dec 2024 12:18:05 +0200
Subject: [PATCH 2/9] feat: add script translation support for all otter pro
scripts
---
plugins/otter-pro/inc/class-main.php | 4 ++++
plugins/otter-pro/inc/plugins/class-live-search.php | 3 +++
plugins/otter-pro/inc/plugins/class-woocommerce-builder.php | 2 ++
3 files changed, 9 insertions(+)
diff --git a/plugins/otter-pro/inc/class-main.php b/plugins/otter-pro/inc/class-main.php
index 2d09d9137..664c5793d 100644
--- a/plugins/otter-pro/inc/class-main.php
+++ b/plugins/otter-pro/inc/class-main.php
@@ -221,6 +221,8 @@ public function enqueue_block_editor_assets() {
$asset_file['version'],
true
);
+
+ wp_set_script_translations( 'otter-blocks-woocommerce', 'otter-pro' );
}
}
@@ -243,6 +245,8 @@ public function enqueue_options_assets() {
$asset_file['version'],
true
);
+
+ wp_set_script_translations( 'otter-dashboard-scripts', 'otter-pro' );
}
/**
diff --git a/plugins/otter-pro/inc/plugins/class-live-search.php b/plugins/otter-pro/inc/plugins/class-live-search.php
index 484f3a78d..c24593e4f 100644
--- a/plugins/otter-pro/inc/plugins/class-live-search.php
+++ b/plugins/otter-pro/inc/plugins/class-live-search.php
@@ -90,6 +90,7 @@ public static function load_deps() {
$asset_file['version'],
true
);
+
wp_localize_script(
'otter-live-search',
'liveSearchData',
@@ -105,6 +106,8 @@ public static function load_deps() {
)
);
+ wp_set_script_translations( 'otter-live-search', 'otter-pro' );
+
$asset_file = include OTTER_BLOCKS_PATH . '/build/blocks/live-search-style.asset.php';
wp_enqueue_style( 'otter-live-search-style', OTTER_BLOCKS_URL . 'build/blocks/live-search-style.css', $asset_file['dependencies'], $asset_file['version'] );
}
diff --git a/plugins/otter-pro/inc/plugins/class-woocommerce-builder.php b/plugins/otter-pro/inc/plugins/class-woocommerce-builder.php
index 10979450a..357e2e7ff 100644
--- a/plugins/otter-pro/inc/plugins/class-woocommerce-builder.php
+++ b/plugins/otter-pro/inc/plugins/class-woocommerce-builder.php
@@ -150,6 +150,8 @@ public function wc_get_template_part( $template, $slug, $name ) {
if ( has_block( 'themeisle-blocks/product-image', get_the_ID() ) ) {
wp_enqueue_script( 'wc-single-product' );
+
+ wp_set_script_translations( 'wc-single-product', 'otter-pro' );
}
if ( class_exists( '\Neve\Views\Product_Layout' ) && class_exists( '\Neve_Pro\Modules\Woocommerce_Booster\Views\Single_Product' ) ) {
From 8163b1478587a939f9b7421703b8b601ea2af9f9 Mon Sep 17 00:00:00 2001
From: "Soare Robert Daniel (Mac 2023)"
Date: Fri, 13 Dec 2024 12:26:08 +0200
Subject: [PATCH 3/9] feat: add script translation support for all in CSS and
Block Export/Import
---
inc/class-blocks-animation.php | 2 ++
inc/class-blocks-css.php | 1 +
2 files changed, 3 insertions(+)
diff --git a/inc/class-blocks-animation.php b/inc/class-blocks-animation.php
index 614a04b24..f69f2363f 100644
--- a/inc/class-blocks-animation.php
+++ b/inc/class-blocks-animation.php
@@ -104,6 +104,7 @@ public function enqueue_editor_assets() {
);
wp_script_add_data( 'otter-count', 'defer', true );
+ wp_set_script_translations( 'otter-count', 'blocks-animation' );
wp_enqueue_script(
'otter-typing',
@@ -114,6 +115,7 @@ public function enqueue_editor_assets() {
);
wp_script_add_data( 'otter-typing', 'defer', true );
+ wp_set_script_translations( 'otter-typing', 'blocks-animation' );
}
/**
diff --git a/inc/class-blocks-css.php b/inc/class-blocks-css.php
index 27a22cbf8..cf684c7ca 100644
--- a/inc/class-blocks-css.php
+++ b/inc/class-blocks-css.php
@@ -67,6 +67,7 @@ public function enqueue_editor_assets() {
$asset_file['version'],
true
);
+ wp_set_script_translations( 'otter-css', 'blocks-css' );
wp_localize_script(
'otter-css',
From dad3583323dda376a986b407cb1bb9e9a9641240 Mon Sep 17 00:00:00 2001
From: "Soare Robert Daniel (Mac 2023)"
Date: Fri, 13 Dec 2024 12:28:56 +0200
Subject: [PATCH 4/9] feat: add domain option to build:makepot script for
otter-pro
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index a8ae61110..595d2f166 100644
--- a/package.json
+++ b/package.json
@@ -42,7 +42,7 @@
"lint:php": "wp-env run --env-cwd='wp-content/plugins/otter-blocks' cli composer run-script lint",
"format:php": "wp-env run --env-cwd='wp-content/plugins/otter-blocks' cli composer run-script format",
"wp-env": "wp-env",
- "build:makepot": "docker run --user root --rm --volume \"$(pwd):/var/www/html/otter-blocks\" wordpress:cli bash -c 'php -d memory_limit=512M \"$(which wp)\" --version --allow-root && wp i18n make-pot otter-blocks ./otter-blocks/languages/otter-pro.pot --include=src/pro,otter-pro,build/pro --allow-root --headers={\\\"Last-Translator\\\":\\\"friends@themeisle.com\\\"\\,\\\"Report-Msgid-Bugs-To\\\":\\\"https://github.com/Codeinwp/otter-blocks/issues\\\"\\,\\\"Project-Id-Version\\\":\\\"Otter-Blocks\\\"\\,\\\"POT-Creation-Date\\\":\\\"\\\"}'"
+ "build:makepot": "docker run --user root --rm --volume \"$(pwd):/var/www/html/otter-blocks\" wordpress:cli bash -c 'php -d memory_limit=512M \"$(which wp)\" --version --allow-root && wp i18n make-pot otter-blocks ./otter-blocks/languages/otter-pro.pot --include=src/pro,otter-pro,build/pro --allow-root --domain=otter-pro --headers={\\\"Last-Translator\\\":\\\"friends@themeisle.com\\\"\\,\\\"Report-Msgid-Bugs-To\\\":\\\"https://github.com/Codeinwp/otter-blocks/issues\\\"\\,\\\"Project-Id-Version\\\":\\\"Otter-Blocks\\\"\\,\\\"POT-Creation-Date\\\":\\\"\\\"}'"
},
"repository": {
"type": "git",
From 553bb494198b6b721271e03e4ea65ede9aac579d Mon Sep 17 00:00:00 2001
From: "Soare Robert Daniel (Mac 2023)"
Date: Mon, 16 Dec 2024 13:38:19 +0200
Subject: [PATCH 5/9] refactor: unify text-domain in main bundle
---
.wp-env.override.json | 1 +
bin/dist.sh | 3 ++
composer.json | 3 +-
inc/class-blocks-animation.php | 8 +++---
inc/class-main.php | 2 +-
phpcs.export.xml | 52 ++++++++++++++++++++++++++++++++++
webpack.config.js | 44 ++++++++++++++++++++++++++++
webpack.config.plugins.js | 34 ----------------------
8 files changed, 107 insertions(+), 40 deletions(-)
create mode 100644 phpcs.export.xml
diff --git a/.wp-env.override.json b/.wp-env.override.json
index 642f81c72..f59939cd9 100644
--- a/.wp-env.override.json
+++ b/.wp-env.override.json
@@ -9,6 +9,7 @@
"FS_METHOD": "direct",
"WP_DEFAULT_THEME": "twentytwentythree"
},
+ "phpVersion": "7.4",
"env": {
"development": {
"themes": [ "./test/emptytheme" ],
diff --git a/bin/dist.sh b/bin/dist.sh
index d7e8c593d..7eb77a27a 100755
--- a/bin/dist.sh
+++ b/bin/dist.sh
@@ -25,6 +25,9 @@ fi
# Take all the files, filter the dev ones (e.g. node_modules, src), and save the result to './dist'
rsync -rc --exclude-from ".distignore" "./" "dist/$DIST_FOLDER"
+# Change the individual sub-text-domain for the included sub-plugins in the main one.
+composer run format-dist -- "dist/$DIST_FOLDER"
+
cd dist
# Create a zip file in './artifact' from the filtered files in the './dist'
diff --git a/composer.json b/composer.json
index fdd6c3348..8944e792b 100644
--- a/composer.json
+++ b/composer.json
@@ -38,7 +38,8 @@
"lint": "phpcs",
"format": "phpcbf",
"phpunit": "phpunit",
- "phpstan": "phpstan analyse --memory-limit 2G"
+ "phpstan": "phpstan analyse --memory-limit 2G",
+ "format-dist": "phpcbf --standard=phpcs.export.xml $1"
},
"prefer-stable": true,
"config": {
diff --git a/inc/class-blocks-animation.php b/inc/class-blocks-animation.php
index f69f2363f..4b1362107 100644
--- a/inc/class-blocks-animation.php
+++ b/inc/class-blocks-animation.php
@@ -281,17 +281,17 @@ public function render_welcome_notice() {
);
$notice_html = '';
- $notice_html .= '
Dismiss this notice. ';
+ $notice_html .= '
' . esc_html__( 'Dismiss this notice.', 'blocks-animation' ) . ' ';
$notice_html .= '
';
- $notice_html .= '
';
+ $notice_html .= '
';
$notice_html .= '
';
$notice_html .= '
';
$notice_html .= sprintf(
/* translators: %1$s: Add-on Blocks, %2$s: Enhanced Animations, %3$s: Visibility Conditions */
- __( 'Power Up Your Site with %1$s, %2$s, %3$s, and more!', 'otter-blocks' ),
+ __( 'Power Up Your Site with %1$s, %2$s, %3$s, and more!', 'blocks-animation' ),
'' . __( 'Add-on Blocks', 'blocks-animation' ) . ' ',
'' . __( 'Enhanced Animations', 'blocks-animation' ) . ' ',
'' . __( 'Visibility Conditions', 'blocks-animation' ) . ' '
@@ -316,7 +316,7 @@ public function render_welcome_notice() {
$notice_html .= '';
$notice_html .= '';
- $notice_html .= '' . __( 'blocks-animation', 'otter-blocks' ) . ' ';
+ $notice_html .= '' . __( 'Learn More', 'blocks-animation' ) . ' ';
$notice_html .= ' ';
$notice_html .= ' ';
diff --git a/inc/class-main.php b/inc/class-main.php
index e94423721..47af6f409 100644
--- a/inc/class-main.php
+++ b/inc/class-main.php
@@ -582,7 +582,7 @@ public function about_page() {
'logo' => esc_url_raw( OTTER_BLOCKS_URL . 'assets/images/logo-alt.png' ),
'has_upgrade_menu' => ! DEFINED( 'OTTER_PRO_VERSION' ),
'upgrade_link' => tsdk_translate_link( tsdk_utmify( Pro::get_url(), 'editor', Pro::get_reference() ) ),
- 'upgrade_text' => __( 'Get Otter Pro', 'otter-blocks' ),
+ 'upgrade_text' => __( 'Get Otter Pro', 'blocks-animation' ),
);
}
diff --git a/phpcs.export.xml b/phpcs.export.xml
new file mode 100644
index 000000000..78121d85b
--- /dev/null
+++ b/phpcs.export.xml
@@ -0,0 +1,52 @@
+
+
+ ThemeIsle ruleset
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ .
+ node_modules/*
+ vendor/*
+ build/*
+ tests/*
+ Gruntfile.js
+ cypress
+ artifact/*
+ assets/*
+
\ No newline at end of file
diff --git a/webpack.config.js b/webpack.config.js
index ec313b2a7..aac1f90e4 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -18,6 +18,32 @@ const blockFiles = Object.keys( blocks ).filter( block => blocks[ block ].block
const blockFolders = Object.keys( blocks ).filter( block => true !== blocks[ block ]?.isPro ).map( block => `build/blocks/${ block }` );
+const changeTextDomain = textdomain => {
+ return {
+ test: /\.(j|t)sx?$/,
+ exclude: /node_modules/,
+ use: [
+ {
+ loader: require.resolve( 'babel-loader' ),
+ options: {
+ cacheDirectory:
+ process.env.BABEL_CACHE_DIRECTORY || true,
+ babelrc: false,
+ configFile: false,
+ presets: [
+ require.resolve(
+ '@wordpress/babel-preset-default'
+ )
+ ],
+ plugins: [
+ [ '@automattic/babel-plugin-replace-textdomain', { textdomain }]
+ ]
+ }
+ }
+ ]
+ };
+};
+
module.exports = [
{
@@ -74,6 +100,12 @@ module.exports = [
output: {
path: path.resolve( __dirname, './build/animation' )
},
+ module: {
+ rules: [
+ changeTextDomain('otter-blocks'),
+ ...defaultConfig.module.rules
+ ]
+ },
plugins: [
...defaultConfig.plugins,
new BundleAnalyzerPlugin({
@@ -94,6 +126,12 @@ module.exports = [
output: {
path: path.resolve( __dirname, './build/css' )
},
+ module: {
+ rules: [
+ changeTextDomain('otter-blocks'),
+ ...defaultConfig.module.rules
+ ]
+ },
plugins: [
...defaultConfig.plugins,
new BundleAnalyzerPlugin({
@@ -114,6 +152,12 @@ module.exports = [
output: {
path: path.resolve( __dirname, './build/export-import' )
},
+ module: {
+ rules: [
+ changeTextDomain('otter-blocks'),
+ ...defaultConfig.module.rules
+ ]
+ },
plugins: [
...defaultConfig.plugins,
new BundleAnalyzerPlugin({
diff --git a/webpack.config.plugins.js b/webpack.config.plugins.js
index 24fe3011b..1a7d54fed 100644
--- a/webpack.config.plugins.js
+++ b/webpack.config.plugins.js
@@ -5,37 +5,6 @@ const path = require( 'path' );
defaultConfig.plugins.splice( 1, 1 ); // We need to remove Core's Copy Files plugin.
-const getConfig = textdomain => {
- return {
- rules: [
- {
- test: /\.(j|t)sx?$/,
- exclude: /node_modules/,
- use: [
- {
- loader: require.resolve( 'babel-loader' ),
- options: {
- cacheDirectory:
- process.env.BABEL_CACHE_DIRECTORY || true,
- babelrc: false,
- configFile: false,
- presets: [
- require.resolve(
- '@wordpress/babel-preset-default'
- )
- ],
- plugins: [
- [ '@automattic/babel-plugin-replace-textdomain', { 'textdomain': textdomain }]
- ]
- }
- }
- ]
- },
- ...defaultConfig.module.rules
- ]
- };
-};
-
const plugins = {
plugins: [
...defaultConfig.plugins,
@@ -75,7 +44,6 @@ module.exports = [
output: {
path: path.resolve( __dirname, './build/animation' )
},
- module: { ...getConfig( 'blocks-animation' ) },
...plugins
},
{
@@ -90,7 +58,6 @@ module.exports = [
output: {
path: path.resolve( __dirname, './build/css' )
},
- module: { ...getConfig( 'blocks-css' ) },
...plugins
},
{
@@ -105,7 +72,6 @@ module.exports = [
output: {
path: path.resolve( __dirname, './build/export-import' )
},
- module: { ...getConfig( 'blocks-export-import' ) },
...plugins
}
];
From feada62687a5afc65469b66ba561bb4a21d4440f Mon Sep 17 00:00:00 2001
From: "Soare Robert Daniel (Mac 2023)"
Date: Mon, 16 Dec 2024 14:09:35 +0200
Subject: [PATCH 6/9] refactor: sub-plugins translation location
---
inc/class-blocks-animation.php | 26 ++++++++++++++++++++++----
inc/class-blocks-css.php | 7 +++++--
inc/class-blocks-export-import.php | 8 ++++++--
3 files changed, 33 insertions(+), 8 deletions(-)
diff --git a/inc/class-blocks-animation.php b/inc/class-blocks-animation.php
index 4b1362107..e72fa637a 100644
--- a/inc/class-blocks-animation.php
+++ b/inc/class-blocks-animation.php
@@ -92,7 +92,11 @@ public function enqueue_editor_assets() {
)
);
- wp_set_script_translations( 'otter-animation', 'blocks-animation' );
+ if ( ! defined( 'BLOCKS_ANIMATION_URL' ) ) {
+ wp_set_script_translations( 'otter-animation', 'otter-blocks' );
+ } else {
+ wp_set_script_translations( 'otter-animation', 'blocks-animation' );
+ }
$asset_file = include BLOCKS_ANIMATION_PATH . '/build/animation/anim-count.asset.php';
wp_enqueue_script(
@@ -104,7 +108,12 @@ public function enqueue_editor_assets() {
);
wp_script_add_data( 'otter-count', 'defer', true );
- wp_set_script_translations( 'otter-count', 'blocks-animation' );
+
+ if ( ! defined( 'BLOCKS_ANIMATION_URL' ) ) {
+ wp_set_script_translations( 'otter-count', 'otter-blocks' );
+ } else {
+ wp_set_script_translations( 'otter-count', 'blocks-animation' );
+ }
wp_enqueue_script(
'otter-typing',
@@ -115,7 +124,12 @@ public function enqueue_editor_assets() {
);
wp_script_add_data( 'otter-typing', 'defer', true );
- wp_set_script_translations( 'otter-typing', 'blocks-animation' );
+
+ if ( ! defined( 'BLOCKS_ANIMATION_URL' ) ) {
+ wp_set_script_translations( 'otter-typing', 'otter-blocks' );
+ } else {
+ wp_set_script_translations( 'otter-typing', 'blocks-animation' );
+ }
}
/**
@@ -253,7 +267,11 @@ public function render_welcome_notice() {
true
);
- wp_set_script_translations( 'otter-animation-welcome-notice-scripts', 'blocks-animation' );
+ if ( ! defined( 'BLOCKS_ANIMATION_URL' ) ) {
+ wp_set_script_translations( 'otter-animation-welcome-notice-scripts', 'otter-blocks' );
+ } else {
+ wp_set_script_translations( 'otter-animation-welcome-notice-scripts', 'blocks-animation' );
+ }
wp_localize_script(
'otter-animation-welcome-notice-scripts',
diff --git a/inc/class-blocks-css.php b/inc/class-blocks-css.php
index cf684c7ca..4e5fa47f9 100644
--- a/inc/class-blocks-css.php
+++ b/inc/class-blocks-css.php
@@ -67,7 +67,6 @@ public function enqueue_editor_assets() {
$asset_file['version'],
true
);
- wp_set_script_translations( 'otter-css', 'blocks-css' );
wp_localize_script(
'otter-css',
@@ -87,7 +86,11 @@ public function enqueue_editor_assets() {
)
);
- wp_set_script_translations( 'otter-css', 'blocks-css' );
+ if ( ! defined( 'BLOCKS_CSS_URL' ) ) {
+ wp_set_script_translations( 'otter-css', 'otter-blocks' );
+ } else {
+ wp_set_script_translations( 'otter-css', 'blocks-css' );
+ }
wp_enqueue_style(
'otter-css',
diff --git a/inc/class-blocks-export-import.php b/inc/class-blocks-export-import.php
index 433bdb9ce..2c77735fd 100644
--- a/inc/class-blocks-export-import.php
+++ b/inc/class-blocks-export-import.php
@@ -47,8 +47,12 @@ public function enqueue_editor_assets() {
$asset_file['version'],
true
);
-
- wp_set_script_translations( 'blocks-export-import', 'blocks-export-import' );
+
+ if ( ! defined( 'BLOCKS_EXPORT_IMPORT_URL' ) ) {
+ wp_set_script_translations( 'blocks-export-import', 'otter-blocks' );
+ } else {
+ wp_set_script_translations( 'blocks-export-import', 'blocks-export-import' );
+ }
}
/**
From 0620fcb70f8f0b4fd0fd7da1293d2b7a19cd5913 Mon Sep 17 00:00:00 2001
From: "Soare Robert Daniel (Mac 2023)"
Date: Mon, 16 Dec 2024 15:36:40 +0200
Subject: [PATCH 7/9] refactor: pro text-domain scan
---
package.json | 2 +-
src/pro/blocks/add-to-cart-button/block.json | 2 +-
src/pro/blocks/file/block.json | 2 +-
src/pro/blocks/form-hidden-field/block.json | 2 +-
src/pro/blocks/form-stripe-field/block.json | 2 +-
src/pro/blocks/modal/block.json | 2 +-
src/pro/blocks/review-comparison/block.json | 2 +-
src/pro/blocks/woo-comparison/block.json | 2 +-
src/pro/woocommerce/add-to-cart/block.json | 2 +-
src/pro/woocommerce/price/block.json | 2 +-
src/pro/woocommerce/rating/block.json | 2 +-
src/pro/woocommerce/related-products/block.json | 2 +-
src/pro/woocommerce/short-description/block.json | 2 +-
src/pro/woocommerce/stock/block.json | 2 +-
src/pro/woocommerce/tabs/block.json | 2 +-
src/pro/woocommerce/title/block.json | 2 +-
src/pro/woocommerce/upsells/block.json | 2 +-
17 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/package.json b/package.json
index 595d2f166..4e1fde552 100644
--- a/package.json
+++ b/package.json
@@ -42,7 +42,7 @@
"lint:php": "wp-env run --env-cwd='wp-content/plugins/otter-blocks' cli composer run-script lint",
"format:php": "wp-env run --env-cwd='wp-content/plugins/otter-blocks' cli composer run-script format",
"wp-env": "wp-env",
- "build:makepot": "docker run --user root --rm --volume \"$(pwd):/var/www/html/otter-blocks\" wordpress:cli bash -c 'php -d memory_limit=512M \"$(which wp)\" --version --allow-root && wp i18n make-pot otter-blocks ./otter-blocks/languages/otter-pro.pot --include=src/pro,otter-pro,build/pro --allow-root --domain=otter-pro --headers={\\\"Last-Translator\\\":\\\"friends@themeisle.com\\\"\\,\\\"Report-Msgid-Bugs-To\\\":\\\"https://github.com/Codeinwp/otter-blocks/issues\\\"\\,\\\"Project-Id-Version\\\":\\\"Otter-Blocks\\\"\\,\\\"POT-Creation-Date\\\":\\\"\\\"}'"
+ "build:makepot": "docker run --user root --rm --volume \"$(pwd):/var/www/html/otter-blocks\" wordpress:cli bash -c 'php -d memory_limit=512M \"$(which wp)\" --version --allow-root && wp i18n make-pot otter-blocks ./otter-blocks/languages/otter-pro.pot --include=\"otter-pro,build/pro,inc\" --allow-root --domain=otter-pro --headers={\\\"Last-Translator\\\":\\\"friends@themeisle.com\\\"\\,\\\"Report-Msgid-Bugs-To\\\":\\\"https://github.com/Codeinwp/otter-blocks/issues\\\"\\,\\\"Project-Id-Version\\\":\\\"Otter-Blocks\\\"\\,\\\"POT-Creation-Date\\\":\\\"\\\"}'"
},
"repository": {
"type": "git",
diff --git a/src/pro/blocks/add-to-cart-button/block.json b/src/pro/blocks/add-to-cart-button/block.json
index 48a9465cf..8a8558a04 100644
--- a/src/pro/blocks/add-to-cart-button/block.json
+++ b/src/pro/blocks/add-to-cart-button/block.json
@@ -6,7 +6,7 @@
"category": "themeisle-blocks",
"description": "Display an Add to Cart button for your WooCommerce products. Powered by Otter.",
"keywords": [ "woocommerce", "add to cart", "products" ],
- "textdomain": "otter-blocks",
+ "textdomain": "otter-pro",
"attributes": {
"product": {
"type": "number"
diff --git a/src/pro/blocks/file/block.json b/src/pro/blocks/file/block.json
index 93112e9db..2d0f0031c 100644
--- a/src/pro/blocks/file/block.json
+++ b/src/pro/blocks/file/block.json
@@ -7,7 +7,7 @@
"description": "Display a contact form for your clients.",
"keywords": [ "input", "file", "field" ],
"ancestor": [ "themeisle-blocks/form" ],
- "textdomain": "otter-blocks",
+ "textdomain": "otter-pro",
"attributes": {
"id": {
"type": "string"
diff --git a/src/pro/blocks/form-hidden-field/block.json b/src/pro/blocks/form-hidden-field/block.json
index de3999112..7cc819786 100644
--- a/src/pro/blocks/form-hidden-field/block.json
+++ b/src/pro/blocks/form-hidden-field/block.json
@@ -6,7 +6,7 @@
"category": "themeisle-blocks",
"description": "A field used for adding extra metadata to the Form via URL params.",
"keywords": [ "metadata", "hidden", "field" ],
- "textdomain": "otter-blocks",
+ "textdomain": "otter-pro",
"ancestor": [ "themeisle-blocks/form" ],
"attributes": {
"id": {
diff --git a/src/pro/blocks/form-stripe-field/block.json b/src/pro/blocks/form-stripe-field/block.json
index 29f4085bd..a08e40b92 100644
--- a/src/pro/blocks/form-stripe-field/block.json
+++ b/src/pro/blocks/form-stripe-field/block.json
@@ -6,7 +6,7 @@
"category": "themeisle-blocks",
"description": "A field used for adding Stripe products to the form.",
"keywords": [ "product", "stripe", "field" ],
- "textdomain": "otter-blocks",
+ "textdomain": "otter-pro",
"ancestor": [ "themeisle-blocks/form" ],
"attributes": {
"id": {
diff --git a/src/pro/blocks/modal/block.json b/src/pro/blocks/modal/block.json
index 39e4121c4..2afe36b09 100644
--- a/src/pro/blocks/modal/block.json
+++ b/src/pro/blocks/modal/block.json
@@ -6,7 +6,7 @@
"category": "themeisle-blocks",
"description": "Display your content in beautiful Modal with many customization options. Powered by Otter.",
"keywords": [ "modal", "lightbox" ],
- "textdomain": "otter-blocks",
+ "textdomain": "otter-pro",
"attributes": {
"id": {
"type": "string"
diff --git a/src/pro/blocks/review-comparison/block.json b/src/pro/blocks/review-comparison/block.json
index dfda0afb4..76fd307d5 100644
--- a/src/pro/blocks/review-comparison/block.json
+++ b/src/pro/blocks/review-comparison/block.json
@@ -6,7 +6,7 @@
"category": "themeisle-blocks",
"description": "A way to compare different product reviews made on the website. Powered by Otter.",
"keywords": [ "product", "review", "comparison" ],
- "textdomain": "otter-blocks",
+ "textdomain": "otter-pro",
"attributes": {
"id": {
"type": "string"
diff --git a/src/pro/blocks/woo-comparison/block.json b/src/pro/blocks/woo-comparison/block.json
index a4a47314c..7aac11cfe 100644
--- a/src/pro/blocks/woo-comparison/block.json
+++ b/src/pro/blocks/woo-comparison/block.json
@@ -6,7 +6,7 @@
"category": "themeisle-blocks",
"description": "A way to compare different WooCommerce products made on the website. Powered by Otter.",
"keywords": [ "woocommerce", "comparison", "table" ],
- "textdomain": "otter-blocks",
+ "textdomain": "otter-pro",
"attributes": {
"id": {
"type": "string"
diff --git a/src/pro/woocommerce/add-to-cart/block.json b/src/pro/woocommerce/add-to-cart/block.json
index 8cb6d7062..1c4a40af4 100644
--- a/src/pro/woocommerce/add-to-cart/block.json
+++ b/src/pro/woocommerce/add-to-cart/block.json
@@ -6,5 +6,5 @@
"category": "themeisle-woocommerce-blocks",
"description": "Display the add to cart section of your WooCommerce product.",
"keywords": [ "woocommerce", "products", "add to cart" ],
- "textdomain": "otter-blocks"
+ "textdomain": "otter-pro"
}
\ No newline at end of file
diff --git a/src/pro/woocommerce/price/block.json b/src/pro/woocommerce/price/block.json
index 70720f8be..3b9edbc17 100644
--- a/src/pro/woocommerce/price/block.json
+++ b/src/pro/woocommerce/price/block.json
@@ -6,5 +6,5 @@
"category": "themeisle-woocommerce-blocks",
"description": "Display the price of your WooCommerce product.",
"keywords": [ "woocommerce", "products", "price" ],
- "textdomain": "otter-blocks"
+ "textdomain": "otter-pro"
}
\ No newline at end of file
diff --git a/src/pro/woocommerce/rating/block.json b/src/pro/woocommerce/rating/block.json
index 8a66c2559..f3041aa51 100644
--- a/src/pro/woocommerce/rating/block.json
+++ b/src/pro/woocommerce/rating/block.json
@@ -6,5 +6,5 @@
"category": "themeisle-woocommerce-blocks",
"description": "Display the rating of your WooCommerce product.",
"keywords": [ "woocommerce", "products", "rating" ],
- "textdomain": "otter-blocks"
+ "textdomain": "otter-pro"
}
\ No newline at end of file
diff --git a/src/pro/woocommerce/related-products/block.json b/src/pro/woocommerce/related-products/block.json
index 626cc756a..c1d12113c 100644
--- a/src/pro/woocommerce/related-products/block.json
+++ b/src/pro/woocommerce/related-products/block.json
@@ -6,5 +6,5 @@
"category": "themeisle-woocommerce-blocks",
"description": "Display related products for your WooCommerce product.",
"keywords": [ "woocommerce", "products", "related products" ],
- "textdomain": "otter-blocks"
+ "textdomain": "otter-pro"
}
\ No newline at end of file
diff --git a/src/pro/woocommerce/short-description/block.json b/src/pro/woocommerce/short-description/block.json
index 364d39ebc..95eb2c471 100644
--- a/src/pro/woocommerce/short-description/block.json
+++ b/src/pro/woocommerce/short-description/block.json
@@ -6,5 +6,5 @@
"category": "themeisle-woocommerce-blocks",
"description": "Display the short description of your WooCommerce product.",
"keywords": [ "woocommerce", "products", "short description" ],
- "textdomain": "otter-blocks"
+ "textdomain": "otter-pro"
}
\ No newline at end of file
diff --git a/src/pro/woocommerce/stock/block.json b/src/pro/woocommerce/stock/block.json
index bd98a477f..9e8443145 100644
--- a/src/pro/woocommerce/stock/block.json
+++ b/src/pro/woocommerce/stock/block.json
@@ -6,5 +6,5 @@
"category": "themeisle-woocommerce-blocks",
"description": "Display the stock description of your WooCommerce product.",
"keywords": [ "woocommerce", "products", "stock" ],
- "textdomain": "otter-blocks"
+ "textdomain": "otter-pro"
}
\ No newline at end of file
diff --git a/src/pro/woocommerce/tabs/block.json b/src/pro/woocommerce/tabs/block.json
index c172616fa..5af6d1a85 100644
--- a/src/pro/woocommerce/tabs/block.json
+++ b/src/pro/woocommerce/tabs/block.json
@@ -6,5 +6,5 @@
"category": "themeisle-woocommerce-blocks",
"description": "Display the tabs for your WooCommerce product.",
"keywords": [ "woocommerce", "products", "tabs" ],
- "textdomain": "otter-blocks"
+ "textdomain": "otter-pro"
}
\ No newline at end of file
diff --git a/src/pro/woocommerce/title/block.json b/src/pro/woocommerce/title/block.json
index e8d0d423c..bdbbfc318 100644
--- a/src/pro/woocommerce/title/block.json
+++ b/src/pro/woocommerce/title/block.json
@@ -6,5 +6,5 @@
"category": "themeisle-woocommerce-blocks",
"description": "Display the title of your WooCommerce product.",
"keywords": [ "woocommerce", "products", "title" ],
- "textdomain": "otter-blocks"
+ "textdomain": "otter-pro"
}
\ No newline at end of file
diff --git a/src/pro/woocommerce/upsells/block.json b/src/pro/woocommerce/upsells/block.json
index 060cc932e..7ea512087 100644
--- a/src/pro/woocommerce/upsells/block.json
+++ b/src/pro/woocommerce/upsells/block.json
@@ -6,5 +6,5 @@
"category": "themeisle-woocommerce-blocks",
"description": "Display upsells for your WooCommerce product.",
"keywords": [ "woocommerce", "products", "upsells" ],
- "textdomain": "otter-blocks"
+ "textdomain": "otter-pro"
}
\ No newline at end of file
From 1e057f434e72b681e08ef58f888e7bbc063f3387 Mon Sep 17 00:00:00 2001
From: "Soare Robert Daniel (Mac 2023)"
Date: Mon, 3 Feb 2025 13:12:27 +0200
Subject: [PATCH 8/9] chore: tweaks
---
.distignore | 1 +
.github/workflows/create-build-url.yml | 4 ++-
.github/workflows/deploy-stagging.yml | 2 ++
.github/workflows/deploy.yml | 2 ++
Gruntfile.js | 13 +++++++-
bin/dist.sh | 5 ++-
composer.json | 2 +-
inc/class-blocks-animation.php | 31 ++++++------------
inc/class-blocks-css.php | 7 ++--
inc/class-blocks-export-import.php | 7 ++--
inc/class-main.php | 2 +-
inc/class-pro.php | 32 +++++++++----------
package.json | 1 +
phpcs.export.xml | 21 +++---------
src/animation/editor.js | 4 +--
.../blocks/review-comparison/placeholder.js | 7 ++--
16 files changed, 68 insertions(+), 73 deletions(-)
diff --git a/.distignore b/.distignore
index 9580914ef..f02de9277 100644
--- a/.distignore
+++ b/.distignore
@@ -5,6 +5,7 @@
.jshintrc
Gruntfile.js
phpcs.xml
+phpcs.export.xml
phpstan.neon
.eslintrc
.gitattributes
diff --git a/.github/workflows/create-build-url.yml b/.github/workflows/create-build-url.yml
index 3ef748a3a..9132066f7 100644
--- a/.github/workflows/create-build-url.yml
+++ b/.github/workflows/create-build-url.yml
@@ -2,7 +2,7 @@ name: Build and publish the ZIP build file
on:
pull_request:
- types: [ opened, synchronize, ready_for_review ]
+ types: [opened, synchronize, ready_for_review]
branches-ignore:
- "update_dependencies"
jobs:
@@ -31,6 +31,8 @@ jobs:
run: composer install --no-dev --prefer-dist --no-progress --no-suggest
- name: Install npm deps
run: npm ci
+ - name: Set version to Stable Tag
+ run: npm run grunt:version
- name: Build files
run: npm run build
- name: Create zip
diff --git a/.github/workflows/deploy-stagging.yml b/.github/workflows/deploy-stagging.yml
index 4fc5e2698..a4cc11496 100644
--- a/.github/workflows/deploy-stagging.yml
+++ b/.github/workflows/deploy-stagging.yml
@@ -33,6 +33,8 @@ jobs:
run: composer install --no-dev --prefer-dist --no-progress --no-suggest
- name: Install npm deps
run: npm ci
+ - name: Set version to Stable Tag
+ run: npm run grunt:version
- name: Build files
run: npm run build
- name: Zip files
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index d7ed5848b..83ec31b17 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -21,6 +21,8 @@ jobs:
run: composer install --no-dev --prefer-dist --no-progress --no-suggest
- name: Install npm deps
run: npm ci
+ - name: Set version to Stable Tag
+ run: npm run grunt:version
- name: Build files
run: npm run build
- name: Build zip
diff --git a/Gruntfile.js b/Gruntfile.js
index 8eb5351e1..ca0b7cc12 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -85,7 +85,18 @@ module.exports = function( grunt ) {
flags: ''
},
src: [ 'plugins/otter-pro/otter-pro.php' ]
- }
+ },
+ readmetxt: {
+ options: {
+ prefix: 'Stable tag:\\s*'
+ },
+ src: [
+ 'readme.txt',
+ 'plugins/blocks-animation/readme.txt',
+ 'plugins/blocks-css/readme.txt',
+ 'plugins/blocks-export-import/readme.txt',
+ ]
+ },
},
wp_readme_to_markdown: {
plugin: {
diff --git a/bin/dist.sh b/bin/dist.sh
index 7eb77a27a..c639c6ed8 100755
--- a/bin/dist.sh
+++ b/bin/dist.sh
@@ -22,11 +22,14 @@ else
DIST_FOLDER=$BUILD_NAME
fi
+
# Take all the files, filter the dev ones (e.g. node_modules, src), and save the result to './dist'
rsync -rc --exclude-from ".distignore" "./" "dist/$DIST_FOLDER"
# Change the individual sub-text-domain for the included sub-plugins in the main one.
-composer run format-dist -- "dist/$DIST_FOLDER"
+composer install --prefer-dist --no-progress --no-suggest
+composer run format-dist -- "./dist/$DIST_FOLDER"
+composer install --no-dev --prefer-dist --no-progress --no-suggest
cd dist
diff --git a/composer.json b/composer.json
index 8944e792b..978993ec9 100644
--- a/composer.json
+++ b/composer.json
@@ -39,7 +39,7 @@
"format": "phpcbf",
"phpunit": "phpunit",
"phpstan": "phpstan analyse --memory-limit 2G",
- "format-dist": "phpcbf --standard=phpcs.export.xml $1"
+ "format-dist": "phpcbf --standard=phpcs.export.xml"
},
"prefer-stable": true,
"config": {
diff --git a/inc/class-blocks-animation.php b/inc/class-blocks-animation.php
index e72fa637a..8b1698bfe 100644
--- a/inc/class-blocks-animation.php
+++ b/inc/class-blocks-animation.php
@@ -44,6 +44,7 @@ public function init() {
if ( ! defined( 'BLOCKS_ANIMATION_URL' ) ) {
define( 'BLOCKS_ANIMATION_URL', OTTER_BLOCKS_URL );
define( 'BLOCKS_ANIMATION_PATH', OTTER_BLOCKS_PATH );
+ define( 'BLOCKS_ANIMATION_OTTER', true );
}
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_editor_assets' ) );
@@ -63,7 +64,8 @@ public function init() {
* @access public
*/
public function enqueue_editor_assets() {
- $asset_file = include BLOCKS_ANIMATION_PATH . '/build/animation/index.asset.php';
+ $asset_file = include BLOCKS_ANIMATION_PATH . '/build/animation/index.asset.php';
+ $is_using_otter_files = defined( 'BLOCKS_ANIMATION_OTTER' );
wp_enqueue_style(
'otter-animation',
@@ -92,11 +94,7 @@ public function enqueue_editor_assets() {
)
);
- if ( ! defined( 'BLOCKS_ANIMATION_URL' ) ) {
- wp_set_script_translations( 'otter-animation', 'otter-blocks' );
- } else {
- wp_set_script_translations( 'otter-animation', 'blocks-animation' );
- }
+ wp_set_script_translations( 'otter-animation', $is_using_otter_files ? 'otter-blocks' : 'blocks-animation' );
$asset_file = include BLOCKS_ANIMATION_PATH . '/build/animation/anim-count.asset.php';
wp_enqueue_script(
@@ -109,11 +107,7 @@ public function enqueue_editor_assets() {
wp_script_add_data( 'otter-count', 'defer', true );
- if ( ! defined( 'BLOCKS_ANIMATION_URL' ) ) {
- wp_set_script_translations( 'otter-count', 'otter-blocks' );
- } else {
- wp_set_script_translations( 'otter-count', 'blocks-animation' );
- }
+ wp_set_script_translations( 'otter-count', $is_using_otter_files ? 'otter-blocks' : 'blocks-animation' );
wp_enqueue_script(
'otter-typing',
@@ -125,11 +119,7 @@ public function enqueue_editor_assets() {
wp_script_add_data( 'otter-typing', 'defer', true );
- if ( ! defined( 'BLOCKS_ANIMATION_URL' ) ) {
- wp_set_script_translations( 'otter-typing', 'otter-blocks' );
- } else {
- wp_set_script_translations( 'otter-typing', 'blocks-animation' );
- }
+ wp_set_script_translations( 'otter-typing', $is_using_otter_files ? 'otter-blocks' : 'blocks-animation' );
}
/**
@@ -267,11 +257,10 @@ public function render_welcome_notice() {
true
);
- if ( ! defined( 'BLOCKS_ANIMATION_URL' ) ) {
- wp_set_script_translations( 'otter-animation-welcome-notice-scripts', 'otter-blocks' );
- } else {
- wp_set_script_translations( 'otter-animation-welcome-notice-scripts', 'blocks-animation' );
- }
+ wp_set_script_translations(
+ 'otter-animation-welcome-notice-scripts',
+ defined( 'BLOCKS_ANIMATION_OTTER' ) ? 'otter-blocks' : 'blocks-animation'
+ );
wp_localize_script(
'otter-animation-welcome-notice-scripts',
diff --git a/inc/class-blocks-css.php b/inc/class-blocks-css.php
index 4e5fa47f9..dd123e80a 100644
--- a/inc/class-blocks-css.php
+++ b/inc/class-blocks-css.php
@@ -26,6 +26,7 @@ public function init() {
if ( ! defined( 'BLOCKS_CSS_URL' ) ) {
define( 'BLOCKS_CSS_URL', OTTER_BLOCKS_URL );
define( 'BLOCKS_CSS_PATH', OTTER_BLOCKS_PATH );
+ define( 'BLOCKS_CSS_OTTER', true );
}
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_editor_assets' ), 1 );
@@ -86,11 +87,7 @@ public function enqueue_editor_assets() {
)
);
- if ( ! defined( 'BLOCKS_CSS_URL' ) ) {
- wp_set_script_translations( 'otter-css', 'otter-blocks' );
- } else {
- wp_set_script_translations( 'otter-css', 'blocks-css' );
- }
+ wp_set_script_translations( 'otter-css', defined( 'BLOCKS_CSS_OTTER' ) ? 'otter-blocks' : 'blocks-css' );
wp_enqueue_style(
'otter-css',
diff --git a/inc/class-blocks-export-import.php b/inc/class-blocks-export-import.php
index 2c77735fd..f940e8afe 100644
--- a/inc/class-blocks-export-import.php
+++ b/inc/class-blocks-export-import.php
@@ -26,6 +26,7 @@ public function init() {
if ( ! defined( 'BLOCKS_EXPORT_IMPORT_URL' ) ) {
define( 'BLOCKS_EXPORT_IMPORT_URL', OTTER_BLOCKS_URL );
define( 'BLOCKS_EXPORT_IMPORT_PATH', OTTER_BLOCKS_PATH );
+ define( 'BLOCKS_EXPORT_OTTER', true );
}
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_editor_assets' ), 1 );
@@ -48,11 +49,7 @@ public function enqueue_editor_assets() {
true
);
- if ( ! defined( 'BLOCKS_EXPORT_IMPORT_URL' ) ) {
- wp_set_script_translations( 'blocks-export-import', 'otter-blocks' );
- } else {
- wp_set_script_translations( 'blocks-export-import', 'blocks-export-import' );
- }
+ wp_set_script_translations( 'blocks-export-import', defined( 'BLOCKS_EXPORT_OTTER' ) ? 'otter-blocks' : 'blocks-export-import' );
}
/**
diff --git a/inc/class-main.php b/inc/class-main.php
index 47af6f409..e94423721 100644
--- a/inc/class-main.php
+++ b/inc/class-main.php
@@ -582,7 +582,7 @@ public function about_page() {
'logo' => esc_url_raw( OTTER_BLOCKS_URL . 'assets/images/logo-alt.png' ),
'has_upgrade_menu' => ! DEFINED( 'OTTER_PRO_VERSION' ),
'upgrade_link' => tsdk_translate_link( tsdk_utmify( Pro::get_url(), 'editor', Pro::get_reference() ) ),
- 'upgrade_text' => __( 'Get Otter Pro', 'blocks-animation' ),
+ 'upgrade_text' => __( 'Get Otter Pro', 'otter-blocks' ),
);
}
diff --git a/inc/class-pro.php b/inc/class-pro.php
index 4339691b1..7ef94b576 100644
--- a/inc/class-pro.php
+++ b/inc/class-pro.php
@@ -207,7 +207,7 @@ public function should_show_dashboard_upsell() {
public function register_metabox( $post_type ) {
add_meta_box(
'otter_woo_builder',
- __( 'WooCommerce Builder by Otter', 'otter-pro' ),
+ __( 'WooCommerce Builder by Otter', 'otter-blocks' ),
array( $this, 'render_metabox_upsell' ),
'product',
'side',
@@ -241,17 +241,17 @@ public function render_metabox_upsell( $post_type ) {
}
%1$s %2$s %4$s
',
esc_html( $plugin_name ),
esc_html( $message ),
esc_url( admin_url( 'update-core.php' ) ),
- esc_html__( 'Update', 'otter-pro' )
+ esc_html__( 'Update', 'otter-blocks' )
);
}
@@ -320,8 +320,8 @@ public function dashboard_upsell_notice() {
jQuery( document ).ready( () => disableNotice( jQuery ) );
@@ -369,7 +369,7 @@ public function dismiss_dashboard_notice() {
public function add_cron_schedules( $schedules = array() ) {
// Adds once monthly to the existing schedules.
$schedules['monthly'] = array(
- 'display' => __( 'Monthly', 'otter-pro' ),
+ 'display' => __( 'Monthly', 'otter-blocks' ),
'interval' => 2635200,
);
@@ -420,7 +420,7 @@ public function add_pro_link( $links ) {
$links[] = sprintf(
'
%s ',
esc_url_raw( tsdk_utmify( self::get_url(), 'pluginspage', 'action' ) ),
- __( 'Get Otter Pro', 'otter-pro' )
+ __( 'Get Otter Pro', 'otter-blocks' )
);
return $links;
diff --git a/package.json b/package.json
index 4e1fde552..de0634e56 100644
--- a/package.json
+++ b/package.json
@@ -7,6 +7,7 @@
"prod:lite": "wp-scripts build --config webpack.config.js",
"prod:pro": "wp-scripts build --config webpack.config.pro.js",
"prod:grunt": "grunt build",
+ "grunt:version": "grunt version",
"start": "rm -rf build && npm-run-all --parallel dev:*",
"dev:lite": "wp-scripts start --config webpack.config.js",
"dev:pro": "wp-scripts start --config webpack.config.pro.js",
diff --git a/phpcs.export.xml b/phpcs.export.xml
index 78121d85b..cd49d5937 100644
--- a/phpcs.export.xml
+++ b/phpcs.export.xml
@@ -1,6 +1,7 @@
ThemeIsle ruleset
+
@@ -16,6 +17,7 @@
+
@@ -26,27 +28,12 @@
-
-
-
-
-
-
+
-
-
-
-
- .
- node_modules/*
vendor/*
build/*
- tests/*
- Gruntfile.js
- cypress
- artifact/*
- assets/*
\ No newline at end of file
diff --git a/src/animation/editor.js b/src/animation/editor.js
index 29ac655df..f4704fb34 100644
--- a/src/animation/editor.js
+++ b/src/animation/editor.js
@@ -457,7 +457,7 @@ function AnimationControls({
>
@@ -470,7 +470,7 @@ function AnimationControls({
>
diff --git a/src/pro/blocks/review-comparison/placeholder.js b/src/pro/blocks/review-comparison/placeholder.js
index 8d35da248..cb55579b8 100644
--- a/src/pro/blocks/review-comparison/placeholder.js
+++ b/src/pro/blocks/review-comparison/placeholder.js
@@ -54,8 +54,11 @@ const BlockPlaceholder = ({
toggleReview( value ) }
/>
From 3a7117707b89024fcb353d737c5ab719ea31d1fe Mon Sep 17 00:00:00 2001
From: "Soare Robert Daniel (Mac 2023)"
Date: Tue, 4 Feb 2025 12:45:14 +0200
Subject: [PATCH 9/9] refactor: set the textdomain for shared files between
plugins
---
webpack.config.plugins.js | 44 +++++++++++++++++++++++++++++++++++++++
webpack.config.pro.js | 32 ++++++++++++++++++++++++++++
2 files changed, 76 insertions(+)
diff --git a/webpack.config.plugins.js b/webpack.config.plugins.js
index 1a7d54fed..be69e626f 100644
--- a/webpack.config.plugins.js
+++ b/webpack.config.plugins.js
@@ -5,6 +5,32 @@ const path = require( 'path' );
defaultConfig.plugins.splice( 1, 1 ); // We need to remove Core's Copy Files plugin.
+const changeTextDomain = textdomain => {
+ return {
+ test: /\.(j|t)sx?$/,
+ exclude: /node_modules/,
+ use: [
+ {
+ loader: require.resolve( 'babel-loader' ),
+ options: {
+ cacheDirectory:
+ process.env.BABEL_CACHE_DIRECTORY || true,
+ babelrc: false,
+ configFile: false,
+ presets: [
+ require.resolve(
+ '@wordpress/babel-preset-default'
+ )
+ ],
+ plugins: [
+ [ '@automattic/babel-plugin-replace-textdomain', { textdomain }]
+ ]
+ }
+ }
+ ]
+ };
+};
+
const plugins = {
plugins: [
...defaultConfig.plugins,
@@ -44,6 +70,12 @@ module.exports = [
output: {
path: path.resolve( __dirname, './build/animation' )
},
+ module: {
+ rules: [
+ changeTextDomain('blocks-animation'),
+ ...defaultConfig.module.rules
+ ]
+ },
...plugins
},
{
@@ -58,6 +90,12 @@ module.exports = [
output: {
path: path.resolve( __dirname, './build/css' )
},
+ module: {
+ rules: [
+ changeTextDomain('blocks-css'),
+ ...defaultConfig.module.rules
+ ]
+ },
...plugins
},
{
@@ -72,6 +110,12 @@ module.exports = [
output: {
path: path.resolve( __dirname, './build/export-import' )
},
+ module: {
+ rules: [
+ changeTextDomain('blocks-export-import'),
+ ...defaultConfig.module.rules
+ ]
+ },
...plugins
}
];
diff --git a/webpack.config.pro.js b/webpack.config.pro.js
index 2675771ad..b3b6d38ae 100644
--- a/webpack.config.pro.js
+++ b/webpack.config.pro.js
@@ -18,6 +18,32 @@ const blockFilesPro = Object.keys( blocks ).filter( block => blocks[ block ].blo
const blockFoldersPro = Object.keys( blocks ).filter( block => true === blocks[ block ]?.isPro ).map( block => `build/pro/${ block }` );
+const changeTextDomain = textdomain => {
+ return {
+ test: /\.(j|t)sx?$/,
+ exclude: /node_modules/,
+ use: [
+ {
+ loader: require.resolve( 'babel-loader' ),
+ options: {
+ cacheDirectory:
+ process.env.BABEL_CACHE_DIRECTORY || true,
+ babelrc: false,
+ configFile: false,
+ presets: [
+ require.resolve(
+ '@wordpress/babel-preset-default'
+ )
+ ],
+ plugins: [
+ [ '@automattic/babel-plugin-replace-textdomain', { textdomain }]
+ ]
+ }
+ }
+ ]
+ };
+};
+
module.exports = [
{
@@ -39,6 +65,12 @@ module.exports = [
filename: '[name].js',
chunkFilename: 'chunk-[name].js'
},
+ module: {
+ rules: [
+ changeTextDomain('otter-pro'),
+ ...defaultConfig.module.rules
+ ]
+ },
plugins: [
...defaultConfig.plugins,
new FileManagerPlugin({