Version Description
- 2017-11-27
Download this release
Release Info
Developer | codeinwp |
Plugin | WordPress Charts and Graphs Lite |
Version | 3.0.4 |
Comparing to | |
See all releases |
Code changes from version 3.0.3 to 3.0.4
- CHANGELOG.md +9 -0
- classes/Visualizer/Module/Admin.php +1 -4
- classes/Visualizer/Plugin.php +1 -1
- css/frame.css +4 -23
- css/library.css +0 -2
- css/media.css +1 -4
- index.php +1 -1
- languages/visualizer.pot +81 -74
- readme.md +5 -0
- readme.txt +5 -0
- samples/area.csv +1 -1
- themeisle-hash.json +1 -0
- vendor/autoload.php +1 -1
- vendor/autoload_52.php +1 -1
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-endpoints.php +312 -0
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-deactivate.php +145 -59
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-review.php +1 -1
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-translate.php +1 -1
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-licenser.php +6 -24
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-loader.php +3 -0
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-logger.php +13 -4
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-product.php +1 -1
- vendor/codeinwp/themeisle-sdk/load.php +1 -1
- vendor/codeinwp/themeisle-sdk/start.php +1 -0
- vendor/composer/autoload_real.php +5 -5
- vendor/composer/autoload_real_52.php +3 -3
- vendor/composer/installed.json +4 -4
CHANGELOG.md
CHANGED
@@ -1,4 +1,13 @@
|
|
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
### v3.0.3 - 2017-11-16
|
3 |
**Changes:**
|
4 |
* Adds compatibility with WordPress 4.9.
|
1 |
|
2 |
+
### v3.0.4 - 2018-01-05
|
3 |
+
**Changes:**
|
4 |
+
* Fix chart rendering bug in firefox.
|
5 |
+
* Fix review notification.
|
6 |
+
|
7 |
+
### v3.0.4 - 2017-11-27
|
8 |
+
**Changes:**
|
9 |
+
* Fix for review message notification.
|
10 |
+
|
11 |
### v3.0.3 - 2017-11-16
|
12 |
**Changes:**
|
13 |
* Adds compatibility with WordPress 4.9.
|
classes/Visualizer/Module/Admin.php
CHANGED
@@ -80,10 +80,7 @@ class Visualizer_Module_Admin extends Visualizer_Module {
|
|
80 |
);
|
81 |
|
82 |
if ( $query->have_posts() && $query->post_count > 0 ) {
|
83 |
-
return
|
84 |
-
'heading' => __( 'Some title from visualizer', 'visualizer' ),
|
85 |
-
'msg' => __( 'Some msg from visualizer', 'visualizer' ),
|
86 |
-
);
|
87 |
}
|
88 |
return false;
|
89 |
}
|
80 |
);
|
81 |
|
82 |
if ( $query->have_posts() && $query->post_count > 0 ) {
|
83 |
+
return true;
|
|
|
|
|
|
|
84 |
}
|
85 |
return false;
|
86 |
}
|
classes/Visualizer/Plugin.php
CHANGED
@@ -28,7 +28,7 @@
|
|
28 |
class Visualizer_Plugin {
|
29 |
|
30 |
const NAME = 'visualizer';
|
31 |
-
const VERSION = '3.0.
|
32 |
|
33 |
// custom post types
|
34 |
const CPT_VISUALIZER = 'visualizer';
|
28 |
class Visualizer_Plugin {
|
29 |
|
30 |
const NAME = 'visualizer';
|
31 |
+
const VERSION = '3.0.4';
|
32 |
|
33 |
// custom post types
|
34 |
const CPT_VISUALIZER = 'visualizer';
|
css/frame.css
CHANGED
@@ -122,7 +122,6 @@
|
|
122 |
border-right: 1px solid #ddd;
|
123 |
border-left: 4px solid #fff;
|
124 |
background: #fff;
|
125 |
-
-webkit-box-shadow: none;
|
126 |
box-shadow: none;
|
127 |
cursor: pointer;
|
128 |
-webkit-transition: color 0.15s ease-in-out,border-color 0.15s ease-in-out,background 0.15s ease-in-out;
|
@@ -214,7 +213,6 @@ div.viz-group-content .viz-group-description {
|
|
214 |
border-top: 1px solid #eee;
|
215 |
border-bottom: 1px solid #eee;
|
216 |
background-color: rgba(0, 0, 0, 0.02);
|
217 |
-
-webkit-box-shadow: 0 4px 4px -4px rgba(0, 0, 0, 0.1);
|
218 |
box-shadow: 0 4px 4px -4px rgba(0, 0, 0, 0.1);
|
219 |
font-weight: bold;
|
220 |
cursor: pointer;
|
@@ -223,7 +221,6 @@ div.viz-group-content .viz-group-description {
|
|
223 |
.viz-group-wrapper ul ul li .viz-section-title {
|
224 |
margin-bottom: 0;
|
225 |
border: none;
|
226 |
-
-webkit-box-shadow: none;
|
227 |
box-shadow: none;
|
228 |
}
|
229 |
|
@@ -244,7 +241,8 @@ div.viz-group-content .viz-group-description {
|
|
244 |
border-width: 0 4px 4px;
|
245 |
}
|
246 |
|
247 |
-
.section-items,
|
|
|
248 |
display: none;
|
249 |
padding: 15px;
|
250 |
}
|
@@ -274,7 +272,8 @@ div.viz-group-content .viz-group-description {
|
|
274 |
width: 100%;
|
275 |
}
|
276 |
|
277 |
-
.section-delimiter,
|
|
|
278 |
margin: 15px 0;
|
279 |
border-top: 1px dashed #ccc;
|
280 |
}
|
@@ -359,7 +358,6 @@ div.viz-group-content .viz-group-description {
|
|
359 |
height: 36px;
|
360 |
padding: 12px 16px;
|
361 |
border-top: 1px solid #dfdfdf;
|
362 |
-
-webkit-box-shadow: 0 -4px 4px -4px rgba(0, 0, 0, 0.1);
|
363 |
box-shadow: 0 -4px 4px -4px rgba(0, 0, 0, 0.1);
|
364 |
text-align: center;
|
365 |
}
|
@@ -394,7 +392,6 @@ div.viz-group-content .viz-group-description {
|
|
394 |
border-bottom: 1px dashed #ddd;
|
395 |
background: #e0e0e0;
|
396 |
background-color: #efefef;
|
397 |
-
-webkit-box-shadow: 0 0 8px #ddd;
|
398 |
box-shadow: 0 0 8px #ddd;
|
399 |
font-weight: bold;
|
400 |
text-align: center;
|
@@ -415,7 +412,6 @@ div.viz-group-content .viz-group-description {
|
|
415 |
margin: 0 20px 20px 0;
|
416 |
border: 1px dashed #ddd;
|
417 |
background-color: #efefef;
|
418 |
-
-webkit-box-shadow: 0 0 8px #ddd;
|
419 |
box-shadow: 0 0 8px #ddd;
|
420 |
}
|
421 |
|
@@ -578,7 +574,6 @@ div.viz-group-content .viz-group-description {
|
|
578 |
border: 1px solid #b0b0b0 !important;
|
579 |
color: #646464 !important;
|
580 |
background: #e6e6e6 url("../images/computer.png") no-repeat scroll 7px 1px !important;
|
581 |
-
-webkit-box-shadow: none !important;
|
582 |
box-shadow: none !important;
|
583 |
text-shadow: none!important;
|
584 |
font-family: "Open Sans",sans-serif;
|
@@ -592,8 +587,6 @@ div.viz-group-content .viz-group-description {
|
|
592 |
border: 1px solid #2f8cea !important;
|
593 |
color: white !important;
|
594 |
background: #2f8cea url("../images/computer.png") no-repeat scroll 7px -36px !important;
|
595 |
-
-webkit-box-shadow: 0 1px 0 rgba(171, 171, 171, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15) !important;
|
596 |
-
-webkit-box-shadow: none !important;
|
597 |
box-shadow: 0 1px 0 rgba(171, 171, 171, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15) !important;
|
598 |
box-shadow: none !important;
|
599 |
-webkit-transition: all 0.3s ease 0s;
|
@@ -613,7 +606,6 @@ div.viz-group-content .viz-group-description {
|
|
613 |
border: 1px solid #b0b0b0 !important;
|
614 |
color: #646464 !important;
|
615 |
background: #e6e6e6 url("../images/web.png") no-repeat scroll 7px 1px !important;
|
616 |
-
-webkit-box-shadow: none !important;
|
617 |
box-shadow: none !important;
|
618 |
font-family: "Open Sans",sans-serif;
|
619 |
font-weight: 700;
|
@@ -628,7 +620,6 @@ div.viz-group-content .viz-group-description {
|
|
628 |
border: 1px solid #89b158 !important;
|
629 |
color: white !important;
|
630 |
background: #89b158 url("../images/web.png") no-repeat scroll 7px -38px !important;
|
631 |
-
-webkit-box-shadow: none !important;
|
632 |
box-shadow: none !important;
|
633 |
-webkit-transition: all 0.3s ease 0s;
|
634 |
-webkit-transition: all 0.3s ease;
|
@@ -650,7 +641,6 @@ div.viz-group-content .viz-group-description {
|
|
650 |
border: 1px solid #b0b0b0 !important;
|
651 |
color: #646464 !important;
|
652 |
background: #e6e6e6 url("../images/from_chart.png") no-repeat scroll 7px 1px !important;
|
653 |
-
-webkit-box-shadow: none !important;
|
654 |
box-shadow: none !important;
|
655 |
font-family: "Open Sans",sans-serif;
|
656 |
font-weight: 700;
|
@@ -666,7 +656,6 @@ div.viz-group-content .viz-group-description {
|
|
666 |
border: 1px solid #10aecb !important;
|
667 |
color: white !important;
|
668 |
background: #10aecb url("../images/from_chart.png") no-repeat scroll 7px -36px !important;
|
669 |
-
-webkit-box-shadow: none !important;
|
670 |
box-shadow: none !important;
|
671 |
-webkit-transition: all 0.3s ease 0s;
|
672 |
-webkit-transition: all 0.3s ease;
|
@@ -693,7 +682,6 @@ button#editor-chart-button {
|
|
693 |
border: 1px solid #2c80d6 !important;
|
694 |
color: white !important;
|
695 |
background-color: #2f8cea !important;
|
696 |
-
-webkit-box-shadow: none !important;
|
697 |
box-shadow: none !important;
|
698 |
text-shadow: none;
|
699 |
-webkit-transition: all 0.3s ease;
|
@@ -704,7 +692,6 @@ button#editor-chart-button {
|
|
704 |
border: 1px solid #2c80d6 !important;
|
705 |
color: white !important;
|
706 |
background-color: #2f8cea !important;
|
707 |
-
-webkit-box-shadow: none !important;
|
708 |
box-shadow: none !important;
|
709 |
font-family: "Open Sans",sans-serif;
|
710 |
font-weight: 700;
|
@@ -716,7 +703,6 @@ button#editor-chart-button {
|
|
716 |
border: 1px solid #2c80d6 !important;
|
717 |
color: white !important;
|
718 |
background-color: #2c80d6 !important;
|
719 |
-
-webkit-box-shadow: none !important;
|
720 |
box-shadow: none !important;
|
721 |
font-family: "Open Sans",sans-serif;
|
722 |
font-weight: 700;
|
@@ -729,7 +715,6 @@ button#editor-chart-button {
|
|
729 |
margin-top: 15px !important;
|
730 |
border-color: #e98b00 !important;
|
731 |
background-color: #f90 !important;
|
732 |
-
-webkit-box-shadow: none !important;
|
733 |
box-shadow: none !important;
|
734 |
font-family: "Open Sans",sans-serif;
|
735 |
font-weight: 700;
|
@@ -740,7 +725,6 @@ button#editor-chart-button {
|
|
740 |
margin-top: 15px !important;
|
741 |
border-color: #e98b00 !important;
|
742 |
background-color: #ea8c00 !important;
|
743 |
-
-webkit-box-shadow: none !important;
|
744 |
box-shadow: none !important;
|
745 |
font-family: "Open Sans",sans-serif;
|
746 |
font-weight: 700;
|
@@ -834,7 +818,6 @@ button#editor-chart-button {
|
|
834 |
#vz-chart-review {
|
835 |
right: 0;
|
836 |
bottom: 10px;
|
837 |
-
-webkit-box-sizing: border-box;
|
838 |
box-sizing: border-box;
|
839 |
width: 40%;
|
840 |
padding-right: 6px;
|
@@ -848,7 +831,6 @@ button#editor-chart-button {
|
|
848 |
#vz-chart-settings {
|
849 |
bottom: 40px;
|
850 |
left: 0;
|
851 |
-
-webkit-box-sizing: border-box;
|
852 |
box-sizing: border-box;
|
853 |
width: 33%;
|
854 |
text-align: left;
|
@@ -864,7 +846,6 @@ button#editor-chart-button {
|
|
864 |
#vz-chart-permissions {
|
865 |
right: 0;
|
866 |
bottom: 40px;
|
867 |
-
-webkit-box-sizing: border-box;
|
868 |
box-sizing: border-box;
|
869 |
width: 33%;
|
870 |
text-align: left;
|
122 |
border-right: 1px solid #ddd;
|
123 |
border-left: 4px solid #fff;
|
124 |
background: #fff;
|
|
|
125 |
box-shadow: none;
|
126 |
cursor: pointer;
|
127 |
-webkit-transition: color 0.15s ease-in-out,border-color 0.15s ease-in-out,background 0.15s ease-in-out;
|
213 |
border-top: 1px solid #eee;
|
214 |
border-bottom: 1px solid #eee;
|
215 |
background-color: rgba(0, 0, 0, 0.02);
|
|
|
216 |
box-shadow: 0 4px 4px -4px rgba(0, 0, 0, 0.1);
|
217 |
font-weight: bold;
|
218 |
cursor: pointer;
|
221 |
.viz-group-wrapper ul ul li .viz-section-title {
|
222 |
margin-bottom: 0;
|
223 |
border: none;
|
|
|
224 |
box-shadow: none;
|
225 |
}
|
226 |
|
241 |
border-width: 0 4px 4px;
|
242 |
}
|
243 |
|
244 |
+
.section-items,
|
245 |
+
.viz-section-items {
|
246 |
display: none;
|
247 |
padding: 15px;
|
248 |
}
|
272 |
width: 100%;
|
273 |
}
|
274 |
|
275 |
+
.section-delimiter,
|
276 |
+
.viz-section-delimiter {
|
277 |
margin: 15px 0;
|
278 |
border-top: 1px dashed #ccc;
|
279 |
}
|
358 |
height: 36px;
|
359 |
padding: 12px 16px;
|
360 |
border-top: 1px solid #dfdfdf;
|
|
|
361 |
box-shadow: 0 -4px 4px -4px rgba(0, 0, 0, 0.1);
|
362 |
text-align: center;
|
363 |
}
|
392 |
border-bottom: 1px dashed #ddd;
|
393 |
background: #e0e0e0;
|
394 |
background-color: #efefef;
|
|
|
395 |
box-shadow: 0 0 8px #ddd;
|
396 |
font-weight: bold;
|
397 |
text-align: center;
|
412 |
margin: 0 20px 20px 0;
|
413 |
border: 1px dashed #ddd;
|
414 |
background-color: #efefef;
|
|
|
415 |
box-shadow: 0 0 8px #ddd;
|
416 |
}
|
417 |
|
574 |
border: 1px solid #b0b0b0 !important;
|
575 |
color: #646464 !important;
|
576 |
background: #e6e6e6 url("../images/computer.png") no-repeat scroll 7px 1px !important;
|
|
|
577 |
box-shadow: none !important;
|
578 |
text-shadow: none!important;
|
579 |
font-family: "Open Sans",sans-serif;
|
587 |
border: 1px solid #2f8cea !important;
|
588 |
color: white !important;
|
589 |
background: #2f8cea url("../images/computer.png") no-repeat scroll 7px -36px !important;
|
|
|
|
|
590 |
box-shadow: 0 1px 0 rgba(171, 171, 171, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15) !important;
|
591 |
box-shadow: none !important;
|
592 |
-webkit-transition: all 0.3s ease 0s;
|
606 |
border: 1px solid #b0b0b0 !important;
|
607 |
color: #646464 !important;
|
608 |
background: #e6e6e6 url("../images/web.png") no-repeat scroll 7px 1px !important;
|
|
|
609 |
box-shadow: none !important;
|
610 |
font-family: "Open Sans",sans-serif;
|
611 |
font-weight: 700;
|
620 |
border: 1px solid #89b158 !important;
|
621 |
color: white !important;
|
622 |
background: #89b158 url("../images/web.png") no-repeat scroll 7px -38px !important;
|
|
|
623 |
box-shadow: none !important;
|
624 |
-webkit-transition: all 0.3s ease 0s;
|
625 |
-webkit-transition: all 0.3s ease;
|
641 |
border: 1px solid #b0b0b0 !important;
|
642 |
color: #646464 !important;
|
643 |
background: #e6e6e6 url("../images/from_chart.png") no-repeat scroll 7px 1px !important;
|
|
|
644 |
box-shadow: none !important;
|
645 |
font-family: "Open Sans",sans-serif;
|
646 |
font-weight: 700;
|
656 |
border: 1px solid #10aecb !important;
|
657 |
color: white !important;
|
658 |
background: #10aecb url("../images/from_chart.png") no-repeat scroll 7px -36px !important;
|
|
|
659 |
box-shadow: none !important;
|
660 |
-webkit-transition: all 0.3s ease 0s;
|
661 |
-webkit-transition: all 0.3s ease;
|
682 |
border: 1px solid #2c80d6 !important;
|
683 |
color: white !important;
|
684 |
background-color: #2f8cea !important;
|
|
|
685 |
box-shadow: none !important;
|
686 |
text-shadow: none;
|
687 |
-webkit-transition: all 0.3s ease;
|
692 |
border: 1px solid #2c80d6 !important;
|
693 |
color: white !important;
|
694 |
background-color: #2f8cea !important;
|
|
|
695 |
box-shadow: none !important;
|
696 |
font-family: "Open Sans",sans-serif;
|
697 |
font-weight: 700;
|
703 |
border: 1px solid #2c80d6 !important;
|
704 |
color: white !important;
|
705 |
background-color: #2c80d6 !important;
|
|
|
706 |
box-shadow: none !important;
|
707 |
font-family: "Open Sans",sans-serif;
|
708 |
font-weight: 700;
|
715 |
margin-top: 15px !important;
|
716 |
border-color: #e98b00 !important;
|
717 |
background-color: #f90 !important;
|
|
|
718 |
box-shadow: none !important;
|
719 |
font-family: "Open Sans",sans-serif;
|
720 |
font-weight: 700;
|
725 |
margin-top: 15px !important;
|
726 |
border-color: #e98b00 !important;
|
727 |
background-color: #ea8c00 !important;
|
|
|
728 |
box-shadow: none !important;
|
729 |
font-family: "Open Sans",sans-serif;
|
730 |
font-weight: 700;
|
818 |
#vz-chart-review {
|
819 |
right: 0;
|
820 |
bottom: 10px;
|
|
|
821 |
box-sizing: border-box;
|
822 |
width: 40%;
|
823 |
padding-right: 6px;
|
831 |
#vz-chart-settings {
|
832 |
bottom: 40px;
|
833 |
left: 0;
|
|
|
834 |
box-sizing: border-box;
|
835 |
width: 33%;
|
836 |
text-align: left;
|
846 |
#vz-chart-permissions {
|
847 |
right: 0;
|
848 |
bottom: 40px;
|
|
|
849 |
box-sizing: border-box;
|
850 |
width: 33%;
|
851 |
text-align: left;
|
css/library.css
CHANGED
@@ -50,7 +50,6 @@
|
|
50 |
padding: 5px;
|
51 |
border: 1px solid #ddd;
|
52 |
background-color: #efefef;
|
53 |
-
-webkit-box-shadow: 0 0 8px #ddd;
|
54 |
box-shadow: 0 0 8px #ddd;
|
55 |
}
|
56 |
|
@@ -228,7 +227,6 @@ input:checked + .visualizer-slider {
|
|
228 |
}
|
229 |
|
230 |
input:focus + .visualizer-slider {
|
231 |
-
-webkit-box-shadow: 0 0 1px #0085ba;
|
232 |
box-shadow: 0 0 1px #0085ba;
|
233 |
}
|
234 |
|
50 |
padding: 5px;
|
51 |
border: 1px solid #ddd;
|
52 |
background-color: #efefef;
|
|
|
53 |
box-shadow: 0 0 8px #ddd;
|
54 |
}
|
55 |
|
227 |
}
|
228 |
|
229 |
input:focus + .visualizer-slider {
|
|
|
230 |
box-shadow: 0 0 1px #0085ba;
|
231 |
}
|
232 |
|
css/media.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
Version: 3.0.
|
3 |
*/
|
4 |
#visualizer-library-view {
|
5 |
padding: 30px 10px 10px 30px;
|
@@ -31,7 +31,6 @@
|
|
31 |
padding: 5px;
|
32 |
border: 1px solid #ddd;
|
33 |
background-color: #efefef;
|
34 |
-
-webkit-box-shadow: 0 0 8px #ddd;
|
35 |
box-shadow: 0 0 8px #ddd;
|
36 |
}
|
37 |
|
@@ -130,7 +129,6 @@
|
|
130 |
border-radius: 2px;
|
131 |
color: white !important;
|
132 |
background-color: #aaa;
|
133 |
-
-webkit-box-shadow: 0 0 5px #ccc;
|
134 |
box-shadow: 0 0 5px #ccc;
|
135 |
font-weight: bold;
|
136 |
text-decoration: none;
|
@@ -139,7 +137,6 @@
|
|
139 |
.visualizer-library-pagination-active > .visualizer-library-pagination-page,
|
140 |
a.visualizer-library-pagination-page:hover {
|
141 |
background-color: lightcoral;
|
142 |
-
-webkit-box-shadow: 0 0 5px lightpink;
|
143 |
box-shadow: 0 0 5px lightpink;
|
144 |
}
|
145 |
|
1 |
/*
|
2 |
+
Version: 3.0.4
|
3 |
*/
|
4 |
#visualizer-library-view {
|
5 |
padding: 30px 10px 10px 30px;
|
31 |
padding: 5px;
|
32 |
border: 1px solid #ddd;
|
33 |
background-color: #efefef;
|
|
|
34 |
box-shadow: 0 0 8px #ddd;
|
35 |
}
|
36 |
|
129 |
border-radius: 2px;
|
130 |
color: white !important;
|
131 |
background-color: #aaa;
|
|
|
132 |
box-shadow: 0 0 5px #ccc;
|
133 |
font-weight: bold;
|
134 |
text-decoration: none;
|
137 |
.visualizer-library-pagination-active > .visualizer-library-pagination-page,
|
138 |
a.visualizer-library-pagination-page:hover {
|
139 |
background-color: lightcoral;
|
|
|
140 |
box-shadow: 0 0 5px lightpink;
|
141 |
}
|
142 |
|
index.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Visualizer: Charts and Graphs Lite
|
5 |
Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs-lite/
|
6 |
Description: A simple, easy to use and quite powerful tool to create, manage and embed interactive charts into your WordPress posts and pages. The plugin uses Google Visualization API to render charts, which supports cross-browser compatibility (adopting VML for older IE versions) and cross-platform portability to iOS and new Android releases.
|
7 |
-
Version: 3.0.
|
8 |
Author: Themeisle
|
9 |
Author URI: http://themeisle.com
|
10 |
License: GPL v2.0 or later
|
4 |
Plugin Name: Visualizer: Charts and Graphs Lite
|
5 |
Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs-lite/
|
6 |
Description: A simple, easy to use and quite powerful tool to create, manage and embed interactive charts into your WordPress posts and pages. The plugin uses Google Visualization API to render charts, which supports cross-browser compatibility (adopting VML for older IE versions) and cross-platform portability to iOS and new Android releases.
|
7 |
+
Version: 3.0.4
|
8 |
Author: Themeisle
|
9 |
Author URI: http://themeisle.com
|
10 |
License: GPL v2.0 or later
|
languages/visualizer.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the GPL v2.0 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Visualizer: Charts and Graphs Lite 3.0.
|
6 |
"Report-Msgid-Bugs-To: https://github.com/Codeinwp/visualizer/issues\n"
|
7 |
-
"POT-Creation-Date: 2017-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -24,80 +24,80 @@ msgstr ""
|
|
24 |
"X-Poedit-Bookmarks: \n"
|
25 |
"X-Textdomain-Support: yes\n"
|
26 |
|
27 |
-
#: classes/Visualizer/Module/Admin.php:
|
28 |
msgid "Visualizations"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: classes/Visualizer/Module/Admin.php:
|
32 |
msgid "From Library"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: classes/Visualizer/Module/Admin.php:
|
36 |
msgid "Create New"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: classes/Visualizer/Module/Admin.php:
|
40 |
msgid "Pie"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: classes/Visualizer/Module/Admin.php:
|
44 |
msgid "Line"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: classes/Visualizer/Module/Admin.php:
|
48 |
msgid "Area"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: classes/Visualizer/Module/Admin.php:
|
52 |
msgid "Geo"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: classes/Visualizer/Module/Admin.php:
|
56 |
msgid "Bar"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: classes/Visualizer/Module/Admin.php:
|
60 |
msgid "Column"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: classes/Visualizer/Module/Admin.php:
|
64 |
msgid "Gauge"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: classes/Visualizer/Module/Admin.php:
|
68 |
msgid "Scatter"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: classes/Visualizer/Module/Admin.php:
|
72 |
msgid "Candlestick"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: classes/Visualizer/Module/Admin.php:
|
76 |
msgid "Table"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: classes/Visualizer/Module/Admin.php:
|
80 |
msgid "Timeline"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: classes/Visualizer/Module/Admin.php:
|
84 |
msgid "Combo"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: classes/Visualizer/Module/Admin.php:
|
88 |
#: classes/Visualizer/Render/Library.php:42
|
89 |
msgid "Visualizer Library"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: classes/Visualizer/Module/Admin.php:
|
93 |
msgid "Library"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: classes/Visualizer/Module/Admin.php:
|
97 |
msgid "Knowledge Base"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: classes/Visualizer/Module/Admin.php:
|
101 |
msgid "Pro Addon"
|
102 |
msgstr ""
|
103 |
|
@@ -132,22 +132,22 @@ msgid "CSV file is broken or invalid. Please, try again."
|
|
132 |
msgstr ""
|
133 |
|
134 |
#: classes/Visualizer/Module/Frontend.php:94
|
135 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
136 |
msgid "Print"
|
137 |
msgstr ""
|
138 |
|
139 |
#: classes/Visualizer/Module/Frontend.php:95
|
140 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
141 |
msgid "CSV"
|
142 |
msgstr ""
|
143 |
|
144 |
#: classes/Visualizer/Module/Frontend.php:96
|
145 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
146 |
msgid "Excel"
|
147 |
msgstr ""
|
148 |
|
149 |
#: classes/Visualizer/Module/Frontend.php:97
|
150 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
151 |
msgid "Copy"
|
152 |
msgstr ""
|
153 |
|
@@ -159,7 +159,7 @@ msgstr ""
|
|
159 |
msgid "Invalid action"
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: classes/Visualizer/Module/Frontend.php:
|
163 |
msgid "Copied!"
|
164 |
msgstr ""
|
165 |
|
@@ -594,7 +594,7 @@ msgstr ""
|
|
594 |
#: classes/Visualizer/Render/Sidebar/Graph.php:179
|
595 |
#: classes/Visualizer/Render/Sidebar/Graph.php:291
|
596 |
#: classes/Visualizer/Render/Sidebar/Type/Gauge.php:57
|
597 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
598 |
msgid "General Settings"
|
599 |
msgstr ""
|
600 |
|
@@ -718,7 +718,7 @@ msgstr ""
|
|
718 |
#: classes/Visualizer/Render/Sidebar/Graph.php:422
|
719 |
#: classes/Visualizer/Render/Sidebar/Graph.php:451
|
720 |
#: classes/Visualizer/Render/Sidebar/Type/Pie.php:61
|
721 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
722 |
msgid "Number Format"
|
723 |
msgstr ""
|
724 |
|
@@ -877,7 +877,7 @@ msgstr ""
|
|
877 |
#: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:102
|
878 |
#: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:126
|
879 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:377
|
880 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
881 |
msgid "Stroke Width"
|
882 |
msgstr ""
|
883 |
|
@@ -888,7 +888,7 @@ msgstr ""
|
|
888 |
#: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:110
|
889 |
#: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:134
|
890 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:385
|
891 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
892 |
msgid "Stroke Color"
|
893 |
msgstr ""
|
894 |
|
@@ -967,13 +967,13 @@ msgid "The lowest and highest values for a range marked by a red color."
|
|
967 |
msgstr ""
|
968 |
|
969 |
#: classes/Visualizer/Render/Sidebar/Type/Gauge.php:228
|
970 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
971 |
msgid "Layout & Chart Area"
|
972 |
msgstr ""
|
973 |
|
974 |
#: classes/Visualizer/Render/Sidebar/Type/Gauge.php:230
|
975 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:341
|
976 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
977 |
msgid ""
|
978 |
"Configure the total size of the chart. Two formats are supported: a number, "
|
979 |
"or a number followed by %. A simple number is a value in pixels; a number "
|
@@ -982,13 +982,13 @@ msgstr ""
|
|
982 |
|
983 |
#: classes/Visualizer/Render/Sidebar/Type/Gauge.php:234
|
984 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:345
|
985 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
986 |
msgid "Width And Height Of Chart"
|
987 |
msgstr ""
|
988 |
|
989 |
#: classes/Visualizer/Render/Sidebar/Type/Gauge.php:248
|
990 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:359
|
991 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
992 |
msgid "Determines the total width and height of the chart."
|
993 |
msgstr ""
|
994 |
|
@@ -1110,27 +1110,27 @@ msgid "Markers"
|
|
1110 |
msgstr ""
|
1111 |
|
1112 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:143
|
1113 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1114 |
msgid "Tooltip"
|
1115 |
msgstr ""
|
1116 |
|
1117 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:158
|
1118 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1119 |
msgid "Trigger"
|
1120 |
msgstr ""
|
1121 |
|
1122 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:163
|
1123 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1124 |
msgid "The tooltip will be displayed when the user hovers over an element"
|
1125 |
msgstr ""
|
1126 |
|
1127 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:164
|
1128 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1129 |
msgid "The tooltip will not be displayed"
|
1130 |
msgstr ""
|
1131 |
|
1132 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:166
|
1133 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1134 |
msgid "Determines the user interaction that causes the tooltip to be displayed."
|
1135 |
msgstr ""
|
1136 |
|
@@ -1247,19 +1247,19 @@ msgid ""
|
|
1247 |
msgstr ""
|
1248 |
|
1249 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:374
|
1250 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1251 |
msgid ""
|
1252 |
"Configure the background color for the main area of the chart and the chart "
|
1253 |
"border width and color."
|
1254 |
msgstr ""
|
1255 |
|
1256 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:380
|
1257 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1258 |
msgid "The chart border width in pixels."
|
1259 |
msgstr ""
|
1260 |
|
1261 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:392
|
1262 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1263 |
msgid "Background Color"
|
1264 |
msgstr ""
|
1265 |
|
@@ -1473,103 +1473,110 @@ msgstr ""
|
|
1473 |
msgid "One per line in valid JSON (key:value) format e.g. %s"
|
1474 |
msgstr ""
|
1475 |
|
1476 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1477 |
msgid "Actions"
|
1478 |
msgstr ""
|
1479 |
|
1480 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1481 |
msgid "To enable printing the data."
|
1482 |
msgstr ""
|
1483 |
|
1484 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1485 |
msgid "To enable downloading the data as a CSV."
|
1486 |
msgstr ""
|
1487 |
|
1488 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1489 |
msgid "Enable the ZIP and XML extensions to use this setting."
|
1490 |
msgstr ""
|
1491 |
|
1492 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1493 |
msgid "To enable downloading the data as an Excel spreadsheet."
|
1494 |
msgstr ""
|
1495 |
|
1496 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1497 |
msgid "To enable copying the data to the clipboard."
|
1498 |
msgstr ""
|
1499 |
|
1500 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1501 |
msgid ""
|
1502 |
"Configure title, font styles, tooltip, legend and else settings for the "
|
1503 |
"chart."
|
1504 |
msgstr ""
|
1505 |
|
1506 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1507 |
msgid "Title"
|
1508 |
msgstr ""
|
1509 |
|
1510 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1511 |
msgid "Font Styles"
|
1512 |
msgstr ""
|
1513 |
|
1514 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1515 |
msgid "Family And Size"
|
1516 |
msgstr ""
|
1517 |
|
1518 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1519 |
msgid "The default font family and size for all text in the chart."
|
1520 |
msgstr ""
|
1521 |
|
1522 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1523 |
msgid "Legend"
|
1524 |
msgstr ""
|
1525 |
|
1526 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1527 |
msgid "Position"
|
1528 |
msgstr ""
|
1529 |
|
1530 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1531 |
msgid "Determines where to place the legend, compared to the chart area."
|
1532 |
msgstr ""
|
1533 |
|
1534 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1535 |
msgid "Alignment"
|
1536 |
msgstr ""
|
1537 |
|
1538 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1539 |
msgid "Determines the alignment of the legend."
|
1540 |
msgstr ""
|
1541 |
|
1542 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1543 |
msgid "Font Color"
|
1544 |
msgstr ""
|
1545 |
|
1546 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1547 |
msgid "The tooltip will be displayed when the user selects an element"
|
1548 |
msgstr ""
|
1549 |
|
1550 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1551 |
msgid "Show Color Code"
|
1552 |
msgstr ""
|
1553 |
|
1554 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1555 |
msgid ""
|
1556 |
"If set to yes, will show colored squares next to the slice information in "
|
1557 |
"the tooltip."
|
1558 |
msgstr ""
|
1559 |
|
1560 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1561 |
msgid "Layout"
|
1562 |
msgstr ""
|
1563 |
|
1564 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1565 |
msgid "Transparent background"
|
1566 |
msgstr ""
|
1567 |
|
1568 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1569 |
msgid "Chart Area"
|
1570 |
msgstr ""
|
1571 |
|
1572 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1573 |
msgid ""
|
1574 |
"Configure the placement and size of the chart area (where the chart itself "
|
1575 |
"is drawn, excluding axis and legends). Two formats are supported: a number, "
|
@@ -1577,27 +1584,27 @@ msgid ""
|
|
1577 |
"followed by % is a percentage."
|
1578 |
msgstr ""
|
1579 |
|
1580 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1581 |
msgid "Left And Top Margins"
|
1582 |
msgstr ""
|
1583 |
|
1584 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1585 |
msgid "Determines how far to draw the chart from the left and top borders."
|
1586 |
msgstr ""
|
1587 |
|
1588 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1589 |
msgid "Width And Height Of Chart Area"
|
1590 |
msgstr ""
|
1591 |
|
1592 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1593 |
msgid "Determines the width and hight of the chart area."
|
1594 |
msgstr ""
|
1595 |
|
1596 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1597 |
msgid "Hex Value"
|
1598 |
msgstr ""
|
1599 |
|
1600 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1601 |
msgid ""
|
1602 |
"Enter custom format pattern to apply to this series value, similar to the "
|
1603 |
"%1$sICU pattern set%2$s. Use something like #,### to get 1,234 as output, "
|
@@ -1605,11 +1612,11 @@ msgid ""
|
|
1605 |
"percentage format then your values will be multiplied by 100."
|
1606 |
msgstr ""
|
1607 |
|
1608 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1609 |
msgid "Date Format"
|
1610 |
msgstr ""
|
1611 |
|
1612 |
-
#: classes/Visualizer/Render/Sidebar.php:
|
1613 |
msgid ""
|
1614 |
"Enter custom format pattern to apply to this series value, similar to the "
|
1615 |
"%1$sICU date and time format%2$s."
|
2 |
# This file is distributed under the GPL v2.0 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Visualizer: Charts and Graphs Lite 3.0.4\n"
|
6 |
"Report-Msgid-Bugs-To: https://github.com/Codeinwp/visualizer/issues\n"
|
7 |
+
"POT-Creation-Date: 2017-11-27 13:37:38+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
24 |
"X-Poedit-Bookmarks: \n"
|
25 |
"X-Textdomain-Support: yes\n"
|
26 |
|
27 |
+
#: classes/Visualizer/Module/Admin.php:130
|
28 |
msgid "Visualizations"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: classes/Visualizer/Module/Admin.php:133
|
32 |
msgid "From Library"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: classes/Visualizer/Module/Admin.php:134
|
36 |
msgid "Create New"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: classes/Visualizer/Module/Admin.php:159
|
40 |
msgid "Pie"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: classes/Visualizer/Module/Admin.php:163
|
44 |
msgid "Line"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: classes/Visualizer/Module/Admin.php:167
|
48 |
msgid "Area"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: classes/Visualizer/Module/Admin.php:171
|
52 |
msgid "Geo"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: classes/Visualizer/Module/Admin.php:175
|
56 |
msgid "Bar"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: classes/Visualizer/Module/Admin.php:179
|
60 |
msgid "Column"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: classes/Visualizer/Module/Admin.php:183
|
64 |
msgid "Gauge"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: classes/Visualizer/Module/Admin.php:187
|
68 |
msgid "Scatter"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: classes/Visualizer/Module/Admin.php:191
|
72 |
msgid "Candlestick"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: classes/Visualizer/Module/Admin.php:196
|
76 |
msgid "Table"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: classes/Visualizer/Module/Admin.php:200
|
80 |
msgid "Timeline"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: classes/Visualizer/Module/Admin.php:204
|
84 |
msgid "Combo"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: classes/Visualizer/Module/Admin.php:314
|
88 |
#: classes/Visualizer/Render/Library.php:42
|
89 |
msgid "Visualizer Library"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: classes/Visualizer/Module/Admin.php:446
|
93 |
msgid "Library"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: classes/Visualizer/Module/Admin.php:471
|
97 |
msgid "Knowledge Base"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: classes/Visualizer/Module/Admin.php:476
|
101 |
msgid "Pro Addon"
|
102 |
msgstr ""
|
103 |
|
132 |
msgstr ""
|
133 |
|
134 |
#: classes/Visualizer/Module/Frontend.php:94
|
135 |
+
#: classes/Visualizer/Render/Sidebar.php:199
|
136 |
msgid "Print"
|
137 |
msgstr ""
|
138 |
|
139 |
#: classes/Visualizer/Module/Frontend.php:95
|
140 |
+
#: classes/Visualizer/Render/Sidebar.php:207
|
141 |
msgid "CSV"
|
142 |
msgstr ""
|
143 |
|
144 |
#: classes/Visualizer/Module/Frontend.php:96
|
145 |
+
#: classes/Visualizer/Render/Sidebar.php:217
|
146 |
msgid "Excel"
|
147 |
msgstr ""
|
148 |
|
149 |
#: classes/Visualizer/Module/Frontend.php:97
|
150 |
+
#: classes/Visualizer/Render/Sidebar.php:225
|
151 |
msgid "Copy"
|
152 |
msgstr ""
|
153 |
|
159 |
msgid "Invalid action"
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: classes/Visualizer/Module/Frontend.php:245
|
163 |
msgid "Copied!"
|
164 |
msgstr ""
|
165 |
|
594 |
#: classes/Visualizer/Render/Sidebar/Graph.php:179
|
595 |
#: classes/Visualizer/Render/Sidebar/Graph.php:291
|
596 |
#: classes/Visualizer/Render/Sidebar/Type/Gauge.php:57
|
597 |
+
#: classes/Visualizer/Render/Sidebar.php:243
|
598 |
msgid "General Settings"
|
599 |
msgstr ""
|
600 |
|
718 |
#: classes/Visualizer/Render/Sidebar/Graph.php:422
|
719 |
#: classes/Visualizer/Render/Sidebar/Graph.php:451
|
720 |
#: classes/Visualizer/Render/Sidebar/Type/Pie.php:61
|
721 |
+
#: classes/Visualizer/Render/Sidebar.php:643
|
722 |
msgid "Number Format"
|
723 |
msgstr ""
|
724 |
|
877 |
#: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:102
|
878 |
#: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:126
|
879 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:377
|
880 |
+
#: classes/Visualizer/Render/Sidebar.php:384
|
881 |
msgid "Stroke Width"
|
882 |
msgstr ""
|
883 |
|
888 |
#: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:110
|
889 |
#: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:134
|
890 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:385
|
891 |
+
#: classes/Visualizer/Render/Sidebar.php:392
|
892 |
msgid "Stroke Color"
|
893 |
msgstr ""
|
894 |
|
967 |
msgstr ""
|
968 |
|
969 |
#: classes/Visualizer/Render/Sidebar/Type/Gauge.php:228
|
970 |
+
#: classes/Visualizer/Render/Sidebar.php:355
|
971 |
msgid "Layout & Chart Area"
|
972 |
msgstr ""
|
973 |
|
974 |
#: classes/Visualizer/Render/Sidebar/Type/Gauge.php:230
|
975 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:341
|
976 |
+
#: classes/Visualizer/Render/Sidebar.php:357
|
977 |
msgid ""
|
978 |
"Configure the total size of the chart. Two formats are supported: a number, "
|
979 |
"or a number followed by %. A simple number is a value in pixels; a number "
|
982 |
|
983 |
#: classes/Visualizer/Render/Sidebar/Type/Gauge.php:234
|
984 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:345
|
985 |
+
#: classes/Visualizer/Render/Sidebar.php:361
|
986 |
msgid "Width And Height Of Chart"
|
987 |
msgstr ""
|
988 |
|
989 |
#: classes/Visualizer/Render/Sidebar/Type/Gauge.php:248
|
990 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:359
|
991 |
+
#: classes/Visualizer/Render/Sidebar.php:375
|
992 |
msgid "Determines the total width and height of the chart."
|
993 |
msgstr ""
|
994 |
|
1110 |
msgstr ""
|
1111 |
|
1112 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:143
|
1113 |
+
#: classes/Visualizer/Render/Sidebar.php:311
|
1114 |
msgid "Tooltip"
|
1115 |
msgstr ""
|
1116 |
|
1117 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:158
|
1118 |
+
#: classes/Visualizer/Render/Sidebar.php:326
|
1119 |
msgid "Trigger"
|
1120 |
msgstr ""
|
1121 |
|
1122 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:163
|
1123 |
+
#: classes/Visualizer/Render/Sidebar.php:331
|
1124 |
msgid "The tooltip will be displayed when the user hovers over an element"
|
1125 |
msgstr ""
|
1126 |
|
1127 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:164
|
1128 |
+
#: classes/Visualizer/Render/Sidebar.php:333
|
1129 |
msgid "The tooltip will not be displayed"
|
1130 |
msgstr ""
|
1131 |
|
1132 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:166
|
1133 |
+
#: classes/Visualizer/Render/Sidebar.php:335
|
1134 |
msgid "Determines the user interaction that causes the tooltip to be displayed."
|
1135 |
msgstr ""
|
1136 |
|
1247 |
msgstr ""
|
1248 |
|
1249 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:374
|
1250 |
+
#: classes/Visualizer/Render/Sidebar.php:381
|
1251 |
msgid ""
|
1252 |
"Configure the background color for the main area of the chart and the chart "
|
1253 |
"border width and color."
|
1254 |
msgstr ""
|
1255 |
|
1256 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:380
|
1257 |
+
#: classes/Visualizer/Render/Sidebar.php:387
|
1258 |
msgid "The chart border width in pixels."
|
1259 |
msgstr ""
|
1260 |
|
1261 |
#: classes/Visualizer/Render/Sidebar/Type/Geo.php:392
|
1262 |
+
#: classes/Visualizer/Render/Sidebar.php:400
|
1263 |
msgid "Background Color"
|
1264 |
msgstr ""
|
1265 |
|
1473 |
msgid "One per line in valid JSON (key:value) format e.g. %s"
|
1474 |
msgstr ""
|
1475 |
|
1476 |
+
#: classes/Visualizer/Render/Sidebar.php:197
|
1477 |
msgid "Actions"
|
1478 |
msgstr ""
|
1479 |
|
1480 |
+
#: classes/Visualizer/Render/Sidebar.php:203
|
1481 |
+
#: classes/Visualizer/Render/Sidebar.php:211
|
1482 |
+
#: classes/Visualizer/Render/Sidebar.php:221
|
1483 |
+
#: classes/Visualizer/Render/Sidebar.php:229
|
1484 |
+
msgid "Upgrade to at least WordPress 4.7 to use this."
|
1485 |
+
msgstr ""
|
1486 |
+
|
1487 |
+
#: classes/Visualizer/Render/Sidebar.php:203
|
1488 |
msgid "To enable printing the data."
|
1489 |
msgstr ""
|
1490 |
|
1491 |
+
#: classes/Visualizer/Render/Sidebar.php:211
|
1492 |
msgid "To enable downloading the data as a CSV."
|
1493 |
msgstr ""
|
1494 |
|
1495 |
+
#: classes/Visualizer/Render/Sidebar.php:221
|
1496 |
msgid "Enable the ZIP and XML extensions to use this setting."
|
1497 |
msgstr ""
|
1498 |
|
1499 |
+
#: classes/Visualizer/Render/Sidebar.php:221
|
1500 |
msgid "To enable downloading the data as an Excel spreadsheet."
|
1501 |
msgstr ""
|
1502 |
|
1503 |
+
#: classes/Visualizer/Render/Sidebar.php:229
|
1504 |
msgid "To enable copying the data to the clipboard."
|
1505 |
msgstr ""
|
1506 |
|
1507 |
+
#: classes/Visualizer/Render/Sidebar.php:245
|
1508 |
msgid ""
|
1509 |
"Configure title, font styles, tooltip, legend and else settings for the "
|
1510 |
"chart."
|
1511 |
msgstr ""
|
1512 |
|
1513 |
+
#: classes/Visualizer/Render/Sidebar.php:248
|
1514 |
msgid "Title"
|
1515 |
msgstr ""
|
1516 |
|
1517 |
+
#: classes/Visualizer/Render/Sidebar.php:252
|
1518 |
msgid "Font Styles"
|
1519 |
msgstr ""
|
1520 |
|
1521 |
+
#: classes/Visualizer/Render/Sidebar.php:255
|
1522 |
msgid "Family And Size"
|
1523 |
msgstr ""
|
1524 |
|
1525 |
+
#: classes/Visualizer/Render/Sidebar.php:281
|
1526 |
msgid "The default font family and size for all text in the chart."
|
1527 |
msgstr ""
|
1528 |
|
1529 |
+
#: classes/Visualizer/Render/Sidebar.php:286
|
1530 |
msgid "Legend"
|
1531 |
msgstr ""
|
1532 |
|
1533 |
+
#: classes/Visualizer/Render/Sidebar.php:288
|
1534 |
msgid "Position"
|
1535 |
msgstr ""
|
1536 |
|
1537 |
+
#: classes/Visualizer/Render/Sidebar.php:292
|
1538 |
msgid "Determines where to place the legend, compared to the chart area."
|
1539 |
msgstr ""
|
1540 |
|
1541 |
+
#: classes/Visualizer/Render/Sidebar.php:296
|
1542 |
msgid "Alignment"
|
1543 |
msgstr ""
|
1544 |
|
1545 |
+
#: classes/Visualizer/Render/Sidebar.php:300
|
1546 |
msgid "Determines the alignment of the legend."
|
1547 |
msgstr ""
|
1548 |
|
1549 |
+
#: classes/Visualizer/Render/Sidebar.php:304
|
1550 |
msgid "Font Color"
|
1551 |
msgstr ""
|
1552 |
|
1553 |
+
#: classes/Visualizer/Render/Sidebar.php:332
|
1554 |
msgid "The tooltip will be displayed when the user selects an element"
|
1555 |
msgstr ""
|
1556 |
|
1557 |
+
#: classes/Visualizer/Render/Sidebar.php:339
|
1558 |
msgid "Show Color Code"
|
1559 |
msgstr ""
|
1560 |
|
1561 |
+
#: classes/Visualizer/Render/Sidebar.php:343
|
1562 |
msgid ""
|
1563 |
"If set to yes, will show colored squares next to the slice information in "
|
1564 |
"the tooltip."
|
1565 |
msgstr ""
|
1566 |
|
1567 |
+
#: classes/Visualizer/Render/Sidebar.php:356
|
1568 |
msgid "Layout"
|
1569 |
msgstr ""
|
1570 |
|
1571 |
+
#: classes/Visualizer/Render/Sidebar.php:409
|
1572 |
msgid "Transparent background"
|
1573 |
msgstr ""
|
1574 |
|
1575 |
+
#: classes/Visualizer/Render/Sidebar.php:414
|
1576 |
msgid "Chart Area"
|
1577 |
msgstr ""
|
1578 |
|
1579 |
+
#: classes/Visualizer/Render/Sidebar.php:415
|
1580 |
msgid ""
|
1581 |
"Configure the placement and size of the chart area (where the chart itself "
|
1582 |
"is drawn, excluding axis and legends). Two formats are supported: a number, "
|
1584 |
"followed by % is a percentage."
|
1585 |
msgstr ""
|
1586 |
|
1587 |
+
#: classes/Visualizer/Render/Sidebar.php:419
|
1588 |
msgid "Left And Top Margins"
|
1589 |
msgstr ""
|
1590 |
|
1591 |
+
#: classes/Visualizer/Render/Sidebar.php:433
|
1592 |
msgid "Determines how far to draw the chart from the left and top borders."
|
1593 |
msgstr ""
|
1594 |
|
1595 |
+
#: classes/Visualizer/Render/Sidebar.php:439
|
1596 |
msgid "Width And Height Of Chart Area"
|
1597 |
msgstr ""
|
1598 |
|
1599 |
+
#: classes/Visualizer/Render/Sidebar.php:453
|
1600 |
msgid "Determines the width and hight of the chart area."
|
1601 |
msgstr ""
|
1602 |
|
1603 |
+
#: classes/Visualizer/Render/Sidebar.php:514
|
1604 |
msgid "Hex Value"
|
1605 |
msgstr ""
|
1606 |
|
1607 |
+
#: classes/Visualizer/Render/Sidebar.php:646
|
1608 |
msgid ""
|
1609 |
"Enter custom format pattern to apply to this series value, similar to the "
|
1610 |
"%1$sICU pattern set%2$s. Use something like #,### to get 1,234 as output, "
|
1612 |
"percentage format then your values will be multiplied by 100."
|
1613 |
msgstr ""
|
1614 |
|
1615 |
+
#: classes/Visualizer/Render/Sidebar.php:654
|
1616 |
msgid "Date Format"
|
1617 |
msgstr ""
|
1618 |
|
1619 |
+
#: classes/Visualizer/Render/Sidebar.php:657
|
1620 |
msgid ""
|
1621 |
"Enter custom format pattern to apply to this series value, similar to the "
|
1622 |
"%1$sICU date and time format%2$s."
|
readme.md
CHANGED
@@ -144,6 +144,11 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have `
|
|
144 |
5. Charts library
|
145 |
|
146 |
## Changelog ##
|
|
|
|
|
|
|
|
|
|
|
147 |
### 3.0.3 - 2017-11-16 ###
|
148 |
|
149 |
* Adds compatibility with WordPress 4.9.
|
144 |
5. Charts library
|
145 |
|
146 |
## Changelog ##
|
147 |
+
### 3.0.4 - 2017-11-27 ###
|
148 |
+
|
149 |
+
* Fix for review message notification.
|
150 |
+
|
151 |
+
|
152 |
### 3.0.3 - 2017-11-16 ###
|
153 |
|
154 |
* Adds compatibility with WordPress 4.9.
|
readme.txt
CHANGED
@@ -144,6 +144,11 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have `
|
|
144 |
5. Charts library
|
145 |
|
146 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
147 |
= 3.0.3 - 2017-11-16 =
|
148 |
|
149 |
* Adds compatibility with WordPress 4.9.
|
144 |
5. Charts library
|
145 |
|
146 |
== Changelog ==
|
147 |
+
= 3.0.4 - 2017-11-27 =
|
148 |
+
|
149 |
+
* Fix for review message notification.
|
150 |
+
|
151 |
+
|
152 |
= 3.0.3 - 2017-11-16 =
|
153 |
|
154 |
* Adds compatibility with WordPress 4.9.
|
samples/area.csv
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
Month,Bolivia,Ecuador,Madagascar,Papua New Guinea,Rwanda
|
2 |
-
|
3 |
2004/05,165,938,522,998,450
|
4 |
2005/06,135,1120,599,1268,288
|
5 |
2006/07,157,1167,587,807,397
|
1 |
Month,Bolivia,Ecuador,Madagascar,Papua New Guinea,Rwanda
|
2 |
+
string,number,number,number,number,number
|
3 |
2004/05,165,938,522,998,450
|
4 |
2005/06,135,1120,599,1268,288
|
5 |
2006/07,157,1167,587,807,397
|
themeisle-hash.json
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"index.php":"aab1f2eb83c91cd69791ee8ef57349c5"}
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit89dc34f468b169a4bbb56ee0a19cfc2e::getLoader();
|
vendor/autoload_52.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The class that exposes endpoints.
|
4 |
+
*
|
5 |
+
* @package ThemeIsleSDK
|
6 |
+
* @subpackage Endpoints
|
7 |
+
* @copyright Copyright (c) 2017, Marius Cristea
|
8 |
+
* @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
|
9 |
+
* @since 1.0.0
|
10 |
+
*/
|
11 |
+
// Exit if accessed directly.
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
+
exit;
|
14 |
+
}
|
15 |
+
if ( ! class_exists( 'ThemeIsle_SDK_Endpoints' ) ) :
|
16 |
+
/**
|
17 |
+
* Expose endpoints for ThemeIsle SDK.
|
18 |
+
*/
|
19 |
+
final class ThemeIsle_SDK_Endpoints {
|
20 |
+
|
21 |
+
const SDK_ENDPOINT = 'themeisle-sdk';
|
22 |
+
const SDK_ENDPOINT_VERSION = 1;
|
23 |
+
|
24 |
+
const HASH_FILE = 'themeisle-hash.json';
|
25 |
+
|
26 |
+
// if true, the endpoint will expect a product slug and will return the value only for that.
|
27 |
+
const PRODUCT_SPECIFIC = false;
|
28 |
+
|
29 |
+
/**
|
30 |
+
* @var ThemeIsle_SDK_Product $products Array of Themeisle Product.
|
31 |
+
*/
|
32 |
+
static protected $products = array();
|
33 |
+
|
34 |
+
/**
|
35 |
+
* ThemeIsle_SDK_Endpoints constructor.
|
36 |
+
*
|
37 |
+
* @param ThemeIsle_SDK_Product $product_object Product Object.
|
38 |
+
*/
|
39 |
+
public function __construct( $product_object ) {
|
40 |
+
if ( $product_object instanceof ThemeIsle_SDK_Product ) {
|
41 |
+
self::$products[] = $product_object;
|
42 |
+
}
|
43 |
+
$this->setup_endpoints();
|
44 |
+
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Setup endpoints.
|
48 |
+
*/
|
49 |
+
private function setup_endpoints() {
|
50 |
+
global $wp_version;
|
51 |
+
if ( version_compare( $wp_version, '4.4', '<' ) ) {
|
52 |
+
// no REST support.
|
53 |
+
return;
|
54 |
+
}
|
55 |
+
|
56 |
+
$this->setup_rest();
|
57 |
+
}
|
58 |
+
|
59 |
+
/**
|
60 |
+
* Setup REST endpoints.
|
61 |
+
*/
|
62 |
+
private function setup_rest() {
|
63 |
+
add_action( 'rest_api_init', array( $this, 'rest_register' ) );
|
64 |
+
}
|
65 |
+
|
66 |
+
/**
|
67 |
+
* Registers the endpoints
|
68 |
+
*/
|
69 |
+
function rest_register() {
|
70 |
+
register_rest_route(
|
71 |
+
self::SDK_ENDPOINT . '/v' . self::SDK_ENDPOINT_VERSION,
|
72 |
+
'/checksum/' . ( self::PRODUCT_SPECIFIC ? '(?P<slug>.*)/' : '' ),
|
73 |
+
array(
|
74 |
+
'methods' => 'GET',
|
75 |
+
'callback' => array( $this, 'checksum' ),
|
76 |
+
)
|
77 |
+
);
|
78 |
+
}
|
79 |
+
|
80 |
+
/**
|
81 |
+
* The checksum endpoint.
|
82 |
+
*
|
83 |
+
* @param WP_REST_Request $data the request.
|
84 |
+
*
|
85 |
+
* @return WP_REST_Response Response or the error
|
86 |
+
*/
|
87 |
+
function checksum( WP_REST_Request $data ) {
|
88 |
+
$products = self::$products;
|
89 |
+
if ( self::PRODUCT_SPECIFIC ) {
|
90 |
+
$params = $this->validate_params( $data, array( 'slug' ) );
|
91 |
+
foreach ( self::$products as $product ) {
|
92 |
+
if ( $params['slug'] === $product->get_slug() ) {
|
93 |
+
$products = array( $product );
|
94 |
+
break;
|
95 |
+
}
|
96 |
+
}
|
97 |
+
}
|
98 |
+
$response = array();
|
99 |
+
$custom_css = $this->has_custom_css();
|
100 |
+
if ( is_bool( $custom_css ) ) {
|
101 |
+
$response['custom_css'] = $custom_css;
|
102 |
+
}
|
103 |
+
|
104 |
+
$response['child_theme'] = $this->get_theme_properties();
|
105 |
+
|
106 |
+
foreach ( $products as $product ) {
|
107 |
+
$files = array();
|
108 |
+
switch ( $product->get_type() ) {
|
109 |
+
case 'plugin':
|
110 |
+
$files = array();
|
111 |
+
break;
|
112 |
+
case 'theme':
|
113 |
+
$files = array( 'style.css', 'functions.php' );
|
114 |
+
break;
|
115 |
+
}
|
116 |
+
|
117 |
+
$error = '';
|
118 |
+
|
119 |
+
// if any element in the $files array contains a '/', this would imply recursion is required.
|
120 |
+
$diff = $this->generate_diff( $product, $files, array_reduce( $files, array( $this, 'is_recursion_required' ), false ) );
|
121 |
+
if ( is_wp_error( $diff ) ) {
|
122 |
+
$error = $diff->get_error_message();
|
123 |
+
$diff = array();
|
124 |
+
}
|
125 |
+
|
126 |
+
$response['products'][] = array(
|
127 |
+
'slug' => $product->get_slug(),
|
128 |
+
'version' => $product->get_version(),
|
129 |
+
'diffs' => $diff,
|
130 |
+
'error' => $error,
|
131 |
+
);
|
132 |
+
}
|
133 |
+
|
134 |
+
return new WP_REST_Response( array( 'checksum' => $response ) );
|
135 |
+
}
|
136 |
+
|
137 |
+
/**
|
138 |
+
* Get the current theme properties.
|
139 |
+
*
|
140 |
+
* @return array Properties of the current theme.
|
141 |
+
*/
|
142 |
+
function get_theme_properties() {
|
143 |
+
if ( ! is_child_theme() ) {
|
144 |
+
return false;
|
145 |
+
}
|
146 |
+
|
147 |
+
$properties = array();
|
148 |
+
$theme = wp_get_theme();
|
149 |
+
// @codingStandardsIgnoreStart
|
150 |
+
$properties['name'] = $theme->Name;
|
151 |
+
// @codingStandardsIgnoreEnd
|
152 |
+
|
153 |
+
// get the files in the child theme.
|
154 |
+
require_once( ABSPATH . 'wp-admin/includes/file.php' );
|
155 |
+
WP_Filesystem();
|
156 |
+
global $wp_filesystem;
|
157 |
+
$path = str_replace( ABSPATH, $wp_filesystem->abspath(), get_stylesheet_directory() );
|
158 |
+
$list = $wp_filesystem->dirlist( $path, false, false );
|
159 |
+
if ( $list ) {
|
160 |
+
$list = array_keys( self::flatten_dirlist( $list ) );
|
161 |
+
$properties['files'] = $list;
|
162 |
+
}
|
163 |
+
return $properties;
|
164 |
+
}
|
165 |
+
|
166 |
+
/**
|
167 |
+
* Check if custom css has been added to the theme.
|
168 |
+
*
|
169 |
+
* @return bool Whether custom css has been added to the theme.
|
170 |
+
*/
|
171 |
+
private function has_custom_css() {
|
172 |
+
$query = new WP_Query(
|
173 |
+
array(
|
174 |
+
'post_type' => 'custom_css',
|
175 |
+
'post_status' => 'publish',
|
176 |
+
'numberposts' => 1,
|
177 |
+
'update_post_meta_cache' => false,
|
178 |
+
'update_post_term_cache' => false,
|
179 |
+
)
|
180 |
+
);
|
181 |
+
|
182 |
+
if ( $query->have_posts() ) {
|
183 |
+
$query->the_post();
|
184 |
+
$content = get_the_content();
|
185 |
+
// if the content contains a colon, a CSS rule has been added.
|
186 |
+
return strpos( $content, ':' ) === false ? false : true;
|
187 |
+
}
|
188 |
+
return false;
|
189 |
+
}
|
190 |
+
|
191 |
+
/**
|
192 |
+
* Check if recursion needs to be enabled on the WP_Filesystem by reducing the array of files to a boolean.
|
193 |
+
*
|
194 |
+
* @param string $carry Value of the previous iteration.
|
195 |
+
* @param string $item Value of the current iteration.
|
196 |
+
*
|
197 |
+
* @return bool Whether to recurse or not.
|
198 |
+
*/
|
199 |
+
function is_recursion_required( $carry, $item ) {
|
200 |
+
if ( ! $carry ) {
|
201 |
+
return ( strpos( $item, '/' ) !== false );
|
202 |
+
}
|
203 |
+
return $carry;
|
204 |
+
}
|
205 |
+
|
206 |
+
/**
|
207 |
+
* Generate the diff of the files.
|
208 |
+
*
|
209 |
+
* @param ThemeIsle_SDK_Product $product Themeisle Product.
|
210 |
+
* @param array $files Array of files.
|
211 |
+
* @param bool $recurse Whether to recurse or not.
|
212 |
+
*
|
213 |
+
* @return string
|
214 |
+
*/
|
215 |
+
private function generate_diff( $product, $files, $recurse = false ) {
|
216 |
+
require_once( ABSPATH . 'wp-admin/includes/file.php' );
|
217 |
+
WP_Filesystem();
|
218 |
+
global $wp_filesystem;
|
219 |
+
|
220 |
+
$diff = array();
|
221 |
+
$path = str_replace( ABSPATH, $wp_filesystem->abspath(), plugin_dir_path( $product->get_basefile() ) );
|
222 |
+
$list = $wp_filesystem->dirlist( $path, false, $recurse );
|
223 |
+
// nothing found.
|
224 |
+
if ( ! $list ) {
|
225 |
+
return $diff;
|
226 |
+
}
|
227 |
+
$list = array_keys( self::flatten_dirlist( $list ) );
|
228 |
+
|
229 |
+
// now let's get the valid files that actually exist.
|
230 |
+
if ( empty( $files ) ) {
|
231 |
+
$files = $list;
|
232 |
+
} else {
|
233 |
+
$files = array_intersect( $files, $list );
|
234 |
+
}
|
235 |
+
|
236 |
+
// fetch the calculated hashes.
|
237 |
+
if ( ! $wp_filesystem->is_readable( $path . '/' . self::HASH_FILE ) ) {
|
238 |
+
return new WP_Error( 'themeisle_sdk_hash_not_found', sprintf( __( '%s not found', 'themeisle-sdk' ), self::HASH_FILE ) );
|
239 |
+
}
|
240 |
+
|
241 |
+
$hashes = json_decode( $wp_filesystem->get_contents( $path . '/' . self::HASH_FILE ), true );
|
242 |
+
ksort( $hashes );
|
243 |
+
|
244 |
+
$diff = array();
|
245 |
+
foreach ( $files as $file ) {
|
246 |
+
// file does not exist in the hashes.
|
247 |
+
if ( ! array_key_exists( $file, $hashes ) ) {
|
248 |
+
continue;
|
249 |
+
}
|
250 |
+
$new = md5( $wp_filesystem->get_contents( $path . $file ) );
|
251 |
+
$old = $hashes[ $file ];
|
252 |
+
|
253 |
+
// same hash, bail.
|
254 |
+
if ( $new === $old ) {
|
255 |
+
continue;
|
256 |
+
}
|
257 |
+
$diff[] = $file;
|
258 |
+
}
|
259 |
+
return $diff;
|
260 |
+
}
|
261 |
+
|
262 |
+
/**
|
263 |
+
* Flatten the results of WP_Filesystem::dirlist() for iterating over.
|
264 |
+
*
|
265 |
+
* @access private
|
266 |
+
*
|
267 |
+
* @param array $nested_files Array of files as returned by WP_Filesystem::dirlist().
|
268 |
+
* @param string $path Relative path to prepend to child nodes. Optional.
|
269 |
+
* @return array $files A flattened array of the $nested_files specified.
|
270 |
+
*/
|
271 |
+
private static function flatten_dirlist( $nested_files, $path = '' ) {
|
272 |
+
$files = array();
|
273 |
+
foreach ( $nested_files as $name => $details ) {
|
274 |
+
$files[ $path . $name ] = $details;
|
275 |
+
// Append children recursively
|
276 |
+
if ( ! empty( $details['files'] ) ) {
|
277 |
+
$children = self::flatten_dirlist( $details['files'], $path . $name . '/' );
|
278 |
+
// Merge keeping possible numeric keys, which array_merge() will reindex from 0..n
|
279 |
+
$files = $files + $children;
|
280 |
+
}
|
281 |
+
}
|
282 |
+
return $files;
|
283 |
+
}
|
284 |
+
|
285 |
+
/**
|
286 |
+
* Validates the parameters to the API
|
287 |
+
*
|
288 |
+
* @param WP_REST_Request $data the request.
|
289 |
+
* @param array $params the parameters to validate.
|
290 |
+
*
|
291 |
+
* @return array of parameter name=>value
|
292 |
+
*/
|
293 |
+
private function validate_params( WP_REST_Request $data, $params ) {
|
294 |
+
$collect = array();
|
295 |
+
foreach ( $params as $param ) {
|
296 |
+
$value = sanitize_text_field( $data[ $param ] );
|
297 |
+
if ( empty( $value ) ) {
|
298 |
+
return new WP_Error(
|
299 |
+
'themeisle_' . $param . '_invalid', sprintf( __( 'Invalid %', 'themeisle-sdk' ), $param ), array(
|
300 |
+
'status' => 403,
|
301 |
+
)
|
302 |
+
);
|
303 |
+
} else {
|
304 |
+
$collect[ $param ] = $value;
|
305 |
+
}
|
306 |
+
}
|
307 |
+
|
308 |
+
return $collect;
|
309 |
+
}
|
310 |
+
|
311 |
+
}
|
312 |
+
endif;
|
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-deactivate.php
CHANGED
@@ -22,21 +22,15 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
|
|
22 |
* @var array $options_plugin The main options list for plugins.
|
23 |
*/
|
24 |
private $options_plugin = array(
|
25 |
-
'I
|
26 |
-
'id' => 1,
|
27 |
-
),
|
28 |
-
'The plugin broke my site' => array(
|
29 |
-
'id' => 2,
|
30 |
-
),
|
31 |
-
'I found a better plugin' => array(
|
32 |
'id' => 3,
|
33 |
'type' => 'text',
|
34 |
'placeholder' => 'What\'s the plugin\'s name?',
|
35 |
),
|
36 |
-
'
|
37 |
'id' => 4,
|
38 |
),
|
39 |
-
'I no longer need the plugin'
|
40 |
'id' => 5,
|
41 |
'type' => 'textarea',
|
42 |
'placeholder' => 'If you could improve one thing about our product, what would it be?',
|
@@ -80,12 +74,12 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
|
|
80 |
/**
|
81 |
* @var string $heading_plugin The heading of the modal
|
82 |
*/
|
83 |
-
private $heading_plugin = '
|
84 |
|
85 |
/**
|
86 |
* @var string $heading_theme The heading of the modal
|
87 |
*/
|
88 |
-
private $heading_theme = 'Looking to change {theme}
|
89 |
|
90 |
/**
|
91 |
* @var string $button_submit_before The text of the deactivate button before an option is chosen
|
@@ -100,7 +94,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
|
|
100 |
/**
|
101 |
* @var string $button_cancel The text of the cancel button
|
102 |
*/
|
103 |
-
private $button_cancel = '
|
104 |
|
105 |
/**
|
106 |
* @var int how many seconds before the deactivation window is triggered for themes
|
@@ -170,46 +164,110 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
|
|
170 |
}
|
171 |
|
172 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container #TB_title {
|
173 |
-
|
174 |
-
|
175 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
}
|
177 |
|
178 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container div.actions {
|
179 |
-
|
180 |
-
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
}
|
183 |
|
184 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container input.button.button-primary {
|
185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
}
|
187 |
|
188 |
-
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container input.button {
|
189 |
-
|
190 |
}
|
191 |
|
192 |
-
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container
|
193 |
-
|
194 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
}
|
196 |
|
197 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container div.revive_network-container {
|
198 |
background-color: #ffffff;
|
199 |
}
|
200 |
|
|
|
|
|
|
|
|
|
201 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container ul.ti-list li {
|
202 |
-
|
|
|
|
|
203 |
}
|
204 |
|
205 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container ul.ti-list li label {
|
206 |
margin-left: 10px;
|
207 |
-
line-height:
|
208 |
-
font-size:
|
|
|
|
|
|
|
|
|
209 |
}
|
210 |
|
211 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container #TB_ajaxContent {
|
212 |
-
|
|
|
|
|
|
|
213 |
}
|
214 |
|
215 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container li div textarea {
|
@@ -222,24 +280,31 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
|
|
222 |
}
|
223 |
|
224 |
.<?php echo $key; ?>-container #TB_title #TB_ajaxWindowTitle {
|
|
|
225 |
display: block;
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
}
|
227 |
|
228 |
-
|
229 |
-
|
230 |
-
width: 100%;
|
231 |
display: block;
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
text-
|
236 |
}
|
237 |
|
238 |
-
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container
|
239 |
-
|
240 |
-
height: 33px;
|
241 |
width: 100%;
|
242 |
-
|
|
|
|
|
|
|
243 |
}
|
244 |
|
245 |
.theme-install-php .<?php echo $key; ?>-container #TB_closeWindowButton .tb-close-icon:before {
|
@@ -247,24 +312,40 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
|
|
247 |
}
|
248 |
|
249 |
.<?php echo $key; ?>-container #TB_closeWindowButton .tb-close-icon {
|
250 |
-
|
251 |
color: #eee;
|
252 |
}
|
253 |
|
254 |
.<?php echo $key; ?>-container #TB_closeWindowButton {
|
255 |
left: auto;
|
256 |
-
right: -
|
|
|
257 |
color: #eee;
|
258 |
}
|
259 |
|
260 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
|
|
|
262 |
margin: auto !important;
|
263 |
-
height:
|
264 |
top: 0 !important;
|
265 |
left: 0 !important;
|
266 |
bottom: 0 !important;
|
267 |
right: 0 !important;
|
|
|
268 |
}
|
269 |
</style>
|
270 |
<?php
|
@@ -303,25 +384,29 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
|
|
303 |
$('a.ti-auto-anchor').trigger('click');
|
304 |
}, <?php echo self::AUTO_TRIGGER_DEACTIVATE_WINDOW_SECONDS * 1000; ?> );
|
305 |
}
|
306 |
-
$(
|
307 |
$.ajax({
|
308 |
url: ajaxurl,
|
309 |
method: 'post',
|
310 |
data: {
|
311 |
-
'action'
|
312 |
-
'nonce'
|
313 |
-
'type'
|
314 |
-
'key'
|
315 |
},
|
316 |
});
|
317 |
});
|
318 |
var href = $(target_element).attr('href');
|
319 |
-
$('#<?php echo $key; ?>ti-deactivate-no').on('click', function (e) {
|
320 |
e.preventDefault();
|
321 |
e.stopPropagation();
|
322 |
|
323 |
$('body').unbind('thickbox:removed');
|
324 |
tb_remove();
|
|
|
|
|
|
|
|
|
325 |
});
|
326 |
|
327 |
$('#<?php echo $key; ?> ul.ti-list label, #<?php echo $key; ?> ul.ti-list input[name="ti-deactivate-option"]').on('click', function (e) {
|
@@ -349,12 +434,12 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
|
|
349 |
url: ajaxurl,
|
350 |
method: 'post',
|
351 |
data: {
|
352 |
-
'action'
|
353 |
-
'nonce'
|
354 |
-
'id'
|
355 |
-
'msg'
|
356 |
-
'type'
|
357 |
-
'key'
|
358 |
},
|
359 |
});
|
360 |
var redirect = $(this).attr('data-ti-action');
|
@@ -366,7 +451,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
|
|
366 |
}
|
367 |
});
|
368 |
|
369 |
-
$(target_element).attr('name', '<?php echo
|
370 |
var thicbox_timer;
|
371 |
$(target_element).on('click', function () {
|
372 |
tiBindThickbox();
|
@@ -409,10 +494,10 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
|
|
409 |
|
410 |
$list = '';
|
411 |
foreach ( $options as $title => $attributes ) {
|
412 |
-
$id
|
413 |
$list .= '<li ti-option-id="' . $id . '"><input type="radio" name="ti-deactivate-option" id="' . $key . $id . '"><label for="' . $key . $id . '">' . str_replace( '{theme}', $this->product->get_name(), $title ) . '</label>';
|
414 |
if ( array_key_exists( 'type', $attributes ) ) {
|
415 |
-
$list
|
416 |
$placeholder = array_key_exists( 'placeholder', $attributes ) ? $attributes['placeholder'] : '';
|
417 |
switch ( $attributes['type'] ) {
|
418 |
case 'text':
|
@@ -431,8 +516,9 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
|
|
431 |
. '<ul class="ti-list">' . $list . '</ul>'
|
432 |
. '<div class="actions">'
|
433 |
. get_submit_button(
|
434 |
-
$
|
435 |
'data-after-text' => $button_submit,
|
|
|
436 |
)
|
437 |
)
|
438 |
. get_submit_button( $button_cancel, 'primary', $this->product->get_key() . 'ti-deactivate-no', false )
|
22 |
* @var array $options_plugin The main options list for plugins.
|
23 |
*/
|
24 |
private $options_plugin = array(
|
25 |
+
'I found a better plugin' => array(
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
'id' => 3,
|
27 |
'type' => 'text',
|
28 |
'placeholder' => 'What\'s the plugin\'s name?',
|
29 |
),
|
30 |
+
'I could not get the plugin to work' => array(
|
31 |
'id' => 4,
|
32 |
),
|
33 |
+
'I no longer need the plugin' => array(
|
34 |
'id' => 5,
|
35 |
'type' => 'textarea',
|
36 |
'placeholder' => 'If you could improve one thing about our product, what would it be?',
|
74 |
/**
|
75 |
* @var string $heading_plugin The heading of the modal
|
76 |
*/
|
77 |
+
private $heading_plugin = 'Quick Feedback <span>Because we care about our clients, please leave us a feedback.</span>';
|
78 |
|
79 |
/**
|
80 |
* @var string $heading_theme The heading of the modal
|
81 |
*/
|
82 |
+
private $heading_theme = 'Looking to change {theme} <span> What does not work for you?</span>';
|
83 |
|
84 |
/**
|
85 |
* @var string $button_submit_before The text of the deactivate button before an option is chosen
|
94 |
/**
|
95 |
* @var string $button_cancel The text of the cancel button
|
96 |
*/
|
97 |
+
private $button_cancel = 'Skip & Deactivate';
|
98 |
|
99 |
/**
|
100 |
* @var int how many seconds before the deactivation window is triggered for themes
|
164 |
}
|
165 |
|
166 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container #TB_title {
|
167 |
+
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54b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l//g8Fma7FJqmfVAU3Q9WMfrzFF9ZkdxQ5GTtGoN40lev4cfblVmbST0xBnmI/xHdhcVDo6A8++UlH0+t28qrlxxPVbnZnBOjYOy9OG2Hm6OZPz9/q6EHNG4eTlHuIQaPY7mzN+Yn1N9JMMq0mQ/icquHmpwLa/LXotHVPEalD5EP23l9VUc+fUc9UoOKQU/9x7OLSndelJfHwesckRqtKyVdnLbOjQ4hUPuATP+3v4r3n8LMAAsR90w+kkNLQAAAABJRU5ErkJggg==') 40px 30px no-repeat;
|
168 |
+
border: none;
|
169 |
+
box-sizing: border-box;
|
170 |
+
color: #373e40;
|
171 |
+
font-size: 24px;
|
172 |
+
font-weight: 700;
|
173 |
+
height: 90px;
|
174 |
+
padding: 40px 40px 0 120px;
|
175 |
+
text-transform: uppercase;
|
176 |
+
width: 100%;
|
177 |
}
|
178 |
|
179 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container div.actions {
|
180 |
+
box-sizing: border-box;
|
181 |
+
padding: 30px 40px;
|
182 |
+
background-color: #eaeaea;
|
183 |
+
}
|
184 |
+
|
185 |
+
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container input.button {
|
186 |
+
background: #ec5d60;
|
187 |
+
border: none;
|
188 |
+
box-shadow: none;
|
189 |
+
color: #ffffff;
|
190 |
+
font-size: 15px;
|
191 |
+
font-weight: 700;
|
192 |
+
height: auto;
|
193 |
+
line-height: 20px;
|
194 |
+
padding: 10px 15px;
|
195 |
+
text-transform: uppercase;
|
196 |
+
-webkit-transition: 0.3s ease;
|
197 |
+
-moz-transition: 0.3s ease;
|
198 |
+
-ms-transition: 0.3s ease;
|
199 |
+
-o-transition: 0.3s ease;
|
200 |
+
transition: 0.3s ease;
|
201 |
}
|
202 |
|
203 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container input.button.button-primary {
|
204 |
+
background: transparent;
|
205 |
+
box-shadow: none;
|
206 |
+
color: #8d9192;
|
207 |
+
font-weight: 400;
|
208 |
+
float: right;
|
209 |
+
line-height: 40px;
|
210 |
+
padding: 0;
|
211 |
+
text-decoration: underline;
|
212 |
+
text-shadow: none;
|
213 |
+
text-transform: none;
|
214 |
}
|
215 |
|
216 |
+
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container input.button:hover {
|
217 |
+
background: #e83f42;
|
218 |
}
|
219 |
|
220 |
+
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container input.button.button-primary:hover {
|
221 |
+
background: transparent;
|
222 |
+
}
|
223 |
+
|
224 |
+
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container input.button:focus {
|
225 |
+
box-shadow: none;
|
226 |
+
outline: none;
|
227 |
+
}
|
228 |
+
|
229 |
+
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container input.button:active {
|
230 |
+
box-shadow: none;
|
231 |
+
transform: translateY(0);
|
232 |
+
}
|
233 |
+
|
234 |
+
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container input.button:disabled {
|
235 |
+
cursor: not-allowed;
|
236 |
+
}
|
237 |
+
|
238 |
+
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container input.button.button-primary:hover {
|
239 |
+
text-decoration: none;
|
240 |
}
|
241 |
|
242 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container div.revive_network-container {
|
243 |
background-color: #ffffff;
|
244 |
}
|
245 |
|
246 |
+
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container ul.ti-list {
|
247 |
+
margin: 0;
|
248 |
+
}
|
249 |
+
|
250 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container ul.ti-list li {
|
251 |
+
color: #373e40;
|
252 |
+
font-size: 13px;
|
253 |
+
margin-bottom: 5px;
|
254 |
}
|
255 |
|
256 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container ul.ti-list li label {
|
257 |
margin-left: 10px;
|
258 |
+
line-height: 28px;
|
259 |
+
font-size: 15px;
|
260 |
+
}
|
261 |
+
|
262 |
+
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container ul.ti-list input[type=radio] {
|
263 |
+
margin-top: 1px;
|
264 |
}
|
265 |
|
266 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container #TB_ajaxContent {
|
267 |
+
box-sizing: border-box;
|
268 |
+
height: auto !important;
|
269 |
+
padding: 20px 40px;
|
270 |
+
width: 100% !important;
|
271 |
}
|
272 |
|
273 |
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container li div textarea {
|
280 |
}
|
281 |
|
282 |
.<?php echo $key; ?>-container #TB_title #TB_ajaxWindowTitle {
|
283 |
+
box-sizing: border-box;
|
284 |
display: block;
|
285 |
+
float: none;
|
286 |
+
font-weight: 700;
|
287 |
+
line-height: 1;
|
288 |
+
padding: 0;
|
289 |
+
text-align: left;
|
290 |
+
width: 100%;
|
291 |
}
|
292 |
|
293 |
+
.<?php echo $key; ?>-container #TB_title #TB_ajaxWindowTitle span {
|
294 |
+
color: #8d9192;
|
|
|
295 |
display: block;
|
296 |
+
font-size: 15px;
|
297 |
+
font-weight: 400;
|
298 |
+
margin-top: 5px;
|
299 |
+
text-transform: none;
|
300 |
}
|
301 |
|
302 |
+
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container .actions {
|
|
|
|
|
303 |
width: 100%;
|
304 |
+
display: block;
|
305 |
+
position: absolute;
|
306 |
+
left: 0;
|
307 |
+
bottom: 0;
|
308 |
}
|
309 |
|
310 |
.theme-install-php .<?php echo $key; ?>-container #TB_closeWindowButton .tb-close-icon:before {
|
312 |
}
|
313 |
|
314 |
.<?php echo $key; ?>-container #TB_closeWindowButton .tb-close-icon {
|
|
|
315 |
color: #eee;
|
316 |
}
|
317 |
|
318 |
.<?php echo $key; ?>-container #TB_closeWindowButton {
|
319 |
left: auto;
|
320 |
+
right: -5px;
|
321 |
+
top: -35px;
|
322 |
color: #eee;
|
323 |
}
|
324 |
|
325 |
+
.<?php echo $key; ?>-container #TB_closeWindowButton .tb-close-icon {
|
326 |
+
text-align: right;
|
327 |
+
line-height: 25px;
|
328 |
+
width: 25px;
|
329 |
+
height: 25px;
|
330 |
+
}
|
331 |
+
|
332 |
+
.<?php echo $key; ?>-container #TB_closeWindowButton:focus .tb-close-icon {
|
333 |
+
box-shadow: none;
|
334 |
+
outline: none;
|
335 |
+
}
|
336 |
+
|
337 |
+
.<?php echo $key; ?>-container #TB_closeWindowButton .tb-close-icon:before {
|
338 |
+
font: normal 25px dashicons;
|
339 |
+
}
|
340 |
|
341 |
+
body.<?php echo $suffix; ?> .<?php echo $key; ?>-container {
|
342 |
margin: auto !important;
|
343 |
+
height: 500px !important;
|
344 |
top: 0 !important;
|
345 |
left: 0 !important;
|
346 |
bottom: 0 !important;
|
347 |
right: 0 !important;
|
348 |
+
width: 600px !important;
|
349 |
}
|
350 |
</style>
|
351 |
<?php
|
384 |
$('a.ti-auto-anchor').trigger('click');
|
385 |
}, <?php echo self::AUTO_TRIGGER_DEACTIVATE_WINDOW_SECONDS * 1000; ?> );
|
386 |
}
|
387 |
+
$(document).on('thickbox:removed', function () {
|
388 |
$.ajax({
|
389 |
url: ajaxurl,
|
390 |
method: 'post',
|
391 |
data: {
|
392 |
+
'action': '<?php echo $key . __CLASS__; ?>',
|
393 |
+
'nonce': '<?php echo wp_create_nonce( (string) __CLASS__ ); ?>',
|
394 |
+
'type': '<?php echo $type; ?>',
|
395 |
+
'key': '<?php echo $key; ?>'
|
396 |
},
|
397 |
});
|
398 |
});
|
399 |
var href = $(target_element).attr('href');
|
400 |
+
$('#<?php echo $key; ?>ti-deactivate-no').attr('data-ti-action', href).on('click', function (e) {
|
401 |
e.preventDefault();
|
402 |
e.stopPropagation();
|
403 |
|
404 |
$('body').unbind('thickbox:removed');
|
405 |
tb_remove();
|
406 |
+
var redirect = $(this).attr('data-ti-action');
|
407 |
+
if (redirect != '') {
|
408 |
+
location.href = redirect;
|
409 |
+
}
|
410 |
});
|
411 |
|
412 |
$('#<?php echo $key; ?> ul.ti-list label, #<?php echo $key; ?> ul.ti-list input[name="ti-deactivate-option"]').on('click', function (e) {
|
434 |
url: ajaxurl,
|
435 |
method: 'post',
|
436 |
data: {
|
437 |
+
'action': '<?php echo $key . __CLASS__; ?>',
|
438 |
+
'nonce': '<?php echo wp_create_nonce( (string) __CLASS__ ); ?>',
|
439 |
+
'id': $('#<?php echo $key; ?> input[name="ti-deactivate-option"]:checked').parent().attr('ti-option-id'),
|
440 |
+
'msg': $('#<?php echo $key; ?> input[name="ti-deactivate-option"]:checked').parent().find('textarea').val(),
|
441 |
+
'type': '<?php echo $type; ?>',
|
442 |
+
'key': '<?php echo $key; ?>'
|
443 |
},
|
444 |
});
|
445 |
var redirect = $(this).attr('data-ti-action');
|
451 |
}
|
452 |
});
|
453 |
|
454 |
+
$(target_element).attr('name', '<?php echo wp_kses( $heading, array( 'span' => array() ) ); ?>').attr('href', '<?php echo $src; ?>').addClass('thickbox');
|
455 |
var thicbox_timer;
|
456 |
$(target_element).on('click', function () {
|
457 |
tiBindThickbox();
|
494 |
|
495 |
$list = '';
|
496 |
foreach ( $options as $title => $attributes ) {
|
497 |
+
$id = $attributes['id'];
|
498 |
$list .= '<li ti-option-id="' . $id . '"><input type="radio" name="ti-deactivate-option" id="' . $key . $id . '"><label for="' . $key . $id . '">' . str_replace( '{theme}', $this->product->get_name(), $title ) . '</label>';
|
499 |
if ( array_key_exists( 'type', $attributes ) ) {
|
500 |
+
$list .= '<div>';
|
501 |
$placeholder = array_key_exists( 'placeholder', $attributes ) ? $attributes['placeholder'] : '';
|
502 |
switch ( $attributes['type'] ) {
|
503 |
case 'text':
|
516 |
. '<ul class="ti-list">' . $list . '</ul>'
|
517 |
. '<div class="actions">'
|
518 |
. get_submit_button(
|
519 |
+
$button_submit, 'secondary', $this->product->get_key() . 'ti-deactivate-yes', false, array(
|
520 |
'data-after-text' => $button_submit,
|
521 |
+
'disabled' => true,
|
522 |
)
|
523 |
)
|
524 |
. get_submit_button( $button_cancel, 'primary', $this->product->get_key() . 'ti-deactivate-no', false )
|
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-review.php
CHANGED
@@ -146,7 +146,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Review' ) ) :
|
|
146 |
'action': '<?php echo $this->product->get_key() . __CLASS__; ?>'
|
147 |
},
|
148 |
success: function () {
|
149 |
-
$('#<?php echo $key; ?>_review').
|
150 |
}
|
151 |
});
|
152 |
});
|
146 |
'action': '<?php echo $this->product->get_key() . __CLASS__; ?>'
|
147 |
},
|
148 |
success: function () {
|
149 |
+
$('#<?php echo $key; ?>_review').html('<p><b>Thanks for your answer.</b></p>');
|
150 |
}
|
151 |
});
|
152 |
});
|
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-translate.php
CHANGED
@@ -888,7 +888,7 @@ The process is easy, and you can join by following the link below!';
|
|
888 |
'action': '<?php echo $this->product->get_key() . __CLASS__; ?>'
|
889 |
},
|
890 |
success: function () {
|
891 |
-
$('#<?php echo $key; ?>_translate').
|
892 |
}
|
893 |
});
|
894 |
});
|
888 |
'action': '<?php echo $this->product->get_key() . __CLASS__; ?>'
|
889 |
},
|
890 |
success: function () {
|
891 |
+
$('#<?php echo $key; ?>_translate').html('<p><b>Thanks for your answer.</b></p>');
|
892 |
}
|
893 |
});
|
894 |
});
|
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-licenser.php
CHANGED
@@ -73,6 +73,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Licenser' ) ) :
|
|
73 |
add_action( 'admin_init', array( $this, 'activate_license' ) );
|
74 |
add_action( 'admin_init', array( $this, 'product_valid' ), 99999999 );
|
75 |
add_action( 'admin_notices', array( $this, 'show_notice' ) );
|
|
|
76 |
}
|
77 |
|
78 |
/**
|
@@ -203,19 +204,6 @@ if ( ! class_exists( 'ThemeIsle_SDK_Licenser' ) ) :
|
|
203 |
* @return bool Either hide them or not.
|
204 |
*/
|
205 |
function check_hide( $hide ) {
|
206 |
-
if ( isset( $_GET[ $this->product->get_key() . '_hide_' . $hide ] ) ) {
|
207 |
-
if ( $_GET[ $this->product->get_key() . '_hide_' . $hide ] === 'yes' ) {
|
208 |
-
update_option( $this->product->get_key() . '_hide_' . $hide, 'yes' );
|
209 |
-
|
210 |
-
return false;
|
211 |
-
}
|
212 |
-
} else {
|
213 |
-
$license = get_option( $this->product->get_key() . '_hide_' . $hide, '' );
|
214 |
-
if ( $license === 'yes' ) {
|
215 |
-
return false;
|
216 |
-
}
|
217 |
-
}
|
218 |
-
|
219 |
return true;
|
220 |
}
|
221 |
|
@@ -236,15 +224,14 @@ if ( ! class_exists( 'ThemeIsle_SDK_Licenser' ) ) :
|
|
236 |
Staff for more details.'
|
237 |
);
|
238 |
$no_valid_string = apply_filters(
|
239 |
-
$this->product->get_key() . '_lc_no_valid_string', 'In order to benefit from updates and support for %s
|
240 |
your license code from your <a href="%s" target="_blank">purchase history</a> and validate it <a
|
241 |
-
href="%s">here</a
|
242 |
);
|
243 |
$expiration_string = apply_filters(
|
244 |
$this->product->get_key() . '_lc_expiration_string', 'Your license is about to expire
|
245 |
for %s. You can go to %s and renew it '
|
246 |
);
|
247 |
-
$hide_notice_string = apply_filters( $this->product->get_key() . '_lc_hide_notice_string', 'Hide Notice' );
|
248 |
if ( $status != 'valid' ) {
|
249 |
if ( $this->check_activation() ) {
|
250 |
if ( $this->check_hide( 'activation' ) ) {
|
@@ -257,8 +244,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Licenser' ) ) :
|
|
257 |
target="_blank">' . $this->product->get_store_name() . '</a>'
|
258 |
);
|
259 |
?>
|
260 |
-
</strong>
|
261 |
-
href="<?php echo add_query_arg( $this->product->get_key() . '_activation', 'yes' ); ?> "><?php echo $hide_notice_string; ?></a>
|
262 |
</p>
|
263 |
</div>
|
264 |
<?php
|
@@ -269,9 +255,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Licenser' ) ) :
|
|
269 |
<?php if ( $this->check_hide( 'valid' ) ) : ?>
|
270 |
<div class="error">
|
271 |
<p>
|
272 |
-
<strong><?php echo sprintf( $no_valid_string, $this->product->get_name() . ' ' . $this->product->get_type(), $this->product->get_store_url(), admin_url( 'options-general.php' ) . '#' . $this->product->get_key() ); ?> </strong
|
273 |
-
<a
|
274 |
-
href="<?php echo add_query_arg( $this->product->get_key() . '_hide_valid', 'yes' ); ?> "><?php echo $hide_notice_string; ?></a>
|
275 |
</p>
|
276 |
</div>
|
277 |
<?php endif; ?>
|
@@ -290,9 +274,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Licenser' ) ) :
|
|
290 |
target="_blank">' . $this->product->get_store_name() . '</a>'
|
291 |
);
|
292 |
?>
|
293 |
-
</strong>
|
294 |
-
<a
|
295 |
-
href="<?php echo add_query_arg( $this->product->get_key() . '_hide_expiration', 'yes' ); ?> "><?php echo $hide_notice_string; ?></a>
|
296 |
</p>
|
297 |
</div>
|
298 |
<?php
|
73 |
add_action( 'admin_init', array( $this, 'activate_license' ) );
|
74 |
add_action( 'admin_init', array( $this, 'product_valid' ), 99999999 );
|
75 |
add_action( 'admin_notices', array( $this, 'show_notice' ) );
|
76 |
+
add_filter( $this->product->get_key() . '_license_status', array( $this, 'get_license_status' ) );
|
77 |
}
|
78 |
|
79 |
/**
|
204 |
* @return bool Either hide them or not.
|
205 |
*/
|
206 |
function check_hide( $hide ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
return true;
|
208 |
}
|
209 |
|
224 |
Staff for more details.'
|
225 |
);
|
226 |
$no_valid_string = apply_filters(
|
227 |
+
$this->product->get_key() . '_lc_no_valid_string', 'In order to benefit from updates and support for %s, please add
|
228 |
your license code from your <a href="%s" target="_blank">purchase history</a> and validate it <a
|
229 |
+
href="%s">here</a>. '
|
230 |
);
|
231 |
$expiration_string = apply_filters(
|
232 |
$this->product->get_key() . '_lc_expiration_string', 'Your license is about to expire
|
233 |
for %s. You can go to %s and renew it '
|
234 |
);
|
|
|
235 |
if ( $status != 'valid' ) {
|
236 |
if ( $this->check_activation() ) {
|
237 |
if ( $this->check_hide( 'activation' ) ) {
|
244 |
target="_blank">' . $this->product->get_store_name() . '</a>'
|
245 |
);
|
246 |
?>
|
247 |
+
</strong>
|
|
|
248 |
</p>
|
249 |
</div>
|
250 |
<?php
|
255 |
<?php if ( $this->check_hide( 'valid' ) ) : ?>
|
256 |
<div class="error">
|
257 |
<p>
|
258 |
+
<strong><?php echo sprintf( $no_valid_string, $this->product->get_name() . ' ' . $this->product->get_type(), $this->product->get_store_url(), admin_url( 'options-general.php' ) . '#' . $this->product->get_key() ); ?> </strong>
|
|
|
|
|
259 |
</p>
|
260 |
</div>
|
261 |
<?php endif; ?>
|
274 |
target="_blank">' . $this->product->get_store_name() . '</a>'
|
275 |
);
|
276 |
?>
|
277 |
+
</strong>
|
|
|
|
|
278 |
</p>
|
279 |
</div>
|
280 |
<?php
|
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-loader.php
CHANGED
@@ -76,6 +76,9 @@ if ( ! class_exists( 'ThemeIsle_SDK_Loader' ) ) :
|
|
76 |
if ( ! $product_object->is_external_author() ) {
|
77 |
new ThemeIsle_SDK_Rollback( $product_object );
|
78 |
}
|
|
|
|
|
|
|
79 |
return self::$instance;
|
80 |
}
|
81 |
|
76 |
if ( ! $product_object->is_external_author() ) {
|
77 |
new ThemeIsle_SDK_Rollback( $product_object );
|
78 |
}
|
79 |
+
|
80 |
+
new ThemeIsle_SDK_Endpoints( $product_object );
|
81 |
+
|
82 |
return self::$instance;
|
83 |
}
|
84 |
|
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-logger.php
CHANGED
@@ -77,6 +77,13 @@ if ( ! class_exists( 'ThemeIsle_SDK_Logger' ) ) :
|
|
77 |
* Send the statistics to the api endpoint
|
78 |
*/
|
79 |
public function send_log() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
wp_remote_post(
|
81 |
$this->logging_url, array(
|
82 |
'method' => 'POST',
|
@@ -86,10 +93,12 @@ if ( ! class_exists( 'ThemeIsle_SDK_Logger' ) ) :
|
|
86 |
'X-ThemeIsle-Event' => 'log_site',
|
87 |
),
|
88 |
'body' => array(
|
89 |
-
'site'
|
90 |
-
'slug'
|
91 |
-
'version'
|
92 |
-
'data'
|
|
|
|
|
93 |
),
|
94 |
)
|
95 |
);
|
77 |
* Send the statistics to the api endpoint
|
78 |
*/
|
79 |
public function send_log() {
|
80 |
+
$environment = array();
|
81 |
+
$theme = wp_get_theme();
|
82 |
+
$environment['theme'] = array();
|
83 |
+
$environment['theme']['name'] = $theme->get( 'Name' );
|
84 |
+
$environment['theme']['author'] = $theme->get( 'Author' );
|
85 |
+
$environment['plugins'] = get_option( 'active_plugins' );
|
86 |
+
|
87 |
wp_remote_post(
|
88 |
$this->logging_url, array(
|
89 |
'method' => 'POST',
|
93 |
'X-ThemeIsle-Event' => 'log_site',
|
94 |
),
|
95 |
'body' => array(
|
96 |
+
'site' => get_site_url(),
|
97 |
+
'slug' => $this->product->get_slug(),
|
98 |
+
'version' => $this->product->get_version(),
|
99 |
+
'data' => apply_filters( $this->product->get_key() . '_logger_data', array() ),
|
100 |
+
'environment' => $environment,
|
101 |
+
'license' => apply_filters( $this->product->get_key() . '_license_status', '' ),
|
102 |
),
|
103 |
)
|
104 |
);
|
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-product.php
CHANGED
@@ -60,7 +60,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Product' ) ) :
|
|
60 |
/**
|
61 |
* @var array $allowed_authors The allowed authors.
|
62 |
*/
|
63 |
-
private $allowed_authors = array( 'proteusthemes.com', 'anarieldesign.com', 'prothemedesign.com' );
|
64 |
/**
|
65 |
* @var bool $requires_license Either user needs to activate it with license.
|
66 |
*/
|
60 |
/**
|
61 |
* @var array $allowed_authors The allowed authors.
|
62 |
*/
|
63 |
+
private $allowed_authors = array( 'proteusthemes.com', 'anarieldesign.com', 'prothemedesign.com', 'cssigniter.com' );
|
64 |
/**
|
65 |
* @var bool $requires_license Either user needs to activate it with license.
|
66 |
*/
|
vendor/codeinwp/themeisle-sdk/load.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
*/
|
12 |
|
13 |
// Current SDK version and path.
|
14 |
-
$themeisle_sdk_version = '1.
|
15 |
$themeisle_sdk_path = dirname( __FILE__ );
|
16 |
|
17 |
global $themeisle_sdk_max_version;
|
11 |
*/
|
12 |
|
13 |
// Current SDK version and path.
|
14 |
+
$themeisle_sdk_version = '2.1.0';
|
15 |
$themeisle_sdk_path = dirname( __FILE__ );
|
16 |
|
17 |
global $themeisle_sdk_max_version;
|
vendor/codeinwp/themeisle-sdk/start.php
CHANGED
@@ -24,6 +24,7 @@ $files_to_load = array(
|
|
24 |
'class-themeisle-sdk-widget.php',
|
25 |
'class-themeisle-sdk-widget-dashboard-blog.php',
|
26 |
'class-themeisle-sdk-widgets-factory.php',
|
|
|
27 |
);
|
28 |
|
29 |
foreach ( $files_to_load as $file ) {
|
24 |
'class-themeisle-sdk-widget.php',
|
25 |
'class-themeisle-sdk-widget-dashboard-blog.php',
|
26 |
'class-themeisle-sdk-widgets-factory.php',
|
27 |
+
'class-themeisle-sdk-endpoints.php',
|
28 |
);
|
29 |
|
30 |
foreach ( $files_to_load as $file ) {
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit611687ce89c67fd97edfe5af65d1afe8
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
@@ -42,14 +42,14 @@ class ComposerAutoloaderInit611687ce89c67fd97edfe5af65d1afe8
|
|
42 |
|
43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
45 |
-
|
46 |
}
|
47 |
|
48 |
return $loader;
|
49 |
}
|
50 |
}
|
51 |
|
52 |
-
function
|
53 |
{
|
54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
55 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit89dc34f468b169a4bbb56ee0a19cfc2e
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit89dc34f468b169a4bbb56ee0a19cfc2e', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit89dc34f468b169a4bbb56ee0a19cfc2e', 'loadClassLoader'));
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
42 |
|
43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
45 |
+
composerRequire89dc34f468b169a4bbb56ee0a19cfc2e($fileIdentifier, $file);
|
46 |
}
|
47 |
|
48 |
return $loader;
|
49 |
}
|
50 |
}
|
51 |
|
52 |
+
function composerRequire89dc34f468b169a4bbb56ee0a19cfc2e($fileIdentifier, $file)
|
53 |
{
|
54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
55 |
require $file;
|
vendor/composer/autoload_real_52.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
-
class
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit4e9647794ceae72b97c67aad7cd8b083 {
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
+
class ComposerAutoloaderInit70d9c2c8520f98da5566b56c7c51913f {
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit70d9c2c8520f98da5566b56c7c51913f', 'loadClassLoader'), true /*, true */);
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit70d9c2c8520f98da5566b56c7c51913f', 'loadClassLoader'));
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
vendor/composer/installed.json
CHANGED
@@ -6,15 +6,15 @@
|
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/Codeinwp/themeisle-sdk.git",
|
9 |
-
"reference": "
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
-
"url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/
|
14 |
-
"reference": "
|
15 |
"shasum": ""
|
16 |
},
|
17 |
-
"time": "
|
18 |
"type": "library",
|
19 |
"installation-source": "dist",
|
20 |
"autoload": {
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/Codeinwp/themeisle-sdk.git",
|
9 |
+
"reference": "ae69f3966081f0a7c7c468c00275c411cc0be063"
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
+
"url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/ae69f3966081f0a7c7c468c00275c411cc0be063",
|
14 |
+
"reference": "ae69f3966081f0a7c7c468c00275c411cc0be063",
|
15 |
"shasum": ""
|
16 |
},
|
17 |
+
"time": "2018-01-04 13:30:43",
|
18 |
"type": "library",
|
19 |
"installation-source": "dist",
|
20 |
"autoload": {
|