Sidekick - Version 1.1

Version Description

  • Brand New User Interface
  • Hotspot Support Added
  • 3.8 Support Added
  • Deeper sub-category support
  • Sidekick Platform Upgraded
  • Known bug exists with HTTPs protocols
Download this release

Release Info

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

Code changes from version 1.0 to 1.1

css/sidekick_wordpress.css CHANGED
@@ -1,385 +1,804 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  div#sidekick {
2
  position: fixed;
3
- bottom: 10px;
4
- right: -3px;
5
- width: 300px;
6
- display: none;
7
- border: solid 1px transparent;
8
- font-family: Helvetica;
9
- text-shadow: 1px 1px 3px #000;
10
- overflow: hidden;
11
- z-index: 1000000;
12
- -webkit-border-radius: 3px;
13
- -moz-border-radius: 3px;
14
- -ms-border-radius: 3px;
15
- -o-border-radius: 3px;
16
- border-radius: 3px;
17
- }
18
- div#sidekick .hide {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  display: none;
20
  }
21
- div#sidekick > * {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  display: none;
23
  }
24
  div#sidekick button {
25
  cursor: pointer;
26
  cursor: hand;
 
27
  }
28
- div#sidekick button #goto_library {
29
- padding: 10px 20px;
30
- background-color: #E04F19;
31
- text-transform: uppercase;
32
- margin: 10px auto;
33
- border: solid 1px white;
34
- color: white;
35
- font-size: 14px;
36
- display: block;
37
- -moz-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
38
- -webkit-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
39
- box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
40
- -webkit-border-radius: 3px;
41
- -moz-border-radius: 3px;
42
- -ms-border-radius: 3px;
43
- -o-border-radius: 3px;
44
- border-radius: 3px;
45
- }
46
- div#sidekick button #goto_library:hover {
47
- background-color: #f75619;
48
- color: #fff;
49
- }
50
- div#sidekick ul.bucketContainer {
51
- height: 217px;
52
- overflow-y: hidden;
53
- overflow-x: hidden;
54
- }
55
- div#sidekick ul.bucketContainer div > li {
56
- width: 300px;
57
- height: 217px;
58
- overflow-y: auto;
59
- }
60
- div#sidekick ul {
61
- margin: 0;
62
  width: 100%;
 
 
63
  position: relative;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  }
65
- div#sidekick ul .list {
66
- height: 217px;
67
- overflow-x: hidden;
68
- overflow-y: auto;
 
 
 
 
 
 
 
 
 
 
69
  }
70
- div#sidekick ul .list a {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  color: white;
72
- text-decoration: none;
 
73
  }
74
- div#sidekick ul .list a:hover div {
75
- color: yellow;
 
 
 
 
 
76
  }
77
- div#sidekick ul .list a:first-child li {
78
- -moz-box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0.8);
79
- -webkit-box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0.8);
80
- box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0.8);
81
  }
82
- div#sidekick ul .list a:nth-child(even) li {
83
- background-color: #2c517a;
 
84
  }
85
- div#sidekick ul .list a:nth-child(even) li:hover {
86
- background-color: #294c73;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  }
88
- div#sidekick ul .list a li {
89
- background-color: #4986cc;
90
- min-height: 24px;
91
- line-height: 24px;
92
- overflow: hidden;
93
- width: 100%;
94
  }
95
- div#sidekick ul .list a li:hover {
96
- -webkit-transition: all 0.1s ease-out;
97
- -moz-transition: all 0.1s ease-out;
98
- -o-transition: all 0.1s ease-out;
99
- transition: all 0.1s ease-out;
100
- background-color: #437bbc;
101
  }
102
- div#sidekick ul .list a li div {
103
- padding: 0 0 0 16px;
104
  }
105
- div#sidekick ul .new_window {
106
- left: 300px;
107
  }
108
- div#sidekick ul .new_window,
109
- div#sidekick ul .current_window {
110
- position: absolute;
111
- top: 0px;
112
- width: 100%;
113
- height: 217px;
114
- overflow-y: auto;
115
  }
116
- div#sidekick ul .main {
117
- overflow: auto;
118
- height: 217px;
119
  }
120
- div#sidekick ul .message div {
121
- background-color: #454545;
122
- padding: 10px;
123
- font-size: 14px;
124
- line-height: 18px;
125
- height: 217px;
126
  }
127
- div#sidekick ul .review {
128
- background-color: #3A3A3A;
 
 
 
129
  }
130
- div#sidekick ul .review li {
131
- padding: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  }
133
- div#sidekick ul .review li div {
134
- padding: 10px;
 
135
  }
136
- div#sidekick ul .review li input[type="button"],
137
- div#sidekick ul .review li input[type="submit"] {
138
- padding: 10px 20px;
139
- background-color: #6fe04a;
140
- text-transform: uppercase;
141
- /*margin: 10px auto;*/
142
 
143
- border: solid 1px white;
 
 
 
144
  color: white;
145
- font-size: 14px;
146
- display: block;
147
- -moz-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
148
- -webkit-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
149
- box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
150
- -webkit-border-radius: 3px;
151
- -moz-border-radius: 3px;
152
- border-radius: 3px;
153
- margin-bottom: 20px;
154
- color: black;
155
- font-weight: bold;
156
- cursor: pointer;
157
- float: right;
158
  }
159
- div#sidekick ul .review li input[type="button"]:hover,
160
- div#sidekick ul .review li input[type="submit"]:hover {
161
- background-color: #76f24f;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  }
163
- div#sidekick ul .review li input[type="button"] {
164
- background-color: #bec2c4;
165
- float: left;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  }
167
- div#sidekick ul .review li input[type="button"]:hover {
168
- background-color: #cacfd1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
  }
170
- div#sidekick ul .review li textarea {
171
- width: 100%;
172
- color: gray;
173
- line-height: 20px;
174
- min-height: 80px;
175
- margin-bottom: 10px;
176
  }
177
- div#sidekick ul .review li .rate {
178
- height: 24px;
179
- width: 120px;
180
- margin: 0 auto;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  }
182
- div#sidekick ul .review li .rate span {
 
 
 
183
  width: 20px;
184
  height: 20px;
185
- background: url('../images/sidekick_wp_sprites.png') -676px -43px;
186
- display: block;
187
- float: left;
188
- margin: 0 2px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
189
  cursor: pointer;
 
190
  }
191
- div#sidekick ul .review li .rate span.hover {
192
- background: url('../images/sidekick_wp_sprites.png') -676px -69px;
 
 
 
 
 
193
  }
194
- div#sidekick ul .review li .rate span.saved {
195
- background: url('../images/sidekick_wp_sprites.png') -676px -102px;
 
 
196
  }
197
- div#sidekick ul li.heading,
198
- div#sidekick ul li.heading:hover {
199
- -moz-box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0.8);
200
- -webkit-box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0.8);
201
- box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0.8);
202
- background-color: #454545;
203
- cursor: default;
204
  }
205
- div#sidekick ul li.heading div,
206
- div#sidekick ul li.heading:hover div {
207
- padding: 6px 0 6px 10px;
 
 
 
 
 
 
 
 
 
 
 
 
208
  }
209
- div#sidekick ul li {
210
- color: white;
211
- margin: 0;
212
- /*position: absolute;*/
 
 
 
 
 
 
 
 
 
 
 
 
 
213
 
214
- width: 100%;
215
  }
216
- div#sidekick ul li ul {
217
- padding: 0;
 
 
 
 
218
  }
219
- div#sidekick ul li ul li {
220
- position: relative;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
221
  }
222
- div#sidekick ul li.group_section {
223
- min-height: 54px;
224
- background-color: #454545;
225
- font-size: 14px;
226
- /*line-height: 54px;*/
 
 
 
 
 
 
 
 
 
 
 
227
 
228
- color: white;
229
- margin: 0;
230
- position: relative;
231
- cursor: pointer;
232
- cursor: hand;
233
- -moz-box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.3);
234
- -webkit-box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.3);
235
- box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.3);
236
  }
237
- div#sidekick ul li.group_section > div {
238
- padding: 19px 10px;
 
 
 
 
 
 
 
 
 
 
 
 
 
239
  }
240
- div#sidekick ul li.group_section span {
241
- background-color: #2f2f2f;
242
- width: 53px;
243
- height: 30px;
244
- display: block;
245
- position: absolute;
246
- top: 13px;
247
- right: 10px;
248
  text-align: center;
249
- line-height: 30px;
250
- }
251
- div#sidekick ul li.group_section:hover {
252
- -webkit-transition: all 0.1s ease-out;
253
- -moz-transition: all 0.1s ease-out;
254
- -o-transition: all 0.1s ease-out;
255
- transition: all 0.1s ease-out;
256
- background-color: #3a3a3a;
257
- color: yellow;
258
- }
259
- div#sidekick ul li.group_section:nth-child(odd) {
260
- background-color: #2c517a;
261
- }
262
- div#sidekick ul li.group_section:nth-child(odd) span {
263
- background-color: #234163;
264
- }
265
- div#sidekick ul li.group_section:nth-child(odd):hover {
266
- -webkit-transition: all 0.1s ease-out;
267
- -moz-transition: all 0.1s ease-out;
268
- -o-transition: all 0.1s ease-out;
269
- transition: all 0.1s ease-out;
270
- background-color: #325b8b;
271
- }
272
- div#sidekick ul li.group_section:nth-child(odd):hover span {
273
- background-color: #234163;
274
- }
275
- div#sidekick h2 {
276
- cursor: default;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
277
  text-align: center;
278
- color: white;
279
- font-weight: normal;
 
 
 
 
 
280
  font-size: 14px;
281
- min-height: 35px;
282
- line-height: 35px;
283
- position: relative;
284
- margin: 0;
285
- -webkit-border-radius: 3px;
286
- -moz-border-radius: 3px;
287
- border-radius: 3px;
288
- background: #2c517a;
289
- /* Old browsers */
290
 
291
- background: -moz-linear-gradient(top, #2c517a 0%, #395777 46%, #2c517a 100%);
292
- /* FF3.6+ */
293
 
294
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #2c517a), color-stop(46%, #395777), color-stop(100%, #2c517a));
295
- /* Chrome,Safari4+ */
296
 
297
- background: -webkit-linear-gradient(top, #2c517a 0%, #395777 46%, #2c517a 100%);
298
- /* Chrome10+,Safari5.1+ */
299
 
300
- background: -o-linear-gradient(top, #2c517a 0%, #395777 46%, #2c517a 100%);
301
- /* Opera 11.10+ */
 
 
 
 
 
 
 
 
302
 
303
- background: -ms-linear-gradient(top, #2c517a 0%, #395777 46%, #2c517a 100%);
304
- /* IE10+ */
305
 
306
- background: linear-gradient(to bottom, #2c517a 0%, #395777 46%, #2c517a 100%);
307
- /* W3C */
308
 
309
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2c517a', endColorstr='#2c517a', GradientType=0);
310
- /* IE6-9 */
311
 
312
- -moz-box-shadow: inset 3px 3px 15px rgba(0, 0, 0, 0.5);
313
- -webkit-box-shadow: inset 3px 3px 15px rgba(0, 0, 0, 0.5);
314
- box-shadow: inset 3px 3px 15px rgba(0, 0, 0, 0.5);
315
  }
316
- div#sidekick h2 button {
317
- float: left;
318
- background-color: #3487b8;
319
- border: none;
320
- position: absolute;
321
- top: 5px;
322
- left: 5px;
323
- width: 30px;
324
- height: 24px;
325
- line-height: 24px;
 
 
 
 
 
 
 
 
 
 
 
326
  color: white;
327
- -moz-box-shadow: inset 0px 0px 15px rgba(0, 0, 0, 0.3);
328
- -webkit-box-shadow: inset 0px 0px 15px rgba(0, 0, 0, 0.3);
329
- box-shadow: inset 0px 0px 15px rgba(0, 0, 0, 0.3);
330
- -webkit-border-radius: 3px;
331
- -moz-border-radius: 3px;
332
- border-radius: 3px;
333
- border: solid 1px #3c6fa9;
334
- background: url('../images/sidekick_wp_sprites.png') -640px -38px;
335
- }
336
- div#sidekick h2 button:hover {
337
- background-color: #3a9bd5;
338
- }
339
- div#sidekick h2 button.goback {
340
- background: url('../images/sidekick_wp_sprites.png') -641px -21px;
341
- }
342
- div#sidekick h2 button.close {
343
- background: url('../images/sidekick_wp_sprites.png') -640px -75px;
344
- left: auto;
345
- right: 10px;
346
- }
347
- div#sidekick > ul {
348
- height: 260px;
349
- }
350
- div#sidekick > #logo {
351
- width: 70px;
352
- height: 70px;
353
- right: -30px;
354
- background: url('../images/sidekick_wp_sprites.png') -476px -347px;
355
- display: block;
356
  position: relative;
357
  cursor: pointer;
358
  cursor: hand;
359
- margin-top: 235px;
360
  }
361
- div#sidekick > #logo:hover {
362
- background: url('../images/sidekick_wp_sprites.png') -562px -347px;
 
 
 
 
 
 
 
363
  }
364
- div#sidekick #logo_full {
365
- width: 100px;
366
- height: 38px;
367
- margin: 6px auto 0;
368
- background: url('../images/sidekick_wp_sprites.png') -299px -371px;
369
- position: relative;
370
  }
371
- div#sidekick div.search {
372
- background-color: transparent;
373
- padding: 1px 5px;
374
  }
375
- div#sidekick div.search input {
376
- width: 100%;
377
- padding: 6px 20px;
378
- color: #cfcfcf;
379
- border: none;
 
 
 
 
 
 
 
 
380
  }
381
- div#sidekick.shadow {
382
- -moz-box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.5);
383
- -webkit-box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.5);
384
- box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.5);
385
  }
1
+ @-moz-keyframes pulse {
2
+ 0% {
3
+ opacity: 0;
4
+ }
5
+ 100% {
6
+ opacity: 1;
7
+ }
8
+ }
9
+ .point_left {
10
+ -webkit-transform: rotate(270deg);
11
+ -moz-transform: rotate(270deg);
12
+ -ms-transform: rotate(270deg);
13
+ -o-transform: rotate(270deg);
14
+ transform: rotate(270deg);
15
+ }
16
+ .point_right {
17
+ -webkit-transform: rotate(90deg);
18
+ -moz-transform: rotate(90deg);
19
+ -ms-transform: rotate(90deg);
20
+ -o-transform: rotate(90deg);
21
+ transform: rotate(90deg);
22
+ }
23
+ .rotate_right2 {
24
+ -webkit-transform: rotate(180deg);
25
+ -moz-transform: rotate(180deg);
26
+ -ms-transform: rotate(180deg);
27
+ -o-transform: rotate(180deg);
28
+ transform: rotate(180deg);
29
+ }
30
+ div.sk_hotspot {
31
+ width: 25px;
32
+ height: 25px;
33
+ position: absolute;
34
+ cursor: pointer;
35
+ background: url('../images/sprides_v11.png') -3px -796px;
36
+ opacity: 0.0;
37
+ margin-left: -20px;
38
+ margin-top: -10px;
39
+ /*z-index: 10000000;*/
40
+
41
+ }
42
+ div.sk_hotspot.visible {
43
+ opacity: 0.8;
44
+ -webkit-animation: cssAnimation 0.3s 1 ease;
45
+ -moz-animation: cssAnimation 0.3s 1 ease;
46
+ -o-animation: cssAnimation 0.3s 1 ease;
47
+ }
48
+ @-webkit-keyframes cssAnimation {
49
+ from {
50
+ -webkit-transform: rotate(49deg) scale(0.5) translate(20px);
51
+ }
52
+ to {
53
+ -webkit-transform: rotate(0deg) scale(3);
54
+ }
55
+ }
56
+ @-moz-keyframes cssAnimation {
57
+ from {
58
+ -moz-transform: rotate(49deg) scale(0.5) translate(20px);
59
+ }
60
+ to {
61
+ -moz-transform: rotate(0deg) scale(3);
62
+ }
63
+ }
64
+ @-o-keyframes cssAnimation {
65
+ from {
66
+ -o-transform: rotate(49deg) scale(0.5) translate(20px);
67
+ }
68
+ to {
69
+ -o-transform: rotate(0deg) scale(3);
70
+ }
71
+ }
72
+ div.sk_hotspot:hover {
73
+ transform: translate3d(0, 0, 0);
74
+ -webkit-transition: all 0.1s ease-in-out;
75
+ -moz-transition: all 0.1s ease-in-out;
76
+ -o-transition: all 0.1s ease-in-out;
77
+ transition: all 0.1s ease-in-out;
78
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
79
+
80
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
81
+
82
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
83
+
84
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
85
+
86
+ opacity: 1;
87
+ transform: scale(1.2, 1.2);
88
+ -ms-transform: scale(1.2, 1.2);
89
+ -webkit-transform: scale(1.2, 1.2);
90
+ -o-transform: scale(1.2, 1.2);
91
+ -moz-transform: scale(1.2, 1.2);
92
+ }
93
+ body.branch-3-8 div#sidekick {
94
+ width: 150px;
95
+ }
96
+ body.branch-3-8 div#sidekick.open {
97
+ width: 100%;
98
+ }
99
+ body.branch-3-8 div#sidekick.open div#sk_taskbar div#logo {
100
+ width: 124px;
101
+ }
102
+ body.branch-3-8 div#sidekick.playing {
103
+ width: 100%;
104
+ }
105
+ body.branch-3-8 div#sidekick.playing div#sk_taskbar div#logo {
106
+ width: 124px;
107
+ }
108
+ @media (max-width: 900px) {
109
+ body div#sidekick,
110
+ body.branch-3-8 div#sidekick {
111
+ width: 36px;
112
+ }
113
+ body div#sidekick div#sk_taskbar div#logo,
114
+ body.branch-3-8 div#sidekick div#sk_taskbar div#logo {
115
+ width: 19px;
116
+ background-position: 3px 9px;
117
+ }
118
+ body div#sidekick div#sk_taskbar button.sk_toggle,
119
+ body.branch-3-8 div#sidekick div#sk_taskbar button.sk_toggle {
120
+ width: 5px;
121
+ border: none;
122
+ min-width: 17px;
123
+ background-position: -9px -358px;
124
+ }
125
+ body div#sidekick.open button.sk_toggle,
126
+ body.branch-3-8 div#sidekick.open button.sk_toggle,
127
+ body div#sidekick.playing button.sk_toggle,
128
+ body.branch-3-8 div#sidekick.playing button.sk_toggle {
129
+ -webkit-transform: rotate(180deg);
130
+ -moz-transform: rotate(180deg);
131
+ -ms-transform: rotate(180deg);
132
+ -o-transform: rotate(180deg);
133
+ transform: rotate(180deg);
134
+ }
135
+ }
136
  div#sidekick {
137
  position: fixed;
138
+ bottom: 0px;
139
+ left: 0px;
140
+ height: 40px;
141
+ width: 145px;
142
+ /*overflow: hidden;*/
143
+
144
+ z-index: 1000001;
145
+ /*.animate_reg;*/
146
+
147
+ }
148
+ div#sidekick.sidekick_player {
149
+ left: 0px;
150
+ bottom: 0px;
151
+ display: block;
152
+ }
153
+ div#sidekick.open {
154
+ width: 100%;
155
+ -webkit-transition: all 0.5s ease-out;
156
+ -moz-transition: all 0.5s ease-out;
157
+ -o-transition: all 0.5s ease-out;
158
+ transition: all 0.5s ease-out;
159
+ }
160
+ div#sidekick.open div#sk_taskbar button.sk_toggle {
161
+ background: url('../images/sprides_v11.png') -6px -394px;
162
+ }
163
+ div#sidekick.open div#sk_taskbar div.sk_controls {
164
+ display: block;
165
+ }
166
+ div#sidekick.open div#sk_taskbar div.sk_info,
167
+ div#sidekick.open div#sk_taskbar div.sk_toggle,
168
+ div#sidekick.open div#sk_taskbar div.sk_toggles {
169
+ display: block;
170
+ }
171
+ div#sidekick.playing {
172
+ width: 100%;
173
+ }
174
+ div#sidekick.playing #sk_drawer {
175
+ height: 0px;
176
  display: none;
177
  }
178
+ div#sidekick.playing div#sk_taskbar div.sk_controls {
179
+ display: block;
180
+ }
181
+ div#sidekick.playing div#sk_taskbar div.sk_controls button {
182
+ opacity: 1;
183
+ }
184
+ div#sidekick.playing div#sk_taskbar div.sk_info {
185
+ display: block;
186
+ }
187
+ div#sidekick.playing div#sk_taskbar div.sk_info div.sk_time,
188
+ div#sidekick.playing div#sk_taskbar div.sk_info div.sk_title {
189
+ opacity: 1;
190
+ }
191
+ div#sidekick.playing div#sk_taskbar button.sk_toggle {
192
+ background: url('../images/sprides_v11.png') -6px -394px;
193
+ }
194
+ div#sidekick.playing div#sk_taskbar div.sk_toggles {
195
+ display: block;
196
+ margin-top: 100px;
197
+ transform: translate3d(0, 0, 0);
198
+ -webkit-transition: all 0.3s ease-out;
199
+ -moz-transition: all 0.3s ease-out;
200
+ -o-transition: all 0.3s ease-out;
201
+ transition: all 0.3s ease-out;
202
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
203
+
204
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
205
+
206
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
207
+
208
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
209
+
210
+ }
211
+ div#sidekick.playing div#sk_taskbar div.sk_toggles #toggle_drawer {
212
  display: none;
213
  }
214
  div#sidekick button {
215
  cursor: pointer;
216
  cursor: hand;
217
+ padding: 0px;
218
  }
219
+ div#sidekick div#sk_taskbar {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  width: 100%;
221
+ height: 100%;
222
+ z-index: 1000003;
223
  position: relative;
224
+ background: #ff712b;
225
+ /* Old browsers */
226
+
227
+ /* IE9 SVG, needs conditional override of 'filter' to 'none' */
228
+
229
+ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmNzEyYiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlZDVmMTkiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
230
+ background: -moz-linear-gradient(top, #ff712b 0%, #ed5f19 100%);
231
+ /* FF3.6+ */
232
+
233
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ff712b), color-stop(100%, #ed5f19));
234
+ /* Chrome,Safari4+ */
235
+
236
+ background: -webkit-linear-gradient(top, #ff712b 0%, #ed5f19 100%);
237
+ /* Chrome10+,Safari5.1+ */
238
+
239
+ background: -o-linear-gradient(top, #ff712b 0%, #ed5f19 100%);
240
+ /* Opera 11.10+ */
241
+
242
+ background: -ms-linear-gradient(top, #ff712b 0%, #ed5f19 100%);
243
+ /* IE10+ */
244
+
245
+ background: linear-gradient(to bottom, #ff712b 0%, #ed5f19 100%);
246
+ /* W3C */
247
+
248
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff712b', endColorstr='#ed5f19', GradientType=0);
249
+ /* IE6-8 */
250
+
251
  }
252
+ div#sidekick div#sk_taskbar button {
253
+ border: none;
254
+ height: 100%;
255
+ min-width: 26px;
256
+ float: left;
257
+ }
258
+ div#sidekick div#sk_taskbar div#logo {
259
+ float: left;
260
+ height: 100%;
261
+ width: 116px;
262
+ /*width: 124px; wp 3.8+ */
263
+
264
+ background: url('../images/sprides_v11.png') 8px 9px no-repeat;
265
+ cursor: pointer;
266
  }
267
+ div#sidekick div#sk_taskbar button.sk_toggle {
268
+ float: left;
269
+ height: 100%;
270
+ width: 20px;
271
+ background: url('../images/sprides_v11.png') 0px -358px;
272
+ border: none;
273
+ }
274
+ div#sidekick div#sk_taskbar div.sk_info {
275
+ display: none;
276
+ height: 100%;
277
+ }
278
+ div#sidekick div#sk_taskbar div.sk_info .sk_time {
279
+ float: left;
280
+ height: 100%;
281
+ font-size: 16px;
282
  color: white;
283
+ margin: 13px 30px;
284
+ opacity: 0.3;
285
  }
286
+ div#sidekick div#sk_taskbar div.sk_info .sk_title {
287
+ float: left;
288
+ height: 100%;
289
+ font-size: 16px;
290
+ color: white;
291
+ border-left: solid 1px white;
292
+ opacity: 0.3;
293
  }
294
+ div#sidekick div#sk_taskbar div.sk_info .sk_title label {
295
+ font-size: 10px;
296
+ display: block;
 
297
  }
298
+ div#sidekick div#sk_taskbar div.sk_info .sk_title span,
299
+ div#sidekick div#sk_taskbar div.sk_info .sk_title label {
300
+ margin: 1px 30px 0px;
301
  }
