Storefront Product Pagination - Version 1.1.0

Version Description

  • 05.15.2015 =
  • New - It's now possible to only display links to products that share categories with the one being viewed.
  • Fix - Some animation flicker bugs.
Download this release

Release Info

Developer jameskoster
Plugin Icon 128x128 Storefront Product Pagination
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.1 to 1.1.0

assets/css/style.css CHANGED
@@ -8,8 +8,7 @@
8
 
9
  @media screen and (min-width: 768px) {
10
  .storefront-single-product-pagination {
11
- z-index: 999999;
12
- position: relative; }
13
  .storefront-single-product-pagination h2 {
14
  clip: rect(1px 1px 1px 1px);
15
  /* IE6, IE7 */
@@ -22,7 +21,8 @@
22
  float: none;
23
  background-color: #FCFCFC;
24
  padding: 1em;
25
- top: 45%; }
 
26
  .storefront-single-product-pagination a img {
27
  width: 4.236em;
28
  opacity: 0.5;
8
 
9
  @media screen and (min-width: 768px) {
10
  .storefront-single-product-pagination {
11
+ z-index: 999999; }
 
12
  .storefront-single-product-pagination h2 {
13
  clip: rect(1px 1px 1px 1px);
14
  /* IE6, IE7 */
21
  float: none;
22
  background-color: #FCFCFC;
23
  padding: 1em;
24
+ top: 45%;
25
+ z-index: 999999; }
26
  .storefront-single-product-pagination a img {
27
  width: 4.236em;
28
  opacity: 0.5;
assets/css/style.scss CHANGED
@@ -24,7 +24,6 @@
24
  // Styles for desktop
25
  .storefront-single-product-pagination {
26
  z-index: 999999;
27
- position: relative;
28
 
29
  h2 {
30
  @include screen_reader_text;
@@ -38,6 +37,7 @@
38
  background-color: $body-background;
39
  padding: 1em;
40
  top: 45%;
 
41
 
42
  img {
43
  width: 4.236em;
24
  // Styles for desktop
25
  .storefront-single-product-pagination {
26
  z-index: 999999;
 
27
 
28
  h2 {
29
  @include screen_reader_text;
37
  background-color: $body-background;
38
  padding: 1em;
39
  top: 45%;
40
+ z-index: 999999;
41
 
42
  img {
43
  width: 4.236em;
changelog.txt DELETED
@@ -1,7 +0,0 @@
1
- *** Storefront Product Pagination Changelog ***
2
-
3
- 2015.04.27 - version 1.0.1
4
- * Fix - z-index on buttons
5
-
6
- 2015.04.01 - version 1.0.0
7
- * Initial release
 
 
 
 
 
 
 
config.codekit DELETED
@@ -1,896 +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": "18493",
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\/customizer.js": {
31
- "fileType": 64,
32
- "ignore": 0,
33
- "ignoreWasSetByUser": 0,
34
- "inputAbbreviatedPath": "\/assets\/js\/customizer.js",
35
- "outputAbbreviatedPath": "\/assets\/js\/customizer.min.js",
36
- "outputPathIsOutsideProject": 0,
37
- "outputPathIsSetByUser": 1,
38
- "outputStyle": 1,
39
- "syntaxCheckerStyle": 1
40
- },
41
- "\/assets\/js\/customizer.min.js": {
42
- "fileType": 64,
43
- "ignore": 1,
44
- "ignoreWasSetByUser": 0,
45
- "inputAbbreviatedPath": "\/assets\/js\/customizer.min.js",
46
- "outputAbbreviatedPath": "\/assets\/js\/min\/customizer.min-min.js",
47
- "outputPathIsOutsideProject": 0,
48
- "outputPathIsSetByUser": 0,
49
- "outputStyle": 1,
50
- "syntaxCheckerStyle": 1
51
- },
52
- "\/index.php": {
53
- "fileType": 8192,
54
- "ignore": 0,
55
- "ignoreWasSetByUser": 0,
56
- "inputAbbreviatedPath": "\/index.php",
57
- "outputAbbreviatedPath": "No Output Path",
58
- "outputPathIsOutsideProject": 0,
59
- "outputPathIsSetByUser": 0
60
- },
61
- "\/storefront-product-pagination.php": {
62
- "fileType": 8192,
63
- "ignore": 0,
64
- "ignoreWasSetByUser": 0,
65
- "inputAbbreviatedPath": "\/storefront-product-pagination.php",
66
- "outputAbbreviatedPath": "No Output Path",
67
- "outputPathIsOutsideProject": 0,
68
- "outputPathIsSetByUser": 0
69
- }
70
- },
71
- "hooks": [
72
- ],
73
- "lastSavedByUser": "James Koster",
74
- "manualImportLinks": {
75
- },
76
- "projectAttributes": {
77
- "bowerAbbreviatedPath": "",
78
- "displayValue": "storefront-product-pagination",
79
- "displayValueWasSetByUser": 0,
80
- "iconImageName": "harddrive_orange"
81
- },
82
- "projectSettings": {
83
- "alwaysUseExternalServer": 0,
84
- "animateCSSInjections": 1,
85
- "autoApplyPSLanguageSettingsStyle": 0,
86
- "autoprefixerBrowserString": "> 1%, last 2 versions, Firefox ESR, Opera 12.1",
87
- "autoSyncProjectSettingsFile": 1,
88
- "browserRefreshDelay": 0,
89
- "coffeeAutoOutputPathEnabled": 1,
90
- "coffeeAutoOutputPathFilenamePattern": "*.js",
91
- "coffeeAutoOutputPathRelativePath": "",
92
- "coffeeAutoOutputPathReplace1": "",
93
- "coffeeAutoOutputPathReplace2": "",
94
- "coffeeAutoOutputPathStyle": 0,
95
- "coffeeCreateSourceMap": 0,
96
- "coffeeLintFlags2": {
97
- "arrow_spacing": {
98
- "active": 0,
99
- "flagValue": -1
100
- },
101
- "camel_case_classes": {
102
- "active": 1,
103
- "flagValue": -1
104
- },
105
- "colon_assignment_spacing": {
106
- "active": 0,
107
- "flagValue": 1
108
- },
109
- "cyclomatic_complexity": {
110
- "active": 0,
111
- "flagValue": 10
112
- },
113
- "duplicate_key": {
114
- "active": 1,
115
- "flagValue": -1
116
- },
117
- "empty_constructor_needs_parens": {
118
- "active": 0,
119
- "flagValue": -1
120
- },
121
- "ensure_comprehensions": {
122
- "active": 1,
123
- "flagValue": -1
124
- },
125
- "indentation": {
126
- "active": 1,
127
- "flagValue": 2
128
- },
129
- "line_endings": {
130
- "active": 0,
131
- "flagValue": 0
132
- },
133
- "max_line_length": {
134
- "active": 0,
135
- "flagValue": 150
136
- },
137
- "missing_fat_arrows": {
138
- "active": 0,
139
- "flagValue": -1
140
- },
141
- "newlines_after_classes": {
142
- "active": 0,
143
- "flagValue": 3
144
- },
145
- "no_backticks": {
146
- "active": 1,
147
- "flagValue": -1
148
- },
149
- "no_debugger": {
150
- "active": 1,
151
- "flagValue": -1
152
- },
153
- "no_empty_functions": {
154
- "active": 0,
155
- "flagValue": -1
156
- },
157
- "no_empty_param_list": {
158
- "active": 0,
159
- "flagValue": -1
160
- },
161
- "no_implicit_braces": {
162
- "active": 1,
163
- "flagValue": -1
164
- },
165
- "no_implicit_parens": {
166
- "active": 0,
167
- "flagValue": -1
168
- },
169
- "no_interpolation_in_single_quotes": {
170
- "active": 0,
171
- "flagValue": -1
172
- },
173
- "no_plusplus": {
174
- "active": 0,
175
- "flagValue": -1
176
- },
177
- "no_stand_alone_at": {
178
- "active": 1,
179
- "flagValue": -1
180
- },
181
- "no_tabs": {
182
- "active": 1,
183
- "flagValue": -1
184
- },
185
- "no_throwing_strings": {
186
- "active": 1,
187
- "flagValue": -1
188
- },
189
- "no_trailing_semicolons": {
190
- "active": 1,
191
- "flagValue": -1
192
- },
193
- "no_trailing_whitespace": {
194
- "active": 1,
195
- "flagValue": -1
196
- },
197
- "no_unnecessary_double_quotes": {
198
- "active": 0,
199
- "flagValue": -1
200
- },
201
- "no_unnecessary_fat_arrows": {
202
- "active": 1,
203
- "flagValue": -1
204
- },
205
- "non_empty_constructor_needs_parens": {
206
- "active": 0,
207
- "flagValue": -1
208
- },
209
- "prefer_english_operator": {
210
- "active": 0,
211
- "flagValue": -1
212
- },
213
- "space_operators": {
214
- "active": 0,
215
- "flagValue": -1
216
- },
217
- "spacing_after_comma": {
218
- "active": 1,
219
- "flagValue": -1
220
- }
221
- },
222
- "coffeeMinifyOutput": 1,
223
- "coffeeOutputStyle": 0,
224
- "coffeeSyntaxCheckerStyle": 1,
225
- "externalServerAddress": "http:\/\/localhost:8888",
226
- "externalServerPreviewPathAddition": "",
227
- "genericWebpageFileExtensionsString": "html, htm, shtml, shtm, xhtml, php, jsp, asp, aspx, erb, ctp",
228
- "hamlAutoOutputPathEnabled": 1,
229
- "hamlAutoOutputPathFilenamePattern": "*.html",
230
- "hamlAutoOutputPathRelativePath": "",
231
- "hamlAutoOutputPathReplace1": "",
232
- "hamlAutoOutputPathReplace2": "",
233
- "hamlAutoOutputPathStyle": 0,
234
- "hamlEscapeHTMLCharacters": 0,
235
- "hamlNoEscapeInAttributes": 0,
236
- "hamlOutputFormat": 2,
237
- "hamlOutputStyle": 0,
238
- "hamlUseCDATA": 0,
239
- "hamlUseDoubleQuotes": 0,
240
- "hamlUseUnixNewlines": 0,
241
- "jadeAutoOutputPathEnabled": 1,
242
- "jadeAutoOutputPathFilenamePattern": "*.html",
243
- "jadeAutoOutputPathRelativePath": "",
244
- "jadeAutoOutputPathReplace1": "",
245
- "jadeAutoOutputPathReplace2": "",
246
- "jadeAutoOutputPathStyle": 0,
247
- "jadeCompileDebug": 1,
248
- "jadeOutputStyle": 0,
249
- "javascriptAutoOutputPathEnabled": 1,
250
- "javascriptAutoOutputPathFilenamePattern": "*-min.js",
251
- "javascriptAutoOutputPathRelativePath": "\/min",
252
- "javascriptAutoOutputPathReplace1": "",
253
- "javascriptAutoOutputPathReplace2": "",
254
- "javascriptAutoOutputPathStyle": 2,
255
- "javascriptCreateSourceMap": 1,
256
- "javascriptOutputStyle": 1,
257
- "javascriptSyntaxCheckerStyle": 1,
258
- "jsCheckerReservedNamesString": "",
259
- "jsHintFlags2": {
260
- "asi": {
261
- "active": 0,
262
- "flagValue": -1
263
- },
264
- "bitwise": {
265
- "active": 1,
266
- "flagValue": -1
267
- },
268
- "boss": {
269
- "active": 0,
270
- "flagValue": -1
271
- },
272
- "browser": {
273
- "active": 1,
274
- "flagValue": -1
275
- },
276
- "browserify": {
277
- "active": 0,
278
- "flagValue": -1
279
- },
280
- "camelcase": {
281
- "active": 0,
282
- "flagValue": -1
283
- },
284
- "couch": {
285
- "active": 0,
286
- "flagValue": -1
287
- },
288
- "curly": {
289
- "active": 1,
290
- "flagValue": -1
291
- },
292
- "debug": {
293
- "active": 0,
294
- "flagValue": -1
295
- },
296
- "devel": {
297
- "active": 0,
298
- "flagValue": -1
299
- },
300
- "dojo": {
301
- "active": 0,
302
- "flagValue": -1
303
- },
304
- "elision": {
305
- "active": 1,
306
- "flagValue": -1
307
- },
308
- "eqeqeq": {
309
- "active": 1,
310
- "flagValue": -1
311
- },
312
- "eqnull": {
313
- "active": 0,
314
- "flagValue": -1
315
- },
316
- "es3": {
317
- "active": 0,
318
- "flagValue": -1
319
- },
320
- "esnext": {
321
- "active": 0,
322
- "flagValue": -1
323
- },
324
- "evil": {
325
- "active": 0,
326
- "flagValue": -1
327
- },
328
- "expr": {
329
- "active": 0,
330
- "flagValue": -1
331
- },
332
- "forin": {
333
- "active": 0,
334
- "flagValue": -1
335
- },
336
- "freeze": {
337
- "active": 1,
338
- "flagValue": -1
339
- },
340
- "funcscope": {
341
- "active": 0,
342
- "flagValue": -1
343
- },
344
- "globalstrict": {
345
- "active": 0,
346
- "flagValue": -1
347
- },
348
- "immed": {
349
- "active": 0,
350
- "flagValue": -1
351
- },
352
- "indent": {
353
- "active": 0,
354
- "flagValue": 4
355
- },
356
- "iterator": {
357
- "active": 0,
358
- "flagValue": -1
359
- },
360
- "jasmine": {
361
- "active": 0,
362
- "flagValue": -1
363
- },
364
- "jquery": {
365
- "active": 1,
366
- "flagValue": -1
367
- },
368
- "lastsemic": {
369
- "active": 0,
370
- "flagValue": -1
371
- },
372
- "latedef": {
373
- "active": 1,
374
- "flagValue": -1
375
- },
376
- "laxbreak": {
377
- "active": 0,
378
- "flagValue": -1
379
- },
380
- "laxcomma": {
381
- "active": 0,
382
- "flagValue": -1
383
- },
384
- "loopfunc": {
385
- "active": 0,
386
- "flagValue": -1
387
- },
388
- "maxcomplexity": {
389
- "active": 0,
390
- "flagValue": 10
391
- },
392
- "maxdepth": {
393
- "active": 0,
394
- "flagValue": 3
395
- },
396
- "maxlen": {
397
- "active": 0,
398
- "flagValue": 150
399
- },
400
- "maxparams": {
401
- "active": 0,
402
- "flagValue": 3
403
- },
404
- "maxstatements": {
405
- "active": 0,
406
- "flagValue": 4
407
- },
408
- "mocha": {
409
- "active": 0,
410
- "flagValue": -1
411
- },
412
- "mootools": {
413
- "active": 0,
414
- "flagValue": -1
415
- },
416
- "moz": {
417
- "active": 0,
418
- "flagValue": -1
419
- },
420
- "multistr": {
421
- "active": 0,
422
- "flagValue": -1
423
- },
424
- "newcap": {
425
- "active": 1,
426
- "flagValue": -1
427
- },
428
- "noarg": {
429
- "active": 1,
430
- "flagValue": -1
431
- },
432
- "node": {
433
- "active": 0,
434
- "flagValue": -1
435
- },
436
- "noempty": {
437
- "active": 0,
438
- "flagValue": -1
439
- },
440
- "nonbsp": {
441
- "active": 0,
442
- "flagValue": -1
443
- },
444
- "nonew": {
445
- "active": 1,
446
- "flagValue": -1
447
- },
448
- "nonstandard": {
449
- "active": 0,
450
- "flagValue": -1
451
- },
452
- "notypeof": {
453
- "active": 1,
454
- "flagValue": -1
455
- },
456
- "noyield": {
457
- "active": 0,
458
- "flagValue": -1
459
- },
460
- "onecase": {
461
- "active": 0,
462
- "flagValue": -1
463
- },
464
- "phantom": {
465
- "active": 0,
466
- "flagValue": -1
467
- },
468
- "plusplus": {
469
- "active": 0,
470
- "flagValue": -1
471
- },
472
- "proto": {
473
- "active": 0,
474
- "flagValue": -1
475
- },
476
- "prototypejs": {
477
- "active": 0,
478
- "flagValue": -1
479
- },
480
- "qunit": {
481
- "active": 0,
482
- "flagValue": -1
483
- },
484
- "regexp": {
485
- "active": 1,
486
- "flagValue": -1
487
- },
488
- "rhino": {
489
- "active": 0,
490
- "flagValue": -1
491
- },
492
- "scripturl": {
493
- "active": 0,
494
- "flagValue": -1
495
- },
496
- "shadow": {
497
- "active": 0,
498
- "flagValue": -1
499
- },
500
- "shelljs": {
501
- "active": 0,
502
- "flagValue": -1
503
- },
504
- "singleGroups": {
505
- "active": 0,
506
- "flagValue": -1
507
- },
508
- "strict": {
509
- "active": 0,
510
- "flagValue": -1
511
- },
512
- "sub": {
513
- "active": 0,
514
- "flagValue": -1
515
- },
516
- "supernew": {
517
- "active": 0,
518
- "flagValue": -1
519
- },
520
- "typed": {
521
- "active": 0,
522
- "flagValue": -1
523
- },
524
- "undef": {
525
- "active": 1,
526
- "flagValue": -1
527
- },
528
- "unused": {
529
- "active": 1,
530
- "flagValue": -1
531
- },
532
- "withstmt": {
533
- "active": 0,
534
- "flagValue": -1
535
- },
536
- "worker": {
537
- "active": 0,
538
- "flagValue": -1
539
- },
540
- "wsh": {
541
- "active": 0,
542
- "flagValue": -1
543
- },
544
- "yui": {
545
- "active": 0,
546
- "flagValue": -1
547
- }
548
- },
549
- "jsLintFlags2": {
550
- "ass": {
551
- "active": 0,
552
- "flagValue": -1
553
- },
554
- "bitwise": {
555
- "active": 0,
556
- "flagValue": -1
557
- },
558
- "browser": {
559
- "active": 1,
560
- "flagValue": -1
561
- },
562
- "closure": {
563
- "active": 0,
564
- "flagValue": -1
565
- },
566
- "continue": {
567
- "active": 0,
568
- "flagValue": -1
569
- },
570
- "debug": {
571
- "active": 0,
572
- "flagValue": -1
573
- },
574
- "devel": {
575
- "active": 0,
576
- "flagValue": -1
577
- },
578
- "eqeq": {
579
- "active": 0,
580
- "flagValue": -1
581
- },
582
- "evil": {
583
- "active": 0,
584
- "flagValue": -1
585
- },
586
- "forin": {
587
- "active": 0,
588
- "flagValue": -1
589
- },
590
- "indent": {
591
- "active": 0,
592
- "flagValue": 4
593
- },
594
- "maxlen": {
595
- "active": 0,
596
- "flagValue": 150
597
- },
598
- "newcap": {
599
- "active": 0,
600
- "flagValue": -1
601
- },
602
- "node": {
603
- "active": 0,
604
- "flagValue": -1
605
- },
606
- "nomen": {
607
- "active": 0,
608
- "flagValue": -1
609
- },
610
- "plusplus": {
611
- "active": 0,
612
- "flagValue": -1
613
- },
614
- "properties": {
615
- "active": 0,
616
- "flagValue": -1
617
- },
618
- "regexp": {
619
- "active": 0,
620
- "flagValue": -1
621
- },
622
- "rhino": {
623
- "active": 0,
624
- "flagValue": -1
625
- },
626
- "sloppy": {
627
- "active": 0,
628
- "flagValue": -1
629
- },
630
- "stupid": {
631
- "active": 0,
632
- "flagValue": -1
633
- },
634
- "sub": {
635
- "active": 0,
636
- "flagValue": -1
637
- },
638
- "todo": {
639
- "active": 0,
640
- "flagValue": -1
641
- },
642
- "unparam": {
643
- "active": 0,
644
- "flagValue": -1
645
- },
646
- "vars": {
647
- "active": 0,
648
- "flagValue": -1
649
- },
650
- "white": {
651
- "active": 0,
652
- "flagValue": -1
653
- }
654
- },
655
- "kitAutoOutputPathEnabled": 1,
656
- "kitAutoOutputPathFilenamePattern": "*.html",
657
- "kitAutoOutputPathRelativePath": "",
658
- "kitAutoOutputPathReplace1": "",
659
- "kitAutoOutputPathReplace2": "",
660
- "kitAutoOutputPathStyle": 0,
661
- "lessAllowInsecureImports": 0,
662
- "lessAutoOutputPathEnabled": 1,
663
- "lessAutoOutputPathFilenamePattern": "*.css",
664
- "lessAutoOutputPathRelativePath": "..\/css",
665
- "lessAutoOutputPathReplace1": "less",
666
- "lessAutoOutputPathReplace2": "css",
667
- "lessAutoOutputPathStyle": 2,
668
- "lessCreateSourceMap": 0,
669
- "lessDisableJavascript": 0,
670
- "lessIeCompatibility": 1,
671
- "lessOutputStyle": 0,
672
- "lessRelativeURLS": 0,
673
- "lessStrictImports": 0,
674
- "lessStrictMath": 0,
675
- "lessStrictUnits": 0,
676
- "markdownAutoOutputPathEnabled": 1,
677
- "markdownAutoOutputPathFilenamePattern": "*.html",
678
- "markdownAutoOutputPathRelativePath": "",
679
- "markdownAutoOutputPathReplace1": "",
680
- "markdownAutoOutputPathReplace2": "",
681
- "markdownAutoOutputPathStyle": 0,
682
- "markdownEnableFootnotes": 0,
683
- "markdownEnableSmartyPants": 1,
684
- "markdownExpandTabs": 1,
685
- "reloadFileURLs": 0,
686
- "sassAutoOutputPathEnabled": 1,
687
- "sassAutoOutputPathFilenamePattern": "*.css",
688
- "sassAutoOutputPathRelativePath": "..\/css",
689
- "sassAutoOutputPathReplace1": "sass",
690
- "sassAutoOutputPathReplace2": "css",
691
- "sassAutoOutputPathStyle": 2,
692
- "sassCreateSourceMap": 0,
693
- "sassDebugStyle": 0,
694
- "sassDecimalPrecision": 10,
695
- "sassOutputStyle": 0,
696
- "sassUseLibsass": 0,
697
- "shouldRunAutoprefixer": 0,
698
- "shouldRunBless": 0,
699
- "skippedItemsString": ".svn, .git, .hg, log, _logs, _cache, cache, logs, node_modules",
700
- "slimAutoOutputPathEnabled": 1,
701
- "slimAutoOutputPathFilenamePattern": "*.html",
702
- "slimAutoOutputPathRelativePath": "",
703
- "slimAutoOutputPathReplace1": "",
704
- "slimAutoOutputPathReplace2": "",
705
- "slimAutoOutputPathStyle": 0,
706
- "slimCompileOnly": 0,
707
- "slimLogicless": 0,
708
- "slimOutputFormat": 0,
709
- "slimOutputStyle": 1,
710
- "slimRailsCompatible": 0,
711
- "stylusAutoOutputPathEnabled": 1,
712
- "stylusAutoOutputPathFilenamePattern": "*.css",
713
- "stylusAutoOutputPathRelativePath": "..\/css",
714
- "stylusAutoOutputPathReplace1": "stylus",
715
- "stylusAutoOutputPathReplace2": "css",
716
- "stylusAutoOutputPathStyle": 2,
717
- "stylusCreateSourceMap": 0,
718
- "stylusDebugStyle": 0,
719
- "stylusImportCSS": 0,
720
- "stylusOutputStyle": 0,
721
- "stylusResolveRelativeURLS": 0,
722
- "typescriptAutoOutputPathEnabled": 1,
723
- "typescriptAutoOutputPathFilenamePattern": "*.js",
724
- "typescriptAutoOutputPathRelativePath": "\/js",
725
- "typescriptAutoOutputPathReplace1": "",
726
- "typescriptAutoOutputPathReplace2": "",
727
- "typescriptAutoOutputPathStyle": 2,
728
- "typescriptCreateDeclarationFile": 0,
729
- "typescriptCreateSourceMap": 0,
730
- "typescriptMinifyOutput": 0,
731
- "typescriptModuleType": 0,
732
- "typescriptNoImplicitAny": 0,
733
- "typescriptPreserveConstEnums": 0,
734
- "typescriptRemoveComments": 0,
735
- "typescriptSuppressImplicitAnyIndexErrors": 0,
736
- "typescriptTargetECMAVersion": 0,
737
- "uglifyDefinesString": "",
738
- "uglifyFlags2": {
739
- "ascii-only": {
740
- "active": 0,
741
- "flagValue": -1
742
- },
743
- "booleans": {
744
- "active": 1,
745
- "flagValue": -1
746
- },
747
- "bracketize": {
748
- "active": 0,
749
- "flagValue": -1
750
- },
751
- "cascade": {
752
- "active": 1,
753
- "flagValue": -1
754
- },
755
- "comments": {
756
- "active": 1,
757
- "flagValue": -1
758
- },
759
- "comparisons": {
760
- "active": 1,
761
- "flagValue": -1
762
- },
763
- "compress": {
764
- "active": 1,
765
- "flagValue": -1
766
- },
767
- "conditionals": {
768
- "active": 1,
769
- "flagValue": -1
770
- },
771
- "dead_code": {
772
- "active": 0,
773
- "flagValue": -1
774
- },
775
- "drop_console": {
776
- "active": 0,
777
- "flagValue": -1
778
- },
779
- "drop_debugger": {
780
- "active": 1,
781
- "flagValue": -1
782
- },
783
- "eval": {
784
- "active": 0,
785
- "flagValue": -1
786
- },
787
- "evaluate": {
788
- "active": 1,
789
- "flagValue": -1
790
- },
791
- "hoist_funs": {
792
- "active": 1,
793
- "flagValue": -1
794
- },
795
- "hoist_vars": {
796
- "active": 0,
797
- "flagValue": -1
798
- },
799
- "if_return": {
800
- "active": 1,
801
- "flagValue": -1
802
- },
803
- "indent-level": {
804
- "active": 0,
805
- "flagValue": 4
806
- },
807
- "indent-start": {
808
- "active": 0,
809
- "flagValue": 0
810
- },
811
- "inline-script": {
812
- "active": 0,
813
- "flagValue": -1
814
- },
815
- "join_vars": {
816
- "active": 1,
817
- "flagValue": -1
818
- },
819
- "keep_fargs": {
820
- "active": 0,
821
- "flagValue": -1
822
- },
823
- "loops": {
824
- "active": 1,
825
- "flagValue": -1
826
- },
827
- "mangle": {
828
- "active": 1,
829
- "flagValue": -1
830
- },
831
- "max-line-len": {
832
- "active": 1,
833
- "flagValue": 32000
834
- },
835
- "negate_iife": {
836
- "active": 1,
837
- "flagValue": -1
838
- },
839
- "properties": {
840
- "active": 1,
841
- "flagValue": -1
842
- },
843
- "pure_getters": {
844
- "active": 0,
845
- "flagValue": -1
846
- },
847
- "quote-keys": {
848
- "active": 0,
849
- "flagValue": -1
850
- },
851
- "screw-ie8": {
852
- "active": 0,
853
- "flagValue": -1
854
- },
855
- "semicolons": {
856
- "active": 1,
857
- "flagValue": -1
858
- },
859
- "sequences": {
860
- "active": 1,
861
- "flagValue": -1
862
- },
863
- "sort": {
864
- "active": 0,
865
- "flagValue": -1
866
- },
867
- "space-colon": {
868
- "active": 1,
869
- "flagValue": -1
870
- },
871
- "toplevel": {
872
- "active": 0,
873
- "flagValue": -1
874
- },
875
- "unsafe": {
876
- "active": 0,
877
- "flagValue": -1
878
- },
879
- "unused": {
880
- "active": 0,
881
- "flagValue": -1
882
- },
883
- "warnings": {
884
- "active": 0,
885
- "flagValue": -1
886
- },
887
- "width": {
888
- "active": 1,
889
- "flagValue": 80
890
- }
891
- },
892
- "uglifyReservedNamesString": "$",
893
- "websiteRelativeRoot": ""
894
- },
895
- "settingsFileVersion": "2"
896
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/storefront-product-pagination.pot ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2015 Storefront Product Pagination
2
+ # This file is distributed under the same license as the Storefront Product Pagination package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Storefront Product Pagination 1.1.0\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/storefront-product-"
7
+ "pagination\n"
8
+ "POT-Creation-Date: 2015-05-15 13:54:27+00:00\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+
16
+ #: storefront-product-pagination.php:128 storefront-product-pagination.php:137
17
+ msgid "Cheatin&#8217; huh?"
18
+ msgstr ""
19
+
20
+ #: storefront-product-pagination.php:157
21
+ msgid ""
22
+ "%sThanks for installing the Storefront Product Pagination extension. "
23
+ "Configure the settings in the %sCustomizer%s.%s %sOpen the Customizer%s"
24
+ msgstr ""
25
+
26
+ #: storefront-product-pagination.php:225
27
+ msgid ""
28
+ "Storefront Product Pagination requires that you use Storefront as your "
29
+ "parent theme."
30
+ msgstr ""
31
+
32
+ #: storefront-product-pagination.php:225
33
+ msgid "Install Storefront now"
34
+ msgstr ""
35
+
36
+ #: storefront-product-pagination.php:238
37
+ msgid "Product Pagination"
38
+ msgstr ""
39
+
40
+ #: storefront-product-pagination.php:252
41
+ msgid "Background color"
42
+ msgstr ""
43
+
44
+ #: storefront-product-pagination.php:253
45
+ msgid "Background color for the product pagintion links"
46
+ msgstr ""
47
+
48
+ #: storefront-product-pagination.php:267
49
+ msgid "Display products in same category"
50
+ msgstr ""
51
+
52
+ #: storefront-product-pagination.php:268
53
+ msgid ""
54
+ "When enabled, pagination will only display links to products in the same "
55
+ "category as the one currently being viewed."
56
+ msgstr ""
57
+
58
+ #: storefront-product-pagination.php:345
59
+ msgid "More products"
60
+ msgstr ""
61
+
62
+ #. Plugin Name of the plugin/theme
63
+ msgid "Storefront Product Pagination"
64
+ msgstr ""
65
+
66
+ #. Plugin URI of the plugin/theme
67
+ msgid "http://woothemes.com/storefront/"
68
+ msgstr ""
69
+
70
+ #. Description of the plugin/theme
71
+ msgid ""
72
+ "Add unobstrusive links to next/previous products on your WooCommerce single "
73
+ "product pages."
74
+ msgstr ""
75
+
76
+ #. Author of the plugin/theme
77
+ msgid "WooThemes"
78
+ msgstr ""
79
+
80
+ #. Author URI of the plugin/theme
81
+ msgid "http://woothemes.com/"
82
+ msgstr ""
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: jameskoster, woothemes
3
  Tags: woocommerce, ecommerce, products, storefront, pagination, next, previous
4
  Requires at least: 3.5
5
  Tested up to: 4.1.1
6
- Stable tag: 1.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -37,5 +37,12 @@ The links will appear on any single product page, providing there is more than o
37
 
38
  == Changelog ==
39
 
 
 
 
 
 
 
 
40
  = 1.0.0 - 04.01.2015 =
41
  Initial release.
3
  Tags: woocommerce, ecommerce, products, storefront, pagination, next, previous
4
  Requires at least: 3.5
5
  Tested up to: 4.1.1
6
+ Stable tag: 1.1.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
37
 
38
  == Changelog ==
39
 
40
+ = 1.1.0 - 05.15.2015 =
41
+ * New - It's now possible to only display links to products that share categories with the one being viewed.
42
+ * Fix - Some animation flicker bugs.
43
+
44
+ = 1.0.1 - 04.27.2015 =
45
+ * Fix - z-index on buttons
46
+
47
  = 1.0.0 - 04.01.2015 =
48
  Initial release.
storefront-product-pagination.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Storefront Product Pagination
4
  * Plugin URI: http://woothemes.com/storefront/
5
  * Description: Add unobstrusive links to next/previous products on your WooCommerce single product pages.
6
- * Version: 1.0.1
7
  * Author: WooThemes
8
  * Author URI: http://woothemes.com/
9
  * Requires at least: 4.0.0
@@ -84,7 +84,7 @@ final class Storefront_Product_Pagination {
84
  $this->token = 'storefront-product-pagination';
85
  $this->plugin_url = plugin_dir_url( __FILE__ );
86
  $this->plugin_path = plugin_dir_path( __FILE__ );
87
- $this->version = '1.0.1';
88
 
89
  register_activation_hook( __FILE__, array( $this, 'install' ) );
90
 
@@ -255,6 +255,22 @@ final class Storefront_Product_Pagination {
255
  'settings' => 'spp_background_color',
256
  'priority' => 30,
257
  ) ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  }
259
 
260
  /**
@@ -297,6 +313,15 @@ final class Storefront_Product_Pagination {
297
  $next_product = get_next_post();
298
  $previous_product_thumbnail = '';
299
  $next_product_thumbnail = '';
 
 
 
 
 
 
 
 
 
300
 
301
  // If a next/previous product exists, get the thumbnail (or place holder)
302
  if ( $previous_product ) {
@@ -318,8 +343,8 @@ final class Storefront_Product_Pagination {
318
  if ( $next_product || $previous_product ) {
319
  echo '<nav class="storefront-single-product-pagination">';
320
  echo '<h2>' . __( 'More products', 'storefront' ) . '</h2>';
321
- previous_post_link( '%link', $previous_product_thumbnail . '<span class="title">&larr; %title</span>' );
322
- next_post_link( '%link', $next_product_thumbnail . '<span class="title">%title &rarr;</span>' );
323
  echo '</nav>';
324
  }
325
  }
3
  * Plugin Name: Storefront Product Pagination
4
  * Plugin URI: http://woothemes.com/storefront/
5
  * Description: Add unobstrusive links to next/previous products on your WooCommerce single product pages.
6
+ * Version: 1.1.0
7
  * Author: WooThemes
8
  * Author URI: http://woothemes.com/
9
  * Requires at least: 4.0.0
84
  $this->token = 'storefront-product-pagination';
85
  $this->plugin_url = plugin_dir_url( __FILE__ );
86
  $this->plugin_path = plugin_dir_path( __FILE__ );
87
+ $this->version = '1.1.0';
88
 
89
  register_activation_hook( __FILE__, array( $this, 'install' ) );
90
 
255
  'settings' => 'spp_background_color',
256
  'priority' => 30,
257
  ) ) );
258
+
259
+ /**
260
+ * Same category
261
+ */
262
+ $wp_customize->add_setting( 'spp_same_cat', array(
263
+ 'default' => false,
264
+ ) );
265
+
266
+ $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'spp_same_cat', array(
267
+ 'label' => __( 'Display products in same category', 'storefront-product-pagination' ),
268
+ 'description' => __( 'When enabled, pagination will only display links to products in the same category as the one currently being viewed.', 'storefront-product-pagination' ),
269
+ 'section' => 'spp_section',
270
+ 'settings' => 'spp_same_cat',
271
+ 'type' => 'checkbox',
272
+ 'priority' => 40,
273
+ ) ) );
274
  }
275
 
276
  /**
313
  $next_product = get_next_post();
314
  $previous_product_thumbnail = '';
315
  $next_product_thumbnail = '';
316
+ $same_cat = get_theme_mod( 'spp_same_cat', false );
317
+
318
+ $in_same_term = false;
319
+ $taxonomy = 'category';
320
+
321
+ if ( true == $same_cat ) {
322
+ $in_same_term = true;
323
+ $taxonomy = 'product_cat';
324
+ }
325
 
326
  // If a next/previous product exists, get the thumbnail (or place holder)
327
  if ( $previous_product ) {
343
  if ( $next_product || $previous_product ) {
344
  echo '<nav class="storefront-single-product-pagination">';
345
  echo '<h2>' . __( 'More products', 'storefront' ) . '</h2>';
346
+ previous_post_link( '%link', $previous_product_thumbnail . '<span class="title">&larr; %title</span>', $in_same_term, '', $taxonomy );
347
+ next_post_link( '%link', $next_product_thumbnail . '<span class="title">%title &rarr;</span>', $in_same_term, '', $taxonomy );
348
  echo '</nav>';
349
  }
350
  }