Kirki - Version 0.8.1

Version Description

=

March 30, 2014, dev time: 30 minutes

  • Fix: Translation strings now overridable using the config filter.

=

Download this release

Release Info

Developer aristath
Plugin Icon 128x128 Kirki
Version 0.8.1
Comparing to
See all releases

Code changes from version 0.8.0 to 0.8.1

assets/css/.sass-cache/c476fc92c5464e1edb465b10e5d2773148db0187/customizer.scssc DELETED
Binary file
config.codekit DELETED
@@ -1,928 +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\/kirki-styles.css": {
6
- "fileType": 16,
7
- "ignore": 0,
8
- "ignoreWasSetByUser": 0,
9
- "inputAbbreviatedPath": "\/assets\/css\/kirki-styles.css",
10
- "outputAbbreviatedPath": "No Output Path",
11
- "outputPathIsOutsideProject": 0,
12
- "outputPathIsSetByUser": 0
13
- },
14
- "\/assets\/images\/1c.png": {
15
- "fileType": 32768,
16
- "ignore": 0,
17
- "ignoreWasSetByUser": 0,
18
- "initialSize": 138,
19
- "inputAbbreviatedPath": "\/assets\/images\/1c.png",
20
- "outputAbbreviatedPath": "\/assets\/images\/1c.png",
21
- "outputPathIsOutsideProject": 0,
22
- "outputPathIsSetByUser": 0,
23
- "processed": 0
24
- },
25
- "\/assets\/images\/2cl.png": {
26
- "fileType": 32768,
27
- "ignore": 0,
28
- "ignoreWasSetByUser": 0,
29
- "initialSize": 2984,
30
- "inputAbbreviatedPath": "\/assets\/images\/2cl.png",
31
- "outputAbbreviatedPath": "\/assets\/images\/2cl.png",
32
- "outputPathIsOutsideProject": 0,
33
- "outputPathIsSetByUser": 0,
34
- "processed": 0
35
- },
36
- "\/assets\/images\/2cr.png": {
37
- "fileType": 32768,
38
- "ignore": 0,
39
- "ignoreWasSetByUser": 0,
40
- "initialSize": 2985,
41
- "inputAbbreviatedPath": "\/assets\/images\/2cr.png",
42
- "outputAbbreviatedPath": "\/assets\/images\/2cr.png",
43
- "outputPathIsOutsideProject": 0,
44
- "outputPathIsSetByUser": 0,
45
- "processed": 0
46
- },
47
- "\/assets\/images\/3cl.png": {
48
- "fileType": 32768,
49
- "ignore": 0,
50
- "ignoreWasSetByUser": 0,
51
- "initialSize": 3156,
52
- "inputAbbreviatedPath": "\/assets\/images\/3cl.png",
53
- "outputAbbreviatedPath": "\/assets\/images\/3cl.png",
54
- "outputPathIsOutsideProject": 0,
55
- "outputPathIsSetByUser": 0,
56
- "processed": 0
57
- },
58
- "\/assets\/images\/3cm.png": {
59
- "fileType": 32768,
60
- "ignore": 0,
61
- "ignoreWasSetByUser": 0,
62
- "initialSize": 3036,
63
- "inputAbbreviatedPath": "\/assets\/images\/3cm.png",
64
- "outputAbbreviatedPath": "\/assets\/images\/3cm.png",
65
- "outputPathIsOutsideProject": 0,
66
- "outputPathIsSetByUser": 0,
67
- "processed": 0
68
- },
69
- "\/assets\/images\/3cr.png": {
70
- "fileType": 32768,
71
- "ignore": 0,
72
- "ignoreWasSetByUser": 0,
73
- "initialSize": 3050,
74
- "inputAbbreviatedPath": "\/assets\/images\/3cr.png",
75
- "outputAbbreviatedPath": "\/assets\/images\/3cr.png",
76
- "outputPathIsOutsideProject": 0,
77
- "outputPathIsSetByUser": 0,
78
- "processed": 0
79
- },
80
- "\/assets\/js\/customizer.js": {
81
- "fileType": 64,
82
- "ignore": 0,
83
- "ignoreWasSetByUser": 0,
84
- "inputAbbreviatedPath": "\/assets\/js\/customizer.js",
85
- "outputAbbreviatedPath": "\/assets\/js\/min\/customizer-min.js",
86
- "outputPathIsOutsideProject": 0,
87
- "outputPathIsSetByUser": 0,
88
- "outputStyle": 1,
89
- "syntaxCheckerStyle": 1
90
- },
91
- "\/assets\/js\/serialize.js": {
92
- "fileType": 64,
93
- "ignore": 0,
94
- "ignoreWasSetByUser": 0,
95
- "inputAbbreviatedPath": "\/assets\/js\/serialize.js",
96
- "outputAbbreviatedPath": "\/assets\/js\/min\/serialize-min.js",
97
- "outputPathIsOutsideProject": 0,
98
- "outputPathIsSetByUser": 0,
99
- "outputStyle": 1,
100
- "syntaxCheckerStyle": 1
101
- }
102
- },
103
- "hooks": [
104
- ],
105
- "lastSavedByUser": "Aristeides",
106
- "manualImportLinks": {
107
- },
108
- "projectAttributes": {
109
- "bowerAbbreviatedPath": "",
110
- "displayValue": "kirki",
111
- "displayValueWasSetByUser": 0,
112
- "iconImageName": "globe_brown"
113
- },
114
- "projectSettings": {
115
- "alwaysUseExternalServer": 0,
116
- "animateCSSInjections": 1,
117
- "autoApplyPSLanguageSettingsStyle": 0,
118
- "autoprefixerBrowserString": "> 1%, last 2 versions, Firefox ESR, Opera 12.1",
119
- "autoSyncProjectSettingsFile": 1,
120
- "browserRefreshDelay": 0,
121
- "coffeeAutoOutputPathEnabled": 1,
122
- "coffeeAutoOutputPathFilenamePattern": "*.js",
123
- "coffeeAutoOutputPathRelativePath": "",
124
- "coffeeAutoOutputPathReplace1": "",
125
- "coffeeAutoOutputPathReplace2": "",
126
- "coffeeAutoOutputPathStyle": 0,
127
- "coffeeCreateSourceMap": 0,
128
- "coffeeLintFlags2": {
129
- "arrow_spacing": {
130
- "active": 0,
131
- "flagValue": -1
132
- },
133
- "camel_case_classes": {
134
- "active": 1,
135
- "flagValue": -1
136
- },
137
- "colon_assignment_spacing": {
138
- "active": 0,
139
- "flagValue": 1
140
- },
141
- "cyclomatic_complexity": {
142
- "active": 0,
143
- "flagValue": 10
144
- },
145
- "duplicate_key": {
146
- "active": 1,
147
- "flagValue": -1
148
- },
149
- "empty_constructor_needs_parens": {
150
- "active": 0,
151
- "flagValue": -1
152
- },
153
- "ensure_comprehensions": {
154
- "active": 1,
155
- "flagValue": -1
156
- },
157
- "indentation": {
158
- "active": 1,
159
- "flagValue": 2
160
- },
161
- "line_endings": {
162
- "active": 0,
163
- "flagValue": 0
164
- },
165
- "max_line_length": {
166
- "active": 0,
167
- "flagValue": 150
168
- },
169
- "missing_fat_arrows": {
170
- "active": 0,
171
- "flagValue": -1
172
- },
173
- "newlines_after_classes": {
174
- "active": 0,
175
- "flagValue": 3
176
- },
177
- "no_backticks": {
178
- "active": 1,
179
- "flagValue": -1
180
- },
181
- "no_debugger": {
182
- "active": 1,
183
- "flagValue": -1
184
- },
185
- "no_empty_functions": {
186
- "active": 0,
187
- "flagValue": -1
188
- },
189
- "no_empty_param_list": {
190
- "active": 0,
191
- "flagValue": -1
192
- },
193
- "no_implicit_braces": {
194
- "active": 1,
195
- "flagValue": -1
196
- },
197
- "no_implicit_parens": {
198
- "active": 0,
199
- "flagValue": -1
200
- },
201
- "no_interpolation_in_single_quotes": {
202
- "active": 0,
203
- "flagValue": -1
204
- },
205
- "no_plusplus": {
206
- "active": 0,
207
- "flagValue": -1
208
- },
209
- "no_stand_alone_at": {
210
- "active": 1,
211
- "flagValue": -1
212
- },
213
- "no_tabs": {
214
- "active": 1,
215
- "flagValue": -1
216
- },
217
- "no_throwing_strings": {
218
- "active": 1,
219
- "flagValue": -1
220
- },
221
- "no_trailing_semicolons": {
222
- "active": 1,
223
- "flagValue": -1
224
- },
225
- "no_trailing_whitespace": {
226
- "active": 1,
227
- "flagValue": -1
228
- },
229
- "no_unnecessary_double_quotes": {
230
- "active": 0,
231
- "flagValue": -1
232
- },
233
- "no_unnecessary_fat_arrows": {
234
- "active": 1,
235
- "flagValue": -1
236
- },
237
- "non_empty_constructor_needs_parens": {
238
- "active": 0,
239
- "flagValue": -1
240
- },
241
- "prefer_english_operator": {
242
- "active": 0,
243
- "flagValue": -1
244
- },
245
- "space_operators": {
246
- "active": 0,
247
- "flagValue": -1
248
- },
249
- "spacing_after_comma": {
250
- "active": 1,
251
- "flagValue": -1
252
- }
253
- },
254
- "coffeeMinifyOutput": 1,
255
- "coffeeOutputStyle": 0,
256
- "coffeeSyntaxCheckerStyle": 1,
257
- "externalServerAddress": "http:\/\/localhost:8888",
258
- "externalServerPreviewPathAddition": "",
259
- "genericWebpageFileExtensionsString": "html, htm, shtml, shtm, xhtml, php, jsp, asp, aspx, erb, ctp",
260
- "hamlAutoOutputPathEnabled": 1,
261
- "hamlAutoOutputPathFilenamePattern": "*.html",
262
- "hamlAutoOutputPathRelativePath": "",
263
- "hamlAutoOutputPathReplace1": "",
264
- "hamlAutoOutputPathReplace2": "",
265
- "hamlAutoOutputPathStyle": 0,
266
- "hamlEscapeHTMLCharacters": 0,
267
- "hamlNoEscapeInAttributes": 0,
268
- "hamlOutputFormat": 2,
269
- "hamlOutputStyle": 0,
270
- "hamlUseCDATA": 0,
271
- "hamlUseDoubleQuotes": 0,
272
- "hamlUseUnixNewlines": 0,
273
- "jadeAutoOutputPathEnabled": 1,
274
- "jadeAutoOutputPathFilenamePattern": "*.html",
275
- "jadeAutoOutputPathRelativePath": "",
276
- "jadeAutoOutputPathReplace1": "",
277
- "jadeAutoOutputPathReplace2": "",
278
- "jadeAutoOutputPathStyle": 0,
279
- "jadeCompileDebug": 1,
280
- "jadeOutputStyle": 0,
281
- "javascriptAutoOutputPathEnabled": 1,
282
- "javascriptAutoOutputPathFilenamePattern": "*-min.js",
283
- "javascriptAutoOutputPathRelativePath": "\/min",
284
- "javascriptAutoOutputPathReplace1": "",
285
- "javascriptAutoOutputPathReplace2": "",
286
- "javascriptAutoOutputPathStyle": 2,
287
- "javascriptCreateSourceMap": 1,
288
- "javascriptOutputStyle": 1,
289
- "javascriptSyntaxCheckerStyle": 1,
290
- "jsCheckerReservedNamesString": "",
291
- "jsHintFlags2": {
292
- "asi": {
293
- "active": 0,
294
- "flagValue": -1
295
- },
296
- "bitwise": {
297
- "active": 1,
298
- "flagValue": -1
299
- },
300
- "boss": {
301
- "active": 0,
302
- "flagValue": -1
303
- },
304
- "browser": {
305
- "active": 1,
306
- "flagValue": -1
307
- },
308
- "browserify": {
309
- "active": 0,
310
- "flagValue": -1
311
- },
312
- "camelcase": {
313
- "active": 0,
314
- "flagValue": -1
315
- },
316
- "couch": {
317
- "active": 0,
318
- "flagValue": -1
319
- },
320
- "curly": {
321
- "active": 1,
322
- "flagValue": -1
323
- },
324
- "debug": {
325
- "active": 0,
326
- "flagValue": -1
327
- },
328
- "devel": {
329
- "active": 0,
330
- "flagValue": -1
331
- },
332
- "dojo": {
333
- "active": 0,
334
- "flagValue": -1
335
- },
336
- "elision": {
337
- "active": 1,
338
- "flagValue": -1
339
- },
340
- "eqeqeq": {
341
- "active": 1,
342
- "flagValue": -1
343
- },
344
- "eqnull": {
345
- "active": 0,
346
- "flagValue": -1
347
- },
348
- "es3": {
349
- "active": 0,
350
- "flagValue": -1
351
- },
352
- "esnext": {
353
- "active": 0,
354
- "flagValue": -1
355
- },
356
- "evil": {
357
- "active": 0,
358
- "flagValue": -1
359
- },
360
- "expr": {
361
- "active": 0,
362
- "flagValue": -1
363
- },
364
- "forin": {
365
- "active": 0,
366
- "flagValue": -1
367
- },
368
- "freeze": {
369
- "active": 1,
370
- "flagValue": -1
371
- },
372
- "funcscope": {
373
- "active": 0,
374
- "flagValue": -1
375
- },
376
- "globalstrict": {
377
- "active": 0,
378
- "flagValue": -1
379
- },
380
- "immed": {
381
- "active": 0,
382
- "flagValue": -1
383
- },
384
- "indent": {
385
- "active": 0,
386
- "flagValue": 4
387
- },
388
- "iterator": {
389
- "active": 0,
390
- "flagValue": -1
391
- },
392
- "jasmine": {
393
- "active": 0,
394
- "flagValue": -1
395
- },
396
- "jquery": {
397
- "active": 1,
398
- "flagValue": -1
399
- },
400
- "lastsemic": {
401
- "active": 0,
402
- "flagValue": -1
403
- },
404
- "latedef": {
405
- "active": 1,
406
- "flagValue": -1
407
- },
408
- "laxbreak": {
409
- "active": 0,
410
- "flagValue": -1
411
- },
412
- "laxcomma": {
413
- "active": 0,
414
- "flagValue": -1
415
- },
416
- "loopfunc": {
417
- "active": 0,
418
- "flagValue": -1
419
- },
420
- "maxcomplexity": {
421
- "active": 0,
422
- "flagValue": 10
423
- },
424
- "maxdepth": {
425
- "active": 0,
426
- "flagValue": 3
427
- },
428
- "maxlen": {
429
- "active": 0,
430
- "flagValue": 150
431
- },
432
- "maxparams": {
433
- "active": 0,
434
- "flagValue": 3
435
- },
436
- "maxstatements": {
437
- "active": 0,
438
- "flagValue": 4
439
- },
440
- "mocha": {
441
- "active": 0,
442
- "flagValue": -1
443
- },
444
- "mootools": {
445
- "active": 0,
446
- "flagValue": -1
447
- },
448
- "moz": {
449
- "active": 0,
450
- "flagValue": -1
451
- },
452
- "multistr": {
453
- "active": 0,
454
- "flagValue": -1
455
- },
456
- "newcap": {
457
- "active": 1,
458
- "flagValue": -1
459
- },
460
- "noarg": {
461
- "active": 1,
462
- "flagValue": -1
463
- },
464
- "node": {
465
- "active": 0,
466
- "flagValue": -1
467
- },
468
- "noempty": {
469
- "active": 0,
470
- "flagValue": -1
471
- },
472
- "nonbsp": {
473
- "active": 0,
474
- "flagValue": -1
475
- },
476
- "nonew": {
477
- "active": 1,
478
- "flagValue": -1
479
- },
480
- "nonstandard": {
481
- "active": 0,
482
- "flagValue": -1
483
- },
484
- "notypeof": {
485
- "active": 1,
486
- "flagValue": -1
487
- },
488
- "noyield": {
489
- "active": 0,
490
- "flagValue": -1
491
- },
492
- "onecase": {
493
- "active": 0,
494
- "flagValue": -1
495
- },
496
- "phantom": {
497
- "active": 0,
498
- "flagValue": -1
499
- },
500
- "plusplus": {
501
- "active": 0,
502
- "flagValue": -1
503
- },
504
- "proto": {
505
- "active": 0,
506
- "flagValue": -1
507
- },
508
- "prototypejs": {
509
- "active": 0,
510
- "flagValue": -1
511
- },
512
- "qunit": {
513
- "active": 0,
514
- "flagValue": -1
515
- },
516
- "regexp": {
517
- "active": 1,
518
- "flagValue": -1
519
- },
520
- "rhino": {
521
- "active": 0,
522
- "flagValue": -1
523
- },
524
- "scripturl": {
525
- "active": 0,
526
- "flagValue": -1
527
- },
528
- "shadow": {
529
- "active": 0,
530
- "flagValue": -1
531
- },
532
- "shelljs": {
533
- "active": 0,
534
- "flagValue": -1
535
- },
536
- "singleGroups": {
537
- "active": 0,
538
- "flagValue": -1
539
- },
540
- "strict": {
541
- "active": 0,
542
- "flagValue": -1
543
- },
544
- "sub": {
545
- "active": 0,
546
- "flagValue": -1
547
- },
548
- "supernew": {
549
- "active": 0,
550
- "flagValue": -1
551
- },
552
- "typed": {
553
- "active": 0,
554
- "flagValue": -1
555
- },
556
- "undef": {
557
- "active": 1,
558
- "flagValue": -1
559
- },
560
- "unused": {
561
- "active": 1,
562
- "flagValue": -1
563
- },
564
- "withstmt": {
565
- "active": 0,
566
- "flagValue": -1
567
- },
568
- "worker": {
569
- "active": 0,
570
- "flagValue": -1
571
- },
572
- "wsh": {
573
- "active": 0,
574
- "flagValue": -1
575
- },
576
- "yui": {
577
- "active": 0,
578
- "flagValue": -1
579
- }
580
- },
581
- "jsLintFlags2": {
582
- "ass": {
583
- "active": 0,
584
- "flagValue": -1
585
- },
586
- "bitwise": {
587
- "active": 0,
588
- "flagValue": -1
589
- },
590
- "browser": {
591
- "active": 1,
592
- "flagValue": -1
593
- },
594
- "closure": {
595
- "active": 0,
596
- "flagValue": -1
597
- },
598
- "continue": {
599
- "active": 0,
600
- "flagValue": -1
601
- },
602
- "debug": {
603
- "active": 0,
604
- "flagValue": -1
605
- },
606
- "devel": {
607
- "active": 0,
608
- "flagValue": -1
609
- },
610
- "eqeq": {
611
- "active": 0,
612
- "flagValue": -1
613
- },
614
- "evil": {
615
- "active": 0,
616
- "flagValue": -1
617
- },
618
- "forin": {
619
- "active": 0,
620
- "flagValue": -1
621
- },
622
- "indent": {
623
- "active": 0,
624
- "flagValue": 4
625
- },
626
- "maxlen": {
627
- "active": 0,
628
- "flagValue": 150
629
- },
630
- "newcap": {
631
- "active": 0,
632
- "flagValue": -1
633
- },
634
- "node": {
635
- "active": 0,
636
- "flagValue": -1
637
- },
638
- "nomen": {
639
- "active": 0,
640
- "flagValue": -1
641
- },
642
- "plusplus": {
643
- "active": 0,
644
- "flagValue": -1
645
- },
646
- "properties": {
647
- "active": 0,
648
- "flagValue": -1
649
- },
650
- "regexp": {
651
- "active": 0,
652
- "flagValue": -1
653
- },
654
- "rhino": {
655
- "active": 0,
656
- "flagValue": -1
657
- },
658
- "sloppy": {
659
- "active": 0,
660
- "flagValue": -1
661
- },
662
- "stupid": {
663
- "active": 0,
664
- "flagValue": -1
665
- },
666
- "sub": {
667
- "active": 0,
668
- "flagValue": -1
669
- },
670
- "todo": {
671
- "active": 0,
672
- "flagValue": -1
673
- },
674
- "unparam": {
675
- "active": 0,
676
- "flagValue": -1
677
- },
678
- "vars": {
679
- "active": 0,
680
- "flagValue": -1
681
- },
682
- "white": {
683
- "active": 0,
684
- "flagValue": -1
685
- }
686
- },
687
- "kitAutoOutputPathEnabled": 1,
688
- "kitAutoOutputPathFilenamePattern": "*.html",
689
- "kitAutoOutputPathRelativePath": "",
690
- "kitAutoOutputPathReplace1": "",
691
- "kitAutoOutputPathReplace2": "",
692
- "kitAutoOutputPathStyle": 0,
693
- "lessAllowInsecureImports": 0,
694
- "lessAutoOutputPathEnabled": 1,
695
- "lessAutoOutputPathFilenamePattern": "*.css",
696
- "lessAutoOutputPathRelativePath": "..\/css",
697
- "lessAutoOutputPathReplace1": "less",
698
- "lessAutoOutputPathReplace2": "css",
699
- "lessAutoOutputPathStyle": 2,
700
- "lessCreateSourceMap": 0,
701
- "lessDisableJavascript": 0,
702
- "lessIeCompatibility": 1,
703
- "lessOutputStyle": 0,
704
- "lessRelativeURLS": 0,
705
- "lessStrictImports": 0,
706
- "lessStrictMath": 0,
707
- "lessStrictUnits": 0,
708
- "markdownAutoOutputPathEnabled": 1,
709
- "markdownAutoOutputPathFilenamePattern": "*.html",
710
- "markdownAutoOutputPathRelativePath": "",
711
- "markdownAutoOutputPathReplace1": "",
712
- "markdownAutoOutputPathReplace2": "",
713
- "markdownAutoOutputPathStyle": 0,
714
- "markdownEnableFootnotes": 0,
715
- "markdownEnableSmartyPants": 1,
716
- "markdownExpandTabs": 1,
717
- "reloadFileURLs": 0,
718
- "sassAutoOutputPathEnabled": 1,
719
- "sassAutoOutputPathFilenamePattern": "*.css",
720
- "sassAutoOutputPathRelativePath": "..\/css",
721
- "sassAutoOutputPathReplace1": "sass",
722
- "sassAutoOutputPathReplace2": "css",
723
- "sassAutoOutputPathStyle": 2,
724
- "sassCreateSourceMap": 0,
725
- "sassDebugStyle": 0,
726
- "sassDecimalPrecision": 10,
727
- "sassOutputStyle": 0,
728
- "sassUseLibsass": 0,
729
- "shouldRunAutoprefixer": 0,
730
- "shouldRunBless": 0,
731
- "skippedItemsString": ".svn, .git, .hg, log, _logs, _cache, cache, logs, node_modules",
732
- "slimAutoOutputPathEnabled": 1,
733
- "slimAutoOutputPathFilenamePattern": "*.html",
734
- "slimAutoOutputPathRelativePath": "",
735
- "slimAutoOutputPathReplace1": "",
736
- "slimAutoOutputPathReplace2": "",
737
- "slimAutoOutputPathStyle": 0,
738
- "slimCompileOnly": 0,
739
- "slimLogicless": 0,
740
- "slimOutputFormat": 0,
741
- "slimOutputStyle": 1,
742
- "slimRailsCompatible": 0,
743
- "stylusAutoOutputPathEnabled": 1,
744
- "stylusAutoOutputPathFilenamePattern": "*.css",
745
- "stylusAutoOutputPathRelativePath": "..\/css",
746
- "stylusAutoOutputPathReplace1": "stylus",
747
- "stylusAutoOutputPathReplace2": "css",
748
- "stylusAutoOutputPathStyle": 2,
749
- "stylusCreateSourceMap": 0,
750
- "stylusDebugStyle": 0,
751
- "stylusImportCSS": 0,
752
- "stylusOutputStyle": 0,
753
- "stylusResolveRelativeURLS": 0,
754
- "typescriptAutoOutputPathEnabled": 1,
755
- "typescriptAutoOutputPathFilenamePattern": "*.js",
756
- "typescriptAutoOutputPathRelativePath": "\/js",
757
- "typescriptAutoOutputPathReplace1": "",
758
- "typescriptAutoOutputPathReplace2": "",
759
- "typescriptAutoOutputPathStyle": 2,
760
- "typescriptCreateDeclarationFile": 0,
761
- "typescriptCreateSourceMap": 0,
762
- "typescriptMinifyOutput": 0,
763
- "typescriptModuleType": 0,
764
- "typescriptNoImplicitAny": 0,
765
- "typescriptPreserveConstEnums": 0,
766
- "typescriptRemoveComments": 0,
767
- "typescriptSuppressImplicitAnyIndexErrors": 0,
768
- "typescriptTargetECMAVersion": 0,
769
- "uglifyDefinesString": "",
770
- "uglifyFlags2": {
771
- "ascii-only": {
772
- "active": 0,
773
- "flagValue": -1
774
- },
775
- "booleans": {
776
- "active": 1,
777
- "flagValue": -1
778
- },
779
- "bracketize": {
780
- "active": 0,
781
- "flagValue": -1
782
- },
783
- "cascade": {
784
- "active": 1,
785
- "flagValue": -1
786
- },
787
- "comments": {
788
- "active": 1,
789
- "flagValue": -1
790
- },
791
- "comparisons": {
792
- "active": 1,
793
- "flagValue": -1
794
- },
795
- "compress": {
796
- "active": 1,
797
- "flagValue": -1
798
- },
799
- "conditionals": {
800
- "active": 1,
801
- "flagValue": -1
802
- },
803
- "dead_code": {
804
- "active": 0,
805
- "flagValue": -1
806
- },
807
- "drop_console": {
808
- "active": 0,
809
- "flagValue": -1
810
- },
811
- "drop_debugger": {
812
- "active": 1,
813
- "flagValue": -1
814
- },
815
- "eval": {
816
- "active": 0,
817
- "flagValue": -1
818
- },
819
- "evaluate": {
820
- "active": 1,
821
- "flagValue": -1
822
- },
823
- "hoist_funs": {
824
- "active": 1,
825
- "flagValue": -1
826
- },
827
- "hoist_vars": {
828
- "active": 0,
829
- "flagValue": -1
830
- },
831
- "if_return": {
832
- "active": 1,
833
- "flagValue": -1
834
- },
835
- "indent-level": {
836
- "active": 0,
837
- "flagValue": 4
838
- },
839
- "indent-start": {
840
- "active": 0,
841
- "flagValue": 0
842
- },
843
- "inline-script": {
844
- "active": 0,
845
- "flagValue": -1
846
- },
847
- "join_vars": {
848
- "active": 1,
849
- "flagValue": -1
850
- },
851
- "keep_fargs": {
852
- "active": 0,
853
- "flagValue": -1
854
- },
855
- "loops": {
856
- "active": 1,
857
- "flagValue": -1
858
- },
859
- "mangle": {
860
- "active": 1,
861
- "flagValue": -1
862
- },
863
- "max-line-len": {
864
- "active": 1,
865
- "flagValue": 32000
866
- },
867
- "negate_iife": {
868
- "active": 1,
869
- "flagValue": -1
870
- },
871
- "properties": {
872
- "active": 1,
873
- "flagValue": -1
874
- },
875
- "pure_getters": {
876
- "active": 0,
877
- "flagValue": -1
878
- },
879
- "quote-keys": {
880
- "active": 0,
881
- "flagValue": -1
882
- },
883
- "screw-ie8": {
884
- "active": 0,
885
- "flagValue": -1
886
- },
887
- "semicolons": {
888
- "active": 1,
889
- "flagValue": -1
890
- },
891
- "sequences": {
892
- "active": 1,
893
- "flagValue": -1
894
- },
895
- "sort": {
896
- "active": 0,
897
- "flagValue": -1
898
- },
899
- "space-colon": {
900
- "active": 1,
901
- "flagValue": -1
902
- },
903
- "toplevel": {
904
- "active": 0,
905
- "flagValue": -1
906
- },
907
- "unsafe": {
908
- "active": 0,
909
- "flagValue": -1
910
- },
911
- "unused": {
912
- "active": 0,
913
- "flagValue": -1
914
- },
915
- "warnings": {
916
- "active": 0,
917
- "flagValue": -1
918
- },
919
- "width": {
920
- "active": 1,
921
- "flagValue": 80
922
- }
923
- },
924
- "uglifyReservedNamesString": "$",
925
- "websiteRelativeRoot": ""
926
- },
927
- "settingsFileVersion": "2"
928
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/Config.php CHANGED
@@ -70,8 +70,65 @@ class Config {
70
  $this->config['description'] = esc_html( $this->config['description'] );
71
  }
