Social Media Follow Buttons Bar - Version 2.0

Version Description

  • Some changes in design of settings page.
  • Constants variables added.
  • Text domain changed to "social-media-buttons-toolbar".
  • Added compatibility with the translate.wordpress.org.
  • All images are moved to the directory "images".
  • Image "btn_donateCC_LG.gif" is now located in the "images" directory.
  • Plugin URI changed to GitHub repository.
  • Added my personal ad about freelance.
  • .pot file updated.
  • Russian translation updated.
Download this release

Release Info

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

Code changes from version 1.5 to 2.0

Files changed (29) hide show
  1. inc/{author.png → images/author.png} +0 -0
  2. inc/images/btn_donateCC_LG.gif +0 -0
  3. inc/{social-media-icons → images/social-media-icons}/blogger.png +0 -0
  4. inc/{social-media-icons → images/social-media-icons}/codepen.png +0 -0
  5. inc/{social-media-icons → images/social-media-icons}/email.png +0 -0
  6. inc/{social-media-icons → images/social-media-icons}/facebook.png +0 -0
  7. inc/{social-media-icons → images/social-media-icons}/github.png +0 -0
  8. inc/{social-media-icons → images/social-media-icons}/google-plus.png +0 -0
  9. inc/{social-media-icons → images/social-media-icons}/instagram.png +0 -0
  10. inc/{social-media-icons → images/social-media-icons}/linkedin.png +0 -0
  11. inc/{social-media-icons → images/social-media-icons}/livejournal.png +0 -0
  12. inc/{social-media-icons → images/social-media-icons}/odnoklassniki.png +0 -0
  13. inc/{social-media-icons → images/social-media-icons}/pinterest.png +0 -0
  14. inc/{social-media-icons → images/social-media-icons}/rss-feed.png +0 -0
  15. inc/{social-media-icons → images/social-media-icons}/tumblr.png +0 -0
  16. inc/{social-media-icons → images/social-media-icons}/twitter.png +0 -0
  17. inc/{social-media-icons → images/social-media-icons}/vkontakte.png +0 -0
  18. inc/{social-media-icons → images/social-media-icons}/website.png +0 -0
  19. inc/{social-media-icons → images/social-media-icons}/wordpress.png +0 -0
  20. inc/{social-media-icons → images/social-media-icons}/youtube.png +0 -0
  21. inc/{thanks.png → images/thanks.png} +0 -0
  22. inc/settings_page.php +33 -33
  23. inc/style-admin.css +2 -2
  24. languages/smbtoolbar-ru_RU.mo +0 -0
  25. languages/social-media-buttons-toolbar-ru_RU.mo +0 -0
  26. languages/{smbtoolbar-ru_RU.po → social-media-buttons-toolbar-ru_RU.po} +22 -19
  27. languages/{smbtoolbar.pot → social-media-buttons-toolbar.pot} +15 -15
  28. readme.txt +30 -41
  29. social-media-buttons-toolbar.php +27 -19
inc/{author.png → images/author.png} RENAMED
File without changes
inc/images/btn_donateCC_LG.gif ADDED
Binary file
inc/{social-media-icons → images/social-media-icons}/blogger.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/codepen.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/email.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/facebook.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/github.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/google-plus.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/instagram.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/linkedin.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/livejournal.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/odnoklassniki.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/pinterest.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/rss-feed.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/tumblr.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/twitter.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/vkontakte.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/website.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/wordpress.png RENAMED
File without changes
inc/{social-media-icons → images/social-media-icons}/youtube.png RENAMED
File without changes
inc/{thanks.png → images/thanks.png} RENAMED
File without changes
inc/settings_page.php CHANGED
@@ -10,7 +10,7 @@ defined('ABSPATH') or die("Restricted access!");
10
  /**
11
  * Render Settings Page
12
  *
13
- * @since 1.4
14
  */
