Version Description
- Added auto-versioning of the CSS and JavaScript files to avoid cache issues.
Download this release
Release Info
Developer | Arthur Gareginyan |
Plugin | Social Media Follow Buttons Bar |
Version | 4.34 |
Comparing to | |
See all releases |
Code changes from version 4.33 to 4.34
- inc/php/enqueue.php +13 -10
- readme.txt +5 -2
- social-media-buttons-toolbar.php +1 -1
inc/php/enqueue.php
CHANGED
@@ -14,12 +14,13 @@ function spacexchimp_p005_load_scripts_base( $options ) {
|
|
14 |
$slug = SPACEXCHIMP_P005_SLUG;
|
15 |
$prefix = SPACEXCHIMP_P005_PREFIX;
|
16 |
$url = SPACEXCHIMP_P005_URL;
|
|
|
17 |
|
18 |
// Load jQuery library
|
19 |
wp_enqueue_script( 'jquery' );
|
20 |
|
21 |
// Style sheet
|
22 |
-
wp_enqueue_style( $prefix . '-frontend-css', $url . 'inc/css/frontend.css' );
|
23 |
|
24 |
// Dynamic CSS. Create CSS and injected it into the stylesheet
|
25 |
$icon_size = !empty( $options['icon-size'] ) ? esc_textarea( $options['icon-size'] ) : '64';
|
@@ -49,6 +50,7 @@ function spacexchimp_p005_load_scripts_admin( $hook ) {
|
|
49 |
$prefix = SPACEXCHIMP_P005_PREFIX;
|
50 |
$url = SPACEXCHIMP_P005_URL;
|
51 |
$settings = SPACEXCHIMP_P005_SETTINGS;
|
|
|
52 |
|
53 |
// Return if the page is not a settings page of this plugin
|
54 |
$settings_page = 'settings_page_' . $slug;
|
@@ -58,21 +60,21 @@ function spacexchimp_p005_load_scripts_admin( $hook ) {
|
|
58 |
$options = get_option( $settings . '_settings' );
|
59 |
|
60 |
// Bootstrap library
|
61 |
-
wp_enqueue_style( $prefix . '-bootstrap-css', $url . 'inc/lib/bootstrap/bootstrap.css' );
|
62 |
-
wp_enqueue_style( $prefix . '-bootstrap-theme-css', $url . 'inc/lib/bootstrap/bootstrap-theme.css' );
|
63 |
-
wp_enqueue_script( $prefix . '-bootstrap-js', $url . 'inc/lib/bootstrap/bootstrap.js' );
|
64 |
|
65 |
// Font Awesome library
|
66 |
-
wp_enqueue_style( $prefix . '-font-awesome-css', $url . 'inc/lib/font-awesome/css/font-awesome.css', 'screen' );
|
67 |
|
68 |
// Other libraries
|
69 |
-
wp_enqueue_script( $prefix . '-bootstrap-checkbox-js', $url . 'inc/lib/bootstrap-checkbox.js' );
|
70 |
|
71 |
// Style sheet
|
72 |
-
wp_enqueue_style( $prefix . '-admin-css', $url . 'inc/css/admin.css' );
|
73 |
|
74 |
// JavaScript
|
75 |
-
wp_enqueue_script( $prefix . '-admin-js', $url . 'inc/js/admin.js', array(),
|
76 |
|
77 |
// Call the function that contain a basis of scripts
|
78 |
spacexchimp_p005_load_scripts_base( $options );
|
@@ -90,6 +92,7 @@ function spacexchimp_p005_load_scripts_frontend() {
|
|
90 |
$prefix = SPACEXCHIMP_P005_PREFIX;
|
91 |
$url = SPACEXCHIMP_P005_URL;
|
92 |
$settings = SPACEXCHIMP_P005_SETTINGS;
|
|
|
93 |
|
94 |
// Read options from database
|
95 |
$options = get_option( $settings . '_settings' );
|
@@ -98,8 +101,8 @@ function spacexchimp_p005_load_scripts_frontend() {
|
|
98 |
spacexchimp_p005_load_scripts_base( $options );
|
99 |
|
100 |
// Other libraries
|
101 |
-
wp_enqueue_style( $prefix . '-bootstrap-tooltip-css', $url . 'inc/lib/bootstrap-tooltip/bootstrap-tooltip.css' );
|
102 |
-
wp_enqueue_script( $prefix . '-bootstrap-tooltip-js', $url . 'inc/lib/bootstrap-tooltip/bootstrap-tooltip.js' );
|
103 |
|
104 |
}
|
105 |
add_action( 'wp_enqueue_scripts', 'spacexchimp_p005_load_scripts_frontend' );
|
14 |
$slug = SPACEXCHIMP_P005_SLUG;
|
15 |
$prefix = SPACEXCHIMP_P005_PREFIX;
|
16 |
$url = SPACEXCHIMP_P005_URL;
|
17 |
+
$version = SPACEXCHIMP_P005_VERSION;
|
18 |
|
19 |
// Load jQuery library
|
20 |
wp_enqueue_script( 'jquery' );
|
21 |
|
22 |
// Style sheet
|
23 |
+
wp_enqueue_style( $prefix . '-frontend-css', $url . 'inc/css/frontend.css', array(), $version, 'all' );
|
24 |
|
25 |
// Dynamic CSS. Create CSS and injected it into the stylesheet
|
26 |
$icon_size = !empty( $options['icon-size'] ) ? esc_textarea( $options['icon-size'] ) : '64';
|
50 |
$prefix = SPACEXCHIMP_P005_PREFIX;
|
51 |
$url = SPACEXCHIMP_P005_URL;
|
52 |
$settings = SPACEXCHIMP_P005_SETTINGS;
|
53 |
+
$version = SPACEXCHIMP_P005_VERSION;
|
54 |
|
55 |
// Return if the page is not a settings page of this plugin
|
56 |
$settings_page = 'settings_page_' . $slug;
|
60 |
$options = get_option( $settings . '_settings' );
|
61 |
|
62 |
// Bootstrap library
|
63 |
+
wp_enqueue_style( $prefix . '-bootstrap-css', $url . 'inc/lib/bootstrap/bootstrap.css', array(), $version, 'all' );
|
64 |
+
wp_enqueue_style( $prefix . '-bootstrap-theme-css', $url . 'inc/lib/bootstrap/bootstrap-theme.css', array(), $version, 'all' );
|
65 |
+
wp_enqueue_script( $prefix . '-bootstrap-js', $url . 'inc/lib/bootstrap/bootstrap.js', array(), $version, false );
|
66 |
|
67 |
// Font Awesome library
|
68 |
+
wp_enqueue_style( $prefix . '-font-awesome-css', $url . 'inc/lib/font-awesome/css/font-awesome.css', array(), $version, 'screen' );
|
69 |
|
70 |
// Other libraries
|
71 |
+
wp_enqueue_script( $prefix . '-bootstrap-checkbox-js', $url . 'inc/lib/bootstrap-checkbox.js', array(), $version, false );
|
72 |
|
73 |
// Style sheet
|
74 |
+
wp_enqueue_style( $prefix . '-admin-css', $url . 'inc/css/admin.css', array(), $version, 'all' );
|
75 |
|
76 |
// JavaScript
|
77 |
+
wp_enqueue_script( $prefix . '-admin-js', $url . 'inc/js/admin.js', array(), $version, true );
|
78 |
|
79 |
// Call the function that contain a basis of scripts
|
80 |
spacexchimp_p005_load_scripts_base( $options );
|
92 |
$prefix = SPACEXCHIMP_P005_PREFIX;
|
93 |
$url = SPACEXCHIMP_P005_URL;
|
94 |
$settings = SPACEXCHIMP_P005_SETTINGS;
|
95 |
+
$version = SPACEXCHIMP_P005_VERSION;
|
96 |
|
97 |
// Read options from database
|
98 |
$options = get_option( $settings . '_settings' );
|
101 |
spacexchimp_p005_load_scripts_base( $options );
|
102 |
|
103 |
// Other libraries
|
104 |
+
wp_enqueue_style( $prefix . '-bootstrap-tooltip-css', $url . 'inc/lib/bootstrap-tooltip/bootstrap-tooltip.css', array(), $version, 'all' );
|
105 |
+
wp_enqueue_script( $prefix . '-bootstrap-tooltip-js', $url . 'inc/lib/bootstrap-tooltip/bootstrap-tooltip.js', array(), $version, false );
|
106 |
|
107 |
}
|
108 |
add_action( 'wp_enqueue_scripts', 'spacexchimp_p005_load_scripts_frontend' );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: icon, icon set, button, social, media, social button, social media, social
|
|
4 |
Donate link: https://www.spacexchimp.com/donate.html
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 4.
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -279,10 +279,13 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
279 |
|
280 |
== Changelog ==
|
281 |
|
|
|
|
|
|
|
282 |
= 4.33 =
|
283 |
* The 'list.php' file replaced with the 'items.php'.
|
284 |
* Added callback function for getting a list of all buttons.
|
285 |
-
* The 'smbt-social-icons' class renamed to 'sxc-follow-buttons'.
|
286 |
* CSS code in the file 'admin.css' is optimized.
|
287 |
* CSS code in the file 'frontend.css' is optimized.
|
288 |
* The '_tollbar()' function is improved.
|
4 |
Donate link: https://www.spacexchimp.com/donate.html
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 4.34
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
279 |
|
280 |
== Changelog ==
|
281 |
|
282 |
+
= 4.34 =
|
283 |
+
* Added auto-versioning of the CSS and JavaScript files to avoid cache issues.
|
284 |
+
|
285 |
= 4.33 =
|
286 |
* The 'list.php' file replaced with the 'items.php'.
|
287 |
* Added callback function for getting a list of all buttons.
|
288 |
+
* The 'smbt-social-icons' CSS class renamed to 'sxc-follow-buttons'.
|
289 |
* CSS code in the file 'admin.css' is optimized.
|
290 |
* CSS code in the file 'frontend.css' is optimized.
|
291 |
* The '_tollbar()' function is improved.
|
social-media-buttons-toolbar.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Easily add the smart bar with social media follow buttons (not share, only link to your profiles) to any place of your WordPress website.
|
6 |
* Author: Space X-Chimp
|
7 |
* Author URI: https://www.spacexchimp.com
|
8 |
-
* Version: 4.
|
9 |
* License: GPL3
|
10 |
* Text Domain: social-media-buttons-toolbar
|
11 |
* Domain Path: /languages/
|
5 |
* Description: Easily add the smart bar with social media follow buttons (not share, only link to your profiles) to any place of your WordPress website.
|
6 |
* Author: Space X-Chimp
|
7 |
* Author URI: https://www.spacexchimp.com
|
8 |
+
* Version: 4.34
|
9 |
* License: GPL3
|
10 |
* Text Domain: social-media-buttons-toolbar
|
11 |
* Domain Path: /languages/
|