Version Description
- 03.08.2016 =
- Tweak - Storefront 2.0.0 compatibility.
- Tweak - General code tidy up.
Download this release
Release Info
Developer | jameskoster |
Plugin | Storefront Sticky Add to Cart |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- changelog.txt +0 -10
- config.codekit +0 -908
- readme.txt +11 -1
- storefront-sticky-add-to-cart.php +60 -56
changelog.txt
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
*** Storefront Sticky Add to Cart Changelog ***
|
2 |
-
|
3 |
-
2015.11.06 - version 1.1.0
|
4 |
-
* New - Now displays the product rating as well. Kudos @BurlesonBrad.
|
5 |
-
* New - Now works for variable products.
|
6 |
-
* Tweak - Button now uses the `.alt` class to stand out more.
|
7 |
-
* Tweak - Minor style adjustments.
|
8 |
-
|
9 |
-
2015.10.29 - version 1.0.0
|
10 |
-
* Initial release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config.codekit
DELETED
@@ -1,908 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"CodeKitInfo": "This is a CodeKit 2.x project configuration file. It is designed to sync project settings across multiple machines. MODIFYING THE CONTENTS OF THIS FILE IS A POOR LIFE DECISION. If you do so, you will likely cause CodeKit to crash. This file is not useful unless accompanied by the project that created it in CodeKit 2. This file is not backwards-compatible with CodeKit 1.x. For more information, see: http:\/\/incident57.com\/codekit",
|
3 |
-
"creatorBuild": "19076",
|
4 |
-
"files": {
|
5 |
-
"\/assets\/css\/style.css": {
|
6 |
-
"fileType": 16,
|
7 |
-
"ignore": 1,
|
8 |
-
"ignoreWasSetByUser": 0,
|
9 |
-
"inputAbbreviatedPath": "\/assets\/css\/style.css",
|
10 |
-
"outputAbbreviatedPath": "No Output Path",
|
11 |
-
"outputPathIsOutsideProject": 0,
|
12 |
-
"outputPathIsSetByUser": 0
|
13 |
-
},
|
14 |
-
"\/assets\/css\/style.scss": {
|
15 |
-
"createSourceMap": 0,
|
16 |
-
"debugStyle": 0,
|
17 |
-
"decimalPrecision": 10,
|
18 |
-
"fileType": 4,
|
19 |
-
"ignore": 0,
|
20 |
-
"ignoreWasSetByUser": 0,
|
21 |
-
"inputAbbreviatedPath": "\/assets\/css\/style.scss",
|
22 |
-
"outputAbbreviatedPath": "\/assets\/css\/style.css",
|
23 |
-
"outputPathIsOutsideProject": 0,
|
24 |
-
"outputPathIsSetByUser": 0,
|
25 |
-
"outputStyle": 0,
|
26 |
-
"shouldRunAutoprefixer": 0,
|
27 |
-
"shouldRunBless": 0,
|
28 |
-
"useLibsass": 0
|
29 |
-
},
|
30 |
-
"\/assets\/js\/jquery.waypoints.min.js": {
|
31 |
-
"fileType": 64,
|
32 |
-
"ignore": 1,
|
33 |
-
"ignoreWasSetByUser": 1,
|
34 |
-
"inputAbbreviatedPath": "\/assets\/js\/jquery.waypoints.min.js",
|
35 |
-
"outputAbbreviatedPath": "\/assets\/js\/min\/jquery.waypoints.min-min.js",
|
36 |
-
"outputPathIsOutsideProject": 0,
|
37 |
-
"outputPathIsSetByUser": 0,
|
38 |
-
"outputStyle": 1,
|
39 |
-
"syntaxCheckerStyle": 1
|
40 |
-
},
|
41 |
-
"\/assets\/js\/variable.js": {
|
42 |
-
"fileType": 64,
|
43 |
-
"ignore": 0,
|
44 |
-
"ignoreWasSetByUser": 0,
|
45 |
-
"inputAbbreviatedPath": "\/assets\/js\/variable.js",
|
46 |
-
"outputAbbreviatedPath": "\/assets\/js\/variable.min.js",
|
47 |
-
"outputPathIsOutsideProject": 0,
|
48 |
-
"outputPathIsSetByUser": 1,
|
49 |
-
"outputStyle": 1,
|
50 |
-
"syntaxCheckerStyle": 1
|
51 |
-
},
|
52 |
-
"\/assets\/js\/variable.min.js": {
|
53 |
-
"fileType": 64,
|
54 |
-
"ignore": 1,
|
55 |
-
"ignoreWasSetByUser": 0,
|
56 |
-
"inputAbbreviatedPath": "\/assets\/js\/variable.min.js",
|
57 |
-
"outputAbbreviatedPath": "\/assets\/js\/min\/variable.min-min.js",
|
58 |
-
"outputPathIsOutsideProject": 0,
|
59 |
-
"outputPathIsSetByUser": 0,
|
60 |
-
"outputStyle": 1,
|
61 |
-
"syntaxCheckerStyle": 1
|
62 |
-
},
|
63 |
-
"\/assets\/js\/waypoints.init.js": {
|
64 |
-
"fileType": 64,
|
65 |
-
"ignore": 0,
|
66 |
-
"ignoreWasSetByUser": 0,
|
67 |
-
"inputAbbreviatedPath": "\/assets\/js\/waypoints.init.js",
|
68 |
-
"outputAbbreviatedPath": "\/assets\/js\/waypoints.init.min.js",
|
69 |
-
"outputPathIsOutsideProject": 0,
|
70 |
-
"outputPathIsSetByUser": 1,
|
71 |
-
"outputStyle": 1,
|
72 |
-
"syntaxCheckerStyle": 1
|
73 |
-
},
|
74 |
-
"\/assets\/js\/waypoints.init.min.js": {
|
75 |
-
"fileType": 64,
|
76 |
-
"ignore": 1,
|
77 |
-
"ignoreWasSetByUser": 0,
|
78 |
-
"inputAbbreviatedPath": "\/assets\/js\/waypoints.init.min.js",
|
79 |
-
"outputAbbreviatedPath": "\/assets\/js\/min\/waypoints.init.min-min.js",
|
80 |
-
"outputPathIsOutsideProject": 0,
|
81 |
-
"outputPathIsSetByUser": 0,
|
82 |
-
"outputStyle": 1,
|
83 |
-
"syntaxCheckerStyle": 1
|
84 |
-
},
|
85 |
-
"\/index.php": {
|
86 |
-
"fileType": 8192,
|
87 |
-
"ignore": 0,
|
88 |
-
"ignoreWasSetByUser": 0,
|
89 |
-
"inputAbbreviatedPath": "\/index.php",
|
90 |
-
"outputAbbreviatedPath": "No Output Path",
|
91 |
-
"outputPathIsOutsideProject": 0,
|
92 |
-
"outputPathIsSetByUser": 0
|
93 |
-
},
|
94 |
-
"\/storefront-sticky-add-to-cart.php": {
|
95 |
-
"fileType": 8192,
|
96 |
-
"ignore": 0,
|
97 |
-
"ignoreWasSetByUser": 0,
|
98 |
-
"inputAbbreviatedPath": "\/storefront-sticky-add-to-cart.php",
|
99 |
-
"outputAbbreviatedPath": "No Output Path",
|
100 |
-
"outputPathIsOutsideProject": 0,
|
101 |
-
"outputPathIsSetByUser": 0
|
102 |
-
}
|
103 |
-
},
|
104 |
-
"hooks": [
|
105 |
-
],
|
106 |
-
"lastSavedByUser": "James Koster",
|
107 |
-
"manualImportLinks": {
|
108 |
-
},
|
109 |
-
"projectAttributes": {
|
110 |
-
"bowerAbbreviatedPath": "",
|
111 |
-
"displayValue": "storefront-sticky-add-to-cart",
|
112 |
-
"displayValueWasSetByUser": 0,
|
113 |
-
"iconImageName": "compass_blue"
|
114 |
-
},
|
115 |
-
"projectSettings": {
|
116 |
-
"alwaysUseExternalServer": 0,
|
117 |
-
"animateCSSInjections": 1,
|
118 |
-
"autoApplyPSLanguageSettingsStyle": 0,
|
119 |
-
"autoprefixerBrowserString": "> 1%, last 2 versions, Firefox ESR, Opera 12.1",
|
120 |
-
"autoSyncProjectSettingsFile": 1,
|
121 |
-
"browserRefreshDelay": 0,
|
122 |
-
"coffeeAutoOutputPathEnabled": 1,
|
123 |
-
"coffeeAutoOutputPathFilenamePattern": "*.js",
|
124 |
-
"coffeeAutoOutputPathRelativePath": "",
|
125 |
-
"coffeeAutoOutputPathReplace1": "",
|
126 |
-
"coffeeAutoOutputPathReplace2": "",
|
127 |
-
"coffeeAutoOutputPathStyle": 0,
|
128 |
-
"coffeeCreateSourceMap": 0,
|
129 |
-
"coffeeLintFlags2": {
|
130 |
-
"arrow_spacing": {
|
131 |
-
"active": 0,
|
132 |
-
"flagValue": -1
|
133 |
-
},
|
134 |
-
"camel_case_classes": {
|
135 |
-
"active": 1,
|
136 |
-
"flagValue": -1
|
137 |
-
},
|
138 |
-
"colon_assignment_spacing": {
|
139 |
-
"active": 0,
|
140 |
-
"flagValue": 1
|
141 |
-
},
|
142 |
-
"cyclomatic_complexity": {
|
143 |
-
"active": 0,
|
144 |
-
"flagValue": 10
|
145 |
-
},
|
146 |
-
"duplicate_key": {
|
147 |
-
"active": 1,
|
148 |
-
"flagValue": -1
|
149 |
-
},
|
150 |
-
"empty_constructor_needs_parens": {
|
151 |
-
"active": 0,
|
152 |
-
"flagValue": -1
|
153 |
-
},
|
154 |
-
"ensure_comprehensions": {
|
155 |
-
"active": 1,
|
156 |
-
"flagValue": -1
|
157 |
-
},
|
158 |
-
"indentation": {
|
159 |
-
"active": 1,
|
160 |
-
"flagValue": 2
|
161 |
-
},
|
162 |
-
"line_endings": {
|
163 |
-
"active": 0,
|
164 |
-
"flagValue": 0
|
165 |
-
},
|
166 |
-
"max_line_length": {
|
167 |
-
"active": 0,
|
168 |
-
"flagValue": 150
|
169 |
-
},
|
170 |
-
"missing_fat_arrows": {
|
171 |
-
"active": 0,
|
172 |
-
"flagValue": -1
|
173 |
-
},
|
174 |
-
"newlines_after_classes": {
|
175 |
-
"active": 0,
|
176 |
-
"flagValue": 3
|
177 |
-
},
|
178 |
-
"no_backticks": {
|
179 |
-
"active": 1,
|
180 |
-
"flagValue": -1
|
181 |
-
},
|
182 |
-
"no_debugger": {
|
183 |
-
"active": 1,
|
184 |
-
"flagValue": -1
|
185 |
-
},
|
186 |
-
"no_empty_functions": {
|
187 |
-
"active": 0,
|
188 |
-
"flagValue": -1
|
189 |
-
},
|
190 |
-
"no_empty_param_list": {
|
191 |
-
"active": 0,
|
192 |
-
"flagValue": -1
|
193 |
-
},
|
194 |
-
"no_implicit_braces": {
|
195 |
-
"active": 1,
|
196 |
-
"flagValue": -1
|
197 |
-
},
|
198 |
-
"no_implicit_parens": {
|
199 |
-
"active": 0,
|
200 |
-
"flagValue": -1
|
201 |
-
},
|
202 |
-
"no_interpolation_in_single_quotes": {
|
203 |
-
"active": 0,
|
204 |
-
"flagValue": -1
|
205 |
-
},
|
206 |
-
"no_plusplus": {
|
207 |
-
"active": 0,
|
208 |
-
"flagValue": -1
|
209 |
-
},
|
210 |
-
"no_stand_alone_at": {
|
211 |
-
"active": 1,
|
212 |
-
"flagValue": -1
|
213 |
-
},
|
214 |
-
"no_tabs": {
|
215 |
-
"active": 1,
|
216 |
-
"flagValue": -1
|
217 |
-
},
|
218 |
-
"no_throwing_strings": {
|
219 |
-
"active": 1,
|
220 |
-
"flagValue": -1
|
221 |
-
},
|
222 |
-
"no_trailing_semicolons": {
|
223 |
-
"active": 1,
|
224 |
-
"flagValue": -1
|
225 |
-
},
|
226 |
-
"no_trailing_whitespace": {
|
227 |
-
"active": 1,
|
228 |
-
"flagValue": -1
|
229 |
-
},
|
230 |
-
"no_unnecessary_double_quotes": {
|
231 |
-
"active": 0,
|
232 |
-
"flagValue": -1
|
233 |
-
},
|
234 |
-
"no_unnecessary_fat_arrows": {
|
235 |
-
"active": 1,
|
236 |
-
"flagValue": -1
|
237 |
-
},
|
238 |
-
"non_empty_constructor_needs_parens": {
|
239 |
-
"active": 0,
|
240 |
-
"flagValue": -1
|
241 |
-
},
|
242 |
-
"prefer_english_operator": {
|
243 |
-
"active": 0,
|
244 |
-
"flagValue": -1
|
245 |
-
},
|
246 |
-
"space_operators": {
|
247 |
-
"active": 0,
|
248 |
-
"flagValue": -1
|
249 |
-
},
|
250 |
-
"spacing_after_comma": {
|
251 |
-
"active": 1,
|
252 |
-
"flagValue": -1
|
253 |
-
}
|
254 |
-
},
|
255 |
-
"coffeeMinifyOutput": 1,
|
256 |
-
"coffeeOutputStyle": 0,
|
257 |
-
"coffeeSyntaxCheckerStyle": 1,
|
258 |
-
"externalServerAddress": "http:\/\/localhost:8888",
|
259 |
-
"externalServerPreviewPathAddition": "",
|
260 |
-
"genericWebpageFileExtensionsString": "html, htm, shtml, shtm, xhtml, php, jsp, asp, aspx, erb, ctp",
|
261 |
-
"hamlAutoOutputPathEnabled": 1,
|
262 |
-
"hamlAutoOutputPathFilenamePattern": "*.html",
|
263 |
-
"hamlAutoOutputPathRelativePath": "",
|
264 |
-
"hamlAutoOutputPathReplace1": "",
|
265 |
-
"hamlAutoOutputPathReplace2": "",
|
266 |
-
"hamlAutoOutputPathStyle": 0,
|
267 |
-
"hamlEscapeHTMLCharacters": 0,
|
268 |
-
"hamlNoEscapeInAttributes": 0,
|
269 |
-
"hamlOutputFormat": 2,
|
270 |
-
"hamlOutputStyle": 0,
|
271 |
-
"hamlUseCDATA": 0,
|
272 |
-
"hamlUseDoubleQuotes": 0,
|
273 |
-
"hamlUseUnixNewlines": 0,
|
274 |
-
"jadeAutoOutputPathEnabled": 1,
|
275 |
-
"jadeAutoOutputPathFilenamePattern": "*.html",
|
276 |
-
"jadeAutoOutputPathRelativePath": "",
|
277 |
-
"jadeAutoOutputPathReplace1": "",
|
278 |
-
"jadeAutoOutputPathReplace2": "",
|
279 |
-
"jadeAutoOutputPathStyle": 0,
|
280 |
-
"jadeCompileDebug": 1,
|
281 |
-
"jadeOutputStyle": 0,
|
282 |
-
"javascriptAutoOutputPathEnabled": 1,
|
283 |
-
"javascriptAutoOutputPathFilenamePattern": "*-min.js",
|
284 |
-
"javascriptAutoOutputPathRelativePath": "\/min",
|
285 |
-
"javascriptAutoOutputPathReplace1": "",
|
286 |
-
"javascriptAutoOutputPathReplace2": "",
|
287 |
-
"javascriptAutoOutputPathStyle": 2,
|
288 |
-
"javascriptCreateSourceMap": 1,
|
289 |
-
"javascriptOutputStyle": 1,
|
290 |
-
"javascriptSyntaxCheckerStyle": 1,
|
291 |
-
"jsCheckerReservedNamesString": "",
|
292 |
-
"jsHintFlags2": {
|
293 |
-
"asi": {
|
294 |
-
"active": 0,
|
295 |
-
"flagValue": -1
|
296 |
-
},
|
297 |
-
"bitwise": {
|
298 |
-
"active": 1,
|
299 |
-
"flagValue": -1
|
300 |
-
},
|
301 |
-
"boss": {
|
302 |
-
"active": 0,
|
303 |
-
"flagValue": -1
|
304 |
-
},
|
305 |
-
"browser": {
|
306 |
-
"active": 1,
|
307 |
-
"flagValue": -1
|
308 |
-
},
|
309 |
-
"browserify": {
|
310 |
-
"active": 0,
|
311 |
-
"flagValue": -1
|
312 |
-
},
|
313 |
-
"camelcase": {
|
314 |
-
"active": 0,
|
315 |
-
"flagValue": -1
|
316 |
-
},
|
317 |
-
"couch": {
|
318 |
-
"active": 0,
|
319 |
-
"flagValue": -1
|
320 |
-
},
|
321 |
-
"curly": {
|
322 |
-
"active": 1,
|
323 |
-
"flagValue": -1
|
324 |
-
},
|
325 |
-
"debug": {
|
326 |
-
"active": 0,
|
327 |
-
"flagValue": -1
|
328 |
-
},
|
329 |
-
"devel": {
|
330 |
-
"active": 0,
|
331 |
-
"flagValue": -1
|
332 |
-
},
|
333 |
-
"dojo": {
|
334 |
-
"active": 0,
|
335 |
-
"flagValue": -1
|
336 |
-
},
|
337 |
-
"elision": {
|
338 |
-
"active": 1,
|
339 |
-
"flagValue": -1
|
340 |
-
},
|
341 |
-
"eqeqeq": {
|
342 |
-
"active": 1,
|
343 |
-
"flagValue": -1
|
344 |
-
},
|
345 |
-
"eqnull": {
|
346 |
-
"active": 0,
|
347 |
-
"flagValue": -1
|
348 |
-
},
|
349 |
-
"es3": {
|
350 |
-
"active": 0,
|
351 |
-
"flagValue": -1
|
352 |
-
},
|
353 |
-
"esnext": {
|
354 |
-
"active": 0,
|
355 |
-
"flagValue": -1
|
356 |
-
},
|
357 |
-
"evil": {
|
358 |
-
"active": 0,
|
359 |
-
"flagValue": -1
|
360 |
-
},
|
361 |
-
"expr": {
|
362 |
-
"active": 0,
|
363 |
-
"flagValue": -1
|
364 |
-
},
|
365 |
-
"forin": {
|
366 |
-
"active": 0,
|
367 |
-
"flagValue": -1
|
368 |
-
},
|
369 |
-
"freeze": {
|
370 |
-
"active": 1,
|
371 |
-
"flagValue": -1
|
372 |
-
},
|
373 |
-
"funcscope": {
|
374 |
-
"active": 0,
|
375 |
-
"flagValue": -1
|
376 |
-
},
|
377 |
-
"futurehostile": {
|
378 |
-
"active": 0,
|
379 |
-
"flagValue": -1
|
380 |
-
},
|
381 |
-
"globalstrict": {
|
382 |
-
"active": 0,
|
383 |
-
"flagValue": -1
|
384 |
-
},
|
385 |
-
"immed": {
|
386 |
-
"active": 0,
|
387 |
-
"flagValue": -1
|
388 |
-
},
|
389 |
-
"indent": {
|
390 |
-
"active": 0,
|
391 |
-
"flagValue": 4
|
392 |
-
},
|
393 |
-
"iterator": {
|
394 |
-
"active": 0,
|
395 |
-
"flagValue": -1
|
396 |
-
},
|
397 |
-
"jasmine": {
|
398 |
-
"active": 0,
|
399 |
-
"flagValue": -1
|
400 |
-
},
|
401 |
-
"jquery": {
|
402 |
-
"active": 1,
|
403 |
-
"flagValue": -1
|
404 |
-
},
|
405 |
-
"lastsemic": {
|
406 |
-
"active": 0,
|
407 |
-
"flagValue": -1
|
408 |
-
},
|
409 |
-
"latedef": {
|
410 |
-
"active": 1,
|
411 |
-
"flagValue": -1
|
412 |
-
},
|
413 |
-
"laxbreak": {
|
414 |
-
"active": 0,
|
415 |
-
"flagValue": -1
|
416 |
-
},
|
417 |
-
"laxcomma": {
|
418 |
-
"active": 0,
|
419 |
-
"flagValue": -1
|
420 |
-
},
|
421 |
-
"loopfunc": {
|
422 |
-
"active": 0,
|
423 |
-
"flagValue": -1
|
424 |
-
},
|
425 |
-
"maxcomplexity": {
|
426 |
-
"active": 0,
|
427 |
-
"flagValue": 10
|
428 |
-
},
|
429 |
-
"maxdepth": {
|
430 |
-
"active": 0,
|
431 |
-
"flagValue": 3
|
432 |
-
},
|
433 |
-
"maxlen": {
|
434 |
-
"active": 0,
|
435 |
-
"flagValue": 150
|
436 |
-
},
|
437 |
-
"maxparams": {
|
438 |
-
"active": 0,
|
439 |
-
"flagValue": 3
|
440 |
-
},
|
441 |
-
"maxstatements": {
|
442 |
-
"active": 0,
|
443 |
-
"flagValue": 4
|
444 |
-
},
|
445 |
-
"mocha": {
|
446 |
-
"active": 0,
|
447 |
-
"flagValue": -1
|
448 |
-
},
|
449 |
-
"mootools": {
|
450 |
-
"active": 0,
|
451 |
-
"flagValue": -1
|
452 |
-
},
|
453 |
-
"moz": {
|
454 |
-
"active": 0,
|
455 |
-
"flagValue": -1
|
456 |
-
},
|
457 |
-
"multistr": {
|
458 |
-
"active": 0,
|
459 |
-
"flagValue": -1
|
460 |
-
},
|
461 |
-
"newcap": {
|
462 |
-
"active": 1,
|
463 |
-
"flagValue": -1
|
464 |
-
},
|
465 |
-
"noarg": {
|
466 |
-
"active": 1,
|
467 |
-
"flagValue": -1
|
468 |
-
},
|
469 |
-
"nocomma": {
|
470 |
-
"active": 0,
|
471 |
-
"flagValue": -1
|
472 |
-
},
|
473 |
-
"node": {
|
474 |
-
"active": 0,
|
475 |
-
"flagValue": -1
|
476 |
-
},
|
477 |
-
"noempty": {
|
478 |
-
"active": 0,
|
479 |
-
"flagValue": -1
|
480 |
-
},
|
481 |
-
"nonbsp": {
|
482 |
-
"active": 0,
|
483 |
-
"flagValue": -1
|
484 |
-
},
|
485 |
-
"nonew": {
|
486 |
-
"active": 1,
|
487 |
-
"flagValue": -1
|
488 |
-
},
|
489 |
-
"nonstandard": {
|
490 |
-
"active": 0,
|
491 |
-
"flagValue": -1
|
492 |
-
},
|
493 |
-
"notypeof": {
|
494 |
-
"active": 1,
|
495 |
-
"flagValue": -1
|
496 |
-
},
|
497 |
-
"noyield": {
|
498 |
-
"active": 0,
|
499 |
-
"flagValue": -1
|
500 |
-
},
|
501 |
-
"onecase": {
|
502 |
-
"active": 0,
|
503 |
-
"flagValue": -1
|
504 |
-
},
|
505 |
-
"phantom": {
|
506 |
-
"active": 0,
|
507 |
-
"flagValue": -1
|
508 |
-
},
|
509 |
-
"plusplus": {
|
510 |
-
"active": 0,
|
511 |
-
"flagValue": -1
|
512 |
-
},
|
513 |
-
"proto": {
|
514 |
-
"active": 0,
|
515 |
-
"flagValue": -1
|
516 |
-
},
|
517 |
-
"prototypejs": {
|
518 |
-
"active": 0,
|
519 |
-
"flagValue": -1
|
520 |
-
},
|
521 |
-
"qunit": {
|
522 |
-
"active": 0,
|
523 |
-
"flagValue": -1
|
524 |
-
},
|
525 |
-
"regexp": {
|
526 |
-
"active": 1,
|
527 |
-
"flagValue": -1
|
528 |
-
},
|
529 |
-
"rhino": {
|
530 |
-
"active": 0,
|
531 |
-
"flagValue": -1
|
532 |
-
},
|
533 |
-
"scripturl": {
|
534 |
-
"active": 0,
|
535 |
-
"flagValue": -1
|
536 |
-
},
|
537 |
-
"shadow": {
|
538 |
-
"active": 0,
|
539 |
-
"flagValue": -1
|
540 |
-
},
|
541 |
-
"shelljs": {
|
542 |
-
"active": 0,
|
543 |
-
"flagValue": -1
|
544 |
-
},
|
545 |
-
"singleGroups": {
|
546 |
-
"active": 0,
|
547 |
-
"flagValue": -1
|
548 |
-
},
|
549 |
-
"strict": {
|
550 |
-
"active": 0,
|
551 |
-
"flagValue": -1
|
552 |
-
},
|
553 |
-
"sub": {
|
554 |
-
"active": 0,
|
555 |
-
"flagValue": -1
|
556 |
-
},
|
557 |
-
"supernew": {
|
558 |
-
"active": 0,
|
559 |
-
"flagValue": -1
|
560 |
-
},
|
561 |
-
"typed": {
|
562 |
-
"active": 0,
|
563 |
-
"flagValue": -1
|
564 |
-
},
|
565 |
-
"undef": {
|
566 |
-
"active": 1,
|
567 |
-
"flagValue": -1
|
568 |
-
},
|
569 |
-
"unused": {
|
570 |
-
"active": 1,
|
571 |
-
"flagValue": -1
|
572 |
-
},
|
573 |
-
"varstmt": {
|
574 |
-
"active": 0,
|
575 |
-
"flagValue": -1
|
576 |
-
},
|
577 |
-
"withstmt": {
|
578 |
-
"active": 0,
|
579 |
-
"flagValue": -1
|
580 |
-
},
|
581 |
-
"worker": {
|
582 |
-
"active": 0,
|
583 |
-
"flagValue": -1
|
584 |
-
},
|
585 |
-
"wsh": {
|
586 |
-
"active": 0,
|
587 |
-
"flagValue": -1
|
588 |
-
},
|
589 |
-
"yui": {
|
590 |
-
"active": 0,
|
591 |
-
"flagValue": -1
|
592 |
-
}
|
593 |
-
},
|
594 |
-
"jsLintFlags2": {
|
595 |
-
"bitwise": {
|
596 |
-
"active": 0,
|
597 |
-
"flagValue": -1
|
598 |
-
},
|
599 |
-
"browser": {
|
600 |
-
"active": 1,
|
601 |
-
"flagValue": -1
|
602 |
-
},
|
603 |
-
"couch": {
|
604 |
-
"active": 0,
|
605 |
-
"flagValue": -1
|
606 |
-
},
|
607 |
-
"devel": {
|
608 |
-
"active": 0,
|
609 |
-
"flagValue": -1
|
610 |
-
},
|
611 |
-
"es6": {
|
612 |
-
"active": 0,
|
613 |
-
"flagValue": -1
|
614 |
-
},
|
615 |
-
"eval": {
|
616 |
-
"active": 0,
|
617 |
-
"flagValue": -1
|
618 |
-
},
|
619 |
-
"for": {
|
620 |
-
"active": 0,
|
621 |
-
"flagValue": -1
|
622 |
-
},
|
623 |
-
"maxlen": {
|
624 |
-
"active": 0,
|
625 |
-
"flagValue": 150
|
626 |
-
},
|
627 |
-
"node": {
|
628 |
-
"active": 0,
|
629 |
-
"flagValue": -1
|
630 |
-
},
|
631 |
-
"this": {
|
632 |
-
"active": 0,
|
633 |
-
"flagValue": -1
|
634 |
-
},
|
635 |
-
"white": {
|
636 |
-
"active": 0,
|
637 |
-
"flagValue": -1
|
638 |
-
}
|
639 |
-
},
|
640 |
-
"jsonAutoOutputPathEnabled": 0,
|
641 |
-
"jsonAutoOutputPathFilenamePattern": "*-min.json",
|
642 |
-
"jsonAutoOutputPathRelativePath": "",
|
643 |
-
"jsonAutoOutputPathReplace1": "",
|
644 |
-
"jsonAutoOutputPathReplace2": "",
|
645 |
-
"jsonAutoOutputPathStyle": 0,
|
646 |
-
"jsonOrderOutput": 0,
|
647 |
-
"jsonOutputStyle": 1,
|
648 |
-
"kitAutoOutputPathEnabled": 1,
|
649 |
-
"kitAutoOutputPathFilenamePattern": "*.html",
|
650 |
-
"kitAutoOutputPathRelativePath": "",
|
651 |
-
"kitAutoOutputPathReplace1": "",
|
652 |
-
"kitAutoOutputPathReplace2": "",
|
653 |
-
"kitAutoOutputPathStyle": 0,
|
654 |
-
"lessAllowInsecureImports": 0,
|
655 |
-
"lessAutoOutputPathEnabled": 1,
|
656 |
-
"lessAutoOutputPathFilenamePattern": "*.css",
|
657 |
-
"lessAutoOutputPathRelativePath": "..\/css",
|
658 |
-
"lessAutoOutputPathReplace1": "less",
|
659 |
-
"lessAutoOutputPathReplace2": "css",
|
660 |
-
"lessAutoOutputPathStyle": 2,
|
661 |
-
"lessCreateSourceMap": 0,
|
662 |
-
"lessDisableJavascript": 0,
|
663 |
-
"lessIeCompatibility": 1,
|
664 |
-
"lessOutputStyle": 0,
|
665 |
-
"lessRelativeURLS": 0,
|
666 |
-
"lessStrictImports": 0,
|
667 |
-
"lessStrictMath": 0,
|
668 |
-
"lessStrictUnits": 0,
|
669 |
-
"markdownAutoOutputPathEnabled": 1,
|
670 |
-
"markdownAutoOutputPathFilenamePattern": "*.html",
|
671 |
-
"markdownAutoOutputPathRelativePath": "",
|
672 |
-
"markdownAutoOutputPathReplace1": "",
|
673 |
-
"markdownAutoOutputPathReplace2": "",
|
674 |
-
"markdownAutoOutputPathStyle": 0,
|
675 |
-
"markdownCriticStyle": 0,
|
676 |
-
"markdownEnableFootnotes": 1,
|
677 |
-
"markdownEnableLabels": 1,
|
678 |
-
"markdownEnableSmartQuotes": 1,
|
679 |
-
"markdownEscapeLineBreaks": 0,
|
680 |
-
"markdownMaskEmailAddresses": 1,
|
681 |
-
"markdownOutputFormat": 0,
|
682 |
-
"markdownOutputStyle": 0,
|
683 |
-
"markdownParseMetadata": 1,
|
684 |
-
"markdownProcessHTML": 0,
|
685 |
-
"markdownRandomFootnoteNumbers": 0,
|
686 |
-
"markdownUseCompatibilityMode": 0,
|
687 |
-
"reloadFileURLs": 0,
|
688 |
-
"sassAutoOutputPathEnabled": 1,
|
689 |
-
"sassAutoOutputPathFilenamePattern": "*.css",
|
690 |
-
"sassAutoOutputPathRelativePath": "..\/css",
|
691 |
-
"sassAutoOutputPathReplace1": "sass",
|
692 |
-
"sassAutoOutputPathReplace2": "css",
|
693 |
-
"sassAutoOutputPathStyle": 2,
|
694 |
-
"sassCreateSourceMap": 0,
|
695 |
-
"sassDebugStyle": 0,
|
696 |
-
"sassDecimalPrecision": 10,
|
697 |
-
"sassOutputStyle": 0,
|
698 |
-
"sassUseLibsass": 0,
|
699 |
-
"shouldRunAutoprefixer": 0,
|
700 |
-
"shouldRunBless": 0,
|
701 |
-
"skippedItemsString": ".svn, .git, .hg, log, _logs, _cache, cache, logs, node_modules",
|
702 |
-
"slimAutoOutputPathEnabled": 1,
|
703 |
-
"slimAutoOutputPathFilenamePattern": "*.html",
|
704 |
-
"slimAutoOutputPathRelativePath": "",
|
705 |
-
"slimAutoOutputPathReplace1": "",
|
706 |
-
"slimAutoOutputPathReplace2": "",
|
707 |
-
"slimAutoOutputPathStyle": 0,
|
708 |
-
"slimCompileOnly": 0,
|
709 |
-
"slimLogicless": 0,
|
710 |
-
"slimOutputFormat": 0,
|
711 |
-
"slimOutputStyle": 1,
|
712 |
-
"slimRailsCompatible": 0,
|
713 |
-
"stylusAutoOutputPathEnabled": 1,
|
714 |
-
"stylusAutoOutputPathFilenamePattern": "*.css",
|
715 |
-
"stylusAutoOutputPathRelativePath": "..\/css",
|
716 |
-
"stylusAutoOutputPathReplace1": "stylus",
|
717 |
-
"stylusAutoOutputPathReplace2": "css",
|
718 |
-
"stylusAutoOutputPathStyle": 2,
|
719 |
-
"stylusCreateSourceMap": 0,
|
720 |
-
"stylusDebugStyle": 0,
|
721 |
-
"stylusImportCSS": 0,
|
722 |
-
"stylusOutputStyle": 0,
|
723 |
-
"stylusResolveRelativeURLS": 0,
|
724 |
-
"typescriptAutoOutputPathEnabled": 1,
|
725 |
-
"typescriptAutoOutputPathFilenamePattern": "*.js",
|
726 |
-
"typescriptAutoOutputPathRelativePath": "\/js",
|
727 |
-
"typescriptAutoOutputPathReplace1": "",
|
728 |
-
"typescriptAutoOutputPathReplace2": "",
|
729 |
-
"typescriptAutoOutputPathStyle": 2,
|
730 |
-
"typescriptCreateDeclarationFile": 0,
|
731 |
-
"typescriptCreateSourceMap": 0,
|
732 |
-
"typescriptJSXMode": 0,
|
733 |
-
"typescriptMinifyOutput": 0,
|
734 |
-
"typescriptModuleResolutionType": 0,
|
735 |
-
"typescriptModuleType": 0,
|
736 |
-
"typescriptNoImplicitAny": 0,
|
737 |
-
"typescriptPreserveConstEnums": 0,
|
738 |
-
"typescriptRemoveComments": 0,
|
739 |
-
"typescriptSuppressImplicitAnyIndexErrors": 0,
|
740 |
-
"typescriptTargetECMAVersion": 0,
|
741 |
-
"uglifyDefinesString": "",
|
742 |
-
"uglifyFlags2": {
|
743 |
-
"ascii-only": {
|
744 |
-
"active": 0,
|
745 |
-
"flagValue": -1
|
746 |
-
},
|
747 |
-
"bare-returns": {
|
748 |
-
"active": 0,
|
749 |
-
"flagValue": -1
|
750 |
-
},
|
751 |
-
"booleans": {
|
752 |
-
"active": 1,
|
753 |
-
"flagValue": -1
|
754 |
-
},
|
755 |
-
"bracketize": {
|
756 |
-
"active": 0,
|
757 |
-
"flagValue": -1
|
758 |
-
},
|
759 |
-
"cascade": {
|
760 |
-
"active": 1,
|
761 |
-
"flagValue": -1
|
762 |
-
},
|
763 |
-
"comments": {
|
764 |
-
"active": 1,
|
765 |
-
"flagValue": -1
|
766 |
-
},
|
767 |
-
"comparisons": {
|
768 |
-
"active": 1,
|
769 |
-
"flagValue": -1
|
770 |
-
},
|
771 |
-
"compress": {
|
772 |
-
"active": 1,
|
773 |
-
"flagValue": -1
|
774 |
-
},
|
775 |
-
"conditionals": {
|
776 |
-
"active": 1,
|
777 |
-
"flagValue": -1
|
778 |
-
},
|
779 |
-
"dead_code": {
|
780 |
-
"active": 0,
|
781 |
-
"flagValue": -1
|
782 |
-
},
|
783 |
-
"drop_console": {
|
784 |
-
"active": 0,
|
785 |
-
"flagValue": -1
|
786 |
-
},
|
787 |
-
"drop_debugger": {
|
788 |
-
"active": 1,
|
789 |
-
"flagValue": -1
|
790 |
-
},
|
791 |
-
"eval": {
|
792 |
-
"active": 0,
|
793 |
-
"flagValue": -1
|
794 |
-
},
|
795 |
-
"evaluate": {
|
796 |
-
"active": 1,
|
797 |
-
"flagValue": -1
|
798 |
-
},
|
799 |
-
"hoist_funs": {
|
800 |
-
"active": 1,
|
801 |
-
"flagValue": -1
|
802 |
-
},
|
803 |
-
"hoist_vars": {
|
804 |
-
"active": 0,
|
805 |
-
"flagValue": -1
|
806 |
-
},
|
807 |
-
"if_return": {
|
808 |
-
"active": 1,
|
809 |
-
"flagValue": -1
|
810 |
-
},
|
811 |
-
"indent-level": {
|
812 |
-
"active": 0,
|
813 |
-
"flagValue": 4
|
814 |
-
},
|
815 |
-
"indent-start": {
|
816 |
-
"active": 0,
|
817 |
-
"flagValue": 0
|
818 |
-
},
|
819 |
-
"inline-script": {
|
820 |
-
"active": 0,
|
821 |
-
"flagValue": -1
|
822 |
-
},
|
823 |
-
"join_vars": {
|
824 |
-
"active": 1,
|
825 |
-
"flagValue": -1
|
826 |
-
},
|
827 |
-
"keep_fargs": {
|
828 |
-
"active": 0,
|
829 |
-
"flagValue": -1
|
830 |
-
},
|
831 |
-
"keep_fnames": {
|
832 |
-
"active": 0,
|
833 |
-
"flagValue": -1
|
834 |
-
},
|
835 |
-
"loops": {
|
836 |
-
"active": 1,
|
837 |
-
"flagValue": -1
|
838 |
-
},
|
839 |
-
"mangle": {
|
840 |
-
"active": 1,
|
841 |
-
"flagValue": -1
|
842 |
-
},
|
843 |
-
"max-line-len": {
|
844 |
-
"active": 1,
|
845 |
-
"flagValue": 32000
|
846 |
-
},
|
847 |
-
"negate_iife": {
|
848 |
-
"active": 1,
|
849 |
-
"flagValue": -1
|
850 |
-
},
|
851 |
-
"properties": {
|
852 |
-
"active": 1,
|
853 |
-
"flagValue": -1
|
854 |
-
},
|
855 |
-
"pure_getters": {
|
856 |
-
"active": 0,
|
857 |
-
"flagValue": -1
|
858 |
-
},
|
859 |
-
"quote-keys": {
|
860 |
-
"active": 0,
|
861 |
-
"flagValue": -1
|
862 |
-
},
|
863 |
-
"screw-ie8": {
|
864 |
-
"active": 0,
|
865 |
-
"flagValue": -1
|
866 |
-
},
|
867 |
-
"semicolons": {
|
868 |
-
"active": 1,
|
869 |
-
"flagValue": -1
|
870 |
-
},
|
871 |
-
"sequences": {
|
872 |
-
"active": 1,
|
873 |
-
"flagValue": -1
|
874 |
-
},
|
875 |
-
"sort": {
|
876 |
-
"active": 0,
|
877 |
-
"flagValue": -1
|
878 |
-
},
|
879 |
-
"space-colon": {
|
880 |
-
"active": 1,
|
881 |
-
"flagValue": -1
|
882 |
-
},
|
883 |
-
"toplevel": {
|
884 |
-
"active": 0,
|
885 |
-
"flagValue": -1
|
886 |
-
},
|
887 |
-
"unsafe": {
|
888 |
-
"active": 0,
|
889 |
-
"flagValue": -1
|
890 |
-
},
|
891 |
-
"unused": {
|
892 |
-
"active": 0,
|
893 |
-
"flagValue": -1
|
894 |
-
},
|
895 |
-
"warnings": {
|
896 |
-
"active": 0,
|
897 |
-
"flagValue": -1
|
898 |
-
},
|
899 |
-
"width": {
|
900 |
-
"active": 1,
|
901 |
-
"flagValue": 80
|
902 |
-
}
|
903 |
-
},
|
904 |
-
"uglifyReservedNamesString": "$",
|
905 |
-
"websiteRelativeRoot": ""
|
906 |
-
},
|
907 |
-
"settingsFileVersion": "2"
|
908 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: jameskoster, woothemes
|
|
3 |
Tags: woocommerce, ecommerce, storefront, sticky
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.3.1
|
6 |
-
Stable tag: 1.1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -35,5 +35,15 @@ It's very simple, most of the core styles are loaded regardless. You'll just nee
|
|
35 |
|
36 |
== Changelog ==
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
= 1.0.0 - 10.30.2015 =
|
39 |
Initial release.
|
3 |
Tags: woocommerce, ecommerce, storefront, sticky
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.3.1
|
6 |
+
Stable tag: 1.1.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
35 |
|
36 |
== Changelog ==
|
37 |
|
38 |
+
= 1.1.1 - 03.08.2016 =
|
39 |
+
* Tweak - Storefront 2.0.0 compatibility.
|
40 |
+
* Tweak - General code tidy up.
|
41 |
+
|
42 |
+
= 1.1.0 - 11.06.2015 =
|
43 |
+
* New - Now displays the product rating as well. Kudos @BurlesonBrad.
|
44 |
+
* New - Now works for variable products.
|
45 |
+
* Tweak - Button now uses the `.alt` class to stand out more.
|
46 |
+
* Tweak - Minor style adjustments.
|
47 |
+
|
48 |
= 1.0.0 - 10.30.2015 =
|
49 |
Initial release.
|
storefront-sticky-add-to-cart.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Storefront Sticky Add to Cart
|
4 |
* Plugin URI: https://wordpress.org/plugins/storefront-sticky-add-to-cart/
|
5 |
* Description: Adds a sticky add-to-cart bar in single product pages that is revealed as the user scrolls down the page.
|
6 |
-
* Version: 1.1.
|
7 |
* Author: WooThemes
|
8 |
* Author URI: http://woothemes.com/
|
9 |
* Requires at least: 4.0.0
|
@@ -17,7 +17,9 @@
|
|
17 |
* @author James Koster
|
18 |
*/
|
19 |
|
20 |
-
if ( ! defined( 'ABSPATH' ) )
|
|
|
|
|
21 |
|
22 |
|
23 |
/**
|
@@ -26,11 +28,11 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
26 |
* @since 1.0.0
|
27 |
* @return object Storefront_Sticky_Add_to_Cart
|
28 |
*/
|
29 |
-
function
|
30 |
return Storefront_Sticky_Add_to_Cart::instance();
|
31 |
} // End Storefront_Sticky_Add_to_Cart()
|
32 |
|
33 |
-
|
34 |
|
35 |
/**
|
36 |
* Main Storefront_Sticky_Add_to_Cart Class
|
@@ -43,6 +45,7 @@ Storefront_Sticky_Add_to_Cart();
|
|
43 |
final class Storefront_Sticky_Add_to_Cart {
|
44 |
/**
|
45 |
* Storefront_Sticky_Add_to_Cart The single instance of Storefront_Sticky_Add_to_Cart.
|
|
|
46 |
* @var object
|
47 |
* @access private
|
48 |
* @since 1.0.0
|
@@ -51,6 +54,7 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
51 |
|
52 |
/**
|
53 |
* The token.
|
|
|
54 |
* @var string
|
55 |
* @access public
|
56 |
* @since 1.0.0
|
@@ -59,15 +63,16 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
59 |
|
60 |
/**
|
61 |
* The version number.
|
|
|
62 |
* @var string
|
63 |
* @access public
|
64 |
* @since 1.0.0
|
65 |
*/
|
66 |
public $version;
|
67 |
|
68 |
-
// Admin - Start
|
69 |
/**
|
70 |
* The admin object.
|
|
|
71 |
* @var object
|
72 |
* @access public
|
73 |
* @since 1.0.0
|
@@ -76,6 +81,7 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
76 |
|
77 |
/**
|
78 |
* Constructor function.
|
|
|
79 |
* @access public
|
80 |
* @since 1.0.0
|
81 |
* @return void
|
@@ -84,7 +90,7 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
84 |
$this->token = 'storefront-sticky-add-to-cart';
|
85 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
86 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
87 |
-
$this->version = '1.1.
|
88 |
|
89 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
90 |
|
@@ -106,13 +112,16 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
106 |
* @return Main Storefront_Sticky_Add_to_Cart instance
|
107 |
*/
|
108 |
public static function instance() {
|
109 |
-
if ( is_null( self::$_instance ) )
|
110 |
self::$_instance = new self();
|
|
|
|
|
111 |
return self::$_instance;
|
112 |
} // End instance()
|
113 |
|
114 |
/**
|
115 |
* Load the localisation file.
|
|
|
116 |
* @access public
|
117 |
* @since 1.0.0
|
118 |
* @return void
|
@@ -127,7 +136,7 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
127 |
* @since 1.0.0
|
128 |
*/
|
129 |
public function __clone() {
|
130 |
-
_doing_it_wrong( __FUNCTION__,
|
131 |
}
|
132 |
|
133 |
/**
|
@@ -136,17 +145,18 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
136 |
* @since 1.0.0
|
137 |
*/
|
138 |
public function __wakeup() {
|
139 |
-
_doing_it_wrong( __FUNCTION__,
|
140 |
}
|
141 |
|
142 |
/**
|
143 |
* Plugin page links
|
144 |
*
|
|
|
145 |
* @since 1.0.0
|
146 |
*/
|
147 |
public function ssatc_plugin_links( $links ) {
|
148 |
$plugin_links = array(
|
149 |
-
'<a href="https://wordpress.org/support/plugin/storefront-sticky-add-to-cart">' .
|
150 |
);
|
151 |
|
152 |
return array_merge( $plugin_links, $links );
|
@@ -155,6 +165,7 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
155 |
/**
|
156 |
* Installation.
|
157 |
* Runs on activation. Logs the version number.
|
|
|
158 |
* @access public
|
159 |
* @since 1.0.0
|
160 |
* @return void
|
@@ -165,6 +176,7 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
165 |
|
166 |
/**
|
167 |
* Log the plugin version number.
|
|
|
168 |
* @access private
|
169 |
* @since 1.0.0
|
170 |
* @return void
|
@@ -176,6 +188,7 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
176 |
|
177 |
/**
|
178 |
* Setup all the things.
|
|
|
179 |
* @return void
|
180 |
*/
|
181 |
public function ssatc_setup() {
|
@@ -185,6 +198,7 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
185 |
|
186 |
/**
|
187 |
* Enqueue CSS and custom styles.
|
|
|
188 |
* @since 1.0.0
|
189 |
* @return void
|
190 |
*/
|
@@ -196,26 +210,16 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
196 |
wp_register_script( 'waypoints-init', plugins_url( '/assets/js/waypoints.init.min.js', __FILE__ ), array( 'jquery' ) );
|
197 |
wp_register_script( 'ssatc-variable', plugins_url( '/assets/js/variable.min.js', __FILE__ ), array( 'jquery' ) );
|
198 |
|
199 |
-
// If Storefront is the active parent theme, add some styles
|
200 |
-
if ( 'Storefront'
|
201 |
-
|
202 |
-
$content_bg_color = storefront_sanitize_hex_color( get_theme_mod( 'sd_content_background_color' ) );
|
203 |
-
$content_frame = get_theme_mod( 'sd_fixed_width' );
|
204 |
-
|
205 |
-
|
206 |
-
if ( $content_bg_color && 'true' == $content_frame && class_exists( 'Storefront_Designer' ) ) {
|
207 |
-
$bg_color = str_replace( '#', '', $content_bg_color );
|
208 |
-
} else {
|
209 |
-
$bg_color = str_replace( '#', '', get_theme_mod( 'background_color' ) );
|
210 |
-
}
|
211 |
-
|
212 |
-
$accent_color = storefront_sanitize_hex_color( get_theme_mod( 'storefront_accent_color', apply_filters( 'storefront_default_accent_color', '#96588a' ) ) );
|
213 |
-
$text_color = storefront_sanitize_hex_color( get_theme_mod( 'storefront_text_color', apply_filters( 'storefront_default_text_color', '#60646c' ) ) );
|
214 |
|
|
|
|
|
|
|
215 |
|
216 |
$ssatc_style = '
|
217 |
.ssatc-sticky-add-to-cart {
|
218 |
-
background-color:
|
219 |
color: ' . $text_color . ';
|
220 |
}
|
221 |
|
@@ -236,6 +240,7 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
236 |
|
237 |
/**
|
238 |
* Display the current product image
|
|
|
239 |
* @return void
|
240 |
*/
|
241 |
public function ssatc_product_image() {
|
@@ -243,60 +248,60 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
243 |
|
244 |
if ( has_post_thumbnail() ) {
|
245 |
|
246 |
-
$image_title
|
247 |
-
$image
|
248 |
'title' => $image_title,
|
249 |
-
'alt' => $image_title
|
250 |
-
|
251 |
|
252 |
-
echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '%s', $image ), $post->ID );
|
253 |
|
254 |
} else {
|
255 |
|
256 |
-
echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '<img src="%s" alt="%s" />', wc_placeholder_img_src(), __( 'Placeholder', 'storefront-sticky-add-to-cart' ) ), $post->ID );
|
257 |
|
258 |
}
|
259 |
}
|
260 |
|
261 |
/**
|
262 |
* Display the add to cart bar
|
|
|
263 |
* @return void
|
264 |
*/
|
265 |
function ssatc_add_to_cart_bar() {
|
266 |
global $product;
|
267 |
|
268 |
-
// Only execute if WooCommerce is installed
|
269 |
if ( class_exists( 'WooCommerce' ) ) {
|
270 |
|
271 |
-
// And if we're on a product page
|
272 |
if ( is_product() ) {
|
273 |
-
$_product
|
274 |
-
$availability
|
275 |
-
$ssatc
|
276 |
-
$availability_html
|
277 |
|
278 |
-
// And if the product isn't variable or grouped
|
279 |
-
|
280 |
-
|
281 |
-
wp_enqueue_script( 'waypoints-init' );
|
282 |
|
283 |
?>
|
284 |
<section class="ssatc-sticky-add-to-cart animated">
|
285 |
<div class="col-full">
|
286 |
<?php
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
?>
|
301 |
</div>
|
302 |
</section>
|
@@ -304,5 +309,4 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
304 |
}
|
305 |
}
|
306 |
}
|
307 |
-
|
308 |
} // End Class
|
3 |
* Plugin Name: Storefront Sticky Add to Cart
|
4 |
* Plugin URI: https://wordpress.org/plugins/storefront-sticky-add-to-cart/
|
5 |
* Description: Adds a sticky add-to-cart bar in single product pages that is revealed as the user scrolls down the page.
|
6 |
+
* Version: 1.1.1
|
7 |
* Author: WooThemes
|
8 |
* Author URI: http://woothemes.com/
|
9 |
* Requires at least: 4.0.0
|
17 |
* @author James Koster
|
18 |
*/
|
19 |
|
20 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
21 |
+
exit; // Exit if accessed directly.
|
22 |
+
}
|
23 |
|
24 |
|
25 |
/**
|
28 |
* @since 1.0.0
|
29 |
* @return object Storefront_Sticky_Add_to_Cart
|
30 |
*/
|
31 |
+
function storefront_sticky_add_to_cart() {
|
32 |
return Storefront_Sticky_Add_to_Cart::instance();
|
33 |
} // End Storefront_Sticky_Add_to_Cart()
|
34 |
|
35 |
+
storefront_sticky_add_to_cart();
|
36 |
|
37 |
/**
|
38 |
* Main Storefront_Sticky_Add_to_Cart Class
|
45 |
final class Storefront_Sticky_Add_to_Cart {
|
46 |
/**
|
47 |
* Storefront_Sticky_Add_to_Cart The single instance of Storefront_Sticky_Add_to_Cart.
|
48 |
+
*
|
49 |
* @var object
|
50 |
* @access private
|
51 |
* @since 1.0.0
|
54 |
|
55 |
/**
|
56 |
* The token.
|
57 |
+
*
|
58 |
* @var string
|
59 |
* @access public
|
60 |
* @since 1.0.0
|
63 |
|
64 |
/**
|
65 |
* The version number.
|
66 |
+
*
|
67 |
* @var string
|
68 |
* @access public
|
69 |
* @since 1.0.0
|
70 |
*/
|
71 |
public $version;
|
72 |
|
|
|
73 |
/**
|
74 |
* The admin object.
|
75 |
+
*
|
76 |
* @var object
|
77 |
* @access public
|
78 |
* @since 1.0.0
|
81 |
|
82 |
/**
|
83 |
* Constructor function.
|
84 |
+
*
|
85 |
* @access public
|
86 |
* @since 1.0.0
|
87 |
* @return void
|
90 |
$this->token = 'storefront-sticky-add-to-cart';
|
91 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
92 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
93 |
+
$this->version = '1.1.1';
|
94 |
|
95 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
96 |
|
112 |
* @return Main Storefront_Sticky_Add_to_Cart instance
|
113 |
*/
|
114 |
public static function instance() {
|
115 |
+
if ( is_null( self::$_instance ) ) {
|
116 |
self::$_instance = new self();
|
117 |
+
}
|
118 |
+
|
119 |
return self::$_instance;
|
120 |
} // End instance()
|
121 |
|
122 |
/**
|
123 |
* Load the localisation file.
|
124 |
+
*
|
125 |
* @access public
|
126 |
* @since 1.0.0
|
127 |
* @return void
|
136 |
* @since 1.0.0
|
137 |
*/
|
138 |
public function __clone() {
|
139 |
+
_doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?' ), '1.0.0' );
|
140 |
}
|
141 |
|
142 |
/**
|
145 |
* @since 1.0.0
|
146 |
*/
|
147 |
public function __wakeup() {
|
148 |
+
_doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?' ), '1.0.0' );
|
149 |
}
|
150 |
|
151 |
/**
|
152 |
* Plugin page links
|
153 |
*
|
154 |
+
* @param array $links the plugin action links.
|
155 |
* @since 1.0.0
|
156 |
*/
|
157 |
public function ssatc_plugin_links( $links ) {
|
158 |
$plugin_links = array(
|
159 |
+
'<a href="https://wordpress.org/support/plugin/storefront-sticky-add-to-cart">' . esc_attr__( 'Support', 'storefront-sticky-add-to-cart' ) . '</a>',
|
160 |
);
|
161 |
|
162 |
return array_merge( $plugin_links, $links );
|
165 |
/**
|
166 |
* Installation.
|
167 |
* Runs on activation. Logs the version number.
|
168 |
+
*
|
169 |
* @access public
|
170 |
* @since 1.0.0
|
171 |
* @return void
|
176 |
|
177 |
/**
|
178 |
* Log the plugin version number.
|
179 |
+
*
|
180 |
* @access private
|
181 |
* @since 1.0.0
|
182 |
* @return void
|
188 |
|
189 |
/**
|
190 |
* Setup all the things.
|
191 |
+
*
|
192 |
* @return void
|
193 |
*/
|
194 |
public function ssatc_setup() {
|
198 |
|
199 |
/**
|
200 |
* Enqueue CSS and custom styles.
|
201 |
+
*
|
202 |
* @since 1.0.0
|
203 |
* @return void
|
204 |
*/
|
210 |
wp_register_script( 'waypoints-init', plugins_url( '/assets/js/waypoints.init.min.js', __FILE__ ), array( 'jquery' ) );
|
211 |
wp_register_script( 'ssatc-variable', plugins_url( '/assets/js/variable.min.js', __FILE__ ), array( 'jquery' ) );
|
212 |
|
213 |
+
// If Storefront is the active parent theme, add some styles.
|
214 |
+
if ( 'Storefront' === $theme->name || 'storefront' === $theme->template ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
|
216 |
+
$bg_color = storefront_get_content_background_color();
|
217 |
+
$accent_color = get_theme_mod( 'storefront_accent_color' );
|
218 |
+
$text_color = get_theme_mod( 'storefront_text_color' );
|
219 |
|
220 |
$ssatc_style = '
|
221 |
.ssatc-sticky-add-to-cart {
|
222 |
+
background-color: ' . $bg_color . ';
|
223 |
color: ' . $text_color . ';
|
224 |
}
|
225 |
|
240 |
|
241 |
/**
|
242 |
* Display the current product image
|
243 |
+
*
|
244 |
* @return void
|
245 |
*/
|
246 |
public function ssatc_product_image() {
|
248 |
|
249 |
if ( has_post_thumbnail() ) {
|
250 |
|
251 |
+
$image_title = esc_attr( get_the_title( get_post_thumbnail_id() ) );
|
252 |
+
$image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_catalog' ), array(
|
253 |
'title' => $image_title,
|
254 |
+
'alt' => $image_title,
|
255 |
+
) );
|
256 |
|
257 |
+
echo wp_kses_post( apply_filters( 'woocommerce_single_product_image_html', sprintf( '%s', $image ), $post->ID ) );
|
258 |
|
259 |
} else {
|
260 |
|
261 |
+
echo wp_kses_post( apply_filters( 'woocommerce_single_product_image_html', sprintf( '<img src="%s" alt="%s" />', wc_placeholder_img_src(), __( 'Placeholder', 'storefront-sticky-add-to-cart' ) ), $post->ID ) );
|
262 |
|
263 |
}
|
264 |
}
|
265 |
|
266 |
/**
|
267 |
* Display the add to cart bar
|
268 |
+
*
|
269 |
* @return void
|
270 |
*/
|
271 |
function ssatc_add_to_cart_bar() {
|
272 |
global $product;
|
273 |
|
274 |
+
// Only execute if WooCommerce is installed.
|
275 |
if ( class_exists( 'WooCommerce' ) ) {
|
276 |
|
277 |
+
// And if we're on a product page.
|
278 |
if ( is_product() ) {
|
279 |
+
$_product = new WC_Product( $product->ID );
|
280 |
+
$availability = $product->get_availability();
|
281 |
+
$ssatc = new Storefront_Sticky_Add_to_Cart();
|
282 |
+
$availability_html = empty( $availability['availability'] ) ? '' : '<span class="stock ' . esc_attr( $availability['class'] ) . '">' . esc_html( $availability['availability'] ) . '</span>';
|
283 |
|
284 |
+
// And if the product isn't variable or grouped.
|
285 |
+
wp_enqueue_script( 'waypoints' );
|
286 |
+
wp_enqueue_script( 'waypoints-init' );
|
|
|
287 |
|
288 |
?>
|
289 |
<section class="ssatc-sticky-add-to-cart animated">
|
290 |
<div class="col-full">
|
291 |
<?php
|
292 |
+
$ssatc->ssatc_product_image();
|
293 |
+
echo '<div class="ssatc-content">';
|
294 |
+
echo esc_attr__( 'You\'re viewing:', 'storefront-sticky-add-to-cart' ) . ' <strong>' . get_the_title() . '</strong><br />';
|
295 |
+
echo '<span class="price">' . wp_kses_post( $product->get_price_html() ) . '</span> ' . wp_kses_post( $product->get_rating_html() );
|
296 |
+
echo wp_kses_post( apply_filters( 'woocommerce_stock_html', $availability_html, $availability['availability'], $product ) );
|
297 |
+
|
298 |
+
if ( $product->is_type( 'simple' ) ) {
|
299 |
+
echo '<br /><a href="' . esc_url( $product->add_to_cart_url() ) . '" class="button alt">' . esc_attr( $product->single_add_to_cart_text() ) . '</a>';
|
300 |
+
} elseif ( $product->is_type( 'variable' ) ) {
|
301 |
+
echo '<br /><a class="button alt variable">' . esc_attr__( 'Select options', 'storefront-sticky-add-to-cart' ) . '</a>';
|
302 |
+
wp_enqueue_script( 'ssatc-variable' );
|
303 |
+
}
|
304 |
+
echo '</div>';
|
305 |
?>
|
306 |
</div>
|
307 |
</section>
|
309 |
}
|
310 |
}
|
311 |
}
|
|
|
312 |
} // End Class
|