Skip to content

Commit

Permalink
v1.3.0 of the plugin
Browse files Browse the repository at this point in the history
- 10 new integrations
- improved Block Editor / Gutenberg / WP 5.0 support
- internal code tweaks and improvements
  • Loading branch information
deckerweb committed Oct 30, 2018
1 parent 6a910b3 commit a1dcae4
Show file tree
Hide file tree
Showing 31 changed files with 1,734 additions and 470 deletions.
18 changes: 18 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@

## Changelog of the Plugin

### 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!
* New: Integration with Add-On plugins Meta Box Builder and Meta Box All-In-One (AIO) (both Premium, by Meta Box) --> Note: This is the UI plugin for the [Meta Box](https://wordpress.org/plugins/meta-box/) (fields) plugin!
* New: Integration with plugin Custom Template for LifterLMS (free, by Brainstorm Force)
* New: Integration with plugin Custom Template for LearnDash (free, by Brainstorm Force)
* New: Integration with plugin Opal Widgets for Elementor (free, by WpOpal) - for Header and Footer templates
* New: Integration with plugin Reusable Content Blocks (free, by Safeer)
* New: Integration with plugin JetSmartFilters (Premium, by Zemez Jet/ CrocoBlock)
* New: Added new template content type "Filter/ Filters"
* New: Successfully tested with WordPress 5.0 Beta 1
* Tweak: Updated bundled library DDWlib Plugin Installer Recommendations to latest version (v1.2.0) - which brings enhanced CSS styles, including for the "Dark Mode" plugin
* Tweak: Updated `.pot` file plus all German translations (formal, informal) and language packs
* Tweak: Enhanced and improved Readme.txt file here - also added some new FAQ entries


### 1.2.0 - 2018-10-12

* *The Gutenberg Block Editor Support Release ;-)*
Expand Down
128 changes: 97 additions & 31 deletions README.md

Large diffs are not rendered by default.

Binary file added assets/wporg/screenshot-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/wporg/screenshot-11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions builder-template-categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* Plugin Name: Builder Template Categories
* Plugin URI: https://github.com/deckerweb/builder-template-categories
* Description: This plugin adds a Taxonomy "Template Category" for categorizing templates to make the life of site builders a little bit easier. It integrates with Elementor My Templates, OceanWP My Library, Astra Custom Layouts, GeneratePress Elements, Blox for Genesis, AnyWhere Elementor Global Templates and JetThemeCore My Library (Kava Pro/ CrocoBlock). These categories only appear in the WP-Admin Dashboard and only for the administrator user role (capability 'edit_theme_options').
* Version: 1.2.0
* Version: 1.3.0
* Author: David Decker - DECKERWEB
* Author URI: https://deckerweb.de/
* License: GPL-2.0+
* License: GPL-2.0-or-later
* License URI: https://opensource.org/licenses/GPL-2.0
* Text Domain: builder-template-categories
* Domain Path: /languages/
Expand All @@ -40,7 +40,7 @@
* @since 1.0.0
*/
/** Plugin version */
define( 'BTC_PLUGIN_VERSION', '1.2.0' );
define( 'BTC_PLUGIN_VERSION', '1.3.0' );

/** Plugin directory */
define( 'BTC_PLUGIN_DIR', trailingslashit( dirname( __FILE__ ) ) );
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"keywords": ["templates", "categories", "template", "category", "elementor", "page builder", "pods", "astra", "generatepress", "oceanwp", "crocoblock"],
"type": "wordpress-plugin",
"homepage": "https://github.com/deckerweb/builder-template-categories",
"license": "GPL-2.0+",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "David Decker",
Expand Down
59 changes: 57 additions & 2 deletions includes/admin/admin-extras.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,63 @@ function ddw_btc_register_extra_plugin_recommendations( array $plugins ) {
'popular' => 'no',
);

/** Return filtered array */
return $plugins;
/** Register additional Elementor plugin recommendations */
$plugins_elementor = array();