302
+ div#sidekick div#sk_taskbar div.sk_controls {
303
+ float: left;
304
+ height: 100%;
305
+ border-right: solid 1px white;
306
+ border-left: solid 1px white;
307
+ display: none;
308
+ background: #fb985f;
309
+ /* Old browsers */
310
+
311
+ /* IE9 SVG, needs conditional override of 'filter' to 'none' */
312
+
313
+ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZiOTg1ZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlZDZjMjAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
314
+ background: -moz-linear-gradient(top, #fb985f 0%, #ed6c20 100%);
315
+ /* FF3.6+ */
316
+
317
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fb985f), color-stop(100%, #ed6c20));
318
+ /* Chrome,Safari4+ */
319
+
320
+ background: -webkit-linear-gradient(top, #fb985f 0%, #ed6c20 100%);
321
+ /* Chrome10+,Safari5.1+ */
322
+
323
+ background: -o-linear-gradient(top, #fb985f 0%, #ed6c20 100%);
324
+ /* Opera 11.10+ */
325
+
326
+ background: -ms-linear-gradient(top, #fb985f 0%, #ed6c20 100%);
327
+ /* IE10+ */
328
+
329
+ background: linear-gradient(to bottom, #fb985f 0%, #ed6c20 100%);
330
+ /* W3C */
331
+
332
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fb985f', endColorstr='#ed6c20', GradientType=0);
333
+ /* IE6-8 */
334
+
335
  }
336
+ div#sidekick div#sk_taskbar div.sk_controls button {
337
+ width: 70px;
338
+ opacity: 0.3;
 
 
 
339
  }
340
+ div#sidekick div#sk_taskbar div.sk_controls button.sidekick_restart {
341
+ background: url('../images/sprides_v11.png') 17px -140px;
 
 
 
 
342
  }
343
+ div#sidekick div#sk_taskbar div.sk_controls button.sidekick_restart:hover {
344
+ background: #d9763b url('../images/sprides_v11.png') 17px -140px;
345
  }
346
+ div#sidekick div#sk_taskbar div.sk_controls button.sidekick_play_pause {
347
+ background: url('../images/sprides_v11.png') 17px -178px;
348
  }
349
+ div#sidekick div#sk_taskbar div.sk_controls button.sidekick_play_pause.playing {
350
+ background: url('../images/sprides_v11.png') 17px -718px;
351
+ /*-moz-animation: pulse 1s infinite linear;*/
352
+
353
+ /*-webkit-animation: pulse 1s infinite linear;*/
354
+
 
355
  }
356
+ div#sidekick div#sk_taskbar div.sk_controls button.sidekick_play_pause:hover {
357
+ background: #d9763b url('../images/sprides_v11.png') 17px -178px;
 
358
  }
359
+ div#sidekick div#sk_taskbar div.sk_controls button.sidekick_stop {
360
+ background: url('../images/sprides_v11.png') 17px -210px;
361
+ }
362
+ div#sidekick div#sk_taskbar div.sk_controls button.sidekick_stop:hover {
363
+ background: #d9763b url('../images/sprides_v11.png') 17px -210px;
 
364
  }
365
+ div#sidekick div#sk_taskbar div.sk_toggle {
366
+ float: left;
367
+ height: 100%;
368
+ min-width: 400px;
369
+ display: none;
370
  }
371
+ div#sidekick div#sk_taskbar div.sk_toggles {
372
+ transform: translate3d(0, 0, 0);
373
+ -webkit-transition: all 0.3s ease-out;
374
+ -moz-transition: all 0.3s ease-out;
375
+ -o-transition: all 0.3s ease-out;
376
+ transition: all 0.3s ease-out;
377
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
378
+
379
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
380
+
381
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
382
+
383
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
384
+
385
+ margin-top: 0px;
386
+ display: none;
387
+ float: right;
388
+ height: 100%;
389
  }
390
+ div#sidekick div#sk_taskbar div.sk_toggles button {
391
+ height: 100%;
392
+ width: 70px;
393
  }
394
+ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_hotspots {
395
+ /*display: none;*/
 
 
 
 
396
 
397
+ border-left: solid 1px white;
398
+ background: #f1631d url('../images/sprides_v11.png') 10px -248px;
399
+ padding-left: 24px;
400
+ font-size: 18px;
401
  color: white;
 
 
 
 
 
 
 
 
 
 
 
 
 
402
  }
403
+ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_hotspots.on {
404
+ background: #fa8c00 url('../images/sprides_v11.png') 10px -248px;
405
+ }
406
+ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_hotspots:hover {
407
+ background: #fa8c00 url('../images/sprides_v11.png') 10px -248px;
408
+ transform: translate3d(0, 0, 0);
409
+ -webkit-transition: all 0.3s ease-out;
410
+ -moz-transition: all 0.3s ease-out;
411
+ -o-transition: all 0.3s ease-out;
412
+ transition: all 0.3s ease-out;
413
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
414
+
415
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
416
+
417
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
418
+
419
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
420
+
421
  }
422
+ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_feedback {
423
+ background: #f1631d url('../images/sprides_v11.png') 17px -287px;
424
+ border-right: solid 1px white;
425
+ border-left: solid 1px white;
426
+ width: 74px;
427
+ }
428
+ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_feedback:hover {
429
+ background: #fa8c00 url('../images/sprides_v11.png') 17px -287px;
430
+ transform: translate3d(0, 0, 0);
431
+ -webkit-transition: all 0.3s ease-out;
432
+ -moz-transition: all 0.3s ease-out;
433
+ -o-transition: all 0.3s ease-out;
434
+ transition: all 0.3s ease-out;
435
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
436
+
437
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
438
+
439
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
440
+
441
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
442
+
443
  }
444
+ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_preferences {
445
+ background: #f1631d url('../images/sprides_v11.png') 17px -33px;
446
+ border-right: solid 1px white;
447
+ border-left: solid 1px white;
448
+ width: 74px;
449
+ }
450
+ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_preferences:hover {
451
+ background: #fa8c00 url('../images/sprides_v11.png') 17px -33px;
452
+ transform: translate3d(0, 0, 0);
453
+ -webkit-transition: all 0.3s ease-out;
454
+ -moz-transition: all 0.3s ease-out;
455
+ -o-transition: all 0.3s ease-out;
456
+ transition: all 0.3s ease-out;
457
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
458
+
459
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
460
+
461
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
462
+
463
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
464
+
465
  }
466
+ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_drawer {
467
+ background: #f1631d url('../images/sprides_v11.png') 17px -431px;
468
+ position: relative;
 
 
 
469
  }
470
+ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_drawer:hover {
471
+ background: #fa8c00 url('../images/sprides_v11.png') 17px -431px;
472
+ transform: translate3d(0, 0, 0);
473
+ -webkit-transition: all 0.3s ease-out;
474
+ -moz-transition: all 0.3s ease-out;
475
+ -o-transition: all 0.3s ease-out;
476
+ transition: all 0.3s ease-out;
477
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
478
+
479
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
480
+
481
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
482
+
483
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
484
+
485
+ }
486
+ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_drawer.on {
487
+ background-color: #FA8C00;
488
  }
489
+ div#sidekick div#sk_taskbar div.sk_toggles button#toggle_drawer.on i {
490
+ position: absolute;
491
+ left: 26px;
492
+ top: -10px;
493
  width: 20px;
494
  height: 20px;
495
+ background: url('../images/sprides_v11.png') -9px -696px;
496
+ }
497
+ div#sidekick #sk_drawer {
498
+ background-color: #dddddd;
499
+ -webkit-box-shadow: 0px 0px 15px 0px rgba(83, 83, 83, 0.6);
500
+ box-shadow: 0px 0px 15px 0px rgba(83, 83, 83, 0.6);
501
+ border: solid 1px #c6c6c6;
502
+ z-index: 100002;
503
+ position: absolute;
504
+ right: 0px;
505
+ bottom: 38px;
506
+ width: 300px;
507
+ height: 0px;
508
+ }
509
+ div#sidekick #sk_drawer h2 {
510
+ text-transform: uppercase;
511
+ background-color: #2A909A;
512
+ color: white;
513
+ padding: 20px 10px;
514
+ margin: 0px;
515
+ }
516
+ div#sidekick #sk_drawer h2 button {
517
+ background: url('../images/sprides_v11.png') -8px -656px no-repeat;
518
+ width: 20px;
519
+ height: 20px;
520
+ border: none;
521
+ right: 18px;
522
+ top: 18px;
523
  cursor: pointer;
524
+ position: absolute;
525
  }
526
+ div#sidekick #sk_drawer div.warning {
527
+ background-color: white;
528
+ padding: 20px 10px 100px;
529
+ text-align: center;
530
+ font-weight: bold;
531
+ font-size: 24px;
532
+ line-height: 26px;
533
  }
534
+ div#sidekick #sk_drawer ul.sk_bucketContainer {
535
+ position: relative;
536
+ overflow-x: hidden;
537
+ margin: 0px;
538
  }
539
+ div#sidekick #sk_drawer ul.sk_bucketContainer .heading.goprev {
540
+ background-color: white;
 
 
 
 
 
541
  }
542
+ div#sidekick #sk_drawer ul.sk_bucketContainer .buckets {
543
+ position: absolute;
544
+ transform: translate3d(0, 0, 0);
545
+ -webkit-transition: all 0.3s ease-out;
546
+ -moz-transition: all 0.3s ease-out;
547
+ -o-transition: all 0.3s ease-out;
548
+ transition: all 0.3s ease-out;
549
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
550
+
551
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
552
+
553
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
554
+
555
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
556
+
557
  }
558
+ div#sidekick #sk_drawer ul.sk_bucketContainer .buckets a {
559
+ text-decoration: none;
560
+ }
561
+ div#sidekick #sk_drawer ul.sk_bucketContainer .buckets.hide {
562
+ left: -300px;
563
+ transform: translate3d(0, 0, 0);
564
+ -webkit-transition: all 0.3s ease-out;
565
+ -moz-transition: all 0.3s ease-out;
566
+ -o-transition: all 0.3s ease-out;
567
+ transition: all 0.3s ease-out;
568
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
569
+
570
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
571
+
572
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
573
+
574
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
575
 
 
576
  }
577
+ div#sidekick #sk_drawer ul.sk_bucketContainer .buckets .bucket_heading i {
578
+ -webkit-transform: rotate(90deg);
579
+ -moz-transform: rotate(90deg);
580
+ -ms-transform: rotate(90deg);
581
+ -o-transform: rotate(90deg);
582
+ transform: rotate(90deg);
583
  }
584
+ div#sidekick #sk_drawer ul.sk_bucketContainer .sub_bucket {
585
+ /*display: none;*/
586
+
587
+ left: 300px;
588
+ position: absolute;
589
+ top: 0px;
590
+ overflow-y: auto;
591
+ overflow-x: hidden;
592
+ transform: translate3d(0, 0, 0);
593
+ -webkit-transition: all 0.3s ease-out;
594
+ -moz-transition: all 0.3s ease-out;
595
+ -o-transition: all 0.3s ease-out;
596
+ transition: all 0.3s ease-out;
597
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
598
+
599
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
600
+
601
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
602
+
603
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
604
+
605
  }
606
+ div#sidekick #sk_drawer ul.sk_bucketContainer .sub_bucket.show {
607
+ /*display: block;*/
608
+
609
+ left: 0px;
610
+ transform: translate3d(0, 0, 0);
611
+ -webkit-transition: all 0.3s ease-out;
612
+ -moz-transition: all 0.3s ease-out;
613
+ -o-transition: all 0.3s ease-out;
614
+ transition: all 0.3s ease-out;
615
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
616
+
617
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
618
+
619
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
620
+
621
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
622
 
 
 
 
 
 
 
 
 
623
  }
624
+ div#sidekick #sk_drawer ul.sk_bucketContainer .sub_bucket.hide {
625
+ left: -300px;
626
+ transform: translate3d(0, 0, 0);
627
+ -webkit-transition: all 0.3s ease-out;
628
+ -moz-transition: all 0.3s ease-out;
629
+ -o-transition: all 0.3s ease-out;
630
+ transition: all 0.3s ease-out;
631
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
632
+
633
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
634
+
635
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
636
+
637
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
638
+
639
  }
640
+ div#sidekick #sk_drawer ul.sk_bucketContainer .sub_bucket li.heading {
 
 
 
 
 
 
 
641
  text-align: center;
642
+ }
643
+ div#sidekick #sk_drawer ul.sk_bucketContainer .sub_bucket li.sub_bucket_heading {
644
+ text-align: left;
645
+ }
646
+ div#sidekick #sk_drawer ul.sk_bucketContainer .sub_bucket li.sub_bucket_heading i {
647
+ -webkit-transform: rotate(90deg);
648
+ -moz-transform: rotate(90deg);
649
+ -ms-transform: rotate(90deg);
650
+ -o-transform: rotate(90deg);
651
+ transform: rotate(90deg);
652
+ }
653
+ div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs {
654
+ /*min-height: 150px;*/
655
+
656
+ /*background-color: white;*/
657
+
658
+ transform: translate3d(0, 0, 0);
659
+ -webkit-transition: all 0.3s ease-out;
660
+ -moz-transition: all 0.3s ease-out;
661
+ -o-transition: all 0.3s ease-out;
662
+ transition: all 0.3s ease-out;
663
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
664
+
665
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
666
+
667
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
668
+
669
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
670
+
671
+ }
672
+ div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs .overview {
673
+ font-weight: bold;
674
+ }
675
+ div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs .walkthrough {
676
+ /*display: none;*/
677
+
678
+ left: 300px;
679
+ position: absolute;
680
+ top: 0px;
681
+ background-color: white;
682
+ transform: translate3d(0, 0, 0);
683
+ -webkit-transition: all 0.3s ease-out;
684
+ -moz-transition: all 0.3s ease-out;
685
+ -o-transition: all 0.3s ease-out;
686
+ transition: all 0.3s ease-out;
687
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
688
+
689
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
690
+
691
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
692
+
693
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
694
+
695
+ }
696
+ div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs .walkthrough .heading {
697
+ margin-bottom: 10px;
698
  text-align: center;
699
+ }
700
+ div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs .walkthrough a {
701
+ text-decoration: none;
702
+ }
703
+ div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs .walkthrough a li {
704
+ padding: 0px 0px 10px 10px;
705
+ height: auto;
706
  font-size: 14px;
707
+ line-height: 22px;
708
+ color: #3e3e3e;
709
+ width: 90%;
710
+ transform: translate3d(0, 0, 0);
711
+ -webkit-transition: all 0.3s ease-out;
712
+ -moz-transition: all 0.3s ease-out;
713
+ -o-transition: all 0.3s ease-out;
714
+ transition: all 0.3s ease-out;
715
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
716
 
717
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
 
718
 
719
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
 
720
 
721
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
 
722
 
723
+ }
724
+ div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs .walkthrough a:hover li {
725
+ color: #17909B;
726
+ margin-left: 10px;
727
+ transform: translate3d(0, 0, 0);
728
+ -webkit-transition: all 0.3s ease-out;
729
+ -moz-transition: all 0.3s ease-out;
730
+ -o-transition: all 0.3s ease-out;
731
+ transition: all 0.3s ease-out;
732
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
733
 
734
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
 
735
 
736
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
 
737
 
738
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
 
739
 
 
 
 
740
  }
741
+ div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs .walkthrough.show {
742
+ /*display: block;*/
743
+
744
+ left: 0px;
745
+ transform: translate3d(0, 0, 0);
746
+ -webkit-transition: all 0.3s ease-out;
747
+ -moz-transition: all 0.3s ease-out;
748
+ -o-transition: all 0.3s ease-out;
749
+ transition: all 0.3s ease-out;
750
+ /*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
751
+
752
+ /*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
753
+
754
+ /*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
755
+
756
+ /*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
757
+
758
+ }
759
+ div#sidekick #sk_drawer ul.sk_bucketContainer li {
760
+ width: 300px;
761
+ font-size: 16px;
762
  color: white;
763
+ margin: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
764
  position: relative;
765
  cursor: pointer;
766
  cursor: hand;
767
+ max-height: 57px;
768
  }
769
+ div#sidekick #sk_drawer ul.sk_bucketContainer li.heading {
770
+ background-color: #dddddd;
771
+ border-bottom: solid 1px #cbcbcb;
772
+ border-top: solid 1px #fff;
773
+ color: #353939;
774
+ overflow: hidden;
775
+ color: black;
776
+ background: #F3F3F3;
777
+ cursor: pointer;
778
  }
779
+ div#sidekick #sk_drawer ul.sk_bucketContainer li.heading:hover {
780
+ color: #17909B;
781
+ background: #ebebeb;
 
 
 
782
  }
783
+ div#sidekick #sk_drawer ul.sk_bucketContainer li.heading:hover i {
784
+ background: url('../images/sprides_v11.png') -7px -116px no-repeat;
 
785
  }
786
+ div#sidekick #sk_drawer ul.sk_bucketContainer li.heading i {
787
+ -webkit-transform: rotate(270deg);
788
+ -moz-transform: rotate(270deg);
789
+ -ms-transform: rotate(270deg);
790
+ -o-transform: rotate(270deg);
791
+ transform: rotate(270deg);
792
+ display: block;
793
+ width: 20px;
794
+ height: 20px;
795
+ position: absolute;
796
+ right: 25px;
797
+ top: 17px;
798
+ background: url('../images/sprides_v11.png') -7px -80px no-repeat;
799
  }
800
+ div#sidekick #sk_drawer ul.sk_bucketContainer li span {
801
+ margin: 19px 0 16px;
802
+ display: block;
803
+ padding-left: 20px;
804
  }
images/arrows.png DELETED
Binary file
images/arrows_01.png DELETED
Binary file
images/arrows_02.png DELETED
Binary file
images/arrows_04.png DELETED
Binary file
images/arrows_05.png DELETED
Binary file
images/sidekick_wp_sprites.png DELETED
Binary file
images/sprides_v11.png ADDED
Binary file
images/sprides_v11_retna.png ADDED
Binary file
js/sk.source.js CHANGED
@@ -18,334 +18,447 @@
18
  /* 15 */ if (!window.console.groupEnd) window.console.groupEnd = function(){};
19
  /* 16 */ if (!window.console.table) window.console.table = function(){};
20
  /* 17 */ if (!window.console.error) window.console.error = function(){};
21
- /* 18 */
22
- /* 19 */ if (window.console){
23
- /* 20 */ window.console.info = function(msg,o1,o2,o3){if (!o1) o1 = '';if (!o2) o2 = '';if (!o3) o3 = '';console.log('%c' + msg,'color: blue;font-weight: bold',o1,o2,o3);};
24
- /* 21 */ window.console.event = function(msg,o1,o2,o3){if (!o1) o1 = '';if (!o2) o2 = '';if (!o3) o3 = '';console.log('%c' + msg,'color: green;font-weight: bold',o1,o2,o3);};
25
- /* 22 */ }
26
- /* 23 */
27
- /* 24 */ SidekickWP.Models.App = Backbone.Model.extend({
28
- /* 25 */ defaults: {
29
- /* 26 */ full_library: null,
30
- /* 27 */ my_library: null,
31
- /* 28 */ wp_version: null,
32
- /* 29 */ installed_plugins: null,
33
- /* 30 */ current_url: null,
34
- /* 31 */ current_plugin: null,
35
- /* 32 */ license_status: null,
36
- /* 33 */ bucket_counts: []
37
- /* 34 */ },
38
- /* 35 */
39
- /* 36 */ initialize: function(){
40
- /* 37 */ console.group('%cinitialize: App Model %o', 'color:#3b4580', this);
41
- /* 38 */
42
- /* 39 */ _.extend(this, Backbone.Events);
43
- /* 40 */ SidekickWP.Events = _.extend({}, Backbone.Events);
44
- /* 41 */
45
- /* 42 */ Sidekick.Events.on('loaded_walkthrough',this.loaded_walkthrough,this);
46
- /* 43 */ Sidekick.Events.on('stop',this.show_review,this);
47
- /* 44 */ SidekickWP.Events.on('show_msg',this.show_msg,this);
48
- /* 45 */
49
- /* 46 */ this.trackingModel = new SidekickWP.Models.Tracking();
50
  /* 47 */
51
- /* 48 */ if (typeof sk_library == 'undefined') {
52
- /* 49 */ var msg = 'No Library Found!';
53
- /* 50 */ SidekickWP.Events.trigger('track_error',{msg: msg});
54
 
55
  /* appModel.js */
56
 
57
- /* 51 */
58
- /* 52 */ console.error('Sidekick Library Not Found!');
59
- /* 53 */ return;
60
- /* 54 */ }
61
- /* 55 */ console.info('Library -> ' + sk_library_file);
62
- /* 56 */ console.info('my wpu_library %o', sk_library);
63
- /* 57 */
64
- /* 58 */ if (typeof sk_just_activated != 'undefined')
65
- /* 59 */ SidekickWP.Events.trigger('window_activate');
66
- /* 60 */
67
- /* 61 */ if (typeof sk_main_soft_version === 'undefined') {
68
- /* 62 */ console.error('No WP Version?!?');
69
- /* 63 */ return false;
70
- /* 64 */ }
71
- /* 65 */
72
- /* 66 */ if (typeof sk_main_soft_version != 'undefined') this.set('sk_main_soft_version',sk_main_soft_version);
73
- /* 67 */ if (typeof sk_library != 'undefined') this.set('full_library',sk_library);
74
- /* 68 */ if (typeof sk_installed_plugins != 'undefined') this.set('installed_plugins',sk_installed_plugins);
75
- /* 69 */
76
- /* 70 */ console.table(this.attributes);
77
- /* 71 */
78
- /* 72 */
79
- /* 73 */ // console.info('Full Library %o', this.get('full_library'));
80
- /* 74 */ this.set('current_url',window.location.toString());
81
- /* 75 */
82
- /* 76 */ this.Config = {
83
- /* 77 */ domain: 'http://www.wpuniversity.com'
84
- /* 78 */ };
85
- /* 79 */
86
- /* 80 */ this.check_library();
87
- /* 81 */ this.views = {};
88
- /* 82 */ this.views.app = new SidekickWP.Views.App({model: this, el: $("body")});
89
- /* 83 */
90
- /* 84 */ // var my_library = this.get('my_library');
91
- /* 85 */ // console.log('my_library %o', my_library);
92
  /* 86 */
93
- /* 87 */ console.groupEnd();
94
- /* 88 */ },
95
- /* 89 */
96
- /* 90 */ check_library: function(){
97
- /* 91 */ if (!this.get('full_library')) {
98
- /* 92 */ console.error("WPU Library Not Found!");
99
- /* 93 */ return false;
100
- /* 94 */ }
101
- /* 95 */ if (!this.get('sk_main_soft_version')){
102
- /* 96 */ console.error("No WP Version Found!");
103
- /* 97 */ return false;
104
- /* 98 */ }
105
- /* 99 */ this.parse_my_library();
106
- /* 100 */ },
107
 
108
  /* appModel.js */
109
 
110
- /* 101 */
111
- /* 102 */ check_walkthrough_compatibility: function(bucket_data,walkthrough,bucket_key,type_key){
112
- /* 103 */ // console.group('check_walkthrough_compatibility %o, %o', bucket_data, walkthrough);
113
  /* 104 */
114
- /* 105 */ var sk_main_soft_version = this.get('sk_main_soft_version');
115
- /* 106 */ var pass_main_soft_version = false, pass_theme_version = false, pass_theme = false, pass_plugin = false, pass_plugin_version = false, pass_user_level = false;
116
- /* 107 */ var bucket_counts = this.get('bucket_counts');
117
- /* 108 */ var installed_plugins = this.get('installed_plugins') ;
118
  /* 109 */
119
- /* 110 */ pass_main_soft_version = _.find(walkthrough.main_soft_version,function(val){
120
- /* 111 */ if (val == sk_main_soft_version)
121
- /* 112 */ return true;
122
- /* 113 */ });
123
- /* 114 */
124
- /* 115 */ if (walkthrough.theme) {
125
- /* 116 */ if (walkthrough.theme === sk_installed_theme) {
126
- /* 117 */ pass_theme = true;
127
- /* 118 */ if (walkthrough.theme_version) {
128
- /* 119 */ pass_theme_version = _.find(walkthrough.theme_version,function(val){
129
- /* 120 */ if (val == sk_theme_version) {
130
- /* 121 */ return true;
131
- /* 122 */ }
132
- /* 123 */ });
133
- /* 124 */ } else {
134
- /* 125 */ pass_theme_version = true;
135
- /* 126 */ }
136
  /* 127 */
137
- /* 128 */ }
138
- /* 129 */ } else {
139
- /* 130 */ pass_theme = true;
140
- /* 131 */ pass_theme_version = true;
141
- /* 132 */ }
142
- /* 133 */
143
- /* 134 */ if (walkthrough.plugin && sk_installed_plugins) {
144
- /* 135 */ console.log('sk_installed_plugins %o', sk_installed_plugins);
145
  /* 136 */
146
- /* 137 */ pass_plugin = _.find(sk_installed_plugins,function(plugin_data){
147
- /* 138 */ for (var plugin in plugin_data) {
148
- /* 139 */ var version = plugin_data[plugin];
149
- /* 140 */
150
- /* 141 */ if (plugin == walkthrough.plugin) {
151
- /* 142 */ pass_plugin = true;
152
- /* 143 */
153
- /* 144 */ pass_plugin_version = _.find(walkthrough.plugin_version,function(version2){
154
- /* 145 */ console.log('version %o == %o ?', version,version2);
155
- /* 146 */
156
- /* 147 */ if (version == version2) {
157
- /* 148 */ pass_plugin_version = true;
158
- /* 149 */ return true;
159
- /* 150 */ }
160
 
161
  /* appModel.js */
162
 
163
- /* 151 */ });
164
- /* 152 */ console.log('pass_plugin_version %o', pass_plugin_version);
165
  /* 153 */
166
- /* 154 */ return true;
167
- /* 155 */ }
168
- /* 156 */ break;
169
- /* 157 */ }
170
- /* 158 */ });
171
- /* 159 */ } else {
172
- /* 160 */ pass_plugin = true;
173
- /* 161 */ pass_plugin_version = true;
174
- /* 162 */ }
175
- /* 163 */
176
- /* 164 */ if (walkthrough.role) {
177
- /* 165 */ pass_user_level = _.find(walkthrough.role,function(val){
178
- /* 166 */ if (val == sk_user_level) {
179
- /* 167 */ return true;
180
- /* 168 */ }
181
- /* 169 */ });
182
- /* 170 */ } else {
183
- /* 171 */ pass_user_level = true;
184
- /* 172 */ }
185
- /* 173 */
186
  /* 174 */
187
- /* 175 */ if (!pass_main_soft_version || !pass_theme || !pass_theme_version || !pass_plugin || !pass_plugin_version || !pass_user_level){
188
- /* 176 */ if (!pass_main_soft_version)
189
- /* 177 */ console.error('FAILED %o - Main %o != %o',walkthrough.title, pass_main_soft_version,walkthrough.main_soft_version);
190
- /* 178 */
191
- /* 179 */ if (!pass_theme)
192
- /* 180 */ console.error('FAILED %o - Theme %o != %o',walkthrough.title, walkthrough.theme, pass_theme);
193
- /* 181 */
194
- /* 182 */ if (!pass_theme_version)
195
- /* 183 */ console.error('FAILED %o - Theme Ver %o != %o',walkthrough.title, sk_theme_version, walkthrough.theme_version);
196
- /* 184 */
197
- /* 185 */ if (!pass_plugin)
198
- /* 186 */ console.error('FAILED %o - Plugin %o != %o',walkthrough.title, sk_installed_plugins, walkthrough.plugin);
199
- /* 187 */
200
- /* 188 */ if (!pass_plugin_version)
201
- /* 189 */ console.error('FAILED %o - Plugin Ver %o != %o',walkthrough.title, sk_installed_plugins, walkthrough.plugin_version);
202
- /* 190 */
203
- /* 191 */ if (!pass_user_level)
204
- /* 192 */ console.error('FAILED %o - User Level %o != %o',walkthrough.title, sk_user_level, walkthrough.role);
205
- /* 193 */
206
- /* 194 */ if (typeof bucket_data.walkthroughs !== 'undefined') {
207
- /* 195 */ bucket_data.walkthroughs[type_key] = _.without(bucket_data.walkthroughs[type_key], _.findWhere(bucket_data.walkthroughs[type_key], {id: walkthrough.id}));
208
- /* 196 */ } else {
209
- /* 197 */ bucket_data.sub_buckets[bucket_key].walkthroughs[type_key] = _.without(bucket_data.sub_buckets[bucket_key].walkthroughs[type_key], _.findWhere(bucket_data.sub_buckets[bucket_key].walkthroughs[type_key], {id: walkthrough.id}));
210
- /* 198 */ }
211
- /* 199 */ } else {
212
- /* 200 */ // console.log('PASSED! %o', walkthrough.title);
213
 
214
  /* appModel.js */
215
 
216
- /* 201 */
217
- /* 202 */ if (typeof bucket_counts[bucket_data.title] == 'undefined' || typeof bucket_counts[bucket_data.title].count == 'undefined') {
218
- /* 203 */ bucket_counts[bucket_data.title] = {count: 1};
219
- /* 204 */ } else {
220
- /* 205 */ bucket_counts[bucket_data.title].count++;
221
- /* 206 */ }
222
- /* 207 */ }
223
- /* 208 */
224
- /* 209 */ if (typeof bucket_data.walkthroughs !== 'undefined') {
225
- /* 210 */ if (!_.size(bucket_data.walkthroughs[type_key])) {
226
- /* 211 */ // console.log('%cDeleteing Bucket Type %o','color: #d17919', type_key);
227
- /* 212 */ delete(bucket_data.walkthroughs[type_key]);
228
- /* 213 */ }
229
- /* 214 */ } else {
230
- /* 215 */ if (!_.size(bucket_data.sub_buckets[bucket_key].walkthroughs[type_key])) {
231
- /* 216 */ // console.log('%cDeleteing Bucket Type %o - %o', 'color: #d17919',bucket_key, type_key);
232
- /* 217 */ delete(bucket_data.sub_buckets[bucket_key].walkthroughs[type_key]);
233
- /* 218 */ }
234
- /* 219 */ }
235
- /* 220 */ this.set('bucket_counts',bucket_counts);
236
- /* 221 */ // console.groupEnd();
237
- /* 222 */ },
238
  /* 223 */
239
- /* 224 */ filter_bucket_walkthroughs: function(bucket_data,bucket_key){
240
- /* 225 */ // console.group('%cFilter Bucket %o(%o) - %o', 'color:#3b4580',bucket_data.title, bucket_key,bucket_data);
241
- /* 226 */
242
- /* 227 */ if (bucket_data.sub_buckets) {
243
- /* 228 */ // console.group('%cFilter Sub Bucket %o', 'color:#3b4580');
244
- /* 229 */ _.each(bucket_data.sub_buckets, function(sub_bucket,sub_bucket_key){
245
- /* 230 */ _.each(sub_bucket.walkthroughs, function(type,type_key){
246
- /* 231 */ _.each(type, function(walkthrough,walkthrough_key){
247
- /* 232 */ this.check_walkthrough_compatibility(bucket_data,walkthrough,sub_bucket_key,type_key);
248
- /* 233 */ },this);
249
  /* 234 */
250
- /* 235 */ if (!_.size(bucket_data.sub_buckets[sub_bucket_key].walkthroughs)) {
251
- /* 236 */ delete(bucket_data.sub_buckets[sub_bucket_key]);
252
- /* 237 */ }
253
- /* 238 */ },this);
254
  /* 239 */
255
- /* 240 */ if (!_.size(bucket_data.sub_buckets)) {
256
- /* 241 */ delete(bucket_data.sub_buckets);
257
- /* 242 */ }
258
- /* 243 */ },this);
259
- /* 244 */ // console.groupEnd();
260
- /* 245 */ } else if (bucket_data.walkthroughs){
261
- /* 246 */ // console.group('%cFilter Walkthroughs %o - %o', 'color:#3b4580',bucket_data.title,bucket_data);
262
- /* 247 */ _.each(bucket_data.walkthroughs, function(type,type_key){
263
- /* 248 */ _.each(type, function(walkthrough,walkthrough_key){
264
- /* 249 */ this.check_walkthrough_compatibility(bucket_data,walkthrough,bucket_key,type_key);
265
- /* 250 */ },this);
266
 
267
  /* appModel.js */
268
 
269
- /* 251 */
270
- /* 252 */ if (!_.size(bucket_data.walkthroughs)) {
271
- /* 253 */ bucket_data = null;
272
- /* 254 */ }
273
- /* 255 */ },this);
274
- /* 256 */ // console.groupEnd();
275
- /* 257 */ }
276
- /* 258 */
277
- /* 259 */ // console.groupEnd();
278
- /* 260 */ if (typeof bucket_data !== 'undefined' && bucket_data) {
279
- /* 261 */ if (typeof bucket_data.walkthroughs !== 'undefined' || typeof bucket_data.sub_buckets !== 'undefined')
280
- /* 262 */ return bucket_data;
281
- /* 263 */ }
282
- /* 264 */
283
- /* 265 */ return false;
284
- /* 266 */ },
285
- /* 267 */
286
- /* 268 */ parse_my_library: function(){
287
- /* 269 */ // console.log('parse_my_library');
288
- /* 270 */ console.group('%cParse Library %o', 'color:#3b4580');
289
- /* 271 */ var full_library = this.get('full_library');
290
- /* 272 */ console.log('Wpu: parse_full_library %o', full_library);
291
  /* 273 */
292
- /* 274 */ var all_buckets = [];
293
- /* 275 */
294
- /* 276 */ for (var bucket in full_library){
295
- /* 277 */ if (typeof full_library[bucket] == 'object' && bucket !== 'all_walkthrough_ids') {
296
- /* 278 */ bucket_data = full_library[bucket];
297
- /* 279 */ var filtered_bucket_data = this.filter_bucket_walkthroughs(bucket_data,bucket);
298
  /* 280 */
299
- /* 281 */ if (filtered_bucket_data) {
300
- /* 282 */ // console.log('Adding to all_buckiets %o - %o', bucket, filtered_bucket_data);
301
- /* 283 */ all_buckets[bucket] = filtered_bucket_data;
302
- /* 284 */ if (bucket_data.sub_buckets){
303
- /* 285 */ for (var sub_bucket in bucket_data.sub_buckets){
304
- /* 286 */ if (this.filter_bucket_walkthroughs(bucket_data.sub_buckets[sub_bucket],sub_bucket)) {
305
- /* 287 */ // console.log('Adding to all_buckiets %o %o', sub_bucket, bucket_data.sub_buckets[sub_bucket]);
306
  /* 288 */
307
- /* 289 */ all_buckets[sub_bucket] = bucket_data.sub_buckets[sub_bucket];
308
- /* 290 */ }
309
- /* 291 */ }
310
- /* 292 */ }
311
- /* 293 */ } else {
312
- /* 294 */ delete(full_library[bucket]);
313
- /* 295 */ }
314
  /* 296 */ }
315
  /* 297 */ }
316
- /* 298 */ // console.info('all_buckets %o', all_buckets);
317
- /* 299 */
318
- /* 300 */ this.set('all_buckets',all_buckets);
319
 
320
  /* appModel.js */
321
 
322
  /* 301 */ console.groupEnd();
323
  /* 302 */ },
324
  /* 303 */
325
- /* 304 */ loaded_walkthrough: function(walkthrough_model){
326
- /* 305 */ // console.log('WPU:loaded_walkthrough');
327
- /* 306 */ this.set('last_loaded_walkthrough',walkthrough_model);
328
- /* 307 */ },
329
- /* 308 */
330
- /* 309 */ show_review: function(a,b){
331
- /* 310 */ console.log('show_review');
332
- /* 311 */ var last_loaded_walkthrough = this.get('last_loaded_walkthrough');
333
- /* 312 */ console.log('last_loaded_walkthrough %o', last_loaded_walkthrough);
334
- /* 313 */
335
- /* 314 */ var walkthrough_title = last_loaded_walkthrough.get('title');
336
- /* 315 */ console.log('walkthrough_title %o', walkthrough_title);
337
- /* 316 */
338
- /* 317 */ new SidekickWP.Models.Review({walkthrough_title: walkthrough_title});
339
- /* 318 */ },
340
  /* 319 */
341
- /* 320 */ show_msg: function(data,context){
342
- /* 321 */ console.log('show_msg %o',arguments);
343
- /* 322 */ console.log('this.models %o', this.models);
344
- /* 323 */ console.log('context %o', context);
345
- /* 324 */ new SidekickWP.Models.Message({title: data.title, message: data.msg});
346
- /* 325 */ }
347
- /* 326 */ });
348
- /* 327 */ }(jQuery));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
349
 
