WP Social Sharing - Version 1.9

Version Description

  • September 26, 2015
Download this release

Release Info

Developer arjunjain08
Plugin Icon wp plugin WP Social Sharing
Version 1.9
Comparing to
See all releases

Code changes from version 1.8 to 1.9

includes/class-admin.php CHANGED
@@ -34,12 +34,13 @@ class SS_Admin {
34
  'linkedin_text'=>"Share on Linkedin",
35
  'pinterest_text'=>"Share on Pinterest",
36
  'pinterest_image'=>"",
 
37
  'show_icons'=>'0',
38
  'before_button_text'=>'',
39
  'text_position'=>'left'
40
  );
41
  update_option( 'wp_social_sharing', $defaults );
42
- update_option( 'wss_wp_social_sharing','f,t,g,l,p');
43
  update_option( 'wss_pluign_version ',SS_VERSION);
44
  }
45
 
@@ -62,6 +63,7 @@ class SS_Admin {
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'] ) );
 
65
  $settings['auto_add_post_types'] = ( isset( $settings['auto_add_post_types'] ) ) ? $settings['auto_add_post_types'] : array();
66
  $settings['show_sharebutton'] = ( isset( $settings['show_sharebutton'] ) ) ? $settings['show_sharebutton'] : array();
67
  return $settings;
@@ -82,4 +84,4 @@ class SS_Admin {
82
  $post_types = get_post_types( array( 'public' => true ), 'objects' );
83
  include SS_PLUGIN_DIR . 'includes/settings-page.php';
84
  }
85
- }
34
  'linkedin_text'=>"Share on Linkedin",
35
  'pinterest_text'=>"Share on Pinterest",
36
  'pinterest_image'=>"",
37
+ 'xing_text'=>"Share on Xing",
38
  'show_icons'=>'0',
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
 
63
  $settings['linkedin_text'] = trim( strip_tags( $settings['linkedin_text'] ) );
64
  $settings['pinterest_text'] = trim( strip_tags( $settings['pinterest_text'] ) );
65
  $settings['pinterest_image'] = trim( strip_tags( $settings['pinterest_image'] ) );
66
+ $settings['xing_text'] = trim( strip_tags( $settings['xing_text'] ) );
67
  $settings['auto_add_post_types'] = ( isset( $settings['auto_add_post_types'] ) ) ? $settings['auto_add_post_types'] : array();
68
  $settings['show_sharebutton'] = ( isset( $settings['show_sharebutton'] ) ) ? $settings['show_sharebutton'] : array();
69
  return $settings;
84
  $post_types = get_post_types( array( 'public' => true ), 'objects' );
85
  include SS_PLUGIN_DIR . 'includes/settings-page.php';
86
  }
