WordPress Social Tools, Related Posts, Monetization – Shareaholic - Version 6.1.3.2

Version Description

  • Upgraded PHP short tags
  • Much faster Related Content processing for new users!
  • A host of bug fixes and performance improvements
Download this release

Release Info

Developer shareaholic
Plugin Icon 128x128 WordPress Social Tools, Related Posts, Monetization – Shareaholic
Version 6.1.3.2
Comparing to
See all releases

Code changes from version 6.1.3.1 to 6.1.3.2

includes/public.php CHANGED
@@ -1040,25 +1040,25 @@ function shrsb_publicScripts() {
1040
  $infooter = ($shrsb_plugopts['scriptInFooter'] == '1')?true:false;
1041
 
1042
  // Enqueue SexyBookmarks JavaScript only if enabled
1043
- if(isset($shrsb_plugopts['sexybookmark']) && $shrsb_plugopts['sexybookmark'] == '1'){
1044
  wp_enqueue_script('shareaholic-sb-js', (empty($shrsb_debug['sb_script'])) ? shrsb_correct_protocol('http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-publishers-sb.min.js') : $shrsb_debug['sb_script'], null, SHRSB_vNum, $infooter);
1045
  $localize_to = 'shareaholic-sb-js';
1046
  }
1047
 
1048
  // Enqueue Tob Bar JavaScript only if enabled
1049
- if(isset($shrsb_tb_plugopts) && isset($shrsb_tb_plugopts['topbar']) && $shrsb_tb_plugopts['topbar'] == '1'){
1050
  wp_enqueue_script('shareaholic-topbar-js',(empty($shrsb_debug['tb_script'])) ? shrsb_correct_protocol('http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-share-buttons.min.js'): $shrsb_debug['tb_script'], null, SHRSB_vNum, $infooter);
1051
  $localize_to = 'shareaholic-topbar-js';
1052
  }
1053
 
1054
  // Enqueue Recommendations JavaScript only if enabled
1055
- if(isset($shrsb_recommendations) && isset($shrsb_recommendations['recommendations']) && $shrsb_recommendations['recommendations'] == '1'){
1056
  wp_enqueue_script('shareaholic-recommendations-js',(empty($shrsb_debug['rd_script'])) ? shrsb_correct_protocol("http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-publishers-rd.min.js"): $shrsb_debug['rd_script'], null, SHRSB_vNum, $infooter);
1057
  $localize_to = 'shareaholic-recommendations-js';
1058
  }
1059
 
1060
  // Enqueue Classic Bookmarks JavaScript only if enabled
1061
- if(isset($shrsb_cb) && isset($shrsb_cb['cb']) && $shrsb_cb['cb'] == '1'){
1062
  wp_enqueue_script('shareaholic-cb-js',(empty($shrsb_debug['cb_script'])) ? shrsb_correct_protocol("http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-publishers-cb.min.js"): $shrsb_debug['cb_script'], null, SHRSB_vNum, $infooter);
1063
  $localize_to = 'shareaholic-cb-js';
1064
  }
1040
  $infooter = ($shrsb_plugopts['scriptInFooter'] == '1')?true:false;
1041
 
1042
  // Enqueue SexyBookmarks JavaScript only if enabled
1043
+ if(isset($shrsb_plugopts['sexybookmark']) && $shrsb_plugopts['sexybookmark'] == '1' && shrsb_check_activation() == true){
1044
  wp_enqueue_script('shareaholic-sb-js', (empty($shrsb_debug['sb_script'])) ? shrsb_correct_protocol('http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-publishers-sb.min.js') : $shrsb_debug['sb_script'], null, SHRSB_vNum, $infooter);
1045
  $localize_to = 'shareaholic-sb-js';
1046
  }
1047
 
1048
  // Enqueue Tob Bar JavaScript only if enabled
1049
+ if(isset($shrsb_tb_plugopts) && isset($shrsb_tb_plugopts['topbar']) && $shrsb_tb_plugopts['topbar'] == '1' && shrsb_check_activation() == true){
1050
  wp_enqueue_script('shareaholic-topbar-js',(empty($shrsb_debug['tb_script'])) ? shrsb_correct_protocol('http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-share-buttons.min.js'): $shrsb_debug['tb_script'], null, SHRSB_vNum, $infooter);
1051
  $localize_to = 'shareaholic-topbar-js';
1052
  }
1053
 
1054
  // Enqueue Recommendations JavaScript only if enabled
1055
+ if(isset($shrsb_recommendations) && isset($shrsb_recommendations['recommendations']) && $shrsb_recommendations['recommendations'] == '1' && shrsb_check_activation() == true){
1056
  wp_enqueue_script('shareaholic-recommendations-js',(empty($shrsb_debug['rd_script'])) ? shrsb_correct_protocol("http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-publishers-rd.min.js"): $shrsb_debug['rd_script'], null, SHRSB_vNum, $infooter);
1057
  $localize_to = 'shareaholic-recommendations-js';
1058
  }
1059
 
1060
  // Enqueue Classic Bookmarks JavaScript only if enabled
1061
+ if(isset($shrsb_cb) && isset($shrsb_cb['cb']) && $shrsb_cb['cb'] == '1' && shrsb_check_activation() == true){
1062
  wp_enqueue_script('shareaholic-cb-js',(empty($shrsb_debug['cb_script'])) ? shrsb_correct_protocol("http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-publishers-cb.min.js"): $shrsb_debug['cb_script'], null, SHRSB_vNum, $infooter);
1063
  $localize_to = 'shareaholic-cb-js';
1064
  }
includes/shrsb_analytics_page.php CHANGED
@@ -31,7 +31,7 @@ function shrsb_analytics_set_options( $action = NULL ) {
31
  if( $database_Settings ) {//got the settings in the database
32
 
33
  // Check only when upgrading
34
- if( SHRSB_UPGRADING ) {
35
  $need_to_update = false;
36
 
37
  //Check whether all the settings are present or not
31
  if( $database_Settings ) {//got the settings in the database
32
 
33
  // Check only when upgrading
34
+ if( SHRSB_UPGRADING == TRUE ) {
35
  $need_to_update = false;
36
 
37
  //Check whether all the settings are present or not
includes/shrsb_analytics_settings_page.php CHANGED
@@ -57,7 +57,7 @@ function shrsb_analytics_settings_page() {
57
  if(isset($_POST[$field])) { // this is to prevent warning if $_POST[$field] is not defined
58
  $fieldval = $_POST[$field];
59
  if($field == 'pubGaSocial' && $fieldval != $shrsb_analytics[$field]) {
60
- shrsb_sendTrackingEvent('FeatureToggle', array('f_updated' => 'f_analytics', 'enabled' => ($fieldval == '0' ? 'true' : 'false')));
61
  }
62
  $shrsb_analytics[$field] = $fieldval;
63
  } else {
57
  if(isset($_POST[$field])) { // this is to prevent warning if $_POST[$field] is not defined
58
  $fieldval = $_POST[$field];
59
  if($field == 'pubGaSocial' && $fieldval != $shrsb_analytics[$field]) {
60
+ shr_sendTrackingEvent('FeatureToggle', array('f_updated' => 'f_analytics', 'enabled' => ($fieldval == '0' ? 'true' : 'false')));
61
  }
62
  $shrsb_analytics[$field] = $fieldval;
63
  } else {
includes/shrsb_classicbookmarks_page.php CHANGED
@@ -33,7 +33,7 @@ function shrsb_cb_set_options( $action = NULL ) {
33
  if( $database_Settings ) {//got the settings in the database
34
 
35
  // Check only when upgrading
36
- if( SHRSB_UPGRADING ) {
37
  $need_to_update = false;
38
 
39
  //Check whether all the settings are present or not
33
  if( $database_Settings ) {//got the settings in the database
34
 
35
  // Check only when upgrading
36
+ if( SHRSB_UPGRADING == TRUE) {
37
  $need_to_update = false;
38
 
39
  //Check whether all the settings are present or not
includes/shrsb_classicbookmarks_settings_page.php CHANGED
@@ -58,7 +58,7 @@ function shrsb_cb_settings_page() {
58
  if(isset($_POST[$field])) { // this is to prevent warning if $_POST[$field] is not defined
59
  $fieldval = $_POST[$field];
60
  if($field == 'cb' && $fieldval != $shrsb_cb[$field]) {
61
- shrsb_sendTrackingEvent('FeatureToggle', array('f_updated' => 'f_classic', 'enabled' => ($fieldval == '0' ? 'true' : 'false')));
62
  }
63
  $shrsb_cb[$field] = $fieldval;
64
  } else {
58
  if(isset($_POST[$field])) { // this is to prevent warning if $_POST[$field] is not defined
59
  $fieldval = $_POST[$field];
60
  if($field == 'cb' && $fieldval != $shrsb_cb[$field]) {
61
+ shr_sendTrackingEvent('FeatureToggle', array('f_updated' => 'f_classic', 'enabled' => ($fieldval == '0' ? 'true' : 'false')));
62
  }
63
  $shrsb_cb[$field] = $fieldval;
64
  } else {
includes/shrsb_landing_page.php CHANGED
@@ -14,22 +14,22 @@
14
  </div>
15
 
16
  <div id="sb_box" class="select_product">
17
- <img style="float:left; margin-left:-25px;margin-top:-19px;visibility:hidden;" src="<?= SHRSB_PLUGPATH."images/new_badge.png" ?>">
18
- <div class="shr-landing-product-icon"><img src="<?= SHRSB_PLUGPATH."images/sbm.png" ?>"></div>
19
  <div class="shr-landing-product-name"><h2>SexyBookmarks</h2><span class="shr-landing-product-desc">Have your content shared more with the sexiest sharing buttons on the web.</span></div>
20
  <div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_sexybookmarks.php" class="btn btn-large <?php global $shrsb_plugopts; echo ((@$shrsb_plugopts['sexybookmark'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_plugopts['sexybookmark'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
21
  </div>
22
 
23
  <div id="topbar_box" class="select_product">
24
- <img style="float:left; margin-left:-25px;margin-top:-19px;visibility:hidden;" src="<?= SHRSB_PLUGPATH."images/new_badge.png" ?>">
25
- <div class="shr-landing-product-icon"><img src="<?= SHRSB_PLUGPATH."images/tophat.jpg" ?>"></div>
26
  <div class="shr-landing-product-name"><h2>Top Bar</h2><span class="shr-landing-product-desc">Make sure your readers always have a share button nearby.</span></div>
27
  <div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_topbar.php" class="btn btn-large <?php global $shrsb_tb_plugopts; echo ((@$shrsb_tb_plugopts['topbar'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_tb_plugopts['topbar'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
28
  </div>
29
 
30
  <div id="sb_box" class="select_product">
31
- <img style="float:left; margin-left:-25px;margin-top:-19px;" src="<?= SHRSB_PLUGPATH."images/new_badge.png" ?>">
32
- <div class="shr-landing-product-icon"><img src="<?= SHRSB_PLUGPATH."images/cbm.png" ?>"></div>
33
  <div class="shr-landing-product-name"><h2>ClassicBookmarks</h2><span class="shr-landing-product-desc">Beautiful, elegant, classic styled sharing buttons.</span></div>
34
  <div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_classicbookmarks.php" class="btn btn-large <?php global $shrsb_cb; echo ((@$shrsb_cb['cb'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_cb['cb'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
35
  </div>
@@ -39,8 +39,8 @@
39
  </div>
40
 
41
  <div id="rec_box" class="select_product">
42
- <img style="float:left; margin-left:-25px;margin-top:-19px;" src="<?= SHRSB_PLUGPATH."images/new_badge.png" ?>">
43
- <div class="shr-landing-product-icon"><img src="<?= SHRSB_PLUGPATH."images/thumbs.png" ?>"></div>
44
  <div class="shr-landing-product-name"><h2>Recommendations</h2><span class="shr-landing-product-desc">Proven to drive more pageviews by helping your readers discover more of your amazing content.</span></div>
45
  <div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_recommendations.php" class="btn btn-large <?php global $shrsb_recommendations; echo ((@$shrsb_recommendations['recommendations'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_recommendations['recommendations'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
46
  </div>
@@ -50,8 +50,8 @@
50
  </div>
51
 
52
  <div id="soc_box" class="select_product">
53
- <img style="float:left; margin-left:-25px;margin-top:-19px;visibility:hidden;" src="<?= SHRSB_PLUGPATH."images/new_badge.png" ?>">
54
- <div class="shr-landing-product-icon"><img src="<?= SHRSB_PLUGPATH."images/chart.png" ?>"></div>
55
  <div class="shr-landing-product-name"><h2>Social Analytics</h2><span class="shr-landing-product-desc">Discover and connect with who is reading and sharing your content.</span></div>
56
  <div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_analytics.php" class="btn btn-large"><i class="icon-cog" style="margin-top:2px;"></i> Settings</a></div>
57
  </div>
14
  </div>
15
 
16
  <div id="sb_box" class="select_product">
17
+ <img style="float:left; margin-left:-25px;margin-top:-19px;visibility:hidden;" src="<?php echo SHRSB_PLUGPATH."images/new_badge.png" ?>">
18
+ <div class="shr-landing-product-icon"><img src="<?php echo SHRSB_PLUGPATH."images/sbm.png" ?>"></div>
19
  <div class="shr-landing-product-name"><h2>SexyBookmarks</h2><span class="shr-landing-product-desc">Have your content shared more with the sexiest sharing buttons on the web.</span></div>
20
  <div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_sexybookmarks.php" class="btn btn-large <?php global $shrsb_plugopts; echo ((@$shrsb_plugopts['sexybookmark'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_plugopts['sexybookmark'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
21
  </div>
22
 
23
  <div id="topbar_box" class="select_product">
24
+ <img style="float:left; margin-left:-25px;margin-top:-19px;visibility:hidden;" src="<?php echo SHRSB_PLUGPATH."images/new_badge.png" ?>">
25
+ <div class="shr-landing-product-icon"><img src="<?php echo SHRSB_PLUGPATH."images/tophat.jpg" ?>"></div>
26
  <div class="shr-landing-product-name"><h2>Top Bar</h2><span class="shr-landing-product-desc">Make sure your readers always have a share button nearby.</span></div>
27
  <div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_topbar.php" class="btn btn-large <?php global $shrsb_tb_plugopts; echo ((@$shrsb_tb_plugopts['topbar'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_tb_plugopts['topbar'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
28
  </div>
29
 
30
  <div id="sb_box" class="select_product">
31
+ <img style="float:left; margin-left:-25px;margin-top:-19px;" src="<?php echo SHRSB_PLUGPATH."images/new_badge.png" ?>">
32
+ <div class="shr-landing-product-icon"><img src="<?php echo SHRSB_PLUGPATH."images/cbm.png" ?>"></div>
33
  <div class="shr-landing-product-name"><h2>ClassicBookmarks</h2><span class="shr-landing-product-desc">Beautiful, elegant, classic styled sharing buttons.</span></div>
34
  <div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_classicbookmarks.php" class="btn btn-large <?php global $shrsb_cb; echo ((@$shrsb_cb['cb'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_cb['cb'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
35
  </div>
39
  </div>
40
 
41
  <div id="rec_box" class="select_product">
42
+ <img style="float:left; margin-left:-25px;margin-top:-19px;" src="<?php echo SHRSB_PLUGPATH."images/new_badge.png" ?>">
43
+ <div class="shr-landing-product-icon"><img src="<?php echo SHRSB_PLUGPATH."images/thumbs.png" ?>"></div>
44
  <div class="shr-landing-product-name"><h2>Recommendations</h2><span class="shr-landing-product-desc">Proven to drive more pageviews by helping your readers discover more of your amazing content.</span></div>
45
  <div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_recommendations.php" class="btn btn-large <?php global $shrsb_recommendations; echo ((@$shrsb_recommendations['recommendations'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_recommendations['recommendations'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
46
  </div>
50
  </div>
51
 
52
  <div id="soc_box" class="select_product">
53
+ <img style="float:left; margin-left:-25px;margin-top:-19px;visibility:hidden;" src="<?php echo SHRSB_PLUGPATH."images/new_badge.png" ?>">
54
+ <div class="shr-landing-product-icon"><img src="<?php echo SHRSB_PLUGPATH."images/chart.png" ?>"></div>
55
  <div class="shr-landing-product-name"><h2>Social Analytics</h2><span class="shr-landing-product-desc">Discover and connect with who is reading and sharing your content.</span></div>
56
  <div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_analytics.php" class="btn btn-large"><i class="icon-cog" style="margin-top:2px;"></i> Settings</a></div>
57
  </div>
includes/shrsb_recommendations_page.php CHANGED
@@ -14,7 +14,7 @@ function shrsb_recommendations_set_options( $action = NULL ) {
14
  $option_name = 'ShareaholicRecommendations';
15
 
16
  $shrsb_recommendations_default = array(
17
- 'recommendations' => '0'
18
  , 'num' => '3'
19
  , 'pageorpost' => 'postpageindexcategory'
20
  , 'style' => 'image'
@@ -34,7 +34,7 @@ function shrsb_recommendations_set_options( $action = NULL ) {
34
  if( $database_Settings ) {//got the settings in the database
35
 
36
  // Check only when upgrading
37
- if( SHRSB_UPGRADING ) {
38
  $need_to_update = false;
39
 
40
  //Check whether all the settings are present or not
@@ -57,4 +57,4 @@ function shrsb_recommendations_set_options( $action = NULL ) {
57
  return $shrsb_recommendations_default;
58
  }
59
  }
60
- ?>
14
  $option_name = 'ShareaholicRecommendations';
15
 
16
  $shrsb_recommendations_default = array(
17
+ 'recommendations' => '1'
18
  , 'num' => '3'
19
  , 'pageorpost' => 'postpageindexcategory'
20
  , 'style' => 'image'
34
  if( $database_Settings ) {//got the settings in the database
35
 
36
  // Check only when upgrading
37
+ if( SHRSB_UPGRADING == TRUE) {
38
  $need_to_update = false;
39
 
40
  //Check whether all the settings are present or not
57
  return $shrsb_recommendations_default;
58
  }
59
  }
60
+ ?>
includes/shrsb_recommendations_settings_page.php CHANGED
@@ -58,7 +58,7 @@ function shrsb_recommendations_settings_page() {
58
  if(isset($_POST[$field])) { // this is to prevent warning if $_POST[$field] is not defined
59
  $fieldval = $_POST[$field];
60
  if($field == 'recommendations' && $fieldval != $shrsb_recommendations[$field]) {
61
- shrsb_sendTrackingEvent('FeatureToggle', array('f_updated' => 'f_rec', 'enabled' => ($fieldval == '0' ? 'true' : 'false')));
62
  }
63
  $shrsb_recommendations[$field] = $fieldval;
64
  } else {
@@ -184,4 +184,4 @@ echo get_snapengage();
184
 
185
  }//closing brace for function "shrsb_settings_page"
186
 
187
- ?>
58
  if(isset($_POST[$field])) { // this is to prevent warning if $_POST[$field] is not defined
59
  $fieldval = $_POST[$field];
60
  if($field == 'recommendations' && $fieldval != $shrsb_recommendations[$field]) {
61
+ shr_sendTrackingEvent('FeatureToggle', array('f_updated' => 'f_rec', 'enabled' => ($fieldval == '0' ? 'true' : 'false')));
62
  }
63
  $shrsb_recommendations[$field] = $fieldval;
64
  } else {
184
 
185
  }//closing brace for function "shrsb_settings_page"
186
 
187
+ ?>
includes/shrsb_sexybookmarks_page.php CHANGED
@@ -35,7 +35,7 @@ function shrsb_sb_set_options($action = NULL){
35
  );
36
 
37
  $shrsb_sb_plugopts_default = array(
38
- 'sexybookmark' => '0',
39
  'firstrun' => '1',
40
  'position' => 'below', // below, above, or manual
41
  'reloption' => 'nofollow', // 'nofollow', or ''
@@ -67,7 +67,7 @@ function shrsb_sb_set_options($action = NULL){
67
  'bgimg-yes' => 'yes', // 'yes' or blank
68
  'mobile-hide' => '', // 'yes' or blank
69
  'bgimg' => 'caring', // default bg image
70
- 'shorty' => 'google', // default shortener
71
  'pageorpost' => 'postpageindexcategory',
72
  'bookmark' => $shrsb_most_popular ,//array_keys($shrsb_bookmarks_data),
73
  'feed' => '0', // 1 or 0
@@ -81,7 +81,7 @@ function shrsb_sb_set_options($action = NULL){
81
  'shareaholic-javascript' => '1',
82
  'shrbase' => 'http://www.shareaholic.com',
83
  'apikey' => '8afa39428933be41f8afdb8ea21a495c',
84
- 'service' => '',
85
  'designer_toolTips' => '1',
86
  'tip_bg_color' => '#000000', // tooltip background color
87
  'tip_text_color' => '#ffffff', // tooltip text color
@@ -104,7 +104,7 @@ function shrsb_sb_set_options($action = NULL){
104
  if($database_Settings){//got the settings in the database
105
 
106
  // Check only when upgrading
107
- if(SHRSB_UPGRADING) {
108
  $need_to_update = false;
109
 
110
  if(!isset($database_Settings['sexybookmark']) ){
35
  );
36
 
37
  $shrsb_sb_plugopts_default = array(
38
+ 'sexybookmark' => '1',
39
  'firstrun' => '1',
40
  'position' => 'below', // below, above, or manual
41
  'reloption' => 'nofollow', // 'nofollow', or ''
67
  'bgimg-yes' => 'yes', // 'yes' or blank
68
  'mobile-hide' => '', // 'yes' or blank
69
  'bgimg' => 'caring', // default bg image
70
+ 'shorty' => 'shrlc', // default shortener
71
  'pageorpost' => 'postpageindexcategory',
72
  'bookmark' => $shrsb_most_popular ,//array_keys($shrsb_bookmarks_data),
73
  'feed' => '0', // 1 or 0
81
  'shareaholic-javascript' => '1',
82
  'shrbase' => 'http://www.shareaholic.com',
83
  'apikey' => '8afa39428933be41f8afdb8ea21a495c',
84
+ 'service' => '5,7,309,88,304',
85
  'designer_toolTips' => '1',
86
  'tip_bg_color' => '#000000', // tooltip background color
87
  'tip_text_color' => '#ffffff', // tooltip text color
104
  if($database_Settings){//got the settings in the database
105
 
106
  // Check only when upgrading
107
+ if(SHRSB_UPGRADING == TRUE) {
108
  $need_to_update = false;
109
 
110
  if(!isset($database_Settings['sexybookmark']) ){
includes/shrsb_sexybookmarks_settings_page.php CHANGED
@@ -207,7 +207,7 @@ function shrsb_sb_settings_page() {
207
  if(isset($_POST[$field])) { // this is to prevent warning if $_POST[$field] is not defined
208
  $fieldval = $_POST[$field];
209
  if($field == 'sexybookmark' && $fieldval != $shrsb_plugopts[$field]) {
210
- shrsb_sendTrackingEvent('FeatureToggle', array('f_updated' => 'f_sexy', 'enabled' => ($fieldval == '0' ? 'true' : 'false')));
211
  }
212
  $shrsb_plugopts[$field] = $fieldval;
213
  } else {
@@ -386,7 +386,7 @@ function shrsb_sb_settings_page() {
386
  <td><span class="tab" style="display:block; font-size: 11px; color: #666666;"><?php _e('Shareaholic Social Analytics', 'shrsb'); ?></span></td>
387
  <td><div class="icon-ok"></div></td>
388
  <td><div class="icon-remove"></div></td>
389
- <td><a target="_blank" href="https://shareaholic.com/publishers/analytics/<?= $parse['host']?>/">Preview</a></td>
390
  </tr>
391
 
392
  <tr>
@@ -597,7 +597,7 @@ function shrsb_sb_settings_page() {
597
  </tbody></table>
598
  <br />
599
  <span style="display:block;"><span style="color:orange;">* <?php _e('switch on "new" mode above to enable these exclusive features', 'shrsb'); ?></span></span>
600
- <span style="display:block;"><span style="color:#08C;"># <?= sprintf( __('Click %shere%s to enable 3rd party services to use this feature', 'shrsb'), '<a href="#3rdpartyservices">', '</a>'); ?></span></span>
601
  </div>
602
  </div>
603
  </div>
@@ -887,7 +887,7 @@ function isRadioEnabled(name){
887
 
888
  function is3rdPartyDependent() {
889
 
890
- var shrsb_analytics = <?= json_encode($shrsb_analytics) ?> ;
891
 
892
  return (shrsb_analytics.pubGaSocial == '1') || isRadioEnabled('showShareCount') ;
893
  }
207
  if(isset($_POST[$field])) { // this is to prevent warning if $_POST[$field] is not defined
208
  $fieldval = $_POST[$field];
209
  if($field == 'sexybookmark' && $fieldval != $shrsb_plugopts[$field]) {
210
+ shr_sendTrackingEvent('FeatureToggle', array('f_updated' => 'f_sexy', 'enabled' => ($fieldval == '0' ? 'true' : 'false')));
211
  }
212
  $shrsb_plugopts[$field] = $fieldval;
213
  } else {
386
  <td><span class="tab" style="display:block; font-size: 11px; color: #666666;"><?php _e('Shareaholic Social Analytics', 'shrsb'); ?></span></td>
387
  <td><div class="icon-ok"></div></td>
388
  <td><div class="icon-remove"></div></td>
389
+ <td><a target="_blank" href="https://shareaholic.com/publishers/analytics/<?php echo $parse['host']?>/">Preview</a></td>
390
  </tr>
391
 
392
  <tr>
597
  </tbody></table>
598
  <br />
599
  <span style="display:block;"><span style="color:orange;">* <?php _e('switch on "new" mode above to enable these exclusive features', 'shrsb'); ?></span></span>
600
+ <span style="display:block;"><span style="color:#08C;"># <?php echo sprintf( __('Click %shere%s to enable 3rd party services to use this feature', 'shrsb'), '<a href="#3rdpartyservices">', '</a>'); ?></span></span>
601
  </div>
602
  </div>
603
  </div>
887
 
888
  function is3rdPartyDependent() {
889
 
890
+ var shrsb_analytics = <?php echo json_encode($shrsb_analytics) ?> ;
891
 
892
  return (shrsb_analytics.pubGaSocial == '1') || isRadioEnabled('showShareCount') ;
893
  }
js/shareaholic-admin.min.js CHANGED
@@ -9,7 +9,7 @@ jQuery(".likebuttonpreviewTop").fadeOut("fast")});jQuery("#fbLikeButtonBottom-no
9
  jQuery("#fbSendButtonBottom-no").click(function(){this.checked&&jQuery(".sendbuttonpreviewBottom").fadeOut("fast")});jQuery("#googlePlusOneButtonTop-yes").click(function(){this.checked&&jQuery(".plusonepreviewTop").fadeIn("fast")});jQuery("#googlePlusOneButtonTop-no").click(function(){this.checked&&jQuery(".plusonepreviewTop").fadeOut("fast")});jQuery("#googlePlusOneButtonBottom-yes").click(function(){this.checked&&jQuery(".plusonepreviewBottom").fadeIn("fast")});jQuery("#googlePlusOneButtonBottom-no").click(function(){this.checked&&
10
  jQuery(".plusonepreviewBottom").fadeOut("fast")});jQuery("#tweetButtonTop-yes").click(function(){this.checked&&jQuery(".tweetbuttonpreviewTop").fadeIn("fast")});jQuery("#tweetButtonTop-no").click(function(){this.checked&&jQuery(".tweetbuttonpreviewTop").fadeOut("fast")});jQuery("#tweetButtonBottom-yes").click(function(){this.checked&&jQuery(".tweetbuttonpreviewBottom").fadeIn("fast")});jQuery("#tweetButtonBottom-no").click(function(){this.checked&&jQuery(".tweetbuttonpreviewBottom").fadeOut("fast")});
11
  jQuery("#fbLikeButtonTop-yes,#googlePlusOneButtonTop-yes,#fbSendButtonTop-yes,#tweetButtonTop-yes").click(function(){this.checked&&jQuery(".likeButtonSetOptionsTop").fadeIn("fast")});jQuery("#fbLikeButtonBottom-yes,#googlePlusOneButtonBottom-yes,#fbSendButtonBottom-yes,#tweetButtonBottom-yes").click(function(){this.checked&&jQuery(".likeButtonSetOptionsBottom").fadeIn("fast")});jQuery("#fbLikeButtonTop-no,#googlePlusOneButtonTop-no,#fbSendButtonTop-no,#tweetButtonTop-no").click(function(){jQuery("#fbLikeButtonTop-no").get(0).checked&&
12
- jQuery("#googlePlusOneButtonTop-no").get(0).checked&&jQuery("#tweetButtonTop-no").get(0).checked&&jQuery("#fbSendButtonTop-no").get(0).checked&&jQuery(".likeButtonSetOptionsTop").fadeOut("fast")});jQuery("#fbLikeButtonBottom-no,#googlePlusOneButtonBottom-no,#fbSendButtonBottom-no,#tweetButtonBottom-no").click(function(){jQuery("#fbLikeButtonBottom-no").get(0).checked&&jQuery("#googlePlusOneButtonBottom-no").get(0).checked&&jQuery("#tweetButtonBottom-no").get(0).checked&&jQuery("#fbSendButtonBottom-no").get(0).checked&&
13
  jQuery(".likeButtonSetOptionsBottom").fadeOut("fast")});jQuery("#designer_toolTips-yes").click(function(){this.checked&&jQuery(".designer_toolTip_prefs").fadeIn("fast")});jQuery("#designer_toolTips-no").click(function(){this.checked&&jQuery(".designer_toolTip_prefs").fadeOut("fast")});jQuery('input[name="pubGaSocial"]').on("click",function(){jQuery(".pubGaSocial_prefs")[1==jQuery('input[name="pubGaSocial"]:checked').val()?"fadeIn":"fadeOut"]("fast")});jQuery("#recommendations-yes").click(function(){this.checked&&
14
  (jQuery(".recommendations_prefs-1").fadeIn("fast"),jQuery("#recommendations-style-image").get(0).checked&&jQuery(".recommendations_prefs-2").fadeIn("fast"))});jQuery("#recommendations-no").click(function(){this.checked&&(jQuery(".recommendations_prefs-1").fadeOut("fast"),jQuery(".recommendations_prefs-2").fadeOut("fast"))});jQuery("#recommendations-style-image").click(function(){this.checked&&jQuery(".recommendations_prefs-2").fadeIn("fast")});jQuery("#recommendations-style-text").click(function(){this.checked&&
15
  jQuery(".recommendations_prefs-2").fadeOut("fast")});jQuery("#cb-yes").click(function(){this.checked&&jQuery(".cb_prefs").fadeIn("fast")});jQuery("#cb-no").click(function(){this.checked&&jQuery(".cb_prefs").fadeOut("fast")});jQuery("#useSbSettings-yes").click(function(){this.checked&&jQuery(".topbar_prefs").fadeOut("fast")});jQuery("#useSbSettings-no").click(function(){this.checked&&jQuery(".topbar_prefs").fadeIn("fast")});jQuery("#position-above").click(function(){jQuery("#info-manual").is(":visible")&&
@@ -20,33 +20,33 @@ Math.floor(c+13)),c=Math.floor(jQuery("#tweetconfig").val().length-c),50<=c?jQue
20
  (jQuery("#likeButtonSetTop-yes").get(0).checked&&jQuery(".likeButtonsAvailableTop").fadeIn("fast"),(jQuery("#fbLikeButtonTop-yes").get(0).checked||jQuery("#googlePlusOneButtonTop-yes").get(0).checked||jQuery("#tweetButtonTop-yes").get(0).checked||jQuery("#fbSendButtonTop-yes").get(0).checked)&&jQuery(".likeButtonSetOptionsTop").fadeIn("fast"),jQuery("#fbLikeButtonTop-yes").get(0).checked&&jQuery(".likebuttonpreviewTop").fadeIn("fast"),jQuery("#fbSendButtonTop-yes").get(0).checked&&jQuery(".sendbuttonpreviewTop").fadeIn("fast"),
21
  jQuery("#googlePlusOneButtonTop-yes").get(0).checked&&jQuery(".plusonepreviewTop").fadeIn("fast"),jQuery("#tweetButtonTop-yes").get(0).checked&&jQuery(".tweetbuttonpreviewTop").fadeIn("fast"));"undefined"!=typeof jQuery("#likeButtonSetBottom-yes")&&0<jQuery("#likeButtonSetBottom-yes").length&&(jQuery("#likeButtonSetBottom-yes").get(0).checked&&jQuery(".likeButtonsAvailableBottom").fadeIn("fast"),(jQuery("#fbLikeButtonBottom-yes").get(0).checked||jQuery("#googlePlusOneButtonBottom-yes").get(0).checked||
22
  jQuery("#tweetButtonBottom-yes").get(0).checked||jQuery("#fbSendButtonBottom-yes").get(0).checked)&&jQuery(".likeButtonSetOptionsBottom").fadeIn("fast"),jQuery("#fbLikeButtonBottom-yes").get(0).checked&&jQuery(".likebuttonpreviewBottom").fadeIn("fast"),jQuery("#fbSendButtonBottom-yes").get(0).checked&&jQuery(".sendbuttonpreviewBottom").fadeIn("fast"),jQuery("#googlePlusOneButtonBottom-yes").get(0).checked&&jQuery(".plusonepreviewBottom").fadeIn("fast"),jQuery("#tweetButtonBottom-yes").get(0).checked&&
23
- jQuery(".tweetbuttonpreviewBottom").fadeIn("fast"));"undefined"!=typeof jQuery("#designer_toolTips-yes")&&0<jQuery("#designer_toolTips-yes").length&&(jQuery("#designer_toolTips-yes").get(0).checked&&jQuery(".designer_toolTip_prefs").fadeIn("fast"),jQuery("#tip_bg_color_picker_holder").ColorPicker({flat:!0,color:jQuery("#tip_bg_color").val(),onChange:function(c,d){jQuery("#tip_bg_color").val("#"+d);jQuery("#tip_bg_color_picker div").css("backgroundColor","#"+d)},onSubmit:function(c,d){jQuery("#tip_bg_color").val("#"+
24
- d);jQuery("#tip_bg_color_picker div").css("backgroundColor","#"+d);jQuery("#tip_bg_color_picker_holder").toggle()}}),jQuery("#tip_bg_color_picker_holder").find("input").each(function(){jQuery(this).attr("maxlength","50")}),jQuery("#tip_bg_color_picker div").bind("click",function(){jQuery("#tip_bg_color_picker_holder").toggle();jQuery("#tip_bg_color_picker_holder").ColorPickerSetColor(jQuery("#tip_bg_color").val());jQuery("body").trigger("click");jQuery("#tip_bg_color_picker_holder").is(":visible")&&
25
- jQuery("body").bind("click",function(){jQuery("#tip_bg_color_picker_holder").hide();jQuery("body").unbind("click")});return false}),jQuery("#tip_bg_color_reset").bind("click",function(){jQuery("#tip_bg_color").val("#000000");jQuery("#tip_bg_color_picker div").css("backgroundColor","#000000")}),jQuery("#tip_bg_color_picker_holder").click(function(){return false}),jQuery("#tip_text_color_picker_holder").ColorPicker({flat:!0,color:jQuery("#tip_text_color").val(),onChange:function(c,d){jQuery("#tip_text_color").val("#"+
26
- d);jQuery("#tip_text_color_picker div").css("backgroundColor","#"+d)},onSubmit:function(c,d){jQuery("#tip_text_color").val("#"+d);jQuery("#tip_text_color_picker div").css("backgroundColor","#"+d);jQuery("#tip_text_color_picker_holder").toggle()}}),jQuery("#tip_text_color_picker_holder").find("input").each(function(){jQuery(this).attr("maxlength","50")}),jQuery("#tip_text_color_picker div").bind("click",function(){jQuery("#tip_text_color_picker_holder").toggle();jQuery("#tip_text_color_picker_holder").ColorPickerSetColor(jQuery("#tip_text_color").val());
27
- jQuery("body").trigger("click");jQuery("#tip_text_color_picker_holder").is(":visible")&&jQuery("body").bind("click",function(){jQuery("#tip_text_color_picker_holder").hide();jQuery("body").unbind("click")});return false}),jQuery("#tip_text_color_picker_holder").click(function(){return false}),jQuery("#tip_text_color_reset").bind("click",function(){jQuery("#tip_text_color").val("#ffffff");jQuery("#tip_text_color_picker div").css("backgroundColor","#ffffff")}));"undefined"!=typeof jQuery("#pubGaSocial-yes")&&
28
  0<jQuery("#pubGaSocial-yes").length&&(c=jQuery("#pubGaSocial-yes").get(0).checked)&&jQuery(".pubGaSocial_prefs").fadeIn("fast");if("undefined"!=typeof jQuery("#recommendations-yes")&&0<jQuery("#recommendations-yes").length&&(c=jQuery("#recommendations-yes").get(0).checked))jQuery(".recommendations_prefs-1").fadeIn("fast"),jQuery("#recommendations-style-image").get(0).checked&&jQuery(".recommendations_prefs-2").fadeIn("fast");"undefined"!=typeof jQuery("#cb-yes")&&0<jQuery("#cb-yes").length&&(c=jQuery("#cb-yes").get(0).checked)&&
29
- jQuery(".cb_prefs").fadeIn("fast");"undefined"!=typeof jQuery("#useSbSettings-no")&&0<jQuery("#useSbSettings-no").length&&(jQuery("#useSbSettings-no").get(0).checked&&jQuery(".topbar_prefs").fadeIn("fast"),jQuery("#tb_bg_color_picker_holder").ColorPicker({flat:!0,color:jQuery("#tb_bg_color").val(),onChange:function(c,d){jQuery("#tb_bg_color").val("#"+d);jQuery("#tb_bg_color_picker div").css("backgroundColor","#"+d)},onSubmit:function(c,d){jQuery("#tb_bg_color").val("#"+d);jQuery("#tb_bg_color_picker div").css("backgroundColor",
30
- "#"+d);jQuery("#tb_bg_color_picker_holder").toggle()}}),jQuery("#tb_bg_color_picker_holder").find("input").each(function(){jQuery(this).attr("maxlength","50")}),jQuery("#tb_bg_color_picker div").bind("click",function(){jQuery("#tb_bg_color_picker_holder").toggle();jQuery("#tb_bg_color_picker_holder").ColorPickerSetColor(jQuery("#tb_bg_color").val());jQuery("body").trigger("click");jQuery("#tb_bg_color_picker_holder").is(":visible")&&jQuery("body").bind("click",function(){jQuery("#tb_bg_color_picker_holder").hide();
31
- jQuery("body").unbind("click")});return false}),jQuery("#tb_bg_color_reset").bind("click",function(){jQuery("#tb_bg_color").val("#000000");jQuery("#tb_bg_color_picker div").css("backgroundColor","#000000")}),jQuery("#tb_bg_color_picker_holder").click(function(){return false}),jQuery("#tb_border_color_picker_holder").ColorPicker({flat:!0,color:jQuery("#tb_border_color").val(),onChange:function(c,d){jQuery("#tb_border_color").val("#"+d);jQuery("#tb_border_color_picker div").css("backgroundColor","#"+
32
- d)},onSubmit:function(c,d){jQuery("#tb_border_color").val("#"+d);jQuery("#tb_border_color_picker div").css("backgroundColor","#"+d);jQuery("#tb_border_color_picker_holder").toggle()}}),jQuery("#tb_border_color_picker_holder").find("input").each(function(){jQuery(this).attr("maxlength","50")}),jQuery("#tb_border_color_picker div").bind("click",function(){jQuery("#tb_border_color_picker_holder").toggle();jQuery("#tb_border_color_picker_holder").ColorPickerSetColor(jQuery("#tb_border_color").val());
33
- jQuery("body").trigger("click");jQuery("#tb_border_color_picker_holder").is(":visible")&&jQuery("body").bind("click",function(){jQuery("#tb_border_color_picker_holder").hide();jQuery("body").unbind("click")});return false}),jQuery("#tb_border_color_reset").bind("click",function(){jQuery("#tb_border_color").val("#000000");jQuery("#tb_border_color_picker div").css("backgroundColor","#000000")}),jQuery("#tb_border_color_picker_holder").click(function(){return false}))}});
34
- (function(c){var i=function(){var d=65,i={eventName:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:"ff0000",livePreview:!0,flat:!1},j=function(a,b){var f=e(a);c(b).data("colorpicker").fields.eq(1).val(f.r).end().eq(2).val(f.g).end().eq(3).val(f.b).end()},o=function(a,b){c(b).data("colorpicker").fields.eq(4).val(a.h).end().eq(5).val(a.s).end().eq(6).val(a.b).end()},l=function(a,b){c(b).data("colorpicker").fields.eq(0).val(k(e(a))).end()},
35
- p=function(a,b){c(b).data("colorpicker").selector.css("backgroundColor","#"+k(e({h:a.h,s:100,b:100})));c(b).data("colorpicker").selectorIndic.css({left:parseInt(150*a.s/100,10),top:parseInt(150*(100-a.b)/100,10)})},q=function(a,b){c(b).data("colorpicker").hue.css("top",parseInt(150-150*a.h/360,10))},s=function(a,b){c(b).data("colorpicker").currentColor.css("backgroundColor","#"+k(e(a)))},r=function(a,b){c(b).data("colorpicker").newColor.css("backgroundColor","#"+k(e(a)))},E=function(a){a=a.charCode||
36
- a.keyCode||-1;if(a>d&&90>=a||32==a)return!1;!0===c(this).parent().parent().data("colorpicker").livePreview&&m.apply(this)},m=function(a){var b=c(this).parent().parent(),f;if(0<this.parentNode.className.indexOf("_hex")){f=b.data("colorpicker");var g=this.value,d=6-g.length;if(0<d){for(var h=[],v=0;v<d;v++)h.push("0");h.push(g);g=h.join("")}g=n(t(g));f.color=f=g}else 0<this.parentNode.className.indexOf("_hsb")?b.data("colorpicker").color=f=u({h:parseInt(b.data("colorpicker").fields.eq(4).val(),10),
37
- s:parseInt(b.data("colorpicker").fields.eq(5).val(),10),b:parseInt(b.data("colorpicker").fields.eq(6).val(),10)}):(f=b.data("colorpicker"),g=parseInt(b.data("colorpicker").fields.eq(1).val(),10),d=parseInt(b.data("colorpicker").fields.eq(2).val(),10),h=parseInt(b.data("colorpicker").fields.eq(3).val(),10),g={r:Math.min(255,Math.max(0,g)),g:Math.min(255,Math.max(0,d)),b:Math.min(255,Math.max(0,h))},f.color=f=n(g));a&&(j(f,b.get(0)),l(f,b.get(0)),o(f,b.get(0)));p(f,b.get(0));q(f,b.get(0));r(f,b.get(0));
38
- b.data("colorpicker").onChange.apply(b,[f,k(e(f)),e(f)])},F=function(){c(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus")},G=function(){d=0<this.parentNode.className.indexOf("_hex")?70:65;c(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus");c(this).parent().addClass("colorpicker_focus")},H=function(a){var b=c(this).parent().find("input").focus(),a={el:c(this).parent().addClass("colorpicker_slider"),max:0<this.parentNode.className.indexOf("_hsb_h")?
39
- 360:0<this.parentNode.className.indexOf("_hsb")?100:255,y:a.pageY,field:b,val:parseInt(b.val(),10),preview:c(this).parent().parent().data("colorpicker").livePreview};c(document).bind("mouseup",a,w);c(document).bind("mousemove",a,x)},x=function(a){a.data.field.val(Math.max(0,Math.min(a.data.max,parseInt(a.data.val+a.pageY-a.data.y,10))));a.data.preview&&m.apply(a.data.field.get(0),[!0]);return!1},w=function(a){m.apply(a.data.field.get(0),[!0]);a.data.el.removeClass("colorpicker_slider").find("input").focus();
40
- c(document).unbind("mouseup",w);c(document).unbind("mousemove",x);return!1},I=function(){var a={cal:c(this).parent(),y:c(this).offset().top};a.preview=a.cal.data("colorpicker").livePreview;c(document).bind("mouseup",a,y);c(document).bind("mousemove",a,z)},z=function(a){m.apply(a.data.cal.data("colorpicker").fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,a.pageY-a.data.y)))/150,10)).get(0),[a.data.preview]);return!1},y=function(a){j(a.data.cal.data("colorpicker").color,a.data.cal.get(0));
41
- l(a.data.cal.data("colorpicker").color,a.data.cal.get(0));c(document).unbind("mouseup",y);c(document).unbind("mousemove",z);return!1},J=function(){var a={cal:c(this).parent(),pos:c(this).offset()};a.preview=a.cal.data("colorpicker").livePreview;c(document).bind("mouseup",a,A);c(document).bind("mousemove",a,B)},B=function(a){m.apply(a.data.cal.data("colorpicker").fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,a.pageY-a.data.pos.top)))/150,10)).end().eq(5).val(parseInt(100*Math.max(0,Math.min(150,
42
- a.pageX-a.data.pos.left))/150,10)).get(0),[a.data.preview]);return!1},A=function(a){j(a.data.cal.data("colorpicker").color,a.data.cal.get(0));l(a.data.cal.data("colorpicker").color,a.data.cal.get(0));c(document).unbind("mouseup",A);c(document).unbind("mousemove",B);return!1},K=function(){c(this).addClass("colorpicker_focus")},L=function(){c(this).removeClass("colorpicker_focus")},M=function(){var a=c(this).parent(),b=a.data("colorpicker").color;a.data("colorpicker").origColor=b;s(b,a.get(0));a.data("colorpicker").onSubmit(b,
43
- k(e(b)),e(b),a.data("colorpicker").el)},D=function(){var a,b,f,g=c("#"+c(this).data("colorpickerId"));g.data("colorpicker").onBeforeShow.apply(this,[g.get(0)]);var d=c(this).offset(),h="CSS1Compat"==document.compatMode;a=window.pageXOffset||(h?document.documentElement.scrollLeft:document.body.scrollLeft);b=window.pageYOffset||(h?document.documentElement.scrollTop:document.body.scrollTop);f=window.innerWidth||(h?document.documentElement.clientWidth:document.body.clientWidth);var e=d.top+this.offsetHeight,
44
- d=d.left;e+176>b+(window.innerHeight||(h?document.documentElement.clientHeight:document.body.clientHeight))&&(e-=this.offsetHeight+176);d+356>a+f&&(d-=356);g.css({left:d+"px",top:e+"px"});!1!=g.data("colorpicker").onShow.apply(this,[g.get(0)])&&g.show();c(document).bind("mousedown",{cal:g},C);return!1},C=function(a){N(a.data.cal.get(0),a.target,a.data.cal.get(0))||(!1!=a.data.cal.data("colorpicker").onHide.apply(this,[a.data.cal.get(0)])&&a.data.cal.hide(),c(document).unbind("mousedown",C))},N=function(a,
45
- b,c){if(a==b)return!0;if(a.contains)return a.contains(b);if(a.compareDocumentPosition)return!!(a.compareDocumentPosition(b)&16);for(b=b.parentNode;b&&b!=c;){if(b==a)return!0;b=b.parentNode}return!1},u=function(a){return{h:Math.min(360,Math.max(0,a.h)),s:Math.min(100,Math.max(0,a.s)),b:Math.min(100,Math.max(0,a.b))}},t=function(a){a=parseInt(-1<a.indexOf("#")?a.substring(1):a,16);return{r:a>>16,g:(a&65280)>>8,b:a&255}},n=function(a){var b={h:0,s:0,b:0},c=Math.min(a.r,a.g,a.b),d=Math.max(a.r,a.g,a.b),
46
- c=d-c;b.b=d;b.s=0!=d?255*c/d:0;b.h=0!=b.s?a.r==d?(a.g-a.b)/c:a.g==d?2+(a.b-a.r)/c:4+(a.r-a.g)/c:-1;b.h*=60;0>b.h&&(b.h+=360);b.s*=100/255;b.b*=100/255;return b},e=function(a){var b,c,d;b=Math.round(a.h);var e=Math.round(255*a.s/100),a=Math.round(255*a.b/100);if(0==e)b=c=d=a;else{var e=(255-e)*a/255,h=(a-e)*(b%60)/60;360==b&&(b=0);60>b?(b=a,d=e,c=e+h):120>b?(c=a,d=e,b=a-h):180>b?(c=a,b=e,d=e+h):240>b?(d=a,b=e,c=a-h):300>b?(d=a,c=e,b=e+h):360>b?(b=a,c=e,d=a-h):d=c=b=0}return{r:Math.round(b),g:Math.round(c),
47
- b:Math.round(d)}},k=function(a){var b=[a.r.toString(16),a.g.toString(16),a.b.toString(16)];c.each(b,function(a,c){1==c.length&&(b[a]="0"+c)});return b.join("")},O=function(){var a=c(this).parent(),b=a.data("colorpicker").origColor;a.data("colorpicker").color=b;j(b,a.get(0));l(b,a.get(0));o(b,a.get(0));p(b,a.get(0));q(b,a.get(0));r(b,a.get(0))};return{init:function(a){a=c.extend({},i,a||{});if("string"==typeof a.color)a.color=n(t(a.color));else if(void 0!=a.color.r&&void 0!=a.color.g&&void 0!=a.color.b)a.color=
48
- n(a.color);else if(void 0!=a.color.h&&void 0!=a.color.s&&void 0!=a.color.b)a.color=u(a.color);else return this;return this.each(function(){if(!c(this).data("colorpickerId")){var b=c.extend({},a);b.origColor=a.color;var d="collorpicker_"+parseInt(1E3*Math.random());c(this).data("colorpickerId",d);d=c('<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>').attr("id",
49
- d);b.flat?d.appendTo(this).show():d.appendTo(document.body);b.fields=d.find("input").bind("keyup",E).bind("change",m).bind("blur",F).bind("focus",G);d.find("span").bind("mousedown",H).end().find(">div.colorpicker_current_color").bind("click",O);b.selector=d.find("div.colorpicker_color").bind("mousedown",J);b.selectorIndic=b.selector.find("div div");b.el=this;b.hue=d.find("div.colorpicker_hue div");d.find("div.colorpicker_hue").bind("mousedown",I);b.newColor=d.find("div.colorpicker_new_color");b.currentColor=
50
- d.find("div.colorpicker_current_color");d.data("colorpicker",b);d.find("div.colorpicker_submit").bind("mouseenter",K).bind("mouseleave",L).bind("click",M);j(b.color,d.get(0));o(b.color,d.get(0));l(b.color,d.get(0));q(b.color,d.get(0));p(b.color,d.get(0));s(b.color,d.get(0));r(b.color,d.get(0));b.flat?d.css({position:"relative",display:"block"}):c(this).bind(b.eventName,D)}})},showPicker:function(){return this.each(function(){c(this).data("colorpickerId")&&D.apply(this)})},hidePicker:function(){return this.each(function(){c(this).data("colorpickerId")&&
51
- c("#"+c(this).data("colorpickerId")).hide()})},setColor:function(a){if("string"==typeof a)a=n(t(a));else if(void 0!=a.r&&void 0!=a.g&&void 0!=a.b)a=n(a);else if(void 0!=a.h&&void 0!=a.s&&void 0!=a.b)a=u(a);else return this;return this.each(function(){if(c(this).data("colorpickerId")){var b=c("#"+c(this).data("colorpickerId"));b.data("colorpicker").color=a;b.data("colorpicker").origColor=a;j(a,b.get(0));o(a,b.get(0));l(a,b.get(0));q(a,b.get(0));p(a,b.get(0));s(a,b.get(0));r(a,b.get(0))}})}}}();c.fn.extend({ColorPicker:i.init,
52
- ColorPickerHide:i.hidePicker,ColorPickerShow:i.showPicker,ColorPickerSetColor:i.setColor})})(jQuery);
9
  jQuery("#fbSendButtonBottom-no").click(function(){this.checked&&jQuery(".sendbuttonpreviewBottom").fadeOut("fast")});jQuery("#googlePlusOneButtonTop-yes").click(function(){this.checked&&jQuery(".plusonepreviewTop").fadeIn("fast")});jQuery("#googlePlusOneButtonTop-no").click(function(){this.checked&&jQuery(".plusonepreviewTop").fadeOut("fast")});jQuery("#googlePlusOneButtonBottom-yes").click(function(){this.checked&&jQuery(".plusonepreviewBottom").fadeIn("fast")});jQuery("#googlePlusOneButtonBottom-no").click(function(){this.checked&&
10
  jQuery(".plusonepreviewBottom").fadeOut("fast")});jQuery("#tweetButtonTop-yes").click(function(){this.checked&&jQuery(".tweetbuttonpreviewTop").fadeIn("fast")});jQuery("#tweetButtonTop-no").click(function(){this.checked&&jQuery(".tweetbuttonpreviewTop").fadeOut("fast")});jQuery("#tweetButtonBottom-yes").click(function(){this.checked&&jQuery(".tweetbuttonpreviewBottom").fadeIn("fast")});jQuery("#tweetButtonBottom-no").click(function(){this.checked&&jQuery(".tweetbuttonpreviewBottom").fadeOut("fast")});
11
  jQuery("#fbLikeButtonTop-yes,#googlePlusOneButtonTop-yes,#fbSendButtonTop-yes,#tweetButtonTop-yes").click(function(){this.checked&&jQuery(".likeButtonSetOptionsTop").fadeIn("fast")});jQuery("#fbLikeButtonBottom-yes,#googlePlusOneButtonBottom-yes,#fbSendButtonBottom-yes,#tweetButtonBottom-yes").click(function(){this.checked&&jQuery(".likeButtonSetOptionsBottom").fadeIn("fast")});jQuery("#fbLikeButtonTop-no,#googlePlusOneButtonTop-no,#fbSendButtonTop-no,#tweetButtonTop-no").click(function(){jQuery("#fbLikeButtonTop-no").get(0).checked&&
12
+ (jQuery("#googlePlusOneButtonTop-no").get(0).checked&&jQuery("#tweetButtonTop-no").get(0).checked&&jQuery("#fbSendButtonTop-no").get(0).checked)&&jQuery(".likeButtonSetOptionsTop").fadeOut("fast")});jQuery("#fbLikeButtonBottom-no,#googlePlusOneButtonBottom-no,#fbSendButtonBottom-no,#tweetButtonBottom-no").click(function(){jQuery("#fbLikeButtonBottom-no").get(0).checked&&(jQuery("#googlePlusOneButtonBottom-no").get(0).checked&&jQuery("#tweetButtonBottom-no").get(0).checked&&jQuery("#fbSendButtonBottom-no").get(0).checked)&&
13
  jQuery(".likeButtonSetOptionsBottom").fadeOut("fast")});jQuery("#designer_toolTips-yes").click(function(){this.checked&&jQuery(".designer_toolTip_prefs").fadeIn("fast")});jQuery("#designer_toolTips-no").click(function(){this.checked&&jQuery(".designer_toolTip_prefs").fadeOut("fast")});jQuery('input[name="pubGaSocial"]').on("click",function(){jQuery(".pubGaSocial_prefs")[1==jQuery('input[name="pubGaSocial"]:checked').val()?"fadeIn":"fadeOut"]("fast")});jQuery("#recommendations-yes").click(function(){this.checked&&
14
  (jQuery(".recommendations_prefs-1").fadeIn("fast"),jQuery("#recommendations-style-image").get(0).checked&&jQuery(".recommendations_prefs-2").fadeIn("fast"))});jQuery("#recommendations-no").click(function(){this.checked&&(jQuery(".recommendations_prefs-1").fadeOut("fast"),jQuery(".recommendations_prefs-2").fadeOut("fast"))});jQuery("#recommendations-style-image").click(function(){this.checked&&jQuery(".recommendations_prefs-2").fadeIn("fast")});jQuery("#recommendations-style-text").click(function(){this.checked&&
15
  jQuery(".recommendations_prefs-2").fadeOut("fast")});jQuery("#cb-yes").click(function(){this.checked&&jQuery(".cb_prefs").fadeIn("fast")});jQuery("#cb-no").click(function(){this.checked&&jQuery(".cb_prefs").fadeOut("fast")});jQuery("#useSbSettings-yes").click(function(){this.checked&&jQuery(".topbar_prefs").fadeOut("fast")});jQuery("#useSbSettings-no").click(function(){this.checked&&jQuery(".topbar_prefs").fadeIn("fast")});jQuery("#position-above").click(function(){jQuery("#info-manual").is(":visible")&&
20
  (jQuery("#likeButtonSetTop-yes").get(0).checked&&jQuery(".likeButtonsAvailableTop").fadeIn("fast"),(jQuery("#fbLikeButtonTop-yes").get(0).checked||jQuery("#googlePlusOneButtonTop-yes").get(0).checked||jQuery("#tweetButtonTop-yes").get(0).checked||jQuery("#fbSendButtonTop-yes").get(0).checked)&&jQuery(".likeButtonSetOptionsTop").fadeIn("fast"),jQuery("#fbLikeButtonTop-yes").get(0).checked&&jQuery(".likebuttonpreviewTop").fadeIn("fast"),jQuery("#fbSendButtonTop-yes").get(0).checked&&jQuery(".sendbuttonpreviewTop").fadeIn("fast"),
21
  jQuery("#googlePlusOneButtonTop-yes").get(0).checked&&jQuery(".plusonepreviewTop").fadeIn("fast"),jQuery("#tweetButtonTop-yes").get(0).checked&&jQuery(".tweetbuttonpreviewTop").fadeIn("fast"));"undefined"!=typeof jQuery("#likeButtonSetBottom-yes")&&0<jQuery("#likeButtonSetBottom-yes").length&&(jQuery("#likeButtonSetBottom-yes").get(0).checked&&jQuery(".likeButtonsAvailableBottom").fadeIn("fast"),(jQuery("#fbLikeButtonBottom-yes").get(0).checked||jQuery("#googlePlusOneButtonBottom-yes").get(0).checked||
22
  jQuery("#tweetButtonBottom-yes").get(0).checked||jQuery("#fbSendButtonBottom-yes").get(0).checked)&&jQuery(".likeButtonSetOptionsBottom").fadeIn("fast"),jQuery("#fbLikeButtonBottom-yes").get(0).checked&&jQuery(".likebuttonpreviewBottom").fadeIn("fast"),jQuery("#fbSendButtonBottom-yes").get(0).checked&&jQuery(".sendbuttonpreviewBottom").fadeIn("fast"),jQuery("#googlePlusOneButtonBottom-yes").get(0).checked&&jQuery(".plusonepreviewBottom").fadeIn("fast"),jQuery("#tweetButtonBottom-yes").get(0).checked&&
23
+ jQuery(".tweetbuttonpreviewBottom").fadeIn("fast"));"undefined"!=typeof jQuery("#designer_toolTips-yes")&&0<jQuery("#designer_toolTips-yes").length&&(jQuery("#designer_toolTips-yes").get(0).checked&&jQuery(".designer_toolTip_prefs").fadeIn("fast"),jQuery("#tip_bg_color_picker_holder").ColorPicker({flat:!0,color:jQuery("#tip_bg_color").val(),onChange:function(c,d,k,e){jQuery("#tip_bg_color").val("#"+d);jQuery("#tip_bg_color_picker div").css("backgroundColor","#"+d)},onSubmit:function(c,d,k,e){jQuery("#tip_bg_color").val("#"+
24
+ d);jQuery("#tip_bg_color_picker div").css("backgroundColor","#"+d);jQuery("#tip_bg_color_picker_holder").toggle()}}),jQuery("#tip_bg_color_picker_holder").find("input").each(function(c){jQuery(this).attr("maxlength","50")}),jQuery("#tip_bg_color_picker div").bind("click",function(){jQuery("#tip_bg_color_picker_holder").toggle();jQuery("#tip_bg_color_picker_holder").ColorPickerSetColor(jQuery("#tip_bg_color").val());jQuery("body").trigger("click");jQuery("#tip_bg_color_picker_holder").is(":visible")&&
25
+ jQuery("body").bind("click",function(){jQuery("#tip_bg_color_picker_holder").hide();jQuery("body").unbind("click")});return!1}),jQuery("#tip_bg_color_reset").bind("click",function(){jQuery("#tip_bg_color").val("#000000");jQuery("#tip_bg_color_picker div").css("backgroundColor","#000000")}),jQuery("#tip_bg_color_picker_holder").click(function(){return!1}),jQuery("#tip_text_color_picker_holder").ColorPicker({flat:!0,color:jQuery("#tip_text_color").val(),onChange:function(c,d,k,e){jQuery("#tip_text_color").val("#"+
26
+ d);jQuery("#tip_text_color_picker div").css("backgroundColor","#"+d)},onSubmit:function(c,d,k,e){jQuery("#tip_text_color").val("#"+d);jQuery("#tip_text_color_picker div").css("backgroundColor","#"+d);jQuery("#tip_text_color_picker_holder").toggle()}}),jQuery("#tip_text_color_picker_holder").find("input").each(function(c){jQuery(this).attr("maxlength","50")}),jQuery("#tip_text_color_picker div").bind("click",function(){jQuery("#tip_text_color_picker_holder").toggle();jQuery("#tip_text_color_picker_holder").ColorPickerSetColor(jQuery("#tip_text_color").val());
27
+ jQuery("body").trigger("click");jQuery("#tip_text_color_picker_holder").is(":visible")&&jQuery("body").bind("click",function(){jQuery("#tip_text_color_picker_holder").hide();jQuery("body").unbind("click")});return!1}),jQuery("#tip_text_color_picker_holder").click(function(){return!1}),jQuery("#tip_text_color_reset").bind("click",function(){jQuery("#tip_text_color").val("#ffffff");jQuery("#tip_text_color_picker div").css("backgroundColor","#ffffff")}));"undefined"!=typeof jQuery("#pubGaSocial-yes")&&
28
  0<jQuery("#pubGaSocial-yes").length&&(c=jQuery("#pubGaSocial-yes").get(0).checked)&&jQuery(".pubGaSocial_prefs").fadeIn("fast");if("undefined"!=typeof jQuery("#recommendations-yes")&&0<jQuery("#recommendations-yes").length&&(c=jQuery("#recommendations-yes").get(0).checked))jQuery(".recommendations_prefs-1").fadeIn("fast"),jQuery("#recommendations-style-image").get(0).checked&&jQuery(".recommendations_prefs-2").fadeIn("fast");"undefined"!=typeof jQuery("#cb-yes")&&0<jQuery("#cb-yes").length&&(c=jQuery("#cb-yes").get(0).checked)&&
29
+ jQuery(".cb_prefs").fadeIn("fast");"undefined"!=typeof jQuery("#useSbSettings-no")&&0<jQuery("#useSbSettings-no").length&&(jQuery("#useSbSettings-no").get(0).checked&&jQuery(".topbar_prefs").fadeIn("fast"),jQuery("#tb_bg_color_picker_holder").ColorPicker({flat:!0,color:jQuery("#tb_bg_color").val(),onChange:function(c,d,k,e){jQuery("#tb_bg_color").val("#"+d);jQuery("#tb_bg_color_picker div").css("backgroundColor","#"+d)},onSubmit:function(c,d,k,e){jQuery("#tb_bg_color").val("#"+d);jQuery("#tb_bg_color_picker div").css("backgroundColor",
30
+ "#"+d);jQuery("#tb_bg_color_picker_holder").toggle()}}),jQuery("#tb_bg_color_picker_holder").find("input").each(function(c){jQuery(this).attr("maxlength","50")}),jQuery("#tb_bg_color_picker div").bind("click",function(){jQuery("#tb_bg_color_picker_holder").toggle();jQuery("#tb_bg_color_picker_holder").ColorPickerSetColor(jQuery("#tb_bg_color").val());jQuery("body").trigger("click");jQuery("#tb_bg_color_picker_holder").is(":visible")&&jQuery("body").bind("click",function(){jQuery("#tb_bg_color_picker_holder").hide();
31
+ jQuery("body").unbind("click")});return!1}),jQuery("#tb_bg_color_reset").bind("click",function(){jQuery("#tb_bg_color").val("#000000");jQuery("#tb_bg_color_picker div").css("backgroundColor","#000000")}),jQuery("#tb_bg_color_picker_holder").click(function(){return!1}),jQuery("#tb_border_color_picker_holder").ColorPicker({flat:!0,color:jQuery("#tb_border_color").val(),onChange:function(c,d,k,e){jQuery("#tb_border_color").val("#"+d);jQuery("#tb_border_color_picker div").css("backgroundColor","#"+d)},
32
+ onSubmit:function(c,d,k,e){jQuery("#tb_border_color").val("#"+d);jQuery("#tb_border_color_picker div").css("backgroundColor","#"+d);jQuery("#tb_border_color_picker_holder").toggle()}}),jQuery("#tb_border_color_picker_holder").find("input").each(function(c){jQuery(this).attr("maxlength","50")}),jQuery("#tb_border_color_picker div").bind("click",function(){jQuery("#tb_border_color_picker_holder").toggle();jQuery("#tb_border_color_picker_holder").ColorPickerSetColor(jQuery("#tb_border_color").val());
33
+ jQuery("body").trigger("click");jQuery("#tb_border_color_picker_holder").is(":visible")&&jQuery("body").bind("click",function(){jQuery("#tb_border_color_picker_holder").hide();jQuery("body").unbind("click")});return!1}),jQuery("#tb_border_color_reset").bind("click",function(){jQuery("#tb_border_color").val("#000000");jQuery("#tb_border_color_picker div").css("backgroundColor","#000000")}),jQuery("#tb_border_color_picker_holder").click(function(){return!1}))}});
34
+ (function(c){var l=function(){var d=65,k={eventName:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:"ff0000",livePreview:!0,flat:!1},e=function(a,b){var f=m(a);c(b).data("colorpicker").fields.eq(1).val(f.r).end().eq(2).val(f.g).end().eq(3).val(f.b).end()},l=function(a,b){c(b).data("colorpicker").fields.eq(4).val(a.h).end().eq(5).val(a.s).end().eq(6).val(a.b).end()},p=function(a,b){c(b).data("colorpicker").fields.eq(0).val(n(m(a))).end()},
35
+ s=function(a,b){c(b).data("colorpicker").selector.css("backgroundColor","#"+n(m({h:a.h,s:100,b:100})));c(b).data("colorpicker").selectorIndic.css({left:parseInt(150*a.s/100,10),top:parseInt(150*(100-a.b)/100,10)})},t=function(a,b){c(b).data("colorpicker").hue.css("top",parseInt(150-150*a.h/360,10))},v=function(a,b){c(b).data("colorpicker").currentColor.css("backgroundColor","#"+n(m(a)))},u=function(a,b){c(b).data("colorpicker").newColor.css("backgroundColor","#"+n(m(a)))},G=function(a){a=a.charCode||
36
+ a.keyCode||-1;if(a>d&&90>=a||32==a)return!1;!0===c(this).parent().parent().data("colorpicker").livePreview&&q.apply(this)},q=function(a){var b=c(this).parent().parent(),f;if(0<this.parentNode.className.indexOf("_hex")){f=b.data("colorpicker");var g=this.value,d=6-g.length;if(0<d){for(var h=[],k=0;k<d;k++)h.push("0");h.push(g);g=h.join("")}g=r(w(g));f.color=f=g}else 0<this.parentNode.className.indexOf("_hsb")?b.data("colorpicker").color=f=x({h:parseInt(b.data("colorpicker").fields.eq(4).val(),10),
37
+ s:parseInt(b.data("colorpicker").fields.eq(5).val(),10),b:parseInt(b.data("colorpicker").fields.eq(6).val(),10)}):(f=b.data("colorpicker"),g=parseInt(b.data("colorpicker").fields.eq(1).val(),10),d=parseInt(b.data("colorpicker").fields.eq(2).val(),10),h=parseInt(b.data("colorpicker").fields.eq(3).val(),10),g={r:Math.min(255,Math.max(0,g)),g:Math.min(255,Math.max(0,d)),b:Math.min(255,Math.max(0,h))},f.color=f=r(g));a&&(e(f,b.get(0)),p(f,b.get(0)),l(f,b.get(0)));s(f,b.get(0));t(f,b.get(0));u(f,b.get(0));
38
+ b.data("colorpicker").onChange.apply(b,[f,n(m(f)),m(f)])},H=function(a){c(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus")},I=function(){d=0<this.parentNode.className.indexOf("_hex")?70:65;c(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus");c(this).parent().addClass("colorpicker_focus")},J=function(a){var b=c(this).parent().find("input").focus();a={el:c(this).parent().addClass("colorpicker_slider"),max:0<this.parentNode.className.indexOf("_hsb_h")?
39
+ 360:0<this.parentNode.className.indexOf("_hsb")?100:255,y:a.pageY,field:b,val:parseInt(b.val(),10),preview:c(this).parent().parent().data("colorpicker").livePreview};c(document).bind("mouseup",a,y);c(document).bind("mousemove",a,z)},z=function(a){a.data.field.val(Math.max(0,Math.min(a.data.max,parseInt(a.data.val+a.pageY-a.data.y,10))));a.data.preview&&q.apply(a.data.field.get(0),[!0]);return!1},y=function(a){q.apply(a.data.field.get(0),[!0]);a.data.el.removeClass("colorpicker_slider").find("input").focus();
40
+ c(document).unbind("mouseup",y);c(document).unbind("mousemove",z);return!1},K=function(a){a={cal:c(this).parent(),y:c(this).offset().top};a.preview=a.cal.data("colorpicker").livePreview;c(document).bind("mouseup",a,A);c(document).bind("mousemove",a,B)},B=function(a){q.apply(a.data.cal.data("colorpicker").fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,a.pageY-a.data.y)))/150,10)).get(0),[a.data.preview]);return!1},A=function(a){e(a.data.cal.data("colorpicker").color,a.data.cal.get(0));
41
+ p(a.data.cal.data("colorpicker").color,a.data.cal.get(0));c(document).unbind("mouseup",A);c(document).unbind("mousemove",B);return!1},L=function(a){a={cal:c(this).parent(),pos:c(this).offset()};a.preview=a.cal.data("colorpicker").livePreview;c(document).bind("mouseup",a,C);c(document).bind("mousemove",a,D)},D=function(a){q.apply(a.data.cal.data("colorpicker").fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,a.pageY-a.data.pos.top)))/150,10)).end().eq(5).val(parseInt(100*Math.max(0,Math.min(150,
42
+ a.pageX-a.data.pos.left))/150,10)).get(0),[a.data.preview]);return!1},C=function(a){e(a.data.cal.data("colorpicker").color,a.data.cal.get(0));p(a.data.cal.data("colorpicker").color,a.data.cal.get(0));c(document).unbind("mouseup",C);c(document).unbind("mousemove",D);return!1},M=function(a){c(this).addClass("colorpicker_focus")},N=function(a){c(this).removeClass("colorpicker_focus")},O=function(a){a=c(this).parent();var b=a.data("colorpicker").color;a.data("colorpicker").origColor=b;v(b,a.get(0));a.data("colorpicker").onSubmit(b,
43
+ n(m(b)),m(b),a.data("colorpicker").el)},F=function(a){var b,f,g=c("#"+c(this).data("colorpickerId"));g.data("colorpicker").onBeforeShow.apply(this,[g.get(0)]);var d=c(this).offset(),h="CSS1Compat"==document.compatMode;a=window.pageXOffset||(h?document.documentElement.scrollLeft:document.body.scrollLeft);b=window.pageYOffset||(h?document.documentElement.scrollTop:document.body.scrollTop);f=window.innerWidth||(h?document.documentElement.clientWidth:document.body.clientWidth);var e=d.top+this.offsetHeight,
44
+ d=d.left;e+176>b+(window.innerHeight||(h?document.documentElement.clientHeight:document.body.clientHeight))&&(e-=this.offsetHeight+176);d+356>a+f&&(d-=356);g.css({left:d+"px",top:e+"px"});!1!=g.data("colorpicker").onShow.apply(this,[g.get(0)])&&g.show();c(document).bind("mousedown",{cal:g},E);return!1},E=function(a){P(a.data.cal.get(0),a.target,a.data.cal.get(0))||(!1!=a.data.cal.data("colorpicker").onHide.apply(this,[a.data.cal.get(0)])&&a.data.cal.hide(),c(document).unbind("mousedown",E))},P=function(a,
45
+ b,c){if(a==b)return!0;if(a.contains)return a.contains(b);if(a.compareDocumentPosition)return!!(a.compareDocumentPosition(b)&16);for(b=b.parentNode;b&&b!=c;){if(b==a)return!0;b=b.parentNode}return!1},x=function(a){return{h:Math.min(360,Math.max(0,a.h)),s:Math.min(100,Math.max(0,a.s)),b:Math.min(100,Math.max(0,a.b))}},w=function(a){a=parseInt(-1<a.indexOf("#")?a.substring(1):a,16);return{r:a>>16,g:(a&65280)>>8,b:a&255}},r=function(a){var b={h:0,s:0,b:0},c=Math.min(a.r,a.g,a.b),d=Math.max(a.r,a.g,a.b),
46
+ c=d-c;b.b=d;b.s=0!=d?255*c/d:0;b.h=0!=b.s?a.r==d?(a.g-a.b)/c:a.g==d?2+(a.b-a.r)/c:4+(a.r-a.g)/c:-1;b.h*=60;0>b.h&&(b.h+=360);b.s*=100/255;b.b*=100/255;return b},m=function(a){var b,c,d;b=Math.round(a.h);var e=Math.round(255*a.s/100);a=Math.round(255*a.b/100);if(0==e)b=c=d=a;else{var e=(255-e)*a/255,h=(a-e)*(b%60)/60;360==b&&(b=0);60>b?(b=a,d=e,c=e+h):120>b?(c=a,d=e,b=a-h):180>b?(c=a,b=e,d=e+h):240>b?(d=a,b=e,c=a-h):300>b?(d=a,c=e,b=e+h):360>b?(b=a,c=e,d=a-h):d=c=b=0}return{r:Math.round(b),g:Math.round(c),
47
+ b:Math.round(d)}},n=function(a){var b=[a.r.toString(16),a.g.toString(16),a.b.toString(16)];c.each(b,function(a,c){1==c.length&&(b[a]="0"+c)});return b.join("")},Q=function(){var a=c(this).parent(),b=a.data("colorpicker").origColor;a.data("colorpicker").color=b;e(b,a.get(0));p(b,a.get(0));l(b,a.get(0));s(b,a.get(0));t(b,a.get(0));u(b,a.get(0))};return{init:function(a){a=c.extend({},k,a||{});if("string"==typeof a.color)a.color=r(w(a.color));else if(void 0!=a.color.r&&void 0!=a.color.g&&void 0!=a.color.b)a.color=
48
+ r(a.color);else if(void 0!=a.color.h&&void 0!=a.color.s&&void 0!=a.color.b)a.color=x(a.color);else return this;return this.each(function(){if(!c(this).data("colorpickerId")){var b=c.extend({},a);b.origColor=a.color;var d="collorpicker_"+parseInt(1E3*Math.random());c(this).data("colorpickerId",d);d=c('<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>').attr("id",
49
+ d);b.flat?d.appendTo(this).show():d.appendTo(document.body);b.fields=d.find("input").bind("keyup",G).bind("change",q).bind("blur",H).bind("focus",I);d.find("span").bind("mousedown",J).end().find(">div.colorpicker_current_color").bind("click",Q);b.selector=d.find("div.colorpicker_color").bind("mousedown",L);b.selectorIndic=b.selector.find("div div");b.el=this;b.hue=d.find("div.colorpicker_hue div");d.find("div.colorpicker_hue").bind("mousedown",K);b.newColor=d.find("div.colorpicker_new_color");b.currentColor=
50
+ d.find("div.colorpicker_current_color");d.data("colorpicker",b);d.find("div.colorpicker_submit").bind("mouseenter",M).bind("mouseleave",N).bind("click",O);e(b.color,d.get(0));l(b.color,d.get(0));p(b.color,d.get(0));t(b.color,d.get(0));s(b.color,d.get(0));v(b.color,d.get(0));u(b.color,d.get(0));b.flat?d.css({position:"relative",display:"block"}):c(this).bind(b.eventName,F)}})},showPicker:function(){return this.each(function(){c(this).data("colorpickerId")&&F.apply(this)})},hidePicker:function(){return this.each(function(){c(this).data("colorpickerId")&&
51
+ c("#"+c(this).data("colorpickerId")).hide()})},setColor:function(a){if("string"==typeof a)a=r(w(a));else if(void 0!=a.r&&void 0!=a.g&&void 0!=a.b)a=r(a);else if(void 0!=a.h&&void 0!=a.s&&void 0!=a.b)a=x(a);else return this;return this.each(function(){if(c(this).data("colorpickerId")){var b=c("#"+c(this).data("colorpickerId"));b.data("colorpicker").color=a;b.data("colorpicker").origColor=a;e(a,b.get(0));l(a,b.get(0));p(a,b.get(0));t(a,b.get(0));s(a,b.get(0));v(a,b.get(0));u(a,b.get(0))}})}}}();c.fn.extend({ColorPicker:l.init,
52
+ ColorPickerHide:l.hidePicker,ColorPickerShow:l.showPicker,ColorPickerSetColor:l.setColor})})(jQuery);
js/shareaholic-promo.min.js CHANGED
@@ -1,5 +1,5 @@
1
  var shr_cdn_root="https://dtym7iokkjlif.cloudfront.net";function getBrowser(){var a=navigator.userAgent,c="";-1!=a.indexOf("MSIE")?c="Internet Explorer":-1!=a.indexOf("Firefox")?c="Firefox":-1!=a.indexOf("Flock")?c="Flock":-1!=a.indexOf("Chrome")?c="Google Chrome":-1!=a.indexOf("Safari")?c="Safari":-1!=a.indexOf("Opera")?c="Opera":-1!=a.indexOf("Songbird")&&(c="Songbird");return c}
2
- jQuery(window).load(function(){jQuery.cookie=function(c,a,b){if("undefined"!=typeof a){b=b||{};null===a&&(a="",b.expires=-1);var d="";if(b.expires&&("number"==typeof b.expires||b.expires.toUTCString))"number"==typeof b.expires?(d=new Date,d.setTime(d.getTime()+864E5*b.expires)):d=b.expires,d="; expires="+d.toUTCString();var e=b.path?"; path="+b.path:"",g=b.domain?"; domain="+b.domain:"",b=b.secure?"; secure":"";document.cookie=[c,"=",encodeURIComponent(a),d,e,g,b].join("")}else{a=null;if(document.cookie&&
3
  ""!=document.cookie){b=document.cookie.split(";");for(d=0;d<b.length;d++)if(e=jQuery.trim(b[d]),e.substring(0,c.length+1)==c+"="){a=decodeURIComponent(e.substring(c.length+1));break}}return a}};var a="";switch(getBrowser()){case "Firefox":a='<div id="ext-promo-prompt" class="fs_a fs_c_midgrey2"><img src="'+shr_cdn_root+'/media/images/firefox_32x32.png" height=24 width=24 align="absmiddle" style="margin: -4px 8px 0 8px;" />Get the <a href="https://addons.mozilla.org/en-US/firefox/addon/5457/" target="_new">shareaholic firefox extension</a> - It is the best way to <a href="https://addons.mozilla.org/en-US/firefox/addon/5457/" target="_new">share your content, discover, and connect with the Best of the Web</a>! <a class="close" href="javascript:ext_promo_noThanks();">x</a> <a class="install rounded_5" href="https://addons.mozilla.org/en-US/firefox/addon/5457/" target="_new">Install</a></div>';
4
  break;case "Google Chrome":a='<div id="ext-promo-prompt" class="fs_a fs_c_midgrey2"><img src="'+shr_cdn_root+'/media/images/chrome_32x32.png" height=24 width=24 align="absmiddle" style="margin: -4px 8px 0 8px;" />Get the <a href="https://chrome.google.com/webstore/detail/kbmipnjdeifmobkhgogdnomkihhgojep" target="_new">shareaholic chrome extension</a> - It is the best way to <a href="https://chrome.google.com/webstore/detail/kbmipnjdeifmobkhgogdnomkihhgojep" target="_new">share your content, discover, and connect with the Best of the Web</a>! <a class="close" href="javascript:ext_promo_noThanks();">x</a> <a class="install rounded_5" href="https://chrome.google.com/webstore/detail/kbmipnjdeifmobkhgogdnomkihhgojep" target="_new">Install</a></div>'}setTimeout(function(){if(0==
5
  jQuery(".extLives").length){var c=jQuery.cookie("no_cp"),f=window!=window.top;1!=c&&!f&&(jQuery("body").prepend(a),0!=jQuery("#wpadminbar").length&&(jQuery("#ext-promo-prompt").css("margin-top",jQuery("#wpadminbar").css("height")),jQuery("#ext-promo-prompt").css("margin-bottom","-"+jQuery("#ext-promo-prompt").css("height"))),jQuery("div#ext-promo-prompt").show())}},500)});function ext_promo_noThanks(){jQuery.cookie("no_cp","1",{expires:60,path:"/"});jQuery("div#ext-promo-prompt").hide()};
1
  var shr_cdn_root="https://dtym7iokkjlif.cloudfront.net";function getBrowser(){var a=navigator.userAgent,c="";-1!=a.indexOf("MSIE")?c="Internet Explorer":-1!=a.indexOf("Firefox")?c="Firefox":-1!=a.indexOf("Flock")?c="Flock":-1!=a.indexOf("Chrome")?c="Google Chrome":-1!=a.indexOf("Safari")?c="Safari":-1!=a.indexOf("Opera")?c="Opera":-1!=a.indexOf("Songbird")&&(c="Songbird");return c}
2
+ jQuery(window).load(function(){jQuery.cookie=function(c,a,b){if("undefined"!=typeof a){b=b||{};null===a&&(a="",b.expires=-1);var d="";if(b.expires&&("number"==typeof b.expires||b.expires.toUTCString))"number"==typeof b.expires?(d=new Date,d.setTime(d.getTime()+864E5*b.expires)):d=b.expires,d="; expires="+d.toUTCString();var e=b.path?"; path="+b.path:"",g=b.domain?"; domain="+b.domain:"";b=b.secure?"; secure":"";document.cookie=[c,"=",encodeURIComponent(a),d,e,g,b].join("")}else{a=null;if(document.cookie&&
3
  ""!=document.cookie){b=document.cookie.split(";");for(d=0;d<b.length;d++)if(e=jQuery.trim(b[d]),e.substring(0,c.length+1)==c+"="){a=decodeURIComponent(e.substring(c.length+1));break}}return a}};var a="";switch(getBrowser()){case "Firefox":a='<div id="ext-promo-prompt" class="fs_a fs_c_midgrey2"><img src="'+shr_cdn_root+'/media/images/firefox_32x32.png" height=24 width=24 align="absmiddle" style="margin: -4px 8px 0 8px;" />Get the <a href="https://addons.mozilla.org/en-US/firefox/addon/5457/" target="_new">shareaholic firefox extension</a> - It is the best way to <a href="https://addons.mozilla.org/en-US/firefox/addon/5457/" target="_new">share your content, discover, and connect with the Best of the Web</a>! <a class="close" href="javascript:ext_promo_noThanks();">x</a> <a class="install rounded_5" href="https://addons.mozilla.org/en-US/firefox/addon/5457/" target="_new">Install</a></div>';
4
  break;case "Google Chrome":a='<div id="ext-promo-prompt" class="fs_a fs_c_midgrey2"><img src="'+shr_cdn_root+'/media/images/chrome_32x32.png" height=24 width=24 align="absmiddle" style="margin: -4px 8px 0 8px;" />Get the <a href="https://chrome.google.com/webstore/detail/kbmipnjdeifmobkhgogdnomkihhgojep" target="_new">shareaholic chrome extension</a> - It is the best way to <a href="https://chrome.google.com/webstore/detail/kbmipnjdeifmobkhgogdnomkihhgojep" target="_new">share your content, discover, and connect with the Best of the Web</a>! <a class="close" href="javascript:ext_promo_noThanks();">x</a> <a class="install rounded_5" href="https://chrome.google.com/webstore/detail/kbmipnjdeifmobkhgogdnomkihhgojep" target="_new">Install</a></div>'}setTimeout(function(){if(0==
5
  jQuery(".extLives").length){var c=jQuery.cookie("no_cp"),f=window!=window.top;1!=c&&!f&&(jQuery("body").prepend(a),0!=jQuery("#wpadminbar").length&&(jQuery("#ext-promo-prompt").css("margin-top",jQuery("#wpadminbar").css("height")),jQuery("#ext-promo-prompt").css("margin-bottom","-"+jQuery("#ext-promo-prompt").css("height"))),jQuery("div#ext-promo-prompt").show())}},500)});function ext_promo_noThanks(){jQuery.cookie("no_cp","1",{expires:60,path:"/"});jQuery("div#ext-promo-prompt").hide()};
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === Shareaholic | email, bookmark, share buttons ===
2
  Contributors: shareaholic
3
- Tags: SexyBookmarks, SexyBookmark, Facebook, Twitter, LinkedIn, URL Shortener, Bitly, TinyURL, Supr, Goo.gl, Google +1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Google Gmail, Google Notebook, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, Bebo, Mister Wong, Evernote, Twine, Diigo, add this, addtoany, share this, share and follow, share and enjoy, sharing is sexy, sharing is caring, Mail, Yahoo, Reddit, Techmeme, Hacker News, Tweet Button, Twitter Button, Fark, Buffer, MySpace, Orkut, Plurk, Identi.ca, Hyves, Netlog, HubSpot, WeHeartIt, Yandex, PrintFriendly, Print, ReadItLater, Yammer, Pinterest, Google Translate, Pinboard, Shareaholic, Shareholic, Bookmarks, Social, Email Button, Social Share, Bookmark Button, Share Button, Social Bookmarking, Bookmarks Menu, Bookmarking, Share, Share Count, Sharebar, Social Media, SEO, Analytics, Stats, Sharing, Saving, Posting, Facebook Like, Facebook Recommend, Facebook Send, WPMU, nrelate, outbrain, linkwithin, Related Content, Related Posts, Thumbnails, Recommendations
4
  Requires at least: 2.7
5
  Tested up to: 3.5.1
6
- Stable tag: 6.1.3.1
7
 
8
  Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
9
 
@@ -125,6 +125,11 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
125
 
126
  == Changelog ==
127
 
 
 
 
 
 
128
  = 6.1.3.1 =
129
  * Bug fixes & event reporting
130
 
@@ -825,6 +830,10 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
825
  * Initial release!
826
 
827
  == Upgrade Notice ==
 
 
 
 
828
  = 3.2.3.1 =
829
  Fixed small bug with short URL function which caused it to fail if you do not have cURL enabled
830
 
1
+ === Shareaholic | share buttons, related content ===
2
  Contributors: shareaholic
3
+ Tags: SexyBookmarks, SexyBookmark, Facebook, Twitter, LinkedIn, URL Shortener, Bitly, TinyURL, Supr, Goo.gl, Google +1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Google Gmail, Google Notebook, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, Bebo, Mister Wong, Evernote, Twine, Diigo, add this, addtoany, share this, share and follow, share and enjoy, sharing is sexy, sharing is caring, Mail, Yahoo, Reddit, Techmeme, Hacker News, Tweet Button, Twitter Button, Fark, Buffer, MySpace, Orkut, Plurk, Identi.ca, Hyves, Netlog, HubSpot, WeHeartIt, Yandex, PrintFriendly, Print, ReadItLater, Yammer, Pinterest, Google Translate, Pinboard, Shareaholic, Shareholic, Bookmarks, Social, Email Button, Social Share, Bookmark Button, Share Button, Social Bookmarking, Bookmarks Menu, Bookmarking, Share, Share Count, Sharebar, Social Media, SEO, Analytics, Stats, Sharing, Saving, Posting, Facebook Like, Facebook Recommend, Facebook Send, WPMU, yaarp, nrelate, outbrain, linkwithin, Related Content, Related Posts, Thumbnails, Recommendations
4
  Requires at least: 2.7
5
  Tested up to: 3.5.1
6
+ Stable tag: 6.1.3.2
7
 
8
  Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
9
 
125
 
126
  == Changelog ==
127
 
128
+ = 6.1.3.2 =
129
+ * Upgraded PHP short tags
130
+ * Much faster Related Content processing for new users!
131
+ * A host of bug fixes and performance improvements
132
+
133
  = 6.1.3.1 =
134
  * Bug fixes & event reporting
135
 
830
  * Initial release!
831
 
832
  == Upgrade Notice ==
833
+
834
+ = 6.1.3.2 =
835
+ Several bug fixes and performance improvements. This is a highly recommended upgrade!
836
+
837
  = 3.2.3.1 =
838
  Fixed small bug with short URL function which caused it to fail if you do not have cURL enabled
839
 
sexy-bookmarks.php CHANGED
@@ -2,8 +2,8 @@
2
  /*
3
  Plugin Name: Shareaholic | share buttons, analytics, related content
4
  Plugin URI: https://shareaholic.com/publishers/
5
- Description: Shareaholic adds a (X)HTML compliant list of social bookmarking icons to each of your posts. See <a href="admin.php?page=sexy-bookmarks.php">configuration panel</a> for more settings.
6
- Version: 6.1.3.1
7
  Author: Shareaholic
8
  Author URI: https://shareaholic.com
9
  Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
@@ -11,25 +11,39 @@ Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
11
 
12
 
13
  /*
14
- * @desc Report Plugin Installation
15
  */
16
 
17
- if(false == get_option('SHRSBvNum') || get_option('SHRSBvNum') == '') {
18
- shrsb_sendTrackingEvent('Install_Fresh');
19
- }
20
 
21
  /*
22
- * @desc Define Plugin version
23
  */
24
 
25
- define('SHRSB_vNum','6.1.3.1');
26
 
27
 
28
  /*
29
- * @desc Create Text Domain For Translations
30
  */
31
 
32
- load_plugin_textdomain('shrsb', false, basename(dirname(__FILE__)) . '/languages/');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
  /*
35
  * @note Make sure to include files first as there may be dependencies
@@ -150,7 +164,7 @@ function shr_getTrackingData() {
150
  }
151
 
152
  //send a tracking event with the default analytics values and extras passed as a key-value array
153
- function shrsb_sendTrackingEvent($event_name = 'Default', $extra_params) {
154
  global $tracking_metadata;
155
  $event_data = isset($tracking_metadata) ? $tracking_metadata : shr_getTrackingData();
156
  if (isset($extra_params)) {
@@ -162,20 +176,10 @@ function shrsb_sendTrackingEvent($event_name = 'Default', $extra_params) {
162
  $response = wp_remote_post($trackingURL, array('body' => $trackingParams) );
163
  }
164
 
165
- //Get the current Version from the database
166
- $shrsb_version = get_option('SHRSBvNum');
167
-
168
- // if the version number is set and is not the latest, then call the upgrade function
169
- if(false !== $shrsb_version && $shrsb_version !== SHRSB_vNum ) {
170
- update_option('SHRSB_DefaultSprite',true);
171
- add_action('admin_notices', 'shrsb_Upgrade', 12);
172
-
173
- // shrsb_sendTrackingEvent('Upgrade', array('prev_plugin_ver' => get_option('SHRSBvNum')) );
174
-
175
- // Added global variable to track the updating state
176
- define('SHRSB_UPGRADING', TRUE);
177
- } else {
178
- define('SHRSB_UPGRADING', FALSE);
179
  }
180
 
181
  $default_spritegen = get_option('SHRSB_DefaultSprite');
@@ -231,11 +235,16 @@ function shrsb_Activate() {
231
  delete_option('SHRSB_CustomSprite');
232
  delete_option('ShareaholicRecommendations');
233
  delete_option('ShareaholicClassicBookmarks');
 
 
 
234
  }
235
  if(!file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png') || !file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css')) {
236
  delete_option('SHRSB_CustomSprite');
237
  }
238
- shrsb_sendTrackingEvent('Activate');
 
 
239
  }
240
  register_activation_hook( __FILE__, 'shrsb_Activate' );
241
 
@@ -244,13 +253,27 @@ function shrsb_deActivate() {
244
  if(false !== get_option('SHRSBvNum') || get_option('SHRSBvNum') != '') {
245
  update_option('SHRSBvNum', SHRSB_vNum);
246
  }
247
- shrsb_sendTrackingEvent('Deactivate');
248
  }
249
  register_deactivation_hook( __FILE__, 'shrsb_deActivate' );
250
 
251
  //adding uninstall_hook
252
  function shrsb_uninstall() {
253
- shrsb_sendTrackingEvent('Uninstall');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
  }
255
  register_uninstall_hook( __FILE__, 'shrsb_uninstall');
256
 
@@ -428,8 +451,8 @@ function shrsb_first_page(){
428
 
429
  function shrsb_check_activation(){
430
  $activated = get_option('SHR_activate');
431
- if($activated == 0 || $activated === false){
432
- if($_POST['activate'] == 1){
433
  update_option("SHR_activate",1);
434
  return true;
435
  }
2
  /*
3
  Plugin Name: Shareaholic | share buttons, analytics, related content
4
  Plugin URI: https://shareaholic.com/publishers/
5
+ Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=sexy-bookmarks.php">configuration panel</a> for more settings.
6
+ Version: 6.1.3.2
7
  Author: Shareaholic
8
  Author URI: https://shareaholic.com
9
  Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
11
 
12
 
13
  /*
14
+ * @desc Define Plugin version
15
  */
16
 
17
+ define('SHRSB_vNum','6.1.3.2');
18
+
 
19
 
20
  /*
21
+ * @desc Create Text Domain For Translations
22
  */
23
 
24
+ load_plugin_textdomain('shrsb', false, basename(dirname(__FILE__)) . '/languages/');
25
 
26
 
27
  /*
28
+ * @desc Set "upgrade" state
29
  */
30
 
31
+ //Get the current Version from the database
32
+ $shrsb_version = get_option('SHRSBvNum');
33
+
34
+ // if the version number is set and is not the latest, then call the upgrade function
35
+ if(false !== $shrsb_version && $shrsb_version !== SHRSB_vNum ) {
36
+ update_option('SHRSB_DefaultSprite',true);
37
+ add_action('admin_notices', 'shrsb_Upgrade', 12);
38
+
39
+ // shr_sendTrackingEvent('Upgrade', array('prev_plugin_ver' => get_option('SHRSBvNum')) );
40
+
41
+ // Added global variable to track the updating state
42
+ define('SHRSB_UPGRADING', TRUE);
43
+ } else {
44
+ define('SHRSB_UPGRADING', FALSE);
45
+ }
46
+
47
 
48
  /*
49
  * @note Make sure to include files first as there may be dependencies
164
  }
165
 
166
  //send a tracking event with the default analytics values and extras passed as a key-value array
167
+ function shr_sendTrackingEvent($event_name = 'Default', $extra_params = NULL) {
168
  global $tracking_metadata;
169
  $event_data = isset($tracking_metadata) ? $tracking_metadata : shr_getTrackingData();
170
  if (isset($extra_params)) {
176
  $response = wp_remote_post($trackingURL, array('body' => $trackingParams) );
177
  }
178
 
179
+ // kicks off Recommendations
180
+ function shr_recommendationsStatus() {
181
+ $recommendationsStatusURL = "https://www.shareaholic.com/v2/recommendations/status?url=".home_url();
182
+ $response = wp_remote_post($recommendationsStatusURL);
 
 
 
 
 
 
 
 
 
 
183
  }
184
 
185
  $default_spritegen = get_option('SHRSB_DefaultSprite');
235
  delete_option('SHRSB_CustomSprite');
236
  delete_option('ShareaholicRecommendations');
237
  delete_option('ShareaholicClassicBookmarks');
238
+
239
+ // Report fresh plugin Installation
240
+ shr_sendTrackingEvent('Install_Fresh');
241
  }
242
  if(!file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png') || !file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css')) {
243
  delete_option('SHRSB_CustomSprite');
244
  }
245
+ shr_sendTrackingEvent('Activate');
246
+ shr_recommendationsStatus();
247
+
248
  }
249
  register_activation_hook( __FILE__, 'shrsb_Activate' );
250
 
253
  if(false !== get_option('SHRSBvNum') || get_option('SHRSBvNum') != '') {
254
  update_option('SHRSBvNum', SHRSB_vNum);
255
  }
256
+ shr_sendTrackingEvent('Deactivate');
257
  }
258
  register_deactivation_hook( __FILE__, 'shrsb_deActivate' );
259
 
260
  //adding uninstall_hook
261
  function shrsb_uninstall() {
262
+ shr_sendTrackingEvent('Uninstall');
263
+
264
+ //clean up local db
265
+ delete_option('SexyBookmarks');
266
+ delete_option('ShareaholicTopbar');
267
+ delete_option('ShareaholicAnalytics');
268
+ delete_option('SexyCustomSprite');
269
+ delete_option('SEXY_SPONSORS');
270
+ delete_option('SHRSB_CustomSprite');
271
+ delete_option('ShareaholicRecommendations');
272
+ delete_option('ShareaholicClassicBookmarks');
273
+ delete_option('SHRSB_DefaultSprite');
274
+ delete_option('shr_reportupgrade');
275
+ delete_option('SHRSBvNum');
276
+ delete_option('SHRSB_apikey');
277
  }
278
  register_uninstall_hook( __FILE__, 'shrsb_uninstall');
279
 
451
 
452
  function shrsb_check_activation(){
453
  $activated = get_option('SHR_activate');
454
+ if($activated == 0 || $activated === false){
455
+ if(isset($_POST['activate']) && $_POST['activate'] == 1){
456
  update_option("SHR_activate",1);
457
  return true;
458
  }
spritegen_default/sprite.css CHANGED
@@ -1 +1 @@
1
- div.shr-bookmarks{margin:20px 0 8px;clear:both !important;display:block !important}div.shr-bookmarks ul.shr-socials{width:100% !important;margin:0 !important;padding:0 !important;float:left !important}div.shr-bookmarks ul.shr-socials{background:transparent none !important;border:0 none !important;outline:0 none !important}div.shr-bookmarks ul.shr-socials li{display:inline !important;float:left !important;list-style-type:none !important;padding:0 !important;height:29px !important;width:60px !important;cursor:pointer !important;margin:3px 0 0 !important;background-color:transparent !important;border:0 none !important;outline:0 none !important;clear:none !important}div.shr-bookmarks ul.shr-socials li:before,div.shr-bookmarks ul.shr-socials li:after,div.shr-bookmarks ul.shr-socials li a:before,div.shr-bookmarks ul.shr-socials li a:after{content:'' !important;}div.shr-bookmarks ul.shr-socials a,div.shr-bookmarks ul.shr-socials a:hover{display:block !important;width:60px !important;height:29px !important;text-indent:-9999px !important;background-color:transparent !important;text-decoration:none !important;border:0 none !important}div.shr-bookmarks ul.shr-socials a:hover,div.shr-bookmarks ul.shr-socials li:hover{background-color:transparent !important;border:0 none !important;outline:0 none !important}.shareaholic-show-on-load{display: block !important;}div.shr-bookmarks div.shr-getshr{line-height:20px !important;padding-left:8px !important;float:left !important;}div.shr-bookmarks div.shr-getshr a{width:auto !important;font-size:10px !important; text-indent:0px !important;text-decoration:none !important;}div.shr-count{font:12px bold,arial !important;position: relative !important;}div.shr-count-outline{position: absolute !important;color: white !important;}div.shr-count-center{position: absolute !important;color: blue !important;}li.shr-1{background-position:-60px bottom !important}li.shr-1:hover{background-position:-60px top !important}li.shr-2{background-position:-120px bottom !important}li.shr-2:hover{background-position:-120px top !important}li.shr-3{background-position:-180px bottom !important}li.shr-3:hover{background-position:-180px top !important}li.shr-5{background-position:-300px bottom !important}li.shr-5:hover{background-position:-300px top !important}li.shr-6{background-position:-360px bottom !important}li.shr-6:hover{background-position:-360px top !important}li.shr-7{background-position:-420px bottom !important}li.shr-7:hover{background-position:-420px top !important}li.shr-10{background-position:-600px bottom !important}li.shr-10:hover{background-position:-600px top !important}li.shr-14{background-position:-840px bottom !important}li.shr-14:hover{background-position:-840px top !important}li.shr-20{background-position:-1200px bottom !important}li.shr-20:hover{background-position:-1200px top !important}li.shr-21{background-position:-1260px bottom !important}li.shr-21:hover{background-position:-1260px top !important}li.shr-24{background-position:-1440px bottom !important}li.shr-24:hover{background-position:-1440px top !important}li.shr-27{background-position:-1620px bottom !important}li.shr-27:hover{background-position:-1620px top !important}li.shr-33{background-position:-1980px bottom !important}li.shr-33:hover{background-position:-1980px top !important}li.shr-38{background-position:-2280px bottom !important}li.shr-38:hover{background-position:-2280px top !important}li.shr-39{background-position:-2340px bottom !important}li.shr-39:hover{background-position:-2340px top !important}li.shr-40{background-position:-2400px bottom !important}li.shr-40:hover{background-position:-2400px top !important}li.shr-41{background-position:-2460px bottom !important}li.shr-41:hover{background-position:-2460px top !important}li.shr-43{background-position:-2580px bottom !important}li.shr-43:hover{background-position:-2580px top !important}li.shr-44{background-position:-2640px bottom !important}li.shr-44:hover{background-position:-2640px top !important}li.shr-45{background-position:-2700px bottom !important}li.shr-45:hover{background-position:-2700px top !important}li.shr-48{background-position:-2880px bottom !important}li.shr-48:hover{background-position:-2880px top !important}li.shr-52{background-position:-3120px bottom !important}li.shr-52:hover{background-position:-3120px top !important}li.shr-53{background-position:-3180px bottom !important}li.shr-53:hover{background-position:-3180px top !important}li.shr-54{background-position:-3240px bottom !important}li.shr-54:hover{background-position:-3240px top !important}li.shr-59{background-position:-3540px bottom !important}li.shr-59:hover{background-position:-3540px top !important}li.shr-61{background-position:-3660px bottom !important}li.shr-61:hover{background-position:-3660px top !important}li.shr-74{background-position:-4440px bottom !important}li.shr-74:hover{background-position:-4440px top !important}li.shr-78{background-position:-4680px bottom !important}li.shr-78:hover{background-position:-4680px top !important}li.shr-80{background-position:-4800px bottom !important}li.shr-80:hover{background-position:-4800px top !important}li.shr-88{background-position:-5280px bottom !important}li.shr-88:hover{background-position:-5280px top !important}li.shr-89{background-position:-5340px bottom !important}li.shr-89:hover{background-position:-5340px top !important}li.shr-92{background-position:-5520px bottom !important}li.shr-92:hover{background-position:-5520px top !important}li.shr-98{background-position:-5880px bottom !important}li.shr-98:hover{background-position:-5880px top !important}li.shr-102{background-position:-6120px bottom !important}li.shr-102:hover{background-position:-6120px top !important}li.shr-105{background-position:-6300px bottom !important}li.shr-105:hover{background-position:-6300px top !important}li.shr-106{background-position:-6360px bottom !important}li.shr-106:hover{background-position:-6360px top !important}li.shr-191{background-position:-11460px bottom !important}li.shr-191:hover{background-position:-11460px top !important}li.shr-192{background-position:-11520px bottom !important}li.shr-192:hover{background-position:-11520px top !important}li.shr-195{background-position:-11700px bottom !important}li.shr-195:hover{background-position:-11700px top !important}li.shr-196{background-position:-11760px bottom !important}li.shr-196:hover{background-position:-11760px top !important}li.shr-201{background-position:-12060px bottom !important}li.shr-201:hover{background-position:-12060px top !important}li.shr-202{background-position:-12120px bottom !important}li.shr-202:hover{background-position:-12120px top !important}li.shr-204{background-position:-12240px bottom !important}li.shr-204:hover{background-position:-12240px top !important}li.shr-205{background-position:-12300px bottom !important}li.shr-205:hover{background-position:-12300px top !important}li.shr-218{background-position:-13080px bottom !important}li.shr-218:hover{background-position:-13080px top !important}li.shr-219{background-position:-13140px bottom !important}li.shr-219:hover{background-position:-13140px top !important}li.shr-236{background-position:-14160px bottom !important}li.shr-236:hover{background-position:-14160px top !important}li.shr-238{background-position:-14280px bottom !important}li.shr-238:hover{background-position:-14280px top !important}li.shr-240{background-position:-14400px bottom !important}li.shr-240:hover{background-position:-14400px top !important}li.shr-243{background-position:-14580px bottom !important}li.shr-243:hover{background-position:-14580px top !important}li.shr-246{background-position:-14760px bottom !important}li.shr-246:hover{background-position:-14760px top !important}li.shr-247{background-position:-14820px bottom !important}li.shr-247:hover{background-position:-14820px top !important}li.shr-263{background-position:-15780px bottom !important}li.shr-263:hover{background-position:-15780px top !important}li.shr-264{background-position:-15840px bottom !important}li.shr-264:hover{background-position:-15840px top !important}li.shr-265{background-position:-15900px bottom !important}li.shr-265:hover{background-position:-15900px top !important}li.shr-266{background-position:-15960px bottom !important}li.shr-266:hover{background-position:-15960px top !important}li.shr-267{background-position:-16020px bottom !important}li.shr-267:hover{background-position:-16020px top !important}li.shr-268{background-position:-16080px bottom !important}li.shr-268:hover{background-position:-16080px top !important}li.shr-269{background-position:-16140px bottom !important}li.shr-269:hover{background-position:-16140px top !important}li.shr-277{background-position:-16620px bottom !important}li.shr-277:hover{background-position:-16620px top !important}li.shr-278{background-position:-16680px bottom !important}li.shr-278:hover{background-position:-16680px top !important}li.shr-279{background-position:-16740px bottom !important}li.shr-279:hover{background-position:-16740px top !important}li.shr-280{background-position:-16800px bottom !important}li.shr-280:hover{background-position:-16800px top !important}li.shr-281{background-position:-16860px bottom !important}li.shr-281:hover{background-position:-16860px top !important}li.shr-282{background-position:-16920px bottom !important}li.shr-282:hover{background-position:-16920px top !important}li.shr-283{background-position:-16980px bottom !important}li.shr-283:hover{background-position:-16980px top !important}li.shr-284{background-position:-17040px bottom !important}li.shr-284:hover{background-position:-17040px top !important}li.shr-285{background-position:-17100px bottom !important}li.shr-285:hover{background-position:-17100px top !important}li.shr-286{background-position:-17160px bottom !important}li.shr-286:hover{background-position:-17160px top !important}li.shr-287{background-position:-17220px bottom !important}li.shr-287:hover{background-position:-17220px top !important}li.shr-288{background-position:-17280px bottom !important}li.shr-288:hover{background-position:-17280px top !important}li.shr-289{background-position:-17340px bottom !important}li.shr-289:hover{background-position:-17340px top !important}li.shr-290{background-position:-17400px bottom !important}li.shr-290:hover{background-position:-17400px top !important}li.shr-291{background-position:-17460px bottom !important}li.shr-291:hover{background-position:-17460px top !important}li.shr-292{background-position:-17520px bottom !important}li.shr-292:hover{background-position:-17520px top !important}li.shr-293{background-position:-17580px bottom !important}li.shr-293:hover{background-position:-17580px top !important}li.shr-294{background-position:-17640px bottom !important}li.shr-294:hover{background-position:-17640px top !important}li.shr-304{background-position:-18240px bottom !important}li.shr-304:hover{background-position:-18240px top !important}li.shr-309{background-position:-18540px bottom !important}li.shr-309:hover{background-position:-18540px top !important}li.shr-313{background-position:-18780px bottom !important}li.shr-313:hover{background-position:-18780px top !important}
1
+ div.shr-bookmarks{margin:20px 0 8px;clear:both !important;display:block !important}div.shr-bookmarks ul.shr-socials{width:100% !important;margin:0 !important;padding:0 !important;float:left !important}div.shr-bookmarks ul.shr-socials{background:transparent none !important;border:0 none !important;outline:0 none !important}div.shr-bookmarks ul.shr-socials li{display:inline !important;float:left !important;list-style-type:none !important;padding:0 !important;height:29px !important;width:60px !important;cursor:pointer !important;margin:3px 0 0 !important;background-color:transparent !important;border:0 none !important;outline:0 none !important;clear:none !important}div.shr-bookmarks ul.shr-socials li:before,div.shr-bookmarks ul.shr-socials li:after,div.shr-bookmarks ul.shr-socials li a:before,div.shr-bookmarks ul.shr-socials li a:after{content:'' !important;}div.shr-bookmarks ul.shr-socials a,div.shr-bookmarks ul.shr-socials a:hover{display:block !important;width:60px !important;height:29px !important;text-indent:-9999px !important;background-color:transparent !important;text-decoration:none !important;border:0 none !important}div.shr-bookmarks ul.shr-socials a:hover,div.shr-bookmarks ul.shr-socials li:hover{background-color:transparent !important;border:0 none !important;outline:0 none !important}.shareaholic-show-on-load{display: block !important;}div.shr-bookmarks div.shr-getshr{line-height:20px !important;padding-left:8px !important;float:left !important;}div.shr-bookmarks div.shr-getshr a{width:auto !important;font-size:10px !important; text-indent:0px !important;text-decoration:none !important;}div.shr-count{font:12px bold,arial !important;position: relative !important;}div.shr-count-outline{position: absolute !important;color: white !important;}div.shr-count-center{position: absolute !important;color: blue !important;}li.shr-1{background-position:-60px bottom !important}li.shr-1:hover{background-position:-60px top !important}li.shr-2{background-position:-120px bottom !important}li.shr-2:hover{background-position:-120px top !important}li.shr-3{background-position:-180px bottom !important}li.shr-3:hover{background-position:-180px top !important}li.shr-5{background-position:-300px bottom !important}li.shr-5:hover{background-position:-300px top !important}li.shr-6{background-position:-360px bottom !important}li.shr-6:hover{background-position:-360px top !important}li.shr-7{background-position:-420px bottom !important}li.shr-7:hover{background-position:-420px top !important}li.shr-10{background-position:-600px bottom !important}li.shr-10:hover{background-position:-600px top !important}li.shr-14{background-position:-840px bottom !important}li.shr-14:hover{background-position:-840px top !important}li.shr-20{background-position:-1200px bottom !important}li.shr-20:hover{background-position:-1200px top !important}li.shr-21{background-position:-1260px bottom !important}li.shr-21:hover{background-position:-1260px top !important}li.shr-24{background-position:-1440px bottom !important}li.shr-24:hover{background-position:-1440px top !important}li.shr-27{background-position:-1620px bottom !important}li.shr-27:hover{background-position:-1620px top !important}li.shr-33{background-position:-1980px bottom !important}li.shr-33:hover{background-position:-1980px top !important}li.shr-38{background-position:-2280px bottom !important}li.shr-38:hover{background-position:-2280px top !important}li.shr-39{background-position:-2340px bottom !important}li.shr-39:hover{background-position:-2340px top !important}li.shr-40{background-position:-2400px bottom !important}li.shr-40:hover{background-position:-2400px top !important}li.shr-41{background-position:-2460px bottom !important}li.shr-41:hover{background-position:-2460px top !important}li.shr-43{background-position:-2580px bottom !important}li.shr-43:hover{background-position:-2580px top !important}li.shr-44{background-position:-2640px bottom !important}li.shr-44:hover{background-position:-2640px top !important}li.shr-45{background-position:-2700px bottom !important}li.shr-45:hover{background-position:-2700px top !important}li.shr-48{background-position:-2880px bottom !important}li.shr-48:hover{background-position:-2880px top !important}li.shr-52{background-position:-3120px bottom !important}li.shr-52:hover{background-position:-3120px top !important}li.shr-53{background-position:-3180px bottom !important}li.shr-53:hover{background-position:-3180px top !important}li.shr-54{background-position:-3240px bottom !important}li.shr-54:hover{background-position:-3240px top !important}li.shr-59{background-position:-3540px bottom !important}li.shr-59:hover{background-position:-3540px top !important}li.shr-61{background-position:-3660px bottom !important}li.shr-61:hover{background-position:-3660px top !important}li.shr-74{background-position:-4440px bottom !important}li.shr-74:hover{background-position:-4440px top !important}li.shr-78{background-position:-4680px bottom !important}li.shr-78:hover{background-position:-4680px top !important}li.shr-80{background-position:-4800px bottom !important}li.shr-80:hover{background-position:-4800px top !important}li.shr-88{background-position:-5280px bottom !important}li.shr-88:hover{background-position:-5280px top !important}li.shr-89{background-position:-5340px bottom !important}li.shr-89:hover{background-position:-5340px top !important}li.shr-92{background-position:-5520px bottom !important}li.shr-92:hover{background-position:-5520px top !important}li.shr-98{background-position:-5880px bottom !important}li.shr-98:hover{background-position:-5880px top !important}li.shr-102{background-position:-6120px bottom !important}li.shr-102:hover{background-position:-6120px top !important}li.shr-105{background-position:-6300px bottom !important}li.shr-105:hover{background-position:-6300px top !important}li.shr-106{background-position:-6360px bottom !important}li.shr-106:hover{background-position:-6360px top !important}li.shr-191{background-position:-11460px bottom !important}li.shr-191:hover{background-position:-11460px top !important}li.shr-192{background-position:-11520px bottom !important}li.shr-192:hover{background-position:-11520px top !important}li.shr-196{background-position:-11760px bottom !important}li.shr-196:hover{background-position:-11760px top !important}li.shr-201{background-position:-12060px bottom !important}li.shr-201:hover{background-position:-12060px top !important}li.shr-202{background-position:-12120px bottom !important}li.shr-202:hover{background-position:-12120px top !important}li.shr-204{background-position:-12240px bottom !important}li.shr-204:hover{background-position:-12240px top !important}li.shr-205{background-position:-12300px bottom !important}li.shr-205:hover{background-position:-12300px top !important}li.shr-218{background-position:-13080px bottom !important}li.shr-218:hover{background-position:-13080px top !important}li.shr-219{background-position:-13140px bottom !important}li.shr-219:hover{background-position:-13140px top !important}li.shr-236{background-position:-14160px bottom !important}li.shr-236:hover{background-position:-14160px top !important}li.shr-238{background-position:-14280px bottom !important}li.shr-238:hover{background-position:-14280px top !important}li.shr-240{background-position:-14400px bottom !important}li.shr-240:hover{background-position:-14400px top !important}li.shr-243{background-position:-14580px bottom !important}li.shr-243:hover{background-position:-14580px top !important}li.shr-246{background-position:-14760px bottom !important}li.shr-246:hover{background-position:-14760px top !important}li.shr-247{background-position:-14820px bottom !important}li.shr-247:hover{background-position:-14820px top !important}li.shr-263{background-position:-15780px bottom !important}li.shr-263:hover{background-position:-15780px top !important}li.shr-264{background-position:-15840px bottom !important}li.shr-264:hover{background-position:-15840px top !important}li.shr-265{background-position:-15900px bottom !important}li.shr-265:hover{background-position:-15900px top !important}li.shr-266{background-position:-15960px bottom !important}li.shr-266:hover{background-position:-15960px top !important}li.shr-268{background-position:-16080px bottom !important}li.shr-268:hover{background-position:-16080px top !important}li.shr-269{background-position:-16140px bottom !important}li.shr-269:hover{background-position:-16140px top !important}li.shr-277{background-position:-16620px bottom !important}li.shr-277:hover{background-position:-16620px top !important}li.shr-278{background-position:-16680px bottom !important}li.shr-278:hover{background-position:-16680px top !important}li.shr-279{background-position:-16740px bottom !important}li.shr-279:hover{background-position:-16740px top !important}li.shr-280{background-position:-16800px bottom !important}li.shr-280:hover{background-position:-16800px top !important}li.shr-281{background-position:-16860px bottom !important}li.shr-281:hover{background-position:-16860px top !important}li.shr-282{background-position:-16920px bottom !important}li.shr-282:hover{background-position:-16920px top !important}li.shr-283{background-position:-16980px bottom !important}li.shr-283:hover{background-position:-16980px top !important}li.shr-284{background-position:-17040px bottom !important}li.shr-284:hover{background-position:-17040px top !important}li.shr-285{background-position:-17100px bottom !important}li.shr-285:hover{background-position:-17100px top !important}li.shr-286{background-position:-17160px bottom !important}li.shr-286:hover{background-position:-17160px top !important}li.shr-287{background-position:-17220px bottom !important}li.shr-287:hover{background-position:-17220px top !important}li.shr-288{background-position:-17280px bottom !important}li.shr-288:hover{background-position:-17280px top !important}li.shr-289{background-position:-17340px bottom !important}li.shr-289:hover{background-position:-17340px top !important}li.shr-290{background-position:-17400px bottom !important}li.shr-290:hover{background-position:-17400px top !important}li.shr-291{background-position:-17460px bottom !important}li.shr-291:hover{background-position:-17460px top !important}li.shr-292{background-position:-17520px bottom !important}li.shr-292:hover{background-position:-17520px top !important}li.shr-293{background-position:-17580px bottom !important}li.shr-293:hover{background-position:-17580px top !important}li.shr-294{background-position:-17640px bottom !important}li.shr-294:hover{background-position:-17640px top !important}li.shr-304{background-position:-18240px bottom !important}li.shr-304:hover{background-position:-18240px top !important}li.shr-309{background-position:-18540px bottom !important}li.shr-309:hover{background-position:-18540px top !important}li.shr-313{background-position:-18780px bottom !important}li.shr-313:hover{background-position:-18780px top !important}
spritegen_default/sprite.png CHANGED
Binary file