350
  ;
351
  /* bucketContainerModel.js */
@@ -354,18 +467,16 @@
354
  /* 2 */
355
  /* 3 */ SidekickWP.Models.BucketContainer = Backbone.Model.extend({
356
  /* 4 */ defaults: {
357
- /* 5 */ full_library: null,
358
- /* 6 */ all_buckets: null,
359
- /* 7 */ bucket_counts: null
360
- /* 8 */ },
361
- /* 9 */
362
- /* 10 */ initialize: function(){
363
- /* 11 */ this.view = new SidekickWP.Views.BucketContainer({model: this});
364
- /* 12 */ return this;
365
- /* 13 */ }
366
- /* 14 */ });
367
- /* 15 */
368
- /* 16 */ }(jQuery));
369
 
370
  ;
371
  /* bucketModel.js */
@@ -374,19 +485,20 @@
374
  /* 2 */
375
  /* 3 */ SidekickWP.Models.Bucket = Backbone.Model.extend({
376
  /* 4 */ defaults: {
377
- /* 5 */ bucket: null,
378
- /* 6 */ title: 'What do you need help with?',
379
- /* 7 */ bucket_counts: null
380
- /* 8 */ },
381
- /* 9 */
382
- /* 10 */ initialize: function(){
383
- /* 11 */ console.log('initialize bucketModel %o', this.attributes);
384
- /* 12 */ this.view = new SidekickWP.Views.Bucket({model: this});
385
- /* 13 */ return this;
386
- /* 14 */ }
387
- /* 15 */ });
388
- /* 16 */
389
- /* 17 */ }(jQuery));
 
390
 
391
  ;
392
  /* helpers.js */
@@ -395,7 +507,7 @@
395
  /* 2 */
396
  /* 3 */ SidekickWP.Helpers = ({
397
  /* 4 */ preventScrolling: function(){
398
- /* 5 */ $('#sidekick .bucketContainer>div>ul').on('DOMMouseScroll mousewheel', function(ev) {
399
  /* 6 */ console.log('asd');
400
  /* 7 */ var $this = $(this),
401
  /* 8 */ scrollTop = this.scrollTop,
@@ -429,26 +541,6 @@
429
  /* 36 */
430
  /* 37 */
431
 
432
- ;
433
- /* listModel.js */
434
-
435
- /* 1 */ (function($) {
436
- /* 2 */
437
- /* 3 */ SidekickWP.Models.List = Backbone.Model.extend({
438
- /* 4 */ defaults: {
439
- /* 5 */ bucket: null,
440
- /* 6 */ title: 'List'
441
- /* 7 */ },
442
- /* 8 */
443
- /* 9 */ initialize: function(){
444
- /* 10 */ console.log('initialize bucketModel %o', this.attributes);
445
- /* 11 */ this.view = new SidekickWP.Views.List({model: this});
446
- /* 12 */ return this;
447
- /* 13 */ }
448
- /* 14 */ });
449
- /* 15 */
450
- /* 16 */ }(jQuery));
451
-
452
  ;
453
  /* messageModel.js */
454
 
@@ -518,45 +610,48 @@
518
  /* 29 */ data.source = 'plugin';
519
  /* 30 */ data.action = 'track';
520
  /* 31 */ data.data = JSON.stringify(model);
521
- /* 32 */ data.user = sk_license_key;
522
- /* 33 */ console.log('send tracking to WPU',data);
523
- /* 34 */ $.post("http://www.wpuniversity.com/wp-admin/admin-ajax.php", data);
524
- /* 35 */ },
525
- /* 36 */
526
- /* 37 */ track_explore: function(data){
527
- /* 38 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin - Explore', data.what, null, 0,true]);
528
- /* 39 */ this.send({type: 'explore', label: data.what});
529
- /* 40 */ },
530
- /* 41 */
531
- /* 42 */ track_open_sidekick_window: function(data){
532
- /* 43 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin - Window', 'Open', data.position, 0,true]);
533
- /* 44 */ this.send({type: 'open'});
534
- /* 45 */ },
535
- /* 46 */
536
- /* 47 */ window_activate: function(data){
537
- /* 48 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin - Activate', '', wpu_plugin_version, 0,true]);
538
- /* 49 */ this.send({type: 'activate'});
539
- /* 50 */ },
540
 
541
  /* trackingModel.js */
542
 
543
- /* 51 */
544
- /* 52 */ window_deactivate: function(data){
545
- /* 53 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin - Deactivate', '', wpu_plugin_version, 0,true]);
546
- /* 54 */ this.send({type: 'deactivate'});
547
- /* 55 */ },
548
- /* 56 */
549
- /* 57 */ track_error: function(data){
550
- /* 58 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin', 'Error', data.msg,null,true]);
551
- /* 59 */ this.send({type: 'error', label: data.msg});
552
- /* 60 */ }
553
- /* 61 */
554
- /* 62 */ });
555
- /* 63 */
556
- /* 64 */ }(jQuery));
557
- /* 65 */
558
  /* 66 */
559
- /* 67 */
 
 
 
560
 
561
  ;
562
  /* appView.js */
@@ -564,282 +659,395 @@
564
  /* 1 */ (function($) {
565
  /* 2 */ SidekickWP.Views.App = Backbone.View.extend({
566
  /* 3 */ initialize: function(){
567
- /* 4 */ SidekickWP.Events.on('close_sidekick_window', this.close_sidekick_window, this);
568
- /* 5 */ SidekickWP.Events.on('show_main_pane', this.show_main_pane, this);
569
- /* 6 */ SidekickWP.Events.on('show_next_pane', this.show_next_pane, this);
570
- /* 7 */ SidekickWP.Events.on('show_prev_pane', this.show_prev_pane, this);
571
- /* 8 */
572
- /* 9 */ SidekickWP.Events.on('do_update_header', this.update_header, this);
573
- /* 10 */ SidekickWP.Events.on('show_next_pane', this.update_header, this);
574
- /* 11 */ SidekickWP.Events.on('show_prev_pane', this.update_header, this);
575
- /* 12 */
576
- /* 13 */ if (typeof Sidekick !== 'undefined')
577
- /* 14 */ Sidekick.Events.on('stop', this.open_sidekick_window, this);
578
  /* 15 */ return this.render();
579
  /* 16 */ },
580
  /* 17 */
581
  /* 18 */ render: function(){
582
- /* 19 */ console.group('%crender: SidekickWP: appView %o', 'color:#8fa2ff', this);
583
  /* 20 */
584
- /* 21 */ var all_buckets = this.model.get('all_buckets');
585
- /* 22 */
586
- /* 23 */ this.BucketContainer = new SidekickWP.Models.BucketContainer({
587
- /* 24 */ full_library: this.model.get('full_library'),
588
- /* 25 */ all_buckets: all_buckets,
589
- /* 26 */ bucket_counts: this.model.get('bucket_counts')
590
- /* 27 */ });
591
- /* 28 */
592
- /* 29 */ var variables = {
593
- /* 30 */ BucketContainer: this.BucketContainer.view.render().$el.html()
594
- /* 31 */ };
595
- /* 32 */
596
- /* 33 */ var template = _.template( SidekickWP.Templates.App, variables );
597
- /* 34 */ this.$el.append( template );
598
- /* 35 */
599
- /* 36 */ if (!all_buckets) {
600
- /* 37 */ SidekickWP.Events.trigger('show_msg',{title: "No Walkthroughs", msg: "We're sorry but it looks like there are no walkthroughs compatible with your version of software."},this.model);
601
- /* 38 */ }
602
- /* 39 */
603
- /* 40 */ SidekickWP.Events.trigger('rendered');
604
- /* 41 */
605
- /* 42 */ if (typeof window.sidekick !== 'undefined' && window.sidekick.get('playing')) {
606
- /* 43 */ this.close_sidekick_window();
607
- /* 44 */ } else {
608
- /* 45 */ this.open_sidekick_mini_window();
609
- /* 46 */ }
610
- /* 47 */ console.groupEnd();
611
- /* 48 */ return this;
612
- /* 49 */ },
613
  /* 50 */
614
 
615
  /* appView.js */
616
 
617
- /* 51 */ events: {
618
- /* 52 */ "click #logo": "open_sidekick_window",
619
- /* 53 */ "click h2 button.close": "open_sidekick_mini_window",
620
- /* 54 */ "click h2 button.config": "goto_config",
621
- /* 55 */ "click h2 button.goback": "go_back"
622
- /* 56 */ },
623
  /* 57 */
624
- /* 58 */ close_sidekick_window: function(){
625
- /* 59 */ // console.log('close_sidekick_window');
626
- /* 60 */ $('.sidekick_container').hide();
627
- /* 61 */ },
628
- /* 62 */
629
- /* 63 */ open_sidekick_mini_window: function(){
630
- /* 64 */ // console.log('open_sidekick_mini_window');
631
- /* 65 */ var width = '100px';
632
- /* 66 */ var height = '70px';
633
- /* 67 */
634
- /* 68 */ if ($('.sidekick_container').is(':visible')) {
635
- /* 69 */ $('.sidekick_container>*').fadeOut('fast',function(){
636
- /* 70 */ $('.sidekick_container').animate({
637
- /* 71 */ backgroundColor: 'transparent',
638
- /* 72 */ borderColor: 'transparent'
639
- /* 73 */ },200,function(){
640
- /* 74 */ $('.sidekick_container').removeClass('shadow');
641
- /* 75 */ $('.sidekick_container').animate({
642
- /* 76 */ width: width,
643
- /* 77 */ minHeight: height
644
- /* 78 */ },200,function(){
645
- /* 79 */ $('.sidekick_container #logo').fadeIn('slow');
646
- /* 80 */ });
647
- /* 81 */ });
648
- /* 82 */ });
649
- /* 83 */ } else {
650
- /* 84 */ $('.sidekick_container').css({
651
- /* 85 */ width: width,
652
- /* 86 */ minHeight: height
653
- /* 87 */ }).show();
654
- /* 88 */ }
655
- /* 89 */ },
656
- /* 90 */
657
- /* 91 */ goto_config: function(){
658
- /* 92 */ // console.log('goto_config');
659
- /* 93 */ window.open('/wp-admin/admin.php?page=sidekick','_self');
660
- /* 94 */ },
661
- /* 95 */
662
- /* 96 */ go_back: function(){
663
- /* 97 */ SidekickWP.Events.trigger('show_prev_pane');
664
- /* 98 */ },
665
- /* 99 */
666
- /* 100 */ open_sidekick_window: function(e){
667
 
668
  /* appView.js */
669
 
670
- /* 101 */ // console.log('open_sidekick_window %o', e);
671
- /* 102 */ var width = '300px';
672
- /* 103 */ var height = '300px';
673
  /* 104 */
674
- /* 105 */ if (typeof e != 'undefined' && typeof e.currentTarget != 'undefined')
675
- /* 106 */ SidekickWP.Events.trigger('track_open_sidekick_window',{position: $(e.currentTarget).attr('id')});
676
- /* 107 */
677
- /* 108 */ $('.sidekick_container #logo').fadeOut('fast',function(){
678
- /* 109 */ $('.sidekick_container').show().animate({
679
- /* 110 */ backgroundColor: '#e8e8e8',
680
- /* 111 */ borderColor: '#d4d4d4',
681
- /* 112 */ width: width,
682
- /* 113 */ height: height
683
- /* 114 */ },200,function(){
684
- /* 115 */ $('.sidekick_container').addClass('shadow');
685
- /* 116 */ $('.sidekick_container>*').not('.sidekick_container #logo').fadeIn('fast');
686
- /* 117 */ });
687
- /* 118 */ });
688
- /* 119 */ },
689
- /* 120 */
690
- /* 121 */ update_header: function(){
691
- /* 122 */ console.log('update_header %o', $('#sidekick .bucketContainer ul').length);
692
  /* 123 */
693
- /* 124 */ if ($('#sidekick ul.message').length){
694
- /* 125 */ $('#sidekick h2 button').addClass('goback hide');
695
- /* 126 */ } else if ($('#sidekick .bucketContainer ul').length > 1) {
696
- /* 127 */ $('#sidekick h2 button').addClass('goback').removeClass('config hide');
697
- /* 128 */ } else {
698
- /* 129 */ $('#sidekick h2 button').addClass('config').removeClass('goback hide');
699
- /* 130 */ }
700
- /* 131 */
701
- /* 132 */ var new_title = $('#sidekick .bucketContainer div>ul:last-child').data('title');
702
- /* 133 */
703
- /* 134 */ if (new_title)
704
- /* 135 */ $('#sidekick h2 span').html(new_title);
705
- /* 136 */
706
- /* 137 */ SidekickWP.Events.trigger('rendered');
707
- /* 138 */ },
708
- /* 139 */
709
- /* 140 */ show_next_pane: function(){
710
- /* 141 */ console.log('show_next_pane');
711
- /* 142 */ // $('#sidekick .bucketContainer').css({overflowY:'hidden',overflowX:'hidden'});
712
- /* 143 */ $('#sidekick .bucketContainer div>ul:last-child, #sidekick .bucketContainer div>ul:nth-last-child(2)').animate({
713
- /* 144 */ left: '-=300'
714
- /* 145 */ },200,function(){
715
- /* 146 */ // $('#sidekick .bucketContainer').css({overflowY:'auto'});
716
- /* 147 */ }).wait(100,function(e){
717
- /* 148 */ SidekickWP.Events.trigger('do_update_header');
718
- /* 149 */ });
719
- /* 150 */ SidekickWP.Helpers.preventScrolling();
720
 
721
  /* appView.js */
722
 
723
- /* 151 */ },
724
- /* 152 */
725
- /* 153 */ show_prev_pane: function(){
726
- /* 154 */ console.log('show_prev_pane');
727
- /* 155 */ if ($('#sidekick .review').length > 0) {
728
- /* 156 */ $('#sidekick .bucketContainer div>ul').not(':last-child,:first-child').remove();
729
- /* 157 */ }
730
- /* 158 */ $('#sidekick .bucketContainer div>ul:last-child, #sidekick .bucketContainer div>ul:nth-last-child(2)').animate({
731
- /* 159 */ left: '+=300'
732
- /* 160 */ },200).wait(200).filter(':last-child').remove().wait(0,function(e){
733
- /* 161 */ SidekickWP.Events.trigger('do_update_header');
734
- /* 162 */ });
735
- /* 163 */ SidekickWP.Helpers.preventScrolling();
736
- /* 164 */ },
737
- /* 165 */
738
- /* 166 */ show_main_pane: function(){
739
- /* 167 */ console.log('show_main_pane');
740
  /* 168 */
741
- /* 169 */ $('#sidekick .bucketContainer div>ul').not(':last-child,:first-child').remove();
742
- /* 170 */ $('#sidekick .bucketContainer div>ul:last-child, #sidekick .bucketContainer div>ul:first-child').animate({
743
- /* 171 */ left: '+=300'
744
- /* 172 */ },200).wait(200).filter(':last-child').remove().wait(0,function(e){
745
- /* 173 */ SidekickWP.Events.trigger('do_update_header');
746
- /* 174 */ });
747
- /* 175 */ SidekickWP.Helpers.preventScrolling();
748
- /* 176 */ }
749
- /* 177 */ });
750
- /* 178 */
751
- /* 179 */ }(jQuery));
752
  /* 180 */
