diff --git a/CHANGES.md b/CHANGES.md index 0e55e38..75b9e18 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ * [Plugin page on WordPress.org: wordpress.org/plugins/builder-template-categories/](https://wordpress.org/plugins/builder-template-categories/) * [Translate the plugin](https://translate.wordpress.org/projects/wp-plugins/builder-template-categories) +* [**Join plugin's newsletter for insider info, tutorials and more**](https://eepurl.com/gbAUUn) * [**Donate** for the further development & support of the plugin](https://www.paypal.me/deckerweb) * [Plugin's documentation & FAQ](https://wordpress.org/plugins/builder-template-categories/#faq) * [Facebook Community User Group](https://www.facebook.com/groups/deckerweb.wordpress.plugins/) @@ -12,6 +13,17 @@ ## Changelog of the Plugin +### 1.4.3 - 2019-01-21 + +* New: Additional checks for Block Editor (Gutenberg) integration if one of the popular disabling plugins has disabled it completely (in that case the integration won't be loaded at all!) +* New: Overhauled Elementor integration to be also fully compatible with Elementor 2.4.0 or higher (while still being compatible with older Elementor versions) +* New: Make predefined category terms also available for Elementor built-in "Categories" taxonomy (only for Elementor v2.4.0+) +* New: Added new template content types "Flow/ Flows" and "Snippet/ Snippets" +* New: [Join my newsletter for DECKERWEB WordPress Plugins](https://eepurl.com/gbAUUn) - insider info, plus tutorials and more useful stuff +* Tweak: Updated `.pot` file plus all German translations (formal, informal) and language packs +* Tweak: Enhanced and improved Readme.txt file here - also added new FAQ entry + + ### 1.4.2 - 2018-12-14 * Tweak: Moved admin CSS into proper stylesheet, and enqueue it - this fixes issues users have reported diff --git a/README.md b/README.md index cf4b3de..754df85 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Organize your Page Builder Templates in the WordPress Admin. Time saver, especia Out of the box the plugin includes integrations for a lot of awesome Page Builders, Themes and Plugins. If any supported integration is installed & active, the "Builder Template Categories" plugin just applies its additions. The plugin is really lightweight and simple. Just activate and you're done - and can use the categorization. -### What the Plugin does? +### ♥️ What the Plugin does? - **Better organize** your templates if you have many of them - **Better overview** for admins and site builders - **Filtering** in the overview table of a post type (typical WordPress overview) via Dropdown Filter, or Link filter in the row of a post type's post @@ -34,7 +34,7 @@ Out of the box the plugin includes integrations for a lot of awesome Page Builde - Developer friendly: clean code, inline documentation, lots of filters available -### Typical Use Case of this Plugin +### 🚀 Typical Use Case of this Plugin You are building a **big site** with **lots of different templates** across **various template libraries** of different plugins. Now the "Builder Template Categories" plugin helps you organize those templates better and more efficiently. For example you have a template category "Landing Pages". This category is now visible in Elementor's "My Templates", as well as in the Theme "GeneratePress" and its "Elements" Module, as well as in "PopBox for Elementor" plugin and also in "Pods" plugin's "Templates". @@ -44,82 +44,82 @@ So in every one of those libraries you can now filter and list all parts of temp Please note: The categories are global but when filtering only those items are listed that are connected to the specific post type. [See the FAQ for more info on that](https://wordpress.org/plugins/builder-template-categories/#faq) -### Supported Page Builders -- **Elementor Page Builder** Plugin (free version is sufficient) - **My Templates** (for Pages, Sections, and with Elementor Pro even more template types) -- **Brizy Page Builder** Plugin (free version is sufficient) - **Templates** (for Pages, Sections etc.) -- **Oxygen Builder** Plugin (Pro) - **Templates** (for Pages, Layouts, Sections, Theme Builder elements...) -- Note: also the old Oxygen Visual Site Builder 1.x is supported -- **Visual Composer Website Builder** (the new one, 2018) - **Global Templates** / **Header, Footer, Sidebars Templates** -- **WPBakery Page Builder (the old 'Visual Composer')** Plugin with its **Templatera** template plugin - **Templates** (for Pages, Layouts, etc.) -- **Cornerstone** Page Builder via the "Cornerstone Global Blocks" Plugin (free) - **Global Blocks** (for Content) -- **BoldGrid Post and Page Builder** Plugin (free) - **Blocks (Templates)** -- **Themify Builder** Plugin (Premium version) - **Layouts** (for Layout Parts, Pages, Sections etc.) -- **Avada Fusion Builder** Plugin in the *Avada Theme* (Premium) - **Library** (for Templates, Pages, Layouts, Columns, Rows) -- [**Gutenberg / Block Editor of WordPress 5.0**](https://wordpress.org/plugins/gutenberg/) - **Blocks** (for Reusable Blocks - the new core feature) - - -### Supported Themes -- **Astra Theme** with **Astra Pro** Add-On Plugin - **Custom Layouts** (for Layouts, Headers, Footers, Hooks) -- **GeneratePress Theme** with "GP Premium" Add-On Plugin - **Elements** (for Layouts, Headers, Hooks) -- **OceanWP Theme** with "Ocean Extra" free Plugin - **My Library** (for Layouts, Hooks etc.) -- **Kava Pro Theme/ CrocoBlock Service** with JetThemeCore Plugin - **My Library** (for Layouts, Pages, Headers, Footers, Single, Archive) -- **Genesis Framework** with Genesis Child Themes -- via **Blox Lite** and **Blox** (Pro) Plugins - **Global Content Blocks** (Sections, Hooks) -- **Avada Theme** with Avada Fusion Builder - **Library** (for Templates, Pages, Layouts, Columns, Rows) - - -### Supported Plugins -- *see Page Builder Plugins above :-)* -- *see Gutenberg-specific Plugins below :-)* -- [**AnyWhere Elementor**](https://wordpress.org/plugins/anywhere-elementor/) Plugin (both, free & Pro version) - **AE Global Templates** (for Layouts, Content, Pages etc.) -- **Kava Pro Theme/ CrocoBlock Service** with JetThemeCore Plugin - **My Library** (for Layouts, Pages, Headers, Footers, Single, Archive) -- **JetEngine for Elementor** Plugin - **Listings (Templates)** -- **JetWooBuilder for Elementor** Plugin - **Product Templates** (for WooCommerce Products) -- [**Blox Lite**](https://wordpress.org/plugins/blox-lite/) and **Blox** (Pro) Plugins, both for Genesis Framework - **Global Content Blocks** (for Sections, Hooks) -- **Oxygen Builder** Plugin (Pro) - **Templates** (for Pages, Layouts, Sections, Theme Builder elements...) -- [**Header Footer for Elementor**](https://wordpress.org/plugins/header-footer-elementor/) Plugin - **Header & Footer Templates** (for Elementor theming areas) -- **DHWC Elementor** Plugin - **Product Templates** (for WooCommerce Products) -- [**Kadence WooCommerce Elementor**](https://wordpress.org/plugins/kadence-woocommerce-elementor/) Plugin - **Product Templates** (for WooCommerce Products) -- [**PopBoxes for Elementor**](https://wordpress.org/plugins/modal-for-elementor/) Plugin - **Popups (Templates)** (for Popups, Lightboxes) -- [**StylePress for Elementor**](https://wordpress.org/plugins/full-site-builder-for-elementor/) Plugin - **Styles (Templates)** (for Theme Templates) -- [**Templementor**](https://wordpress.org/plugins/templementor/) Plugin - **Templates** (for Elementor content) -- **Thrive Lightboxes** Plugin - **Lightboxes (Templates)** (for Lightboxes, Popups) -- [**Popup Maker**](https://wordpress.org/plugins/popup-maker/) Plugin - **Popups (Templates)** (for Popups, Lightboxes) -- [**Pods**](https://wordpress.org/plugins/pods/) Plugin - **Templates** (for Post Types, Taxonomies, Fields, etc.) -- Note: the "Templates" Component needs to be enabled in Pods' settings! -- [**WP Show Posts**](https://wordpress.org/plugins/wp-show-posts/) Plugin - **Listings (Templates)** (for Post Listings) -- **JetSmartFilters** Plugin - **Filters** (Templates for Filter Controls, Listings etc.) -- **JetPopup** Plugin - **Popups** (for Popups) -- [**Cherry PopUps**](https://wordpress.org/plugins/cherry-popups/) Plugin - **Popups** (for Popups) -- [**Themify Popup**](https://wordpress.org/plugins/themify-popup/) Plugin - **Popups** (for Popups) -- [**Meta Box Post Types**](https://wordpress.org/plugins/mb-custom-post-type/) Add-On Plugin - **Post Types** (for Post Type registrations) -- [**Meta Box Taxonomy**](https://wordpress.org/plugins/mb-custom-taxonomy/) Add-On Plugin - **Taxonomies** (for Taxonomy registrations) -- [**Content Blocks (Custom Post Widget)**](https://wordpress.org/plugins/custom-post-widget/) Plugin - **Blocks** (for Content) -- [**Reusable Content & Text Blocks (by Loomisoft)**](https://wordpress.org/plugins/loomisoft-content-blocks/) Plugin - **Blocks** (for Content) -- [**Dev Content Blocks**](https://wordpress.org/plugins/dev-content-blocks/) Plugin - **Blocks** (for Content) -- [**Reusable Text Blocks**](https://wordpress.org/plugins/reusable-text-blocks/) Plugin - **Blocks** (for Content, Text) -- [**Widget Content Blocks**](https://wordpress.org/plugins/wysiwyg-widgets/) Plugin - **Blocks** (for Widgets, Content) -- [**Reusable Content Blocks**](https://wordpress.org/plugins/reusable-content-blocks/) Plugin - **Blocks** (for Content, Text, etc.) -- [**Advanced Custom Fields (ACF)**](https://wordpress.org/plugins/advanced-custom-fields/) Plugin (both, free & Pro version) - **Field Groups** (for Custom Fields, Options) -- [**Custom Field Suite**](https://wordpress.org/plugins/custom-field-suite/) Plugin - **Field Groups** (for Custom Fields, Options) -- [**CMB2 Admin Extension**](https://wordpress.org/plugins/cmb2-admin-extension/) Plugin - **Field Groups** (for Custom Fields, Options) -- **Meta Box Builder** and **Meta Box All-In-One (AIO)** Plugins (both Premium) - **Field Groups** (for Custom Fields, Options) -- [**Custom Template for LifterLMS**](https://wordpress.org/plugins/custom-template-lifterlms/) Plugin - **Templates** (for Courses etc.) -- [**Custom Template for LearnDash**](https://wordpress.org/plugins/custom-template-learndash/) Plugin - **Templates** (for Courses etc.) -- [**Opal Widgets for Elementor**](https://wordpress.org/plugins/opal-widgets-for-elementor/) Plugin - **Templates** (for Headers, Footers) -- **Epic News Elements** Plugin - **Templates** (for Posts/ Singular, Archives) -- **Smart Footer System** Plugin - **Templates** (for Footers) -- **Master Popups** Plugin - **Popups** (for Popups) -- [**Easy Content Templates**](https://wordpress.org/plugins/easy-content-templates/) Plugin - **Templates** (for Content) -- [**Simple Content Templates**](https://wordpress.org/plugins/simple-post-template/) Plugin - **Templates** (for Content) -- **Custom Page Templates** Plugin - **Templates** (for Pages, Post Types) / **Post Types** (for Post Type registrations) / **Taxonomies** (for Taxonomy registrations) - - -### Supported Gutenberg-specific Plugins (Block Editor) -- [**Lazy Blocks**](https://wordpress.org/plugins/lazy-blocks/) Plugin - **Blocks** (Templates for Gutenberg Blocks) -- [**Advanced Custom Blocks**](https://wordpress.org/plugins/advanced-custom-blocks/) Plugin - **Blocks** (Templates & Fields for Gutenberg Blocks) -- [**Blocks Layouts**](https://wordpress.org/plugins/blocks-layouts/) Plugin - **Layouts** (Layouts for Gutenberg Blocks) -- [**Square Happiness: Placeholder Block**](https://wordpress.org/plugins/placeholder-block-square-happiness/) Plugin - **Blocks** (Placeholders/ Templates for Gutenberg Blocks) - - -### Recommended Time Saver +### 🎉 Supported Page Builders +* **Elementor Page Builder** Plugin (free version is sufficient) - **My Templates** (for Pages, Sections, and with Elementor Pro even more template types) +* **Brizy Page Builder** Plugin (free version is sufficient) - **Templates** (for Pages, Sections etc.) +* **Oxygen Builder** Plugin (Pro) - **Templates** (for Pages, Layouts, Sections, Theme Builder elements...) -- Note: also the old Oxygen Visual Site Builder 1.x is supported +* **Visual Composer Website Builder** (the new one, 2018) - **Global Templates** / **Header, Footer, Sidebars Templates** +* **WPBakery Page Builder (the old 'Visual Composer')** Plugin with its **Templatera** template plugin - **Templates** (for Pages, Layouts, etc.) +* **Cornerstone** Page Builder via the "Cornerstone Global Blocks" Plugin (free) - **Global Blocks** (for Content) +* **BoldGrid Post and Page Builder** Plugin (free) - **Blocks (Templates)** +* **Themify Builder** Plugin (Premium version) - **Layouts** (for Layout Parts, Pages, Sections etc.) +* **Avada Fusion Builder** Plugin in the *Avada Theme* (Premium) - **Library** (for Templates, Pages, Layouts, Columns, Rows) +* [**Gutenberg / Block Editor of WordPress 5.0**](https://wordpress.org/plugins/gutenberg/) - **Blocks** (for Reusable Blocks - the new core feature) + + +### 🎨 Supported Themes +* **Astra Theme** with **Astra Pro** Add-On Plugin - **Custom Layouts** (for Layouts, Headers, Footers, Hooks) +* **GeneratePress Theme** with "GP Premium" Add-On Plugin - **Elements** (for Layouts, Headers, Hooks) +* **OceanWP Theme** with "Ocean Extra" free Plugin - **My Library** (for Layouts, Hooks etc.) +* **Kava Pro Theme/ CrocoBlock Service** with JetThemeCore Plugin - **My Library** (for Layouts, Pages, Headers, Footers, Single, Archive) +* **Genesis Framework** with Genesis Child Themes -- via **Blox Lite** and **Blox** (Pro) Plugins - **Global Content Blocks** (Sections, Hooks) +* **Avada Theme** with Avada Fusion Builder - **Library** (for Templates, Pages, Layouts, Columns, Rows) + + +### 🚀 Supported Plugins +* *see Page Builder Plugins above :-)* +* *see Gutenberg-specific Plugins below :-)* +* [**AnyWhere Elementor**](https://wordpress.org/plugins/anywhere-elementor/) Plugin (both, free & Pro version) - **AE Global Templates** (for Layouts, Content, Pages etc.) +* **Kava Pro Theme/ CrocoBlock Service** with JetThemeCore Plugin - **My Library** (for Layouts, Pages, Headers, Footers, Single, Archive) +* **JetEngine for Elementor** Plugin - **Listings (Templates)** +* **JetWooBuilder for Elementor** Plugin - **Product Templates** (for WooCommerce Products) +* [**Blox Lite**](https://wordpress.org/plugins/blox-lite/) and **Blox** (Pro) Plugins, both for Genesis Framework - **Global Content Blocks** (for Sections, Hooks) +* **Oxygen Builder** Plugin (Pro) - **Templates** (for Pages, Layouts, Sections, Theme Builder elements...) +* [**Header Footer for Elementor**](https://wordpress.org/plugins/header-footer-elementor/) Plugin - **Header & Footer Templates** (for Elementor theming areas) +* **DHWC Elementor** Plugin - **Product Templates** (for WooCommerce Products) +* [**Kadence WooCommerce Elementor**](https://wordpress.org/plugins/kadence-woocommerce-elementor/) Plugin - **Product Templates** (for WooCommerce Products) +* [**PopBoxes for Elementor**](https://wordpress.org/plugins/modal-for-elementor/) Plugin - **Popups (Templates)** (for Popups, Lightboxes) +* [**StylePress for Elementor**](https://wordpress.org/plugins/full-site-builder-for-elementor/) Plugin - **Styles (Templates)** (for Theme Templates) +* [**Templementor**](https://wordpress.org/plugins/templementor/) Plugin - **Templates** (for Elementor content) +* **Thrive Lightboxes** Plugin - **Lightboxes (Templates)** (for Lightboxes, Popups) +* [**Popup Maker**](https://wordpress.org/plugins/popup-maker/) Plugin - **Popups (Templates)** (for Popups, Lightboxes) +* [**Pods**](https://wordpress.org/plugins/pods/) Plugin - **Templates** (for Post Types, Taxonomies, Fields, etc.) -- Note: the "Templates" Component needs to be enabled in Pods' settings! +* [**WP Show Posts**](https://wordpress.org/plugins/wp-show-posts/) Plugin - **Listings (Templates)** (for Post Listings) +* **JetSmartFilters** Plugin - **Filters** (Templates for Filter Controls, Listings etc.) +* **JetPopup** Plugin - **Popups** (for Popups) +* [**Cherry PopUps**](https://wordpress.org/plugins/cherry-popups/) Plugin - **Popups** (for Popups) +* [**Themify Popup**](https://wordpress.org/plugins/themify-popup/) Plugin - **Popups** (for Popups) +* [**Meta Box Post Types**](https://wordpress.org/plugins/mb-custom-post-type/) Add-On Plugin - **Post Types** (for Post Type registrations) +* [**Meta Box Taxonomy**](https://wordpress.org/plugins/mb-custom-taxonomy/) Add-On Plugin - **Taxonomies** (for Taxonomy registrations) +* [**Content Blocks (Custom Post Widget)**](https://wordpress.org/plugins/custom-post-widget/) Plugin - **Blocks** (for Content) +* [**Reusable Content & Text Blocks (by Loomisoft)**](https://wordpress.org/plugins/loomisoft-content-blocks/) Plugin - **Blocks** (for Content) +* [**Dev Content Blocks**](https://wordpress.org/plugins/dev-content-blocks/) Plugin - **Blocks** (for Content) +* [**Reusable Text Blocks**](https://wordpress.org/plugins/reusable-text-blocks/) Plugin - **Blocks** (for Content, Text) +* [**Widget Content Blocks**](https://wordpress.org/plugins/wysiwyg-widgets/) Plugin - **Blocks** (for Widgets, Content) +* [**Reusable Content Blocks**](https://wordpress.org/plugins/reusable-content-blocks/) Plugin - **Blocks** (for Content, Text, etc.) +* [**Advanced Custom Fields (ACF)**](https://wordpress.org/plugins/advanced-custom-fields/) Plugin (both, free & Pro version) - **Field Groups** (for Custom Fields, Options) +* [**Custom Field Suite**](https://wordpress.org/plugins/custom-field-suite/) Plugin - **Field Groups** (for Custom Fields, Options) +* [**CMB2 Admin Extension**](https://wordpress.org/plugins/cmb2-admin-extension/) Plugin - **Field Groups** (for Custom Fields, Options) +* **Meta Box Builder** and **Meta Box All-In-One (AIO)** Plugins (both Premium) - **Field Groups** (for Custom Fields, Options) +* [**Custom Template for LifterLMS**](https://wordpress.org/plugins/custom-template-lifterlms/) Plugin - **Templates** (for Courses etc.) +* [**Custom Template for LearnDash**](https://wordpress.org/plugins/custom-template-learndash/) Plugin - **Templates** (for Courses etc.) +* [**Opal Widgets for Elementor**](https://wordpress.org/plugins/opal-widgets-for-elementor/) Plugin - **Templates** (for Headers, Footers) +* **Epic News Elements** Plugin - **Templates** (for Posts/ Singular, Archives) +* **Smart Footer System** Plugin - **Templates** (for Footers) +* **Master Popups** Plugin - **Popups** (for Popups) +* [**Easy Content Templates**](https://wordpress.org/plugins/easy-content-templates/) Plugin - **Templates** (for Content) +* [**Simple Content Templates**](https://wordpress.org/plugins/simple-post-template/) Plugin - **Templates** (for Content) +* **Custom Page Templates** Plugin - **Templates** (for Pages, Post Types) / **Post Types** (for Post Type registrations) / **Taxonomies** (for Taxonomy registrations) + + +### 📦 Supported Gutenberg-specific Plugins (Block Editor) +* [**Lazy Blocks**](https://wordpress.org/plugins/lazy-blocks/) Plugin - **Blocks** (Templates for Gutenberg Blocks) +* [**Advanced Custom Blocks**](https://wordpress.org/plugins/advanced-custom-blocks/) Plugin - **Blocks** (Templates & Fields for Gutenberg Blocks) +* [**Blocks Layouts**](https://wordpress.org/plugins/blocks-layouts/) Plugin - **Layouts** (Layouts for Gutenberg Blocks) +* [**Square Happiness: Placeholder Block**](https://wordpress.org/plugins/placeholder-block-square-happiness/) Plugin - **Blocks** (Placeholders/ Templates for Gutenberg Blocks) + + +### 👍 Recommended Time Saver Try [**Toolbar Extras**](https://toolbarextras.com/) my other plugin for Site Builders and admins: Building sites with Elementor? [**Your work will get easier & faster with Toolbar Extras.**](https://wordpress.org/plugins/toolbar-extras/) With extended plugin & theme support baked right in. Of course, "Builder Template Categories" is integrated as well :) * [Plugin Page here on WordPress.org](https://wordpress.org/plugins/toolbar-extras/) @@ -127,39 +127,40 @@ Try [**Toolbar Extras**](https://toolbarextras.com/) my other plugin for Site Bu * In your WordPress admin dashboard search for `toolbar extras` in the plugin installer ;-) -### Important: Required/ Recommended for plugin usage -- Required: User has role `Administrator` (needed capability `edit_theme_options`) -- Required: User is logged in (of course) +### ℹ️ Important: Required/ Recommended for plugin usage +* Required: User has role `Administrator` (needed capability `edit_theme_options`) +* Required: User is logged in (of course) -### Translations -- English (United States) - `en_US` = default, always included -- [German (informal, default)](https://translate.wordpress.org/locale/de/default/wp-plugins/builder-template-categories) - `de_DE` - always included -- [German (formal)](https://translate.wordpress.org/locale/de/formal/wp-plugins/builder-template-categories) - `de_DE_formal` - always included -- [French](https://translate.wordpress.org/locale/fr/default/wp-plugins/builder-template-categories) - `fr_FR` - [by the community, thanks to Bruno Tritsch](https://wp-traduction.com/) -- `.pot` file (`builder-template-categories.pot`) for translators is always included in the plugin's 'languages' folder :) +### 🌎 Translations +* English (United States) - `en_US` = default, always included +* [German (informal, default)](https://translate.wordpress.org/locale/de/default/wp-plugins/builder-template-categories) - `de_DE` - always included +* [German (formal)](https://translate.wordpress.org/locale/de/formal/wp-plugins/builder-template-categories) - `de_DE_formal` - always included +* [French](https://translate.wordpress.org/locale/fr/default/wp-plugins/builder-template-categories) - `fr_FR` - [by the community, thanks to Bruno Tritsch](https://wp-traduction.com/) +* `.pot` file (`builder-template-categories.pot`) for translators is always included in the plugin's 'languages' folder :) -### Be a Contributor +### 👍 Be a Contributor If you want to translate, [go to the Translation Portal at translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/builder-template-categories). You can also contribute code-wise via our [Builder Template Categories GitHub Repository](https://github.com/deckerweb/builder-template-categories) - and see where you can help. ### Documentation and Support -- If you have any more questions, visit our support on the [Plugin's Forum](https://wordpress.org/support/plugin/builder-template-categories). +* If you have any more questions, visit our support on the [Plugin's Forum](https://wordpress.org/support/plugin/builder-template-categories). -### Liked Builder Template Categories? -- Then please **rate us 5 stars** on [WordPress.org](https://wordpress.org/support/plugin/builder-template-categories/reviews/?filter=5/#new-post) :) -- Join our [**Facebook User Community Support Group**](https://www.facebook.com/groups/deckerweb.wordpress.plugins/) -- Like our [**Facebook Info Page for Deckerweb Plugins**](https://www.facebook.com/deckerweb.wordpress.plugins/) +### ⚡ Liked Builder Template Categories? +* **Rate us 5 stars** on [WordPress.org](https://wordpress.org/support/plugin/builder-template-categories/reviews/?filter=5/#new-post) :) +* Join our [**Facebook User Community Support Group**](https://www.facebook.com/groups/deckerweb.wordpress.plugins/) +* Like our [**Facebook Info Page for Deckerweb Plugins**](https://www.facebook.com/deckerweb.wordpress.plugins/) +* [**Subscribe to my Newsletter for insider info on this plugin**](https://eepurl.com/gbAUUn), plus tutorials and more stuff on deckerweb WordPress plugins - join a thriving community of site builders! ### This Plugin ... -- ... scratches my own itch! -- ... is *Quality Made in Germany* -- ... was created with love (plus some coffee) :-) - [if you like it consider donating](https://www.paypal.me/deckerweb) +* ... scratches my own itch! +* ... is *Quality Made in Germany* +* ... was created with love (plus some coffee) :-) - [if you like it consider donating](https://www.paypal.me/deckerweb) ## Installation @@ -321,6 +322,28 @@ Note: One exception is the new Block Editor coming with WordPress 5.0 (currently +### Do I still need this plugin since Elementor has its own Category now? +Good question. If you used our plugin, Builder Template Categories, before it's recommended to use it still to not lose your data and for consistency, of course. You absolutely can run both taxonomies side by side. This plugin always plays nice with others! ;-) + +And, Builder Template Categories, has a **big advantage** over Elementor's own taxonomy: **our taxonomy is global!** This means, it is used by other integrations at the same time - if those are active side by side with Elementor. This "effect" just makes our plugin way more smart and usable. + +**That is especially useful if you work with Elementor, *PLUS* one of these:** + +- GeneratePress Elements (GP Premium) +- Astra Custom Layouts (Astra Pro) +- OceanWP Library +- Page Builder Framework Sections (WPBF Premium) +- Genesis Blox plugin (free or Pro) +- One of the Jet Plugins by Zemez Jet (JetWooBuilder, JetThemeCore, JetListing, JetPopop, JetSmartFilters) +- AnyWhere Elementor plugin (free or Pro) +- Templementor + +If you ask me: In such a case Builder Template Categories has way more power and makes just more sense, also if you're working with a team. + +*Note: Shortly I will also provide ways to disable Elementor's taxonomy if you want.* + + + ### Can I extend or customize the plugin? Yes, of course. There are numerous filters built-in, plus the default filters for taxonomies from WordPress Core apply. @@ -341,7 +364,7 @@ function btc_register_custom_integration( array $integrations ) { $submenu_hook = 'your-custom-settings-page'; // as in: your-site.domain/wp-admin/admin.php?page=your-custom-settings-page; // or alternative: $submenu_hook = 'edit.php?post_type=' . $post_type; - $template_label = 'template'; // or: library, layout, element, popup, lightbox, block, listing, post-type, field, box, bar, hook, filter + $template_label = 'template'; // or: library, layout, element, popup, lightbox, block, listing, post-type, field, box, bar, hook, filter, section, flow, snippet $integrations[ 'your-custom-handle-lowercase' ] = array( 'label' => __( 'My Custom Templates', 'your-textdomain' ), @@ -437,11 +460,21 @@ As of version 1.3.0 of the plugin the following was achieved: ## Changelog -### 1.4.2 - 2018-12-14 +### ⚡ 1.4.3 - 2019-01-21 +* New: Additional checks for Block Editor (Gutenberg) integration if one of the popular disabling plugins has disabled it completely (in that case the integration won't be loaded at all!) +* New: Overhauled Elementor integration to be also fully compatible with Elementor 2.4.0 or higher (while still being compatible with older Elementor versions) +* New: Make predefined category terms also available for Elementor built-in "Categories" taxonomy (only for Elementor v2.4.0+) +* New: Added new template content types "Flow/ Flows" and "Snippet/ Snippets" +* New: [Join my newsletter for DECKERWEB WordPress Plugins](https://eepurl.com/gbAUUn) - insider info, plus tutorials and more useful stuff +* Tweak: Updated `.pot` file plus all German translations (formal, informal) and language packs +* Tweak: Enhanced and improved Readme.txt file here - also added new FAQ entry + + +### ⚡ 1.4.2 - 2018-12-14 * Tweak: Moved admin CSS into proper stylesheet, and enqueue it - this fixes issues users have reported -### 1.4.1 - 2018-12-13 +### ⚡ 1.4.1 - 2018-12-13 * New: Successfully tested with WordPress 5.0.x major release version * New: Added new template content type "Section/ Sections" * Tweak: Make sure our help tab is restricted to our own taxonomy only @@ -450,7 +483,7 @@ As of version 1.3.0 of the plugin the following was achieved: * Tweak: Enhanced and improved Readme.txt file here -### 1.4.0 - 2018-11-21 +### 🎉 1.4.0 - 2018-11-21 * New: Integration with plugin Epic News Elements (Premium, by Jegtheme) - *an Add-On for Elementor, Block Editor (Gutenberg) and WPBakery Page Builder (old Visual Composer)* * New: Integration with plugin Master Popups (Premium, by CodexHelp) * New: Integration with plugin Block Lab (free, by Block Lab) -- *for WordPress Block Editor, also known as "Gutenberg"* @@ -468,7 +501,7 @@ As of version 1.3.0 of the plugin the following was achieved: * Tweak: Enhanced and improved Readme.txt file here -### 1.3.0 - 2018-10-30 +### 🎉 1.3.0 - 2018-10-30 * New: Integration with plugin Advanced Custom Fields (ACF) (free & Pro, by Elliot Condon) * New: Integration with plugin Custom Field Suite (free, by Matt Gibbs) * New: Integration with Add-On plugin CMB2 Admin Extension (free, by twoelevenjay) --> Note: This is the UI plugin for the [CMB2 library](https://wordpress.org/plugins/cmb2/) plugin! @@ -487,7 +520,7 @@ As of version 1.3.0 of the plugin the following was achieved: * Tweak: Enhanced and improved Readme.txt file here - also added some new FAQ entries -### 1.2.0 - 2018-10-12 +### 🎉 1.2.0 - 2018-10-12 * *The Gutenberg Block Editor Support Release ;-)* * New: Integration with "Gutenberg plugin" / (upcoming) WordPress Version 5.0+: Block categories for new default `wp_block` post type, plus admin enhancements - this lets you manage the "reusable blocks" feature better * New: Integration with plugin Lazy Blocks (free, by nK) -- *for WordPress Block Editor, also known as "Gutenberg"* @@ -509,7 +542,7 @@ As of version 1.3.0 of the plugin the following was achieved: * Tweak: Enhanced and improved Readme.txt file here -### 1.1.0 - 2018-09-30 +### 🎉 1.1.0 - 2018-09-30 * New: Category labels now fit to the content type (post type) of the integration - popup integrations are now labelled as "Popup Categories", and the same for other types like Blocks, Layouts, Elements etc. * New: Integration with Page Builder plugin Themify Builder (Premium, by Themify) - note: this applies only to the premium version of this plugin * New: Integration with plugin JetPopup (free, by Zemez Jet/ CrocoBlock) @@ -532,7 +565,7 @@ As of version 1.3.0 of the plugin the following was achieved: * Tweak: Enhanced and improved Readme.txt file here - also added new FAQ entry -### 1.0.1 - 2018-08-30 +### ⚡ 1.0.1 - 2018-08-30 * New: Integration with Brizy Templates for Brizy Page Builder - template feature was released in their free version v1.0.25 * New: Added plugin update message also to Plugins page (overview table) * New: French translations by the community @@ -541,25 +574,29 @@ As of version 1.3.0 of the plugin the following was achieved: * Tweak: Enhanced, improved and corrected Readme.txt file here - also tweaked FAQ entry -### 1.0.0 - 2018-08-20 +### 🎉 1.0.0 - 2018-08-20 * *Official plugin launch on WordPress.org. Everything's new!* * New: Including integration for 15 Plugins: Elementor, AnyWhere Elementor, Header Footer for Elementor, Popup Maker, PopBox for Elementor, Thrive Lightboxes, Oxygen Builder (2.0+), Pods, JetEngine for Elementor, JetWooBuilder for Elementor, DHWC Elementor (WooCommerce Templates), WP Show Posts, BoldGrid Post and Page Builder, WPBakery Page Builder (Visual Composer), Global Blocks for Cornerstone * New: Including integration for 5 Themes: OceanWP, GeneratePress, Astra, Kava Pro (CrocoBlock), Genesis (Blox) * New: Includes a `composer.json` file in the plugin's root folder - this is great for developers using Composer -### 0.9.1 - 2018-08-17 +### ⚡ 0.9.1 - 2018-08-17 * New: Added [Code Snippets](https://github.com/deckerweb/builder-template-categories/wiki/Code-Snippets) as GitHub Gists * New: Added [short and easy "documentation" as Wiki](https://github.com/deckerweb/builder-template-categories/wiki) in official GitHub repository for the plugin * New: Added integration "WPBakery Page Builder" (the old Visual Composer), via its "Templatera" Add-On plugin -### 0.9.0 - 2018-08-16 +### ⚡ 0.9.0 - 2018-08-16 * New: Beta release of the plugin on [its public GitHub repository](https://github.com/deckerweb/builder-template-categories) ## Upgrade Notice +### 1.4.3 +New template content types. Elementor 2.4.0 compatibility. - **Update highly recommended!** :-) + + ### 1.4.2 New template content type; admin CSS fixes; internal library update; smaller tweaks. - **Update recommended!** :-) @@ -620,7 +657,9 @@ Enjoy using *Builder Template Categories*? **[Please consider making a donation] * [Genesis What's New Info](https://wordpress.org/plugins/genesis-whats-new-info/) * [Genesis Layout Extras](https://wordpress.org/plugins/genesis-layout-extras/) * [Genesis Widgetized Not Found & 404](https://wordpress.org/plugins/genesis-widgetized-notfound/) +* [Genesis Extra Settings Transporter](https://wordpress.org/plugins/genesis-extra-settings-transporter/) * [Genesis Widgetized Footer](https://wordpress.org/plugins/genesis-widgetized-footer/) * [Genesis Widgetized Archive](https://wordpress.org/plugins/genesis-widgetized-archive/) * [Multisite Toolbar Additions](https://wordpress.org/plugins/multisite-toolbar-additions/) * [Cleaner Plugin Installer](https://wordpress.org/plugins/cleaner-plugin-installer/) +* [*My plugins newsletter*](https://eepurl.com/gbAUUn) diff --git a/assets/css/btc-help.css b/assets/css/btc-help.css index 3a0d733..f9d7f3d 100644 --- a/assets/css/btc-help.css +++ b/assets/css/btc-help.css @@ -67,6 +67,6 @@ padding: 5px 10px; } -.btc.dashicons-thumbs-up:before { +.btc.dashicons-before:before { margin-top: 2px; } \ No newline at end of file diff --git a/builder-template-categories.php b/builder-template-categories.php index 825acfb..b7f686e 100644 --- a/builder-template-categories.php +++ b/builder-template-categories.php @@ -3,7 +3,7 @@ * Main plugin file. * @package Builder Template Categories * @author David Decker - * @copyright Copyright (c) 2018, David Decker - DECKERWEB + * @copyright Copyright (c) 2018-2019, David Decker - DECKERWEB * @license GPL-2.0-or-later * @link https://deckerweb.de/twitter * @@ -23,7 +23,7 @@ * GitHub Plugin URI: https://github.com/deckerweb/builder-template-categories * GitHub Branch: master * - * Copyright (c) 2018 David Decker - DECKERWEB + * Copyright (c) 2018-2019 David Decker - DECKERWEB */ /** @@ -55,9 +55,9 @@ * * @since 1.0.0 * - * @uses get_user_locale() - * @uses load_textdomain() To load translations first from WP_LANG_DIR sub folder. - * @uses load_plugin_textdomain() To additionally load default translations from plugin folder (default). + * @uses get_user_locale() + * @uses load_textdomain() To load translations first from WP_LANG_DIR sub folder. + * @uses load_plugin_textdomain() To additionally load default translations from plugin folder (default). */ function ddw_btc_load_translations() { @@ -155,12 +155,13 @@ function ddw_btc_setup_plugin() { * Steps of the plugin activation routine. * * @since 1.0.0 + * @since 1.4.3 Predefined terms for Elementor's own taxonomy. * - * @see includes/reguster-taxonomy.php + * @see plugin file includes/register-taxonomy.php * - * @uses ddw_btc_load_translations() - * @uses ddw_btc_register_templates_taxonomy() - * @uses ddw_btc_add_predefined_terms() + * @uses ddw_btc_load_translations() + * @uses ddw_btc_register_templates_taxonomy() + * @uses ddw_btc_add_predefined_terms() */ function ddw_btc_plugin_activation_routine() { @@ -180,9 +181,18 @@ function ddw_btc_plugin_activation_routine() { ddw_btc_register_templates_taxonomy(); + /** Add predefined terms */ if ( apply_filters( 'btc/filter/terms/add_predefined', TRUE ) ) { - ddw_btc_add_predefined_terms(); - } + + /** For our own taxonomy */ + ddw_btc_add_predefined_terms( 'builder-template-category' ); + + /** Optionally for Elementor's built-in tax */ + if ( ddw_btc_is_elementor_version( 'core', '2.4.0-beta1', '>=' ) ) { + ddw_btc_add_predefined_terms( 'elementor_library_category' ); + } + + } // end if } // end function @@ -194,9 +204,9 @@ function ddw_btc_plugin_activation_routine() { * * @since 1.0.0 * - * @link https://leaves-and-love.net/blog/making-plugin-multisite-compatible/ + * @link https://leaves-and-love.net/blog/making-plugin-multisite-compatible/ * - * @uses ddw_btc_plugin_activation_routine() + * @uses ddw_btc_plugin_activation_routine() */ function ddw_btc_run_plugin_activation( $network_wide ) { @@ -236,7 +246,7 @@ function ddw_btc_run_plugin_activation( $network_wide ) { * * @since 1.0.0 * - * @uses ddw_btc_plugin_activation_routine() + * @uses ddw_btc_plugin_activation_routine() */ function ddw_btc_network_new_site_run_plugin_activation( $blog_id, $user_id, $domain, $path, $site_id, $meta ) { diff --git a/includes/admin/admin-extras.php b/includes/admin/admin-extras.php index be1077b..a4015d2 100644 --- a/includes/admin/admin-extras.php +++ b/includes/admin/admin-extras.php @@ -15,9 +15,9 @@ /** * Add "Custom Taxonomy" link to Plugins page. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $btc_links (Default) Array of plugin action links. + * @param array $btc_links (Default) Array of plugin action links. * @return strings $btc_links Settings & Menu Admin links. */ function ddw_btc_custom_taxonomy_links( $btc_links ) { @@ -56,12 +56,12 @@ function ddw_btc_custom_taxonomy_links( $btc_links ) { /** * Add various support links to Plugins page. * - * @since 1.0.0 + * @since 1.0.0 * - * @uses ddw_btc_get_info_link() + * @uses ddw_btc_get_info_link() * - * @param array $btc_links (Default) Array of plugin meta links - * @param string $btc_file Path of base plugin file + * @param array $btc_links (Default) Array of plugin meta links + * @param string $btc_file Path of base plugin file * @return array $btc_links Array of plugin link strings to build HTML markup. */ function ddw_btc_plugin_links( $btc_links, $btc_file ) { @@ -98,7 +98,10 @@ function ddw_btc_plugin_links( $btc_links, $btc_file ) { $btc_links[] = ddw_btc_get_info_link( 'url_snippets', esc_html_x( 'Code Snippets', 'Plugins page listing', 'builder-template-categories' ), 'dashicons-before dashicons-editor-code' ); /* translators: Plugins page listing */ - $btc_links[] = ddw_btc_get_info_link( 'url_donate', esc_html_x( 'Donate', 'Plugins page listing', 'builder-template-categories' ), 'button-primary dashicons-before dashicons-thumbs-up' ); + $btc_links[] = ddw_btc_get_info_link( 'url_donate', esc_html_x( 'Donate', 'Plugins page listing', 'builder-template-categories' ), 'button dashicons-before dashicons-thumbs-up' ); + + /* translators: Plugins page listing */ + $btc_links[] = ddw_btc_get_info_link( 'url_newsletter', esc_html_x( 'Join our Newsletter', 'Plugins page listing', 'builder-template-categories' ), 'button-primary dashicons-before dashicons-awards' ); } // end if plugin links @@ -116,9 +119,12 @@ function ddw_btc_plugin_links( $btc_links, $btc_file ) { * Modifies the "Thank you" text displayed in the WP Admin footer. * Fired by 'admin_footer_text' filter. * - * @since 1.0.0 + * @since 1.0.0 + * @since 1.4.3 Tweaked rating link. + * + * @uses ddw_btc_get_info_url() * - * @param string $footer_text The content that will be printed. + * @param string $footer_text The content that will be printed. * @return string The content that will be printed. */ function ddw_btc_admin_footer_text( $footer_text ) { @@ -128,11 +134,17 @@ function ddw_btc_admin_footer_text( $footer_text ) { if ( $is_btc_screen ) { + $rating = sprintf( + /* translators: %s - 5 stars icons */ + '' . __( '%s rating', 'builder-template-categories' ) . '', + '★★★★★' + ); + $footer_text = sprintf( - /* translators: 1 - Builder Template Categories / 2 - Link to plugin review */ - __( 'Enjoyed %1$s? Please leave us a %2$s rating. We really appreciate your support!', 'builder-template-categories' ), + /* translators: 1 - Plugin name "Builder Template Categories" / 2 - label "5 star rating" */ + __( 'Enjoyed %1$s? Please leave us a %2$s. We really appreciate your support!', 'builder-template-categories' ), '' . __( 'Builder Template Categories', 'builder-template-categories' ) . '', - '★★★★★' + $rating ); } // end if @@ -147,8 +159,8 @@ function ddw_btc_admin_footer_text( $footer_text ) { * * @since 1.0.1 * - * @see ddw_btc_plugin_update_message() - * @see ddw_btc_multisite_subsite_plugin_update_message() + * @see ddw_btc_plugin_update_message() + * @see ddw_btc_multisite_subsite_plugin_update_message() */ function ddw_btc_plugin_update_message_style_tweak() { @@ -170,10 +182,10 @@ function ddw_btc_plugin_update_message_style_tweak() { * Note: This action fires for regular single site installs, and for Multisite * installs where the plugin is activated Network-wide. * - * @since 1.0.1 + * @since 1.0.1 * - * @param object $data - * @param object $response + * @param object $data + * @param object $response * @return string Echoed string and markup for the plugin's upgrade/update * notice. */ @@ -199,10 +211,10 @@ function ddw_btc_plugin_update_message( $data, $response ) { * Note: This action fires for Multisite installs where the plugin is * activated on a per site basis. * - * @since 1.0.1 + * @since 1.0.1 * - * @param string $file - * @param object $plugin + * @param string $file + * @param object $plugin * @return string Echoed string and markup for the plugin's upgrade/update * notice. */ @@ -242,11 +254,15 @@ function ddw_btc_multisite_subsite_plugin_update_message( $file, $plugin ) { * Note: The top-level array keys are plugin slugs from the WordPress.org * Plugin Directory. * - * @since 1.0.1 - * @since 1.4.0 Added new Block Editor recommendations. + * @since 1.0.1 + * @since 1.4.0 Added new Block Editor recommendations. + * + * @uses ddw_btc_is_elementor_active() + * @uses ddw_btc_is_block_editor_active() + * @uses ddw_btc_is_block_editor_wanted() * - * @param array $plugins Array holding all plugin recommendations, coming from - * the class and the filter. + * @param array $plugins Array holding all plugin recommendations, coming from + * the class and the filter. * @return array Filtered array of all plugin recommendations. */ function ddw_btc_register_extra_plugin_recommendations( array $plugins ) { @@ -286,7 +302,7 @@ function ddw_btc_register_extra_plugin_recommendations( array $plugins ) { /** Register additional Block Editor (Gutenberg) plugin recommendations */ $plugins_block_editor = array(); - if ( ddw_btc_is_block_editor_active() ) { + if ( ddw_btc_is_block_editor_active() && ddw_btc_is_block_editor_wanted() ) { $plugins_block_editor = array( 'classic-editor' => array( @@ -299,15 +315,15 @@ function ddw_btc_register_extra_plugin_recommendations( array $plugins ) { 'recommended' => 'yes', 'popular' => 'yes', ), - 'block-builder' => array( + 'disable-gutenberg-blocks' => array( 'featured' => 'yes', 'recommended' => 'yes', - 'popular' => 'yes', + 'popular' => 'no', ), - 'custom-fields-gutenberg' => array( + 'block-builder' => array( 'featured' => 'yes', 'recommended' => 'yes', - 'popular' => 'no', + 'popular' => 'yes', ), 'lazy-blocks' => array( 'featured' => 'yes', @@ -324,6 +340,11 @@ function ddw_btc_register_extra_plugin_recommendations( array $plugins ) { 'recommended' => 'yes', 'popular' => 'no', ), + 'custom-fields-gutenberg' => array( + 'featured' => 'yes', + 'recommended' => 'yes', + 'popular' => 'no', + ), ); } // end if @@ -344,9 +365,9 @@ function ddw_btc_register_extra_plugin_recommendations( array $plugins ) { * - "Newest" --> tab in plugin installer toolbar * - "Version:" --> label in plugin installer plugin card * - * @since 1.1.0 + * @since 1.1.0 * - * @param array $strings Holds all filterable strings of the library. + * @param array $strings Holds all filterable strings of the library. * @return array Array of tweaked translateable strings. */ function ddwlib_plir_strings_plugin_installer( $strings ) { diff --git a/includes/admin/admin-help.php b/includes/admin/admin-help.php index f461001..c3a773d 100644 --- a/includes/admin/admin-help.php +++ b/includes/admin/admin-help.php @@ -60,7 +60,7 @@ function ddw_btc_tax_edit_info_content() { * * @since 1.0.0 * - * @uses ddw_btc_tax_edit_info_content() + * @uses ddw_btc_tax_edit_info_content() */ function ddw_btc_tax_pre_info( $taxonomy = 'builder-template-category' ) { @@ -80,7 +80,7 @@ function ddw_btc_tax_pre_info( $taxonomy = 'builder-template-category' ) { * * @since 1.0.0 * - * @uses ddw_btc_tax_edit_info_content() + * @uses ddw_btc_tax_edit_info_content() */ function ddw_btc_term_edit_info( $tag, $taxonomy = 'builder-template-category' ) { @@ -101,7 +101,7 @@ function ddw_btc_term_edit_info( $tag, $taxonomy = 'builder-template-category' ) * * @since 1.4.2 * - * @see ddw_btc_load_content_help() + * @see ddw_btc_load_content_help() */ function ddw_btc_register_styles_help_tabs() { @@ -122,14 +122,14 @@ function ddw_btc_register_styles_help_tabs() { * Determine if the current screen is a post type edit screen of an active * integration. * - * @since 1.1.0 + * @since 1.1.0 * - * @uses ddw_btc_get_integration_post_types() + * @uses ddw_btc_get_integration_post_types() * - * @param object $current_screen This global (via get_current_screen()) holds - * the current screen object. + * @param object $current_screen This global (via get_current_screen()) holds + * the current screen object. * @return bool If current screen matches the base or post type of an - * integration return TRUE, otherwise FALSE. + * integration return TRUE, FALSE otherwise. */ function ddw_btc_is_post_type_edit_screen( $current_screen ) { @@ -145,10 +145,10 @@ function ddw_btc_is_post_type_edit_screen( $current_screen ) { * Determine if the current screen is the taxonomy edit screen of our own * taxonomy. * - * @since 1.1.0 + * @since 1.1.0 * - * @param object $current_screen This global (via get_current_screen()) holds - * the current screen object. + * @param object $current_screen This global (via get_current_screen()) holds + * the current screen object. * @return bool If current screen matches the ID of our taxonomy return TRUE, * otherwise FALSE. */ @@ -167,14 +167,14 @@ function ddw_btc_is_taxonomy_edit_screen( $current_screen ) { * Create and display plugin help tab content. * Load on edit screens for our supported hook engine's post types. * - * @since 1.1.0 - * @since 1.4.2 Added style enqueuing hook. + * @since 1.1.0 + * @since 1.4.2 Added style enqueuing hook. * - * @see ddw_btc_content_help() + * @see ddw_btc_content_help() Where the tab gets actually added. * - * @uses ddw_btc_is_post_type_edit_screen() - * @uses ddw_btc_is_taxonomy_edit_screen() - * @uses add_thickbox() + * @uses ddw_btc_is_post_type_edit_screen() + * @uses ddw_btc_is_taxonomy_edit_screen() + * @uses add_thickbox() * * @global mixed $GLOBALS[ 'btc_edit_screen' ] */ @@ -206,17 +206,16 @@ function ddw_btc_load_content_help() { /** - * Create and display plugin help tab content. - * Load on edit screens for our supported hook engine's post types. + * Setup the help tab content for rendering. * - * @since 1.1.0 - * @since 1.4.2 Move CSS into proper file, and enqueue it. + * @since 1.1.0 + * @since 1.4.2 Move CSS into proper file, and enqueue it. * - * @see ddw_btc_content_help_tab() - * @see ddw_btc_content_help_sidebar() + * @see ddw_btc_content_help_tab() + * @see ddw_btc_content_help_sidebar() * - * @uses WP_Screen::add_help_tab() - * @uses WP_Screen::set_help_sidebar() + * @uses WP_Screen::add_help_tab() + * @uses WP_Screen::set_help_sidebar() * * @global mixed $GLOBALS[ 'btc_edit_screen' ] */ @@ -245,9 +244,9 @@ function ddw_btc_content_help() { /** * Build listing of current active integrations for the help tab content. * - * @since 1.1.0 + * @since 1.1.0 * - * @uses ddw_btc_get_integrations() + * @uses ddw_btc_get_integrations() * * @return string Markup and strings of current active integrations list. */ @@ -289,9 +288,9 @@ function ddw_btc_content_help_integrations_list() { /** * Content for help tab. * - * @since 1.1.0 + * @since 1.1.0 * - * @uses ddw_btc_content_help_integrations_list() + * @uses ddw_btc_content_help_integrations_list() * * @return string Complete help content markup and content as a string. */ @@ -348,7 +347,9 @@ function ddw_btc_content_help_tab() { '  ' . ddw_btc_get_info_link( 'url_translate', esc_html_x( 'Translations', 'Help tab info', 'builder-template-categories' ), 'button' ) . - '  ' . ddw_btc_get_info_link( 'url_donate', esc_html_x( 'Donate', 'Help tab info', 'builder-template-categories' ), 'button button-primary dashicons-before dashicons-thumbs-up btc' ) . + '  ' . ddw_btc_get_info_link( 'url_donate', esc_html_x( 'Donate', 'Help tab info', 'builder-template-categories' ), 'button dashicons-before dashicons-thumbs-up btc' ) . + + '  ' . ddw_btc_get_info_link( 'url_newsletter', esc_html_x( 'Join our Newsletter', 'Help tab info', 'builder-template-categories' ), 'button button-primary dashicons-before dashicons-awards btc' ) . sprintf( '

%2$s © %3$s %5$s

', @@ -367,7 +368,7 @@ function ddw_btc_content_help_tab() { * Note: Content/Markup has to be returned instead of echoed, as the * set_help_sidebar() method already is echoing its content. * - * @since 1.1.0 + * @since 1.1.0 * * @return string Complete help sidebar markup and content as a string. */ diff --git a/includes/functions-conditionals.php b/includes/functions-conditionals.php index 4c84aa6..786fbc0 100644 --- a/includes/functions-conditionals.php +++ b/includes/functions-conditionals.php @@ -15,9 +15,9 @@ /** * Is Toolbar Extras (free) plugin active or not? * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if Toolbar Extras is active, otherwise FALSE. + * @return bool TRUE if Toolbar Extras is active, FALSE otherwise. */ function ddw_btc_is_tbex_active() { @@ -29,9 +29,9 @@ function ddw_btc_is_tbex_active() { /** * Is Cleaner Plugin Installer (free) plugin active or not? * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if Cleaner Plugin Installer is active, otherwise FALSE. + * @return bool TRUE if Cleaner Plugin Installer is active, FALSE otherwise. */ function ddw_btc_is_clpinst_active() { @@ -40,6 +40,21 @@ function ddw_btc_is_clpinst_active() { } // end function +/** + * Is the WooCommerce plugin active or not? + * + * @since 1.4.3 + * + * @return bool TRUE if plugin is active, FALSE otherwise. + */ +function ddw_btc_is_woocommerce_active() { + + return class_exists( 'WooCommerce' ); + +} // end function + + + /** * 1) Page Builder integrations: * @since 1.0.0 @@ -49,9 +64,9 @@ function ddw_btc_is_clpinst_active() { /** * Is Elementor (free) plugin active or not? * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if Elementor is active, otherwise FALSE. + * @return bool TRUE if Elementor is active, FALSE otherwise. */ function ddw_btc_is_elementor_active() { @@ -60,12 +75,59 @@ function ddw_btc_is_elementor_active() { } // end function +/** + * Is Elementor Pro plugin active or not? + * + * @since 1.4.3 + * + * @return bool TRUE if Elementor Pro active, FALSE otherwise. + */ +function ddw_btc_is_elementor_pro_active() { + + return defined( 'ELEMENTOR_PRO_VERSION' ); + +} // end function + + +/** + * Check for a specific version of Elementor Core/Pro. + * + * @since 1.4.3 + * + * @uses ddw_btc_is_elementor_active() + * @uses ddw_btc_is_elementor_pro_active() + * + * @param string $type Type of Elementor, free Core or Pro Version. + * @param string $version Version of Elementor Core/Pro to check against. + * @param string $operator Comparison operator. + * @return bool TRUE if the specific Elementor Core/Pro version is active, FALSE otherwise. + */ +function ddw_btc_is_elementor_version( $type = 'core', $version = '', $operator = '' ) { + + /** Check type for the 2 possible values */ + switch ( sanitize_key( $type ) ) { + + case 'core': + $elementor_version = ddw_btc_is_elementor_active() ? ELEMENTOR_VERSION : 0; + break; + + case 'pro': + $elementor_version = ddw_btc_is_elementor_pro_active() ? ELEMENTOR_PRO_VERSION : 0; + break; + + } // end switch + + return version_compare( $elementor_version, strtolower( $version ), strtolower( $operator ) ); + +} // end function + + /** * Is Brizy plugin active or not? * - * @since 1.0.1 + * @since 1.0.1 * - * @return bool TRUE if Brizy is active, otherwise FALSE. + * @return bool TRUE if Brizy is active, FALSE otherwise. */ function ddw_btc_is_brizy_active() { @@ -77,10 +139,10 @@ function ddw_btc_is_brizy_active() { /** * Is WPBakery Page Builder plugin active or not? * - * @since 1.1.0 - *s + * @since 1.1.0 + * * @return bool TRUE if WPBakery Page Builder is active and is at least - * version 5.0 or higher, otherwise FALSE. + * version 5.0 or higher, FALSE otherwise. */ function ddw_btc_is_wpbakery_active() { @@ -102,9 +164,9 @@ function ddw_btc_is_wpbakery_active() { /** * Is Templatera Add-On (WPBakery Page Builder) plugin active or not? * - * @since 1.0.0 - *s - * @return bool TRUE if Templatera is active, otherwise FALSE. + * @since 1.0.0 + * + * @return bool TRUE if Templatera is active, FALSE otherwise. */ function ddw_btc_is_wpbakery_templatera_active() { @@ -119,9 +181,9 @@ function ddw_btc_is_wpbakery_templatera_active() { * Builder), and, the new Oxygen Builder 2.0+. The template post type is * the same for both versions. * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if Oxygen Builder is active, otherwise FALSE. + * @return bool TRUE if Oxygen Builder is active, FALSE otherwise. */ function ddw_btc_is_oxygen_builder_active() { @@ -133,9 +195,9 @@ function ddw_btc_is_oxygen_builder_active() { /** * Is BoldGrid Post and Page Builder plugin active or not? * - * @since 1.0.0 - *s - * @return bool TRUE if BoldGrid is active, otherwise FALSE. + * @since 1.0.0 + * + * @return bool TRUE if BoldGrid is active, FALSE otherwise. */ function ddw_btc_is_boldgrid_active() { @@ -147,9 +209,9 @@ function ddw_btc_is_boldgrid_active() { /** * Is Global Blocks for Cornerstone plugin active or not? * - * @since 1.0.0 - *s - * @return bool TRUE if Global Blocks for Cornerstone is active, otherwise FALSE. + * @since 1.0.0 + * + * @return bool TRUE if Global Blocks for Cornerstone is active, FALSE otherwise. */ function ddw_btc_is_cornerstone_global_blocks_active() { @@ -161,9 +223,9 @@ function ddw_btc_is_cornerstone_global_blocks_active() { /** * Is Visual Composer Website Builder (2018) plugin active or not? * - * @since 1.4.0 - *s - * @return bool TRUE if Visual Composer is active, otherwise FALSE. + * @since 1.4.0 + * + * @return bool TRUE if Visual Composer is active, FALSE otherwise. */ function ddw_btc_is_visual_composer_active() { @@ -175,9 +237,9 @@ function ddw_btc_is_visual_composer_active() { /** * Is Visual Composer -> Global Templates module active or not? * - * @since 1.4.0 - *s - * @return bool TRUE if module is active, otherwise FALSE. + * @since 1.4.0 + * + * @return bool TRUE if module is active, FALSE otherwise. */ function ddw_btc_is_vc_global_templates_active() { @@ -196,9 +258,9 @@ function ddw_btc_is_vc_global_templates_active() { /** * Is GeneratePress "Elements" module active or not? * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if the module is active, otherwise FALSE. + * @return bool TRUE if the module is active, FALSE otherwise. */ function ddw_btc_is_gp_elements_active() { @@ -210,9 +272,9 @@ function ddw_btc_is_gp_elements_active() { /** * Is OceanWP "My Library" via "Ocean Extra" plugin active or not? * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if the OceanWP library is active, otherwise FALSE. + * @return bool TRUE if the OceanWP library is active, FALSE otherwise. */ function ddw_btc_is_owp_library_active() { @@ -224,7 +286,7 @@ function ddw_btc_is_owp_library_active() { /** * Is Astra "Custom Layouts" module active or not? (via Pro Addon) * - * @since 1.0.0 + * @since 1.0.0 * * @return bool TRUE if Astra Pro Custom Layouts module is active, otherwise * FALSE. @@ -239,9 +301,9 @@ function ddw_btc_is_astra_layouts_active() { /** * Is Blox plugin active or not? * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if Blox Lite or Blox Pro is active, otherwise FALSE. + * @return bool TRUE if Blox Lite or Blox Pro is active, FALSE otherwise. */ function ddw_btc_is_blox_active() { @@ -253,9 +315,9 @@ function ddw_btc_is_blox_active() { /** * Is Avada Theme with Fusion Builder plugin active or not? * - * @since 1.4.0 + * @since 1.4.0 * - * @return bool TRUE if Avada Fusion Builder is active, otherwise FALSE. + * @return bool TRUE if Avada Fusion Builder is active, FALSE otherwise. */ function ddw_btc_is_avada_fusion_builder_active() { @@ -274,9 +336,9 @@ function ddw_btc_is_avada_fusion_builder_active() { /** * Is AnyWhere Elementor (free/Pro) plugin active or not? * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if AnyWhere Elementor is active, otherwise FALSE. + * @return bool TRUE if AnyWhere Elementor is active, FALSE otherwise. */ function ddw_btc_is_anywhere_elementor_active() { @@ -288,9 +350,9 @@ function ddw_btc_is_anywhere_elementor_active() { /** * Is JetThemeCore plugin active or not? * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if JetThemeCore is active, otherwise FALSE. + * @return bool TRUE if JetThemeCore is active, FALSE otherwise. */ function ddw_btc_is_jetthemecore_active() { @@ -302,13 +364,15 @@ function ddw_btc_is_jetthemecore_active() { /** * Is JetWooBuilder plugin active or not? * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if WooCommerce and JetWooBuilder is active, otherwise FALSE. + * @uses ddw_btc_is_woocommerce_active() + * + * @return bool TRUE if WooCommerce and JetWooBuilder is active, FALSE otherwise. */ function ddw_btc_is_jetwoobuilder_active() { - return ( class_exists( 'WooCommerce' ) && class_exists( 'Jet_Woo_Builder' ) ); + return ( ddw_btc_is_woocommerce_active() && class_exists( 'Jet_Woo_Builder' ) ); } // end function @@ -316,9 +380,9 @@ function ddw_btc_is_jetwoobuilder_active() { /** * Is JetEngine plugin active or not? * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if JetEngine is active, otherwise FALSE. + * @return bool TRUE if JetEngine is active, FALSE otherwise. */ function ddw_btc_is_jetengine_active() { @@ -330,9 +394,9 @@ function ddw_btc_is_jetengine_active() { /** * Is Header Footer for Elementor plugin active or not? * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if Header Footer for Elementor is active, otherwise FALSE. + * @return bool TRUE if Header Footer for Elementor is active, FALSE otherwise. */ function ddw_btc_is_hfelementor_active() { @@ -344,9 +408,9 @@ function ddw_btc_is_hfelementor_active() { /** * Is PopBoxes plugin active or not? * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if PopBoxes is active, otherwise FALSE. + * @return bool TRUE if PopBoxes is active, FALSE otherwise. */ function ddw_btc_is_popboxes_active() { @@ -358,9 +422,9 @@ function ddw_btc_is_popboxes_active() { /** * Is JetPopup plugin active or not? * - * @since 1.1.0 - *s - * @return bool TRUE if JetPopup is active, otherwise FALSE. + * @since 1.1.0 + * + * @return bool TRUE if JetPopup is active, FALSE otherwise. */ function ddw_btc_is_jetpopup_active() { @@ -372,14 +436,16 @@ function ddw_btc_is_jetpopup_active() { /** * Is DHWC Elementor plugin active or not? * - * @since 1.0.0 - *s + * @since 1.0.0 + * + * @uses ddw_btc_is_woocommerce_active() + * * @return bool TRUE if WooCommerce and DHWC Elementor is active, otherwise * FALSE. */ function ddw_btc_is_dhwc_elementor_active() { - return ( class_exists( 'WooCommerce' ) && defined( 'DHWC_ELEMENTOR_VERSION' ) ); + return ( ddw_btc_is_woocommerce_active() && defined( 'DHWC_ELEMENTOR_VERSION' ) ); } // end function @@ -387,9 +453,9 @@ function ddw_btc_is_dhwc_elementor_active() { /** * Is Templementor plugin active or not? * - * @since 1.1.0 - *s - * @return bool TRUE if Templementor is active, otherwise FALSE. + * @since 1.1.0 + * + * @return bool TRUE if Templementor is active, FALSE otherwise. */ function ddw_btc_is_templementor_active() { @@ -401,13 +467,15 @@ function ddw_btc_is_templementor_active() { /** * Is Kadence WooCommerce Elementor plugin active or not? * - * @since 1.1.0 - *s - * @return bool TRUE if Kadence WooCommerce Elementor is active, otherwise FALSE. + * @since 1.1.0 + * + * @uses ddw_btc_is_woocommerce_active() + * + * @return bool TRUE if Kadence WooCommerce Elementor is active, FALSE otherwise. */ function ddw_btc_is_kadence_woocommerce_elementor_active() { - return ( class_exists( 'WooCommerce' ) && class_exists( 'Kadence_Woocommerce_Elementor' ) ); + return ( ddw_btc_is_woocommerce_active() && class_exists( 'Kadence_Woocommerce_Elementor' ) ); } // end function @@ -415,9 +483,9 @@ function ddw_btc_is_kadence_woocommerce_elementor_active() { /** * Is Kadence WooCommerce Elementor Pro plugin active or not? * - * @since 1.1.0 - *s - * @return bool TRUE if Kadence WooCommerce Elementor Pro is active, otherwise FALSE. + * @since 1.1.0 + * + * @return bool TRUE if Kadence WooCommerce Elementor Pro is active, FALSE otherwise. */ function ddw_btc_is_kadence_woocommerce_elementor_pro_active() { @@ -430,10 +498,10 @@ function ddw_btc_is_kadence_woocommerce_elementor_pro_active() { * Is StylePress for Elementor plugin active or not? * Note: We need at least v1.2.1 or higher. * - * @since 1.2.0 - *s + * @since 1.2.0 + * * @return bool TRUE if StylePress for Elementor is active in at least - * version 1.2.1 or higher, otherwise FALSE. + * version 1.2.1 or higher, FALSE otherwise. */ function ddw_btc_is_stylepress_elementor_active() { @@ -445,9 +513,9 @@ function ddw_btc_is_stylepress_elementor_active() { /** * Is Opal Widgets for Elementor plugin active or not? * - * @since 1.3.0 - *s - * @return bool TRUE if Opal Widgets for Elementor is active, otherwise FALSE. + * @since 1.3.0 + * + * @return bool TRUE if Opal Widgets for Elementor is active, FALSE otherwise. */ function ddw_btc_is_opal_widgets_elementor_active() { @@ -459,9 +527,9 @@ function ddw_btc_is_opal_widgets_elementor_active() { /** * Is JetSmartFilters plugin active or not? * - * @since 1.3.0 + * @since 1.3.0 * - * @return bool TRUE if JetSmartFilters is active, otherwise FALSE. + * @return bool TRUE if JetSmartFilters is active, FALSE otherwise. */ function ddw_btc_is_jetsmartfilters_active() { @@ -473,9 +541,9 @@ function ddw_btc_is_jetsmartfilters_active() { /** * Is Epic News Elements plugin active or not? * - * @since 1.3.0 + * @since 1.3.0 * - * @return bool TRUE if plugin is active, otherwise FALSE. + * @return bool TRUE if plugin is active, FALSE otherwise. */ function ddw_btc_is_epic_news_elements_active() { @@ -494,9 +562,9 @@ function ddw_btc_is_epic_news_elements_active() { /** * Is WP Show Posts plugin active or not? * - * @since 1.0.0 - *s - * @return bool TRUE if WP Show Posts is active, otherwise FALSE. + * @since 1.0.0 + * + * @return bool TRUE if WP Show Posts is active, FALSE otherwise. */ function ddw_btc_is_wpshowposts_active() { @@ -510,9 +578,9 @@ function ddw_btc_is_wpshowposts_active() { * Note: This requires in Pods' settings that the "Templates" Component has * been enabled. * - * @since 1.0.0 - *s - * @return bool TRUE if Pods Templates is active, otherwise FALSE. + * @since 1.0.0 + * + * @return bool TRUE if Pods Templates is active, FALSE otherwise. */ function ddw_btc_is_pods_templates_active() { @@ -533,9 +601,9 @@ function ddw_btc_is_pods_templates_active() { /** * Is Popup Maker plugin active or not? * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if Popup Maker is active, otherwise FALSE. + * @return bool TRUE if Popup Maker is active, FALSE otherwise. */ function ddw_btc_is_popup_maker_active() { @@ -547,9 +615,9 @@ function ddw_btc_is_popup_maker_active() { /** * Is Thrive Lightboxes plugin active or not? * - * @since 1.0.0 + * @since 1.0.0 * - * @return bool TRUE if Thrive Lightboxes is active, otherwise FALSE. + * @return bool TRUE if Thrive Lightboxes is active, FALSE otherwise. */ function ddw_btc_is_thrive_lightboxes_active() { @@ -561,9 +629,9 @@ function ddw_btc_is_thrive_lightboxes_active() { /** * Is Cherry PopUps plugin active or not? * - * @since 1.1.0 - *s - * @return bool TRUE if Cherry PopUps is active, otherwise FALSE. + * @since 1.1.0 + * + * @return bool TRUE if Cherry PopUps is active, FALSE otherwise. */ function ddw_btc_is_cherry_popups_active() { @@ -575,9 +643,9 @@ function ddw_btc_is_cherry_popups_active() { /** * Is Themify Builder plugin active or not? * - * @since 1.1.0 - *s - * @return bool TRUE if Themify Builder is active, otherwise FALSE. + * @since 1.1.0 + * + * @return bool TRUE if Themify Builder is active, FALSE otherwise. */ function ddw_btc_is_themify_builder_active() { @@ -589,9 +657,9 @@ function ddw_btc_is_themify_builder_active() { /** * Is Themify Popup plugin active or not? * - * @since 1.1.0 - *s - * @return bool TRUE if Themify Popup is active, otherwise FALSE. + * @since 1.1.0 + * + * @return bool TRUE if Themify Popup is active, FALSE otherwise. */ function ddw_btc_is_themify_popup_active() { @@ -603,9 +671,9 @@ function ddw_btc_is_themify_popup_active() { /** * Is Meta Box Post Type Add-On plugin active or not? * - * @since 1.1.0 - *s - * @return bool TRUE if MB Post Type is active, otherwise FALSE. + * @since 1.1.0 + * + * @return bool TRUE if MB Post Type is active, FALSE otherwise. */ function ddw_btc_is_metabox_posttype_active() { @@ -617,9 +685,9 @@ function ddw_btc_is_metabox_posttype_active() { /** * Is Meta Box Taxonomy Add-On plugin active or not? * - * @since 1.1.0 - *s - * @return bool TRUE if MB Taxonomy is active, otherwise FALSE. + * @since 1.1.0 + * + * @return bool TRUE if MB Taxonomy is active, FALSE otherwise. */ function ddw_btc_is_metabox_taxonomy_active() { @@ -631,9 +699,9 @@ function ddw_btc_is_metabox_taxonomy_active() { /** * Is Reusable Content & Text Blocks by Loomisoft plugin active or not? * - * @since 1.2.0 - *s - * @return bool TRUE if Reusable Content & Text Blocks by Loomisoft is active, otherwise FALSE. + * @since 1.2.0 + * + * @return bool TRUE if Reusable Content & Text Blocks by Loomisoft is active, FALSE otherwise. */ function ddw_btc_is_loomisoft_content_blocks_active() { @@ -645,8 +713,8 @@ function ddw_btc_is_loomisoft_content_blocks_active() { /** * Is Content Blocks (Custom Post Widget) plugin active or not? * - * @since 1.2.0 - *s + * @since 1.2.0 + * * @return bool TRUE if Content Blocks (Custom Post Widget) is active, otherwise * FALSE. */ @@ -660,9 +728,9 @@ function ddw_btc_is_content_blocks_active() { /** * Is Text Blocks plugin active or not? * - * @since 1.2.0 - *s - * @return bool TRUE if Text Blocks is active, otherwise FALSE. + * @since 1.2.0 + * + * @return bool TRUE if Text Blocks is active, FALSE otherwise. */ function ddw_btc_is_text_blocks_active() { @@ -674,9 +742,9 @@ function ddw_btc_is_text_blocks_active() { /** * Is Widget Content Blocks plugin active or not? * - * @since 1.2.0 - *s - * @return bool TRUE if Widget Content Blocks is active, otherwise FALSE. + * @since 1.2.0 + * + * @return bool TRUE if Widget Content Blocks is active, FALSE otherwise. */ function ddw_btc_is_widget_content_blocks_active() { @@ -688,9 +756,9 @@ function ddw_btc_is_widget_content_blocks_active() { /** * Is Dev Content Blocks plugin active or not? * - * @since 1.2.0 - *s - * @return bool TRUE if Dev Content Blocks is active, otherwise FALSE. + * @since 1.2.0 + * + * @return bool TRUE if Dev Content Blocks is active, FALSE otherwise. */ function ddw_btc_is_dev_content_blocks_active() { @@ -702,9 +770,9 @@ function ddw_btc_is_dev_content_blocks_active() { /** * Is Advanced Custom Fields (Pro) plugin active or not? * - * @since 1.3.0 - *s - * @return bool TRUE if ACF is active, otherwise FALSE. + * @since 1.3.0 + * + * @return bool TRUE if ACF is active, FALSE otherwise. */ function ddw_btc_is_advanced_custom_fields_active() { @@ -716,9 +784,9 @@ function ddw_btc_is_advanced_custom_fields_active() { /** * Is Custom Field Suite plugin active or not? * - * @since 1.3.0 - *s - * @return bool TRUE if Custom Field Suite is active, otherwise FALSE. + * @since 1.3.0 + * + * @return bool TRUE if Custom Field Suite is active, FALSE otherwise. */ function ddw_btc_is_custom_field_suite_active() { @@ -730,9 +798,9 @@ function ddw_btc_is_custom_field_suite_active() { /** * Is CMB2 Admin Extension plugin active or not? * - * @since 1.3.0 - *s - * @return bool TRUE if CMB2 Admin Extension is active, otherwise FALSE. + * @since 1.3.0 + * + * @return bool TRUE if CMB2 Admin Extension is active, FALSE otherwise. */ function ddw_btc_is_cmb2_admin_extension_active() { @@ -744,9 +812,9 @@ function ddw_btc_is_cmb2_admin_extension_active() { /** * Is Meta Box Builder plugin active or not? * - * @since 1.3.0 - *s - * @return bool TRUE if Meta Box Builder is active, otherwise FALSE. + * @since 1.3.0 + * + * @return bool TRUE if Meta Box Builder is active, FALSE otherwise. */ function ddw_btc_is_meta_box_builder_active() { @@ -758,9 +826,9 @@ function ddw_btc_is_meta_box_builder_active() { /** * Is Custom Template for LifterLMS plugin active or not? * - * @since 1.3.0 - *s - * @return bool TRUE if Custom Template for LifterLMS is active, otherwise FALSE. + * @since 1.3.0 + * + * @return bool TRUE if Custom Template for LifterLMS is active, FALSE otherwise. */ function ddw_btc_is_custom_template_lifterlms_active() { @@ -772,9 +840,9 @@ function ddw_btc_is_custom_template_lifterlms_active() { /** * Is Custom Template for LearnDash plugin active or not? * - * @since 1.3.0 - *s - * @return bool TRUE if Custom Template for LearnDash is active, otherwise FALSE. + * @since 1.3.0 + * + * @return bool TRUE if Custom Template for LearnDash is active, FALSE otherwise. */ function ddw_btc_is_custom_template_learndash_active() { @@ -786,9 +854,9 @@ function ddw_btc_is_custom_template_learndash_active() { /** * Is Reusable Content Blocks plugin active or not? * - * @since 1.3.0 - *s - * @return bool TRUE if Reusable Content Blocks is active, otherwise FALSE. + * @since 1.3.0 + * + * @return bool TRUE if Reusable Content Blocks is active, FALSE otherwise. */ function ddw_btc_is_reusable_content_blocks_active() { @@ -800,9 +868,9 @@ function ddw_btc_is_reusable_content_blocks_active() { /** * Is Master Popups plugin active or not? * - * @since 1.4.0 - *s - * @return bool TRUE if Master Popups is active, otherwise FALSE. + * @since 1.4.0 + * + * @return bool TRUE if Master Popups is active, FALSE otherwise. */ function ddw_btc_is_master_popups_active() { @@ -815,8 +883,8 @@ function ddw_btc_is_master_popups_active() { * Is Smart Footer System plugin active or not? * * @since 1.4.0 - *s - * @return bool TRUE if plugin is active, otherwise FALSE. + * + * @return bool TRUE if plugin is active, FALSE otherwise. */ function ddw_btc_is_smart_footer_system_active() { @@ -828,9 +896,9 @@ function ddw_btc_is_smart_footer_system_active() { /** * Is Easy Content Templates plugin active or not? * - * @since 1.4.0 - *s - * @return bool TRUE if plugin is active, otherwise FALSE. + * @since 1.4.0 + * + * @return bool TRUE if plugin is active, FALSE otherwise. */ function ddw_btc_is_easy_content_templates_active() { @@ -842,9 +910,9 @@ function ddw_btc_is_easy_content_templates_active() { /** * Is Simple Content Templates plugin active or not? * - * @since 1.4.0 - *s - * @return bool TRUE if plugin is active, otherwise FALSE. + * @since 1.4.0 + * + * @return bool TRUE if plugin is active, FALSE otherwise. */ function ddw_btc_is_simple_content_templates_active() { @@ -856,9 +924,9 @@ function ddw_btc_is_simple_content_templates_active() { /** * Is Custom Page Templates plugin active or not? * - * @since 1.4.0 - *s - * @return bool TRUE if plugin is active, otherwise FALSE. + * @since 1.4.0 + * + * @return bool TRUE if plugin is active, FALSE otherwise. */ function ddw_btc_is_custom_page_templates_active() { @@ -879,11 +947,11 @@ function ddw_btc_is_custom_page_templates_active() { * 1) WordPress is in version 5.0.0+ (will contain blocks editor by default) * 2) or, the "Gutenberg" plugin is active (it is the blocks editor) * - * @since 1.2.0 - * @since 1.3.0 Made WP 5.0 version check more precise. + * @since 1.2.0 + * @since 1.3.0 Made WP 5.0 version check more precise. * * @global string $GLOBALS[ 'wp_version' ] - * @return bool TRUE if blocks editor available, otherwise FALSE. + * @return bool TRUE if blocks editor available, FALSE otherwise. */ function ddw_btc_is_block_editor_active() { @@ -901,9 +969,9 @@ function ddw_btc_is_block_editor_active() { /** * Is Lazy Blocks plugin active or not? * - * @since 1.2.0 - *s - * @return bool TRUE if Lazy Blocks is active, otherwise FALSE. + * @since 1.2.0 + * + * @return bool TRUE if Lazy Blocks is active, FALSE otherwise. */ function ddw_btc_is_lazy_blocks_active() { @@ -915,9 +983,9 @@ function ddw_btc_is_lazy_blocks_active() { /** * Is Block Lab plugin active or not? * - * @since 1.4.0 - *s - * @return bool TRUE if Block Lab is active, otherwise FALSE. + * @since 1.4.0 + * + * @return bool TRUE if Block Lab is active, FALSE otherwise. */ function ddw_btc_is_block_lab_active() { @@ -929,9 +997,9 @@ function ddw_btc_is_block_lab_active() { /** * Is Advanced Custom Blocks plugin active or not? * - * @since 1.2.0 - *s - * @return bool TRUE if Advanced Custom Blocks is active, otherwise FALSE. + * @since 1.2.0 + * + * @return bool TRUE if Advanced Custom Blocks is active, FALSE otherwise. */ function ddw_btc_is_advanced_custom_blocks_active() { @@ -943,9 +1011,9 @@ function ddw_btc_is_advanced_custom_blocks_active() { /** * Is Blocks Layouts plugin active or not? * - * @since 1.2.0 - *s - * @return bool TRUE if Blocks Layouts is active, otherwise FALSE. + * @since 1.2.0 + * + * @return bool TRUE if Blocks Layouts is active, FALSE otherwise. */ function ddw_btc_is_block_layouts_active() { @@ -957,9 +1025,9 @@ function ddw_btc_is_block_layouts_active() { /** * Is Square Happiness Placeholder Block plugin active or not? * - * @since 1.2.0 - *s - * @return bool TRUE if Placeholder Block is active, otherwise FALSE. + * @since 1.2.0 + * + * @return bool TRUE if Placeholder Block is active, FALSE otherwise. */ function ddw_btc_is_sqh_placeholder_block_active() { @@ -971,12 +1039,260 @@ function ddw_btc_is_sqh_placeholder_block_active() { /** * Is Gutenberg Templates (Block Templates) plugin active or not? * - * @since 1.4.0 - *s - * @return bool TRUE if plugin is active, otherwise FALSE. + * @since 1.4.0 + * + * @return bool TRUE if plugin is active, FALSE otherwise. */ function ddw_btc_is_block_templates_active() { return class_exists( '\Gutenberg_Templates\Controllers\Gutenberg_Templates' ); } // end function + + +/** + * Is the Classic Editor plugin active or not? + * + * @since 1.4.3 + * + * @return bool TRUE if plugin is active, FALSE otherwise. + */ +function ddw_btc_is_classic_editor_plugin_active() { + + return class_exists( 'Classic_Editor' ); + +} // end function + + +/** + * Is the Classic Editor Add-On plugin active or not? + * + * @since 1.4.3 + * + * @return bool TRUE if Add-On plugin is active, FALSE otherwise. + */ +function ddw_btc_is_classic_editor_addon_active() { + + return function_exists( 'classic_editor_addon_post_init' ); + +} // end function + + +/** + * Is the Disable Gutenberg plugin active or not? + * + * @since 1.4.3 + * + * @return bool TRUE if plugin is active, FALSE otherwise. + */ +function ddw_btc_is_disable_gutenberg_active() { + + return class_exists( 'DisableGutenberg' ); + +} // end function + + +/** + * Is the Gutenberg Ramp plugin active or not? + * + * @since 1.4.3 + * + * @return bool TRUE if plugin is active, FALSE otherwise. + */ +function ddw_btc_is_gutenberg_ramp_active() { + + return class_exists( 'Gutenberg_Ramp' ); + +} // end function + + +/** + * Is the Gutenberg Manager plugin active or not? + * + * @since 1.4.3 + * + * @return bool TRUE if plugin is active, FALSE otherwise. + */ +function ddw_btc_is_gutenberg_manager_active() { + + return function_exists( 'gm_check_gutenberg' ); + +} // end function + + +/** + * Is the No Gutenberg plugin active or not? + * + * @since 1.4.3 + * + * @return bool TRUE if plugin is active, FALSE otherwise. + */ +function ddw_btc_is_nogutenberg_plugin_active() { + + return function_exists( 'no_gutenberg_init' ); + +} // end function + + +/** + * Is the Disable WP Block Editor plugin active or not? + * + * @since 1.4.3 + * + * @return bool TRUE if plugin is active, FALSE otherwise. + */ +function ddw_btc_is_disable_wp_block_editor_active() { + + return function_exists( 'dwgu_disable_update' ); + +} // end function + + +/** + * Is the Disable WordPress "Gutenberg" Update plugin active or not? + * + * @since 1.4.3 + * + * @return bool TRUE if plugin is active, FALSE otherwise. + */ +function ddw_btc_is_disable_wpgutenberg_update_active() { + + return function_exists( 'dwgu_disable_update' ); + +} // end function + + +/** + * When Block Editor is active, check if any external plugin is deactiving the + * Block Editor. + * + * @since 1.4.3 + * + * @uses ddw_btc_is_block_editor_active() + * @uses ddw_btc_is_classic_editor_plugin_active() + * @uses ddw_btc_is_classic_editor_addon_active() + * @uses ddw_btc_is_disable_gutenberg_active() + * @uses ddw_btc_is_gutenberg_ramp_active() + * @uses ddw_btc_is_nogutenberg_plugin_active() + * @uses ddw_btc_is_disable_wp_block_editor_active() + * @uses ddw_btc_is_disable_wpgutenberg_update_active() + * @uses ddw_btc_is_gutenberg_manager_active() + * + * @return bool TRUE if certain popular plugins are NOT globally disabling the + * Block Editor. + */ +function ddw_btc_is_block_editor_wanted() { + + /** Bail early if Block Editor isn't active at all */ + if ( ! ddw_btc_is_block_editor_active() ) { + return FALSE; + } + + /** + * For: "Classic Editor Add-On" plugin (it deactivates Block Editor + * completely, automatically). + * FALSE when plugin is active. + */ + if ( ddw_btc_is_classic_editor_addon_active() ) { + return FALSE; + } + + + /** + * For: "No Gutenberg" plugin (deactivates Block Editor completely). + * FALSE when plugin is active. + */ + if ( ddw_btc_is_nogutenberg_plugin_active() ) { + return FALSE; + } + + + /** + * For: "No Gutenberg" plugin (deactivates Block Editor completely). + * FALSE when plugin is active. + */ + if ( ddw_btc_is_disable_wp_block_editor_active() ) { + return FALSE; + } + + + /** + * For: "Disable WordPress 'Gutenberg' Update" plugin (keeps WordPress on + * the legacy 4.9 branch - no updates to 5.0+). + * FALSE when plugin is active. + */ + if ( ddw_btc_is_disable_wpgutenberg_update_active() ) { + return FALSE; + } + + + /** + * For: "Classic Editor" plugin (there are various options we need to check). + * FALSE when "Classic Editor" is set and users cannot change editor. + */ + $classic_type = get_option( 'classic-editor-replace' ); + $classic_user = get_option( 'classic-editor-allow-users' ); + + if ( ddw_btc_is_classic_editor_plugin_active() + && ( isset( $classic_type ) && 'classic' === $classic_type ) + && ( isset( $classic_user ) && 'disallow' === $classic_user ) + ) { + return FALSE; + } + + + /** + * For: "Disable Gutenberg" plugin (there are various options we need to + * check). + * FALSE when option 'disable for all' is set. + */ + $g7g_options = get_option( 'disable_gutenberg_options', 'default_disabled_all_not_saved' ); + + if ( ddw_btc_is_disable_gutenberg_active() + && ( + ( 'default_disabled_all_not_saved' === $g7g_options ) + || ( isset( $g7g_options[ 'disable-all' ] ) && 1 === $g7g_options[ 'disable-all' ] ) + ) + ) { + return FALSE; + } + + + /** + * For: "Gutenberg Ramp" plugin (there are various options we need to check). + */ + if ( ddw_btc_is_gutenberg_ramp_active() ) { + + $gutenberg_ramp = Gutenberg_Ramp::get_instance(); + $gbramp_types = get_option( 'gutenberg_ramp_post_types' ); + + /** + * FALSE when no $criteria set & no post types in settings are set + */ + if ( FALSE === $gutenberg_ramp->active && empty( $gbramp_types ) ) { + return FALSE; + } + + } // end if + + + /** + * For: "Gutenberg Manager" plugin. + */ + if ( ddw_btc_is_gutenberg_manager_active() ) { + + $gb_manager = get_option( 'gm-global-disable' ); + + /** + * FALSE when option is set to global disable Gutenberg + */ + if ( 1 === absint( $gb_manager ) ) { + return FALSE; + } + + } // end if + + /** For: Default - TRUE */ + return TRUE; + +} // end function diff --git a/includes/functions-global.php b/includes/functions-global.php index f30c072..62ff44a 100644 --- a/includes/functions-global.php +++ b/includes/functions-global.php @@ -15,7 +15,7 @@ /** * Get the - filtered - capability for showing the submenus. * - * @since 1.0.0 + * @since 1.0.0 * * @return string Key for the submenu capability. */ @@ -37,7 +37,7 @@ function ddw_btc_capability_submenu() { * Plugins and themes can hook into the 'btc_filter_get_integrations' filter to * register their own integration. * - * @since 1.0.0 + * @since 1.0.0 * * @return array Filterable array of registered integrations. */ @@ -82,7 +82,7 @@ function ddw_btc_get_integrations() { /** * Admin URL for the taxonomy (overview table). * - * @since 1.0.0 + * @since 1.0.0 * * @return string Admin URL for the taxonomy (taxonomy table). */ @@ -97,16 +97,17 @@ function ddw_btc_taxonomy_admin_url() { * Get specific post types from integrations for re-usage, summarized after * label types (content types). * - * @since 1.1.0 - * @since 1.2.0 Added "Field", "Box", "Bar" and "Hook" content types. - * @since 1.3.0 Added "Filter" content type. - * @since 1.4.1 Added "Section" content type. + * @since 1.1.0 + * @since 1.2.0 Added "Field", "Box", "Bar" and "Hook" content types. + * @since 1.3.0 Added "Filter" content type. + * @since 1.4.1 Added "Section" content type. + * @since 1.4.3 Added "Flow" and "Section" content types. * - * @uses ddw_btc_get_integrations() + * @uses ddw_btc_get_integrations() * - * @param string $all_types Optional string param used as a flag, to enable - * alternative return of all post types in one single - * array (not summarized!). + * @param string $all_types Optional string param used as a flag, to enable + * alternative return of all post types in one single + * array (not summarized!). * @return array Filterable array of post type keys, summarized after content * type. */ @@ -131,7 +132,9 @@ function ddw_btc_get_integration_post_types( $all_types = '' ) { 'bars' => array(), 'hooks' => array(), 'filters' => array(), - 'sections' => array(), + 'sections' => array(), + 'flows' => array(), + 'snippets' => array(), 'btcdefault' => array( 'btc-template' ), ); @@ -203,6 +206,14 @@ function ddw_btc_get_integration_post_types( $all_types = '' ) { $post_types[ 'sections' ][] = $integration[ 'post_type' ]; } + if ( 'flow' === $integration[ 'template_label' ] ) { + $post_types[ 'flows' ][] = $integration[ 'post_type' ]; + } + + if ( 'snippet' === $integration[ 'template_label' ] ) { + $post_types[ 'snippets' ][] = $integration[ 'post_type' ]; + } + $post_types_all[] = $integration[ 'post_type' ]; } // end foreach @@ -233,11 +244,11 @@ function ddw_btc_get_integration_post_types( $all_types = '' ) { * This is needed for registering our taxonomy so that the taxonomy meta box * is appearing for those post types in the Block Editor (Gutenberg). * - * @since 1.3.0 + * @since 1.3.0 * - * @uses ddw_btc_get_integrations() + * @uses ddw_btc_get_integrations() * - * @param string $keys_only Flag string to optionally output only a single + * @param string $keys_only Flag string to optionally output only a single * array with all post type keys. * @return array Filterable array with the full sub arrays for each integration. */ @@ -288,7 +299,7 @@ function ddw_btc_get_post_types_for_block_editor( $keys_only = '' ) { * * Inspired by @link https://gist.github.com/DomenicF/3ebcf7d53ce3182854716c4d8f1ab2e2 * - * @since 1.1.0 + * @since 1.1.0 * * @return string|null String of post type or null if no post type available. */ @@ -337,12 +348,22 @@ function ddw_btc_prepare_tax_column_add( $post_type = '', $priority = 10 ) { /** * Setting internal plugin helper values. * - * @since 1.0.0 + * @since 1.0.0 * * @return array $btc_info Array of info values. */ function ddw_btc_info_values() { + /** Get current user */ + $user = wp_get_current_user(); + + /** Build Newsletter URL */ + $url_nl = sprintf( + 'https://deckerweb.us2.list-manage.com/subscribe?u=e09bef034abf80704e5ff9809&id=380976af88&MERGE0=%1$s&MERGE1=%2$s', + esc_attr( $user->user_email ), + esc_attr( $user->user_firstname ) + ); + $btc_info = array( 'url_translate' => 'https://translate.wordpress.org/projects/wp-plugins/builder-template-categories', @@ -357,7 +378,10 @@ function ddw_btc_info_values() { 'license' => 'GPL-2.0-or-later', 'url_license' => 'https://opensource.org/licenses/GPL-2.0', 'first_code' => '2018', + + 'url_newsletter' => $url_nl, 'url_donate' => 'https://www.paypal.me/deckerweb', + 'url_plugin' => 'https://github.com/deckerweb/builder-template-categories', 'url_plugin_docs' => 'https://github.com/deckerweb/builder-template-categories/wiki', 'url_plugin_faq' => 'https://wordpress.org/plugins/builder-template-categories/#faq', @@ -378,12 +402,12 @@ function ddw_btc_info_values() { /** * Get URL of specific BTC info value. * - * @since 1.0.0 + * @since 1.0.0 * - * @uses ddw_btc_info_values() + * @uses ddw_btc_info_values() * - * @param string $url_key String of value key from array of ddw_btc_info_values() - * @param bool $raw If raw escaping or regular escaping of URL gets used + * @param string $url_key String of value key from array of ddw_btc_info_values() + * @param bool $raw If raw escaping or regular escaping of URL gets used * @return string URL for info value. */ function ddw_btc_get_info_url( $url_key = '', $raw = FALSE ) { @@ -404,13 +428,13 @@ function ddw_btc_get_info_url( $url_key = '', $raw = FALSE ) { /** * Get link with complete markup for a specific BTC info value. * - * @since 1.0.0 + * @since 1.0.0 * - * @uses ddw_btc_get_info_url() + * @uses ddw_btc_get_info_url() * - * @param string $url_key String of value key - * @param string $text String of text and link attribute - * @param string $class String of CSS class + * @param string $url_key String of value key + * @param string $text String of text and link attribute + * @param string $class String of CSS class * @return string HTML markup for linked URL. */ function ddw_btc_get_info_link( $url_key = '', $text = '', $class = '' ) { @@ -430,12 +454,12 @@ function ddw_btc_get_info_link( $url_key = '', $text = '', $class = '' ) { /** * Get timespan of coding years for this plugin. * - * @since 1.0.0 - * @since 1.1.0 Improved first year logic. + * @since 1.0.0 + * @since 1.1.0 Improved first year logic. * - * @uses ddw_btc_info_values() + * @uses ddw_btc_info_values() * - * @param int $first_year Integer number of first year + * @param int $first_year Integer number of first year * @return string Timespan of years. */ function ddw_btc_coding_years( $first_year = '' ) { diff --git a/includes/integrations/elementor-finder.php b/includes/integrations/elementor-finder.php index 32f34e5..81954d0 100644 --- a/includes/integrations/elementor-finder.php +++ b/includes/integrations/elementor-finder.php @@ -24,7 +24,7 @@ class DDW_BTC_Finder_Category extends \Elementor\Core\Common\Modules\Finder\Base /** * Get title. * - * @since 1.4.0 + * @since 1.4.0 * * @access public * @@ -40,14 +40,14 @@ public function get_title() { /** * Get category items. * - * @since 1.4.0 - * @since 1.5.0 Added actions, plus filter. + * @since 1.4.0 + * @since 1.4.3 Added actions, plus filter. * * @access public * - * @uses ddw_btc_get_info_url() + * @uses ddw_btc_get_info_url() * - * @param array $options + * @param array $options * @return array $items Filterable array of additional Finder items. */ public function get_category_items( array $options = [] ) { diff --git a/includes/integrations/integration-advanced-custom-blocks.php b/includes/integrations/integration-advanced-custom-blocks.php index 13f3231..53fc851 100644 --- a/includes/integrations/integration-advanced-custom-blocks.php +++ b/includes/integrations/integration-advanced-custom-blocks.php @@ -16,9 +16,9 @@ /** * Register Advanced Custom Blocks. * - * @since 1.2.0 + * @since 1.2.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_advanced_custom_blocks( array $integrations ) { @@ -51,8 +51,8 @@ function ddw_btc_register_integration_advanced_custom_blocks( array $integration * * @since 1.2.0 * - * @uses add_submenu_page() - * @uses ddw_btc_string_add_new() + * @uses add_submenu_page() + * @uses ddw_btc_string_add_new() */ function ddw_btc_add_submenu_acb_addnew() { diff --git a/includes/integrations/integration-advanced-custom-fields.php b/includes/integrations/integration-advanced-custom-fields.php index 6a0d82a..f7a6321 100644 --- a/includes/integrations/integration-advanced-custom-fields.php +++ b/includes/integrations/integration-advanced-custom-fields.php @@ -16,9 +16,9 @@ /** * Register Advanced Custom Fields (Pro) plugin. * - * @since 1.3.0 + * @since 1.3.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_advanced_custom_fields( array $integrations ) { @@ -50,11 +50,11 @@ function ddw_btc_register_integration_advanced_custom_fields( array $integration * step as the automatic adding doesn't work for this (customized) post type * list table. * - * @since 1.4.0 + * @since 1.4.0 * - * @uses ddw_btc_string_template() + * @uses ddw_btc_string_template() * - * @param array $columns Array that holds all columns. + * @param array $columns Array that holds all columns. * @return array Modified array of columns. */ function ddw_btc_add_tax_column_acf( $columns ) { diff --git a/includes/integrations/integration-anywhere-elementor.php b/includes/integrations/integration-anywhere-elementor.php index 325b672..b8ae394 100644 --- a/includes/integrations/integration-anywhere-elementor.php +++ b/includes/integrations/integration-anywhere-elementor.php @@ -16,9 +16,9 @@ /** * Register AnyWhere Elementor plugin. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_anywhere_elementor( array $integrations ) { diff --git a/includes/integrations/integration-astra.php b/includes/integrations/integration-astra.php index cd65946..a17b558 100644 --- a/includes/integrations/integration-astra.php +++ b/includes/integrations/integration-astra.php @@ -16,9 +16,9 @@ /** * Register Astra theme. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_astra( array $integrations ) { diff --git a/includes/integrations/integration-avada-fusion-builder.php b/includes/integrations/integration-avada-fusion-builder.php index 48c73da..9a17f52 100644 --- a/includes/integrations/integration-avada-fusion-builder.php +++ b/includes/integrations/integration-avada-fusion-builder.php @@ -16,9 +16,9 @@ /** * Register Avada Theme with Fusion Builder plugin. * - * @since 1.4.0 + * @since 1.4.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_avada_fusion_builder( array $integrations ) { @@ -52,7 +52,7 @@ function ddw_btc_register_integration_avada_fusion_builder( array $integrations * * @since 1.4.0 * - * @uses remove_submenu_page() + * @uses remove_submenu_page() */ function ddw_btc_remove_submenu_for_avada_post_types() { @@ -72,7 +72,7 @@ function ddw_btc_remove_submenu_for_avada_post_types() { * * @since 1.4.0 * - * @uses add_submenu_page() + * @uses add_submenu_page() */ function ddw_btc_add_submenu_avada_fusion_builder_cpts() { diff --git a/includes/integrations/integration-block-editor.php b/includes/integrations/integration-block-editor.php index decd477..66ed895 100644 --- a/includes/integrations/integration-block-editor.php +++ b/includes/integrations/integration-block-editor.php @@ -16,10 +16,10 @@ /** * Register default WP Blocks = Gutenberg Reusable Blocks (WP Block Editor). * - * @since 1.2.0 - * @since 1.3.0 Enhanced for WordPress 5.0-beta1 or higher. + * @since 1.2.0 + * @since 1.3.0 Enhanced for WordPress 5.0-beta1 or higher. * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_wp_block_editor( array $integrations ) { @@ -67,9 +67,9 @@ function ddw_btc_register_integration_wp_block_editor( array $integrations ) { * * @since 1.3.0 * - * @see WP Core /wp-includes/post.php for 'wp_block' capabilities + * @see WP Core /wp-includes/post.php for 'wp_block' capabilities * - * @uses add_menu_page() + * @uses add_menu_page() */ function ddw_btc_maybe_add_menu_wpblock_posttype() { @@ -108,9 +108,9 @@ function ddw_btc_maybe_add_menu_wpblock_posttype() { * * Note: Code concept based on: * @author Jeff Starr - * @link https://perishablepress.com/delete-shared-saved-gutenberg-blocks/ + * @link https://perishablepress.com/delete-shared-saved-gutenberg-blocks/ * - * @since 1.2.0 + * @since 1.2.0 * * @global object $GLOBALS[ 'wp_post_types' ] */ @@ -140,7 +140,7 @@ function ddw_btc_maybe_open_wpblock_posttype() { * * @since 1.2.0 * - * @uses remove_submenu_page() + * @uses remove_submenu_page() */ function ddw_btc_maybe_remove_wpblock_addnew() { @@ -157,10 +157,10 @@ function ddw_btc_maybe_remove_wpblock_addnew() { * Tweak the admin for the 'wp_block' post type to make it more relevant and * useful. * - * @since 1.2.0 + * @since 1.2.0 * - * @param array $args Array that holds all registered post type arguments. - * @param string $post_type String of registered post type to tweak. + * @param array $args Array that holds all registered post type arguments. + * @param string $post_type String of registered post type to tweak. * @return array Array of tweaked post type arguments. */ function ddw_btc_tweak_posttype_wpblock( $args, $post_type ) { diff --git a/includes/integrations/integration-block-lab.php b/includes/integrations/integration-block-lab.php index f1717fe..b229c99 100644 --- a/includes/integrations/integration-block-lab.php +++ b/includes/integrations/integration-block-lab.php @@ -16,9 +16,9 @@ /** * Register Block Lab. * - * @since 1.4.0 + * @since 1.4.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_block_lab( array $integrations ) { @@ -50,11 +50,11 @@ function ddw_btc_register_integration_block_lab( array $integrations ) { * step as the automatic adding doesn't work for this (customized) post type * list table. * - * @since 1.4.0 + * @since 1.4.0 * - * @uses ddw_btc_string_template() + * @uses ddw_btc_string_template() * - * @param array $columns Array that holds all columns. + * @param array $columns Array that holds all columns. * @return array Modified array of columns. */ function ddw_btc_add_tax_column_block_lab( $columns ) { diff --git a/includes/integrations/integration-block-layouts.php b/includes/integrations/integration-block-layouts.php index ec732d8..cb4f4d7 100644 --- a/includes/integrations/integration-block-layouts.php +++ b/includes/integrations/integration-block-layouts.php @@ -16,9 +16,9 @@ /** * Register Lazy Blocks. * - * @since 1.2.0 + * @since 1.2.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_block_layouts( array $integrations ) { diff --git a/includes/integrations/integration-block-templates.php b/includes/integrations/integration-block-templates.php index 7dde12e..17fc78d 100644 --- a/includes/integrations/integration-block-templates.php +++ b/includes/integrations/integration-block-templates.php @@ -16,9 +16,9 @@ /** * Register Gutenberg Templates (Block Templates). * - * @since 1.4.0 + * @since 1.4.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_block_templates( array $integrations ) { @@ -43,11 +43,11 @@ function ddw_btc_register_integration_block_templates( array $integrations ) { * step as the automatic adding doesn't work for this (customized) post type * list table. * - * @since 1.4.0 + * @since 1.4.0 * - * @uses ddw_btc_string_template() + * @uses ddw_btc_string_template() * - * @param array $columns Array that holds all columns. + * @param array $columns Array that holds all columns. * @return array Modified array of columns. */ function ddw_btc_add_tax_column_block_templates( $columns ) { diff --git a/includes/integrations/integration-boldgrid.php b/includes/integrations/integration-boldgrid.php index c8895a0..1d4aa93 100644 --- a/includes/integrations/integration-boldgrid.php +++ b/includes/integrations/integration-boldgrid.php @@ -16,9 +16,9 @@ /** * Register BoldGrid Post and Page Builder. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_boldgrid( array $integrations ) { diff --git a/includes/integrations/integration-brizy.php b/includes/integrations/integration-brizy.php index 4c8accd..44e791c 100644 --- a/includes/integrations/integration-brizy.php +++ b/includes/integrations/integration-brizy.php @@ -16,9 +16,9 @@ /** * Register Brizy Page Builder. * - * @since 1.0.1 + * @since 1.0.1 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_brizy( array $integrations ) { diff --git a/includes/integrations/integration-cherry-popups.php b/includes/integrations/integration-cherry-popups.php index c3eaf51..fcd3068 100644 --- a/includes/integrations/integration-cherry-popups.php +++ b/includes/integrations/integration-cherry-popups.php @@ -16,9 +16,9 @@ /** * Register Cherry PopUps plugin. * - * @since 1.1.0 + * @since 1.1.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_cherry_popups( array $integrations ) { diff --git a/includes/integrations/integration-cmb2-admin-extension.php b/includes/integrations/integration-cmb2-admin-extension.php index d9aec6e..a3f4340 100644 --- a/includes/integrations/integration-cmb2-admin-extension.php +++ b/includes/integrations/integration-cmb2-admin-extension.php @@ -16,9 +16,9 @@ /** * Register CMB2 Admin Extension plugin. * - * @since 1.3.0 + * @since 1.3.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_cmb2_admin_extension( array $integrations ) { diff --git a/includes/integrations/integration-content-blocks.php b/includes/integrations/integration-content-blocks.php index 9e9c9b0..61afca7 100644 --- a/includes/integrations/integration-content-blocks.php +++ b/includes/integrations/integration-content-blocks.php @@ -16,9 +16,9 @@ /** * Register Content Blocks (Custom Post Widget). * - * @since 1.2.0 + * @since 1.2.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_content_blocks( array $integrations ) { diff --git a/includes/integrations/integration-cornerstone-global-blocks.php b/includes/integrations/integration-cornerstone-global-blocks.php index 61ad8ee..4728ad7 100644 --- a/includes/integrations/integration-cornerstone-global-blocks.php +++ b/includes/integrations/integration-cornerstone-global-blocks.php @@ -16,9 +16,9 @@ /** * Register Global Blocks for Cornerstone plugin. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_cornerstone_global_blocks( array $integrations ) { diff --git a/includes/integrations/integration-custom-field-suite.php b/includes/integrations/integration-custom-field-suite.php index 32b38e5..2d4c1d7 100644 --- a/includes/integrations/integration-custom-field-suite.php +++ b/includes/integrations/integration-custom-field-suite.php @@ -16,9 +16,9 @@ /** * Register Custom Field Suite plugin. * - * @since 1.3.0 + * @since 1.3.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_custom_field_suite( array $integrations ) { @@ -51,8 +51,8 @@ function ddw_btc_register_integration_custom_field_suite( array $integrations ) * * @since 1.3.0 * - * @uses add_submenu_page() - * @uses ddw_btc_string_add_new() + * @uses add_submenu_page() + * @uses ddw_btc_string_add_new() */ function ddw_btc_add_submenu_cfs_addnew() { diff --git a/includes/integrations/integration-custom-page-templates.php b/includes/integrations/integration-custom-page-templates.php index 6ce2f75..406b5e9 100644 --- a/includes/integrations/integration-custom-page-templates.php +++ b/includes/integrations/integration-custom-page-templates.php @@ -16,9 +16,9 @@ /** * Register Custom Page Templates. * - * @since 1.4.0 + * @since 1.4.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_custom_page_templates( array $integrations ) { diff --git a/includes/integrations/integration-custom-template-learndash.php b/includes/integrations/integration-custom-template-learndash.php index 63e4a59..7430be1 100644 --- a/includes/integrations/integration-custom-template-learndash.php +++ b/includes/integrations/integration-custom-template-learndash.php @@ -16,9 +16,9 @@ /** * Register Custom Template for LearnDash plugin. * - * @since 1.3.0 + * @since 1.3.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_custom_template_learndash( array $integrations ) { diff --git a/includes/integrations/integration-custom-template-lifterlms.php b/includes/integrations/integration-custom-template-lifterlms.php index c498043..f48bfc7 100644 --- a/includes/integrations/integration-custom-template-lifterlms.php +++ b/includes/integrations/integration-custom-template-lifterlms.php @@ -16,9 +16,9 @@ /** * Register Custom Template for LifterLMS plugin. * - * @since 1.3.0 + * @since 1.3.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_custom_template_lifterlms( array $integrations ) { diff --git a/includes/integrations/integration-dev-content-blocks.php b/includes/integrations/integration-dev-content-blocks.php index 4fe0dc8..7523f32 100644 --- a/includes/integrations/integration-dev-content-blocks.php +++ b/includes/integrations/integration-dev-content-blocks.php @@ -16,9 +16,9 @@ /** * Register Widget Content Blocks. * - * @since 1.2.0 + * @since 1.2.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_dev_content_blocks( array $integrations ) { diff --git a/includes/integrations/integration-dhwc-elementor.php b/includes/integrations/integration-dhwc-elementor.php index 3a5db07..feb041a 100644 --- a/includes/integrations/integration-dhwc-elementor.php +++ b/includes/integrations/integration-dhwc-elementor.php @@ -16,9 +16,9 @@ /** * Register DHWC Elementor plugin. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_dhwc_elementor( array $integrations ) { diff --git a/includes/integrations/integration-easy-content-templates.php b/includes/integrations/integration-easy-content-templates.php index fb14fe0..8202145 100644 --- a/includes/integrations/integration-easy-content-templates.php +++ b/includes/integrations/integration-easy-content-templates.php @@ -16,9 +16,9 @@ /** * Register Easy Content Templates. * - * @since 1.4.0 + * @since 1.4.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_easy_content_templates( array $integrations ) { diff --git a/includes/integrations/integration-elementor.php b/includes/integrations/integration-elementor.php index f09ca09..16dd532 100644 --- a/includes/integrations/integration-elementor.php +++ b/includes/integrations/integration-elementor.php @@ -16,16 +16,28 @@ /** * Register Elementor Page Builder. * - * @since 1.0.0 + * Elementor submenu slug info (both: 'edit.php?post_type=elementor_library'): + * - Elementor 2.4.0+: \Elementor\TemplateLibrary\Source_Local::ADMIN_MENU_SLUG + * - Elementor pre 2.4.0: \Elementor\Settings::PAGE_ID * - * @param array $integrations Holds array of all registered integrations. + * @since 1.0.0 + * @since 1.4.2 Improved third-party plugin compat. + * @since 1.4.3 Enhanced for Elementor v2.4.0+ compat. + * + * @uses ddw_btc_is_elementor_version() + * + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_elementor( array $integrations ) { + // version_compare( ELEMENTOR_VERSION, '2.4.0-beta1', '>=' ) + /** Set submenu hook based on Elementor version */ + $elementor_submenu_hook = ddw_btc_is_elementor_version( 'core', '2.4.0-beta1', '>=' ) ? \Elementor\TemplateLibrary\Source_Local::ADMIN_MENU_SLUG : \Elementor\Settings::PAGE_ID; + $integrations[ 'elementor' ] = array( 'label' => __( 'Elementor My Templates', 'builder-template-categories' ), - 'submenu_hook' => \Elementor\Settings::PAGE_ID, // 'edit.php?post_type=elementor_library', + 'submenu_hook' => $elementor_submenu_hook, 'post_type' => 'elementor_library', 'template_label' => 'template', 'admin_url' => 'edit.php?post_type=elementor_library', @@ -37,6 +49,83 @@ function ddw_btc_register_integration_elementor( array $integrations ) { } // end function +add_action( 'admin_menu', 'ddw_btc_remove_submenu_for_elementor', 601 ); +/** + * Since Elementor 2.4.0 we need to apply some tweaks: + * - Remove our taxonomy submenu first + * - Unset other submenu values made by Elementor + * + * @since 1.4.3 + * + * @see ddw_btc_add_submenu_elementor_template_categories() + * + * @uses ddw_btc_is_elementor_version() + * @uses remove_submenu_page() + */ +function ddw_btc_remove_submenu_for_elementor() { + + /** Only execute for Elementor v2.4.0+ */ + if ( ddw_btc_is_elementor_version( 'core', '2.4.0-beta1', '>=' ) ) { + + $page = remove_submenu_page( + 'edit.php?post_type=elementor_library', + 'edit-tags.php?taxonomy=builder-template-category&post_type=elementor_library' + ); + + unset( $GLOBALS[ 'submenu' ][ 'edit.php?post_type=elementor_library' ][16] ); + + unset( $GLOBALS[ 'submenu' ][ 'edit.php?post_type=elementor_library' ][15] ); + if ( isset( $GLOBALS[ 'submenu' ][ 'edit.php?post_type=elementor_library' ][15] ) ) { + $GLOBALS[ 'submenu' ][ 'edit.php?post_type=elementor_library' ][15] = null; + } + + } // end if + +} // end function + + +add_action( 'admin_menu', 'ddw_btc_add_submenu_elementor_template_categories', 900 ); +/** + * Since Elementor 2.4.0 we need to apply some tweaks: + * - Re-add Elementor Categories submenu + * - Re-add our taxonomy submenu + * + * @since 1.4.3 + * + * @see ddw_btc_remove_submenu_for_elementor() + * + * @uses ddw_btc_is_elementor_version() + * @uses add_submenu_page() + * @uses ddw_btc_string_add_new() + */ +function ddw_btc_add_submenu_elementor_template_categories() { + + /** Bail early if pre Elementor v2.4.0 */ + if ( ddw_btc_is_elementor_version( 'core', '2.4.0-beta1', '<=' ) ) { + return; + } + + $elementor_label = get_taxonomy_labels( get_taxonomy( 'elementor_library_category' ) ); + + add_submenu_page( + 'edit.php?post_type=elementor_library', + $elementor_label->name, + $elementor_label->name, + 'edit_posts', + 'edit-tags.php?taxonomy=elementor_library_category&post_type=elementor_library' + ); + + add_submenu_page( + 'edit.php?post_type=elementor_library', + ddw_btc_string_template( 'template' ), + ddw_btc_string_template( 'template' ), + 'edit_theme_options', + 'edit-tags.php?taxonomy=builder-template-category&post_type=elementor_library' + ); + +} // end function + + add_action( 'elementor/finder/categories/init', 'ddw_btc_elementor_finder_add_items' ); /** * Add "Builder Template Categories" category to the Elementor Finder @@ -55,3 +144,14 @@ function ddw_btc_elementor_finder_add_items( $categories_manager ) { $categories_manager->add_category( 'builder-template-categories', new DDW_BTC_Finder_Category() ); } // end function + + +/** + * Set flag for Popup type template for Elementor Pro v2.4.0+ which includes a + * Popup Builder by default. + * + * @since 1.4.3 + */ +if ( ddw_btc_is_elementor_pro_active() && ddw_btc_is_elementor_version( 'pro', '2.4.0-beta1', '>=' ) ) { + add_filter( 'btc/filter/is_type/popup', '__return_true' ); +} diff --git a/includes/integrations/integration-epic-news-elements.php b/includes/integrations/integration-epic-news-elements.php index c4a391c..94918af 100644 --- a/includes/integrations/integration-epic-news-elements.php +++ b/includes/integrations/integration-epic-news-elements.php @@ -16,9 +16,9 @@ /** * Register Epic News Elements plugin. * - * @since 1.4.0 + * @since 1.4.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_epic_news_elements( array $integrations ) { diff --git a/includes/integrations/integration-generatepress.php b/includes/integrations/integration-generatepress.php index 3a7c67e..761ea2e 100644 --- a/includes/integrations/integration-generatepress.php +++ b/includes/integrations/integration-generatepress.php @@ -16,9 +16,9 @@ /** * Register GeneratePress theme. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_generatepress( array $integrations ) { diff --git a/includes/integrations/integration-genesis-blox.php b/includes/integrations/integration-genesis-blox.php index cdb7519..b369c30 100644 --- a/includes/integrations/integration-genesis-blox.php +++ b/includes/integrations/integration-genesis-blox.php @@ -16,9 +16,9 @@ /** * Register Blox plugin (for Genesis). * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_blox( array $integrations ) { @@ -44,11 +44,11 @@ function ddw_btc_register_integration_blox( array $integrations ) { * * @since 1.0.0 * - * @see https://developer.wordpress.org/reference/functions/add_meta_box/ + * @see https://developer.wordpress.org/reference/functions/add_meta_box/ * - * @uses add_meta_box() - * @uses post_categories_meta_box() Original function from WP core, used as callback here. - * @uses ddw_btc_string_template() + * @uses add_meta_box() + * @uses post_categories_meta_box() Original function from WP core, used as callback here. + * @uses ddw_btc_string_template() */ function ddw_btc_add_categories_metabox_blox() { @@ -84,11 +84,11 @@ function ddw_btc_add_categories_metabox_blox() { * here as 'Blox' plugin already has customized columns - but luckily * provides its own filters :). * - * @since 1.4.0 + * @since 1.4.0 * - * @uses ddw_btc_string_template() + * @uses ddw_btc_string_template() * - * @param array $columns Array that holds all columns. + * @param array $columns Array that holds all columns. * @return array Modified array of columns. */ function ddw_btc_add_tax_column_blox( $columns ) { diff --git a/includes/integrations/integration-hf-elementor.php b/includes/integrations/integration-hf-elementor.php index f3adfb9..7701b23 100644 --- a/includes/integrations/integration-hf-elementor.php +++ b/includes/integrations/integration-hf-elementor.php @@ -16,9 +16,9 @@ /** * Register Header Footer for Elementor plugin. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_header_footer_elementor( array $integrations ) { diff --git a/includes/integrations/integration-jetengine.php b/includes/integrations/integration-jetengine.php index ab9ad8a..efbb431 100644 --- a/includes/integrations/integration-jetengine.php +++ b/includes/integrations/integration-jetengine.php @@ -16,9 +16,9 @@ /** * Register JetEngine plugin. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_jetengine( array $integrations ) { diff --git a/includes/integrations/integration-jetpopup.php b/includes/integrations/integration-jetpopup.php index a36abb3..100aac0 100644 --- a/includes/integrations/integration-jetpopup.php +++ b/includes/integrations/integration-jetpopup.php @@ -16,9 +16,9 @@ /** * Register JetPopup plugin. * - * @since 1.1.0 + * @since 1.1.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_jetpopup( array $integrations ) { diff --git a/includes/integrations/integration-jetsmartfilters.php b/includes/integrations/integration-jetsmartfilters.php index b429d9f..a264606 100644 --- a/includes/integrations/integration-jetsmartfilters.php +++ b/includes/integrations/integration-jetsmartfilters.php @@ -16,9 +16,9 @@ /** * Register JetSmartFilters plugin. * - * @since 1.3.0 + * @since 1.3.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_jetsmartfilters( array $integrations ) { diff --git a/includes/integrations/integration-jetthemecore.php b/includes/integrations/integration-jetthemecore.php index 88282e7..9cd0a7f 100644 --- a/includes/integrations/integration-jetthemecore.php +++ b/includes/integrations/integration-jetthemecore.php @@ -16,9 +16,9 @@ /** * Register JetThemeCore plugin. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_jetthemecore( array $integrations ) { diff --git a/includes/integrations/integration-jetwoobuilder.php b/includes/integrations/integration-jetwoobuilder.php index 6e0f75b..d5eab8a 100644 --- a/includes/integrations/integration-jetwoobuilder.php +++ b/includes/integrations/integration-jetwoobuilder.php @@ -16,9 +16,9 @@ /** * Register JetWooBuilder plugin. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_jetwoobuilder( array $integrations ) { diff --git a/includes/integrations/integration-kadence-woocommerce-elementor.php b/includes/integrations/integration-kadence-woocommerce-elementor.php index 9e5ae88..fa242d9 100644 --- a/includes/integrations/integration-kadence-woocommerce-elementor.php +++ b/includes/integrations/integration-kadence-woocommerce-elementor.php @@ -16,9 +16,9 @@ /** * Register Kadence WooCommerce Elementor plugin (free & Pro versions!). * - * @since 1.1.0 + * @since 1.1.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_kadence_woocommerce_elementor( array $integrations ) { diff --git a/includes/integrations/integration-lazy-blocks.php b/includes/integrations/integration-lazy-blocks.php index c42c13f..e2fecfe 100644 --- a/includes/integrations/integration-lazy-blocks.php +++ b/includes/integrations/integration-lazy-blocks.php @@ -16,9 +16,9 @@ /** * Register Lazy Blocks. * - * @since 1.2.0 + * @since 1.2.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_lazy_blocks( array $integrations ) { diff --git a/includes/integrations/integration-loomisoft-content-blocks.php b/includes/integrations/integration-loomisoft-content-blocks.php index eed0642..2555422 100644 --- a/includes/integrations/integration-loomisoft-content-blocks.php +++ b/includes/integrations/integration-loomisoft-content-blocks.php @@ -16,9 +16,9 @@ /** * Register Reusable Content & Text Blocks by Loomisoft. * - * @since 1.2.0 + * @since 1.2.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_loomisoft_content_blocks( array $integrations ) { @@ -50,11 +50,11 @@ function ddw_btc_register_integration_loomisoft_content_blocks( array $integrati * step as the automatic adding doesn't work for this (customized) post type * list table. * - * @since 1.4.0 + * @since 1.4.0 * - * @uses ddw_btc_string_template() + * @uses ddw_btc_string_template() * - * @param array $columns Array that holds all columns. + * @param array $columns Array that holds all columns. * @return array Modified array of columns. */ function ddw_btc_add_tax_column_loomisoft_content_blocks( $columns ) { diff --git a/includes/integrations/integration-master-popups.php b/includes/integrations/integration-master-popups.php index 75f6c4e..81e4d74 100644 --- a/includes/integrations/integration-master-popups.php +++ b/includes/integrations/integration-master-popups.php @@ -16,9 +16,9 @@ /** * Register Popup Maker plugin. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_master_popups( array $integrations ) { @@ -52,11 +52,11 @@ function ddw_btc_register_integration_master_popups( array $integrations ) { * * @since 1.4.0 * - * @see https://developer.wordpress.org/reference/functions/add_meta_box/ + * @see https://developer.wordpress.org/reference/functions/add_meta_box/ * - * @uses add_meta_box() - * @uses post_categories_meta_box() Original function from WP core, used as callback here. - * @uses ddw_btc_string_template() + * @uses add_meta_box() + * @uses post_categories_meta_box() Original function from WP core, used as callback here. + * @uses ddw_btc_string_template() */ function ddw_btc_add_categories_metabox_master_popups() { @@ -81,11 +81,11 @@ function ddw_btc_add_categories_metabox_master_popups() { * step as the automatic adding doesn't work for this (customized) post type * list table. * - * @since 1.4.0 + * @since 1.4.0 * - * @uses ddw_btc_string_template() + * @uses ddw_btc_string_template() * - * @param array $columns Array that holds all columns. + * @param array $columns Array that holds all columns. * @return array Modified array of columns. */ function ddw_btc_add_tax_column_master_popups( $columns ) { diff --git a/includes/integrations/integration-metabox-builder.php b/includes/integrations/integration-metabox-builder.php index 43715eb..57476a6 100644 --- a/includes/integrations/integration-metabox-builder.php +++ b/includes/integrations/integration-metabox-builder.php @@ -16,9 +16,9 @@ /** * Register Meta Box Builder plugin. * - * @since 1.3.0 + * @since 1.3.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_metabox_builder( array $integrations ) { diff --git a/includes/integrations/integration-metabox-posttypes.php b/includes/integrations/integration-metabox-posttypes.php index 38f895f..8761701 100644 --- a/includes/integrations/integration-metabox-posttypes.php +++ b/includes/integrations/integration-metabox-posttypes.php @@ -16,9 +16,9 @@ /** * Register Meta Box plugin - Add-Ons for Post Types and Taxonomies. * - * @since 1.1.0 + * @since 1.1.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_metabox_posttypes( array $integrations ) { diff --git a/includes/integrations/integration-oceanwp.php b/includes/integrations/integration-oceanwp.php index 25de66c..f12c667 100644 --- a/includes/integrations/integration-oceanwp.php +++ b/includes/integrations/integration-oceanwp.php @@ -16,9 +16,9 @@ /** * Register OceanWP theme. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_oceanwp( array $integrations ) { diff --git a/includes/integrations/integration-opal-widgets-elementor.php b/includes/integrations/integration-opal-widgets-elementor.php index ffdc6ac..696afa6 100644 --- a/includes/integrations/integration-opal-widgets-elementor.php +++ b/includes/integrations/integration-opal-widgets-elementor.php @@ -16,9 +16,9 @@ /** * Register Opal Widgets for Elementor plugin. * - * @since 1.3.0 + * @since 1.3.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_opal_widgets_elementor( array $integrations ) { diff --git a/includes/integrations/integration-oxygen-builder.php b/includes/integrations/integration-oxygen-builder.php index aa4b94b..7227afe 100644 --- a/includes/integrations/integration-oxygen-builder.php +++ b/includes/integrations/integration-oxygen-builder.php @@ -16,9 +16,9 @@ /** * Register Oxygen Builder (works with v1.x and v2.0+). * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_oxygen_builder( array $integrations ) { diff --git a/includes/integrations/integration-pods.php b/includes/integrations/integration-pods.php index 0ef84ba..0c4f94d 100644 --- a/includes/integrations/integration-pods.php +++ b/includes/integrations/integration-pods.php @@ -16,9 +16,9 @@ /** * Register Pods plugin. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_pods( array $integrations ) { diff --git a/includes/integrations/integration-popboxes.php b/includes/integrations/integration-popboxes.php index f56449a..35debe7 100644 --- a/includes/integrations/integration-popboxes.php +++ b/includes/integrations/integration-popboxes.php @@ -16,9 +16,9 @@ /** * Register PopBoxes for Elementor plugin. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_popboxes( array $integrations ) { diff --git a/includes/integrations/integration-popup-maker.php b/includes/integrations/integration-popup-maker.php index 3a86460..a6b32ac 100644 --- a/includes/integrations/integration-popup-maker.php +++ b/includes/integrations/integration-popup-maker.php @@ -16,9 +16,9 @@ /** * Register Popup Maker plugin. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_popup_maker( array $integrations ) { diff --git a/includes/integrations/integration-reusable-content-blocks.php b/includes/integrations/integration-reusable-content-blocks.php index ee6c903..630d867 100644 --- a/includes/integrations/integration-reusable-content-blocks.php +++ b/includes/integrations/integration-reusable-content-blocks.php @@ -16,9 +16,9 @@ /** * Register Reusable Content Blocks plugin. * - * @since 1.3.0 + * @since 1.3.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_reusable_content_blocks( array $integrations ) { diff --git a/includes/integrations/integration-simple-content-templates.php b/includes/integrations/integration-simple-content-templates.php index 1cffbab..5445db7 100644 --- a/includes/integrations/integration-simple-content-templates.php +++ b/includes/integrations/integration-simple-content-templates.php @@ -16,9 +16,9 @@ /** * Register Simple Content Templates. * - * @since 1.4.0 + * @since 1.4.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_simple_content_templates( array $integrations ) { diff --git a/includes/integrations/integration-smart-footer-system.php b/includes/integrations/integration-smart-footer-system.php index e1e388a..ddec383 100644 --- a/includes/integrations/integration-smart-footer-system.php +++ b/includes/integrations/integration-smart-footer-system.php @@ -16,9 +16,9 @@ /** * Register Smart Footer System. * - * @since 1.4.0 + * @since 1.4.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_smart_footer_system( array $integrations ) { diff --git a/includes/integrations/integration-sqh-placeholder-block.php b/includes/integrations/integration-sqh-placeholder-block.php index 8d9cc40..85ef41d 100644 --- a/includes/integrations/integration-sqh-placeholder-block.php +++ b/includes/integrations/integration-sqh-placeholder-block.php @@ -16,9 +16,9 @@ /** * Register "Square Happiness: Placeholder Block". * - * @since 1.2.0 + * @since 1.2.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_sqh_placeholder_block( array $integrations ) { diff --git a/includes/integrations/integration-stylepress-elementor.php b/includes/integrations/integration-stylepress-elementor.php index f3a7945..d5f3040 100644 --- a/includes/integrations/integration-stylepress-elementor.php +++ b/includes/integrations/integration-stylepress-elementor.php @@ -16,9 +16,9 @@ /** * Register StylePress for Elementor plugin. * - * @since 1.2.0 + * @since 1.2.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_stylepress_elementor( array $integrations ) { @@ -43,7 +43,7 @@ function ddw_btc_register_integration_stylepress_elementor( array $integrations * * @since 1.2.0 * - * @uses add_submenu_page() + * @uses add_submenu_page() */ function ddw_btc_add_submenu_stylepress_elementor_style_cpt() { diff --git a/includes/integrations/integration-templementor.php b/includes/integrations/integration-templementor.php index 6e8b2f3..3117ae8 100644 --- a/includes/integrations/integration-templementor.php +++ b/includes/integrations/integration-templementor.php @@ -16,9 +16,9 @@ /** * Register Templementor plugin. * - * @since 1.1.0 + * @since 1.1.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_templementor( array $integrations ) { diff --git a/includes/integrations/integration-text-blocks.php b/includes/integrations/integration-text-blocks.php index 13f2fe0..550aeb2 100644 --- a/includes/integrations/integration-text-blocks.php +++ b/includes/integrations/integration-text-blocks.php @@ -16,9 +16,9 @@ /** * Register Content Blocks (Custom Post Widget). * - * @since 1.2.0 + * @since 1.2.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_text_blocks( array $integrations ) { @@ -50,11 +50,11 @@ function ddw_btc_register_integration_text_blocks( array $integrations ) { * step as the automatic adding doesn't work for this (customized) post type * list table. * - * @since 1.4.0 + * @since 1.4.0 * - * @uses ddw_btc_string_template() + * @uses ddw_btc_string_template() * - * @param array $columns Array that holds all columns. + * @param array $columns Array that holds all columns. * @return array Modified array of columns. */ function ddw_btc_add_tax_column_text_blocks( $columns ) { diff --git a/includes/integrations/integration-themify-builder.php b/includes/integrations/integration-themify-builder.php index 8f7abf8..5591321 100644 --- a/includes/integrations/integration-themify-builder.php +++ b/includes/integrations/integration-themify-builder.php @@ -16,9 +16,9 @@ /** * Register Themify Builder Page Builder. * - * @since 1.1.0 + * @since 1.1.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_themify_builder( array $integrations ) { @@ -52,7 +52,7 @@ function ddw_btc_register_integration_themify_builder( array $integrations ) { * * @since 1.1.0 * - * @uses remove_submenu_page() + * @uses remove_submenu_page() */ function ddw_btc_remove_submenu_for_themify_layout_parts() { diff --git a/includes/integrations/integration-themify-popup.php b/includes/integrations/integration-themify-popup.php index b8b8122..4c601f5 100644 --- a/includes/integrations/integration-themify-popup.php +++ b/includes/integrations/integration-themify-popup.php @@ -16,9 +16,9 @@ /** * Register Themify Popup plugin. * - * @since 1.1.0 + * @since 1.1.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_themify_popup( array $integrations ) { diff --git a/includes/integrations/integration-thrive-lightboxes.php b/includes/integrations/integration-thrive-lightboxes.php index 2c91ae3..889a8e8 100644 --- a/includes/integrations/integration-thrive-lightboxes.php +++ b/includes/integrations/integration-thrive-lightboxes.php @@ -16,9 +16,9 @@ /** * Register Thrive Lightboxes plugin. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_thrive_lightboxes( array $integrations ) { diff --git a/includes/integrations/integration-visual-composer.php b/includes/integrations/integration-visual-composer.php index 0197cff..237a939 100644 --- a/includes/integrations/integration-visual-composer.php +++ b/includes/integrations/integration-visual-composer.php @@ -19,9 +19,9 @@ * Also, optionally register "Global Templates" module, a official premium * Add-On from the VC Hub. * - * @since 1.4.0 + * @since 1.4.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_visual_composer( array $integrations ) { @@ -79,7 +79,7 @@ function ddw_btc_register_integration_visual_composer( array $integrations ) { * * @since 1.4.0 * - * @uses remove_submenu_page() + * @uses remove_submenu_page() */ function ddw_btc_remove_submenu_for_visual_composer_post_types() { diff --git a/includes/integrations/integration-widget-content-blocks.php b/includes/integrations/integration-widget-content-blocks.php index d09ede4..720599e 100644 --- a/includes/integrations/integration-widget-content-blocks.php +++ b/includes/integrations/integration-widget-content-blocks.php @@ -16,9 +16,9 @@ /** * Register Widget Content Blocks. * - * @since 1.2.0 + * @since 1.2.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_widget_content_blocks( array $integrations ) { diff --git a/includes/integrations/integration-wpbakery.php b/includes/integrations/integration-wpbakery.php index 7559f2e..d318ecb 100644 --- a/includes/integrations/integration-wpbakery.php +++ b/includes/integrations/integration-wpbakery.php @@ -19,10 +19,10 @@ * Also, optionally register "Templatera" plugin, a premium Add-On for * 'WPBakery Page Builder'. * - * @since 1.0.0 - * @since 1.1.0 Partly refactoring. + * @since 1.0.0 + * @since 1.1.0 Partly refactoring. * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_wpbakery_page_builder( array $integrations ) { @@ -62,7 +62,7 @@ function ddw_btc_register_integration_wpbakery_page_builder( array $integrations * * @since 1.1.0 * - * @uses remove_submenu_page() + * @uses remove_submenu_page() */ function ddw_btc_remove_submenu_for_wpbakery_post_types() { diff --git a/includes/integrations/integration-wpshowposts.php b/includes/integrations/integration-wpshowposts.php index 7008c3f..a40854e 100644 --- a/includes/integrations/integration-wpshowposts.php +++ b/includes/integrations/integration-wpshowposts.php @@ -16,9 +16,9 @@ /** * Register WP Show Posts plugin. * - * @since 1.0.0 + * @since 1.0.0 * - * @param array $integrations Holds array of all registered integrations. + * @param array $integrations Holds array of all registered integrations. * @return array Tweaked array of registered integrations. */ function ddw_btc_register_integration_wpshowposts( array $integrations ) { @@ -54,10 +54,10 @@ function ddw_btc_register_integration_wpshowposts( array $integrations ) { * * @since 1.0.0 * - * @see https://developer.wordpress.org/reference/functions/add_meta_box/ + * @see https://developer.wordpress.org/reference/functions/add_meta_box/ * - * @uses add_meta_box() - * @uses post_categories_meta_box() Original function from WP core, used as callback here. + * @uses add_meta_box() + * @uses post_categories_meta_box() Original function from WP core, used as callback here. */ function ddw_btc_add_categories_metabox_wpshowposts() { diff --git a/includes/load-integrations.php b/includes/load-integrations.php index e772442..4f2cb9e 100644 --- a/includes/load-integrations.php +++ b/includes/load-integrations.php @@ -509,8 +509,10 @@ /** * Plugin: Gutenberg / WP Core 5.0+ * @since 1.2.0 + * @since 1.4.0 Additional checks if Gutenberg disabled. + * @since 1.4.3 Additional checks if Block Editor is wanted or not. */ -if ( ddw_btc_is_block_editor_active() ) { +if ( ddw_btc_is_block_editor_active() && ddw_btc_is_block_editor_wanted() ) { require_once( BTC_PLUGIN_DIR . 'includes/integrations/integration-block-editor.php' ); } diff --git a/includes/register-taxonomy.php b/includes/register-taxonomy.php index be287ad..4440c43 100644 --- a/includes/register-taxonomy.php +++ b/includes/register-taxonomy.php @@ -21,10 +21,10 @@ * @since 1.3.0 Added logic for optionally adding post types at registering, * for special Block Editor support. * - * @see ddw_btc_string_default_content_type() + * @see ddw_btc_string_default_content_type() * - * @uses ddw_btc_get_post_types_for_block_editor() - * @uses register_taxonomy() + * @uses ddw_btc_get_post_types_for_block_editor() + * @uses register_taxonomy() */ function ddw_btc_register_templates_taxonomy() { @@ -154,9 +154,9 @@ function ddw_btc_register_templates_taxonomy() { * for our template content types, that the WordPress core-added submenus * don't add. * - * @since 1.3.0 + * @since 1.3.0 * - * @uses ddw_btc_get_post_types_for_block_editor() + * @uses ddw_btc_get_post_types_for_block_editor() * * @global array $GLOBALS[ 'submenu' ] */ @@ -179,57 +179,60 @@ function ddw_btc_inbetween_remove_submenu_for_block_editor_types() { } // end function -//add_action( 'init', 'ddw_btc_add_predefined_terms', 25 ); /** - * Add predefined taxonomy terms for our taxonomy. - * Terms: General, Frontpage, Pages, Landing Pages, Sections, Hooks, Testing + * Setup predefined taxonomy terms for our taxonomy. + * Default terms: General, Frontpage, Pages, Landing Pages, Sections, Hooks + * and Testing. Plus, more terms depending on various conditions and contexts. * * @since 1.0.0 * @since 1.1.0 Added optional terms for products, as well as popups. * @since 1.2.0 Added optional terms for blocks, fields, boxes, bars and hooks. + * @since 1.4.3 Added optional terms for flows and snippets; moved declaration + * into own function for reusability. + * + * @uses ddw_btc_is_woocommerce_active() + * @uses ddw_btc_is_elementor_pro_active() + * @uses ddw_btc_is_elementor_version() + * @uses ddw_btc_is_block_editor_active() * - * @uses ddw_btc_is_block_editor_active() - * @uses wp_insert_term() + * @return array Filterable array of predefined terms, plus arguments. */ -function ddw_btc_add_predefined_terms() { - - /** Set taxonomy */ - $taxonomy = 'builder-template-category'; +function ddw_btc_get_predefined_terms() { /** Set predefined terms, filterable */ $terms = array( - '0' => array( + 'terms_general' => array( 'name' => esc_attr_x( 'General', 'Taxonomy term title', 'builder-template-categories' ), 'slug' => sanitize_key( _x( 'general', 'Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!', 'builder-template-categories' ) ), 'description' => _x( 'General templates', 'Taxonomy term description', 'builder-template-categories' ), ), - '1' => array( + 'terms_frontpage' => array( 'name' => esc_attr_x( 'Frontpage', 'Taxonomy term title', 'builder-template-categories' ), 'slug' => sanitize_key( _x( 'frontpage', 'Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!', 'builder-template-categories' ) ), 'description' => _x( 'Templates for the Frontpage/ Homepage', 'Taxonomy term description', 'builder-template-categories' ), ), - '2' => array( + 'terms_pages' => array( 'name' => esc_attr_x( 'Pages', 'Taxonomy term title', 'builder-template-categories' ), 'slug' => sanitize_key( _x( 'pages', 'Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!', 'builder-template-categories' ) ), 'description' => _x( 'Templates for Pages', 'Taxonomy term description', 'builder-template-categories' ), ), - '3' => array( + 'terms_landing_pages' => array( 'name' => esc_attr_x( 'Landing Pages', 'Taxonomy term title', 'builder-template-categories' ), 'slug' => sanitize_key( _x( 'landing-pages', 'Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!', 'builder-template-categories' ) ), 'description' => _x( 'Templates for Landing Pages', 'Taxonomy term description', 'builder-template-categories' ), ), - '4' => array( + 'terms_sections' => array( 'name' => esc_attr_x( 'Sections', 'Taxonomy term title', 'builder-template-categories' ), 'slug' => sanitize_key( _x( 'sections', 'Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!', 'builder-template-categories' ) ), 'description' => _x( 'Templates for Sections/ Content Blocks', 'Taxonomy term description', 'builder-template-categories' ), ), - '5' => array( + 'terms_hooks' => array( 'name' => esc_attr_x( 'Hooks', 'Taxonomy term title', 'builder-template-categories' ), 'slug' => sanitize_key( _x( 'hooks', 'Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!', 'builder-template-categories' ) ), 'description' => _x( 'Templates for Action Hooks', 'Taxonomy term description', 'builder-template-categories' ), ), - '6' => array( + 'terms_testing' => array( 'name' => esc_attr_x( 'Testing', 'Taxonomy term title', 'builder-template-categories' ), 'slug' => sanitize_key( _x( 'testing', 'Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!', 'builder-template-categories' ) ), 'description' => _x( 'Templates just for testing purposes', 'Taxonomy term description', 'builder-template-categories' ), @@ -238,7 +241,7 @@ function ddw_btc_add_predefined_terms() { ); // end array /** Optional: WooCommerce product type templates */ - if ( class_exists( 'WooCommerce' ) && has_filter( 'btc/filter/is_type/woo' ) ) { + if ( ddw_btc_is_woocommerce_active() && has_filter( 'btc/filter/is_type/woo' ) ) { $terms[ 'terms_woo' ] = array( 'name' => esc_attr_x( 'Products', 'Taxonomy term title', 'builder-template-categories' ), @@ -249,7 +252,9 @@ function ddw_btc_add_predefined_terms() { } // end if /** Optional: Popup type templates */ - if ( has_filter( 'btc/filter/is_type/popup' ) ) { + if ( has_filter( 'btc/filter/is_type/popup' ) + || ( ddw_btc_is_elementor_pro_active() && ddw_btc_is_elementor_version( 'pro', '2.4.0-beta1', '>=' ) ) + ) { $terms[ 'terms_popup' ] = array( 'name' => esc_attr_x( 'Popups', 'Taxonomy term title', 'builder-template-categories' ), @@ -303,30 +308,84 @@ function ddw_btc_add_predefined_terms() { } // end if - /** Make terms array filterable */ - $terms = apply_filters( + /** Optional: Flow type templates */ + if ( has_filter( 'btc/filter/is_type/flow' ) ) { + + $terms[ 'terms_flow' ] = array( + 'name' => esc_attr_x( 'Flows', 'Taxonomy term title', 'builder-template-categories' ), + 'slug' => sanitize_key( _x( 'flows', 'Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!', 'builder-template-categories' ) ), + 'description' => _x( 'Templates for Flows', 'Taxonomy term description', 'builder-template-categories' ), + ); + + } // end if + + /** Optional: Snippet type content */ + if ( has_filter( 'btc/filter/is_type/snippet' ) ) { + + $terms[ 'terms_snippet' ] = array( + 'name' => esc_attr_x( 'Snippets', 'Taxonomy term title', 'builder-template-categories' ), + 'slug' => sanitize_key( _x( 'snippets', 'Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!', 'builder-template-categories' ) ), + 'description' => _x( 'Templates for Snippets', 'Taxonomy term description', 'builder-template-categories' ), + ); + + } // end if + + /** Return the terms array, filterable */ + return apply_filters( 'btc/filter/taxonomy/predefined_terms', $terms ); +} // end function + + +//add_action( 'init', 'ddw_btc_add_predefined_terms', 25 ); +/** + * Add predefined taxonomy terms for our taxonomy. + * See ddw_btc_get_predefined_terms() for the (filterable) terms setup. + * + * @since 1.0.0 + * @since 1.1.0 Added optional terms for products, as well as popups. + * @since 1.2.0 Added optional terms for blocks, fields, boxes, bars and hooks. + * @since 1.4.3 Added optional terms for flows and snippets. + * + * @see ddw_btc_get_predefined_terms() + * + * @uses ddw_btc_get_predefined_terms() To get all our predefined terms. + * @uses wp_insert_term() To actually insert the terms if they not yet exist. + * + * @param string $taxonomy Registered ID of a given taxonomy. + * @return void + */ +function ddw_btc_add_predefined_terms( $taxonomy = '' ) { + + /** Set taxonomy */ + $taxonomy = sanitize_key( $taxonomy ); //'builder-template-category'; + + $terms = ddw_btc_get_predefined_terms(); + /** Insert all predefined terms */ - foreach ( $terms as $term_key => $term ) { + if ( ! is_null( $terms ) ) { - if ( ! term_exists( $term[ 'slug' ], 'builder-template-category' ) ) { + foreach ( $terms as $term_key => $term ) { - wp_insert_term( - $term[ 'name' ], - $taxonomy, - array( - 'description' => $term[ 'description' ], - 'slug' => $term[ 'slug' ], - ) - ); + if ( ! term_exists( $term[ 'slug' ], $taxonomy ) ) { - unset( $term ); + wp_insert_term( + $term[ 'name' ], + $taxonomy, + array( + 'description' => $term[ 'description' ], + 'slug' => $term[ 'slug' ], + ) + ); - } // end if + unset( $term ); - } // end foreach + } // end if + + } // end foreach + + } // end if } // end function diff --git a/includes/run-integrations.php b/includes/run-integrations.php index 8e64179..ea30838 100644 --- a/includes/run-integrations.php +++ b/includes/run-integrations.php @@ -23,7 +23,7 @@ * * @since 1.0.0 * - * @uses ddw_btc_get_integrations() + * @uses ddw_btc_get_integrations() */ function ddw_btc_integrations_add_taxonomy() { @@ -46,10 +46,10 @@ function ddw_btc_integrations_add_taxonomy() { * @since 1.0.0 * @since 1.1.0 Add firing filter to change bulk actions label. * - * @uses ddw_btc_get_integrations() - * @uses ddw_btc_taxonomy_admin_url() - * @uses ddw_btc_string_template() - * @uses ddw_btc_capability_submenu() + * @uses ddw_btc_get_integrations() + * @uses ddw_btc_taxonomy_admin_url() + * @uses ddw_btc_string_template() + * @uses ddw_btc_capability_submenu() */ function ddw_btc_integrations_add_admin_submenus() { @@ -75,7 +75,7 @@ function ddw_btc_integrations_add_admin_submenus() { * Add this point in the iteration fire another filter to tweak a bulk * edit title label * @since 1.1.0 - * @see ddw_btc_bulk_actions_edit_title() + * @see ddw_btc_bulk_actions_edit_title() */ add_filter( 'bulk_actions-edit-' . $integration[ 'post_type' ], 'ddw_btc_bulk_actions_edit_title' ); @@ -88,9 +88,9 @@ function ddw_btc_integrations_add_admin_submenus() { * Tweak title for the "Edit" bulk action for all post types of current active * integrations. * - * @since 1.1.0 + * @since 1.1.0 * - * @param $actions Holds all current bulk actions for a post type. + * @param $actions Holds all current bulk actions for a post type. * @return array Tweaked array of all bulk actions for a post type. */ function ddw_btc_bulk_actions_edit_title( $actions ) { @@ -113,15 +113,15 @@ function ddw_btc_bulk_actions_edit_title( $actions ) { * * The below code was used from/ inspired by: * @author Mike Hemberger - * @link http://thestizmedia.com/custom-post-type-filter-admin-custom-taxonomy/ + * @link http://thestizmedia.com/custom-post-type-filter-admin-custom-taxonomy/ * - * @since 1.0.0 - * @since 1.1.0 Changed taxonomy label to our own logic via - * ddw_btc_string_template(). + * @since 1.0.0 + * @since 1.1.0 Changed taxonomy label to our own logic via + * ddw_btc_string_template(). * - * @uses ddw_btc_get_integrations() - * @uses ddw_btc_string_template() - * @uses wp_dropdown_categories() + * @uses ddw_btc_get_integrations() + * @uses ddw_btc_string_template() + * @uses wp_dropdown_categories() * * @global $GLOBALS[ 'pagenow' ] */ @@ -166,17 +166,17 @@ function ddw_btc_filter_post_type_by_taxonomy() { add_filter( 'parse_query', 'ddw_btc_convert_id_to_term_in_query', 10, 3 ); /** * Execute the taxonomy filter within the post type overview table. - * This will only be added for supported integrations and their post types. + * This will only be added for supported integrations and their post types. * * The below code was used from/ inspired by: * @author Mike Hemberger - * @link http://thestizmedia.com/custom-post-type-filter-admin-custom-taxonomy/ + * @link http://thestizmedia.com/custom-post-type-filter-admin-custom-taxonomy/ * - * @since 1.0.0 + * @since 1.0.0 * - * @see ddw_btc_filter_post_type_by_taxonomy() + * @see ddw_btc_filter_post_type_by_taxonomy() * - * @uses ddw_btc_get_integrations() + * @uses ddw_btc_get_integrations() * * @global object $GLOBALS[ 'pagenow' ] */ @@ -216,15 +216,16 @@ function ddw_btc_convert_id_to_term_in_query( $query ) { * Note: Fires intentionally on the "global" filter 'manage_posts_columns' to * catch all integration post types. * - * @since 1.1.0 - * @since 1.2.0 Added checks for "Field", "Box", "Bar" and "Hook" content types. - * @since 1.3.0 Added checks for "Filter" content type. - * @since 1.4.1 Added checks for "Section" content type. + * @since 1.1.0 + * @since 1.2.0 Added checks for "Field", "Box", "Bar" and "Hook" content types. + * @since 1.3.0 Added checks for "Filter" content type. + * @since 1.4.1 Added checks for "Section" content type. + * @since 1.4.3 Added checks for "Flow" and "Section" content types. * - * @uses ddw_btc_get_integration_post_types() - * @uses ddw_btc_string_template() + * @uses ddw_btc_get_integration_post_types() + * @uses ddw_btc_string_template() * - * @param array $columns Array which holds all Post Types list table columns labels. + * @param array $columns Array which holds all Post Types list table columns labels. * @return array Tweaked $columns array. */ function ddw_btc_tweak_taxonomy_column_title( $columns ) { @@ -295,6 +296,14 @@ function ddw_btc_tweak_taxonomy_column_title( $columns ) { $columns[ 'taxonomy-builder-template-category' ] = ddw_btc_string_template( 'section' ); } + if ( in_array( $current_screen->post_type, $post_types[ 'flows' ] ) ) { + $columns[ 'taxonomy-builder-template-category' ] = ddw_btc_string_template( 'flow' ); + } + + if ( in_array( $current_screen->post_type, $post_types[ 'snippets' ] ) ) { + $columns[ 'taxonomy-builder-template-category' ] = ddw_btc_string_template( 'snippet' ); + } + /** Return array of column label strings */ return $columns; @@ -308,13 +317,14 @@ function ddw_btc_tweak_taxonomy_column_title( $columns ) { * Example: "Popup" integrations then switch to "Popup Categories" strings * (instead of "Template Categories"). * - * @since 1.1.0 - * @since 1.2.0 Added checks for "Field", "Box", "Bar" and "Hook" content types. - * @since 1.3.0 Added checks for "Filter" content type. - * @since 1.4.1 Added checks for "Section" content type. + * @since 1.1.0 + * @since 1.2.0 Added checks for "Field", "Box", "Bar" and "Hook" content types. + * @since 1.3.0 Added checks for "Filter" content type. + * @since 1.4.1 Added checks for "Section" content type. + * @since 1.4.3 Added checks for "Flow" and "Section" content types. * - * @uses ddw_btc_get_integration_post_types() - * @uses ddw_btc_string_content_type() + * @uses ddw_btc_get_integration_post_types() + * @uses ddw_btc_string_content_type() * * @return string Taxonomy label string based on content type of the integration * (post type). @@ -389,6 +399,14 @@ function ddw_btc_tweak_taxonomy_labels() { return ddw_btc_string_content_type( 'section' ); } + if ( in_array( ddw_btc_admin_get_current_post_type(), $post_types[ 'flows' ] ) ) { + return ddw_btc_string_content_type( 'flow' ); + } + + if ( in_array( ddw_btc_admin_get_current_post_type(), $post_types[ 'snippets' ] ) ) { + return ddw_btc_string_content_type( 'snippet' ); + } + /** If no match, return the default string ("Template") */ return ddw_btc_string_content_type( 'btcdefault' ); @@ -405,12 +423,12 @@ function ddw_btc_tweak_taxonomy_labels() { * the integration level, though, as this is dependent on the template content * type. * - * @since 1.4.0 + * @since 1.4.0 * - * @see ddw_btc_prepare_tax_column_add() in functions-global.php + * @see ddw_btc_prepare_tax_column_add() in functions-global.php * - * @param string $column_name - * @param int $post_id ID of the current post in the table. + * @param string $column_name + * @param int $post_id ID of the current post in the table. * @return null */ function ddw_btc_maybe_add_tax_column_data_cpt( $column_name, $post_id ) { @@ -450,14 +468,14 @@ function ddw_btc_maybe_add_tax_column_data_cpt( $column_name, $post_id ) { * creates the wanted behavior for a lot of integrations where it is not * happening by default. * - * @since 1.4.0 + * @since 1.4.0 * - * @uses ddw_btc_get_integrations() - * @uses get_current_screen() + * @uses ddw_btc_get_integrations() + * @uses get_current_screen() * * @global string $GLOBALS[ 'submenu_file' ] * - * @param string $parent_file The filename of the parent menu. + * @param string $parent_file The filename of the parent menu. * @return string $parent_file The tweaked filename of the parent menu. */ function ddw_btc_parent_submenu_tweaks( $parent_file ) { diff --git a/includes/string-switcher.php b/includes/string-switcher.php index 2c7fe3c..df53909 100644 --- a/includes/string-switcher.php +++ b/includes/string-switcher.php @@ -16,9 +16,9 @@ * String for the default content type, filterable. * Default: "Template" * - * @since 1.1.0 + * @since 1.1.0 * - * @see ddw_btc_register_templates_taxonomy() + * @see ddw_btc_register_templates_taxonomy() * * @return string Filtered string output "Template". */ @@ -39,12 +39,13 @@ function ddw_btc_string_default_content_type() { * Note: This function is especially needed for our * 'btc/filter/string/default_content_type' filter. * - * @since 1.1.0 - * @since 1.2.0 Added "Field", "Box", "Bar" and "Hook" content types. - * @since 1.3.0 Added "Filter" content type. - * @since 1.4.1 Added "Section" content type. + * @since 1.1.0 + * @since 1.2.0 Added "Field", "Box", "Bar" and "Hook" content types. + * @since 1.3.0 Added "Filter" content type. + * @since 1.4.1 Added "Section" content type. + * @since 1.4.3 Added "Flow" and "Section" content types. * - * @param string $content_type Type of content string stands for. + * @param string $content_type Type of content string stands for. * @return string String output based on content type. */ function ddw_btc_string_content_type( $content_type ) { @@ -108,6 +109,14 @@ function ddw_btc_string_content_type( $content_type ) { $string = esc_attr__( 'Sections', 'builder-template-categories' ); break; + case 'flow': + $string = esc_attr__( 'Flows', 'builder-template-categories' ); + break; + + case 'snippet': + $string = esc_attr__( 'Snippets', 'builder-template-categories' ); + break; + default: $string = esc_attr__( 'Template', 'builder-template-categories' ); @@ -122,7 +131,7 @@ function ddw_btc_string_content_type( $content_type ) { /** * Build string "Categories". * - * @since 1.0.0 + * @since 1.0.0 * * @return string Filtered string output "Categories". */ @@ -141,15 +150,16 @@ function ddw_btc_string_categories() { /** * Build string "{Template String Type} Categories". * - * @since 1.0.0 - * @since 1.1.0 Added "Post Type" content type. - * @since 1.2.0 Added "Field", "Box", "Bar" and "Hook" content types. - * @since 1.3.0 Added "Filter" content type. - * @since 1.4.1 Added "Section" content type. + * @since 1.0.0 + * @since 1.1.0 Added "Post Type" content type. + * @since 1.2.0 Added "Field", "Box", "Bar" and "Hook" content types. + * @since 1.3.0 Added "Filter" content type. + * @since 1.4.1 Added "Section" content type. + * @since 1.4.3 Added "Flow" and "Section" content types. * - * @uses ddw_btc_string_categories() + * @uses ddw_btc_string_categories() * - * @param string $string_type Type of the template string. + * @param string $string_type Type of the template string. * @return string Full, filterable, string output "{Template String Type} Categories". */ function ddw_btc_string_template( $string_type ) { @@ -285,6 +295,22 @@ function ddw_btc_string_template( $string_type ) { ); break; + case 'flow': + $string = sprintf( + /* translators: %s - label "Categories" (for example: Flow Categories) */ + esc_attr__( 'Flow %s', 'builder-template-categories' ), + ddw_btc_string_categories() + ); + break; + + case 'snippet': + $string = sprintf( + /* translators: %s - label "Categories" (for example: Snippet Categories) */ + esc_attr__( 'Snippet %s', 'builder-template-categories' ), + ddw_btc_string_categories() + ); + break; + default: $string = sprintf( /* translators: %s - label "Categories" (for example: Template Categories) */ @@ -308,7 +334,7 @@ function ddw_btc_string_template( $string_type ) { * Build string " (for WooCommerce)". * Note: Space before the brackets is intended :). * - * @since 1.0.0 + * @since 1.0.0 * * @return string Filtered string output " (for WooCommerce)". */ @@ -331,7 +357,7 @@ function ddw_btc_string_for_woocommerce() { * Build string " (for Post Types, Taxonomies, Fields)". * Note: Space before the brackets is intended :). * - * @since 1.0.0 + * @since 1.0.0 * * @return string Filtered string output " (for Post Types, Taxonomies, Fields)". */ @@ -353,7 +379,7 @@ function ddw_btc_string_for_cpt_fields() { /** * Build string "Add New". * - * @since 1.3.0 + * @since 1.3.0 * * @return string Translateable string "Add New". */ diff --git a/languages/builder-template-categories-de_DE.mo b/languages/builder-template-categories-de_DE.mo index e55e646..23ec18c 100644 Binary files a/languages/builder-template-categories-de_DE.mo and b/languages/builder-template-categories-de_DE.mo differ diff --git a/languages/builder-template-categories-de_DE.po b/languages/builder-template-categories-de_DE.po index 7a8769a..fcd9c1a 100644 --- a/languages/builder-template-categories-de_DE.po +++ b/languages/builder-template-categories-de_DE.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Builder Template Categories\n" -"POT-Creation-Date: 2018-12-13 19:50+0100\n" -"PO-Revision-Date: 2018-12-13 19:50+0100\n" +"POT-Creation-Date: 2019-01-21 20:26+0100\n" +"PO-Revision-Date: 2019-01-21 20:27+0100\n" "Last-Translator: David Decker DECKERWEB.de -- https://deckerweb.de/\n" "Language-Team: David Decker DECKERWEB.de -- https://deckerweb.de/\n" "Language: de_DE\n" @@ -23,9 +23,9 @@ msgstr "" #. translators: Title attribute for Builder Template Categories taxonomy link #. Plugin Name of the plugin/theme -#: includes/admin/admin-extras.php:35 includes/admin/admin-extras.php:134 -#: includes/admin/admin-help.php:202 includes/admin/admin-help.php:332 -#: includes/admin/admin-help.php:337 +#: includes/admin/admin-extras.php:35 includes/admin/admin-extras.php:146 +#: includes/admin/admin-help.php:231 includes/admin/admin-help.php:305 +#: includes/admin/admin-help.php:310 msgid "Builder Template Categories" msgstr "Builder Template-Kategorien" @@ -64,22 +64,33 @@ msgctxt "Plugins page listing" msgid "Donate" msgstr "Spenden" -#. translators: 1 - Builder Template Categories / 2 - Link to plugin review -#: includes/admin/admin-extras.php:133 +#. translators: Plugins page listing +#: includes/admin/admin-extras.php:104 +msgctxt "Plugins page listing" +msgid "Join our Newsletter" +msgstr "Newsletter jetzt!" + +#. translators: %s - 5 stars icons +#: includes/admin/admin-extras.php:139 +#, php-format +msgid "%s rating" +msgstr "%s Bewertung" + +#. translators: 1 - Plugin name "Builder Template Categories" / 2 - label "5 star rating" +#: includes/admin/admin-extras.php:145 #, php-format msgid "" -"Enjoyed %1$s? Please leave us a %2$s rating. We really appreciate your " -"support!" +"Enjoyed %1$s? Please leave us a %2$s. We really appreciate your support!" msgstr "" -"Gefällt dir %1$s? Dann gib uns bitte eine %2$s Bewertung. Wir schätzen deine " +"Gefällt dir %1$s? Dann gib uns bitte eine %2$s. Wir schätzen deine " "Unterstützung!" -#: includes/admin/admin-extras.php:355 +#: includes/admin/admin-extras.php:367 msgctxt "Plugin installer: Tab name in installer toolbar" msgid "Newest" msgstr "Neueste" -#: includes/admin/admin-extras.php:361 +#: includes/admin/admin-extras.php:373 msgctxt "Plugin card: plugin version" msgid "Version:" msgstr "Version:" @@ -94,19 +105,19 @@ msgstr "" "Dashboard und können zum Organisieren der Template-Bibliotheken verwendet " "werden - für die folgenden Plugins und/ oder Themes" -#: includes/admin/admin-help.php:298 +#: includes/admin/admin-help.php:271 msgid "Content Type" msgstr "Inhaltstyp" -#: includes/admin/admin-help.php:300 includes/string-switcher.php:84 +#: includes/admin/admin-help.php:273 includes/string-switcher.php:85 msgid "Post Type" msgstr "Beitragstyp" -#: includes/admin/admin-help.php:332 +#: includes/admin/admin-help.php:305 msgid "Plugin" msgstr "Plugin" -#: includes/admin/admin-help.php:336 +#: includes/admin/admin-help.php:309 #, php-format msgid "" "Currently active integrations where the %s taxonomy is applied to better " @@ -116,16 +127,16 @@ msgstr "" "lassen sich Templates für verschiedene Inhaltstypen intern besser " "organisieren" -#: includes/admin/admin-help.php:346 +#: includes/admin/admin-help.php:319 msgid "Video Overview: Bulk Add Template Categories" msgstr "Video-Übersicht: Mehrfachaktionen für Template-Kategorien" -#: includes/admin/admin-help.php:347 +#: includes/admin/admin-help.php:320 msgid "video overview" msgstr "Video-Übersicht" #. translators: 1 - string "Bulk Actions" / 2 - Label "Edit, add Category etc." / 3 - video link markup with title "video overview" -#: includes/admin/admin-help.php:352 +#: includes/admin/admin-help.php:325 #, php-format msgid "" "You can bulk add template categories to more than one template at once in " @@ -136,15 +147,15 @@ msgstr "" "geschieht in der Beitragstyp-Übersichtstabelle, im Drop-Down-Menü %1$s. Die " "Aktion ist betitelt mit %2$s. Schau dir eine kurze %3$s dieser Funktion an." -#: includes/admin/admin-help.php:353 +#: includes/admin/admin-help.php:326 msgid "Bulk Actions" msgstr "Mehrfachaktionen" -#: includes/admin/admin-help.php:354 +#: includes/admin/admin-help.php:327 msgid "Edit, add Category etc." msgstr "Bearbeiten, Kategorie(n) hinzufügen, etc." -#: includes/admin/admin-help.php:361 +#: includes/admin/admin-help.php:334 msgid "" "The template categories are global and are applied automatically to all " "current active integrations." @@ -152,7 +163,7 @@ msgstr "" "Die Template-Kategorien sind global und werden automatisch allen derzeit " "aktiven Integrationen zugewiesen." -#: includes/admin/admin-help.php:362 +#: includes/admin/admin-help.php:335 msgid "" "The category description can be used for internal notices for your team " "members for example." @@ -160,52 +171,57 @@ msgstr "" "Die Kategoriebeschreibung kann zum Beispiel auch für interne Notizen für " "deine Team-Mitglieder verwendet werden." -#: includes/admin/admin-help.php:366 +#: includes/admin/admin-help.php:339 msgid "Important plugin links:" msgstr "Wichtige Plugin-Links:" -#: includes/admin/admin-help.php:368 +#: includes/admin/admin-help.php:341 msgid "Plugin website" msgstr "Plugin-Webseite" -#: includes/admin/admin-help.php:370 +#: includes/admin/admin-help.php:343 msgctxt "Help tab info" msgid "FAQ" msgstr "FAQ - Häufige Fragen" -#: includes/admin/admin-help.php:372 +#: includes/admin/admin-help.php:345 msgctxt "Help tab info" msgid "Support" msgstr "Support" -#: includes/admin/admin-help.php:374 +#: includes/admin/admin-help.php:347 msgctxt "Help tab info" msgid "Facebook Group" msgstr "Facebook-Gruppe" -#: includes/admin/admin-help.php:376 +#: includes/admin/admin-help.php:349 msgctxt "Help tab info" msgid "Translations" msgstr "Übersetzungen" -#: includes/admin/admin-help.php:378 +#: includes/admin/admin-help.php:351 msgctxt "Help tab info" msgid "Donate" msgstr "Spenden" -#: includes/admin/admin-help.php:403 +#: includes/admin/admin-help.php:353 +msgctxt "Help tab info" +msgid "Join our Newsletter" +msgstr "Newsletter jetzt!" + +#: includes/admin/admin-help.php:378 msgid "Customize" msgstr "Anpassen" -#: includes/admin/admin-help.php:404 +#: includes/admin/admin-help.php:379 msgid "Code Snippets" msgstr "Code-Snippets" -#: includes/admin/admin-help.php:406 +#: includes/admin/admin-help.php:381 msgid "Connect" msgstr "Vernetzen" -#: includes/admin/admin-help.php:407 +#: includes/admin/admin-help.php:382 msgid "Facebook Group" msgstr "Facebook-Gruppe" @@ -214,7 +230,7 @@ msgid "No Integration registered" msgstr "Keine Integration registriert" #. Author of the plugin/theme -#: includes/functions-global.php:349 +#: includes/functions-global.php:376 msgid "David Decker - DECKERWEB" msgstr "David Decker - DECKERWEB.de" @@ -370,7 +386,7 @@ msgstr "DHWC Elementor Produkt-Templates" msgid "Easy Content Templates" msgstr "Einfache Inhalts-Templates" -#: includes/integrations/integration-elementor.php:27 +#: includes/integrations/integration-elementor.php:39 msgid "Elementor My Templates" msgstr "Elementor Meine Templates" @@ -866,6 +882,36 @@ msgctxt "Taxonomy term description" msgid "Templates for Bars" msgstr "Templates für Leisten" +#: includes/register-taxonomy.php:310 +msgctxt "Taxonomy term title" +msgid "Flows" +msgstr "Abläufe" + +#: includes/register-taxonomy.php:311 +msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" +msgid "flows" +msgstr "ablaeufe" + +#: includes/register-taxonomy.php:312 +msgctxt "Taxonomy term description" +msgid "Templates for Flows" +msgstr "Templates für Abläufe" + +#: includes/register-taxonomy.php:321 +msgctxt "Taxonomy term title" +msgid "Snippets" +msgstr "Snippets" + +#: includes/register-taxonomy.php:322 +msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" +msgid "snippets" +msgstr "snippets" + +#: includes/register-taxonomy.php:323 +msgctxt "Taxonomy term description" +msgid "Templates for Snippets" +msgstr "Templates für Snippets" + #: includes/run-integrations.php:99 msgctxt "Tweaked label for \"Edit\" bulk action" msgid "Edit, add Category etc." @@ -877,171 +923,191 @@ msgstr "Bearbeiten, Kategorie(n) hinzufügen, etc." msgid "All %s" msgstr "Alle %s" -#: includes/string-switcher.php:30 includes/string-switcher.php:112 +#: includes/string-switcher.php:30 includes/string-switcher.php:121 msgid "Template" msgstr "Template" -#: includes/string-switcher.php:56 +#: includes/string-switcher.php:57 msgid "Library" msgstr "Bibliothek" -#: includes/string-switcher.php:60 +#: includes/string-switcher.php:61 msgid "Layout" msgstr "Layout" -#: includes/string-switcher.php:64 +#: includes/string-switcher.php:65 msgid "Element" msgstr "Element" -#: includes/string-switcher.php:68 +#: includes/string-switcher.php:69 msgid "Block" msgstr "Block" -#: includes/string-switcher.php:72 +#: includes/string-switcher.php:73 msgid "Popup" msgstr "Popup" -#: includes/string-switcher.php:76 +#: includes/string-switcher.php:77 msgid "Lightbox" msgstr "Lightbox" -#: includes/string-switcher.php:80 +#: includes/string-switcher.php:81 msgid "Listing" msgstr "Liste" -#: includes/string-switcher.php:88 +#: includes/string-switcher.php:89 msgid "Field" msgstr "Feld" -#: includes/string-switcher.php:92 +#: includes/string-switcher.php:93 msgid "Box" msgstr "Box" -#: includes/string-switcher.php:96 +#: includes/string-switcher.php:97 msgid "Bar" msgstr "Leiste" -#: includes/string-switcher.php:100 +#: includes/string-switcher.php:101 msgid "Hook" msgstr "Hook" -#: includes/string-switcher.php:104 +#: includes/string-switcher.php:105 msgid "Filter" msgstr "Filter" -#: includes/string-switcher.php:108 +#: includes/string-switcher.php:109 msgid "Sections" msgstr "Abschnitte" -#: includes/string-switcher.php:134 +#: includes/string-switcher.php:113 +msgid "Flows" +msgstr "Abläufe" + +#: includes/string-switcher.php:117 +msgid "Snippets" +msgstr "Snippets" + +#: includes/string-switcher.php:143 msgid "Categories" msgstr "Kategorien" #. translators: %s - label "Categories" (for example: Template Categories) -#: includes/string-switcher.php:163 includes/string-switcher.php:291 +#: includes/string-switcher.php:173 includes/string-switcher.php:317 #, php-format msgid "Template %s" msgstr "Template-%s" #. translators: %s - label "Categories" (for example: Library Categories) -#: includes/string-switcher.php:171 +#: includes/string-switcher.php:181 #, php-format msgid "Library %s" msgstr "Bibliothek-%s" #. translators: %s - label "Categories" (for example: Layout Categories) -#: includes/string-switcher.php:179 +#: includes/string-switcher.php:189 #, php-format msgid "Layout %s" msgstr "Layout-%s" #. translators: %s - label "Categories" (for example: Element Categories) -#: includes/string-switcher.php:187 +#: includes/string-switcher.php:197 #, php-format msgid "Element %s" msgstr "Element-%s" #. translators: %s - label "Categories" (for example: Block Categories) -#: includes/string-switcher.php:195 +#: includes/string-switcher.php:205 #, php-format msgid "Block %s" msgstr "Block-%s" #. translators: %s - label "Categories" (for example: Popup Categories) -#: includes/string-switcher.php:203 +#: includes/string-switcher.php:213 #, php-format msgid "Popup %s" msgstr "Popup-%s" #. translators: %s - label "Categories" (for example: Lightbox Categories) -#: includes/string-switcher.php:211 +#: includes/string-switcher.php:221 #, php-format msgid "Lightbox %s" msgstr "Lightbox-%s" #. translators: %s - label "Categories" (for example: Listing Categories) -#: includes/string-switcher.php:219 +#: includes/string-switcher.php:229 #, php-format msgid "Listing %s" msgstr "Listen-%s" #. translators: %s - label "Categories" (for example: ELHF Categories - "EL HF" stands for Elementor Header Footer Builder plugin) -#: includes/string-switcher.php:227 +#: includes/string-switcher.php:237 #, php-format msgid "EL HF %s" msgstr "EL HF %s" #. translators: %s - label "Categories" (for example: Post Type Categories) -#: includes/string-switcher.php:235 +#: includes/string-switcher.php:245 #, php-format msgid "Post Type %s" msgstr "Beitragstyp-%s" #. translators: %s - label "Categories" (for example: Field Categories) -#: includes/string-switcher.php:243 +#: includes/string-switcher.php:253 #, php-format msgid "Field %s" msgstr "Feld-%s" #. translators: %s - label "Categories" (for example: Box Categories) -#: includes/string-switcher.php:251 +#: includes/string-switcher.php:261 #, php-format msgid "Box %s" msgstr "Boxen-%s" #. translators: %s - label "Categories" (for example: Bar Categories) -#: includes/string-switcher.php:259 +#: includes/string-switcher.php:269 #, php-format msgid "Bar %s" msgstr "Leisten-%s" #. translators: %s - label "Categories" (for example: Hook Categories) -#: includes/string-switcher.php:267 +#: includes/string-switcher.php:277 #, php-format msgid "Hook %s" msgstr "Hook-%s" #. translators: %s - label "Categories" (for example: Filter Categories) -#: includes/string-switcher.php:275 +#: includes/string-switcher.php:285 #, php-format msgid "Filter %s" msgstr "Filter-%s" #. translators: %s - label "Categories" (for example: Section Categories) -#: includes/string-switcher.php:283 +#: includes/string-switcher.php:293 #, php-format msgid "Section %s" msgstr "Abschnitt-%s" -#: includes/string-switcher.php:322 +#. translators: %s - label "Categories" (for example: Flow Categories) +#: includes/string-switcher.php:301 +#, php-format +msgid "Flow %s" +msgstr "Ablauf-%s" + +#. translators: %s - label "Categories" (for example: Snippet Categories) +#: includes/string-switcher.php:309 +#, php-format +msgid "Snippet %s" +msgstr "Snippet-%s" + +#: includes/string-switcher.php:348 msgid "for WooCommerce" msgstr "für WooCommerce Shops" -#: includes/string-switcher.php:345 +#: includes/string-switcher.php:371 msgid "for Post Types, Taxonomies, Fields" msgstr "für Inhaltstypen, Taxonomien, Felder" -#: includes/string-switcher.php:362 +#: includes/string-switcher.php:388 msgid "Add New" msgstr "Erstellen" diff --git a/languages/builder-template-categories-de_DE_formal.mo b/languages/builder-template-categories-de_DE_formal.mo index 0a5abd1..ff1ef81 100644 Binary files a/languages/builder-template-categories-de_DE_formal.mo and b/languages/builder-template-categories-de_DE_formal.mo differ diff --git a/languages/builder-template-categories-de_DE_formal.po b/languages/builder-template-categories-de_DE_formal.po index 7a2922f..da32ccc 100644 --- a/languages/builder-template-categories-de_DE_formal.po +++ b/languages/builder-template-categories-de_DE_formal.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Builder Template Categories\n" -"POT-Creation-Date: 2018-12-13 19:49+0100\n" -"PO-Revision-Date: 2018-12-13 19:50+0100\n" +"POT-Creation-Date: 2019-01-21 22:59+0100\n" +"PO-Revision-Date: 2019-01-21 22:59+0100\n" "Last-Translator: David Decker DECKERWEB.de -- https://deckerweb.de/\n" "Language-Team: David Decker DECKERWEB.de -- https://deckerweb.de/\n" "Language: de_DE\n" @@ -23,9 +23,9 @@ msgstr "" #. translators: Title attribute for Builder Template Categories taxonomy link #. Plugin Name of the plugin/theme -#: includes/admin/admin-extras.php:35 includes/admin/admin-extras.php:134 -#: includes/admin/admin-help.php:202 includes/admin/admin-help.php:332 -#: includes/admin/admin-help.php:337 +#: includes/admin/admin-extras.php:35 includes/admin/admin-extras.php:146 +#: includes/admin/admin-help.php:230 includes/admin/admin-help.php:304 +#: includes/admin/admin-help.php:309 msgid "Builder Template Categories" msgstr "Builder Template-Kategorien" @@ -64,22 +64,33 @@ msgctxt "Plugins page listing" msgid "Donate" msgstr "Spenden" -#. translators: 1 - Builder Template Categories / 2 - Link to plugin review -#: includes/admin/admin-extras.php:133 +#. translators: Plugins page listing +#: includes/admin/admin-extras.php:104 +msgctxt "Plugins page listing" +msgid "Join our Newsletter" +msgstr "Newsletter jetzt!" + +#. translators: %s - 5 stars icons +#: includes/admin/admin-extras.php:139 +#, php-format +msgid "%s rating" +msgstr "%s Bewertung" + +#. translators: 1 - Plugin name "Builder Template Categories" / 2 - label "5 star rating" +#: includes/admin/admin-extras.php:145 #, php-format msgid "" -"Enjoyed %1$s? Please leave us a %2$s rating. We really appreciate your " -"support!" +"Enjoyed %1$s? Please leave us a %2$s. We really appreciate your support!" msgstr "" -"Gefällt Ihnen %1$s? Dann geben Sie uns bitte eine %2$s Bewertung. Wir " -"schätzen Ihre Unterstützung!" +"Gefällt Ihnen %1$s? Dann geben Sie uns bitte eine %2$s. Wir schätzen Ihre " +"Unterstützung!" -#: includes/admin/admin-extras.php:355 +#: includes/admin/admin-extras.php:376 msgctxt "Plugin installer: Tab name in installer toolbar" msgid "Newest" msgstr "Neueste" -#: includes/admin/admin-extras.php:361 +#: includes/admin/admin-extras.php:382 msgctxt "Plugin card: plugin version" msgid "Version:" msgstr "Version:" @@ -94,19 +105,19 @@ msgstr "" "Dashboard und können zum Organisieren der Template-Bibliotheken verwendet " "werden - für die folgenden Plugins und/ oder Themes" -#: includes/admin/admin-help.php:298 +#: includes/admin/admin-help.php:270 msgid "Content Type" msgstr "Inhaltstyp" -#: includes/admin/admin-help.php:300 includes/string-switcher.php:84 +#: includes/admin/admin-help.php:272 includes/string-switcher.php:85 msgid "Post Type" msgstr "Beitragstyp" -#: includes/admin/admin-help.php:332 +#: includes/admin/admin-help.php:304 msgid "Plugin" msgstr "Plugin" -#: includes/admin/admin-help.php:336 +#: includes/admin/admin-help.php:308 #, php-format msgid "" "Currently active integrations where the %s taxonomy is applied to better " @@ -116,16 +127,16 @@ msgstr "" "lassen sich Templates für verschiedene Inhaltstypen intern besser " "organisieren" -#: includes/admin/admin-help.php:346 +#: includes/admin/admin-help.php:318 msgid "Video Overview: Bulk Add Template Categories" msgstr "Video-Übersicht: Mehrfachaktionen für Template-Kategorien" -#: includes/admin/admin-help.php:347 +#: includes/admin/admin-help.php:319 msgid "video overview" msgstr "Video-Übersicht" #. translators: 1 - string "Bulk Actions" / 2 - Label "Edit, add Category etc." / 3 - video link markup with title "video overview" -#: includes/admin/admin-help.php:352 +#: includes/admin/admin-help.php:324 #, php-format msgid "" "You can bulk add template categories to more than one template at once in " @@ -136,15 +147,15 @@ msgstr "" "geschieht in der Beitragstyp-Übersichtstabelle, im Drop-Down-Menü %1$s. Die " "Aktion ist betitelt mit %2$s. Schauen Sie eine kurze %3$s dieser Funktion an." -#: includes/admin/admin-help.php:353 +#: includes/admin/admin-help.php:325 msgid "Bulk Actions" msgstr "Mehrfachaktionen" -#: includes/admin/admin-help.php:354 +#: includes/admin/admin-help.php:326 msgid "Edit, add Category etc." msgstr "Bearbeiten, Kategorie(n) hinzufügen, etc." -#: includes/admin/admin-help.php:361 +#: includes/admin/admin-help.php:333 msgid "" "The template categories are global and are applied automatically to all " "current active integrations." @@ -152,7 +163,7 @@ msgstr "" "Die Template-Kategorien sind global und werden automatisch allen derzeit " "aktiven Integrationen zugewiesen." -#: includes/admin/admin-help.php:362 +#: includes/admin/admin-help.php:334 msgid "" "The category description can be used for internal notices for your team " "members for example." @@ -160,52 +171,57 @@ msgstr "" "Die Kategoriebeschreibung kann zum Beispiel auch für interne Notizen für " "Ihre Team-Mitglieder verwendet werden." -#: includes/admin/admin-help.php:366 +#: includes/admin/admin-help.php:338 msgid "Important plugin links:" msgstr "Wichtige Plugin-Links:" -#: includes/admin/admin-help.php:368 +#: includes/admin/admin-help.php:340 msgid "Plugin website" msgstr "Plugin-Webseite" -#: includes/admin/admin-help.php:370 +#: includes/admin/admin-help.php:342 msgctxt "Help tab info" msgid "FAQ" msgstr "FAQ - Häufige Fragen" -#: includes/admin/admin-help.php:372 +#: includes/admin/admin-help.php:344 msgctxt "Help tab info" msgid "Support" msgstr "Support" -#: includes/admin/admin-help.php:374 +#: includes/admin/admin-help.php:346 msgctxt "Help tab info" msgid "Facebook Group" msgstr "Facebook-Gruppe" -#: includes/admin/admin-help.php:376 +#: includes/admin/admin-help.php:348 msgctxt "Help tab info" msgid "Translations" msgstr "Übersetzungen" -#: includes/admin/admin-help.php:378 +#: includes/admin/admin-help.php:350 msgctxt "Help tab info" msgid "Donate" msgstr "Spenden" -#: includes/admin/admin-help.php:403 +#: includes/admin/admin-help.php:352 +msgctxt "Help tab info" +msgid "Join our Newsletter" +msgstr "Newsletter jetzt!" + +#: includes/admin/admin-help.php:377 msgid "Customize" msgstr "Anpassen" -#: includes/admin/admin-help.php:404 +#: includes/admin/admin-help.php:378 msgid "Code Snippets" msgstr "Code-Snippets" -#: includes/admin/admin-help.php:406 +#: includes/admin/admin-help.php:380 msgid "Connect" msgstr "Vernetzen" -#: includes/admin/admin-help.php:407 +#: includes/admin/admin-help.php:381 msgid "Facebook Group" msgstr "Facebook-Gruppe" @@ -214,7 +230,7 @@ msgid "No Integration registered" msgstr "Keine Integration registriert" #. Author of the plugin/theme -#: includes/functions-global.php:349 +#: includes/functions-global.php:376 msgid "David Decker - DECKERWEB" msgstr "David Decker - DECKERWEB.de" @@ -370,7 +386,7 @@ msgstr "DHWC Elementor Produkt-Templates" msgid "Easy Content Templates" msgstr "Einfache Inhalts-Templates" -#: includes/integrations/integration-elementor.php:27 +#: includes/integrations/integration-elementor.php:39 msgid "Elementor My Templates" msgstr "Elementor Meine Templates" @@ -671,201 +687,231 @@ msgstr "" "Template-Kategorien für Templates von Page Buildern oder ähnlichen " "Bibliotheken" -#: includes/register-taxonomy.php:203 +#: includes/register-taxonomy.php:206 msgctxt "Taxonomy term title" msgid "General" msgstr "Allgemein" -#: includes/register-taxonomy.php:204 +#: includes/register-taxonomy.php:207 msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" msgid "general" msgstr "allgemein" -#: includes/register-taxonomy.php:205 +#: includes/register-taxonomy.php:208 msgctxt "Taxonomy term description" msgid "General templates" msgstr "Allgemeine Templates" -#: includes/register-taxonomy.php:208 +#: includes/register-taxonomy.php:211 msgctxt "Taxonomy term title" msgid "Frontpage" msgstr "Startseite" -#: includes/register-taxonomy.php:209 +#: includes/register-taxonomy.php:212 msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" msgid "frontpage" msgstr "startseite" -#: includes/register-taxonomy.php:210 +#: includes/register-taxonomy.php:213 msgctxt "Taxonomy term description" msgid "Templates for the Frontpage/ Homepage" msgstr "Templates für die Startseite" -#: includes/register-taxonomy.php:213 +#: includes/register-taxonomy.php:216 msgctxt "Taxonomy term title" msgid "Pages" msgstr "Seiten" -#: includes/register-taxonomy.php:214 +#: includes/register-taxonomy.php:217 msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" msgid "pages" msgstr "seiten" -#: includes/register-taxonomy.php:215 +#: includes/register-taxonomy.php:218 msgctxt "Taxonomy term description" msgid "Templates for Pages" msgstr "Templates für Seiten" -#: includes/register-taxonomy.php:218 +#: includes/register-taxonomy.php:221 msgctxt "Taxonomy term title" msgid "Landing Pages" msgstr "Landingseiten" -#: includes/register-taxonomy.php:219 +#: includes/register-taxonomy.php:222 msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" msgid "landing-pages" msgstr "landingseiten" -#: includes/register-taxonomy.php:220 +#: includes/register-taxonomy.php:223 msgctxt "Taxonomy term description" msgid "Templates for Landing Pages" msgstr "Templates für Landingseiten" -#: includes/register-taxonomy.php:223 +#: includes/register-taxonomy.php:226 msgctxt "Taxonomy term title" msgid "Sections" msgstr "Inhaltsblöcke" -#: includes/register-taxonomy.php:224 +#: includes/register-taxonomy.php:227 msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" msgid "sections" msgstr "inhaltsbloecke" -#: includes/register-taxonomy.php:225 +#: includes/register-taxonomy.php:228 msgctxt "Taxonomy term description" msgid "Templates for Sections/ Content Blocks" msgstr "Templates für Inhaltsblöcke" -#: includes/register-taxonomy.php:228 +#: includes/register-taxonomy.php:231 msgctxt "Taxonomy term title" msgid "Hooks" msgstr "Hooks" -#: includes/register-taxonomy.php:229 +#: includes/register-taxonomy.php:232 msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" msgid "hooks" msgstr "hooks" -#: includes/register-taxonomy.php:230 +#: includes/register-taxonomy.php:233 msgctxt "Taxonomy term description" msgid "Templates for Action Hooks" msgstr "Templates für Action-Hooks" -#: includes/register-taxonomy.php:233 +#: includes/register-taxonomy.php:236 msgctxt "Taxonomy term title" msgid "Testing" msgstr "Testing" -#: includes/register-taxonomy.php:234 +#: includes/register-taxonomy.php:237 msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" msgid "testing" msgstr "testing" -#: includes/register-taxonomy.php:235 +#: includes/register-taxonomy.php:238 msgctxt "Taxonomy term description" msgid "Templates just for testing purposes" msgstr "Templates für Testzwecke" -#: includes/register-taxonomy.php:244 +#: includes/register-taxonomy.php:247 msgctxt "Taxonomy term title" msgid "Products" msgstr "Produkte" -#: includes/register-taxonomy.php:245 +#: includes/register-taxonomy.php:248 msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" msgid "products" msgstr "produkte" -#: includes/register-taxonomy.php:246 +#: includes/register-taxonomy.php:249 msgctxt "Taxonomy term description" msgid "Templates for WooCommerce products" msgstr "Templates für WooCommerce-Produkte" -#: includes/register-taxonomy.php:255 +#: includes/register-taxonomy.php:260 msgctxt "Taxonomy term title" msgid "Popups" msgstr "Popups" -#: includes/register-taxonomy.php:256 +#: includes/register-taxonomy.php:261 msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" msgid "popups" msgstr "popups" -#: includes/register-taxonomy.php:257 +#: includes/register-taxonomy.php:262 msgctxt "Taxonomy term description" msgid "Templates for Popups/ Modal Windows" msgstr "Templates für Popups" -#: includes/register-taxonomy.php:266 +#: includes/register-taxonomy.php:271 msgctxt "Taxonomy term title" msgid "Blocks" msgstr "Blöcke" -#: includes/register-taxonomy.php:267 +#: includes/register-taxonomy.php:272 msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" msgid "blocks" msgstr "bloecke" -#: includes/register-taxonomy.php:268 +#: includes/register-taxonomy.php:273 msgctxt "Taxonomy term description" msgid "Templates for Blocks" msgstr "Templates für Blöcke" -#: includes/register-taxonomy.php:277 +#: includes/register-taxonomy.php:282 msgctxt "Taxonomy term title" msgid "Fields" msgstr "Felder" -#: includes/register-taxonomy.php:278 +#: includes/register-taxonomy.php:283 msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" msgid "fields" msgstr "felder" -#: includes/register-taxonomy.php:279 +#: includes/register-taxonomy.php:284 msgctxt "Taxonomy term description" msgid "Templates for Fields" msgstr "Templates für Felder" -#: includes/register-taxonomy.php:288 +#: includes/register-taxonomy.php:293 msgctxt "Taxonomy term title" msgid "Boxes" msgstr "Boxen" -#: includes/register-taxonomy.php:289 +#: includes/register-taxonomy.php:294 msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" msgid "boxes" msgstr "boxen" -#: includes/register-taxonomy.php:290 +#: includes/register-taxonomy.php:295 msgctxt "Taxonomy term description" msgid "Templates for Boxes" msgstr "Templates für Boxen" -#: includes/register-taxonomy.php:299 +#: includes/register-taxonomy.php:304 msgctxt "Taxonomy term title" msgid "Bars" msgstr "Leisten" -#: includes/register-taxonomy.php:300 +#: includes/register-taxonomy.php:305 msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" msgid "bars" msgstr "leisten" -#: includes/register-taxonomy.php:301 +#: includes/register-taxonomy.php:306 msgctxt "Taxonomy term description" msgid "Templates for Bars" msgstr "Templates für Leisten" +#: includes/register-taxonomy.php:315 +msgctxt "Taxonomy term title" +msgid "Flows" +msgstr "Abläufe" + +#: includes/register-taxonomy.php:316 +msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" +msgid "flows" +msgstr "ablaeufe" + +#: includes/register-taxonomy.php:317 +msgctxt "Taxonomy term description" +msgid "Templates for Flows" +msgstr "Templates für Abläufe" + +#: includes/register-taxonomy.php:326 +msgctxt "Taxonomy term title" +msgid "Snippets" +msgstr "Snippets" + +#: includes/register-taxonomy.php:327 +msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" +msgid "snippets" +msgstr "snippets" + +#: includes/register-taxonomy.php:328 +msgctxt "Taxonomy term description" +msgid "Templates for Snippets" +msgstr "Templates für Snippets" + #: includes/run-integrations.php:99 msgctxt "Tweaked label for \"Edit\" bulk action" msgid "Edit, add Category etc." @@ -877,171 +923,191 @@ msgstr "Bearbeiten, Kategorie(n) hinzufügen, etc." msgid "All %s" msgstr "Alle %s" -#: includes/string-switcher.php:30 includes/string-switcher.php:112 +#: includes/string-switcher.php:30 includes/string-switcher.php:121 msgid "Template" msgstr "Template" -#: includes/string-switcher.php:56 +#: includes/string-switcher.php:57 msgid "Library" msgstr "Bibliothek" -#: includes/string-switcher.php:60 +#: includes/string-switcher.php:61 msgid "Layout" msgstr "Layout" -#: includes/string-switcher.php:64 +#: includes/string-switcher.php:65 msgid "Element" msgstr "Element" -#: includes/string-switcher.php:68 +#: includes/string-switcher.php:69 msgid "Block" msgstr "Block" -#: includes/string-switcher.php:72 +#: includes/string-switcher.php:73 msgid "Popup" msgstr "Popup" -#: includes/string-switcher.php:76 +#: includes/string-switcher.php:77 msgid "Lightbox" msgstr "Lightbox" -#: includes/string-switcher.php:80 +#: includes/string-switcher.php:81 msgid "Listing" msgstr "Liste" -#: includes/string-switcher.php:88 +#: includes/string-switcher.php:89 msgid "Field" msgstr "Feld" -#: includes/string-switcher.php:92 +#: includes/string-switcher.php:93 msgid "Box" msgstr "Box" -#: includes/string-switcher.php:96 +#: includes/string-switcher.php:97 msgid "Bar" msgstr "Leiste" -#: includes/string-switcher.php:100 +#: includes/string-switcher.php:101 msgid "Hook" msgstr "Hook" -#: includes/string-switcher.php:104 +#: includes/string-switcher.php:105 msgid "Filter" msgstr "Filter" -#: includes/string-switcher.php:108 +#: includes/string-switcher.php:109 msgid "Sections" msgstr "Abschnitte" -#: includes/string-switcher.php:134 +#: includes/string-switcher.php:113 +msgid "Flows" +msgstr "Abläufe" + +#: includes/string-switcher.php:117 +msgid "Snippets" +msgstr "Snippets" + +#: includes/string-switcher.php:143 msgid "Categories" msgstr "Kategorien" #. translators: %s - label "Categories" (for example: Template Categories) -#: includes/string-switcher.php:163 includes/string-switcher.php:291 +#: includes/string-switcher.php:173 includes/string-switcher.php:317 #, php-format msgid "Template %s" msgstr "Template-%s" #. translators: %s - label "Categories" (for example: Library Categories) -#: includes/string-switcher.php:171 +#: includes/string-switcher.php:181 #, php-format msgid "Library %s" msgstr "Bibliothek-%s" #. translators: %s - label "Categories" (for example: Layout Categories) -#: includes/string-switcher.php:179 +#: includes/string-switcher.php:189 #, php-format msgid "Layout %s" msgstr "Layout-%s" #. translators: %s - label "Categories" (for example: Element Categories) -#: includes/string-switcher.php:187 +#: includes/string-switcher.php:197 #, php-format msgid "Element %s" msgstr "Element-%s" #. translators: %s - label "Categories" (for example: Block Categories) -#: includes/string-switcher.php:195 +#: includes/string-switcher.php:205 #, php-format msgid "Block %s" msgstr "Block-%s" #. translators: %s - label "Categories" (for example: Popup Categories) -#: includes/string-switcher.php:203 +#: includes/string-switcher.php:213 #, php-format msgid "Popup %s" msgstr "Popup-%s" #. translators: %s - label "Categories" (for example: Lightbox Categories) -#: includes/string-switcher.php:211 +#: includes/string-switcher.php:221 #, php-format msgid "Lightbox %s" msgstr "Lightbox-%s" #. translators: %s - label "Categories" (for example: Listing Categories) -#: includes/string-switcher.php:219 +#: includes/string-switcher.php:229 #, php-format msgid "Listing %s" msgstr "Listen-%s" #. translators: %s - label "Categories" (for example: ELHF Categories - "EL HF" stands for Elementor Header Footer Builder plugin) -#: includes/string-switcher.php:227 +#: includes/string-switcher.php:237 #, php-format msgid "EL HF %s" msgstr "EL HF %s" #. translators: %s - label "Categories" (for example: Post Type Categories) -#: includes/string-switcher.php:235 +#: includes/string-switcher.php:245 #, php-format msgid "Post Type %s" msgstr "Beitragstyp-%s" #. translators: %s - label "Categories" (for example: Field Categories) -#: includes/string-switcher.php:243 +#: includes/string-switcher.php:253 #, php-format msgid "Field %s" msgstr "Feld-%s" #. translators: %s - label "Categories" (for example: Box Categories) -#: includes/string-switcher.php:251 +#: includes/string-switcher.php:261 #, php-format msgid "Box %s" msgstr "Boxen-%s" #. translators: %s - label "Categories" (for example: Bar Categories) -#: includes/string-switcher.php:259 +#: includes/string-switcher.php:269 #, php-format msgid "Bar %s" msgstr "Leisten-%s" #. translators: %s - label "Categories" (for example: Hook Categories) -#: includes/string-switcher.php:267 +#: includes/string-switcher.php:277 #, php-format msgid "Hook %s" msgstr "Hooks-%s" #. translators: %s - label "Categories" (for example: Filter Categories) -#: includes/string-switcher.php:275 +#: includes/string-switcher.php:285 #, php-format msgid "Filter %s" msgstr "Filter-%s" #. translators: %s - label "Categories" (for example: Section Categories) -#: includes/string-switcher.php:283 +#: includes/string-switcher.php:293 #, php-format msgid "Section %s" msgstr "Abschnitt-%s" -#: includes/string-switcher.php:322 +#. translators: %s - label "Categories" (for example: Flow Categories) +#: includes/string-switcher.php:301 +#, php-format +msgid "Flow %s" +msgstr "Ablauf-%s" + +#. translators: %s - label "Categories" (for example: Snippet Categories) +#: includes/string-switcher.php:309 +#, php-format +msgid "Snippet %s" +msgstr "Snippet-%s" + +#: includes/string-switcher.php:348 msgid "for WooCommerce" msgstr "für WooCommerce Shops" -#: includes/string-switcher.php:345 +#: includes/string-switcher.php:371 msgid "for Post Types, Taxonomies, Fields" msgstr "für Inhaltstypen, Taxonomien, Felder" -#: includes/string-switcher.php:362 +#: includes/string-switcher.php:388 msgid "Add New" msgstr "Erstellen" diff --git a/languages/builder-template-categories.pot b/languages/builder-template-categories.pot index 17c2ba9..5852a42 100644 --- a/languages/builder-template-categories.pot +++ b/languages/builder-template-categories.pot @@ -3,7 +3,7 @@ msgid "" msgstr "" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" "Project-Id-Version: Builder Template Categories\n" -"POT-Creation-Date: 2018-12-13 19:50+0100\n" +"POT-Creation-Date: 2019-01-21 20:27+0100\n" "PO-Revision-Date: 2018-08-14 13:21+0200\n" "Last-Translator: David Decker DECKERWEB.de -- https://deckerweb.de/\n" "Language-Team: David Decker DECKERWEB.de -- https://deckerweb.de/\n" @@ -23,9 +23,9 @@ msgstr "" #. translators: Title attribute for Builder Template Categories taxonomy link #. Plugin Name of the plugin/theme -#: includes/admin/admin-extras.php:35 includes/admin/admin-extras.php:134 -#: includes/admin/admin-help.php:202 includes/admin/admin-help.php:332 -#: includes/admin/admin-help.php:337 +#: includes/admin/admin-extras.php:35 includes/admin/admin-extras.php:146 +#: includes/admin/admin-help.php:231 includes/admin/admin-help.php:305 +#: includes/admin/admin-help.php:310 msgid "Builder Template Categories" msgstr "" @@ -64,20 +64,31 @@ msgctxt "Plugins page listing" msgid "Donate" msgstr "" -#. translators: 1 - Builder Template Categories / 2 - Link to plugin review -#: includes/admin/admin-extras.php:133 +#. translators: Plugins page listing +#: includes/admin/admin-extras.php:104 +msgctxt "Plugins page listing" +msgid "Join our Newsletter" +msgstr "" + +#. translators: %s - 5 stars icons +#: includes/admin/admin-extras.php:139 +#, php-format +msgid "%s rating" +msgstr "" + +#. translators: 1 - Plugin name "Builder Template Categories" / 2 - label "5 star rating" +#: includes/admin/admin-extras.php:145 #, php-format msgid "" -"Enjoyed %1$s? Please leave us a %2$s rating. We really appreciate your " -"support!" +"Enjoyed %1$s? Please leave us a %2$s. We really appreciate your support!" msgstr "" -#: includes/admin/admin-extras.php:355 +#: includes/admin/admin-extras.php:367 msgctxt "Plugin installer: Tab name in installer toolbar" msgid "Newest" msgstr "" -#: includes/admin/admin-extras.php:361 +#: includes/admin/admin-extras.php:373 msgctxt "Plugin card: plugin version" msgid "Version:" msgstr "" @@ -89,35 +100,35 @@ msgid "" "the following active Plugins and/or Themes" msgstr "" -#: includes/admin/admin-help.php:298 +#: includes/admin/admin-help.php:271 msgid "Content Type" msgstr "" -#: includes/admin/admin-help.php:300 includes/string-switcher.php:84 +#: includes/admin/admin-help.php:273 includes/string-switcher.php:85 msgid "Post Type" msgstr "" -#: includes/admin/admin-help.php:332 +#: includes/admin/admin-help.php:305 msgid "Plugin" msgstr "" -#: includes/admin/admin-help.php:336 +#: includes/admin/admin-help.php:309 #, php-format msgid "" "Currently active integrations where the %s taxonomy is applied to better " "internally organize templates for various content types" msgstr "" -#: includes/admin/admin-help.php:346 +#: includes/admin/admin-help.php:319 msgid "Video Overview: Bulk Add Template Categories" msgstr "" -#: includes/admin/admin-help.php:347 +#: includes/admin/admin-help.php:320 msgid "video overview" msgstr "" #. translators: 1 - string "Bulk Actions" / 2 - Label "Edit, add Category etc." / 3 - video link markup with title "video overview" -#: includes/admin/admin-help.php:352 +#: includes/admin/admin-help.php:325 #, php-format msgid "" "You can bulk add template categories to more than one template at once in " @@ -125,72 +136,77 @@ msgid "" "action will be labeled like %2$s. See a short %3$s of this feature." msgstr "" -#: includes/admin/admin-help.php:353 +#: includes/admin/admin-help.php:326 msgid "Bulk Actions" msgstr "" -#: includes/admin/admin-help.php:354 +#: includes/admin/admin-help.php:327 msgid "Edit, add Category etc." msgstr "" -#: includes/admin/admin-help.php:361 +#: includes/admin/admin-help.php:334 msgid "" "The template categories are global and are applied automatically to all " "current active integrations." msgstr "" -#: includes/admin/admin-help.php:362 +#: includes/admin/admin-help.php:335 msgid "" "The category description can be used for internal notices for your team " "members for example." msgstr "" -#: includes/admin/admin-help.php:366 +#: includes/admin/admin-help.php:339 msgid "Important plugin links:" msgstr "" -#: includes/admin/admin-help.php:368 +#: includes/admin/admin-help.php:341 msgid "Plugin website" msgstr "" -#: includes/admin/admin-help.php:370 +#: includes/admin/admin-help.php:343 msgctxt "Help tab info" msgid "FAQ" msgstr "" -#: includes/admin/admin-help.php:372 +#: includes/admin/admin-help.php:345 msgctxt "Help tab info" msgid "Support" msgstr "" -#: includes/admin/admin-help.php:374 +#: includes/admin/admin-help.php:347 msgctxt "Help tab info" msgid "Facebook Group" msgstr "" -#: includes/admin/admin-help.php:376 +#: includes/admin/admin-help.php:349 msgctxt "Help tab info" msgid "Translations" msgstr "" -#: includes/admin/admin-help.php:378 +#: includes/admin/admin-help.php:351 msgctxt "Help tab info" msgid "Donate" msgstr "" -#: includes/admin/admin-help.php:403 +#: includes/admin/admin-help.php:353 +msgctxt "Help tab info" +msgid "Join our Newsletter" +msgstr "" + +#: includes/admin/admin-help.php:378 msgid "Customize" msgstr "" -#: includes/admin/admin-help.php:404 +#: includes/admin/admin-help.php:379 msgid "Code Snippets" msgstr "" -#: includes/admin/admin-help.php:406 +#: includes/admin/admin-help.php:381 msgid "Connect" msgstr "" -#: includes/admin/admin-help.php:407 +#: includes/admin/admin-help.php:382 msgid "Facebook Group" msgstr "" @@ -199,7 +215,7 @@ msgid "No Integration registered" msgstr "" #. Author of the plugin/theme -#: includes/functions-global.php:349 +#: includes/functions-global.php:376 msgid "David Decker - DECKERWEB" msgstr "" @@ -355,7 +371,7 @@ msgstr "" msgid "Easy Content Templates" msgstr "" -#: includes/integrations/integration-elementor.php:27 +#: includes/integrations/integration-elementor.php:39 msgid "Elementor My Templates" msgstr "" @@ -849,6 +865,36 @@ msgctxt "Taxonomy term description" msgid "Templates for Bars" msgstr "" +#: includes/register-taxonomy.php:310 +msgctxt "Taxonomy term title" +msgid "Flows" +msgstr "" + +#: includes/register-taxonomy.php:311 +msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" +msgid "flows" +msgstr "" + +#: includes/register-taxonomy.php:312 +msgctxt "Taxonomy term description" +msgid "Templates for Flows" +msgstr "" + +#: includes/register-taxonomy.php:321 +msgctxt "Taxonomy term title" +msgid "Snippets" +msgstr "" + +#: includes/register-taxonomy.php:322 +msgctxt "Taxonomy term slug - only lowercase, a-z, 0-9, hyphens!" +msgid "snippets" +msgstr "" + +#: includes/register-taxonomy.php:323 +msgctxt "Taxonomy term description" +msgid "Templates for Snippets" +msgstr "" + #: includes/run-integrations.php:99 msgctxt "Tweaked label for \"Edit\" bulk action" msgid "Edit, add Category etc." @@ -860,171 +906,191 @@ msgstr "" msgid "All %s" msgstr "" -#: includes/string-switcher.php:30 includes/string-switcher.php:112 +#: includes/string-switcher.php:30 includes/string-switcher.php:121 msgid "Template" msgstr "" -#: includes/string-switcher.php:56 +#: includes/string-switcher.php:57 msgid "Library" msgstr "" -#: includes/string-switcher.php:60 +#: includes/string-switcher.php:61 msgid "Layout" msgstr "" -#: includes/string-switcher.php:64 +#: includes/string-switcher.php:65 msgid "Element" msgstr "" -#: includes/string-switcher.php:68 +#: includes/string-switcher.php:69 msgid "Block" msgstr "" -#: includes/string-switcher.php:72 +#: includes/string-switcher.php:73 msgid "Popup" msgstr "" -#: includes/string-switcher.php:76 +#: includes/string-switcher.php:77 msgid "Lightbox" msgstr "" -#: includes/string-switcher.php:80 +#: includes/string-switcher.php:81 msgid "Listing" msgstr "" -#: includes/string-switcher.php:88 +#: includes/string-switcher.php:89 msgid "Field" msgstr "" -#: includes/string-switcher.php:92 +#: includes/string-switcher.php:93 msgid "Box" msgstr "" -#: includes/string-switcher.php:96 +#: includes/string-switcher.php:97 msgid "Bar" msgstr "" -#: includes/string-switcher.php:100 +#: includes/string-switcher.php:101 msgid "Hook" msgstr "" -#: includes/string-switcher.php:104 +#: includes/string-switcher.php:105 msgid "Filter" msgstr "" -#: includes/string-switcher.php:108 +#: includes/string-switcher.php:109 msgid "Sections" msgstr "" -#: includes/string-switcher.php:134 +#: includes/string-switcher.php:113 +msgid "Flows" +msgstr "" + +#: includes/string-switcher.php:117 +msgid "Snippets" +msgstr "" + +#: includes/string-switcher.php:143 msgid "Categories" msgstr "" #. translators: %s - label "Categories" (for example: Template Categories) -#: includes/string-switcher.php:163 includes/string-switcher.php:291 +#: includes/string-switcher.php:173 includes/string-switcher.php:317 #, php-format msgid "Template %s" msgstr "" #. translators: %s - label "Categories" (for example: Library Categories) -#: includes/string-switcher.php:171 +#: includes/string-switcher.php:181 #, php-format msgid "Library %s" msgstr "" #. translators: %s - label "Categories" (for example: Layout Categories) -#: includes/string-switcher.php:179 +#: includes/string-switcher.php:189 #, php-format msgid "Layout %s" msgstr "" #. translators: %s - label "Categories" (for example: Element Categories) -#: includes/string-switcher.php:187 +#: includes/string-switcher.php:197 #, php-format msgid "Element %s" msgstr "" #. translators: %s - label "Categories" (for example: Block Categories) -#: includes/string-switcher.php:195 +#: includes/string-switcher.php:205 #, php-format msgid "Block %s" msgstr "" #. translators: %s - label "Categories" (for example: Popup Categories) -#: includes/string-switcher.php:203 +#: includes/string-switcher.php:213 #, php-format msgid "Popup %s" msgstr "" #. translators: %s - label "Categories" (for example: Lightbox Categories) -#: includes/string-switcher.php:211 +#: includes/string-switcher.php:221 #, php-format msgid "Lightbox %s" msgstr "" #. translators: %s - label "Categories" (for example: Listing Categories) -#: includes/string-switcher.php:219 +#: includes/string-switcher.php:229 #, php-format msgid "Listing %s" msgstr "" #. translators: %s - label "Categories" (for example: ELHF Categories - "EL HF" stands for Elementor Header Footer Builder plugin) -#: includes/string-switcher.php:227 +#: includes/string-switcher.php:237 #, php-format msgid "EL HF %s" msgstr "" #. translators: %s - label "Categories" (for example: Post Type Categories) -#: includes/string-switcher.php:235 +#: includes/string-switcher.php:245 #, php-format msgid "Post Type %s" msgstr "" #. translators: %s - label "Categories" (for example: Field Categories) -#: includes/string-switcher.php:243 +#: includes/string-switcher.php:253 #, php-format msgid "Field %s" msgstr "" #. translators: %s - label "Categories" (for example: Box Categories) -#: includes/string-switcher.php:251 +#: includes/string-switcher.php:261 #, php-format msgid "Box %s" msgstr "" #. translators: %s - label "Categories" (for example: Bar Categories) -#: includes/string-switcher.php:259 +#: includes/string-switcher.php:269 #, php-format msgid "Bar %s" msgstr "" #. translators: %s - label "Categories" (for example: Hook Categories) -#: includes/string-switcher.php:267 +#: includes/string-switcher.php:277 #, php-format msgid "Hook %s" msgstr "" #. translators: %s - label "Categories" (for example: Filter Categories) -#: includes/string-switcher.php:275 +#: includes/string-switcher.php:285 #, php-format msgid "Filter %s" msgstr "" #. translators: %s - label "Categories" (for example: Section Categories) -#: includes/string-switcher.php:283 +#: includes/string-switcher.php:293 #, php-format msgid "Section %s" msgstr "" -#: includes/string-switcher.php:322 +#. translators: %s - label "Categories" (for example: Flow Categories) +#: includes/string-switcher.php:301 +#, php-format +msgid "Flow %s" +msgstr "" + +#. translators: %s - label "Categories" (for example: Snippet Categories) +#: includes/string-switcher.php:309 +#, php-format +msgid "Snippet %s" +msgstr "" + +#: includes/string-switcher.php:348 msgid "for WooCommerce" msgstr "" -#: includes/string-switcher.php:345 +#: includes/string-switcher.php:371 msgid "for Post Types, Taxonomies, Fields" msgstr "" -#: includes/string-switcher.php:362 +#: includes/string-switcher.php:388 msgid "Add New" msgstr "" diff --git a/readme.txt b/readme.txt index a8e2b02..42f5ece 100644 --- a/readme.txt +++ b/readme.txt @@ -19,17 +19,17 @@ https://www.youtube.com/watch?v=9FhIJ2QxOoQ Out of the box the plugin includes integrations for a lot of awesome Page Builders, Themes and Plugins. If any supported integration is installed & active, the "Builder Template Categories" plugin just applies its additions. The plugin is really lightweight and simple. Just activate and you're done - and can use the categorization. -= What the Plugin does? = -- **Better organize** your templates if you have many of them -- **Better overview** for admins and site builders -- **Filtering** in the overview table of a post type (typical WordPress overview) via Dropdown Filter, or Link filter in the row of a post type's post -- For **WordPress 5.0** with Block Editor (Gutenberg): make the Reusable Blocks visible in Admin and **organize** them - yeah, finally! Your growing collection of reusable blocks needs some organization - this plugin here makes it possible! ;-) -- Only for admins, within the admin - a great helper tool -- No frontend, no scripts, no styles - nothing! :-) -- Lightweight, efficient -- Developer friendly: clean code, inline documentation, lots of filters available - -= Typical Use Case of this Plugin = += ♥️ What the Plugin does? = +* **Better organize** your templates if you have many of them +* **Better overview** for admins and site builders +* **Filtering** in the overview table of a post type (typical WordPress overview) via Dropdown Filter, or Link filter in the row of a post type's post +* For **WordPress 5.0** with Block Editor (Gutenberg): make the Reusable Blocks visible in Admin and **organize** them - yeah, finally! Your growing collection of reusable blocks needs some organization - this plugin here makes it possible! ;-) +* Only for admins, within the admin - a great helper tool +* No frontend, no scripts, no styles - nothing! :-) +* Lightweight, efficient +* Developer friendly: clean code, inline documentation, lots of filters available + += 🚀 Typical Use Case of this Plugin = You are building a **big site** with **lots of different templates** across **various template libraries** of different plugins. Now the "Builder Template Categories" plugin helps you organize those templates better and more efficiently. For example you have a template category "Landing Pages". This category is now visible in Elementor's "My Templates", as well as in the Theme "GeneratePress" and its "Elements" Module, as well as in "PopBox for Elementor" plugin and also in "Pods" plugin's "Templates". @@ -38,114 +38,115 @@ So in every one of those libraries you can now filter and list all parts of temp Please note: The categories are global but when filtering only those items are listed that are connected to the specific post type. [See the FAQ for more info on that](https://wordpress.org/plugins/builder-template-categories/#faq) -= Supported Page Builders = -- [**Elementor Page Builder**](https://wordpress.org/plugins/elementor/) Plugin (free version is sufficient) - **My Templates** (for Pages, Sections, and with Elementor Pro even more template types) -- [**Brizy Page Builder**](https://wordpress.org/plugins/brizy/) Plugin (free version is sufficient) - **Templates** (for Pages, Sections etc.) -- **Oxygen Builder** Plugin (Pro) - **Templates** (for Pages, Layouts, Sections, Theme Builder elements...) -- Note: also the old Oxygen Visual Site Builder 1.x is supported -- **Visual Composer Website Builder** (the new one, 2018) - **Global Templates** / **Header, Footer, Sidebars Templates** -- **WPBakery Page Builder (the old 'Visual Composer')** Plugin with its **Templatera** template plugin - **Templates** (for Pages, Layouts, etc.) -- **Cornerstone** Page Builder via the "Cornerstone Global Blocks" Plugin (free) - **Global Blocks** (for Content) -- [**BoldGrid Post and Page Builder**](https://wordpress.org/plugins/post-and-page-builder/) Plugin (free) - **Blocks (Templates)** -- **Themify Builder** Plugin (Premium version) - **Layouts** (for Layout Parts, Pages, Sections etc.) -- **Avada Fusion Builder** Plugin in the *Avada Theme* (Premium) - **Library** (for Templates, Pages, Layouts, Columns, Rows) -- [**Gutenberg / Block Editor of WordPress 5.0**](https://wordpress.org/plugins/gutenberg/) - **Blocks** (for Reusable Blocks - the new core feature) - -= Supported Themes = -- [**Astra Theme**](https://wordpress.org/themes/astra/) with **Astra Pro** Add-On Plugin - **Custom Layouts** (for Layouts, Headers, Footers, Hooks) -- [**GeneratePress Theme**](https://wordpress.org/themes/generatepress/) with "GP Premium" Add-On Plugin - **Elements** (for Layouts, Headers, Hooks) -- [**OceanWP Theme**](https://wordpress.org/themes/oceanwp/) with ["Ocean Extra"](https://wordpress.org/plugins/ocean-extra/) free Plugin - **My Library** (for Layouts, Hooks etc.) -- **Kava Pro Theme/ CrocoBlock Service** with JetThemeCore Plugin - **My Library** (for Layouts, Pages, Headers, Footers, Single, Archive) -- **Genesis Framework** with Genesis Child Themes -- via **Blox Lite** and **Blox** (Pro) Plugins - **Global Content Blocks** (for Sections, Hooks) -- **Avada Theme** with Avada Fusion Builder - **Library** (for Templates, Pages, Layouts, Columns, Rows) - -= Supported Plugins = -- *see Page Builder Plugins above :-)* -- *see Gutenberg-specific Plugins below :-)* -- [**AnyWhere Elementor**](https://wordpress.org/plugins/anywhere-elementor/) Plugin (both, free & Pro version) - **AE Global Templates** (for Layouts, Content, Pages etc.) -- **Kava Pro Theme/ CrocoBlock Service** with JetThemeCore Plugin - **My Library** (for Layouts, Pages, Headers, Footers, Single, Archive) -- **JetEngine for Elementor** Plugin - **Listings (Templates)** -- **JetWooBuilder for Elementor** Plugin - **Product Templates** (for WooCommerce Products) -- [**Blox Lite**](https://wordpress.org/plugins/blox-lite/) and **Blox** (Pro) Plugins, both for Genesis Framework - **Global Content Blocks** (for Sections, Hooks) -- **Oxygen Builder** Plugin (Pro) - **Templates** (for Pages, Layouts, Sections, Theme Builder elements...) -- [**Header Footer for Elementor**](https://wordpress.org/plugins/header-footer-elementor/) Plugin - **Header & Footer Templates** (for Elementor theming areas) -- **DHWC Elementor** Plugin - **Product Templates** (for WooCommerce Products) -- [**Kadence WooCommerce Elementor**](https://wordpress.org/plugins/kadence-woocommerce-elementor/) Plugin - **Product Templates** (for WooCommerce Products) -- [**PopBoxes for Elementor**](https://wordpress.org/plugins/modal-for-elementor/) Plugin - **Popups (Templates)** (for Popups, Lightboxes) -- [**StylePress for Elementor**](https://wordpress.org/plugins/full-site-builder-for-elementor/) Plugin - **Styles (Templates)** (for Theme Templates) -- [**Templementor**](https://wordpress.org/plugins/templementor/) Plugin - **Templates** (for Elementor content) -- **Thrive Lightboxes** Plugin - **Lightboxes (Templates)** (for Lightboxes, Popups) -- [**Popup Maker**](https://wordpress.org/plugins/popup-maker/) Plugin - **Popups (Templates)** (for Popups, Lightboxes) -- [**Pods**](https://wordpress.org/plugins/pods/) Plugin - **Templates** (for Post Types, Taxonomies, Fields, etc.) -- Note: the "Templates" Component needs to be enabled in Pods' settings! -- [**WP Show Posts**](https://wordpress.org/plugins/wp-show-posts/) Plugin - **Listings (Templates)** (for Post Listings) -- **JetSmartFilters** Plugin - **Filters** (Templates for Filter Controls, Listings etc.) -- **JetPopup** Plugin - **Popups** (for Popups) -- [**Cherry PopUps**](https://wordpress.org/plugins/cherry-popups/) Plugin - **Popups** (for Popups) -- [**Themify Popup**](https://wordpress.org/plugins/themify-popup/) Plugin - **Popups** (for Popups) -- [**Meta Box Post Types**](https://wordpress.org/plugins/mb-custom-post-type/) Add-On Plugin - **Post Types** (for Post Type registrations) -- [**Meta Box Taxonomy**](https://wordpress.org/plugins/mb-custom-taxonomy/) Add-On Plugin - **Taxonomies** (for Taxonomy registrations) -- [**Content Blocks (Custom Post Widget)**](https://wordpress.org/plugins/custom-post-widget/) Plugin - **Blocks** (for Content) -- [**Reusable Content & Text Blocks (by Loomisoft)**](https://wordpress.org/plugins/loomisoft-content-blocks/) Plugin - **Blocks** (for Content) -- [**Dev Content Blocks**](https://wordpress.org/plugins/dev-content-blocks/) Plugin - **Blocks** (for Content) -- [**Reusable Text Blocks**](https://wordpress.org/plugins/reusable-text-blocks/) Plugin - **Blocks** (for Content, Text) -- [**Widget Content Blocks**](https://wordpress.org/plugins/wysiwyg-widgets/) Plugin - **Blocks** (for Widgets, Content) -- [**Reusable Content Blocks**](https://wordpress.org/plugins/reusable-content-blocks/) Plugin - **Blocks** (for Content, Text, etc.) -- [**Advanced Custom Fields (ACF)**](https://wordpress.org/plugins/advanced-custom-fields/) Plugin (both, free & Pro version) - **Field Groups** (for Custom Fields, Options) -- [**Custom Field Suite**](https://wordpress.org/plugins/custom-field-suite/) Plugin - **Field Groups** (for Custom Fields, Options) -- [**CMB2 Admin Extension**](https://wordpress.org/plugins/cmb2-admin-extension/) Plugin - **Field Groups** (for Custom Fields, Options) -- **Meta Box Builder** and **Meta Box All-In-One (AIO)** Plugins (both Premium) - **Field Groups** (for Custom Fields, Options) -- [**Custom Template for LifterLMS**](https://wordpress.org/plugins/custom-template-lifterlms/) Plugin - **Templates** (for Courses etc.) -- [**Custom Template for LearnDash**](https://wordpress.org/plugins/custom-template-learndash/) Plugin - **Templates** (for Courses etc.) -- [**Opal Widgets for Elementor**](https://wordpress.org/plugins/opal-widgets-for-elementor/) Plugin - **Templates** (for Headers, Footers) -- **Epic News Elements** Plugin - **Templates** (for Posts/ Singular, Archives) -- **Smart Footer System** Plugin - **Templates** (for Footers) -- **Master Popups** Plugin - **Popups** (for Popups) -- [**Easy Content Templates**](https://wordpress.org/plugins/easy-content-templates/) Plugin - **Templates** (for Content) -- [**Simple Content Templates**](https://wordpress.org/plugins/simple-post-template/) Plugin - **Templates** (for Content) -- **Custom Page Templates** Plugin - **Templates** (for Pages, Post Types) / **Post Types** (for Post Type registrations) / **Taxonomies** (for Taxonomy registrations) - -= Supported Gutenberg-specific Plugins (Block Editor) = -- [**Lazy Blocks**](https://wordpress.org/plugins/lazy-blocks/) Plugin - **Blocks** (Templates for Gutenberg Blocks) -- [**Block Lab**](https://wordpress.org/plugins/block-lab/) Plugin - **Blocks** (Templates & Fields for Gutenberg Blocks) -- [**Advanced Custom Blocks**](https://wordpress.org/plugins/advanced-custom-blocks/) Plugin - **Blocks** (Templates & Fields for Gutenberg Blocks) -- [**Blocks Layouts**](https://wordpress.org/plugins/blocks-layouts/) Plugin - **Layouts** (Layouts for Gutenberg Blocks) -- [**Square Happiness: Placeholder Block**](https://wordpress.org/plugins/placeholder-block-square-happiness/) Plugin - **Blocks** (Placeholders/ Templates for Gutenberg Blocks) -- [**Gutenberg Templates (Block Templates)**](https://wordpress.org/plugins/block-templates/) Plugin - **Templates** (Templates for Gutenberg Blocks) - -= Recommended Time Saver = += 🎉 Supported Page Builders = +* [**Elementor Page Builder**](https://wordpress.org/plugins/elementor/) Plugin (free version is sufficient) - **My Templates** (for Pages, Sections, and with Elementor Pro even more template types) +* [**Brizy Page Builder**](https://wordpress.org/plugins/brizy/) Plugin (free version is sufficient) - **Templates** (for Pages, Sections etc.) +* **Oxygen Builder** Plugin (Pro) - **Templates** (for Pages, Layouts, Sections, Theme Builder elements...) -- Note: also the old Oxygen Visual Site Builder 1.x is supported +* **Visual Composer Website Builder** (the new one, 2018) - **Global Templates** / **Header, Footer, Sidebars Templates** +* **WPBakery Page Builder (the old 'Visual Composer')** Plugin with its **Templatera** template plugin - **Templates** (for Pages, Layouts, etc.) +* **Cornerstone** Page Builder via the "Cornerstone Global Blocks" Plugin (free) - **Global Blocks** (for Content) +* [**BoldGrid Post and Page Builder**](https://wordpress.org/plugins/post-and-page-builder/) Plugin (free) - **Blocks (Templates)** +* **Themify Builder** Plugin (Premium version) - **Layouts** (for Layout Parts, Pages, Sections etc.) +* **Avada Fusion Builder** Plugin in the *Avada Theme* (Premium) - **Library** (for Templates, Pages, Layouts, Columns, Rows) +* [**Gutenberg / Block Editor of WordPress 5.0**](https://wordpress.org/plugins/gutenberg/) - **Blocks** (for Reusable Blocks - the new core feature) + += 🎨 Supported Themes = +* [**Astra Theme**](https://wordpress.org/themes/astra/) with **Astra Pro** Add-On Plugin - **Custom Layouts** (for Layouts, Headers, Footers, Hooks) +* [**GeneratePress Theme**](https://wordpress.org/themes/generatepress/) with "GP Premium" Add-On Plugin - **Elements** (for Layouts, Headers, Hooks) +* [**OceanWP Theme**](https://wordpress.org/themes/oceanwp/) with ["Ocean Extra"](https://wordpress.org/plugins/ocean-extra/) free Plugin - **My Library** (for Layouts, Hooks etc.) +* **Kava Pro Theme/ CrocoBlock Service** with JetThemeCore Plugin - **My Library** (for Layouts, Pages, Headers, Footers, Single, Archive) +* **Genesis Framework** with Genesis Child Themes -- via **Blox Lite** and **Blox** (Pro) Plugins - **Global Content Blocks** (for Sections, Hooks) +* **Avada Theme** with Avada Fusion Builder - **Library** (for Templates, Pages, Layouts, Columns, Rows) + += 🚀 Supported Plugins = +* *see Page Builder Plugins above :-)* +* *see Gutenberg-specific Plugins below :-)* +* [**AnyWhere Elementor**](https://wordpress.org/plugins/anywhere-elementor/) Plugin (both, free & Pro version) - **AE Global Templates** (for Layouts, Content, Pages etc.) +* **Kava Pro Theme/ CrocoBlock Service** with JetThemeCore Plugin - **My Library** (for Layouts, Pages, Headers, Footers, Single, Archive) +* **JetEngine for Elementor** Plugin - **Listings (Templates)** +* **JetWooBuilder for Elementor** Plugin - **Product Templates** (for WooCommerce Products) +* [**Blox Lite**](https://wordpress.org/plugins/blox-lite/) and **Blox** (Pro) Plugins, both for Genesis Framework - **Global Content Blocks** (for Sections, Hooks) +* **Oxygen Builder** Plugin (Pro) - **Templates** (for Pages, Layouts, Sections, Theme Builder elements...) +* [**Header Footer for Elementor**](https://wordpress.org/plugins/header-footer-elementor/) Plugin - **Header & Footer Templates** (for Elementor theming areas) +* **DHWC Elementor** Plugin - **Product Templates** (for WooCommerce Products) +* [**Kadence WooCommerce Elementor**](https://wordpress.org/plugins/kadence-woocommerce-elementor/) Plugin - **Product Templates** (for WooCommerce Products) +* [**PopBoxes for Elementor**](https://wordpress.org/plugins/modal-for-elementor/) Plugin - **Popups (Templates)** (for Popups, Lightboxes) +* [**StylePress for Elementor**](https://wordpress.org/plugins/full-site-builder-for-elementor/) Plugin - **Styles (Templates)** (for Theme Templates) +* [**Templementor**](https://wordpress.org/plugins/templementor/) Plugin - **Templates** (for Elementor content) +* **Thrive Lightboxes** Plugin - **Lightboxes (Templates)** (for Lightboxes, Popups) +* [**Popup Maker**](https://wordpress.org/plugins/popup-maker/) Plugin - **Popups (Templates)** (for Popups, Lightboxes) +* [**Pods**](https://wordpress.org/plugins/pods/) Plugin - **Templates** (for Post Types, Taxonomies, Fields, etc.) -- Note: the "Templates" Component needs to be enabled in Pods' settings! +* [**WP Show Posts**](https://wordpress.org/plugins/wp-show-posts/) Plugin - **Listings (Templates)** (for Post Listings) +* **JetSmartFilters** Plugin - **Filters** (Templates for Filter Controls, Listings etc.) +* **JetPopup** Plugin - **Popups** (for Popups) +* [**Cherry PopUps**](https://wordpress.org/plugins/cherry-popups/) Plugin - **Popups** (for Popups) +* [**Themify Popup**](https://wordpress.org/plugins/themify-popup/) Plugin - **Popups** (for Popups) +* [**Meta Box Post Types**](https://wordpress.org/plugins/mb-custom-post-type/) Add-On Plugin - **Post Types** (for Post Type registrations) +* [**Meta Box Taxonomy**](https://wordpress.org/plugins/mb-custom-taxonomy/) Add-On Plugin - **Taxonomies** (for Taxonomy registrations) +* [**Content Blocks (Custom Post Widget)**](https://wordpress.org/plugins/custom-post-widget/) Plugin - **Blocks** (for Content) +* [**Reusable Content & Text Blocks (by Loomisoft)**](https://wordpress.org/plugins/loomisoft-content-blocks/) Plugin - **Blocks** (for Content) +* [**Dev Content Blocks**](https://wordpress.org/plugins/dev-content-blocks/) Plugin - **Blocks** (for Content) +* [**Reusable Text Blocks**](https://wordpress.org/plugins/reusable-text-blocks/) Plugin - **Blocks** (for Content, Text) +* [**Widget Content Blocks**](https://wordpress.org/plugins/wysiwyg-widgets/) Plugin - **Blocks** (for Widgets, Content) +* [**Reusable Content Blocks**](https://wordpress.org/plugins/reusable-content-blocks/) Plugin - **Blocks** (for Content, Text, etc.) +* [**Advanced Custom Fields (ACF)**](https://wordpress.org/plugins/advanced-custom-fields/) Plugin (both, free & Pro version) - **Field Groups** (for Custom Fields, Options) +* [**Custom Field Suite**](https://wordpress.org/plugins/custom-field-suite/) Plugin - **Field Groups** (for Custom Fields, Options) +* [**CMB2 Admin Extension**](https://wordpress.org/plugins/cmb2-admin-extension/) Plugin - **Field Groups** (for Custom Fields, Options) +* **Meta Box Builder** and **Meta Box All-In-One (AIO)** Plugins (both Premium) - **Field Groups** (for Custom Fields, Options) +* [**Custom Template for LifterLMS**](https://wordpress.org/plugins/custom-template-lifterlms/) Plugin - **Templates** (for Courses etc.) +* [**Custom Template for LearnDash**](https://wordpress.org/plugins/custom-template-learndash/) Plugin - **Templates** (for Courses etc.) +* [**Opal Widgets for Elementor**](https://wordpress.org/plugins/opal-widgets-for-elementor/) Plugin - **Templates** (for Headers, Footers) +* **Epic News Elements** Plugin - **Templates** (for Posts/ Singular, Archives) +* **Smart Footer System** Plugin - **Templates** (for Footers) +* **Master Popups** Plugin - **Popups** (for Popups) +* [**Easy Content Templates**](https://wordpress.org/plugins/easy-content-templates/) Plugin - **Templates** (for Content) +* [**Simple Content Templates**](https://wordpress.org/plugins/simple-post-template/) Plugin - **Templates** (for Content) +* **Custom Page Templates** Plugin - **Templates** (for Pages, Post Types) / **Post Types** (for Post Type registrations) / **Taxonomies** (for Taxonomy registrations) + += 📦 Supported Gutenberg-specific Plugins (Block Editor) = +* [**Lazy Blocks**](https://wordpress.org/plugins/lazy-blocks/) Plugin - **Blocks** (Templates for Gutenberg Blocks) +* [**Block Lab**](https://wordpress.org/plugins/block-lab/) Plugin - **Blocks** (Templates & Fields for Gutenberg Blocks) +* [**Advanced Custom Blocks**](https://wordpress.org/plugins/advanced-custom-blocks/) Plugin - **Blocks** (Templates & Fields for Gutenberg Blocks) +* [**Blocks Layouts**](https://wordpress.org/plugins/blocks-layouts/) Plugin - **Layouts** (Layouts for Gutenberg Blocks) +* [**Square Happiness: Placeholder Block**](https://wordpress.org/plugins/placeholder-block-square-happiness/) Plugin - **Blocks** (Placeholders/ Templates for Gutenberg Blocks) +* [**Gutenberg Templates (Block Templates)**](https://wordpress.org/plugins/block-templates/) Plugin - **Templates** (Templates for Gutenberg Blocks) + += 👍 Recommended Time Saver = Try [**Toolbar Extras**](https://toolbarextras.com/) my other plugin for Site Builders and admins: Building sites with Elementor? [**Your work will get easier & faster with Toolbar Extras.**](https://wordpress.org/plugins/toolbar-extras/) With extended plugin & theme support baked right in. Of course, "Builder Template Categories" is integrated as well :) * [Plugin Page here on WordPress.org](https://wordpress.org/plugins/toolbar-extras/) * [Plugin's own website toolbarextras.com](https://toolbarextras.com/) * In your WordPress admin dashboard search for `toolbar extras` in the plugin installer ;-) -= Important: Required/ Recommended for plugin usage = -- Required: User has role `Administrator` (needed capability `edit_theme_options`) -- Required: User is logged in (of course) += ℹ️ Important: Required/ Recommended for plugin usage = +* Required: User has role `Administrator` (needed capability `edit_theme_options`) +* Required: User is logged in (of course) -= Translations = -- English (United States) - `en_US` = default, always included -- [German (informal, default)](https://translate.wordpress.org/locale/de/default/wp-plugins/builder-template-categories) - `de_DE` - always included -- [German (formal)](https://translate.wordpress.org/locale/de/formal/wp-plugins/builder-template-categories) - `de_DE_formal` - always included -- [French](https://translate.wordpress.org/locale/fr/default/wp-plugins/builder-template-categories) - `fr_FR` - [by the community, thanks to Bruno Tritsch](https://wp-traduction.com/) -- `.pot` file (`builder-template-categories.pot`) for translators is always included in the plugin's 'languages' folder :) += 🌎 Translations = +* English (United States) - `en_US` = default, always included +* [German (informal, default)](https://translate.wordpress.org/locale/de/default/wp-plugins/builder-template-categories) - `de_DE` - always included +* [German (formal)](https://translate.wordpress.org/locale/de/formal/wp-plugins/builder-template-categories) - `de_DE_formal` - always included +* [French](https://translate.wordpress.org/locale/fr/default/wp-plugins/builder-template-categories) - `fr_FR` - [by the community, thanks to Bruno Tritsch](https://wp-traduction.com/) +* `.pot` file (`builder-template-categories.pot`) for translators is always included in the plugin's 'languages' folder :) -= Be a Contributor = += 👍 Be a Contributor = If you want to translate, [go to the Translation Portal at translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/builder-template-categories). You can also contribute code-wise via our [Builder Template Categories GitHub Repository](https://github.com/deckerweb/builder-template-categories) - and see where you can help. = Documentation and Support = -- If you have any more questions, visit our support on the [Plugin's Forum](https://wordpress.org/support/plugin/builder-template-categories). +* If you have any more questions, visit our support on the [Plugin's Forum](https://wordpress.org/support/plugin/builder-template-categories). -= Liked Builder Template Categories? = -- Then please **rate us 5 stars** on [WordPress.org](https://wordpress.org/support/plugin/builder-template-categories/reviews/?filter=5/#new-post) :) -- Join our [**Facebook User Community Support Group**](https://www.facebook.com/groups/deckerweb.wordpress.plugins/) -- Like our [**Facebook Info Page for Deckerweb Plugins**](https://www.facebook.com/deckerweb.wordpress.plugins/) += ⚡ Liked Builder Template Categories? = +* **Rate us 5 stars** on [WordPress.org](https://wordpress.org/support/plugin/builder-template-categories/reviews/?filter=5/#new-post) :) +* Join our [**Facebook User Community Support Group**](https://www.facebook.com/groups/deckerweb.wordpress.plugins/) +* Like our [**Facebook Info Page for Deckerweb Plugins**](https://www.facebook.com/deckerweb.wordpress.plugins/) +* [**Subscribe to my Newsletter for insider info on this plugin**](https://eepurl.com/gbAUUn), plus tutorials and more stuff on deckerweb WordPress plugins - join a thriving community of site builders! = This Plugin ... = -- ... scratches my own itch! -- ... is *Quality Made in Germany* -- ... was created with love (plus some coffee) :-) - [if you like it consider donating](https://www.paypal.me/deckerweb) +* ... scratches my own itch! +* ... is *Quality Made in Germany* +* ... was created with love (plus some coffee) :-) - [if you like it consider donating](https://www.paypal.me/deckerweb) == Installation == @@ -292,6 +293,27 @@ Or, you can also register your own custom integration (see snippets below) if yo Note: One exception is the new Block Editor coming with WordPress 5.0 (currently available as the "Gutenberg" plugin). The Block Editor has a feature called "Reusable Blocks" and this is already natively integrated with our plugin, "Builder Template Categories". So, once you have Gutenberg or WordPress 5.0+ active you already have one native integration active by default ;-). += Do I still need this plugin since Elementor has its own Category now? = +Good question. If you used our plugin, Builder Template Categories, before it's recommended to use it still to not lose your data and for consistency, of course. You absolutely can run both taxonomies side by side. This plugin always plays nice with others! ;-) + +And, Builder Template Categories, has a **big advantage** over Elementor's own taxonomy: **our taxonomy is global!** This means, it is used by other integrations at the same time - if those are active side by side with Elementor. This "effect" just makes our plugin way more smart and usable. + +**That is especially useful if you work with Elementor, *PLUS* one of these:** + +- GeneratePress Elements (GP Premium) +- Astra Custom Layouts (Astra Pro) +- OceanWP Library +- Page Builder Framework Sections (WPBF Premium) +- Genesis Blox plugin (free or Pro) +- One of the Jet Plugins by Zemez Jet (JetWooBuilder, JetThemeCore, JetListing, JetPopop, JetSmartFilters) +- AnyWhere Elementor plugin (free or Pro) +- Templementor + +If you ask me: In such a case Builder Template Categories has way more power and makes just more sense, also if you're working with a team. + +*Note: Shortly I will also provide ways to disable Elementor's taxonomy if you want.* + + = Can I extend or customize the plugin? = Yes, of course. There are numerous filters built-in, plus the default filters for taxonomies from WordPress Core apply. @@ -312,7 +334,7 @@ function btc_register_custom_integration( array $integrations ) { $submenu_hook = 'your-custom-settings-page'; // as in: your-site.domain/wp-admin/admin.php?page=your-custom-settings-page; // or alternative: $submenu_hook = 'edit.php?post_type=' . $post_type; - $template_label = 'template'; // or: library, layout, element, popup, lightbox, block, listing, post-type, field, box, bar, hook, filter, section + $template_label = 'template'; // or: library, layout, element, popup, lightbox, block, listing, post-type, field, box, bar, hook, filter, section, flow, snippet $integrations[ 'your-custom-handle-lowercase' ] = array( 'label' => __( 'My Custom Templates', 'your-textdomain' ), @@ -384,11 +406,21 @@ As of version 1.4.0 of the plugin the following was achieved: == Changelog == -= 1.4.2 - 2018-12-14 = += ⚡ 1.4.3 - 2019-01-21 = +* New: Additional checks for Block Editor (Gutenberg) integration if one of the popular disabling plugins has disabled it completely (in that case the integration won't be loaded at all!) +* New: Overhauled Elementor integration to be also fully compatible with Elementor 2.4.0 or higher (while still being compatible with older Elementor versions) +* New: Make predefined category terms also available for Elementor built-in "Categories" taxonomy (only for Elementor v2.4.0+) +* New: Added new template content types "Flow/ Flows" and "Snippet/ Snippets" +* New: [Join my newsletter for DECKERWEB WordPress Plugins](https://eepurl.com/gbAUUn) - insider info, plus tutorials and more useful stuff +* Tweak: Updated `.pot` file plus all German translations (formal, informal) and language packs +* Tweak: Enhanced and improved Readme.txt file here - also added new FAQ entry + + += ⚡ 1.4.2 - 2018-12-14 = * Tweak: Moved admin CSS into proper stylesheet, and enqueue it - this fixes issues users have reported -= 1.4.1 - 2018-12-13 = += ⚡ 1.4.1 - 2018-12-13 = * New: Successfully tested with WordPress 5.0.x major release version * New: Added new template content type "Section/ Sections" * Tweak: Make sure our help tab is restricted to our own taxonomy only @@ -397,7 +429,7 @@ As of version 1.4.0 of the plugin the following was achieved: * Tweak: Enhanced and improved Readme.txt file here -= 1.4.0 - 2018-11-21 = += 🎉 1.4.0 - 2018-11-21 = * New: Integration with plugin Epic News Elements (Premium, by Jegtheme) - *an Add-On for Elementor, Block Editor (Gutenberg) and WPBakery Page Builder (old Visual Composer)* * New: Integration with plugin Master Popups (Premium, by CodexHelp) * New: Integration with plugin Block Lab (free, by Block Lab) -- *for WordPress Block Editor, also known as "Gutenberg"* @@ -415,7 +447,7 @@ As of version 1.4.0 of the plugin the following was achieved: * Tweak: Enhanced and improved Readme.txt file here -= 1.3.0 - 2018-10-30 = += 🎉 1.3.0 - 2018-10-30 = * New: Integration with plugin Advanced Custom Fields (ACF) (free & Pro, by Elliot Condon) * New: Integration with plugin Custom Field Suite (free, by Matt Gibbs) * New: Integration with Add-On plugin CMB2 Admin Extension (free, by twoelevenjay) --> Note: This is the UI plugin for the [CMB2 library](https://wordpress.org/plugins/cmb2/) plugin! @@ -434,7 +466,7 @@ As of version 1.4.0 of the plugin the following was achieved: * Tweak: Enhanced and improved Readme.txt file here - also added some new FAQ entries -= 1.2.0 - 2018-10-12 = += 🎉 1.2.0 - 2018-10-12 = * *The Gutenberg Block Editor Support Release ;-)* * New: Integration with "Gutenberg plugin" / (upcoming) WordPress Version 5.0+: Block categories for new default `wp_block` post type, plus admin enhancements - this lets you manage the "reusable blocks" feature better * New: Integration with plugin Lazy Blocks (free, by nK) -- *for WordPress Block Editor, also known as "Gutenberg"* @@ -456,7 +488,7 @@ As of version 1.4.0 of the plugin the following was achieved: * Tweak: Enhanced and improved Readme.txt file here -= 1.1.0 - 2018-09-30 = += 🎉 1.1.0 - 2018-09-30 = * New: Category labels now fit to the content type (post type) of the integration - popup integrations are now labelled as "Popup Categories", and the same for other types like Blocks, Layouts, Elements etc. * New: Integration with Page Builder plugin Themify Builder (Premium, by Themify) - note: this applies only to the premium version of this plugin * New: Integration with plugin JetPopup (free, by Zemez Jet/ CrocoBlock) @@ -479,7 +511,7 @@ As of version 1.4.0 of the plugin the following was achieved: * Tweak: Enhanced and improved Readme.txt file here - also added new FAQ entry -= 1.0.1 - 2018-08-30 = += ⚡ 1.0.1 - 2018-08-30 = * New: Integration with Brizy Templates for Brizy Page Builder - template feature was released in their free version v1.0.25 * New: Added plugin update message also to Plugins page (overview table) * New: French translations by the community @@ -488,25 +520,28 @@ As of version 1.4.0 of the plugin the following was achieved: * Tweak: Enhanced, improved and corrected Readme.txt file here - also tweaked FAQ entry -= 1.0.0 - 2018-08-20 = += 🎉 1.0.0 - 2018-08-20 = * *Official plugin launch on WordPress.org. Everything's new!* * New: Including integration for 15 Plugins: Elementor, AnyWhere Elementor, Header Footer for Elementor, Popup Maker, PopBox for Elementor, Thrive Lightboxes, Oxygen Builder (2.0+), Pods, JetEngine for Elementor, JetWooBuilder for Elementor, DHWC Elementor (WooCommerce Templates), WP Show Posts, BoldGrid Post and Page Builder, WPBakery Page Builder (Visual Composer), Global Blocks for Cornerstone * New: Including integration for 5 Themes: OceanWP, GeneratePress, Astra, Kava Pro (CrocoBlock), Genesis (Blox) * New: Includes a `composer.json` file in the plugin's root folder - this is great for developers using Composer -= 0.9.1 - 2018-08-17 = += ⚡ 0.9.1 - 2018-08-17 = * New: Added [Code Snippets](https://github.com/deckerweb/builder-template-categories/wiki/Code-Snippets) as GitHub Gists * New: Added [short and easy "documentation" as Wiki](https://github.com/deckerweb/builder-template-categories/wiki) in official GitHub repository for the plugin * New: Added integration "WPBakery Page Builder" (the old Visual Composer), via its "Templatera" Add-On plugin -= 0.9.0 - 2018-08-16 = += ⚡ 0.9.0 - 2018-08-16 = * New: Beta release of the plugin on [its public GitHub repository](https://github.com/deckerweb/builder-template-categories) == Upgrade Notice = += 1.4.3 = +New template content types. Elementor 2.4.0 compatibility. - **Update highly recommended!** :-) + = 1.4.2 = New template content type; admin CSS fixes; internal library update; smaller tweaks. - **Update recommended!** :-) @@ -554,7 +589,9 @@ Enjoy using *Builder Template Categories*? **[Please consider making a donation] * [Genesis What's New Info](https://wordpress.org/plugins/genesis-whats-new-info/) * [Genesis Layout Extras](https://wordpress.org/plugins/genesis-layout-extras/) * [Genesis Widgetized Not Found & 404](https://wordpress.org/plugins/genesis-widgetized-notfound/) +* [Genesis Extra Settings Transporter](https://wordpress.org/plugins/genesis-extra-settings-transporter/) * [Genesis Widgetized Footer](https://wordpress.org/plugins/genesis-widgetized-footer/) * [Genesis Widgetized Archive](https://wordpress.org/plugins/genesis-widgetized-archive/) * [Multisite Toolbar Additions](https://wordpress.org/plugins/multisite-toolbar-additions/) -* [Cleaner Plugin Installer](https://wordpress.org/plugins/cleaner-plugin-installer/) \ No newline at end of file +* [Cleaner Plugin Installer](https://wordpress.org/plugins/cleaner-plugin-installer/) +* [*My plugins newsletter*](https://eepurl.com/gbAUUn)