Version Description
- Februry 20, 2019
Download this release
Release Info
Developer | arjunjain08 |
Plugin | WP Social Sharing |
Version | 2.2 |
Comparing to | |
See all releases |
Code changes from version 2.1 to 2.2
- includes/class-admin.php +2 -4
- includes/class-public.php +2 -10
- includes/index.php +0 -0
- includes/plugin.php +2 -2
- includes/settings-page.php +10 -17
- index.php +3 -3
- license.txt +0 -0
- readme.txt +11 -7
- static/admin-styles.css +3 -4
- static/blank.jpg +0 -0
- static/index.php +0 -0
- static/socialshare.css +10 -14
- static/socialshare.js +0 -0
- static/socialshare.png +0 -0
- static/socialshareadmin.js +0 -0
includes/class-admin.php
CHANGED
@@ -25,12 +25,11 @@ class SS_Admin {
|
|
25 |
$defaults = array(
|
26 |
'twitter_username' => "",
|
27 |
'auto_add_post_types' => array( 'post' ),
|
28 |
-
'social_options'=>array('facebook','twitter','
|
29 |
'social_icon_position'=>'after',
|
30 |
'load_static'=>array('load_css','load_js'),
|
31 |
'facebook_text'=>"Share on Facebook",
|
32 |
'twitter_text'=>"Share on Twitter",
|
33 |
-
'googleplus_text'=>"Share on Google+",
|
34 |
'linkedin_text'=>"Share on Linkedin",
|
35 |
'pinterest_text'=>"Share on Pinterest",
|
36 |
'pinterest_image'=>"",
|
@@ -41,7 +40,7 @@ class SS_Admin {
|
|
41 |
'text_position'=>'left'
|
42 |
);
|
43 |
update_option( 'wp_social_sharing', $defaults );
|
44 |
-
update_option( 'wss_wp_social_sharing','f,t,
|
45 |
update_option( 'wss_pluign_version ',SS_VERSION);
|
46 |
}
|
47 |
|
@@ -60,7 +59,6 @@ class SS_Admin {
|
|
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'] ) );
|
25 |
$defaults = array(
|
26 |
'twitter_username' => "",
|
27 |
'auto_add_post_types' => array( 'post' ),
|
28 |
+
'social_options'=>array('facebook','twitter','linkedin'),
|
29 |
'social_icon_position'=>'after',
|
30 |
'load_static'=>array('load_css','load_js'),
|
31 |
'facebook_text'=>"Share on Facebook",
|
32 |
'twitter_text'=>"Share on Twitter",
|
|
|
33 |
'linkedin_text'=>"Share on Linkedin",
|
34 |
'pinterest_text'=>"Share on Pinterest",
|
35 |
'pinterest_image'=>"",
|
40 |
'text_position'=>'left'
|
41 |
);
|
42 |
update_option( 'wp_social_sharing', $defaults );
|
43 |
+
update_option( 'wss_wp_social_sharing','f,t,l,p,x,r');
|
44 |
update_option( 'wss_pluign_version ',SS_VERSION);
|
45 |
}
|
46 |
|
59 |
$settings['twitter_username'] = trim( strip_tags( $settings['twitter_username'] ) );
|
60 |
$settings['facebook_text'] = trim( strip_tags( $settings['facebook_text'] ) );
|
61 |
$settings['twitter_text'] = trim( strip_tags( $settings['twitter_text'] ) );
|
|
|
62 |
$settings['linkedin_text'] = trim( strip_tags( $settings['linkedin_text'] ) );
|
63 |
$settings['pinterest_text'] = trim( strip_tags( $settings['pinterest_text'] ) );
|
64 |
$settings['pinterest_image'] = trim( strip_tags( $settings['pinterest_image'] ) );
|
includes/class-public.php
CHANGED
@@ -50,16 +50,15 @@ class SS_Public {
|
|
50 |
|
51 |
public function social_sharing( $atts=array() ) {
|
52 |
extract(shortcode_atts(array(
|
53 |
-
'social_options' => 'twitter, facebook,
|
54 |
'twitter_username' => '',
|
55 |
'twitter_text' => __( 'Share on Twitter ', 'social-sharing' ),
|
56 |
'facebook_text' => __( 'Share on Facebook', 'social-sharing' ),
|
57 |
-
'googleplus_text' => __( 'Share on Google+', 'social-sharing' ),
|
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,
|
63 |
'social_image'=> '',
|
64 |
'show_icons'=>'0',
|
65 |
'before_button_text'=>'',
|
@@ -102,7 +101,6 @@ class SS_Public {
|
|
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';
|
@@ -112,7 +110,6 @@ class SS_Public {
|
|
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';
|
@@ -137,11 +134,6 @@ class SS_Public {
|
|
137 |
if(in_array('twitter', $social_options)){
|
138 |
?><a <?php echo $loadjs;?> rel="external nofollow" class="<?php echo $ssbutton_twitter;?>" href="http://twitter.com/intent/tweet/?text=<?php echo $title; ?>&url=<?php echo $url; ?><?php if(!empty($twitter_username)) { echo '&via=' . $twitter_username; } ?>" target="_blank"><?php echo $twitter_text; ?></a><?php
|
139 |
}
|
140 |
-
break;
|
141 |
-
case 'g':
|
142 |
-
if(in_array('googleplus', $social_options)){
|
143 |
-
?><a <?php echo $loadjs;?> rel="external nofollow" class="<?php echo $ssbutton_googleplus;?>" href="https://plus.google.com/share?url=<?php echo $url; ?>" target="_blank" ><?php echo $googleplus_text; ?></a><?php
|
144 |
-
}
|
145 |
break;
|
146 |
case 'l':
|
147 |
if(in_array('linkedin', $social_options)){
|
50 |
|
51 |
public function social_sharing( $atts=array() ) {
|
52 |
extract(shortcode_atts(array(
|
53 |
+
'social_options' => 'twitter, facebook, linkedin',
|
54 |
'twitter_username' => '',
|
55 |
'twitter_text' => __( 'Share on Twitter ', 'social-sharing' ),
|
56 |
'facebook_text' => __( 'Share on Facebook', 'social-sharing' ),
|
|
|
57 |
'linkedin_text' => __('Share on Linkedin', 'social-sharing' ),
|
58 |
'pinterest_text'=>__('Share on Pinterest','social-sharing'),
|
59 |
'xing_text'=>__('Share on Xing','social-sharing'),
|
60 |
'reddit_text' => __('Share on Reddit','social-sharing'),
|
61 |
+
'icon_order'=>'f,t,l,p,x,r',
|
62 |
'social_image'=> '',
|
63 |
'show_icons'=>'0',
|
64 |
'before_button_text'=>'',
|
101 |
|
102 |
$ssbutton_facebook = 'button-facebook';
|
103 |
$ssbutton_twitter = 'button-twitter';
|
|
|
104 |
$ssbutton_linkedin = 'button-linkedin';
|
105 |
$ssbutton_pinterest = 'button-pinterest';
|
106 |
$ssbutton_xing = 'button-xing';
|
110 |
$sssocial_sharing = 'ss-social-sharing';
|
111 |
$ssbutton_facebook = 'ss-button-facebook';
|
112 |
$ssbutton_twitter = 'ss-button-twitter';
|
|
|
113 |
$ssbutton_linkedin = 'ss-button-linkedin';
|
114 |
$ssbutton_pinterest = 'ss-button-pinterest';
|
115 |
$ssbutton_xing = 'ss-button-xing';
|
134 |
if(in_array('twitter', $social_options)){
|
135 |
?><a <?php echo $loadjs;?> rel="external nofollow" class="<?php echo $ssbutton_twitter;?>" href="http://twitter.com/intent/tweet/?text=<?php echo $title; ?>&url=<?php echo $url; ?><?php if(!empty($twitter_username)) { echo '&via=' . $twitter_username; } ?>" target="_blank"><?php echo $twitter_text; ?></a><?php
|
136 |
}
|
|
|
|
|
|
|
|
|
|
|
137 |
break;
|
138 |
case 'l':
|
139 |
if(in_array('linkedin', $social_options)){
|
includes/index.php
CHANGED
File without changes
|
includes/plugin.php
CHANGED
@@ -12,15 +12,15 @@ function ss_get_options(){
|
|
12 |
$defaults = array(
|
13 |
'twitter_username' => "",
|
14 |
'auto_add_post_types' => array( 'post' ),
|
15 |
-
'social_options'=>array('facebook','twitter','
|
16 |
'load_static'=>array('load_css','load_js'),
|
17 |
'facebook_text'=>"Share on Facebook",
|
18 |
'twitter_text'=>"Share on Twitter",
|
19 |
-
'googleplus_text'=>"Share on Google+",
|
20 |
'linkedin_text'=>"Share on Linkedin",
|
21 |
'pinterest_text'=>"Share on Pinterest",
|
22 |
'pinterest_image'=>"",
|
23 |
'xing_text'=>"Share on Xing",
|
|
|
24 |
'before_button_text'=>'',
|
25 |
'text_position' => 'left',
|
26 |
'show_icons' => '0'
|
12 |
$defaults = array(
|
13 |
'twitter_username' => "",
|
14 |
'auto_add_post_types' => array( 'post' ),
|
15 |
+
'social_options'=>array('facebook','twitter','linkedin','pinterest','xing','reddit'),
|
16 |
'load_static'=>array('load_css','load_js'),
|
17 |
'facebook_text'=>"Share on Facebook",
|
18 |
'twitter_text'=>"Share on Twitter",
|
|
|
19 |
'linkedin_text'=>"Share on Linkedin",
|
20 |
'pinterest_text'=>"Share on Pinterest",
|
21 |
'pinterest_image'=>"",
|
22 |
'xing_text'=>"Share on Xing",
|
23 |
+
'reddit_text'=>"Share on Reddit",
|
24 |
'before_button_text'=>'',
|
25 |
'text_position' => 'left',
|
26 |
'show_icons' => '0'
|
includes/settings-page.php
CHANGED
@@ -18,12 +18,11 @@ if( ! defined("SS_VERSION") ) {
|
|
18 |
</th>
|
19 |
<td>
|
20 |
<input type="checkbox" id="facebook_share" name="wp_social_sharing[social_options][]" value="facebook" <?php checked( in_array( 'facebook', $opts['social_options'] ), true ); ?> /><label for="facebook_share"><?php echo _e('Facebook','wp-social-sharing')?></label>
|
21 |
-
|
22 |
-
|
23 |
-
<br /><input type="checkbox" id="
|
24 |
-
|
25 |
-
|
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,16 +30,13 @@ 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,
|
35 |
$io=explode(',',rtrim($s_order,','));
|
36 |
foreach ($io as $i){
|
37 |
switch($i){
|
38 |
case 'f':
|
39 |
echo '<div class="s-icon facebook-icon" id="f"></div>';
|
40 |
break;
|
41 |
-
case 'g':
|
42 |
-
echo '<div class="s-icon googleplus-icon" id="g"></div>';
|
43 |
-
break;
|
44 |
case 't':
|
45 |
echo '<div class="s-icon twitter-icon" id="t"></div>';
|
46 |
break;
|
@@ -106,12 +102,6 @@ if( ! defined("SS_VERSION") ) {
|
|
106 |
<input type="text" class="widefat" name="wp_social_sharing[twitter_text]" id="twitter_text" value="<?php echo esc_attr($opts['twitter_text']); ?>" />
|
107 |
</td>
|
108 |
</tr>
|
109 |
-
<tr valign="top">
|
110 |
-
<th><label for="googleplus_text"><?php _e('Google plus share button text','wp-social-sharing');?></label></th>
|
111 |
-
<td>
|
112 |
-
<input type="text" name="wp_social_sharing[googleplus_text]" id="googleplus_text" class="widefat" value="<?php echo esc_attr($opts['googleplus_text']); ?>" />
|
113 |
-
</td>
|
114 |
-
</tr>
|
115 |
<tr valign="top">
|
116 |
<th><label for="linkedin_text"><?php _e('Linkedin share button text','wp-social-sharing');?></label></th>
|
117 |
<td>
|
@@ -203,13 +193,16 @@ if( ! defined("SS_VERSION") ) {
|
|
203 |
<li><a href="http://wordpress.org/support/view/plugin-reviews/wp-social-sharing?rate=5#postform" target="_blank"><?php printf( __( 'Leave a %s review on WordPress.org', 'wp-social-sharing' ), '★★★★★' ); ?></a></li>
|
204 |
<li><a href="http://twitter.com/intent/tweet/?text=<?php echo urlencode('I am using Wordpress "WP Social Sharing" plugin to show social sharing buttons on my WordPress site.'); ?>&via=arjun077&url=<?php echo urlencode('http://wordpress.org/plugins/wp-social-sharing/'); ?>" target="_blank"><?php _e('Tweet about this plugin','wp-social-sharing');?></a></li>
|
205 |
<li><a href="http://wordpress.org/plugins/wp-social-sharing/#compatibility" target="_blank"><?php _e( 'Vote "works" on the WordPress.org plugin page', 'wp-social-sharing' ); ?></a></li>
|
|
|
206 |
</ul>
|
207 |
</div>
|
208 |
<div class="ss-box">
|
209 |
<h3 class="ss-title"><?php _e( 'Looking for support?', 'wp-social-sharing' ); ?></h3>
|
210 |
-
<p><?php printf( __( 'Please use the %splugin support forums%s on WordPress.org.', 'wp-social-sharing' ), '<a href="
|
211 |
</div>
|
212 |
<br style="clear:both; " />
|
|
|
|
|
213 |
</div>
|
214 |
</div>
|
215 |
</div>
|
18 |
</th>
|
19 |
<td>
|
20 |
<input type="checkbox" id="facebook_share" name="wp_social_sharing[social_options][]" value="facebook" <?php checked( in_array( 'facebook', $opts['social_options'] ), true ); ?> /><label for="facebook_share"><?php echo _e('Facebook','wp-social-sharing')?></label>
|
21 |
+
<input type="checkbox" id="twitter_share" name="wp_social_sharing[social_options][]" value="twitter" <?php checked( in_array( 'twitter', $opts['social_options'] ), true ); ?> /><label for="twitter_share"><?php echo _e('Twitter','wp-social-sharing')?></label>
|
22 |
+
<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>
|
23 |
+
<br /><br /><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>
|
24 |
+
<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>
|
25 |
+
<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>
|
|
|
26 |
</td>
|
27 |
</tr>
|
28 |
<tr valign="top">
|
30 |
<td>
|
31 |
<div class="dndicon">
|
32 |
<?php $s_order=get_option('wss_wp_social_sharing');
|
33 |
+
if(empty($s_order)) $s_order='f,t,l,p,x,r';
|
34 |
$io=explode(',',rtrim($s_order,','));
|
35 |
foreach ($io as $i){
|
36 |
switch($i){
|
37 |
case 'f':
|
38 |
echo '<div class="s-icon facebook-icon" id="f"></div>';
|
39 |
break;
|
|
|
|
|
|
|
40 |
case 't':
|
41 |
echo '<div class="s-icon twitter-icon" id="t"></div>';
|
42 |
break;
|
102 |
<input type="text" class="widefat" name="wp_social_sharing[twitter_text]" id="twitter_text" value="<?php echo esc_attr($opts['twitter_text']); ?>" />
|
103 |
</td>
|
104 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
<tr valign="top">
|
106 |
<th><label for="linkedin_text"><?php _e('Linkedin share button text','wp-social-sharing');?></label></th>
|
107 |
<td>
|
193 |
<li><a href="http://wordpress.org/support/view/plugin-reviews/wp-social-sharing?rate=5#postform" target="_blank"><?php printf( __( 'Leave a %s review on WordPress.org', 'wp-social-sharing' ), '★★★★★' ); ?></a></li>
|
194 |
<li><a href="http://twitter.com/intent/tweet/?text=<?php echo urlencode('I am using Wordpress "WP Social Sharing" plugin to show social sharing buttons on my WordPress site.'); ?>&via=arjun077&url=<?php echo urlencode('http://wordpress.org/plugins/wp-social-sharing/'); ?>" target="_blank"><?php _e('Tweet about this plugin','wp-social-sharing');?></a></li>
|
195 |
<li><a href="http://wordpress.org/plugins/wp-social-sharing/#compatibility" target="_blank"><?php _e( 'Vote "works" on the WordPress.org plugin page', 'wp-social-sharing' ); ?></a></li>
|
196 |
+
<li><a href="http://www.arjunjain.info">Hire Me</a>
|
197 |
</ul>
|
198 |
</div>
|
199 |
<div class="ss-box">
|
200 |
<h3 class="ss-title"><?php _e( 'Looking for support?', 'wp-social-sharing' ); ?></h3>
|
201 |
+
<p><?php printf( __( 'Please use the %splugin support forums%s on WordPress.org.', 'wp-social-sharing' ), '<a href="https://wordpress.org/support/plugin/wp-social-sharing/" target="blank">', '</a>' ); ?></p>
|
202 |
</div>
|
203 |
<br style="clear:both; " />
|
204 |
+
<a href="//inmotion-hosting.evyy.net/c/1193876/274454/4222"><img src="//a.impactradius-go.com/display-ad/4222-274454" border="0" alt="" width="200" height="200"/></a><img height="0" width="0" src="//inmotion-hosting.evyy.net/i/1193876/274454/4222" style="position:absolute;visibility:hidden;" border="0" />
|
205 |
+
|
206 |
</div>
|
207 |
</div>
|
208 |
</div>
|
index.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Social Sharing
|
4 |
-
Version: 2.
|
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
|
7 |
Author: Arjun Jain
|
8 |
Author URI: http://www.arjunjain.info/
|
9 |
Text Domain: wp-social-sharing
|
@@ -40,7 +40,7 @@ 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,
|
44 |
$default=get_option('wp_social_sharing');
|
45 |
$default['linkedin_text']='Share on Linkedin';
|
46 |
$default['pinterest_text']='Share on Pinterest';
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Social Sharing
|
4 |
+
Version: 2.2
|
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 and Xing to wordpress posts, pages or media.
|
7 |
Author: Arjun Jain
|
8 |
Author URI: http://www.arjunjain.info/
|
9 |
Text Domain: wp-social-sharing
|
40 |
$db_version='1.0';
|
41 |
|
42 |
if($db_version == '1.0' ){
|
43 |
+
update_option('wss_wp_social_sharing','f,t,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';
|
license.txt
CHANGED
File without changes
|
readme.txt
CHANGED
@@ -3,22 +3,22 @@ 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,
|
7 |
Requires at least: 3.5
|
8 |
-
Tested up to:
|
9 |
-
Stable tag: 2.
|
10 |
License: GPLv3
|
11 |
|
12 |
-
Adds very attractive responsive social sharing buttons of Facebook, Twitter, Linkedin, Reddit, Pinterest
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
-
WP Social sharing adds very attractive responsive social share buttons of Facebook, Twitter, Linkedin, Xing, Reddit
|
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,
|
22 |
- Auto display to Post, Page, Media and Custom Post type.
|
23 |
- Custom Social Button text.
|
24 |
- 100% responsive.
|
@@ -32,7 +32,7 @@ Most of the social sharing plugins uses images/api to display social share butto
|
|
32 |
You can also use following shortcode
|
33 |
|
34 |
`
|
35 |
-
[wp_social_sharing social_options='facebook,twitter,
|
36 |
`
|
37 |
[Demo](http://www.arjunjain.info/wp-social-sharing/)
|
38 |
|
@@ -54,6 +54,10 @@ You can also use following shortcode
|
|
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.1 - November 11, 2017 =
|
58 |
- Fix Mobile Button
|
59 |
|
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, facebook share, linkedin share, pinterest share, reddit share, share button for custom post type
|
7 |
Requires at least: 3.5
|
8 |
+
Tested up to: 5.1
|
9 |
+
Stable tag: 2.2
|
10 |
License: GPLv3
|
11 |
|
12 |
+
Adds very attractive responsive social sharing buttons of Facebook, Twitter, Linkedin, Reddit, Pinterest and Xing 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 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, 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.
|
32 |
You can also use following shortcode
|
33 |
|
34 |
`
|
35 |
+
[wp_social_sharing social_options='facebook,twitter,linkedin,pinterest,xing,reddit' twitter_username='arjun077' facebook_text='Share on Facebook' twitter_text='Share on Twitter' linkedin_text='Share on Linkedin' pinterest_text="Share on Pinterest" xing_text="Share on Xing" reddit_text="Share on Reddit" icon_order='f,t,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 |
|
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 |
+
|
58 |
+
= 2.2 - Februry 20, 2019 =
|
59 |
+
- Remove Google Plus
|
60 |
+
|
61 |
= 2.1 - November 11, 2017 =
|
62 |
- Fix Mobile Button
|
63 |
|
static/admin-styles.css
CHANGED
@@ -10,14 +10,13 @@
|
|
10 |
.dndicon {border:1px solid;display: inline-block;padding: 5px 0;}
|
11 |
.dndicon .s-icon{cursor:move; background-image:url('socialshare.png'); background-repeat: no-repeat;height: 45px; width: 45px; float: left;margin:0 10px}
|
12 |
.dndicon .twitter-icon{background-position: 0 -45px;}
|
13 |
-
.dndicon .googleplus-icon {background-position: -45px -45px;}
|
14 |
.dndicon .facebook-icon{background-position: -90px -45px;}
|
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;}
|
22 |
-
.ss-box{ border-top: 1px solid #efefef;padding-top:25px;}
|
23 |
}
|
10 |
.dndicon {border:1px solid;display: inline-block;padding: 5px 0;}
|
11 |
.dndicon .s-icon{cursor:move; background-image:url('socialshare.png'); background-repeat: no-repeat;height: 45px; width: 45px; float: left;margin:0 10px}
|
12 |
.dndicon .twitter-icon{background-position: 0 -45px;}
|
|
|
13 |
.dndicon .facebook-icon{background-position: -90px -45px;}
|
14 |
.dndicon .linkedin-icon{background-position: -135px -45px;}
|
15 |
.dndicon .pinterest-icon{background-position: -180px -45px;}
|
16 |
.dndicon .xing-icon{background-position: -225px -45px;}
|
17 |
.dndicon .reddit-icon {background-position:-270px -45px;}
|
18 |
@media(max-width: 919px) {
|
19 |
+
.ss-column{float: none;width: 100%;}
|
20 |
+
.ss-secondary{ padding:0; margin:25px 0; border-left:0;}
|
21 |
+
.ss-box{ border-top: 1px solid #efefef;padding-top:25px;}
|
22 |
}
|
static/blank.jpg
CHANGED
File without changes
|
static/index.php
CHANGED
File without changes
|
static/socialshare.css
CHANGED
@@ -2,11 +2,9 @@
|
|
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-
|
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;}
|
9 |
-
a.button-googleplus:hover {background-color: #e64522;background: -moz-linear-gradient(top, #c33219, #e64522);background: -ms-linear-gradient(top, #c33219, #e64522);background: -webkit-linear-gradient(top, #c33219, #e64522); color:#fff;}
|
10 |
a.button-twitter {background-color: #0081ce;background: -moz-linear-gradient(top, #00aced, #0081ce);background: -ms-linear-gradient(top, #00aced, #0081ce);background: -webkit-linear-gradient(top, #00aced, #0081ce);text-shadow: 0 -1px -1px #005ea3;}
|
11 |
a.button-twitter:hover {background-color: #00aced;background: -moz-linear-gradient(top, #0081ce, #00aced);background: -ms-linear-gradient(top, #0081ce, #00aced);background: -webkit-linear-gradient(top, #0081ce, #00aced);color:#fff;}
|
12 |
a.button-linkedin {background-color: #0073b2;background: -moz-linear-gradient(top, #009cda, #0073b2);background:-ms-linear-gradient(top, #009cda, #0073b2);background: -webkit-linear-gradient(top, #009cda, #0073b2);text-shadow: 0 -1px -1px #005486;}
|
@@ -19,9 +17,8 @@ a.button-reddit { background-color: #c33219;background: -moz-linear-gradient(top
|
|
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-
|
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;}
|
@@ -30,13 +27,12 @@ a.ss-button-reddit{background-position: -270px -45px;}a.ss-button-reddit:hover{b
|
|
30 |
|
31 |
/* Smartphones (portrait and landscape) */
|
32 |
@media (max-width : 480px){
|
33 |
-
.social-sharing a{text-indent: -99999px;}
|
34 |
-
a.button-facebook,
|
35 |
-
a.button-twitter{background-position:0px -45px; }a.button-twitter:hover{background-position:0px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
36 |
-
a.button-
|
37 |
-
a.button-
|
38 |
-
a.button-
|
39 |
-
a.button-
|
40 |
-
a.button-
|
41 |
-
a.button-reddit{background-position: -270px -45px;}a.button-reddit:hover{background-position: -270px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
42 |
}
|
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-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-twitter {background-color: #0081ce;background: -moz-linear-gradient(top, #00aced, #0081ce);background: -ms-linear-gradient(top, #00aced, #0081ce);background: -webkit-linear-gradient(top, #00aced, #0081ce);text-shadow: 0 -1px -1px #005ea3;}
|
9 |
a.button-twitter:hover {background-color: #00aced;background: -moz-linear-gradient(top, #0081ce, #00aced);background: -ms-linear-gradient(top, #0081ce, #00aced);background: -webkit-linear-gradient(top, #0081ce, #00aced);color:#fff;}
|
10 |
a.button-linkedin {background-color: #0073b2;background: -moz-linear-gradient(top, #009cda, #0073b2);background:-ms-linear-gradient(top, #009cda, #0073b2);background: -webkit-linear-gradient(top, #009cda, #0073b2);text-shadow: 0 -1px -1px #005486;}
|
17 |
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;}
|
18 |
|
19 |
.ss-social-sharing a{text-indent: -99999px;}
|
20 |
+
a.ss-button-facebook, 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;}
|
21 |
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;}
|
|
|
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;}
|
27 |
|
28 |
/* Smartphones (portrait and landscape) */
|
29 |
@media (max-width : 480px){
|
30 |
+
.social-sharing a{text-indent: -99999px;}
|
31 |
+
a.button-facebook,a.button-twitter,a.button-linkedin,a.button-pinterest,a.button-xing,a.button-reddit{background-image: url(socialshare.png) !important;width: 45px;height: 45px;background-repeat: no-repeat;padding: 0px;border: 0px;}
|
32 |
+
a.button-twitter{background-position:0px -45px; }a.button-twitter:hover{background-position:0px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
33 |
+
a.button-facebook{background-position: -90px -45px;}a.button-facebook:hover{background-position: -90px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
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 |
+
a.button-reddit{background-position: -270px -45px;}a.button-reddit:hover{background-position: -270px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
|
|
38 |
}
|
static/socialshare.js
CHANGED
File without changes
|
static/socialshare.png
CHANGED
File without changes
|
static/socialshareadmin.js
CHANGED
File without changes
|