BlossomThemes Toolkit - Version 2.1.2

Version Description

Download this release

Release Info

Developer blossomthemes
Plugin Icon 128x128 BlossomThemes Toolkit
Version 2.1.2
Comparing to
See all releases

Code changes from version 2.1.1 to 2.1.2

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://blossomthemes.com
4
  Tags: toolkit, blossom
5
  Requires at least: 4.3
6
  Tested up to: 5.0.0
7
- Stable tag: 2.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -14,20 +14,20 @@ BlossomThemes Toolkit provides you necessary widgets for better and effective bl
14
 
15
  BlossomThemes Toolkit is a lightweight and safe plugin that generates 12 much-necessary custom widgets. This plugin is optimized for BlossomTheme’s themes but also works great with other themes.
16
 
17
- Following widgets are included in the toolkit:
18
 
19
- Blossom: Advertisement-- This widget lets you add advertisements on your website.
20
- Blossom: Author Bio-- You can place the author bio on sidebars using this widget.
21
- Blossom: Custom Categories-- You can add images to the categories and also display post counts of the selected category using this widget.
22
- Blossom: Facebook Page-- This widget allows you to show your Facebook page on your WordPress website.
23
- Blossom: Image Text-- You can add your favorite image with caption and link with this widget.
24
- Blossom: Pinterest-- This widget lets you show your latest pins on your WordPress website.
25
- Blossom: Popular Post- This widget helps you show popular posts of your website.
26
- Blossom: Posts Category Slider-- You can display the posts of selected category in a slider using this widget.
27
- Blossom: Recent Post-- This widget helps you display recent posts of your website.
28
- Blossom: Snapchat Snapcode-- You can show your Snapchat’s snapcode using this widget.
29
- Blossom: Social Media-- This widget allows you to add social media links on your website.
30
- Blossom: Twitter Feed-- You can now show your twitter news feed right on your website using this widget
31
 
32
 
33
 
@@ -115,4 +115,8 @@ Blossom: Twitter Feed-- You can now show your twitter news feed right on your we
115
  * Fontawesome 5.6.3 updated
116
  * Portfolio responsive design issue fixed
117
 
 
 
 
 
118
 
4
  Tags: toolkit, blossom
5
  Requires at least: 4.3
6
  Tested up to: 5.0.0
7
+ Stable tag: 2.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
14
 
15
  BlossomThemes Toolkit is a lightweight and safe plugin that generates 12 much-necessary custom widgets. This plugin is optimized for BlossomTheme’s themes but also works great with other themes.
16
 
17
+ = Widgets included in BlossomThemes Toolkit =
18
 
19
+ * Blossom: Advertisement-- This widget lets you add advertisements on your website.
20
+ * Blossom: Author Bio-- You can place the author bio on sidebars using this widget.
21
+ * Blossom: Custom Categories-- You can add images to the categories and also display post counts of the selected category using this widget.
22
+ * Blossom: Facebook Page-- This widget allows you to show your Facebook page on your WordPress website.
23
+ * Blossom: Image Text-- You can add your favorite image with caption and link with this widget.
24
+ * Blossom: Pinterest-- This widget lets you show your latest pins on your WordPress website.
25
+ * Blossom: Popular Post- This widget helps you show popular posts of your website.
26
+ * Blossom: Posts Category Slider-- You can display the posts of selected category in a slider using this widget.
27
+ * Blossom: Recent Post-- This widget helps you display recent posts of your website.
28
+ * Blossom: Snapchat Snapcode-- You can show your Snapchat’s snapcode using this widget.
29
+ * Blossom: Social Media-- This widget allows you to add social media links on your website.
30
+ * Blossom: Twitter Feed-- You can now show your twitter news feed right on your website using this widget
31
 
32
 
33
 
115
  * Fontawesome 5.6.3 updated
116
  * Portfolio responsive design issue fixed
117
 
118
+ = 2.1.2 =
119
+ * CSS conflict issue fixed
120
+ * Assets handler corrected
121
+
122
 