72
 
 
 
 
 
73
  }
74
 
75
  return $this->config;
76
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  }
70
  $this->config['description'] = esc_html( $this->config['description'] );
71
  }
72
 
73
+ // Get the translation strings.
74
+ $this->config['i18n'] = ( ! isset( $this->config['i18n'] ) ) ? array() : $this->config['i18n'];
75
+ $this->config['i18n'] = array_merge( $this->translation_strings(), $this->config['i18n'] );
76
+
77
  }
78
 
79
  return $this->config;
80
  }
81
+
82
+ /**
83
+ * The i18n strings
84
+ */
85
+ public function translation_strings() {
86
+
87
+ $strings = array(
88
+ 'background-color' => __( 'Background Color', 'kirki' ),
89
+ 'background-image' => __( 'Background Image', 'kirki' ),
90
+ 'no-repeat' => __( 'No Repeat', 'kirki' ),
91
+ 'repeat-all' => __( 'Repeat All', 'kirki' ),
92
+ 'repeat-x' => __( 'Repeat Horizontally', 'kirki' ),
93
+ 'repeat-y' => __( 'Repeat Vertically', 'kirki' ),
94
+ 'inherit' => __( 'Inherit', 'kirki' ),
95
+ 'background-repeat' => __( 'Background Repeat', 'kirki' ),
96
+ 'cover' => __( 'Cover', 'kirki' ),
97
+ 'contain' => __( 'Contain', 'kirki' ),
98
+ 'background-size' => __( 'Background Size', 'kirki' ),
99
+ 'fixed' => __( 'Fixed', 'kirki' ),
100
+ 'scroll' => __( 'Scroll', 'kirki' ),
101
+ 'background-attachment' => __( 'Background Attachment', 'kirki' ),
102
+ 'left-top' => __( 'Left Top', 'kirki' ),
103
+ 'left-center' => __( 'Left Center', 'kirki' ),
104
+ 'left-bottom' => __( 'Left Bottom', 'kirki' ),
105
+ 'right-top' => __( 'Right Top', 'kirki' ),
106
+ 'right-center' => __( 'Right Center', 'kirki' ),
107
+ 'right-bottom' => __( 'Right Bottom', 'kirki' ),
108
+ 'center-top' => __( 'Center Top', 'kirki' ),
109
+ 'center-center' => __( 'Center Center', 'kirki' ),
110
+ 'center-bottom' => __( 'Center Bottom', 'kirki' ),
111
+ 'background-position' => __( 'Background Position', 'kirki' ),
112
+ 'background-opacity' => __( 'Background Opacity', 'kirki' ),
113
+ 'ON' => __( 'ON', 'kirki' ),
114
+ 'OFF' => __( 'OFF', 'kirki' ),
115
+ 'all' => __( 'All', 'kirki' ),
116
+ 'cyrillic' => __( 'Cyrillic', 'kirki' ),
117
+ 'cyrillic-ext' => __( 'Cyrillic Extended', 'kirki' ),
118
+ 'devanagari' => __( 'Devanagari', 'kirki' ),
119
+ 'greek' => __( 'Greek', 'kirki' ),
120
+ 'greek-ext' => __( 'Greek Extended', 'kirki' ),
121
+ 'khmer' => __( 'Khmer', 'kirki' ),
122
+ 'latin' => __( 'Latin', 'kirki' ),
123
+ 'latin-ext' => __( 'Latin Extended', 'kirki' ),
124
+ 'vietnamese' => __( 'Vietnamese', 'kirki' ),
125
+ 'serif' => _x( 'Serif', 'font style', 'kirki' ),
126
+ 'sans-serif' => _x( 'Sans Serif', 'font style', 'kirki' ),
127
+ 'monospace' => _x( 'Monospace', 'font style', 'kirki' ),
128
+ );
129
+
130
+ return $strings;
131
+
132
+ }
133
+
134
  }
