Sidekick - Version 1.2.2

Version Description

  • Activation Bug Fix
  • UI Enchancements
Download this release

Release Info

Developer raptor235
Plugin Icon 128x128 Sidekick
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

css/sidekick_wordpress.css CHANGED
@@ -38,7 +38,7 @@ div.sk_hotspot {
38
  height: 25px;
39
  position: absolute;
40
  cursor: pointer;
41
- background: url('../images/sprides_v11.png') -3px -796px;
42
  opacity: 0.0;
43
  margin-left: -20px;
44
  margin-top: -10px;
@@ -141,7 +141,7 @@ div#sidekick.open {
141
  transition: all 0.5s ease-out;
142
  }
143
  div#sidekick.open div#sk_taskbar button.sk_toggle {
144
- background: url('../images/sprides_v11.png') -6px -394px;
145
  }
146
  div#sidekick.open div#sk_taskbar div.sk_controls {
147
  display: block;
@@ -187,7 +187,7 @@ div#sidekick.playing div#sk_taskbar div.sk_info div.sk_title {
187
  display: block;
188
  }
189
  div#sidekick.playing div#sk_taskbar button.sk_toggle {
190
- background: url('../images/sprides_v11.png') -6px -394px;
191
  }
192
  div#sidekick.playing div#sk_taskbar div.sk_toggles {
193
  display: block;
@@ -245,7 +245,7 @@ div#sidekick div#sk_taskbar div#logo {
245
  height: 100%;
246
  width: 125px;
247
  /*width: 124px; wp 3.8+ */
248
- background: url('../images/sprides_v11.png') 5px 0px no-repeat;
249
  cursor: pointer;
250
  }
251
  div#sidekick div#sk_taskbar button.sk_toggle {
@@ -253,7 +253,7 @@ div#sidekick div#sk_taskbar button.sk_toggle {
253
  height: 100%;
254
  width: 32px;
255
  margin-left: 3px;
256
- background: url('../images/sprides_v11.png') 0px -358px;
257
  border: none;
258
  }
259
  div#sidekick div#sk_taskbar div.sk_debug {
@@ -341,29 +341,29 @@ div#sidekick div#sk_taskbar div.sk_controls button {
341
  }
342
  div#sidekick div#sk_taskbar div.sk_controls button.sidekick_restart {
343
  left: 0px;
344
- background: url('../images/sprides_v11.png') 17px -140px;
345
  }
346
  div#sidekick div#sk_taskbar div.sk_controls button.sidekick_restart:hover {
347
- background: #d9763b url('../images/sprides_v11.png') 17px -140px;
348
  }
349
  div#sidekick div#sk_taskbar div.sk_controls button.sidekick_play_pause {
350
- background: url('../images/sprides_v11.png') 17px -178px;
351
  left: 70px;
352
  border-right: solid 1px white;
353
  border-left: solid 1px white;
354
  }
355
  div#sidekick div#sk_taskbar div.sk_controls button.sidekick_play_pause.playing {
356
- background: url('../images/sprides_v11.png') 17px -718px;
357
  }
358
  div#sidekick div#sk_taskbar div.sk_controls button.sidekick_play_pause:hover {
359
- background: #d9763b url('../images/sprides_v11.png') 17px -178px;
360
  }
361
  div#sidekick div#sk_taskbar div.sk_controls button.sidekick_stop {
362
- background: url('../images/sprides_v11.png') 17px -210px;
363
  left: 140px;
364
  }
365
  div#sidekick div#sk_taskbar div.sk_controls button.sidekick_stop:hover {
366
- background: #d9763b url('../images/sprides_v11.png') 17px -210px;
367
  }
368
  div#sidekick div#sk_taskbar div.sk_caption {
369
  position: absolute;
@@ -453,16 +453,16 @@ div#sidekick div#sk_taskbar div.sk_toggles button {
453
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_hotspots {
454
  /*display: none;*/
455
  border-left: solid 1px white;
456
- background: #f1631d url('../images/sprides_v11.png') 10px -248px;
457
  padding-left: 24px;
458
  font-size: 18px;
459
  color: white;
460
  }
461
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_hotspots.on {
462
- background: #fa8c00 url('../images/sprides_v11.png') 10px -248px;
463
  }
