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() { ?> - + $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( '
%2$s
', 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( '
%2$s
', 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() { '

%1$s %3$s

', 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( '

%1$s

', 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 = ({ ) } -

{__( '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 ( { @@ -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 ( { @@ -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 = ({ { @@ -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 }) } /> 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 = ({
- { 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 ? ( { />
{ @@ -171,7 +171,7 @@ const WebhookEditor = ( props: WebhookEditorProps ) => {
{ const newHeaders = [ ...headers ]; newHeaders[ index ] = { @@ -183,7 +183,7 @@ const WebhookEditor = ( props: WebhookEditorProps ) => { /> { const newHeaders = [ ...headers ]; newHeaders[ index ] = { @@ -216,7 +216,7 @@ const WebhookEditor = ( props: WebhookEditorProps ) => { ]); }} > - { __( 'Add New Header', 'otter-blocks' ) } + { __( 'Add New Header', 'otter-pro' ) }
@@ -228,7 +228,7 @@ const WebhookEditor = ( props: WebhookEditorProps ) => { setId( '' ); }} > - { __( 'Back', 'otter-blocks' ) } + { __( 'Back', 'otter-pro' ) }
@@ -274,7 +274,7 @@ const WebhookEditor = ( props: WebhookEditorProps ) => { saveWebhooks( newWebhooks ); }} > - { __( 'Save', 'otter-blocks' ) } + { __( 'Save', 'otter-pro' ) }
@@ -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 && ( ( <> ) } @@ -189,11 +189,11 @@ const CountdownProFeaturesSettings = ( Template: React.FC<{}>, { attributes, set ( <> ) } @@ -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" > - + { 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 ) && (