15
  function smbtoolbar_render_submenu_page() {
16
 
@@ -21,10 +21,10 @@ function smbtoolbar_render_submenu_page() {
21
  ?>
22
  <div class="wrap">
23
  <h2>
24
- <?php _e( 'Social Media Buttons Toolbar', 'smbtoolbar' ); ?>
25
  <br/>
26
  <span>
27
- <?php _e( 'by <a href="http://www.arthurgareginyan.com" target="_blank">Arthur "Berserkr" Gareginyan</a>', 'smbtoolbar' ); ?>
28
  <span/>
29
  </h2>
30
 
@@ -35,38 +35,38 @@ function smbtoolbar_render_submenu_page() {
35
  <div id="side-sortables" class="meta-box-sortabless ui-sortable">
36
 
37
  <div id="about" class="postbox">
38
- <h3 class="title"><?php _e( 'About', 'smbtoolbar' ); ?></h3>
39
  <div class="inside">
40
- <p><?php _e( 'This plugin allows you to easily add the social media buttons toolbar to any place of your website.', 'smbtoolbar' ) ?></p>
41
  </div>
42
  </div>
43
 
44
  <div id="help" class="postbox">
45
- <h3 class="title"><?php _e( 'Help', 'smbtoolbar' ); ?></h3>
46
  <div class="inside">
47
- <p><?php _e( 'If you want more options then tell me and I will be happy to add it.', 'smbtoolbar' ); ?></p>
48
  <p><a href="mailto:arthurgareginyan@gmail.com">arthurgareginyan@gmail.com</a></p>
49
  </div>
50
  </div>
51
 
52
  <div id="donate" class="postbox">
53
- <h3 class="title"><?php _e( 'Donate', 'smbtoolbar' ); ?></h3>
54
  <div class="inside">
55
- <img src="<?php echo plugins_url('thanks.png', __FILE__); ?>">
56
- <p><?php _e( 'If you like this plugin and find it useful, help me to make this plugin even better and keep it up-to-date.', 'smbtoolbar' ) ?></p>
57
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" rel="nofollow">
58
- <img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="Make a donation">
59
  </a>
60
- <p class="donate"><?php _e( 'Thanks for your support!', 'smbtoolbar' ) ?></p>
61
  </div>
62
  </div>
63
 
64
  <div id="freelance" class="postbox">
65
- <h3 class="title"><?php _e( 'Freelance', 'allmetatags' ) ?></h3>
66
  <div class="inside">
67
- <img src="<?php echo plugins_url('author.png', __FILE__); ?>">
68
- <p><?php _e( 'Hello, my name is Arthur and I\'m a freelance web designer and developer.', 'allmetatags' ) ?></p>
69
- <p><?php _e( 'Share your thoughts with me. You may have a brilliant idea in your mind and I can make it happen, so let’s get started!', 'allmetatags' ) ?></p>
70
  <p><a href="http://www.arthurgareginyan.com/" target="_blank">www.arthurgareginyan.com</a></p>
71
  </div>
72
  </div>
@@ -84,9 +84,9 @@ function smbtoolbar_render_submenu_page() {
84
  <?php settings_fields( 'smbtoolbar_settings_group' ); ?>
85
 
86
  <div class="postbox" id="Buttons">
87
- <h3 class="title"><?php _e( 'Buttons', 'smbtoolbar' ); ?></h3>
88
  <div class="inside">
89
- <p class="description"><?php _e( 'Enter your User ID for each service you choose below to make the button link directly to your profile. If you don\'t want to use any of the following options, you can just forget about these.', 'smbtoolbar' ); ?></p>
90
  <table class="form-table">
91
  <?php smbtoolbar_media( 'facebook',
92
  'Facebook',
@@ -197,12 +197,12 @@ function smbtoolbar_render_submenu_page() {
197
  ''
198
  );?>
199
  </table>
200
- <?php submit_button( __( 'Save Changes', 'smbtoolbar' ), 'primary', 'submit', true ); ?>
201
  </div>
202
  </div>
203
 
204
  <div class="postbox" id="DisplayOptions">
205
- <h3 class="title"><?php _e( 'Display options', 'smbtoolbar' ) ?></h3>
206
  <div class="inside">
207
  <p class="description"></p>
208
  <table class="form-table">
@@ -243,39 +243,39 @@ function smbtoolbar_render_submenu_page() {
243
  '50'
244
  );?>
245
  </table>
246
- <?php submit_button( __( 'Save Changes', 'smbtoolbar' ), 'primary', 'submit', true ); ?>
247
  </div>
248
  </div>
249
 
250
  <div class="postbox" id="Preview">
251
- <h3 class="title"><?php _e( 'Preview', 'smbtoolbar' ) ?></h3>
252
  <div class="inside">
253
- <p class="description"><?php _e( 'Enter your User ID\'s, then click "Save Changes" to update this preview.', 'smbtoolbar' ) ?></p></br>
254
  <?php echo smbtoolbar_shortcode(); ?>
255
  </div>
256
  </div>
257
 
258
  <div class="postbox" id="Using">
259
- <h3 class="title"><?php _e( 'Using', 'smbtoolbar' ) ?></h3>
260
  <div class="inside">
261
- <p><?php _e( 'You have several methods for display the social media buttons toolbar (further just "toolbar") on your website. But first, enter a links for each buttons, then click "Save Changes".', 'smbtoolbar' ) ?></p>
262
- <p><?php _e( '<b>A)</b> For display the toolbar below content on every Posts or/and Pages, just check the checkbox "Show on Posts" or/and "Show on Pages" in the section "Display options", then click "Save Changes". It\'s that simple!', 'smbtoolbar' ) ?></p>
263
- <p><?php _e( '<b>B)</b> For add the toolbar inside a post from WP Post/Page Editor use the following shortcode:', 'smbtoolbar' ) ?></p>
264
  <p><?php highlight_string('[smbtoolbar]'); ?></p>
265
- <p><?php _e( '<b>C)</b> For add the toolbar to the widget area (in sidebar, footer etc.) use the "Text" widget and add inside it the following shortcode:', 'smbtoolbar' ) ?></p>
266
  <p><?php highlight_string('[smbtoolbar]'); ?></p>
267
- <p><?php _e( '<b>D)</b> For add the toolbar directly to a theme files, just add one of the following code (both variants do the same) to needed place (where you want to display the toolbar) in your theme files:', 'smbtoolbar' ) ?></p>
268
  <p><?php highlight_string('<?php echo do_shortcode("[smbtoolbar]"); ?>'); ?></p>
269
  <p><?php highlight_string('<?php echo smbtoolbar_shortcode(); ?>'); ?></p>
270
  </div>
271
  </div>
272
 
273
- </div>
 
274
  </div>
275
  </div>
276
- <!-- END-FORM -->
277
-
278
- </form>
279
 
280
  </div>
281
 
10
  /**
11
  * Render Settings Page
12
  *
13
+ * @since 2.0
14
  */
15
  function smbtoolbar_render_submenu_page() {
16
 
21
  ?>
22
  <div class="wrap">
23
  <h2>
24
+ <?php _e( 'Social Media Buttons Toolbar', 'social-media-buttons-toolbar' ); ?>
25
  <br/>
26
  <span>
27
+ <?php _e( 'by <a href="http://www.arthurgareginyan.com" target="_blank">Arthur "Berserkr" Gareginyan</a>', 'social-media-buttons-toolbar' ); ?>
28
  <span/>
29
  </h2>
30
 
35
  <div id="side-sortables" class="meta-box-sortabless ui-sortable">
36
 
37
  <div id="about" class="postbox">
38
+ <h3 class="title"><?php _e( 'About', 'social-media-buttons-toolbar' ); ?></h3>
39
  <div class="inside">
40
+ <p><?php _e( 'This plugin allows you to easily add the social media buttons toolbar to any place of your website.', 'social-media-buttons-toolbar' ) ?></p>
41
  </div>
42
  </div>
43
 
44
  <div id="help" class="postbox">
45
+ <h3 class="title"><?php _e( 'Help', 'social-media-buttons-toolbar' ); ?></h3>
46
  <div class="inside">
47
+ <p><?php _e( 'If you want more options then tell me and I will be happy to add it.', 'social-media-buttons-toolbar' ); ?></p>
48
  <p><a href="mailto:arthurgareginyan@gmail.com">arthurgareginyan@gmail.com</a></p>
49
  </div>
50
  </div>
51
 
52
  <div id="donate" class="postbox">
53
+ <h3 class="title"><?php _e( 'Donate', 'social-media-buttons-toolbar' ); ?></h3>
54
  <div class="inside">
55
+ <img src="<?php echo plugins_url('images/thanks.png', __FILE__); ?>">
56
+ <p><?php _e( 'If you like this plugin and find it useful, help me to make this plugin even better and keep it up-to-date.', 'social-media-buttons-toolbar' ) ?></p>
57
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" rel="nofollow">
58
+ <img src="<?php echo plugins_url('images/btn_donateCC_LG.gif', __FILE__); ?>" alt="Make a donation">
59
  </a>
60
+ <p><?php _e( 'Thanks for your support!', 'social-media-buttons-toolbar' ) ?></p>
61
  </div>
62
  </div>
63
 
64
  <div id="freelance" class="postbox">
65
+ <h3 class="title"><?php _e( 'Freelance', 'social-media-buttons-toolbar' ) ?></h3>
66
  <div class="inside">
67
+ <img src="<?php echo plugins_url('images/author.png', __FILE__); ?>">
68
+ <p><?php _e( 'Hello, my name is Arthur and I\'m a freelance web designer and developer.', 'social-media-buttons-toolbar' ) ?></p>
69
+ <p><?php _e( 'Share your thoughts with me. You may have a brilliant idea in your mind and I can make it happen, so let’s get started!', 'social-media-buttons-toolbar' ) ?></p>
70
  <p><a href="http://www.arthurgareginyan.com/" target="_blank">www.arthurgareginyan.com</a></p>
71
  </div>
72
  </div>
84
  <?php settings_fields( 'smbtoolbar_settings_group' ); ?>
85
 
86
  <div class="postbox" id="Buttons">
87
+ <h3 class="title"><?php _e( 'Buttons', 'social-media-buttons-toolbar' ); ?></h3>
88
  <div class="inside">
89
+ <p class="description"><?php _e( 'Enter your User ID for each service you choose below to make the button link directly to your profile. If you don\'t want to use any of the following options, you can just forget about these.', 'social-media-buttons-toolbar' ); ?></p>
90
  <table class="form-table">
91
  <?php smbtoolbar_media( 'facebook',
92
  'Facebook',
197
  ''
198
  );?>
199
  </table>
200
+ <?php submit_button( __( 'Save Changes', 'social-media-buttons-toolbar' ), 'primary', 'submit', true ); ?>
201
  </div>
202
  </div>
203
 
204
  <div class="postbox" id="DisplayOptions">
205
+ <h3 class="title"><?php _e( 'Display options', 'social-media-buttons-toolbar' ) ?></h3>
206
  <div class="inside">
207
  <p class="description"></p>
208
  <table class="form-table">
243
  '50'
244
  );?>
245
  </table>
246
+ <?php submit_button( __( 'Save Changes', 'social-media-buttons-toolbar' ), 'primary', 'submit', true ); ?>
247
  </div>
248
  </div>
249
 
250
  <div class="postbox" id="Preview">
251
+ <h3 class="title"><?php _e( 'Preview', 'social-media-buttons-toolbar' ) ?></h3>
252
  <div class="inside">
253
+ <p class="description"><?php _e( 'Enter your User ID\'s, then click "Save Changes" to update this preview.', 'social-media-buttons-toolbar' ) ?></p></br>
254
  <?php echo smbtoolbar_shortcode(); ?>
255
  </div>
256
  </div>
257
 
258
  <div class="postbox" id="Using">
259
+ <h3 class="title"><?php _e( 'Using', 'social-media-buttons-toolbar' ) ?></h3>
260
  <div class="inside">
261
+ <p><?php _e( 'You have several methods for display the social media buttons toolbar (further just "toolbar") on your website. But first, enter a links for each buttons, then click "Save Changes".', 'social-media-buttons-toolbar' ) ?></p>
262
+ <p><?php _e( '<b>A)</b> For display the toolbar below content on every Posts or/and Pages, just check the checkbox "Show on Posts" or/and "Show on Pages" in the section "Display options", then click "Save Changes". It\'s that simple!', 'social-media-buttons-toolbar' ) ?></p>
263
+ <p><?php _e( '<b>B)</b> For add the toolbar inside a post from WP Post/Page Editor use the following shortcode:', 'social-media-buttons-toolbar' ) ?></p>
264
  <p><?php highlight_string('[smbtoolbar]'); ?></p>
265
+ <p><?php _e( '<b>C)</b> For add the toolbar to the widget area (in sidebar, footer etc.) use the "Text" widget and add inside it the following shortcode:', 'social-media-buttons-toolbar' ) ?></p>
266
  <p><?php highlight_string('[smbtoolbar]'); ?></p>
267
+ <p><?php _e( '<b>D)</b> For add the toolbar directly to a theme files, just add one of the following code (both variants do the same) to needed place (where you want to display the toolbar) in your theme files:', 'social-media-buttons-toolbar' ) ?></p>
268
  <p><?php highlight_string('<?php echo do_shortcode("[smbtoolbar]"); ?>'); ?></p>
269
  <p><?php highlight_string('<?php echo smbtoolbar_shortcode(); ?>'); ?></p>
270
  </div>
271
  </div>
272
 
273
+ </form>
274
+
275
  </div>
276
  </div>
277
+ </div>
278
+ <!-- END-FORM -->
 
279
 
280
  </div>
281
 
inc/style-admin.css CHANGED
@@ -64,11 +64,11 @@ td.help-text {
64
  text-align: center;
65
  }
66
 
67
- #donate {
68
  text-align: center;
69
  }
70
 
71
- #help {
72
  text-align: center;
73
  }
74
 
64
  text-align: center;
65
  }
66
 
67
+ #help {
68
  text-align: center;
69
  }
70
 
71
+ #donate {
72
  text-align: center;
73
  }
