Social Media Follow Buttons Bar - Version 4.68

Version Description

  • Feb 14, 2021 =
  • Enhancement: On the plugin settings page, some options have been redesigned for better usability.
  • Maintenance: Code commenting improved.
Download this release

Release Info

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

Code changes from version 4.67 to 4.68

inc/css/admin.css CHANGED
@@ -670,5 +670,30 @@ td.help-text {
670
  box-shadow: 0 0 0 3px #999;
671
  }
672
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
673
  /* SPECIFIC TO THIS PLUGIN
674
  -------------------------------------------------------------- */
670
  box-shadow: 0 0 0 3px #999;
671
  }
672
 
673
+ /* Control: List
674
+ -------------------------------------------------------------- */
675
+ .control-list {
676
+ width: fit-content;
677
+ }
678
+ .control-list li {
679
+ margin-bottom: 0;
680
+ }
681
+ .control-list li div {
682
+ padding: 10px;
683
+ padding-right: 20px;
684
+ border: 1px solid lightgrey;
685
+ border-radius: 0;
686
+ align-items: center;
687
+ justify-content: center;
688
+ }
689
+ .control-list li+li div {
690
+ margin-top: -1px;
691
+ }
692
+ .control-list li div label {
693
+ margin-left: 10px;
694
+ margin-bottom: 0;
695
+ font-weight: normal;
696
+ }
697
+
698
  /* SPECIFIC TO THIS PLUGIN
699
  -------------------------------------------------------------- */
inc/php/controls.php CHANGED
@@ -208,13 +208,18 @@ function spacexchimp_p005_control_choice( $name, $items, $label, $help, $default
208
  $selected = "";
209
  }
210
  $list_item .= "<li>
211
- <input
212
- type='radio'
213
- name='" . $plugin['settings'] . "_settings[$name]'
214
- value='$item_key'
215
- $selected
216
- >
217
- $item_value
 
 
 
 
 
218
  <li>";
219
  }
220
 
208
  $selected = "";
209
  }
210
  $list_item .= "<li>
211
+ <div>
212
+ <input
213
+ type='radio'
214
+ id='" . $plugin['settings'] . "_settings[$name]-$item_key'
215
+ name='" . $plugin['settings'] . "_settings[$name]'
216
+ value='$item_key'
217
+ $selected
218
+ >
219
+ <label for='" . $plugin['settings'] . "_settings[$name]-$item_key'>
220
+ $item_value
221
+ </label>
222
+ </div>
223
  <li>";
224
  }
225
 
inc/php/functional.php CHANGED
@@ -7,6 +7,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
7
 
8
  /**
9
  * Generate the buttons bar
 
10
  */