464
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_hotspots:hover {
465
- background: #fa8c00 url('../images/sprides_v11.png') 10px -248px;
466
  transform: translate3d(0, 0, 0);
467
  -webkit-transition: all 0.3s ease-out;
468
  -moz-transition: all 0.3s ease-out;
@@ -474,13 +474,13 @@ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_hotspots:hover {
474
  /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
475
  }
476
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_feedback {
477
- background: #f1631d url('../images/sprides_v11.png') 17px -287px;
478
  /*border-right: solid 1px white;*/
479
  border-left: solid 1px white;
480
  width: 74px;
481
  }
482
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_feedback:hover {
483
- background: #fa8c00 url('../images/sprides_v11.png') 17px -287px;
484
  transform: translate3d(0, 0, 0);
485
  -webkit-transition: all 0.3s ease-out;
486
  -moz-transition: all 0.3s ease-out;
@@ -492,13 +492,13 @@ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_feedback:hover {
492
  /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
493
  }
494
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_preferences {
495
- background: #f1631d url('../images/sprides_v11.png') 17px -33px;
496
  border-right: solid 1px white;
497
  border-left: solid 1px white;
498
  width: 74px;
499
  }
500
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_preferences:hover {
501
- background: #fa8c00 url('../images/sprides_v11.png') 17px -33px;
502
  transform: translate3d(0, 0, 0);
503
  -webkit-transition: all 0.3s ease-out;
504
  -moz-transition: all 0.3s ease-out;
@@ -510,11 +510,11 @@ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_preferences:hover {
510
  /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
511
  }
512
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_drawer {
513
- background: #f1631d url('../images/sprides_v11.png') 17px -431px;
514
  position: relative;
515
  }
516
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_drawer:hover {
517
- background: #fa8c00 url('../images/sprides_v11.png') 17px -431px;
518
  transform: translate3d(0, 0, 0);
519
  -webkit-transition: all 0.3s ease-out;
520
  -moz-transition: all 0.3s ease-out;
@@ -534,10 +534,10 @@ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_drawer.on i {
534
  top: -10px;
535
  width: 20px;
536
  height: 20px;
537
- background: url('../images/sprides_v11.png') -9px -696px;
538
  }
539
  div#sidekick #sk_drawer {
540
- background-color: #dddddd;
541
  -webkit-box-shadow: 0px 0px 15px 0px rgba(83, 83, 83, 0.6);
542
  box-shadow: 0px 0px 15px 0px rgba(83, 83, 83, 0.6);
543
  border: solid 1px #c6c6c6;
@@ -556,7 +556,7 @@ div#sidekick #sk_drawer h2 {
556
  margin: 0px;
557
  }
558
  div#sidekick #sk_drawer h2 button {
559
- background: url('../images/sprides_v11.png') -8px -656px no-repeat;
560
  width: 20px;
561
  height: 20px;
562
  border: none;
@@ -778,10 +778,10 @@ div#sidekick #sk_drawer ul.sk_bucketContainer ul.activate div#content #benefits
778
  margin: 0px;
779
  }
780
  div#sidekick #sk_drawer ul.sk_bucketContainer ul.activate div#content #benefits ul li#more {
781
- background: #f6f6f6 url('../images/sprides_v11.png') -294px -107px;
782
  }
783
  div#sidekick #sk_drawer ul.sk_bucketContainer ul.activate div#content #benefits ul li#types {
784
- background: #f6f6f6 url('../images/sprides_v11.png') -294px -177px;
785
  }
786
  div#sidekick #sk_drawer ul.sk_bucketContainer input[type='text'],
787
  div#sidekick #sk_drawer ul.sk_bucketContainer input[type='password'] {
38
  height: 25px;
39
  position: absolute;
40
  cursor: pointer;
41
+ background: url('../images/sprides_v12.png') -3px -796px;
42
  opacity: 0.0;
43
  margin-left: -20px;
44
  margin-top: -10px;
141
  transition: all 0.5s ease-out;
142
  }
143
  div#sidekick.open div#sk_taskbar button.sk_toggle {
144
+ background: url('../images/sprides_v12.png') -6px -394px;
145
  }
146
  div#sidekick.open div#sk_taskbar div.sk_controls {
147
  display: block;
187
  display: block;
188
  }
189
  div#sidekick.playing div#sk_taskbar button.sk_toggle {
190
+ background: url('../images/sprides_v12.png') -6px -394px;
191
  }
192
  div#sidekick.playing div#sk_taskbar div.sk_toggles {
193
  display: block;
245
  height: 100%;
246
  width: 125px;
247
  /*width: 124px; wp 3.8+ */
248
+ background: url('../images/sprides_v12.png') 5px 0px no-repeat;
249
  cursor: pointer;
250
  }
251
  div#sidekick div#sk_taskbar button.sk_toggle {
253
  height: 100%;
254
  width: 32px;
255
  margin-left: 3px;
256
+ background: url('../images/sprides_v12.png') 0px -358px;
257
  border: none;
258
  }
259
  div#sidekick div#sk_taskbar div.sk_debug {
341
  }
342
  div#sidekick div#sk_taskbar div.sk_controls button.sidekick_restart {
343
  left: 0px;
344
+ background: url('../images/sprides_v12.png') 17px -140px;
345
  }
346
  div#sidekick div#sk_taskbar div.sk_controls button.sidekick_restart:hover {
347
+ background: #d9763b url('../images/sprides_v12.png') 17px -140px;
348
  }
349
  div#sidekick div#sk_taskbar div.sk_controls button.sidekick_play_pause {
350
+ background: url('../images/sprides_v12.png') 17px -178px;
351
  left: 70px;
352
  border-right: solid 1px white;
353
  border-left: solid 1px white;
354
  }
355
  div#sidekick div#sk_taskbar div.sk_controls button.sidekick_play_pause.playing {
356
+ background: url('../images/sprides_v12.png') 17px -718px;
357
  }
358
  div#sidekick div#sk_taskbar div.sk_controls button.sidekick_play_pause:hover {
