Version Description
- August 8, 2014 =
- Fixed empty shortcode.
- Add option for always display social icons.
- Update plugin shortcode. Add show_icons field.
Download this release
Release Info
Developer | arjunjain08 |
Plugin | WP Social Sharing |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.2
- includes/class-admin.php +1 -0
- includes/class-public.php +35 -29
- includes/settings-page.php +6 -1
- index.php +1 -1
- readme.txt +13 -12
- static/admin-styles.css +1 -1
- static/socialshare.css +16 -9
includes/class-admin.php
CHANGED
@@ -29,6 +29,7 @@ class SS_Admin {
|
|
29 |
'facebook_text'=>"Share on Facebook",
|
30 |
'twitter_text'=>"Share on Twitter",
|
31 |
'googleplus_text'=>"Share on Google+",
|
|
|
32 |
);
|
33 |
update_option( 'wp_social_sharing', $defaults );
|
34 |
update_option( 'wss_wp_social_sharing','f,t,g');
|
29 |
'facebook_text'=>"Share on Facebook",
|
30 |
'twitter_text'=>"Share on Twitter",
|
31 |
'googleplus_text'=>"Share on Google+",
|
32 |
+
'show_icons'=>'0',
|
33 |
);
|
34 |
update_option( 'wp_social_sharing', $defaults );
|
35 |
update_option( 'wss_wp_social_sharing','f,t,g');
|
includes/class-public.php
CHANGED
@@ -8,20 +8,20 @@ if( ! defined( "SS_VERSION" ) ) {
|
|
8 |
class SS_Public {
|
9 |
|
10 |
public function __construct() {
|
11 |
-
add_filter( 'the_content', array( $this, '
|
12 |
add_action( 'wp_enqueue_scripts', array( $this, 'load_assets' ), 99 );
|
13 |
add_shortcode( 'wp_social_sharing',array($this,'social_sharing'));
|
14 |
}
|
15 |
|
16 |
-
public function
|
17 |
{
|
18 |
$opts = ss_get_options();
|
19 |
$show_buttons = false;
|
20 |
-
|
21 |
if( ! empty( $opts['auto_add_post_types'] ) && in_array( get_post_type(), $opts['auto_add_post_types'] ) && is_singular( $opts['auto_add_post_types'] ) ) {
|
22 |
$show_buttons = true;
|
23 |
}
|
24 |
-
|
25 |
$show_buttons = apply_filters( 'ss_display', $show_buttons );
|
26 |
|
27 |
if( ! $show_buttons ) {
|
@@ -44,56 +44,62 @@ class SS_Public {
|
|
44 |
}
|
45 |
}
|
46 |
|
47 |
-
function social_sharing( $
|
48 |
-
|
49 |
-
$opts = ss_get_options();
|
50 |
-
$defaults = array(
|
51 |
'social_options' => 'twitter, facebook, googleplus',
|
52 |
-
'twitter_username' =>
|
53 |
-
'twitter_text' => __( 'Twitter', 'social-sharing' ),
|
54 |
-
'facebook_text' => __( 'Facebook', 'social-sharing' ),
|
55 |
-
'googleplus_text' => __( 'Google+', 'social-sharing' ),
|
56 |
-
'icon_order'=>'f,t,g'
|
57 |
-
|
58 |
-
|
59 |
-
$opts['icon_order']=get_option('wss_wp_social_sharing');
|
60 |
|
61 |
-
if(!is_array($
|
62 |
-
$
|
63 |
-
|
64 |
-
|
65 |
$title = urlencode( get_the_title() );
|
66 |
$url = urlencode( get_permalink() );
|
67 |
|
68 |
$loadjs='';
|
|
|
|
|
69 |
foreach ($opts['load_static'] as $static){
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
}
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
}
|
77 |
$icon_order=explode(',',$icon_order);
|
78 |
ob_start();
|
79 |
?>
|
80 |
-
<div class="social-sharing">
|
81 |
<?php
|
82 |
foreach($icon_order as $o) {
|
83 |
switch($o) {
|
84 |
case 'f':
|
85 |
if(in_array('facebook', $social_options)){
|
86 |
-
?><a <?php echo $loadjs;?> rel="external nofollow" class="
|
87 |
}
|
88 |
break;
|
89 |
case 't':
|
90 |
if(in_array('twitter', $social_options)){
|
91 |
-
?><a <?php echo $loadjs;?> rel="external nofollow" class="
|
92 |
}
|
93 |
break;
|
94 |
case 'g':
|
95 |
if(in_array('googleplus', $social_options)){
|
96 |
-
?><a <?php echo $loadjs;?> rel="external nofollow" class="
|
97 |
}
|
98 |
break;
|
99 |
}
|
8 |
class SS_Public {
|
9 |
|
10 |
public function __construct() {
|
11 |
+
add_filter( 'the_content', array( $this, 'add_links_after_content' ) );
|
12 |
add_action( 'wp_enqueue_scripts', array( $this, 'load_assets' ), 99 );
|
13 |
add_shortcode( 'wp_social_sharing',array($this,'social_sharing'));
|
14 |
}
|
15 |
|
16 |
+
public function add_links_after_content( $content )
|
17 |
{
|
18 |
$opts = ss_get_options();
|
19 |
$show_buttons = false;
|
20 |
+
|
21 |
if( ! empty( $opts['auto_add_post_types'] ) && in_array( get_post_type(), $opts['auto_add_post_types'] ) && is_singular( $opts['auto_add_post_types'] ) ) {
|
22 |
$show_buttons = true;
|
23 |
}
|
24 |
+
|
25 |
$show_buttons = apply_filters( 'ss_display', $show_buttons );
|
26 |
|
27 |
if( ! $show_buttons ) {
|
44 |
}
|
45 |
}
|
46 |
|
47 |
+
public function social_sharing( $atts=array()) {
|
48 |
+
extract(shortcode_atts(array(
|
|
|
|
|
49 |
'social_options' => 'twitter, facebook, googleplus',
|
50 |
+
'twitter_username' => '',
|
51 |
+
'twitter_text' => __( 'Share on Twitter ', 'social-sharing' ),
|
52 |
+
'facebook_text' => __( 'Share on Facebook', 'social-sharing' ),
|
53 |
+
'googleplus_text' => __( 'Share on Google+', 'social-sharing' ),
|
54 |
+
'icon_order'=>'f,t,g',
|
55 |
+
'show_icons'=>'0'
|
56 |
+
),$atts));
|
|
|
57 |
|
58 |
+
if(!is_array($social_options))
|
59 |
+
$social_options = array_filter( array_map( 'trim', explode( ',',$social_options ) ) );
|
60 |
+
|
|
|
61 |
$title = urlencode( get_the_title() );
|
62 |
$url = urlencode( get_permalink() );
|
63 |
|
64 |
$loadjs='';
|
65 |
+
|
66 |
+
$opts=ss_get_options();
|
67 |
foreach ($opts['load_static'] as $static){
|
68 |
+
if($static == 'load_js'){
|
69 |
+
$loadjs='onclick="return ss_plugin_loadpopup_js(this);"';
|
70 |
+
}
|
71 |
}
|
72 |
+
|
73 |
+
$ssbutton_facebook='button-facebook';
|
74 |
+
$ssbutton_twitter='button-twitter';
|
75 |
+
$ssbutton_googleplus='button-googleplus';
|
76 |
+
$sssocial_sharing='';
|
77 |
+
if($show_icons){
|
78 |
+
$sssocial_sharing='ss-social-sharing';
|
79 |
+
$ssbutton_facebook='ss-button-facebook';
|
80 |
+
$ssbutton_twitter='ss-button-twitter';
|
81 |
+
$ssbutton_googleplus='ss-button-googleplus';
|
82 |
}
|
83 |
$icon_order=explode(',',$icon_order);
|
84 |
ob_start();
|
85 |
?>
|
86 |
+
<div class="social-sharing <?php echo $sssocial_sharing;?>">
|
87 |
<?php
|
88 |
foreach($icon_order as $o) {
|
89 |
switch($o) {
|
90 |
case 'f':
|
91 |
if(in_array('facebook', $social_options)){
|
92 |
+
?><a <?php echo $loadjs;?> rel="external nofollow" class="<?php echo $ssbutton_facebook;?>" href="http://www.facebook.com/sharer/sharer.php?u=<?php echo $url; ?>" target="_blank" ><?php echo $facebook_text; ?></a><?php
|
93 |
}
|
94 |
break;
|
95 |
case 't':
|
96 |
if(in_array('twitter', $social_options)){
|
97 |
+
?><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
|
98 |
}
|
99 |
break;
|
100 |
case 'g':
|
101 |
if(in_array('googleplus', $social_options)){
|
102 |
+
?><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
|
103 |
}
|
104 |
break;
|
105 |
}
|
includes/settings-page.php
CHANGED
@@ -26,7 +26,6 @@ if( ! defined("SS_VERSION") ) {
|
|
26 |
<th>Social Icon order</th>
|
27 |
<td>
|
28 |
<div class="dndicon">
|
29 |
-
|
30 |
<?php $s_order=get_option('wss_wp_social_sharing');
|
31 |
if(empty($s_order)) $s_order='f,t,g';
|
32 |
$io=explode(',',rtrim($s_order,','));
|
@@ -47,6 +46,12 @@ if( ! defined("SS_VERSION") ) {
|
|
47 |
<br /><small><?php _e('Drag the social icon to change the order. No need to save.', 'wp-social-sharing'); ?></small>
|
48 |
</td>
|
49 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
<tr valign="top">
|
51 |
<th><label for="facebook_text"><?php _e('Facebook Share button text','wp-social-sharing');?></label></th>
|
52 |
<td>
|
26 |
<th>Social Icon order</th>
|
27 |
<td>
|
28 |
<div class="dndicon">
|
|
|
29 |
<?php $s_order=get_option('wss_wp_social_sharing');
|
30 |
if(empty($s_order)) $s_order='f,t,g';
|
31 |
$io=explode(',',rtrim($s_order,','));
|
46 |
<br /><small><?php _e('Drag the social icon to change the order. No need to save.', 'wp-social-sharing'); ?></small>
|
47 |
</td>
|
48 |
</tr>
|
49 |
+
<tr valign="top">
|
50 |
+
<th><label for="alws_show_icons"><?php _e('Always show social icons','wp-social-sharing');?></label></th>
|
51 |
+
<td>
|
52 |
+
<input type="checkbox" id="alws_show_icons" name="wp_social_sharing[show_icons]" value="1" <?php checked( '1', $opts['show_icons'], true ); ?>>
|
53 |
+
</td>
|
54 |
+
</tr>
|
55 |
<tr valign="top">
|
56 |
<th><label for="facebook_text"><?php _e('Facebook Share button text','wp-social-sharing');?></label></th>
|
57 |
<td>
|
index.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Social Sharing
|
4 |
-
Version: 1.
|
5 |
Plugin URI: http://wordpress.org/plugins/wp-social-sharing/
|
6 |
Description: Adds very attractive responsive social sharing buttons of Facebook, Twitter and Google+ to wordpress posts, pages or media.
|
7 |
Author: Arjun Jain
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Social Sharing
|
4 |
+
Version: 1.2
|
5 |
Plugin URI: http://wordpress.org/plugins/wp-social-sharing/
|
6 |
Description: Adds very attractive responsive social sharing buttons of Facebook, Twitter and Google+ to wordpress posts, pages or media.
|
7 |
Author: Arjun Jain
|
readme.txt
CHANGED
@@ -5,16 +5,16 @@ Plugin URI: http://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, googleplus, facebook
|
7 |
Requires at least: 3.5
|
8 |
-
Tested up to:
|
9 |
-
Stable tag: 1.
|
10 |
License: GPLv3
|
11 |
|
12 |
Adds very attractive responsive social sharing buttons of Facebook, Twitter 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 and Google+ to wordpress posts, page or media. This
|
17 |
-
Most of the social sharing plugins uses images/api to display social share buttons, but this plugin created large buttons using CSS3. Also these social sharing buttons are responsive. For device width <strong>less than 480px</strong> these
|
18 |
|
19 |
**Plugin Features**
|
20 |
|
@@ -29,13 +29,8 @@ Most of the social sharing plugins uses images/api to display social share butto
|
|
29 |
**Plugin Shortcode**
|
30 |
You can also use following shortcode
|
31 |
|
32 |
-
`
|
33 |
-
[wp_social_sharing]
|
34 |
-
`
|
35 |
-
This shortcode will use default wp social sharing plugin settings.
|
36 |
-
|
37 |
`
|
38 |
-
[wp_social_sharing social_options='facebook,twitter,googleplus' twitter_username='arjun077' facebook_text='Share on Facebook' twitter_text='Share on Twitter' googleplus_text='Share on Google+' icon_order='f,t,g']
|
39 |
`
|
40 |
|
41 |
== Support ==
|
@@ -56,13 +51,19 @@ This shortcode will use default wp social sharing plugin settings.
|
|
56 |
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.
|
57 |
|
58 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
= 1.1 - July 14, 2014 =
|
60 |
|
61 |
-
-
|
62 |
- Add Icon order functionality. Now user can reorder the social icon.
|
63 |
- Add settings link on plugin page.
|
64 |
- Update plugin shortcode. Add *icon_order* field
|
65 |
|
66 |
= 1.0 - June 30, 2014 =
|
67 |
|
68 |
-
-
|
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, googleplus, facebook
|
7 |
Requires at least: 3.5
|
8 |
+
Tested up to: 4.0
|
9 |
+
Stable tag: 1.2
|
10 |
License: GPLv3
|
11 |
|
12 |
Adds very attractive responsive social sharing buttons of Facebook, Twitter 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 and Google+ to wordpress posts, page or media. 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 |
|
29 |
**Plugin Shortcode**
|
30 |
You can also use following shortcode
|
31 |
|
|
|
|
|
|
|
|
|
|
|
32 |
`
|
33 |
+
[wp_social_sharing social_options='facebook,twitter,googleplus' twitter_username='arjun077' facebook_text='Share on Facebook' twitter_text='Share on Twitter' googleplus_text='Share on Google+' icon_order='f,t,g' show_icons='0']
|
34 |
`
|
35 |
|
36 |
== Support ==
|
51 |
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.
|
52 |
|
53 |
== Changelog ==
|
54 |
+
|
55 |
+
= 1.2 - August 8, 2014 =
|
56 |
+
- Fixed empty shortcode.
|
57 |
+
- Add option for always display social icons.
|
58 |
+
- Update plugin shortcode. Add *show_icons* field.
|
59 |
+
|
60 |
= 1.1 - July 14, 2014 =
|
61 |
|
62 |
+
- Fixed facebook share for mobile devices
|
63 |
- Add Icon order functionality. Now user can reorder the social icon.
|
64 |
- Add settings link on plugin page.
|
65 |
- Update plugin shortcode. Add *icon_order* field
|
66 |
|
67 |
= 1.0 - June 30, 2014 =
|
68 |
|
69 |
+
- First release.
|
static/admin-styles.css
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
.ss-alert { padding:5px 15px;color: #c09853;background-color: #fcf8e3;border-color: #faebcc;}
|
9 |
.ss-title{ margin-top: 2em;}
|
10 |
.dndicon {border:1px solid;display: inline-block;padding: 5px 0;}
|
11 |
-
.dndicon .s-icon{cursor:
|
12 |
.dndicon .facebook-icon{background-position: 0 -45px;}
|
13 |
.dndicon .twitter-icon {background-position: -45px -45px;}
|
14 |
.dndicon .googleplus-icon{background-position: -90px -45px;}
|
8 |
.ss-alert { padding:5px 15px;color: #c09853;background-color: #fcf8e3;border-color: #faebcc;}
|
9 |
.ss-title{ margin-top: 2em;}
|
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 .facebook-icon{background-position: 0 -45px;}
|
13 |
.dndicon .twitter-icon {background-position: -45px -45px;}
|
14 |
.dndicon .googleplus-icon{background-position: -90px -45px;}
|
static/socialshare.css
CHANGED
@@ -1,17 +1,24 @@
|
|
1 |
@CHARSET "UTF-8";
|
2 |
.social-sharing{width: 100%; clear: both;}
|
3 |
-
a.button-facebook,a.button-googleplus,a.button-twitter {color: #fff
|
4 |
-
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);
|
5 |
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;}
|
6 |
-
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);
|
7 |
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;}
|
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);
|
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 |
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
/* Smartphones (portrait and landscape)
|
13 |
-
@media (max-width : 480px)
|
|
|
14 |
a.button-facebook, a.button-googleplus,a.button-twitter{background-image: url(socialshare.png) !important;width: 45px;height: 45px;background-repeat: no-repeat;padding: 0px;border: 0px;}
|
15 |
-
|
16 |
-
a.button-twitter{background-position: -45px -45px;}a.button-twitter:hover{background-position: -45px 0px;
|
17 |
-
}
|
|
1 |
@CHARSET "UTF-8";
|
2 |
.social-sharing{width: 100%; clear: both;}
|
3 |
+
a.button-facebook,a.button-googleplus,a.button-twitter {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;width:28%;display: inline-block;text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);}
|
4 |
+
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;}
|
5 |
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;}
|
6 |
+
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;}
|
7 |
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;}
|
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 |
|
11 |
+
.ss-social-sharing a{text-indent: -999px;}
|
12 |
+
a.ss-button-facebook, a.ss-button-googleplus, a.ss-button-twitter{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;}
|
13 |
+
a.ss-button-facebook{background-position:0px -45px;}a.ss-button-facebook:hover{background-position:0px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
14 |
+
a.ss-button-twitter{background-position: -45px -45px;}a.ss-button-twitter:hover{background-position: -45px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
15 |
+
a.ss-button-googleplus{background-position: -90px -45px;}a.ss-button-googleplus:hover{background-position: -90px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
16 |
|
17 |
+
/* Smartphones (portrait and landscape) */
|
18 |
+
@media (max-width : 480px){
|
19 |
+
.social-sharing a{text-indent: -999px;}
|
20 |
a.button-facebook, a.button-googleplus,a.button-twitter{background-image: url(socialshare.png) !important;width: 45px;height: 45px;background-repeat: no-repeat;padding: 0px;border: 0px;}
|
21 |
+
a.button-facebook{background-position:0px -45px; }a.button-facebook:hover{background-position:0px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
22 |
+
a.button-twitter{background-position: -45px -45px;}a.button-twitter:hover{background-position: -45px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
23 |
+
a.button-googleplus{background-position: -90px -45px;}a.button-googleplus:hover{background-position: -90px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
|
24 |
+
}
|