Social Media Follow Buttons Bar - Version 3.3

Version Description

  • Added option to adjust the alignment.
  • Added the Readme.txt file for translation contribution.
  • Added global constant for plugin text-domain.
Download this release

Release Info

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

Code changes from version 3.2 to 3.3

inc/js/admin.js CHANGED
@@ -5,7 +5,7 @@
5
  * All Rights Reserved.
6
  */
7
 
8
-
9
  jQuery(document).ready(function($) {
10
 
11
  "use strict";
@@ -13,11 +13,11 @@ jQuery(document).ready(function($) {
13
  // Remove the "successful" message after 3 seconds
14
  if (".updated") {
15
  setTimeout(function() {
16
- $(".updated").fadeOut();
17
  }, 3000);
18
  }
19
 
20
  // Bootstrap Checkbox
21
  $(':checkbox').checkboxpicker();
22
 
23
- });
5
  * All Rights Reserved.
6
  */
7
 
8
+
9
  jQuery(document).ready(function($) {
10
 
11
  "use strict";
13
  // Remove the "successful" message after 3 seconds
14
  if (".updated") {
15
  setTimeout(function() {
16
+ $(".updated").fadeOut();
17
  }, 3000);
18
  }
19
 
20
  // Bootstrap Checkbox
21
  $(':checkbox').checkboxpicker();
22
 
23
+ });
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.2
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', 'social-media-buttons-toolbar' ); ?>
25
  <br/>
26
  <span>
27
- <?php _e( 'by <a href="http://www.arthurgareginyan.com" target="_blank">Arthur Gareginyan</a>', 'social-media-buttons-toolbar' ); ?>
28
  <span/>
29
  </h2>
30
 
@@ -35,33 +35,33 @@ 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', '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( 'Got something to say? Need help?', 'social-media-buttons-toolbar' ); ?></p>
48
  <p><a href="mailto:arthurgareginyan@gmail.com?subject=Social Media Buttons Toolbar">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
- <p><?php _e( 'If you like this plugin and find it useful, please help me to make this plugin even better and keep it up-to-date.', 'social-media-buttons-toolbar' ); ?></p>
56
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" rel="nofollow">
57
  <img src="<?php echo plugins_url('../img/btn_donateCC_LG.gif', __FILE__); ?>" alt="Make a donation">
58
  </a>
59
- <p><?php _e( 'Thanks for your support!', 'social-media-buttons-toolbar' ); ?></p>
60
  </div>
61
  </div>
62
 
63
  <div id="advertisement" class="postbox">
64
- <h3 class="title"><?php _e( 'Advertisement', 'social-media-buttons-toolbar' ); ?></h3>
65
  <div class="inside">
66
  <a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=36439_5_1_21" target="_blank" rel="nofollow"><img style="border:0px" src="http://www.elegantthemes.com/affiliates/media/banners/divi_250x250.jpg" width="250" height="250" alt="Divi WordPress Theme"></a>
67
  </div>
@@ -80,211 +80,242 @@ function smbtoolbar_render_submenu_page() {
80
  <?php settings_fields( 'smbtoolbar_settings_group' ); ?>
81
 
82
  <div class="postbox" id="Buttons">
83
- <h3 class="title"><?php _e( 'Buttons', 'social-media-buttons-toolbar' ); ?></h3>
84
  <div class="inside">
85
- <p class="description"><?php _e( 'Just fill in the required fields to make a buttons. The social networking buttons will lead directly to your profile pages. If you don\'t want to use any of the following buttons, you can not fill them and then they do not appear.', 'social-media-buttons-toolbar' ); ?></p>
86
  <table class="form-table">
87
  <?php smbtoolbar_media( 'facebook',
88
  'Facebook',
89
  'https://www.facebook.com/arthur.gareginyan',
90
- __( 'Enter the link to your Facebook profile page', 'social-media-buttons-toolbar' ),
91
  'hhttps://www.facebook.com'
92
- );?>
93
  <?php smbtoolbar_media( 'twitter',
94
  'Twitter',
95
  'https://twitter.com/AGareginyan',
96
- __( 'Enter the link to your Twitter profile page', 'social-media-buttons-toolbar' ),
97
  'https://twitter.com'
98
- );?>
99
  <?php smbtoolbar_media( 'instagram',
100
  'Instagram',
101
  'http://instagram.com/arthur_gareginyan/',
102
- __( 'Enter the link to your Instagram profile page', 'social-media-buttons-toolbar' ),
103
  'http://instagram.com'
104
- );?>
105
  <?php smbtoolbar_media( 'google-plus',
106
  'Google+',
107
  'https://plus.google.com/u/0/+ArthurGareginyan/',
108
- __( 'Enter the link to your Google+ profile page', 'social-media-buttons-toolbar' ),
109
  'https://plus.google.com'
110
- );?>
111
  <?php smbtoolbar_media( 'youtube',
112
  'YouTube',
113
  'https://www.youtube.com/channel/UCvQenE1DumnZy1k5sTvgmSA',
114
- __( 'Enter the link to your YouTube profile page', 'social-media-buttons-toolbar' ),
115
  'https://www.youtube.com'
116
- );?>
117
  <?php smbtoolbar_media( 'blogger',
118
  'Blogger',
119
  'http://oneberserk.blogspot.com',
120
- __( 'Enter the link to your Blogger profile page', 'social-media-buttons-toolbar' ),
121
  'https://www.blogger.com'
122
- );?>
123
  <?php smbtoolbar_media( 'livejournal',
124
  'LiveJournal',
125
  'http://www.livejournal.com/',
126
- __( 'Enter the link to your LiveJournal profile page', 'social-media-buttons-toolbar' ),
127
  'http://www.livejournal.com'
128
- );?>
129
  <?php smbtoolbar_media( 'reddit',
130
  'Reddit',
131
  'https://www.reddit.com/',
132
- __( 'Enter the link to your Reddit profile page', 'social-media-buttons-toolbar' ),
133
  'https://www.reddit.com'
134
- );?>
135
  <?php smbtoolbar_media( 'linkedin',
136
  'LinkedIn',
137
  'https://linkedin.com/in/arthurgareginyan',
138
- __( 'Enter the link to your LinkedIn profile page', 'social-media-buttons-toolbar' ),
139
  'https://linkedin.com'
140
- );?>
141
  <?php smbtoolbar_media( 'pinterest',
142
  'Pinterest',
143
  'https://www.pinterest.com/',
144
- __( 'Enter the link to your Pinterest profile page', 'social-media-buttons-toolbar' ),
145
  'https://www.pinterest.com'
146
- );?>
147
  <?php smbtoolbar_media( 'tumblr',
148
  'Tumblr',
149
  'https://www.tumblr.com/',
150
- __( 'Enter the link to your Tumblr profile page', 'social-media-buttons-toolbar' ),
151
  'https://www.tumblr.com'
152
- );?>
153
  <?php smbtoolbar_media( 'meetvibe',
154
  'MeetVibe',
155
  'https://meetvibe.com/',
156
- __( 'Enter the link to your MeetVibe profile page', 'social-media-buttons-toolbar' ),
157
  'https://meetvibe.com'
158
- );?>
159
  <?php smbtoolbar_media( 'vkontakte',
160
  'VKontakte',
161
  'https://vk.com/',
162
- __( 'Enter the link to your VKontakte profile page', 'social-media-buttons-toolbar' ),
163
  'https://vk.com'
164
- );?>
165
  <?php smbtoolbar_media( 'odnoklassniki',
166
  'Odnoklassniki',
167
  'https://ok.ru/',
168
- __( 'Enter the link to your Odnoklassniki profile page', 'social-media-buttons-toolbar' ),
169
  'https://ok.ru'
170
- );?>
171
  <?php smbtoolbar_media( 'telegram',
172
  'Telegram',
173
  'https://telegram.org/',
174
- __( 'Enter the link to your Telegram profile page', 'social-media-buttons-toolbar' ),
175
  'https://telegram.org'
176
- );?>
177
  <?php smbtoolbar_media( 'github',
178
  'GitHub',
179
  'https://github.com/ArthurGareginyan',
180
- __( 'Enter the link to your GitHub profile page', 'social-media-buttons-toolbar' ),
181
  'https://github.com'
182
- );?>
183
  <?php smbtoolbar_media( 'wordpress',
184
  'WordPress',
185
  'https://profiles.wordpress.org/arthur-gareginyan/',
186
- __( 'Enter the link to your WordPress profile page', 'social-media-buttons-toolbar' ),
187
  'https://wordpress.org'
188
- );?>
189
  <?php smbtoolbar_media( 'codepen',
190
  'CodePen',
191
  'http://codepen.io/berserkr/',
192
- __( 'Enter the link to your CodePen profile page', 'social-media-buttons-toolbar' ),
193
  'http://codepen.io'
194
- );?>
195
  <?php smbtoolbar_media( 'skype',
196
  'Skype',
197
  'skype:YourName?call',
198
- __( 'Enter your Skype name with prefix <b>skype:</b> and suffix <b>?call</b>, or <b>?add</b>, or <b>?chat</b>, or <b>?userinfo</b> for view profile.', 'social-media-buttons-toolbar' ),
199
  'https://www.skype.com'
200
- );?>
201
  <?php smbtoolbar_media( 'website',
202
  'Personal website',
203
  'http://www.arthurgareginyan.com',
204
- __( 'Enter the link to your personal website', 'social-media-buttons-toolbar' ),
205
  ''
206
- );?>
207
  <?php smbtoolbar_media( 'email',
208
  'Email',
209
  'mailto:arthurgareginyan@gmail.com',
210
- __( 'Enter your email address with prefix <b>mailto:</b>', 'social-media-buttons-toolbar' ),
211
  ''
212
- );?>
213
  <?php smbtoolbar_media( 'rss-feed',
214
  'RSS Feed',
215
  'http://arthurgareginyan.com/feed',
216
- __( 'Enter the link to your RSS Feed', 'social-media-buttons-toolbar' ),
217
  ''
218
- );?>
219
  </table>
220
- <?php submit_button( __( 'Save Changes', 'social-media-buttons-toolbar' ), 'primary', 'submit', true ); ?>
221
  </div>
222
  </div>
223
 
224
  <div class="postbox" id="DisplayOptions">
225
- <h3 class="title"><?php _e( 'Display options', 'social-media-buttons-toolbar' ); ?></h3>
226
  <div class="inside">
227
  <p class="description"></p>
228
  <table class="form-table">
229
  <?php smbtoolbar_setting('show_posts',
230
- __( 'Show on Posts', 'social-media-buttons-toolbar' ),
231
- __( 'Display toolbar below content on Posts', 'social-media-buttons-toolbar' ),
232
  'check'
233
- );?>
234
  <?php smbtoolbar_setting('show_pages',
235
- __( 'Show on Pages', 'social-media-buttons-toolbar' ),
236
- __( 'Display toolbar below content on Pages', 'social-media-buttons-toolbar' ),
237
  'check'
238
- );?>
239
  <?php smbtoolbar_setting('new_tab',
240
- __( 'Open link in new tab/window', 'social-media-buttons-toolbar' ),
241
  '',
242
  'check'
243
- );?>
244
  <?php smbtoolbar_setting('icon-size',
245
- __( 'Icon size', 'social-media-buttons-toolbar' ),
246
- __( 'Enter the size of icons (in px) in your social media buttons toolbar.', 'social-media-buttons-toolbar' ),
247
  'field',
248
  '64',
249
  '2'
250
- );?>
251
  <?php smbtoolbar_setting('margin-right',
252
- __( 'Margin right', 'social-media-buttons-toolbar' ),
253
- __( 'Enter the size of space (in px) between icons in your social media buttons toolbar.', 'social-media-buttons-toolbar' ),
254
  'field',
255
  '10',
256
  '2'
257
- );?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  <?php smbtoolbar_setting('caption',
259
- __( 'Caption', 'social-media-buttons-toolbar' ),
260
- __( 'Enter the caption to your social media buttons toolbar. It will be displays before the toolbar.', 'social-media-buttons-toolbar' ),
261
  'field',
262
  'Follow me in social media:',
263
  '50'
264
- );?>
265
  </table>
266
- <?php submit_button( __( 'Save Changes', 'social-media-buttons-toolbar' ), 'primary', 'submit', true ); ?>
267
  </div>
268
  </div>
269
 
270
  <div class="postbox" id="Preview">
271
- <h3 class="title"><?php _e( 'Preview', 'social-media-buttons-toolbar' ); ?></h3>
272
  <div class="inside">
273
- <p class="description"><?php _e( 'Click "Save Changes" to update this preview.', 'social-media-buttons-toolbar' ); ?></p></br>
274
  <?php echo smbtoolbar_shortcode(); ?>
275
  </div>
276
  </div>
277
 
278
  <div class="postbox" id="Using">
279
- <h3 class="title"><?php _e( 'Using', 'social-media-buttons-toolbar' ); ?></h3>
280
  <div class="inside">
281
- <p><?php _e( 'You have several methods for display the social media buttons toolbar (further just "toolbar") on your website. But first, fill in the required fields, then click "Save Changes".', 'social-media-buttons-toolbar' ); ?></p>
282
- <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>
283
- <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>
284
  <p><?php highlight_string('[smbtoolbar]'); ?></p>
285
- <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>
286
  <p><?php highlight_string('[smbtoolbar]'); ?></p>
287
- <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>
288
  <p><?php highlight_string('<?php echo do_shortcode("[smbtoolbar]"); ?>'); ?></p>
289
  <p><?php highlight_string('<?php echo smbtoolbar_shortcode(); ?>'); ?></p>
290
  </div>
10
  /**
11
  * Render Settings Page
12
  *
13
+ * @since 3.3
14
  */
15
  function smbtoolbar_render_submenu_page() {
16
 
21
  ?>
22
  <div class="wrap">
23
  <h2>
24
+ <?php _e( 'Social Media Buttons Toolbar', SMEDIABT_TEXT ); ?>
25
  <br/>
26
  <span>
27
+ <?php _e( 'by <a href="http://www.arthurgareginyan.com" target="_blank">Arthur Gareginyan</a>', SMEDIABT_TEXT ); ?>
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', SMEDIABT_TEXT ); ?></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.', SMEDIABT_TEXT ); ?></p>
41
  </div>
42
  </div>
43
 
44
  <div id="help" class="postbox">
45
+ <h3 class="title"><?php _e( 'Help', SMEDIABT_TEXT ); ?></h3>
46
  <div class="inside">
47
+ <p><?php _e( 'Got something to say? Need help?', SMEDIABT_TEXT ); ?></p>
48
  <p><a href="mailto:arthurgareginyan@gmail.com?subject=Social Media Buttons Toolbar">arthurgareginyan@gmail.com</a></p>
49
  </div>
50
  </div>
51
 
52
  <div id="donate" class="postbox">
53
+ <h3 class="title"><?php _e( 'Donate', SMEDIABT_TEXT ); ?></h3>
54
  <div class="inside">
55
+ <p><?php _e( 'I\'m an independent developer, without a regular income, so every little contribution helps cover my costs and lets me spend more time building things for people like you to enjoy.', SMEDIABT_TEXT ); ?></p>
56
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" rel="nofollow">
57
  <img src="<?php echo plugins_url('../img/btn_donateCC_LG.gif', __FILE__); ?>" alt="Make a donation">
58
  </a>
59
+ <p><?php _e( 'Thanks for your support!', SMEDIABT_TEXT ); ?></p>
60
  </div>
61
  </div>
62
 
63
  <div id="advertisement" class="postbox">
64
+ <h3 class="title"><?php _e( 'Advertisement', SMEDIABT_TEXT ); ?></h3>
65
  <div class="inside">
66
  <a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=36439_5_1_21" target="_blank" rel="nofollow"><img style="border:0px" src="http://www.elegantthemes.com/affiliates/media/banners/divi_250x250.jpg" width="250" height="250" alt="Divi WordPress Theme"></a>
67
  </div>
80
  <?php settings_fields( 'smbtoolbar_settings_group' ); ?>
81
 
82
  <div class="postbox" id="Buttons">
83
+ <h3 class="title"><?php _e( 'Buttons', SMEDIABT_TEXT ); ?></h3>
84
  <div class="inside">
85
+ <p class="description"><?php _e( 'Just fill in the required fields to make a buttons. The social networking buttons will lead directly to your profile pages. If you don\'t want to use any of the following buttons, you can not fill them and then they do not appear.', SMEDIABT_TEXT ); ?></p>
86
  <table class="form-table">
87
  <?php smbtoolbar_media( 'facebook',
88
  'Facebook',
89
  'https://www.facebook.com/arthur.gareginyan',
90
+ __( 'Enter the link to your Facebook profile page', SMEDIABT_TEXT ),
91
  'hhttps://www.facebook.com'
92
+ ); ?>
93
  <?php smbtoolbar_media( 'twitter',
94
  'Twitter',
95
  'https://twitter.com/AGareginyan',
96
+ __( 'Enter the link to your Twitter profile page', SMEDIABT_TEXT ),
97
  'https://twitter.com'
98
+ ); ?>
99
  <?php smbtoolbar_media( 'instagram',
100
  'Instagram',
101
  'http://instagram.com/arthur_gareginyan/',
102
+ __( 'Enter the link to your Instagram profile page', SMEDIABT_TEXT ),
103
  'http://instagram.com'
104
+ ); ?>
105
  <?php smbtoolbar_media( 'google-plus',
106
  'Google+',
107
  'https://plus.google.com/u/0/+ArthurGareginyan/',
108
+ __( 'Enter the link to your Google+ profile page', SMEDIABT_TEXT ),
109
  'https://plus.google.com'
110
+ ); ?>
111
  <?php smbtoolbar_media( 'youtube',
112
  'YouTube',
113
  'https://www.youtube.com/channel/UCvQenE1DumnZy1k5sTvgmSA',
114
+ __( 'Enter the link to your YouTube profile page', SMEDIABT_TEXT ),
115
  'https://www.youtube.com'
116
+ ); ?>
117
  <?php smbtoolbar_media( 'blogger',
118
  'Blogger',
119
  'http://oneberserk.blogspot.com',
120
+ __( 'Enter the link to your Blogger profile page', SMEDIABT_TEXT ),
121
  'https://www.blogger.com'
122
+ ); ?>
123
  <?php smbtoolbar_media( 'livejournal',
124
  'LiveJournal',
125
  'http://www.livejournal.com/',
126
+ __( 'Enter the link to your LiveJournal profile page', SMEDIABT_TEXT ),
127
  'http://www.livejournal.com'
128
+ ); ?>
129
  <?php smbtoolbar_media( 'reddit',
130
  'Reddit',
131
  'https://www.reddit.com/',
132
+ __( 'Enter the link to your Reddit profile page', SMEDIABT_TEXT ),
133
  'https://www.reddit.com'
134
+ ); ?>
135
  <?php smbtoolbar_media( 'linkedin',
136
  'LinkedIn',
137
  'https://linkedin.com/in/arthurgareginyan',
138
+ __( 'Enter the link to your LinkedIn profile page', SMEDIABT_TEXT ),
139
  'https://linkedin.com'
140
+ ); ?>
141
  <?php smbtoolbar_media( 'pinterest',
142
  'Pinterest',
143
  'https://www.pinterest.com/',
144
+ __( 'Enter the link to your Pinterest profile page', SMEDIABT_TEXT ),
145
  'https://www.pinterest.com'
146
+ ); ?>
147
  <?php smbtoolbar_media( 'tumblr',
148
  'Tumblr',
149
  'https://www.tumblr.com/',
150
+ __( 'Enter the link to your Tumblr profile page', SMEDIABT_TEXT ),
151
  'https://www.tumblr.com'
152
+ ); ?>
153
  <?php smbtoolbar_media( 'meetvibe',
154
  'MeetVibe',
155
  'https://meetvibe.com/',
156
+ __( 'Enter the link to your MeetVibe profile page', SMEDIABT_TEXT ),
157
  'https://meetvibe.com'
158
+ ); ?>
159
  <?php smbtoolbar_media( 'vkontakte',
160
  'VKontakte',
161
  'https://vk.com/',
162
+ __( 'Enter the link to your VKontakte profile page', SMEDIABT_TEXT ),
163
  'https://vk.com'
164
+ ); ?>
165
  <?php smbtoolbar_media( 'odnoklassniki',
166
  'Odnoklassniki',
167
  'https://ok.ru/',
168
+ __( 'Enter the link to your Odnoklassniki profile page', SMEDIABT_TEXT ),
169
  'https://ok.ru'
170
+ ); ?>
171
  <?php smbtoolbar_media( 'telegram',
172
  'Telegram',
173
  'https://telegram.org/',
174
+ __( 'Enter the link to your Telegram profile page', SMEDIABT_TEXT ),
175
  'https://telegram.org'
176
+ ); ?>
177
  <?php smbtoolbar_media( 'github',
178
  'GitHub',
179
  'https://github.com/ArthurGareginyan',
180
+ __( 'Enter the link to your GitHub profile page', SMEDIABT_TEXT ),
181
  'https://github.com'
182
+ ); ?>
183
  <?php smbtoolbar_media( 'wordpress',
184
  'WordPress',
185
  'https://profiles.wordpress.org/arthur-gareginyan/',
186
+ __( 'Enter the link to your WordPress profile page', SMEDIABT_TEXT ),
187
  'https://wordpress.org'
188
+ ); ?>
189
  <?php smbtoolbar_media( 'codepen',
190
  'CodePen',
191
  'http://codepen.io/berserkr/',
192
+ __( 'Enter the link to your CodePen profile page', SMEDIABT_TEXT ),
193
  'http://codepen.io'
194
+ ); ?>
195
  <?php smbtoolbar_media( 'skype',
196
  'Skype',
197
  'skype:YourName?call',
198
+ __( 'Enter your Skype name with prefix <b>skype:</b> and suffix <b>?call</b>, or <b>?add</b>, or <b>?chat</b>, or <b>?userinfo</b> for view profile.', SMEDIABT_TEXT ),
199
  'https://www.skype.com'
200
+ ); ?>
201
  <?php smbtoolbar_media( 'website',
202
  'Personal website',
203
  'http://www.arthurgareginyan.com',
204
+ __( 'Enter the link to your personal website', SMEDIABT_TEXT ),
205
  ''
206
+ ); ?>
207
  <?php smbtoolbar_media( 'email',
208
  'Email',
209
  'mailto:arthurgareginyan@gmail.com',
210
+ __( 'Enter your email address with prefix <b>mailto:</b>', SMEDIABT_TEXT ),
211
  ''
212
+ ); ?>
213
  <?php smbtoolbar_media( 'rss-feed',
214
  'RSS Feed',
215
  'http://arthurgareginyan.com/feed',
216
+ __( 'Enter the link to your RSS Feed', SMEDIABT_TEXT ),
217
  ''
218
+ ); ?>
219
  </table>
220
+ <?php submit_button( __( 'Save Changes', SMEDIABT_TEXT ), 'primary', 'submit', true ); ?>
221
  </div>
222
  </div>
223
 
224
  <div class="postbox" id="DisplayOptions">
225
+ <h3 class="title"><?php _e( 'Display options', SMEDIABT_TEXT ); ?></h3>
226
  <div class="inside">
227
  <p class="description"></p>
228
  <table class="form-table">
229
  <?php smbtoolbar_setting('show_posts',
230
+ __( 'Show on Posts', SMEDIABT_TEXT ),
231
+ __( 'Display toolbar below content on Posts', SMEDIABT_TEXT ),
232
  'check'
233
+ ); ?>
234
  <?php smbtoolbar_setting('show_pages',
235
+ __( 'Show on Pages', SMEDIABT_TEXT ),
236
+ __( 'Display toolbar below content on Pages', SMEDIABT_TEXT ),
237
  'check'
238
+ ); ?>
239
  <?php smbtoolbar_setting('new_tab',
240
+ __( 'Open link in new tab/window', SMEDIABT_TEXT ),
241
  '',
242
  'check'
243
+ ); ?>
244
  <?php smbtoolbar_setting('icon-size',
245
+ __( 'Icon size', SMEDIABT_TEXT ),
246
+ __( 'Enter the size of icons (in px) in your social media buttons toolbar.', SMEDIABT_TEXT ),
247
  'field',
248
  '64',
249
  '2'
250
+ ); ?>
251
  <?php smbtoolbar_setting('margin-right',
252
+ __( 'Margin right', SMEDIABT_TEXT ),
253
+ __( 'Enter the size of space (in px) between icons in your social media buttons toolbar.', SMEDIABT_TEXT ),
254
  'field',
255
  '10',
256
  '2'
257
+ ); ?>
258
+
259
+ <?php
260
+ $options = get_option( 'smbtoolbar_settings' );
261
+ if ( !empty( $options['alignment'] ) ) :
262
+ $alignment = $options['alignment'];
263
+ else :
264
+ $alignment = '';
265
+ endif;
266
+ ?>
267
+ <tr valign='top'>
268
+ <th scope='row'>
269
+ <?php _e( 'Alignment', SMEDIABT_TEXT ); ?>
270
+ </th>
271
+ <td>
272
+ <ul>
273
+ <li>
274
+ <input type="radio" name="smbtoolbar_settings[alignment]" value="left" <?php checked('left', $alignment); ?> >
275
+ <?php _e( 'Left', SSTOPB_TEXT ); ?>
276
+ </li>
277
+ <li>
278
+ <input type="radio" name="smbtoolbar_settings[alignment]" value="center" <?php checked('', $alignment); ?> <?php checked('center', $alignment); ?> >
279
+ <?php _e( 'Center', SSTOPB_TEXT ); ?>
280
+ </li>
281
+ <li>
282
+ <input type="radio" name="smbtoolbar_settings[alignment]" value="right" <?php checked('right', $alignment); ?> >
283
+ <?php _e( 'Right', SSTOPB_TEXT ); ?>
284
+ </li>
285
+ </ul>
286
+ </td>
287
+ </tr>
288
+
289
  <?php smbtoolbar_setting('caption',
290
+ __( 'Caption', SMEDIABT_TEXT ),
291
+ __( 'Enter the caption to your social media buttons toolbar. It will be displays before the toolbar.', SMEDIABT_TEXT ),
292
  'field',
293
  'Follow me in social media:',
294
  '50'
295
+ ); ?>
296
  </table>
297
+ <?php submit_button( __( 'Save Changes', SMEDIABT_TEXT ), 'primary', 'submit', true ); ?>
298
  </div>
299
  </div>
300
 
301
  <div class="postbox" id="Preview">
302
+ <h3 class="title"><?php _e( 'Preview', SMEDIABT_TEXT ); ?></h3>
303
  <div class="inside">
304
+ <p class="description"><?php _e( 'Click "Save Changes" to update this preview.', SMEDIABT_TEXT ); ?></p></br>
305
  <?php echo smbtoolbar_shortcode(); ?>
306
  </div>
307
  </div>
308
 
309
  <div class="postbox" id="Using">
310
+ <h3 class="title"><?php _e( 'Using', SMEDIABT_TEXT ); ?></h3>
311
  <div class="inside">
312
+ <p><?php _e( 'You have several methods for display the social media buttons toolbar (further just "toolbar") on your website. But first, fill in the required fields, then click "Save Changes".', SMEDIABT_TEXT ); ?></p>
313
+ <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!', SMEDIABT_TEXT ); ?></p>
314
+ <p><?php _e( '<b>B)</b> For add the toolbar inside a post from WP Post/Page Editor use the following shortcode:', SMEDIABT_TEXT ); ?></p>
315
  <p><?php highlight_string('[smbtoolbar]'); ?></p>
316
+ <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:', SMEDIABT_TEXT ); ?></p>
317
  <p><?php highlight_string('[smbtoolbar]'); ?></p>
318
+ <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:', SMEDIABT_TEXT ); ?></p>
319
  <p><?php highlight_string('<?php echo do_shortcode("[smbtoolbar]"); ?>'); ?></p>
320
  <p><?php highlight_string('<?php echo smbtoolbar_shortcode(); ?>'); ?></p>
321
  </div>
languages/Readme.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
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!
languages/social-media-buttons-toolbar-ru_RU.mo CHANGED
Binary file
languages/social-media-buttons-toolbar-ru_RU.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Social Media Buttons Toolbar\n"
4
- "POT-Creation-Date: 2016-09-04 11:16+0300\n"
5
- "PO-Revision-Date: 2016-09-04 11:30+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/php/settings_page.php:24 social-media-buttons-toolbar.php:84
26
  msgid "Social Media Buttons Toolbar"
27
  msgstr ""
28
 
@@ -56,15 +56,17 @@ msgstr "Есть что сказать? Нужна помощь?"
56
 
57
  #: inc/php/settings_page.php:53
58
  msgid "Donate"
59
- msgstr "Пожертвование"
60
 
61
  #: inc/php/settings_page.php:55
62
  msgid ""
63
- "If you like this plugin and find it useful, please help me to make this "
64
- "plugin even better and keep it up-to-date."
 
65
  msgstr ""
66
- "Если вам нравится этот плагин и вы находите его полезным, то пожалуйста "
67
- "помогите мне сделать его ещё лучше."
 
68
 
69
  #: inc/php/settings_page.php:59
70
  msgid "Thanks for your support!"
@@ -183,7 +185,7 @@ msgstr "Введите адрес электронной почты с преф
183
  msgid "Enter the link to your RSS Feed"
184
  msgstr "Введите ссылку на ваш RSS поток"
185
 
186
- #: inc/php/settings_page.php:220 inc/php/settings_page.php:266
187
  msgid "Save Changes"
188
  msgstr "Сохранить изменения"
189
 
@@ -218,6 +220,7 @@ msgstr "Размер иконки"
218
  #: inc/php/settings_page.php:246
219
  msgid "Enter the size of icons (in px) in your social media buttons toolbar."
220
  msgstr ""
 
221
 
222
  #: inc/php/settings_page.php:252
223
  msgid "Margin right"
@@ -228,12 +231,30 @@ msgid ""
228
  "Enter the size of space (in px) between icons in your social media buttons "
229
  "toolbar."
230
  msgstr ""
 
 
231
 
232
- #: inc/php/settings_page.php:259
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
233
  msgid "Caption"
234
  msgstr "Заголовок"
235
 
236
- #: inc/php/settings_page.php:260
237
  msgid ""
238
  "Enter the caption to your social media buttons toolbar. It will be displays "
239
  "before the toolbar."
@@ -241,19 +262,19 @@ msgstr ""
241
  "Введите заголовок для блока с кнопками социальных медиа. Он будет отображает "
242
  "над панелью."
243
 
244
- #: inc/php/settings_page.php:271
245
  msgid "Preview"
246
  msgstr "Предварительный просмотр"
247
 
248
- #: inc/php/settings_page.php:273
249
  msgid "Click \"Save Changes\" to update this preview."
250
  msgstr "Нажмите кнопку «Сохранить изменения», чтобы обновить этот просмотр."
251
 
252
- #: inc/php/settings_page.php:279
253
  msgid "Using"
254
- msgstr "Использование:"
255
 
256
- #: inc/php/settings_page.php:281
257
  msgid ""
258
  "You have several methods for display the social media buttons toolbar "
259
  "(further just \"toolbar\") on your website. But first, fill in the required "
@@ -263,37 +284,37 @@ msgstr ""
263
  "медиа кнопок (далее просто “кнопки”) на вашем вебсайте. Но сначала заполните "
264
  "поля для каждой нужной кнопки, а затем нажмите “Сохранить изменения”."
265
 
266
- #: inc/php/settings_page.php:282
267
  msgid ""
268
  "<b>A)</b> For display the toolbar below content on every Posts or/and Pages, "
269
  "just check the checkbox \"Show on Posts\" or/and \"Show on Pages\" in the "
270
  "section \"Display options\", then click \"Save Changes\". It's that simple!"
271
  msgstr ""
272
 
273
- #: inc/php/settings_page.php:283
274
  msgid ""
275
  "<b>B)</b> For add the toolbar inside a post from WP Post/Page Editor use the "
276
  "following shortcode:"
277
  msgstr ""
278
 
279
- #: inc/php/settings_page.php:285
280
  msgid ""
281
  "<b>C)</b> For add the toolbar to the widget area (in sidebar, footer etc.) "
282
  "use the \"Text\" widget and add inside it the following shortcode:"
283
  msgstr ""
284
 
285
- #: inc/php/settings_page.php:287
286
  msgid ""
287
  "<b>D)</b> For add the toolbar directly to a theme files, just add one of the "
288
  "following code (both variants do the same) to needed place (where you want "
289
  "to display the toolbar) in your theme files:"
290
  msgstr ""
291
 
292
- #: social-media-buttons-toolbar.php:72
293
  msgid "Settings"
294
  msgstr "Настройки"
295
 
296
- #: social-media-buttons-toolbar.php:84
297
  msgid "Social Buttons"
298
  msgstr "Социальные кнопки"
299
 
@@ -317,6 +338,13 @@ msgstr "Артур Гарегинян"
317
  msgid "http://www.arthurgareginyan.com"
318
  msgstr ""
319
 
 
 
 
 
 
 
 
320
  #~ msgid "Enter the link to your Github profile page"
321
  #~ msgstr "Введите ссылку на вашу страницу профиля Github"
322
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Social Media Buttons Toolbar\n"
4
+ "POT-Creation-Date: 2016-09-23 23:27+0300\n"
5
+ "PO-Revision-Date: 2016-09-23 23:28+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/php/settings_page.php:24 social-media-buttons-toolbar.php:85
26
  msgid "Social Media Buttons Toolbar"
27
  msgstr ""
28
 
56
 
57
  #: inc/php/settings_page.php:53
58
  msgid "Donate"
59
+ msgstr "Поддержать разработку"
60
 
61
  #: inc/php/settings_page.php:55
62
  msgid ""
63
+ "I'm an independent developer, without a regular income, so every little "
64
+ "contribution helps cover my costs and lets me spend more time building "
65
+ "things for people like you to enjoy."
66
  msgstr ""
67
+ "Я независимый разработчик, без регулярного дохода, так что каждый маленький "
68
+ "вклад помогает мне покрыть затраты и позволяет тратить больше времени на "
69
+ "создание программ для людей как вы."
70
 
71
  #: inc/php/settings_page.php:59
72
  msgid "Thanks for your support!"
185
  msgid "Enter the link to your RSS Feed"
186
  msgstr "Введите ссылку на ваш RSS поток"
187
 
188
+ #: inc/php/settings_page.php:220 inc/php/settings_page.php:297
189
  msgid "Save Changes"
190
  msgstr "Сохранить изменения"
191
 
220
  #: inc/php/settings_page.php:246
221
  msgid "Enter the size of icons (in px) in your social media buttons toolbar."
222
  msgstr ""
223
+ "Введите размер иконок (в пикселях) для вашей панели социальных медиа кнопок."
224
 
225
  #: inc/php/settings_page.php:252
226
  msgid "Margin right"
231
  "Enter the size of space (in px) between icons in your social media buttons "
232
  "toolbar."
233
  msgstr ""
234
+ "Введите размер пространства (в пикселях) между иконками для вашей панели "
235
+ "социальных медиа кнопок."
236
 
237
+ #: inc/php/settings_page.php:269
238
+ msgid "Alignment"
239
+ msgstr "Выравнивание"
240
+
241
+ #: inc/php/settings_page.php:275
242
+ msgid "Left"
243
+ msgstr "Слева"
244
+
245
+ #: inc/php/settings_page.php:279
246
+ msgid "Center"
247
+ msgstr "По центру"
248
+
249
+ #: inc/php/settings_page.php:283
250
+ msgid "Right"
251
+ msgstr "Справа"
252
+
253
+ #: inc/php/settings_page.php:290
254
  msgid "Caption"
255
  msgstr "Заголовок"
256
 
257
+ #: inc/php/settings_page.php:291
258
  msgid ""
259
  "Enter the caption to your social media buttons toolbar. It will be displays "
260
  "before the toolbar."
262
  "Введите заголовок для блока с кнопками социальных медиа. Он будет отображает "
263
  "над панелью."
264
 
265
+ #: inc/php/settings_page.php:302
266
  msgid "Preview"
267
  msgstr "Предварительный просмотр"
268
 
269
+ #: inc/php/settings_page.php:304
270
  msgid "Click \"Save Changes\" to update this preview."
271
  msgstr "Нажмите кнопку «Сохранить изменения», чтобы обновить этот просмотр."
272
 
273
+ #: inc/php/settings_page.php:310
274
  msgid "Using"
275
+ msgstr "Как пользоваться"
276
 
277
+ #: inc/php/settings_page.php:312
278
  msgid ""
279
  "You have several methods for display the social media buttons toolbar "
280
  "(further just \"toolbar\") on your website. But first, fill in the required "
284
  "медиа кнопок (далее просто “кнопки”) на вашем вебсайте. Но сначала заполните "
285
  "поля для каждой нужной кнопки, а затем нажмите “Сохранить изменения”."
286
 
287
+ #: inc/php/settings_page.php:313
288
  msgid ""
289
  "<b>A)</b> For display the toolbar below content on every Posts or/and Pages, "
290
  "just check the checkbox \"Show on Posts\" or/and \"Show on Pages\" in the "
291
  "section \"Display options\", then click \"Save Changes\". It's that simple!"
292
  msgstr ""
293
 
294
+ #: inc/php/settings_page.php:314
295
  msgid ""
296
  "<b>B)</b> For add the toolbar inside a post from WP Post/Page Editor use the "
297
  "following shortcode:"
298
  msgstr ""
299
 
300
+ #: inc/php/settings_page.php:316
301
  msgid ""
302
  "<b>C)</b> For add the toolbar to the widget area (in sidebar, footer etc.) "
303
  "use the \"Text\" widget and add inside it the following shortcode:"
304
  msgstr ""
305
 
306
+ #: inc/php/settings_page.php:318
307
  msgid ""
308
  "<b>D)</b> For add the toolbar directly to a theme files, just add one of the "
309
  "following code (both variants do the same) to needed place (where you want "
310
  "to display the toolbar) in your theme files:"
311
  msgstr ""
312
 
313
+ #: social-media-buttons-toolbar.php:73
314
  msgid "Settings"
315
  msgstr "Настройки"
316
 
317
+ #: social-media-buttons-toolbar.php:85
318
  msgid "Social Buttons"
319
  msgstr "Социальные кнопки"
320
 
338
  msgid "http://www.arthurgareginyan.com"
339
  msgstr ""
340
 
341
+ #~ msgid ""
342
+ #~ "If you like this plugin and find it useful, please help me to make this "
343
+ #~ "plugin even better and keep it up-to-date."
344
+ #~ msgstr ""
345
+ #~ "Если вам нравится этот плагин и вы находите его полезным, то пожалуйста "
346
+ #~ "помогите мне сделать его ещё лучше."
347
+
348
  #~ msgid "Enter the link to your Github profile page"
349
  #~ msgstr "Введите ссылку на вашу страницу профиля Github"
350
 
languages/social-media-buttons-toolbar.pot CHANGED
@@ -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-09-04 11:16+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/php/settings_page.php:24 social-media-buttons-toolbar.php:84
25
  msgid "Social Media Buttons Toolbar"
26
  msgstr ""
27
 
@@ -55,8 +55,9 @@ msgstr ""
55
 
56
  #: inc/php/settings_page.php:55
57
  msgid ""
58
- "If you like this plugin and find it useful, please help me to make this "
59
- "plugin even better and keep it up-to-date."
 
60
  msgstr ""
61
 
62
  #: inc/php/settings_page.php:59
@@ -169,7 +170,7 @@ msgstr ""
169
  msgid "Enter the link to your RSS Feed"
170
  msgstr ""
171
 
172
- #: inc/php/settings_page.php:220 inc/php/settings_page.php:266
173
  msgid "Save Changes"
174
  msgstr ""
175
 
@@ -215,66 +216,82 @@ msgid ""
215
  "toolbar."
216
  msgstr ""
217
 
218
- #: inc/php/settings_page.php:259
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
219
  msgid "Caption"
220
  msgstr ""
221
 
222
- #: inc/php/settings_page.php:260
223
  msgid ""
224
  "Enter the caption to your social media buttons toolbar. It will be displays "
225
  "before the toolbar."
226
  msgstr ""
227
 
228
- #: inc/php/settings_page.php:271
229
  msgid "Preview"
230
  msgstr ""
231
 
232
- #: inc/php/settings_page.php:273
233
  msgid "Click \"Save Changes\" to update this preview."
234
  msgstr ""
235
 
236
- #: inc/php/settings_page.php:279
237
  msgid "Using"
238
  msgstr ""
239
 
240
- #: inc/php/settings_page.php:281
241
  msgid ""
242
  "You have several methods for display the social media buttons toolbar "
243
  "(further just \"toolbar\") on your website. But first, fill in the required "
244
  "fields, then click \"Save Changes\"."
245
  msgstr ""
246
 
247
- #: inc/php/settings_page.php:282
248
  msgid ""
249
  "<b>A)</b> For display the toolbar below content on every Posts or/and Pages, "
250
  "just check the checkbox \"Show on Posts\" or/and \"Show on Pages\" in the "
251
  "section \"Display options\", then click \"Save Changes\". It's that simple!"
252
  msgstr ""
253
 
254
- #: inc/php/settings_page.php:283
255
  msgid ""
256
  "<b>B)</b> For add the toolbar inside a post from WP Post/Page Editor use the "
257
  "following shortcode:"
258
  msgstr ""
259
 
260
- #: inc/php/settings_page.php:285
261
  msgid ""
262
  "<b>C)</b> For add the toolbar to the widget area (in sidebar, footer etc.) "
263
  "use the \"Text\" widget and add inside it the following shortcode:"
264
  msgstr ""
265
 
266
- #: inc/php/settings_page.php:287
267
  msgid ""
268
  "<b>D)</b> For add the toolbar directly to a theme files, just add one of the "
269
  "following code (both variants do the same) to needed place (where you want "
270
  "to display the toolbar) in your theme files:"
271
  msgstr ""
272
 
273
- #: social-media-buttons-toolbar.php:72
274
  msgid "Settings"
275
  msgstr ""
276
 
277
- #: social-media-buttons-toolbar.php:84
278
  msgid "Social Buttons"
279
  msgstr ""
280
 
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Social Media Buttons Toolbar\n"
6
+ "POT-Creation-Date: 2016-09-23 23:26+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/php/settings_page.php:24 social-media-buttons-toolbar.php:85
25
  msgid "Social Media Buttons Toolbar"
26
  msgstr ""
27
 
55
 
56
  #: inc/php/settings_page.php:55
57
  msgid ""
58
+ "I'm an independent developer, without a regular income, so every little "
59
+ "contribution helps cover my costs and lets me spend more time building "
60
+ "things for people like you to enjoy."
61
  msgstr ""
62
 
63
  #: inc/php/settings_page.php:59
170
  msgid "Enter the link to your RSS Feed"
171
  msgstr ""
172
 
173
+ #: inc/php/settings_page.php:220 inc/php/settings_page.php:297
174
  msgid "Save Changes"
175
  msgstr ""
176
 
216
  "toolbar."
217
  msgstr ""
218
 
219
+ #: inc/php/settings_page.php:269
220
+ msgid "Alignment"
221
+ msgstr ""
222
+
223
+ #: inc/php/settings_page.php:275
224
+ msgid "Left"
225
+ msgstr ""
226
+
227
+ #: inc/php/settings_page.php:279
228
+ msgid "Center"
229
+ msgstr ""
230
+
231
+ #: inc/php/settings_page.php:283
232
+ msgid "Right"
233
+ msgstr ""
234
+
235
+ #: inc/php/settings_page.php:290
236
  msgid "Caption"
237
  msgstr ""
238
 
239
+ #: inc/php/settings_page.php:291
240
  msgid ""
241
  "Enter the caption to your social media buttons toolbar. It will be displays "
242
  "before the toolbar."
243
  msgstr ""
244
 
245
+ #: inc/php/settings_page.php:302
246
  msgid "Preview"
247
  msgstr ""
248
 
249
+ #: inc/php/settings_page.php:304
250
  msgid "Click \"Save Changes\" to update this preview."
251
  msgstr ""
252
 
253
+ #: inc/php/settings_page.php:310
254
  msgid "Using"
255
  msgstr ""
256
 
257
+ #: inc/php/settings_page.php:312
258
  msgid ""
259
  "You have several methods for display the social media buttons toolbar "
260
  "(further just \"toolbar\") on your website. But first, fill in the required "
261
  "fields, then click \"Save Changes\"."
262
  msgstr ""
263
 
264
+ #: inc/php/settings_page.php:313
265
  msgid ""
266
  "<b>A)</b> For display the toolbar below content on every Posts or/and Pages, "
267
  "just check the checkbox \"Show on Posts\" or/and \"Show on Pages\" in the "
268
  "section \"Display options\", then click \"Save Changes\". It's that simple!"
269
  msgstr ""
270
 
271
+ #: inc/php/settings_page.php:314
272
  msgid ""
273
  "<b>B)</b> For add the toolbar inside a post from WP Post/Page Editor use the "
274
  "following shortcode:"
275
  msgstr ""
276
 
277
+ #: inc/php/settings_page.php:316
278
  msgid ""
279
  "<b>C)</b> For add the toolbar to the widget area (in sidebar, footer etc.) "
280
  "use the \"Text\" widget and add inside it the following shortcode:"
281
  msgstr ""
282
 
283
+ #: inc/php/settings_page.php:318
284
  msgid ""
285
  "<b>D)</b> For add the toolbar directly to a theme files, just add one of the "
286
  "following code (both variants do the same) to needed place (where you want "
287
  "to display the toolbar) in your theme files:"
288
  msgstr ""
289
 
290
+ #: social-media-buttons-toolbar.php:73
291
  msgid "Settings"
292
  msgstr ""
293
 
294
+ #: social-media-buttons-toolbar.php:85
295
  msgid "Social Buttons"
296
  msgstr ""
297
 
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.2
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -22,8 +22,12 @@ It give you finer control over buttons. You can configure they on plugins settin
22
 
23
  = Features =
24
 
25
- * Icon set ["Social Buttons 2"](https://www.iconfinder.com/iconsets/social-buttons-2) by Ivlichev Victor Petrovich
26
- * Ready for translation (POT file included).
 
 
 
 
27
 
28
  **Supported social media and links:**
29
 
@@ -88,17 +92,17 @@ Install "Social Media Buttons Toolbar" just as you would any other WordPress Plu
88
 
89
  Automatically via WordPress:
90
 
91
- 1. Log into WordPress Dashboard of your website.
92
- 2. Go to "`Plugins`" —> "`add new plugins`".
93
  3. Find this plugin and click install.
94
  4. Activate this plugin through the "`Plugins`" tab.
95
 
96
  Manual via FTP:
97
 
98
- 1. Download a copy (zip file) of this plugin from WordPress.org.
99
- 2. Unzip the zip file.
100
- 3. Upload the unzipped directory to your website's plugin directory (`/wp-content/plugins/`).
101
- 4. Log into WordPress Dashboard of your website.
102
  5. Activate this plugin through the "`Plugins`" tab.
103
 
104
  After installation, a "`Social Buttons`" menu item will appear in the "`Settings`" section. Click on this in order to view plugin's administration page.
@@ -107,7 +111,7 @@ After installation, a "`Social Buttons`" menu item will appear in the "`Setting
107
 
108
 
109
  == Frequently Asked Questions ==
110
- = Q. Will this Plugin work on my WordPress.COM website? =
111
  A. Sorry, this plugin is available for use only on self-hosted (WordPress.org) websites.
112
 
113
  = Q. Can I use this plugin on my language? =
@@ -156,9 +160,9 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
156
 
157
  **Credits**
158
 
159
- 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/).
160
 
161
- Icon meetvibe.png by [Arthur Gareginyan](http://www.arthurgareginyan.com) and licensed under the [Creative Commons (Attribution 3.0 Unported)](http://creativecommons.org/licenses/by/3.0/).
162
 
163
  [Bootstrap](http://getbootstrap.com) released under the [MIT license](https://github.com/twbs/bootstrap/blob/master/LICENSE).
164
 
@@ -170,6 +174,10 @@ Icon meetvibe.png by [Arthur Gareginyan](http://www.arthurgareginyan.com) and li
170
  * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/social-media-buttons-toolbar)
171
 
172
  == Changelog ==
 
 
 
 
173
  = 3.2 =
174
  * Added option for Skype button.
175
  * Ready for translation improved.
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.3
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
22
 
23
  = Features =
24
 
25
+ * Icon set ["Social Buttons 2"](https://www.iconfinder.com/iconsets/social-buttons-2?ref=ArthurGareginyan) by Ivlichev Victor Petrovich
26
+ * Plugin settings page with many settings
27
+ * Preview on plugin settings page
28
+ * Shortcode for add social media buttons from Post/Page Editor
29
+ * PHP/HTML code for add social media buttons directly in your theme files
30
+ * Ready for translation (POT file included)
31
 
32
  **Supported social media and links:**
33
 
92
 
93
  Automatically via WordPress:
94
 
95
+ 1. Log into Dashboard of your WordPress website.
96
+ 2. Go to "`Plugins`" —> "`Add New`".
97
  3. Find this plugin and click install.
98
  4. Activate this plugin through the "`Plugins`" tab.
99
 
100
  Manual via FTP:
101
 
102
+ 1. Download a copy (ZIP file) of this plugin from WordPress.org.
103
+ 2. Unzip the ZIP file.
104
+ 3. Upload the unzipped catalog to your website's plugin directory (`/wp-content/plugins/`).
105
+ 4. Log into Dashboard of your WordPress website.
106
  5. Activate this plugin through the "`Plugins`" tab.
107
 
108
  After installation, a "`Social Buttons`" menu item will appear in the "`Settings`" section. Click on this in order to view plugin's administration page.
111
 
112
 
113
  == Frequently Asked Questions ==
114
+ = Q. Will this plugin work on my WordPress.COM website? =
115
  A. Sorry, this plugin is available for use only on self-hosted (WordPress.org) websites.
116
 
117
  = Q. Can I use this plugin on my language? =
160
 
161
  **Credits**
162
 
163
+ Icon set [Social Buttons 2](https://www.iconfinder.com/iconsets/social-buttons-2?ref=ArthurGareginyan) by Ivlichev Victor Petrovich and licensed under the [Creative Commons (Attribution 3.0 Unported)](http://creativecommons.org/licenses/by/3.0/).
164
 
165
+ Icon [meetvibe.png](https://www.iconfinder.com/iconsets/meetvibe?ref=ArthurGareginyan) by [Arthur Gareginyan](http://www.arthurgareginyan.com) and licensed under the [Creative Commons (Attribution 3.0 Unported)](http://creativecommons.org/licenses/by/3.0/).
166
 
167
  [Bootstrap](http://getbootstrap.com) released under the [MIT license](https://github.com/twbs/bootstrap/blob/master/LICENSE).
168
 
174
  * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/social-media-buttons-toolbar)
175
 
176
  == Changelog ==
177
+ = 3.3 =
178
+ * Added option to adjust the alignment.
179
+ * Added the Readme.txt file for translation contribution.
180
+ * Added global constant for plugin text-domain.
181
  = 3.2 =
182
  * Added option for Skype button.
183
  * Ready for translation improved.
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.2
9
  * License: GPL3
10
  * Text Domain: social-media-buttons-toolbar
11
  * Domain Path: /languages/
@@ -40,13 +40,14 @@ defined('ABSPATH') or die("Restricted access!");
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
@@ -54,7 +55,7 @@ defined('SMEDIABT_VERSION') or define('SMEDIABT_VERSION', '3.1');
54
  * @since 2.0
55
  */
56
  function smbtoolbar_textdomain() {
57
- load_plugin_textdomain( 'social-media-buttons-toolbar', false, SMEDIABT_DIR . '/languages/' );
58
  }
59
  add_action( 'init', 'smbtoolbar_textdomain' );
60
 
@@ -69,11 +70,11 @@ add_action( 'init', 'smbtoolbar_textdomain' );
69
  * @return array Array of links to be output on Plugin Admin page.
70
  */
71
  function smbtoolbar_settings_link( $links ) {
72
- $settings_page = '<a href="' . admin_url( 'options-general.php?page=social-media-buttons-toolbar.php' ) .'">' . __( 'Settings', 'social-media-buttons-toolbar' ) . '</a>';
73
  array_unshift( $links, $settings_page );
74
  return $links;
75
  }
76
- add_filter( "plugin_action_links_".SMEDIABT_BASE, 'smbtoolbar_settings_link' );
77
 
78
  /**
79
  * Register "Social Media Buttons Toolbar" submenu in "Settings" Admin Menu
@@ -81,7 +82,7 @@ add_filter( "plugin_action_links_".SMEDIABT_BASE, 'smbtoolbar_settings_link' );
81
  * @since 2.0
82
  */
83
  function smbtoolbar_register_submenu_page() {
84
- 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' );
85
  }
86
  add_action( 'admin_menu', 'smbtoolbar_register_submenu_page' );
87
 
@@ -235,7 +236,7 @@ function smbtoolbar_setting($name, $label, $help=null, $field=null, $placeholder
235
  /**
236
  * Generate the buttons toolbar
237
  *
238
- * @since 2.2.1
239
  */
240
  function smbtoolbar_tollbar() {
241
 
@@ -255,6 +256,13 @@ function smbtoolbar_tollbar() {
255
  $margin_right = "10";
256
  }
257
 
 
 
 
 
 
 
 
258
  // Open link in new tab
259
  if (!empty($options['new_tab'])) {
260
  $new_tab = 'target="blank"';
@@ -297,7 +305,7 @@ function smbtoolbar_tollbar() {
297
  // Add styling for toolbar
298
  $styles = "<style>
299
  .smbt-social-icons {
300
- text-align: center;
301
  }
302
  .smbt-social-icons li {
303
  display: inline-block !important;
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.3
9
  * License: GPL3
10
  * Text Domain: social-media-buttons-toolbar
11
  * Domain Path: /languages/
40
  /**
41
  * Define global constants
42
  *
43
+ * @since 3.3
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.3');
51
 
52
  /**
53
  * Register text domain
55
  * @since 2.0
56
  */
57
  function smbtoolbar_textdomain() {
58
+ load_plugin_textdomain( SMEDIABT_TEXT, false, SMEDIABT_DIR . '/languages/' );
59
  }
60
  add_action( 'init', 'smbtoolbar_textdomain' );
61
 
70
  * @return array Array of links to be output on Plugin Admin page.
71
  */
72
  function smbtoolbar_settings_link( $links ) {
73
+ $settings_page = '<a href="' . admin_url( 'options-general.php?page=social-media-buttons-toolbar.php' ) .'">' . __( 'Settings', SMEDIABT_TEXT ) . '</a>';
74
  array_unshift( $links, $settings_page );
75
  return $links;
76
  }
77
+ add_filter( 'plugin_action_links_'.SMEDIABT_BASE, 'smbtoolbar_settings_link' );
78
 
79
  /**
80
  * Register "Social Media Buttons Toolbar" submenu in "Settings" Admin Menu
82
  * @since 2.0
83
  */
84
  function smbtoolbar_register_submenu_page() {
85
+ add_options_page( __( 'Social Media Buttons Toolbar', SMEDIABT_TEXT ), __( 'Social Buttons', SMEDIABT_TEXT ), 'manage_options', basename( __FILE__ ), 'smbtoolbar_render_submenu_page' );
86
  }
87
  add_action( 'admin_menu', 'smbtoolbar_register_submenu_page' );
88
 
236
  /**
237
  * Generate the buttons toolbar
238
  *
239
+ * @since 3.3
240
  */
241
  function smbtoolbar_tollbar() {
242
 
256
  $margin_right = "10";
257
  }
258
 
259
+ // Alignment of toolbar
260
+ if (!empty($options['alignment'])) {
261
+ $alignment = $options['alignment'];
262
+ } else {
263
+ $alignment = 'center';
264
+ }
265
+
266
  // Open link in new tab
267
  if (!empty($options['new_tab'])) {
268
  $new_tab = 'target="blank"';
305
  // Add styling for toolbar
306
  $styles = "<style>
307
  .smbt-social-icons {
308
+ text-align: " . $alignment . ";
309
  }
310
  .smbt-social-icons li {
311
  display: inline-block !important;