753
- /* 181 */
754
- /* 182 */
755
- /* 183 */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
756
 
757
  ;
758
  /* bucketContainerView.js */
759
 
760
  /* 1 */ (function($) {
761
  /* 2 */ SidekickWP.Views.BucketContainer = Backbone.View.extend({
762
- /* 3 */ // el: $('.BucketContainer'),
763
- /* 4 */ // tagName: 'ul',
764
- /* 5 */
765
- /* 6 */ initialize: function(models,options){
766
- /* 7 */ console.group('%cinitialize: bucketContiainerView %o', 'color:#3b4580', arguments);
767
- /* 8 */ SidekickWP.Events.on('rendered', this.setup_events, this);
768
- /* 9 */ return this;
769
- /* 10 */ },
770
  /* 11 */
771
- /* 12 */ render: function(){
772
- /* 13 */ // console.log('render bucketContiainerView %o',this);
773
- /* 14 */ console.group('%crender: render: bucketContainerView %o', 'color:#8fa2ff', this);
774
- /* 15 */
775
- /* 16 */ SidekickWP.Events.trigger('track_explore',{what:'Bucket' });
776
- /* 17 */ this.bucket = new SidekickWP.Models.Bucket({
777
- /* 18 */ title: this.model.get('title'),
778
- /* 19 */ bucket: this.model.get('full_library'),
779
- /* 20 */ bucket_counts: this.model.get('bucket_counts')
780
- /* 21 */ });
781
- /* 22 */ this.$el.append(this.bucket.view.render().el);
782
- /* 23 */ this.$el.find('.buckets').show().removeClass('new_window').addClass('current_window');
783
- /* 24 */ return this;
784
- /* 25 */ },
785
- /* 26 */
786
- /* 27 */ events: {
787
- /* 28 */ "click .bucket": "clicked_bucket"
788
- /* 29 */ },
789
  /* 30 */
790
- /* 31 */ clicked_bucket: function(e){
791
- /* 32 */ // console.log('clicked_bucket');
792
- /* 33 */ var bucket_to_open = $(e).data('bucket');
793
- /* 34 */ // console.log('bucket_to_open %o', bucket_to_open);
794
- /* 35 */
795
- /* 36 */ var all_buckets = this.model.get('all_buckets');
796
- /* 37 */ // console.log('all_buckets %o', all_buckets);
797
- /* 38 */
798
- /* 39 */ bucket_to_open = all_buckets[bucket_to_open];
799
- /* 40 */ // console.log('bucket_to_open %o', bucket_to_open);
800
- /* 41 */
801
- /* 42 */ if (bucket_to_open.walkthroughs) {
802
- /* 43 */ this.list = new SidekickWP.Models.List({
803
- /* 44 */ bucket: bucket_to_open.walkthroughs,
804
- /* 45 */ title: bucket_to_open.title
805
- /* 46 */ });
806
- /* 47 */ $('.bucketContainer>div').append( this.list.view.render().$el.html() );
807
- /* 48 */ SidekickWP.Events.trigger('show_next_pane');
808
- /* 49 */ } else {
809
- /* 50 */ this.bucket = new SidekickWP.Models.Bucket({
810
 
811
  /* bucketContainerView.js */
812
 
813
- /* 51 */ bucket: bucket_to_open.sub_buckets,
814
- /* 52 */ bucket_counts: this.model.get('bucket_counts'),
815
- /* 53 */ title: bucket_to_open.title
816
- /* 54 */ });
817
- /* 55 */ $('.bucketContainer>div').append( this.bucket.view.render().$el.html() );
818
- /* 56 */ SidekickWP.Events.trigger('show_next_pane');
819
- /* 57 */ }
820
- /* 58 */ },
821
- /* 59 */
822
- /* 60 */ setup_events: function(){
823
- /* 61 */ console.log('setup_events');
824
- /* 62 */ var group_id = this.model.get('id');
825
  /* 63 */
826
- /* 64 */ $('.bucket').unbind('click').click({context:this},function(e){
827
- /* 65 */ // console.log('click',e);
828
- /* 66 */ e.data.context.clicked_bucket(this);
829
- /* 67 */ });
830
- /* 68 */
831
- /* 69 */ $('a.sidekick_play_walkthrough').unbind('click').click({context:this},function(e){
832
- /* 70 */ // console.log('click aa',e);
833
- /* 71 */ SidekickWP.Events.trigger('close_sidekick_window');
834
- /* 72 */ });
835
  /* 73 */
836
- /* 74 */ // SidekickWP.Helpers.preventScrolling();
837
- /* 75 */ }
838
- /* 76 */ });
839
- /* 77 */
840
- /* 78 */ }(jQuery));
841
- /* 79 */
842
- /* 80 */
843
 
844
  ;
845
  /* bucketView.js */
@@ -857,52 +1065,25 @@
857
  /* 11 */ SidekickWP.Events.trigger('track_explore',{what:'Bucket' });
858
  /* 12 */
859
  /* 13 */ var variables = {
860
- /* 14 */ title: this.model.get('title'),
861
- /* 15 */ bucket: this.model.get('bucket'),
862
- /* 16 */ bucket_counts: this.model.get('bucket_counts')
863
- /* 17 */ };
864
- /* 18 */ console.log('variables %o', variables);
865
- /* 19 */
866
- /* 20 */ var template = _.template( SidekickWP.Templates.Bucket, variables );
867
- /* 21 */ this.$el.append(template);
868
- /* 22 */ console.groupEnd();
869
- /* 23 */ return this;
870
- /* 24 */ }
871
- /* 25 */ });
872
- /* 26 */
873
- /* 27 */ }(jQuery));
874
-
875
- ;
876
- /* listView.js */
877
-
878
- /* 1 */ (function($) {
879
- /* 2 */ SidekickWP.Views.List = Backbone.View.extend({
880
- /* 3 */
881
- /* 4 */ initialize: function(models,options){
882
- /* 5 */ return this;
883
- /* 6 */ },
884
- /* 7 */
885
- /* 8 */ render: function(){
886
- /* 9 */ console.group('%crender: render: listView %o', 'color:#8fa2ff', this);
887
- /* 10 */
888
- /* 11 */ SidekickWP.Events.trigger('track_explore',{what:'List' });
889
- /* 12 */
890
- /* 13 */ var variables = {
891
- /* 14 */ bucket: this.model.get('bucket'),
892
- /* 15 */ title: this.model.get('title')
893
- /* 16 */ };
894
- /* 17 */ console.log('variables %o', variables);
895
- /* 18 */
896
- /* 19 */ var template = _.template( SidekickWP.Templates.List, variables );
897
- /* 20 */ console.log('template %o', template);
898
- /* 21 */
899
- /* 22 */ // SidekickWP.Helpers.preventScrolling();
900
- /* 23 */ this.$el.append(template);
901
- /* 24 */ console.groupEnd();
902
- /* 25 */ return this;
903
- /* 26 */ }
904
- /* 27 */ });
905
- /* 28 */ }(jQuery));
906
 
907
  ;
908
  /* messageView.js */
@@ -927,12 +1108,12 @@
927
  /* 18 */ var template = _.template( SidekickWP.Templates.Message, variables );
928
  /* 19 */
929
  /* 20 */ this.$el.append( template );
930
- /* 21 */ SidekickWP.Helpers.preventScrolling();
931
- /* 22 */ SidekickWP.Events.trigger('show_next_pane');
932
  /* 23 */
933
- /* 24 */ // $('#sidekick .prev_window').removeClass('prev_window');
934
- /* 25 */ // $('#sidekick #main_menu').addClass('prev_window');
935
- /* 26 */ // $('#sidekick ul.main>li').not('#main_menu,#review').remove();
936
  /* 27 */
937
  /* 28 */ return this;
938
  /* 29 */ }
@@ -967,12 +1148,12 @@
967
  /* 21 */ console.log('template %o', template);
968
  /* 22 */
969
  /* 23 */ this.$el.append( template );
970
- /* 24 */ SidekickWP.Helpers.preventScrolling();
971
- /* 25 */ SidekickWP.Events.trigger('show_next_pane');
972
  /* 26 */
973
- /* 27 */ // $('#sidekick .prev_window').removeClass('prev_window');
974
- /* 28 */ // $('#sidekick #main_menu').addClass('prev_window');
975
- /* 29 */ // $('#sidekick ul.main>li').not('#main_menu,#review').remove();
976
  /* 30 */
977
  /* 31 */ return this;
978
  /* 32 */ },
