Version Description
Download this release
Release Info
Developer | machothemes |
Plugin | Simple Author Box |
Version | 2.3.2 |
Comparing to | |
See all releases |
Code changes from version 2.3.1 to 2.3.2
- assets/js/sab_gutenberg_editor_script.js +11 -10
- changelog.txt +6 -0
- inc/class-simple-author-box-helper.php +4 -2
- inc/class-simple-author-box-previewer.php +1 -1
- inc/class-simple-author-box-social.php +2 -2
- inc/class-simple-author-box-user-profile.php +5 -4
- readme.txt +3 -3
- simple-author-box.php +7 -4
- template/template-sab.php +4 -0
assets/js/sab_gutenberg_editor_script.js
CHANGED
@@ -1291,9 +1291,9 @@ var SAB_Social_Icon = function () {
|
|
1291 |
return React.createElement(
|
1292 |
'svg',
|
1293 |
{ version: '1.1', 'class': 'sab-' + icon, viewBox: '0 0 500 500.7', xmlns: 'http://www.w3.org/2000/svg' },
|
1294 |
-
React.createElement('rect', { 'class': 'st0', x: '
|
1295 |
-
React.createElement('polygon', { 'class': 'st1', points: '
|
1296 |
-
React.createElement('path', { 'class': 'st2', d: '
|
1297 |
);
|
1298 |
break;
|
1299 |
case 'tumblr':
|
@@ -1306,13 +1306,14 @@ var SAB_Social_Icon = function () {
|
|
1306 |
);
|
1307 |
break;
|
1308 |
case 'twitter':
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
|
|
1316 |
break;
|
1317 |
case 'vimeo':
|
1318 |
return React.createElement(
|
1291 |
return React.createElement(
|
1292 |
'svg',
|
1293 |
{ version: '1.1', 'class': 'sab-' + icon, viewBox: '0 0 500 500.7', xmlns: 'http://www.w3.org/2000/svg' },
|
1294 |
+
React.createElement('rect', { 'class': 'st0', x: '.5', y: '.2', width: '500', height: '500', fill: '#1da1f2' }),
|
1295 |
+
React.createElement('polygon', { 'class': 'st1', points: '499.1,249.6 499.1,500.2 298.1,500.2 106.9,258.9 104,255.2 392.5,146.2 392.5,146.2 ' }),
|
1296 |
+
React.createElement('path', { 'class': 'st2', d: 'M393.8,162.6l-43.9,207.1c-3.3,14.6-12,18.3-24.2,11.4l-66.9-49.3l-32.3,31.1c-3.6,3.6-6.6,6.6-13.5,6.6 l4.8-68.2l124-112.1c5.4-4.8-1.2-7.5-8.4-2.7l-153.3,96.6l-66-20.7c-14.4-4.5-14.6-14.4,3-21.2l258.2-99.5 C387.2,137.2,397.7,144.4,393.8,162.6z' })
|
1297 |
);
|
1298 |
break;
|
1299 |
case 'tumblr':
|
1306 |
);
|
1307 |
break;
|
1308 |
case 'twitter':
|
1309 |
+
return React.createElement(
|
1310 |
+
'svg',
|
1311 |
+
{ version: '1.1', 'class': 'sab-' + icon, viewBox: '0 0 500 500.7', xmlns: 'http://www.w3.org/2000/svg' },
|
1312 |
+
React.createElement('rect', { 'class': 'st0', x: '-0.9', y: '0.2', width: '500', height: '500', fill: '#0088cc' }),
|
1313 |
+
React.createElement('polygon', { 'class': 'st1', points: '500.5 342.9 500.5 500.4 351.4 500.4 222 369.3 210 272.3 173.4 234.9 272.5 116.9' }),
|
1314 |
+
React.createElement('path', { 'class': 'st2', d: 'm331.8 372.1c-7.4 7.9-27.1 17.2-52.9 17.2-65.6 0-79.8-48.2-79.8-76.3v-78.2h-25.8c-3 0-5.4-2.4-5.4-5.4v-36.9c0-3.9 2.4-7.4 6.1-8.7 33.7-11.8 44.2-41.3 45.8-63.6 0.4-6 3.5-8.8 8.7-8.8h38.5c3 0 5.4 2.4 5.4 5.4v62.5h45c3 0 5.4 2.4 5.4 5.4v44.3c0 3-2.4 5.4-5.4 5.4h-45.3v72.3c0 18.6 12.9 29.1 36.9 19.4 2.6-1 4.9-1.7 6.9-1.2 1.9 0.5 3.1 1.8 4 4.3l11.9 34.9c1.2 2.9 2 5.9 0 8z' })
|
1315 |
+
);
|
1316 |
+
|
1317 |
break;
|
1318 |
case 'vimeo':
|
1319 |
return React.createElement(
|
changelog.txt
CHANGED
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
= 2.3.1 =
|
2 |
* Improved widget - added display name alongside username
|
3 |
* Fixed telegram symbol color changing
|
1 |
+
= 2.3.2 =
|
2 |
+
* Fix for gutenberg block - telegram and twitter were inverted
|
3 |
+
* Fixed missing Whatsapp icon border setting
|
4 |
+
* Added filter for extra social icons extensions
|
5 |
+
|
6 |
+
|
7 |
= 2.3.1 =
|
8 |
* Improved widget - added display name alongside username
|
9 |
* Fixed telegram symbol color changing
|
inc/class-simple-author-box-helper.php
CHANGED
@@ -81,8 +81,10 @@ class Simple_Author_Box_Helper {
|
|
81 |
}
|
82 |
}
|
83 |
|
|
|
|
|
84 |
$svg_icon = Simple_Author_Box_Social::icon_to_svg( $icon_name, $type );
|
85 |
-
return '<a target="' . esc_attr( $sabox_blank ) . '" href="' .
|
86 |
|
87 |
}
|
88 |
|
@@ -937,7 +939,7 @@ class Simple_Author_Box_Helper {
|
|
937 |
$sabox_options = self::get_option( 'saboxplugin_options' );
|
938 |
$sabox_web_size = self::get_option( 'sab_box_web_size' );
|
939 |
|
940 |
-
$style = '.saboxplugin-wrap{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;border:1px solid #eee;width:100%;clear:both;display:block;overflow:hidden;word-wrap:break-word;position:relative}.saboxplugin-wrap .saboxplugin-gravatar{float:left;padding:20px}.saboxplugin-wrap .saboxplugin-gravatar img{max-width:100px;height:auto;border-radius:0;}.saboxplugin-wrap .saboxplugin-authorname{font-size:18px;line-height:1;margin:20px 0 0 20px;display:block}.saboxplugin-wrap .saboxplugin-authorname a{text-decoration:none}.saboxplugin-wrap .saboxplugin-authorname a:focus{outline:0}.saboxplugin-wrap .saboxplugin-desc{display:block;margin:5px 20px}.saboxplugin-wrap .saboxplugin-desc a{text-decoration:underline}.saboxplugin-wrap .saboxplugin-desc p{margin:5px 0 12px}.saboxplugin-wrap .saboxplugin-web{margin:0 20px 15px;text-align:left}.saboxplugin-wrap .sab-web-position{text-align:right}.saboxplugin-wrap .saboxplugin-web a{color:#ccc;text-decoration:none}.saboxplugin-wrap .saboxplugin-socials{position:relative;display:block;background:#fcfcfc;padding:5px;border-top:1px solid #eee}.saboxplugin-wrap .saboxplugin-socials a svg{width:20px;height:20px}.saboxplugin-wrap .saboxplugin-socials a svg .st2{fill:#fff}.saboxplugin-wrap .saboxplugin-socials a svg .st1{fill:rgba(0,0,0,.3)}.saboxplugin-wrap .saboxplugin-socials a:hover{opacity:.8;-webkit-transition:opacity .4s;-moz-transition:opacity .4s;-o-transition:opacity .4s;transition:opacity .4s;box-shadow:none!important;-webkit-box-shadow:none!important}.saboxplugin-wrap .saboxplugin-socials .saboxplugin-icon-color{box-shadow:none;padding:0;border:0;-webkit-transition:opacity .4s;-moz-transition:opacity .4s;-o-transition:opacity .4s;transition:opacity .4s;display:inline-block;color:#fff;font-size:0;text-decoration:inherit;margin:5px;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;overflow:hidden}.saboxplugin-wrap .saboxplugin-socials .saboxplugin-icon-grey{text-decoration:inherit;box-shadow:none;position:relative;display:-moz-inline-stack;display:inline-block;vertical-align:middle;zoom:1;margin:10px 5px;color:#444}.clearfix:after,.clearfix:before{content:\' \';display:table;line-height:0;clear:both}.ie7 .clearfix{zoom:1}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-twitch{border-color:#38245c}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-addthis{border-color:#e91c00}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-behance{border-color:#003eb0}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-delicious{border-color:#06c}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-deviantart{border-color:#036824}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-digg{border-color:#00327c}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-dribbble{border-color:#ba1655}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-facebook{border-color:#1e2e4f}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-flickr{border-color:#003576}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-github{border-color:#264874}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-google{border-color:#0b51c5}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-googleplus{border-color:#96271a}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-html5{border-color:#902e13}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-instagram{border-color:#1630aa}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-linkedin{border-color:#00344f}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-pinterest{border-color:#5b040e}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-reddit{border-color:#992900}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-rss{border-color:#a43b0a}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-sharethis{border-color:#5d8420}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-skype{border-color:#00658a}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-soundcloud{border-color:#995200}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-spotify{border-color:#0f612c}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-stackoverflow{border-color:#a95009}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-steam{border-color:#006388}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-user_email{border-color:#b84e05}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-stumbleUpon{border-color:#9b280e}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-tumblr{border-color:#10151b}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-twitter{border-color:#0967a0}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-vimeo{border-color:#0d7091}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-windows{border-color:#003f71}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-wordpress{border-color:#0f3647}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-yahoo{border-color:#14002d}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-youtube{border-color:#900}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-xing{border-color:#000202}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-mixcloud{border-color:#2475a0}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-vk{border-color:#243549}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-medium{border-color:#00452c}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-quora{border-color:#420e00}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-meetup{border-color:#9b181c}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-goodreads{border-color:#000}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-snapchat{border-color:#999700}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-500px{border-color:#00557f}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-mastodont{border-color:#185886}.sabox-plus-item{margin-bottom:20px}@media screen and (max-width:480px){.saboxplugin-wrap{text-align:center}.saboxplugin-wrap .saboxplugin-gravatar{float:none;padding:20px 0;text-align:center;margin:0 auto;display:block}.saboxplugin-wrap .saboxplugin-gravatar img{float:none;display:inline-block;display:-moz-inline-stack;vertical-align:middle;zoom:1}.saboxplugin-wrap .saboxplugin-desc{margin:0 10px 20px;text-align:center}.saboxplugin-wrap .saboxplugin-authorname{text-align:center;margin:10px 0 20px}}body .saboxplugin-authorname a,body .saboxplugin-authorname a:hover{box-shadow:none;-webkit-box-shadow:none}a.sab-profile-edit{font-size:16px!important;line-height:1!important}.sab-edit-settings a,a.sab-profile-edit{color:#0073aa!important;box-shadow:none!important;-webkit-box-shadow:none!important}.sab-edit-settings{margin-right:15px;position:absolute;right:0;z-index:2;bottom:10px;line-height:20px}.sab-edit-settings i{margin-left:5px}.saboxplugin-socials{line-height:1!important}.rtl .saboxplugin-wrap .saboxplugin-gravatar{float:right}.rtl .saboxplugin-wrap .saboxplugin-authorname{display:flex;align-items:center}.rtl .saboxplugin-wrap .saboxplugin-authorname .sab-profile-edit{margin-right:10px}.rtl .sab-edit-settings{right:auto;left:0}img.sab-custom-avatar{max-width:75px;}';
|
941 |
|
942 |
// Border color of Simple Author Box
|
943 |
if ( '' != $sabox_options['sab_box_border'] ) {
|
81 |
}
|
82 |
}
|
83 |
|
84 |
+
$url = ('skype' != $icon_name) ? esc_url($url) : esc_attr($url);
|
85 |
+
|
86 |
$svg_icon = Simple_Author_Box_Social::icon_to_svg( $icon_name, $type );
|
87 |
+
return '<a target="' . esc_attr( $sabox_blank ) . '" href="' . $url . '" rel="nofollow" class="' . esc_attr( $sab_color ) . '">' . $svg_icon . '</span></a>';
|
88 |
|
89 |
}
|
90 |
|
939 |
$sabox_options = self::get_option( 'saboxplugin_options' );
|
940 |
$sabox_web_size = self::get_option( 'sab_box_web_size' );
|
941 |
|
942 |
+
$style = '.saboxplugin-wrap{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;border:1px solid #eee;width:100%;clear:both;display:block;overflow:hidden;word-wrap:break-word;position:relative}.saboxplugin-wrap .saboxplugin-gravatar{float:left;padding:20px}.saboxplugin-wrap .saboxplugin-gravatar img{max-width:100px;height:auto;border-radius:0;}.saboxplugin-wrap .saboxplugin-authorname{font-size:18px;line-height:1;margin:20px 0 0 20px;display:block}.saboxplugin-wrap .saboxplugin-authorname a{text-decoration:none}.saboxplugin-wrap .saboxplugin-authorname a:focus{outline:0}.saboxplugin-wrap .saboxplugin-desc{display:block;margin:5px 20px}.saboxplugin-wrap .saboxplugin-desc a{text-decoration:underline}.saboxplugin-wrap .saboxplugin-desc p{margin:5px 0 12px}.saboxplugin-wrap .saboxplugin-web{margin:0 20px 15px;text-align:left}.saboxplugin-wrap .sab-web-position{text-align:right}.saboxplugin-wrap .saboxplugin-web a{color:#ccc;text-decoration:none}.saboxplugin-wrap .saboxplugin-socials{position:relative;display:block;background:#fcfcfc;padding:5px;border-top:1px solid #eee}.saboxplugin-wrap .saboxplugin-socials a svg{width:20px;height:20px}.saboxplugin-wrap .saboxplugin-socials a svg .st2{fill:#fff}.saboxplugin-wrap .saboxplugin-socials a svg .st1{fill:rgba(0,0,0,.3)}.saboxplugin-wrap .saboxplugin-socials a:hover{opacity:.8;-webkit-transition:opacity .4s;-moz-transition:opacity .4s;-o-transition:opacity .4s;transition:opacity .4s;box-shadow:none!important;-webkit-box-shadow:none!important}.saboxplugin-wrap .saboxplugin-socials .saboxplugin-icon-color{box-shadow:none;padding:0;border:0;-webkit-transition:opacity .4s;-moz-transition:opacity .4s;-o-transition:opacity .4s;transition:opacity .4s;display:inline-block;color:#fff;font-size:0;text-decoration:inherit;margin:5px;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;overflow:hidden}.saboxplugin-wrap .saboxplugin-socials .saboxplugin-icon-grey{text-decoration:inherit;box-shadow:none;position:relative;display:-moz-inline-stack;display:inline-block;vertical-align:middle;zoom:1;margin:10px 5px;color:#444}.clearfix:after,.clearfix:before{content:\' \';display:table;line-height:0;clear:both}.ie7 .clearfix{zoom:1}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-twitch{border-color:#38245c}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-addthis{border-color:#e91c00}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-behance{border-color:#003eb0}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-delicious{border-color:#06c}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-deviantart{border-color:#036824}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-digg{border-color:#00327c}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-dribbble{border-color:#ba1655}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-facebook{border-color:#1e2e4f}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-flickr{border-color:#003576}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-github{border-color:#264874}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-google{border-color:#0b51c5}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-googleplus{border-color:#96271a}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-html5{border-color:#902e13}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-instagram{border-color:#1630aa}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-linkedin{border-color:#00344f}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-pinterest{border-color:#5b040e}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-reddit{border-color:#992900}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-rss{border-color:#a43b0a}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-sharethis{border-color:#5d8420}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-skype{border-color:#00658a}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-soundcloud{border-color:#995200}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-spotify{border-color:#0f612c}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-stackoverflow{border-color:#a95009}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-steam{border-color:#006388}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-user_email{border-color:#b84e05}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-stumbleUpon{border-color:#9b280e}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-tumblr{border-color:#10151b}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-twitter{border-color:#0967a0}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-vimeo{border-color:#0d7091}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-windows{border-color:#003f71}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-whatsapp{border-color:#003f71}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-wordpress{border-color:#0f3647}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-yahoo{border-color:#14002d}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-youtube{border-color:#900}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-xing{border-color:#000202}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-mixcloud{border-color:#2475a0}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-vk{border-color:#243549}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-medium{border-color:#00452c}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-quora{border-color:#420e00}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-meetup{border-color:#9b181c}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-goodreads{border-color:#000}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-snapchat{border-color:#999700}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-500px{border-color:#00557f}.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-mastodont{border-color:#185886}.sabox-plus-item{margin-bottom:20px}@media screen and (max-width:480px){.saboxplugin-wrap{text-align:center}.saboxplugin-wrap .saboxplugin-gravatar{float:none;padding:20px 0;text-align:center;margin:0 auto;display:block}.saboxplugin-wrap .saboxplugin-gravatar img{float:none;display:inline-block;display:-moz-inline-stack;vertical-align:middle;zoom:1}.saboxplugin-wrap .saboxplugin-desc{margin:0 10px 20px;text-align:center}.saboxplugin-wrap .saboxplugin-authorname{text-align:center;margin:10px 0 20px}}body .saboxplugin-authorname a,body .saboxplugin-authorname a:hover{box-shadow:none;-webkit-box-shadow:none}a.sab-profile-edit{font-size:16px!important;line-height:1!important}.sab-edit-settings a,a.sab-profile-edit{color:#0073aa!important;box-shadow:none!important;-webkit-box-shadow:none!important}.sab-edit-settings{margin-right:15px;position:absolute;right:0;z-index:2;bottom:10px;line-height:20px}.sab-edit-settings i{margin-left:5px}.saboxplugin-socials{line-height:1!important}.rtl .saboxplugin-wrap .saboxplugin-gravatar{float:right}.rtl .saboxplugin-wrap .saboxplugin-authorname{display:flex;align-items:center}.rtl .saboxplugin-wrap .saboxplugin-authorname .sab-profile-edit{margin-right:10px}.rtl .sab-edit-settings{right:auto;left:0}img.sab-custom-avatar{max-width:75px;}';
|
943 |
|
944 |
// Border color of Simple Author Box
|
945 |
if ( '' != $sabox_options['sab_box_border'] ) {
|
inc/class-simple-author-box-previewer.php
CHANGED
@@ -110,7 +110,7 @@ class Simple_Author_Box_Previewer {
|
|
110 |
// author box clearfix
|
111 |
echo '<div class="clearfix"></div>';
|
112 |
|
113 |
-
$social_links = Simple_Author_Box_Helper::$social_icons;
|
114 |
$social_links['user_email'] = '#';
|
115 |
|
116 |
$extra_class = ' sab-show-simple';
|
110 |
// author box clearfix
|
111 |
echo '<div class="clearfix"></div>';
|
112 |
|
113 |
+
$social_links = apply_filters('sabox_social_icons',Simple_Author_Box_Helper::$social_icons);
|
114 |
$social_links['user_email'] = '#';
|
115 |
|
116 |
$extra_class = ' sab-show-simple';
|
inc/class-simple-author-box-social.php
CHANGED
@@ -16,8 +16,8 @@ class Simple_Author_Box_Social {
|
|
16 |
$icon_svg = self::circle_long_shadow_icon( $icon );
|
17 |
}
|
18 |
|
19 |
-
$icon_svg = apply_filters( "sab_{$icon}_icon", $icon_svg );
|
20 |
-
$icon_svg = apply_filters( "sab_icon", $icon_svg );
|
21 |
|
22 |
return $icon_svg;
|
23 |
|
16 |
$icon_svg = self::circle_long_shadow_icon( $icon );
|
17 |
}
|
18 |
|
19 |
+
$icon_svg = apply_filters( "sab_{$icon}_icon", $icon_svg, $type );
|
20 |
+
$icon_svg = apply_filters( "sab_icon", $icon_svg, $icon, $type );
|
21 |
|
22 |
return $icon_svg;
|
23 |
|
inc/class-simple-author-box-user-profile.php
CHANGED
@@ -18,15 +18,16 @@ class Simple_Author_Box_User_Profile {
|
|
18 |
// Allow HTML in user description.
|
19 |
remove_filter('pre_user_description', 'wp_filter_kses');
|
20 |
add_filter('pre_user_description', 'wp_kses_post');
|
21 |
-
|
22 |
}
|
23 |
|
|
|
24 |
public function add_social_area($profileuser) {
|
25 |
$user_id = $profileuser->data->ID;
|
26 |
|
27 |
$social_links = Simple_Author_Box_Helper::get_user_social_links($user_id);
|
28 |
$social_icons = apply_filters('sabox_social_icons', Simple_Author_Box_Helper::$social_icons);
|
29 |
-
|
|
|
30 |
|
31 |
?>
|
32 |
<div class="sab-user-profile-wrapper">
|
@@ -50,7 +51,7 @@ class Simple_Author_Box_User_Profile {
|
|
50 |
<input name="sabox-social-links[]"
|
51 |
type="<?php echo ('whatsapp' == $social_platform) ? 'tel' : 'text'; ?>"
|
52 |
class="regular-text"
|
53 |
-
value="<?php echo ( 'whatsapp' == $social_platform || 'telegram' == $social_platform ) ? esc_attr($social_link) : esc_url( $social_link ); ?>">
|
54 |
<span class="dashicons dashicons-trash"></span>
|
55 |
<td>
|
56 |
</tr>
|
@@ -151,7 +152,7 @@ class Simple_Author_Box_User_Profile {
|
|
151 |
if ( $social_link ) {
|
152 |
$social_platform = isset( $_POST['sabox-social-icons'][ $index ] ) ? $_POST['sabox-social-icons'][ $index ] : false;
|
153 |
if ( $social_platform && isset( $social_platforms[ $social_platform ] ) ) {
|
154 |
-
if ( 'whatsapp' == $social_platform || 'telegram' == $social_platform ) {
|
155 |
$social_links[ $social_platform ] = esc_html($social_link);
|
156 |
} else {
|
157 |
$social_links[ $social_platform ] = esc_url_raw( $social_link );
|
18 |
// Allow HTML in user description.
|
19 |
remove_filter('pre_user_description', 'wp_filter_kses');
|
20 |
add_filter('pre_user_description', 'wp_kses_post');
|
|
|
21 |
}
|
22 |
|
23 |
+
|
24 |
public function add_social_area($profileuser) {
|
25 |
$user_id = $profileuser->data->ID;
|
26 |
|
27 |
$social_links = Simple_Author_Box_Helper::get_user_social_links($user_id);
|
28 |
$social_icons = apply_filters('sabox_social_icons', Simple_Author_Box_Helper::$social_icons);
|
29 |
+
|
30 |
+
unset($social_icons['user_email']);
|
31 |
|
32 |
?>
|
33 |
<div class="sab-user-profile-wrapper">
|
51 |
<input name="sabox-social-links[]"
|
52 |
type="<?php echo ('whatsapp' == $social_platform) ? 'tel' : 'text'; ?>"
|
53 |
class="regular-text"
|
54 |
+
value="<?php echo ( 'whatsapp' == $social_platform || 'telegram' == $social_platform || 'skype' == $social_platform ) ? esc_attr($social_link) : esc_url( $social_link ); ?>">
|
55 |
<span class="dashicons dashicons-trash"></span>
|
56 |
<td>
|
57 |
</tr>
|
152 |
if ( $social_link ) {
|
153 |
$social_platform = isset( $_POST['sabox-social-icons'][ $index ] ) ? $_POST['sabox-social-icons'][ $index ] : false;
|
154 |
if ( $social_platform && isset( $social_platforms[ $social_platform ] ) ) {
|
155 |
+
if ( 'whatsapp' == $social_platform || 'telegram' == $social_platform || 'skype' == $social_platform ) {
|
156 |
$social_links[ $social_platform ] = esc_html($social_link);
|
157 |
} else {
|
158 |
$social_links[ $social_platform ] = esc_url_raw( $social_link );
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Simple Author Box ===
|
2 |
-
Contributors:
|
3 |
Tags: author box, responsive author box, author profile fields, author social icons, profile fields, author bio, author description, author profile, post author, rtl author box, amp, accelerated mobile pages
|
4 |
Requires at least: 4.6
|
5 |
Requires PHP: 5.6
|
6 |
-
Stable tag: 2.3.
|
7 |
-
Tested up to: 5.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
1 |
=== Simple Author Box ===
|
2 |
+
Contributors: greentreelabs
|
3 |
Tags: author box, responsive author box, author profile fields, author social icons, profile fields, author bio, author description, author profile, post author, rtl author box, amp, accelerated mobile pages
|
4 |
Requires at least: 4.6
|
5 |
Requires PHP: 5.6
|
6 |
+
Stable tag: 2.3.2
|
7 |
+
Tested up to: 5.2
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
simple-author-box.php
CHANGED
@@ -2,9 +2,8 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Simple Author Box
|
4 |
* Description: Adds a responsive author box with social icons on your posts.
|
5 |
-
* Version: 2.3.
|
6 |
-
* Author:
|
7 |
-
* Author URI: https://www.machothemes.com/
|
8 |
* Requires: 4.6 or higher
|
9 |
* License: GPLv3 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -12,6 +11,7 @@
|
|
12 |
*
|
13 |
* Copyright 2014-2017 Tiguan office@tiguandesign.com
|
14 |
* Copyright 2017-2019 MachoThemes office@machothemes.com
|
|
|
15 |
*
|
16 |
* Original Plugin URI: https://tiguan.com/simple-author-box/
|
17 |
* Original Author URI: https://tiguan.com
|
@@ -21,6 +21,9 @@
|
|
21 |
* Tiguan transferred ownership rights on: 09/22/2017 06:38:44 PM when ownership was handed over to MachoThemes
|
22 |
* The MachoThemes ownership period started on: 09/22/2017 06:38:45 PM
|
23 |
* SVN commit proof of ownership transferral: https://plugins.trac.wordpress.org/changeset/1734457/simple-author-box
|
|
|
|
|
|
|
24 |
*
|
25 |
* This program is free software; you can redistribute it and/or modify
|
26 |
* it under the terms of the GNU General Public License, version 3, as
|
@@ -39,7 +42,7 @@
|
|
39 |
define( 'SIMPLE_AUTHOR_BOX_PATH', plugin_dir_path( __FILE__ ) );
|
40 |
define( 'SIMPLE_AUTHOR_BOX_ASSETS', plugins_url( '/assets/', __FILE__ ) );
|
41 |
define( 'SIMPLE_AUTHOR_BOX_SLUG', plugin_basename( __FILE__ ) );
|
42 |
-
define( 'SIMPLE_AUTHOR_BOX_VERSION', '2.3.
|
43 |
define( 'SIMPLE_AUTHOR_SCRIPT_DEBUG', false );
|
44 |
|
45 |
require_once SIMPLE_AUTHOR_BOX_PATH . 'inc/class-simple-author-box.php';
|
2 |
/**
|
3 |
* Plugin Name: Simple Author Box
|
4 |
* Description: Adds a responsive author box with social icons on your posts.
|
5 |
+
* Version: 2.3.2
|
6 |
+
* Author: GreenTreeLabs
|
|
|
7 |
* Requires: 4.6 or higher
|
8 |
* License: GPLv3 or later
|
9 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
*
|
12 |
* Copyright 2014-2017 Tiguan office@tiguandesign.com
|
13 |
* Copyright 2017-2019 MachoThemes office@machothemes.com
|
14 |
+
* Copyright 2019 GreenTreeLabs diego@greentreelabs.net
|
15 |
*
|
16 |
* Original Plugin URI: https://tiguan.com/simple-author-box/
|
17 |
* Original Author URI: https://tiguan.com
|
21 |
* Tiguan transferred ownership rights on: 09/22/2017 06:38:44 PM when ownership was handed over to MachoThemes
|
22 |
* The MachoThemes ownership period started on: 09/22/2017 06:38:45 PM
|
23 |
* SVN commit proof of ownership transferral: https://plugins.trac.wordpress.org/changeset/1734457/simple-author-box
|
24 |
+
*
|
25 |
+
* 2019 - 26th of September
|
26 |
+
* MachoThemes has transferred ownership to GreenTreeLabs on 26/09/2019 - 11:28 AM
|
27 |
*
|
28 |
* This program is free software; you can redistribute it and/or modify
|
29 |
* it under the terms of the GNU General Public License, version 3, as
|
42 |
define( 'SIMPLE_AUTHOR_BOX_PATH', plugin_dir_path( __FILE__ ) );
|
43 |
define( 'SIMPLE_AUTHOR_BOX_ASSETS', plugins_url( '/assets/', __FILE__ ) );
|
44 |
define( 'SIMPLE_AUTHOR_BOX_SLUG', plugin_basename( __FILE__ ) );
|
45 |
+
define( 'SIMPLE_AUTHOR_BOX_VERSION', '2.3.2' );
|
46 |
define( 'SIMPLE_AUTHOR_SCRIPT_DEBUG', false );
|
47 |
|
48 |
require_once SIMPLE_AUTHOR_BOX_PATH . 'inc/class-simple-author-box.php';
|
template/template-sab.php
CHANGED
@@ -124,6 +124,10 @@ if ( '' != $author_description || isset($sabox_options['sab_no_description'] ) &
|
|
124 |
$social_link = 'https://t.me/' . $social_link;
|
125 |
}
|
126 |
|
|
|
|
|
|
|
|
|
127 |
if ( ! empty( $social_link ) ) {
|
128 |
echo Simple_Author_Box_Helper::get_sabox_social_icon( $social_link, $social_platform );
|
129 |
}
|
124 |
$social_link = 'https://t.me/' . $social_link;
|
125 |
}
|
126 |
|
127 |
+
if ( 'skype' == $social_platform ) {
|
128 |
+
$social_link = 'skype:' . $social_link.'?call';
|
129 |
+
}
|
130 |
+
|
131 |
if ( ! empty( $social_link ) ) {
|
132 |
echo Simple_Author_Box_Helper::get_sabox_social_icon( $social_link, $social_platform );
|
133 |
}
|