Skip to content

Commit

Permalink
v1.4.2 of the plugin
Browse files Browse the repository at this point in the history
important tweak and fix for admin CSS
  • Loading branch information
deckerweb committed Dec 13, 2018
1 parent 73a68ba commit 2e28aab
Show file tree
Hide file tree
Showing 24 changed files with 129 additions and 60 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@

## Changelog of the Plugin

### 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

* New: Successfully tested with WordPress 5.0.x major release version
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
**Requires at least:** 4.7
**Tested up to:** 5.0
**Requires PHP:** 5.6
**Stable tag:** 1.4.1
**Stable tag:** 1.4.2
**License:** GPL-2.0-or-later
**License URI:** https://opensource.org/licenses/GPL-2.0

Expand Down Expand Up @@ -437,6 +437,10 @@ As of version 1.3.0 of the plugin the following was achieved:

## Changelog

### 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
* New: Successfully tested with WordPress 5.0.x major release version
* New: Added new template content type "Section/ Sections"
Expand Down Expand Up @@ -556,6 +560,10 @@ As of version 1.3.0 of the plugin the following was achieved:

## Upgrade Notice

### 1.4.2
New template content type; admin CSS fixes; internal library update; smaller tweaks. - **Update recommended!** :-)


### 1.4.1
New template content type; internal library update; smaller tweaks. - **Update recommended!** :-)

Expand Down
File renamed without changes
Binary file added assets-repos/wordpress-org/banner-1544x500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
72 changes: 72 additions & 0 deletions assets/css/btc-help.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/**
* // assets/css/btc-help
* @package Builder Template Categories - Assets
* @since 1.0.0
* @since 1.4.2 Moved to own CSS file; enhanced styles.
*/

/* Builder Template Categories - Taxonomy Edit Page
------------------------------------------------------------ */

/** Dashicons commons */

#tab-link-btc-edit-help a:before {
display: inline-block;
-webkit-font-smoothing: antialiased;
font-family: 'dashicons';
font-weight: 400;
vertical-align: top;
}


/** Our help tab */

#tab-link-btc-edit-help a:before {
clear: left;
content: "\f106";
float: left;
margin: 1px 5px 25px -3px;
}

#tab-panel-btc-edit-help .dashicons-before:before {
margin-right: 3px;
vertical-align: top;
}


/** Help tab content */

.btc-help-version {
opacity: .6;
}

.help-tab-content .btc-help-integrations-group li {
list-style: none;
}

.btc-help-integrations-list small code {
font-size: 80%;
}

.btc-help-sidebar-icons:before {
margin-right: 4px;
text-decoration: none !important;
}

.btc-help-notice.dashicons-info:before {
clear: left;
float: left;
font-size: 20px;
margin-right: 10px !important;
margin-top: 3px;
opacity: .77;
}

.btc-help-notice {
margin-left: 9px;
padding: 5px 10px;
}

.btc.dashicons-thumbs-up:before {
margin-top: 2px;
}
4 changes: 4 additions & 0 deletions assets/css/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
/**
* Do not modify the files in this folder.
*/
4 changes: 2 additions & 2 deletions builder-template-categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* 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.4.1
* Version: 1.4.2
* Author: David Decker - DECKERWEB
* Author URI: https://deckerweb.de/
* License: GPL-2.0-or-later
Expand Down Expand Up @@ -40,7 +40,7 @@
* @since 1.0.0
*/
/** Plugin version */
define( 'BTC_PLUGIN_VERSION', '1.4.1' );
define( 'BTC_PLUGIN_VERSION', '1.4.2' );

/** Plugin directory */
define( 'BTC_PLUGIN_DIR', trailingslashit( dirname( __FILE__ ) ) );
Expand Down
85 changes: 29 additions & 56 deletions includes/admin/admin-help.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,30 @@ function ddw_btc_term_edit_info( $tag, $taxonomy = 'builder-template-category' )
} // end function


