Social Media Follow Buttons Bar - Version 3.8.1

Version Description

  • Added "!important" declarations to stylesheet in order to fix compatibility issues with some themes.
  • Fixed error "Use of undefined constant SSTOPB_TEXT...".
  • Readme for translations updated.
Download this release

Release Info

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

Code changes from version 3.8 to 3.8.1

inc/php/settings_page.php CHANGED
@@ -10,7 +10,7 @@ defined('ABSPATH') or die("Restricted access!");
10
  /**
11
  * Render Settings Page
12
  *
13
- * @since 3.8
14
  */
15
  function smbtoolbar_render_submenu_page() {
16
 
@@ -299,15 +299,15 @@ function smbtoolbar_render_submenu_page() {
299
  <ul>
300
  <li>
301
  <input type="radio" name="smbtoolbar_settings[alignment]" value="left" <?php checked('left', $alignment); ?> >
302
- <?php _e( 'Left', SSTOPB_TEXT ); ?>
303
  </li>
304
  <li>
305
  <input type="radio" name="smbtoolbar_settings[alignment]" value="center" <?php checked('', $alignment); ?> <?php checked('center', $alignment); ?> >
306
- <?php _e( 'Center', SSTOPB_TEXT ); ?>
307
  </li>
308
  <li>
309
  <input type="radio" name="smbtoolbar_settings[alignment]" value="right" <?php checked('right', $alignment); ?> >
310
- <?php _e( 'Right', SSTOPB_TEXT ); ?>
311
  </li>
312
  </ul>
313
  </td>
10
  /**
11
  * Render Settings Page
12
  *
13
+ * @since 3.8.1
14
  */
15
  function smbtoolbar_render_submenu_page() {
16
 
299
  <ul>
300
  <li>
301
  <input type="radio" name="smbtoolbar_settings[alignment]" value="left" <?php checked('left', $alignment); ?> >
302
+ <?php _e( 'Left', SMEDIABT_TEXT ); ?>
303
  </li>
304
  <li>
305
  <input type="radio" name="smbtoolbar_settings[alignment]" value="center" <?php checked('', $alignment); ?> <?php checked('center', $alignment); ?> >
306
+ <?php _e( 'Center', SMEDIABT_TEXT ); ?>
307
  </li>
308
  <li>
309
  <input type="radio" name="smbtoolbar_settings[alignment]" value="right" <?php checked('right', $alignment); ?> >
310
+ <?php _e( 'Right', SMEDIABT_TEXT ); ?>
311
  </li>
312
  </ul>
313
  </td>
languages/Readme.txt CHANGED
@@ -1,6 +1,10 @@
1
 
2
  CONTRIBUTING YOUR TRANSLATION
3
 
4
- If you want to help translate this plugin, please visit the [translation page](https://translate.wordpress.org/projects/wp-plugins/social-media-buttons-toolbar).
5
 
6
- Thanks for your contribution!
 
 
 
 
1
 
2
  CONTRIBUTING YOUR TRANSLATION
3
 
4
+ This plugin is ready for translation.
5
 
6
+ If you want to help translate this plugin, please visit the [translation page](https://translate.wordpress.org/projects/wp-plugins/social-media-buttons-toolbar), or use the POT file, that is included and placed in the "languages" folder, in order to create a translation files (*.po, *.mo). Just send the translation files (*.po, *.mo) to me at the arthurgareginyan@gmail.com and I will include the translation within the next plugin update.
7
+
8
+ Also you can use an existing PO file that placed in the "languages" folder, in order to make corrections.
9
+
10
+ Many of plugin users would be delighted if you share your translation with the community. Thanks for your contribution!
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Social Media Buttons Toolbar ===
2
  Contributors: Arthur Gareginyan
3
- Tags: icon, icon set, button, social, media, social button, social media, social network, follow, follow button, follow link, follow icon, follow me, toolbar, link to profile, facebook, twitter, instagram, google plus, youtube, vimeo, blogger, livejournal, linkedIn, pinterest, tumblr, soundcloud, spotify, meetvibe, vkontakte, vk, vk.com, odnoklassniki, ok, ok.ru, telegram, github, wordpress, codepen, skype, personal website, email, rss feed, rss, feed,
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.8
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -18,7 +18,7 @@ The social media buttons toolbar - is a toolbar with set of icons of the popular
18
 
19
  Unlike the other plugins, this plugin creates a live toolbar. The toolbar automatically adapt to the width of the block where it placed. If the buttons do not fit to the one line, then they will be placed on multiple lines. So they can be arranged horizontally or vertically, in one line or in a few, and all of this is done automatically. Also it can be aligned to left, center or right.
20
 
21
- It give you finer control over buttons. You can configure they on plugins settings page. You can choose the size of icons, choose open link in current tab or in new, and etc. Also you can have the social media buttons automatically added to the bottom of all post or/and pages, and can position the link buttons using either a widget, a shortcode or a template action hook.
22
 
23
  = Features =
24
 
@@ -184,6 +184,10 @@ Icons [meetvibe.png](https://www.iconfinder.com/iconsets/meetvibe?ref=ArthurGare
184
  * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/social-media-buttons-toolbar)
185
 
186
  == Changelog ==
 
 
 
 
187
  = 3.8 =
188
  * Added option for IMDb button.
189
  * Added CSS fix for compatibility with some themes.
1
  === Social Media Buttons Toolbar ===
2
  Contributors: Arthur Gareginyan
3
+ Tags: icon, icon set, button, social, media, social button, social media, social network, follow, follow button, follow link, follow icon, follow me, toolbar, link to profile, facebook, twitter, instagram, google plus, youtube, vimeo, blogger, livejournal, linkedIn, pinterest, tumblr, snapchat, imdb, soundcloud, spotify, meetvibe, vkontakte, vk, vk.com, odnoklassniki, ok, ok.ru, telegram, github, wordpress, codepen, skype, personal website, email, rss feed, rss, feed,
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.8.1
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
18
 
19
  Unlike the other plugins, this plugin creates a live toolbar. The toolbar automatically adapt to the width of the block where it placed. If the buttons do not fit to the one line, then they will be placed on multiple lines. So they can be arranged horizontally or vertically, in one line or in a few, and all of this is done automatically. Also it can be aligned to left, center or right.
20
 
21
+ It give you finer control over buttons. You can configure they on plugins settings page. You can choose the size of icons, choose open link in current tab or in new, and etc. Also you can have the social media buttons automatically added to the bottom of all post or/and pages, and can position the link buttons using either a widget, a shortcode or a template action hook. If you want more options then tell me and I will be happy to add it.
22
 
23
  = Features =
24
 
184
  * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/social-media-buttons-toolbar)
185
 
186
  == Changelog ==
187
+ = 3.8.1 =
188
+ * Added "!important" declarations to stylesheet in order to fix compatibility issues with some themes.
189
+ * Fixed error "Use of undefined constant SSTOPB_TEXT...".
190
+ * Readme for translations updated.
191
  = 3.8 =
192
  * Added option for IMDb button.
193
  * Added CSS fix for compatibility with some themes.
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.8
9
  * License: GPL3
10
  * Text Domain: social-media-buttons-toolbar
11
  * Domain Path: /languages/
@@ -40,14 +40,14 @@ defined('ABSPATH') or die("Restricted access!");
40
  /**
41
  * Define global constants
42
  *
43
- * @since 3.8
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_TEXT') or define('SMEDIABT_TEXT', 'social-media-buttons-toolbar');
50
- defined('SMEDIABT_VERSION') or define('SMEDIABT_VERSION', '3.8');
51
 
52
  /**
53
  * Register text domain
@@ -236,7 +236,7 @@ function smbtoolbar_setting($name, $label, $help=null, $field=null, $placeholder
236
  /**
237
  * Generate the buttons toolbar
238
  *
239
- * @since 3.8
240
  */
241
  function smbtoolbar_tollbar() {
242
 
@@ -302,17 +302,21 @@ function smbtoolbar_tollbar() {
302
  }
303
  $metatags_arr[] = '</ul>';
304
 
305
- // Add styling for toolbar
306
  $styles = "<style>
 
 
 
 
307
  .smbt-social-icons {
308
- text-align: " . $alignment . ";
309
  }
310
  .smbt-social-icons li {
311
  margin: 0px !important;
312
  padding: 0px !important;
313
  display: inline-block !important;
314
  border-bottom: 0 !important;
315
- list-style-type: none;
316
  -webkit-user-select: none;
317
  -moz-user-select: none;
318
  }
@@ -321,9 +325,9 @@ function smbtoolbar_tollbar() {
321
  display: inline !important;
322
  }
323
  .smbt-social-icons li img {
324
- width: " . $icon_size . "px;
325
- height: " . $icon_size . "px;
326
- margin-right: " . $margin_right . "px;
327
  }
328
  </style>";
329
 
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.8.1
9
  * License: GPL3
10
  * Text Domain: social-media-buttons-toolbar
11
  * Domain Path: /languages/
40
  /**
41
  * Define global constants
42
  *
43
+ * @since 3.8.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_TEXT') or define('SMEDIABT_TEXT', 'social-media-buttons-toolbar');
50
+ defined('SMEDIABT_VERSION') or define('SMEDIABT_VERSION', '3.8.1');
51
 
52
  /**
53
  * Register text domain
236
  /**
237
  * Generate the buttons toolbar
238
  *
239
+ * @since 3.8.1
240
  */
241
  function smbtoolbar_tollbar() {
242
 
302
  }
303
  $metatags_arr[] = '</ul>';
304
 
305
+ // Add stylesheet for toolbar
306
  $styles = "<style>
307
+ /*
308
+ * WP plugin 'Social Media Buttons Toolbar'
309
+ * by Arthur Gareginyan http://www.arthurgareginyan.com
310
+ */
311
  .smbt-social-icons {
312
+ text-align: " . $alignment . " !important;
313
  }
314
  .smbt-social-icons li {
315
  margin: 0px !important;
316
  padding: 0px !important;
317
  display: inline-block !important;
318
  border-bottom: 0 !important;
319
+ list-style-type: none !important;
320
  -webkit-user-select: none;
321
  -moz-user-select: none;
322
  }
325
  display: inline !important;
326
  }
327
  .smbt-social-icons li img {
328
+ width: " . $icon_size . "px !important;
329
+ height: " . $icon_size . "px !important;
330
+ margin-right: " . $margin_right . "px !important;
331
  }
332
  </style>";
333