74
 
languages/smbtoolbar-ru_RU.mo DELETED
Binary file
languages/social-media-buttons-toolbar-ru_RU.mo ADDED
Binary file
languages/{smbtoolbar-ru_RU.po → social-media-buttons-toolbar-ru_RU.po} RENAMED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Social Media Buttons Toolbar\n"
4
- "POT-Creation-Date: 2016-03-28 01:02+0300\n"
5
- "PO-Revision-Date: 2016-03-28 01:02+0300\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: ru\n"
@@ -22,7 +22,7 @@ msgstr ""
22
  "X-Poedit-SearchPathExcluded-0: *.js\n"
23
 
24
  #. Plugin Name of the plugin/theme
25
- #: inc/settings_page.php:24 social-media-buttons-toolbar.php:73
26
  msgid "Social Media Buttons Toolbar"
27
  msgstr ""
28
 
@@ -47,10 +47,20 @@ msgstr ""
47
  "место на вашем веб-сайте."
48
 
49
  #: inc/settings_page.php:45
 
 
 
 
 
 
 
 
 
 
50
  msgid "Donate"
51
  msgstr "Пожертвование"
52
 
53
- #: inc/settings_page.php:48
54
  msgid ""
55
  "If you like this plugin and find it useful, help me to make this plugin even "