admin/class-blossomthemes-toolkit-admin.php CHANGED
@@ -74,7 +74,7 @@ class Blossomthemes_Toolkit_Admin {
74
  */
75
 
76
  wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/blossomthemes-toolkit-admin.css', array(), $this->version, 'all' );
77
- wp_enqueue_style( 'select2', plugin_dir_url( __FILE__ ) . 'css/chosen.min.css', array(), $this->version, 'all' );
78
  wp_enqueue_style( 'wp-color-picker' );
79
  wp_enqueue_style('thickbox');
80
 
@@ -114,7 +114,7 @@ class Blossomthemes_Toolkit_Admin {
114
  wp_localize_script( $this->plugin_name, 'sociconsmsg', array(
115
  'msg' => __( 'Are you sure you want to delete this Social Media?', 'blossomthemes-toolkit' )));
116
 
117
- wp_enqueue_script( 'select2', plugin_dir_url( __FILE__ ) . 'js/chosen.jquery.min.js', array( 'jquery' ), $this->version, true );
118
 
119
  wp_enqueue_script( 'font-awesome', plugin_dir_url( __FILE__ ) . 'js/fontawesome/all.js', array( 'jquery'), '5.6.3', true );
120
  wp_enqueue_script( 'v4-shims', plugin_dir_url( __FILE__ ) . 'js/fontawesome/v4-shims.js', array( 'jquery'), '5.6.3', true );
74
  */
75
 
76
  wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/blossomthemes-toolkit-admin.css', array(), $this->version, 'all' );
77
+ wp_enqueue_style( 'chosen', plugin_dir_url( __FILE__ ) . 'css/chosen.min.css', array(), $this->version, 'all' );
78
  wp_enqueue_style( 'wp-color-picker' );
79
  wp_enqueue_style('thickbox');
80
 
114
  wp_localize_script( $this->plugin_name, 'sociconsmsg', array(
115
  'msg' => __( 'Are you sure you want to delete this Social Media?', 'blossomthemes-toolkit' )));
116
 
117
+ wp_enqueue_script( 'chosen', plugin_dir_url( __FILE__ ) . 'js/chosen.jquery.min.js', array( 'jquery' ), $this->version, true );
118
 
119
  wp_enqueue_script( 'font-awesome', plugin_dir_url( __FILE__ ) . 'js/fontawesome/all.js', array( 'jquery'), '5.6.3', true );
120
  wp_enqueue_script( 'v4-shims', plugin_dir_url( __FILE__ ) . 'js/fontawesome/v4-shims.js', array( 'jquery'), '5.6.3', true );
blossomthemes-toolkit.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: BlossomThemes Toolkit
17
  * Plugin URI: https://wordpress.org/plugins/blossomthemes-toolkit/
18
  * Description: BlossomThemes Toolkit provides you necessary widgets for better and effective blogging.
19
- * Version: 2.1.1
20
  * Author: blossomthemes
21
  * Author URI: https://blossomthemes.com/
22
  * License: GPL-2.0+
@@ -30,7 +30,7 @@ if ( ! defined( 'WPINC' ) ) {
30
  die;
31
  }
32
 
33
- define( 'BTTK_PLUGIN_VERSION', '2.1.1' );
34
  define( 'BTTK_BASE_PATH', dirname( __FILE__ ) );
35
  define( 'BTTK_FILE_PATH', __FILE__ );
36
  define( 'BTTK_FILE_URL', rtrim( plugin_dir_url( __FILE__ ), '/' ) );
16
  * Plugin Name: BlossomThemes Toolkit
17
  * Plugin URI: https://wordpress.org/plugins/blossomthemes-toolkit/
18
  * Description: BlossomThemes Toolkit provides you necessary widgets for better and effective blogging.
19
+ * Version: 2.1.2
20
  * Author: blossomthemes
21
  * Author URI: https://blossomthemes.com/
22
  * License: GPL-2.0+
30
  die;
31
  }
32
 
33
+ define( 'BTTK_PLUGIN_VERSION', '2.1.2' );
34
  define( 'BTTK_BASE_PATH', dirname( __FILE__ ) );
35
  define( 'BTTK_FILE_PATH', __FILE__ );
36
  define( 'BTTK_FILE_URL', rtrim( plugin_dir_url( __FILE__ ), '/' ) );
includes/widgets/widget-custom-categories.php CHANGED
@@ -105,10 +105,6 @@ class Bttk_Custom_Categories extends WP_Widget {
105
  <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'target' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'target' ) ); ?>" type="checkbox" value="1" <?php echo checked($target,1);?> /><?php esc_html_e( 'Open in new Tab', 'blossomthemes-toolkit' ); ?> </label>
106
  </p>
107
  <?php