//add_action( 'admin_enqueue_scripts', 'ddw_btc_register_styles_help_tabs', 20 );
/**
* Register CSS styles for our help tabs.
* Note: The hook is executed in ddw_btc_load_content_help().
*
* @since 1.4.2
*
* @see ddw_btc_load_content_help()
*/
function ddw_btc_register_styles_help_tabs() {

wp_register_style(
'btc-help-tabs',
plugins_url( '/assets/css/btc-help.css', dirname( dirname( __FILE__ ) ) ),
array(),
BTC_PLUGIN_VERSION,
'screen'
);

wp_enqueue_style( 'btc-help-tabs' );

} // end function


/**
* Determine if the current screen is a post type edit screen of an active
* integration.
Expand Down Expand Up @@ -144,6 +168,7 @@ function ddw_btc_is_taxonomy_edit_screen( $current_screen ) {
* Load on edit screens for our supported hook engine's post types.
*
* @since 1.1.0
* @since 1.4.2 Added style enqueuing hook.
*
* @see ddw_btc_content_help()
*
Expand Down Expand Up @@ -172,6 +197,9 @@ function ddw_btc_load_content_help() {
/** Optionally add Thickbox JS & CSS (for video content) */
add_thickbox();

/** CSS style tweaks */
add_action( 'admin_enqueue_scripts', 'ddw_btc_register_styles_help_tabs', 20 );

} // end if

} // end function
Expand All @@ -182,6 +210,7 @@ function ddw_btc_load_content_help() {
* Load on edit screens for our supported hook engine's post types.
*
* @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()
Expand Down Expand Up @@ -210,62 +239,6 @@ function ddw_btc_content_help() {
/** Add additional help sidebar */
$GLOBALS[ 'btc_edit_screen' ]->set_help_sidebar( ddw_btc_content_help_sidebar() );

/** Some subtle CSS styling additions ... ;-) */
?>
<style type='text/css'>
/** Dashicons commons */
#tab-link-btc-edit-help a:before {
display: inline-block;
-webkit-font-smoothing: antialiased;
font-family: 'dashicons';
font-weight: 400;
vertical-align: top;
}

/** Our help tab */
#tab-link-btc-edit-help a:before {
clear: left;
content: "\f106";
float: left;
margin: 1px 5px 25px -3px;
}
#tab-panel-btc-edit-help .dashicons-before:before {
margin-right: 3px;
vertical-align: top;
}

/** Help tab content */
.btc-help-version {
opacity: .6;
}
.help-tab-content .btc-help-integrations-group li {
list-style: none;
}
.btc-help-integrations-list small code {
font-size: 80%;
}
.btc-help-sidebar-icons:before {
margin-right: 4px;
text-decoration: none !important;
}
.btc-help-notice.dashicons-info:before {
clear: left;
float: left;
font-size: 20px;
margin-right: 10px !important;
margin-top: 3px;
opacity: .77;
}
.btc-help-notice {
margin-left: 9px;
padding: 5px 10px;
}
.btc.dashicons-thumbs-up:before {
margin-top: 2px;
}
</style>
<?php

} // end function


Expand Down
9 changes: 8 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: elementor, page builder, templates, gutenberg, blocks, oceanwp, astra, gen
Requires at least: 4.7
Tested up to: 5.0
Requires PHP: 5.6
Stable tag: 1.4.1
Stable tag: 1.4.2
License: GPL-2.0-or-later
License URI: https://opensource.org/licenses/GPL-2.0

Expand Down Expand Up @@ -384,6 +384,10 @@ As of version 1.4.0 of the plugin the following was achieved:

== Changelog ==

= 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 =
* New: Successfully tested with WordPress 5.0.x major release version
* New: Added new template content type "Section/ Sections"
Expand Down Expand Up @@ -503,6 +507,9 @@ As of version 1.4.0 of the plugin the following was achieved:

== Upgrade Notice =

= 1.4.2 =
New template content type; admin CSS fixes; internal library update; smaller tweaks. - **Update recommended!** :-)

= 1.4.1 =
New template content type; internal library update; smaller tweaks. - **Update recommended!** :-)

Expand Down

0 comments on commit 2e28aab

Please sign in to comment.