56
  "better and keep it up-to-date."
@@ -58,20 +68,10 @@ msgstr ""
58
  "Если вам нравится этот плагин и вы находите его полезным, то помогите мне "
59
  "сделать этот плагин ещё лучше и держать его современным."
60
 
61
- #: inc/settings_page.php:52
62
  msgid "Thanks for your support!"
63
  msgstr "Спасибо за вашу поддержку!"
64
 
65
- #: inc/settings_page.php:57
66
- msgid "Help"
67
- msgstr "Помощь"
68
-
69
- #: inc/settings_page.php:59
70
- msgid "If you want more options then tell me and I will be happy to add it."
71
- msgstr ""
72
- "Если вы хотите больше опций, то скажите мне об этом и я буду счастлив "
73
- "добавить их."
74
-
75
  #: inc/settings_page.php:65
76
  msgid "Freelance"
77
  msgstr "Фриланс"
@@ -162,11 +162,11 @@ msgid ""
162
  "to display the toolbar) in your theme files:"
163
  msgstr ""
164
 
165
- #: social-media-buttons-toolbar.php:60
166
  msgid "Settings"
167
  msgstr "Настройки"
168
 
169
- #: social-media-buttons-toolbar.php:73
170
  msgid "Social Buttons"
171
  msgstr "Социальные кнопки"
172
 
@@ -183,13 +183,16 @@ msgstr ""
183
  "только ссылки на ваши профили) в любое место вашего WordPress веб-сайта."
184
 
185
  #. Author of the plugin/theme
186
- msgid "Arthur \"Berserkr\" Gareginyan"
187
- msgstr "Артур “Берсеркр” Гарегинян"
188
 
189
  #. Author URI of the plugin/theme
190
  msgid "http://www.arthurgareginyan.com"
191
  msgstr ""
192
 
 
 
 
193
  #~ msgid ""
194
  #~ "This plugin allows you to easily add the social media buttons toolbar to "