359
+ background: #d9763b url('../images/sprides_v12.png') 17px -178px;
360
  }
361
  div#sidekick div#sk_taskbar div.sk_controls button.sidekick_stop {
362
+ background: url('../images/sprides_v12.png') 17px -210px;
363
  left: 140px;
364
  }
365
  div#sidekick div#sk_taskbar div.sk_controls button.sidekick_stop:hover {
366
+ background: #d9763b url('../images/sprides_v12.png') 17px -210px;
367
  }
368
  div#sidekick div#sk_taskbar div.sk_caption {
369
  position: absolute;
453
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_hotspots {
454
  /*display: none;*/
455
  border-left: solid 1px white;
456
+ background: #f1631d url('../images/sprides_v12.png') 10px -248px;
457
  padding-left: 24px;
458
  font-size: 18px;
459
  color: white;
460
  }
461
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_hotspots.on {
462
+ background: #fa8c00 url('../images/sprides_v12.png') 10px -248px;
463
  }
464
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_hotspots:hover {
465
+ background: #fa8c00 url('../images/sprides_v12.png') 10px -248px;
466
  transform: translate3d(0, 0, 0);
467
  -webkit-transition: all 0.3s ease-out;
468
  -moz-transition: all 0.3s ease-out;
474
  /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
475
  }
476
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_feedback {
477
+ background: #f1631d url('../images/sprides_v12.png') 17px -287px;
478
  /*border-right: solid 1px white;*/
479
  border-left: solid 1px white;
480
  width: 74px;
481
  }
482
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_feedback:hover {
483
+ background: #fa8c00 url('../images/sprides_v12.png') 17px -287px;
484
  transform: translate3d(0, 0, 0);
485
  -webkit-transition: all 0.3s ease-out;
486
  -moz-transition: all 0.3s ease-out;
492
  /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
493
  }
494
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_preferences {
495
+ background: #f1631d url('../images/sprides_v12.png') 17px -33px;
496
  border-right: solid 1px white;
497
  border-left: solid 1px white;
498
  width: 74px;
499
  }
500
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_preferences:hover {
501
+ background: #fa8c00 url('../images/sprides_v12.png') 17px -33px;
502
  transform: translate3d(0, 0, 0);
503
  -webkit-transition: all 0.3s ease-out;
504
  -moz-transition: all 0.3s ease-out;
510
  /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
511
  }
512
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_drawer {
513
+ background: #f1631d url('../images/sprides_v12.png') 17px -431px;
514
  position: relative;
515
  }
516
  div#sidekick div#sk_taskbar div.sk_toggles button#toggle_drawer:hover {
517
+ background: #fa8c00 url('../images/sprides_v12.png') 17px -431px;
518
  transform: translate3d(0, 0, 0);
519
  -webkit-transition: all 0.3s ease-out;
520
  -moz-transition: all 0.3s ease-out;
534
  top: -10px;
535
  width: 20px;
536
  height: 20px;
537
+ background: url('../images/sprides_v12.png') -9px -696px;
538
  }
539
  div#sidekick #sk_drawer {
540
+ background-color: #fff;
541
  -webkit-box-shadow: 0px 0px 15px 0px rgba(83, 83, 83, 0.6);
542
  box-shadow: 0px 0px 15px 0px rgba(83, 83, 83, 0.6);
543
  border: solid 1px #c6c6c6;
556
  margin: 0px;
557
  }
558
  div#sidekick #sk_drawer h2 button {
559
+ background: url('../images/sprides_v12.png') -8px -656px no-repeat;
560
  width: 20px;
561
  height: 20px;
562
  border: none;
778
  margin: 0px;
779
  }
780
  div#sidekick #sk_drawer ul.sk_bucketContainer ul.activate div#content #benefits ul li#more {
781
+ background: #f6f6f6 url('../images/sprides_v12.png') -294px -107px;
782
  }
783
  div#sidekick #sk_drawer ul.sk_bucketContainer ul.activate div#content #benefits ul li#types {
784
+ background: #f6f6f6 url('../images/sprides_v12.png') -294px -177px;
785
  }
786
  div#sidekick #sk_drawer ul.sk_bucketContainer input[type='text'],
787
  div#sidekick #sk_drawer ul.sk_bucketContainer input[type='password'] {
