Social Media Follow Buttons Bar - Version 4.37

Version Description

  • Fixed a bug due to which the links in buttons are disappeared.
Download this release

Release Info

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

Code changes from version 4.36 to 4.37

inc/php/functional.php CHANGED
@@ -13,6 +13,7 @@ function spacexchimp_p005_tollbar() {
13
  // Read options from database and declare variables
14
  $options = get_option( SPACEXCHIMP_P005_SETTINGS . '_settings' );
15
  $selected = !empty( $options['buttons-selected'] ) ? $options['buttons-selected'] : array();
 
16
 
17
  // Get the array with all buttons
18
  $items_all = spacexchimp_p005_get_items_all();
@@ -32,12 +33,12 @@ function spacexchimp_p005_tollbar() {
32
  foreach ( $items_all as $item ) {
33
  $slug = !empty( $item['slug'] ) ? $item['slug'] : '';
34
  $label = !empty( $item['label'] ) ? $item['label'] : '';
35
- $content = !empty( $item['content'] ) ? $item['content'] : '';
36
  if ( !empty( $selected[$slug] ) ) {
37
  $icon = SPACEXCHIMP_P005_URL . "inc/img/social-media-icons/$slug.png";
38
  $toolbar_arr[] = '<li>
39
  <a
40
- href="' . $content . '"
41
  ' . $tooltips . '
42
  title="' . $label . '"
43
  ' . $new_tab . '
13
  // Read options from database and declare variables
14
  $options = get_option( SPACEXCHIMP_P005_SETTINGS . '_settings' );
15
  $selected = !empty( $options['buttons-selected'] ) ? $options['buttons-selected'] : array();
16
+ $links = !empty( $options['buttons-link'] ) ? $options['buttons-link'] : array();
17
 
18
  // Get the array with all buttons
19
  $items_all = spacexchimp_p005_get_items_all();
33
  foreach ( $items_all as $item ) {
34
  $slug = !empty( $item['slug'] ) ? $item['slug'] : '';
35
  $label = !empty( $item['label'] ) ? $item['label'] : '';
36
+ $link = !empty( $links[$slug] ) ? $links[$slug] : '';
37
  if ( !empty( $selected[$slug] ) ) {
38
  $icon = SPACEXCHIMP_P005_URL . "inc/img/social-media-icons/$slug.png";
39
  $toolbar_arr[] = '<li>
40
  <a
41
+ href="' . $link . '"
42
  ' . $tooltips . '
43
  title="' . $label . '"
44
  ' . $new_tab . '
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.36
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -280,6 +280,9 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
280
 
281
  == Changelog ==
282
 
 
 
 
283
  = 4.36 =
284
  * The plugin became much faster due to the decrease in the number of requests to the database.
285
  * A new option is added to the plugin settings page, allowing the user to select the desired buttons.
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.37
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
280
 
281
  == Changelog ==
282
 
283
+ = 4.37 =
284
+ * Fixed a bug due to which the links in buttons are disappeared.
285
+
286
  = 4.36 =
287
  * The plugin became much faster due to the decrease in the number of requests to the database.
288
  * A new option is added to the plugin settings page, allowing the user to select the desired buttons.
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.36
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.37
9
  * License: GPL3
10
  * Text Domain: social-media-buttons-toolbar
11
  * Domain Path: /languages/