195
  #~ "any place of your web-site."
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Social Media Buttons Toolbar\n"
4
+ "POT-Creation-Date: 2016-04-08 18:22+0300\n"
5
+ "PO-Revision-Date: 2016-04-08 18:23+0300\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: ru\n"
22
  "X-Poedit-SearchPathExcluded-0: *.js\n"
23
 
24
  #. Plugin Name of the plugin/theme
25
+ #: inc/settings_page.php:24 social-media-buttons-toolbar.php:82
26
  msgid "Social Media Buttons Toolbar"
27
  msgstr ""
28
 
47
  "место на вашем веб-сайте."
48
 
49
  #: inc/settings_page.php:45
50
+ msgid "Help"
51
+ msgstr "Помощь"
52
+
53
+ #: inc/settings_page.php:47
54
+ msgid "If you want more options then tell me and I will be happy to add it."
55
+ msgstr ""
56
+ "Если вы хотите больше опций, то скажите мне об этом и я буду счастлив "
57
+ "добавить их."
58
+
59
+ #: inc/settings_page.php:53
60
  msgid "Donate"
61
  msgstr "Пожертвование"
62
 
63
+ #: inc/settings_page.php:56
64
  msgid ""
65
  "If you like this plugin and find it useful, help me to make this plugin even "
66
  "better and keep it up-to-date."
68
  "Если вам нравится этот плагин и вы находите его полезным, то помогите мне "
69
  "сделать этот плагин ещё лучше и держать его современным."
70
 
71
+ #: inc/settings_page.php:60
72
  msgid "Thanks for your support!"
73
  msgstr "Спасибо за вашу поддержку!"
74
 
 
 
 
 
 
 
 
 
 
 
75
  #: inc/settings_page.php:65
76
  msgid "Freelance"
77
  msgstr "Фриланс"
162
  "to display the toolbar) in your theme files:"
163
  msgstr ""
164
 
165
+ #: social-media-buttons-toolbar.php:70
166
  msgid "Settings"
167
  msgstr "Настройки"
168
 
169
+ #: social-media-buttons-toolbar.php:82
170
  msgid "Social Buttons"
171
  msgstr "Социальные кнопки"
172
 
183
  "только ссылки на ваши профили) в любое место вашего WordPress веб-сайта."
184
 
185
  #. Author of the plugin/theme
186
+ msgid "Arthur Gareginyan"
187
+ msgstr "Артур Гарегинян"
188
 
189
  #. Author URI of the plugin/theme
190
  msgid "http://www.arthurgareginyan.com"
191
  msgstr ""
192
 
193
+ #~ msgid "Arthur \"Berserkr\" Gareginyan"
194
+ #~ msgstr "Артур “Берсеркр” Гарегинян"
195
+
196
  #~ msgid ""
197
  #~ "This plugin allows you to easily add the social media buttons toolbar to "
198
  #~ "any place of your web-site."
languages/{smbtoolbar.pot → social-media-buttons-toolbar.pot} RENAMED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Social Media Buttons Toolbar\n"
6
- "POT-Creation-Date: 2016-03-28 01:02+0300\n"
7
  "PO-Revision-Date: 2015-12-17 02:16+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
@@ -21,7 +21,7 @@ msgstr ""
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
  #. Plugin Name of the plugin/theme
24
- #: inc/settings_page.php:24 social-media-buttons-toolbar.php:73
25
  msgid "Social Media Buttons Toolbar"
26
  msgstr ""
27
 
@@ -42,27 +42,27 @@ msgid ""
42
  msgstr ""
43
 
44
  #: inc/settings_page.php:45
 
 
 
 
 
 
 
 
45
  msgid "Donate"
46
  msgstr ""
47
 
48
- #: inc/settings_page.php:48
49
  msgid ""
50
  "If you like this plugin and find it useful, help me to make this plugin even "
51
  "better and keep it up-to-date."
52
  msgstr ""
53
 
54
- #: inc/settings_page.php:52
55
  msgid "Thanks for your support!"
56
  msgstr ""
57
 
58
- #: inc/settings_page.php:57
59
- msgid "Help"
60
- msgstr ""
61
-
62
- #: inc/settings_page.php:59
63
- msgid "If you want more options then tell me and I will be happy to add it."
64
- msgstr ""
65
-
66
  #: inc/settings_page.php:65
67
  msgid "Freelance"
68
  msgstr ""
@@ -143,11 +143,11 @@ msgid ""
143
  "to display the toolbar) in your theme files:"
144
  msgstr ""
145
 
146
- #: social-media-buttons-toolbar.php:60
147
  msgid "Settings"
148
  msgstr ""
149
 
150
- #: social-media-buttons-toolbar.php:73
151
  msgid "Social Buttons"
152
  msgstr ""
153
 
@@ -162,7 +162,7 @@ msgid ""
162
  msgstr ""
163
 
164
  #. Author of the plugin/theme
165
- msgid "Arthur \"Berserkr\" Gareginyan"
166
  msgstr ""
167
 
168
  #. Author URI of the plugin/theme
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Social Media Buttons Toolbar\n"
6
+ "POT-Creation-Date: 2016-04-08 18:22+0300\n"
7
  "PO-Revision-Date: 2015-12-17 02:16+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
  #. Plugin Name of the plugin/theme
24
+ #: inc/settings_page.php:24 social-media-buttons-toolbar.php:82
25
  msgid "Social Media Buttons Toolbar"
26
  msgstr ""
27
 
42
  msgstr ""
43
 
44
  #: inc/settings_page.php:45
