Social Media Follow Buttons Bar - Version 3.1

Version Description

  • Added prefixes to the stylesheet and script names when using wp_enqueue_style() and wp_enqueue_script().
  • Added constant for storing the plugin version number.
Download this release

Release Info

Developer Arthur Gareginyan
Plugin Icon 128x128 Social Media Follow Buttons Bar
Version 3.1
Comparing to
See all releases

Code changes from version 3.0 to 3.1

Files changed (2) hide show
  1. readme.txt +4 -1
  2. social-media-buttons-toolbar.php +11 -9
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: icon, icon set, button, social, media, social button, social media, social
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
5
  Requires at least: 3.9
6
  Tested up to: 4.6
7
- Stable tag: 3.0
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -169,6 +169,9 @@ Icon meetvibe.png by [Arthur Gareginyan](http://www.arthurgareginyan.com) and li
169
  * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/social-media-buttons-toolbar)
170
 
171
  == Changelog ==
 
 
 
172
  = 3.0 =
173
  * The structure of files changed.
174
  * Style sheet of settings page improved and better commented.
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
5
  Requires at least: 3.9
6
  Tested up to: 4.6
7
+ Stable tag: 3.1
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
169
  * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/social-media-buttons-toolbar)
170
 
171
  == Changelog ==
172
+ = 3.1 =
173
+ * Added prefixes to the stylesheet and script names when using wp_enqueue_style() and wp_enqueue_script().
174
+ * Added constant for storing the plugin version number.
175
  = 3.0 =
176
  * The structure of files changed.
177
  * Style sheet of settings page improved and better commented.
social-media-buttons-toolbar.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Easily add the smart toolbar with social media buttons (not share, only link to your profiles) to any place of your WordPress website.
6
  * Author: Arthur Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
- * Version: 3.0
9
  * License: GPL3
10
  * Text Domain: social-media-buttons-toolbar
11
  * Domain Path: /languages/
@@ -29,6 +29,7 @@
29
  *
30
  */
31
 
 
32
  /**
33
  * Prevent Direct Access
34
  *
@@ -37,14 +38,15 @@
37
  defined('ABSPATH') or die("Restricted access!");
38
 
39
  /**
40
- * Define constants
41
  *
42
- * @since 2.0
43
  */
44
  defined('SMEDIABT_DIR') or define('SMEDIABT_DIR', dirname(plugin_basename(__FILE__)));
45
  defined('SMEDIABT_BASE') or define('SMEDIABT_BASE', plugin_basename(__FILE__));
46
  defined('SMEDIABT_URL') or define('SMEDIABT_URL', plugin_dir_url(__FILE__));
47
  defined('SMEDIABT_PATH') or define('SMEDIABT_PATH', plugin_dir_path(__FILE__));
 
48
 
49
  /**
50
  * Register text domain
@@ -93,7 +95,7 @@ require_once( SMEDIABT_PATH . 'inc/php/settings_page.php' );
93
  /**
94
  * Load scripts and style sheet for settings page
95
  *
96
- * @since 3.0
97
  */
98
  function smbtoolbar_load_scripts($hook) {
99
 
@@ -103,13 +105,13 @@ function smbtoolbar_load_scripts($hook) {
103
  }
104
 
105
  // Style sheet
106
- wp_enqueue_style( 'admin-css', SMEDIABT_URL . 'inc/css/admin.css' );
107
- wp_enqueue_style( 'bootstrap', SMEDIABT_URL . 'inc/css/bootstrap.css' );
108
- wp_enqueue_style( 'bootstrap-theme', SMEDIABT_URL . 'inc/css/bootstrap-theme.css' );
109
 
110
  // JavaScript
111
- wp_enqueue_script( 'admin-js', SMEDIABT_URL . 'inc/js/admin.js', array(), false, true );
112
- wp_enqueue_script( 'bootstrap-checkbox', SMEDIABT_URL . 'inc/js/bootstrap-checkbox.min.js' );
113
 
114
  }
115
  add_action( 'admin_enqueue_scripts', 'smbtoolbar_load_scripts' );
5
  * Description: Easily add the smart toolbar with social media buttons (not share, only link to your profiles) to any place of your WordPress website.
6
  * Author: Arthur Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
+ * Version: 3.1
9
  * License: GPL3
10
  * Text Domain: social-media-buttons-toolbar
11
  * Domain Path: /languages/
29
  *
30
  */
31
 
32
+
33
  /**
34
  * Prevent Direct Access
35
  *
38
  defined('ABSPATH') or die("Restricted access!");
39
 
40
  /**
41
+ * Define global constants
42
  *
43
+ * @since 3.1
44
  */
45
  defined('SMEDIABT_DIR') or define('SMEDIABT_DIR', dirname(plugin_basename(__FILE__)));
46
  defined('SMEDIABT_BASE') or define('SMEDIABT_BASE', plugin_basename(__FILE__));
47
  defined('SMEDIABT_URL') or define('SMEDIABT_URL', plugin_dir_url(__FILE__));
48
  defined('SMEDIABT_PATH') or define('SMEDIABT_PATH', plugin_dir_path(__FILE__));
49
+ defined('SMEDIABT_VERSION') or define('SMEDIABT_VERSION', '3.1');
50
 
51
  /**
52
  * Register text domain
95
  /**
96
  * Load scripts and style sheet for settings page
97
  *
98
+ * @since 3.1
99
  */
100
  function smbtoolbar_load_scripts($hook) {
101
 
105
  }
106
 
107
  // Style sheet
108
+ wp_enqueue_style( 'smbtoolbar-admin-css', SMEDIABT_URL . 'inc/css/admin.css' );
109
+ wp_enqueue_style( 'smbtoolbar-bootstrap', SMEDIABT_URL . 'inc/css/bootstrap.css' );
110
+ wp_enqueue_style( 'smbtoolbar-bootstrap-theme', SMEDIABT_URL . 'inc/css/bootstrap-theme.css' );
111
 
112
  // JavaScript
113
+ wp_enqueue_script( 'smbtoolbar-admin-js', SMEDIABT_URL . 'inc/js/admin.js', array(), false, true );
114
+ wp_enqueue_script( 'smbtoolbar-bootstrap-checkbox', SMEDIABT_URL . 'inc/js/bootstrap-checkbox.min.js' );
115
 
116
  }
117
  add_action( 'admin_enqueue_scripts', 'smbtoolbar_load_scripts' );