@@ -985,24 +1166,24 @@
985
  /* 39 */ setup_events: function(){
986
  /* 40 */ var group_id = this.model.get('id');
987
  /* 41 */
988
- /* 42 */ $('#sidekick .review h2 button.goback, #sidekick .review input[type="button"]').unbind('click').click({context:this},function(e){
989
  /* 43 */ console.log('click goback/button');
990
  /* 44 */ SidekickWP.Events.trigger('show_main_pane');
991
  /* 45 */ });
992
  /* 46 */
993
- /* 47 */ $('#sidekick .review .rate span').unbind('hover').hover(function(){
994
  /* 48 */ $(this).addClass('hover')
995
  /* 49 */ .prevAll().addClass('hover');
996
  /* 50 */ },function(){
997
 
998
  /* reviewView.js */
999
 
1000
- /* 51 */ $('#sidekick .review .rate span').removeClass('hover');
1001
  /* 52 */ });
1002
  /* 53 */
1003
- /* 54 */ $('#sidekick .review .rate span').unbind('click').click = this.rate;
1004
  /* 55 */
1005
- /* 56 */ $('#sidekick .review textarea').unbind('click').click(function(){
1006
  /* 57 */ if(!$(this).hasClass('clicked')){
1007
  /* 58 */ $(this).addClass('clicked')
1008
  /* 59 */ .val('');
@@ -1013,7 +1194,7 @@
1013
  /* 64 */ submit: function(){
1014
  /* 65 */ var data = {
1015
  /* 66 */ walkthrough_title: this.model.get('walkthrough_title'),
1016
- /* 67 */ value: $('#sidekick textarea[name="comment"]').val(),
1017
  /* 68 */ license: sk_license_key
1018
  /* 69 */ };
1019
  /* 70 */
@@ -1024,8 +1205,8 @@
1024
  /* 75 */ dataType: 'json'
1025
  /* 76 */ }).done(function(data,e){
1026
  /* 77 */ console.log('Saved Comment');
1027
- /* 78 */ $('#sidekick textarea').html('Thank You!');
1028
- /* 79 */ $('#sidekick .review input[type="submit"]').val('Sent!');
1029
  /* 80 */ setTimeout(SidekickWP.Events.trigger('show_main_pane'),3000);
1030
  /* 81 */ }).error(function(e){
1031
  /* 82 */ console.error('Comment Save error (%o)',e);
@@ -1042,7 +1223,7 @@
1042
  /* 93 */ $(e.currentTarget).addClass('saved')
1043
  /* 94 */ .prevAll().addClass('saved');
1044
  /* 95 */
1045
- /* 96 */ $('#sidekick .rate span').unbind('mouseenter mouseleave click').css({cursor: 'default'});
1046
  /* 97 */
1047
  /* 98 */ $.ajax({
1048
  /* 99 */ url: 'http://www.wpuniversity.com/wp-admin/admin-ajax.php?action=wpu_add_rating',
@@ -1054,7 +1235,7 @@
1054
  /* 102 */ dataType: 'json'
1055
  /* 103 */ }).done(function(data,e){
1056
  /* 104 */ console.log('Saved Rating');
1057
- /* 105 */ $('#sidekick .hover').addClass('saved');
1058
  /* 106 */
1059
  /* 107 */ }).error(function(e){
1060
  /* 108 */ console.error('Rating Save error (%o)',e);
@@ -1069,80 +1250,141 @@
1069
  ;
1070
  /* templates.js */
1071
 
1072
- /* 1 */ _.templateSettings.interpolate = /\{\{(.*?)\}\}/;
1073
- /* 2 */
1074
- /* 3 */ SidekickWP.Templates.App = [
1075
- /* 4 */ "<div id='sidekick' class='sidekick_container'>",
1076
- /* 5 */ "<h2><button class='config'></button><span>What do you need help with?</span><button class='close'></button></h2>",
1077
- /* 6 */ "<div class='search'><!--<input type='text' value='Search'></input>--></div>",
1078
- /* 7 */ "<ul class='bucketContainer'><% print(BucketContainer) %></ul>",
1079
- /* 8 */ "<div id='logo'></div><a href='http://www.wpuniversity.com'><div id='logo_full'></div></a> ",
1080
- /* 9 */ "</div>"
1081
- /* 10 */ ].join("");
1082
- /* 11 */
1083
- /* 12 */
1084
- /* 13 */ SidekickWP.Templates.Bucket = [
1085
- /* 14 */ "<ul class='big buckets new_window' data-title='<% print(title) %>'>",
1086
- /* 15 */ "<% _.each(bucket, function(bucket_data, key){ %>",
1087
- /* 16 */ "<% if (bucket_data.walkthroughs || bucket_data.sub_buckets) { %>",
1088
- /* 17 */ "<li data-bucket='<% print(key) %>' class='group_section bucket <% if (bucket_data.sub_buckets) { %>sub_buckets_exist<% } %>'><div><% print(bucket_data.title) %> <span><% print(bucket_counts[bucket_data.title].count) %></span></div></li>",
1089
- /* 18 */ "<% } %>",
1090
- /* 19 */ "<% }); %>",
1091
- /* 20 */ "</ul>"
1092
- /* 21 */ ].join("");
1093
- /* 22 */
1094
- /* 23 */ SidekickWP.Templates.List = [
1095
- /* 24 */ "<ul class='list small buckets new_window' data-title='<% print(title) %>'>",
1096
- /* 25 */ "<% if (bucket.overview) { %>",
1097
- /* 26 */ "<li class='heading'><div>Overviews</div></li>",
1098
- /* 27 */ "<li>",
1099
- /* 28 */ "<ul class='walkthroughs'>",
1100
- /* 29 */ "<% _.each(bucket.overview, function(walkthrough){ %> ",
1101
- /* 30 */ "<% console.log(walkthrough) %><a class='sidekick_play_walkthrough' href='javascript: sidekick.play_walkthrough(\"<% print(walkthrough.id) %>\")'>",
1102
- /* 31 */ "<li><div><% print(walkthrough.title) %></div></li>",
1103
- /* 32 */ "</a>",
1104
- /* 33 */ "<% }); %>",
1105
- /* 34 */ "</ul>",
1106
- /* 35 */ "</li>",
1107
- /* 36 */ "<% } %>",
1108
- /* 37 */ "<% if (bucket.how) { %>",
1109
- /* 38 */ "<li class='heading'><div>How Tos</div></li>",
1110
- /* 39 */ "<li>",
1111
- /* 40 */ "<ul class='walkthroughs'>",
1112
- /* 41 */ "<% _.each(bucket.how, function(walkthrough){ %>",
1113
- /* 42 */ "<a class='sidekick_play_walkthrough' href='javascript: sidekick.play_walkthrough(\"<% print(walkthrough.id) %>\")'>",
1114
- /* 43 */ "<li><div><% print(walkthrough.title) %></div></li>",
1115
- /* 44 */ "</a>",
1116
- /* 45 */ "<% }); %>",
1117
- /* 46 */ "</ul>",
1118
- /* 47 */ "</li>",
1119
- /* 48 */ "<% } %>",
1120
- /* 49 */ "</ul>"
1121
- /* 50 */ ].join("");
1122
 
1123
  /* templates.js */
1124
 
1125
- /* 51 */
1126
- /* 52 */ SidekickWP.Templates.Review = [
1127
- /* 53 */ "<ul class='new_window review' data-title='<% print(title) %>'>",
1128
- /* 54 */ "<li>",
1129
- /* 55 */ "<div><div class='rate'><span data-val='1' class='rate1'></span><span data-val='2' class='rate2'></span><span data-val='3' class='rate3'></span><span data-val='4' class='rate4'></span><span data-val='5' class='rate5'></span></div>",
1130
- /* 56 */ "<textarea name='comment'>Let us know if you found the Walkthrough helpful or if we can improve something.</textarea>",
1131
- /* 57 */ "<br/><input type='button' value='Skip'></input><input type='submit' value='Submit'></input>",
1132
- /* 58 */ "</li>",
1133
- /* 59 */ "</ul>"
1134
- /* 60 */ ].join("");
1135
- /* 61 */
1136
- /* 62 */
1137
- /* 63 */ SidekickWP.Templates.Message = [
1138
- /* 64 */ "<ul class='new_window message' data-title='<% print(title) %>'>",
1139
- /* 65 */ "<li>",
1140
- /* 66 */ "<div><% print(message) %></div>",
1141
- /* 67 */ "</li>",
1142
- /* 68 */ "</ul>"
1143
- /* 69 */ ].join("");
1144
- /* 70 */
1145
- /* 71 */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1146
 
1147
  ;
1148
  /* jquery.lightbox_me.js */
@@ -2539,13 +2781,31 @@
2539
  /* 848 */
2540
  /* 849 */ })(jQuery, window);
2541
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2542
  ;
2543
  /* sk_wp.js */
2544
 
2545
  /* 1 */
2546
  /* 2 */ jQuery(document).ready(function($) {
2547
- /* 3 */ window.sidekickWP = new SidekickWP.Models.App();
2548
- /* 4 */ console.log('window.sidekickWP %o', window.sidekickWP);
2549
- /* 5 */ // jQuery('#logo').trigger('click');
2550
- /* 6 */ });
2551
- /* 7 */
 
 
18
  /* 15 */ if (!window.console.groupEnd) window.console.groupEnd = function(){};
19
  /* 16 */ if (!window.console.table) window.console.table = function(){};
20
  /* 17 */ if (!window.console.error) window.console.error = function(){};
21
+ /* 18 */ if (!window.console.groupCollapsed) window.console.groupCollapsed = function(){};
22
+ /* 19 */
23
+ /* 20 */ if (window.console){
24
+ /* 21 */ window.console.info = function(msg,o1,o2,o3){if (!o1) o1 = '';if (!o2) o2 = '';if (!o3) o3 = '';console.log('%c' + msg,'color: blue;font-weight: bold',o1,o2,o3);};
25
+ /* 22 */ window.console.event = function(msg,o1,o2,o3){if (!o1) o1 = '';if (!o2) o2 = '';if (!o3) o3 = '';console.log('%c' + msg,'color: green;font-weight: bold',o1,o2,o3);};
26
+ /* 23 */ }
27
+ /* 24 */
28
+ /* 25 */ SidekickWP.Models.App = Backbone.Model.extend({
29
+ /* 26 */ defaults: {
30
+ /* 27 */ full_library: null,
31
+ /* 28 */ library_filtered_hotspots: null,
32
+ /* 29 */ library_filtered_walkthroughs: null,
33
+ /* 30 */ library_filtered_walkthroughs_by_id: null,
34
+ /* 31 */ library_filtered_walkthroughs_by_bucket: null,
35
+ /* 32 */ library_filtered_buckets: [],
36
+ /* 33 */ library_filtered_sub_buckets: null,
37
+ /* 34 */ library_filtered_sub_buckets_by_id: null,
38
+ /* 35 */ my_library: null,
39
+ /* 36 */ wp_version: null,
40
+ /* 37 */ installed_plugins: null,
41
+ /* 38 */ current_url: null,
42
+ /* 39 */ current_plugin: null,
43
+ /* 40 */ license_status: null,
44
+ /* 41 */ show_toggle_feedback: true,
45
+ /* 42 */ bucket_counts: []
46
+ /* 43 */ },
47
+ /* 44 */
48
+ /* 45 */ initialize: function(){
49
+ /* 46 */ console.group('%cinitialize: App Model %o', 'color:#3b4580', this);
50
  /* 47 */
51
+ /* 48 */ if ( $.browser.msie && $.browser.version < 9) {
52
+ /* 49 */ console.error('This browser is not supported');
53
+ /* 50 */ return false;
54
 
55
  /* appModel.js */
56
 
57
+ /* 51 */ }
58
+ /* 52 */
59
+ /* 53 */ _.extend(this, Backbone.Events);
60
+ /* 54 */ SidekickWP.Events = _.extend({}, Backbone.Events);
61
+ /* 55 */
62
+ /* 56 */ Sidekick.Events.on('loaded_walkthrough',this.loaded_walkthrough,this);
63
+ /* 57 */ // Sidekick.Events.on('stop',this.show_review,this);
64
+ /* 58 */ Sidekick.Events.on('stop',this.deactivate_controls,this);
65
+ /* 59 */ Sidekick.Events.on('track_play',this.activate_controls,this);
66
+ /* 60 */ SidekickWP.Events.on('show_msg',this.show_msg,this);
67
+ /* 61 */
68
+ /* 62 */ this.trackingModel = new SidekickWP.Models.Tracking();
69
+ /* 63 */
70
+ /* 64 */ if (typeof sk_library == 'undefined') {
71
+ /* 65 */ var msg = 'No Library Found!';
72
+ /* 66 */ SidekickWP.Events.trigger('track_error',{msg: msg});
73
+ /* 67 */
74
+ /* 68 */ console.error('Sidekick Library Not Found! -> %s',sk_library_file);
75
+ /* 69 */ return;
76
+ /* 70 */ } else {
77
+ /* 71 */ console.info('Library -> ' + sk_library_file);
78
+ /* 72 */ console.log('sk_library %o', sk_library);
79
+ /* 73 */ }
80
+ /* 74 */
81
+ /* 75 */ if (typeof sk_just_activated != 'undefined')
82
+ /* 76 */ SidekickWP.Events.trigger('window_activate');
83
+ /* 77 */
84
+ /* 78 */ if (typeof sk_main_soft_version === 'undefined') {
85
+ /* 79 */ console.error('No WP Version?!?');
86
+ /* 80 */ return false;
87
+ /* 81 */ }
88
+ /* 82 */
89
+ /* 83 */ if (typeof sk_main_soft_version != 'undefined') this.set('sk_main_soft_version',sk_main_soft_version);
90
+ /* 84 */ if (typeof sk_library != 'undefined') this.set('full_library',sk_library);
91
+ /* 85 */ if (typeof sk_installed_plugins != 'undefined') this.set('installed_plugins',sk_installed_plugins);
92
  /* 86 */
93
+ /* 87 */ if (sk_track_data === true) console.log("Can't Track User Data!");
94
+ /* 88 */
95
+ /* 89 */ // console.table(this.attributes);
96
+ /* 90 */
97
+ /* 91 */ console.info('Full Library %o', this.get('full_library'));
98
+ /* 92 */ this.set('current_url',window.location.toString());
99
+ /* 93 */
100
+ /* 94 */ this.Config = {
101
+ /* 95 */ domain: 'http://www.wpuniversity.com'
102
+ /* 96 */ };
103
+ /* 97 */
104
+ /* 98 */ this.views = {};
105
+ /* 99 */
106
+ /* 100 */ this.check_library();
107
 
108
  /* appModel.js */
109
 
110
+ /* 101 */ this.filter_walkthroughs();
111
+ /* 102 */ this.filter_buckets();
112
+ /* 103 */ // this.remove_empty_buckets();
113
  /* 104 */
114
+ /* 105 */ this.views.app = new SidekickWP.Views.App({model: this, el: $("body")});
115
+ /* 106 */
116
+ /* 107 */ console.groupEnd();
117
+ /* 108 */ },
118
  /* 109 */
119
+ /* 110 */ filter_walkthroughs: function(){
120
+ /* 111 */ var library = this.get('full_library');
121
+ /* 112 */ var check_list = [];
122
+ /* 113 */ var passed_list = [];
123
+ /* 114 */ var library_filtered_walkthroughs_by_id = [];
124
+ /* 115 */ var library_filtered_walkthroughs_by_bucket = [];
125
+ /* 116 */ var library_filtered_hotspots = [];
126
+ /* 117 */
127
+ /* 118 */ console.groupCollapsed('%cCHECK_WALKTHROUGH_COMPATIBILITY %o', 'color:#3b4580', walkthrough);
128
+ /* 119 */ // console.group('%cCHECK_WALKTHROUGH_COMPATIBILITY %o', 'color:#3b4580', walkthrough);
129
+ /* 120 */ for(var type in library.walkthroughs){
130
+ /* 121 */ for(var walkthrough_key in library.walkthroughs[type]){
131
+ /* 122 */ var walkthrough = library.walkthroughs[type][walkthrough_key];
132
+ /* 123 */ var check_walkthought = this.check_walkthrough_compatibility(walkthrough);
133
+ /* 124 */
134
+ /* 125 */ if (check_walkthought) {
135
+ /* 126 */ library_filtered_walkthroughs_by_id[walkthrough.id] = walkthrough;
136
  /* 127 */
137
+ /* 128 */ if (walkthrough.type == 'hotspot') {
138
+ /* 129 */ _.each(walkthrough.hotspots,function(item){
139
+ /* 130 */ library_filtered_hotspots.push({url:item.url,selector: item.selector,id:walkthrough.id});
140
+ /* 131 */ });
141
+ /* 132 */ } else {
142
+ /* 133 */ for (var bucket in walkthrough.buckets){
143
+ /* 134 */ var bucket_id = walkthrough.buckets[bucket];
144
+ /* 135 */ this.assign_walkthrough(bucket_id,walkthrough);
145
  /* 136 */
146
+ /* 137 */ if (typeof library_filtered_walkthroughs_by_bucket[bucket_id] === 'undefined') library_filtered_walkthroughs_by_bucket[bucket_id] = [];
147
+ /* 138 */ if (typeof library_filtered_walkthroughs_by_bucket[bucket_id][type] === 'undefined') library_filtered_walkthroughs_by_bucket[bucket_id][type] = [];
148
+ /* 139 */
149
+ /* 140 */ library_filtered_walkthroughs_by_bucket[bucket_id][type].push(walkthrough);
150
+ /* 141 */ }
151
+ /* 142 */ }
152
+ /* 143 */ if (!_.size(passed_list)) {
153
+ /* 144 */ passed_list = [walkthrough.id];
154
+ /* 145 */ } else {
155
+ /* 146 */ passed_list = _.union(passed_list,walkthrough.id);
156
+ /* 147 */ }
157
+ /* 148 */ }
158
+ /* 149 */ }
159
+ /* 150 */ }
160
 
161
  /* appModel.js */
162
 
163
+ /* 151 */ console.log('passed_list %o', passed_list);
164
+ /* 152 */ console.log('library_filtered_walkthroughs_by_bucket %o', library_filtered_walkthroughs_by_bucket);
165
  /* 153 */
166
+ /* 154 */ console.groupEnd();
167
+ /* 155 */
168
+ /* 156 */ this.set('library_filtered_hotspots',library_filtered_hotspots);
169
+ /* 157 */ this.set('library_filtered_walkthroughs',passed_list);
170
+ /* 158 */ this.set('library_filtered_walkthroughs_by_id',library_filtered_walkthroughs_by_id);
171
+ /* 159 */ this.set('library_filtered_walkthroughs_by_bucket',library_filtered_walkthroughs_by_bucket);
172
+ /* 160 */ },
173
+ /* 161 */
174
+ /* 162 */ assign_walkthrough: function(into_bucket_id,walkthrough){
175
+ /* 163 */ console.group('%cassign_walkthrough (%s) -> bucket %s', 'color:#8fa2ff',walkthrough.title,into_bucket_id);
176
+ /* 164 */
177
+ /* 165 */ var full_library = this.get('full_library');
178
+ /* 166 */ var library_filtered_buckets = this.get('library_filtered_buckets');
179
+ /* 167 */
180
+ /* 168 */ for (var bucket in full_library.buckets){
181
+ /* 169 */ var bucket_data = full_library.buckets[bucket];
182
+ /* 170 */ if (typeof bucket_data.sub_buckets == 'object') {
183
+ /* 171 */ var sub_buckets = bucket_data.sub_buckets;
184
+ /* 172 */ for (var sub_bucket in sub_buckets){
185
+ /* 173 */ var sub_bucket_data = sub_buckets[sub_bucket];
186
  /* 174 */
187
+ /* 175 */ if (typeof sub_bucket_data.sub_buckets == 'object') {
188
+ /* 176 */ var sub_sub_buckets = sub_bucket_data.sub_buckets;
189
+ /* 177 */ for (var sub_sub_bucket in sub_sub_buckets){
190
+ /* 178 */ var sub_sub_bucket_data = sub_sub_buckets[sub_sub_bucket];
191
+ /* 179 */ if (sub_sub_bucket_data.id == into_bucket_id) {
192
+ /* 180 */ // console.log(' Assigning (%s) -> (%s)',walkthrough.title,into_bucket_id);
193
+ /* 181 */ (full_library.buckets[bucket].sub_buckets[sub_bucket].sub_buckets[sub_sub_bucket].walkthroughs = full_library.buckets[bucket].sub_buckets[sub_bucket].sub_buckets[sub_sub_bucket].walkthroughs || []).push(walkthrough);
194
+ /* 182 */ }
195
+ /* 183 */ }
196
+ /* 184 */ } else {
197
+ /* 185 */ if (sub_bucket_data.id == into_bucket_id) {
198
+ /* 186 */ // console.log(' Assigning (%s) -> (%s)',walkthrough.title,into_bucket_id);
199
+ /* 187 */ (full_library.buckets[bucket].sub_buckets[sub_bucket].walkthroughs = full_library.buckets[bucket].sub_buckets[sub_bucket].walkthroughs || []).push(walkthrough);
200
+ /* 188 */ }
201
+ /* 189 */ }
202
+ /* 190 */ }
203
+ /* 191 */ } else {
204
+ /* 192 */ if (bucket_data.id == into_bucket_id) {
205
+ /* 193 */ // console.log('Assigning (%s) -> (%s)',walkthrough.title,into_bucket_id);
206
+ /* 194 */ (full_library.buckets[bucket].walkthroughs = full_library.buckets[bucket].walkthroughs || []).push(walkthrough);
207
+ /* 195 */ }
208
+ /* 196 */ }
209
+ /* 197 */ }
210
+ /* 198 */
211
+ /* 199 */ this.set('library_filtered_buckets',library_filtered_buckets);
212
+ /* 200 */ console.groupEnd();
213
 
214
  /* appModel.js */
215
 
216
+ /* 201 */ },
217
+ /* 202 */
218
+ /* 203 */ filter_buckets: function(){
219
+ /* 204 */ console.groupCollapsed('%cFILTER_BUCKETS', 'color:#8fa2ff');
220
+ /* 205 */
221
+ /* 206 */ var full_library = this.get('full_library');
222
+ /* 207 */ var library_filtered_sub_buckets = {};
223
+ /* 208 */ var bucket;
224
+ /* 209 */ var bucket_data;
225
+ /* 210 */ var sub_bucket;
226
+ /* 211 */ var sub_buckets;
227
+ /* 212 */ var sub_bucket_data;
228
+ /* 213 */
229
+ /* 214 */ console.log('LEVEL 3 full_library.buckets %o', full_library.buckets);
230
+ /* 215 */
231
+ /* 216 */
232
+ /* 217 */ for (bucket in full_library.buckets){
233
+ /* 218 */ console.log('bucket %o', bucket);
234
+ /* 219 */
235
+ /* 220 */ bucket_data = full_library.buckets[bucket];
236
+ /* 221 */
237
+ /* 222 */ library_filtered_sub_buckets[bucket] = {id:bucket_data.id,sub_buckets:[]};
238
  /* 223 */
239
+ /* 224 */
240
+ /* 225 */ if (typeof bucket_data.sub_buckets == 'object') {
241
+ /* 226 */ sub_buckets = bucket_data.sub_buckets;
242
+ /* 227 */ for (sub_bucket in sub_buckets){
243
+ /* 228 */ console.log('sub_bucket %o', sub_bucket);
244
+ /* 229 */
245
+ /* 230 */ sub_bucket_data = sub_buckets[sub_bucket];
246
+ /* 231 */
247
+ /* 232 */ library_filtered_sub_buckets[bucket].sub_buckets[sub_bucket] = {id:sub_bucket_data.id};
248
+ /* 233 */ library_filtered_sub_buckets[sub_bucket] = {id:sub_bucket_data.id,sub_buckets:[]};
249
  /* 234 */
250
+ /* 235 */
251
+ /* 236 */ if (typeof sub_bucket_data.sub_buckets == 'object') {
252
+ /* 237 */ var sub_sub_buckets = sub_bucket_data.sub_buckets;
253
+ /* 238 */
254
  /* 239 */
255
+ /* 240 */ for (var sub_sub_bucket in sub_sub_buckets){
256
+ /* 241 */ console.log('sub_sub_bucket %o', sub_sub_bucket);
257
+ /* 242 */
258
+ /* 243 */ var sub_sub_bucket_data = sub_sub_buckets[sub_sub_bucket];
259
+ /* 244 */
260
+ /* 245 */ library_filtered_sub_buckets[sub_sub_bucket] = {id:sub_sub_bucket_data.id,sub_buckets:[]};
261
+ /* 246 */ library_filtered_sub_buckets[sub_bucket].sub_buckets[sub_sub_bucket] = {id:sub_sub_bucket_data.id,sub_buckets:[]};
262
+ /* 247 */
263
+ /* 248 */ // console.log('sub_sub_bucket %o - %o', sub_sub_bucket,sub_sub_bucket_data);
264
+ /* 249 */
265
+ /* 250 */ if (!sub_sub_bucket_data.walkthroughs && !sub_sub_bucket_data.sub_buckets) {
266
 
267
  /* appModel.js */
268
 
269
+ /* 251 */ console.log('Deleteing -> %o',full_library.buckets[bucket].sub_buckets[sub_bucket].sub_buckets[sub_sub_bucket]);
270
+ /* 252 */ delete(full_library.buckets[bucket].sub_buckets[sub_bucket].sub_buckets[sub_sub_bucket]);
271
+ /* 253 */ }
272
+ /* 254 */
273
+ /* 255 */ if (typeof sub_sub_bucket_data.sub_buckets == 'object') {
274
+ /* 256 */ var sub_sub_sub_buckets = sub_sub_bucket_data.sub_buckets;
275
+ /* 257 */
276
+ /* 258 */ for (var sub_sub_sub_bucket in sub_sub_sub_buckets){
277
+ /* 259 */ console.log('sub_sub_sub_bucket %o', sub_sub_sub_bucket);
278
+ /* 260 */ var sub_sub_sub_bucket_data = sub_sub_sub_buckets[sub_sub_sub_bucket];
279
+ /* 261 */ library_filtered_sub_buckets[sub_sub_sub_bucket] = {id:sub_sub_sub_bucket_data.id,sub_buckets:[]};
280
+ /* 262 */ library_filtered_sub_buckets[sub_sub_bucket].sub_buckets[sub_sub_sub_bucket] = {id:sub_sub_sub_bucket_data.id,sub_buckets:[]};
281
+ /* 263 */ }
282
+ /* 264 */ }
283
+ /* 265 */
284
+ /* 266 */ }
285
+ /* 267 */ }
286
+ /* 268 */ }
287
+ /* 269 */ }
288
+ /* 270 */ }
289
+ /* 271 */
290
+ /* 272 */ console.log('LEVEL 2 full_library.buckets %o', full_library.buckets);
291
  /* 273 */
292
+ /* 274 */ for (bucket in full_library.buckets){
293
+ /* 275 */ bucket_data = full_library.buckets[bucket];
294
+ /* 276 */ if (typeof bucket_data.sub_buckets == 'object') {
295
+ /* 277 */ sub_buckets = bucket_data.sub_buckets;
296
+ /* 278 */ for (sub_bucket in sub_buckets){
297
+ /* 279 */ sub_bucket_data = sub_buckets[sub_bucket];
298
  /* 280 */
299
+ /* 281 */ if (!sub_bucket_data.walkthroughs && !sub_bucket_data.sub_buckets) {
300
+ /* 282 */ console.log('Deleteing -> %o',sub_bucket);
301
+ /* 283 */ delete(full_library.buckets[bucket].sub_buckets[sub_bucket]);
302
+ /* 284 */ }
303
+ /* 285 */ }
304
+ /* 286 */ }
305
+ /* 287 */ }
306
  /* 288 */
307
+ /* 289 */ console.log('LEVEL 1 full_library.buckets %o', full_library.buckets);
308
+ /* 290 */
309
+ /* 291 */ for (bucket in full_library.buckets){
310
+ /* 292 */ bucket_data = full_library.buckets[bucket];
311
+ /* 293 */ if (!bucket_data.walkthroughs && !bucket_data.sub_buckets) {
312
+ /* 294 */ console.log('Deleteing -> %o',bucket);
313
+ /* 295 */ delete(full_library.buckets[bucket]);
314
  /* 296 */ }
315
  /* 297 */ }
316
+ /* 298 */
317
+ /* 299 */ this.set('library_filtered_sub_buckets',library_filtered_sub_buckets);
318
+ /* 300 */ console.log('full_library.buckets %o', full_library.buckets);
319
 
320
  /* appModel.js */
321
 
322
  /* 301 */ console.groupEnd();
323
  /* 302 */ },
324
  /* 303 */
325
+ /* 304 */ check_walkthrough_compatibility: function(walkthrough){
326
+ /* 305 */ var sk_main_soft_version = this.get('sk_main_soft_version');
327
+ /* 306 */ var pass_main_soft_version = false, pass_theme_version = false, pass_theme = false, pass_plugin = false, pass_plugin_version = false, pass_user_level = false;
328
+ /* 307 */ var bucket_counts = this.get('bucket_counts');
329
+ /* 308 */ var installed_plugins = this.get('installed_plugins') ;
330
+ /* 309 */
331
+ /* 310 */ // Checking Main Software Version Compatibility
332
+ /* 311 */ pass_main_soft_version = _.find(walkthrough.main_soft_version,function(val){
333
+ /* 312 */ if (val == sk_main_soft_version)
334
+ /* 313 */ return true;
335
+ /* 314 */ });
336
+ /* 315 */
337
+ /* 316 */ if (!pass_main_soft_version){
338
+ /* 317 */ console.error('FAILED %o - Main %s != %s',walkthrough.title, pass_main_soft_version,walkthrough.main_soft_version);
339
+ /* 318 */ console.log('sk_main_soft_version %o walkthrough.main_soft_version %o', sk_main_soft_version,walkthrough.main_soft_version);
340
  /* 319 */
341
+ /* 320 */ return false;
342
+ /* 321 */ }
343
+ /* 322 */
344
+ /* 323 */ // Checking Theme Compatibility
345
+ /* 324 */ if (typeof walkthrough.theme !== 'undefined') {
346
+ /* 325 */ if (walkthrough.theme === sk_installed_theme) {
347
+ /* 326 */ pass_theme = true;
348
+ /* 327 */ if (walkthrough.theme_version) {
349
+ /* 328 */ pass_theme_version = _.find(walkthrough.theme_version,function(val){
350
+ /* 329 */ if (val == sk_theme_version) {
351
+ /* 330 */ return true;
352
+ /* 331 */ }
353
+ /* 332 */ });
354
+ /* 333 */ } else {
355
+ /* 334 */ pass_theme_version = true;
356
+ /* 335 */ }
357
+ /* 336 */ }
358
+ /* 337 */ if (!pass_theme || !pass_theme_version){
359
+ /* 338 */ console.error('FAILED %o - Theme %s (%o) != %s (%o)',walkthrough.title,walkthrough.theme_version, walkthrough.theme, pass_theme, sk_theme_version);
360
+ /* 339 */ return false;
361
+ /* 340 */ }
362
+ /* 341 */ }
363
+ /* 342 */
364
+ /* 343 */ // Checking Plugin Compatibility
365
+ /* 344 */ if (typeof walkthrough.plugin !== 'undefined') {
366
+ /* 345 */ if (typeof sk_installed_plugins === 'undefined') return false;
367
+ /* 346 */ pass_plugin = _.find(sk_installed_plugins,function(plugin_data){
368
+ /* 347 */ for (var plugin in plugin_data) {
369
+ /* 348 */ var version = plugin_data[plugin];
370
+ /* 349 */
371
+ /* 350 */ if (plugin == walkthrough.plugin) {
372
+
373
+ /* appModel.js */
374
+
375
+ /* 351 */ pass_plugin = true;
376
+ /* 352 */
377
+ /* 353 */ pass_plugin_version = _.find(walkthrough.plugin_version,function(version2){
378
+ /* 354 */ // console.log('version %o == %o ?', version,version2);
379
+ /* 355 */ if (version == version2) {
380
+ /* 356 */ pass_plugin_version = true;
381
+ /* 357 */ return true;
382
+ /* 358 */ }
383
+ /* 359 */ });
384
+ /* 360 */ // console.log('pass_plugin_version %o', pass_plugin_version);
385
+ /* 361 */ return true;
386
+ /* 362 */ }
387
+ /* 363 */ break;
388
+ /* 364 */ }
389
+ /* 365 */ });
390
+ /* 366 */ if (!pass_plugin || !pass_plugin_version){
391
+ /* 367 */ console.error('FAILED %o - Plugin %o (%o) != %s',walkthrough.title, sk_installed_plugins, walkthrough.plugin_version, walkthrough.plugin);
392
+ /* 368 */ return false;
393
+ /* 369 */ }
394
+ /* 370 */ }
395
+ /* 371 */
396
+ /* 372 */ // Checking User Role/Level Compatibility
397
+ /* 373 */ if (walkthrough.role) {
398
+ /* 374 */ pass_user_level = _.find(walkthrough.role,function(val){
399
+ /* 375 */ if (val == sk_user_level) {
400
+ /* 376 */ return true;
401
+ /* 377 */ }
402
+ /* 378 */ });
403
+ /* 379 */ }
404
+ /* 380 */
405
+ /* 381 */ if (!pass_user_level){
406
+ /* 382 */ console.error('FAILED %o - User Level %s != %s',walkthrough.title, sk_user_level, walkthrough.role);
407
+ /* 383 */ return false;
408
+ /* 384 */ }
409
+ /* 385 */
410
+ /* 386 */ console.log('%cPASSED! %o', 'color: #3ab00b',walkthrough.title);
411
+ /* 387 */ return true;
412
+ /* 388 */ },
413
+ /* 389 */
414
+ /* 390 */ check_library: function(){
415
+ /* 391 */ if (!this.get('full_library')) {
416
+ /* 392 */ console.error("WPU Library Not Found!");
417
+ /* 393 */ return false;
418
+ /* 394 */ }
419
+ /* 395 */ if (!this.get('sk_main_soft_version')){
420
+ /* 396 */ console.error("No WP Version Found!");
421
+ /* 397 */ return false;
422
+ /* 398 */ }
423
+ /* 399 */ // this.parse_my_library();
424
+ /* 400 */ },
425
+
426
+ /* appModel.js */
427
+
428
+ /* 401 */
429
+ /* 402 */ loaded_walkthrough: function(walkthrough_model){
430
+ /* 403 */ // console.log('WPU:loaded_walkthrough');
431
+ /* 404 */ this.set('last_loaded_walkthrough',walkthrough_model);
432
+ /* 405 */ },
433
+ /* 406 */
434
+ /* 407 */ activate_controls: function(){
435
+ /* 408 */ console.log('activate_controls');
436
+ /* 409 */ $('div#sidekick').addClass('playing');
437
+ /* 410 */ },
438
+ /* 411 */
439
+ /* 412 */ deactivate_controls: function(){
440
+ /* 413 */ $('div#sidekick').removeClass('playing');
441
+ /* 414 */ },
442
+ /* 415 */
443
+ /* 416 */ // show_review: function(a,b){
444
+ /* 417 */ // console.log('show_review');
445
+ /* 418 */ // var last_loaded_walkthrough = this.get('last_loaded_walkthrough');
446
+ /* 419 */ // console.log('last_loaded_walkthrough %o', last_loaded_walkthrough);
447
+ /* 420 */
448
+ /* 421 */ // var walkthrough_title = last_loaded_walkthrough.get('title');
449
+ /* 422 */ // console.log('walkthrough_title %o', walkthrough_title);
450
+ /* 423 */
451
+ /* 424 */ // // new SidekickWP.Models.Review({walkthrough_title: walkthrough_title});
452
+ /* 425 */ // },
453
+ /* 426 */
454
+ /* 427 */ show_msg: function(data,context){
455
+ /* 428 */ // console.log('show_msg %o',arguments);
456
+ /* 429 */ // console.log('this.models %o', this.models);
457
+ /* 430 */ // console.log('context %o', context);
458
+ /* 431 */ new SidekickWP.Models.Message({title: data.title, message: data.msg});
459
+ /* 432 */ }
460
+ /* 433 */ });
461
+ /* 434 */ }(jQuery));
462
 
463
  ;
464
  /* bucketContainerModel.js */
467
  /* 2 */
468
  /* 3 */ SidekickWP.Models.BucketContainer = Backbone.Model.extend({
469
  /* 4 */ defaults: {
470
+ /* 5 */ navigation_history: ['buckets']
471
+ /* 6 */ },
472
+ /* 7 */
473
+ /* 8 */ initialize: function(){
474
+ /* 9 */ this.view = new SidekickWP.Views.BucketContainer({model: this});
475
+ /* 10 */ return this;
476
+ /* 11 */ }
477
+ /* 12 */ });
478
+ /* 13 */
479
+ /* 14 */ }(jQuery));
 
 
480
 
481
  ;
482
  /* bucketModel.js */
485
  /* 2 */
486
  /* 3 */ SidekickWP.Models.Bucket = Backbone.Model.extend({
487
  /* 4 */ defaults: {
488
+ /* 5 */ full_library: null,
489
+ /* 6 */ library_filtered_walkthroughs: null,
490
+ /* 7 */ library_filtered_buckets: null,
491
+ /* 8 */ library_filtered_sub_buckets: null
492
+ /* 9 */ },
493
+ /* 10 */
494
+ /* 11 */ initialize: function(){
495
+ /* 12 */ console.log('initialize bucketModel %o', this.attributes);
496
+ /* 13 */ this.view = new SidekickWP.Views.Bucket({model: this});
497
+ /* 14 */ return this;
498
+ /* 15 */ }
499
+ /* 16 */ });
500
+ /* 17 */
501
+ /* 18 */ }(jQuery));
502
 
503
  ;
504
  /* helpers.js */
507
  /* 2 */
508
  /* 3 */ SidekickWP.Helpers = ({
509
  /* 4 */ preventScrolling: function(){
510
+ /* 5 */ $('div#sidekick .bucketContainer>div>ul').on('DOMMouseScroll mousewheel', function(ev) {
511
  /* 6 */ console.log('asd');
512
  /* 7 */ var $this = $(this),
513
  /* 8 */ scrollTop = this.scrollTop,
541
  /* 36 */
542
  /* 37 */
543
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
544
  ;
545
  /* messageModel.js */
546
 
610
  /* 29 */ data.source = 'plugin';
611
  /* 30 */ data.action = 'track';
612
  /* 31 */ data.data = JSON.stringify(model);
613
+ /* 32 */ if (typeof sidekick !== 'undefined' && (typeof sk_track_data === 'undefined' || sk_track_data === true)) {
614
+ /* 33 */ data.user = sk_license_key;
615
+ /* 34 */ }
616
+ /* 35 */
617
+ /* 36 */ // console.log('send tracking to WPU',data);
618
+ /* 37 */ $.post("http://www.wpuniversity.com/wp-admin/admin-ajax.php", data);
619
+ /* 38 */ },
620
+ /* 39 */
621
+ /* 40 */ track_explore: function(data){
622
+ /* 41 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin - Explore', data.what, null, 0,true]);
623
+ /* 42 */ this.send({type: 'explore', label: data.what});
624
+ /* 43 */ },
625
+ /* 44 */
626
+ /* 45 */ track_open_sidekick_window: function(data){
627
+ /* 46 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin - Window', 'Open', null, 0,true]);
628
+ /* 47 */ this.send({type: 'open'});
629
+ /* 48 */ },
630
+ /* 49 */
631
+ /* 50 */ window_activate: function(data){
632
 
633
  /* trackingModel.js */
634
 
635
+ /* 51 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin - Activate', '', wpu_plugin_version, 0,true]);
636
+ /* 52 */ this.send({type: 'activate'});
637
+ /* 53 */ },
638
+ /* 54 */
639
+ /* 55 */ window_deactivate: function(data){
640
+ /* 56 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin - Deactivate', '', wpu_plugin_version, 0,true]);
641
+ /* 57 */ this.send({type: 'deactivate'});
642
+ /* 58 */ },
643
+ /* 59 */
644
+ /* 60 */ track_error: function(data){
645
+ /* 61 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin', 'Error', data.msg,null,true]);
646
+ /* 62 */ this.send({type: 'error', label: data.msg});
647
+ /* 63 */ }
648
+ /* 64 */
649
+ /* 65 */ });
650
  /* 66 */
651
+ /* 67 */ }(jQuery));
652
+ /* 68 */
653
+ /* 69 */
654
+ /* 70 */
655
 
656
  ;
657
  /* appView.js */