45
+ msgid "Help"
46
+ msgstr ""
47
+
48
+ #: inc/settings_page.php:47
49
+ msgid "If you want more options then tell me and I will be happy to add it."
50
+ msgstr ""
51
+
52
+ #: inc/settings_page.php:53
53
  msgid "Donate"
54
  msgstr ""
55
 
56
+ #: inc/settings_page.php:56
57
  msgid ""
58
  "If you like this plugin and find it useful, help me to make this plugin even "
59
  "better and keep it up-to-date."
60
  msgstr ""
61
 
62
+ #: inc/settings_page.php:60
63
  msgid "Thanks for your support!"
64
  msgstr ""
65
 
 
 
 
 
 
 
 
 
66
  #: inc/settings_page.php:65
67
  msgid "Freelance"
68
  msgstr ""
143
  "to display the toolbar) in your theme files:"
144
  msgstr ""
145
 
146
+ #: social-media-buttons-toolbar.php:70
147
  msgid "Settings"
148
  msgstr ""
149
 
150
+ #: social-media-buttons-toolbar.php:82
151
  msgid "Social Buttons"
152
  msgstr ""
153
 
162
  msgstr ""
163
 
164
  #. Author of the plugin/theme
165
+ msgid "Arthur Gareginyan"
166
  msgstr ""
167
 
168
  #. Author URI of the plugin/theme
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Arthur Gareginyan
3
  Tags: icon, icon set, button, social, media, social button, social media, social network, toolbar, link to profile, facebook, twitter, instagram, google plus, youtube, blogger, livejournal, linkedIn, pinterest, tumblr, vkontakte, vk, odnoklassniki, ok, github, wordpress, codepen, 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.4
7
- Stable tag: 1.4
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -65,13 +65,13 @@ D) For add the toolbar directly to a theme files, just add one of the following
65
  `<?php echo smbtoolbar_shortcode(); ?>`
66
 
67
 
68
- **Got more ideas? Tell me!**
69
-
70
- If you have any suggestions to make this plugin better, don't hesitate to contact me.
71
-
72
- **Please Vote and Enjoy**
73
-
74
- Your votes really make a difference! Thanks.
75
 
76
 
77
  == Installation ==
@@ -148,23 +148,25 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
148
 
