From 15cd1b85d1d9ee32f5b885f56094bc70d4f105de Mon Sep 17 00:00:00 2001 From: stefan-cotitosu Date: Tue, 3 Dec 2024 23:54:44 +0200 Subject: [PATCH 1/3] Updated readme.txt for the plugin description and FAQ --- readme.txt | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/readme.txt b/readme.txt index b9f6e2fa..0ecda8dc 100644 --- a/readme.txt +++ b/readme.txt @@ -15,27 +15,18 @@ This plugin gives you access to 100+ templates and ready-to-use starter sites. N = A cloud based templates library which enables you to create or use existing ready-made website with 1-click. = ### More than 100 Starter Sites and Templates available for the most popular page builders ### -Browse a wide selection of templates and starter sites that are designed to help you build beautiful websites with Elementor and Gutenberg. All templates can be previewed on [demosites.io](https://demosites.io/) and you can seamlessly import them to any of your sites. Whether you're a beginner or a seasoned pro, our templates can help you save time and create stunning websites without any coding knowledge. -In addition to our Elementor and Gutenberg templates, we also offer a handful of page templates for Beaver Builder. These templates are perfect for creating basic pages such as contact pages, about pages, and blog pages. If you're a Beaver Builder user, be sure to check out our selection of page templates. - -### Your own private Templates Cloud [PRO] ### -Boost productivity and speed up your workflow by saving all your designs and share them automatically to all your sites in 1-click. -Check more details about this in our [documentation](https://docs.themeisle.com/article/1354-neve-template-cloud-library) guide. - -The plugin is relying on the service behind api.themeisle.com for accessing the template collection list and their individual structure on import. - -No account is required to access the service template collection and the privacy policy can be found [here](https://themeisle.com/privacy-policy/). +Browse a wide selection of templates and starter sites that are designed to help you build beautiful websites with Gutenberg. All templates can be previewed on [demosites.io](https://demosites.io/) and you can seamlessly import them to any of your sites. Whether you’re a beginner or a seasoned pro, our templates can help you save time and create stunning websites without any coding knowledge. These templates are perfect for creating basic pages such as contact pages, about pages, and blog pages. == Frequently Asked Questions == = Does it work with any WordPress theme? = -Right now we are supporting only [Neve](https://wordpress.org/themes/neve/) theme +Right now we are supporting only the [Neve](https://wordpress.org/themes/neve/) theme. = Which starter sites and templates are free and which are not? = You can check the full collection on [demosites.io](https://demosites.io/) = Can I import just one page from one starter site? = -Yes, you can. You can either chose to import one template or the entire starter site. +Yes, you can choose to import either one template or the entire starter site. == Changelog == From b276df7c267eac70fe8593afe5394c06b51558e6 Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Fri, 13 Dec 2024 13:30:34 +0200 Subject: [PATCH 2/3] chore: force text-domain loading for js files --- includes/Admin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/Admin.php b/includes/Admin.php index 6352c8e1..4af61a61 100755 --- a/includes/Admin.php +++ b/includes/Admin.php @@ -751,6 +751,8 @@ public function enqueue() { wp_localize_script( 'tiobObd', 'tiobDash', apply_filters( 'neve_dashboard_page_data', $this->get_localization() ) ); wp_enqueue_script( 'tiobObd' ); + wp_set_script_translations( 'tiobObd', 'templates-patterns-collection' ); + if ( ! empty( $this->google_fonts ) ) { $font_chunks = array_chunk( $this->google_fonts, absint( count( $this->google_fonts ) / 5 ) ); foreach ( $font_chunks as $index => $fonts_chunk ) { @@ -787,6 +789,8 @@ public function enqueue() { } wp_localize_script( 'tiob', 'tiobDash', apply_filters( 'neve_dashboard_page_data', $tiob_dash ) ); wp_enqueue_script( 'tiob' ); + + wp_set_script_translations( 'tiob', 'templates-patterns-collection' ); } /** From ae0eca83fce1f446e6fe0e8d38eaf6a57eb83a06 Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Fri, 13 Dec 2024 13:32:52 +0200 Subject: [PATCH 3/3] chore: update eslint rule for i18n --- .eslintrc | 5 ++++- editor/src/components/filters.js | 2 +- editor/src/components/list-item.js | 5 +++-- editor/src/components/preview.js | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.eslintrc b/.eslintrc index 47c8d5c0..3cc1edb2 100644 --- a/.eslintrc +++ b/.eslintrc @@ -33,7 +33,10 @@ "no-nested-ternary": 0, "prettier/prettier": "off", "no-shadow": "warn", - "camelcase": "warn" + "camelcase": "warn", + "@wordpress/i18n-text-domain": ["error", { + "allowedTextDomain": ["templates-patterns-collection"] + }] }, "ignorePatterns": ["**/vendor/**"] } diff --git a/editor/src/components/filters.js b/editor/src/components/filters.js index 36ce7d3d..063764ed 100644 --- a/editor/src/components/filters.js +++ b/editor/src/components/filters.js @@ -27,7 +27,7 @@ const Filters = ( { return (
-
{ __( 'Sort by' ) }
+
{ __( 'Sort by','templates-patterns-collection' ) }
{ Object.keys( sortByOptions ).map( ( i ) => ( diff --git a/editor/src/components/list-item.js b/editor/src/components/list-item.js index 546f65cc..4f15b3ff 100644 --- a/editor/src/components/list-item.js +++ b/editor/src/components/list-item.js @@ -158,7 +158,8 @@ const ListItem = ( {
{ item.link ? (