659
  /* 1 */ (function($) {
660
  /* 2 */ SidekickWP.Views.App = Backbone.View.extend({
661
  /* 3 */ initialize: function(){
662
+ /* 4 */ SidekickWP.Events.on('toggle_sidekick_drawer', this.toggle_sidekick_drawer, this);
663
+ /* 5 */ SidekickWP.Events.on('close_sidekick_drawer', this.close_sidekick_drawer, this);
664
+ /* 6 */ SidekickWP.Events.on('open_sidekick_drawer', this.open_sidekick_drawer, this);
665
+ /* 7 */ SidekickWP.Events.on('resize_sidekick_drawer', this.resize_sidekick_drawer, this);
666
+ /* 8 */ SidekickWP.Events.on('toggle_hotspots', this.toggle_hotspots, this);
667
+ /* 9 */ SidekickWP.Events.on('toggle_preferences', this.toggle_preferences, this);
668
+ /* 10 */
669
+ /* 11 */
670
+ /* 12 */ Sidekick.Events.on('track_play',this.toggle_sidekick_drawer,'hide');
671
+ /* 13 */ Sidekick.Events.on('track_stop',this.show_sidekick_drawer);
672
+ /* 14 */
673
  /* 15 */ return this.render();
674
  /* 16 */ },
675
  /* 17 */
676
  /* 18 */ render: function(){
677
+ /* 19 */ console.groupEnd('%crender: SidekickWP: appView %o', 'color:#8fa2ff', this);
678
  /* 20 */
679
+ /* 21 */ this.BucketContainer = new SidekickWP.Models.BucketContainer({
680
+ /* 22 */ full_library: this.model.get('full_library'),
681
+ /* 23 */ library_filtered_walkthroughs: this.model.get('library_filtered_walkthroughs'),
682
+ /* 24 */ library_filtered_buckets: this.model.get('library_filtered_buckets'),
683
+ /* 25 */ library_filtered_sub_buckets: this.model.get('library_filtered_sub_buckets'),
684
+ /* 26 */ library_filtered_walkthroughs_by_bucket: this.model.get('library_filtered_walkthroughs_by_bucket'),
685
+ /* 27 */ bucket_counts: this.model.get('bucket_counts')
686
+ /* 28 */ });
687
+ /* 29 */
688
+ /* 30 */ if (_.size(this.model.get('library_filtered_walkthroughs')) > 0) {
689
+ /* 31 */ BucketContainer = this.BucketContainer.view.render().$el.html();
690
+ /* 32 */ } else {
691
+ /* 33 */ BucketContainer = '<div class="warning">No walkthroughs found for ' + sk_main_soft_name + ' ' + sk_main_soft_version + '</div>';
692
+ /* 34 */ SidekickWP.Events.trigger('show_msg',{title: "No Walkthroughs", msg: "We're sorry but it looks like there are no walkthroughs compatible with your version of software."},this.model);
693
+ /* 35 */ }
694
+ /* 36 */
695
+ /* 37 */ var template = _.template( SidekickWP.Templates.App, {
696
+ /* 38 */ BucketContainer: BucketContainer,
697
+ /* 39 */ hotspots: $.cookie('sidekick_hotspots')
698
+ /* 40 */ });
699
+ /* 41 */ this.$el.append( template );
700
+ /* 42 */
701
+ /* 43 */ // this.remove_empty_buckets();
702
+ /* 44 */
703
+ /* 45 */ if (!this.model.get('show_toggle_feedback'))
704
+ /* 46 */ $('#sk_taskbar #toggle_feedback').hide();
705
+ /* 47 */
706
+ /* 48 */ SidekickWP.Events.trigger('rendered');
707
+ /* 49 */ Sidekick.Events.trigger('bind_controls');
708
  /* 50 */
709
 
710
  /* appView.js */
711
 
712
+ /* 51 */ // this.toggle_sidekick_window();
713
+ /* 52 */ this.show_hotspots();
714
+ /* 53 */
715
+ /* 54 */ $(window).resize(_.debounce(function(){
716
+ /* 55 */ SidekickWP.Events.trigger('resize_sidekick_drawer');
717
+ /* 56 */ },500));
718
  /* 57 */
719
+ /* 58 */ console.groupEnd();
720
+ /* 59 */ return this;
721
+ /* 60 */ },
722
+ /* 61 */
723
+ /* 62 */ events: {
724
+ /* 63 */ "click #logo,.sk_toggle": "toggle_sidekick_window",
725
+ /* 64 */ "click #toggle_drawer": "toggle_sidekick_drawer",
726
+ /* 65 */ "click #toggle_hotspots": "toggle_hotspots",
727
+ /* 66 */ "click #toggle_preferences": "toggle_preferences",
728
+ /* 67 */ "click #toggle_feedback": "show_feedback",
729
+ /* 68 */ "click #close_sidekick": "close_sidekick_window"
730
+ /* 69 */ },
731
+ /* 70 */
732
+ /* 71 */ goto_config: function(){
733
+ /* 72 */ // console.log('goto_config');
734
+ /* 73 */ window.open('/wp-admin/admin.php?page=sidekick','_self');
735
+ /* 74 */ },
736
+ /* 75 */
737
+ /* 76 */ show_feedback: function(){
738
+ /* 77 */ console.log('show_feedback');
739
+ /* 78 */ Sidekick.Events.trigger('show_modal',{title:'Feedback',message: 'Send us some feedback!',primary_button_message: 'Send',secondary_button_message:'Cancel',email:sk_user_email});
740
+ /* 79 */ },
741
+ /* 80 */
742
+ /* 81 */ resize_sidekick_drawer: function(){
743
+ /* 82 */ console.log('resize_sidekick_drawer %o', $('#sk_drawer').height());
744
+ /* 83 */
745
+ /* 84 */ if ($('#sidekick').hasClass('open')) {
746
+ /* 85 */ if ($('#sk_drawer').height() > 0) {
747
+ /* 86 */ $('div#sidekick #toggle_drawer').addClass('on');
748
+ /* 87 */ $('#sk_drawer').css({
749
+ /* 88 */ height: $('body').height() - 80,
750
+ /* 89 */ transition: 'all 0.3s ease-in-out'
751
+ /* 90 */ });
752
+ /* 91 */ $('#sk_drawer .sk_bucketContainer').css({
753
+ /* 92 */ height: $('body').height() - 56 - 40,
754
+ /* 93 */ transition: 'all 0.3s ease-in-out'
755
+ /* 94 */ });
756
+ /* 95 */ $('#sk_drawer .sub_bucket').css({
757
+ /* 96 */ maxHeight: $('body').height() - 137,
758
+ /* 97 */ transition: 'all 0.3s ease-in-out'
759
+ /* 98 */ });
760
+ /* 99 */ }
761
+ /* 100 */ } else {
762
 
763
  /* appView.js */
764
 
765
+ /* 101 */ $('#sk_drawer').height(0);
766
+ /* 102 */ }
767
+ /* 103 */ },
768
  /* 104 */
769
+ /* 105 */ show_sidekick_drawer: function(){
770
+ /* 106 */ $('div#sidekick').addClass('open');
771
+ /* 107 */ if ($('#sk_drawer').height() === 0) {
772
+ /* 108 */ $('div#sidekick #toggle_drawer').addClass('on');
773
+ /* 109 */ $('#sk_drawer').css({
774
+ /* 110 */ height: $('body').height() - 80,
775
+ /* 111 */ transition: 'all 0.3s ease-in-out'
776
+ /* 112 */ });
777
+ /* 113 */ $('#sk_drawer .sk_bucketContainer').css({
778
+ /* 114 */ height: $('body').height() - 56 - 40,
779
+ /* 115 */ transition: 'all 0.3s ease-in-out'
780
+ /* 116 */ });
781
+ /* 117 */ $('#sk_drawer .sub_bucket').css({
782
+ /* 118 */ maxHeight: $('body').height() - 137,
783
+ /* 119 */ transition: 'all 0.3s ease-in-out'
784
+ /* 120 */ });
785
+ /* 121 */ }
786
+ /* 122 */ },
787
  /* 123 */
788
+ /* 124 */ toggle_preferences: function(){
789
+ /* 125 */ window.open(sk_plugin_url,'_self');
790
+ /* 126 */ },
791
+ /* 127 */
792
+ /* 128 */ toggle_sidekick_drawer: function(force){
793
+ /* 129 */ console.log('toggle_sidekick_drawer %o | %o | %o', force,$('#sk_drawer').height(),$('#sidekick').hasClass('open'));
794
+ /* 130 */
795
+ /* 131 */ if ($('#sk_drawer').height() > 0 || force == 'hide' || !$('#sidekick').hasClass('open')) {
796
+ /* 132 */ SidekickWP.Events.trigger('close_sidekick_drawer');
797
+ /* 133 */ } else {
798
+ /* 134 */ SidekickWP.Events.trigger('open_sidekick_drawer');
799
+ /* 135 */ }
800
+ /* 136 */ },
801
+ /* 137 */
802
+ /* 138 */ close_sidekick_drawer: function(){
803
+ /* 139 */ console.log('Closing Drawer');
804
+ /* 140 */ $('div#sidekick #toggle_drawer').removeClass('on');
805
+ /* 141 */ $('#sk_drawer').css({
806
+ /* 142 */ height: 0,
807
+ /* 143 */ transition: 'height 0.3s ease-in-out'
808
+ /* 144 */ });
809
+ /* 145 */ $('#sk_drawer .sk_bucketContainer').css({
810
+ /* 146 */ height: 0,
811
+ /* 147 */ transition: 'height 0.3s ease-in-out'
812
+ /* 148 */ });
813
+ /* 149 */ },
814
+ /* 150 */
815
 
816
  /* appView.js */
817
 
818
+ /* 151 */ open_sidekick_drawer: function(){
819
+ /* 152 */ console.log('Showing Drawer');
820
+ /* 153 */ $('div#sidekick #toggle_drawer').addClass('on');
821
+ /* 154 */ $('#sk_drawer').css({
822
+ /* 155 */ height: $('body').height() - 80,
823
+ /* 156 */ transition: 'height 0.3s ease-in-out'
824
+ /* 157 */ });
825
+ /* 158 */ $('#sk_drawer .sk_bucketContainer').css({
826
+ /* 159 */ height: $('body').height() - 56 - 40,
827
+ /* 160 */ transition: 'height 0.3s ease-in-out'
828
+ /* 161 */ });
829
+ /* 162 */ },
830
+ /* 163 */
831
+ /* 164 */ toggle_sidekick_window: function(e){
832
+ /* 165 */ console.log('toggle_sidekick_window');
833
+ /* 166 */
834
+ /* 167 */ SidekickWP.Events.trigger('track_toggle_sidekick_window');
835
  /* 168 */
836
+ /* 169 */ if ($('div#sidekick').hasClass('open')) {
837
+ /* 170 */ console.log('Closing Sidekick Window');
838
+ /* 171 */ SidekickWP.Events.trigger('close_sidekick_drawer');
839
+ /* 172 */ $('div#sidekick').wait(500).removeClass('open');
840
+ /* 173 */ } else {
841
+ /* 174 */ console.log('Showing Sidekick Window');
842
+ /* 175 */ $('div#sidekick').addClass('open').wait(500,function(e){
843
+ /* 176 */ SidekickWP.Events.trigger('open_sidekick_drawer');
844
+ /* 177 */ });
845
+ /* 178 */ }
846
+ /* 179 */ },
847
  /* 180 */
848
+ /* 181 */ close_sidekick_window: function(e){
849
+ /* 182 */ console.log('close_sidekick_window');
850
+ /* 183 */ if ($('div#sidekick').hasClass('open')) {
851
+ /* 184 */ SidekickWP.Events.trigger('toggle_sidekick_drawer');
852
+ /* 185 */ $('div#sidekick').wait(500).removeClass('open');
853
+ /* 186 */ }
854
+ /* 187 */ },
855
+ /* 188 */
856
+ /* 189 */ toggle_hotspots: function(){
857
+ /* 190 */ console.log('toggle_hotspots');
858
+ /* 191 */ if ($('#toggle_hotspots').hasClass('on')) {
859
+ /* 192 */ console.log('Turning off hotspots');
860
+ /* 193 */ $('#toggle_hotspots').removeClass('on');
861
+ /* 194 */ $.cookie('sidekick_hotspots', 0, { expires: 365, path: '/' });
862
+ /* 195 */ $('.sk_hotspot').parent().remove();
863
+ /* 196 */ } else {
864
+ /* 197 */ console.log('Turning on hotspots');
865
+ /* 198 */ $('#toggle_hotspots').addClass('on');
866
+ /* 199 */ $.cookie('sidekick_hotspots', 1, { expires: 365, path: '/' });
867
+ /* 200 */ this.show_hotspots();
868
+
869
+ /* appView.js */
870
+
871
+ /* 201 */ }
872
+ /* 202 */ },
873
+ /* 203 */
874
+ /* 204 */ show_hotspots: function(){
875
+ /* 205 */ var hotspots = this.model.get('library_filtered_hotspots');
876
+ /* 206 */ var url = window.location.toString();
877
+ /* 207 */ var show_hotspots = $.cookie('sidekick_hotspots');
878
+ /* 208 */ // console.log('show_hotspots %o', show_hotspots);
879
+ /* 209 */ // console.log('show_hotspots === true %o', show_hotspots === true);
880
+ /* 210 */
881
+ /* 211 */ var count = 0;
882
+ /* 212 */ for(var hotspot in hotspots){
883
+ /* 213 */ var hotspot_data = hotspots[hotspot];
884
+ /* 214 */
885
+ /* 215 */ if (url.indexOf(hotspot_data.url) > -1) {
886
+ /* 216 */ var selectors = hotspot_data.selector;
887
+ /* 217 */
888
+ /* 218 */ if ($(selectors).length == 1 && $(selectors).is(':visible')) {
889
+ /* 219 */ // console.log('hotspot selectors-1 %o', selectors);
890
+ /* 220 */ count++;
891
+ /* 221 */ } else if ($(selectors).length > 1){
892
+ /* 222 */ _.each($(selectors),function(item,key){
893
+ /* 223 */ if ($(item).length && $(item).is(':visible')) {
894
+ /* 224 */ // console.log('hotspot selectors-2 %o', item);
895
+ /* 225 */ count++;
896
+ /* 226 */ }
897
+ /* 227 */ });
898
+ /* 228 */ }
899
+ /* 229 */ }
900
+ /* 230 */ }
901
+ /* 231 */
902
+ /* 232 */ if (count > 0) {
903
+ /* 233 */ $('#sidekick #toggle_hotspots').html(count).show();
904
+ /* 234 */ } else {
905
+ /* 235 */ $('#sidekick #toggle_hotspots').html(count).hide();
906
+ /* 236 */ }
907
+ /* 237 */
908
+ /* 238 */ if (show_hotspots === '1' || typeof show_hotspots === 'undefined') { // User unspecified default is on
909
+ /* 239 */ var selector_x = 'left';
910
+ /* 240 */ var selector_y = 'top';
911
+ /* 241 */ var hotspot_x = 'right';
912
+ /* 242 */ var hotspot_y = 'top';
913
+ /* 243 */ var hotspot_y_padding = '0';
914
+ /* 244 */ var hotspot_x_padding = '0';
915
+ /* 245 */
916
+ /* 246 */
917
+ /* 247 */ for(var hotspot in hotspots){
918
+ /* 248 */ var hotspot_data = hotspots[hotspot];
919
+ /* 249 */
920
+ /* 250 */ if (url.indexOf(hotspot_data.url) > -1) {
921
+
922
+ /* appView.js */
923
+
924
+ /* 251 */ var selectors = hotspot_data.selector;
925
+ /* 252 */ if ($(selectors).length == 1) {
926
+ /* 253 */ console.log('%cAttaching Single Hotspot %o -> (%o)','color: #64c541','sk_hotspot_' + hotspot, selectors);
927
+ /* 254 */ $('body').append('<a href="javascript: sidekick.play(' + hotspot_data.id + ')"><div class="sk_hotspot sk_hotspot_' + hotspot + '" data-target="' + selectors + '"></div></a>');
928
+ /* 255 */
929
+ /* 256 */ console.log('selector_x + " " + selector_y %o', selector_x + " " + selector_y);
930
+ /* 257 */ console.log('hotspot_x + hotspot_x_padding + " " + hotspot_y + hotspot_y_padding %o', hotspot_x + hotspot_x_padding + " " + hotspot_y + hotspot_y_padding);
931
+ /* 258 */
932
+ /* 259 */
933
+ /* 260 */ $('.sk_hotspot_' + hotspot).position({
934
+ /* 261 */ at: selector_x + " " + selector_y,
935
+ /* 262 */ my: hotspot_x + hotspot_x_padding + " " + hotspot_y + hotspot_y_padding,
936
+ /* 263 */ of: $(selectors)
937
+ /* 264 */ });
938
+ /* 265 */ $('.sk_hotspot').wait(200*count).addClass('visible');
939
+ /* 266 */ } else if ($(selectors).length > 1){
940
+ /* 267 */ _.each($(selectors),function(item,key){
941
+ /* 268 */ $('body').append('<a href="javascript: sidekick.play(' + hotspot_data.id + ')"><div class="sk_hotspot sk_hotspot_' + hotspot + '_' + key + '" data-target="' + item + '"></div></a>');
942
+ /* 269 */ console.log('%cAttaching Hotspot #o %o (%o)','color: #64c541',key,'sk_hotspot_' + hotspot + '_' + key, $('.sk_hotspot_' + hotspot + '_' + key));
943
+ /* 270 */
944
+ /* 271 */ $('.sk_hotspot_' + hotspot + '_' + key).position({
945
+ /* 272 */ at: selector_x + " " + selector_y,
946
+ /* 273 */ my: hotspot_x + hotspot_x_padding + " " + hotspot_y + hotspot_y_padding,
947
+ /* 274 */ // my: hotspot_x + " " + hotspot_y,
948
+ /* 275 */ of: item
949
+ /* 276 */ });
950
+ /* 277 */ $('.sk_hotspot').wait(200*count).addClass('visible');
951
+ /* 278 */ });
952
+ /* 279 */ } else {
953
+ /* 280 */ msg = "Couldn't attach a hotspot to selector (" + selectors + ")";
954
+ /* 281 */ Sidekick.Events.trigger('track_error',{model: this, msg: msg});
955
+ /* 282 */ console.error(msg);
956
+ /* 283 */ }
957
+ /* 284 */ }
958
+ /* 285 */ }
959
+ /* 286 */
960
+ /* 287 */ };
961
+ /* 288 */
962
+ /* 289 */
963
+ /* 290 */ }
964
+ /* 291 */ });
965
+ /* 292 */
966
+ /* 293 */ }(jQuery));
967
+ /* 294 */
968
+ /* 295 */
969
+ /* 296 */
970
+ /* 297 */
971
 
972
  ;
973
  /* bucketContainerView.js */
974
 
975
  /* 1 */ (function($) {
976
  /* 2 */ SidekickWP.Views.BucketContainer = Backbone.View.extend({
977
+ /* 3 */
978
+ /* 4 */ initialize: function(models,options){
979
+ /* 5 */ SidekickWP.Events.on('rendered', this.setup_events, this);
980
+ /* 6 */ return this;
981
+ /* 7 */ },
982
+ /* 8 */
983
+ /* 9 */ render: function(){
984
+ /* 10 */ console.group('%crender: render: bucketContainerView %o', 'color:#8fa2ff', this);
985
  /* 11 */
986
+ /* 12 */ SidekickWP.Events.trigger('track_explore',{what:'Bucket - ' + this.model.get('title') });
987
+ /* 13 */
988
+ /* 14 */ this.bucket = new SidekickWP.Models.Bucket({
989
+ /* 15 */ title: this.model.get('title'),
990
+ /* 16 */ full_library: this.model.get('full_library'),
991
+ /* 17 */ library_filtered_walkthroughs: this.model.get('library_filtered_walkthroughs'),
992
+ /* 18 */ library_filtered_buckets: this.model.get('library_filtered_buckets'),
993
+ /* 19 */ library_filtered_sub_buckets: this.model.get('library_filtered_sub_buckets'),
994
+ /* 20 */ library_filtered_walkthroughs_by_bucket: this.model.get('library_filtered_walkthroughs_by_bucket'),
995
+ /* 21 */ bucket_counts: this.model.get('bucket_counts')
996
+ /* 22 */ });
997
+ /* 23 */ this.$el.append(this.bucket.view.render().el);
998
+ /* 24 */ console.groupEnd();
999
+ /* 25 */ return this;
1000
+ /* 26 */ },
1001
+ /* 27 */
1002
+ /* 28 */ clicked_bucket: function(e){
1003
+ /* 29 */ console.log('clicked_bucket',e);
1004
  /* 30 */
1005
+ /* 31 */ var navigation_history = this.model.get('navigation_history');
1006
+ /* 32 */
1007
+ /* 33 */ if ($(e).hasClass('goprev')) {
1008
+ /* 34 */ $('.show').removeClass('show');
1009
+ /* 35 */ navigation_history.pop();
1010
+ /* 36 */ var goto_bucket = navigation_history[navigation_history.length-1];
1011
+ /* 37 */ if (goto_bucket == 'buckets') {
1012
+ /* 38 */ $('[data-bucket_id="' + goto_bucket + '"]').removeClass('hide').addClass('show');
1013
+ /* 39 */ } else {
1014
+ /* 40 */ $('ul.sub_bucket[data-bucket_id="' + goto_bucket + '"]').removeClass('hide').addClass('show');
1015
+ /* 41 */ }
1016
+ /* 42 */
1017
+ /* 43 */ } else if ($(e).data('open_bucket')){
1018
+ /* 44 */ console.log('Showing Bucket %o',$(e).data('open_bucket'));
1019
+ /* 45 */ $(e).parent().removeClass('show').addClass('hide');
1020
+ /* 46 */ $('ul.sub_bucket[data-bucket_id="' + $(e).data('open_bucket') + '"]').addClass('show');
1021
+ /* 47 */ navigation_history.push($(e).data('open_bucket'));
1022
+ /* 48 */ } else {
1023
+ /* 49 */ console.log('Showing Walkthroughs %o',$(e).data('open_walkthroughs'));
1024
+ /* 50 */ $(e).parent().removeClass('show').addClass('hide');
1025
 
1026
  /* bucketContainerView.js */
1027
 
1028
+ /* 51 */ $('ul.walkthrough[data-bucket_id="' + $(e).data('open_walkthroughs') + '"]').addClass('show');
1029
+ /* 52 */ navigation_history.push($(e).data('open_bucket'));
1030
+ /* 53 */ }
1031
+ /* 54 */ console.log('navigation_history %o', navigation_history);
1032
+ /* 55 */ this.model.set('navigation_history',navigation_history);
1033
+ /* 56 */ },
1034
+ /* 57 */
1035
+ /* 58 */ setup_events: function(){
1036
+ /* 59 */ $('.heading').unbind('click').click({context:this},function(e){
1037
+ /* 60 */ console.log('click');
1038
+ /* 61 */ e.data.context.clicked_bucket(this);
1039
+ /* 62 */ });
1040
  /* 63 */
1041
+ /* 64 */ $('a.sidekick_play_walkthrough').unbind('click').click({context:this},function(e){
1042
+ /* 65 */ SidekickWP.Events.trigger('close_sidekick_window');
1043
+ /* 66 */ });
1044
+ /* 67 */ // SidekickWP.Helpers.preventScrolling();
1045
+ /* 68 */ }
1046
+ /* 69 */ });
1047
+ /* 70 */
1048
+ /* 71 */ }(jQuery));
1049
+ /* 72 */
1050
  /* 73 */
 
 
 
 
 
 
 
1051
 
1052
  ;
1053
  /* bucketView.js */
1065
  /* 11 */ SidekickWP.Events.trigger('track_explore',{what:'Bucket' });
1066
  /* 12 */
1067
  /* 13 */ var variables = {
1068
+ /* 14 */ full_library: this.model.get('full_library'),
1069
+ /* 15 */ library_filtered_buckets: this.model.get('library_filtered_buckets'),
1070
+ /* 16 */ library_filtered_walkthroughs: this.model.get('library_filtered_walkthroughs'),
1071
+ /* 17 */ library_filtered_sub_buckets: this.model.get('library_filtered_sub_buckets'),
1072
+ /* 18 */ library_filtered_walkthroughs_by_bucket: this.model.get('library_filtered_walkthroughs_by_bucket'),
1073
+ /* 19 */ bucket_counts: this.model.get('bucket_counts'),
1074
+ /* 20 */ sk_plugin_url: sk_plugin_url
1075
+ /* 21 */ };
1076
+ /* 22 */
1077
+ /* 23 */ console.log('variables %o', variables);
1078
+ /* 24 */
1079
+ /* 25 */ var template = _.template( SidekickWP.Templates.Bucket, variables );
1080
+ /* 26 */ this.$el.append(template);
1081
+ /* 27 */ console.groupEnd();
1082
+ /* 28 */ return this;
1083
+ /* 29 */ }
1084
+ /* 30 */ });
1085
+ /* 31 */
1086
+ /* 32 */ }(jQuery));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1087
 
1088
  ;
1089
  /* messageView.js */
1108
  /* 18 */ var template = _.template( SidekickWP.Templates.Message, variables );
1109
  /* 19 */
1110
  /* 20 */ this.$el.append( template );
1111
+ /* 21 */ // SidekickWP.Helpers.preventScrolling();
1112
+ /* 22 */ // SidekickWP.Events.trigger('show_next_pane');
1113
  /* 23 */
1114
+ /* 24 */ // $('div#sidekick .prev_window').removeClass('prev_window');
1115
+ /* 25 */ // $('div#sidekick #main_menu').addClass('prev_window');
1116
+ /* 26 */ // $('div#sidekick ul.main>li').not('#main_menu,#review').remove();
1117
  /* 27 */
1118
  /* 28 */ return this;
1119
  /* 29 */ }
1148
  /* 21 */ console.log('template %o', template);
1149
  /* 22 */
1150
  /* 23 */ this.$el.append( template );
1151
+ /* 24 */ // SidekickWP.Helpers.preventScrolling();
1152
+ /* 25 */ // SidekickWP.Events.trigger('show_next_pane');
1153
  /* 26 */
1154
+ /* 27 */ // $('div#sidekick .prev_window').removeClass('prev_window');
1155
+ /* 28 */ // $('div#sidekick #main_menu').addClass('prev_window');
1156
+ /* 29 */ // $('div#sidekick ul.main>li').not('#main_menu,#review').remove();
1157
  /* 30 */
1158
  /* 31 */ return this;
1159
  /* 32 */ },