149
  Icon set [Social Buttons 2](https://www.iconfinder.com/iconsets/social-buttons-2) by Ivlichev Victor Petrovich and licensed under the [Creative Commons (Attribution 3.0 Unported)](http://creativecommons.org/licenses/by/3.0/).
150
 
151
- **Support**
152
-
153
- * Did you enjoy this plugin? Please [donate to support ongoing development](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS). Your contribution would be greatly appreciated.
154
- * Do you have any ideas or suggestions to make the plugin better? I can’t wait to hear them! Please share! [arthurgareginyan@gmail.com](mailto:arthurgareginyan@gmail.com)
155
-
156
- **Please Vote and Enjoy**
157
-
158
- * Your votes really make a difference! Thanks.
159
-
160
  **Links**
161
 
162
  * [Developer Website](http://www.arthurgareginyan.com)
163
  * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/social-media-buttons-toolbar)
164
 
165
  == Changelog ==
166
- = 1.5 =
167
- * Fixed: "Notice: Undefined index: new_tab in .../social-media-buttons-toolbar.php on line 240".
 
 
 
 
 
 
 
 
 
 
 
168
  = 1.4 =
169
  * Added 6 new buttons (LiveJournal, Pinterest, Tumblr, VKontakte, Odnoklassniki, Personal website).
170
  * Fixed: "Use of undefined constant media".
@@ -198,24 +200,11 @@ Icon set [Social Buttons 2](https://www.iconfinder.com/iconsets/social-buttons-2
198
 
199
 
200
  == Upgrade Notice ==
201
- = 1.5=
202
- * Fixed: "Notice: Undefined index: new_tab in .../social-media-buttons-toolbar.php on line 240".
203
- = 1.4 =
204
- * Added 6 new buttons (LiveJournal, Pinterest, Tumblr, VKontakte, Odnoklassniki, Personal website).
205
- * Fixed: "Use of undefined constant media".
206
- * Plugin URI changed to GitHub repository.
207
- * Some changes in design of settings page.
208
- * Added my personal ad about freelance.
209
- * .pot file updated.
210
- * Russian translation updated.
211
- = 1.3 =
212
- * Some changes in design of settings page.
213
- * On settings page added section "Using" with the using details. (Thanks Hubert O'Brien)
214
- = 1.2 =
215
- * Fixed the compatibility issue with some themes. The issue was caused by not a unique class names in the html tags.
216
- * The default caption now is empty. The text "Follow me on social media:" is removed.
217
- * Removed extra settings update message.
218
- * The thanks.png image replaced.
219
- = 1.1 =
220
- * Authors URI changed.
221
- * Icons updated.
3
  Tags: icon, icon set, button, social, media, social button, social media, social network, toolbar, link to profile, facebook, twitter, instagram, google plus, youtube, blogger, livejournal, linkedIn, pinterest, tumblr, vkontakte, vk, odnoklassniki, ok, github, wordpress, codepen, 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.5
7
+ Stable tag: 2.0
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
65
  `<?php echo smbtoolbar_shortcode(); ?>`
66
 
67
 
68
+ >**Contribution**
69
+ >
70
+ >Developing plugins is long and tedious work. If you benefit or enjoy this plugin please take the time to:
71
+ >
72
+ >* Please [donate](http://www.arthurgareginyan.com/donate.html) to support ongoing development. Your contribution would be greatly appreciated.
73
+ >* Please take the time to [rate and review](https://wordpress.org/support/view/plugin-reviews/social-media-buttons-toolbar?rate=5#postform) this plugin.
74
+ >* Please [share with me](mailto:arthurgareginyan@gmail.com) if you have any ideas or suggestions to make this plugin better.
75
 
76
 
77
  == Installation ==
148
 
149
  Icon set [Social Buttons 2](https://www.iconfinder.com/iconsets/social-buttons-2) by Ivlichev Victor Petrovich and licensed under the [Creative Commons (Attribution 3.0 Unported)](http://creativecommons.org/licenses/by/3.0/).
150
 
 
 
 
 
 
 
 
 
 
151
  **Links**
152
 
153
  * [Developer Website](http://www.arthurgareginyan.com)
154
  * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/social-media-buttons-toolbar)
155
 
156
  == Changelog ==
157
+ = 2.0 =
158
+ * Some changes in design of settings page.
159
+ * Constants variables added.
160
+ * Text domain changed to "social-media-buttons-toolbar".
161
+ * Added compatibility with the translate.wordpress.org.
162
+ * All images are moved to the directory "images".
163
+ * Image "btn_donateCC_LG.gif" is now located in the "images" directory.
164
+ * Plugin URI changed to GitHub repository.
165
+ * Added my personal ad about freelance.
166
+ * .pot file updated.
167
+ * Russian translation updated.
168
+ = 1.5 =
169
+ * Fixed: "Notice: Undefined index: new_tab in .../social-media-buttons-toolbar.php on line 240".
170
  = 1.4 =
171
  * Added 6 new buttons (LiveJournal, Pinterest, Tumblr, VKontakte, Odnoklassniki, Personal website).
172
  * Fixed: "Use of undefined constant media".
200
 
201
 
202
  == Upgrade Notice ==
203
+ = 2.0 =
204
+ Please update to new release!
205
+ = 1.0 =
206
+ Please update to first stable release!
207
+ = 0.3 =
208
+ Prerelease.
209
+ = 0.2 =
210
+ Please update to beta version.
 
 
 
 
 
 
 
 
 
 
 
 
 
social-media-buttons-toolbar.php CHANGED
@@ -3,14 +3,14 @@
3
  * Plugin Name: Social Media Buttons Toolbar
4
  * Plugin URI: https://github.com/ArthurGareginyan/social-media-buttons-toolbar
5
  * Description: Easily add the smart toolbar with social media buttons (not share, only link to your profiles) to any place of your WordPress web-site.
6
- * Author: Arthur "Berserkr" Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
- * Version: 1.5
9
  * License: GPL3
10
- * Text Domain: smbtoolbar
11
  * Domain Path: /languages/
12
  *
13
- * Copyright 2015-2016 Arthur "Berserkr" Gareginyan (email : arthurgareginyan@gmail.com)
14
  *
15
  * This file is part of "Social Media Buttons Toolbar".
16
  *
@@ -36,13 +36,23 @@
36
  */
37
  defined('ABSPATH') or die("Restricted access!");
38
 
 
 
 
 
 
 
 
 
 
 
39
  /**
40
  * Register text domain
41
  *
42
- * @since 0.1
43
  */
44
  function smbtoolbar_textdomain() {
45
- load_plugin_textdomain( 'smbtoolbar', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
46
  }
47
  add_action( 'init', 'smbtoolbar_textdomain' );
48
 
@@ -52,39 +62,38 @@ add_action( 'init', 'smbtoolbar_textdomain' );
52
  * Fetches array of links generated by WP Plugin admin page ( Deactivate | Edit )
53
  * and inserts a link to the Social Media Buttons Toolbar admin page
54
  *
55
- * @since 0.1
56
  * @param array $links Array of links generated by WP in Plugin Admin page.
57
  * @return array Array of links to be output on Plugin Admin page.
58
  */
59
  function smbtoolbar_settings_link( $links ) {
60
- $settings_page = '<a href="' . admin_url( 'options-general.php?page=social-media-buttons-toolbar.php' ) .'">' . __( 'Settings', 'smbtoolbar' ) . '</a>';
61
  array_unshift( $links, $settings_page );
62
  return $links;
63
  }
64
- $plugin = plugin_basename( __FILE__ );
65
- add_filter( "plugin_action_links_$plugin", 'smbtoolbar_settings_link' );
66
 
67
  /**
68
  * Register "Social Media Buttons Toolbar" submenu in "Settings" Admin Menu
69
  *
70
- * @since 0.1
71
  */
72
  function smbtoolbar_register_submenu_page() {
73
- add_options_page( __( 'Social Media Buttons Toolbar', 'smbtoolbar' ), __( 'Social Buttons', 'smbtoolbar' ), 'manage_options', basename( __FILE__ ), 'smbtoolbar_render_submenu_page' );
74
  }
75
  add_action( 'admin_menu', 'smbtoolbar_register_submenu_page' );
76
 
77
  /**
78
  * Attach Settings Page
79
  *
80
- * @since 0.1
81
  */
82
- require_once( plugin_dir_path( __FILE__ ) . 'inc/settings_page.php' );
83
 
84
  /**
85
  * Enqueue style sheet for setting's page
86
  *
87
- * @since 0.1
88
  */
89
  function smbtoolbar_enqueue_scripts($hook) {
90
 
@@ -93,7 +102,7 @@ function smbtoolbar_enqueue_scripts($hook) {
93
  return;
94
  }
95
 
96
- wp_enqueue_style('styles', plugin_dir_url(__FILE__) . 'inc/style-admin.css');
97
  }
98
  add_action('admin_enqueue_scripts', 'smbtoolbar_enqueue_scripts');
99
 
@@ -216,7 +225,7 @@ function smbtoolbar_setting($name, $label, $help=null, $field=null, $placeholder
216
  /**
217
  * Generate the buttons toolbar
218
  *
219
- * @since 1.5
220
  */
221
  function smbtoolbar_tollbar() {
222
 
@@ -262,7 +271,7 @@ function smbtoolbar_tollbar() {
262
  }
263
  if ($key == "content") {
264
  if (!empty($value)) {
265
- $icon = plugins_url( "inc/social-media-icons/$slag.png", __FILE__ );
266
  $metatags_arr[] = '<li>
267
  <a href="' . $value . '" title="' . $label . '" ' . $new_tab . '>
268
  <img src="' . $icon . '" alt="' . $label . '" />
@@ -357,5 +366,4 @@ function smbtoolbar_uninstall() {
357
  }
358
  register_uninstall_hook( __FILE__, 'smbtoolbar_uninstall' );
359
 
360
- /* That's all folks! */
361
  ?>
3
  * Plugin Name: Social Media Buttons Toolbar
4
  * Plugin URI: https://github.com/ArthurGareginyan/social-media-buttons-toolbar
5
  * Description: Easily add the smart toolbar with social media buttons (not share, only link to your profiles) to any place of your WordPress web-site.
6
+ * Author: Arthur Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
+ * Version: 2.0
9
  * License: GPL3
10
+ * Text Domain: social-media-buttons-toolbar
11
  * Domain Path: /languages/
12
  *
13
+ * Copyright 2015-2016 Arthur Gareginyan (email : arthurgareginyan@gmail.com)
14
  *
15
  * This file is part of "Social Media Buttons Toolbar".
16
  *
36
  */
37
  defined('ABSPATH') or die("Restricted access!");
38
 
39
+ /**
40
+ * Plugin 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
51
  *
52
+ * @since 2.0
53
  */
54
  function smbtoolbar_textdomain() {
55
+ load_plugin_textdomain( 'social-media-buttons-toolbar', false, SMEDIABT_DIR . '/languages/' );
56
  }
57
  add_action( 'init', 'smbtoolbar_textdomain' );
58
 
62
  * Fetches array of links generated by WP Plugin admin page ( Deactivate | Edit )
63
  * and inserts a link to the Social Media Buttons Toolbar admin page
64
  *
65
+ * @since 2.0
66
  * @param array $links Array of links generated by WP in Plugin Admin page.
67
  * @return array Array of links to be output on Plugin Admin page.
68
  */
69
  function smbtoolbar_settings_link( $links ) {
70
+ $settings_page = '<a href="' . admin_url( 'options-general.php?page=social-media-buttons-toolbar.php' ) .'">' . __( 'Settings', 'social-media-buttons-toolbar' ) . '</a>';
71
  array_unshift( $links, $settings_page );
72
  return $links;
73
  }
74
+ add_filter( "plugin_action_links_".SMEDIABT_BASE, 'smbtoolbar_settings_link' );
 
75
 
76
  /**
77
  * Register "Social Media Buttons Toolbar" submenu in "Settings" Admin Menu
78
  *
79
+ * @since 2.0
80
  */
81
  function smbtoolbar_register_submenu_page() {
82
+ add_options_page( __( 'Social Media Buttons Toolbar', 'social-media-buttons-toolbar' ), __( 'Social Buttons', 'social-media-buttons-toolbar' ), 'manage_options', basename( __FILE__ ), 'smbtoolbar_render_submenu_page' );
83
  }
84
  add_action( 'admin_menu', 'smbtoolbar_register_submenu_page' );
85
 
86
  /**
87
  * Attach Settings Page
88
  *
89
+ * @since 2.0
90
  */
91
+ require_once( SMEDIABT_PATH . 'inc/settings_page.php' );
92
 
93
  /**
94
  * Enqueue style sheet for setting's page
95
  *
96
+ * @since 2.0
97
  */
98
  function smbtoolbar_enqueue_scripts($hook) {
99
 
102
  return;
103
  }
104
 
105
+ wp_enqueue_style('styles', SMEDIABT_URL . 'inc/style-admin.css');
106
  }
107
  add_action('admin_enqueue_scripts', 'smbtoolbar_enqueue_scripts');
108
 
225
  /**
226
  * Generate the buttons toolbar
227
  *
228
+ * @since 2.0
229
  */
230
  function smbtoolbar_tollbar() {
231
 
271
  }
272
  if ($key == "content") {
273
  if (!empty($value)) {
274
+ $icon = plugins_url( "inc/images/social-media-icons/$slag.png", __FILE__ );
275
  $metatags_arr[] = '<li>
276
  <a href="' . $value . '" title="' . $label . '" ' . $new_tab . '>
277
  <img src="' . $icon . '" alt="' . $label . '" />
366
  }
367
  register_uninstall_hook( __FILE__, 'smbtoolbar_uninstall' );
368
 
 
369
  ?>