108
- // echo
109
- // '<script>
110
- // $(".bttk-categories-select-'.$ran.'").siblings(".chosen-container").eq( 1 ).css( "display", "none" );
111
- // </script>';
112
  echo
113
  '<script>
114
  jQuery(document).ready(function($){
@@ -129,29 +125,31 @@ class Bttk_Custom_Categories extends WP_Widget {
129
  </script>';
130
  ?>
131
  <style>
132
- .chosen-container{
133
  width: 100% !important;
134
  margin-bottom: 10px;
135
  }
136
- .chosen-container:nth-of-type(2) {
137
  display: none;
138
- }
139
  </style>
140
- <select name="<?php echo $this->get_field_name( 'categories[]' );?>" class="bttk-categories-select-<?php echo $ran;?>" id="bttk-categories-select-<?php echo $ran;?>" multiple style="width:350px;" tabindex="4">
141
- <?php
142
- $categories = get_categories();
143
- $categories = get_categories( array(
144
- 'orderby' => 'name',
145
- ) );
146
-
147
- foreach ( $categories as $category ) {
148
- printf( '<option value="%1$s">%2$s</option>',
149
- esc_html( $category->term_id ),
150
- esc_html( $category->name )
151
- );
152
- }
153
- ?>
154
- </select>
 
 
155
  <span class="bttk-option-side-note" class="example-text"><?php $bold = '<b>'; $boldclose = '</b>'; echo sprintf( __('To set thumbnail for categories, go to %1$sPosts > Categories%2$s and %3$sEdit%4$s the categories.','blossomthemes-toolkit'), $bold, $boldclose, $bold, $boldclose);?></span>
156
  <?php
157
  }
105
  <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'target' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'target' ) ); ?>" type="checkbox" value="1" <?php echo checked($target,1);?> /><?php esc_html_e( 'Open in new Tab', 'blossomthemes-toolkit' ); ?> </label>
106
  </p>
107
  <?php
 
 
 
 
108
  echo
109
  '<script>
110
  jQuery(document).ready(function($){
125
  </script>';
126
  ?>
127
  <style>
128
+ .bttk-custom-cats .chosen-container{
129
  width: 100% !important;
130
  margin-bottom: 10px;
131
  }
132
+ .bttk-custom-cats .chosen-container:nth-of-type(2) {
133
  display: none;
134
+ }
135
  </style>
136
+ <div class="bttk-custom-cats">
137
+ <select name="<?php echo $this->get_field_name( 'categories[]' );?>" class="bttk-categories-select-<?php echo $ran;?>" id="bttk-categories-select-<?php echo $ran;?>" multiple style="width:350px;" tabindex="4">
138
+ <?php
139
+ $categories = get_categories();
140
+ $categories = get_categories( array(
141
+ 'orderby' => 'name',
142
+ ) );
143
+
144
+ foreach ( $categories as $category ) {
145
+ printf( '<option value="%1$s">%2$s</option>',
146
+ esc_html( $category->term_id ),
147
+ esc_html( $category->name )
148
+ );
149
+ }
150
+ ?>
151
+ </select>
152
+ </div>
153
  <span class="bttk-option-side-note" class="example-text"><?php $bold = '<b>'; $boldclose = '</b>'; echo sprintf( __('To set thumbnail for categories, go to %1$sPosts > Categories%2$s and %3$sEdit%4$s the categories.','blossomthemes-toolkit'), $bold, $boldclose, $bold, $boldclose);?></span>
154
  <?php
155
  }
languages/blossomthemes-toolkit.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: BlossomThemes Toolkit 2.1.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/blossomthemes-toolkit\n"
8
- "POT-Creation-Date: 2019-02-28 11:09:46+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -442,7 +442,7 @@ msgstr ""
442
  msgid "Title:"
443
  msgstr ""
444
 
445
- #: includes/widgets/widget-custom-categories.php:155
446
  msgid ""
447
  "To set thumbnail for categories, go to %1$sPosts > Categories%2$s and "
448
  "%3$sEdit%4$s the categories."
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: BlossomThemes Toolkit 2.1.2\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/blossomthemes-toolkit\n"
8
+ "POT-Creation-Date: 2019-05-13 06:01:18+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
442
  msgid "Title:"
443
  msgstr ""
444
 
445
+ #: includes/widgets/widget-custom-categories.php:153
446
  msgid ""
447
  "To set thumbnail for categories, go to %1$sPosts > Categories%2$s and "
448
  "%3$sEdit%4$s the categories."