includes/Control.php CHANGED
@@ -2,6 +2,7 @@
2
 
3
  namespace Kirki;
4
 
 
5
  use Kirki\Controls\CustomControl;
6
  use Kirki\Controls\EditorControl;
7
  use Kirki\Controls\MultiCheckControl;
@@ -85,7 +86,7 @@ class Control {
85
  */
86
  public function add( $wp_customize, $control ) {
87
 
88
- $textdomain = kirki_textdomain();
89
 
90
  $control = self::sanitize( $control );
91
 
@@ -177,7 +178,7 @@ class Control {
177
  'settings' => $control['settings'] . '_color',
178
  'priority' => $control['priority'],
179
  'help' => $control['help'],
180
- 'description' => __( 'Background Color', $textdomain ),
181
  'required' => $control['required'],
182
  'transport' => $control['transport']
183
  ) ) );
@@ -190,7 +191,7 @@ class Control {
190
  'settings' => $control['settings'] . '_image',
191
  'priority' => $control['priority'] + 1,
192
  'help' => '',
193
- 'description' => __( 'Background Image', $textdomain ),
194
  'required' => $control['required'],
195
  'transport' => $control['transport']
196
  ) ) );
@@ -204,14 +205,14 @@ class Control {
204
  'settings' => $control['settings'] . '_repeat',
205
  'priority' => $control['priority'] + 2,
206
  'choices' => array(
207
- 'no-repeat' => __( 'No Repeat', $textdomain ),
208
- 'repeat' => __( 'Repeat All', $textdomain ),
209
- 'repeat-x' => __( 'Repeat Horizontally', $textdomain ),
210
- 'repeat-y' => __( 'Repeat Vertically', $textdomain ),
211
- 'inherit' => __( 'Inherit', $textdomain )
212
  ),
213
  'help' => '',
214
- 'description' => __( 'Background Repeat', $textdomain ),
215
  'required' => $control['required'],
216
  'transport' => $control['transport']
217
  ) );
