Version Description
- November 11, 2017
Download this release
Release Info
Developer | arjunjain08 |
Plugin | WP Social Sharing |
Version | 2.0 |
Comparing to | |
See all releases |
Code changes from version 1.9 to 2.0
- includes/class-admin.php +16 -14
- includes/class-public.php +23 -15
- includes/plugin.php +2 -1
- includes/settings-page.php +11 -2
- index.php +22 -10
- readme.txt +13 -9
- static/admin-styles.css +3 -2
- static/socialshare.css +7 -2
- static/socialshare.png +0 -0
includes/class-admin.php
CHANGED
@@ -21,7 +21,7 @@ class SS_Admin {
|
|
21 |
}
|
22 |
}
|
23 |
|
24 |
-
function wss_plugin_activation_action(){
|
25 |
$defaults = array(
|
26 |
'twitter_username' => "",
|
27 |
'auto_add_post_types' => array( 'post' ),
|
@@ -35,12 +35,13 @@ class SS_Admin {
|
|
35 |
'pinterest_text'=>"Share on Pinterest",
|
36 |
'pinterest_image'=>"",
|
37 |
'xing_text'=>"Share on Xing",
|
38 |
-
'
|
|
|
39 |
'before_button_text'=>'',
|
40 |
'text_position'=>'left'
|
41 |
);
|
42 |
update_option( 'wp_social_sharing', $defaults );
|
43 |
-
update_option( 'wss_wp_social_sharing','f,t,g,l,p,x');
|
44 |
update_option( 'wss_pluign_version ',SS_VERSION);
|
45 |
}
|
46 |
|
@@ -55,17 +56,18 @@ class SS_Admin {
|
|
55 |
}
|
56 |
|
57 |
public function sanitize_settings( $settings ) {
|
58 |
-
$settings['before_button_text']
|
59 |
-
$settings['twitter_username']
|
60 |
-
$settings['facebook_text']
|
61 |
-
$settings['twitter_text']
|
62 |
-
$settings['googleplus_text']
|
63 |
-
$settings['linkedin_text']
|
64 |
-
$settings['pinterest_text']
|
65 |
-
$settings['pinterest_image']
|
66 |
-
$settings['xing_text']
|
67 |
-
$settings['
|
68 |
-
$settings['
|
|
|
69 |
return $settings;
|
70 |
}
|
71 |
|
21 |
}
|
22 |
}
|
23 |
|
24 |
+
static function wss_plugin_activation_action(){
|
25 |
$defaults = array(
|
26 |
'twitter_username' => "",
|
27 |
'auto_add_post_types' => array( 'post' ),
|
35 |
'pinterest_text'=>"Share on Pinterest",
|
36 |
'pinterest_image'=>"",
|
37 |
'xing_text'=>"Share on Xing",
|
38 |
+
'reddit_text' => 'Share on Reddit',
|
39 |
+
'show_icons'=>'1',
|
40 |
'before_button_text'=>'',
|
41 |
'text_position'=>'left'
|
42 |
);
|
43 |
update_option( 'wp_social_sharing', $defaults );
|
44 |
+
update_option( 'wss_wp_social_sharing','f,t,g,l,p,x,r');
|
45 |
update_option( 'wss_pluign_version ',SS_VERSION);
|
46 |
}
|
47 |
|
56 |
}
|
57 |
|
58 |
public function sanitize_settings( $settings ) {
|
59 |
+
$settings['before_button_text'] = trim( strip_tags( $settings['before_button_text'] ) );
|
60 |
+
$settings['twitter_username'] = trim( strip_tags( $settings['twitter_username'] ) );
|
61 |
+
$settings['facebook_text'] = trim( strip_tags( $settings['facebook_text'] ) );
|
62 |
+
$settings['twitter_text'] = trim( strip_tags( $settings['twitter_text'] ) );
|
63 |
+
$settings['googleplus_text'] = trim( strip_tags( $settings['googleplus_text'] ) );
|
64 |
+
$settings['linkedin_text'] = trim( strip_tags( $settings['linkedin_text'] ) );
|
65 |
+
$settings['pinterest_text'] = trim( strip_tags( $settings['pinterest_text'] ) );
|
66 |
+
$settings['pinterest_image'] = trim( strip_tags( $settings['pinterest_image'] ) );
|
67 |
+
$settings['xing_text'] = trim( strip_tags( $settings['xing_text'] ) );
|
68 |
+
$settings['reddit_text'] = trim( strip_tags( $settings['reddit_text'] ));
|
69 |
+
$settings['auto_add_post_types'] = ( isset( $settings['auto_add_post_types'] ) ) ? $settings['auto_add_post_types'] : array();
|
70 |
+
$settings['show_sharebutton'] = ( isset( $settings['show_sharebutton'] ) ) ? $settings['show_sharebutton'] : array();
|
71 |
return $settings;
|
72 |
}
|
73 |
|
includes/class-public.php
CHANGED
@@ -58,7 +58,8 @@ class SS_Public {
|
|
58 |
'linkedin_text' => __('Share on Linkedin', 'social-sharing' ),
|
59 |
'pinterest_text'=>__('Share on Pinterest','social-sharing'),
|
60 |
'xing_text'=>__('Share on Xing','social-sharing'),
|
61 |
-
'
|
|
|
62 |
'social_image'=> '',
|
63 |
'show_icons'=>'0',
|
64 |
'before_button_text'=>'',
|
@@ -99,21 +100,23 @@ class SS_Public {
|
|
99 |
}
|
100 |
}
|
101 |
|
102 |
-
$ssbutton_facebook='button-facebook';
|
103 |
-
$ssbutton_twitter='button-twitter';
|
104 |
-
$ssbutton_googleplus='button-googleplus';
|
105 |
-
$ssbutton_linkedin='button-linkedin';
|
106 |
-
$ssbutton_pinterest='button-pinterest';
|
107 |
-
$ssbutton_xing='button-xing';
|
|
|
108 |
$sssocial_sharing='';
|
109 |
if($show_icons){
|
110 |
-
$sssocial_sharing='ss-social-sharing';
|
111 |
-
$ssbutton_facebook='ss-button-facebook';
|
112 |
-
$ssbutton_twitter='ss-button-twitter';
|
113 |
-
$ssbutton_googleplus='ss-button-googleplus';
|
114 |
-
$ssbutton_linkedin='ss-button-linkedin';
|
115 |
-
$ssbutton_pinterest='ss-button-pinterest';
|
116 |
-
$ssbutton_xing='ss-button-xing';
|
|
|
117 |
}
|
118 |
$icon_order=explode(',',$icon_order);
|
119 |
ob_start();
|
@@ -155,7 +158,12 @@ class SS_Public {
|
|
155 |
?><a <?php echo $loadjs;?> rel="external nofollow" class="<?php echo $ssbutton_xing;?>" href="https://www.xing.com/spi/shares/new?url=<?php echo $url;?>" target="_blank" ><?php echo $xing_text; ?></a><?php
|
156 |
}
|
157 |
break;
|
158 |
-
|
|
|
|
|
|
|
|
|
|
|
159 |
} ?>
|
160 |
<?php if(!empty($before_button_text) && ($text_position == 'bottom' || $text_position == 'right')):?>
|
161 |
<span class="<?php echo $text_position;?> before-sharebutton-text"><?php echo $before_button_text; ?></span>
|
58 |
'linkedin_text' => __('Share on Linkedin', 'social-sharing' ),
|
59 |
'pinterest_text'=>__('Share on Pinterest','social-sharing'),
|
60 |
'xing_text'=>__('Share on Xing','social-sharing'),
|
61 |
+
'reddit_text' => __('Share on Reddit','social-sharing'),
|
62 |
+
'icon_order'=>'f,t,g,l,p,x,r',
|
63 |
'social_image'=> '',
|
64 |
'show_icons'=>'0',
|
65 |
'before_button_text'=>'',
|
100 |
}
|
101 |
}
|
102 |
|
103 |
+
$ssbutton_facebook = 'button-facebook';
|
104 |
+
$ssbutton_twitter = 'button-twitter';
|
105 |
+
$ssbutton_googleplus = 'button-googleplus';
|
106 |
+
$ssbutton_linkedin = 'button-linkedin';
|
107 |
+
$ssbutton_pinterest = 'button-pinterest';
|
108 |
+
$ssbutton_xing = 'button-xing';
|
109 |
+
$ssbutton_reddit = 'button-reddit';
|
110 |
$sssocial_sharing='';
|
111 |
if($show_icons){
|
112 |
+
$sssocial_sharing = 'ss-social-sharing';
|
113 |
+
$ssbutton_facebook = 'ss-button-facebook';
|
114 |
+
$ssbutton_twitter = 'ss-button-twitter';
|
115 |
+
$ssbutton_googleplus = 'ss-button-googleplus';
|
116 |
+
$ssbutton_linkedin = 'ss-button-linkedin';
|
117 |
+
$ssbutton_pinterest = 'ss-button-pinterest';
|
118 |
+
$ssbutton_xing = 'ss-button-xing';
|
119 |
+
$ssbutton_reddit = 'ss-button-reddit';
|
120 |
}
|
121 |
$icon_order=explode(',',$icon_order);
|
122 |
ob_start();
|
158 |
?><a <?php echo $loadjs;?> rel="external nofollow" class="<?php echo $ssbutton_xing;?>" href="https://www.xing.com/spi/shares/new?url=<?php echo $url;?>" target="_blank" ><?php echo $xing_text; ?></a><?php
|
159 |
}
|
160 |
break;
|
161 |
+
case 'r':
|
162 |
+
if(in_array('reddit', $social_options)){
|
163 |
+
?><a <?php echo $loadjs;?> rel="external nofollow" class="<?php echo $ssbutton_reddit;?>" href="http://reddit.com/submit?url=<?php echo $url;?>&title=<?php echo $title?>" target="_blank"><?php echo $reddit_text;?></a><?php
|
164 |
+
}
|
165 |
+
break;
|
166 |
+
}
|
167 |
} ?>
|
168 |
<?php if(!empty($before_button_text) && ($text_position == 'bottom' || $text_position == 'right')):?>
|
169 |
<span class="<?php echo $text_position;?> before-sharebutton-text"><?php echo $before_button_text; ?></span>
|
includes/plugin.php
CHANGED
@@ -22,7 +22,8 @@ function ss_get_options(){
|
|
22 |
'pinterest_image'=>"",
|
23 |
'xing_text'=>"Share on Xing",
|
24 |
'before_button_text'=>'',
|
25 |
-
'text_position' => 'left'
|
|
|
26 |
);
|
27 |
|
28 |
$db_option = get_option( 'wp_social_sharing', array());
|
22 |
'pinterest_image'=>"",
|
23 |
'xing_text'=>"Share on Xing",
|
24 |
'before_button_text'=>'',
|
25 |
+
'text_position' => 'left',
|
26 |
+
'show_icons' => '0'
|
27 |
);
|
28 |
|
29 |
$db_option = get_option( 'wp_social_sharing', array());
|
includes/settings-page.php
CHANGED
@@ -23,7 +23,7 @@ if( ! defined("SS_VERSION") ) {
|
|
23 |
<br /><input type="checkbox" id="linkedin_share" name="wp_social_sharing[social_options][]" value="linkedin" <?php checked( in_array( 'linkedin', $opts['social_options'] ), true ); ?> /><label for="linkedin_share"><?php echo _e('Linkedin','wp-social-sharing')?></label>
|
24 |
<input type="checkbox" id="pinterest_share" name="wp_social_sharing[social_options][]" value="pinterest" <?php checked( in_array( 'pinterest', $opts['social_options'] ), true ); ?> /><label for="pinterest_share"><?php echo _e('Pinterest','wp-social-sharing')?></label>
|
25 |
<input type="checkbox" id="xing_share" name="wp_social_sharing[social_options][]" value="xing" <?php checked( in_array( 'xing', $opts['social_options'] ), true ); ?> /><label for="xing_share"><?php echo _e('Xing','wp-social-sharing')?></label>
|
26 |
-
|
27 |
</td>
|
28 |
</tr>
|
29 |
<tr valign="top">
|
@@ -31,7 +31,7 @@ if( ! defined("SS_VERSION") ) {
|
|
31 |
<td>
|
32 |
<div class="dndicon">
|
33 |
<?php $s_order=get_option('wss_wp_social_sharing');
|
34 |
-
if(empty($s_order)) $s_order='f,t,g,l,p,x';
|
35 |
$io=explode(',',rtrim($s_order,','));
|
36 |
foreach ($io as $i){
|
37 |
switch($i){
|
@@ -53,6 +53,9 @@ if( ! defined("SS_VERSION") ) {
|
|
53 |
case 'x':
|
54 |
echo '<div class="s-icon xing-icon" id="x"></div>';
|
55 |
break;
|
|
|
|
|
|
|
56 |
}
|
57 |
}?>
|
58 |
</div>
|
@@ -135,6 +138,12 @@ if( ! defined("SS_VERSION") ) {
|
|
135 |
<td>
|
136 |
<input type="text" name="wp_social_sharing[xing_text]" id="xing_text" class="widefat" value="<?php echo esc_attr($opts['xing_text']); ?>" />
|
137 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
</tr>
|
139 |
<tr>
|
140 |
<th><label><?php _e('Load plugin scripts','wp-social-sharing');?></label></th>
|
23 |
<br /><input type="checkbox" id="linkedin_share" name="wp_social_sharing[social_options][]" value="linkedin" <?php checked( in_array( 'linkedin', $opts['social_options'] ), true ); ?> /><label for="linkedin_share"><?php echo _e('Linkedin','wp-social-sharing')?></label>
|
24 |
<input type="checkbox" id="pinterest_share" name="wp_social_sharing[social_options][]" value="pinterest" <?php checked( in_array( 'pinterest', $opts['social_options'] ), true ); ?> /><label for="pinterest_share"><?php echo _e('Pinterest','wp-social-sharing')?></label>
|
25 |
<input type="checkbox" id="xing_share" name="wp_social_sharing[social_options][]" value="xing" <?php checked( in_array( 'xing', $opts['social_options'] ), true ); ?> /><label for="xing_share"><?php echo _e('Xing','wp-social-sharing')?></label>
|
26 |
+
<input type="checkbox" id="reddit_share" name="wp_social_sharing[social_options][]" value="reddit" <?php checked( in_array( 'reddit', $opts['social_options'] ), true ); ?> /><label for="reddit_share"><?php echo _e('Reddit','wp-social-sharing')?></label>
|
27 |
</td>
|
28 |
</tr>
|
29 |
<tr valign="top">
|
31 |
<td>
|
32 |
<div class="dndicon">
|
33 |
<?php $s_order=get_option('wss_wp_social_sharing');
|
34 |
+
if(empty($s_order)) $s_order='f,t,g,l,p,x,r';
|
35 |
$io=explode(',',rtrim($s_order,','));
|
36 |
foreach ($io as $i){
|
37 |
switch($i){
|
53 |
case 'x':
|
54 |
echo '<div class="s-icon xing-icon" id="x"></div>';
|
55 |
break;
|
56 |
+
case 'r':
|
57 |
+
echo '<div class="s-icon reddit-icon" id="r"></div>';
|
58 |
+
break;
|
59 |
}
|
60 |
}?>
|
61 |
</div>
|
138 |
<td>
|
139 |
<input type="text" name="wp_social_sharing[xing_text]" id="xing_text" class="widefat" value="<?php echo esc_attr($opts['xing_text']); ?>" />
|
140 |
</td>
|
141 |
+
</tr>
|
142 |
+
<tr valign="top">
|
143 |
+
<th><label for="reddit_text"><?php _e('Reddit share button text','wp-social-sharing');?></label></th>
|
144 |
+
<td>
|
145 |
+
<input type="text" name="wp_social_sharing[reddit_text]" id="reddit_text" class="widefat" value="<?php echo esc_attr($opts['reddit_text']); ?>" />
|
146 |
+
</td>
|
147 |
</tr>
|
148 |
<tr>
|
149 |
<th><label><?php _e('Load plugin scripts','wp-social-sharing');?></label></th>
|
index.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Social Sharing
|
4 |
-
Version:
|
5 |
Plugin URI: http://wordpress.org/plugins/wp-social-sharing/
|
6 |
-
Description: Adds very attractive responsive social sharing buttons of Facebook, Twitter, Linkedin, Pinterest, Xing and Google+ to wordpress posts, pages or media.
|
7 |
Author: Arjun Jain
|
8 |
Author URI: http://www.arjunjain.info/
|
9 |
Text Domain: wp-social-sharing
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
-
define( "SS_VERSION", "1.
|
20 |
define( "SS_PLUGIN_DIR", plugin_dir_path( __FILE__ ) );
|
21 |
define( "SS_PLUGIN_URL", plugins_url( '/' , __FILE__ ) );
|
22 |
|
@@ -40,31 +40,43 @@ function wss_update_db_check_while_plugin_upgrade(){
|
|
40 |
$db_version='1.0';
|
41 |
|
42 |
if($db_version == '1.0' ){
|
43 |
-
update_option('wss_wp_social_sharing','f,t,g,l,p,x');
|
44 |
$default=get_option('wp_social_sharing');
|
45 |
$default['linkedin_text']='Share on Linkedin';
|
46 |
$default['pinterest_text']='Share on Pinterest';
|
47 |
$default['xing_text']='Share on Xing';
|
|
|
48 |
update_option('wp_social_sharing',$default);
|
49 |
-
update_option('wss_plugin_version','1.
|
50 |
}
|
51 |
else if($db_version == '1.3'){ // update db from version 1.3 to 1.4
|
52 |
$current_wss_option=get_option('wss_wp_social_sharing');
|
53 |
-
$current_wss_option = $current_wss_option.',p,x';
|
54 |
update_option('wss_wp_social_sharing',$current_wss_option);
|
55 |
$default=get_option('wp_social_sharing');
|
56 |
$default['pinterest_text']='Share on Pinterest';
|
57 |
$default['xing_text']='Share on Xing';
|
58 |
-
|
59 |
-
|
|
|
60 |
}
|
61 |
else if($db_version == '1.4'){ // update db from version 1.4 to 1.5
|
62 |
$current_wss_option=get_option('wss_wp_social_sharing');
|
63 |
-
$current_wss_option = $current_wss_option.',x';
|
64 |
update_option('wss_wp_social_sharing',$current_wss_option);
|
65 |
$default=get_option('wp_social_sharing');
|
66 |
$default['xing_text']='Share on Xing';
|
|
|
67 |
update_option('wp_social_sharing',$default);
|
68 |
-
update_option('wss_plugin_version','1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
}
|
70 |
}
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Social Sharing
|
4 |
+
Version: 2.0
|
5 |
Plugin URI: http://wordpress.org/plugins/wp-social-sharing/
|
6 |
+
Description: Adds very attractive responsive social sharing buttons of Facebook, Twitter, Linkedin, Reddit, Pinterest, Xing and Google+ to wordpress posts, pages or media.
|
7 |
Author: Arjun Jain
|
8 |
Author URI: http://www.arjunjain.info/
|
9 |
Text Domain: wp-social-sharing
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
+
define( "SS_VERSION", "1.6" ); // db versioin
|
20 |
define( "SS_PLUGIN_DIR", plugin_dir_path( __FILE__ ) );
|
21 |
define( "SS_PLUGIN_URL", plugins_url( '/' , __FILE__ ) );
|
22 |
|
40 |
$db_version='1.0';
|
41 |
|
42 |
if($db_version == '1.0' ){
|
43 |
+
update_option('wss_wp_social_sharing','f,t,g,l,p,x,r');
|
44 |
$default=get_option('wp_social_sharing');
|
45 |
$default['linkedin_text']='Share on Linkedin';
|
46 |
$default['pinterest_text']='Share on Pinterest';
|
47 |
$default['xing_text']='Share on Xing';
|
48 |
+
$default['reddit_text']='Share on Reddit';
|
49 |
update_option('wp_social_sharing',$default);
|
50 |
+
update_option('wss_plugin_version','1.6');
|
51 |
}
|
52 |
else if($db_version == '1.3'){ // update db from version 1.3 to 1.4
|
53 |
$current_wss_option=get_option('wss_wp_social_sharing');
|
54 |
+
$current_wss_option = $current_wss_option.',p,x,r';
|
55 |
update_option('wss_wp_social_sharing',$current_wss_option);
|
56 |
$default=get_option('wp_social_sharing');
|
57 |
$default['pinterest_text']='Share on Pinterest';
|
58 |
$default['xing_text']='Share on Xing';
|
59 |
+
$default['reddit_text']='Share on Reddit';
|
60 |
+
update_option('wp_social_sharing',$default);
|
61 |
+
update_option('wss_plugin_version','1.6');
|
62 |
}
|
63 |
else if($db_version == '1.4'){ // update db from version 1.4 to 1.5
|
64 |
$current_wss_option=get_option('wss_wp_social_sharing');
|
65 |
+
$current_wss_option = $current_wss_option.',x,r';
|
66 |
update_option('wss_wp_social_sharing',$current_wss_option);
|
67 |
$default=get_option('wp_social_sharing');
|
68 |
$default['xing_text']='Share on Xing';
|
69 |
+
$default['reddit_text']='Share on Reddit';
|
70 |
update_option('wp_social_sharing',$default);
|
71 |
+
update_option('wss_plugin_version','1.6');
|
72 |
+
}
|
73 |
+
else if($db_version == '1.5'){ // update db from version 1.5 to 1.6
|
74 |
+
$current_wss_option=get_option('wss_wp_social_sharing');
|
75 |
+
$current_wss_option = $current_wss_option.',r';
|
76 |
+
update_option('wss_wp_social_sharing',$current_wss_option);
|
77 |
+
$default=get_option('wp_social_sharing');
|
78 |
+
$default['reddit_text']='Share on Reddit';
|
79 |
+
update_option('wp_social_sharing',$default);
|
80 |
+
update_option('wss_plugin_version','1.6');
|
81 |
}
|
82 |
}
|
readme.txt
CHANGED
@@ -1,43 +1,44 @@
|
|
1 |
=== WP Social Sharing ===
|
2 |
Contributors: arjunjain08
|
3 |
-
Author URI:
|
4 |
Plugin URI: https://wordpress.org/plugins/wp-social-sharing/
|
5 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=SQC4WR7X5JGDY&lc=IN&item_name=WP%20Social%20Sharing&item_number=7&button_subtype=services¤cy_code=USD&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHosted
|
6 |
-
Tags: responsive social buttons, responsive social sharing buttons, responsive button, social buttons, social sharing, sharing buttons, twitter share, xing share, googleplus share, facebook share, linkedin share, pinterest share, share button for custom post type
|
7 |
Requires at least: 3.5
|
8 |
-
Tested up to: 4.
|
9 |
-
Stable tag:
|
10 |
License: GPLv3
|
11 |
|
12 |
-
Adds very attractive responsive social sharing buttons of Facebook, Twitter, Linkedin, Pinterest, Xing and Google+ to wordpress posts, pages or media.
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
-
WP Social sharing adds very attractive responsive social share buttons of Facebook, Twitter, Linkedin, Xing, Google+ and Pinterest to wordpress posts, page, media or any custom post type. This is very lightweight and simple social sharing plugin. This plugin provide option whether you want to include plugin CSS/JS or not.
|
17 |
Most of the social sharing plugins uses images/api to display social share buttons, but this plugin created large social sharing buttons using CSS3. Also these social sharing buttons are responsive. For device width <strong>less than 480px</strong> these buttons converted into their respective icons.
|
18 |
|
19 |
**Plugin Features**
|
20 |
|
21 |
-
- Social sharing support for Facebook, Google+, Linkedin, Twitter, Xing and Pinterest.
|
22 |
- Auto display to Post, Page, Media and Custom Post type.
|
23 |
- Custom Social Button text.
|
24 |
- 100% responsive.
|
25 |
- Reorder Social icon order easily.
|
26 |
- No Image, button created using CSS3. For device width less than 480px, this plugin used one single image to display social icons.
|
27 |
- Provide Shortcode, can integrated with any theme easily.
|
|
|
28 |
- Add text before share buttons
|
29 |
|
30 |
**Plugin Shortcode**
|
31 |
You can also use following shortcode
|
32 |
|
33 |
`
|
34 |
-
[wp_social_sharing social_options='facebook,twitter,googleplus,linkedin,pinterest,xing' twitter_username='arjun077' facebook_text='Share on Facebook' twitter_text='Share on Twitter' googleplus_text='Share on Google+' linkedin_text='Share on Linkedin' pinterest_text="Share on Pinterest" xing_text="Share on Xing" icon_order='f,t,g,l,p,x' show_icons='0' before_button_text='' text_position='' social_image='']
|
35 |
`
|
36 |
[Demo](http://www.arjunjain.info/wp-social-sharing/)
|
37 |
|
38 |
== Support ==
|
39 |
|
40 |
-
* Fill up this [form](http://www.arjunjain.info/contact) to leave comments,ask question,suggest new feature or directly mail at
|
41 |
|
42 |
== Screenshots ==
|
43 |
|
@@ -53,6 +54,9 @@ You can also use following shortcode
|
|
53 |
2. Alternatively, download the plugin and upload the contents of `wp-social-sharing.zip` to your plugins directory, which usually is `/wp-content/plugins/`. Activate the plugin.
|
54 |
|
55 |
== Changelog ==
|
|
|
|
|
|
|
56 |
|
57 |
= 1.9 - September 26, 2015 =
|
58 |
- Add Xing Social Network Sharing
|
1 |
=== WP Social Sharing ===
|
2 |
Contributors: arjunjain08
|
3 |
+
Author URI: http://www.arjunjain.info
|
4 |
Plugin URI: https://wordpress.org/plugins/wp-social-sharing/
|
5 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=SQC4WR7X5JGDY&lc=IN&item_name=WP%20Social%20Sharing&item_number=7&button_subtype=services¤cy_code=USD&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHosted
|
6 |
+
Tags: responsive social buttons, responsive social sharing buttons, responsive button, social buttons, social sharing, sharing buttons, twitter share, xing share, googleplus share, facebook share, linkedin share, pinterest share, reddit share, share button for custom post type
|
7 |
Requires at least: 3.5
|
8 |
+
Tested up to: 4.8.3
|
9 |
+
Stable tag: 2.0
|
10 |
License: GPLv3
|
11 |
|
12 |
+
Adds very attractive responsive social sharing buttons of Facebook, Twitter, Linkedin, Reddit, Pinterest, Xing and Google+ to wordpress posts, pages or media.
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
+
WP Social sharing adds very attractive responsive social share buttons of Facebook, Twitter, Linkedin, Xing, Reddit, Google+ and Pinterest to wordpress posts, page, media or any custom post type. This is very lightweight and simple social sharing plugin. This plugin provide option whether you want to include plugin CSS/JS or not.
|
17 |
Most of the social sharing plugins uses images/api to display social share buttons, but this plugin created large social sharing buttons using CSS3. Also these social sharing buttons are responsive. For device width <strong>less than 480px</strong> these buttons converted into their respective icons.
|
18 |
|
19 |
**Plugin Features**
|
20 |
|
21 |
+
- Social sharing support for Facebook, Google+, Linkedin, Reddit, Twitter, Xing and Pinterest.
|
22 |
- Auto display to Post, Page, Media and Custom Post type.
|
23 |
- Custom Social Button text.
|
24 |
- 100% responsive.
|
25 |
- Reorder Social icon order easily.
|
26 |
- No Image, button created using CSS3. For device width less than 480px, this plugin used one single image to display social icons.
|
27 |
- Provide Shortcode, can integrated with any theme easily.
|
28 |
+
- Social icon can be add before and after content
|
29 |
- Add text before share buttons
|
30 |
|
31 |
**Plugin Shortcode**
|
32 |
You can also use following shortcode
|
33 |
|
34 |
`
|
35 |
+
[wp_social_sharing social_options='facebook,twitter,googleplus,linkedin,pinterest,xing,reddit' twitter_username='arjun077' facebook_text='Share on Facebook' twitter_text='Share on Twitter' googleplus_text='Share on Google+' linkedin_text='Share on Linkedin' pinterest_text="Share on Pinterest" xing_text="Share on Xing" reddit_text="Share on Reddit" icon_order='f,t,g,l,p,x,r' show_icons='0' before_button_text='' text_position='' social_image='']
|
36 |
`
|
37 |
[Demo](http://www.arjunjain.info/wp-social-sharing/)
|
38 |
|
39 |
== Support ==
|
40 |
|
41 |
+
* Fill up this [form](http://www.arjunjain.info/contact) to leave comments,ask question,suggest new feature or directly mail at hello@arjunjain.info
|
42 |
|
43 |
== Screenshots ==
|
44 |
|
54 |
2. Alternatively, download the plugin and upload the contents of `wp-social-sharing.zip` to your plugins directory, which usually is `/wp-content/plugins/`. Activate the plugin.
|
55 |
|
56 |
== Changelog ==
|
57 |
+
= 2.0 - November 11, 2017 =
|
58 |
+
- Add Reddit Social Network Sharing
|
59 |
+
- New Google Plus Icon
|
60 |
|
61 |
= 1.9 - September 26, 2015 =
|
62 |
- Add Xing Social Network Sharing
|
static/admin-styles.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
.ss-container{ max-width:1200px; }
|
2 |
-
.ss-primary{ width:
|
3 |
.ss-column{ float:left; }
|
4 |
-
.ss-secondary { width:
|
5 |
.ss-error{ color:red; }
|
6 |
.ss-box{ margin:0 0 25px; clear:both; }
|
7 |
.ss-info {padding:5px 15px;color: #3a87ad;background-color: #d9edf7;border-color: #bce8f1;}
|
@@ -15,6 +15,7 @@
|
|
15 |
.dndicon .linkedin-icon{background-position: -135px -45px;}
|
16 |
.dndicon .pinterest-icon{background-position: -180px -45px;}
|
17 |
.dndicon .xing-icon{background-position: -225px -45px;}
|
|
|
18 |
@media(max-width: 919px) {
|
19 |
.ss-column{float: none;width: 100%;}
|
20 |
.ss-secondary{ padding:0; margin:25px 0; border-left:0;}
|
1 |
.ss-container{ max-width:1200px; }
|
2 |
+
.ss-primary{ width:70%; }
|
3 |
.ss-column{ float:left; }
|
4 |
+
.ss-secondary { width:25%;margin-left: 2%; padding-left:2%; border-left: 1px solid #ddd;}
|
5 |
.ss-error{ color:red; }
|
6 |
.ss-box{ margin:0 0 25px; clear:both; }
|
7 |
.ss-info {padding:5px 15px;color: #3a87ad;background-color: #d9edf7;border-color: #bce8f1;}
|
15 |
.dndicon .linkedin-icon{background-position: -135px -45px;}
|
16 |
.dndicon .pinterest-icon{background-position: -180px -45px;}
|
17 |
.dndicon .xing-icon{background-position: -225px -45px;}
|
18 |
+
.dndicon .reddit-icon {background-position:-270px -45px;}
|
19 |
@media(max-width: 919px) {
|
20 |
.ss-column{float: none;width: 100%;}
|
21 |
.ss-secondary{ padding:0; margin:25px 0; border-left:0;}
|
static/socialshare.css
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
.social-sharing{width: 100%; clear: both;}
|
3 |
.social-sharing span{display: inline-block;font-size: 110%;}
|
4 |
.social-sharing span.top, .social-sharing span.bottom {width:100%;} .social-sharing span.right {display: inline;}
|
5 |
-
a.button-facebook,a.button-googleplus,a.button-twitter,a.button-linkedin,a.button-pinterest,a.button-xing{color: #fff;text-decoration:none;font-size: 16px;font-weight:normal; margin:1% 1% 1% 0;padding:5px 1%;padding:.5rem 1%;text-align:center;display: inline-block;text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);border:0px;}
|
6 |
a.button-facebook {background-color: #2b4170;background: -moz-linear-gradient(top, #3b5998, #2b4170);background: -ms-linear-gradient(top, #3b5998, #2b4170);background: -webkit-linear-gradient(top, #3b5998, #2b4170);text-shadow: 0 -1px -1px #1f2f52;}
|
7 |
a.button-facebook:hover {background-color: #3b5998;background: -moz-linear-gradient(top, #2b4170, #3b5998);background: -ms-linear-gradient(top, #2b4170, #3b5998);background: -webkit-linear-gradient(top, #2b4170, #3b5998);color:#fff;}
|
8 |
a.button-googleplus { background-color: #c33219;background: -moz-linear-gradient(top, #e64522, #c33219);background: -ms-linear-gradient(top, #e64522, #c33219);background: -webkit-linear-gradient(top, #e64522, #c33219);text-shadow: 0 -1px -1px #972412;}
|
@@ -15,14 +15,18 @@ a.button-pinterest {background-color: #a0171c;background: -moz-linear-gradient(t
|
|
15 |
a.button-pinterest:hover{background-color: #cb2027; background: -moz-linear-gradient(top, #a0171c, #cb2027);background: -ms-linear-gradient(top, #a0171c, #cb2027);background: -webkit-linear-gradient(top, #a0171c, #cb2027);color:#fff;}
|
16 |
a.button-xing{background-color: #135353; background: -moz-linear-gradient(top, #006464, #135353);background: -ms-linear-gradient(top, #006464, #135353);background: -webkit-linear-gradient(top, #006464, #135353);text-shadow: 0 -1px -1px #1e7677;}
|
17 |
a.button-xing:hover {background-color: #006464;background: -moz-linear-gradient(top, #135353, #006464);background: -ms-linear-gradient(top, #135353, #006464);background: -webkit-linear-gradient(top, #135353, #006464);color:#fff;}
|
|
|
|
|
|
|
18 |
.ss-social-sharing a{text-indent: -99999px;}
|
19 |
-
a.ss-button-facebook, a.ss-button-googleplus, a.ss-button-twitter, a.ss-button-linkedin,a.ss-button-pinterest,a.ss-button-xing{background-image: url(socialshare.png);width: 45px;height: 45px;background-repeat: no-repeat;padding: 0px;border: 0px;margin:1% 1% 1% 0;display: inline-block;}
|
20 |
a.ss-button-twitter{background-position:0px -45px;}a.ss-button-twitter:hover{background-position:0px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
21 |
a.ss-button-googleplus{background-position: -45px -45px;}a.ss-button-googleplus:hover{background-position: -45px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
22 |
a.ss-button-facebook{background-position: -90px -45px;}a.ss-button-facebook:hover{background-position: -90px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
23 |
a.ss-button-linkedin{background-position: -135px -45px;}a.ss-button-linkedin:hover{background-position: -135px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
24 |
a.ss-button-pinterest{background-position: -180px -45px;}a.ss-button-pinterest:hover{background-position: -180px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
25 |
a.ss-button-xing{background-position: -225px -45px;}a.ss-button-xing:hover{background-position: -225px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
|
|
26 |
|
27 |
/* Smartphones (portrait and landscape) */
|
28 |
@media (max-width : 480px){
|
@@ -34,4 +38,5 @@ a.button-facebook{background-position: -90px -45px;}a.button-facebook:hover{back
|
|
34 |
a.button-linkedin{background-position: -135px -45px;}a.button-linkedin:hover{background-position: -135px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
35 |
a.button-pinterest{background-position: -180px -45px;}a.button-pinterest:hover{background-position: -180px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
36 |
a.button-xing{background-position: -225px -45px;}a.button-xing:hover{background-position: -225px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
|
|
37 |
}
|
2 |
.social-sharing{width: 100%; clear: both;}
|
3 |
.social-sharing span{display: inline-block;font-size: 110%;}
|
4 |
.social-sharing span.top, .social-sharing span.bottom {width:100%;} .social-sharing span.right {display: inline;}
|
5 |
+
a.button-facebook,a.button-googleplus,a.button-twitter,a.button-linkedin,a.button-pinterest,a.button-xing,a.button-reddit{color: #fff;text-decoration:none;font-size: 16px;font-weight:normal; margin:1% 1% 1% 0;padding:5px 1%;padding:.5rem 1%;text-align:center;display: inline-block;text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);border:0px;}
|
6 |
a.button-facebook {background-color: #2b4170;background: -moz-linear-gradient(top, #3b5998, #2b4170);background: -ms-linear-gradient(top, #3b5998, #2b4170);background: -webkit-linear-gradient(top, #3b5998, #2b4170);text-shadow: 0 -1px -1px #1f2f52;}
|
7 |
a.button-facebook:hover {background-color: #3b5998;background: -moz-linear-gradient(top, #2b4170, #3b5998);background: -ms-linear-gradient(top, #2b4170, #3b5998);background: -webkit-linear-gradient(top, #2b4170, #3b5998);color:#fff;}
|
8 |
a.button-googleplus { background-color: #c33219;background: -moz-linear-gradient(top, #e64522, #c33219);background: -ms-linear-gradient(top, #e64522, #c33219);background: -webkit-linear-gradient(top, #e64522, #c33219);text-shadow: 0 -1px -1px #972412;}
|
15 |
a.button-pinterest:hover{background-color: #cb2027; background: -moz-linear-gradient(top, #a0171c, #cb2027);background: -ms-linear-gradient(top, #a0171c, #cb2027);background: -webkit-linear-gradient(top, #a0171c, #cb2027);color:#fff;}
|
16 |
a.button-xing{background-color: #135353; background: -moz-linear-gradient(top, #006464, #135353);background: -ms-linear-gradient(top, #006464, #135353);background: -webkit-linear-gradient(top, #006464, #135353);text-shadow: 0 -1px -1px #1e7677;}
|
17 |
a.button-xing:hover {background-color: #006464;background: -moz-linear-gradient(top, #135353, #006464);background: -ms-linear-gradient(top, #135353, #006464);background: -webkit-linear-gradient(top, #135353, #006464);color:#fff;}
|
18 |
+
a.button-reddit { background-color: #c33219;background: -moz-linear-gradient(top, #f04b23, #c33219);background: -ms-linear-gradient(top,#f04b23, #c33219);background: -webkit-linear-gradient(top,#f04b23, #c33219);text-shadow: 0 -1px -1px #972412;}
|
19 |
+
a.button-reddit:hover {background-color: #f04b23;background: -moz-linear-gradient(top, #c33219, #f04b23);background: -ms-linear-gradient(top, #c33219,#f04b23);background: -webkit-linear-gradient(top, #c33219, #f04b23); color:#fff;}
|
20 |
+
|
21 |
.ss-social-sharing a{text-indent: -99999px;}
|
22 |
+
a.ss-button-facebook, a.ss-button-googleplus, a.ss-button-twitter, a.ss-button-linkedin,a.ss-button-pinterest,a.ss-button-xing, a.ss-button-reddit{background-image: url(socialshare.png);width: 45px;height: 45px;background-repeat: no-repeat;padding: 0px;border: 0px;margin:1% 1% 1% 0;display: inline-block;}
|
23 |
a.ss-button-twitter{background-position:0px -45px;}a.ss-button-twitter:hover{background-position:0px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
24 |
a.ss-button-googleplus{background-position: -45px -45px;}a.ss-button-googleplus:hover{background-position: -45px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
25 |
a.ss-button-facebook{background-position: -90px -45px;}a.ss-button-facebook:hover{background-position: -90px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
26 |
a.ss-button-linkedin{background-position: -135px -45px;}a.ss-button-linkedin:hover{background-position: -135px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
27 |
a.ss-button-pinterest{background-position: -180px -45px;}a.ss-button-pinterest:hover{background-position: -180px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
28 |
a.ss-button-xing{background-position: -225px -45px;}a.ss-button-xing:hover{background-position: -225px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
29 |
+
a.ss-button-reddit{background-position: -270px -45px;}a.ss-button-reddit:hover{background-position: -270px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
30 |
|
31 |
/* Smartphones (portrait and landscape) */
|
32 |
@media (max-width : 480px){
|
38 |
a.button-linkedin{background-position: -135px -45px;}a.button-linkedin:hover{background-position: -135px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
39 |
a.button-pinterest{background-position: -180px -45px;}a.button-pinterest:hover{background-position: -180px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
40 |
a.button-xing{background-position: -225px -45px;}a.button-xing:hover{background-position: -225px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
41 |
+
a.button-reddit{background-position: -270px -45px;}a.button-xing:hover{background-position: -270px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
42 |
}
|
static/socialshare.png
CHANGED
Binary file
|