Version Description
- Fix: Issue where social icons are not seen after upgrade to 4.0.
- Fix: Old admin resources were loaded after upgrade.
- New: Added support for UTF-8 characters in social icons and follow bar titles.
Download this release
Release Info
Developer | vaakash |
Plugin | WP Socializer |
Version | 4.1 |
Comparing to | |
See all releases |
Code changes from version 4.0 to 4.1
- admin/admin.php +34 -26
- admin/buttons.php +2 -2
- admin/css/style.css +2 -2
- admin/followbar.php +1 -1
- admin/js/script.js +2 -2
- core/lists.php +16 -9
- core/templates.php +3 -3
- readme.txt +7 -2
- services/social_icons.php +2 -2
- wpsr.php +2 -2
admin/admin.php
CHANGED
@@ -33,6 +33,8 @@ class WPSR_Admin{
|
|
33 |
// Register the admin notice to inform new version features
|
34 |
add_action( 'admin_notices', array( __CLASS__, 'admin_notices' ) );
|
35 |
|
|
|
|
|
36 |
register_activation_hook( WPSR_BASE_NAME, array( __CLASS__, 'on_activate' ) );
|
37 |
|
38 |
}
|
@@ -80,10 +82,6 @@ class WPSR_Admin{
|
|
80 |
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
81 |
}
|
82 |
|
83 |
-
if( get_option( 'wpsr_setup' ) === false ){
|
84 |
-
wp_safe_redirect( admin_url( 'admin.php?page=wp_socializer_setup' ) );
|
85 |
-
}
|
86 |
-
|
87 |
$pages = self::get_pages();
|
88 |
self::$current_page = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
|
89 |
|
@@ -244,18 +242,18 @@ class WPSR_Admin{
|
|
244 |
public static function enqueue_scripts( $hook ){
|
245 |
|
246 |
if( self::$pagehook == $hook ){
|
247 |
-
wp_enqueue_style( 'wpsr_css', WPSR_ADMIN_URL . 'css/style.css' );
|
248 |
wp_enqueue_style( 'wp-color-picker' );
|
249 |
-
wp_enqueue_style( 'wpsr_ipopup', WPSR_ADMIN_URL . 'css/ipopup.css' );
|
250 |
-
wp_enqueue_style( 'wpsr_fa', WPSR_Lists::ext_res( 'font-awesome-adm' ) );
|
251 |
|
252 |
wp_enqueue_script( 'jquery' );
|
253 |
wp_enqueue_script( 'jquery-conditioner', WPSR_ADMIN_URL . 'js/jquery.conditioner.js', array( 'jquery' ) );
|
254 |
wp_enqueue_script( 'wp-color-picker' );
|
255 |
wp_enqueue_script( 'jquery-ui-sortable' );
|
256 |
wp_enqueue_script( 'jquery-ui-draggable' );
|
257 |
-
wp_enqueue_script( 'wpsr_ipopup', WPSR_ADMIN_URL . 'js/ipopup.js' );
|
258 |
-
wp_enqueue_script( 'wpsr_js', WPSR_ADMIN_URL . 'js/script.js', array( 'jquery', 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-conditioner', 'wp-color-picker', 'wpsr_ipopup' ) );
|
259 |
|
260 |
}
|
261 |
|
@@ -289,7 +287,7 @@ class WPSR_Admin{
|
|
289 |
|
290 |
echo '<script>
|
291 |
var wpsr_show = {
|
292 |
-
changelog: "' . ( ( get_option( '
|
293 |
setup: "' . ( ( get_option( 'wpsr_setup' ) != WPSR_SETUP_VERSION ) ? WPSR_SETUP_VERSION : 'false' ) . '"
|
294 |
}
|
295 |
</script>';
|
@@ -299,28 +297,38 @@ class WPSR_Admin{
|
|
299 |
|
300 |
public static function on_activate(){
|
301 |
|
302 |
-
$
|
303 |
|
304 |
-
|
305 |
-
$service = $config[ 'service' ];
|
306 |
|
307 |
-
|
308 |
-
|
309 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
310 |
|
311 |
-
unset( $buttons[ $id ][ 'settings' ][ 'sr-icon-color' ] );
|
312 |
-
unset( $buttons[ $id ][ 'settings' ][ 'sr-border-color' ] );
|
313 |
-
unset( $buttons[ $id ][ 'settings' ][ 'sr-background-color' ] );
|
314 |
}
|
315 |
|
316 |
-
|
317 |
-
if( $service == 'stumbleupon' ){
|
318 |
-
unset( $buttons[ $id ] );
|
319 |
-
}
|
320 |
|
321 |
}
|
322 |
|
323 |
-
|
|
|
|
|
324 |
|
325 |
}
|
326 |
|
@@ -612,7 +620,7 @@ class WPSR_Admin{
|
|
612 |
$do = $get[ 'do' ];
|
613 |
|
614 |
if( $do == 'close_changelog' ){
|
615 |
-
update_option( '
|
616 |
echo 'done';
|
617 |
}
|
618 |
|
@@ -667,7 +675,7 @@ class WPSR_Admin{
|
|
667 |
$pages_display = array( 'plugins', 'update-core', 'dashboard' );
|
668 |
|
669 |
if( in_array( get_current_screen()->id, $pages_display ) ){
|
670 |
-
if( version_compare( WPSR_VERSION, get_option( '
|
671 |
echo '<div class="notice notice-success is-dismissible">
|
672 |
<p>' . sprintf( __( '<b>WP Socializer</b> is updated to latest version. Please visit the %ssettings%s page to see all the new features and the change log.', 'wpsr' ), '<a href="' . esc_url( admin_url( 'admin.php?page=wp_socializer') ) . '">', '</a>' ) . '</p>
|
673 |
</div>';
|
33 |
// Register the admin notice to inform new version features
|
34 |
add_action( 'admin_notices', array( __CLASS__, 'admin_notices' ) );
|
35 |
|
36 |
+
add_action( 'plugins_loaded', array( __CLASS__, 'on_activate' ) );
|
37 |
+
|
38 |
register_activation_hook( WPSR_BASE_NAME, array( __CLASS__, 'on_activate' ) );
|
39 |
|
40 |
}
|
82 |
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
83 |
}
|
84 |
|
|
|
|
|
|
|
|
|
85 |
$pages = self::get_pages();
|
86 |
self::$current_page = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
|
87 |
|
242 |
public static function enqueue_scripts( $hook ){
|
243 |
|
244 |
if( self::$pagehook == $hook ){
|
245 |
+
wp_enqueue_style( 'wpsr_css', WPSR_ADMIN_URL . 'css/style.css', array(), WPSR_VERSION );
|
246 |
wp_enqueue_style( 'wp-color-picker' );
|
247 |
+
wp_enqueue_style( 'wpsr_ipopup', WPSR_ADMIN_URL . 'css/ipopup.css', array(), WPSR_VERSION );
|
248 |
+
wp_enqueue_style( 'wpsr_fa', WPSR_Lists::ext_res( 'font-awesome-adm' ), array(), WPSR_VERSION );
|
249 |
|
250 |
wp_enqueue_script( 'jquery' );
|
251 |
wp_enqueue_script( 'jquery-conditioner', WPSR_ADMIN_URL . 'js/jquery.conditioner.js', array( 'jquery' ) );
|
252 |
wp_enqueue_script( 'wp-color-picker' );
|
253 |
wp_enqueue_script( 'jquery-ui-sortable' );
|
254 |
wp_enqueue_script( 'jquery-ui-draggable' );
|
255 |
+
wp_enqueue_script( 'wpsr_ipopup', WPSR_ADMIN_URL . 'js/ipopup.js', array(), WPSR_VERSION );
|
256 |
+
wp_enqueue_script( 'wpsr_js', WPSR_ADMIN_URL . 'js/script.js', array( 'jquery', 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-conditioner', 'wp-color-picker', 'wpsr_ipopup' ), WPSR_VERSION );
|
257 |
|
258 |
}
|
259 |
|
287 |
|
288 |
echo '<script>
|
289 |
var wpsr_show = {
|
290 |
+
changelog: "' . ( ( get_option( 'wpsr_last_changelog' ) != WPSR_VERSION ) ? WPSR_VERSION : 'false' ) . '",
|
291 |
setup: "' . ( ( get_option( 'wpsr_setup' ) != WPSR_SETUP_VERSION ) ? WPSR_SETUP_VERSION : 'false' ) . '"
|
292 |
}
|
293 |
</script>';
|
297 |
|
298 |
public static function on_activate(){
|
299 |
|
300 |
+
$prev_version = get_option( 'wpsr_version' );
|
301 |
|
302 |
+
if( version_compare( WPSR_VERSION, $prev_version, '>' ) ){
|
|
|
303 |
|
304 |
+
$buttons = WPSR_Buttons::list_all();
|
305 |
+
|
306 |
+
foreach( $buttons as $id => $config ){
|
307 |
+
$service = $config[ 'service' ];
|
308 |
+
|
309 |
+
// Rename social_buttons service name to social_icons
|
310 |
+
if( $service == 'social_buttons' ){
|
311 |
+
$buttons[ $id ][ 'service' ] = 'social_icons';
|
312 |
+
|
313 |
+
unset( $buttons[ $id ][ 'settings' ][ 'sr-icon-color' ] );
|
314 |
+
unset( $buttons[ $id ][ 'settings' ][ 'sr-border-color' ] );
|
315 |
+
unset( $buttons[ $id ][ 'settings' ][ 'sr-background-color' ] );
|
316 |
+
}
|
317 |
+
|
318 |
+
// Delete stumbleupon service buttons
|
319 |
+
if( $service == 'stumbleupon' ){
|
320 |
+
unset( $buttons[ $id ] );
|
321 |
+
}
|
322 |
|
|
|
|
|
|
|
323 |
}
|
324 |
|
325 |
+
update_option( 'wpsr_buttons', $buttons );
|
|
|
|
|
|
|
326 |
|
327 |
}
|
328 |
|
329 |
+
if( WPSR_VERSION != $prev_version ){
|
330 |
+
update_option( 'wpsr_version', WPSR_VERSION );
|
331 |
+
}
|
332 |
|
333 |
}
|
334 |
|
620 |
$do = $get[ 'do' ];
|
621 |
|
622 |
if( $do == 'close_changelog' ){
|
623 |
+
update_option( 'wpsr_last_changelog', WPSR_VERSION );
|
624 |
echo 'done';
|
625 |
}
|
626 |
|
675 |
$pages_display = array( 'plugins', 'update-core', 'dashboard' );
|
676 |
|
677 |
if( in_array( get_current_screen()->id, $pages_display ) ){
|
678 |
+
if( version_compare( WPSR_VERSION, get_option( 'wpsr_last_changelog' ), '>' ) ){
|
679 |
echo '<div class="notice notice-success is-dismissible">
|
680 |
<p>' . sprintf( __( '<b>WP Socializer</b> is updated to latest version. Please visit the %ssettings%s page to see all the new features and the change log.', 'wpsr' ), '<a href="' . esc_url( admin_url( 'admin.php?page=wp_socializer') ) . '">', '</a>' ) . '</p>
|
681 |
</div>';
|
admin/buttons.php
CHANGED
@@ -34,9 +34,9 @@ class wpsr_admin_buttons{
|
|
34 |
function section_templates( $values, $i ){
|
35 |
|
36 |
if( !isset( $values[ 'tmpl' ][ $i ] ) ){
|
37 |
-
$values[ 'tmpl' ][ $i ] = WPSR_Lists::defaults( '
|
38 |
}else{
|
39 |
-
$values[ 'tmpl' ][ $i ] = WPSR_Lists::set_defaults( $values[ 'tmpl' ][ $i ], WPSR_Lists::defaults( '
|
40 |
}
|
41 |
|
42 |
echo '<div class="template_wrap" data-id="' . $i . '">';
|
34 |
function section_templates( $values, $i ){
|
35 |
|
36 |
if( !isset( $values[ 'tmpl' ][ $i ] ) ){
|
37 |
+
$values[ 'tmpl' ][ $i ] = WPSR_Lists::defaults( 'buttons_template' );
|
38 |
}else{
|
39 |
+
$values[ 'tmpl' ][ $i ] = WPSR_Lists::set_defaults( $values[ 'tmpl' ][ $i ], WPSR_Lists::defaults( 'buttons_template' ) );
|
40 |
}
|
41 |
|
42 |
echo '<div class="template_wrap" data-id="' . $i . '">';
|
admin/css/style.css
CHANGED
@@ -1346,9 +1346,9 @@ select[name="ft_status"]{
|
|
1346 |
}
|
1347 |
.intro_popup h1 {
|
1348 |
border-bottom: 1px solid #dfdfdf;
|
1349 |
-
padding:
|
1350 |
background: #f0f0f0;
|
1351 |
-
margin: -15px -15px 20px -15px;
|
1352 |
}
|
1353 |
.intro_popup p, .intro_popup li{
|
1354 |
font-size: 20px;
|
1346 |
}
|
1347 |
.intro_popup h1 {
|
1348 |
border-bottom: 1px solid #dfdfdf;
|
1349 |
+
padding: 20px !important;
|
1350 |
background: #f0f0f0;
|
1351 |
+
margin: -15px -15px 20px -15px !important;
|
1352 |
}
|
1353 |
.intro_popup p, .intro_popup li{
|
1354 |
font-size: 20px;
|
admin/followbar.php
CHANGED
@@ -106,7 +106,7 @@ class WPSR_Followbar{
|
|
106 |
public static function li_template( $id = '%id%', $name = '%name%', $icon = '%icon%', $color = '%color%', $url = '%url%', $iurl = '%iurl%', $text = '%text%' ){
|
107 |
$title = __( 'Leave blank to use default', 'wpsr' );
|
108 |
|
109 |
-
return '<li data-id="' . $id . '"><h4 style="background-color: ' . $color . '"><i class="' . $icon . ' item_icon"></i>' . $name . '<a href="#" class="fb_item_control fb_item_remove">' . __( 'Delete', 'wpsr' ) . '</a><a href="#" class="fb_item_control fb_item_edit">' . __( 'Edit', 'wpsr' ) . '</a></h4><div><label>Button URL: <input type="text" class="widefat fb_item_url" placeholder="Enter profile URL" value="' . $url . '" /></label><label>Button hover text: <input type="text" class="widefat fb_btn_text" title="' . $title . '" placeholder="Enter custom text to show for button" value="' . $text . '"/></label><label>Icon image URL: <input type="text" class="widefat fb_icon_url" placeholder="Enter custom Icon URL." title="' . $title . '" value="' . $iurl . '"/></label></div></li>';
|
110 |
}
|
111 |
|
112 |
}
|
106 |
public static function li_template( $id = '%id%', $name = '%name%', $icon = '%icon%', $color = '%color%', $url = '%url%', $iurl = '%iurl%', $text = '%text%' ){
|
107 |
$title = __( 'Leave blank to use default', 'wpsr' );
|
108 |
|
109 |
+
return '<li data-id="' . $id . '"><h4 style="background-color: ' . $color . '"><i class="' . $icon . ' item_icon"></i>' . $name . '<a href="#" class="fb_item_control fb_item_remove">' . __( 'Delete', 'wpsr' ) . '</a><a href="#" class="fb_item_control fb_item_edit">' . __( 'Edit', 'wpsr' ) . '</a></h4><div><label>Button URL: <input type="text" class="widefat fb_item_url" placeholder="Enter profile URL" value="' . $url . '" /></label><label>Button hover text: <input type="text" class="widefat fb_btn_text" title="' . $title . '" placeholder="Enter custom text to show for button" value="' . urldecode( $text ) . '"/></label><label>Icon image URL: <input type="text" class="widefat fb_icon_url" placeholder="Enter custom Icon URL." title="' . $title . '" value="' . $iurl . '"/></label></div></li>';
|
110 |
}
|
111 |
|
112 |
}
|
admin/js/script.js
CHANGED
@@ -819,7 +819,7 @@ jQuery(document).ready(function(){
|
|
819 |
value = '1';
|
820 |
|
821 |
if( type == 'text' )
|
822 |
-
value = $i.val();
|
823 |
|
824 |
$item.data( 'opt_' + id, value );
|
825 |
});
|
@@ -915,7 +915,7 @@ jQuery(document).ready(function(){
|
|
915 |
btn[ sid ] = {
|
916 |
'url': burl,
|
917 |
'icon': iurl,
|
918 |
-
'text': text
|
919 |
};
|
920 |
|
921 |
cnt.push( btn );
|
819 |
value = '1';
|
820 |
|
821 |
if( type == 'text' )
|
822 |
+
value = encodeURIComponent($i.val());
|
823 |
|
824 |
$item.data( 'opt_' + id, value );
|
825 |
});
|
915 |
btn[ sid ] = {
|
916 |
'url': burl,
|
917 |
'icon': iurl,
|
918 |
+
'text': encodeURIComponent( text )
|
919 |
};
|
920 |
|
921 |
cnt.push( btn );
|
core/lists.php
CHANGED
@@ -668,15 +668,8 @@ class WPSR_Lists{
|
|
668 |
|
669 |
if( $page == 'buttons' ){
|
670 |
return array(
|
671 |
-
'
|
672 |
-
'
|
673 |
-
'type' => 'show_all',
|
674 |
-
'rule' => 'W10=',
|
675 |
-
'devices' => 'all'
|
676 |
-
),
|
677 |
-
'position' => 'below_posts',
|
678 |
-
'in_excerpt' => 'show',
|
679 |
-
'min_on_width' => '0'
|
680 |
);
|
681 |
}
|
682 |
|
@@ -762,6 +755,20 @@ class WPSR_Lists{
|
|
762 |
);
|
763 |
}
|
764 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
765 |
if( $page == 'gsettings_twitter' ){
|
766 |
return array(
|
767 |
'twitter_username' => ''
|
668 |
|
669 |
if( $page == 'buttons' ){
|
670 |
return array(
|
671 |
+
'ft_status' => 'enable',
|
672 |
+
'tmpl' => array()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
673 |
);
|
674 |
}
|
675 |
|
755 |
);
|
756 |
}
|
757 |
|
758 |
+
if( $page == 'buttons_template' ){
|
759 |
+
return array(
|
760 |
+
'content' => 'eyIxIjp7InByb3BlcnRpZXMiOnt9LCJidXR0b25zIjpbXX19',
|
761 |
+
'loc_rules' => array(
|
762 |
+
'type' => 'show_all',
|
763 |
+
'rule' => 'W10=',
|
764 |
+
'devices' => 'all'
|
765 |
+
),
|
766 |
+
'position' => 'below_posts',
|
767 |
+
'in_excerpt' => 'show',
|
768 |
+
'min_on_width' => '0'
|
769 |
+
);
|
770 |
+
}
|
771 |
+
|
772 |
if( $page == 'gsettings_twitter' ){
|
773 |
return array(
|
774 |
'twitter_username' => ''
|
core/templates.php
CHANGED
@@ -16,7 +16,7 @@ class WPSR_Template_Buttons{
|
|
16 |
|
17 |
public static function output(){
|
18 |
|
19 |
-
$btn_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_button_settings' ),
|
20 |
$btn_templates = $btn_settings[ 'tmpl' ];
|
21 |
|
22 |
if($btn_settings[ 'ft_status' ] != 'disable'){
|
@@ -339,7 +339,7 @@ class WPSR_Template_Followbar{
|
|
339 |
|
340 |
$iclasses = array( 'sr-' . $id, $cicon );
|
341 |
$onclick = array_key_exists( 'onclick', $prop ) ? 'onclick="' . esc_attr( $prop[ 'onclick' ] ) . '"' : '';
|
342 |
-
$title = ( ( $btn_obj->$id->text == '' ) ? $prop[ 'name' ] : $btn_obj->$id->text );
|
343 |
|
344 |
$html .= '<span class="' . esc_attr( join( ' ', $iclasses ) ) . '">';
|
345 |
$html .= '<a rel="nofollow" href="' . esc_attr( $btn_obj->$id->url ) . '" target="_blank" title="' . esc_attr( $title ) . '" style="' . esc_attr( $style ) . '" ' . $onclick . '>';
|
@@ -558,7 +558,7 @@ class wpsr_template_button_handler{
|
|
558 |
|
559 |
function __construct( $properties, $type ){
|
560 |
|
561 |
-
$this->props = WPSR_Lists::set_defaults( $properties, WPSR_Lists::defaults( '
|
562 |
$this->type = $type;
|
563 |
|
564 |
}
|
16 |
|
17 |
public static function output(){
|
18 |
|
19 |
+
$btn_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_button_settings' ), WPSR_Lists::defaults( 'buttons' ) );
|
20 |
$btn_templates = $btn_settings[ 'tmpl' ];
|
21 |
|
22 |
if($btn_settings[ 'ft_status' ] != 'disable'){
|
339 |
|
340 |
$iclasses = array( 'sr-' . $id, $cicon );
|
341 |
$onclick = array_key_exists( 'onclick', $prop ) ? 'onclick="' . esc_attr( $prop[ 'onclick' ] ) . '"' : '';
|
342 |
+
$title = ( ( $btn_obj->$id->text == '' ) ? $prop[ 'name' ] : urldecode( $btn_obj->$id->text ) );
|
343 |
|
344 |
$html .= '<span class="' . esc_attr( join( ' ', $iclasses ) ) . '">';
|
345 |
$html .= '<a rel="nofollow" href="' . esc_attr( $btn_obj->$id->url ) . '" target="_blank" title="' . esc_attr( $title ) . '" style="' . esc_attr( $style ) . '" ' . $onclick . '>';
|
558 |
|
559 |
function __construct( $properties, $type ){
|
560 |
|
561 |
+
$this->props = WPSR_Lists::set_defaults( $properties, WPSR_Lists::defaults( 'buttons_template' ) );
|
562 |
$this->type = $type;
|
563 |
|
564 |
}
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== WP Socializer ===
|
2 |
Contributors: vaakash
|
3 |
Donate link: https://goo.gl/qMF3iE
|
4 |
-
Tags:
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 4.9.8
|
7 |
-
Stable tag: 4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -225,6 +225,11 @@ Please refer [this page](https://goo.gl/Ge7riC) for the full list of FAQs.
|
|
225 |
|
226 |
== Changelog ==
|
227 |
|
|
|
|
|
|
|
|
|
|
|
228 |
= 4.0 =
|
229 |
* New: Brand new admin interface.
|
230 |
* New: CSS resources are combined and optimized.
|
1 |
=== WP Socializer ===
|
2 |
Contributors: vaakash
|
3 |
Donate link: https://goo.gl/qMF3iE
|
4 |
+
Tags: sharing, social media icons, share icons, share buttons, follow buttons, widgets, floating share buttons, profile buttons, mobile sharebar, profile icons, social bar, share counter, excerpt, shortcode, linkedin, pinterest, pocket, reddit, sharethis, addthis, whatsapp, tweet, vkontakte, socializer, wp socializer, weibo, line, mix, odnoklassniki, renren, skype
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 4.9.8
|
7 |
+
Stable tag: 4.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
225 |
|
226 |
== Changelog ==
|
227 |
|
228 |
+
= 4.1 =
|
229 |
+
* Fix: Issue where social icons are not seen after upgrade to 4.0.
|
230 |
+
* Fix: Old admin resources were loaded after upgrade.
|
231 |
+
* New: Added support for UTF-8 characters in social icons and follow bar titles.
|
232 |
+
|
233 |
= 4.0 =
|
234 |
* New: Brand new admin interface.
|
235 |
* New: CSS resources are combined and optimized.
|
services/social_icons.php
CHANGED
@@ -122,7 +122,7 @@ class wpsr_service_social_icons{
|
|
122 |
$the_text = '';
|
123 |
|
124 |
if( intval( $opts[ 'text' ] ) == 1 ){
|
125 |
-
$the_text = empty( $opts[ 'custom_text' ] ) ? $props[ 'name' ] : $opts[ 'custom_text' ];
|
126 |
$text_class = 'sr-text-' . $text_style;
|
127 |
if( $text_style == 'in' ){
|
128 |
$text_in = '<span class="text">' . $the_text . '</span>';
|
@@ -272,7 +272,7 @@ foreach( $saved as $i ){
|
|
272 |
$site_prop = $this->sites[ $site ];
|
273 |
|
274 |
foreach( $opts as $k => $v ){
|
275 |
-
$datas .= ' data-opt_' . $k . '="' . $v . '"';
|
276 |
}
|
277 |
|
278 |
echo '<li' . $datas . ' style="background-color: ' . $site_prop[ 'colors' ][0] . ';">';
|
122 |
$the_text = '';
|
123 |
|
124 |
if( intval( $opts[ 'text' ] ) == 1 ){
|
125 |
+
$the_text = empty( $opts[ 'custom_text' ] ) ? $props[ 'name' ] : urldecode($opts[ 'custom_text' ]);
|
126 |
$text_class = 'sr-text-' . $text_style;
|
127 |
if( $text_style == 'in' ){
|
128 |
$text_in = '<span class="text">' . $the_text . '</span>';
|
272 |
$site_prop = $this->sites[ $site ];
|
273 |
|
274 |
foreach( $opts as $k => $v ){
|
275 |
+
$datas .= ' data-opt_' . $k . '="' . urldecode($v) . '"';
|
276 |
}
|
277 |
|
278 |
echo '<li' . $datas . ' style="background-color: ' . $site_prop[ 'colors' ][0] . ';">';
|
wpsr.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* Plugin Name: WP Socializer
|
4 |
* Plugin URI: https://www.aakashweb.com/wordpress-plugins/wp-socializer/
|
5 |
* Description: WP Socializer is an all in one complete social media plugin to add native social media buttons, icons, floating sharebar, follow us buttons, profile icons, mobile sharebar and selected text share popups easily with complete control and customization.
|
6 |
-
* Version: 4.
|
7 |
* Author: Aakash Chakravarthy
|
8 |
* Author URI: https://www.aakashweb.com
|
9 |
* Text Domain: wpsr
|
10 |
* Domain Path: /languages
|
11 |
*/
|
12 |
|
13 |
-
define( 'WPSR_VERSION', '4.
|
14 |
define( 'WPSR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
|
15 |
define( 'WPSR_URL', plugin_dir_url( __FILE__ ) );
|
16 |
define( 'WPSR_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
|
3 |
* Plugin Name: WP Socializer
|
4 |
* Plugin URI: https://www.aakashweb.com/wordpress-plugins/wp-socializer/
|
5 |
* Description: WP Socializer is an all in one complete social media plugin to add native social media buttons, icons, floating sharebar, follow us buttons, profile icons, mobile sharebar and selected text share popups easily with complete control and customization.
|
6 |
+
* Version: 4.1
|
7 |
* Author: Aakash Chakravarthy
|
8 |
* Author URI: https://www.aakashweb.com
|
9 |
* Text Domain: wpsr
|
10 |
* Domain Path: /languages
|
11 |
*/
|
12 |
|
13 |
+
define( 'WPSR_VERSION', '4.1' );
|
14 |
define( 'WPSR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
|
15 |
define( 'WPSR_URL', plugin_dir_url( __FILE__ ) );
|
16 |
define( 'WPSR_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
|