@@ -225,13 +226,13 @@ class Control {
225
  'settings' => $control['settings'] . '_size',
226
  'priority' => $control['priority'] + 3,
227
  'choices' => array(
228
- 'inherit' => __( 'Inherit', $textdomain ),
229
- 'cover' => __( 'Cover', $textdomain ),
230
- 'contain' => __( 'Contain', $textdomain ),
231
  ),
232
  'help' => '',
233
  'mode' => 'buttonset',
234
- 'description' => __( 'Background Size', $textdomain ),
235
  'required' => $control['required'],
236
  'transport' => $control['transport']
237
  ) );
@@ -245,13 +246,13 @@ class Control {
245
  'settings' => $control['settings'] . '_attach',
246
  'priority' => $control['priority'] + 4,
247
  'choices' => array(
248
- 'inherit' => __( 'Inherit', $textdomain ),
249
- 'fixed' => __( 'Fixed', $textdomain ),
250
- 'scroll' => __( 'Scroll', $textdomain ),
251
  ),
252
  'help' => '',
253
  'mode' => 'buttonset',
254
- 'description' => __( 'Background Attachment', $textdomain ),
255
  'required' => $control['required'],
256
  'transport' => $control['transport']
257
  ) );
@@ -265,18 +266,18 @@ class Control {
265
  'settings' => $control['settings'] . '_position',
266
  'priority' => $control['priority'] + 5,
267
  'choices' => array(
268
- 'left-top' => __( 'Left Top', $textdomain ),
269
- 'left-center' => __( 'Left Center', $textdomain ),
270
- 'left-bottom' => __( 'Left Bottom', $textdomain ),
271
- 'right-top' => __( 'Right Top', $textdomain ),
272
- 'right-center' => __( 'Right Center', $textdomain ),
273
- 'right-bottom' => __( 'Right Bottom', $textdomain ),
274
- 'center-top' => __( 'Center Top', $textdomain ),
275
- 'center-center' => __( 'Center Center', $textdomain ),
276
- 'center-bottom' => __( 'Center Bottom', $textdomain ),
277
  ),
278
  'help' => '',
279
- 'description' => __( 'Background Position', $textdomain ),
280
  'required' => $control['required'],
281
  'transport' => $control['transport']
282
  ) );