images/sprides_v11.png CHANGED
Binary file
images/sprides_v12.png ADDED
Binary file
js/sk.source.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! sidekick - v1.2 - 2014-04-29 */(function(jQuery, window){
2
 
3
  jQuery.fn.center = function () {
4
  this.css("position","absolute");
@@ -1915,11 +1915,29 @@ jQuery.extend( jQuery.easing,
1915
  this.set('qa_mode',true);
1916
  }
1917
 
1918
- if ((typeof sk_free_library == 'undefined' || !sk_config.library_free_file) && typeof sk_paid_library == 'undefined' || !sk_config.library_paid_file) {
1919
  var msg = 'No Library Found!';
1920
  SidekickWP.Events.trigger('track_error',{msg: msg});
1921
 
1922
- console.error('Sidekick Library Not Found! -> %s',sk_config.library_file);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1923
  return;
1924
  } else {
1925
  if(typeof sk_paid_library !== 'undefined' && _.size(sk_paid_library.buckets) > 0){
@@ -1933,7 +1951,7 @@ jQuery.extend( jQuery.easing,
1933
  _.each(paid_library_domains,function(item){
1934
  if (sk_config.site_url == item.trim()) {
1935
  matched_domain = item;
1936
- console.log('%cCHECK DOMAIN %o == %o', 'background-color: #51fa3d;color: white',sk_config.site_url,item);
1937
  } else {
1938
  console.log('%cCHECK DOMAIN %o == %o', 'background-color: #c12029;color: white',sk_config.site_url,item);
1939
  }
@@ -2050,7 +2068,7 @@ jQuery.extend( jQuery.easing,
2050
  },
2051
 
2052
  filter_sub_bucket_recursive: function(sub_bucket){
2053
- console.group('%cfilter_sub_bucket_recursive %s (%o)', 'color: orange',sub_bucket.post_title, sub_bucket);
2054
 
2055
  if (_.size(sub_bucket.sub_buckets) > 0) {
2056
  console.log('AAA sub_bucket.sub_buckets %o', sub_bucket.sub_buckets);
@@ -2065,7 +2083,7 @@ jQuery.extend( jQuery.easing,
2065
  while (key--) {
2066
  var walkthrough = sub_bucket.walkthroughs[key];
2067
  if (!this.check_walkthrough_compatibility(walkthrough)) {
2068
- console.error('DELETE sub_bucket.walkthroughs[key] %o', sub_bucket.walkthroughs[key]);
2069
  sub_bucket.walkthroughs.splice(key, 1);
2070
  continue;
2071
  }
@@ -2081,7 +2099,7 @@ jQuery.extend( jQuery.easing,
2081
  });
2082
  this.set('library_filtered_hotspots',library_filtered_hotspots);
2083
  },this);
2084
- console.error('DELETE2 sub_bucket.walkthroughs[key] %o %o', key,sub_bucket.walkthroughs[key]);
2085
  sub_bucket.walkthroughs.splice(key, 1);
2086
  continue;
2087
  }
@@ -2113,7 +2131,7 @@ jQuery.extend( jQuery.easing,
2113
 
2114
 
2115
  if (!pass_main_soft_version){
2116
- console.error('FAILED %o - SOFT_VER %o != %O',walkthrough.title, main_soft_version,walkthrough.main_soft_version);
2117
  return false;
2118
  }
2119
 
@@ -2132,7 +2150,7 @@ jQuery.extend( jQuery.easing,
2132
  }
2133
  }
2134
  if (!pass_theme || !pass_theme_version){
2135
- console.error('FAILED %o - THEME %s (%o) != %s (%o)',walkthrough.title,walkthrough.theme_version, walkthrough.theme, pass_theme, sk_config.theme_version);
2136
  return false;
2137
  }
2138
  }
@@ -2160,11 +2178,11 @@ jQuery.extend( jQuery.easing,
2160
  });
2161
 
2162
  if (!pass_plugin) {
2163
- console.error('FAILED %o (%o) - PLUGIN %s (%o)',walkthrough.title, walkthrough, walkthrough.plugin, sk_config.installed_plugins);
2164
  return false;
2165
  }
2166
  if (!pass_plugin_version){
2167
- console.error('FAILED %o (%o) - PLUGIN %s VER %s (%o)',walkthrough.title, walkthrough, walkthrough.plugin, walkthrough.plugin_version, sk_config.installed_plugins);
2168
  return false;
2169
  }
2170
  }
@@ -2182,7 +2200,7 @@ jQuery.extend( jQuery.easing,
2182
  }
2183
 
2184
  if (!pass_user_level){
2185
- console.error('FAILED %o - User Level %s != %s',walkthrough.title, sk_config.user_level, walkthrough.role);
2186
  return false;
2187
  }
2188
 
@@ -2191,9 +2209,9 @@ jQuery.extend( jQuery.easing,
2191
  this.set('passed_walkthroughs',passed_walkthroughs);
2192
 
2193
  if (walkthrough.plugin) {
2194
- console.log('%cPASSED! %o', 'color: #3ab00b',walkthrough.plugin + ': ' + walkthrough.title);
2195
  } else {
2196
- console.log('%cPASSED! %o', 'color: #3ab00b',walkthrough.title);
2197
  }
2198
 
2199
  return true;
@@ -2624,6 +2642,9 @@ jQuery.extend( jQuery.easing,
2624
 
2625
  size_drawer: function(){
2626
  var window_height = $(window).height();
 
 
 
2627
  var sk_drawer_height = window_height - 80;
2628
  var sk_bucketContainer_height = sk_drawer_height - 56;
2629
  if ($('#sk_upgrade').length > 0) {
@@ -2873,7 +2894,7 @@ jQuery.extend( jQuery.easing,
2873
 
2874
 
2875
  var navigation_history = this.model.get('navigation_history');
2876
- $('#sk_drawer>h2 span').html('Walkthroughs');
2877
 
2878
  if ($(e).hasClass('goprev')) {
2879
  // console.log('Go Back');
@@ -2910,7 +2931,7 @@ jQuery.extend( jQuery.easing,
2910
 
2911
  SidekickWP.Events.trigger('track_explore',{what:'Bucket - ' + $('span',e).html(), id: $(e).data('open_walkthroughs') });
2912
 
2913
- $('#sk_drawer>h2 span').html('How Do I...');
2914
 
2915
  $(e).closest('.show').removeClass('show').addClass('hide');
2916
 
@@ -3356,9 +3377,9 @@ SidekickWP.Templates.Walkthroughs = [
3356
  "<% if (walkthrough.type == 'how'){ %>",
3357
  "<% if (!first_drawn){ %>",
3358
  "<% if (_.size(bucket_data.walkthroughs) > 1){ %>",
3359
- "<li class='sub_heading'><span>How-Tos</span></li>",
3360
  "<% } else{ %>",
3361
- "<li class='sub_heading'><span>How-To</span></li>",
3362
  "<% } %>",
3363
  "<% first_drawn = true %>",
3364
  "<% } %>",
@@ -3485,6 +3506,9 @@ SidekickWP.Templates.Message = [
3485
  });
3486
  }(jQuery));;
3487
  jQuery(document).ready(function($) {
 
 
 
3488
  window.sidekickWP = new SidekickWP.Models.App({
3489
  show_toggle_feedback: true
3490
  });
1
+ /*! sidekick - v1.2.2 - 2014-05-01 */(function(jQuery, window){
2
 
3
  jQuery.fn.center = function () {
4
  this.css("position","absolute");
1915
  this.set('qa_mode',true);
1916
  }
1917
 
1918
+ if ((typeof sk_free_library == 'undefined' || !sk_config.library_free_file) && (typeof sk_paid_library == 'undefined' || !sk_config.library_paid_file)) {
1919
  var msg = 'No Library Found!';
1920
  SidekickWP.Events.trigger('track_error',{msg: msg});
1921
 
1922
+ console.error('Sidekick Library Not Found! -> %o',sk_config);
1923
+
1924
+ if (typeof sk_free_library == 'undefined') {
1925
+ console.log('sk_free_library %o', typeof sk_free_library);
1926
+ } else {
1927
+ console.log('sk_free_library %o', sk_free_library);
1928
+ }
1929
+
1930
+ if (typeof sk_paid_library == 'undefined') {
1931
+ console.log('sk_paid_library %o', typeof sk_paid_library);
1932
+ } else {
1933
+ console.log('sk_paid_library %o', sk_paid_library);
1934
+ }
1935
+
1936
+ console.log('typeof sk_free_library %o', typeof sk_free_library);
1937
+ console.log('sk_config.library_free_file %o', !sk_config.library_free_file);
1938
+ console.log('typeof sk_paid_library %o', typeof sk_paid_library);
1939
+ console.log('sk_config.library_paid_file %o', !sk_config.library_paid_file);
1940
+
1941
  return;
1942
  } else {
1943
  if(typeof sk_paid_library !== 'undefined' && _.size(sk_paid_library.buckets) > 0){
1951
  _.each(paid_library_domains,function(item){
1952
  if (sk_config.site_url == item.trim()) {
1953
  matched_domain = item;
1954
+ console.log('%cMATCHED DOMAIN %o == %o', 'background-color: #51fa3d;color: white',sk_config.site_url,item);
1955
  } else {
1956
  console.log('%cCHECK DOMAIN %o == %o', 'background-color: #c12029;color: white',sk_config.site_url,item);
1957
  }
2068
  },
2069
 
2070
  filter_sub_bucket_recursive: function(sub_bucket){
2071
+ console.group('%cfilter_sub_bucket_recursive - %c %s (%o)', 'color: #ff6f29','color: white;background-color: black',sub_bucket.post_title, sub_bucket);
2072
 
2073
  if (_.size(sub_bucket.sub_buckets) > 0) {
2074
  console.log('AAA sub_bucket.sub_buckets %o', sub_bucket.sub_buckets);
2083
  while (key--) {
2084
  var walkthrough = sub_bucket.walkthroughs[key];
2085
  if (!this.check_walkthrough_compatibility(walkthrough)) {
2086
+ console.log('%cDELETE sub_bucket.walkthroughs[key] %o','color: red', sub_bucket.walkthroughs[key]);
2087
  sub_bucket.walkthroughs.splice(key, 1);
2088
  continue;
2089
  }
2099
  });
2100
  this.set('library_filtered_hotspots',library_filtered_hotspots);
2101
  },this);
2102
+ console.log(' %cDELETE2 sub_bucket.walkthroughs[key] %o %o','color: red', key,sub_bucket.walkthroughs[key]);
2103
  sub_bucket.walkthroughs.splice(key, 1);
2104
  continue;
2105
  }
2131
 
2132
 
2133
  if (!pass_main_soft_version){
2134
+ console.log('%cFAILED %o - SOFT_VER %o != %O','color: red',walkthrough.title, main_soft_version,walkthrough.main_soft_version);
2135
  return false;
2136
  }
2137
 
2150
  }
2151
  }
2152
  if (!pass_theme || !pass_theme_version){
2153
+ console.log('%cFAILED %o - THEME %s (%o) != %s (%o)','color: red',walkthrough.title,walkthrough.theme_version, walkthrough.theme, pass_theme, sk_config.theme_version);
2154
  return false;
2155
  }
2156
  }
2178
  });
2179
 
2180
  if (!pass_plugin) {
2181
+ console.log('%cFAILED %o (%o) - PLUGIN %s (%o)','color: red',walkthrough.title, walkthrough, walkthrough.plugin, sk_config.installed_plugins);
2182
  return false;
2183
  }
2184
  if (!pass_plugin_version){
2185
+ console.log('%cFAILED %o (%o) - PLUGIN %s VER %s (%o)','color: red',walkthrough.title, walkthrough, walkthrough.plugin, walkthrough.plugin_version, sk_config.installed_plugins);
2186
  return false;
2187
  }
2188
  }
2200
  }
2201
 
2202
  if (!pass_user_level){
2203
+ console.log('%cFAILED %o - User Level %s != %s','color: red',walkthrough.title, sk_config.user_level, walkthrough.role);
2204
  return false;
2205
  }
2206
 
2209
  this.set('passed_walkthroughs',passed_walkthroughs);
2210
 
2211
  if (walkthrough.plugin) {
2212
+ console.log('%cPASSED! %o', 'color: #3ab00b',walkthrough.plugin + ': ' + walkthrough.title + '(' + walkthrough.id + ')');
2213
  } else {
2214
+ console.log('%cPASSED! %o', 'color: #3ab00b',walkthrough.title + '(' + walkthrough.id + ')');
2215
  }
2216
 
2217
  return true;
2642
 
2643
  size_drawer: function(){
2644
  var window_height = $(window).height();
2645
+ if (window_height > 900) {
2646
+ window_height = 900;
2647
+ }
2648
  var sk_drawer_height = window_height - 80;
2649
  var sk_bucketContainer_height = sk_drawer_height - 56;
2650
  if ($('#sk_upgrade').length > 0) {
2894
 
2895
 
2896
  var navigation_history = this.model.get('navigation_history');
2897
+ // $('#sk_drawer>h2 span').html('Walkthroughs');
2898
 
2899
  if ($(e).hasClass('goprev')) {
2900
  // console.log('Go Back');
2931
 
2932
  SidekickWP.Events.trigger('track_explore',{what:'Bucket - ' + $('span',e).html(), id: $(e).data('open_walkthroughs') });
2933
 
2934
+ // $('#sk_drawer>h2 span').html('How Do I...');
2935
 
2936
  $(e).closest('.show').removeClass('show').addClass('hide');
2937
 
3377
  "<% if (walkthrough.type == 'how'){ %>",
3378
  "<% if (!first_drawn){ %>",
3379
  "<% if (_.size(bucket_data.walkthroughs) > 1){ %>",
3380
+ "<li class='sub_heading'><span>How Do I...</span></li>",
3381
  "<% } else{ %>",
3382
+ "<li class='sub_heading'><span>How Do I...</span></li>",
3383
  "<% } %>",
3384
  "<% first_drawn = true %>",
3385
  "<% } %>",
3506
  });
3507
  }(jQuery));;
3508
  jQuery(document).ready(function($) {
3509
+ console.log('sk plr rdy');
3510
+ console.log('sk_free_library %o', sk_free_library);
3511
+
3512
  window.sidekickWP = new SidekickWP.Models.App({
3513
  show_toggle_feedback: true
3514
  });
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.sidekick.pro
4
  Tags: help, tutorial, training, learn, learning, sidekick, guide, teach, video, manual, videos, wphelp, support, instructions, question, questions, answers, answer, clippy, q&a, wpuniversity, helper, walkthrough
5
  Requires at least: 3.5
6
  Tested up to: 3.9
7
- Stable tag: 1.2
8
  License: GNU Version 2 or Any Later Version
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -130,8 +130,9 @@ Absolutely. In fact, we rely on users like you to tell us about things that nee
130
 
131
  == Changelog ==
132
 
133
- = 1.2.1 =
134
  * Activation Bug Fix
 
135
 
136
  = 1.2 =
137
  * 3.9 Support Added
@@ -151,7 +152,7 @@ Absolutely. In fact, we rely on users like you to tell us about things that nee
151
  = 1.00 =
152
  * Added support for buckets
153
 
154
- =0.78=
155
  * plugin Compatibility issues resolved
156
 
157
  = 0.76 =
4
  Tags: help, tutorial, training, learn, learning, sidekick, guide, teach, video, manual, videos, wphelp, support, instructions, question, questions, answers, answer, clippy, q&a, wpuniversity, helper, walkthrough
5
  Requires at least: 3.5
6
  Tested up to: 3.9
7
+ Stable tag: 1.2.2
8
  License: GNU Version 2 or Any Later Version
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
130
 
131
  == Changelog ==
132
 
133
+ = 1.2.2 =
134
  * Activation Bug Fix
135
+ * UI Enchancements
136
 
137
  = 1.2 =
138
  * 3.9 Support Added
152
  = 1.00 =
153
  * Added support for buckets
154
 
155
+ = 0.78 =
156
  * plugin Compatibility issues resolved
157
 
158
  = 0.76 =
sidekick.php CHANGED
@@ -6,12 +6,12 @@ Plugin URL: http://wordpress.org/plugins/sidekick/
6
  Description: Adds a real-time WordPress training walkthroughs right in your Dashboard
7
  Requires at least: 3.7
8
  Tested up to: 3.9
9
- Version: 1.2.1
10
  Author: Sidekick.pro
11
  Author URI: http://www.sidekick.pro
12
  */
13
 
14
- define('SK_PLUGIN_VERSION',1.2);
15
  define('SK_LIBRARY_VERSION',5);
16
  define('SK_PLATFORM_VERSION',6);
17
 
@@ -39,15 +39,17 @@ if ( ! function_exists('mlog')) {function mlog(){}}
39
  mlog('PHP: enqueue');
40
  $activation_id = get_option("sk_activation_id");
41
 
42
- define('SK_FREE_LIBRARY_FILE', "http://library.sidekick.pro/library/v" . SK_LIBRARY_VERSION . "/releases/xxxxxxxx-xxxx-xxxx-xxxx-xxxxfree/library.js?" . date('m-d-y-G'));
43
  if ($activation_id) {
44
- define('SK_PAID_LIBRARY_FILE', "http://library.sidekick.pro/library/v" . SK_LIBRARY_VERSION . "/releases/{$activation_id}/library.js?" . date('m-d-y-G'));
45
- wp_enqueue_script("sk_paid_library" , SK_PAID_LIBRARY_FILE , array("sk") ,null);
 
 
 
46
  }
47
 
48
- wp_enqueue_script('sidekick' ,'http://platform.sidekick.pro/v' . SK_PLATFORM_VERSION . '/sidekick.min.js', array('backbone','jquery','underscore','jquery-effects-highlight'), SK_PLUGIN_VERSION);
49
- wp_enqueue_script('sk' ,plugins_url( '/js/sk.source.js' , __FILE__ ), array('sidekick') ,SK_PLUGIN_VERSION);
50
- wp_enqueue_script("sk_free_library" , SK_FREE_LIBRARY_FILE , array("sk") ,null);
51
 
52
  wp_enqueue_style('sk-style' ,plugins_url( '/css/sidekick_wordpress.css' , __FILE__ ), null ,SK_PLUGIN_VERSION);
53
 
@@ -90,7 +92,7 @@ if ( ! function_exists('mlog')) {function mlog(){}}
90
  $sk_track_data = get_option( 'sk_track_data' );
91
  $error = null;
92
 
93
- if (SK_PAID_LIBRARY_FILE && $activation_id) {
94
  $_POST['activation_id'] = $activation_id;
95
  $check_activation = $this->activate(true);
96
  if ($check_activation) {
@@ -243,6 +245,32 @@ if ( ! function_exists('mlog')) {function mlog(){}}
243
  return $site_url;
244
  }
245
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
  function footer(){
247
  global $current_user, $wp_roles;
248
 
@@ -268,6 +296,8 @@ if ( ! function_exists('mlog')) {function mlog(){}}
268
 
269
  ?>
270
 
 
 
271
  <?php if (!$not_supported_ie): ?>
272
 
273
  <script type="text/javascript">
@@ -276,19 +306,22 @@ if ( ! function_exists('mlog')) {function mlog(){}}
276
  domain: '<?php echo str_replace("http://","",$_SERVER["SERVER_NAME"]) ?>',
277
  installed_plugins: <?php echo $this->list_plugins() ?>,
278
  installed_theme: '<?php echo $theme->Name ?>',
279
- library_free_file: '<?php echo SK_FREE_LIBRARY_FILE ?>',
280
- library_paid_file: '<?php echo SK_PAID_LIBRARY_FILE ?>',
281
- library_version: <?php echo SK_LIBRARY_VERSION ?>,
 
 
282
  main_soft_name: 'WordPress',
283
  main_soft_version: '<?php echo get_bloginfo("version") ?>',
284
- plugin_version: <?php echo SK_PLUGIN_VERSION ?>,
285
- platform_version: <?php echo SK_PLATFORM_VERSION ?>,
286
  plugin_url: '<?php echo admin_url("admin.php?page=sidekick") ?>',
287
  theme_version: '<?php echo $theme->Version ?>',
288
  site_url: '<?php echo $site_url ?>',
289
  track_data: '<?php echo get_option( "track_data" ) ?>',
290
  user_level: '<?php echo $user_role ?>',
291
  user_email: '<?php echo $current_user->user_email ?>',
 
 
 
292
  use_native_controls: false,
293
  // open_bucket: 476
294
  }
6
  Description: Adds a real-time WordPress training walkthroughs right in your Dashboard
7
  Requires at least: 3.7
8
  Tested up to: 3.9
9
+ Version: 1.2.2
10
  Author: Sidekick.pro
11
  Author URI: http://www.sidekick.pro
12
  */
13
 
14
+ define('SK_PLUGIN_VERSION',1.3);
15
  define('SK_LIBRARY_VERSION',5);
16
  define('SK_PLATFORM_VERSION',6);
17
 
39
  mlog('PHP: enqueue');
40
  $activation_id = get_option("sk_activation_id");
41
 
42
+ define('SK_FREE_LIBRARY_FILE', "//library.sidekick.pro/library/v" . SK_LIBRARY_VERSION . "/releases/xxxxxxxx-xxxx-xxxx-xxxx-xxxxfree/library.js?" . date('m-d-y-G'));
43
  if ($activation_id) {
44
+ define('SK_PAID_LIBRARY_FILE', "//library.sidekick.pro/library/v" . SK_LIBRARY_VERSION . "/releases/{$activation_id}/library.js?" . date('m-d-y-G'));
45
+ wp_enqueue_script("sk_paid_library" , SK_PAID_LIBRARY_FILE , null ,null);
46
+ wp_enqueue_script("sk_free_library" , SK_FREE_LIBRARY_FILE , array('sk_paid_library') ,null);
47
+ } else {
48
+ wp_enqueue_script("sk_free_library" , SK_FREE_LIBRARY_FILE , array() ,null);
49
  }
50
 
51
+ wp_enqueue_script('sidekick' ,'//platform.sidekick.pro/v' . SK_PLATFORM_VERSION . '/sidekick.min.js', array('sk_free_library','backbone','jquery','underscore','jquery-effects-highlight'), SK_PLUGIN_VERSION);
52
+ wp_enqueue_script('player' ,plugins_url( '/js/sk.source.js' , __FILE__ ), array('sidekick') ,SK_PLUGIN_VERSION);
 
53
 
54
  wp_enqueue_style('sk-style' ,plugins_url( '/css/sidekick_wordpress.css' , __FILE__ ), null ,SK_PLUGIN_VERSION);
55
 
92
  $sk_track_data = get_option( 'sk_track_data' );
93
  $error = null;
94
 
95
+ if (defined('SK_PAID_LIBRARY_FILE') && $activation_id) {
96
  $_POST['activation_id'] = $activation_id;
97
  $check_activation = $this->activate(true);
98
  if ($check_activation) {
245
  return $site_url;
246
  }
247
 
248
+ function list_post_types(){
249
+ global $wpdb;
250
+ $query = "SELECT post_type, count(distinct ID) as count from wp_posts group by post_type";
251
+ $counts = $wpdb->get_results($query);
252
+ foreach ($counts as $key => $type) {
253
+ $type->post_type = str_replace('-', '_', $type->post_type);
254
+ echo "\n post_type_{$type->post_type} : $type->count,";
255
+ }
256
+ }
257
+
258
+ function list_comments(){
259
+ global $wpdb;
260
+ $query = "SELECT count(distinct comment_ID) as count from wp_comments";
261
+ $counts = $wpdb->get_var($query);
262
+ echo "\n comment_count : $counts,";
263
+ }
264
+
265
+ function get_user_data(){
266
+ global $current_user;
267
+ $data = get_userdata($current_user->ID);
268
+ foreach ($data->allcaps as $cap => $val) {
269
+ $cap = str_replace('-', '_', $cap);
270
+ echo "\n cap_{$cap} : $val,";
271
+ }
272
+ }
273
+
274
  function footer(){
275
  global $current_user, $wp_roles;
276
 
296
 
297
  ?>
298
 
299
+
300
+
301
  <?php if (!$not_supported_ie): ?>
302
 
303
  <script type="text/javascript">
306
  domain: '<?php echo str_replace("http://","",$_SERVER["SERVER_NAME"]) ?>',
307
  installed_plugins: <?php echo $this->list_plugins() ?>,
308
  installed_theme: '<?php echo $theme->Name ?>',
309
+ library_free_file: '<?php echo (defined("SK_FREE_LIBRARY_FILE") ? SK_FREE_LIBRARY_FILE : '') ?>',
310
+ library_paid_file: '<?php echo (defined("SK_PAID_LIBRARY_FILE") ? SK_PAID_LIBRARY_FILE : '') ?>',
311
+ library_version: '<?php echo (defined("SK_LIBRARY_VERSION") ? SK_LIBRARY_VERSION : '') ?>',
312
+ plugin_version: '<?php echo (defined("SK_PLUGIN_VERSION") ? SK_PLUGIN_VERSION : '') ?>',
313
+ platform_version: '<?php echo (defined("SK_PLATFORM_VERSION") ? SK_PLATFORM_VERSION : '') ?>',
314
  main_soft_name: 'WordPress',
315
  main_soft_version: '<?php echo get_bloginfo("version") ?>',
 
 
316
  plugin_url: '<?php echo admin_url("admin.php?page=sidekick") ?>',
317
  theme_version: '<?php echo $theme->Version ?>',
318
  site_url: '<?php echo $site_url ?>',
319
  track_data: '<?php echo get_option( "track_data" ) ?>',
320
  user_level: '<?php echo $user_role ?>',
321
  user_email: '<?php echo $current_user->user_email ?>',
322
+ <?php $this->list_post_types() ?>
323
+ <?php $this->get_user_data() ?>
324
+ <?php $this->list_comments() ?>
325
  use_native_controls: false,
326
  // open_bucket: 476
327
  }