if ( ddw_btc_is_elementor_active() ) {

$plugins_elementor = array(
'anywhere-elementor' => array(
'featured' => 'yes',
'recommended' => 'yes',
'popular' => 'yes',
),
'templementor' => array(
'featured' => 'yes',
'recommended' => 'yes',
'popular' => 'no',
),
);

} // end if

/** Register additional Block Editor (Gutenberg) plugin recommendations */
$plugins_block_editor = array();

if ( ddw_btc_is_block_editor_active() ) {

$plugins_block_editor = array(
'classic-editor' => array(
'featured' => 'yes',
'recommended' => 'yes',
'popular' => 'yes',
),
'classic-editor-addon' => array(
'featured' => 'yes',
'recommended' => 'yes',
'popular' => 'yes',
),
'block-builder' => array(
'featured' => 'yes',
'recommended' => 'yes',
'popular' => 'yes',
),
'custom-fields-gutenberg' => array(
'featured' => 'yes',
'recommended' => 'yes',
'popular' => 'no',
),
'manager-for-gutenberg' => array(
'featured' => 'no',
'recommended' => 'yes',
'popular' => 'no',
),
);

} // end if

/** Merge with the existing recommendations and return */
return array_merge( $plugins, $plugins_elementor, $plugins_block_editor );

} // end function

Expand Down
63 changes: 62 additions & 1 deletion includes/admin/ddwlib-plugin-installer-recommendations.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @package DDWlib Plugin Installer Recommendations
* @author David Decker
* @license http://www.gnu.org/licenses GNU General Public License
* @version 1.1.0
* @version 1.2.0
* @link https://github.com/deckerweb/ddwlib-plugin-installer-recommendations
*/

Expand Down Expand Up @@ -482,6 +482,7 @@ static function plugin_install_action_links( $action_links, $plugin ) {
* - Theme uploader
*
* @since 1.1.0
* @since 1.2.0 Added more styles for plugin cards. Dark mode support.
*/
static function installer_styles() {

Expand Down Expand Up @@ -512,6 +513,57 @@ static function installer_styles() {
margin-left: 10px;
}

.dark-mode .plugin-card:hover {
background: #404C58 !important;
border-color: #090909 !important;
}
.dark-mode .plugin-card:hover > .plugin-card-bottom {
background: #111921 !important;
}
.dark-mode .plugin-action-buttons div small {
color: #bbc8d4;
}

/** Plugin cards: buttons */
#wpwrap .plugin-action-buttons .button-disabled {
background-color: #d9edc2 !important;
border-color: #b2ce96 !important;
color: #555 !important;
}
.plugin-action-buttons .update-now,
.plugin-action-buttons .install-now.updating-message {
background-color: #fef5c4;
}
.plugin-action-buttons .activate-now,
.plugin-action-buttons .activate-now:focus,
.dark-mode .plugin-action-buttons .activate-now,
.dark-mode .plugin-action-buttons .activate-now:focus, {
background-color: #e2e2f9;
border-color: #bebde9;
color: #333;
}
.plugin-action-buttons a.activate-now:before {
color: #999; /* #f56e28; */
content: "\f106";
display: inline-block;
font: 400 20px/1 dashicons;
margin: 3px 5px 0 -2px;
speak: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
vertical-align: top;
}

/** Plugin cards: compatibility */
.plugin-card .compatibility-compatible:before,
.plugin-card .compatibility-compatible strong {
color: #0b0 !important;
}
.plugin-card .compatibility-incompatible:before,
.plugin-card .compatibility-incompatible strong {
color: #f00 !important;
}

/** Plugin & Theme uploaders */
.upload-plugin .wp-upload-form,
.upload-theme .wp-upload-form {
Expand Down Expand Up @@ -539,6 +591,15 @@ static function installer_styles() {
font-size: 120%;
margin-top: 20px;
}
.dark-mode input#pluginzip,
.dark-mode input#themezip {
background-color: #404C58;
border-color: #23282d;
}
.dark-mode input#pluginzip:hover,
.dark-mode input#themezip:hover {
background-color: #50626f;
}
</style>
<?php

Expand Down
Loading

0 comments on commit a1dcae4

Please sign in to comment.