@@ -294,7 +295,7 @@ class Control {
294
  'step' => 1,
295
  ),
296
  'help' => '',
297
- 'description' => __( 'Background Opacity', $textdomain ),
298
  'required' => $control['required'],
299
  'transport' => $control['transport']
300
  ) ) );
2
 
3
  namespace Kirki;
4
 
5
+ use Kirki;
6
  use Kirki\Controls\CustomControl;
7
  use Kirki\Controls\EditorControl;
8
  use Kirki\Controls\MultiCheckControl;
86
  */
87
  public function add( $wp_customize, $control ) {
88
 
89
+ $i18n = Kirki::i18n();
90
 
91
  $control = self::sanitize( $control );
92
 
178
  'settings' => $control['settings'] . '_color',
179
  'priority' => $control['priority'],
180
  'help' => $control['help'],
181
+ 'description' => $i18n['background-color'],
182
  'required' => $control['required'],
183
  'transport' => $control['transport']
184
  ) ) );
191
  'settings' => $control['settings'] . '_image',
192
  'priority' => $control['priority'] + 1,
193
  'help' => '',
194
+ 'description' => $i18n['background-image'],
195
  'required' => $control['required'],
196
  'transport' => $control['transport']
197
  ) ) );
205
  'settings' => $control['settings'] . '_repeat',