11
  function spacexchimp_p005_generator() {
12
 
@@ -56,7 +57,7 @@ function spacexchimp_p005_generator() {
56
  }
57
  $toolbar_arr[] = '</ul>';
58
 
59
- // Add script for buttons
60
  if ( ! empty( $options['tooltips'] ) ) {
61
  $js = "<script type='text/javascript'>
62
  jQuery(document).ready(function($) {
@@ -74,13 +75,17 @@ function spacexchimp_p005_generator() {
74
  array_push( $toolbar_arr, $js );
75
  }
76
 
 
77
  return $toolbar_arr;
78
  }
79
 
80
  /**
81
  * Create the shortcode "[smbtoolbar]"
 
82
  */
83
  function spacexchimp_p005_shortcode() {
 
 
84
  return implode(
85
  PHP_EOL,
86
  spacexchimp_p005_generator()
@@ -95,6 +100,7 @@ add_filter( 'widget_text', 'do_shortcode' );
95
 
96
  /**
97
  * Autoload option
 
98
  */
99
  function spacexchimp_p005_autoload( $content ) {
100
 
@@ -118,8 +124,13 @@ function spacexchimp_p005_autoload( $content ) {
118
  }
119
  }
120
 
 
121
  return $content;
122
  }
 
 
 
 
123
  add_action( 'the_content', 'spacexchimp_p005_autoload' );
124
 
125
  /**
@@ -135,6 +146,7 @@ function spacexchimp_p005_get_items_all() {
135
  // Merge two arrays
136
  $array = array_merge( $array_1, $array_2 );
137
 
 
138
  return $array;
139
  }
140
 
@@ -163,6 +175,7 @@ function spacexchimp_p005_get_media_pairs_media() {
163
  // Sort the media array in ascending order, according to the key name
164
  if ( ! empty($array) ) ksort($array);
165
 
 
166
  return $array;
167
  }
168
 
@@ -188,5 +201,6 @@ function spacexchimp_p005_get_media_pairs_additional() {
188
  // Rename some items
189
  $array['website'] = 'Website';
190
 
 
191
  return $array;
192
  }
7
 
8
  /**
9
  * Generate the buttons bar
10
+ * @return array
11
  */
12
  function spacexchimp_p005_generator() {
13
 
57
  }
58
  $toolbar_arr[] = '</ul>';
59
 
60
+ // Generate script
61
  if ( ! empty( $options['tooltips'] ) ) {
62
  $js = "<script type='text/javascript'>
63
  jQuery(document).ready(function($) {
75
  array_push( $toolbar_arr, $js );
76
  }
77
 
78
+ // Return the processed data
79
  return $toolbar_arr;
80
  }
81
 
82
  /**
83
  * Create the shortcode "[smbtoolbar]"
84
+ * @return string
85
  */
86
  function spacexchimp_p005_shortcode() {
87
+
88
+ // Return the processed data
89
  return implode(
90
  PHP_EOL,
91
  spacexchimp_p005_generator()
100
 
101
  /**
102
  * Autoload option
103
+ * @return string
104
  */
105
  function spacexchimp_p005_autoload( $content ) {
106
 
124
  }
125
  }
126
 
127
+ // Return the processed data
128
  return $content;
129
  }
130
+
131
+ /**
132
+ * Inject the buttons bar into the website's frontend (content section)
133
+ */
134
  add_action( 'the_content', 'spacexchimp_p005_autoload' );
135
 
136
  /**
146
  // Merge two arrays
147
  $array = array_merge( $array_1, $array_2 );
148
 
149
+ // Return the processed data
150
  return $array;
151
  }
152
 
175
  // Sort the media array in ascending order, according to the key name
176
  if ( ! empty($array) ) ksort($array);
177
 
178
+ // Return the processed data
179
  return $array;
180
  }
181
 
201
  // Rename some items
202
  $array['website'] = 'Website';
203
 
204
+ // Return the processed data
205
  return $array;
206
  }
languages/social-media-buttons-toolbar-de_DE.mo CHANGED
Binary file
languages/social-media-buttons-toolbar-de_DE.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Social Media Follow Buttons Bar\n"
6
- "POT-Creation-Date: 2021-01-15 23:12+0300\n"
7
- "PO-Revision-Date: 2021-01-15 23:12+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: German\n"
10
  "Language: de_DE\n"
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Social Media Follow Buttons Bar\n"
6
+ "POT-Creation-Date: 2021-02-14 19:26+0300\n"
7
+ "PO-Revision-Date: 2021-02-14 19:26+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: German\n"
10
  "Language: de_DE\n"
languages/social-media-buttons-toolbar-es_ES.mo CHANGED
Binary file
languages/social-media-buttons-toolbar-es_ES.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Social Media Follow Buttons Bar\n"
6
- "POT-Creation-Date: 2021-01-15 23:12+0300\n"
7
- "PO-Revision-Date: 2021-01-15 23:12+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Spanish\n"
10
  "Language: es_ES\n"
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Social Media Follow Buttons Bar\n"
6
+ "POT-Creation-Date: 2021-02-14 19:26+0300\n"
7
+ "PO-Revision-Date: 2021-02-14 19:26+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Spanish\n"
10
  "Language: es_ES\n"
languages/social-media-buttons-toolbar-fr_FR.mo CHANGED
Binary file
languages/social-media-buttons-toolbar-fr_FR.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Social Media Follow Buttons Bar\n"
6
- "POT-Creation-Date: 2021-01-15 23:12+0300\n"
7
- "PO-Revision-Date: 2021-01-15 23:12+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: French\n"
10
  "Language: fr_FR\n"
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Social Media Follow Buttons Bar\n"
6
+ "POT-Creation-Date: 2021-02-14 19:26+0300\n"
7
+ "PO-Revision-Date: 2021-02-14 19:26+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: French\n"
10
  "Language: fr_FR\n"
languages/social-media-buttons-toolbar-nl_NL.mo CHANGED
Binary file
languages/social-media-buttons-toolbar-nl_NL.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Social Media Follow Buttons Bar\n"
6
- "POT-Creation-Date: 2021-01-15 23:12+0300\n"
7
- "PO-Revision-Date: 2021-01-15 23:12+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Dutch\n"
10
  "Language: nl_NL\n"
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Social Media Follow Buttons Bar\n"
6
+ "POT-Creation-Date: 2021-02-14 19:26+0300\n"
7
+ "PO-Revision-Date: 2021-02-14 19:26+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Dutch\n"
10
  "Language: nl_NL\n"
languages/social-media-buttons-toolbar-ru_RU.mo CHANGED
Binary file
languages/social-media-buttons-toolbar-ru_RU.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Social Media Follow Buttons Bar\n"
6
- "POT-Creation-Date: 2021-01-15 23:13+0300\n"
7
- "PO-Revision-Date: 2021-01-15 23:13+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Russian\n"
10
  "Language: ru_RU\n"
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Social Media Follow Buttons Bar\n"
6
+ "POT-Creation-Date: 2021-02-14 19:26+0300\n"
7
+ "PO-Revision-Date: 2021-02-14 19:26+0300\n"
8
  "Last-Translator: Arthur Gareginyan\n"
9
  "Language-Team: Russian\n"
10
  "Language: ru_RU\n"
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 Follow Buttons Bar\n"
6
- "POT-Creation-Date: 2021-01-15 23:13+0300\n"
7
  "PO-Revision-Date: 2015-12-17 02:16+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Social Media Follow Buttons Bar\n"
6
+ "POT-Creation-Date: 2021-02-14 19:26+0300\n"
7
  "PO-Revision-Date: 2015-12-17 02:16+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.spacexchimp.com/donate.html
5
  Requires at least: 4.9
6
  Tested up to: 5.6
7
  Requires PHP: 5.6
8
- Stable tag: 4.67
9
  License: GPL3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -286,11 +286,11 @@ A. Yes, any contributions are very welcome! Please visit [our donation page](htt
286
 
287
  == Screenshots ==
288
 
289
- 1. Social media buttons.
290
  2. Tooltip with name of the social media displayed above button when you hover over the button.
291
- 3. Social media follow buttons bar displayed below the post content and inside the sidebar. (Twenty Fifteen theme)
292
- 4. Plugin settings page.
293
- 5. Shortcode placed in the Text Widget.
294
 
295
 
296
  == Other Notes ==
@@ -323,6 +323,10 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
323
 
324
  == Changelog ==
325
 
 
 
 
 
326
  = 4.67 - Jan 15, 2021 =
327
  * New: Added option for Odysee.
328
  * New: Added option for BitChute.
5
  Requires at least: 4.9
6
  Tested up to: 5.6
7
  Requires PHP: 5.6
8
+ Stable tag: 4.68
9
  License: GPL3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
286
 
287
  == Screenshots ==
288
 
289
+ 1. Social media buttons.
290
  2. Tooltip with name of the social media displayed above button when you hover over the button.
291
+ 3. Social media follow buttons bar displayed below the post content and inside the sidebar. (Twenty Fifteen theme)
292
+ 4. Plugin settings page.
293
+ 5. Shortcode placed in the Text Widget.
294
 
295
 
296
  == Other Notes ==
323
 
324
  == Changelog ==
325
 
326
+ = 4.68 - Feb 14, 2021 =
327
+ * Enhancement: On the plugin settings page, some options have been redesigned for better usability.
328
+ * Maintenance: Code commenting improved.
329
+
330
  = 4.67 - Jan 15, 2021 =
331
  * New: Added option for Odysee.
332
  * New: Added option for BitChute.
social-media-buttons-toolbar.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Easily and safely add a smart bar with social media follow buttons (not share, only link to your profiles) to any place (post content, page content, widget, sidebar, header, footer) of your WordPress website.
6
  * Author: Space X-Chimp
7
  * Author URI: https://www.spacexchimp.com
8
- * Version: 4.67
9
  * License: GPL3
10
  * Text Domain: social-media-buttons-toolbar
11
  * Domain Path: /languages/
5
  * Description: Easily and safely add a smart bar with social media follow buttons (not share, only link to your profiles) to any place (post content, page content, widget, sidebar, header, footer) of your WordPress website.
6
  * Author: Space X-Chimp
7
  * Author URI: https://www.spacexchimp.com
8
+ * Version: 4.68
9
  * License: GPL3
10
  * Text Domain: social-media-buttons-toolbar
11
  * Domain Path: /languages/