87
+ }
includes/class-public.php CHANGED
@@ -13,8 +13,7 @@ class SS_Public {
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
 
@@ -23,7 +22,6 @@ class SS_Public {
23
  }
24
 
25
  $show_buttons = apply_filters( 'ss_display', $show_buttons );
26
-
27
  if( ! $show_buttons ) {
28
  return $content;
29
  }
@@ -35,7 +33,6 @@ class SS_Public {
35
  else{
36
  return $content . $this->social_sharing($opts);
37
  }
38
-
39
  }
40
 
41
  public function load_assets()
@@ -60,7 +57,8 @@ class SS_Public {
60
  'googleplus_text' => __( 'Share on Google+', 'social-sharing' ),
61
  'linkedin_text' => __('Share on Linkedin', 'social-sharing' ),
62
  'pinterest_text'=>__('Share on Pinterest','social-sharing'),
63
- 'icon_order'=>'f,t,g,l,p',
 
64
  'social_image'=> '',
65
  'show_icons'=>'0',
66
  'before_button_text'=>'',
@@ -71,6 +69,7 @@ class SS_Public {
71
  $social_options = array_filter( array_map( 'trim', explode( ',',$social_options ) ) );
72
 
73
  remove_filter('the_title','wptexturize');
 
74
  $title = urlencode(html_entity_decode(get_the_title()));
75
  add_filter('the_title','wptexturize');
76
 
@@ -81,7 +80,7 @@ class SS_Public {
81
  $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'medium' );
82
  $thumb_url = $thumb['0'];
83
  if($thumb_url == ''){
84
- if($atts['pinterest_image'] == ''){
85
  $thumb_url = SS_PLUGIN_URL.'static/blank.jpg';
86
  }
87
  else{
@@ -105,6 +104,7 @@ class SS_Public {
105
  $ssbutton_googleplus='button-googleplus';
106
  $ssbutton_linkedin='button-linkedin';
107
  $ssbutton_pinterest='button-pinterest';
 
108
  $sssocial_sharing='';
109
  if($show_icons){
110
  $sssocial_sharing='ss-social-sharing';
@@ -113,13 +113,14 @@ class SS_Public {
113
  $ssbutton_googleplus='ss-button-googleplus';
114
  $ssbutton_linkedin='ss-button-linkedin';
115
  $ssbutton_pinterest='ss-button-pinterest';
 
116
  }
117
  $icon_order=explode(',',$icon_order);
118
  ob_start();
119
  ?>
120
  <div class="social-sharing <?php echo $sssocial_sharing;?>">
121
  <?php if(!empty($before_button_text) && ($text_position == 'left' || $text_position == 'top')):?>
122
- <span class="<?php echo $text_position;?>"><?php echo $before_button_text; ?></span>
123
  <?php endif;?>
124
  <?php
125
  foreach($icon_order as $o) {
@@ -148,11 +149,16 @@ class SS_Public {
148
  if(in_array('pinterest', $social_options)){
149
  ?><a <?php echo $loadjs;?> rel="external nofollow" class="<?php echo $ssbutton_pinterest;?>" href="http://pinterest.com/pin/create/button/?url=<?php echo $url;?>&media=<?php echo $social_image;?>&description=<?php echo $title;?>" target="_blank" ><?php echo $pinterest_text; ?></a><?php
150
  }
 
 
 
 
 
151
  break;
152
  }
153
  } ?>
154
  <?php if(!empty($before_button_text) && ($text_position == 'bottom' || $text_position == 'right')):?>
155
- <span class="<?php echo $text_position;?>"><?php echo $before_button_text; ?></span>
156
  <?php endif;?>
157
  </div>
158
  <?php
13
  add_shortcode( 'wp_social_sharing',array($this,'social_sharing'));
14
  }
15
 
16
+ public function add_links_after_content( $content ){
 
17
  $opts = ss_get_options();
18
  $show_buttons = false;
19
 
22
  }
23
 
24
  $show_buttons = apply_filters( 'ss_display', $show_buttons );
 
25
  if( ! $show_buttons ) {
26
  return $content;
27
  }
33
  else{
34
  return $content . $this->social_sharing($opts);
35
  }
 
36
  }
37
 
38
  public function load_assets()
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
+ 'icon_order'=>'f,t,g,l,p,x',
62
  'social_image'=> '',
63
  'show_icons'=>'0',
64
  'before_button_text'=>'',
69
  $social_options = array_filter( array_map( 'trim', explode( ',',$social_options ) ) );
70
 
71
  remove_filter('the_title','wptexturize');
72
+
73
  $title = urlencode(html_entity_decode(get_the_title()));
74
  add_filter('the_title','wptexturize');
75
 
80
  $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'medium' );
81
  $thumb_url = $thumb['0'];
82
  if($thumb_url == ''){
83
+ if(isset($atts['pinterest_image']) && $atts['pinterest_image'] == ''){
84
  $thumb_url = SS_PLUGIN_URL.'static/blank.jpg';
85
  }
86
  else{
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';
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();
120
  ?>
121
  <div class="social-sharing <?php echo $sssocial_sharing;?>">
122
  <?php if(!empty($before_button_text) && ($text_position == 'left' || $text_position == 'top')):?>
123
+ <span class="<?php echo $text_position;?> before-sharebutton-text"><?php echo $before_button_text; ?></span>
124
  <?php endif;?>
125
  <?php
126
  foreach($icon_order as $o) {
149
  if(in_array('pinterest', $social_options)){
150
  ?><a <?php echo $loadjs;?> rel="external nofollow" class="<?php echo $ssbutton_pinterest;?>" href="http://pinterest.com/pin/create/button/?url=<?php echo $url;?>&media=<?php echo $social_image;?>&description=<?php echo $title;?>" target="_blank" ><?php echo $pinterest_text; ?></a><?php
151
  }
152
+ break;
153
+ case 'x':
154
+ if(in_array('xing', $social_options)){
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>
162
  <?php endif;?>
163
  </div>
164
  <?php
includes/index.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  if( ! defined("SS_VERSION") ) {
4
  header( 'Status: 403 Forbidden' );
5
  header( 'HTTP/1.1 403 Forbidden' );
1
  <?php
 
2
  if( ! defined("SS_VERSION") ) {
3
  header( 'Status: 403 Forbidden' );
4
  header( 'HTTP/1.1 403 Forbidden' );
includes/plugin.php CHANGED
@@ -5,15 +5,14 @@ if( ! defined("SS_VERSION") ) {
5
  exit;
6
  }
7
 
8
- function ss_get_options()
9
- {
10
  static $options;
11
 
12
  if( ! $options ) {
13
  $defaults = array(
14
  'twitter_username' => "",
15
  'auto_add_post_types' => array( 'post' ),
16
- 'social_options'=>array('facebook','twitter','googleplus','linkedin','pinterest'),
17
  'load_static'=>array('load_css','load_js'),
18
  'facebook_text'=>"Share on Facebook",
19
  'twitter_text'=>"Share on Twitter",
@@ -21,6 +20,7 @@ function ss_get_options()
21
  'linkedin_text'=>"Share on Linkedin",
22
  'pinterest_text'=>"Share on Pinterest",
23
  'pinterest_image'=>"",
 
24
  'before_button_text'=>'',
25
  'text_position' => 'left'
26
  );
@@ -44,6 +44,7 @@ function ss_get_options()
44
  }
45
  return $options;
46
  }
 
47
  add_action('admin_footer','include_icon_order_script');
48
  function include_icon_order_script(){
49
  wp_enqueue_script( 'jquery-ui-sortable' );
5
  exit;
6
  }
7
 
8
+ function ss_get_options(){
 
9
  static $options;
10
 
11
  if( ! $options ) {
12
  $defaults = array(
13
  'twitter_username' => "",
14
  'auto_add_post_types' => array( 'post' ),
15
+ 'social_options'=>array('facebook','twitter','googleplus','linkedin','pinterest','xing'),
16
  'load_static'=>array('load_css','load_js'),
17
  'facebook_text'=>"Share on Facebook",
18
  'twitter_text'=>"Share on Twitter",
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
  );
44
  }
45
  return $options;
46
  }
47
+
48
  add_action('admin_footer','include_icon_order_script');
49
  function include_icon_order_script(){
50
  wp_enqueue_script( 'jquery-ui-sortable' );
includes/settings-page.php CHANGED
@@ -20,8 +20,10 @@ if( ! defined("SS_VERSION") ) {
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="googleplus_share" name="wp_social_sharing[social_options][]" value="googleplus" <?php checked( in_array( 'googleplus', $opts['social_options'] ), true ); ?> /><label for="googleplus_share"><?php echo _e('Google Plus','wp-social-sharing')?></label>
23
- <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
  </td>
26
  </tr>
27
  <tr valign="top">
@@ -29,7 +31,7 @@ if( ! defined("SS_VERSION") ) {
29
  <td>
30
  <div class="dndicon">
31
  <?php $s_order=get_option('wss_wp_social_sharing');
32
- if(empty($s_order)) $s_order='f,t,g,l,p';
33
  $io=explode(',',rtrim($s_order,','));
34
  foreach ($io as $i){
35
  switch($i){
@@ -48,10 +50,13 @@ if( ! defined("SS_VERSION") ) {
48
  case 'p':
49
  echo '<div class="s-icon pinterest-icon" id="p"></div>';
50
  break;
 
 
 
51
  }
52
  }?>
53
  </div>
54
- <br /><small><?php _e('Drag the social icon to change the order. No need to save.', 'wp-social-sharing'); ?></small>
55
  </td>
56
  </tr>
57
  <tr>
@@ -125,6 +130,12 @@ if( ! defined("SS_VERSION") ) {
125
  <div id="set_custom_image_src"><?php if($opts['pinterest_image'] != ''): ?><img src="<?php echo $opts['pinterest_image'];?>" width="100px" /> <?php endif;?></div>
126
  </td>
127
  </tr>
 
 
 
 
 
 
128
  <tr>
129
  <th><label><?php _e('Load plugin scripts','wp-social-sharing');?></label></th>
130
  <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="googleplus_share" name="wp_social_sharing[social_options][]" value="googleplus" <?php checked( in_array( 'googleplus', $opts['social_options'] ), true ); ?> /><label for="googleplus_share"><?php echo _e('Google Plus','wp-social-sharing')?></label>
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
  <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){
50
  case 'p':
51
  echo '<div class="s-icon pinterest-icon" id="p"></div>';
52
  break;
53
+ case 'x':
54
+ echo '<div class="s-icon xing-icon" id="x"></div>';
55
+ break;
56
  }
57
  }?>
58
  </div>
59
+ <br /><small><?php _e('Drag the social icon to change the order. No need to save.', 'wp-social-sharing'); ?></small>
60
  </td>
61
  </tr>
62
  <tr>
130
  <div id="set_custom_image_src"><?php if($opts['pinterest_image'] != ''): ?><img src="<?php echo $opts['pinterest_image'];?>" width="100px" /> <?php endif;?></div>
131
  </td>
132
  </tr>
133
+ <tr valign="top">
134
+ <th><label for="xing_text"><?php _e('Xing share button text','wp-social-sharing');?></label></th>
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>
141
  <td>
index.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: WP Social Sharing
4
- Version: 1.8
5
  Plugin URI: http://wordpress.org/plugins/wp-social-sharing/
6
- Description: Adds very attractive responsive social sharing buttons of Facebook, Twitter, Linkedin, Pinterest 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.4" ); // db versioin
20
  define( "SS_PLUGIN_DIR", plugin_dir_path( __FILE__ ) );
21
  define( "SS_PLUGIN_URL", plugins_url( '/' , __FILE__ ) );
22
 
@@ -38,24 +38,33 @@ function wss_update_db_check_while_plugin_upgrade(){
38
  $db_version=get_option('wss_plugin_version');
39
  if($db_version === FALSE)
40
  $db_version='1.0';
41
-
42
- // change for linkedin button
43
- // Upgrade from db version lower than 1.3 to 1.4
44
  if($db_version == '1.0' ){
45
- update_option('wss_wp_social_sharing','f,t,g,l,p');
46
  $default=get_option('wp_social_sharing');
47
  $default['linkedin_text']='Share on Linkedin';
48
  $default['pinterest_text']='Share on Pinterest';
 
49
  update_option('wp_social_sharing',$default);
50
- update_option('wss_plugin_version','1.4');
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';
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
  update_option('wp_social_sharing',$default);
59
- update_option('wss_plugin_version','1.4');
60
  }
 
 
 
 
 
 
 
 
 
61
  }
1
  <?php
2
  /*
3
  Plugin Name: WP Social Sharing
4
+ Version: 1.9
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
  exit;
17
  }
18
 
19
+ define( "SS_VERSION", "1.5" ); // db versioin
20
  define( "SS_PLUGIN_DIR", plugin_dir_path( __FILE__ ) );
21
  define( "SS_PLUGIN_URL", plugins_url( '/' , __FILE__ ) );
22
 
38
  $db_version=get_option('wss_plugin_version');
39
  if($db_version === FALSE)
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.5');
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
  update_option('wp_social_sharing',$default);
59
+ update_option('wss_plugin_version','1.5');
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.5');
69
+ }
70
  }
readme.txt CHANGED
@@ -1,24 +1,24 @@
1
  === WP Social Sharing ===
2
  Contributors: arjunjain08
3
- Author URI: http://www.arjunjain.info
4
- 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&currency_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, 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.3
9
- Stable tag: 1.8
10
  License: GPLv3
11
 
12
- Adds very attractive responsive social sharing buttons of Facebook, Twitter, Linkedin, Pinterest 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, 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 and Pinterest.
22
  - Auto display to Post, Page, Media and Custom Post type.
23
  - Custom Social Button text.
24
  - 100% responsive.
@@ -31,7 +31,7 @@ Most of the social sharing plugins uses images/api to display social share butto
31
  You can also use following shortcode
32
 
33
  `
34
- [wp_social_sharing social_options='facebook,twitter,googleplus,linkedin,pinterest' 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" icon_order='f,t,g,l,p' show_icons='0' before_button_text='' text_position='' social_image='']
35
  `
36
  [Demo](http://www.arjunjain.info/wp-social-sharing/)
37
 
@@ -54,6 +54,9 @@ You can also use following shortcode
54
 
55
  == Changelog ==
56
 
 
 
 
57
  = 1.8 - August 18, 2015 =
58
  - Add Text Position option in Settings page and Also in shortcode
59
  - Add Social icon position option (Global Option)
1
  === WP Social Sharing ===
2
  Contributors: arjunjain08
3
+ Author URI: https://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&currency_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.6.1
9
+ Stable tag: 1.9
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.
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
 
54
 
55
  == Changelog ==
56
 
57
+ = 1.9 - September 26, 2015 =
58
+ - Add Xing Social Network Sharing
59
+
60
  = 1.8 - August 18, 2015 =
61
  - Add Text Position option in Settings page and Also in shortcode
62
  - Add Social icon position option (Global Option)
static/admin-styles.css CHANGED
@@ -14,6 +14,7 @@
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
  @media(max-width: 919px) {
18
  .ss-column{float: none;width: 100%;}
19
  .ss-secondary{ padding:0; margin:25px 0; border-left:0;}
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
  @media(max-width: 919px) {
19
  .ss-column{float: none;width: 100%;}
20
  .ss-secondary{ padding:0; margin:25px 0; border-left:0;}
static/index.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  if( ! defined("SS_VERSION") ) {
4
  header( 'Status: 403 Forbidden' );
5
  header( 'HTTP/1.1 403 Forbidden' );
1
  <?php
 
2
  if( ! defined("SS_VERSION") ) {
3
  header( 'Status: 403 Forbidden' );
4
  header( 'HTTP/1.1 403 Forbidden' );
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{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;}
@@ -13,22 +13,25 @@ a.button-linkedin {background-color: #0073b2;background: -moz-linear-gradient(to
13
  a.button-linkedin:hover{background-color: #009cda;background: -moz-linear-gradient(top, #0073b2, #009cda);background: -ms-linear-gradient(top, #0073b2, #009cda);background: -webkit-linear-gradient(top, #0073b2, #009cda);color:#fff;}
14
  a.button-pinterest {background-color: #a0171c;background: -moz-linear-gradient(top, #cb2027, #a0171c);background: -ms-linear-gradient(top, #cb2027, #a0171c);background: -webkit-linear-gradient(top, #cb2027, #a0171c);text-shadow: 0 -1px -1px #761114;}
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
-
 
17
  .ss-social-sharing a{text-indent: -99999px;}
18
- a.ss-button-facebook, a.ss-button-googleplus, a.ss-button-twitter, a.ss-button-linkedin,a.ss-button-pinterest{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;}
19
  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;}
20
  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;}
21
  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;}
22
  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;}
23
  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;}
 
24
 
25
  /* Smartphones (portrait and landscape) */
26
  @media (max-width : 480px){
27
  .social-sharing a{text-indent: -99999px;}
28
- a.button-facebook, a.button-googleplus,a.button-twitter,a.button-linkedin,a.button-pinterest{background-image: url(socialshare.png) !important;width: 45px;height: 45px;background-repeat: no-repeat;padding: 0px;border: 0px;}
29
  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;}
30
  a.button-googleplus{background-position: -45px -45px;}a.button-googleplus:hover{background-position: -45px 0px;transition-delay: 0s;transition-duration: 250ms;transition-property: all; transition-timing-function: ease-in-out;}
31
  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;}
32
  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;}
33
  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;}
 
34
  }
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;}
13
  a.button-linkedin:hover{background-color: #009cda;background: -moz-linear-gradient(top, #0073b2, #009cda);background: -ms-linear-gradient(top, #0073b2, #009cda);background: -webkit-linear-gradient(top, #0073b2, #009cda);color:#fff;}
14
  a.button-pinterest {background-color: #a0171c;background: -moz-linear-gradient(top, #cb2027, #a0171c);background: -ms-linear-gradient(top, #cb2027, #a0171c);background: -webkit-linear-gradient(top, #cb2027, #a0171c);text-shadow: 0 -1px -1px #761114;}
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){
29
  .social-sharing a{text-indent: -99999px;}
30
+ a.button-facebook, a.button-googleplus,a.button-twitter,a.button-linkedin,a.button-pinterest,a.button-xing{background-image: url(socialshare.png) !important;width: 45px;height: 45px;background-repeat: no-repeat;padding: 0px;border: 0px;}
31
  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;}
32
  a.button-googleplus{background-position: -45px -45px;}a.button-googleplus:hover{background-position: -45px 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
  }
static/socialshare.png CHANGED
Binary file