206
  'priority' => $control['priority'] + 2,
207
  'choices' => array(
208
+ 'no-repeat' => $i18n['no-repeat'],
209
+ 'repeat' => $i18n['repeat-all'],
210
+ 'repeat-x' => $i18n['repeat-x'],
211
+ 'repeat-y' => $i18n['repeat-y'],
212
+ 'inherit' => $i18n['inherit'],
213
  ),
214
  'help' => '',
215
+ 'description' => $i18n['background-repeat'],
216
  'required' => $control['required'],
217
  'transport' => $control['transport']
218
  ) );
226
  'settings' => $control['settings'] . '_size',
227
  'priority' => $control['priority'] + 3,
228
  'choices' => array(
229
+ 'inherit' => $i18n['inherit'],
230
+ 'cover' => $i18n['cover'],
231
+ 'contain' => $i18n['contain'],
232
  ),
233
  'help' => '',
234
  'mode' => 'buttonset',
235
+ 'description' => $i18n['background-size'],
236
  'required' => $control['required'],
237
  'transport' => $control['transport']
238
  ) );
246
  'settings' => $control['settings'] . '_attach',
247
  'priority' => $control['priority'] + 4,
248
  'choices' => array(
249
+ 'inherit' => $i18n['inherit'],
250
+ 'fixed' => $i18n['fixed'],
251
+ 'scroll' => $i18n['scroll'],
252
  ),
253
  'help' => '',
254
  'mode' => 'buttonset',
255
+ 'description' => $i18n['background-attachment'],
256
  'required' => $control['required'],
257
  'transport' => $control['transport']
258
  ) );
266
  'settings' => $control['settings'] . '_position',
267
  'priority' => $control['priority'] + 5,
268
  'choices' => array(
269
+ 'left-top' => $i18n['left-top'],
270
+ 'left-center' => $i18n['left-center'],
271
+ 'left-bottom' => $i18n['left-bottom'],
272
+ 'right-top' => $i18n['right-top'],
273
+ 'right-center' => $i18n['right-center'],
274
+ 'right-bottom' => $i18n['right-bottom'],
275
+ 'center-top' => $i18n['center-top'],
276
+ 'center-center' => $i18n['center-center'],
277
+ 'center-bottom' => $i18n['center-bottom'],
278
  ),
279
  'help' => '',
280
+ 'description' => $i18n['background-position'],
281
  'required' => $control['required'],
282
  'transport' => $control['transport']
283
  ) );
295
  'step' => 1,
296
  ),
297
  'help' => '',
298
+ 'description' => $i18n['background-opacity'],
299
  'required' => $control['required'],
300
  'transport' => $control['transport']
301
  ) ) );
includes/Controls/SwitchControl.php CHANGED
@@ -2,6 +2,8 @@
2
 
3
  namespace Kirki\Controls;
4
 
 
 