1166
  /* 39 */ setup_events: function(){
1167
  /* 40 */ var group_id = this.model.get('id');
1168
  /* 41 */
1169
+ /* 42 */ $('div#sidekick .review h2 button.goback, #sidekick .review input[type="button"]').unbind('click').click({context:this},function(e){
1170
  /* 43 */ console.log('click goback/button');
1171
  /* 44 */ SidekickWP.Events.trigger('show_main_pane');
1172
  /* 45 */ });
1173
  /* 46 */
1174
+ /* 47 */ $('div#sidekick .review .rate span').unbind('hover').hover(function(){
1175
  /* 48 */ $(this).addClass('hover')
1176
  /* 49 */ .prevAll().addClass('hover');
1177
  /* 50 */ },function(){
1178
 
1179
  /* reviewView.js */
1180
 
1181
+ /* 51 */ $('div#sidekick .review .rate span').removeClass('hover');
1182
  /* 52 */ });
1183
  /* 53 */
1184
+ /* 54 */ $('div#sidekick .review .rate span').unbind('click').click = this.rate;
1185
  /* 55 */
1186
+ /* 56 */ $('div#sidekick .review textarea').unbind('click').click(function(){
1187
  /* 57 */ if(!$(this).hasClass('clicked')){
1188
  /* 58 */ $(this).addClass('clicked')
1189
  /* 59 */ .val('');
1194
  /* 64 */ submit: function(){
1195
  /* 65 */ var data = {
1196
  /* 66 */ walkthrough_title: this.model.get('walkthrough_title'),
1197
+ /* 67 */ value: $('div#sidekick textarea[name="comment"]').val(),
1198
  /* 68 */ license: sk_license_key
1199
  /* 69 */ };
1200
  /* 70 */
1205
  /* 75 */ dataType: 'json'
1206
  /* 76 */ }).done(function(data,e){
1207
  /* 77 */ console.log('Saved Comment');
1208
+ /* 78 */ $('div#sidekick textarea').html('Thank You!');
1209
+ /* 79 */ $('div#sidekick .review input[type="submit"]').val('Sent!');
1210
  /* 80 */ setTimeout(SidekickWP.Events.trigger('show_main_pane'),3000);
1211
  /* 81 */ }).error(function(e){
1212
  /* 82 */ console.error('Comment Save error (%o)',e);
1223
  /* 93 */ $(e.currentTarget).addClass('saved')
1224
  /* 94 */ .prevAll().addClass('saved');
1225
  /* 95 */
1226
+ /* 96 */ $('div#sidekick .rate span').unbind('mouseenter mouseleave click').css({cursor: 'default'});
1227
  /* 97 */
1228
  /* 98 */ $.ajax({
1229
  /* 99 */ url: 'http://www.wpuniversity.com/wp-admin/admin-ajax.php?action=wpu_add_rating',
1235
  /* 102 */ dataType: 'json'
1236
  /* 103 */ }).done(function(data,e){
1237
  /* 104 */ console.log('Saved Rating');
1238
+ /* 105 */ $('div#sidekick .hover').addClass('saved');
1239
  /* 106 */
1240
  /* 107 */ }).error(function(e){
1241
  /* 108 */ console.error('Rating Save error (%o)',e);
1250
  ;
1251
  /* templates.js */
1252
 
1253
+ /* 1 */ _.templateSettings.interpolate = /\{\{(.*?)\}\}/;
1254
+ /* 2 */
1255
+ /* 3 */ SidekickWP.Templates.App = [
1256
+ /* 4 */ "<div id='sidekick' class='sidekick_player'>",
1257
+ /* 5 */ "<div id='sk_taskbar'>",
1258
+ /* 6 */ "<div id='logo'></div>",
1259
+ /* 7 */ "<button class='sk_toggle'></button>",
1260
+ /* 8 */ "<div class='sk_controls'>",
1261
+ /* 9 */ "<button class='sidekick_restart'></button>",
1262
+ /* 10 */ "<button class='sidekick_play_pause'></button>",
1263
+ /* 11 */ "<button class='sidekick_stop'></button>",
1264
+ /* 12 */ "</div>",
1265
+ /* 13 */ "<div class='sk_toggles'>",
1266
+ /* 14 */ // "<% console.log('hotspots %o',hotspots);%>",
1267
+ /* 15 */ "<button id='toggle_hotspots' <% if (hotspots === '1' || typeof hotspots === 'undefined'){%>class='on'<% } %> alt='Number of hotspots'>0</button>",
1268
+ /* 16 */ "<button id='toggle_feedback'></button>",
1269
+ /* 17 */ "<button id='toggle_preferences'></button>",
1270
+ /* 18 */ "<button id='toggle_drawer'><i></i></button>",
1271
+ /* 19 */ "</div>",
1272
+ /* 20 */ "<div class='sk_info'>",
1273
+ /* 21 */ "<div class='sk_time'>0:00/0:00</div>",
1274
+ /* 22 */ "<div class='sk_title'><label>Now Playing</label><span class='sk_walkthrough_title'></span></div>",
1275
+ /* 23 */ "</div>",
1276
+ /* 24 */ "</div>",
1277
+ /* 25 */ "<div id='sk_drawer'>",
1278
+ /* 26 */ "<h2>Walkthroughs<button id='close_sidekick'></button></h2>",
1279
+ /* 27 */ "<ul class='sk_bucketContainer'>",
1280
+ /* 28 */ "<% print(BucketContainer) %>",
1281
+ /* 29 */ "</ul>",
1282
+ /* 30 */ "</div>",
1283
+ /* 31 */ "</div>"
1284
+ /* 32 */ ].join("");
1285
+ /* 33 */
1286
+ /* 34 */ SidekickWP.Templates.Bucket = [
1287
+ /* 35 */ "<ul class='buckets' data-bucket_id='buckets'>",
1288
+ /* 36 */ "<% _.each(full_library.buckets, function(bucket_data, bucket_title){ %>",
1289
+ /* 37 */ // "<% console.log('primary bucket %o(%o) %o',bucket_title,bucket_data.id,bucket_data);%>",
1290
+ /* 38 */ "<li class='heading bucket_heading' <% if (bucket_data.sub_buckets){ %> data-open_bucket='<% print(bucket_data.id) %>' <% } else { %> data-open_walkthroughs='<% print(bucket_data.id) %>' <% } %> ><span><% print(bucket_title) %></span><i></i></li>",
1291
+ /* 39 */ "<% }); %>",
1292
+ /* 40 */ "</ul>",
1293
+ /* 41 */
1294
+ /* 42 */ "<% var already_done = []; %>",
1295
+ /* 43 */
1296
+ /* 44 */ "<ul class='sub_buckets'>",
1297
+ /* 45 */ "<% _.each(full_library.buckets, function(bucket_data,bucket_title){ %>",
1298
+ /* 46 */ // "<% console.log('level-1(%s) %o %o',bucket_data.id,bucket_title,bucket_data);%>",
1299
+ /* 47 */ "<ul class='sub_bucket' data-bucket_id='<% print(bucket_data.id) %>'>",
1300
+ /* 48 */ "<% already_done[bucket_data.id] = true; %>",
1301
+ /* 49 */ "<li class='heading goprev'><span><% print(bucket_title) %></span><i></i></li>",
1302
+ /* 50 */ "<% _.each(bucket_data.sub_buckets, function(sub_bucket_data){ %>",
1303
 
1304
  /* templates.js */
1305
 
1306
+ /* 51 */ // "<% console.log('sub-bucket(%s) %o %o',sub_bucket_data.id,full_library.all_buckets_by_id[sub_bucket_data.id],sub_bucket_data);%>",
1307
+ /* 52 */ "<li class='heading sub_bucket_heading level1a' <% if (sub_bucket_data.sub_buckets){ %> data-open_bucket='<% print(sub_bucket_data.id) %>' <% } else { %> data-open_walkthroughs='<% print(sub_bucket_data.id) %>' <% } %>><span><% print(full_library.all_buckets_by_id[sub_bucket_data.id]) %></span><i></i></li>",
1308
+ /* 53 */ "<% }); %>",
1309
+ /* 54 */ "</ul>",
1310
+ /* 55 */ "<% }); %>",
1311
+ /* 56 */
1312
+ /* 57 */ "<% _.each(full_library.buckets, function(bucket_data,bucket_title){ %>",
1313
+ /* 58 */ "<% _.each(bucket_data.sub_buckets, function(sub_bucket_data){ %>",
1314
+ /* 59 */ "<% if (sub_bucket_data.sub_buckets && !already_done[sub_bucket_data.id]) { %>",
1315
+ /* 60 */ // "<% console.log('level-2(%s) %o %o',sub_bucket_data.id,full_library.all_buckets_by_id[sub_bucket_data.id],sub_bucket_data);%>",
1316
+ /* 61 */ "<% already_done[sub_bucket_data.id] = true; %>",
1317
+ /* 62 */ "<ul class='sub_bucket sub_sub_bucket' data-bucket_id='<% print(sub_bucket_data.id) %>'>",
1318
+ /* 63 */ "<li class='heading goprev'><span><% print(full_library.all_buckets_by_id[sub_bucket_data.id]) %></span><i></i></li>",
1319
+ /* 64 */ "<% _.each(sub_bucket_data.sub_buckets, function(sub_sub_bucket_data){ %>",
1320
+ /* 65 */ // "<% console.log('sub-bucket-2(%s) %o %o',sub_sub_bucket_data.id,full_library.all_buckets_by_id[sub_sub_bucket_data.id],sub_sub_bucket_data);%>",
1321
+ /* 66 */ "<li class='heading sub_bucket_heading level1b' <% if (sub_sub_bucket_data.sub_buckets){ %> data-open_bucket='<% print(sub_sub_bucket_data.id) %>' <% } else { %> data-open_walkthroughs='<% print(sub_sub_bucket_data.id) %>' <% } %> ><span><% print(full_library.all_buckets_by_id[sub_sub_bucket_data.id]) %></span><i></i></li>",
1322
+ /* 67 */ "<% }); %>",
1323
+ /* 68 */ "</ul>",
1324
+ /* 69 */ "<% } %>",
1325
+ /* 70 */ "<% }); %>",
1326
+ /* 71 */ "<% }); %>",
1327
+ /* 72 */
1328
+ /* 73 */ "<% _.each(full_library.buckets, function(bucket_data,bucket_title){ %>",
1329
+ /* 74 */ "<% _.each(bucket_data.sub_buckets, function(sub_bucket_data){ %>",
1330
+ /* 75 */ "<% _.each(sub_bucket_data.sub_buckets, function(sub_sub_bucket_data){ %>",
1331
+ /* 76 */ "<% if (sub_sub_bucket_data.sub_buckets && !already_done[sub_sub_bucket_data.id]) { %>",
1332
+ /* 77 */ // "<% console.log('level-3(%s) %o %o',sub_sub_bucket_data.id,full_library.all_buckets_by_id[sub_sub_bucket_data.id],sub_sub_bucket_data);%>",
1333
+ /* 78 */ "<ul class='sub_bucket sub_sub_bucket' data-bucket_id='<% print(sub_sub_bucket_data.id) %>'>",
1334
+ /* 79 */ "<li class='heading goprev'><span><% print(full_library.all_buckets_by_id[sub_sub_bucket_data.id]) %></span><i></i></li>",
1335
+ /* 80 */ "<% _.each(sub_sub_bucket_data.sub_buckets, function(sub_sub_sub_bucket_data){ %>",
1336
+ /* 81 */ // "<% console.log('sub-bucket-3(%s) %o %o',sub_sub_sub_bucket_data.id,full_library.all_buckets_by_id[sub_sub_sub_bucket_data.id],sub_sub_sub_bucket_data);%>",
1337
+ /* 82 */ "<li class='heading sub_bucket_heading level1b' <% if (sub_sub_sub_bucket_data.sub_buckets){ %> data-open_bucket='<% print(sub_sub_sub_bucket_data.id) %>' <% } else { %> data-open_walkthroughs='<% print(sub_sub_sub_bucket_data.id) %>' <% } %> ><span><% print(full_library.all_buckets_by_id[sub_sub_sub_bucket_data.id]) %></span><i></i></li>",
1338
+ /* 83 */ "<% }); %>",
1339
+ /* 84 */ "</ul>",
1340
+ /* 85 */ "<% } %>",
1341
+ /* 86 */ "<% }); %>",
1342
+ /* 87 */ "<% }); %>",
1343
+ /* 88 */ "<% }); %>",
1344
+ /* 89 */ "</ul>",
1345
+ /* 90 */
1346
+ /* 91 */ "<ul class='walkthroughs'>",
1347
+ /* 92 */ "<% _.each(library_filtered_walkthroughs_by_bucket, function(bucket_data, bucket_id){ %>",
1348
+ /* 93 */ // "<% console.log('bucket_data %o',bucket_data);%>",
1349
+ /* 94 */ // "<% console.log('bucket_id %o',bucket_id);%>",
1350
+ /* 95 */ "<ul class='walkthrough' data-bucket_id='<% print(bucket_id) %>'>",
1351
+ /* 96 */ "<li class='heading goprev'><span><% print(full_library.all_buckets_by_id[bucket_id]) %></span><i></i></li>",
1352
+ /* 97 */ "<ul class='walkthroughs_inner' data-bucket_id='<% print(bucket_id) %>'>",
1353
+ /* 98 */ "<% _.each(bucket_data.overview, function(walkthrough, walkthrough_key){ %>",
1354
+ /* 99 */ "<a href='javascript: sidekick.play(<% print(walkthrough.id) %>)'><li class='overview'><% print(walkthrough.title) %></li></a>",
1355
+ /* 100 */ "<% }); %>",
1356
+
1357
+ /* templates.js */
1358
+
1359
+ /* 101 */ "<% _.each(bucket_data.how, function(walkthrough, walkthrough_key){ %>",
1360
+ /* 102 */ "<a href='javascript: sidekick.play(<% print(walkthrough.id) %>)'><li class='how'><% print(walkthrough.title) %></li></a>",
1361
+ /* 103 */ "<% }); %>",
1362
+ /* 104 */ "</ul>",
1363
+ /* 105 */ "</ul>",
1364
+ /* 106 */ "<% }); %>",
1365
+ /* 107 */ "</ul>"
1366
+ /* 108 */ ].join("");
1367
+ /* 109 */
1368
+ /* 110 */ SidekickWP.Templates.Review = [
1369
+ /* 111 */ "<ul class='new_window review' data-title='<% print(title) %>'>",
1370
+ /* 112 */ "<li>",
1371
+ /* 113 */ "<div><div class='rate'><span data-val='1' class='rate1'></span><span data-val='2' class='rate2'></span><span data-val='3' class='rate3'></span><span data-val='4' class='rate4'></span><span data-val='5' class='rate5'></span></div>",
1372
+ /* 114 */ "<textarea name='comment'>Let us know if you found the Walkthrough helpful or if we can improve something.</textarea>",
1373
+ /* 115 */ "<br/><input type='button' value='Skip'></input><input type='submit' value='Submit'></input>",
1374
+ /* 116 */ "</li>",
1375
+ /* 117 */ "</ul>"
1376
+ /* 118 */ ].join("");
1377
+ /* 119 */
1378
+ /* 120 */
1379
+ /* 121 */ SidekickWP.Templates.Message = [
1380
+ /* 122 */ "<ul class='new_window message' data-title='<% print(title) %>'>",
1381
+ /* 123 */ "<li>",
1382
+ /* 124 */ "<div><% print(message) %></div>",
1383
+ /* 125 */ "</li>",
1384
+ /* 126 */ "</ul>"
1385
+ /* 127 */ ].join("");
1386
+ /* 128 */
1387
+ /* 129 */
1388
 
1389
  ;
1390
  /* jquery.lightbox_me.js */
2781
  /* 848 */
2782
  /* 849 */ })(jQuery, window);
2783
 
2784
+ ;
2785
+ /* jquery-center.js */
2786
+
2787
+ /* 1 */ (function(jQuery, window){
2788
+ /* 2 */
2789
+ /* 3 */ jQuery.fn.center = function () {
2790
+ /* 4 */ this.css("position","absolute");
2791
+ /* 5 */ this.css("top", Math.max(0, ((jQuery(window).height() - jQuery(this).outerHeight()) / 2) +
2792
+ /* 6 */ jQuery(window).scrollTop()) + "px");
2793
+ /* 7 */ this.css("left", Math.max(0, ((jQuery(window).width() - jQuery(this).outerWidth()) / 2) +
2794
+ /* 8 */ jQuery(window).scrollLeft()) + "px");
2795
+ /* 9 */ return this;
2796
+ /* 10 */ }
2797
+ /* 11 */
2798
+ /* 12 */ })(jQuery, window);
2799
+
2800
  ;
2801
  /* sk_wp.js */
2802
 
2803
  /* 1 */
2804
  /* 2 */ jQuery(document).ready(function($) {
2805
+ /* 3 */ window.sidekickWP = new SidekickWP.Models.App({
2806
+ /* 4 */ show_toggle_feedback: true
2807
+ /* 5 */ });
2808
+ /* 6 */ console.log('window.sidekickWP %o', window.sidekickWP);
2809
+ /* 7 */ // jQuery('#logo').trigger('click');
2810
+ /* 8 */ });
2811
+ /* 9 */
readme.txt CHANGED
@@ -1,37 +1,31 @@
1
  === Sidekick ===
2
- Contributors: bartdabek@gmail.com,ben@flowpress.ca
3
  Donate link: http://www.sidekick.pro
4
  Tags: help, tutorial, training, learn, learning, sidekick, interactive help, teach, video, manual, videos, wphelp, support, instructions, question, questions, answers, answer, clippy, q&a, chat, wpuniversity, helper, walkthrough,
5
- Requires at least: 3.5
6
- Tested up to: 3.6.1
7
- Stable tag: 1.0
8
  License: GNU Version 2 or Any Later Version
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Real-time, voice-guided WordPress support, help and learning at the push of button, inside your Admin Dashboard.
12
 
13
 
14
  == Description ==
15
 
16
  **SIDEKICK**
17
 
18
- The [Sidekick](http://Sidekick.pro/ "Sidekick") platform provides **real-time, voice-guided support and learning** from within any html or PHP based web application or CMS. Support is provided through modules called “Walkthroughs” that guide users through everything from understanding simple aspects of an application to completing even complicated tasks.
19
 
20
- Walkthroughs are served directly from the Sidekick library. With the users permission, an installed Sidekick module can automatically detect a user’s access level, installed 3rd party extensions and settings. That information is used to pull the appropriate walkthroughs from the Sidekick library. Sidekick also collects anonymous user data (with the user’s permission) to track, amongst other things, which walkthroughs are attempted and completed and how often.
21
 
22
- The Sidekick Plugin for WordPress bridges the gap between the Sidekick Platform and user’s WordPress Dashboard.
23
 
24
- **WPUNIVERSITY**
25
 
26
- Sidekick for WordPress provides real-time, guided WordPress help right from your dashboard, whenever you need it. Core WordPress walkthrough modules are created and maintained by the team at [wpuniversity.com](http://www.wpuniversity.com/ "wpuniversity.com"). Third party plugin and theme walkthroughs are created and maintained by their respective creators.
27
 
28
- The Sidekick plugin for WordPress collects specific, anonymous data (with the user’s permission) which can include a user’s email address, domain name, installed plugins, installed theme(s) etc... Basically, anything PressTrends captures.
29
-
30
- With the click of a button, you’ll get a step-by-step answer to your question instantly. So you can stop waiting for your developer call you back.
31
-
32
- If you have any questions about the Sidekick plugin for WordPress, please contact [info@wpuniversity.com](mailto:info@wpuniveristy.com "Email WPUniversity").
33
-
34
- Try the [demo](http://demo.wpuniversity.com "demo").
35
 
36
  == Installation ==
37
 
@@ -49,7 +43,7 @@ Upgrade Notice
49
 
50
  After installation, you will have access to at least 5 Core WordPress Walkthroughs and all third party walkthroughs that are applicable to your WordPress Dashboard.
51
 
52
- If you choose to register an account by providing your name and email address, you will receive a free upgrade to access all 40+ of our WordPress Core Walkthroughs until at least the end of October 2013 (subject to change). Following the free period, there will be a monthly charge to access the entire library of Core Walkthroughs.
53
 
54
  **Access to at least 5 Core Walkthroughs and all third party walkthroughs will remain free forever.**
55
 
@@ -59,7 +53,7 @@ Need more information? Want a clear understanding of the difference between a Co
59
 
60
  = What is Sidekick for WordPress? =
61
 
62
- The Sidekick platform provides real-time, guided support and learning from within any html or PHP based web application or CMS. Support is provided through modules called “Walkthroughs that guide users through everything from understanding simple aspects of an application to completing complicated tasks.
63
  The Sidekick plugin for WordPress connects the Sidekick platform with any WordPress Dashboard allowing real-time guided walkthroughs of core and 3rd party WordPress features and functions.
64
 
65
  If you’d like to learn more about Sidekick, go to [Sidekick.pro](http://Sidekick.pro/ "Sidekick")
@@ -76,24 +70,24 @@ A Sidekick for WordPress Walkthrough is a real-time, guided tutorial that walks
76
 
77
  = What are Core and 3rd Party WordPress Walkthroughs? =
78
 
79
- When we say “Core Walkthroughs” for WordPress, we are referring to any support and learning that has to do with features and functions provided by a fresh, default install of WordPress, downloaded from WordPress.org. Basically, if a walkthrough is helpng you complete a standard WordPress function like creating a post, it’s a Core Walkthrough and WPUniversity created it.
80
 
81
  Plugin and theme specific Walkthroughs are called Third Party Walkthroughs and are created and maintained by the plugin or theme creator, unless otherwise mentioned.
82
 
83
  = How do I create Walkthroughs for my Plugin(s) or Theme(s)? =
84
 
85
- At the moment Sidekick Composer, the tool we use to create Walkthroughs, is for in-house use only but we plan for that to change by the end of October 2013. If you’re interested in getting a head start, send us an email at info@wpuniversity.com and we’ll let you know how you can get started.
86
 
87
  = What does Sidekick for WordPress cost? =
88
 
89
  The Sidekick plugin for WordPress is and always will be free to download and use. Installing the plugin gives you instant and unlimited access to at least 5 Core WordPress Walkthroughs as well as Walkthroughs created for any plugins or themes that are installed and active on your WordPress site.
90
  If you would like access to the full library of Core WordPress Walkthroughs (40+) the cost is $20 per month per user. Price discounts start at just two licenses and go up from there.
91
 
92
- Until the end of October 2013, access to all 40+ Core Walkthroughs is FREE of charge!
93
 
94
  = Ok, the plugin is installed and activated. How do I use it? =
95
 
96
- Click on the little icon in the bottom right of your screen to open the Walkthrough menu. (Think Clippy from Office ’95, only useful.)
97
  You will be presented with the Walkthrough menu. Select your category then your walkthrough and away you go.
98
 
99
  = Can I suggest a Walkthrough that I’d like to see or give you feedback on the Sidekick WordPress Plugin? =
@@ -113,6 +107,14 @@ Absolutely. In fact, we rely on users like you to tell us about things that nee
113
 
114
  == Changelog ==
115
 
 
 
 
 
 
 
 
 
116
  = 1.00 =
117
  * Added support for buckets.
118
 
@@ -129,4 +131,4 @@ Absolutely. In fact, we rely on users like you to tell us about things that nee
129
  * Fixed Activation Bug
130
 
131
  = 0.70 =
132
- * Initial Beta Release
1
  === Sidekick ===
2
+ Contributors: raptor235,Ben Fox
3
  Donate link: http://www.sidekick.pro
4
  Tags: help, tutorial, training, learn, learning, sidekick, interactive help, teach, video, manual, videos, wphelp, support, instructions, question, questions, answers, answer, clippy, q&a, chat, wpuniversity, helper, walkthrough,
5
+ Requires at least: 3.7.1
6
+ Tested up to: 3.8
7
+ Stable tag: 1.1
8
  License: GNU Version 2 or Any Later Version
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Interactive help, support & training right inside your Dashboard.
12
 
13
 
14
  == Description ==
15
 
16
  **SIDEKICK**
17
 
18
+ The Sidekick Plugin for WordPress brings over 40 Walkthroughs for the WordPress Core right to your Dashboard. Each Walkthrough will guide you step-by-step through a task like creating a post or installing a new plugin!
19
 
20
+ Sidekick will also detect the plugins and themes you have active and push any related walkthroughs in the library, right to your Dashboard.
21
 
22
+ **Think [Clippy](http://en.wikipedia.org/wiki/Office_Assistant "Clippy"), but useful!**
23
 
24
+ **HOW DOES IT WORK?**
25
 
26
+ The [Sidekick](http://Sidekick.pro/ "Sidekick") platform provides **real-time, voice-guided support and learning** from within any html or PHP based web application or CMS. Support is provided through modules called "Walkthroughs”" that guide users through everything from understanding simple aspects of an application to completing even complicated tasks.
27
 
28
+ Walkthroughs are served directly from the Sidekick library. With the user’s permission, an installed Sidekick module can automatically detect a user’s access level, installed 3rd party extensions and settings. That information is used to pull the appropriate walkthroughs from the Sidekick library. Sidekick also collects anonymous user data (with the user’s permission) to track, amongst other things, which walkthroughs are attempted and completed and how often.
 
 
 
 
 
 
29
 
30
  == Installation ==
31
 
43
 
44
  After installation, you will have access to at least 5 Core WordPress Walkthroughs and all third party walkthroughs that are applicable to your WordPress Dashboard.
45
 
46
+ If you choose to register an account by providing your name and email address, you will receive a free upgrade to access all 40+ of our WordPress Core Walkthroughs until the end of December 2013 (subject to change). Following the free period, there will be a monthly charge to access the entire library of Core Walkthroughs.
47
 
48
  **Access to at least 5 Core Walkthroughs and all third party walkthroughs will remain free forever.**
49
 
53
 
54
  = What is Sidekick for WordPress? =
55
 
56
+ The Sidekick platform provides real-time, guided support and learning from within any html or PHP based web application or CMS. Support is provided through modules called “Walkthroughs” that guide users through everything from understanding simple aspects of an application to completing complicated tasks.
57
  The Sidekick plugin for WordPress connects the Sidekick platform with any WordPress Dashboard allowing real-time guided walkthroughs of core and 3rd party WordPress features and functions.
58
 
59
  If you’d like to learn more about Sidekick, go to [Sidekick.pro](http://Sidekick.pro/ "Sidekick")
70
 
71
  = What are Core and 3rd Party WordPress Walkthroughs? =
72
 
73
+ When we say “Core Walkthroughs” for WordPress, we are referring to any support and learning that has to do with features and functions provided by a fresh, default install of WordPress, downloaded from WordPress.org. Basically, if a walkthrough is helping you complete a standard WordPress function like creating a post, it’s a Core Walkthrough and WPUniversity created it.
74
 
75
  Plugin and theme specific Walkthroughs are called Third Party Walkthroughs and are created and maintained by the plugin or theme creator, unless otherwise mentioned.
76
 
77
  = How do I create Walkthroughs for my Plugin(s) or Theme(s)? =
78
 
79
+ At the moment Sidekick Composer, the tool we use to create Walkthroughs, is for in-house use only but we plan for that to change by the end of December 2013. If you’re interested in getting a head start, send us an email at info@wpuniversity.com and we’ll let you know how you can get started.
80
 
81
  = What does Sidekick for WordPress cost? =
82
 
83
  The Sidekick plugin for WordPress is and always will be free to download and use. Installing the plugin gives you instant and unlimited access to at least 5 Core WordPress Walkthroughs as well as Walkthroughs created for any plugins or themes that are installed and active on your WordPress site.
84
  If you would like access to the full library of Core WordPress Walkthroughs (40+) the cost is $20 per month per user. Price discounts start at just two licenses and go up from there.
85
 
86
+ For now, access to all 40+ Core Walkthroughs is FREE of charge!
87
 
88
  = Ok, the plugin is installed and activated. How do I use it? =
89
 
90
+ Click on the little icon in the bottom right of your screen to open the Walkthrough menu. (Think Clippy, only useful.)
91
  You will be presented with the Walkthrough menu. Select your category then your walkthrough and away you go.
92
 
93
  = Can I suggest a Walkthrough that I’d like to see or give you feedback on the Sidekick WordPress Plugin? =
107
 
108
  == Changelog ==
109
 
110
+ = 1.1 =
111
+ * Brand New User Interface
112
+ * Hotspot Support Added
113
+ * 3.8 Support Added
114
+ * Deeper sub-category support
115
+ * Sidekick Platform Upgraded
116
+ * Known bug exists with HTTPs protocols
117
+
118
  = 1.00 =
119
  * Added support for buckets.
120
 
131
  * Fixed Activation Bug
132
 
133
  = 0.70 =
134
+ * Initial Beta Release
sidekick.php CHANGED
@@ -3,18 +3,18 @@
3
  /*
4
  Plugin Name: Sidekick
5
  Plugin URL: http://www.wpuniversity.com/plugin/
6
- Description: Adds a real-time WordPress training right into your Dashboard
7
- Requires at least: 3.5
8
- Tested up to: 3.6.1
9
- Version: 1.00
10
  Author: WPUniversity.com
11
  Author URI: http://www.wpuniversity.com
12
  */
13
 
14
  define('SK_DOMAIN','http://www.wpuniversity.com');
15
- define('SK_PLUGIN_VERSION',1.00);
16
- define('SK_LIBRARY_VERSION',3);
17
- define('SK_PLATFORM_VERSION',3);
18
 
19
  // this is the URL our updater / license checker pings. This should be the URL of the site with EDD installed
20
  define( 'SK_STORE_URL', 'http://www.wpuniversity.com' ); // you should use your own CONSTANT name, and be sure to replace it throughout this file
@@ -31,6 +31,8 @@ if ( !function_exists('mlog')) {
31
 
32
  class Sidekick{
33
  function enqueue_required(){
 
 
34
  wp_enqueue_script('jquery' , null );
35
  wp_enqueue_script('underscore' , null, array('underscore'));
36
  wp_enqueue_script('backbone' , null, array('jquery','underscore'));
@@ -43,17 +45,20 @@ class Sidekick{
43
  }
44
 
45
  function enqueue(){
46
- // mlog('Sidekick Prod');
47
  if ($license = get_option("sk_license_key")){
48
- define('SK_LIBRARY_FILE', "http://library.sidekick.pro/library/v3/releases/{$license}/library.js");
49
  } else {
50
- define('SK_LIBRARY_FILE', "http://library.sidekick.pro/library/v3/sources/wpuniversity-free_library.js");
51
  }
52
 
53
- wp_enqueue_script('sidekick' ,'http://platform.sidekick.pro/v3/sidekick.min.js', array('backbone','jquery','underscore','jquery-effects-highlight'), SK_PLUGIN_VERSION);
54
  wp_enqueue_script('sk' ,plugins_url( '/js/sk.source.js' , __FILE__ ), array('sidekick') ,SK_PLUGIN_VERSION);
55
- wp_enqueue_script("sk_library" , SK_LIBRARY_FILE , array("sk") ,rand(1, 5000));
56
  wp_enqueue_style('sk-style' ,plugins_url( '/css/sidekick_wordpress.css' , __FILE__ ), null ,SK_PLUGIN_VERSION);
 
 
 
57
  }
58
 
59
  function setup_menu(){
@@ -80,25 +85,26 @@ class Sidekick{
80
  }
81
 
82
  if (isset($_POST['option_page']) && $_POST['option_page'] == 'sk_license') {
83
- if (isset($_POST['first_name'])) {
 
84
  update_option('sk_first_name',$_POST['first_name']);
 
 
85
  update_option('sk_email',$_POST['email']);
86
- if (isset($_POST['sk_track_data'])) {
87
- update_option( 'sk_track_data', true );
88
- } else {
89
- delete_option('sk_track_data');
90
- }
91
 
 
 
 
 
 
 
 
92
  $first_name = $_POST['first_name'];
93
  $email = $_POST['email'];
94
  $track_data = get_option( 'sk_track_data' );
95
  $_POST['item_name'] = SK_ITEM_NAME;
96
 
97
- if (defined('SK_PLUGIN_DEGBUG')) {
98
- $url = 'http://dev.wpuniversity.com?action=remote_wpu_register';
99
- } else {
100
- $url = 'http://www.wpuniversity.com?action=remote_wpu_register';
101
- }
102
 
103
  $response = wp_remote_post( $url, array(
104
  'method' => 'POST',
@@ -114,7 +120,6 @@ class Sidekick{
114
 
115
  if ( is_wp_error( $response ) ) {
116
  $error_message = $response->get_error_message();
117
- // echo "Something went wrong: $error_message";
118
  } else {
119
  $success = 'Successfully Activated';
120
  update_option('sk_license_key',$response['body']);
@@ -126,6 +131,7 @@ class Sidekick{
126
  }
127
  update_option( 'sk_activated', true );
128
  die('<script>window.open("' . get_site_url() . '/wp-admin/admin.php?page=sidekick&firstuse","_self")</script>');
 
129
  }
130
  }
131
 
@@ -139,8 +145,8 @@ class Sidekick{
139
  $track_data = get_option( 'sk_track_data' );
140
 
141
  global $wp_version;
142
- if (version_compare($wp_version, '3.4', '<=')) {
143
- $error = "Sorry, Sidekick requires WordPress 3.5 or higher to function.";
144
  }
145
 
146
  if (!$license) {
@@ -184,9 +190,9 @@ class Sidekick{
184
 
185
  <?php if (!$error): ?>
186
  <?php if ($status == 'valid'): ?>
187
- <h2>Your Sidekick Account</h2>
188
  <?php else: ?>
189
- <h2>Activate <b>Full Library</b></h2>
190
  <?php endif ?>
191
 
192
  <form method="post">
@@ -197,7 +203,9 @@ class Sidekick{
197
  <th scope="row" valign="top">First Name</th>
198
  <td>
199
  <input id="first_name" name="first_name" type="text" class="regular-text" <?php if ($status == 'valid'): ?>DISABLED<?php endif ?> value="<?php echo $first_name ?>" />
200
- <label class="description" for="first_name"><?php _e('Enter your first name'); ?></label>
 
 
201
  </td>
202
  </tr>
203
 
@@ -205,7 +213,9 @@ class Sidekick{
205
  <th scope="row" valign="top">E-Mail</th>
206
  <td>
207
  <input id="email" name="email" type="text" class="regular-text" <?php if ($status == 'valid'): ?>DISABLED<?php endif ?> value="<?php echo $email ?>" />
208
- <label class="description" for="email"><?php _e('Enter your email address'); ?></label>
 
 
209
  </td>
210
  </tr>
211
 
@@ -238,33 +248,42 @@ class Sidekick{
238
  </td>
239
  </tr>
240
  <?php endif ?>
241
- <?php if ($status !== 'valid'): ?>
242
- <tr valign="top">
243
- <th scope="row" valign="top">
244
- Data Tracking
245
- </th>
246
- <td>
247
- <input id="sk_track_data" name="sk_track_data" type="checkbox" class="regular-text" <?php if ($track_data): ?>CHECKED<?php endif ?> />
248
- <label class="description" for="sk_track_data">Help Sidekick by providing tracking data which will help us build better help tools.</label>
249
- </td>
250
- </tr>
251
- <?php endif; ?>
252
  </tbody>
253
  </table>
254
  <?php if (defined('SK_PLUGIN_DEGBUG')): ?>
255
  <?php submit_button('Activate Library (Debug)'); ?>
256
  <?php elseif ($status !== 'valid'): ?>
257
  <?php submit_button('Activate Library'); ?>
 
 
258
  <?php endif ?>
259
  </form>
260
  <?php endif ?>
261
 
262
- <h2>About Sidekick</h2>
263
  <p><b>WordPress is about to get a whole lot easier to learn and use!</b></p>
264
- <p>The Sidekick for WordPress Walkthrough library was created and is maintained by the team at http://www.wpuniversity.com. There is currently no charge to access and use the library of walkthroughs. All we ask is that you enter your first name and email address here so we can keep you posted on what's new with the plugin and any upcoming changes that you should be aware of. (entering your email address is not a requirement to use the plugin).</p>
265
- <p>Sidekick and our parent company FlowPress adhere strictly to CANSPAM rules and we promise never to lend, sell or otherwise divulge your personal data (including your name and email address) without your express consent.</p>
266
- <p>From time to time we send out WordPress tips & tricks, WordPress community updates and the occasional special offer to our users. If you'd like to receive these emails as well, please <a href='http://wpuniversity.us4.list-manage.com/subscribe?u=59d2b3278da2364941b040f74&id=b1a91625c0'>click here</a>.</p>
267
- <p>Sidekick for WordPress is still in BETA and there will be the occasional bug. If you have any questions, bug reports or feedback, please send them to <a href='mailto:info@wpuniversity.com'>info@wpuniversity.com</a>.</p>
 
 
 
 
 
 
 
268
  <p>Thank you,</p><br/>
269
 
270
  </div>
@@ -297,32 +316,39 @@ class Sidekick{
297
  <?php if (!$not_supported_ie): ?>
298
 
299
  <script type="text/javascript">
300
- var sk_library_file = '<?php echo SK_LIBRARY_FILE ?>';
301
- var sk_main_soft_version = '<?php echo get_bloginfo("version"); ?>';
302
- var sk_installed_plugins = <?php echo $this->list_plugins() ?>;
303
- var sk_installed_theme = '<?php echo $theme->Name ?>';
304
- var sk_theme_version = '<?php echo $theme->Version ?>';
305
- var sk_domain = '<?php echo SK_DOMAIN ?>';
306
- var sk_license_status = '<?php echo get_option( "sk_license_status" ) ?>';
 
 
 
 
 
 
 
 
 
 
307
  <?php if ($license_key = get_option( "sk_license_key" )): ?>
308
- var sk_license_key = '<?php echo $license_key ?>';
309
- <?php else: ?>
310
- var sk_license_key = 'demo';
311
- <?php endif ?>
312
- var sk_plugin_version = <?php echo SK_PLUGIN_VERSION ?>;
313
- var sk_library_version = <?php echo SK_LIBRARY_VERSION ?>;
314
- var sk_platform_version = <?php echo SK_PLATFORM_VERSION ?>;
315
- var sk_track_data = '<?php echo get_option( 'sk_track_data' ) ?>';
316
- var sk_user_level = '<?php echo $user_role ?>';
317
- <?php if ($sk_just_activated): ?>var sk_just_activated = true;<?php endif; ?>
318
- </script>
319
-
320
- <?php if ($track_data): ?>
321
- <script id="IntercomSettingsScriptTag">
322
- window.intercomSettings = {
323
- email: "<?php echo $current_user->user_email; ?>",
324
- created_at: 1234567980,
325
- app_id: "75fbe21e31b2881f775fba2ff3ff7928485478e8",
326
  // last_date_watched : 0,
327
  // walkthroughs_watched: 0,
328
  // number_of_plugins: 0,
@@ -389,7 +415,8 @@ class Sidekick{
389
  function redirect(){
390
  if (get_option('sk_do_activation_redirect', false)) {
391
  delete_option('sk_do_activation_redirect');
392
- wp_redirect("/wp-admin/admin.php?page=sidekick&firstuse");
 
393
  die();
394
  }
395
  }
@@ -423,7 +450,6 @@ class Sidekick{
423
 
424
  $sidekick = new Sidekick;
425
  if (!defined('SK_PLUGIN_DEGBUG')){
426
- mlog('Setting up Activation Hooks');
427
  register_activation_hook( __FILE__, array($sidekick,'activate_plugin') );
428
  register_deactivation_hook( __FILE__, array($sidekick,'deactivate_plugin') );
429
  }
3
  /*
4
  Plugin Name: Sidekick
5
  Plugin URL: http://www.wpuniversity.com/plugin/
6
+ Description: Adds a real-time WordPress training walkthroughs right in your Dashboard
7
+ Requires at least: 3.7
8
+ Tested up to: 3.8
9
+ Version: 1.1
10
  Author: WPUniversity.com
11
  Author URI: http://www.wpuniversity.com
12
  */
13
 
14
  define('SK_DOMAIN','http://www.wpuniversity.com');
15
+ define('SK_PLUGIN_VERSION',1.08);
16
+ define('SK_LIBRARY_VERSION',4);
17
+ define('SK_PLATFORM_VERSION',5);
18
 
19
  // this is the URL our updater / license checker pings. This should be the URL of the site with EDD installed
20
  define( 'SK_STORE_URL', 'http://www.wpuniversity.com' ); // you should use your own CONSTANT name, and be sure to replace it throughout this file
31
 
32
  class Sidekick{
33
  function enqueue_required(){
34
+ mlog('PHP: enqueue_required');
35
+
36
  wp_enqueue_script('jquery' , null );
37
  wp_enqueue_script('underscore' , null, array('underscore'));
38
  wp_enqueue_script('backbone' , null, array('jquery','underscore'));
45
  }
46
 
47
  function enqueue(){
48
+ mlog('PHP: enqueue');
49
  if ($license = get_option("sk_license_key")){
50
+ define('SK_LIBRARY_FILE', "http://library.sidekick.pro/library/v" . SK_LIBRARY_VERSION . "/releases/{$license}/library.js?" . rand(1, 5000));
51
  } else {
52
+ define('SK_LIBRARY_FILE', "http://library.sidekick.pro/library/v" . SK_LIBRARY_VERSION . "/sources/wpuniversity-free_library.js?" . rand(1, 5000));
53
  }
54
 
55
+ 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);
56
  wp_enqueue_script('sk' ,plugins_url( '/js/sk.source.js' , __FILE__ ), array('sidekick') ,SK_PLUGIN_VERSION);
57
+ wp_enqueue_script("sk_library" , SK_LIBRARY_FILE , array("sk") ,null);
58
  wp_enqueue_style('sk-style' ,plugins_url( '/css/sidekick_wordpress.css' , __FILE__ ), null ,SK_PLUGIN_VERSION);
59
+
60
+ wp_enqueue_style('wp-pointer');
61
+ wp_enqueue_script('wp-pointer');
62
  }
63
 
64
  function setup_menu(){
85
  }
86
 
87
  if (isset($_POST['option_page']) && $_POST['option_page'] == 'sk_license') {
88
+
89
+ if (isset($_POST['first_name']) && $_POST['first_name'])
90
  update_option('sk_first_name',$_POST['first_name']);
91
+
92
+ if (isset($_POST['email']) && $_POST['email'])
93
  update_option('sk_email',$_POST['email']);
 
 
 
 
 
94
 
95
+ if (isset($_POST['sk_track_data'])) {
96
+ update_option( 'sk_track_data', true );
97
+ } else {
98
+ delete_option('sk_track_data');
99
+ }
100
+
101
+ if ($status !== 'valid') {
102
  $first_name = $_POST['first_name'];
103
  $email = $_POST['email'];
104
  $track_data = get_option( 'sk_track_data' );
105
  $_POST['item_name'] = SK_ITEM_NAME;
106
 
107
+ $url = 'http://www.wpuniversity.com?action=remote_wpu_register';
 
 
 
 
108
 
109
  $response = wp_remote_post( $url, array(
110
  'method' => 'POST',
120
 
121
  if ( is_wp_error( $response ) ) {
122
  $error_message = $response->get_error_message();
 
123
  } else {
124
  $success = 'Successfully Activated';
125
  update_option('sk_license_key',$response['body']);
131
  }
132
  update_option( 'sk_activated', true );
133
  die('<script>window.open("' . get_site_url() . '/wp-admin/admin.php?page=sidekick&firstuse","_self")</script>');
134
+
135
  }
136
  }
137
 
145
  $track_data = get_option( 'sk_track_data' );
146
 
147
  global $wp_version;
148
+ if (version_compare($wp_version, '3.7', '<=')) {
149
+ $error = "Sorry, Sidekick requires WordPress 3.7 or higher to function.";
150
  }
151
 
152
  if (!$license) {
190
 
191
  <?php if (!$error): ?>
192
  <?php if ($status == 'valid'): ?>
193
+ <h3>Your Sidekick Account</h3>
194
  <?php else: ?>
195
+ <h3>Activate <b>Full Library</b></h3>
196
  <?php endif ?>
197
 
198
  <form method="post">
203
  <th scope="row" valign="top">First Name</th>
204
  <td>
205
  <input id="first_name" name="first_name" type="text" class="regular-text" <?php if ($status == 'valid'): ?>DISABLED<?php endif ?> value="<?php echo $first_name ?>" />
206
+ <?php if ($status !== 'valid'): ?>
207
+ <label class="description" for="first_name"><?php _e('Enter your first name'); ?></label>
208
+ <?php endif ?>
209
  </td>
210
  </tr>
211
 
213
  <th scope="row" valign="top">E-Mail</th>
214
  <td>
215
  <input id="email" name="email" type="text" class="regular-text" <?php if ($status == 'valid'): ?>DISABLED<?php endif ?> value="<?php echo $email ?>" />
216
+ <?php if ($status !== 'valid'): ?>
217
+ <label class="description" for="email"><?php _e('Enter your email address'); ?></label>
218
+ <?php endif ?>
219
  </td>
220
  </tr>
221
 
248
  </td>
249
  </tr>
250
  <?php endif ?>
251
+
252
+ <tr valign="top">
253
+ <th scope="row" valign="top">
254
+ Data Tracking
255
+ </th>
256
+ <td>
257
+ <input id="sk_track_data" name="sk_track_data" type="checkbox" <?php if ($track_data): ?>CHECKED<?php endif ?> />
258
+ <input type='hidden' name='status' value='<?php echo $status ?>'/>
259
+ <label class="description" for="sk_track_data">Help Sidekick by providing tracking data which will help us build better help tools.</label>
260
+ </td>
261
+ </tr>
262
  </tbody>
263
  </table>
264
  <?php if (defined('SK_PLUGIN_DEGBUG')): ?>
265
  <?php submit_button('Activate Library (Debug)'); ?>
266
  <?php elseif ($status !== 'valid'): ?>
267
  <?php submit_button('Activate Library'); ?>
268
+ <?php else: ?>
269
+ <?php submit_button('Update'); ?>
270
  <?php endif ?>
271
  </form>
272
  <?php endif ?>
273
 
274
+ <h3>About Sidekick</h3>
275
  <p><b>WordPress is about to get a whole lot easier to learn and use!</b></p>
276
+ <p><b>We are very excited to introduce Sidekick for WordPress. Our team has been working ‘round the clock for months now preparing this latest iteration and we can’t wait to <a href='mailto:info@sidekick.pro'>hear</a> what you think! </b></p>
277
+ <p>Sidekick is currently avialable free of charge. To activate your free access, please enter your first name and email address here so we can keep you posted on what's new with the plugin and any upcoming changes that you should be aware of. </p>
278
+ <p><b>Here are a few other things you should know:</b></p>
279
+ <ul>
280
+ <li>&nbsp;&nbsp;&nbsp;&nbsp;1. Clicking the check-box above will allow us to link your email address to the stats we collect so we can contact you if we have a question or notice an issue. It’s not mandatory, but it would help us out. </li>
281
+ <li>&nbsp;&nbsp;&nbsp;&nbsp;2. Entering your email address is not a requirement to use the plugin, if you choose not to, you will have access to 5 WordPress core walkthroughs as well as any plugin or theme walkthroughs that are available for your install of WordPress. </li>
282
+ <li>&nbsp;&nbsp;&nbsp;&nbsp;3. The Sidekick team adheres strictly to <a href='http://www.business.ftc.gov/documents/bus61-can-spam-act-compliance-guide-business'>CANSPAM</a> </li>
283
+ <li>&nbsp;&nbsp;&nbsp;&nbsp;4. If you have any questions, bug reports or feedback, please send them to info@sidekick.pro</li>
284
+ <li>&nbsp;&nbsp;&nbsp;&nbsp;5. <a href='http://www.wpuniversity.com'>WPUniversity</a> maintains our library of core WordPress Walkthroughs. 3rd party plugin and theme walkthroughs are created and maintained by their respective developers. </li>
285
+ <li>&nbsp;&nbsp;&nbsp;&nbsp;6. WPUniversity sends out daily WordPress tips & tricks, WordPress community updates and the occasional special offer. If you'd like to receive these emails as well, please click <a href='http://wpuniversity.us4.list-manage.com/subscribe?u=59d2b3278da2364941b040f74&id=b1a91625c0'>here</a>.</li>
286
+ </ul>
287
  <p>Thank you,</p><br/>
288
 
289
  </div>
316
  <?php if (!$not_supported_ie): ?>
317
 
318
  <script type="text/javascript">
319
+ var sk_library_file = '<?php echo SK_LIBRARY_FILE ?>';
320
+ var sk_main_soft_name = 'WordPress';
321
+ var sk_main_soft_version = '<?php echo get_bloginfo("version"); ?>';
322
+ var sk_installed_plugins = <?php echo $this->list_plugins() ?>;
323
+ var sk_installed_theme = '<?php echo $theme->Name ?>';
324
+ var sk_theme_version = '<?php echo $theme->Version ?>';
325
+ var sk_domain = '<?php echo SK_DOMAIN ?>';
326
+ var sk_license_status = '<?php echo get_option( "sk_license_status" ) ?>';
327
+ var sk_plugin_version = <?php echo SK_PLUGIN_VERSION ?>;
328
+ var sk_library_version = <?php echo SK_LIBRARY_VERSION ?>;
329
+ var sk_platform_version = <?php echo SK_PLATFORM_VERSION ?>;
330
+ var sk_track_data = '<?php echo get_option( 'sk_track_data' ) ?>';
331
+ var sk_user_level = '<?php echo $user_role ?>';
332
+ var sk_user_email = '<?php echo $current_user->user_email ?>';
333
+ var sk_use_native_controls = false;
334
+ var sk_plugin_url = '<?php echo admin_url("admin.php?page=sidekick") ?>';
335
+ var sk_domain = '<?php echo str_replace("http://","",$_SERVER["SERVER_NAME"]) ?>'
336
  <?php if ($license_key = get_option( "sk_license_key" )): ?>
337
+ var sk_license_key = '<?php echo $license_key ?>';
338
+ <?php else: ?>
339
+ var sk_license_key = 'demo';
340
+ <?php endif ?>
341
+ <?php if ($sk_just_activated): ?>
342
+ var sk_just_activated = true;
343
+ <?php endif; ?>
344
+ </script>
345
+
346
+ <?php if ($track_data): ?>
347
+ <script id="IntercomSettingsScriptTag">
348
+ window.intercomSettings = {
349
+ email: "<?php echo $current_user->user_email; ?>",
350
+ created_at: 1234567980,
351
+ app_id: "75fbe21e31b2881f775fba2ff3ff7928485478e8",
 
 
 
352
  // last_date_watched : 0,
353
  // walkthroughs_watched: 0,
354
  // number_of_plugins: 0,
415
  function redirect(){
416
  if (get_option('sk_do_activation_redirect', false)) {
417
  delete_option('sk_do_activation_redirect');
418
+ $siteurl = get_site_url();
419
+ wp_redirect($siteurl . "/wp-admin/admin.php?page=sidekick&firstuse");
420
  die();
421
  }
422
  }
450
 
451
  $sidekick = new Sidekick;
452
  if (!defined('SK_PLUGIN_DEGBUG')){
 
453
  register_activation_hook( __FILE__, array($sidekick,'activate_plugin') );
454
  register_deactivation_hook( __FILE__, array($sidekick,'deactivate_plugin') );
455
  }