5
  class SwitchControl extends \WP_Customize_Control {
6
 
7
  public $type = 'switch';
@@ -10,7 +12,7 @@ class SwitchControl extends \WP_Customize_Control {
10
  * Render the control's content.
11
  */
12
  protected function render_content() { ?>
13
- <?php $textdomain = kirki_textdomain(); ?>
14
  <label>
15
  <div class="switch-info">
16
  <input style="display: none;" type="checkbox" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); checked( $this->value() ); ?> />
@@ -22,8 +24,8 @@ class SwitchControl extends \WP_Customize_Control {
22
  <?php $classes = ( esc_attr( $this->value() ) ) ? ' On' : ' Off'; ?>
23
  <div class="Switch <?php echo $classes; ?>">
24
  <div class="Toggle"></div>
25
- <span class="On"><?php _e( 'ON', $textdomain ); ?></span>
26
- <span class="Off"><?php _e( 'OFF', $textdomain ); ?></span>
27
  </div>
28
  </label>
29
  <?php
2
 
3
  namespace Kirki\Controls;
4
 
5
+ use Kirki;
6
+
7
  class SwitchControl extends \WP_Customize_Control {
8
 
9
  public $type = 'switch';
12
  * Render the control's content.
13
  */
14
  protected function render_content() { ?>
15
+ <?php $i18n = Kirki::i18n(); ?>
16
  <label>
17
  <div class="switch-info">
18
  <input style="display: none;" type="checkbox" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); checked( $this->value() ); ?> />
24
  <?php $classes = ( esc_attr( $this->value() ) ) ? ' On' : ' Off'; ?>
25
  <div class="Switch <?php echo $classes; ?>">
26
  <div class="Toggle"></div>
27
+ <span class="On"><?php echo $i18n['ON']; ?></span>
28
+ <span class="Off"><?php echo $i18n['OFF']; ?></span>
29
  </div>
30
  </label>
31
  <?php
includes/Fonts/FontRegistry.php CHANGED
@@ -2,6 +2,8 @@
2
 
3
  namespace Kirki\Fonts;
4
 
 
 
5
  /**
6
  * Class FontManager
7
  * @package Kirki\Fonts
@@ -120,18 +122,18 @@ class FontRegistry {
120
  * @return array The available subsets.
121
  */
122
  public function get_google_font_subsets() {
123
- $textdomain = kirki_textdomain();
124
  return array(
125
- 'all' => __( 'All', $textdomain ),
126
- 'cyrillic' => __( 'Cyrillic', $textdomain ),
127
- 'cyrillic-ext' => __( 'Cyrillic Extended', $textdomain ),
128
- 'devanagari' => __( 'Devanagari', $textdomain ),
129
- 'greek' => __( 'Greek', $textdomain ),
130
- 'greek-ext' => __( 'Greek Extended', $textdomain ),
131
- 'khmer' => __( 'Khmer', $textdomain ),
132
- 'latin' => __( 'Latin', $textdomain ),
133
- 'latin-ext' => __( 'Latin Extended', $textdomain ),
134
- 'vietnamese' => __( 'Vietnamese', $textdomain ),
135
  );
136
  }
137
 
@@ -181,19 +183,19 @@ class FontRegistry {
181
  * @return array Standard websafe fonts.
182
  */
183
  public function get_standard_fonts() {
184
- $textdomain = kirki_textdomain();
185
  if ($this->standard_fonts==null) {
186
  $this->standard_fonts = apply_filters('kirki/fonts/standard_fonts', array(
187
  'serif' => array(
188
- 'label' => _x('Serif', 'font style', $textdomain),
189
  'stack' => 'Georgia,Times,"Times New Roman",serif'
190
  ),
191
  'sans-serif' => array(
192
- 'label' => _x('Sans Serif', 'font style', $textdomain),
193
  'stack' => '"Helvetica Neue",Helvetica,Arial,sans-serif'
194
  ),
195
  'monospace' => array(
196
- 'label' => _x('Monospaced', 'font style', $textdomain),
197
  'stack' => 'Monaco,"Lucida Sans Typewriter","Lucida Typewriter","Courier New",Courier,monospace'
198
  )
199
  ));
2
 
3
  namespace Kirki\Fonts;
4
 
5
+ Use Kirki;
6
+
7
  /**
8
  * Class FontManager
9
  * @package Kirki\Fonts
122
  * @return array The available subsets.
123
  */
124
  public function get_google_font_subsets() {
125
+ $i18n = Kirki::i18n();
126
  return array(
127
+ 'all' => $i18n['all'],
128
+ 'cyrillic' => $i18n['cyrillic'],
129
+ 'cyrillic-ext' => $i18n['cyrillic-ext'],
130
+ 'devanagari' => $i18n['devangari'],
131
+ 'greek' => $i18n['greek'],
132
+ 'greek-ext' => $i18n['greek-ext'],
133
+ 'khmer' => $i18n['khmer'],
134
+ 'latin' => $i18n['latin'],
135
+ 'latin-ext' => $i18n['latin-ext'],
136
+ 'vietnamese' => $i18n['vietnamese'],
137
  );
138
  }
139
 
183
  * @return array Standard websafe fonts.
184
  */
185
  public function get_standard_fonts() {
186
+ $i18n = Kirki::i18n();
187
  if ($this->standard_fonts==null) {
188
  $this->standard_fonts = apply_filters('kirki/fonts/standard_fonts', array(
189
  'serif' => array(
190
+ 'label' => $i18n['serif'],
191
  'stack' => 'Georgia,Times,"Times New Roman",serif'
192
  ),
193
  'sans-serif' => array(
194
+ 'label' => $i18n['sans-serif'],
195
  'stack' => '"Helvetica Neue",Helvetica,Arial,sans-serif'
196
  ),
197
  'monospace' => array(
198
+ 'label' => $i18n['monospace'],
199
  'stack' => 'Monaco,"Lucida Sans Typewriter","Lucida Typewriter","Courier New",Courier,monospace'
200
  )
201
  ));
includes/Helpers/helpers.php CHANGED
@@ -97,11 +97,26 @@ function kirki_get_option( $option ) {
97
  }
98
 
99
  /**
100
- * Helper function to get the translation textdomain
 
 
101
  */
102
- function kirki_textdomain() {
 
103
 
104
- $config = apply_filters( 'kirki/config', array() );
105
- return ( isset( $config['textdomain'] ) ) ? $config['textdomain'] : 'kirki';
 
 
 
 
 
 
 
 
 
 
106
 
 
107
  }
 
97
  }
98
 
99
  /**
100
+ * Load plugin textdomain.
101
+ *
102
+ * @since 0.8.0
103
  */
104
+ function kirki_load_textdomain() {
105
+ $textdomain = 'kirki';
106
 
107
+ // Look for WP_LANG_DIR/{$domain}-{$locale}.mo
108
+ if ( file_exists( WP_LANG_DIR . '/' . $textdomain . '-' . get_locale() . '.mo' ) ) {
109
+ $file = WP_LANG_DIR . '/' . $textdomain . '-' . get_locale() . '.mo';
110
+ }
111
+ // Look for KIRKI_PATH/languages/{$domain}-{$locale}.mo
112
+ if ( ! isset( $file ) && file_exists( KIRKI_PATH . '/languages/' . $textdomain . '-' . get_locale() . '.mo' ) ) {
113
+ $file = KIRKI_PATH . '/languages/' . $textdomain . '-' . get_locale() . '.mo';
114
+ }
115
+
116
+ if ( isset( $file ) ) {
117
+ load_textdomain( $textdomain, $file );
118
+ }
119
 
120
+ load_plugin_textdomain( $textdomain, false, KIRKI_PATH . '/languages' );
121
  }
122
+ add_action( 'plugins_loaded', 'kirki_load_textdomain' );
includes/Helpers/sanitize.php CHANGED
@@ -41,13 +41,13 @@ function kirki_sanitize_choice( $input, $setting ) {
41
  * @since 0.5
42
  */
43
  function kirki_sanitize_bg_repeat( $value ) {
44
- $textdomain = kirki_textdomain();
45
  $valid = array(
46
- 'no-repeat' => __( 'No Repeat', $textdomain ),
47
- 'repeat' => __( 'Repeat All', $textdomain ),
48
- 'repeat-x' => __( 'Repeat Horizontally', $textdomain ),
49
- 'repeat-y' => __( 'Repeat Vertically', $textdomain ),
50
- 'inherit' => __( 'Inherit', $textdomain )
51
  );
52
 
53
  return ( array_key_exists( $value, $valid ) ) ? $value : 'inherit';
@@ -60,11 +60,11 @@ function kirki_sanitize_bg_repeat( $value ) {
60
  * @since 0.5
61
  */
62
  function kirki_sanitize_bg_size( $value ) {
63
- $textdomain = kirki_textdomain();
64
  $valid = array(
65
- 'inherit' => __( 'Inherit', $textdomain ),
66
- 'cover' => __( 'Cover', $textdomain ),
67
- 'contain' => __( 'Contain', $textdomain ),
68
  );
69
 
70
  return ( array_key_exists( $value, $valid ) ) ? $value : 'inherit';
@@ -77,11 +77,11 @@ function kirki_sanitize_bg_size( $value ) {
77
  * @since 0.5
78
  */
79
  function kirki_sanitize_bg_attach( $value ) {
80
- $textdomain = kirki_textdomain();
81
  $valid = array(
82
- 'inherit' => __( 'Inherit', $textdomain ),
83
- 'fixed' => __( 'Fixed', $textdomain ),
84
- 'scroll' => __( 'Scroll', $textdomain ),
85
  );
86
 
87
  return ( array_key_exists( $value, $valid ) ) ? $value : 'inherit';
@@ -94,17 +94,17 @@ function kirki_sanitize_bg_attach( $value ) {
94
  * @since 0.5
95
  */
96
  function kirki_sanitize_bg_position( $value ) {
97
- $textdomain = kirki_textdomain();
98
  $valid = array(
99
- 'left-top' => __( 'Left Top', $textdomain ),
100
- 'left-center' => __( 'Left Center', $textdomain ),
101
- 'left-bottom' => __( 'Left Bottom', $textdomain ),
102
- 'right-top' => __( 'Right Top', $textdomain ),
103
- 'right-center' => __( 'Right Center', $textdomain ),
104
- 'right-bottom' => __( 'Right Bottom', $textdomain ),
105
- 'center-top' => __( 'Center Top', $textdomain ),
106
- 'center-center' => __( 'Center Center', $textdomain ),
107
- 'center-bottom' => __( 'Center Bottom', $textdomain ),
108
  );
109
 
110
  return ( array_key_exists( $value, $valid ) ) ? $value : 'center-center';
41
  * @since 0.5
42
  */
43
  function kirki_sanitize_bg_repeat( $value ) {
44
+ $i18n = Kirki::i18n();
45
  $valid = array(
46
+ 'no-repeat' => $i18n['no-repeat'],
47
+ 'repeat' => $i18n['repeat-all'],
48
+ 'repeat-x' => $i18n['repeat-x'],
49
+ 'repeat-y' => $i18n['repeat-y'],
50
+ 'inherit' => $i18n['inherit'],
51
  );
52
 
53
  return ( array_key_exists( $value, $valid ) ) ? $value : 'inherit';
60
  * @since 0.5
61
  */
62
  function kirki_sanitize_bg_size( $value ) {
63
+ $i18n = Kirki::i18n();
64
  $valid = array(
65
+ 'inherit' => $i18n['inherit'],
66
+ 'cover' => $i18n['cover'],
67
+ 'contain' => $i18n['contain'],
68
  );
69
 
70
  return ( array_key_exists( $value, $valid ) ) ? $value : 'inherit';
77
  * @since 0.5
78
  */
79
  function kirki_sanitize_bg_attach( $value ) {
80
+ $i18n = Kirki::i18n();
81
  $valid = array(
82
+ 'inherit' => $i18n['inherit'],
83
+ 'fixed' => $i18n['fixed'],
84
+ 'scroll' => $i18n['scroll'],
85
  );
86
 
87
  return ( array_key_exists( $value, $valid ) ) ? $value : 'inherit';
94
  * @since 0.5
95
  */
96
  function kirki_sanitize_bg_position( $value ) {
97
+ $i18n = Kirki::i18n();
98
  $valid = array(
99
+ 'left-top' => $i18n['left-top'],
100
+ 'left-center' => $i18n['left-center'],
101
+ 'left-bottom' => $i18n['left-bottom'],
102
+ 'right-top' => $i18n['right-top'],
103
+ 'right-center' => $i18n['right-center'],
104
+ 'right-bottom' => $i18n['right-bottom'],
105
+ 'center-top' => $i18n['center-top'],
106
+ 'center-center' => $i18n['center-center'],
107
+ 'center-bottom' => $i18n['center-bottom'],
108
  );
109
 
110
  return ( array_key_exists( $value, $valid ) ) ? $value : 'center-center';
includes/Kirki.php CHANGED
@@ -25,7 +25,7 @@ class Kirki {
25
  public static $instance = null;
26
 
27
  /** @var string Version number */
28
- public static $version = '0.8.0';
29
 
30
  /** @var Config Configuration */
31
  public $config = null;
@@ -60,6 +60,15 @@ class Kirki {
60
  return self::get_instance()->config;
61
  }
62
 
 
 
 
 
 
 
 
 
 
63
  /**
64
  * Shortcut method to get the controls of the single instance.
65
  */
25
  public static $instance = null;
26
 
27
  /** @var string Version number */
28
+ public static $version = '0.8.1';
29
 
30
  /** @var Config Configuration */
31
  public $config = null;
60
  return self::get_instance()->config;
61
  }
62
 
63
+ /**
64
+ * Shortcut method to get the translation strings
65
+ */
66
+ public static function i18n() {
67
+ $config = self::config();
68
+ $options = $config->get_all();
69
+ return $options['i18n'];
70
+ }
71
+
72
  /**
73
  * Shortcut method to get the controls of the single instance.
74
  */
kirki.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://kirki.org
5
  Description: An options framework using and extending the WordPress Customizer
6
  Author: Aristeides Stathopoulos
7
  Author URI: http://press.codes
8
- Version: 0.8.0
9
  Text Domain: kirki
10
  */
11
 
@@ -21,28 +21,3 @@ include_once( KIRKI_PATH . '/includes/Kirki.php' );
21
 
22
  // Make sure the class is instanciated
23
  Kirki::get_instance();
24
-
25
- add_action( 'plugins_loaded', 'kirki_load_textdomain' );
26
- /**
27
- * Load plugin textdomain.
28
- *
29
- * @since 1.0.0
30
- */
31
- function kirki_load_textdomain() {
32
- $textdomain = kirki_textdomain();
33
-
34
- // Look for WP_LANG_DIR/{$domain}-{$locale}.mo
35
- if ( file_exists( WP_LANG_DIR . '/' . $textdomain . '-' . get_locale() . '.mo' ) ) {
36
- $file = WP_LANG_DIR . '/' . $textdomain . '-' . get_locale() . '.mo';
37
- }
38
- // Look for KIRKI_PATH/languages/{$domain}-{$locale}.mo
39
- if ( ! isset( $file ) && file_exists( KIRKI_PATH . '/languages/' . $textdomain . '-' . get_locale() . '.mo' ) ) {
40
- $file = KIRKI_PATH . '/languages/' . $textdomain . '-' . get_locale() . '.mo';
41
- }
42
-
43
- if ( isset( $file ) ) {
44
- load_textdomain( $textdomain, $file );
45
- }
46
-
47
- load_plugin_textdomain( $textdomain, false, KIRKI_PATH . '/languages' );
48
- }
5
  Description: An options framework using and extending the WordPress Customizer
6
  Author: Aristeides Stathopoulos
7
  Author URI: http://press.codes
8
+ Version: 0.8.1
9
  Text Domain: kirki
10
  */
11
 
21
 
22
  // Make sure the class is instanciated
23
  Kirki::get_instance();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: customizer, options famework, theme mods
4
  Donate link: http://kirki.org/
5
  Requires at least: 4.0
6
  Tested up to: 4.1.1
7
- Stable tag: 0.8.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -16,7 +16,9 @@ Kirki allows developers to add advanced controls to their customizer as well as
16
 
17
  You can add beautiful options to your theme\'s customizer panel and allow your users to tweak any aspect of their theme. You\'ve got 18 control types that you can use ( 9 default + 9 custom-made ), styling options for the customizer, as well as automatic calculations for your styles using the `output` argument on your controls.
18
 
19
- Converting from the default customizer to the syntax used by Kirki will only take a few minutes and will save you a lot of time in the long run. P)
 
 
20
 
21
  The following controls are included:
22
 
@@ -53,6 +55,12 @@ For configuration instructions please visit http://kirki.org/#configuration
53
 
54
  == Changelog ==
55
 
 
 
 
 
 
 
56
  == 0.8.0 ==
57
 
58
  March 30, 2014, dev time: 32 hours
4
  Donate link: http://kirki.org/
5
  Requires at least: 4.0
6
  Tested up to: 4.1.1
7
+ Stable tag: 0.8.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
16
 
17
  You can add beautiful options to your theme\'s customizer panel and allow your users to tweak any aspect of their theme. You\'ve got 18 control types that you can use ( 9 default + 9 custom-made ), styling options for the customizer, as well as automatic calculations for your styles using the `output` argument on your controls.
18
 
19
+ Converting from the default customizer to the syntax used by Kirki will only take a few minutes and will save you a lot of time in the long run. :)
20
+
21
+ **CAUTION**: This plugin requires PHP 5.3 and is not compatible with PHP 5.2
22
 
23
  The following controls are included:
24
 
55
 
56
  == Changelog ==
57
 
58
+ == 0.8.1 ==
59
+
60
+ March 30, 2014, dev time: 30 minutes
61
+
62
+ * Fix: Translation strings now overridable using the config filter.
63
+
64
  == 0.8.0 ==
65
 
66
  March 30, 2014, dev time: 32 hours