Version Description
(June 25, 2021) = * Bug: Fixed layout issues with rtl languages. * Bug: Fixed issue of user comments not appearing on admin result page. * Bug: Fixed issue with recaptcha not appearing on random quiz.
Download this release
Release Info
Developer | expresstech |
Plugin | Quiz And Survey Master (Formerly Quiz Master Next) |
Version | 7.2.1 |
Comparing to | |
See all releases |
Code changes from version 7.2.0 to 7.2.1
- css/admin-dashboard-rtl.css +1136 -0
- css/common-rtl.css +360 -0
- css/qmn_quiz-rtl.css +18 -0
- css/qsm-admin-question-rtl.css +853 -0
- css/qsm-admin-rtl.css +2106 -0
- css/qsm-admin.css +124 -1
- js/admin.js +3 -0
- js/qsm-admin-question.js +25 -3
- js/qsm-quiz.js +16 -2
- mlw_quizmaster2.php +5 -5
- php/admin/about-page.php +46 -38
- php/admin/addons-page.php +9 -2
- php/admin/admin-dashboard.php +26 -9
- php/admin/admin-results-details-page.php +248 -232
- php/admin/admin-results-page.php +121 -114
- php/admin/functions.php +12 -8
- php/admin/options-page-questions-tab.php +19 -11
- php/admin/options-page-style-tab.php +2 -1
- php/admin/quiz-options-page.php +80 -71
- php/admin/quizzes-page.php +734 -649
- php/admin/settings-page.php +24 -20
- php/adverts-generate.php +7 -6
- php/classes/class-qmn-quiz-manager.php +9 -3
- php/classes/class-qsm-emails.php +0 -1
- php/classes/class-qsm-results-pages.php +1 -2
- readme.txt +17 -6
css/admin-dashboard-rtl.css
ADDED
@@ -0,0 +1,1136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.welcome-panel-column .dashicons {
|
2 |
+
/* font-size: 30px; */
|
3 |
+
color: #606a73;
|
4 |
+
font-size: 23px;
|
5 |
+
margin-left: 5px;
|
6 |
+
position: relative;
|
7 |
+
top: -3px;
|
8 |
+
}
|
9 |
+
|
10 |
+
.welcome-panel .qsm-welcome-panel-close {
|
11 |
+
position: absolute;
|
12 |
+
top: -20px;
|
13 |
+
left: 10px;
|
14 |
+
padding: 10px 21px 10px 15px;
|
15 |
+
font-size: 13px;
|
16 |
+
line-height: 1.23076923;
|
17 |
+
text-decoration: none;
|
18 |
+
}
|
19 |
+
|
20 |
+
.welcome-panel .qsm-welcome-panel-dismiss {
|
21 |
+
position: absolute;
|
22 |
+
bottom: 10px;
|
23 |
+
left: 10px;
|
24 |
+
padding: 10px 21px 10px 15px;
|
25 |
+
font-size: 13px;
|
26 |
+
line-height: 1.23076923;
|
27 |
+
text-decoration: none;
|
28 |
+
}
|
29 |
+
|
30 |
+
.welcome-panel .qsm-welcome-panel-dismiss:before {
|
31 |
+
background: 0 0;
|
32 |
+
color: #72777c;
|
33 |
+
content: "\f153";
|
34 |
+
display: block;
|
35 |
+
font: normal 16px/20px dashicons;
|
36 |
+
speak: none;
|
37 |
+
height: 20px;
|
38 |
+
text-align: center;
|
39 |
+
width: 20px;
|
40 |
+
-webkit-font-smoothing: antialiased;
|
41 |
+
-moz-osx-font-smoothing: grayscale;
|
42 |
+
position: absolute;
|
43 |
+
top: 9px;
|
44 |
+
right: 0;
|
45 |
+
transition: all 0.1s ease-in-out;
|
46 |
+
}
|
47 |
+
|
48 |
+
.welcome-panel .qsm-welcome-panel-dismiss:hover:before {
|
49 |
+
color: #c00;
|
50 |
+
}
|
51 |
+
|
52 |
+
.welcome-panel .qsm-welcome-panel-close img {
|
53 |
+
width: 100px;
|
54 |
+
}
|
55 |
+
|
56 |
+
.welcome-panel .welcome-panel-close:before {
|
57 |
+
content: none !important;
|
58 |
+
}
|
59 |
+
|
60 |
+
.welcome-panel .current_version {
|
61 |
+
color: #344ad4;
|
62 |
+
text-align: center;
|
63 |
+
font-size: 16px;
|
64 |
+
font-weight: bold;
|
65 |
+
margin: 0;
|
66 |
+
padding: 0;
|
67 |
+
position: relative;
|
68 |
+
top: -30px;
|
69 |
+
}
|
70 |
+
|
71 |
+
.popuar-addon-ul {
|
72 |
+
columns: 2;
|
73 |
+
-webkit-columns: 2;
|
74 |
+
-moz-columns: 2;
|
75 |
+
}
|
76 |
+
|
77 |
+
.qsm-popup .popuar-addon-ul {
|
78 |
+
columns: 1;
|
79 |
+
-webkit-columns: 1;
|
80 |
+
-moz-columns: 1;
|
81 |
+
}
|
82 |
+
|
83 |
+
.popuar-addon-ul li img {
|
84 |
+
max-width: 100%;
|
85 |
+
}
|
86 |
+
|
87 |
+
.pa-all-addon {
|
88 |
+
text-align: left;
|
89 |
+
margin-bottom: 10px;
|
90 |
+
}
|
91 |
+
|
92 |
+
.pa-all-addon a {
|
93 |
+
text-decoration: none;
|
94 |
+
font-size: 14px;
|
95 |
+
font-weight: bold;
|
96 |
+
}
|
97 |
+
|
98 |
+
.what-new-ul li {
|
99 |
+
margin-bottom: 20px;
|
100 |
+
border-bottom: 1px solid #ccbfbf;
|
101 |
+
padding-bottom: 20px;
|
102 |
+
}
|
103 |
+
|
104 |
+
.what-new-ul li:last-child {
|
105 |
+
border-bottom: medium none;
|
106 |
+
margin-bottom: 0;
|
107 |
+
padding-bottom: 0;
|
108 |
+
}
|
109 |
+
|
110 |
+
.what-new-ul li a {
|
111 |
+
font-size: 14px;
|
112 |
+
color: #222;
|
113 |
+
font-weight: 500;
|
114 |
+
transition: 0.2 all;
|
115 |
+
-webkit-transition: 0.2 all;
|
116 |
+
-ms-transition: 0.2 all;
|
117 |
+
}
|
118 |
+
|
119 |
+
.what-new-ul li a:hover {
|
120 |
+
color: #0073aa;
|
121 |
+
}
|
122 |
+
|
123 |
+
.what-new-ul li .post-description {
|
124 |
+
margin-top: 10px;
|
125 |
+
}
|
126 |
+
|
127 |
+
.what-new-ul li .post-description p {
|
128 |
+
margin: 0;
|
129 |
+
padding: 0;
|
130 |
+
}
|
131 |
+
|
132 |
+
.changelog-ul li {
|
133 |
+
border-bottom: 1px solid #ede8e8;
|
134 |
+
padding-bottom: 10px;
|
135 |
+
margin-bottom: 10px;
|
136 |
+
}
|
137 |
+
|
138 |
+
.changelog-ul li:last-child {
|
139 |
+
border-bottom: medium none;
|
140 |
+
padding-bottom: 0;
|
141 |
+
margin-bottom: 0;
|
142 |
+
}
|
143 |
+
|
144 |
+
.changelog-ul li span {
|
145 |
+
padding: 3px 5px;
|
146 |
+
border-radius: 5px;
|
147 |
+
display: inline-block;
|
148 |
+
color: #fff;
|
149 |
+
}
|
150 |
+
|
151 |
+
.changelog-ul li .enhancement {
|
152 |
+
background: #feb325;
|
153 |
+
}
|
154 |
+
|
155 |
+
.changelog-ul li .bug {
|
156 |
+
background: #fe2525;
|
157 |
+
}
|
158 |
+
|
159 |
+
.changelog-ul li .feature {
|
160 |
+
background: #25bdfe;
|
161 |
+
}
|
162 |
+
|
163 |
+
.recently-taken-quiz-ul li {
|
164 |
+
position: relative;
|
165 |
+
min-height: 50px;
|
166 |
+
margin: 0;
|
167 |
+
border-bottom: 1px solid #ede8e8;
|
168 |
+
padding: 0 0 12px 12px;
|
169 |
+
margin-bottom: 20px;
|
170 |
+
}
|
171 |
+
|
172 |
+
.recently-taken-quiz-ul li:last-child {
|
173 |
+
margin-bottom: 0;
|
174 |
+
border-bottom: medium none;
|
175 |
+
padding-bottom: 0;
|
176 |
+
}
|
177 |
+
|
178 |
+
.recently-taken-quiz-ul li img.avatar {
|
179 |
+
position: absolute;
|
180 |
+
top: 0px;
|
181 |
+
width: 60px;
|
182 |
+
}
|
183 |
+
|
184 |
+
.recently-taken-quiz-ul li .row-actions-c {
|
185 |
+
margin: 0;
|
186 |
+
padding: 0;
|
187 |
+
visibility: hidden;
|
188 |
+
}
|
189 |
+
|
190 |
+
.recently-taken-quiz-ul li .row-actions-c .rtq-delete-result {
|
191 |
+
color: #a00;
|
192 |
+
}
|
193 |
+
|
194 |
+
.recently-taken-quiz-ul li:hover .row-actions-c {
|
195 |
+
visibility: visible;
|
196 |
+
}
|
197 |
+
|
198 |
+
.recently-taken-quiz-ul li .rtq-main-wrapper {
|
199 |
+
padding-right: 75px;
|
200 |
+
}
|
201 |
+
|
202 |
+
.recently-taken-quiz-ul li .rtq-main-wrapper .rtq_user_info,
|
203 |
+
.recently-taken-quiz-ul li .rtq-main-wrapper .rtq-result-info {
|
204 |
+
display: block;
|
205 |
+
margin-bottom: 3px;
|
206 |
+
}
|
207 |
+
|
208 |
+
.recently-taken-quiz-ul li .rtq-main-wrapper span {
|
209 |
+
font-size: 14px;
|
210 |
+
color: #837878;
|
211 |
+
}
|
212 |
+
|
213 |
+
.recently-taken-quiz-ul li .rtq-main-wrapper .rtq_user_info a:first-child {
|
214 |
+
text-transform: capitalize;
|
215 |
+
}
|
216 |
+
|
217 |
+
/**
|
218 |
+
* QSM Quiz Wizard
|
219 |
+
*/
|
220 |
+
#model-wizard .qsm-popup__container {
|
221 |
+
padding: 0;
|
222 |
+
background: #f3f3f3;
|
223 |
+
min-width: 70vw;
|
224 |
+
/* max-width: 1040px; */
|
225 |
+
border-radius: 0;
|
226 |
+
max-height: 85vh;
|
227 |
+
overflow: hidden;
|
228 |
+
position: relative;
|
229 |
+
}
|
230 |
+
|
231 |
+
#model-wizard .qsm-popup__content {
|
232 |
+
margin: 0;
|
233 |
+
max-height: 75vh;
|
234 |
+
overflow-y: auto;
|
235 |
+
/* padding-bottom: 59px; */
|
236 |
+
}
|
237 |
+
|
238 |
+
#model-wizard .qsm-popup__header {
|
239 |
+
background: #fff;
|
240 |
+
padding: 20px 10px 20px 10px;
|
241 |
+
border-bottom: 1px solid #dfd4d4;
|
242 |
+
display: none;
|
243 |
+
}
|
244 |
+
|
245 |
+
#model-wizard .qsm-popup__title {
|
246 |
+
font-size: 24px;
|
247 |
+
color: #515559;
|
248 |
+
font-weight: normal;
|
249 |
+
}
|
250 |
+
|
251 |
+
#model-wizard .qsm-popup__content .qsm-wizard-template-section {
|
252 |
+
width: 65%;
|
253 |
+
padding: 35px 20px 20px 20px;
|
254 |
+
border-left: 1px solid #dfd4d4;
|
255 |
+
float: right;
|
256 |
+
box-sizing: border-box;
|
257 |
+
}
|
258 |
+
|
259 |
+
#model-wizard .qsm-popup__content .quiz_name {
|
260 |
+
width: 100%;
|
261 |
+
padding: 5px 10px 5px 10px;
|
262 |
+
border-radius: 0;
|
263 |
+
border: 1px solid #dfd4d4;
|
264 |
+
}
|
265 |
+
|
266 |
+
#model-wizard .qsm-popup__content .quiz_name.qsm-required {
|
267 |
+
border-color: #ff0000;
|
268 |
+
outline: none !important;
|
269 |
+
box-shadow: none;
|
270 |
+
}
|
271 |
+
|
272 |
+
#model-wizard .qsm-popup__content .template-inner-wrap h6 {
|
273 |
+
font-size: 15px;
|
274 |
+
margin-top: 30px;
|
275 |
+
margin-bottom: 10px;
|
276 |
+
text-transform: uppercase;
|
277 |
+
}
|
278 |
+
|
279 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list {
|
280 |
+
width: 100%;
|
281 |
+
display: inline-block;
|
282 |
+
}
|
283 |
+
|
284 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner {
|
285 |
+
width: 31%;
|
286 |
+
margin-left: 2%;
|
287 |
+
float: right;
|
288 |
+
border: 1px solid #dfd4d4;
|
289 |
+
height: 210px;
|
290 |
+
text-align: center;
|
291 |
+
margin-bottom: 2%;
|
292 |
+
position: relative;
|
293 |
+
cursor: pointer;
|
294 |
+
box-sizing: border-box;
|
295 |
+
}
|
296 |
+
|
297 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner:hover,
|
298 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner.selected-quiz-template {
|
299 |
+
border-color: #1e8cbe;
|
300 |
+
-webkit-box-shadow: 2px -1px 13px -1px rgba(30, 140, 190, 1);
|
301 |
+
-moz-box-shadow: 2px -1px 13px -1px rgba(30, 140, 190, 1);
|
302 |
+
box-shadow: 2px -1px 13px -1px rgba(30, 140, 190, 1);
|
303 |
+
transition: 0.2s all;
|
304 |
+
-ms-transition: 0.2s all;
|
305 |
+
-o-transition: 0.2s all;
|
306 |
+
-webkit-transition: 0.2s all;
|
307 |
+
}
|
308 |
+
|
309 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner:nth-child(3n + 3) {
|
310 |
+
width: 33%;
|
311 |
+
margin-left: 0%;
|
312 |
+
}
|
313 |
+
|
314 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner .template-center-vertical {
|
315 |
+
/*position: absolute;
|
316 |
+
top: 50%;
|
317 |
+
left: 50%;
|
318 |
+
-ms-transform: translate(-50%, -50%);
|
319 |
+
transform: translate(-50%, -50%); */
|
320 |
+
margin-top: 21px;
|
321 |
+
height: 96px;
|
322 |
+
}
|
323 |
+
|
324 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner:first-child .template-center-vertical {
|
325 |
+
height: auto;
|
326 |
+
position: absolute;
|
327 |
+
top: 50%;
|
328 |
+
right: 50%;
|
329 |
+
-ms-transform: translate(50%, -50%);
|
330 |
+
transform: translate(50%, -50%);
|
331 |
+
margin-top: 0;
|
332 |
+
}
|
333 |
+
|
334 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner .dashicons {
|
335 |
+
font-size: 75px;
|
336 |
+
color: #9ea3a8;
|
337 |
+
display: inline-block;
|
338 |
+
height: auto;
|
339 |
+
width: auto;
|
340 |
+
}
|
341 |
+
|
342 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner p.start_scratch {
|
343 |
+
font-size: 14px;
|
344 |
+
text-transform: uppercase;
|
345 |
+
letter-spacing: 1px;
|
346 |
+
color: #9ea3a8;
|
347 |
+
}
|
348 |
+
|
349 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner h3 {
|
350 |
+
margin: 0;
|
351 |
+
padding: 10px;
|
352 |
+
border-top: 1px solid #dfd4d4;
|
353 |
+
font-size: 15px;
|
354 |
+
position: absolute;
|
355 |
+
width: 100%;
|
356 |
+
box-sizing: border-box;
|
357 |
+
bottom: 0;
|
358 |
+
}
|
359 |
+
|
360 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner.inner-json {
|
361 |
+
background: #fff;
|
362 |
+
}
|
363 |
+
|
364 |
+
#model-wizard .qsm-popup__footer {
|
365 |
+
text-align: left;
|
366 |
+
background: #fff;
|
367 |
+
padding: 10px;
|
368 |
+
border-top: 1px solid #dfd4d4;
|
369 |
+
margin-top: -4px;
|
370 |
+
position: absolute;
|
371 |
+
bottom: 0;
|
372 |
+
width: 100%;
|
373 |
+
box-sizing: border-box;
|
374 |
+
}
|
375 |
+
|
376 |
+
#model-wizard .qsm-popup__footer button {
|
377 |
+
padding: 3px 20px;
|
378 |
+
}
|
379 |
+
|
380 |
+
#model-wizard .qsm-popup__footer .qsm-wizard-borderless {
|
381 |
+
border: none;
|
382 |
+
background: transparent;
|
383 |
+
}
|
384 |
+
|
385 |
+
#model-wizard .qsm-popup__footer #prev-theme-button,
|
386 |
+
#model-wizard .qsm-popup__footer #prev-quiz-button {
|
387 |
+
float: right;
|
388 |
+
display: none;
|
389 |
+
}
|
390 |
+
|
391 |
+
#model-wizard .qsm-popup__footer #create-quiz-button,
|
392 |
+
#model-wizard .qsm-popup__footer #choose-addons-button {
|
393 |
+
display: none;
|
394 |
+
}
|
395 |
+
|
396 |
+
#model-wizard .qsm-popup__footer .dashicons {
|
397 |
+
font-size: 18px;
|
398 |
+
vertical-align: middle;
|
399 |
+
}
|
400 |
+
|
401 |
+
#model-wizard .qsm-popup__footer .left-icons {
|
402 |
+
margin-right: -9px;
|
403 |
+
}
|
404 |
+
|
405 |
+
#model-wizard .qsm-popup__footer .right-icons {
|
406 |
+
margin-left: -9px;
|
407 |
+
margin-right: 3px;
|
408 |
+
}
|
409 |
+
|
410 |
+
#model-wizard .qsm-popup__close {
|
411 |
+
cursor: pointer;
|
412 |
+
font-size: 20px;
|
413 |
+
color: #515559;
|
414 |
+
margin-left: 10px;
|
415 |
+
}
|
416 |
+
|
417 |
+
#model-wizard .qsm-wizard-setting-section {
|
418 |
+
background: #fff;
|
419 |
+
width: 35%;
|
420 |
+
float: right;
|
421 |
+
}
|
422 |
+
|
423 |
+
#model-wizard #quiz_settings .input-group:nth-child(5),
|
424 |
+
#model-wizard #quiz_settings .input-group:nth-child(6),
|
425 |
+
#model-wizard #quiz_settings .input-group:nth-child(8),
|
426 |
+
#model-wizard #quiz_settings .input-group:nth-child(10) {
|
427 |
+
display: none;
|
428 |
+
}
|
429 |
+
|
430 |
+
#new-quiz-form {
|
431 |
+
display: inline-block;
|
432 |
+
width: 100%;
|
433 |
+
}
|
434 |
+
|
435 |
+
#model-wizard .qsm-wizard-setting-section .ui-accordion .ui-accordion-header {
|
436 |
+
background: #fff;
|
437 |
+
color: #000;
|
438 |
+
border-radius: 0;
|
439 |
+
border: none;
|
440 |
+
font-size: 16px;
|
441 |
+
font-weight: bold;
|
442 |
+
padding-right: 20px;
|
443 |
+
border-bottom: 1px solid #dfd4d4;
|
444 |
+
padding-left: 20px;
|
445 |
+
outline: 0 !important;
|
446 |
+
}
|
447 |
+
|
448 |
+
#model-wizard .qsm-quiz-page-addon.qsm-addon-page-list {
|
449 |
+
width: 100%;
|
450 |
+
}
|
451 |
+
|
452 |
+
#model-wizard .qsm-addon-browse-addons {
|
453 |
+
min-height: 60px;
|
454 |
+
}
|
455 |
+
|
456 |
+
#model-wizard .qsm-addon-browse-addons .qsm-addon-anchor-left .qsm-add-addon a.active {
|
457 |
+
background: #2271b1;
|
458 |
+
}
|
459 |
+
|
460 |
+
#model-wizard .qsm-addon-news-ads {
|
461 |
+
width: 100%;
|
462 |
+
}
|
463 |
+
|
464 |
+
#model-wizard .qsm-addon-news-ads .qsm-news-ads-title {
|
465 |
+
padding: 10px;
|
466 |
+
margin-top: 10px;
|
467 |
+
font-size: 1em;
|
468 |
+
}
|
469 |
+
|
470 |
+
#model-wizard .qsm-addon-news-ads .qsm-info-widget {
|
471 |
+
max-width: 30%;
|
472 |
+
display: inline-block;
|
473 |
+
margin-top: 50px;
|
474 |
+
padding: 10px;
|
475 |
+
}
|
476 |
+
|
477 |
+
#model-wizard .qsm-addon-news-ads .qsm-info-widget h3 {
|
478 |
+
font-size: 14px;
|
479 |
+
line-height: 14px;
|
480 |
+
margin-top: 40px;
|
481 |
+
margin-bottom: 10px;
|
482 |
+
}
|
483 |
+
|
484 |
+
#model-wizard .qsm-addon-news-ads .qsm-info-widget p {
|
485 |
+
font-size: 12px;
|
486 |
+
overflow: hidden;
|
487 |
+
text-overflow: ellipsis;
|
488 |
+
display: -webkit-box;
|
489 |
+
-webkit-line-clamp: 4;
|
490 |
+
-webkit-box-orient: vertical;
|
491 |
+
}
|
492 |
+
|
493 |
+
#model-wizard .qsm-addon-news-ads .qsm-info-widget .bundle-icon {
|
494 |
+
width: 30px;
|
495 |
+
height: 30px;
|
496 |
+
padding: 20px;
|
497 |
+
border-radius: 50%;
|
498 |
+
position: absolute;
|
499 |
+
top: -40px;
|
500 |
+
right: calc(50% - 30px);
|
501 |
+
}
|
502 |
+
|
503 |
+
#model-wizard .qsm-addon-news-ads .qsm-info-widget .bundle-icon img {
|
504 |
+
width: 30px;
|
505 |
+
}
|
506 |
+
|
507 |
+
#model-wizard .qsm_popular_addons div.popuar-addon-ul .addon-price {
|
508 |
+
border: none;
|
509 |
+
padding-top: 0px;
|
510 |
+
margin: 0;
|
511 |
+
text-align: center;
|
512 |
+
}
|
513 |
+
|
514 |
+
#model-wizard .qsm_popular_addons div.popuar-addon-ul .addon-get-link {
|
515 |
+
float: none;
|
516 |
+
background: transparent;
|
517 |
+
color: #007cba;
|
518 |
+
font-weight: bold;
|
519 |
+
width: 100%;
|
520 |
+
border: 0px;
|
521 |
+
text-decoration: none;
|
522 |
+
text-align: center;
|
523 |
+
}
|
524 |
+
|
525 |
+
#model-wizard .qsm_popular_addons div.popuar-addon-ul .addon-get-link span {
|
526 |
+
vertical-align: bottom;
|
527 |
+
}
|
528 |
+
|
529 |
+
#model-wizard .qsm_popular_addons div.popuar-addon-ul>div {
|
530 |
+
margin-bottom: 2%;
|
531 |
+
box-shadow: 0px 0px 3px rgba(10, 10, 10, 0.2);
|
532 |
+
width: 23%;
|
533 |
+
}
|
534 |
+
|
535 |
+
#model-wizard .qsm_popular_addons div.popuar-addon-ul>div>a {
|
536 |
+
display: block;
|
537 |
+
width: 100%;
|
538 |
+
height: 100%;
|
539 |
+
}
|
540 |
+
|
541 |
+
#model-wizard .qsm_popular_addons a:active,
|
542 |
+
#model-wizard .qsm_popular_addons a:focus {
|
543 |
+
outline: 0;
|
544 |
+
box-shadow: none;
|
545 |
+
}
|
546 |
+
|
547 |
+
#model-wizard .qsm-addon-list-right {
|
548 |
+
padding-left: 20px;
|
549 |
+
}
|
550 |
+
|
551 |
+
#model-wizard .market-theme .market-theme-url,
|
552 |
+
#model-wizard .downloaded-theme-button {
|
553 |
+
position: absolute;
|
554 |
+
right: 50%;
|
555 |
+
top: 60%;
|
556 |
+
transform: translate(50%, -50%);
|
557 |
+
opacity: 0;
|
558 |
+
transition: all 200ms ease-in-out;
|
559 |
+
text-align: center;
|
560 |
+
}
|
561 |
+
|
562 |
+
#model-wizard .market-theme .market-theme-url a,
|
563 |
+
#model-wizard .downloaded-theme-button span {
|
564 |
+
margin: 5px;
|
565 |
+
width: 100px;
|
566 |
+
display: inline-block;
|
567 |
+
}
|
568 |
+
|
569 |
+
#model-wizard .market-theme:hover .market-theme-url,
|
570 |
+
#model-wizard .theme:hover .downloaded-theme-button {
|
571 |
+
opacity: 1;
|
572 |
+
top: 50%
|
573 |
+
}
|
574 |
+
|
575 |
+
#model-wizard div.popuar-addon-ul>div:nth-child(3n + 4) {
|
576 |
+
clear: none;
|
577 |
+
}
|
578 |
+
|
579 |
+
#model-wizard .theme:focus .theme-screenshot img,
|
580 |
+
#model-wizard .theme:hover .theme-screenshot img {
|
581 |
+
opacity: 0.1;
|
582 |
+
}
|
583 |
+
|
584 |
+
#accordion .ui-accordion-header-icon {
|
585 |
+
position: absolute;
|
586 |
+
left: 24px;
|
587 |
+
top: 15px;
|
588 |
+
}
|
589 |
+
|
590 |
+
#accordion.ui-accordion .ui-accordion-content {
|
591 |
+
border: medium none;
|
592 |
+
border-bottom: 1px solid #dfd4d4;
|
593 |
+
padding: 20px;
|
594 |
+
}
|
595 |
+
|
596 |
+
#accordion .ui-icon.iconOpen {
|
597 |
+
background: url("../assets/up-1.png") no-repeat !important;
|
598 |
+
background-size: cover !important;
|
599 |
+
}
|
600 |
+
|
601 |
+
#accordion .ui-icon.iconClosed {
|
602 |
+
background: url(../assets/down-1.png) no-repeat !important;
|
603 |
+
background-size: cover !important;
|
604 |
+
}
|
605 |
+
|
606 |
+
#accordion .ui-accordion-header:focus {
|
607 |
+
outline: 0 !important;
|
608 |
+
border: none !important;
|
609 |
+
}
|
610 |
+
|
611 |
+
#quiz_settings_wrapper tr {
|
612 |
+
/*display: inline-block;*/
|
613 |
+
width: 100%;
|
614 |
+
}
|
615 |
+
|
616 |
+
#quiz_settings_wrapper tr th,
|
617 |
+
#quiz_settings_wrapper tr td {
|
618 |
+
width: 100%;
|
619 |
+
display: inline-block;
|
620 |
+
box-sizing: border-box;
|
621 |
+
clear: both;
|
622 |
+
text-align: right;
|
623 |
+
}
|
624 |
+
|
625 |
+
#quiz_settings_wrapper tr td {
|
626 |
+
padding: 10px 0 20px 0;
|
627 |
+
}
|
628 |
+
|
629 |
+
#quiz_settings_wrapper tr:last-child td {
|
630 |
+
padding-bottom: 0;
|
631 |
+
}
|
632 |
+
|
633 |
+
#quiz_settings_wrapper tr td label {
|
634 |
+
margin-left: 15px;
|
635 |
+
font-size: 14px;
|
636 |
+
}
|
637 |
+
|
638 |
+
#quiz_settings_wrapper tr th label {
|
639 |
+
font-size: 14px;
|
640 |
+
font-weight: bold;
|
641 |
+
}
|
642 |
+
|
643 |
+
#addons_list ul {
|
644 |
+
columns: 2;
|
645 |
+
-webkit-columns: 2;
|
646 |
+
-moz-columns: 2;
|
647 |
+
}
|
648 |
+
|
649 |
+
#addons_list ul li {
|
650 |
+
position: relative;
|
651 |
+
}
|
652 |
+
|
653 |
+
#addons_list ul li span.ra-attr {
|
654 |
+
position: absolute;
|
655 |
+
left: 0;
|
656 |
+
padding: 5px;
|
657 |
+
font-size: 10px;
|
658 |
+
color: #fff;
|
659 |
+
background: gray;
|
660 |
+
border-radius: 5px;
|
661 |
+
top: 0;
|
662 |
+
text-transform: capitalize;
|
663 |
+
}
|
664 |
+
|
665 |
+
#addons_list ul li span.ra-attr.qra-att-recommended {
|
666 |
+
background: #25bdfe;
|
667 |
+
}
|
668 |
+
|
669 |
+
#addons_list ul li span.ra-attr.qra-att-required {
|
670 |
+
background: #31b400;
|
671 |
+
}
|
672 |
+
|
673 |
+
#addons_list ul li img {
|
674 |
+
max-width: 100%;
|
675 |
+
}
|
676 |
+
|
677 |
+
#quiz_settings_wrapper .qsm-opt-tr .qsm-tooltips-icon {
|
678 |
+
display: none;
|
679 |
+
}
|
680 |
+
|
681 |
+
div#quiz_settings_wrapper #timer_limit {
|
682 |
+
width: 100px;
|
683 |
+
}
|
684 |
+
|
685 |
+
.postbox .handlediv {
|
686 |
+
position: absolute;
|
687 |
+
left: 0;
|
688 |
+
}
|
689 |
+
|
690 |
+
h2.hndle.ui-sortable-handle {
|
691 |
+
border-bottom: 1px solid #ccd0d4;
|
692 |
+
}
|
693 |
+
|
694 |
+
#modal-2-content .qsm-new_menu_tab_items {
|
695 |
+
width: 40%;
|
696 |
+
border: unset;
|
697 |
+
border-left: 2px solid #dddddd;
|
698 |
+
min-width: 300px;
|
699 |
+
display: flex;
|
700 |
+
flex-direction: column;
|
701 |
+
padding: 20px !important;
|
702 |
+
}
|
703 |
+
|
704 |
+
#modal-2-content .qsm-new_menu_tab_items li {
|
705 |
+
margin-bottom: 20px;
|
706 |
+
}
|
707 |
+
|
708 |
+
#modal-2-content .qsm-new_menu_tab_items li {
|
709 |
+
padding: 0;
|
710 |
+
margin: 0;
|
711 |
+
border: solid 1px #dddddd;
|
712 |
+
width: 100%;
|
713 |
+
white-space: normal;
|
714 |
+
}
|
715 |
+
|
716 |
+
#modal-2-content .qsm-new_menu_tab_items li .nav-item-label {
|
717 |
+
padding: 10px 15px;
|
718 |
+
display: flex;
|
719 |
+
align-items: center;
|
720 |
+
line-height: 1.3;
|
721 |
+
}
|
722 |
+
|
723 |
+
#model-wizard .qsm-new_menu_tab_items li.active a {
|
724 |
+
color: white;
|
725 |
+
background: #0085ba;
|
726 |
+
transition: all 500ms linear;
|
727 |
+
}
|
728 |
+
|
729 |
+
#model-wizard .qsm-new_menu_tab_items li a {
|
730 |
+
background: #fff;
|
731 |
+
color: #2d405a;
|
732 |
+
font-weight: normal;
|
733 |
+
font-size: 12px;
|
734 |
+
text-decoration: none;
|
735 |
+
float: right;
|
736 |
+
width: 100%;
|
737 |
+
}
|
738 |
+
|
739 |
+
#model-wizard .qsm-new_menu_tab_items .nav-item-label-icon {
|
740 |
+
font-size: 32px;
|
741 |
+
margin-left: 20px;
|
742 |
+
line-height: 20px;
|
743 |
+
}
|
744 |
+
|
745 |
+
#model-wizard .nav-item-label .nav-item-label-content h4 {
|
746 |
+
padding: 0;
|
747 |
+
margin: 0;
|
748 |
+
}
|
749 |
+
|
750 |
+
#model-wizard .nav-item-label .nav-item-label-content span {
|
751 |
+
font-size: 12px;
|
752 |
+
font-weight: normal;
|
753 |
+
}
|
754 |
+
|
755 |
+
#model-wizard .qsm-new-menu-elements {
|
756 |
+
width: 97%;
|
757 |
+
padding: 2%;
|
758 |
+
margin-bottom: 40px;
|
759 |
+
margin-top: 55px;
|
760 |
+
height: 100%;
|
761 |
+
min-height: 45vh;
|
762 |
+
}
|
763 |
+
|
764 |
+
#model-wizard #modal-2-content {
|
765 |
+
background: #f3f3f3;
|
766 |
+
overflow-y: scroll;
|
767 |
+
margin-right: 15px;
|
768 |
+
margin: 0;
|
769 |
+
}
|
770 |
+
|
771 |
+
#model-wizard #modal-2-content::-webkit-scrollbar-track {
|
772 |
+
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
773 |
+
background-color: #f5f5f5;
|
774 |
+
border-radius: 5px;
|
775 |
+
}
|
776 |
+
|
777 |
+
#model-wizard #modal-2-content::-webkit-scrollbar {
|
778 |
+
width: 5px;
|
779 |
+
background-color: #f5f5f5;
|
780 |
+
}
|
781 |
+
|
782 |
+
#model-wizard #modal-2-content::-webkit-scrollbar-thumb {
|
783 |
+
background-color: #3b81b9;
|
784 |
+
border-radius: 5px;
|
785 |
+
}
|
786 |
+
|
787 |
+
#model-wizard .qsm-new-menu-elements .input-group {
|
788 |
+
width: 75%;
|
789 |
+
margin: 0 auto;
|
790 |
+
margin-bottom: 10px;
|
791 |
+
background: #ffffff60;
|
792 |
+
padding: 20px;
|
793 |
+
position: relative;
|
794 |
+
}
|
795 |
+
|
796 |
+
#model-wizard .qsm-new-menu-elements .input-group .qsm-tooltips-icon {
|
797 |
+
display: none;
|
798 |
+
}
|
799 |
+
|
800 |
+
#model-wizard .qsm-new-menu-elements .input-group .qsm-opt-desc {
|
801 |
+
color: #666;
|
802 |
+
font-size: 12px;
|
803 |
+
display: block;
|
804 |
+
text-align: right;
|
805 |
+
}
|
806 |
+
|
807 |
+
#model-wizard .qsm-new-menu-elements .input-group>label {
|
808 |
+
/* color: #888; */
|
809 |
+
display: inline-block;
|
810 |
+
font-size: 16px;
|
811 |
+
margin-bottom: 5px;
|
812 |
+
font-family: inherit;
|
813 |
+
width: 30%;
|
814 |
+
text-align: right;
|
815 |
+
margin-left: 20px;
|
816 |
+
vertical-align: top;
|
817 |
+
}
|
818 |
+
|
819 |
+
#model-wizard .qsm-new-menu-elements input[type="text"],
|
820 |
+
#model-wizard .qsm-new-menu-elements select {
|
821 |
+
width: 60%;
|
822 |
+
max-width: 100%;
|
823 |
+
height: 35px;
|
824 |
+
border: solid 1px #dddddd;
|
825 |
+
box-shadow: 0px 0px 5px rgba(10, 10, 10, 0.3);
|
826 |
+
border-radius: 0;
|
827 |
+
}
|
828 |
+
|
829 |
+
#model-wizard .qsm-new-menu-elements fieldset {
|
830 |
+
width: 60%;
|
831 |
+
max-width: 100%;
|
832 |
+
display: inline-block;
|
833 |
+
}
|
834 |
+
|
835 |
+
#model-wizard #qsm_span {
|
836 |
+
width: 60%;
|
837 |
+
display: inline-block;
|
838 |
+
}
|
839 |
+
|
840 |
+
#model-wizard #qsm_span .quiz_featured_image {
|
841 |
+
width: 100%;
|
842 |
+
margin-bottom: 10px;
|
843 |
+
}
|
844 |
+
|
845 |
+
#model-wizard .featured_image {
|
846 |
+
display: none;
|
847 |
+
}
|
848 |
+
|
849 |
+
#model-wizard .empty-market-place {
|
850 |
+
position: absolute;
|
851 |
+
top: 45%;
|
852 |
+
margin: 0 auto;
|
853 |
+
text-align: center;
|
854 |
+
width: 100%;
|
855 |
+
}
|
856 |
+
|
857 |
+
#model-wizard .empty-market-place span {
|
858 |
+
color: #ccc;
|
859 |
+
margin: 0 auto;
|
860 |
+
}
|
861 |
+
|
862 |
+
#model-wizard .empty-market-place span.dashicons {
|
863 |
+
font-size: 50px;
|
864 |
+
margin-bottom: 10px;
|
865 |
+
display: contents;
|
866 |
+
}
|
867 |
+
|
868 |
+
#model-wizard .empty-market-place span.no-themes-message {
|
869 |
+
font-size: 20px;
|
870 |
+
}
|
871 |
+
|
872 |
+
#select_themes .theme {
|
873 |
+
width: 23%;
|
874 |
+
margin: 0 0 2% 2%;
|
875 |
+
}
|
876 |
+
|
877 |
+
#select_themes .theme .theme-name {
|
878 |
+
padding: 10px 15px;
|
879 |
+
display: none;
|
880 |
+
margin-top: -38px;
|
881 |
+
}
|
882 |
+
|
883 |
+
#select_themes .theme.active .theme-name {
|
884 |
+
display: block;
|
885 |
+
box-shadow: 0 1px 1px rgb(0 0 0 / 50%);
|
886 |
+
transition: all 0.5s ease !important;
|
887 |
+
}
|
888 |
+
|
889 |
+
#select_themes #qsm-theme-screenshot:after {
|
890 |
+
content: "";
|
891 |
+
display: block;
|
892 |
+
padding-top: 100%;
|
893 |
+
}
|
894 |
+
|
895 |
+
#select_themes .theme:nth-child(4n) {
|
896 |
+
margin-left: 0;
|
897 |
+
}
|
898 |
+
|
899 |
+
#addons_list ul {
|
900 |
+
columns: 3;
|
901 |
+
-webkit-columns: 3;
|
902 |
+
-moz-columns: 3;
|
903 |
+
}
|
904 |
+
|
905 |
+
#addons_list ul li {
|
906 |
+
position: relative;
|
907 |
+
border: 1px solid #c4c4c4;
|
908 |
+
}
|
909 |
+
|
910 |
+
#addons_list ul li span.ra-attr {
|
911 |
+
position: absolute;
|
912 |
+
left: 0;
|
913 |
+
padding: 5px;
|
914 |
+
font-size: 10px;
|
915 |
+
color: #fff;
|
916 |
+
background: gray;
|
917 |
+
border-radius: 0 0 10px 0;
|
918 |
+
top: 0;
|
919 |
+
text-transform: capitalize;
|
920 |
+
}
|
921 |
+
|
922 |
+
#addons_list ul li span.ra-attr.qra-att-recommended {
|
923 |
+
background: #25bdfe;
|
924 |
+
}
|
925 |
+
|
926 |
+
#addons_list ul li span.ra-attr.qra-att-required {
|
927 |
+
background: #31b400;
|
928 |
+
}
|
929 |
+
|
930 |
+
#addons_list ul li img {
|
931 |
+
max-width: 100%;
|
932 |
+
}
|
933 |
+
|
934 |
+
/*
|
935 |
+
* New wizard style
|
936 |
+
*/
|
937 |
+
.qsm-wizard-menu {
|
938 |
+
width: 100%;
|
939 |
+
display: flex;
|
940 |
+
background: #fff;
|
941 |
+
position: absolute;
|
942 |
+
z-index: 1;
|
943 |
+
border-bottom: 1px solid #dfd4d4;
|
944 |
+
justify-content: center;
|
945 |
+
}
|
946 |
+
|
947 |
+
.qsm-wizard-menu .qsm-logo {
|
948 |
+
position: absolute;
|
949 |
+
top: 0px;
|
950 |
+
right: 15px;
|
951 |
+
}
|
952 |
+
|
953 |
+
.qsm-wizard-menu .qsm-logo img {
|
954 |
+
height: 80px;
|
955 |
+
margin-top: -10px;
|
956 |
+
}
|
957 |
+
|
958 |
+
.qsm-wizard-menu .qsm-wizard-wrap {
|
959 |
+
padding: 15px;
|
960 |
+
transition: border 0.5s ease;
|
961 |
+
border-bottom: 3px solid #3b81b9;
|
962 |
+
cursor: pointer;
|
963 |
+
}
|
964 |
+
|
965 |
+
.qsm-wizard-menu .qsm-wizard-wrap:not(.active) {
|
966 |
+
opacity: 0.5;
|
967 |
+
border-color: white;
|
968 |
+
border-image: none;
|
969 |
+
}
|
970 |
+
|
971 |
+
.qsm-wizard-menu .qsm-wizard-step-number {
|
972 |
+
background: #0085ba;
|
973 |
+
border-radius: 50%;
|
974 |
+
width: 40px;
|
975 |
+
height: 40px;
|
976 |
+
line-height: 40px;
|
977 |
+
display: inline-block;
|
978 |
+
text-align: center;
|
979 |
+
color: #fff;
|
980 |
+
font-weight: bold;
|
981 |
+
font-size: 18px;
|
982 |
+
margin-left: 10px;
|
983 |
+
}
|
984 |
+
|
985 |
+
.qsm-wizard-menu .qsm-wizard-step-text {
|
986 |
+
display: inline-block;
|
987 |
+
font-size: 16px;
|
988 |
+
text-transform: capitalize;
|
989 |
+
position: relative;
|
990 |
+
top: 3px;
|
991 |
+
}
|
992 |
+
|
993 |
+
.qsm-wizard-menu .qsm-wizard-step-text-optional {
|
994 |
+
padding: 2px 5px;
|
995 |
+
border-radius: 3px;
|
996 |
+
font-size: 11px;
|
997 |
+
font-weight: bold;
|
998 |
+
position: relative;
|
999 |
+
top: 19px;
|
1000 |
+
opacity: 0.7;
|
1001 |
+
right: -17px;
|
1002 |
+
color: #a6a6a6;
|
1003 |
+
}
|
1004 |
+
|
1005 |
+
.theme-sub-menu {
|
1006 |
+
margin: 0 0 15px 0;
|
1007 |
+
padding: 0;
|
1008 |
+
}
|
1009 |
+
|
1010 |
+
.theme-sub-menu li {
|
1011 |
+
display: inline-block;
|
1012 |
+
margin-left: 15px;
|
1013 |
+
border-left: 1px solid #ccc;
|
1014 |
+
padding-left: 15px;
|
1015 |
+
}
|
1016 |
+
|
1017 |
+
.theme-sub-menu li:last-child {
|
1018 |
+
border-left: medium none;
|
1019 |
+
}
|
1020 |
+
|
1021 |
+
.theme-sub-menu li.active a {
|
1022 |
+
color: #0073aa;
|
1023 |
+
}
|
1024 |
+
|
1025 |
+
.theme-sub-menu li a {
|
1026 |
+
color: #888888;
|
1027 |
+
text-decoration: none;
|
1028 |
+
font-size: 13px;
|
1029 |
+
}
|
1030 |
+
|
1031 |
+
.theme-sub-menu li a:active,
|
1032 |
+
.theme-sub-menu li a:focus {
|
1033 |
+
outline: 0;
|
1034 |
+
border: none;
|
1035 |
+
-moz-outline-style: none;
|
1036 |
+
box-shadow: none;
|
1037 |
+
}
|
1038 |
+
|
1039 |
+
#quiz_settings .input-group {
|
1040 |
+
box-shadow: 0 0 3px rgba(10, 10, 10, 0.2);
|
1041 |
+
}
|
1042 |
+
|
1043 |
+
@media screen and (min-width: 1200px) {
|
1044 |
+
#quiz_settings_wrapper tr td fieldset>br {
|
1045 |
+
display: none;
|
1046 |
+
}
|
1047 |
+
}
|
1048 |
+
|
1049 |
+
@media (min-width: 768px) and (max-width: 1200px) {
|
1050 |
+
#quiz_settings_wrapper tr td label {
|
1051 |
+
vertical-align: top;
|
1052 |
+
margin-bottom: 15px;
|
1053 |
+
display: inline-block;
|
1054 |
+
}
|
1055 |
+
|
1056 |
+
#model-wizard .qsm-popup__container {
|
1057 |
+
width: 90%;
|
1058 |
+
}
|
1059 |
+
}
|
1060 |
+
|
1061 |
+
@media (min-width: 768px) and (max-width: 991px) {
|
1062 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner {
|
1063 |
+
width: 48%;
|
1064 |
+
}
|
1065 |
+
|
1066 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner:nth-child(2n + 2) {
|
1067 |
+
margin-left: 0;
|
1068 |
+
width: 50%;
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner:nth-child(3n + 3) {
|
1072 |
+
margin-left: 2%;
|
1073 |
+
width: 48%;
|
1074 |
+
}
|
1075 |
+
}
|
1076 |
+
|
1077 |
+
@media screen and (max-width: 767px) {
|
1078 |
+
#model-wizard .qsm-popup__container {
|
1079 |
+
width: 90%;
|
1080 |
+
}
|
1081 |
+
|
1082 |
+
#model-wizard .qsm-popup__content .qsm-wizard-template-section {
|
1083 |
+
width: 100%;
|
1084 |
+
}
|
1085 |
+
|
1086 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner:nth-child(2n + 2),
|
1087 |
+
#model-wizard .qsm-popup__content .template-inner-wrap .template-list .template-list-inner {
|
1088 |
+
width: 100% !important;
|
1089 |
+
}
|
1090 |
+
|
1091 |
+
#model-wizard .qsm-wizard-setting-section {
|
1092 |
+
width: 100%;
|
1093 |
+
height: auto !important;
|
1094 |
+
}
|
1095 |
+
|
1096 |
+
#quiz_settings_wrapper tr td label {
|
1097 |
+
margin-bottom: 20px;
|
1098 |
+
display: inline-block;
|
1099 |
+
vertical-align: top;
|
1100 |
+
}
|
1101 |
+
|
1102 |
+
#model-wizard .qsm-popup__title {
|
1103 |
+
font-size: 16px;
|
1104 |
+
}
|
1105 |
+
|
1106 |
+
#model-wizard .qsm-new-menu-elements .input-group {
|
1107 |
+
width: 90%;
|
1108 |
+
}
|
1109 |
+
|
1110 |
+
#model-wizard .qsm-new-menu-elements .input-group label,
|
1111 |
+
#model-wizard .qsm-new-menu-elements .input-group input[type="text"],
|
1112 |
+
#model-wizard .qsm-new-menu-elements .input-group select {
|
1113 |
+
text-align: right;
|
1114 |
+
display: block;
|
1115 |
+
margin: 0px;
|
1116 |
+
width: 100%;
|
1117 |
+
}
|
1118 |
+
|
1119 |
+
#model-wizard .qsm-new-menu-elements .input-group .qsm-opt-desc {
|
1120 |
+
display: none;
|
1121 |
+
}
|
1122 |
+
|
1123 |
+
.welcome-panel h2 {
|
1124 |
+
width: calc(100% - 100px);
|
1125 |
+
}
|
1126 |
+
}
|
1127 |
+
|
1128 |
+
@media only screen and (max-width: 1800px) and (min-width: 1500px) {
|
1129 |
+
#wpbody-content #dashboard-widgets #postbox-container-1 {
|
1130 |
+
width: 50%;
|
1131 |
+
}
|
1132 |
+
|
1133 |
+
#wpbody-content #dashboard-widgets #postbox-container-2 {
|
1134 |
+
width: 50%;
|
1135 |
+
}
|
1136 |
+
}
|
css/common-rtl.css
ADDED
@@ -0,0 +1,360 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Created by dev: 21-06-2021
|
3 |
+
*/
|
4 |
+
.pages_count,
|
5 |
+
.qsm-page .pages_count,
|
6 |
+
.quiz_section .pages_count {
|
7 |
+
display: block;
|
8 |
+
text-align: center;
|
9 |
+
}
|
10 |
+
|
11 |
+
.mlw_qmn_question p:empty {
|
12 |
+
display: none;
|
13 |
+
}
|
14 |
+
|
15 |
+
.MJXc-display {
|
16 |
+
display: inline-block !important;
|
17 |
+
}
|
18 |
+
|
19 |
+
body .quiz_section .mlw_qmn_question {
|
20 |
+
display: inline-block;
|
21 |
+
}
|
22 |
+
|
23 |
+
body .quiz_section .qsm_contact_div .mlw_qmn_question {
|
24 |
+
display: block;
|
25 |
+
}
|
26 |
+
|
27 |
+
.mlw_qmn_question.polar-question-title {
|
28 |
+
margin-bottom: 10px;
|
29 |
+
}
|
30 |
+
|
31 |
+
.polar-question-title {
|
32 |
+
margin-bottom: 50px;
|
33 |
+
font-size: 16px;
|
34 |
+
line-height: 20px;
|
35 |
+
}
|
36 |
+
|
37 |
+
.question-type-polar-s {
|
38 |
+
display: inline-block !important;
|
39 |
+
position: relative;
|
40 |
+
width: 100%;
|
41 |
+
}
|
42 |
+
|
43 |
+
.question-type-polar-s br {
|
44 |
+
display: none;
|
45 |
+
}
|
46 |
+
|
47 |
+
.question-type-polar-s .left-polar-title {
|
48 |
+
width: 25%;
|
49 |
+
position: absolute;
|
50 |
+
right: 0;
|
51 |
+
top: 50%;
|
52 |
+
transform: translateY(-50%);
|
53 |
+
line-height: normal;
|
54 |
+
}
|
55 |
+
|
56 |
+
.question-type-polar-s .slider-main-wrapper {
|
57 |
+
width: 45%;
|
58 |
+
position: absolute;
|
59 |
+
right: 50%;
|
60 |
+
top: 50%;
|
61 |
+
transform: translate(50%, -50%);
|
62 |
+
}
|
63 |
+
|
64 |
+
.question-type-polar-s .right-polar-title {
|
65 |
+
width: 25%;
|
66 |
+
position: absolute;
|
67 |
+
left: 0;
|
68 |
+
top: 50%;
|
69 |
+
transform: translateY(-50%);
|
70 |
+
line-height: normal;
|
71 |
+
}
|
72 |
+
|
73 |
+
.question-type-polar-s .ui-widget-content {
|
74 |
+
background: #A5A5A5;
|
75 |
+
border-color: #A5A5A5;
|
76 |
+
border-radius: 0;
|
77 |
+
height: 20px;
|
78 |
+
}
|
79 |
+
|
80 |
+
.question-type-polar-s .ui-widget-content .ui-slider-handle {
|
81 |
+
background: rgb(119, 113, 113);
|
82 |
+
height: 32px;
|
83 |
+
border-color: rgb(119, 113, 113);
|
84 |
+
top: -7px;
|
85 |
+
border-radius: 0px;
|
86 |
+
}
|
87 |
+
|
88 |
+
.qsm-deselect-answer {
|
89 |
+
float: left;
|
90 |
+
}
|
91 |
+
|
92 |
+
.qsm-popup__close {
|
93 |
+
text-decoration: none !important;
|
94 |
+
}
|
95 |
+
|
96 |
+
.qsm-popup__btn-primary {
|
97 |
+
margin-left: 30px;
|
98 |
+
}
|
99 |
+
|
100 |
+
.submit-the-form {
|
101 |
+
margin-right: 15px !important;
|
102 |
+
}
|
103 |
+
|
104 |
+
body .qsm-popup__container {
|
105 |
+
padding-top: 40px;
|
106 |
+
padding-bottom: 50px;
|
107 |
+
}
|
108 |
+
|
109 |
+
body .qsm-popup__header {
|
110 |
+
text-align: right;
|
111 |
+
}
|
112 |
+
|
113 |
+
body .qsm-popup .qsm-popup__btn {
|
114 |
+
font-size: 16px;
|
115 |
+
padding-right: 15px;
|
116 |
+
padding-left: 15px;
|
117 |
+
padding-top: 10px;
|
118 |
+
padding-bottom: 10px;
|
119 |
+
}
|
120 |
+
|
121 |
+
body .qsm-popup__content {
|
122 |
+
text-align: center;
|
123 |
+
}
|
124 |
+
|
125 |
+
body .qsm-popup__content>img {
|
126 |
+
display: inline-block;
|
127 |
+
width: 70px;
|
128 |
+
}
|
129 |
+
|
130 |
+
body .qsm-popup__content>p.qsm-time-up-text {
|
131 |
+
font-weight: bold;
|
132 |
+
font-size: 24px;
|
133 |
+
margin-top: 10px;
|
134 |
+
font-family: inherit;
|
135 |
+
}
|
136 |
+
|
137 |
+
footer.qsm-popup__footer {
|
138 |
+
text-align: center;
|
139 |
+
}
|
140 |
+
|
141 |
+
footer.qsm-popup__footer button.qsm-popup-secondary-button {
|
142 |
+
background-color: #808080 !important;
|
143 |
+
}
|
144 |
+
|
145 |
+
footer.qsm-popup__footer button.qsm-popup-secondary-button:hover {
|
146 |
+
background-color: #808080 !important;
|
147 |
+
opacity: 0.9;
|
148 |
+
}
|
149 |
+
|
150 |
+
.qsm-quiz-container .qsm-contact-type-checkbox input {
|
151 |
+
display: inline-block;
|
152 |
+
}
|
153 |
+
|
154 |
+
.quiz_section .mlw_qmn_new_question {
|
155 |
+
font-weight: bold;
|
156 |
+
display: inline;
|
157 |
+
width: auto;
|
158 |
+
margin-bottom: 10px;
|
159 |
+
}
|
160 |
+
|
161 |
+
.quiz_section .mlw_qmn_question.qsm_remove_bold {
|
162 |
+
font-weight: normal;
|
163 |
+
display: block;
|
164 |
+
margin-bottom: 10px;
|
165 |
+
}
|
166 |
+
|
167 |
+
.quiz_section iframe {
|
168 |
+
width: 100% !important;
|
169 |
+
min-height: 315px !important;
|
170 |
+
}
|
171 |
+
|
172 |
+
.qsm-progress-bar .progressbar-text {
|
173 |
+
position: absolute;
|
174 |
+
padding: 0px;
|
175 |
+
margin: 0px;
|
176 |
+
top: 10px !important;
|
177 |
+
left: 10px;
|
178 |
+
font-size: 13px;
|
179 |
+
font-weight: bold;
|
180 |
+
color: rgb(52, 152, 219);
|
181 |
+
}
|
182 |
+
|
183 |
+
.quiz_section .mlw-file-upload-error-msg {
|
184 |
+
color: red;
|
185 |
+
display: block;
|
186 |
+
}
|
187 |
+
|
188 |
+
.quiz_section .remove-uploaded-file {
|
189 |
+
color: red;
|
190 |
+
border: 1px solid red;
|
191 |
+
width: 31px;
|
192 |
+
padding: 5px 5px 0px 5px;
|
193 |
+
display: inline-block;
|
194 |
+
cursor: pointer;
|
195 |
+
}
|
196 |
+
|
197 |
+
/**
|
198 |
+
* Design for new template variable QUESTION_WITH_ANSWER
|
199 |
+
*/
|
200 |
+
.mlw_qmn_question .qsm-text-wrong-option {
|
201 |
+
display: block;
|
202 |
+
color: #dc3232;
|
203 |
+
margin-bottom: 5px;
|
204 |
+
padding-right: 10px;
|
205 |
+
}
|
206 |
+
|
207 |
+
.mlw_qmn_question span.qsm-text-wrong-option::after {
|
208 |
+
content: "\f335";
|
209 |
+
font-family: dashicons;
|
210 |
+
position: relative;
|
211 |
+
top: 3px;
|
212 |
+
right: -10px;
|
213 |
+
}
|
214 |
+
|
215 |
+
.mlw_qmn_question .qsm-text-correct-option {
|
216 |
+
display: block;
|
217 |
+
color: green;
|
218 |
+
margin-bottom: 5px;
|
219 |
+
padding-right: 10px;
|
220 |
+
}
|
221 |
+
|
222 |
+
.mlw_qmn_question .qsm-text-correct-option:after {
|
223 |
+
content: "\f159";
|
224 |
+
font-family: dashicons;
|
225 |
+
position: relative;
|
226 |
+
top: 3px;
|
227 |
+
right: -10px;
|
228 |
+
}
|
229 |
+
|
230 |
+
.mlw_qmn_question .qsm-text-correct-option.qsm-text-user-correct-answer:after {
|
231 |
+
content: "\f12a";
|
232 |
+
top: 4px;
|
233 |
+
}
|
234 |
+
|
235 |
+
.mlw_qmn_question .qsm-text-simple-option {
|
236 |
+
display: block;
|
237 |
+
margin-bottom: 5px;
|
238 |
+
color: #808080;
|
239 |
+
padding-right: 10px;
|
240 |
+
}
|
241 |
+
|
242 |
+
.mlw_qmn_question .qsm-text-simple-option:after {
|
243 |
+
content: "\f159";
|
244 |
+
font-family: dashicons;
|
245 |
+
position: relative;
|
246 |
+
top: 3px;
|
247 |
+
right: -10px;
|
248 |
+
}
|
249 |
+
|
250 |
+
.qsm-results-page .qmn_question_answer.qsm-add-border-bottom {
|
251 |
+
border-bottom: 1px solid #808080;
|
252 |
+
padding-bottom: 25px;
|
253 |
+
}
|
254 |
+
|
255 |
+
.qmn_quiz_container.qsm_auto_pagination_enabled {
|
256 |
+
position: relative;
|
257 |
+
}
|
258 |
+
|
259 |
+
.qmn_quiz_container.qsm_auto_pagination_enabled .quiz_section.quiz_end .qsm-btn {
|
260 |
+
bottom: 0;
|
261 |
+
left: 0;
|
262 |
+
width: auto;
|
263 |
+
text-align: left;
|
264 |
+
height: auto;
|
265 |
+
padding: 0;
|
266 |
+
position: absolute;
|
267 |
+
z-index: 1;
|
268 |
+
margin-bottom: 15px;
|
269 |
+
}
|
270 |
+
|
271 |
+
.quiz_section input[type="text"].qmn_fill_blank {
|
272 |
+
display: inline-block;
|
273 |
+
}
|
274 |
+
|
275 |
+
.qmn_quiz_container .mlw_previous {
|
276 |
+
margin-bottom: 15px;
|
277 |
+
}
|
278 |
+
|
279 |
+
.multi-checkbox-limit-reach {
|
280 |
+
color: red;
|
281 |
+
margin-top: 5px;
|
282 |
+
display: inline-block;
|
283 |
+
width: 100%;
|
284 |
+
}
|
285 |
+
|
286 |
+
.quiz_section .qsm-inline-correct-info {
|
287 |
+
margin-bottom: 0;
|
288 |
+
margin-top: 10px;
|
289 |
+
}
|
290 |
+
|
291 |
+
.quiz_section.qmn_error .mlw_answer_date {
|
292 |
+
border: 1px solid #da4f49;
|
293 |
+
background: #F2DEDE;
|
294 |
+
padding: 5px;
|
295 |
+
-webkit-border-radius: 3px;
|
296 |
+
-moz-border-radius: 3px;
|
297 |
+
border-radius: 3px;
|
298 |
+
}
|
299 |
+
|
300 |
+
.qsm_social_share_link {
|
301 |
+
display: inline-block;
|
302 |
+
cursor: pointer;
|
303 |
+
}
|
304 |
+
|
305 |
+
@media screen and (max-width: 767px) {
|
306 |
+
|
307 |
+
.question-type-polar-s .left-polar-title,
|
308 |
+
.question-type-polar-s .slider-main-wrapper,
|
309 |
+
.question-type-polar-s .right-polar-title {
|
310 |
+
width: 100%;
|
311 |
+
position: relative;
|
312 |
+
top: auto;
|
313 |
+
right: auto;
|
314 |
+
left: auto;
|
315 |
+
bottom: auto;
|
316 |
+
transform: none;
|
317 |
+
margin-bottom: 30px;
|
318 |
+
}
|
319 |
+
|
320 |
+
.question-type-polar-s {
|
321 |
+
height: auto !important;
|
322 |
+
}
|
323 |
+
|
324 |
+
body .quiz_section .qmn_radio_answers label,
|
325 |
+
body .quiz_section .qmn_check_answers label,
|
326 |
+
body .quiz_section .qmn_accept_answers label {
|
327 |
+
font-size: 14px !important;
|
328 |
+
}
|
329 |
+
}
|
330 |
+
|
331 |
+
.qsm_tooltip {
|
332 |
+
position: relative;
|
333 |
+
display: inline-block;
|
334 |
+
}
|
335 |
+
|
336 |
+
.qsm_tooltip .qsm_tooltiptext {
|
337 |
+
visibility: hidden;
|
338 |
+
width: 120px;
|
339 |
+
background-color: black;
|
340 |
+
color: #fff;
|
341 |
+
text-align: center;
|
342 |
+
border-radius: 6px;
|
343 |
+
padding: 5px 0;
|
344 |
+
|
345 |
+
/* Position the tooltip */
|
346 |
+
position: absolute;
|
347 |
+
z-index: 1;
|
348 |
+
bottom: 100%;
|
349 |
+
right: 50%;
|
350 |
+
margin-right: -60px;
|
351 |
+
}
|
352 |
+
|
353 |
+
.qsm_tooltip .qsm_tooltiptext a {
|
354 |
+
background-color: black !important;
|
355 |
+
color: #fff !important;
|
356 |
+
}
|
357 |
+
|
358 |
+
.qsm_tooltip:hover .qsm_tooltiptext {
|
359 |
+
visibility: visible;
|
360 |
+
}
|
css/qmn_quiz-rtl.css
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.ui-tooltip {
|
2 |
+
max-width: 500px !important;
|
3 |
+
}
|
4 |
+
|
5 |
+
.ui-tooltip-content {
|
6 |
+
max-width: 500px !important;
|
7 |
+
}
|
8 |
+
|
9 |
+
.mlw_qmn_hint_link {
|
10 |
+
text-decoration: underline;
|
11 |
+
color: rgb(0, 0, 255);
|
12 |
+
}
|
13 |
+
|
14 |
+
.mlw_qmn_quiz_link {
|
15 |
+
display: inline;
|
16 |
+
vertical-align: top !important;
|
17 |
+
text-decoration: none;
|
18 |
+
}
|
css/qsm-admin-question-rtl.css
ADDED
@@ -0,0 +1,853 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.question-controls {
|
2 |
+
display: flex;
|
3 |
+
flex-direction: column;
|
4 |
+
justify-content: space-between;
|
5 |
+
align-items: center;
|
6 |
+
}
|
7 |
+
|
8 |
+
#delete-question-button {
|
9 |
+
background-color: #dc3232;
|
10 |
+
float: left;
|
11 |
+
}
|
12 |
+
|
13 |
+
#unlink-question-button {
|
14 |
+
float: left;
|
15 |
+
margin-right: 5px;
|
16 |
+
}
|
17 |
+
|
18 |
+
#modal-7 {
|
19 |
+
max-width: 500px;
|
20 |
+
}
|
21 |
+
|
22 |
+
#modal-7 hr {
|
23 |
+
margin: 0 -30px;
|
24 |
+
}
|
25 |
+
|
26 |
+
#modal-7 header {
|
27 |
+
margin: -10px 0 10px 0;
|
28 |
+
}
|
29 |
+
|
30 |
+
#modal-7 .qsm-popup__close {
|
31 |
+
margin: -10px 0 0 -10px;
|
32 |
+
font-size: 20px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#modal-7-title {
|
36 |
+
color: gray;
|
37 |
+
opacity: 70%;
|
38 |
+
}
|
39 |
+
|
40 |
+
#modal-7 footer .dashicons {
|
41 |
+
font-size: 20px;
|
42 |
+
margin-left: 3px;
|
43 |
+
vertical-align: middle;
|
44 |
+
margin-right: -10px;
|
45 |
+
}
|
46 |
+
|
47 |
+
#modal-7 .qsm-popup__container {
|
48 |
+
max-width: 560px;
|
49 |
+
padding-bottom: 20px;
|
50 |
+
}
|
51 |
+
|
52 |
+
.modal-7-table {
|
53 |
+
font-size: 16px;
|
54 |
+
}
|
55 |
+
|
56 |
+
#modal-7 footer {
|
57 |
+
margin-top: 15px;
|
58 |
+
}
|
59 |
+
|
60 |
+
.modal-7-table tr td {
|
61 |
+
vertical-align: top;
|
62 |
+
padding: 0 0 5px 10px
|
63 |
+
}
|
64 |
+
|
65 |
+
@media screen and (min-width:700px) {
|
66 |
+
.question-controls {
|
67 |
+
flex-direction: row;
|
68 |
+
}
|
69 |
+
}
|
70 |
+
|
71 |
+
.page {
|
72 |
+
width: 100%;
|
73 |
+
background-color: #fff;
|
74 |
+
margin: 20px 0;
|
75 |
+
padding-bottom: 60px;
|
76 |
+
/*box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.4)*/
|
77 |
+
position: relative;
|
78 |
+
padding-right: 15px;
|
79 |
+
padding-left: 15px;
|
80 |
+
box-sizing: border-box;
|
81 |
+
}
|
82 |
+
|
83 |
+
.page-header {
|
84 |
+
display: flex;
|
85 |
+
align-items: center;
|
86 |
+
justify-content: space-between;
|
87 |
+
background-color: #fff;
|
88 |
+
padding: 25px 10px 10px 15px;
|
89 |
+
/*border-bottom: 5px solid #1DD969;*/
|
90 |
+
}
|
91 |
+
|
92 |
+
.page-header .dashicons {
|
93 |
+
color: #A6ABAF;
|
94 |
+
font-size: 25px;
|
95 |
+
}
|
96 |
+
|
97 |
+
.page-header .dashicons.dashicons-trash {
|
98 |
+
color: #dc3232;
|
99 |
+
}
|
100 |
+
|
101 |
+
.page-header .edit-page-button {
|
102 |
+
margin: 0 10px;
|
103 |
+
}
|
104 |
+
|
105 |
+
.page-header .edit-page-button span {
|
106 |
+
color: #1F8CBE;
|
107 |
+
}
|
108 |
+
|
109 |
+
.page-header span.page-number {
|
110 |
+
font-size: 18px;
|
111 |
+
color: #A6ABAF;
|
112 |
+
margin-right: 10px;
|
113 |
+
display: inline-block;
|
114 |
+
font-style: italic;
|
115 |
+
margin-top: 3px;
|
116 |
+
}
|
117 |
+
|
118 |
+
.page-header span.page-name {}
|
119 |
+
|
120 |
+
.page-footer {
|
121 |
+
position: absolute;
|
122 |
+
bottom: 15px;
|
123 |
+
width: 100%;
|
124 |
+
left: 25px;
|
125 |
+
}
|
126 |
+
|
127 |
+
.page-footer a.button,
|
128 |
+
.new-answer-button a#new-answer-button {
|
129 |
+
border: 1px solid #cbcbcb;
|
130 |
+
color: #7b7575;
|
131 |
+
background: #F7F7F7;
|
132 |
+
}
|
133 |
+
|
134 |
+
.new-answer-button a#new-answer-button:hover {
|
135 |
+
opacity: 0.9;
|
136 |
+
}
|
137 |
+
|
138 |
+
.page-footer a.button .dashicons,
|
139 |
+
.new-answer-button a#new-answer-button .dashicons {
|
140 |
+
line-height: 32px;
|
141 |
+
}
|
142 |
+
|
143 |
+
.question-create-page {
|
144 |
+
text-align: center;
|
145 |
+
}
|
146 |
+
|
147 |
+
.question-create-page .new-page-button .dashicons {
|
148 |
+
line-height: 30px;
|
149 |
+
font-size: 16px;
|
150 |
+
}
|
151 |
+
|
152 |
+
.page-header a {
|
153 |
+
text-decoration: none;
|
154 |
+
}
|
155 |
+
|
156 |
+
.page-header-buttons {
|
157 |
+
text-align: left;
|
158 |
+
}
|
159 |
+
|
160 |
+
.question,
|
161 |
+
.question-bank-question {
|
162 |
+
padding: 15px 10px;
|
163 |
+
background-color: #F3F3F3;
|
164 |
+
border: 1px solid #cbcbcb;
|
165 |
+
margin: 15px 10px 0;
|
166 |
+
}
|
167 |
+
|
168 |
+
.question a {
|
169 |
+
text-decoration: none;
|
170 |
+
}
|
171 |
+
|
172 |
+
.question-content {
|
173 |
+
display: flex;
|
174 |
+
align-items: center;
|
175 |
+
justify-content: space-between;
|
176 |
+
}
|
177 |
+
|
178 |
+
.question-content .dashicons {
|
179 |
+
font-size: 22px;
|
180 |
+
color: #1F8CBE;
|
181 |
+
}
|
182 |
+
|
183 |
+
.question-content .dashicons.dashicons-trash {
|
184 |
+
color: #dc3232;
|
185 |
+
}
|
186 |
+
|
187 |
+
.question-content .dashicons.dashicons-move {
|
188 |
+
color: #A6ABAF;
|
189 |
+
font-size: 22px;
|
190 |
+
}
|
191 |
+
|
192 |
+
.question-content .question-content-text {
|
193 |
+
color: #1F8CBE;
|
194 |
+
font-size: 16px;
|
195 |
+
font-weight: 500;
|
196 |
+
}
|
197 |
+
|
198 |
+
.question-content .question-category {
|
199 |
+
color: #939697;
|
200 |
+
font-size: 14px;
|
201 |
+
font-weight: normal;
|
202 |
+
font-style: italic;
|
203 |
+
}
|
204 |
+
|
205 |
+
.question-content>div {
|
206 |
+
margin: 0 10px;
|
207 |
+
}
|
208 |
+
|
209 |
+
.question-content-text {
|
210 |
+
flex-grow: 1;
|
211 |
+
}
|
212 |
+
|
213 |
+
.question-bank-question {
|
214 |
+
display: flex;
|
215 |
+
align-items: center;
|
216 |
+
justify-content: space-between;
|
217 |
+
clear: both;
|
218 |
+
}
|
219 |
+
|
220 |
+
.qsm-select-all-label {
|
221 |
+
margin-left: 5px;
|
222 |
+
position: relative;
|
223 |
+
top: 5px;
|
224 |
+
vertical-align: top;
|
225 |
+
}
|
226 |
+
|
227 |
+
#qsm-import-selected-question {
|
228 |
+
margin-left: 30px;
|
229 |
+
}
|
230 |
+
|
231 |
+
#qsm-delete-selected-question {
|
232 |
+
margin-left: 10px;
|
233 |
+
}
|
234 |
+
|
235 |
+
.question-bank-question div {
|
236 |
+
margin: 0 10px;
|
237 |
+
}
|
238 |
+
|
239 |
+
.question-bank-question>div:nth-child(2) {
|
240 |
+
width: 100%;
|
241 |
+
}
|
242 |
+
|
243 |
+
.page-new,
|
244 |
+
.question-new {
|
245 |
+
background-color: #fff !important;
|
246 |
+
}
|
247 |
+
|
248 |
+
.correct-header {
|
249 |
+
text-align: left;
|
250 |
+
display: none;
|
251 |
+
}
|
252 |
+
|
253 |
+
.answers-single {
|
254 |
+
display: flex;
|
255 |
+
justify-content: space-between;
|
256 |
+
margin-bottom: 5px;
|
257 |
+
padding: 10px 10px;
|
258 |
+
background: #FAFAFA;
|
259 |
+
}
|
260 |
+
|
261 |
+
.answers-single:nth-child(2n+2) {
|
262 |
+
background: #FFF;
|
263 |
+
}
|
264 |
+
|
265 |
+
.answers-single>div {
|
266 |
+
margin-right: 5px;
|
267 |
+
}
|
268 |
+
|
269 |
+
.answer-text-div {
|
270 |
+
width: 85%;
|
271 |
+
}
|
272 |
+
|
273 |
+
.answers-single>div:nth-child(4) {
|
274 |
+
width: 12%;
|
275 |
+
}
|
276 |
+
|
277 |
+
.qsm-row {
|
278 |
+
display: block;
|
279 |
+
width: 100%;
|
280 |
+
margin-bottom: 13px;
|
281 |
+
font-size: 16px;
|
282 |
+
}
|
283 |
+
|
284 |
+
div#correct_answer_info_area {
|
285 |
+
float: right;
|
286 |
+
}
|
287 |
+
|
288 |
+
#post-body-content .qsm-row {
|
289 |
+
margin-bottom: 20px;
|
290 |
+
}
|
291 |
+
|
292 |
+
.qsm-row>label {
|
293 |
+
font-weight: normal;
|
294 |
+
display: block;
|
295 |
+
margin-bottom: 7px;
|
296 |
+
color: #7b7575;
|
297 |
+
}
|
298 |
+
|
299 |
+
.questionElements .qsm-row>label {
|
300 |
+
position: relative;
|
301 |
+
}
|
302 |
+
|
303 |
+
.questionElements .qsm-row>label>.qsm-tooltips-icon {
|
304 |
+
position: relative;
|
305 |
+
top: 2px;
|
306 |
+
}
|
307 |
+
|
308 |
+
.questionElements .qsm-question-doc {
|
309 |
+
text-decoration: none;
|
310 |
+
position: absolute;
|
311 |
+
left: 0;
|
312 |
+
color: #969696;
|
313 |
+
}
|
314 |
+
|
315 |
+
#categorydiv .qsm-question-doc {
|
316 |
+
left: 15px;
|
317 |
+
}
|
318 |
+
|
319 |
+
.questionElements .qsm-question-doc:hover {
|
320 |
+
color: #0073aa;
|
321 |
+
}
|
322 |
+
|
323 |
+
.questionElements .qsm-row>label>.qsm-question-doc span.dashicons {
|
324 |
+
font-size: 17px;
|
325 |
+
width: auto;
|
326 |
+
height: auto;
|
327 |
+
line-height: 23px;
|
328 |
+
}
|
329 |
+
|
330 |
+
.questionElements .qsm-tooltips-icon .qsm-tooltips {
|
331 |
+
bottom: 26px;
|
332 |
+
}
|
333 |
+
|
334 |
+
.questionElements .qsm-tooltips-icon {
|
335 |
+
cursor: help;
|
336 |
+
}
|
337 |
+
|
338 |
+
.qsm-row select,
|
339 |
+
.qsm-row input[type=text],
|
340 |
+
.qsm-row textarea {
|
341 |
+
width: 100%;
|
342 |
+
max-width: 100%;
|
343 |
+
}
|
344 |
+
|
345 |
+
.qsm-popup {
|
346 |
+
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif;
|
347 |
+
}
|
348 |
+
|
349 |
+
.qsm-popup__overlay {
|
350 |
+
position: fixed;
|
351 |
+
top: 0;
|
352 |
+
right: 0;
|
353 |
+
left: 0;
|
354 |
+
bottom: 0;
|
355 |
+
background: rgba(0, 0, 0, 0.6);
|
356 |
+
display: flex;
|
357 |
+
justify-content: center;
|
358 |
+
align-items: center;
|
359 |
+
z-index: 9999;
|
360 |
+
}
|
361 |
+
|
362 |
+
.qsm-popup__container {
|
363 |
+
background-color: #fff;
|
364 |
+
padding: 30px;
|
365 |
+
min-width: 500px;
|
366 |
+
max-width: 700px;
|
367 |
+
max-height: 95vh;
|
368 |
+
border-radius: 4px;
|
369 |
+
overflow-y: auto;
|
370 |
+
box-sizing: border-box;
|
371 |
+
}
|
372 |
+
|
373 |
+
.qsm-popup__header {
|
374 |
+
display: flex;
|
375 |
+
justify-content: space-between;
|
376 |
+
align-items: center;
|
377 |
+
}
|
378 |
+
|
379 |
+
.qsm-popup__title {
|
380 |
+
margin-top: 0;
|
381 |
+
margin-bottom: 0;
|
382 |
+
font-weight: 600;
|
383 |
+
font-size: 1.25rem;
|
384 |
+
line-height: 1.25;
|
385 |
+
color: #00449e;
|
386 |
+
box-sizing: border-box;
|
387 |
+
}
|
388 |
+
|
389 |
+
.qsm-popup__close {
|
390 |
+
background: transparent;
|
391 |
+
border: 0;
|
392 |
+
color: #00449e;
|
393 |
+
text-decoration: none;
|
394 |
+
}
|
395 |
+
|
396 |
+
.qsm-popup__header .qsm-popup__close:before {
|
397 |
+
content: "\2715";
|
398 |
+
}
|
399 |
+
|
400 |
+
.qsm-popup__content {
|
401 |
+
margin-top: 2rem;
|
402 |
+
margin-bottom: 2rem;
|
403 |
+
line-height: 1.5;
|
404 |
+
color: rgba(0, 0, 0, .8);
|
405 |
+
}
|
406 |
+
|
407 |
+
.qsm-popup__btn {
|
408 |
+
font-size: .875rem;
|
409 |
+
padding-right: 1rem;
|
410 |
+
padding-left: 1rem;
|
411 |
+
padding-top: .5rem;
|
412 |
+
padding-bottom: .5rem;
|
413 |
+
background-color: #e6e6e6;
|
414 |
+
color: rgba(0, 0, 0, .8);
|
415 |
+
border-radius: .25rem;
|
416 |
+
border-style: none;
|
417 |
+
border-width: 0;
|
418 |
+
cursor: pointer;
|
419 |
+
-webkit-appearance: button;
|
420 |
+
text-transform: none;
|
421 |
+
overflow: visible;
|
422 |
+
line-height: 1.15;
|
423 |
+
margin: 0;
|
424 |
+
will-change: transform;
|
425 |
+
-moz-osx-font-smoothing: grayscale;
|
426 |
+
-webkit-backface-visibility: hidden;
|
427 |
+
backface-visibility: hidden;
|
428 |
+
-webkit-transform: translateZ(0);
|
429 |
+
transform: translateZ(0);
|
430 |
+
transition: -webkit-transform .25s ease-out;
|
431 |
+
transition: transform .25s ease-out;
|
432 |
+
transition: transform .25s ease-out, -webkit-transform .25s ease-out;
|
433 |
+
}
|
434 |
+
|
435 |
+
.qsm-popup__btn:focus,
|
436 |
+
.qsm-popup__btn:hover {
|
437 |
+
-webkit-transform: scale(1.05);
|
438 |
+
transform: scale(1.05);
|
439 |
+
}
|
440 |
+
|
441 |
+
.qsm-popup__btn-primary {
|
442 |
+
background-color: #00449e;
|
443 |
+
color: #fff;
|
444 |
+
}
|
445 |
+
|
446 |
+
@keyframes mmfadeIn {
|
447 |
+
from {
|
448 |
+
opacity: 0;
|
449 |
+
}
|
450 |
+
|
451 |
+
to {
|
452 |
+
opacity: 1;
|
453 |
+
}
|
454 |
+
}
|
455 |
+
|
456 |
+
@keyframes mmfadeOut {
|
457 |
+
from {
|
458 |
+
opacity: 1;
|
459 |
+
}
|
460 |
+
|
461 |
+
to {
|
462 |
+
opacity: 0;
|
463 |
+
}
|
464 |
+
}
|
465 |
+
|
466 |
+
@keyframes mmslideIn {
|
467 |
+
from {
|
468 |
+
transform: translateY(15%);
|
469 |
+
}
|
470 |
+
|
471 |
+
to {
|
472 |
+
transform: translateY(0);
|
473 |
+
}
|
474 |
+
}
|
475 |
+
|
476 |
+
@keyframes mmslideOut {
|
477 |
+
from {
|
478 |
+
transform: translateY(0);
|
479 |
+
}
|
480 |
+
|
481 |
+
to {
|
482 |
+
transform: translateY(-10%);
|
483 |
+
}
|
484 |
+
}
|
485 |
+
|
486 |
+
.qsm-popup-slide {
|
487 |
+
display: none;
|
488 |
+
}
|
489 |
+
|
490 |
+
.qsm-popup-slide.is-open {
|
491 |
+
display: block;
|
492 |
+
}
|
493 |
+
|
494 |
+
.qsm-popup-slide[aria-hidden="false"] .qsm-popup__overlay {
|
495 |
+
animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
|
496 |
+
}
|
497 |
+
|
498 |
+
.qsm-popup-slide[aria-hidden="false"] .qsm-popup__container {
|
499 |
+
animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
|
500 |
+
}
|
501 |
+
|
502 |
+
.qsm-popup-slide[aria-hidden="true"] .qsm-popup__overlay {
|
503 |
+
animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
|
504 |
+
}
|
505 |
+
|
506 |
+
.qsm-popup-slide[aria-hidden="true"] .qsm-popup__container {
|
507 |
+
animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
|
508 |
+
}
|
509 |
+
|
510 |
+
.qsm-popup-slide .qsm-popup__container,
|
511 |
+
.qsm-popup-slide .qsm-popup__overlay {
|
512 |
+
will-change: transform;
|
513 |
+
}
|
514 |
+
|
515 |
+
@-moz-keyframes qsm-spinner-loader {
|
516 |
+
0% {
|
517 |
+
-moz-transform: rotate(0deg);
|
518 |
+
transform: rotate(0deg);
|
519 |
+
}
|
520 |
+
|
521 |
+
100% {
|
522 |
+
-moz-transform: rotate(360deg);
|
523 |
+
transform: rotate(360deg);
|
524 |
+
}
|
525 |
+
}
|
526 |
+
|
527 |
+
@-webkit-keyframes qsm-spinner-loader {
|
528 |
+
0% {
|
529 |
+
-webkit-transform: rotate(0deg);
|
530 |
+
transform: rotate(0deg);
|
531 |
+
}
|
532 |
+
|
533 |
+
100% {
|
534 |
+
-webkit-transform: rotate(360deg);
|
535 |
+
transform: rotate(360deg);
|
536 |
+
}
|
537 |
+
}
|
538 |
+
|
539 |
+
@keyframes qsm-spinner-loader {
|
540 |
+
0% {
|
541 |
+
-moz-transform: rotate(0deg);
|
542 |
+
-ms-transform: rotate(0deg);
|
543 |
+
-webkit-transform: rotate(0deg);
|
544 |
+
transform: rotate(0deg);
|
545 |
+
}
|
546 |
+
|
547 |
+
100% {
|
548 |
+
-moz-transform: rotate(360deg);
|
549 |
+
-ms-transform: rotate(360deg);
|
550 |
+
-webkit-transform: rotate(360deg);
|
551 |
+
transform: rotate(360deg);
|
552 |
+
}
|
553 |
+
}
|
554 |
+
|
555 |
+
/* :not(:required) hides this rule from IE9 and below */
|
556 |
+
.qsm-spinner-loader:not(:required) {
|
557 |
+
-moz-animation: qsm-spinner-loader 1500ms infinite linear;
|
558 |
+
-webkit-animation: qsm-spinner-loader 1500ms infinite linear;
|
559 |
+
animation: qsm-spinner-loader 1500ms infinite linear;
|
560 |
+
-moz-border-radius: 0.5em;
|
561 |
+
-webkit-border-radius: 0.5em;
|
562 |
+
border-radius: 0.5em;
|
563 |
+
-moz-box-shadow: rgba(0, 0, 51, 0.3) 1.5em 0 0 0, rgba(0, 0, 51, 0.3) 1.1em 1.1em 0 0, rgba(0, 0, 51, 0.3) 0 1.5em 0 0, rgba(0, 0, 51, 0.3) -1.1em 1.1em 0 0, rgba(0, 0, 51, 0.3) -1.5em 0 0 0, rgba(0, 0, 51, 0.3) -1.1em -1.1em 0 0, rgba(0, 0, 51, 0.3) 0 -1.5em 0 0, rgba(0, 0, 51, 0.3) 1.1em -1.1em 0 0;
|
564 |
+
-webkit-box-shadow: rgba(0, 0, 51, 0.3) 1.5em 0 0 0, rgba(0, 0, 51, 0.3) 1.1em 1.1em 0 0, rgba(0, 0, 51, 0.3) 0 1.5em 0 0, rgba(0, 0, 51, 0.3) -1.1em 1.1em 0 0, rgba(0, 0, 51, 0.3) -1.5em 0 0 0, rgba(0, 0, 51, 0.3) -1.1em -1.1em 0 0, rgba(0, 0, 51, 0.3) 0 -1.5em 0 0, rgba(0, 0, 51, 0.3) 1.1em -1.1em 0 0;
|
565 |
+
box-shadow: rgba(0, 0, 51, 0.3) 1.5em 0 0 0, rgba(0, 0, 51, 0.3) 1.1em 1.1em 0 0, rgba(0, 0, 51, 0.3) 0 1.5em 0 0, rgba(0, 0, 51, 0.3) -1.1em 1.1em 0 0, rgba(0, 0, 51, 0.3) -1.5em 0 0 0, rgba(0, 0, 51, 0.3) -1.1em -1.1em 0 0, rgba(0, 0, 51, 0.3) 0 -1.5em 0 0, rgba(0, 0, 51, 0.3) 1.1em -1.1em 0 0;
|
566 |
+
display: inline-block;
|
567 |
+
font-size: 10px;
|
568 |
+
width: 1em;
|
569 |
+
height: 1em;
|
570 |
+
margin: 1.5em;
|
571 |
+
overflow: hidden;
|
572 |
+
text-indent: 100%;
|
573 |
+
}
|
574 |
+
|
575 |
+
/**
|
576 |
+
* Css for change-answer-editor-label
|
577 |
+
*/
|
578 |
+
/*.change-answer-editor-label{
|
579 |
+
display: inline-block;
|
580 |
+
float: right;
|
581 |
+
font-size: 14px;
|
582 |
+
font-weight: normal !important;
|
583 |
+
}*/
|
584 |
+
.change-answer-editor-label>#change-answer-editor {
|
585 |
+
width: auto;
|
586 |
+
}
|
587 |
+
|
588 |
+
a.import-button.button.disable_import {
|
589 |
+
position: relative;
|
590 |
+
z-index: 0;
|
591 |
+
}
|
592 |
+
|
593 |
+
a.import-button.button.disable_import::before {
|
594 |
+
content: '';
|
595 |
+
background: rgba(255, 255, 255, 0.5);
|
596 |
+
width: 100%;
|
597 |
+
height: 100%;
|
598 |
+
right: 0;
|
599 |
+
left: 0;
|
600 |
+
top: 0;
|
601 |
+
bottom: 0;
|
602 |
+
position: absolute;
|
603 |
+
z-index: 5;
|
604 |
+
}
|
605 |
+
|
606 |
+
#question-bank-cat {
|
607 |
+
float: left;
|
608 |
+
margin-bottom: 20px;
|
609 |
+
margin-left: 10px;
|
610 |
+
}
|
611 |
+
|
612 |
+
.ui-state-highlight {
|
613 |
+
background: #F3F3F3;
|
614 |
+
border: 1px dashed #cbcbcb;
|
615 |
+
height: 50px;
|
616 |
+
margin: 15px 10px 0;
|
617 |
+
opacity: 0.8;
|
618 |
+
}
|
619 |
+
|
620 |
+
.questionElements #poststuff {
|
621 |
+
display: inline-block;
|
622 |
+
width: 100%;
|
623 |
+
background: #fff;
|
624 |
+
padding: 10px;
|
625 |
+
box-sizing: border-box;
|
626 |
+
padding-bottom: 0;
|
627 |
+
}
|
628 |
+
|
629 |
+
.questionElements {
|
630 |
+
padding: 15px 10px;
|
631 |
+
background-color: #fff;
|
632 |
+
border: 1px solid #cbcbcb;
|
633 |
+
margin: 0 10px 0;
|
634 |
+
box-sizing: border-box;
|
635 |
+
border-top: medium none;
|
636 |
+
}
|
637 |
+
|
638 |
+
.questionElements .question-title {
|
639 |
+
padding: 3px 8px;
|
640 |
+
font-size: 1.7em;
|
641 |
+
line-height: 100%;
|
642 |
+
/* height: 1.7em; */
|
643 |
+
width: 100%;
|
644 |
+
outline: 0;
|
645 |
+
margin: 0 0 3px;
|
646 |
+
background-color: #fff;
|
647 |
+
}
|
648 |
+
|
649 |
+
.questionElements #major-publishing-actions {
|
650 |
+
display: inline-block;
|
651 |
+
width: 100%;
|
652 |
+
box-sizing: border-box;
|
653 |
+
clear: both;
|
654 |
+
margin-bottom: -3px;
|
655 |
+
}
|
656 |
+
|
657 |
+
.questionElements #minor-publishing {
|
658 |
+
padding: 10px 12px 12px;
|
659 |
+
}
|
660 |
+
|
661 |
+
#advanceddiv input[type="number"] {
|
662 |
+
width: 100% !important;
|
663 |
+
}
|
664 |
+
|
665 |
+
.qsm-row .answer-header {
|
666 |
+
font-weight: 500;
|
667 |
+
font-size: 20px;
|
668 |
+
margin-bottom: 30px;
|
669 |
+
margin-top: 15px;
|
670 |
+
color: #23282d;
|
671 |
+
}
|
672 |
+
|
673 |
+
.qsm-row .new-answer-button {
|
674 |
+
text-align: center;
|
675 |
+
margin-top: 15px;
|
676 |
+
}
|
677 |
+
|
678 |
+
#advanceddiv {
|
679 |
+
margin-bottom: 0;
|
680 |
+
}
|
681 |
+
|
682 |
+
#answers .delete-answer-button {
|
683 |
+
text-decoration: none;
|
684 |
+
color: #dc3232;
|
685 |
+
vertical-align: middle;
|
686 |
+
}
|
687 |
+
|
688 |
+
.answers-single .correct-answer {
|
689 |
+
margin-left: 0;
|
690 |
+
vertical-align: -webkit-baseline-middle;
|
691 |
+
}
|
692 |
+
|
693 |
+
.questionElements #postbox-container-1 select {
|
694 |
+
border: 1px solid #dddddd;
|
695 |
+
}
|
696 |
+
|
697 |
+
.question-content-text * {
|
698 |
+
font-size: 16px;
|
699 |
+
}
|
700 |
+
|
701 |
+
.question-type-description {
|
702 |
+
color: #31708f;
|
703 |
+
background: #d9edf7;
|
704 |
+
border-color: #bce8f1;
|
705 |
+
padding: 30px 15px;
|
706 |
+
border-radius: 4px;
|
707 |
+
font-family: Verdana, sans-serif;
|
708 |
+
font-size: 15px;
|
709 |
+
line-height: 21px;
|
710 |
+
text-align: center;
|
711 |
+
margin: 0 0 20px 0;
|
712 |
+
}
|
713 |
+
|
714 |
+
.qsm-show-correct-info-box,
|
715 |
+
.qsm-show-question-desc-box {
|
716 |
+
display: inline-block;
|
717 |
+
margin-bottom: 10px !important;
|
718 |
+
font-size: 15px;
|
719 |
+
}
|
720 |
+
|
721 |
+
#delete-action .deletion {
|
722 |
+
text-decoration: underline;
|
723 |
+
}
|
724 |
+
|
725 |
+
#category_area>label {
|
726 |
+
display: none;
|
727 |
+
}
|
728 |
+
|
729 |
+
#category_area {
|
730 |
+
margin-top: 10px;
|
731 |
+
}
|
732 |
+
|
733 |
+
a#qsm-category-add-toggle {
|
734 |
+
margin-top: 10px;
|
735 |
+
display: block;
|
736 |
+
text-decoration: underline;
|
737 |
+
cursor: pointer;
|
738 |
+
}
|
739 |
+
|
740 |
+
.quiz_form_type_0.quiz_quiz_systen_3 #question_type_13_description,
|
741 |
+
.quiz_form_type_0.quiz_quiz_systen_1 #question_type_13_description {
|
742 |
+
display: none !important;
|
743 |
+
}
|
744 |
+
|
745 |
+
#qsm-question-id {
|
746 |
+
float: left;
|
747 |
+
}
|
748 |
+
|
749 |
+
.qsm-show-correct-info-box,
|
750 |
+
.qsm-show-question-desc-box {
|
751 |
+
background: #fff;
|
752 |
+
}
|
753 |
+
|
754 |
+
.qsm-show-correct-info-box span.dashicons,
|
755 |
+
.qsm-show-question-desc-box span.dashicons {
|
756 |
+
line-height: 29px;
|
757 |
+
}
|
758 |
+
|
759 |
+
#modal-2 .qsm-popup__container {
|
760 |
+
max-width: 900px;
|
761 |
+
}
|
762 |
+
|
763 |
+
#set_featured_image {
|
764 |
+
display: inline-block;
|
765 |
+
text-decoration: none;
|
766 |
+
outline: none;
|
767 |
+
position: relative;
|
768 |
+
right: calc(100% - 40px);
|
769 |
+
top: -29px;
|
770 |
+
background: #eee;
|
771 |
+
padding: 4px 10px;
|
772 |
+
border-radius: 5px 0px 0px 5px;
|
773 |
+
margin-bottom: -29px;
|
774 |
+
}
|
775 |
+
|
776 |
+
#set_featured_image:focus {
|
777 |
+
outline: none;
|
778 |
+
}
|
779 |
+
|
780 |
+
#featured_image_caption {}
|
781 |
+
|
782 |
+
@media screen and (max-width: 575px) {
|
783 |
+
.qsm-popup__container {
|
784 |
+
min-width: auto;
|
785 |
+
max-width: 100%;
|
786 |
+
}
|
787 |
+
}
|
788 |
+
|
789 |
+
.question_info_tag {
|
790 |
+
float: left;
|
791 |
+
}
|
792 |
+
|
793 |
+
@media (min-width: 783px) and (max-width: 1199px) {
|
794 |
+
#poststuff #post-body.columns-2 #side-sortables {
|
795 |
+
min-width: unset;
|
796 |
+
width: 100%;
|
797 |
+
}
|
798 |
+
|
799 |
+
.questionElements .postbox {
|
800 |
+
min-width: unset;
|
801 |
+
width: 100%;
|
802 |
+
}
|
803 |
+
|
804 |
+
#post-body.columns-2 #postbox-container-1 {
|
805 |
+
width: 250px;
|
806 |
+
float: right;
|
807 |
+
margin-right: 10px;
|
808 |
+
}
|
809 |
+
|
810 |
+
.questionElements {
|
811 |
+
overflow: hidden;
|
812 |
+
}
|
813 |
+
}
|
814 |
+
|
815 |
+
@media screen and (max-width: 782px) {
|
816 |
+
|
817 |
+
/*List of questions*/
|
818 |
+
.question-content .question-content-text {
|
819 |
+
font-size: 14px;
|
820 |
+
}
|
821 |
+
|
822 |
+
body .question-content>div {
|
823 |
+
margin: 0 5px;
|
824 |
+
}
|
825 |
+
|
826 |
+
.page-footer a.button {
|
827 |
+
font-size: 10px;
|
828 |
+
min-height: 25px;
|
829 |
+
padding: 0 5px;
|
830 |
+
}
|
831 |
+
|
832 |
+
.page-footer a.button .dashicons {
|
833 |
+
display: none;
|
834 |
+
}
|
835 |
+
|
836 |
+
.question-controls .search-box {
|
837 |
+
height: auto;
|
838 |
+
}
|
839 |
+
|
840 |
+
.questionElements .postbox {
|
841 |
+
max-width: 100%;
|
842 |
+
width: 100%;
|
843 |
+
min-width: unset;
|
844 |
+
}
|
845 |
+
|
846 |
+
.questionElements .category {
|
847 |
+
margin-bottom: 10px;
|
848 |
+
}
|
849 |
+
|
850 |
+
.answer-text-div {
|
851 |
+
width: 135%;
|
852 |
+
}
|
853 |
+
}
|
css/qsm-admin-rtl.css
ADDED
@@ -0,0 +1,2106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/********************
|
2 |
+
Quizzes/Surveys Page
|
3 |
+
*********************/
|
4 |
+
|
5 |
+
/*.qsm-quizes-page .widefat td {
|
6 |
+
font-size: 16px !important;
|
7 |
+
}*/
|
8 |
+
|
9 |
+
@-moz-keyframes qsm-spinner-loader {
|
10 |
+
0% {
|
11 |
+
-moz-transform: rotate(0deg);
|
12 |
+
transform: rotate(0deg);
|
13 |
+
}
|
14 |
+
|
15 |
+
100% {
|
16 |
+
-moz-transform: rotate(360deg);
|
17 |
+
transform: rotate(360deg);
|
18 |
+
}
|
19 |
+
}
|
20 |
+
|
21 |
+
@-webkit-keyframes qsm-spinner-loader {
|
22 |
+
0% {
|
23 |
+
-webkit-transform: rotate(0deg);
|
24 |
+
transform: rotate(0deg);
|
25 |
+
}
|
26 |
+
|
27 |
+
100% {
|
28 |
+
-webkit-transform: rotate(360deg);
|
29 |
+
transform: rotate(360deg);
|
30 |
+
}
|
31 |
+
}
|
32 |
+
|
33 |
+
@keyframes qsm-spinner-loader {
|
34 |
+
0% {
|
35 |
+
-moz-transform: rotate(0deg);
|
36 |
+
-ms-transform: rotate(0deg);
|
37 |
+
-webkit-transform: rotate(0deg);
|
38 |
+
transform: rotate(0deg);
|
39 |
+
}
|
40 |
+
|
41 |
+
100% {
|
42 |
+
-moz-transform: rotate(360deg);
|
43 |
+
-ms-transform: rotate(360deg);
|
44 |
+
-webkit-transform: rotate(360deg);
|
45 |
+
transform: rotate(360deg);
|
46 |
+
}
|
47 |
+
}
|
48 |
+
|
49 |
+
/* :not(:required) hides this rule from IE9 and below */
|
50 |
+
.qsm-spinner-loader:not(:required) {
|
51 |
+
-moz-animation: qsm-spinner-loader 1500ms infinite linear;
|
52 |
+
-webkit-animation: qsm-spinner-loader 1500ms infinite linear;
|
53 |
+
animation: qsm-spinner-loader 1500ms infinite linear;
|
54 |
+
-moz-border-radius: 0.5em;
|
55 |
+
-webkit-border-radius: 0.5em;
|
56 |
+
border-radius: 0.5em;
|
57 |
+
-moz-box-shadow: rgba(0, 0, 51, 0.3) 1.5em 0 0 0,
|
58 |
+
rgba(0, 0, 51, 0.3) 1.1em 1.1em 0 0, rgba(0, 0, 51, 0.3) 0 1.5em 0 0,
|
59 |
+
rgba(0, 0, 51, 0.3) -1.1em 1.1em 0 0, rgba(0, 0, 51, 0.3) -1.5em 0 0 0,
|
60 |
+
rgba(0, 0, 51, 0.3) -1.1em -1.1em 0 0, rgba(0, 0, 51, 0.3) 0 -1.5em 0 0,
|
61 |
+
rgba(0, 0, 51, 0.3) 1.1em -1.1em 0 0;
|
62 |
+
-webkit-box-shadow: rgba(0, 0, 51, 0.3) 1.5em 0 0 0,
|
63 |
+
rgba(0, 0, 51, 0.3) 1.1em 1.1em 0 0, rgba(0, 0, 51, 0.3) 0 1.5em 0 0,
|
64 |
+
rgba(0, 0, 51, 0.3) -1.1em 1.1em 0 0, rgba(0, 0, 51, 0.3) -1.5em 0 0 0,
|
65 |
+
rgba(0, 0, 51, 0.3) -1.1em -1.1em 0 0, rgba(0, 0, 51, 0.3) 0 -1.5em 0 0,
|
66 |
+
rgba(0, 0, 51, 0.3) 1.1em -1.1em 0 0;
|
67 |
+
box-shadow: rgba(0, 0, 51, 0.3) 1.5em 0 0 0,
|
68 |
+
rgba(0, 0, 51, 0.3) 1.1em 1.1em 0 0, rgba(0, 0, 51, 0.3) 0 1.5em 0 0,
|
69 |
+
rgba(0, 0, 51, 0.3) -1.1em 1.1em 0 0, rgba(0, 0, 51, 0.3) -1.5em 0 0 0,
|
70 |
+
rgba(0, 0, 51, 0.3) -1.1em -1.1em 0 0, rgba(0, 0, 51, 0.3) 0 -1.5em 0 0,
|
71 |
+
rgba(0, 0, 51, 0.3) 1.1em -1.1em 0 0;
|
72 |
+
display: inline-block;
|
73 |
+
font-size: 10px;
|
74 |
+
width: 1em;
|
75 |
+
height: 1em;
|
76 |
+
margin: 1.5em;
|
77 |
+
overflow: hidden;
|
78 |
+
text-indent: 100%;
|
79 |
+
}
|
80 |
+
|
81 |
+
span.qsm-quiz-name {
|
82 |
+
font-size: 14px;
|
83 |
+
font-weight: 600;
|
84 |
+
}
|
85 |
+
|
86 |
+
.qsm-quizzes-page-content {
|
87 |
+
display: flex;
|
88 |
+
flex-direction: column;
|
89 |
+
justify-content: space-between;
|
90 |
+
}
|
91 |
+
|
92 |
+
.qsm-quiz-page-wrapper {
|
93 |
+
flex-grow: 1;
|
94 |
+
}
|
95 |
+
|
96 |
+
.qsm-quiz-page-wrapper-with-ads {
|
97 |
+
flex-grow: 1;
|
98 |
+
}
|
99 |
+
|
100 |
+
.qsm-news-ads {
|
101 |
+
background-color: #fff;
|
102 |
+
border: 1px solid #dfd4d4;
|
103 |
+
margin-top: 30px;
|
104 |
+
display: none;
|
105 |
+
}
|
106 |
+
|
107 |
+
.qsm-news-ads-title {
|
108 |
+
text-align: center;
|
109 |
+
border-bottom: 1px solid #dfd4d4;
|
110 |
+
margin: 0;
|
111 |
+
padding: 10px 0;
|
112 |
+
background-color: #fff;
|
113 |
+
}
|
114 |
+
|
115 |
+
.qsm-edit-name {
|
116 |
+
font-size: 12px !important;
|
117 |
+
}
|
118 |
+
|
119 |
+
.qsm-action-link {
|
120 |
+
font-size: 14px !important;
|
121 |
+
}
|
122 |
+
|
123 |
+
.qsm-action-links:hover {
|
124 |
+
background-color: black;
|
125 |
+
}
|
126 |
+
|
127 |
+
.qsm-action-link-delete {
|
128 |
+
color: red !important;
|
129 |
+
}
|
130 |
+
|
131 |
+
.qsm-dialog-form label {
|
132 |
+
display: inline-block;
|
133 |
+
font-size: 16px;
|
134 |
+
font-weight: bold;
|
135 |
+
padding-left: 30px;
|
136 |
+
}
|
137 |
+
|
138 |
+
.qsm-quiz-page-addon {
|
139 |
+
width: 100%;
|
140 |
+
float: right;
|
141 |
+
}
|
142 |
+
|
143 |
+
.qsm-addon-browse-addons {
|
144 |
+
background: #fff;
|
145 |
+
padding: 0;
|
146 |
+
width: 100%;
|
147 |
+
display: inline-block;
|
148 |
+
box-sizing: border-box;
|
149 |
+
margin-bottom: 30px;
|
150 |
+
}
|
151 |
+
|
152 |
+
.qsm-addon-browse-addons .qsm-addon-anchor-left .qsm-install-addon {
|
153 |
+
float: right;
|
154 |
+
}
|
155 |
+
|
156 |
+
.qsm-addon-browse-addons .qsm-addon-anchor-left .qsm-add-addon {
|
157 |
+
padding-top: 9px;
|
158 |
+
padding-right: 30px;
|
159 |
+
}
|
160 |
+
|
161 |
+
.qsm-addon-browse-addons .qsm-addon-anchor-left .qsm-add-addon a.active {
|
162 |
+
background: #222;
|
163 |
+
color: #fff;
|
164 |
+
outline: none;
|
165 |
+
box-shadow: none;
|
166 |
+
}
|
167 |
+
|
168 |
+
.qsm-addon-browse-addons .qsm-addon-anchor-left .qsm-add-addon a {
|
169 |
+
padding: 7px 15px;
|
170 |
+
font-weight: normal;
|
171 |
+
border-radius: 5px;
|
172 |
+
}
|
173 |
+
|
174 |
+
.qsm-addon-browse-addons .qsm-addon-anchor-left {
|
175 |
+
float: right;
|
176 |
+
}
|
177 |
+
|
178 |
+
.qsm-addon-browse-addons .qsm-addon-list-right {
|
179 |
+
float: left;
|
180 |
+
padding-top: 15px;
|
181 |
+
padding-left: 30px;
|
182 |
+
}
|
183 |
+
|
184 |
+
.qsm-addon-browse-addons .qsm-addon-list-right>span {
|
185 |
+
margin-left: 10px;
|
186 |
+
font-size: 16px;
|
187 |
+
}
|
188 |
+
|
189 |
+
.qsm-addon-browse-addons .qsm-addon-anchor-left a {
|
190 |
+
display: inline-block;
|
191 |
+
font-size: 16px;
|
192 |
+
color: #474444;
|
193 |
+
text-decoration: none;
|
194 |
+
/*margin-top: 5px;*/
|
195 |
+
margin-left: 15px;
|
196 |
+
}
|
197 |
+
|
198 |
+
.qsm-addon-browse-addons .qsm-addon-anchor-left .qsm-install-addon a {
|
199 |
+
background: #aaaaaa;
|
200 |
+
padding: 15px 25px;
|
201 |
+
color: #fff;
|
202 |
+
margin-left: -4px;
|
203 |
+
box-sizing: border-box;
|
204 |
+
}
|
205 |
+
|
206 |
+
.qsm-addon-browse-addons .qsm-addon-anchor-left .qsm-install-addon a span.dashicons {
|
207 |
+
height: 15px;
|
208 |
+
}
|
209 |
+
|
210 |
+
.qsm-addon-browse-addons .qsm-addon-anchor-left .qsm-install-addon a.active {
|
211 |
+
background: #007cba;
|
212 |
+
}
|
213 |
+
|
214 |
+
.qsm_popular_addons div.popuar-addon-ul {
|
215 |
+
width: 100%;
|
216 |
+
display: inline-block;
|
217 |
+
}
|
218 |
+
|
219 |
+
.qsm_popular_addons div.popuar-addon-ul>div {
|
220 |
+
background: #fff;
|
221 |
+
padding: 10px;
|
222 |
+
width: 31%;
|
223 |
+
margin-left: 2%;
|
224 |
+
float: right;
|
225 |
+
margin-bottom: 30px;
|
226 |
+
box-sizing: border-box;
|
227 |
+
}
|
228 |
+
|
229 |
+
.qsm_popular_addons div.popuar-addon-ul>div:nth-child(3n + 4) {
|
230 |
+
clear: both;
|
231 |
+
}
|
232 |
+
|
233 |
+
.qsm_popular_addons div.popuar-addon-ul .addon-itd-wrap {
|
234 |
+
width: 100%;
|
235 |
+
display: inline-block;
|
236 |
+
}
|
237 |
+
|
238 |
+
.qsm_popular_addons div.popuar-addon-ul .addon-image {
|
239 |
+
width: 100px;
|
240 |
+
height: 80px;
|
241 |
+
background-size: cover;
|
242 |
+
background-repeat: no-repeat;
|
243 |
+
background-position: center center;
|
244 |
+
background-color: #f0f0f0;
|
245 |
+
float: right;
|
246 |
+
}
|
247 |
+
|
248 |
+
.qsm_popular_addons div.popuar-addon-ul .addon-title-descption {
|
249 |
+
width: calc(100% - 110px);
|
250 |
+
float: left;
|
251 |
+
}
|
252 |
+
|
253 |
+
.qsm_popular_addons div.popuar-addon-ul .description {
|
254 |
+
display: block;
|
255 |
+
margin-bottom: 5px;
|
256 |
+
}
|
257 |
+
|
258 |
+
.qsm_popular_addons div.popuar-addon-ul .addon-title {
|
259 |
+
font-size: 16px;
|
260 |
+
color: #222;
|
261 |
+
font-weight: bold;
|
262 |
+
text-decoration: none;
|
263 |
+
margin-bottom: 5px;
|
264 |
+
display: block;
|
265 |
+
}
|
266 |
+
|
267 |
+
.qsm_popular_addons div.popuar-addon-ul .addon-price {
|
268 |
+
border-top: 1px solid #f1f1f1;
|
269 |
+
padding-top: 10px;
|
270 |
+
margin-top: 15px;
|
271 |
+
}
|
272 |
+
|
273 |
+
.qsm_popular_addons div.popuar-addon-ul .addon-price-btn {
|
274 |
+
background: #fff;
|
275 |
+
border: #fff;
|
276 |
+
color: #007cba;
|
277 |
+
font-weight: bold;
|
278 |
+
font-size: 14px;
|
279 |
+
}
|
280 |
+
|
281 |
+
.qsm_popular_addons div.popuar-addon-ul .addon-get-link {
|
282 |
+
float: left;
|
283 |
+
background: #fff;
|
284 |
+
color: #007cba;
|
285 |
+
border-width: 2px;
|
286 |
+
font-weight: bold;
|
287 |
+
}
|
288 |
+
|
289 |
+
.qsm_popular_addons div.popuar-addon-ul .addon-get-link span.dashicons {
|
290 |
+
margin-top: 4px;
|
291 |
+
}
|
292 |
+
|
293 |
+
.qsm_popular_addons div.popuar-addon-ul>div .description-wrap {
|
294 |
+
padding: 20px;
|
295 |
+
}
|
296 |
+
|
297 |
+
.qsm_popular_addons div.popuar-addon-ul>div .description-wrap .description {
|
298 |
+
display: block;
|
299 |
+
width: 100%;
|
300 |
+
margin-bottom: 15px;
|
301 |
+
font-size: 14px;
|
302 |
+
font-style: normal;
|
303 |
+
}
|
304 |
+
|
305 |
+
.qsm_popular_addons div.popuar-addon-ul>div img {
|
306 |
+
max-width: 100%;
|
307 |
+
}
|
308 |
+
|
309 |
+
.qsm-quiz-page-addon.qsm-addon-page-list {
|
310 |
+
width: 75%;
|
311 |
+
float: right;
|
312 |
+
margin-top: 0;
|
313 |
+
}
|
314 |
+
|
315 |
+
.qsm-addon-news-ads {
|
316 |
+
width: 25%;
|
317 |
+
float: left;
|
318 |
+
background: #007cba;
|
319 |
+
padding: 10px 20px 30px 20px;
|
320 |
+
box-sizing: border-box;
|
321 |
+
margin-top: 0;
|
322 |
+
}
|
323 |
+
|
324 |
+
.qsm-addon-news-ads .qsm-news-ads-title {
|
325 |
+
border-bottom: 0;
|
326 |
+
margin-top: 20px;
|
327 |
+
background: #fff;
|
328 |
+
padding: 16px;
|
329 |
+
color: #007cba;
|
330 |
+
font-weight: bold;
|
331 |
+
position: relative;
|
332 |
+
}
|
333 |
+
|
334 |
+
.qsm-addon-news-ads .qsm-news-ads-title:before,
|
335 |
+
.qsm-addon-news-ads .qsm-news-ads-title:after {
|
336 |
+
content: "";
|
337 |
+
position: absolute;
|
338 |
+
height: 0;
|
339 |
+
width: 0;
|
340 |
+
top: 0;
|
341 |
+
right: 0;
|
342 |
+
border-style: solid;
|
343 |
+
border-width: 25px;
|
344 |
+
}
|
345 |
+
|
346 |
+
.qsm-addon-news-ads .qsm-news-ads-title:before {
|
347 |
+
border-color: transparent #007cba transparent transparent;
|
348 |
+
}
|
349 |
+
|
350 |
+
.qsm-addon-news-ads .qsm-news-ads-title:after {
|
351 |
+
left: 0;
|
352 |
+
right: auto;
|
353 |
+
border-color: transparent transparent transparent #007cba;
|
354 |
+
}
|
355 |
+
|
356 |
+
.qsm-addon-news-ads .qsm-info-widget {
|
357 |
+
text-align: right;
|
358 |
+
padding: 30px;
|
359 |
+
}
|
360 |
+
|
361 |
+
.qsm-addon-news-ads .qsm-info-widget h3 {
|
362 |
+
color: #222;
|
363 |
+
font-weight: bold;
|
364 |
+
margin-top: 20px;
|
365 |
+
margin-bottom: 15px;
|
366 |
+
}
|
367 |
+
|
368 |
+
.qsm-addon-news-ads .qsm-info-widget p {
|
369 |
+
font-size: 14px;
|
370 |
+
}
|
371 |
+
|
372 |
+
.qsm-addon-news-ads .qsm-info-widget {
|
373 |
+
transform: none !important;
|
374 |
+
max-width: 100%;
|
375 |
+
position: relative;
|
376 |
+
background: #fff;
|
377 |
+
text-align: center;
|
378 |
+
margin-top: 70px;
|
379 |
+
}
|
380 |
+
|
381 |
+
.qsm-addon-news-ads .qsm-info-widget .bundle-icon {
|
382 |
+
width: 40px;
|
383 |
+
height: 40px;
|
384 |
+
padding: 20px;
|
385 |
+
border-radius: 50%;
|
386 |
+
position: absolute;
|
387 |
+
top: -40px;
|
388 |
+
right: calc(50% - 40px);
|
389 |
+
border: 2px solid #fff;
|
390 |
+
box-shadow: 0px 0px 5px 1px rgb(0 0 0 / 16%);
|
391 |
+
}
|
392 |
+
|
393 |
+
.qsm-addon-news-ads .qsm-info-widget:nth-child(2) .bundle-icon {
|
394 |
+
background: #00b592;
|
395 |
+
}
|
396 |
+
|
397 |
+
.qsm-addon-news-ads .qsm-info-widget .addon-bundle-btn {
|
398 |
+
color: #fff;
|
399 |
+
width: 100%;
|
400 |
+
padding: 5px;
|
401 |
+
font-size: 14px;
|
402 |
+
position: relative;
|
403 |
+
margin-top: 0;
|
404 |
+
}
|
405 |
+
|
406 |
+
.qsm-addon-news-ads .qsm-info-widget .addon-bundle-btn span.dashicons {
|
407 |
+
position: absolute;
|
408 |
+
top: 10px;
|
409 |
+
left: 10px;
|
410 |
+
}
|
411 |
+
|
412 |
+
.qsm-addon-news-ads .qsm-info-widget:nth-child(2) .addon-bundle-btn {
|
413 |
+
background: #00b592;
|
414 |
+
border-color: #00b592;
|
415 |
+
}
|
416 |
+
|
417 |
+
.qsm-addon-news-ads .qsm-info-widget:nth-child(3) .bundle-icon {
|
418 |
+
background: #ed706f;
|
419 |
+
}
|
420 |
+
|
421 |
+
.qsm-addon-news-ads .qsm-info-widget:nth-child(3) .addon-bundle-btn {
|
422 |
+
background: #ed706f;
|
423 |
+
border-color: #ed706f;
|
424 |
+
}
|
425 |
+
|
426 |
+
.qsm-active-addons .installed_title {
|
427 |
+
background: #fff;
|
428 |
+
margin: 0;
|
429 |
+
padding: 15px;
|
430 |
+
border: 1px solid #ccd0d4;
|
431 |
+
color: #007cba;
|
432 |
+
font-size: 16px;
|
433 |
+
display: none;
|
434 |
+
}
|
435 |
+
|
436 |
+
.qsm-active-addons .installed_addons_wrapper,
|
437 |
+
.qsm-active-addons .no_addons_installed {
|
438 |
+
border: 1px solid #ccd0d4;
|
439 |
+
/*border-top: medium none;*/
|
440 |
+
}
|
441 |
+
|
442 |
+
.qsm-active-addons .no_addons_installed {
|
443 |
+
padding: 30px 25%;
|
444 |
+
background: #fff;
|
445 |
+
text-align: center;
|
446 |
+
font-style: italic;
|
447 |
+
font-size: 16px;
|
448 |
+
line-height: 22px;
|
449 |
+
}
|
450 |
+
|
451 |
+
.qsm-active-addons .installed_addons_wrapper .installed_addon {
|
452 |
+
padding: 15px 15px 27px 15px;
|
453 |
+
background: #fff;
|
454 |
+
border-bottom: 1px solid #cdc7c7;
|
455 |
+
}
|
456 |
+
|
457 |
+
.qsm-active-addons .installed_addons_wrapper .installed_addon:last-child {
|
458 |
+
border-bottom: medium none;
|
459 |
+
}
|
460 |
+
|
461 |
+
.qsm-active-addons .installed_addons_wrapper .installed_addon .installed_addon_name {
|
462 |
+
font-size: 14px;
|
463 |
+
font-weight: bold;
|
464 |
+
position: relative;
|
465 |
+
top: 5px;
|
466 |
+
}
|
467 |
+
|
468 |
+
.qsm-active-addons .installed_addons_wrapper .installed_addon .installed_addon_link {
|
469 |
+
float: left;
|
470 |
+
}
|
471 |
+
|
472 |
+
.qsm-active-addons .installed_addons_wrapper .installed_addon .installed_addon_link a {
|
473 |
+
background: #fff;
|
474 |
+
border-width: 2px;
|
475 |
+
font-weight: 500;
|
476 |
+
font-size: 13px;
|
477 |
+
padding-right: 15px;
|
478 |
+
padding-left: 15px;
|
479 |
+
}
|
480 |
+
|
481 |
+
.qsm-active-addons .installed_addons_wrapper .installed_addon .installed_addon_link span.dashicons {
|
482 |
+
margin-top: 4px;
|
483 |
+
}
|
484 |
+
|
485 |
+
.qsm-active-addons {
|
486 |
+
width: 100%;
|
487 |
+
box-sizing: border-box;
|
488 |
+
margin-bottom: 30px;
|
489 |
+
}
|
490 |
+
|
491 |
+
.quizzes-surveys_page_qmn_addons .qsm-news-ads {
|
492 |
+
width: 15%;
|
493 |
+
float: left;
|
494 |
+
}
|
495 |
+
|
496 |
+
.qsm-help-page .handle-order-higher,
|
497 |
+
.qsm-help-page .handle-order-lower {
|
498 |
+
display: none;
|
499 |
+
}
|
500 |
+
|
501 |
+
@media screen and (min-width: 1200px) {
|
502 |
+
.qsm-quiz-page-wrapper-with-ads {
|
503 |
+
margin-left: 0;
|
504 |
+
width: 100%;
|
505 |
+
}
|
506 |
+
|
507 |
+
.qsm-news-ads .qsm-info-widget {
|
508 |
+
float: right;
|
509 |
+
max-width: unset;
|
510 |
+
width: 31.3%;
|
511 |
+
}
|
512 |
+
|
513 |
+
.qsm-news-ads .qsm-info-widget:nth-child(3n + 5) {
|
514 |
+
clear: both;
|
515 |
+
}
|
516 |
+
|
517 |
+
.qsm-news-ads .remove-ads-adv-link {
|
518 |
+
width: 100%;
|
519 |
+
float: right;
|
520 |
+
}
|
521 |
+
}
|
522 |
+
|
523 |
+
@media screen and (max-width: 767px) {
|
524 |
+
.qsm-quiz-page-addon {
|
525 |
+
width: 100%;
|
526 |
+
}
|
527 |
+
|
528 |
+
.quizzes-surveys_page_qmn_addons .qsm-news-ads {
|
529 |
+
width: 100%;
|
530 |
+
}
|
531 |
+
}
|
532 |
+
|
533 |
+
/********************
|
534 |
+
Options Page
|
535 |
+
*********************/
|
536 |
+
|
537 |
+
.template_list_holder {
|
538 |
+
width: 100%;
|
539 |
+
}
|
540 |
+
|
541 |
+
.template_variable {
|
542 |
+
width: 50%;
|
543 |
+
float: right;
|
544 |
+
font-size: 14px;
|
545 |
+
}
|
546 |
+
|
547 |
+
.template_name {
|
548 |
+
font-weight: bold;
|
549 |
+
}
|
550 |
+
|
551 |
+
/********************
|
552 |
+
Results Pages & Emails Tab
|
553 |
+
*********************/
|
554 |
+
.results-page,
|
555 |
+
#qsm_emails .qsm-email {
|
556 |
+
width: 100%;
|
557 |
+
background-color: #fff;
|
558 |
+
margin: 20px 0;
|
559 |
+
/*padding-bottom: 15px;*/
|
560 |
+
box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.06);
|
561 |
+
}
|
562 |
+
|
563 |
+
.results-page .results-page-content,
|
564 |
+
#qsm_emails .qsm-email .qsm-email-content {
|
565 |
+
background: #fff;
|
566 |
+
padding-left: 15px;
|
567 |
+
padding-right: 15px;
|
568 |
+
width: 100%;
|
569 |
+
box-sizing: border-box;
|
570 |
+
}
|
571 |
+
|
572 |
+
.results-page-header,
|
573 |
+
#qsm_emails .qsm-email-header {
|
574 |
+
display: flex;
|
575 |
+
align-items: center;
|
576 |
+
justify-content: flex-end;
|
577 |
+
background-color: #fff;
|
578 |
+
padding: 10px 35px;
|
579 |
+
border-bottom: 1px solid #dfd4d4;
|
580 |
+
}
|
581 |
+
|
582 |
+
.delete-page-button,
|
583 |
+
#qsm_emails .delete-email-button {
|
584 |
+
background: none;
|
585 |
+
border: none;
|
586 |
+
color: #dc3232;
|
587 |
+
cursor: pointer;
|
588 |
+
transition-duration: 200ms;
|
589 |
+
}
|
590 |
+
|
591 |
+
.delete-page-button:hover,
|
592 |
+
#qsm_emails .delete-email-button:hover {
|
593 |
+
transform: scale(1.2);
|
594 |
+
}
|
595 |
+
|
596 |
+
.results-page-content,
|
597 |
+
.qsm-email-content {
|
598 |
+
display: flex;
|
599 |
+
flex-direction: column;
|
600 |
+
}
|
601 |
+
|
602 |
+
.results-page-when,
|
603 |
+
.results-page-show,
|
604 |
+
.email-when,
|
605 |
+
.email-show {
|
606 |
+
padding: 10px;
|
607 |
+
background-color: #f1f1f1;
|
608 |
+
border: 1px solid #dfd4d4;
|
609 |
+
margin: 15px 0;
|
610 |
+
min-width: 60%;
|
611 |
+
}
|
612 |
+
|
613 |
+
.results-page-when,
|
614 |
+
.email-when {
|
615 |
+
margin-left: 15px;
|
616 |
+
}
|
617 |
+
|
618 |
+
.results-page-content-header,
|
619 |
+
.email-content-header {
|
620 |
+
margin-bottom: 10px;
|
621 |
+
}
|
622 |
+
|
623 |
+
.email-show label {
|
624 |
+
margin-bottom: 5px;
|
625 |
+
display: block;
|
626 |
+
}
|
627 |
+
|
628 |
+
.results-page-content-header h4,
|
629 |
+
.results-page-content-header p,
|
630 |
+
.email-content-header h4,
|
631 |
+
.email-content-header p {
|
632 |
+
margin: 0;
|
633 |
+
}
|
634 |
+
|
635 |
+
.results-page-condition,
|
636 |
+
.email-condition {
|
637 |
+
display: flex;
|
638 |
+
flex-direction: column;
|
639 |
+
margin-bottom: 15px;
|
640 |
+
justify-content: space-around;
|
641 |
+
}
|
642 |
+
|
643 |
+
.results-page-condition>select,
|
644 |
+
.results-page-condition>input,
|
645 |
+
.email-condition>select,
|
646 |
+
.email-condition>input {
|
647 |
+
max-width: 100%;
|
648 |
+
}
|
649 |
+
|
650 |
+
.delete-condition-button {
|
651 |
+
background: none;
|
652 |
+
border: 1px solid #1dd969;
|
653 |
+
color: #dc3232;
|
654 |
+
cursor: pointer;
|
655 |
+
transition-duration: 200ms;
|
656 |
+
padding: 6px;
|
657 |
+
}
|
658 |
+
|
659 |
+
.delete-condition-button:hover {
|
660 |
+
transform: scale(1.1);
|
661 |
+
}
|
662 |
+
|
663 |
+
.email-show .label {
|
664 |
+
display: block;
|
665 |
+
}
|
666 |
+
|
667 |
+
.results-page-show textarea,
|
668 |
+
.to-email,
|
669 |
+
.subject,
|
670 |
+
.email-template {
|
671 |
+
width: 100%;
|
672 |
+
margin-bottom: 10px;
|
673 |
+
}
|
674 |
+
|
675 |
+
@media screen and (min-width: 760px) {
|
676 |
+
|
677 |
+
.results-page-content,
|
678 |
+
.qsm-email-content {
|
679 |
+
flex-direction: row;
|
680 |
+
justify-content: space-around;
|
681 |
+
}
|
682 |
+
|
683 |
+
.results-page-when,
|
684 |
+
.results-page-show,
|
685 |
+
.email-when,
|
686 |
+
.email-show {
|
687 |
+
width: calc(50% - 15px);
|
688 |
+
min-width: unset;
|
689 |
+
}
|
690 |
+
|
691 |
+
.results-page-condition,
|
692 |
+
.email-condition {
|
693 |
+
align-items: center;
|
694 |
+
flex-direction: row;
|
695 |
+
}
|
696 |
+
|
697 |
+
.results-page-condition>select,
|
698 |
+
.results-page-condition>input,
|
699 |
+
.email-condition>select,
|
700 |
+
.email-condition>input {
|
701 |
+
max-width: 30%;
|
702 |
+
}
|
703 |
+
|
704 |
+
.delete-condition-button {
|
705 |
+
border: none;
|
706 |
+
}
|
707 |
+
}
|
708 |
+
|
709 |
+
/********************
|
710 |
+
Quiz Styles Tab
|
711 |
+
*********************/
|
712 |
+
|
713 |
+
.qsm-styles {
|
714 |
+
display: flex;
|
715 |
+
flex-direction: column;
|
716 |
+
}
|
717 |
+
|
718 |
+
.qsm_featured_image_preview {
|
719 |
+
max-height: 200px;
|
720 |
+
max-width: 300px;
|
721 |
+
margin: 5px 0;
|
722 |
+
border-radius: 3px;
|
723 |
+
}
|
724 |
+
|
725 |
+
.qsm_featured_image_preview:hover:before {
|
726 |
+
content: "\f147";
|
727 |
+
font-family: "dashicons";
|
728 |
+
color: #5cb85c;
|
729 |
+
margin-left: 5px;
|
730 |
+
}
|
731 |
+
|
732 |
+
|
733 |
+
@media screen and (min-width: 700px) {
|
734 |
+
.qsm-styles {
|
735 |
+
flex-direction: row;
|
736 |
+
flex-wrap: wrap;
|
737 |
+
}
|
738 |
+
}
|
739 |
+
|
740 |
+
/********************
|
741 |
+
About/Credits Page
|
742 |
+
*********************/
|
743 |
+
|
744 |
+
div.qsm_icon_wrap {
|
745 |
+
position: absolute;
|
746 |
+
top: 0;
|
747 |
+
left: 0;
|
748 |
+
background-color: rgba(54, 58, 66, 1);
|
749 |
+
color: #1dd969;
|
750 |
+
background-position: center 24px;
|
751 |
+
background-size: 85px 85px;
|
752 |
+
font-size: 14px;
|
753 |
+
text-align: center;
|
754 |
+
font-weight: 600;
|
755 |
+
margin: 5px 0 0;
|
756 |
+
padding-top: 120px;
|
757 |
+
height: 40px;
|
758 |
+
display: inline-block;
|
759 |
+
width: 150px;
|
760 |
+
text-rendering: optimizeLegibility;
|
761 |
+
border: 5px solid #106daa;
|
762 |
+
-moz-border-radius: 20px;
|
763 |
+
-webkit-border-radius: 20px;
|
764 |
+
-khtml-border-radius: 20px;
|
765 |
+
border-radius: 20px;
|
766 |
+
}
|
767 |
+
|
768 |
+
.qsm-tab-content .feature {
|
769 |
+
margin-bottom: 20px;
|
770 |
+
}
|
771 |
+
|
772 |
+
.qsm-tab-content .feature .feature-headline {
|
773 |
+
margin: 1.1em 0 0.2em;
|
774 |
+
font-size: 40px;
|
775 |
+
font-weight: 300;
|
776 |
+
line-height: 1.3;
|
777 |
+
text-align: center;
|
778 |
+
}
|
779 |
+
|
780 |
+
.qsm-tab-content .feature .feature-text {
|
781 |
+
text-align: center;
|
782 |
+
font-size: 16px;
|
783 |
+
}
|
784 |
+
|
785 |
+
ul.changelog {
|
786 |
+
background-color: #fff;
|
787 |
+
padding: 10px 10px;
|
788 |
+
}
|
789 |
+
|
790 |
+
ul.changelog li {
|
791 |
+
padding: 4px 0px;
|
792 |
+
}
|
793 |
+
|
794 |
+
ul.changelog li div.two {
|
795 |
+
width: 70%;
|
796 |
+
float: right;
|
797 |
+
display: inline-block;
|
798 |
+
height: 25px;
|
799 |
+
margin-left: 20px;
|
800 |
+
background: #d9e0e4;
|
801 |
+
text-align: center;
|
802 |
+
line-height: 25px;
|
803 |
+
}
|
804 |
+
|
805 |
+
ul.changelog li.fixed>div {
|
806 |
+
background: #f0ffe1;
|
807 |
+
color: #444;
|
808 |
+
border-left: 1px solid #5cb85c;
|
809 |
+
width: 20%;
|
810 |
+
}
|
811 |
+
|
812 |
+
ul.changelog li.fixed div.two:before {
|
813 |
+
content: "\f147";
|
814 |
+
font-family: "dashicons";
|
815 |
+
color: #5cb85c;
|
816 |
+
margin-left: 5px;
|
817 |
+
}
|
818 |
+
|
819 |
+
ul.changelog li.add>div {
|
820 |
+
background: #ffeed0;
|
821 |
+
color: #444;
|
822 |
+
border-left: 1px solid #efa537;
|
823 |
+
width: 20%;
|
824 |
+
}
|
825 |
+
|
826 |
+
ul.changelog li.add div.two:before {
|
827 |
+
content: "\f155";
|
828 |
+
font-family: "dashicons";
|
829 |
+
color: #efa537;
|
830 |
+
margin-left: 5px;
|
831 |
+
}
|
832 |
+
|
833 |
+
ul.changelog li.update>div {
|
834 |
+
background: #bde7ff;
|
835 |
+
color: #444;
|
836 |
+
border-left: 1px solid #106daa;
|
837 |
+
width: 20%;
|
838 |
+
}
|
839 |
+
|
840 |
+
ul.changelog li.update div.two:before {
|
841 |
+
content: "\f463";
|
842 |
+
font-family: "dashicons";
|
843 |
+
color: #106daa;
|
844 |
+
margin-left: 5px;
|
845 |
+
}
|
846 |
+
|
847 |
+
/********************
|
848 |
+
Addons Page
|
849 |
+
*********************/
|
850 |
+
|
851 |
+
.qsm-addons {
|
852 |
+
display: flex;
|
853 |
+
flex-direction: column;
|
854 |
+
}
|
855 |
+
|
856 |
+
@media screen and (min-width: 700px) {
|
857 |
+
.qsm-addons {
|
858 |
+
flex-direction: row;
|
859 |
+
flex-wrap: wrap;
|
860 |
+
}
|
861 |
+
}
|
862 |
+
|
863 |
+
/********************
|
864 |
+
Help Page
|
865 |
+
*********************/
|
866 |
+
|
867 |
+
.quiz_email_support p#mlw_support_message {
|
868 |
+
color: red;
|
869 |
+
font-size: 20px;
|
870 |
+
}
|
871 |
+
|
872 |
+
.quiz_email_support input,
|
873 |
+
.quiz_email_support textarea {
|
874 |
+
width: 100% !important;
|
875 |
+
}
|
876 |
+
|
877 |
+
.quiz_email_support textarea {
|
878 |
+
min-height: 200px;
|
879 |
+
}
|
880 |
+
|
881 |
+
.quiz_email_support label {
|
882 |
+
font-weight: bold;
|
883 |
+
}
|
884 |
+
|
885 |
+
/********************
|
886 |
+
Misc.
|
887 |
+
*********************/
|
888 |
+
|
889 |
+
/* Ads */
|
890 |
+
.help-decide {
|
891 |
+
display: block;
|
892 |
+
text-align: center;
|
893 |
+
background: #fff;
|
894 |
+
border: 5px solid #1dd969;
|
895 |
+
color: #000;
|
896 |
+
font-weight: bold;
|
897 |
+
}
|
898 |
+
|
899 |
+
.help-decide p {
|
900 |
+
font-size: 14px;
|
901 |
+
}
|
902 |
+
|
903 |
+
/* Info Bar */
|
904 |
+
.qsm-info-box {
|
905 |
+
display: block;
|
906 |
+
text-align: center;
|
907 |
+
background: #fff;
|
908 |
+
border: 1px solid #dfd4d4;
|
909 |
+
/* color: #000; */
|
910 |
+
font-weight: bold;
|
911 |
+
/* font-size: 14px; */
|
912 |
+
margin-bottom: 20px;
|
913 |
+
margin-top: 10px;
|
914 |
+
}
|
915 |
+
|
916 |
+
.qsm-info-box p {
|
917 |
+
font-size: 14px;
|
918 |
+
}
|
919 |
+
|
920 |
+
/* Info Widget */
|
921 |
+
.qsm-quiz-page-addon .qsm-info-widget {
|
922 |
+
margin-top: 0;
|
923 |
+
background: #fff;
|
924 |
+
margin-right: 0;
|
925 |
+
}
|
926 |
+
|
927 |
+
.qsm-info-widget {
|
928 |
+
text-align: center;
|
929 |
+
border: 1px solid #dfd4d4;
|
930 |
+
margin: 30px 1% 0 1%;
|
931 |
+
background: #f1f1f1;
|
932 |
+
padding: 10px 15px;
|
933 |
+
transition-duration: 0.5s;
|
934 |
+
max-width: 330px;
|
935 |
+
box-sizing: border-box;
|
936 |
+
}
|
937 |
+
|
938 |
+
.admin_page_mlw_quiz_options .qsm-info-widget {
|
939 |
+
background: #fff;
|
940 |
+
margin: 0 0 20px 0;
|
941 |
+
cursor: pointer;
|
942 |
+
}
|
943 |
+
|
944 |
+
.admin_page_mlw_quiz_options .qsm-info-widget:hover,
|
945 |
+
.admin_page_mlw_quiz_options div.mlw_qmn_themeBlockActive.qsm-info-widget {
|
946 |
+
background-color: #333;
|
947 |
+
color: #fff;
|
948 |
+
}
|
949 |
+
|
950 |
+
#mlw_qmn_theme_block_primary {
|
951 |
+
background-color: #005e8e;
|
952 |
+
color: #fff;
|
953 |
+
}
|
954 |
+
|
955 |
+
#mlw_qmn_theme_block_amethyst {
|
956 |
+
background-color: #9b59b6;
|
957 |
+
color: #fff;
|
958 |
+
}
|
959 |
+
|
960 |
+
#mlw_qmn_theme_block_emerald {
|
961 |
+
background-color: #006732;
|
962 |
+
color: #fff;
|
963 |
+
}
|
964 |
+
|
965 |
+
#mlw_qmn_theme_block_turquoise {
|
966 |
+
background-color: #006552;
|
967 |
+
color: #fff;
|
968 |
+
}
|
969 |
+
|
970 |
+
#mlw_qmn_theme_block_gray {
|
971 |
+
background-color: #595959;
|
972 |
+
color: #fff;
|
973 |
+
}
|
974 |
+
|
975 |
+
.mlw_qmn_themeBlockActive.qsm-info-widget {
|
976 |
+
transform: scale(1.1);
|
977 |
+
border: 2px solid #d5a8a8;
|
978 |
+
}
|
979 |
+
|
980 |
+
.qsm-info-widget a.button-primary {
|
981 |
+
margin-top: 15px;
|
982 |
+
}
|
983 |
+
|
984 |
+
.qsm-quiz-page-addon a.button-primary {
|
985 |
+
margin-top: 0 !important;
|
986 |
+
}
|
987 |
+
|
988 |
+
.qsm-info-widget:hover {
|
989 |
+
transform: scale(1.1);
|
990 |
+
}
|
991 |
+
|
992 |
+
/* Options tabs */
|
993 |
+
.qsm_tab_content,
|
994 |
+
.mlw_tab_content {
|
995 |
+
padding: 10px 10px 10px 10px;
|
996 |
+
}
|
997 |
+
|
998 |
+
.admin_page_mlw_quiz_options .qsm_tab_content>form>.button-primary:nth-child(3) {
|
999 |
+
display: none;
|
1000 |
+
}
|
1001 |
+
|
1002 |
+
.qsm_tab_content label {
|
1003 |
+
margin-left: 5px;
|
1004 |
+
}
|
1005 |
+
|
1006 |
+
/* Popup */
|
1007 |
+
|
1008 |
+
.qsm-popup {
|
1009 |
+
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir,
|
1010 |
+
helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif;
|
1011 |
+
}
|
1012 |
+
|
1013 |
+
.qsm-popup__overlay {
|
1014 |
+
position: fixed;
|
1015 |
+
top: 0;
|
1016 |
+
right: 0;
|
1017 |
+
left: 0;
|
1018 |
+
bottom: 0;
|
1019 |
+
background: rgba(0, 0, 0, 0.6);
|
1020 |
+
display: flex;
|
1021 |
+
justify-content: center;
|
1022 |
+
align-items: center;
|
1023 |
+
z-index: 9999;
|
1024 |
+
}
|
1025 |
+
|
1026 |
+
.qsm-popup__container {
|
1027 |
+
background-color: #fff;
|
1028 |
+
padding: 30px;
|
1029 |
+
min-width: 500px;
|
1030 |
+
max-width: 700px;
|
1031 |
+
max-height: 95vh;
|
1032 |
+
border-radius: 4px;
|
1033 |
+
overflow-y: auto;
|
1034 |
+
box-sizing: border-box;
|
1035 |
+
}
|
1036 |
+
|
1037 |
+
.qsm-popup__header {
|
1038 |
+
display: flex;
|
1039 |
+
justify-content: space-between;
|
1040 |
+
align-items: center;
|
1041 |
+
}
|
1042 |
+
|
1043 |
+
.qsm-popup__title {
|
1044 |
+
margin-top: 0;
|
1045 |
+
margin-bottom: 0;
|
1046 |
+
font-weight: 600;
|
1047 |
+
font-size: 1.25rem;
|
1048 |
+
line-height: 1.25;
|
1049 |
+
color: #00449e;
|
1050 |
+
box-sizing: border-box;
|
1051 |
+
}
|
1052 |
+
|
1053 |
+
.qsm-popup__close {
|
1054 |
+
background: transparent;
|
1055 |
+
border: 0;
|
1056 |
+
color: #00449e;
|
1057 |
+
text-decoration: none;
|
1058 |
+
}
|
1059 |
+
|
1060 |
+
.qsm-popup__header .qsm-popup__close:before {
|
1061 |
+
content: "\2715";
|
1062 |
+
}
|
1063 |
+
|
1064 |
+
.qsm-popup__content {
|
1065 |
+
margin-top: 2rem;
|
1066 |
+
margin-bottom: 2rem;
|
1067 |
+
line-height: 1.5;
|
1068 |
+
color: rgba(0, 0, 0, 0.8);
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
body .qsm-popup__btn {
|
1072 |
+
font-size: 0.875rem;
|
1073 |
+
padding-right: 1rem;
|
1074 |
+
padding-left: 1rem;
|
1075 |
+
padding-top: 0.5rem;
|
1076 |
+
padding-bottom: 0.5rem;
|
1077 |
+
background-color: #e6e6e6;
|
1078 |
+
color: rgba(0, 0, 0, 0.8);
|
1079 |
+
border-radius: 0.25rem;
|
1080 |
+
border-style: none;
|
1081 |
+
border-width: 0;
|
1082 |
+
cursor: pointer;
|
1083 |
+
-webkit-appearance: button;
|
1084 |
+
text-transform: none;
|
1085 |
+
overflow: visible;
|
1086 |
+
line-height: 1.15;
|
1087 |
+
margin: 0;
|
1088 |
+
will-change: transform;
|
1089 |
+
-moz-osx-font-smoothing: grayscale;
|
1090 |
+
-webkit-backface-visibility: hidden;
|
1091 |
+
backface-visibility: hidden;
|
1092 |
+
-webkit-transform: translateZ(0);
|
1093 |
+
transform: translateZ(0);
|
1094 |
+
transition: -webkit-transform 0.25s ease-out;
|
1095 |
+
transition: transform 0.25s ease-out;
|
1096 |
+
transition: transform 0.25s ease-out, -webkit-transform 0.25s ease-out;
|
1097 |
+
}
|
1098 |
+
|
1099 |
+
.qsm-popup__btn:focus,
|
1100 |
+
.qsm-popup__btn:hover {
|
1101 |
+
-webkit-transform: scale(1.05);
|
1102 |
+
transform: scale(1.05);
|
1103 |
+
}
|
1104 |
+
|
1105 |
+
body .qsm-popup__btn-primary {
|
1106 |
+
background-color: #00449e;
|
1107 |
+
color: #fff;
|
1108 |
+
}
|
1109 |
+
|
1110 |
+
@keyframes mmfadeIn {
|
1111 |
+
from {
|
1112 |
+
opacity: 0;
|
1113 |
+
}
|
1114 |
+
|
1115 |
+
to {
|
1116 |
+
opacity: 1;
|
1117 |
+
}
|
1118 |
+
}
|
1119 |
+
|
1120 |
+
@keyframes mmfadeOut {
|
1121 |
+
from {
|
1122 |
+
opacity: 1;
|
1123 |
+
}
|
1124 |
+
|
1125 |
+
to {
|
1126 |
+
opacity: 0;
|
1127 |
+
}
|
1128 |
+
}
|
1129 |
+
|
1130 |
+
@keyframes mmslideIn {
|
1131 |
+
from {
|
1132 |
+
transform: translateY(15%);
|
1133 |
+
}
|
1134 |
+
|
1135 |
+
to {
|
1136 |
+
transform: translateY(0);
|
1137 |
+
}
|
1138 |
+
}
|
1139 |
+
|
1140 |
+
@keyframes mmslideOut {
|
1141 |
+
from {
|
1142 |
+
transform: translateY(0);
|
1143 |
+
}
|
1144 |
+
|
1145 |
+
to {
|
1146 |
+
transform: translateY(-10%);
|
1147 |
+
}
|
1148 |
+
}
|
1149 |
+
|
1150 |
+
.qsm-popup-slide {
|
1151 |
+
display: none;
|
1152 |
+
}
|
1153 |
+
|
1154 |
+
.qsm-popup-slide.is-open {
|
1155 |
+
display: block !important;
|
1156 |
+
}
|
1157 |
+
|
1158 |
+
.qsm-popup-slide[aria-hidden="false"] .qsm-popup__overlay {
|
1159 |
+
animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
|
1160 |
+
}
|
1161 |
+
|
1162 |
+
.qsm-popup-slide[aria-hidden="false"] .qsm-popup__container {
|
1163 |
+
animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
|
1164 |
+
}
|
1165 |
+
|
1166 |
+
.qsm-popup-slide[aria-hidden="true"] .qsm-popup__overlay {
|
1167 |
+
animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
|
1168 |
+
}
|
1169 |
+
|
1170 |
+
.qsm-popup-slide[aria-hidden="true"] .qsm-popup__container {
|
1171 |
+
animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
|
1172 |
+
}
|
1173 |
+
|
1174 |
+
.qsm-popup-slide .qsm-popup__container,
|
1175 |
+
.qsm-popup-slide .qsm-popup__overlay {
|
1176 |
+
will-change: transform;
|
1177 |
+
}
|
1178 |
+
|
1179 |
+
/**
|
1180 |
+
* Shortcode accordion
|
1181 |
+
*/
|
1182 |
+
.sc-opener {
|
1183 |
+
position: relative;
|
1184 |
+
font-size: 14px !important;
|
1185 |
+
margin-bottom: 10px;
|
1186 |
+
cursor: pointer;
|
1187 |
+
display: inline-block;
|
1188 |
+
color: #0073aa !important;
|
1189 |
+
font-weight: 500;
|
1190 |
+
}
|
1191 |
+
|
1192 |
+
.sc-opener span.dashicons {
|
1193 |
+
position: relative;
|
1194 |
+
top: 2px;
|
1195 |
+
margin-left: 5px;
|
1196 |
+
}
|
1197 |
+
|
1198 |
+
.sc-content {
|
1199 |
+
display: none;
|
1200 |
+
}
|
1201 |
+
|
1202 |
+
.quiz-preview-link {
|
1203 |
+
margin-right: 10px;
|
1204 |
+
position: relative;
|
1205 |
+
top: 3px;
|
1206 |
+
}
|
1207 |
+
|
1208 |
+
#show-advanced-option {
|
1209 |
+
font-size: 16px;
|
1210 |
+
cursor: pointer;
|
1211 |
+
color: #0073aa;
|
1212 |
+
margin-bottom: 15px;
|
1213 |
+
}
|
1214 |
+
|
1215 |
+
.remove-ads-adv-link {
|
1216 |
+
text-align: center;
|
1217 |
+
margin-top: 30px;
|
1218 |
+
}
|
1219 |
+
|
1220 |
+
.qsm-info-widget h3 {
|
1221 |
+
line-height: 132%;
|
1222 |
+
}
|
1223 |
+
|
1224 |
+
.remove-ads-adv-link a {
|
1225 |
+
background: #1dd969;
|
1226 |
+
text-align: center;
|
1227 |
+
color: #fff;
|
1228 |
+
padding: 3px 10px;
|
1229 |
+
border-radius: 5px;
|
1230 |
+
display: inline-block;
|
1231 |
+
text-decoration: none;
|
1232 |
+
font-size: 13px;
|
1233 |
+
font-weight: bold;
|
1234 |
+
margin-bottom: 10px;
|
1235 |
+
}
|
1236 |
+
|
1237 |
+
.help-decide a.remove-adv-button {
|
1238 |
+
background: #1dd969;
|
1239 |
+
text-align: center;
|
1240 |
+
color: #fff;
|
1241 |
+
padding: 3px 10px;
|
1242 |
+
border-radius: 5px;
|
1243 |
+
display: inline-block;
|
1244 |
+
text-decoration: none;
|
1245 |
+
font-size: 13px;
|
1246 |
+
font-weight: bold;
|
1247 |
+
margin-right: 10px;
|
1248 |
+
}
|
1249 |
+
|
1250 |
+
h3.addon_category_name {
|
1251 |
+
width: 100%;
|
1252 |
+
background: transparent;
|
1253 |
+
padding: 15px 0;
|
1254 |
+
border-bottom: 1px solid #d7d1d1;
|
1255 |
+
margin-bottom: 30px;
|
1256 |
+
}
|
1257 |
+
|
1258 |
+
/*Design of new radio taggle*/
|
1259 |
+
.buttonset.ui-buttonset .ui-button.ui-state-active {
|
1260 |
+
background: #e21130 none repeat scroll 0 0;
|
1261 |
+
border-color: #e21130 !important;
|
1262 |
+
}
|
1263 |
+
|
1264 |
+
.buttonset.ui-buttonset .ui-button.ui-state-active span.ui-button-text {
|
1265 |
+
color: #fff !important;
|
1266 |
+
}
|
1267 |
+
|
1268 |
+
.buttonset.ui-buttonset.green .ui-state-active {
|
1269 |
+
background: #44c767 none repeat scroll 0 0;
|
1270 |
+
border-color: #44c767 !important;
|
1271 |
+
}
|
1272 |
+
|
1273 |
+
.buttonset.ui-buttonset .ui-button.ui-state-active.ui-corner-left {
|
1274 |
+
background: #44c767 none repeat scroll 0 0;
|
1275 |
+
border-color: #44c767 !important;
|
1276 |
+
}
|
1277 |
+
|
1278 |
+
.buttonset.ui-buttonset label {
|
1279 |
+
background: #fff;
|
1280 |
+
border: 1px solid #b6b6b6;
|
1281 |
+
margin-left: -5px !important;
|
1282 |
+
}
|
1283 |
+
|
1284 |
+
.buttonset.ui-buttonset label span.ui-button-text {
|
1285 |
+
color: #727272;
|
1286 |
+
font-size: 12px;
|
1287 |
+
height: 35px;
|
1288 |
+
line-height: 35px;
|
1289 |
+
min-width: 20px;
|
1290 |
+
padding: 0 10px;
|
1291 |
+
}
|
1292 |
+
|
1293 |
+
.qsm_tab_content input[type="text"],
|
1294 |
+
.qsm_tab_content input[type="number"],
|
1295 |
+
.qsm_global_settings input[type="text"],
|
1296 |
+
.qsm_global_settings input[type="number"],
|
1297 |
+
.qsm_global_settings input[type="email"],
|
1298 |
+
.qsm-addon-setting-wrap input[type="email"],
|
1299 |
+
.qsm-addon-setting-wrap input[type="text"],
|
1300 |
+
.qsm-addon-setting-wrap input[type="number"] {
|
1301 |
+
background: #ffffff none repeat scroll 0 0;
|
1302 |
+
border: 1px solid #dddddd;
|
1303 |
+
border-radius: 5px;
|
1304 |
+
box-shadow: none;
|
1305 |
+
color: #666666;
|
1306 |
+
/*padding: 10px 15px;*/
|
1307 |
+
width: auto;
|
1308 |
+
height: auto;
|
1309 |
+
/*min-width: 230px;*/
|
1310 |
+
/*max-width:100%;*/
|
1311 |
+
}
|
1312 |
+
|
1313 |
+
.qsm_tab_content textarea {
|
1314 |
+
background: #ffffff none repeat scroll 0 0;
|
1315 |
+
border: 1px solid #dddddd;
|
1316 |
+
border-radius: 5px;
|
1317 |
+
box-shadow: none;
|
1318 |
+
color: #666666;
|
1319 |
+
padding: 10px 15px;
|
1320 |
+
width: 100%;
|
1321 |
+
height: auto;
|
1322 |
+
}
|
1323 |
+
|
1324 |
+
.global-sub-text {
|
1325 |
+
margin-right: 15px;
|
1326 |
+
}
|
1327 |
+
|
1328 |
+
/* The switch - the box around the slider */
|
1329 |
+
.switch {
|
1330 |
+
position: relative;
|
1331 |
+
display: inline-block;
|
1332 |
+
width: 60px;
|
1333 |
+
height: 34px;
|
1334 |
+
}
|
1335 |
+
|
1336 |
+
/* Hide default HTML checkbox */
|
1337 |
+
.switch input[type="checkbox"] {
|
1338 |
+
opacity: 0;
|
1339 |
+
width: 0;
|
1340 |
+
height: 0;
|
1341 |
+
}
|
1342 |
+
|
1343 |
+
/* The slider */
|
1344 |
+
.slider {
|
1345 |
+
position: absolute;
|
1346 |
+
cursor: pointer;
|
1347 |
+
top: 0;
|
1348 |
+
right: 0;
|
1349 |
+
left: 0;
|
1350 |
+
bottom: 0;
|
1351 |
+
background-color: #ccc;
|
1352 |
+
-webkit-transition: 0.4s;
|
1353 |
+
transition: 0.4s;
|
1354 |
+
}
|
1355 |
+
|
1356 |
+
.slider:before {
|
1357 |
+
position: absolute;
|
1358 |
+
content: "";
|
1359 |
+
height: 26px;
|
1360 |
+
width: 26px;
|
1361 |
+
right: 4px;
|
1362 |
+
bottom: 4px;
|
1363 |
+
background-color: white;
|
1364 |
+
-webkit-transition: 0.4s;
|
1365 |
+
transition: 0.4s;
|
1366 |
+
}
|
1367 |
+
|
1368 |
+
input:checked+.slider {
|
1369 |
+
background-color: #2196f3;
|
1370 |
+
}
|
1371 |
+
|
1372 |
+
input:focus+.slider {
|
1373 |
+
box-shadow: 0 0 1px #2196f3;
|
1374 |
+
}
|
1375 |
+
|
1376 |
+
input:checked+.slider:before {
|
1377 |
+
-webkit-transform: translateX(-26px);
|
1378 |
+
-ms-transform: translateX(-26px);
|
1379 |
+
transform: translateX(-26px);
|
1380 |
+
}
|
1381 |
+
|
1382 |
+
/* Rounded sliders */
|
1383 |
+
.slider.round {
|
1384 |
+
border-radius: 34px;
|
1385 |
+
}
|
1386 |
+
|
1387 |
+
.slider.round:before {
|
1388 |
+
border-radius: 50%;
|
1389 |
+
}
|
1390 |
+
|
1391 |
+
input#sc-shortcode-model-text,
|
1392 |
+
input#sc-shortcode-model-text-link {
|
1393 |
+
height: 30px;
|
1394 |
+
}
|
1395 |
+
|
1396 |
+
div#modal-6 label {
|
1397 |
+
display: block;
|
1398 |
+
font-size: 14px;
|
1399 |
+
margin-bottom: 5px;
|
1400 |
+
font-weight: 500;
|
1401 |
+
color: #999;
|
1402 |
+
font-style: italic;
|
1403 |
+
}
|
1404 |
+
|
1405 |
+
#modal-6 .button>span.dashicons {
|
1406 |
+
line-height: 29px;
|
1407 |
+
}
|
1408 |
+
|
1409 |
+
.qsm-list-shortcode-view span.dashicons {
|
1410 |
+
font-size: 24px;
|
1411 |
+
}
|
1412 |
+
|
1413 |
+
/**
|
1414 |
+
* No quiz screen design
|
1415 |
+
*/
|
1416 |
+
.qsm-no-quiz-wrapper {
|
1417 |
+
text-align: center;
|
1418 |
+
max-width: 100%;
|
1419 |
+
width: 100%;
|
1420 |
+
}
|
1421 |
+
|
1422 |
+
.qsm-no-quiz-wrapper .dashicons.dashicons-format-chat {
|
1423 |
+
font-size: 200px;
|
1424 |
+
display: block;
|
1425 |
+
/* line-height: 200px; */
|
1426 |
+
width: auto;
|
1427 |
+
height: auto;
|
1428 |
+
}
|
1429 |
+
|
1430 |
+
.qsm-no-quiz-wrapper h2 {
|
1431 |
+
margin-bottom: 30px;
|
1432 |
+
}
|
1433 |
+
|
1434 |
+
.qsm-no-quiz-wrapper .buttons {
|
1435 |
+
margin-bottom: 30px;
|
1436 |
+
}
|
1437 |
+
|
1438 |
+
.qsm-no-quiz-wrapper .buttons a {
|
1439 |
+
margin-left: 20px;
|
1440 |
+
}
|
1441 |
+
|
1442 |
+
.qsm-no-quiz-wrapper .buttons a:last-child {
|
1443 |
+
color: #8b8888;
|
1444 |
+
}
|
1445 |
+
|
1446 |
+
.qsm-no-quiz-wrapper .buttons a:last-child .dashicons {
|
1447 |
+
line-height: 46px;
|
1448 |
+
}
|
1449 |
+
|
1450 |
+
.qsm-no-quiz-wrapper h3 {
|
1451 |
+
color: #8b8888;
|
1452 |
+
margin-bottom: 30px;
|
1453 |
+
}
|
1454 |
+
|
1455 |
+
/**
|
1456 |
+
* Option page design
|
1457 |
+
*/
|
1458 |
+
span.qsm-ph_text {
|
1459 |
+
width: 100px;
|
1460 |
+
display: inline-block;
|
1461 |
+
}
|
1462 |
+
|
1463 |
+
tr .qsm-opt-desc {
|
1464 |
+
color: #666;
|
1465 |
+
font-style: italic;
|
1466 |
+
font-size: 14px;
|
1467 |
+
margin-top: 5px;
|
1468 |
+
display: block;
|
1469 |
+
}
|
1470 |
+
|
1471 |
+
#quiz_settings_wrapper .qsm-opt-desc {
|
1472 |
+
display: none !important;
|
1473 |
+
}
|
1474 |
+
|
1475 |
+
.form-table td fieldset label {
|
1476 |
+
margin-left: 20px !important;
|
1477 |
+
}
|
1478 |
+
|
1479 |
+
.form-table .qsm-opt-tr {
|
1480 |
+
position: relative;
|
1481 |
+
padding-left: 24px;
|
1482 |
+
padding-top: 15px;
|
1483 |
+
}
|
1484 |
+
|
1485 |
+
td.scheduled_time_start {
|
1486 |
+
padding-bottom: 0 !important;
|
1487 |
+
}
|
1488 |
+
|
1489 |
+
.qsm-opt-tr .qsm-tooltips-icon {
|
1490 |
+
margin: 0 0 0 0;
|
1491 |
+
position: relative;
|
1492 |
+
left: 0;
|
1493 |
+
top: 4px;
|
1494 |
+
color: #666;
|
1495 |
+
display: inline-block;
|
1496 |
+
font-size: 1.2em;
|
1497 |
+
font-style: normal;
|
1498 |
+
cursor: help;
|
1499 |
+
width: auto;
|
1500 |
+
height: auto;
|
1501 |
+
}
|
1502 |
+
|
1503 |
+
.qsm-tooltips-icon .qsm-tooltips {
|
1504 |
+
background-color: #333;
|
1505 |
+
border-radius: 3px;
|
1506 |
+
color: #ffffff;
|
1507 |
+
display: none;
|
1508 |
+
font-size: 12px;
|
1509 |
+
padding: 10px 5px;
|
1510 |
+
line-height: 1.5;
|
1511 |
+
opacity: 0;
|
1512 |
+
right: 50%;
|
1513 |
+
position: absolute;
|
1514 |
+
text-align: center;
|
1515 |
+
bottom: 25px;
|
1516 |
+
width: 200px;
|
1517 |
+
transform: translateX(50%);
|
1518 |
+
transition: opacity 0.5s ease 0s;
|
1519 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
1520 |
+
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
1521 |
+
}
|
1522 |
+
|
1523 |
+
.qsm-tooltips-icon .qsm-tooltips a {
|
1524 |
+
color: #fff;
|
1525 |
+
}
|
1526 |
+
|
1527 |
+
.qsm-tooltips-icon .qsm-tooltips:before {
|
1528 |
+
border-color: #333 rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
|
1529 |
+
border-style: solid;
|
1530 |
+
border-width: 8px 7px 0;
|
1531 |
+
bottom: -8px;
|
1532 |
+
content: "";
|
1533 |
+
right: 50%;
|
1534 |
+
transform: translateX(50%);
|
1535 |
+
position: absolute;
|
1536 |
+
}
|
1537 |
+
|
1538 |
+
.qsm-tooltips-icon:hover .qsm-tooltips,
|
1539 |
+
.qsm-tooltips:hover {
|
1540 |
+
display: block;
|
1541 |
+
opacity: 1;
|
1542 |
+
z-index: 9999;
|
1543 |
+
}
|
1544 |
+
|
1545 |
+
/**
|
1546 |
+
* Text Tab design
|
1547 |
+
*/
|
1548 |
+
.qsm-text-main-wrap {
|
1549 |
+
display: inline-block;
|
1550 |
+
width: 100%;
|
1551 |
+
}
|
1552 |
+
|
1553 |
+
.qsm-text-main-wrap #post-body-content {
|
1554 |
+
background: #fff;
|
1555 |
+
box-sizing: border-box;
|
1556 |
+
}
|
1557 |
+
|
1558 |
+
.qsm-text-main-wrap #postbox-container-1 {
|
1559 |
+
position: relative;
|
1560 |
+
background: #fff;
|
1561 |
+
box-sizing: border-box;
|
1562 |
+
}
|
1563 |
+
|
1564 |
+
.qsm-text-main-wrap #postbox-container-1 .qsm-text-header h5 {
|
1565 |
+
font-size: 14px;
|
1566 |
+
margin: 0;
|
1567 |
+
font-weight: bold;
|
1568 |
+
}
|
1569 |
+
|
1570 |
+
.qsm-text-main-wrap #postbox-container-1 .qsm-text-header .description {
|
1571 |
+
color: #666;
|
1572 |
+
}
|
1573 |
+
|
1574 |
+
.qsm-text-main-wrap .qsm-text-header {
|
1575 |
+
padding: 20px;
|
1576 |
+
border-bottom: 1px solid #f1f1f1;
|
1577 |
+
}
|
1578 |
+
|
1579 |
+
.qsm-text-main-wrap .qsm-text-header .message-dropdown {
|
1580 |
+
display: inline-block;
|
1581 |
+
}
|
1582 |
+
|
1583 |
+
.qsm-text-main-wrap .qsm-text-header .message-dropdown label {
|
1584 |
+
font-size: 14px;
|
1585 |
+
font-weight: bold;
|
1586 |
+
}
|
1587 |
+
|
1588 |
+
.qsm-text-main-wrap .qsm-text-header .save-text-changes {
|
1589 |
+
float: left;
|
1590 |
+
}
|
1591 |
+
|
1592 |
+
.qsm-text-main-wrap .qsm-text-conent {
|
1593 |
+
padding: 20px;
|
1594 |
+
border-bottom: 1px solid #f1f1f1;
|
1595 |
+
position: relative;
|
1596 |
+
}
|
1597 |
+
|
1598 |
+
.qsm-text-conent.qsm-text-allowed-variables span.qsm-text-template-span {
|
1599 |
+
display: inline-block;
|
1600 |
+
margin-bottom: 10px;
|
1601 |
+
margin-left: 10px;
|
1602 |
+
position: relative;
|
1603 |
+
}
|
1604 |
+
|
1605 |
+
#show-all-variable-content span.qsm-text-template-span {
|
1606 |
+
display: inline-block;
|
1607 |
+
position: relative;
|
1608 |
+
text-align: center;
|
1609 |
+
}
|
1610 |
+
|
1611 |
+
#show-all-variable-content .popup-template-span-wrap {
|
1612 |
+
margin-bottom: 20px;
|
1613 |
+
margin-left: 3%;
|
1614 |
+
width: 30%;
|
1615 |
+
display: inline-block;
|
1616 |
+
}
|
1617 |
+
|
1618 |
+
#show-all-variable-content .popup-template-span-wrap:nth-child(3n + 3) .qsm-text-template-span .qsm-tooltips-icon .qsm-tooltips {
|
1619 |
+
right: calc(100% - 100px);
|
1620 |
+
}
|
1621 |
+
|
1622 |
+
#show-all-variable-content .popup-template-span-wrap:nth-child(3n + 3) .qsm-text-template-span .qsm-tooltips-icon .qsm-tooltips:before {
|
1623 |
+
right: 93%;
|
1624 |
+
}
|
1625 |
+
|
1626 |
+
#show-all-variable-content .qsm-text-template-span .qsm-tooltips-icon {
|
1627 |
+
margin-right: 5px;
|
1628 |
+
}
|
1629 |
+
|
1630 |
+
.qsm-text-template-span button {
|
1631 |
+
border-color: #ccc !important;
|
1632 |
+
}
|
1633 |
+
|
1634 |
+
.qsm-text-template-span .qsm-tooltips-icon {
|
1635 |
+
vertical-align: middle;
|
1636 |
+
line-height: 30px;
|
1637 |
+
color: #9e9e9e;
|
1638 |
+
margin-right: 5px;
|
1639 |
+
}
|
1640 |
+
|
1641 |
+
.qsm-text-template-span .qsm-tooltips-icon .qsm-tooltips {
|
1642 |
+
right: calc(100% - 10px);
|
1643 |
+
bottom: 30px;
|
1644 |
+
}
|
1645 |
+
|
1646 |
+
.qsm-text-label-wrapper>h2 {
|
1647 |
+
font-size: 24px;
|
1648 |
+
border-bottom: 1px solid #ccc;
|
1649 |
+
padding-bottom: 10px;
|
1650 |
+
line-height: normal;
|
1651 |
+
}
|
1652 |
+
|
1653 |
+
.qsm-text-label-wrapper form>button:nth-child(3) {
|
1654 |
+
display: none;
|
1655 |
+
}
|
1656 |
+
|
1657 |
+
.qsm-text-label-wrapper .section_heading {
|
1658 |
+
margin-top: 0;
|
1659 |
+
}
|
1660 |
+
|
1661 |
+
#show-all-variable .qsm-popup__container {
|
1662 |
+
min-width: 50vw;
|
1663 |
+
max-width: 1040px;
|
1664 |
+
padding: 0;
|
1665 |
+
}
|
1666 |
+
|
1667 |
+
#show-all-variable-content {
|
1668 |
+
margin-bottom: 0 !important;
|
1669 |
+
padding: 20px;
|
1670 |
+
margin: 0;
|
1671 |
+
}
|
1672 |
+
|
1673 |
+
#show-all-variable .qsm-popup__header {
|
1674 |
+
border-bottom: 1px solid #f1f1f1;
|
1675 |
+
padding: 20px;
|
1676 |
+
}
|
1677 |
+
|
1678 |
+
#show-all-variable .qsm-popup__header .qsm-popup__title {
|
1679 |
+
color: #23282d;
|
1680 |
+
margin-bottom: 7px;
|
1681 |
+
}
|
1682 |
+
|
1683 |
+
#show-all-variable .qsm-popup__footer {
|
1684 |
+
border-top: 1px solid #f1f1f1;
|
1685 |
+
padding: 20px;
|
1686 |
+
}
|
1687 |
+
|
1688 |
+
.qsm-view-preview-btn {
|
1689 |
+
text-decoration: none;
|
1690 |
+
line-height: normal;
|
1691 |
+
margin-right: -5px;
|
1692 |
+
}
|
1693 |
+
|
1694 |
+
.qsm-view-preview-btn span.dashicons,
|
1695 |
+
.edit-quiz-name span.dashicons {
|
1696 |
+
line-height: 12px;
|
1697 |
+
vertical-align: bottom;
|
1698 |
+
}
|
1699 |
+
|
1700 |
+
.mlw_quiz_options form:first-child {
|
1701 |
+
margin-left: 10px;
|
1702 |
+
float: left;
|
1703 |
+
}
|
1704 |
+
|
1705 |
+
.mlw_quiz_options a.button.button-default.qsm-btn-quiz-edit {
|
1706 |
+
box-shadow: none;
|
1707 |
+
float: left;
|
1708 |
+
margin-left: 5px;
|
1709 |
+
}
|
1710 |
+
|
1711 |
+
.mlw_quiz_options a.button.button-default.qsm-btn-quiz-edit:hover {
|
1712 |
+
opacity: 0.8;
|
1713 |
+
}
|
1714 |
+
|
1715 |
+
.mlw_quiz_options a.button.button-default.qsm-btn-quiz-edit span.dashicons {
|
1716 |
+
line-height: 27px;
|
1717 |
+
}
|
1718 |
+
|
1719 |
+
.mlw_quiz_options .nav-tab-wrapper {
|
1720 |
+
margin-top: 20px;
|
1721 |
+
}
|
1722 |
+
|
1723 |
+
.mlw_quiz_options .edit-quiz-name {
|
1724 |
+
float: none;
|
1725 |
+
text-decoration: none;
|
1726 |
+
}
|
1727 |
+
|
1728 |
+
.qsm_text_customize_label {
|
1729 |
+
position: fixed;
|
1730 |
+
bottom: 20px;
|
1731 |
+
left: 25px;
|
1732 |
+
background: #fff;
|
1733 |
+
color: #5c5959;
|
1734 |
+
padding: 10px 20px;
|
1735 |
+
box-sizing: border-box;
|
1736 |
+
z-index: 99;
|
1737 |
+
border-radius: 5px;
|
1738 |
+
border: 1px solid #cdbaba;
|
1739 |
+
cursor: pointer;
|
1740 |
+
}
|
1741 |
+
|
1742 |
+
.qsm-text-tab-message-loader {
|
1743 |
+
position: absolute;
|
1744 |
+
top: 50%;
|
1745 |
+
right: 50%;
|
1746 |
+
z-index: 99;
|
1747 |
+
transform: translate(50%, -50%);
|
1748 |
+
}
|
1749 |
+
|
1750 |
+
.qsm_text_customize_label .dashicons {
|
1751 |
+
font-size: 14px;
|
1752 |
+
line-height: 20px;
|
1753 |
+
}
|
1754 |
+
|
1755 |
+
/**
|
1756 |
+
* Admin result page design
|
1757 |
+
*/
|
1758 |
+
.overview-main-wrapper {
|
1759 |
+
display: flex;
|
1760 |
+
width: 100%;
|
1761 |
+
}
|
1762 |
+
|
1763 |
+
.overview-main-wrapper .overview-inner-wrap {
|
1764 |
+
margin-left: 2%;
|
1765 |
+
width: 33.33%;
|
1766 |
+
}
|
1767 |
+
|
1768 |
+
.overview-main-wrapper .overview-inner-wrap .inside {
|
1769 |
+
min-height: 105px;
|
1770 |
+
}
|
1771 |
+
|
1772 |
+
.overview-main-wrapper .overview-inner-wrap:last-child {
|
1773 |
+
margin-left: 0;
|
1774 |
+
}
|
1775 |
+
|
1776 |
+
.overview-main-wrapper .overview-inner-wrap h2.hndle,
|
1777 |
+
.comment-inner-wrap h2.hndle,
|
1778 |
+
.response-inner-wrap h2.hndle {
|
1779 |
+
margin: 0;
|
1780 |
+
padding: 10px;
|
1781 |
+
}
|
1782 |
+
|
1783 |
+
.overview-main-wrapper .candidate-detail-wrap.overview-inner-wrap .result-candidate-span {
|
1784 |
+
display: block;
|
1785 |
+
margin-bottom: 5px;
|
1786 |
+
}
|
1787 |
+
|
1788 |
+
.overview-main-wrapper .candidate-detail-wrap.overview-inner-wrap .result-candidate-span:last-child {
|
1789 |
+
margin-bottom: 0;
|
1790 |
+
}
|
1791 |
+
|
1792 |
+
.overview-main-wrapper .overview-inner-wrap.candidate-detail-wrap .result-candidate-span>label {
|
1793 |
+
font-weight: bold;
|
1794 |
+
}
|
1795 |
+
|
1796 |
+
.overview-main-wrapper .overview-inner-wrap.candidate-detail-wrap .result-candidate-span>span {
|
1797 |
+
float: left;
|
1798 |
+
}
|
1799 |
+
|
1800 |
+
.overview-main-wrapper .overview-inner-wrap .timer-div-wrapper {
|
1801 |
+
display: -webkit-box;
|
1802 |
+
display: -moz-box;
|
1803 |
+
display: -ms-flexbox;
|
1804 |
+
display: -webkit-flex;
|
1805 |
+
display: flex;
|
1806 |
+
-webkit-flex-flow: row wrap;
|
1807 |
+
justify-content: center;
|
1808 |
+
-webkit-justify-content: center;
|
1809 |
+
flex-wrap: nowrap;
|
1810 |
+
}
|
1811 |
+
|
1812 |
+
.overview-main-wrapper .overview-inner-wrap .timer-div-wrapper>div {
|
1813 |
+
padding: 15px 30px;
|
1814 |
+
background: #f1f1f1;
|
1815 |
+
margin-left: 10px;
|
1816 |
+
max-width: 120px;
|
1817 |
+
width: 100%;
|
1818 |
+
}
|
1819 |
+
|
1820 |
+
.overview-main-wrapper .overview-inner-wrap .timer-div-wrapper>div:last-child {
|
1821 |
+
margin-left: 0;
|
1822 |
+
}
|
1823 |
+
|
1824 |
+
.overview-main-wrapper .overview-inner-wrap .timer-div-wrapper span.timer-span {
|
1825 |
+
display: block;
|
1826 |
+
font-size: 36px;
|
1827 |
+
font-weight: bold;
|
1828 |
+
text-align: center;
|
1829 |
+
}
|
1830 |
+
|
1831 |
+
.overview-main-wrapper .overview-inner-wrap .timer-div-wrapper span.timer-text {
|
1832 |
+
display: block;
|
1833 |
+
font-size: 16px;
|
1834 |
+
font-weight: bold;
|
1835 |
+
text-align: center;
|
1836 |
+
}
|
1837 |
+
|
1838 |
+
.response-inner-wrap .inside {
|
1839 |
+
padding: 10px;
|
1840 |
+
margin: 0;
|
1841 |
+
}
|
1842 |
+
|
1843 |
+
.response-inner-wrap .inside .qmn_question_answer {
|
1844 |
+
background-color: #f1f1f1;
|
1845 |
+
padding: 10px;
|
1846 |
+
margin-bottom: 0;
|
1847 |
+
background-repeat: no-repeat;
|
1848 |
+
background-position: 5% center;
|
1849 |
+
padding-left: 12%;
|
1850 |
+
}
|
1851 |
+
|
1852 |
+
.response-inner-wrap .inside .qmn_question_answer:nth-child(2n) {
|
1853 |
+
background-color: #fff;
|
1854 |
+
}
|
1855 |
+
|
1856 |
+
.response-inner-wrap .inside .qmn_question_answer.qmn_question_answer_incorrect {
|
1857 |
+
background-image: url(../assets/wrong.png);
|
1858 |
+
}
|
1859 |
+
|
1860 |
+
.response-inner-wrap .inside .qsm-add-border-bottom.qmn_question_answer.qmn_question_answer_incorrect,
|
1861 |
+
.response-inner-wrap .inside .qsm-remove-border-bottom.qmn_question_answer.qmn_question_answer_incorrect {
|
1862 |
+
background-image: none;
|
1863 |
+
}
|
1864 |
+
|
1865 |
+
.response-inner-wrap .inside .qmn_question_answer.qmn_question_answer_correct {
|
1866 |
+
background-image: url(../assets/right.png);
|
1867 |
+
}
|
1868 |
+
|
1869 |
+
.response-inner-wrap .inside .qsm-add-border-bottom.qmn_question_answer.qmn_question_answer_correct,
|
1870 |
+
.response-inner-wrap .inside .qsm-remove-border-bottom.qmn_question_answer.qmn_question_answer_correct {
|
1871 |
+
background-image: none;
|
1872 |
+
}
|
1873 |
+
|
1874 |
+
.old_template_result_wrap {
|
1875 |
+
padding: 15px;
|
1876 |
+
background: #fff;
|
1877 |
+
}
|
1878 |
+
|
1879 |
+
.result-page-title {
|
1880 |
+
text-align: right;
|
1881 |
+
display: inline-block;
|
1882 |
+
float: right;
|
1883 |
+
font-size: 23px;
|
1884 |
+
font-weight: 400;
|
1885 |
+
margin: 0;
|
1886 |
+
line-height: 30px;
|
1887 |
+
}
|
1888 |
+
|
1889 |
+
.result-tab-content a.button>span.dashicons {
|
1890 |
+
line-height: 29px;
|
1891 |
+
font-size: 18px;
|
1892 |
+
margin-right: -4px;
|
1893 |
+
margin-left: -4px;
|
1894 |
+
}
|
1895 |
+
|
1896 |
+
.result-page-wrapper .tablenav-pages {
|
1897 |
+
margin-right: 10px;
|
1898 |
+
}
|
1899 |
+
|
1900 |
+
.result-page-wrapper .tablenav.top {
|
1901 |
+
margin-bottom: 20px;
|
1902 |
+
margin-top: 20px;
|
1903 |
+
}
|
1904 |
+
|
1905 |
+
.inner-sidebar1 .handlediv {
|
1906 |
+
display: none !important;
|
1907 |
+
}
|
1908 |
+
|
1909 |
+
.inner-sidebar1 .hndle {
|
1910 |
+
padding-right: 10px;
|
1911 |
+
padding-top: 10px;
|
1912 |
+
margin: 0;
|
1913 |
+
padding-bottom: 10px;
|
1914 |
+
}
|
1915 |
+
|
1916 |
+
.inner-sidebar1 .inside h3,
|
1917 |
+
.inner-sidebar1 .inside h4 {
|
1918 |
+
margin-bottom: 10px;
|
1919 |
+
}
|
1920 |
+
|
1921 |
+
.qsm-quiz-email-tab,
|
1922 |
+
.qsm-quiz-result-tab {
|
1923 |
+
max-width: 1200px;
|
1924 |
+
width: 100%;
|
1925 |
+
}
|
1926 |
+
|
1927 |
+
.qsm-quiz-email-tab .qsm-show-all-variable-text span.dashicons,
|
1928 |
+
.qsm-quiz-result-tab .qsm-show-all-variable-text span.dashicons {
|
1929 |
+
font-size: 16px;
|
1930 |
+
line-height: 22px;
|
1931 |
+
}
|
1932 |
+
|
1933 |
+
.qsm-quiz-email-tab .qsm-show-all-variable-text,
|
1934 |
+
.qsm-quiz-result-tab .qsm-show-all-variable-text {
|
1935 |
+
position: fixed;
|
1936 |
+
bottom: 20px;
|
1937 |
+
left: 25px;
|
1938 |
+
background: #fff;
|
1939 |
+
color: #5c5959;
|
1940 |
+
padding: 10px 20px;
|
1941 |
+
box-sizing: border-box;
|
1942 |
+
z-index: 99;
|
1943 |
+
border-radius: 5px;
|
1944 |
+
border: 1px solid #cdbaba;
|
1945 |
+
cursor: pointer;
|
1946 |
+
text-decoration: none;
|
1947 |
+
}
|
1948 |
+
|
1949 |
+
.popup-template-span-wrap .popup-copied-des {
|
1950 |
+
color: green;
|
1951 |
+
}
|
1952 |
+
|
1953 |
+
.popup-template-span-wrap .popup-copied-des span.dashicons {
|
1954 |
+
line-height: 28px;
|
1955 |
+
}
|
1956 |
+
|
1957 |
+
.comment-inner-wrap {
|
1958 |
+
display: none;
|
1959 |
+
}
|
1960 |
+
|
1961 |
+
#qsm_themes h2.wp-heading-inline {
|
1962 |
+
display: inline-block;
|
1963 |
+
margin-left: 5px;
|
1964 |
+
}
|
1965 |
+
|
1966 |
+
/**
|
1967 |
+
* Style tab design
|
1968 |
+
*/
|
1969 |
+
.wp-upload-form {
|
1970 |
+
background: #fafafa;
|
1971 |
+
border: 1px solid #ccd0d4;
|
1972 |
+
padding: 30px;
|
1973 |
+
margin: 0 auto 30px 0;
|
1974 |
+
display: inline-flex;
|
1975 |
+
justify-content: space-between;
|
1976 |
+
align-items: center;
|
1977 |
+
}
|
1978 |
+
|
1979 |
+
@media (min-width: 768px) and (max-width: 1199px) {
|
1980 |
+
.qsm-news-ads .qsm-info-widget {
|
1981 |
+
float: right;
|
1982 |
+
max-width: unset;
|
1983 |
+
width: 31.3%;
|
1984 |
+
}
|
1985 |
+
|
1986 |
+
.qsm-news-ads .qsm-info-widget:nth-child(3n + 5) {
|
1987 |
+
clear: both;
|
1988 |
+
}
|
1989 |
+
|
1990 |
+
.remove-ads-adv-link {
|
1991 |
+
width: 100%;
|
1992 |
+
display: inline-block;
|
1993 |
+
margin-bottom: 30px;
|
1994 |
+
}
|
1995 |
+
}
|
1996 |
+
|
1997 |
+
@media screen and (max-width: 782px) {
|
1998 |
+
.form-table td fieldset label {
|
1999 |
+
margin-top: -1px !important;
|
2000 |
+
vertical-align: top;
|
2001 |
+
}
|
2002 |
+
|
2003 |
+
.qsm-tooltips-icon .qsm-tooltips {
|
2004 |
+
right: -90px;
|
2005 |
+
}
|
2006 |
+
|
2007 |
+
.qsm-opt-tr .qsm-tooltips-icon {
|
2008 |
+
left: 13px;
|
2009 |
+
}
|
2010 |
+
|
2011 |
+
.qsm-tooltips-icon .qsm-tooltips:before {
|
2012 |
+
right: auto;
|
2013 |
+
left: -3px;
|
2014 |
+
}
|
2015 |
+
}
|
2016 |
+
|
2017 |
+
@media screen and (max-width: 767px) {
|
2018 |
+
.qsm-quiz-row td:nth-of-type(2n) {
|
2019 |
+
display: none;
|
2020 |
+
}
|
2021 |
+
|
2022 |
+
.qsm-quiz-page-wrapper,
|
2023 |
+
.qsm-quiz-page-wrapper-with-ads {
|
2024 |
+
overflow-x: auto;
|
2025 |
+
}
|
2026 |
+
|
2027 |
+
.qsm-quiz-page-wrapper thead th:nth-of-type(2n),
|
2028 |
+
.qsm-quiz-page-wrapper tfoot th:nth-of-type(2n),
|
2029 |
+
.qsm-quiz-page-wrapper-with-ads thead th:nth-of-type(2n),
|
2030 |
+
.qsm-quiz-page-wrapper-with-ads tfoot th:nth-of-type(2n) {
|
2031 |
+
display: none;
|
2032 |
+
}
|
2033 |
+
|
2034 |
+
.qsm-quiz-page-wrapper .row-actions {
|
2035 |
+
display: inline-block !important;
|
2036 |
+
}
|
2037 |
+
|
2038 |
+
.qsm-quiz-page-wrapper p.search-box {
|
2039 |
+
bottom: -30px;
|
2040 |
+
}
|
2041 |
+
|
2042 |
+
.qsm-popup__container {
|
2043 |
+
min-width: auto;
|
2044 |
+
max-width: 100%;
|
2045 |
+
}
|
2046 |
+
|
2047 |
+
#show-advanced-option {
|
2048 |
+
display: block;
|
2049 |
+
width: 100%;
|
2050 |
+
float: right;
|
2051 |
+
}
|
2052 |
+
|
2053 |
+
.contact-form-label {
|
2054 |
+
display: inline-block;
|
2055 |
+
}
|
2056 |
+
|
2057 |
+
.template_variable {
|
2058 |
+
width: 100%;
|
2059 |
+
max-width: 100%;
|
2060 |
+
margin-bottom: 10px;
|
2061 |
+
word-break: break-word;
|
2062 |
+
}
|
2063 |
+
|
2064 |
+
.qsm_tab_content .form-table input[type="radio"] {
|
2065 |
+
top: 6px;
|
2066 |
+
margin-bottom: 8px;
|
2067 |
+
}
|
2068 |
+
|
2069 |
+
.result-page-wrapper form {
|
2070 |
+
overflow: scroll;
|
2071 |
+
width: 100%;
|
2072 |
+
}
|
2073 |
+
|
2074 |
+
p.search-box {
|
2075 |
+
bottom: -30px;
|
2076 |
+
}
|
2077 |
+
|
2078 |
+
.quizzes-surveys_page_qsm_quiz_help .hndle {
|
2079 |
+
padding-right: 15px;
|
2080 |
+
padding-bottom: 15px;
|
2081 |
+
}
|
2082 |
+
|
2083 |
+
.qsm-news-ads .qsm-info-widget {
|
2084 |
+
width: calc(100% - 30px);
|
2085 |
+
max-width: 100%;
|
2086 |
+
box-sizing: border-box;
|
2087 |
+
margin: 15px 15px 0 15px;
|
2088 |
+
}
|
2089 |
+
|
2090 |
+
.form-table .qsm-opt-tr {
|
2091 |
+
padding-bottom: 10px;
|
2092 |
+
}
|
2093 |
+
|
2094 |
+
.overview-main-wrapper {
|
2095 |
+
display: block;
|
2096 |
+
}
|
2097 |
+
|
2098 |
+
.overview-main-wrapper .overview-inner-wrap {
|
2099 |
+
margin-left: 0;
|
2100 |
+
width: 100%;
|
2101 |
+
}
|
2102 |
+
|
2103 |
+
.result-page-title {
|
2104 |
+
margin-bottom: 10px;
|
2105 |
+
}
|
2106 |
+
}
|
css/qsm-admin.css
CHANGED
@@ -448,6 +448,10 @@ span.qsm-quiz-name {
|
|
448 |
line-height: 22px;
|
449 |
}
|
450 |
|
|
|
|
|
|
|
|
|
451 |
.qsm-active-addons .installed_addons_wrapper .installed_addon {
|
452 |
padding: 15px 15px 27px 15px;
|
453 |
background: #fff;
|
@@ -1697,6 +1701,11 @@ td.scheduled_time_start {
|
|
1697 |
vertical-align: bottom;
|
1698 |
}
|
1699 |
|
|
|
|
|
|
|
|
|
|
|
1700 |
.mlw_quiz_options a.button.button-default.qsm-btn-quiz-edit {
|
1701 |
box-shadow: none;
|
1702 |
float: right;
|
@@ -1942,6 +1951,119 @@ td.scheduled_time_start {
|
|
1942 |
}
|
1943 |
|
1944 |
.popup-template-span-wrap .popup-copied-des {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1945 |
color: green;
|
1946 |
}
|
1947 |
|
@@ -1950,7 +2072,7 @@ td.scheduled_time_start {
|
|
1950 |
}
|
1951 |
|
1952 |
.comment-inner-wrap {
|
1953 |
-
display: none
|
1954 |
}
|
1955 |
|
1956 |
#qsm_themes h2.wp-heading-inline {
|
@@ -2098,4 +2220,5 @@ td.scheduled_time_start {
|
|
2098 |
.result-page-title {
|
2099 |
margin-bottom: 10px;
|
2100 |
}
|
|
|
2101 |
}
|
448 |
line-height: 22px;
|
449 |
}
|
450 |
|
451 |
+
.qsm-active-addons .no_addons_installed a {
|
452 |
+
margin-top: 20px;
|
453 |
+
}
|
454 |
+
|
455 |
.qsm-active-addons .installed_addons_wrapper .installed_addon {
|
456 |
padding: 15px 15px 27px 15px;
|
457 |
background: #fff;
|
1701 |
vertical-align: bottom;
|
1702 |
}
|
1703 |
|
1704 |
+
.mlw_quiz_options form:first-child {
|
1705 |
+
margin-right: 10px;
|
1706 |
+
float: right;
|
1707 |
+
}
|
1708 |
+
|
1709 |
.mlw_quiz_options a.button.button-default.qsm-btn-quiz-edit {
|
1710 |
box-shadow: none;
|
1711 |
float: right;
|
1951 |
}
|
1952 |
|
1953 |
.popup-template-span-wrap .popup-copied-des {
|
1954 |
+
color: green;
|
1955 |
+
}
|
1956 |
+
.popup-template-span-wrap .popup-copied-des span.dashicons{
|
1957 |
+
line-height: 28px;
|
1958 |
+
}
|
1959 |
+
.comment-inner-wrap{
|
1960 |
+
/* display: none;*/
|
1961 |
+
}
|
1962 |
+
@media (min-width: 768px) and (max-width: 1199px){
|
1963 |
+
.qsm-news-ads .qsm-info-widget{
|
1964 |
+
float: left;
|
1965 |
+
max-width: unset;
|
1966 |
+
width: 31.3%;
|
1967 |
+
}
|
1968 |
+
.qsm-news-ads .qsm-info-widget:nth-child(3n+5){
|
1969 |
+
clear: both;
|
1970 |
+
}
|
1971 |
+
.remove-ads-adv-link{
|
1972 |
+
width: 100%;
|
1973 |
+
display: inline-block;
|
1974 |
+
margin-bottom: 30px;
|
1975 |
+
}
|
1976 |
+
}
|
1977 |
+
@media screen and (max-width: 782px){
|
1978 |
+
.form-table td fieldset label {
|
1979 |
+
margin-top: -1px !important;
|
1980 |
+
vertical-align: top;
|
1981 |
+
}
|
1982 |
+
.qsm-tooltips-icon .qsm-tooltips{
|
1983 |
+
left: -90px;
|
1984 |
+
}
|
1985 |
+
.qsm-opt-tr .qsm-tooltips-icon{
|
1986 |
+
right: 13px;
|
1987 |
+
}
|
1988 |
+
.qsm-tooltips-icon .qsm-tooltips:before{
|
1989 |
+
left: auto;
|
1990 |
+
right: -3px;
|
1991 |
+
}
|
1992 |
+
}
|
1993 |
+
@media screen and (max-width: 767px){
|
1994 |
+
.qsm-quiz-row td:nth-of-type(2n){
|
1995 |
+
display: none;
|
1996 |
+
}
|
1997 |
+
.qsm-quiz-page-wrapper,
|
1998 |
+
.qsm-quiz-page-wrapper-with-ads {
|
1999 |
+
overflow-x: auto;
|
2000 |
+
}
|
2001 |
+
.qsm-quiz-page-wrapper thead th:nth-of-type(2n),
|
2002 |
+
.qsm-quiz-page-wrapper tfoot th:nth-of-type(2n),
|
2003 |
+
.qsm-quiz-page-wrapper-with-ads thead th:nth-of-type(2n),
|
2004 |
+
.qsm-quiz-page-wrapper-with-ads tfoot th:nth-of-type(2n){
|
2005 |
+
display: none;
|
2006 |
+
}
|
2007 |
+
.qsm-quiz-page-wrapper .row-actions{
|
2008 |
+
display: inline-block !important;
|
2009 |
+
}
|
2010 |
+
.qsm-quiz-page-wrapper p.search-box {
|
2011 |
+
bottom: -30px;
|
2012 |
+
}
|
2013 |
+
.qsm-popup__container{
|
2014 |
+
min-width: auto;
|
2015 |
+
max-width: 100%;
|
2016 |
+
}
|
2017 |
+
#show-advanced-option {
|
2018 |
+
display: block;
|
2019 |
+
width: 100%;
|
2020 |
+
float: left;
|
2021 |
+
}
|
2022 |
+
.contact-form-label {
|
2023 |
+
display: inline-block;
|
2024 |
+
}
|
2025 |
+
.template_variable{
|
2026 |
+
width: 100%;
|
2027 |
+
max-width: 100%;
|
2028 |
+
margin-bottom: 10px;
|
2029 |
+
word-break: break-word;
|
2030 |
+
}
|
2031 |
+
.qsm_tab_content .form-table input[type=radio]{
|
2032 |
+
top: 6px;
|
2033 |
+
margin-bottom: 8px;
|
2034 |
+
}
|
2035 |
+
.result-page-wrapper form{
|
2036 |
+
overflow: scroll;
|
2037 |
+
width: 100%;
|
2038 |
+
|
2039 |
+
}
|
2040 |
+
p.search-box{
|
2041 |
+
bottom: -30px;
|
2042 |
+
}
|
2043 |
+
.quizzes-surveys_page_qsm_quiz_help .hndle{
|
2044 |
+
padding-left: 15px;
|
2045 |
+
padding-bottom: 15px;
|
2046 |
+
}
|
2047 |
+
.qsm-news-ads .qsm-info-widget{
|
2048 |
+
width: calc( 100% - 30px );
|
2049 |
+
max-width: 100%;
|
2050 |
+
box-sizing: border-box;
|
2051 |
+
margin: 15px 15px 0 15px;
|
2052 |
+
}
|
2053 |
+
.form-table .qsm-opt-tr{
|
2054 |
+
padding-bottom: 10px;
|
2055 |
+
}
|
2056 |
+
.overview-main-wrapper{
|
2057 |
+
display: block;
|
2058 |
+
}
|
2059 |
+
.overview-main-wrapper .overview-inner-wrap{
|
2060 |
+
margin-right: 0;
|
2061 |
+
width: 100%;
|
2062 |
+
}
|
2063 |
+
.result-page-title{
|
2064 |
+
margin-bottom: 10px;
|
2065 |
+
}
|
2066 |
+
|
2067 |
color: green;
|
2068 |
}
|
2069 |
|
2072 |
}
|
2073 |
|
2074 |
.comment-inner-wrap {
|
2075 |
+
/* display: none;*/
|
2076 |
}
|
2077 |
|
2078 |
#qsm_themes h2.wp-heading-inline {
|
2220 |
.result-page-title {
|
2221 |
margin-bottom: 10px;
|
2222 |
}
|
2223 |
+
|
2224 |
}
|
js/admin.js
CHANGED
@@ -329,6 +329,9 @@ var QSMAdmin;
|
|
329 |
this_par.text('').text(button_txt);
|
330 |
}, 1000);
|
331 |
});
|
|
|
|
|
|
|
332 |
$(document).on('click', '.qsm-addon-anchor-left .qsm-install-addon a', function (e) {
|
333 |
e.preventDefault();
|
334 |
var href = $(this).attr('href');
|
329 |
this_par.text('').text(button_txt);
|
330 |
}, 1000);
|
331 |
});
|
332 |
+
$(document).on('click', ' .qsm-active-addons .no_addons_installed a', function (e) {
|
333 |
+
$('.qsm-addon-anchor-left .qsm-install-addon a').trigger('click');
|
334 |
+
});
|
335 |
$(document).on('click', '.qsm-addon-anchor-left .qsm-install-addon a', function (e) {
|
336 |
e.preventDefault();
|
337 |
var href = $(this).attr('href');
|
js/qsm-admin-question.js
CHANGED
@@ -480,7 +480,10 @@ var import_button;
|
|
480 |
}, 250);
|
481 |
setTimeout(QSMQuestion.removeNew, 250);
|
482 |
},
|
483 |
-
addNewAnswer: function (answer) {
|
|
|
|
|
|
|
484 |
var answerTemplate = wp.template('single-answer');
|
485 |
if (answer.length >= 7 && answer[6] == 'image') {
|
486 |
$('#answers').append(answerTemplate({ answer: decodeEntities(answer[0]), points: answer[1], correct: answer[2], caption: answer[3], count: answer[4], question_id: answer[5], answerType: answer[6], form_type: qsmQuestionSettings.form_type, quiz_system: qsmQuestionSettings.quiz_system }));
|
@@ -488,6 +491,16 @@ var import_button;
|
|
488 |
$('#answers').append(answerTemplate({ answer: decodeEntities(answer[0]), points: answer[1], correct: answer[2], count: answer[3], question_id: answer[4], answerType: answer[5], form_type: qsmQuestionSettings.form_type, quiz_system: qsmQuestionSettings.quiz_system }));
|
489 |
}
|
490 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
491 |
if (answer[5] == 'rich' && qsmQuestionSettings.qsm_user_ve === 'true') {
|
492 |
var textarea_id = 'answer-' + answer[4] + '-' + answer[3];
|
493 |
wp.editor.remove(textarea_id);
|
@@ -604,7 +617,7 @@ var import_button;
|
|
604 |
answer.push(al + 1);
|
605 |
answer.push(questionID);
|
606 |
answer.push(answerEditor);
|
607 |
-
QSMQuestion.addNewAnswer(answer);
|
608 |
al++;
|
609 |
});
|
610 |
//get new question type
|
@@ -845,7 +858,7 @@ var import_button;
|
|
845 |
var question_id = $('#edit_question_id').val();
|
846 |
var answerType = $('#change-answer-editor').val();
|
847 |
var answer = ['', '', 0, answer_length + 1, question_id, answerType];
|
848 |
-
QSMQuestion.addNewAnswer(answer);
|
849 |
});
|
850 |
|
851 |
$('.qsm-popup-bank').on('click', '.import-button', function (event) {
|
@@ -1001,6 +1014,15 @@ var import_button;
|
|
1001 |
tinyMCE.get('question-text').setContent('');
|
1002 |
}
|
1003 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1004 |
$('.qsm_hide_for_other').hide();
|
1005 |
if ($('.qsm_show_question_type_' + question_val).length > 0) {
|
1006 |
$('.qsm_show_question_type_' + question_val).show();
|
480 |
}, 250);
|
481 |
setTimeout(QSMQuestion.removeNew, 250);
|
482 |
},
|
483 |
+
addNewAnswer: function (answer, questionType = false) {
|
484 |
+
if (!questionType) {
|
485 |
+
questionType = $('#question_type').val();
|
486 |
+
}
|
487 |
var answerTemplate = wp.template('single-answer');
|
488 |
if (answer.length >= 7 && answer[6] == 'image') {
|
489 |
$('#answers').append(answerTemplate({ answer: decodeEntities(answer[0]), points: answer[1], correct: answer[2], caption: answer[3], count: answer[4], question_id: answer[5], answerType: answer[6], form_type: qsmQuestionSettings.form_type, quiz_system: qsmQuestionSettings.quiz_system }));
|
491 |
$('#answers').append(answerTemplate({ answer: decodeEntities(answer[0]), points: answer[1], correct: answer[2], count: answer[3], question_id: answer[4], answerType: answer[5], form_type: qsmQuestionSettings.form_type, quiz_system: qsmQuestionSettings.quiz_system }));
|
492 |
}
|
493 |
|
494 |
+
// show points field only for polar in survey and simple form
|
495 |
+
if (qsmQuestionSettings.form_type != 0) {
|
496 |
+
if (questionType == 13) {
|
497 |
+
$('#answers .answer-points').show();
|
498 |
+
} else {
|
499 |
+
$('#answers .answer-points').val('').hide();
|
500 |
+
}
|
501 |
+
}
|
502 |
+
|
503 |
+
|
504 |
if (answer[5] == 'rich' && qsmQuestionSettings.qsm_user_ve === 'true') {
|
505 |
var textarea_id = 'answer-' + answer[4] + '-' + answer[3];
|
506 |
wp.editor.remove(textarea_id);
|
617 |
answer.push(al + 1);
|
618 |
answer.push(questionID);
|
619 |
answer.push(answerEditor);
|
620 |
+
QSMQuestion.addNewAnswer(answer, question.get('type'));
|
621 |
al++;
|
622 |
});
|
623 |
//get new question type
|
858 |
var question_id = $('#edit_question_id').val();
|
859 |
var answerType = $('#change-answer-editor').val();
|
860 |
var answer = ['', '', 0, answer_length + 1, question_id, answerType];
|
861 |
+
QSMQuestion.addNewAnswer(answer, 0);
|
862 |
});
|
863 |
|
864 |
$('.qsm-popup-bank').on('click', '.import-button', function (event) {
|
1014 |
tinyMCE.get('question-text').setContent('');
|
1015 |
}
|
1016 |
}
|
1017 |
+
|
1018 |
+
// show points field only for polar in survey and simple form
|
1019 |
+
if (qsmQuestionSettings.form_type != 0) {
|
1020 |
+
if (13 == question_val) {
|
1021 |
+
$('.answer-points').show();
|
1022 |
+
} else {
|
1023 |
+
$('.answer-points').val('').hide();
|
1024 |
+
}
|
1025 |
+
}
|
1026 |
$('.qsm_hide_for_other').hide();
|
1027 |
if ($('.qsm_show_question_type_' + question_val).length > 0) {
|
1028 |
$('.qsm_show_question_type_' + question_val).show();
|
js/qsm-quiz.js
CHANGED
@@ -18,7 +18,7 @@ var QSMPageTimer;
|
|
18 |
// Makes sure we have quizzes on this page
|
19 |
if (typeof qmn_quiz_data != 'undefined' && qmn_quiz_data) {
|
20 |
// hide the recaptcha by default
|
21 |
-
|
22 |
// Cycle through all quizzes
|
23 |
_.each(qmn_quiz_data, function (quiz) {
|
24 |
quizID = parseInt(quiz.quiz_id);
|
@@ -63,6 +63,7 @@ var QSMPageTimer;
|
|
63 |
// Creates timer status key.
|
64 |
qmn_quiz_data[quizID].timerStatus = false;
|
65 |
|
|
|
66 |
// If we are using the newer pagination system...
|
67 |
if (0 < $quizForm.children('.qsm-page').length) {
|
68 |
// If there is a first page...
|
@@ -285,6 +286,7 @@ var QSMPageTimer;
|
|
285 |
var $quizForm = QSM.getQuizForm(quizID);
|
286 |
return $quizForm.children('.mlw_qmn_timer');
|
287 |
},
|
|
|
288 |
/**
|
289 |
* Sets up pagination for a quiz
|
290 |
*
|
@@ -292,7 +294,17 @@ var QSMPageTimer;
|
|
292 |
*/
|
293 |
initPagination: function (quizID) {
|
294 |
var $quizForm = QSM.getQuizForm(quizID);
|
295 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
$quizForm.children('.qsm-page').hide();
|
297 |
template = wp.template('qsm-pagination-' + quizID);
|
298 |
$quizForm.append(template());
|
@@ -333,6 +345,7 @@ var QSMPageTimer;
|
|
333 |
jQuery(document).trigger('qsm_init_progressbar_after', [quizID, qmn_quiz_data]);
|
334 |
}
|
335 |
QSM.goToPage(quizID, 1);
|
|
|
336 |
$quizForm.find('.qsm-pagination .qsm-next').on('click', function (event) {
|
337 |
jQuery(document).trigger('qsm_next_button_click_before', [quizID]);
|
338 |
event.preventDefault();
|
@@ -379,6 +392,7 @@ var QSMPageTimer;
|
|
379 |
$quizForm.find('.qsm-submit-btn').hide();
|
380 |
$quizForm.find('.g-recaptcha').hide();
|
381 |
if (pageNumber < $pages.length) {
|
|
|
382 |
$quizForm.find('.qsm-next').show();
|
383 |
} else {
|
384 |
$quizForm.find('.qsm-submit-btn').show();
|
18 |
// Makes sure we have quizzes on this page
|
19 |
if (typeof qmn_quiz_data != 'undefined' && qmn_quiz_data) {
|
20 |
// hide the recaptcha by default
|
21 |
+
$('.g-recaptcha').hide();
|
22 |
// Cycle through all quizzes
|
23 |
_.each(qmn_quiz_data, function (quiz) {
|
24 |
quizID = parseInt(quiz.quiz_id);
|
63 |
// Creates timer status key.
|
64 |
qmn_quiz_data[quizID].timerStatus = false;
|
65 |
|
66 |
+
|
67 |
// If we are using the newer pagination system...
|
68 |
if (0 < $quizForm.children('.qsm-page').length) {
|
69 |
// If there is a first page...
|
286 |
var $quizForm = QSM.getQuizForm(quizID);
|
287 |
return $quizForm.children('.mlw_qmn_timer');
|
288 |
},
|
289 |
+
|
290 |
/**
|
291 |
* Sets up pagination for a quiz
|
292 |
*
|
294 |
*/
|
295 |
initPagination: function (quizID) {
|
296 |
var $quizForm = QSM.getQuizForm(quizID);
|
297 |
+
|
298 |
+
|
299 |
+
/**
|
300 |
+
*
|
301 |
+
* CHecking if the quiz is random
|
302 |
+
*/
|
303 |
+
$is_random = $('.qmn_quiz_container').hasClass('random');
|
304 |
+
if($is_random){
|
305 |
+
QSM.goToPage(quizID, 1);
|
306 |
+
}
|
307 |
+
else if (0 < $quizForm.children('.qsm-page').length) {
|
308 |
$quizForm.children('.qsm-page').hide();
|
309 |
template = wp.template('qsm-pagination-' + quizID);
|
310 |
$quizForm.append(template());
|
345 |
jQuery(document).trigger('qsm_init_progressbar_after', [quizID, qmn_quiz_data]);
|
346 |
}
|
347 |
QSM.goToPage(quizID, 1);
|
348 |
+
|
349 |
$quizForm.find('.qsm-pagination .qsm-next').on('click', function (event) {
|
350 |
jQuery(document).trigger('qsm_next_button_click_before', [quizID]);
|
351 |
event.preventDefault();
|
392 |
$quizForm.find('.qsm-submit-btn').hide();
|
393 |
$quizForm.find('.g-recaptcha').hide();
|
394 |
if (pageNumber < $pages.length) {
|
395 |
+
|
396 |
$quizForm.find('.qsm-next').show();
|
397 |
} else {
|
398 |
$quizForm.find('.qsm-submit-btn').show();
|
mlw_quizmaster2.php
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Quiz And Survey Master
|
4 |
* Description: Easily and quickly add quizzes and surveys to your website.
|
5 |
-
* Version: 7.2.
|
6 |
* Author: ExpressTech
|
7 |
* Author URI: https://quizandsurveymaster.com/
|
8 |
* Plugin URI: https://expresstech.io/
|
9 |
* Text Domain: quiz-master-next
|
10 |
*
|
11 |
* @author QSM Team
|
12 |
-
* @version 7.2.
|
13 |
* @package QSM
|
14 |
*/
|
15 |
|
@@ -41,7 +41,7 @@ class MLWQuizMasterNext {
|
|
41 |
* @var string
|
42 |
* @since 4.0.0
|
43 |
*/
|
44 |
-
public $version = '7.2.
|
45 |
|
46 |
/**
|
47 |
* QSM Alert Manager Object
|
@@ -327,7 +327,7 @@ class MLWQuizMasterNext {
|
|
327 |
add_submenu_page( 'qsm_dashboard', __( 'Stats', 'quiz-master-next' ), __( 'Stats', 'quiz-master-next' ), 'moderate_comments', 'qmn_stats', 'qmn_generate_stats_page' );
|
328 |
add_submenu_page( 'qsm_dashboard', __( 'Addon Settings', 'quiz-master-next' ), '<span style="color:#f39c12;">' . __( 'Addon Settings', 'quiz-master-next' ) . '</span>', 'moderate_comments', 'qmn_addons', 'qmn_addons_page' );
|
329 |
add_submenu_page( 'qsm_dashboard', __( 'Get a Free Addon', 'quiz-master-next' ), '<span style="color:#f39c12;">' . esc_html__( 'Get a Free Addon!', 'quiz-master-next' ) . '</span>', 'moderate_comments', 'qsm-free-addon', 'qsm_display_optin_page' );
|
330 |
-
add_submenu_page( 'qsm_dashboard', __( '
|
331 |
// Merging Help page in About page
|
332 |
// add_submenu_page( 'qsm_dashboard', __( 'About', 'quiz-master-next' ), __( 'About', 'quiz-master-next' ), 'moderate_comments', 'qsm_about_page', 'qsm_generate_about_page' );
|
333 |
add_submenu_page( 'qsm_dashboard', __( 'About', 'quiz-master-next' ), __( 'About', 'quiz-master-next' ), 'moderate_comments', 'qsm_quiz_about', 'qsm_generate_about_page' );
|
@@ -366,4 +366,4 @@ class MLWQuizMasterNext {
|
|
366 |
|
367 |
global $mlwQuizMasterNext;
|
368 |
$mlwQuizMasterNext = new MLWQuizMasterNext();
|
369 |
-
register_activation_hook( __FILE__, array( 'QSM_Install', 'install' ) );
|
2 |
/**
|
3 |
* Plugin Name: Quiz And Survey Master
|
4 |
* Description: Easily and quickly add quizzes and surveys to your website.
|
5 |
+
* Version: 7.2.1
|
6 |
* Author: ExpressTech
|
7 |
* Author URI: https://quizandsurveymaster.com/
|
8 |
* Plugin URI: https://expresstech.io/
|
9 |
* Text Domain: quiz-master-next
|
10 |
*
|
11 |
* @author QSM Team
|
12 |
+
* @version 7.2.1
|
13 |
* @package QSM
|
14 |
*/
|
15 |
|
41 |
* @var string
|
42 |
* @since 4.0.0
|
43 |
*/
|
44 |
+
public $version = '7.2.1';
|
45 |
|
46 |
/**
|
47 |
* QSM Alert Manager Object
|
327 |
add_submenu_page( 'qsm_dashboard', __( 'Stats', 'quiz-master-next' ), __( 'Stats', 'quiz-master-next' ), 'moderate_comments', 'qmn_stats', 'qmn_generate_stats_page' );
|
328 |
add_submenu_page( 'qsm_dashboard', __( 'Addon Settings', 'quiz-master-next' ), '<span style="color:#f39c12;">' . __( 'Addon Settings', 'quiz-master-next' ) . '</span>', 'moderate_comments', 'qmn_addons', 'qmn_addons_page' );
|
329 |
add_submenu_page( 'qsm_dashboard', __( 'Get a Free Addon', 'quiz-master-next' ), '<span style="color:#f39c12;">' . esc_html__( 'Get a Free Addon!', 'quiz-master-next' ) . '</span>', 'moderate_comments', 'qsm-free-addon', 'qsm_display_optin_page' );
|
330 |
+
add_submenu_page( 'qsm_dashboard', __( 'What\'s Next', 'quiz-master-next' ), __( 'What\'s Next', 'quiz-master-next' ), 'moderate_comments', 'qsm_roadmap_page', 'qsm_generate_roadmap_page' );
|
331 |
// Merging Help page in About page
|
332 |
// add_submenu_page( 'qsm_dashboard', __( 'About', 'quiz-master-next' ), __( 'About', 'quiz-master-next' ), 'moderate_comments', 'qsm_about_page', 'qsm_generate_about_page' );
|
333 |
add_submenu_page( 'qsm_dashboard', __( 'About', 'quiz-master-next' ), __( 'About', 'quiz-master-next' ), 'moderate_comments', 'qsm_quiz_about', 'qsm_generate_about_page' );
|
366 |
|
367 |
global $mlwQuizMasterNext;
|
368 |
$mlwQuizMasterNext = new MLWQuizMasterNext();
|
369 |
+
register_activation_hook( __FILE__, array( 'QSM_Install', 'install' ) );
|
php/admin/about-page.php
CHANGED
@@ -24,29 +24,32 @@ function qsm_generate_about_page() {
|
|
24 |
$tab_array = [['slug'=>'about', 'title'=>'About'],['slug'=>'help', 'title' => 'Help']];
|
25 |
$active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'about';
|
26 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ) );
|
|
|
27 |
wp_enqueue_script( 'qsm_admin_js', plugins_url( '../../js/admin.js', __FILE__ ), array( 'jquery' ), $version );
|
28 |
|
29 |
// Creates the widgets.
|
30 |
add_meta_box( 'wpss_mrts', __( 'Need Help?', 'quiz-master-next' ), 'qsm_documentation_meta_box_content', 'meta_box_help' );
|
31 |
add_meta_box( 'wpss_mrts', __( 'System Info', 'quiz-master-next' ), 'qsm_system_meta_box_content', 'meta_box_sys_info' );
|
32 |
?>
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
|
|
46 |
<?php } ?>
|
47 |
|
48 |
-
|
49 |
-
|
50 |
foreach ($tab_array as $tab) {
|
51 |
$active_class = '';
|
52 |
if ($active_tab == $tab['slug']) {
|
@@ -55,26 +58,27 @@ function qsm_generate_about_page() {
|
|
55 |
echo "<a href=\"?page=qsm_quiz_about&tab={$tab['slug']}\" class=\"nav-tab $active_class\">{$tab['title']}</a>";
|
56 |
}
|
57 |
?>
|
58 |
-
|
59 |
-
<br/>
|
60 |
-
|
61 |
-
|
62 |
if ($active_tab == 'help') {
|
63 |
qsm_show_adverts();
|
64 |
?>
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
} elseif($active_tab == 'about') {
|
74 |
?>
|
75 |
-
|
76 |
-
|
77 |
-
|
|
|
78 |
$contributors = get_transient( 'qmn_contributors' );
|
79 |
if ( false === $contributors ) {
|
80 |
$response = wp_remote_get( 'https://api.github.com/repos/QuizandSurveyMaster/quiz_master_next/contributors', array( 'sslverify' => false ) );
|
@@ -105,14 +109,15 @@ function qsm_generate_about_page() {
|
|
105 |
echo $contributor_list;
|
106 |
}
|
107 |
?>
|
108 |
-
|
109 |
-
</
|
110 |
-
|
|
|
111 |
}
|
112 |
?>
|
113 |
-
|
114 |
</div>
|
115 |
-
<?php
|
116 |
}
|
117 |
|
118 |
/**
|
@@ -125,8 +130,11 @@ function qsm_documentation_meta_box_content() {
|
|
125 |
?>
|
126 |
<p><?php esc_html_e( 'Need help with the plugin? Try any of the following:', 'quiz-master-next' ); ?></p>
|
127 |
<ul>
|
128 |
-
<li>For assistance in using the plugin, read our <a href="https://quizandsurveymaster.com/docs/" rel="noopener"
|
129 |
-
|
|
|
|
|
|
|
130 |
</ul>
|
131 |
<?php
|
132 |
}
|
@@ -235,4 +243,4 @@ function qsm_get_system_info() {
|
|
235 |
return $sys_info;
|
236 |
}
|
237 |
|
238 |
-
?>
|
24 |
$tab_array = [['slug'=>'about', 'title'=>'About'],['slug'=>'help', 'title' => 'Help']];
|
25 |
$active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'about';
|
26 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ) );
|
27 |
+
wp_style_add_data( 'qsm_admin_style', 'rtl', 'replace' );
|
28 |
wp_enqueue_script( 'qsm_admin_js', plugins_url( '../../js/admin.js', __FILE__ ), array( 'jquery' ), $version );
|
29 |
|
30 |
// Creates the widgets.
|
31 |
add_meta_box( 'wpss_mrts', __( 'Need Help?', 'quiz-master-next' ), 'qsm_documentation_meta_box_content', 'meta_box_help' );
|
32 |
add_meta_box( 'wpss_mrts', __( 'System Info', 'quiz-master-next' ), 'qsm_system_meta_box_content', 'meta_box_sys_info' );
|
33 |
?>
|
34 |
+
|
35 |
+
<?php if($active_tab == 'help'){?>
|
36 |
+
<div class="wrap qsm-help-page">
|
37 |
+
<h2><?php esc_html_e( 'Help Page', 'quiz-master-next' ); ?></h2>
|
38 |
+
<?php } elseif($active_tab == 'about') {?>
|
39 |
+
<style>
|
40 |
+
div.qsm_icon_wrap {
|
41 |
+
background: <?php echo 'url("'. plugins_url('../../assets/icon-128x128.png', __FILE__) . '" )';
|
42 |
+
?>no-repeat;
|
43 |
+
}
|
44 |
+
</style>
|
45 |
+
<div class="wrap about-wrap">
|
46 |
+
<h1><?php esc_html_e( 'Welcome To Quiz And Survey Master (Formerly Quiz Master Next)', 'quiz-master-next' ); ?>
|
47 |
+
</h1>
|
48 |
+
<div class="qsm_icon_wrap"><?php echo esc_html( $version ); ?></div>
|
49 |
<?php } ?>
|
50 |
|
51 |
+
<h2 class="nav-tab-wrapper">
|
52 |
+
<?php
|
53 |
foreach ($tab_array as $tab) {
|
54 |
$active_class = '';
|
55 |
if ($active_tab == $tab['slug']) {
|
58 |
echo "<a href=\"?page=qsm_quiz_about&tab={$tab['slug']}\" class=\"nav-tab $active_class\">{$tab['title']}</a>";
|
59 |
}
|
60 |
?>
|
61 |
+
</h2>
|
62 |
+
<br />
|
63 |
+
<div>
|
64 |
+
<?php
|
65 |
if ($active_tab == 'help') {
|
66 |
qsm_show_adverts();
|
67 |
?>
|
68 |
+
<div style="width:100%;" class="inner-sidebar1">
|
69 |
+
<?php do_meta_boxes( 'meta_box_help', 'advanced', '' ); ?>
|
70 |
+
</div>
|
71 |
+
|
72 |
+
<div style="width:100%;" class="inner-sidebar1">
|
73 |
+
<?php do_meta_boxes( 'meta_box_sys_info', 'advanced', '' ); ?>
|
74 |
+
</div>
|
75 |
+
<?php
|
76 |
} elseif($active_tab == 'about') {
|
77 |
?>
|
78 |
+
<div class="qsm-tab-content tab-3">
|
79 |
+
<h2 style="text-align: left;margin-bottom: 35px;margin-top: 25px;font-weight: 500;">GitHub Contributors
|
80 |
+
</h2>
|
81 |
+
<?php
|
82 |
$contributors = get_transient( 'qmn_contributors' );
|
83 |
if ( false === $contributors ) {
|
84 |
$response = wp_remote_get( 'https://api.github.com/repos/QuizandSurveyMaster/quiz_master_next/contributors', array( 'sslverify' => false ) );
|
109 |
echo $contributor_list;
|
110 |
}
|
111 |
?>
|
112 |
+
<a href="https://github.com/QuizandSurveyMaster/quiz_master_next" rel="noopener" target="_blank"
|
113 |
+
class="button-primary">View GitHub Repo</a>
|
114 |
+
</div>
|
115 |
+
<?php
|
116 |
}
|
117 |
?>
|
118 |
+
</div>
|
119 |
</div>
|
120 |
+
<?php
|
121 |
}
|
122 |
|
123 |
/**
|
130 |
?>
|
131 |
<p><?php esc_html_e( 'Need help with the plugin? Try any of the following:', 'quiz-master-next' ); ?></p>
|
132 |
<ul>
|
133 |
+
<li>For assistance in using the plugin, read our <a href="https://quizandsurveymaster.com/docs/" rel="noopener"
|
134 |
+
target="_blank">documentation</a></li>
|
135 |
+
<li>For support, fill out the form on our <a
|
136 |
+
href="https://quizandsurveymaster.com/contact-support/?utm_source=qsm-help-page&utm_medium=plugin&utm_campaign=qsm_plugin&utm_content=contact_us"
|
137 |
+
rel="noopener" target="_blank">Contact Us Page</a></li>
|
138 |
</ul>
|
139 |
<?php
|
140 |
}
|
243 |
return $sys_info;
|
244 |
}
|
245 |
|
246 |
+
?>
|
php/admin/addons-page.php
CHANGED
@@ -18,6 +18,7 @@ function qmn_addons_page() {
|
|
18 |
$active_tab = strtolower( str_replace( ' ', '-', isset( $_GET['tab'] ) ? $_GET['tab'] : __( 'Featured Addons', 'quiz-master-next' ) ) );
|
19 |
$tab_array = $mlwQuizMasterNext->pluginHelper->get_addon_tabs();
|
20 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ), array(), $mlwQuizMasterNext->version );
|
|
|
21 |
?>
|
22 |
<div class="wrap qsm-addon-setting-wrap">
|
23 |
<h2 style="margin-bottom: 20px;">
|
@@ -113,9 +114,13 @@ function qsm_generate_featured_addons() {
|
|
113 |
} else {
|
114 |
?>
|
115 |
<div class="no_addons_installed">
|
116 |
-
|
|
|
117 |
_e( 'You have currently not installed any addons. Explore our addons repository with 40+ addons to make your quiz even better.', 'quiz-master-next' );
|
118 |
?>
|
|
|
|
|
|
|
119 |
</div>
|
120 |
<?php
|
121 |
}
|
@@ -283,7 +288,9 @@ function qsm_generate_featured_addons() {
|
|
283 |
<div class="qsm-info-widget">
|
284 |
<div class="bundle-icon">
|
285 |
<?php
|
286 |
-
|
|
|
|
|
287 |
?>
|
288 |
</div>
|
289 |
<h3><?php echo $bundles_arr['name']; ?></h3>
|
18 |
$active_tab = strtolower( str_replace( ' ', '-', isset( $_GET['tab'] ) ? $_GET['tab'] : __( 'Featured Addons', 'quiz-master-next' ) ) );
|
19 |
$tab_array = $mlwQuizMasterNext->pluginHelper->get_addon_tabs();
|
20 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ), array(), $mlwQuizMasterNext->version );
|
21 |
+
wp_style_add_data( 'qsm_admin_style', 'rtl', 'replace' );
|
22 |
?>
|
23 |
<div class="wrap qsm-addon-setting-wrap">
|
24 |
<h2 style="margin-bottom: 20px;">
|
114 |
} else {
|
115 |
?>
|
116 |
<div class="no_addons_installed">
|
117 |
+
<div>
|
118 |
+
<?php
|
119 |
_e( 'You have currently not installed any addons. Explore our addons repository with 40+ addons to make your quiz even better.', 'quiz-master-next' );
|
120 |
?>
|
121 |
+
</div>
|
122 |
+
<a class="button button-primary button-hero load-quiz-wizard hide-if-no-customize"
|
123 |
+
href="#qsm_add_addons"><?php _e('Explore Addons', 'quiz-master-next');?></a>
|
124 |
</div>
|
125 |
<?php
|
126 |
}
|
288 |
<div class="qsm-info-widget">
|
289 |
<div class="bundle-icon">
|
290 |
<?php
|
291 |
+
if ( ! empty( $bundles_arr['icon'] ) ) {
|
292 |
+
echo '<img src="' . $bundles_arr['icon'] . '" />';
|
293 |
+
}
|
294 |
?>
|
295 |
</div>
|
296 |
<h3><?php echo $bundles_arr['name']; ?></h3>
|
php/admin/admin-dashboard.php
CHANGED
@@ -99,13 +99,21 @@ function qsm_generate_dashboard_page() {
|
|
99 |
wp_enqueue_script( 'micromodal_script', plugins_url( '../../js/micromodal.min.js', __FILE__ ) );
|
100 |
wp_enqueue_script( 'qsm_admin_script', plugins_url( '../../js/admin.js', __FILE__ ), array( 'jquery', 'micromodal_script', 'jquery-ui-accordion' ), $mlwQuizMasterNext->version );
|
101 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ) );
|
|
|
102 |
wp_enqueue_style( 'qsm_admin_dashboard_css', plugins_url( '../../css/admin-dashboard.css', __FILE__ ) );
|
|
|
103 |
wp_enqueue_style( 'qsm_ui_css', '//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css' );
|
104 |
wp_enqueue_script( 'dashboard' );
|
105 |
if ( wp_is_mobile() ) {
|
106 |
wp_enqueue_script( 'jquery-touch-punch' );
|
107 |
}
|
108 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
<div class="wrap">
|
110 |
<h1><?php _e( 'QSM Dashboard', 'quiz-master-next' ); ?></h1>
|
111 |
<div id="welcome_panel" class="postbox welcome-panel <?php qsm_check_close_hidden_box( 'welcome_panel' ); ?>">
|
@@ -131,28 +139,33 @@ function qsm_generate_dashboard_page() {
|
|
131 |
<div class="welcome-panel-column">
|
132 |
<h3><?php _e( 'Next Steps', 'quiz-master-next' ); ?></h3>
|
133 |
<ul>
|
134 |
-
<li><a target="_blank" rel="noopener"
|
|
|
135 |
class="welcome-icon"><span
|
136 |
class="dashicons dashicons-media-document"></span> <?php _e( 'Read Documentation', 'quiz-master-next' ); ?></a>
|
137 |
</li>
|
138 |
-
<li><a target="_blank" rel="noopener"
|
|
|
139 |
class="welcome-icon"><span
|
140 |
class="dashicons dashicons-format-video"></span> <?php _e( 'See demos', 'quiz-master-next' ); ?></a>
|
141 |
</li>
|
142 |
-
<li><a target="_blank" rel="noopener"
|
|
|
143 |
class="welcome-icon"><span
|
144 |
class="dashicons dashicons-plugins-checked"></span> <?php _e( 'Extend QSM with PRO Addons', 'quiz-master-next' ); ?></a>
|
145 |
</li>
|
146 |
-
<li><a target="_blank" rel="noopener"
|
|
|
147 |
class="welcome-icon"><span
|
148 |
-
class="dashicons dashicons-admin-appearance"></span> <?php _e( '
|
149 |
</li>
|
150 |
</ul>
|
151 |
</div>
|
152 |
<div class="welcome-panel-column welcome-panel-last">
|
153 |
<h3><?php _e( 'Useful Links', 'quiz-master-next' ); ?></h3>
|
154 |
<ul>
|
155 |
-
<li><a target="_blank" rel="noopener"
|
|
|
156 |
class="welcome-icon"><span
|
157 |
class="dashicons dashicons-admin-users"></span> <?php _e( 'Contact Support', 'quiz-master-next' ); ?></a>
|
158 |
</li>
|
@@ -165,6 +178,9 @@ function qsm_generate_dashboard_page() {
|
|
165 |
class="welcome-icon"><span
|
166 |
class="dashicons dashicons-facebook"></span> <?php _e( 'Connect on Facebook', 'quiz-master-next' ); ?></a>
|
167 |
</li>
|
|
|
|
|
|
|
168 |
</ul>
|
169 |
</div>
|
170 |
</div>
|
@@ -338,7 +354,7 @@ function qsm_dashboard_popular_addon( $widget_id ) {
|
|
338 |
foreach ( $addon_array as $key => $single_arr ) {
|
339 |
?>
|
340 |
<li>
|
341 |
-
<a href="<?php echo $single_arr['link']; ?>?utm_source=
|
342 |
target="_blank" rel="noopener">
|
343 |
<img src="<?php echo $single_arr['img']; ?>" title="<?php echo $single_arr['name']; ?>">
|
344 |
</a>
|
@@ -349,7 +365,7 @@ function qsm_dashboard_popular_addon( $widget_id ) {
|
|
349 |
?>
|
350 |
</ul>
|
351 |
<div class="pa-all-addon">
|
352 |
-
<a href="https://quizandsurveymaster.com/pricing
|
353 |
target="_blank"><?php _e( 'SEE ALL ADDONS', 'quiz-master-next' ); ?></a>
|
354 |
</div>
|
355 |
</div>
|
@@ -499,7 +515,8 @@ function qsm_dashboard_what_new( $widget_id ) {
|
|
499 |
foreach ( $feed_posts_array as $key => $single_feed_arr ) {
|
500 |
?>
|
501 |
<li>
|
502 |
-
<a href="<?php echo $single_feed_arr['link'];
|
|
|
503 |
<?php echo $single_feed_arr['title']; ?>
|
504 |
</a>
|
505 |
<div class="post-description">
|
99 |
wp_enqueue_script( 'micromodal_script', plugins_url( '../../js/micromodal.min.js', __FILE__ ) );
|
100 |
wp_enqueue_script( 'qsm_admin_script', plugins_url( '../../js/admin.js', __FILE__ ), array( 'jquery', 'micromodal_script', 'jquery-ui-accordion' ), $mlwQuizMasterNext->version );
|
101 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ) );
|
102 |
+
wp_style_add_data( 'qsm_admin_style', 'rtl', 'replace' );
|
103 |
wp_enqueue_style( 'qsm_admin_dashboard_css', plugins_url( '../../css/admin-dashboard.css', __FILE__ ) );
|
104 |
+
wp_style_add_data( 'qsm_admin_dashboard_css', 'rtl', 'replace' );
|
105 |
wp_enqueue_style( 'qsm_ui_css', '//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css' );
|
106 |
wp_enqueue_script( 'dashboard' );
|
107 |
if ( wp_is_mobile() ) {
|
108 |
wp_enqueue_script( 'jquery-touch-punch' );
|
109 |
}
|
110 |
?>
|
111 |
+
<script>
|
112 |
+
var ps_config = {
|
113 |
+
workspace_id: "d24ad9de-78c7-4835-a2a8-3f5ee0317f31"
|
114 |
+
};
|
115 |
+
</script>
|
116 |
+
<script type="text/javascript" src="https://cdn.productstash.io/js/widget.min.js?v=0.5" defer="defer"></script>
|
117 |
<div class="wrap">
|
118 |
<h1><?php _e( 'QSM Dashboard', 'quiz-master-next' ); ?></h1>
|
119 |
<div id="welcome_panel" class="postbox welcome-panel <?php qsm_check_close_hidden_box( 'welcome_panel' ); ?>">
|
139 |
<div class="welcome-panel-column">
|
140 |
<h3><?php _e( 'Next Steps', 'quiz-master-next' ); ?></h3>
|
141 |
<ul>
|
142 |
+
<li><a target="_blank" rel="noopener"
|
143 |
+
href="https://quizandsurveymaster.com/docs/?utm_source=plugin&utm_medium=dashboard"
|
144 |
class="welcome-icon"><span
|
145 |
class="dashicons dashicons-media-document"></span> <?php _e( 'Read Documentation', 'quiz-master-next' ); ?></a>
|
146 |
</li>
|
147 |
+
<li><a target="_blank" rel="noopener"
|
148 |
+
href="https://demo.quizandsurveymaster.com/?utm_source=plugin&utm_medium=dashboard"
|
149 |
class="welcome-icon"><span
|
150 |
class="dashicons dashicons-format-video"></span> <?php _e( 'See demos', 'quiz-master-next' ); ?></a>
|
151 |
</li>
|
152 |
+
<li><a target="_blank" rel="noopener"
|
153 |
+
href="https://quizandsurveymaster.com/pricing/?utm_source=plugin&utm_medium=dashboard"
|
154 |
class="welcome-icon"><span
|
155 |
class="dashicons dashicons-plugins-checked"></span> <?php _e( 'Extend QSM with PRO Addons', 'quiz-master-next' ); ?></a>
|
156 |
</li>
|
157 |
+
<li><a target="_blank" rel="noopener"
|
158 |
+
href="https://themes.quizandsurveymaster.com/?utm_source=plugin&utm_medium=dashboard"
|
159 |
class="welcome-icon"><span
|
160 |
+
class="dashicons dashicons-admin-appearance"></span> <?php _e( 'Explore QSM Themes', 'quiz-master-next' ); ?></a>
|
161 |
</li>
|
162 |
</ul>
|
163 |
</div>
|
164 |
<div class="welcome-panel-column welcome-panel-last">
|
165 |
<h3><?php _e( 'Useful Links', 'quiz-master-next' ); ?></h3>
|
166 |
<ul>
|
167 |
+
<li><a target="_blank" rel="noopener"
|
168 |
+
href="https://quizandsurveymaster.com/contact-support/?utm_source=plugin&utm_medium=dashboard"
|
169 |
class="welcome-icon"><span
|
170 |
class="dashicons dashicons-admin-users"></span> <?php _e( 'Contact Support', 'quiz-master-next' ); ?></a>
|
171 |
</li>
|
178 |
class="welcome-icon"><span
|
179 |
class="dashicons dashicons-facebook"></span> <?php _e( 'Connect on Facebook', 'quiz-master-next' ); ?></a>
|
180 |
</li>
|
181 |
+
<li><a href="#" class="welcome-icon" id="whatsnew"><span
|
182 |
+
class="dashicons dashicons-bell"></span> <?php _e( 'What\'s New', 'quiz-master-next' ); ?></a>
|
183 |
+
</li>
|
184 |
</ul>
|
185 |
</div>
|
186 |
</div>
|
354 |
foreach ( $addon_array as $key => $single_arr ) {
|
355 |
?>
|
356 |
<li>
|
357 |
+
<a href="<?php echo $single_arr['link']; ?>?utm_source=dashboard&utm_medium=plugin&utm_content=all-addons-top&utm_campaign=qsm_plugin"
|
358 |
target="_blank" rel="noopener">
|
359 |
<img src="<?php echo $single_arr['img']; ?>" title="<?php echo $single_arr['name']; ?>">
|
360 |
</a>
|
365 |
?>
|
366 |
</ul>
|
367 |
<div class="pa-all-addon">
|
368 |
+
<a href="https://quizandsurveymaster.com/pricing/?utm_source=plugin&utm_medium=dashboard" rel="noopener"
|
369 |
target="_blank"><?php _e( 'SEE ALL ADDONS', 'quiz-master-next' ); ?></a>
|
370 |
</div>
|
371 |
</div>
|
515 |
foreach ( $feed_posts_array as $key => $single_feed_arr ) {
|
516 |
?>
|
517 |
<li>
|
518 |
+
<a href="<?php echo $single_feed_arr['link']; ?>?utm_source=plugin&utm_medium=dashboard"
|
519 |
+
target="_blank" rel="noopener">
|
520 |
<?php echo $single_feed_arr['title']; ?>
|
521 |
</a>
|
522 |
<div class="post-description">
|
php/admin/admin-results-details-page.php
CHANGED
@@ -11,56 +11,60 @@ function qsm_generate_result_details() {
|
|
11 |
return;
|
12 |
}
|
13 |
global $mlwQuizMasterNext;
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
|
|
|
|
|
|
64 |
}
|
65 |
|
66 |
|
@@ -80,209 +84,221 @@ function qsm_generate_results_details_tab() {
|
|
80 |
$result_id = intval( $_GET["result_id"] );
|
81 |
$results_data = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}mlw_results WHERE result_id = %d", $result_id ) );
|
82 |
|
|
|
|
|
|
|
83 |
// Prepare plugin helper.
|
84 |
$quiz_id = intval( $results_data->quiz_id );
|
85 |
$mlwQuizMasterNext->pluginHelper->prepare_quiz( $quiz_id );
|
86 |
|
87 |
-
|
88 |
-
|
|
|
|
|
|
|
|
|
89 |
|
90 |
// If there is previous or next results, show buttons.
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
|
106 |
// Get template for admin results.
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
//User detail
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
//Scoreboard design
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
//Timer design
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
$template .= '</div>';
|
161 |
-
}else{
|
162 |
-
$template .= '<div>';
|
163 |
-
$template .= '<span class="hours timer-span">00</span>';
|
164 |
-
$template .= '<span class="timer-text">hours</span>';
|
165 |
-
$template .= '</div>';
|
166 |
-
}
|
167 |
-
$mlw_complete_minutes = floor(($mlw_qmn_results_array[0] % 3600) / 60);
|
168 |
-
if ( $mlw_complete_minutes > 0 ) {
|
169 |
-
$template .= '<div>';
|
170 |
-
$template .= '<span class="minutes timer-span">' . str_pad($mlw_complete_minutes, 2, '0', STR_PAD_LEFT) . '</span>';
|
171 |
-
$min_label = $mlw_complete_minutes == 1 ? __( 'minute', 'quiz-master-next' ) : __( 'minutes', 'quiz-master-next' );
|
172 |
-
$template .= '<span class="timer-text">' . $min_label . '</span>';
|
173 |
-
$template .= '</div>';
|
174 |
-
} else {
|
175 |
-
$template .= '<div>';
|
176 |
-
$template .= '<span class="minutes timer-span">00</span>';
|
177 |
-
$template .= '<span class="timer-text">minutes</span>';
|
178 |
-
$template .= '</div>';
|
179 |
-
}
|
180 |
-
$mlw_complete_seconds = $mlw_qmn_results_array[0] % 60;
|
181 |
-
$template .= '<div>';
|
182 |
-
$template .= '<span class="seconds timer-span">' . str_pad($mlw_complete_seconds, 2, '0', STR_PAD_LEFT) . '</span>';
|
183 |
-
$sec_label = $mlw_complete_seconds == 1 ? __( 'second', 'quiz-master-next' ) : __( 'seconds', 'quiz-master-next' );
|
184 |
-
$template .= '<span class="timer-text">' . $sec_label . '</span>';
|
185 |
-
$template .= '</div>';
|
186 |
-
}
|
187 |
-
$template .= '</div>';
|
188 |
-
$template .= '</div>';
|
189 |
-
$template .= '</div>';
|
190 |
-
$template .= '</div>';
|
191 |
-
$template .= '</div>';
|
192 |
-
//Comment entered text
|
193 |
-
$template .= '<div class="comment-inner-wrap" style="display: none;">';
|
194 |
-
$template .= '<div id="submitdiv" class="postbox "><h2 class="hndle ui-sortable-handle"><span>User Comments</span></h2>';
|
195 |
-
$template .= '<div class="inside">';
|
196 |
-
$template .= '%COMMENT_SECTION%';
|
197 |
-
$template .= '</div>';
|
198 |
$template .= '</div>';
|
|
|
|
|
|
|
|
|
199 |
$template .= '</div>';
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
$template .= '<div
|
204 |
-
$template .= '
|
205 |
-
$
|
|
|
206 |
$template .= '</div>';
|
|
|
|
|
|
|
|
|
207 |
$template .= '</div>';
|
208 |
-
}else{
|
209 |
-
$template = 'Data is missing.';
|
210 |
}
|
211 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
//Old template design
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
// Prepare responses array.
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
// Prepare full results array.
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
|
274 |
// Pass through template variable filter
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
// Hook for below admin results
|
285 |
-
|
286 |
}
|
287 |
|
288 |
|
@@ -297,4 +313,4 @@ function qsm_results_details_tab() {
|
|
297 |
$mlwQuizMasterNext->pluginHelper->register_results_settings_tab( "Results", "qsm_generate_results_details_tab" );
|
298 |
}
|
299 |
add_action( "plugins_loaded", 'qsm_results_details_tab' );
|
300 |
-
?>
|
11 |
return;
|
12 |
}
|
13 |
global $mlwQuizMasterNext;
|
14 |
+
wp_enqueue_style( 'qsm_common_style', plugins_url( '../../css/common.css', __FILE__ ) );
|
15 |
+
wp_style_add_data( 'qsm_common_style', 'rtl', 'replace' );
|
16 |
+
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ), array(), $mlwQuizMasterNext->version );
|
17 |
+
wp_style_add_data( 'qsm_admin_style', 'rtl', 'replace' );
|
18 |
+
wp_enqueue_script( 'math_jax', '//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML' );
|
19 |
+
$active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'results';
|
20 |
+
$tab_array = $mlwQuizMasterNext->pluginHelper->get_results_tabs();
|
21 |
+
?>
|
22 |
+
<style>
|
23 |
+
.prettyprint {
|
24 |
+
width: 200px;
|
25 |
+
}
|
26 |
+
</style>
|
27 |
+
<div class="wrap">
|
28 |
+
<h2 style="display: none;"><?php _e('Quiz Results', 'quiz-master-next'); ?></h2>
|
29 |
+
<h2 class="nav-tab-wrapper">
|
30 |
+
<?php
|
31 |
+
foreach( $tab_array as $tab ) {
|
32 |
+
$active_class = '';
|
33 |
+
if ( $active_tab == $tab['slug'] ) {
|
34 |
+
$active_class = 'nav-tab-active';
|
35 |
+
}
|
36 |
+
echo "<a href=\"?page=qsm_quiz_result_details&&result_id=" . intval( $_GET["result_id"] ) . "&&tab=" . $tab['slug'] . "\" class=\"nav-tab $active_class\">" . $tab['title'] . "</a>";
|
37 |
+
}
|
38 |
+
?>
|
39 |
+
</h2>
|
40 |
+
<style type="text/css">
|
41 |
+
.result-tab-content p {
|
42 |
+
font-size: 16px;
|
43 |
+
}
|
44 |
+
|
45 |
+
.qmn_question_answer b {
|
46 |
+
font-size: 18px;
|
47 |
+
margin-bottom: 0;
|
48 |
+
display: block;
|
49 |
+
}
|
50 |
+
|
51 |
+
.qmn_question_answer {
|
52 |
+
margin-bottom: 30px;
|
53 |
+
font-size: 16px;
|
54 |
+
line-height: 1.5;
|
55 |
+
}
|
56 |
+
</style>
|
57 |
+
<div class="result-tab-content">
|
58 |
+
<?php
|
59 |
+
foreach( $tab_array as $tab ) {
|
60 |
+
if ( $active_tab == $tab['slug'] ) {
|
61 |
+
call_user_func( $tab['function'] );
|
62 |
+
}
|
63 |
+
}
|
64 |
+
?>
|
65 |
+
</div>
|
66 |
+
</div>
|
67 |
+
<?php
|
68 |
}
|
69 |
|
70 |
|
84 |
$result_id = intval( $_GET["result_id"] );
|
85 |
$results_data = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}mlw_results WHERE result_id = %d", $result_id ) );
|
86 |
|
87 |
+
|
88 |
+
|
89 |
+
|
90 |
// Prepare plugin helper.
|
91 |
$quiz_id = intval( $results_data->quiz_id );
|
92 |
$mlwQuizMasterNext->pluginHelper->prepare_quiz( $quiz_id );
|
93 |
|
94 |
+
//Get the data for comments
|
95 |
+
$quiz_options = $mlwQuizMasterNext->quiz_settings->get_setting( 'quiz_options');
|
96 |
+
$comments_enabled = $quiz_options['comment_section'];
|
97 |
+
|
98 |
+
$previous_results = $wpdb->get_var( $wpdb->prepare("SELECT result_id FROM {$wpdb->prefix}mlw_results WHERE result_id = (SELECT MAX(result_id) FROM {$wpdb->prefix}mlw_results WHERE deleted = 0 AND result_id < %d)", $result_id));
|
99 |
+
$next_results = $wpdb->get_var( $wpdb->prepare("SELECT result_id FROM {$wpdb->prefix}mlw_results WHERE result_id = (SELECT MIN(result_id) FROM {$wpdb->prefix}mlw_results WHERE deleted = 0 AND result_id > %d)", $result_id));
|
100 |
|
101 |
// If there is previous or next results, show buttons.
|
102 |
+
echo '<div style="text-align:right; margin-top: 20px; margin-bottom: 20px;">';
|
103 |
+
echo '<h3 class="result-page-title">Quiz Result - '. $results_data->quiz_name .'</h3>';
|
104 |
+
echo '<a style="margin-right: 15px;" href="?page=mlw_quiz_results" class="button button-primary" title="Return to results">'. __( 'Back to Results', 'quiz-master-next' ) .'</a>';
|
105 |
+
if ( ! is_null( $previous_results ) && $previous_results ) {
|
106 |
+
echo "<a class='button button-primary' title='View Previous Result' href=\"?page=qsm_quiz_result_details&&result_id=" . intval( $previous_results ) . "\" ><span class='dashicons dashicons-arrow-left-alt2'></span></a> ";
|
107 |
+
}else{
|
108 |
+
echo "<a class='button button-primary' title='View Previous Result' href='#' disbled=disabled><span class='dashicons dashicons-arrow-left-alt2'></span></a> ";
|
109 |
+
}
|
110 |
+
if ( ! is_null( $next_results ) && $next_results ) {
|
111 |
+
echo " <a class='button button-primary' title='View Next Result' href=\"?page=qsm_quiz_result_details&&result_id=" . intval( $next_results ) . "\" ><span class='dashicons dashicons-arrow-right-alt2'></span></a>";
|
112 |
+
}else{
|
113 |
+
echo " <a class='button button-primary' title='View Next Result' href='#' disabled=disabled><span class='dashicons dashicons-arrow-right-alt2'></span></a>";
|
114 |
+
}
|
115 |
+
echo '</div>';
|
116 |
|
117 |
// Get template for admin results.
|
118 |
+
$settings = (array) get_option( 'qmn-settings' );
|
119 |
+
$new_template_result_detail = '1';
|
120 |
+
$results["contact"] = array();
|
121 |
+
if (isset($settings['new_template_result_detail'])){
|
122 |
+
$new_template_result_detail = esc_attr( $settings['new_template_result_detail'] );
|
123 |
+
}
|
124 |
+
if( $new_template_result_detail == 1 ){
|
125 |
+
$template = '';
|
126 |
+
if ( is_serialized( $results_data->quiz_results ) && is_array( @unserialize( $results_data->quiz_results ) ) ) {
|
127 |
+
$results_contact = unserialize($results_data->quiz_results);
|
128 |
+
$template .= '<div class="overview-main-wrapper">';
|
129 |
//User detail
|
130 |
+
$template .= '<div class="candidate-detail-wrap overview-inner-wrap">';
|
131 |
+
$template .= '<div id="submitdiv" class="postbox "><h2 class="hndle ui-sortable-handle"><span>User Detail</span></h2>';
|
132 |
+
$template .= '<div class="inside">';
|
133 |
+
if( isset( $results_contact['contact'] ) && is_array( $results_contact['contact'] ) && !empty( $results_contact['contact'] ) ){
|
134 |
+
for ( $i = 0; $i < count( $results_contact["contact"] ); $i++ ) {
|
135 |
+
$template .= '<span class="result-candidate-span"><label>'. $results_contact["contact"][ $i ]["label"] .'</label><span>'. $results_contact["contact"][ $i ]["value"] .'</span></span>';
|
136 |
+
}
|
137 |
+
}else{
|
138 |
+
$template .= '<span class="result-candidate-span"><label>'. __( 'Name:', 'quiz-master-next' ) .'</label><span>'. $results_data->name .'</span></span>';
|
139 |
+
$template .= '<span class="result-candidate-span"><label>'. __( 'Business:', 'quiz-master-next' ) .'</label><span>'. $results_data->business .'</span></span>';
|
140 |
+
$template .= '<span class="result-candidate-span"><label>'. __( 'Phone:', 'quiz-master-next' ) .'</label><span>'. $results_data->phone .'</span></span>';
|
141 |
+
$template .= '<span class="result-candidate-span"><label>'. __( 'Email:', 'quiz-master-next' ) .'</label><span>'. $results_data->email .'</span></span>';
|
142 |
+
}
|
143 |
+
$template .= '</div>';
|
144 |
+
$template .= '</div>';
|
145 |
+
$template .= '</div>';
|
146 |
+
if( isset( $results_data->form_type ) && $results_data->form_type == 0 ){
|
147 |
//Scoreboard design
|
148 |
+
$template .= '<div class="candidate-detail-wrap overview-inner-wrap">';
|
149 |
+
$template .= '<div id="submitdiv" class="postbox "><h2 class="hndle ui-sortable-handle"><span>Scorecard</span></h2>';
|
150 |
+
$template .= '<div class="inside">';
|
151 |
+
$template .= '<span class="result-candidate-span"><label>'. __( 'Correct Answers:', 'quiz-master-next' ) .'</label><span>%AMOUNT_CORRECT% Out of %TOTAL_QUESTIONS%</span></span>';
|
152 |
+
$template .= '<span class="result-candidate-span"><label>'. __( 'Points:', 'quiz-master-next' ) .'</label><span>%POINT_SCORE% </span></span>';
|
153 |
+
$template .= '<span class="result-candidate-span"><label>'. __( 'Percentage:', 'quiz-master-next' ) .'</label><span>%CORRECT_SCORE%%</span></span>';
|
154 |
+
$template .= '</div>';
|
155 |
+
$template .= '</div>';
|
156 |
+
$template .= '</div>';
|
157 |
+
}
|
158 |
//Timer design
|
159 |
+
$template .= '<div class="overview-inner-wrap">';
|
160 |
+
$template .= '<div id="submitdiv" class="postbox "><h2 class="hndle ui-sortable-handle"><span>Time Taken</span></h2>';
|
161 |
+
$template .= '<div class="inside">';
|
162 |
+
$template .= '<div class="timer-div-wrapper">';
|
163 |
+
$mlw_qmn_results_array = @unserialize($results_data->quiz_results);
|
164 |
+
if ( is_array( $mlw_qmn_results_array ) ) {
|
165 |
+
$mlw_complete_hours = floor($mlw_qmn_results_array[0] / 3600);
|
166 |
+
if ( $mlw_complete_hours > 0 ) {
|
167 |
+
$template .= '<div>';
|
168 |
+
$template .= '<span class="hours timer-span">' . str_pad($mlw_complete_hours, 2, '0', STR_PAD_LEFT) . '</span>';
|
169 |
+
$hour_label = $mlw_complete_hours == 1 ? __( 'hour', 'quiz-master-next' ) : __( 'hours', 'quiz-master-next' );
|
170 |
+
$template .= '<span class="timer-text">'. $hour_label .'</span>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
$template .= '</div>';
|
172 |
+
}else{
|
173 |
+
$template .= '<div>';
|
174 |
+
$template .= '<span class="hours timer-span">00</span>';
|
175 |
+
$template .= '<span class="timer-text">hours</span>';
|
176 |
$template .= '</div>';
|
177 |
+
}
|
178 |
+
$mlw_complete_minutes = floor(($mlw_qmn_results_array[0] % 3600) / 60);
|
179 |
+
if ( $mlw_complete_minutes > 0 ) {
|
180 |
+
$template .= '<div>';
|
181 |
+
$template .= '<span class="minutes timer-span">' . str_pad($mlw_complete_minutes, 2, '0', STR_PAD_LEFT) . '</span>';
|
182 |
+
$min_label = $mlw_complete_minutes == 1 ? __( 'minute', 'quiz-master-next' ) : __( 'minutes', 'quiz-master-next' );
|
183 |
+
$template .= '<span class="timer-text">' . $min_label . '</span>';
|
184 |
$template .= '</div>';
|
185 |
+
} else {
|
186 |
+
$template .= '<div>';
|
187 |
+
$template .= '<span class="minutes timer-span">00</span>';
|
188 |
+
$template .= '<span class="timer-text">minutes</span>';
|
189 |
$template .= '</div>';
|
|
|
|
|
190 |
}
|
191 |
+
$mlw_complete_seconds = $mlw_qmn_results_array[0] % 60;
|
192 |
+
$template .= '<div>';
|
193 |
+
$template .= '<span class="seconds timer-span">' . str_pad($mlw_complete_seconds, 2, '0', STR_PAD_LEFT) . '</span>';
|
194 |
+
$sec_label = $mlw_complete_seconds == 1 ? __( 'second', 'quiz-master-next' ) : __( 'seconds', 'quiz-master-next' );
|
195 |
+
$template .= '<span class="timer-text">' . $sec_label . '</span>';
|
196 |
+
$template .= '</div>';
|
197 |
+
}
|
198 |
+
$template .= '</div>';
|
199 |
+
$template .= '</div>';
|
200 |
+
$template .= '</div>';
|
201 |
+
$template .= '</div>';
|
202 |
+
$template .= '</div>';
|
203 |
+
//Comment entered text
|
204 |
+
|
205 |
+
if ( $comments_enabled == "0") {
|
206 |
+
|
207 |
+
$template .= '<div class="comment-inner-wrap" style="">';
|
208 |
+
$template .= '<div id="submitdiv" class="postbox" ><h2 class="hndle ui-sortable-handle"><span>User Comments</span></h2>';
|
209 |
+
$template .= '<div class="inside">';
|
210 |
+
$template .= '%COMMENT_SECTION%';
|
211 |
+
$template .= '</div>';
|
212 |
+
$template .= '</div>';
|
213 |
+
$template .= '</div>';
|
214 |
+
|
215 |
+
}
|
216 |
+
// //Response div
|
217 |
+
$template .= '<div class="response-inner-wrap">';
|
218 |
+
$template .= '<div id="submitdiv" class="postbox "><h2 class="hndle ui-sortable-handle"><span>Responses</span></h2>';
|
219 |
+
$template .= '<div class="inside">';
|
220 |
+
$template .= '%QUESTIONS_ANSWERS%';
|
221 |
+
$template .= '</div>';
|
222 |
+
$template .= '</div>';
|
223 |
+
$template .= '</div>';
|
224 |
+
}else{
|
225 |
+
$template = 'Data is missing.';
|
226 |
+
}
|
227 |
+
}else{
|
228 |
//Old template design
|
229 |
+
if ( isset( $settings['results_details_template'] ) ) {
|
230 |
+
$template = htmlspecialchars_decode( $settings['results_details_template'], ENT_QUOTES );
|
231 |
+
} else {
|
232 |
+
$template = "<h2>Quiz Results for %QUIZ_NAME%</h2>
|
233 |
+
<p>%CONTACT_ALL%</p>
|
234 |
+
<p>Name Provided: %USER_NAME%</p>
|
235 |
+
<p>Business Provided: %USER_BUSINESS%</p>
|
236 |
+
<p>Phone Provided: %USER_PHONE%</p>
|
237 |
+
<p>Email Provided: %USER_EMAIL%</p>
|
238 |
+
<p>Score Received: %AMOUNT_CORRECT%/%TOTAL_QUESTIONS% or %CORRECT_SCORE%% or %POINT_SCORE% points</p>
|
239 |
+
<h2>Answers Provided:</h2>
|
240 |
+
<p>The user took %TIMER% to complete quiz.</p>
|
241 |
+
<p>Comments entered were: %COMMENT_SECTION%</p>
|
242 |
+
<p>The answers were as follows:</p>
|
243 |
+
%QUESTIONS_ANSWERS%";
|
244 |
+
}
|
245 |
+
}
|
246 |
+
|
247 |
// Prepare responses array.
|
248 |
+
$total_hidden_questions = 0;
|
249 |
+
if ( is_serialized( $results_data->quiz_results ) && is_array( @unserialize( $results_data->quiz_results ) ) ) {
|
250 |
+
$results = unserialize($results_data->quiz_results);
|
251 |
+
$total_hidden_questions = isset($results['hidden_questions']) ? count($results['hidden_questions']) : 0;
|
252 |
+
if ( ! isset( $results["contact"] ) ) {
|
253 |
+
$results["contact"] = array();
|
254 |
+
}
|
255 |
+
} else {
|
256 |
+
$template = str_replace( "%QUESTIONS_ANSWERS%" , $results_data->quiz_results, $template);
|
257 |
+
$template = str_replace( "%TIMER%" , '', $template);
|
258 |
+
$template = str_replace( "%COMMENT_SECTION%" , '', $template);
|
259 |
+
$results = array(
|
260 |
+
0,
|
261 |
+
array(),
|
262 |
+
'',
|
263 |
+
'contact' => array()
|
264 |
+
);
|
265 |
+
}
|
266 |
+
|
267 |
// Prepare full results array.
|
268 |
+
$results_array = array(
|
269 |
+
'quiz_id' => $results_data->quiz_id,
|
270 |
+
'quiz_name' => $results_data->quiz_name,
|
271 |
+
'quiz_system' => $results_data->quiz_system,
|
272 |
+
'form_type' => $results_data->form_type,
|
273 |
+
'user_name' => $results_data->name,
|
274 |
+
'user_business' => $results_data->business,
|
275 |
+
'user_email' => $results_data->email,
|
276 |
+
'user_phone' => $results_data->phone,
|
277 |
+
'user_id' => $results_data->user,
|
278 |
+
'timer' => isset($results[0]) ? $results[0] : 0,
|
279 |
+
'time_taken' => $results_data->time_taken,
|
280 |
+
'total_points' => $results_data->point_score,
|
281 |
+
'total_score' => $results_data->correct_score,
|
282 |
+
'total_correct' => $results_data->correct,
|
283 |
+
'total_questions' => $results_data->total - $total_hidden_questions,
|
284 |
+
'comments' => isset( $results[2] ) ? $results[2] : '',
|
285 |
+
'question_answers_array' => isset( $results[1] ) ? $results[1] : array(),
|
286 |
+
'contact' => $results["contact"],
|
287 |
+
'results' => $results,
|
288 |
+
);
|
289 |
|
290 |
// Pass through template variable filter
|
291 |
+
$template = apply_filters( 'mlw_qmn_template_variable_results_page', $template, $results_array );
|
292 |
+
$template = str_replace( "\n" , "<br>", $template );
|
293 |
+
if( $new_template_result_detail == 0 ){
|
294 |
+
echo '<div class="old_template_result_wrap">';
|
295 |
+
}
|
296 |
+
echo wp_kses_post( $template );
|
297 |
+
if( $new_template_result_detail == 0 ){
|
298 |
+
echo '</div>';
|
299 |
+
}
|
300 |
// Hook for below admin results
|
301 |
+
do_action( 'qsm_below_admin_results', $results_array );
|
302 |
}
|
303 |
|
304 |
|
313 |
$mlwQuizMasterNext->pluginHelper->register_results_settings_tab( "Results", "qsm_generate_results_details_tab" );
|
314 |
}
|
315 |
add_action( "plugins_loaded", 'qsm_results_details_tab' );
|
316 |
+
?>
|
php/admin/admin-results-page.php
CHANGED
@@ -22,12 +22,12 @@ function qsm_generate_admin_results_page() {
|
|
22 |
$tab_array = $mlwQuizMasterNext->pluginHelper->get_admin_results_tabs();
|
23 |
|
24 |
?>
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
// Cycles through the tabs and creates the navigation.
|
32 |
foreach ( $tab_array as $tab ) {
|
33 |
$active_class = '';
|
@@ -36,14 +36,14 @@ function qsm_generate_admin_results_page() {
|
|
36 |
}
|
37 |
$tab_url = "?page=mlw_quiz_results&tab={$tab['slug']}";
|
38 |
?>
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
}
|
43 |
?>
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
// Locates the active tab and calls its content function.
|
48 |
foreach ( $tab_array as $tab ) {
|
49 |
if ( $active_tab == $tab['slug'] ) {
|
@@ -51,10 +51,10 @@ function qsm_generate_admin_results_page() {
|
|
51 |
}
|
52 |
}
|
53 |
?>
|
54 |
-
|
55 |
-
|
56 |
|
57 |
-
|
58 |
|
59 |
}
|
60 |
|
@@ -215,39 +215,41 @@ function qsm_results_overview_tab_content() {
|
|
215 |
wp_enqueue_script( 'qmn_admin_js', plugins_url( '../../js/admin.js', __FILE__ ) );
|
216 |
wp_enqueue_style( 'qmn_jquery_redmond_theme', plugins_url( '../../css/jquery-ui.css', __FILE__ ) );
|
217 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ), array() );
|
|
|
218 |
?>
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
|
|
251 |
$mlw_qmn_previous_page = 0;
|
252 |
$mlw_current_page = $result_page + 1;
|
253 |
$mlw_total_pages = ceil( $qsm_results_count / $table_limit );
|
@@ -268,72 +270,77 @@ function qsm_results_overview_tab_content() {
|
|
268 |
if ( $result_page > 0 ) {
|
269 |
$mlw_qmn_previous_page = $result_page - 2;
|
270 |
?>
|
271 |
-
|
272 |
-
|
273 |
-
|
|
|
|
|
274 |
<?php
|
275 |
if ( $results_left > $table_limit ) {
|
276 |
?>
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
}
|
281 |
} elseif ( 0 == $result_page ) {
|
282 |
if ( $results_left > $table_limit ) {
|
283 |
?>
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
<?php
|
|
|
288 |
}
|
289 |
} elseif ( $results_left < $table_limit ) {
|
290 |
$mlw_qmn_previous_page = $result_page - 2;
|
291 |
?>
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
|
|
|
|
298 |
}
|
299 |
?>
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
if ( isset( $_GET['quiz_id'] ) ) {
|
306 |
?>
|
307 |
-
|
308 |
-
|
309 |
}
|
310 |
?>
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
<?php
|
338 |
$table_heading_displays = '';
|
339 |
$table_heading_displays .= '<th>' . esc_html__( 'Score', 'quiz-master-next' ) . '</th>';
|
@@ -349,9 +356,9 @@ function qsm_results_overview_tab_content() {
|
|
349 |
$table_heading_displays = apply_filters('mlw_qmn_admin_results_page_headings', $table_heading_displays);
|
350 |
echo $table_heading_displays;
|
351 |
?>
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
$quotes_list = "";
|
356 |
$display = "";
|
357 |
$alternate = "";
|
@@ -422,20 +429,20 @@ function qsm_results_overview_tab_content() {
|
|
422 |
$display .= "<tbody id=\"the-list\">{$quotes_list}</tbody>";
|
423 |
echo $display;
|
424 |
?>
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
}
|
440 |
|
441 |
-
?>
|
22 |
$tab_array = $mlwQuizMasterNext->pluginHelper->get_admin_results_tabs();
|
23 |
|
24 |
?>
|
25 |
+
<div class="wrap">
|
26 |
+
<h2><?php esc_html_e( 'Quiz Results', 'quiz-master-next' ); ?></h2>
|
27 |
+
<?php $mlwQuizMasterNext->alertManager->showAlerts(); ?>
|
28 |
+
<?php qsm_show_adverts(); ?>
|
29 |
+
<h2 class="nav-tab-wrapper">
|
30 |
+
<?php
|
31 |
// Cycles through the tabs and creates the navigation.
|
32 |
foreach ( $tab_array as $tab ) {
|
33 |
$active_class = '';
|
36 |
}
|
37 |
$tab_url = "?page=mlw_quiz_results&tab={$tab['slug']}";
|
38 |
?>
|
39 |
+
<a href="<?php echo esc_url_raw( $tab_url ); ?>"
|
40 |
+
class="nav-tab <?php echo esc_attr( $active_class ); ?>"><?php echo esc_html( $tab['title'] ); ?></a>
|
41 |
+
<?php
|
42 |
}
|
43 |
?>
|
44 |
+
</h2>
|
45 |
+
<div class="result-page-wrapper">
|
46 |
+
<?php
|
47 |
// Locates the active tab and calls its content function.
|
48 |
foreach ( $tab_array as $tab ) {
|
49 |
if ( $active_tab == $tab['slug'] ) {
|
51 |
}
|
52 |
}
|
53 |
?>
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
|
57 |
+
<?php
|
58 |
|
59 |
}
|
60 |
|
215 |
wp_enqueue_script( 'qmn_admin_js', plugins_url( '../../js/admin.js', __FILE__ ) );
|
216 |
wp_enqueue_style( 'qmn_jquery_redmond_theme', plugins_url( '../../css/jquery-ui.css', __FILE__ ) );
|
217 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ), array() );
|
218 |
+
wp_style_add_data( 'qsm_admin_style', 'rtl', 'replace' );
|
219 |
?>
|
220 |
+
<script type="text/javascript">
|
221 |
+
var $j = jQuery.noConflict();
|
222 |
+
|
223 |
+
function deleteResults(id, quizName) {
|
224 |
+
$j("#delete_dialog").dialog({
|
225 |
+
autoOpen: false,
|
226 |
+
buttons: {
|
227 |
+
Cancel: function() {
|
228 |
+
$j(this).dialog('close');
|
229 |
+
}
|
230 |
+
}
|
231 |
+
});
|
232 |
+
$j("#delete_dialog").dialog('open');
|
233 |
+
var idHidden = document.getElementById("result_id");
|
234 |
+
var idHiddenName = document.getElementById("delete_quiz_name");
|
235 |
+
idHidden.value = id;
|
236 |
+
idHiddenName.value = quizName;
|
237 |
+
};
|
238 |
+
</script>
|
239 |
+
<div class="tablenav top">
|
240 |
+
<div class="alignleft actions bulkactions">
|
241 |
+
<a id="result_bulkaction" href="javascript: void(0);"
|
242 |
+
onclick="if( confirm('Are you sure?') ){ document.bulk_delete_form.submit(); }" class="button action">Bulk
|
243 |
+
Delete</a>
|
244 |
+
<a href="javascript: void(0);"
|
245 |
+
onclick="if( confirm('Are you sure?') ){ document.getElementById('bulk_permanent_delete').value = '1'; document.bulk_delete_form.submit(); }"
|
246 |
+
class="button action">Bulk Permanent Delete</a>
|
247 |
+
</div>
|
248 |
+
<div class="tablenav-pages">
|
249 |
+
<span
|
250 |
+
class="displaying-num"><?php echo sprintf( _n( 'One result', '%s results', $qsm_results_count, 'quiz-master-next' ), number_format_i18n( $qsm_results_count ) ); ?></span>
|
251 |
+
<span class="pagination-links">
|
252 |
+
<?php
|
253 |
$mlw_qmn_previous_page = 0;
|
254 |
$mlw_current_page = $result_page + 1;
|
255 |
$mlw_total_pages = ceil( $qsm_results_count / $table_limit );
|
270 |
if ( $result_page > 0 ) {
|
271 |
$mlw_qmn_previous_page = $result_page - 2;
|
272 |
?>
|
273 |
+
<a class="prev-page button"
|
274 |
+
href="<?php echo esc_url_raw( "?page=mlw_quiz_results&&qsm_results_page=$mlw_qmn_previous_page$url_query_string" ); ?>">
|
275 |
+
<< /a>
|
276 |
+
<span class="paging-input"><?php echo esc_html( $mlw_current_page ); ?> of
|
277 |
+
<?php echo esc_html( $mlw_total_pages ); ?></span>
|
278 |
<?php
|
279 |
if ( $results_left > $table_limit ) {
|
280 |
?>
|
281 |
+
<a class="next-page button"
|
282 |
+
href="<?php echo esc_url_raw( "?page=mlw_quiz_results&&qsm_results_page=$result_page$url_query_string" ); ?>">></a>
|
283 |
+
<?php
|
284 |
}
|
285 |
} elseif ( 0 == $result_page ) {
|
286 |
if ( $results_left > $table_limit ) {
|
287 |
?>
|
288 |
+
<span class="paging-input"><?php echo esc_html( $mlw_current_page ); ?> of
|
289 |
+
<?php echo esc_html( $mlw_total_pages ); ?></span>
|
290 |
+
<a class="next-page button"
|
291 |
+
href="<?php echo esc_url_raw( "?page=mlw_quiz_results&&qsm_results_page=$result_page$url_query_string" ); ?>">></a>
|
292 |
+
<?php
|
293 |
}
|
294 |
} elseif ( $results_left < $table_limit ) {
|
295 |
$mlw_qmn_previous_page = $result_page - 2;
|
296 |
?>
|
297 |
+
<a class="prev-page button"
|
298 |
+
href="<?php echo esc_url_raw( "?page=mlw_quiz_results&&qsm_results_page=$mlw_qmn_previous_page$url_query_string" ); ?>">
|
299 |
+
<< /a>
|
300 |
+
<span class="paging-input"><?php echo esc_html( $mlw_current_page ); ?> of
|
301 |
+
<?php echo esc_html( $mlw_total_pages ); ?></span>
|
302 |
+
<a class="next-page button"
|
303 |
+
href="<?php echo esc_url_raw( "?page=mlw_quiz_results&&qsm_results_page=$result_page$url_query_string" ); ?>">></a>
|
304 |
+
<?php
|
305 |
}
|
306 |
?>
|
307 |
+
</span>
|
308 |
+
<br class="clear">
|
309 |
+
</div>
|
310 |
+
<form action='' method="get">
|
311 |
+
<?php
|
312 |
if ( isset( $_GET['quiz_id'] ) ) {
|
313 |
?>
|
314 |
+
<input type="hidden" name="quiz_id" value="<?php echo esc_attr( intval( $_GET['quiz_id'] ) ); ?>" />
|
315 |
+
<?php
|
316 |
}
|
317 |
?>
|
318 |
+
<input type="hidden" name="page" value="mlw_quiz_results">
|
319 |
+
<p class="search-box">
|
320 |
+
<label for="qsm_search_phrase"><?php esc_html_e( 'Search Results', 'quiz-master-next' ); ?></label>
|
321 |
+
<input type="search" id="qsm_search_phrase" name="qsm_search_phrase" value="">
|
322 |
+
<label for="qmn_order_by"><?php esc_html_e( 'Order By', 'quiz-master-next' ); ?></label>
|
323 |
+
<select id="qmn_order_by" name="qmn_order_by">
|
324 |
+
<option value="quiz_name"><?php esc_html_e( 'Quiz Name', 'quiz-master-next' ); ?></option>
|
325 |
+
<option value="name"><?php esc_html_e( 'User Name', 'quiz-master-next' ); ?></option>
|
326 |
+
<option value="point_score"><?php esc_html_e( 'Points', 'quiz-master-next' ); ?></option>
|
327 |
+
<option value="correct_score"><?php esc_html_e( 'Correct Percent', 'quiz-master-next' ); ?></option>
|
328 |
+
<option value="default"><?php esc_html_e( 'Default (Time)', 'quiz-master-next' ); ?></option>
|
329 |
+
</select>
|
330 |
+
<button class="button"><?php esc_html_e( 'Search Results', 'quiz-master-next' ); ?></button>
|
331 |
+
</p>
|
332 |
+
</form>
|
333 |
+
</div>
|
334 |
+
|
335 |
+
<form action="" method="post" name="bulk_delete_form">
|
336 |
+
<input type="hidden" name="bulk_delete" value="confirmation" />
|
337 |
+
<input type="hidden" name="bulk_permanent_delete" id="bulk_permanent_delete" value="0" />
|
338 |
+
<?php wp_nonce_field( 'bulk_delete', 'bulk_delete_nonce' ); ?>
|
339 |
+
<table class=widefat>
|
340 |
+
<thead>
|
341 |
+
<tr>
|
342 |
+
<th><input type="checkbox" id="qmn_check_all" /></th>
|
343 |
+
<th><?php esc_html_e( 'Quiz Name','quiz-master-next' ); ?></th>
|
344 |
<?php
|
345 |
$table_heading_displays = '';
|
346 |
$table_heading_displays .= '<th>' . esc_html__( 'Score', 'quiz-master-next' ) . '</th>';
|
356 |
$table_heading_displays = apply_filters('mlw_qmn_admin_results_page_headings', $table_heading_displays);
|
357 |
echo $table_heading_displays;
|
358 |
?>
|
359 |
+
</tr>
|
360 |
+
</thead>
|
361 |
+
<?php
|
362 |
$quotes_list = "";
|
363 |
$display = "";
|
364 |
$alternate = "";
|
429 |
$display .= "<tbody id=\"the-list\">{$quotes_list}</tbody>";
|
430 |
echo $display;
|
431 |
?>
|
432 |
+
</table>
|
433 |
+
</form>
|
434 |
+
|
435 |
+
<div id="delete_dialog" title="Delete Results?" style="display:none;">
|
436 |
+
<h3><b><?php esc_html_e( 'Are you sure you want to delete these results?', 'quiz-master-next' ); ?></b></h3>
|
437 |
+
<form action='' method='post'>
|
438 |
+
<?php wp_nonce_field( 'delete_results', 'delete_results_nonce' ); ?>
|
439 |
+
<input type='hidden' id='result_id' name='result_id' value='' />
|
440 |
+
<input type='hidden' id='delete_quiz_name' name='delete_quiz_name' value='' />
|
441 |
+
<p class='submit'><input type='submit' class='button-primary'
|
442 |
+
value='<?php esc_html_e( 'Delete Results', 'quiz-master-next' ); ?>' /></p>
|
443 |
+
</form>
|
444 |
+
</div>
|
445 |
+
<?php
|
446 |
}
|
447 |
|
448 |
+
?>
|
php/admin/functions.php
CHANGED
@@ -563,14 +563,14 @@ function qsm_create_new_quiz_wizard() {
|
|
563 |
foreach ( $popular_addons as $key => $single_arr ) {
|
564 |
?>
|
565 |
<div>
|
566 |
-
<a href="<?php echo $single_arr['link']; ?>?utm_source=
|
567 |
target="_blank" rel="noopener">
|
568 |
<span class="addon-itd-wrap">
|
569 |
<img alt="" src="<?php echo $single_arr['img']; ?>" />
|
570 |
</span>
|
571 |
<span class="addon-price">
|
572 |
<a class="addon-get-link"
|
573 |
-
href="<?php echo $single_arr['link']; ?>?utm_source=
|
574 |
target="_blank" rel="noopener">
|
575 |
<?php
|
576 |
_e( 'Buy now', 'quiz-master-next' );
|
@@ -592,7 +592,7 @@ function qsm_create_new_quiz_wizard() {
|
|
592 |
<div class="qsm-addon-list-right">
|
593 |
<span><?php _e( '40+ addons available', 'quiz-master-next' ); ?></span>
|
594 |
<a style="text-decoration: none; font-size: 15px;" rel="noopener"
|
595 |
-
href="http://quizandsurveymaster.com/addons/?utm_source=
|
596 |
target="_blank"><?php _e( 'Browse All Addons', 'quiz-master-next' ); ?></a>
|
597 |
</div>
|
598 |
</div>
|
@@ -873,9 +873,9 @@ function qsm_get_default_wizard_themes() {
|
|
873 |
<img alt="" src="<?php echo $theme_screenshot; ?>" />
|
874 |
<div class="market-theme-url">
|
875 |
<a class="button button-primary" target="_blank" rel="noopener"
|
876 |
-
href="<?php echo $theme_demo;
|
877 |
<a class="button" target="_blank" rel="noopener"
|
878 |
-
href="<?php echo $theme_url;
|
879 |
</div>
|
880 |
</div>
|
881 |
<div class="theme-id-container">
|
@@ -901,9 +901,9 @@ function qsm_get_market_themes() {
|
|
901 |
<img alt="" src="<?php echo $theme_screenshot; ?>" />
|
902 |
<div class="market-theme-url">
|
903 |
<a class="button button-primary" target="_blank" rel="noopener"
|
904 |
-
href="<?php echo $theme_demo;
|
905 |
<a class="button" target="_blank" rel="noopener"
|
906 |
-
href="<?php echo $theme_url;
|
907 |
</div>
|
908 |
</div>
|
909 |
<div class="theme-id-container">
|
@@ -934,8 +934,12 @@ function qsm_generate_roadmap_page() {
|
|
934 |
iframe {
|
935 |
height: 1350px;
|
936 |
}
|
|
|
|
|
|
|
|
|
937 |
</style>
|
938 |
-
<iframe src="https://app.productstash.io/roadmaps/5f7b1a36636db50029f51d5c/public" height="
|
939 |
frameborder="0"></iframe>
|
940 |
<script>
|
941 |
var ps_config = {
|
563 |
foreach ( $popular_addons as $key => $single_arr ) {
|
564 |
?>
|
565 |
<div>
|
566 |
+
<a href="<?php echo $single_arr['link']; ?>?utm_source=wizard&utm_medium=plugin&utm_content=all-addons-top&utm_campaign=qsm_plugin"
|
567 |
target="_blank" rel="noopener">
|
568 |
<span class="addon-itd-wrap">
|
569 |
<img alt="" src="<?php echo $single_arr['img']; ?>" />
|
570 |
</span>
|
571 |
<span class="addon-price">
|
572 |
<a class="addon-get-link"
|
573 |
+
href="<?php echo $single_arr['link']; ?>?utm_source=wizard&utm_medium=plugin&utm_content=all-addons-top&utm_campaign=qsm_plugin"
|
574 |
target="_blank" rel="noopener">
|
575 |
<?php
|
576 |
_e( 'Buy now', 'quiz-master-next' );
|
592 |
<div class="qsm-addon-list-right">
|
593 |
<span><?php _e( '40+ addons available', 'quiz-master-next' ); ?></span>
|
594 |
<a style="text-decoration: none; font-size: 15px;" rel="noopener"
|
595 |
+
href="http://quizandsurveymaster.com/addons/?utm_source=wizard&utm_medium=plugin&utm_content=all-addons-top&utm_campaign=qsm_plugin"
|
596 |
target="_blank"><?php _e( 'Browse All Addons', 'quiz-master-next' ); ?></a>
|
597 |
</div>
|
598 |
</div>
|
873 |
<img alt="" src="<?php echo $theme_screenshot; ?>" />
|
874 |
<div class="market-theme-url">
|
875 |
<a class="button button-primary" target="_blank" rel="noopener"
|
876 |
+
href="<?php echo $theme_demo; ?>?utm_source=plugin&utm_medium=wizard"><?php _e( 'Live Preview', 'quiz-master-next' ); ?></a>
|
877 |
<a class="button" target="_blank" rel="noopener"
|
878 |
+
href="<?php echo $theme_url; ?>?utm_source=plugin&utm_medium=wizard"><?php _e( 'Buy Now', 'quiz-master-next' ); ?></a>
|
879 |
</div>
|
880 |
</div>
|
881 |
<div class="theme-id-container">
|
901 |
<img alt="" src="<?php echo $theme_screenshot; ?>" />
|
902 |
<div class="market-theme-url">
|
903 |
<a class="button button-primary" target="_blank" rel="noopener"
|
904 |
+
href="<?php echo $theme_demo; ?>?utm_source=plugin&utm_medium=wizard"><?php _e( 'Live Preview', 'quiz-master-next' ); ?></a>
|
905 |
<a class="button" target="_blank" rel="noopener"
|
906 |
+
href="<?php echo $theme_url; ?>?utm_source=plugin&utm_medium=wizard"><?php _e( 'Buy Now', 'quiz-master-next' ); ?></a>
|
907 |
</div>
|
908 |
</div>
|
909 |
<div class="theme-id-container">
|
934 |
iframe {
|
935 |
height: 1350px;
|
936 |
}
|
937 |
+
|
938 |
+
body::-webkit-scrollbar {
|
939 |
+
width: 0px;
|
940 |
+
}
|
941 |
</style>
|
942 |
+
<iframe src="https://app.productstash.io/roadmaps/5f7b1a36636db50029f51d5c/public" height="1350px" width="100%"
|
943 |
frameborder="0"></iframe>
|
944 |
<script>
|
945 |
var ps_config = {
|
php/admin/options-page-questions-tab.php
CHANGED
@@ -90,6 +90,7 @@ function qsm_options_questions_tab_content() {
|
|
90 |
wp_enqueue_script( 'qsm_admin_question_js', plugins_url( '../../js/qsm-admin-question.js', __FILE__ ), array( 'backbone', 'underscore', 'jquery-ui-sortable', 'wp-util', 'micromodal_script', 'qmn_admin_js' ), $mlwQuizMasterNext->version, true );
|
91 |
wp_localize_script( 'qsm_admin_question_js', 'qsmQuestionSettings', $json_data );
|
92 |
wp_enqueue_style( 'qsm_admin_question_css', plugins_url( '../../css/qsm-admin-question.css', __FILE__ ), array(), $mlwQuizMasterNext->version );
|
|
|
93 |
wp_enqueue_script( 'math_jax', '//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' );
|
94 |
wp_enqueue_editor();
|
95 |
wp_enqueue_media();
|
@@ -242,11 +243,23 @@ function qsm_options_questions_tab_content() {
|
|
242 |
'question_type_id' => '9',
|
243 |
'description' => __( 'For this question type, users will see a Captcha field on front end.', 'quiz-master-next' ),
|
244 |
),
|
245 |
-
array(
|
246 |
-
|
247 |
-
|
248 |
-
),
|
249 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
$description_arr = apply_filters( 'qsm_question_type_description', $description_arr );
|
251 |
if ( $description_arr ) {
|
252 |
foreach ( $description_arr as $value ) {
|
@@ -259,13 +272,6 @@ function qsm_options_questions_tab_content() {
|
|
259 |
}
|
260 |
?>
|
261 |
</div>
|
262 |
-
<?php
|
263 |
-
$polar_class = $polar_question_use = '';
|
264 |
-
if ( $form_type == 0 && ( $quiz_system == 1 || $quiz_system == 3 ) ) {
|
265 |
-
$polar_class = 'qsm_show_question_type_13';
|
266 |
-
$polar_question_use = ',13';
|
267 |
-
}
|
268 |
-
?>
|
269 |
<div id="qsm_optoins_wrapper"
|
270 |
class="qsm-row qsm_hide_for_other qsm_show_question_type_0 qsm_show_question_type_1 qsm_show_question_type_2 qsm_show_question_type_3 qsm_show_question_type_4 qsm_show_question_type_5 qsm_show_question_type_7 qsm_show_question_type_10 qsm_show_question_type_12 qsm_show_question_type_14 <?php echo $polar_class; ?>">
|
271 |
<label class="answer-header">
|
@@ -643,6 +649,8 @@ function qsm_options_questions_tab_content() {
|
|
643 |
<# if ( 0 == data.quiz_system || 3 == data.quiz_system ) { #>
|
644 |
<div><label class="correct-answer"><input type="checkbox" class="answer-correct" value="1" <# if ( 1 == data.correct ) { #> checked="checked" <# } #>/> <?php _e( 'Correct', 'quiz-master-next' ); ?></label></div>
|
645 |
<# } #>
|
|
|
|
|
646 |
<# } #>
|
647 |
<?php do_action( 'qsm_admin_single_answer_option_fields' ); ?>
|
648 |
</div>
|
90 |
wp_enqueue_script( 'qsm_admin_question_js', plugins_url( '../../js/qsm-admin-question.js', __FILE__ ), array( 'backbone', 'underscore', 'jquery-ui-sortable', 'wp-util', 'micromodal_script', 'qmn_admin_js' ), $mlwQuizMasterNext->version, true );
|
91 |
wp_localize_script( 'qsm_admin_question_js', 'qsmQuestionSettings', $json_data );
|
92 |
wp_enqueue_style( 'qsm_admin_question_css', plugins_url( '../../css/qsm-admin-question.css', __FILE__ ), array(), $mlwQuizMasterNext->version );
|
93 |
+
wp_style_add_data( 'qsm_admin_question_css', 'rtl', 'replace' );
|
94 |
wp_enqueue_script( 'math_jax', '//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' );
|
95 |
wp_enqueue_editor();
|
96 |
wp_enqueue_media();
|
243 |
'question_type_id' => '9',
|
244 |
'description' => __( 'For this question type, users will see a Captcha field on front end.', 'quiz-master-next' ),
|
245 |
),
|
246 |
+
// array(
|
247 |
+
// 'question_type_id' => '13',
|
248 |
+
// 'description' => __( 'Use points based grading system for Polar questions.', 'quiz-master-next' ),
|
249 |
+
// ),
|
250 |
);
|
251 |
+
|
252 |
+
// disabling polar for form type quiz and system correct/incorrect
|
253 |
+
if ( $form_type == 0 && $quiz_system == 0 ) {
|
254 |
+
$polar_class = $polar_question_use = '';
|
255 |
+
$description_arr[] = array(
|
256 |
+
'question_type_id' => '13',
|
257 |
+
'description' => __( 'Use points based grading system for Polar questions.', 'quiz-master-next' ),
|
258 |
+
);
|
259 |
+
} else {
|
260 |
+
$polar_class = 'qsm_show_question_type_13';
|
261 |
+
$polar_question_use = ',13';
|
262 |
+
}
|
263 |
$description_arr = apply_filters( 'qsm_question_type_description', $description_arr );
|
264 |
if ( $description_arr ) {
|
265 |
foreach ( $description_arr as $value ) {
|
272 |
}
|
273 |
?>
|
274 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
<div id="qsm_optoins_wrapper"
|
276 |
class="qsm-row qsm_hide_for_other qsm_show_question_type_0 qsm_show_question_type_1 qsm_show_question_type_2 qsm_show_question_type_3 qsm_show_question_type_4 qsm_show_question_type_5 qsm_show_question_type_7 qsm_show_question_type_10 qsm_show_question_type_12 qsm_show_question_type_14 <?php echo $polar_class; ?>">
|
277 |
<label class="answer-header">
|
649 |
<# if ( 0 == data.quiz_system || 3 == data.quiz_system ) { #>
|
650 |
<div><label class="correct-answer"><input type="checkbox" class="answer-correct" value="1" <# if ( 1 == data.correct ) { #> checked="checked" <# } #>/> <?php _e( 'Correct', 'quiz-master-next' ); ?></label></div>
|
651 |
<# } #>
|
652 |
+
<# } else { #>
|
653 |
+
<div><input type="text" class="answer-points" value="{{data.points}}" placeholder="Points"/></div>
|
654 |
<# } #>
|
655 |
<?php do_action( 'qsm_admin_single_answer_option_fields' ); ?>
|
656 |
</div>
|
php/admin/options-page-style-tab.php
CHANGED
@@ -30,7 +30,7 @@ function qsm_options_styling_tab_content() {
|
|
30 |
global $mlwQuizMasterNext;
|
31 |
|
32 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ), array(), $mlwQuizMasterNext->version );
|
33 |
-
|
34 |
$quiz_id = intval( $_GET['quiz_id'] );
|
35 |
if ( isset( $_POST['qsm_style_tab_nonce'] ) && wp_verify_nonce( $_POST['qsm_style_tab_nonce'], 'qsm_style_tab_nonce_action' ) && isset( $_POST['save_style_options'] ) && 'confirmation' == $_POST['save_style_options'] ) {
|
36 |
|
@@ -98,6 +98,7 @@ jQuery(document).ready(function() {
|
|
98 |
wp_enqueue_script( 'qsm_theme_color_js', plugins_url( '../../js/qsm-theme-color.js', __FILE__ ), array( 'jquery', 'wp-color-picker', 'micromodal_script' ), $mlwQuizMasterNext->version );
|
99 |
wp_enqueue_style( 'wp-color-picker' );
|
100 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ) );
|
|
|
101 |
wp_enqueue_media();
|
102 |
?>
|
103 |
<script type="text/javascript">
|
30 |
global $mlwQuizMasterNext;
|
31 |
|
32 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ), array(), $mlwQuizMasterNext->version );
|
33 |
+
wp_style_add_data( 'qsm_admin_style', 'rtl', 'replace' );
|
34 |
$quiz_id = intval( $_GET['quiz_id'] );
|
35 |
if ( isset( $_POST['qsm_style_tab_nonce'] ) && wp_verify_nonce( $_POST['qsm_style_tab_nonce'], 'qsm_style_tab_nonce_action' ) && isset( $_POST['save_style_options'] ) && 'confirmation' == $_POST['save_style_options'] ) {
|
36 |
|
98 |
wp_enqueue_script( 'qsm_theme_color_js', plugins_url( '../../js/qsm-theme-color.js', __FILE__ ), array( 'jquery', 'wp-color-picker', 'micromodal_script' ), $mlwQuizMasterNext->version );
|
99 |
wp_enqueue_style( 'wp-color-picker' );
|
100 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ) );
|
101 |
+
wp_style_add_data( 'qsm_admin_style', 'rtl', 'replace' );
|
102 |
wp_enqueue_media();
|
103 |
?>
|
104 |
<script type="text/javascript">
|
php/admin/quiz-options-page.php
CHANGED
@@ -61,7 +61,8 @@ function qsm_generate_quiz_options() {
|
|
61 |
wp_enqueue_script( 'qmn_admin_js', plugins_url( '../../js/admin.js', __FILE__ ), array( 'backbone', 'underscore', 'wp-util' ), $mlwQuizMasterNext->version, true );
|
62 |
wp_enqueue_script( 'micromodal_script', plugins_url( '../../js/micromodal.min.js', __FILE__ ) );
|
63 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ), array(), $mlwQuizMasterNext->version );
|
64 |
-
|
|
|
65 |
wp_enqueue_script( 'math_jax', '//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML' );
|
66 |
wp_localize_script('qmn_admin_js', 'qsmTextTabObject', array( 'quiz_id' => $quiz_id ));
|
67 |
// Edit Quiz Name.
|
@@ -87,7 +88,7 @@ function qsm_generate_quiz_options() {
|
|
87 |
}
|
88 |
}
|
89 |
?>
|
90 |
-
|
91 |
// Get quiz post based on quiz id
|
92 |
$args = array(
|
93 |
'posts_per_page' => 1,
|
@@ -115,40 +116,42 @@ function qsm_generate_quiz_options() {
|
|
115 |
/* Restore original Post Data */
|
116 |
wp_reset_postdata();
|
117 |
}
|
118 |
-
?>
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
if( $post_status == 'draft' ){ ?>
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
|
|
131 |
}
|
132 |
-
?>
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
|
|
144 |
// Puts all output from tab into ob_get_contents below.
|
145 |
ob_start();
|
146 |
|
147 |
// If the quiz is set and not empty.
|
148 |
if ( $quiz_id ) {
|
149 |
?>
|
150 |
-
|
151 |
-
|
152 |
// Cycles through registered tabs to create navigation.
|
153 |
foreach ( $tab_array as $tab ) {
|
154 |
$active_class = '';
|
@@ -156,13 +159,14 @@ function qsm_generate_quiz_options() {
|
|
156 |
$active_class = 'nav-tab-active';
|
157 |
}
|
158 |
?>
|
159 |
-
|
160 |
-
|
|
|
161 |
}
|
162 |
?>
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
// Cycles through tabs looking for current tab to create tab's content.
|
167 |
foreach ( $tab_array as $tab ) {
|
168 |
if ( $active_tab == $tab['slug'] ) {
|
@@ -170,63 +174,68 @@ function qsm_generate_quiz_options() {
|
|
170 |
}
|
171 |
}
|
172 |
?>
|
173 |
-
|
174 |
-
|
175 |
} else {
|
176 |
?>
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
|
|
|
|
182 |
}
|
183 |
$mlw_output = ob_get_contents();
|
184 |
ob_end_clean();
|
185 |
|
186 |
// Shows alerts, ads, then tab content.
|
187 |
?>
|
188 |
-
|
189 |
-
|
190 |
$mlwQuizMasterNext->alertManager->showAlerts();
|
191 |
?>
|
192 |
-
|
193 |
-
|
194 |
qsm_show_adverts();
|
195 |
echo $mlw_output;
|
196 |
?>
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
|
|
|
|
219 |
</div>
|
220 |
</div>
|
|
|
221 |
|
222 |
-
|
223 |
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
<p>{{data.message}}</p>
|
228 |
</div>
|
229 |
</script>
|
230 |
<?php
|
231 |
}
|
232 |
-
?>
|
61 |
wp_enqueue_script( 'qmn_admin_js', plugins_url( '../../js/admin.js', __FILE__ ), array( 'backbone', 'underscore', 'wp-util' ), $mlwQuizMasterNext->version, true );
|
62 |
wp_enqueue_script( 'micromodal_script', plugins_url( '../../js/micromodal.min.js', __FILE__ ) );
|
63 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ), array(), $mlwQuizMasterNext->version );
|
64 |
+
wp_style_add_data( 'qsm_admin_style', 'rtl', 'replace' );
|
65 |
+
wp_enqueue_style( 'qmn_jquery_redmond_theme', plugins_url( '../../css/jquery-ui.css', __FILE__ ) );
|
66 |
wp_enqueue_script( 'math_jax', '//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML' );
|
67 |
wp_localize_script('qmn_admin_js', 'qsmTextTabObject', array( 'quiz_id' => $quiz_id ));
|
68 |
// Edit Quiz Name.
|
88 |
}
|
89 |
}
|
90 |
?>
|
91 |
+
<?php
|
92 |
// Get quiz post based on quiz id
|
93 |
$args = array(
|
94 |
'posts_per_page' => 1,
|
116 |
/* Restore original Post Data */
|
117 |
wp_reset_postdata();
|
118 |
}
|
119 |
+
?>
|
120 |
+
<div class="wrap">
|
121 |
+
<div class='mlw_quiz_options'>
|
122 |
+
<h1 style="margin-bottom: 10px;">
|
123 |
+
<?php echo $quiz_name; ?>
|
124 |
+
<?php
|
125 |
if( $post_status == 'draft' ){ ?>
|
126 |
+
<form method="POST" action="">
|
127 |
+
<?php wp_nonce_field( 'qsm_update_quiz_status','qsm_update_quiz_status_nonce' ); ?>
|
128 |
+
<input type="hidden" name="quiz_post_id" value="<?php echo $post_id; ?>" />
|
129 |
+
<input type="submit" class="button button-primary"
|
130 |
+
value="<?php _e('Publish Quiz', 'quiz-master-next'); ?>" />
|
131 |
+
</form>
|
132 |
+
<?php
|
133 |
}
|
134 |
+
?>
|
135 |
+
<a href="#" title="Edit Name" class="edit-quiz-name">
|
136 |
+
<span class="dashicons dashicons-edit"></span>
|
137 |
+
</a>
|
138 |
+
<a class="button button-default qsm-btn-quiz-edit" rel="noopener" target="_blank"
|
139 |
+
href="<?php echo $post_permalink; ?>">
|
140 |
+
<span class="dashicons dashicons-welcome-view-site"></span>
|
141 |
+
</a>
|
142 |
+
<a class="button button-default qsm-btn-quiz-edit" href="<?php echo $edit_link; ?>">
|
143 |
+
<span class="dashicons dashicons-admin-settings"></span>
|
144 |
+
</a>
|
145 |
+
</h1>
|
146 |
+
<?php
|
147 |
// Puts all output from tab into ob_get_contents below.
|
148 |
ob_start();
|
149 |
|
150 |
// If the quiz is set and not empty.
|
151 |
if ( $quiz_id ) {
|
152 |
?>
|
153 |
+
<nav class="nav-tab-wrapper">
|
154 |
+
<?php
|
155 |
// Cycles through registered tabs to create navigation.
|
156 |
foreach ( $tab_array as $tab ) {
|
157 |
$active_class = '';
|
159 |
$active_class = 'nav-tab-active';
|
160 |
}
|
161 |
?>
|
162 |
+
<a href="?page=mlw_quiz_options&quiz_id=<?php echo esc_attr( $quiz_id ); ?>&tab=<?php echo esc_attr( $tab['slug'] ); ?>"
|
163 |
+
class="nav-tab <?php echo esc_attr( $active_class ); ?>"><?php echo esc_html( $tab['title'] ); ?></a>
|
164 |
+
<?php
|
165 |
}
|
166 |
?>
|
167 |
+
</nav>
|
168 |
+
<div class="qsm_tab_content">
|
169 |
+
<?php
|
170 |
// Cycles through tabs looking for current tab to create tab's content.
|
171 |
foreach ( $tab_array as $tab ) {
|
172 |
if ( $active_tab == $tab['slug'] ) {
|
174 |
}
|
175 |
}
|
176 |
?>
|
177 |
+
</div>
|
178 |
+
<?php
|
179 |
} else {
|
180 |
?>
|
181 |
+
<div class="ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em;">
|
182 |
+
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
|
183 |
+
<strong><?php esc_html_e( 'Error!', 'quiz-master-next' ); ?></strong>
|
184 |
+
<?php esc_html_e( 'Please go to the quizzes page and click on the Edit link from the quiz you wish to edit.', 'quiz-master-next' ); ?>
|
185 |
+
</p>
|
186 |
+
</div>
|
187 |
+
<?php
|
188 |
}
|
189 |
$mlw_output = ob_get_contents();
|
190 |
ob_end_clean();
|
191 |
|
192 |
// Shows alerts, ads, then tab content.
|
193 |
?>
|
194 |
+
<div class="qsm-alerts">
|
195 |
+
<?php
|
196 |
$mlwQuizMasterNext->alertManager->showAlerts();
|
197 |
?>
|
198 |
+
</div>
|
199 |
+
<?php
|
200 |
qsm_show_adverts();
|
201 |
echo $mlw_output;
|
202 |
?>
|
203 |
+
</div>
|
204 |
+
<div class="qsm-popup qsm-popup-slide" id="modal-3" aria-hidden="false">
|
205 |
+
<div class="qsm-popup__overlay" tabindex="-1" data-micromodal-close="">
|
206 |
+
<div class="qsm-popup__container" role="dialog" aria-modal="true" aria-labelledby="modal-3-title">
|
207 |
+
<header class="qsm-popup__header">
|
208 |
+
<h2 class="qsm-popup__title" id="modal-3-title">Edit Name</h2>
|
209 |
+
<a class="qsm-popup__close" aria-label="Close modal" data-micromodal-close=""></a>
|
210 |
+
</header>
|
211 |
+
<main class="qsm-popup__content" id="modal-3-content">
|
212 |
+
<form action='' method='post' id="edit-name-form">
|
213 |
+
<label><?php _e( 'Name', 'quiz-master-next' ); ?></label>
|
214 |
+
<input type="text" id="edit_quiz_name" name="edit_quiz_name"
|
215 |
+
value="<?php echo $quiz_name; ?>" />
|
216 |
+
<input type="hidden" id="edit_quiz_id" name="edit_quiz_id"
|
217 |
+
value="<?php echo isset($_GET['quiz_id']) && is_int($_GET['quiz_id']) ? (int) $_GET['quiz_id'] : '0'; ?>" />
|
218 |
+
<?php wp_nonce_field( 'qsm_edit_name_quiz', 'qsm_edit_name_quiz_nonce' ); ?>
|
219 |
+
</form>
|
220 |
+
</main>
|
221 |
+
<footer class="qsm-popup__footer">
|
222 |
+
<button id="edit-name-button" class="qsm-popup__btn qsm-popup__btn-primary">Edit</button>
|
223 |
+
<button class="qsm-popup__btn" data-micromodal-close=""
|
224 |
+
aria-label="Close this dialog window">Cancel</button>
|
225 |
+
</footer>
|
226 |
+
</div>
|
227 |
</div>
|
228 |
</div>
|
229 |
+
</div>
|
230 |
|
231 |
+
<!-- Backbone Views -->
|
232 |
|
233 |
+
<!-- View for Notices -->
|
234 |
+
<script type="text/template" id="tmpl-notice">
|
235 |
+
<div class="notice notice-large notice-{{data.type}}">
|
236 |
<p>{{data.message}}</p>
|
237 |
</div>
|
238 |
</script>
|
239 |
<?php
|
240 |
}
|
241 |
+
?>
|
php/admin/quizzes-page.php
CHANGED
@@ -4,8 +4,8 @@
|
|
4 |
*
|
5 |
* @package QSM
|
6 |
*/
|
7 |
-
if (!defined('ABSPATH')) {
|
8 |
-
|
9 |
}
|
10 |
|
11 |
/**
|
@@ -15,657 +15,741 @@ if (!defined('ABSPATH')) {
|
|
15 |
*/
|
16 |
function qsm_generate_quizzes_surveys_page() {
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
$
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
|
219 |
$quiz_results_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(result_id) FROM {$wpdb->prefix}mlw_results WHERE `deleted`= 0 AND `quiz_id`= %d", $quiz->quiz_id ) );
|
220 |
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
644 |
}
|
645 |
|
646 |
/**
|
647 |
-
* @since 7.0
|
648 |
-
* add per page option in screen option in Quiz list
|
649 |
-
* @global string $qsm_quiz_list_page
|
650 |
-
*/
|
651 |
-
function qsm_generate_quizzes_surveys_page_screen_options(){
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
|
|
665 |
}
|
666 |
|
667 |
-
add_filter('set-screen-option', 'qsm_set_screen_option', 10, 3);
|
668 |
-
add_filter('set_screen_option_qsm_per_page', 'qsm_set_screen_option', 10, 3);
|
669 |
/**
|
670 |
* @since 7.0
|
671 |
* @param str $status
|
@@ -673,8 +757,9 @@ add_filter('set_screen_option_qsm_per_page', 'qsm_set_screen_option', 10, 3);
|
|
673 |
* @param str $value
|
674 |
* @return str Save screen option value
|
675 |
*/
|
676 |
-
function qsm_set_screen_option( $status, $option, $value ){
|
677 |
-
|
678 |
-
|
|
|
679 |
}
|
680 |
-
?>
|
4 |
*
|
5 |
* @package QSM
|
6 |
*/
|
7 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
8 |
+
exit;
|
9 |
}
|
10 |
|
11 |
/**
|
15 |
*/
|
16 |
function qsm_generate_quizzes_surveys_page() {
|
17 |
|
18 |
+
// Only let admins and editors see this page.
|
19 |
+
if ( ! current_user_can( 'edit_posts' ) ) {
|
20 |
+
return;
|
21 |
+
}
|
22 |
+
|
23 |
+
// Retrieve our globals.
|
24 |
+
global $wpdb;
|
25 |
+
global $mlwQuizMasterNext;
|
26 |
+
|
27 |
+
// Enqueue our styles and scripts.
|
28 |
+
wp_enqueue_script( 'micromodal_script', plugins_url( '../../js/micromodal.min.js', __FILE__ ) );
|
29 |
+
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ), array(), $mlwQuizMasterNext->version );
|
30 |
+
wp_style_add_data( 'qsm_admin_style', 'rtl', 'replace' );
|
31 |
+
wp_enqueue_script( 'qsm_admin_script', plugins_url( '../../js/qsm-admin.js', __FILE__ ), array( 'wp-util', 'underscore', 'jquery', 'micromodal_script', 'jquery-ui-accordion' ), $mlwQuizMasterNext->version );
|
32 |
+
wp_enqueue_style( 'qsm_admin_dashboard_css', plugins_url( '../../css/admin-dashboard.css', __FILE__ ) );
|
33 |
+
wp_style_add_data( 'qsm_admin_dashboard_css', 'rtl', 'replace' );
|
34 |
+
wp_enqueue_style( 'qsm_ui_css', '//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css' );
|
35 |
+
|
36 |
+
// Delete quiz.
|
37 |
+
if ( isset( $_POST['qsm_delete_quiz_nonce'] ) && wp_verify_nonce( $_POST['qsm_delete_quiz_nonce'], 'qsm_delete_quiz' ) ) {
|
38 |
+
$quiz_id = intval( $_POST['delete_quiz_id'] );
|
39 |
+
$quiz_name = sanitize_text_field( $_POST['delete_quiz_name'] );
|
40 |
+
$mlwQuizMasterNext->quizCreator->delete_quiz( $quiz_id, $quiz_name );
|
41 |
+
}
|
42 |
+
|
43 |
+
// Duplicate Quiz.
|
44 |
+
if ( isset( $_POST['qsm_duplicate_quiz_nonce'] ) && wp_verify_nonce( $_POST['qsm_duplicate_quiz_nonce'], 'qsm_duplicate_quiz' ) ) {
|
45 |
+
$quiz_id = intval( $_POST['duplicate_quiz_id'] );
|
46 |
+
$quiz_name = sanitize_text_field( htmlspecialchars( $_POST['duplicate_new_quiz_name'], ENT_QUOTES ) );
|
47 |
+
$mlwQuizMasterNext->quizCreator->duplicate_quiz( $quiz_id, $quiz_name, isset( $_POST['duplicate_questions'] ) ? sanitize_text_field( $_POST['duplicate_questions'] ) : 0 );
|
48 |
+
}
|
49 |
+
|
50 |
+
// Resets stats for a quiz.
|
51 |
+
if ( isset( $_POST['qsm_reset_stats_nonce'] ) && wp_verify_nonce( $_POST['qsm_reset_stats_nonce'], 'qsm_reset_stats' ) ) {
|
52 |
+
$quiz_id = intval( $_POST['reset_quiz_id'] );
|
53 |
+
$results = $wpdb->update(
|
54 |
+
$wpdb->prefix . 'mlw_quizzes',
|
55 |
+
array(
|
56 |
+
'quiz_views' => 0,
|
57 |
+
'quiz_taken' => 0,
|
58 |
+
'last_activity' => date( 'Y-m-d H:i:s' ),
|
59 |
+
),
|
60 |
+
array( 'quiz_id' => $quiz_id ),
|
61 |
+
array(
|
62 |
+
'%d',
|
63 |
+
'%d',
|
64 |
+
'%s',
|
65 |
+
),
|
66 |
+
array( '%d' )
|
67 |
+
);
|
68 |
+
if ( false !== $results ) {
|
69 |
+
$mlwQuizMasterNext->alertManager->newAlert( __( 'The stats has been reset successfully.', 'quiz-master-next' ), 'success' );
|
70 |
+
$mlwQuizMasterNext->audit_manager->new_audit( "Quiz Stats Have Been Reset For Quiz Number $quiz_id" );
|
71 |
+
} else {
|
72 |
+
$mlwQuizMasterNext->alertManager->newAlert( __( 'Error trying to reset stats. Please try again.', 'quiz-master-next' ), 'error' );
|
73 |
+
$mlwQuizMasterNext->log_manager->add( 'Error resetting stats', $wpdb->last_error . ' from ' . $wpdb->last_query, 0, 'error' );
|
74 |
+
}
|
75 |
+
}
|
76 |
+
|
77 |
+
// Pagination.
|
78 |
+
$paged = filter_input( INPUT_GET, 'paged' ) ? absint( filter_input( INPUT_GET, 'paged' ) ) : 1;
|
79 |
+
/*
|
80 |
+
//Not required already checked above as integer.(AA)
|
81 |
+
if (!is_numeric($paged))
|
82 |
+
$paged = 1;*/
|
83 |
+
$limit = 10; // number of rows in page.
|
84 |
+
|
85 |
+
$current_user = get_current_user_id();
|
86 |
+
$screen = get_current_screen();
|
87 |
+
$screen_option = $screen->get_option( 'per_page', 'option' );
|
88 |
+
$limit = get_user_meta( $current_user, $screen_option, true );
|
89 |
+
|
90 |
+
if ( empty( $limit ) || $limit < 1 ) {
|
91 |
+
// get the default value if none is set
|
92 |
+
$limit = $screen->get_option( 'per_page', 'default' );
|
93 |
+
}
|
94 |
+
$offset = ( $paged - 1 ) * $limit;
|
95 |
+
$where = '';
|
96 |
+
$search = '';
|
97 |
+
if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] != '' ) {
|
98 |
+
$search = htmlspecialchars( $_REQUEST['s'], ENT_QUOTES );
|
99 |
+
$where = " quiz_name LIKE '%$search%'";
|
100 |
+
}
|
101 |
+
|
102 |
+
/*
|
103 |
+
if ( isset($_POST['btnSearchQuiz']) || isset($_POST['s']) && $_POST['s'] != '' ) {
|
104 |
+
$delete_action = '';
|
105 |
+
if (isset($_POST['take_action']) && isset($_POST['qsm-ql-action-top']) || isset($_POST['take_action']) && isset($_POST['qsm-ql-action-bottom'])) {
|
106 |
+
$delete_action = 'multiple_delete';
|
107 |
+
}
|
108 |
+
?>
|
109 |
+
<script type="text/javascript">
|
110 |
+
var paged = '<?php echo $paged; ?>';
|
111 |
+
var s = ['<?php echo $search; ?>'];
|
112 |
+
var action = ['<?php echo $delete_action; ?>'];
|
113 |
+
window.location = "?page=mlw_quiz_list&paged=1&s=" + s + "&action=" + action;
|
114 |
+
</script>
|
115 |
+
<?php
|
116 |
+
} */
|
117 |
+
|
118 |
+
// Multiple Delete quiz.
|
119 |
+
if ( isset( $_POST['qsm_search_multiple_delete_nonce'] ) && wp_verify_nonce( $_POST['qsm_search_multiple_delete_nonce'], 'qsm_search_multiple_delete' ) ) {
|
120 |
+
if ( ( isset( $_POST['qsm-ql-action-top'] ) && $_POST['qsm-ql-action-top'] == 'delete_pr' ) || ( isset( $_POST['qsm-ql-action-bottom'] ) && $_POST['qsm-ql-action-bottom'] == 'delete_pr' ) ) {
|
121 |
+
$quiz_ids_arr = $_POST['chk_remove_all'];
|
122 |
+
if ( $quiz_ids_arr ) {
|
123 |
+
$_POST['qsm_delete_question_from_qb'] = 1;
|
124 |
+
foreach ( $quiz_ids_arr as $quiz_id ) {
|
125 |
+
$mlwQuizMasterNext->quizCreator->delete_quiz( $quiz_id, $quiz_id );
|
126 |
+
}
|
127 |
+
}
|
128 |
+
}
|
129 |
+
}
|
130 |
+
/*Set Request To Post as form method is Post.(AA)*/
|
131 |
+
if ( isset( $_POST['btnSearchQuiz'] ) && $_POST['s'] != '' ) {
|
132 |
+
$search = htmlspecialchars( $_POST['s'], ENT_QUOTES );
|
133 |
+
$condition = " WHERE deleted=0 AND quiz_name LIKE '%$search%'";
|
134 |
+
$qry = stripslashes( $wpdb->prepare( "SELECT COUNT('quiz_id') FROM {$wpdb->prefix}mlw_quizzes%1s", $condition ) );
|
135 |
+
$total = $wpdb->get_var( $qry );
|
136 |
+
$num_of_pages = ceil( $total / $limit );
|
137 |
+
} else {
|
138 |
+
$condition = ' WHERE deleted=0';
|
139 |
+
$total = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(`quiz_id`) FROM {$wpdb->prefix}mlw_quizzes %1s", $condition ) );
|
140 |
+
$num_of_pages = ceil( $total / $limit );
|
141 |
+
}
|
142 |
+
|
143 |
+
// Next and previous page.
|
144 |
+
$next_page = (int) $paged + 1;
|
145 |
+
|
146 |
+
if ( $next_page > $num_of_pages ) {
|
147 |
+
$next_page = $num_of_pages;
|
148 |
+
}
|
149 |
+
|
150 |
+
$prev_page = (int) $paged - 1;
|
151 |
+
|
152 |
+
if ( $prev_page < 1 ) {
|
153 |
+
$prev_page = 1;
|
154 |
+
}
|
155 |
+
|
156 |
+
// Check user role and fetch the quiz
|
157 |
+
$user = wp_get_current_user();
|
158 |
+
if ( in_array( 'author', (array) $user->roles ) ) {
|
159 |
+
$post_arr['author__in'] = array( $user->ID );
|
160 |
+
}
|
161 |
+
if ( isset( $_GET['order'] ) && $_GET['order'] == 'asc' ) {
|
162 |
+
$post_arr['orderby'] = isset( $_GET['orderby'] ) && $_GET['orderby'] == 'title' ? 'title' : 'last_activity';
|
163 |
+
$post_arr['order'] = 'ASC';
|
164 |
+
// Load our quizzes.
|
165 |
+
$quizzes = $mlwQuizMasterNext->pluginHelper->get_quizzes( false, $post_arr['orderby'], 'ASC', (array) $user->roles, $user->ID, $limit, $offset, $where );
|
166 |
+
} elseif ( isset( $_GET['order'] ) && $_GET['order'] == 'desc' ) {
|
167 |
+
$post_arr['orderby'] = isset( $_GET['orderby'] ) && $_GET['orderby'] == 'title' ? 'title' : 'last_activity';
|
168 |
+
$post_arr['order'] = 'DESC';
|
169 |
+
// Load our quizzes.
|
170 |
+
$quizzes = $mlwQuizMasterNext->pluginHelper->get_quizzes( false, $post_arr['orderby'], 'DESC', (array) $user->roles, $user->ID, $limit, $offset, $where );
|
171 |
+
} else {
|
172 |
+
// Load our quizzes.
|
173 |
+
$quizzes = $mlwQuizMasterNext->pluginHelper->get_quizzes( false, '', '', (array) $user->roles, $user->ID, $limit, $offset, $where );
|
174 |
+
}
|
175 |
+
/*Written to get results form search.(AA)*/
|
176 |
+
if ( isset( $_POST['btnSearchQuiz'] ) && $_POST['s'] != '' ) {
|
177 |
+
$search_quiz = htmlspecialchars( $_POST['s'], ENT_QUOTES );
|
178 |
+
$condition = " WHERE deleted=0 AND quiz_name LIKE '%$search_quiz%'";
|
179 |
+
$qry = stripslashes( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}mlw_quizzes%1s", $condition ) );
|
180 |
+
$quizzes = $wpdb->get_results( $qry );
|
181 |
+
|
182 |
+
}
|
183 |
+
|
184 |
+
// Load quiz posts.
|
185 |
+
$post_to_quiz_array = array();
|
186 |
+
// Query for post
|
187 |
+
$post_arr = array(
|
188 |
+
'post_type' => 'qsm_quiz',
|
189 |
+
'paged' => $paged,
|
190 |
+
'posts_per_page' => -1,
|
191 |
+
'post_status' => array( 'publish', 'pending', 'draft', 'auto-draft', 'future', 'private' ),
|
192 |
+
);
|
193 |
+
$my_query = new WP_Query( $post_arr );
|
194 |
+
|
195 |
+
if ( $my_query->have_posts() ) {
|
196 |
+
while ( $my_query->have_posts() ) {
|
197 |
+
$my_query->the_post();
|
198 |
+
$post_to_quiz_array[ get_post_meta( get_the_ID(), 'quiz_id', true ) ] = array(
|
199 |
+
'link' => get_the_permalink( get_the_ID() ),
|
200 |
+
'id' => get_the_ID(),
|
201 |
+
'post_status' => get_post_status( get_the_ID() ),
|
202 |
+
);
|
203 |
+
}
|
204 |
+
}
|
205 |
+
wp_reset_postdata();
|
206 |
+
$quiz_json_array = array();
|
207 |
+
foreach ( $quizzes as $quiz ) {
|
208 |
+
if ( ! isset( $post_to_quiz_array[ $quiz->quiz_id ] ) ) {
|
209 |
+
$current_user = wp_get_current_user();
|
210 |
+
$quiz_post = array(
|
211 |
+
'post_title' => $quiz->quiz_name,
|
212 |
+
'post_content' => "[qsm quiz={$quiz->quiz_id}]",
|
213 |
+
// 'post_status' => 'publish',
|
214 |
+
'post_author' => $current_user->ID,
|
215 |
+
'post_type' => 'qsm_quiz',
|
216 |
+
);
|
217 |
+
$quiz_post_id = wp_insert_post( $quiz_post );
|
218 |
+
add_post_meta( $quiz_post_id, 'quiz_id', $quiz->quiz_id );
|
219 |
+
$post_to_quiz_array[ $quiz->quiz_id ] = array(
|
220 |
+
'link' => get_permalink( $quiz_post_id ),
|
221 |
+
'id' => $quiz_post_id,
|
222 |
+
'post_status' => get_post_status( $quiz_post_id ),
|
223 |
+
);
|
224 |
+
}
|
225 |
|
226 |
$quiz_results_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(result_id) FROM {$wpdb->prefix}mlw_results WHERE `deleted`= 0 AND `quiz_id`= %d", $quiz->quiz_id ) );
|
227 |
|
228 |
+
$activity_date = date_i18n( get_option( 'date_format' ), strtotime( $quiz->last_activity ) );
|
229 |
+
$activity_time = date( 'h:i:s A', strtotime( $quiz->last_activity ) );
|
230 |
+
|
231 |
+
$quiz_json_array[] = array(
|
232 |
+
'id' => $quiz->quiz_id,
|
233 |
+
'name' => esc_html( $quiz->quiz_name ),
|
234 |
+
'link' => $post_to_quiz_array[ $quiz->quiz_id ]['link'],
|
235 |
+
'postID' => $post_to_quiz_array[ $quiz->quiz_id ]['id'],
|
236 |
+
'views' => $quiz->quiz_views,
|
237 |
+
/*'taken' => $quiz->quiz_taken,*/
|
238 |
+
'taken' => $quiz_results_count,
|
239 |
+
'lastActivity' => $activity_date,
|
240 |
+
'lastActivityDateTime' => $activity_date . ' ' . $activity_time,
|
241 |
+
'post_status' => $post_to_quiz_array[ $quiz->quiz_id ]['post_status'],
|
242 |
+
);
|
243 |
+
}
|
244 |
+
$total_count = count( $quiz_json_array );
|
245 |
+
|
246 |
+
wp_localize_script( 'qsm_admin_script', 'qsmQuizObject', $quiz_json_array );
|
247 |
+
?>
|
248 |
+
<div class="wrap qsm-quizes-page">
|
249 |
+
<h1>
|
250 |
+
<?php esc_html_e( 'Quizzes/Surveys', 'quiz-master-next' ); ?>
|
251 |
+
<a id="new_quiz_button" href="#" class="add-new-h2"><?php _e( 'Add New', 'quiz-master-next' ); ?></a>
|
252 |
+
</h1>
|
253 |
+
<?php $mlwQuizMasterNext->alertManager->showAlerts(); ?>
|
254 |
+
<?php
|
255 |
+
if ( version_compare( PHP_VERSION, '5.4.0', '<' ) ) {
|
256 |
+
?>
|
257 |
+
<div class="qsm-info-box">
|
258 |
+
<p><?php esc_html_e( 'Your site is using PHP version', 'quiz-master-next' ); ?>
|
259 |
+
<?php echo esc_html( PHP_VERSION ); ?>!
|
260 |
+
<?php esc_html_e( 'Starting in QSM 6.0, your version of PHP will no longer be supported.', 'quiz-master-next' ); ?>
|
261 |
+
<a href="http://bit.ly/2lyrrm8" target="_blank"
|
262 |
+
rel="noopener"><?php esc_html_e( "Click here to learn more about QSM's minimum PHP version change.", 'quiz-master-next' ); ?></a>
|
263 |
+
</p>
|
264 |
+
</div>
|
265 |
+
<?php
|
266 |
+
}
|
267 |
+
?>
|
268 |
+
<form method="POST" id="posts-filter">
|
269 |
+
<?php wp_nonce_field( 'qsm_search_multiple_delete', 'qsm_search_multiple_delete_nonce' ); ?>
|
270 |
+
<div class="qsm-quizzes-page-content">
|
271 |
+
<div class="
|
272 |
+
<?php
|
273 |
+
if ( 'false' != get_option( 'mlw_advert_shows' ) ) {
|
274 |
+
echo 'qsm-quiz-page-wrapper-with-ads';
|
275 |
+
} else {
|
276 |
+
echo 'qsm-quiz-page-wrapper';
|
277 |
+
}
|
278 |
+
?>
|
279 |
+
">
|
280 |
+
<p class="search-box">
|
281 |
+
<label class="screen-reader-text"
|
282 |
+
for="quiz_search"><?php esc_html_e( 'Search', 'quiz-master-next' ); ?></label>
|
283 |
+
<!-- Changed Request to Post -->
|
284 |
+
<input type="search" id="quiz_search" name="s"
|
285 |
+
value="<?php echo isset( $_POST['s'] ) && $_POST['s'] != '' ? htmlspecialchars( $_POST['s'], ENT_QUOTES ) : ''; ?>">
|
286 |
+
<input id="search-submit" class="button" type="submit" name="btnSearchQuiz" value="Search Quiz">
|
287 |
+
<?php if ( class_exists( 'QSM_Export_Import' ) ) { ?>
|
288 |
+
<a class="button button-primary"
|
289 |
+
href="<?php echo admin_url() . 'admin.php?page=qmn_addons&tab=export-and-import'; ?>"
|
290 |
+
target="_blank" rel="noopener"><?php _e( 'Import & Export', 'quiz-master-next' ); ?></a>
|
291 |
+
<?php } else { ?>
|
292 |
+
<a id="show_import_export_popup" href="#" style="position: relative;top: 0px;"
|
293 |
+
class="add-new-h2 button-primary"><?php _e( 'Import & Export', 'quiz-master-next' ); ?></a>
|
294 |
+
<?php } ?>
|
295 |
+
</p>
|
296 |
+
<div class="tablenav top">
|
297 |
+
<div class="alignleft actions bulkactions">
|
298 |
+
<select name="qsm-ql-action-top">
|
299 |
+
<option selected="selected" value="none"><?php _e( 'Bulk Actions', 'quiz-master-next' ); ?>
|
300 |
+
</option>
|
301 |
+
<option value="delete_pr"><?php _e( 'Delete Permanently', 'quiz-master-next' ); ?></option>
|
302 |
+
</select>
|
303 |
+
<input id="take_action" name="take_action" class="button action" type="submit"
|
304 |
+
value="<?php esc_attr_e( 'Apply', 'quiz-master-next' ); ?>">
|
305 |
+
</div>
|
306 |
+
<div class="tablenav-pages">
|
307 |
+
<span
|
308 |
+
class="displaying-num"><?php echo number_format_i18n( $total ) . ' ' . sprintf( _n( 'item', 'items', $total ), number_format_i18n( $total ) ); ?></span>
|
309 |
+
<span class="pagination-links" <?php
|
310 |
+
if ( (int) $num_of_pages <= 1 ) {
|
311 |
+
echo 'style="display:none;"';
|
312 |
+
}
|
313 |
+
?>>
|
314 |
+
<?php if ( $paged == '1' ) { ?>
|
315 |
+
<span class="tablenav-pages-navspan button disabled" aria-hidden="true">«</span>
|
316 |
+
<span class="tablenav-pages-navspan button disabled" aria-hidden="true">‹</span>
|
317 |
+
<?php } else { ?>
|
318 |
+
<a class="first-page button"
|
319 |
+
href="<?php echo '?page=mlw_quiz_list&paged=1&s=' . $search; ?>"
|
320 |
+
title="<?php esc_attr_e( 'Go to the first page', 'quiz-master-next' ); ?>">«</a>
|
321 |
+
<a class="prev-page button"
|
322 |
+
href="<?php echo '?page=mlw_quiz_list&paged=' . $prev_page . '&s=' . $search; ?>"
|
323 |
+
title="<?php esc_attr_e( 'Go to the previous page', 'quiz-master-next' ); ?>">‹</a>
|
324 |
+
<?php } ?>
|
325 |
+
<span class="paging-input">
|
326 |
+
<span class="total-pages"><?php echo $paged; ?></span>
|
327 |
+
<?php _e( 'of', 'quiz-master-next' ); ?>
|
328 |
+
<span class="total-pages"><?php echo $num_of_pages; ?></span>
|
329 |
+
</span>
|
330 |
+
<?php if ( $paged == $num_of_pages ) { ?>
|
331 |
+
<span class="tablenav-pages-navspan button disabled" aria-hidden="true">›</span>
|
332 |
+
<span class="tablenav-pages-navspan button disabled" aria-hidden="true">»</span>
|
333 |
+
<?php } else { ?>
|
334 |
+
<a class="next-page button"
|
335 |
+
href="<?php echo '?page=mlw_quiz_list&paged=' . $next_page . '&s=' . $search; ?>"
|
336 |
+
title="<?php esc_attr_e( 'Go to the next page', 'quiz-master-next' ); ?>">›</a>
|
337 |
+
<a class="last-page button"
|
338 |
+
href="<?php echo '?page=mlw_quiz_list&paged=' . $num_of_pages . '&s=' . $search; ?>"
|
339 |
+
title="<?php esc_attr_e( 'Go to the last page', 'quiz-master-next' ); ?>">»</a>
|
340 |
+
<?php } ?>
|
341 |
+
</span>
|
342 |
+
</div>
|
343 |
+
</div>
|
344 |
+
<table class="widefat">
|
345 |
+
<?php
|
346 |
+
$orderby_slug = '&orderby=title&order=asc';
|
347 |
+
$orderby_date_slug = '&orderby=date&order=asc';
|
348 |
+
$orderby_class = $orderby_date_class = 'sortable desc';
|
349 |
+
// Title order
|
350 |
+
if ( isset( $_GET['orderby'] ) && $_GET['orderby'] === 'title' ) {
|
351 |
+
if ( isset( $_GET['order'] ) && $_GET['order'] === 'asc' ) {
|
352 |
+
$orderby_slug = '&orderby=title&order=desc';
|
353 |
+
$orderby_class = 'sorted asc';
|
354 |
+
} elseif ( isset( $_GET['order'] ) && $_GET['order'] === 'desc' ) {
|
355 |
+
$orderby_slug = '&orderby=title&order=asc';
|
356 |
+
$orderby_class = 'sorted desc';
|
357 |
+
}
|
358 |
+
} elseif ( isset( $_GET['orderby'] ) && $_GET['orderby'] === 'date' ) {
|
359 |
+
if ( isset( $_GET['order'] ) && $_GET['order'] === 'asc' ) {
|
360 |
+
$orderby_date_slug = '&orderby=date&order=desc';
|
361 |
+
$orderby_date_class = 'sorted asc';
|
362 |
+
} elseif ( isset( $_GET['order'] ) && $_GET['order'] === 'desc' ) {
|
363 |
+
$orderby_date_slug = '&orderby=date&order=asc';
|
364 |
+
$orderby_date_class = 'sorted desc';
|
365 |
+
}
|
366 |
+
}
|
367 |
+
?>
|
368 |
+
<thead>
|
369 |
+
<tr>
|
370 |
+
<td class="manage-column column-cb check-column" id="cb"><input type="checkbox"
|
371 |
+
name="delete-all-shortcodes-1" id="delete-all-shortcodes-1" value="0"></td>
|
372 |
+
<th class="<?php echo $orderby_class; ?>">
|
373 |
+
<?php
|
374 |
+
$paged_slug = isset( $_GET['paged'] ) && $_GET['paged'] != '' ? '&paged=' . esc_attr( $_GET['paged'] ) : '';
|
375 |
+
$searched_slug = isset( $_GET['s'] ) && $_GET['s'] != '' ? '&s=' . esc_attr( $_GET['s'] ) : '';
|
376 |
+
$sorting_url = '?page=mlw_quiz_list' . $paged_slug . $searched_slug;
|
377 |
+
?>
|
378 |
+
<a href="<?php echo $sorting_url . $orderby_slug; ?>">
|
379 |
+
<span><?php esc_html_e( 'Title', 'quiz-master-next' ); ?></span>
|
380 |
+
<span class="sorting-indicator"></span>
|
381 |
+
</a>
|
382 |
+
</th>
|
383 |
+
<th><?php esc_html_e( 'Shortcode', 'quiz-master-next' ); ?></th>
|
384 |
+
<th><?php esc_html_e( 'Views', 'quiz-master-next' ); ?></th>
|
385 |
+
<th><?php esc_html_e( 'Participants', 'quiz-master-next' ); ?></th>
|
386 |
+
<th class="<?php echo $orderby_date_class; ?>">
|
387 |
+
<a href="<?php echo $sorting_url . $orderby_date_slug; ?>">
|
388 |
+
<span><?php esc_html_e( 'Last Modified', 'quiz-master-next' ); ?></span>
|
389 |
+
<span class="sorting-indicator"></span>
|
390 |
+
</a>
|
391 |
+
</th>
|
392 |
+
</tr>
|
393 |
+
</thead>
|
394 |
+
<tbody id="the-list">
|
395 |
+
<?php
|
396 |
+
if ( $quiz_json_array ) {
|
397 |
+
foreach ( $quiz_json_array as $key => $single_arr ) {
|
398 |
+
?>
|
399 |
+
<tr class="qsm-quiz-row" data-id="<?php echo $single_arr['id']; ?>">
|
400 |
+
<th class="check-column">
|
401 |
+
<input type="checkbox" class="chk_remove_all" name="chk_remove_all[]"
|
402 |
+
id="chk_remove_all" value="<?php echo $single_arr['id']; ?>">
|
403 |
+
</th>
|
404 |
+
<td class="post-title column-title">
|
405 |
+
<a class="row-title"
|
406 |
+
href="admin.php?page=mlw_quiz_options&&quiz_id=<?php echo $single_arr['id']; ?>"
|
407 |
+
aria-label="<?php echo $single_arr['name']; ?>">
|
408 |
+
<?php echo $single_arr['name']; ?> <b
|
409 |
+
style="color: #222; text-transform: capitalize;"><?php echo $single_arr['post_status'] != 'publish' ? '— ' . $single_arr['post_status'] : ''; ?></b>
|
410 |
+
</a>
|
411 |
+
<div class="row-actions">
|
412 |
+
<a class="qsm-action-link"
|
413 |
+
href="admin.php?page=mlw_quiz_options&&quiz_id=<?php echo $single_arr['id']; ?>"><?php _e( 'Edit', 'quiz-master-next' ); ?></a>
|
414 |
+
|
|
415 |
+
<a class="qsm-action-link qsm-action-link-duplicate"
|
416 |
+
href="#"><?php _e( 'Duplicate', 'quiz-master-next' ); ?></a> |
|
417 |
+
<a class="qsm-action-link qsm-action-link-delete"
|
418 |
+
href="#"><?php _e( 'Delete', 'quiz-master-next' ); ?></a> |
|
419 |
+
<a class="qsm-action-link"
|
420 |
+
href="admin.php?page=mlw_quiz_results&quiz_id=<?php echo $single_arr['id']; ?>"><?php _e( 'View Results', 'quiz-master-next' ); ?></a>
|
421 |
+
|
|
422 |
+
<a class="qsm-action-link" target="_blank" rel="noopener"
|
423 |
+
href="<?php echo $single_arr['link']; ?>"><?php _e( 'Preview', 'quiz-master-next' ); ?></a>
|
424 |
+
</div>
|
425 |
+
</td>
|
426 |
+
<td>
|
427 |
+
<a href="#" class="qsm-list-shortcode-view">
|
428 |
+
<span class="dashicons dashicons-welcome-view-site"></span>
|
429 |
+
</a>
|
430 |
+
<div class="sc-content sc-embed">[qsm quiz=<?php echo $single_arr['id']; ?>]</div>
|
431 |
+
<div class="sc-content sc-link">[qsm_link
|
432 |
+
id=<?php echo $single_arr['id']; ?>]<?php _e( 'Click here', 'quiz-master-next' ); ?>[/qsm_link]
|
433 |
+
</div>
|
434 |
+
</td>
|
435 |
+
<td>
|
436 |
+
<?php echo $single_arr['views']; ?>
|
437 |
+
<div class="row-actions">
|
438 |
+
<a class="qsm-action-link qsm-action-link-reset"
|
439 |
+
href="#"><?php _e( 'Reset', 'quiz-master-next' ); ?></a>
|
440 |
+
</div>
|
441 |
+
</td>
|
442 |
+
<td class="comments column-comments" style="text-align: left;">
|
443 |
+
<span class="post-com-count post-com-count-approved">
|
444 |
+
<span class="comment-count-approved"
|
445 |
+
aria-hidden="true"><?php echo $single_arr['taken']; ?></span>
|
446 |
+
<span
|
447 |
+
class="screen-reader-text"><?php echo $single_arr['taken'] . __( 'Participants', 'quiz-master-next' ); ?>
|
448 |
+
</span>
|
449 |
+
</span>
|
450 |
+
</td>
|
451 |
+
<td>
|
452 |
+
<abbr
|
453 |
+
title="<?php echo $single_arr['lastActivityDateTime']; ?>"><?php echo $single_arr['lastActivity']; ?></abbr>
|
454 |
+
</td>
|
455 |
+
</tr>
|
456 |
+
<?php
|
457 |
+
}
|
458 |
+
} else {
|
459 |
+
?>
|
460 |
+
<tr>
|
461 |
+
<td colspan="6" style="text-align: center;">
|
462 |
+
<?php _e( 'No Quiz found!', 'quiz-master-next' ); ?>
|
463 |
+
</td>
|
464 |
+
</tr>
|
465 |
+
<?php
|
466 |
+
}
|
467 |
+
?>
|
468 |
+
</tbody>
|
469 |
+
<tfoot>
|
470 |
+
<tr>
|
471 |
+
<td class="manage-column column-cb check-column" id="cb"><input type="checkbox"
|
472 |
+
name="delete-all-shortcodes-2" id="delete-all-shortcodes-2" value="0"></td>
|
473 |
+
<th class="<?php echo $orderby_class; ?>">
|
474 |
+
<a href="<?php echo $sorting_url . $orderby_slug; ?>">
|
475 |
+
<span><?php esc_html_e( 'Title', 'quiz-master-next' ); ?></span>
|
476 |
+
<span class="sorting-indicator"></span>
|
477 |
+
</a>
|
478 |
+
</th>
|
479 |
+
<th><?php esc_html_e( 'Shortcode', 'quiz-master-next' ); ?></th>
|
480 |
+
<th><?php esc_html_e( 'Views', 'quiz-master-next' ); ?></th>
|
481 |
+
<th><?php esc_html_e( 'Participants', 'quiz-master-next' ); ?></th>
|
482 |
+
<th class="<?php echo $orderby_date_class; ?>">
|
483 |
+
<a href="<?php echo $sorting_url . $orderby_date_slug; ?>">
|
484 |
+
<span><?php esc_html_e( 'Last Modified', 'quiz-master-next' ); ?></span>
|
485 |
+
<span class="sorting-indicator"></span>
|
486 |
+
</a>
|
487 |
+
</th>
|
488 |
+
</tr>
|
489 |
+
</tfoot>
|
490 |
+
</table>
|
491 |
+
<div class="tablenav bottom">
|
492 |
+
<select name="qsm-ql-action-bottom">
|
493 |
+
<option selected="selected" value="none"><?php _e( 'Bulk Actions', 'quiz-master-next' ); ?>
|
494 |
+
</option>
|
495 |
+
<option value="delete_pr"><?php _e( 'Delete Permanently', 'quiz-master-next' ); ?></option>
|
496 |
+
</select>
|
497 |
+
<input id="take_action" name="take_action" class="button action" type="submit"
|
498 |
+
value="<?php esc_attr_e( 'Apply', 'quiz-master-next' ); ?>">
|
499 |
+
<div class="tablenav-pages">
|
500 |
+
<span
|
501 |
+
class="displaying-num"><?php echo number_format_i18n( $total ) . ' ' . sprintf( _n( 'item', 'items', $total ), number_format_i18n( $total ) ); ?></span>
|
502 |
+
<span class="pagination-links" <?php
|
503 |
+
if ( (int) $num_of_pages <= 1 ) {
|
504 |
+
echo 'style="display:none;"';
|
505 |
+
}
|
506 |
+
?>>
|
507 |
+
<?php if ( $paged == '1' ) { ?>
|
508 |
+
<span class="tablenav-pages-navspan button disabled" aria-hidden="true">«</span>
|
509 |
+
<span class="tablenav-pages-navspan button disabled" aria-hidden="true">‹</span>
|
510 |
+
<?php } else { ?>
|
511 |
+
<a class="first-page button"
|
512 |
+
href="<?php echo '?page=mlw_quiz_list&paged=1&s=' . $search; ?>"
|
513 |
+
title="<?php esc_attr_e( 'Go to the first page', 'quiz-master-next' ); ?>">«</a>
|
514 |
+
<a class="prev-page button"
|
515 |
+
href="<?php echo '?page=mlw_quiz_list&paged=' . $prev_page . '&s=' . $search; ?>"
|
516 |
+
title="<?php esc_attr_e( 'Go to the previous page', 'quiz-master-next' ); ?>">‹</a>
|
517 |
+
<?php } ?>
|
518 |
+
<span class="paging-input">
|
519 |
+
<span class="total-pages"><?php echo $paged; ?></span>
|
520 |
+
<?php _e( 'of', 'quiz-master-next' ); ?>
|
521 |
+
<span class="total-pages"><?php echo $num_of_pages; ?></span>
|
522 |
+
</span>
|
523 |
+
<?php if ( $paged == $num_of_pages ) { ?>
|
524 |
+
<span class="tablenav-pages-navspan button disabled" aria-hidden="true">›</span>
|
525 |
+
<span class="tablenav-pages-navspan button disabled" aria-hidden="true">»</span>
|
526 |
+
<?php } else { ?>
|
527 |
+
<a class="next-page button"
|
528 |
+
href="<?php echo '?page=mlw_quiz_list&paged=' . $next_page . '&s=' . $search; ?>"
|
529 |
+
title="<?php esc_attr_e( 'Go to the next page', 'quiz-master-next' ); ?>">›</a>
|
530 |
+
<a class="last-page button"
|
531 |
+
href="<?php echo '?page=mlw_quiz_list&paged=' . $num_of_pages . '&s=' . $search; ?>"
|
532 |
+
title="<?php esc_attr_e( 'Go to the last page', 'quiz-master-next' ); ?>">»</a>
|
533 |
+
<?php } ?>
|
534 |
+
</span>
|
535 |
+
</div>
|
536 |
+
</div>
|
537 |
+
</div>
|
538 |
+
</div>
|
539 |
+
</form>
|
540 |
+
|
541 |
+
<!-- Popup for resetting stats -->
|
542 |
+
<div class="qsm-popup qsm-popup-slide" id="modal-1" aria-hidden="true">
|
543 |
+
<div class="qsm-popup__overlay" tabindex="-1" data-micromodal-close>
|
544 |
+
<div class="qsm-popup__container" role="dialog" aria-modal="true" aria-labelledby="modal-1-title">
|
545 |
+
<header class="qsm-popup__header">
|
546 |
+
<h2 class="qsm-popup__title" id="modal-1-title">
|
547 |
+
<?php _e( 'Reset stats for this quiz?', 'quiz-master-next' ); ?></h2>
|
548 |
+
<a class="qsm-popup__close" aria-label="Close modal" data-micromodal-close></a>
|
549 |
+
</header>
|
550 |
+
<main class="qsm-popup__content" id="modal-1-content">
|
551 |
+
<p><?php _e( 'Are you sure you want to reset the stats to 0? All views and taken stats for this quiz will be reset. This is permanent and cannot be undone.', 'quiz-master-next' ); ?>
|
552 |
+
</p>
|
553 |
+
<form action="" method="post" id="reset_quiz_form">
|
554 |
+
<?php wp_nonce_field( 'qsm_reset_stats', 'qsm_reset_stats_nonce' ); ?>
|
555 |
+
<input type="hidden" id="reset_quiz_id" name="reset_quiz_id" value="0" />
|
556 |
+
</form>
|
557 |
+
</main>
|
558 |
+
<footer class="qsm-popup__footer">
|
559 |
+
<button id="reset-stats-button"
|
560 |
+
class="qsm-popup__btn qsm-popup__btn-primary"><?php _e( 'Reset All Stats For Quiz', 'quiz-master-next' ); ?></button>
|
561 |
+
<button class="qsm-popup__btn" data-micromodal-close
|
562 |
+
aria-label="Close this dialog window"><?php _e( 'Cancel', 'quiz-master-next' ); ?></button>
|
563 |
+
</footer>
|
564 |
+
</div>
|
565 |
+
</div>
|
566 |
+
</div>
|
567 |
+
|
568 |
+
<!-- Popup for new quiz -->
|
569 |
+
<?php echo qsm_create_new_quiz_wizard(); ?>
|
570 |
+
|
571 |
+
<!-- Popup for duplicate quiz -->
|
572 |
+
<div class="qsm-popup qsm-popup-slide" id="modal-4" aria-hidden="true">
|
573 |
+
<div class="qsm-popup__overlay" tabindex="-1" data-micromodal-close>
|
574 |
+
<div class="qsm-popup__container" role="dialog" aria-modal="true" aria-labelledby="modal-4-title">
|
575 |
+
<header class="qsm-popup__header">
|
576 |
+
<h2 class="qsm-popup__title" id="modal-4-title"><?php _e( 'Duplicate', 'quiz-master-next' ); ?></h2>
|
577 |
+
<a class="qsm-popup__close" aria-label="Close modal" data-micromodal-close></a>
|
578 |
+
</header>
|
579 |
+
<main class="qsm-popup__content" id="modal-4-content">
|
580 |
+
<form action='' method='post' id="duplicate-quiz-form">
|
581 |
+
<label
|
582 |
+
for="duplicate_questions"><?php _e( 'Duplicate questions also?', 'quiz-master-next' ); ?></label><input
|
583 |
+
type="checkbox" name="duplicate_questions" id="duplicate_questions" /><br />
|
584 |
+
<br />
|
585 |
+
<label
|
586 |
+
for="duplicate_new_quiz_name"><?php _e( 'Name Of New Quiz Or Survey:', 'quiz-master-next' ); ?></label><input
|
587 |
+
type="text" id="duplicate_new_quiz_name" name="duplicate_new_quiz_name" />
|
588 |
+
<input type="hidden" id="duplicate_quiz_id" name="duplicate_quiz_id" />
|
589 |
+
<?php wp_nonce_field( 'qsm_duplicate_quiz', 'qsm_duplicate_quiz_nonce' ); ?>
|
590 |
+
</form>
|
591 |
+
</main>
|
592 |
+
<footer class="qsm-popup__footer">
|
593 |
+
<button id="duplicate-quiz-button"
|
594 |
+
class="qsm-popup__btn qsm-popup__btn-primary"><?php _e( 'Duplicate', 'quiz-master-next' ); ?></button>
|
595 |
+
<button class="qsm-popup__btn" data-micromodal-close
|
596 |
+
aria-label="Close this dialog window"><?php _e( 'Cancel', 'quiz-master-next' ); ?></button>
|
597 |
+
</footer>
|
598 |
+
</div>
|
599 |
+
</div>
|
600 |
+
</div>
|
601 |
+
|
602 |
+
<!-- Popup for delete quiz -->
|
603 |
+
<div class="qsm-popup qsm-popup-slide" id="modal-5" aria-hidden="true">
|
604 |
+
<div class="qsm-popup__overlay" tabindex="-1" data-micromodal-close>
|
605 |
+
<div class="qsm-popup__container" role="dialog" aria-modal="true" aria-labelledby="modal-5-title">
|
606 |
+
<header class="qsm-popup__header">
|
607 |
+
<h2 class="qsm-popup__title" id="modal-5-title"><?php _e( 'Delete', 'quiz-master-next' ); ?></h2>
|
608 |
+
<a class="qsm-popup__close" aria-label="Close modal" data-micromodal-close></a>
|
609 |
+
</header>
|
610 |
+
<main class="qsm-popup__content" id="modal-5-content">
|
611 |
+
<form action='' method='post' id="delete-quiz-form">
|
612 |
+
<h3><b><?php _e( 'Are you sure you want to delete this quiz or survey?', 'quiz-master-next' ); ?></b>
|
613 |
+
</h3>
|
614 |
+
<label>
|
615 |
+
<input type="checkbox" value="1" name="qsm_delete_question_from_qb" checked="checked" />
|
616 |
+
<?php _e( 'Delete question from question bank?', 'quiz-master-next' ); ?>
|
617 |
+
</label>
|
618 |
+
<?php wp_nonce_field( 'qsm_delete_quiz', 'qsm_delete_quiz_nonce' ); ?>
|
619 |
+
<input type='hidden' id='delete_quiz_id' name='delete_quiz_id' value='' />
|
620 |
+
<input type='hidden' id='delete_quiz_name' name='delete_quiz_name' value='' />
|
621 |
+
</form>
|
622 |
+
</main>
|
623 |
+
<footer class="qsm-popup__footer">
|
624 |
+
<button id="delete-quiz-button"
|
625 |
+
class="qsm-popup__btn qsm-popup__btn-primary"><?php _e( 'Delete', 'quiz-master-next' ); ?></button>
|
626 |
+
<button class="qsm-popup__btn" data-micromodal-close
|
627 |
+
aria-label="Close this dialog window"><?php _e( 'Cancel', 'quiz-master-next' ); ?></button>
|
628 |
+
</footer>
|
629 |
+
</div>
|
630 |
+
</div>
|
631 |
+
</div>
|
632 |
+
|
633 |
+
<!-- Popup for export import upsell -->
|
634 |
+
<div class="qsm-popup qsm-popup-slide" id="modal-export-import" aria-hidden="true">
|
635 |
+
<div class="qsm-popup__overlay" tabindex="-1" data-micromodal-close>
|
636 |
+
<div class="qsm-popup__container" role="dialog" aria-modal="true" aria-labelledby="modal-5-title">
|
637 |
+
<header class="qsm-popup__header">
|
638 |
+
<h2 class="qsm-popup__title" id="modal-5-title"><?php _e( 'Extend QSM', 'quiz-master-next' ); ?>
|
639 |
+
</h2>
|
640 |
+
<a class="qsm-popup__close" aria-label="Close modal" data-micromodal-close></a>
|
641 |
+
</header>
|
642 |
+
<main class="qsm-popup__content" id="modal-5-content">
|
643 |
+
<h3><b><?php _e( 'Export functionality is provided as Premium addon.', 'quiz-master-next' ); ?></b>
|
644 |
+
</h3>
|
645 |
+
</main>
|
646 |
+
<footer class="qsm-popup__footer">
|
647 |
+
<a style="color: white; text-decoration: none;"
|
648 |
+
href="https://quizandsurveymaster.com/downloads/export-import/" target="_blank"
|
649 |
+
class="qsm-popup__btn qsm-popup__btn-primary"><?php _e( 'Buy Now', 'quiz-master-next' ); ?></a>
|
650 |
+
<button class="qsm-popup__btn" data-micromodal-close
|
651 |
+
aria-label="Close this dialog window"><?php _e( 'Cancel', 'quiz-master-next' ); ?></button>
|
652 |
+
</footer>
|
653 |
+
</div>
|
654 |
+
</div>
|
655 |
+
</div>
|
656 |
+
|
657 |
+
<!-- Popup for delete quiz -->
|
658 |
+
<div class="qsm-popup qsm-popup-slide" id="modal-6" aria-hidden="true">
|
659 |
+
<div class="qsm-popup__overlay" tabindex="-1" data-micromodal-close>
|
660 |
+
<div class="qsm-popup__container" role="dialog" aria-modal="true" aria-labelledby="modal-5-title">
|
661 |
+
<header class="qsm-popup__header">
|
662 |
+
<h2 class="qsm-popup__title" id="modal-5-title"><?php _e( 'Shortcode', 'quiz-master-next' ); ?></h2>
|
663 |
+
<a class="qsm-popup__close" aria-label="Close modal" data-micromodal-close></a>
|
664 |
+
</header>
|
665 |
+
<main class="qsm-popup__content" id="modal-5-content">
|
666 |
+
<div class="qsm-row" style="margin-bottom: 30px;">
|
667 |
+
<lable><?php _e( 'Embed Shortcode', 'quiz-master-next' ); ?></lable>
|
668 |
+
<input type="text" value="" id="sc-shortcode-model-text" style="width: 72%;padding: 5px;">
|
669 |
+
<button class="button button-primary" id="sc-copy-shortcode"><span
|
670 |
+
class="dashicons dashicons-admin-page"></span></button>
|
671 |
+
</div>
|
672 |
+
<div class="qsm-row">
|
673 |
+
<lable><?php _e( 'Link Shortcode', 'quiz-master-next' ); ?></lable>
|
674 |
+
<input type="text" value="" id="sc-shortcode-model-text-link" style="width: 72%;padding: 5px;">
|
675 |
+
<button class="button button-primary" id="sc-copy-shortcode-link"><span
|
676 |
+
class="dashicons dashicons-admin-page"></span></button>
|
677 |
+
</div>
|
678 |
+
</main>
|
679 |
+
</div>
|
680 |
+
</div>
|
681 |
+
</div>
|
682 |
+
|
683 |
+
<!-- Templates -->
|
684 |
+
<script type="text/template" id="tmpl-no-quiz">
|
685 |
+
<div class="qsm-no-quiz-wrapper">
|
686 |
+
<span class="dashicons dashicons-format-chat"></span>
|
687 |
+
<h2><?php _e( 'You do not have any quizzes or surveys yet', 'quiz-master-next' ); ?></h2>
|
688 |
+
<div class="buttons">
|
689 |
+
<a class="button button-primary button-hero qsm-wizard-noquiz" href="#"><?php _e( 'Create New Quiz/Survey', 'quiz-master-next' ); ?></a>
|
690 |
+
<a class="button button-secondary button-hero" href="https://quizandsurveymaster.com/docs/" target="_blank"><span class="dashicons dashicons-admin-page"></span> <?php _e( 'Read Documentation', 'quiz-master-next' ); ?></a>
|
691 |
+
</div>
|
692 |
+
<h3><?php _e( 'or watch the below video to get started', 'quiz-master-next' ); ?></h3>
|
693 |
+
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/coE5W_WB-48" frameborder="0" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
694 |
+
</div>
|
695 |
+
</script>
|
696 |
+
|
697 |
+
<script type="text/template" id="tmpl-quiz-row">
|
698 |
+
<tr class="qsm-quiz-row" data-id="{{ data.id }}">
|
699 |
+
<td class="post-title column-title">
|
700 |
+
<a class="row-title" href="admin.php?page=mlw_quiz_options&&quiz_id={{ data.id }}" aria-label="{{ data.name }}">{{ data.name }} <b style="color: #222; text-transform: capitalize;">{{ data.post_status }}</b></a><a target="_blank" class="quiz-preview-link" href="{{ data.link }}"><span class="dashicons dashicons-external"></span></a>
|
701 |
+
<div class="row-actions">
|
702 |
+
<a class="qsm-action-link" href="admin.php?page=mlw_quiz_options&&quiz_id={{ data.id }}"><?php _e( 'Edit', 'quiz-master-next' ); ?></a> |
|
703 |
+
<a class="qsm-action-link" href="post.php?post={{ data.postID }}&action=edit"><?php _e( 'Post Settings', 'quiz-master-next' ); ?></a> |
|
704 |
+
<a class="qsm-action-link qsm-action-link-duplicate" href="#"><?php _e( 'Duplicate', 'quiz-master-next' ); ?></a> |
|
705 |
+
<a class="qsm-action-link qsm-action-link-delete" href="#"><?php _e( 'Delete', 'quiz-master-next' ); ?></a> |
|
706 |
+
<a class="qsm-action-link" target="_blank" href="{{ data.link }}"><?php _e( 'Preview', 'quiz-master-next' ); ?></a>
|
707 |
+
</div>
|
708 |
+
</td>
|
709 |
+
<td>
|
710 |
+
<p class="sc-opener"><span class="dashicons dashicons-editor-contract"></span> Embed</p>
|
711 |
+
<div class="sc-content">[qsm quiz={{ data.id }}]</div>
|
712 |
+
<p class="sc-opener"><span class="dashicons dashicons-admin-links"></span> Link</p>
|
713 |
+
<div class="sc-content">[qsm_link id={{ data.id }}]<?php _e( 'Click here', 'quiz-master-next' ); ?>[/qsm_link]</div>
|
714 |
+
</td>
|
715 |
+
<td>
|
716 |
+
{{ data.views }}/{{ data.taken }}
|
717 |
+
<div class="row-actions">
|
718 |
+
<a class="qsm-action-link qsm-action-link-reset" href="#"><?php _e( 'Reset', 'quiz-master-next' ); ?></a> |
|
719 |
+
<a class="qsm-action-link" href="admin.php?page=mlw_quiz_results&&quiz_id={{ data.id }}"><?php _e( 'Results', 'quiz-master-next' ); ?></a>
|
720 |
+
</div>
|
721 |
+
</td>
|
722 |
+
<td><abbr title="{{ data.lastActivityDateTime }}">{{ data.lastActivity }}</abbr></td>
|
723 |
+
</tr>
|
724 |
+
</script>
|
725 |
+
</div>
|
726 |
+
<?php
|
727 |
}
|
728 |
|
729 |
/**
|
730 |
+
* @since 7.0
|
731 |
+
* add per page option in screen option in Quiz list
|
732 |
+
* @global string $qsm_quiz_list_page
|
733 |
+
*/
|
734 |
+
function qsm_generate_quizzes_surveys_page_screen_options() {
|
735 |
+
global $qsm_quiz_list_page;
|
736 |
+
$screen = get_current_screen();
|
737 |
+
|
738 |
+
// get out of here if we are not on our settings page
|
739 |
+
if ( ! is_object( $screen ) || $screen->id != $qsm_quiz_list_page ) {
|
740 |
+
return;
|
741 |
+
}
|
742 |
+
|
743 |
+
$args = array(
|
744 |
+
'label' => __( 'Number of items per page:', 'quiz-master-next' ),
|
745 |
+
'default' => 10,
|
746 |
+
'option' => 'qsm_per_page',
|
747 |
+
);
|
748 |
+
add_screen_option( 'per_page', $args );
|
749 |
}
|
750 |
|
751 |
+
add_filter( 'set-screen-option', 'qsm_set_screen_option', 10, 3 );
|
752 |
+
add_filter( 'set_screen_option_qsm_per_page', 'qsm_set_screen_option', 10, 3 );
|
753 |
/**
|
754 |
* @since 7.0
|
755 |
* @param str $status
|
757 |
* @param str $value
|
758 |
* @return str Save screen option value
|
759 |
*/
|
760 |
+
function qsm_set_screen_option( $status, $option, $value ) {
|
761 |
+
if ( 'qsm_per_page' == $option ) {
|
762 |
+
return $value;
|
763 |
+
}
|
764 |
}
|
765 |
+
?>
|
php/admin/settings-page.php
CHANGED
@@ -89,9 +89,10 @@ class QMNGlobalSettingsPage {
|
|
89 |
if ( isset( $settings['from_email'] ) ) {
|
90 |
$from_email = $settings['from_email'];
|
91 |
}
|
92 |
-
?>
|
93 |
-
|
94 |
-
|
|
|
95 |
}
|
96 |
|
97 |
/**
|
@@ -106,9 +107,10 @@ class QMNGlobalSettingsPage {
|
|
106 |
if ( isset( $settings['items_per_page_question_bank'] ) ) {
|
107 |
$items_per_page_question_bank = $settings['items_per_page_question_bank'];
|
108 |
}
|
109 |
-
?>
|
110 |
-
|
111 |
-
|
|
|
112 |
}
|
113 |
|
114 |
/**
|
@@ -123,9 +125,10 @@ class QMNGlobalSettingsPage {
|
|
123 |
if ( isset( $settings['from_name'] ) ) {
|
124 |
$from_name = $settings['from_name'];
|
125 |
}
|
126 |
-
?>
|
127 |
-
|
128 |
-
|
|
|
129 |
}
|
130 |
|
131 |
/**
|
@@ -358,17 +361,18 @@ class QMNGlobalSettingsPage {
|
|
358 |
public static function display_page() {
|
359 |
global $mlwQuizMasterNext;
|
360 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ), array(), $mlwQuizMasterNext->version );
|
361 |
-
|
|
|
362 |
?>
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
}
|
373 |
|
374 |
/**
|
@@ -397,4 +401,4 @@ class QMNGlobalSettingsPage {
|
|
397 |
}
|
398 |
|
399 |
$qmnGlobalSettingsPage = new QMNGlobalSettingsPage();
|
400 |
-
?>
|
89 |
if ( isset( $settings['from_email'] ) ) {
|
90 |
$from_email = $settings['from_email'];
|
91 |
}
|
92 |
+
?>
|
93 |
+
<input type='email' name='qmn-settings[from_email]' id='qmn-settings[from_email]'
|
94 |
+
value='<?php echo esc_attr( $from_email ); ?>' />
|
95 |
+
<?php
|
96 |
}
|
97 |
|
98 |
/**
|
107 |
if ( isset( $settings['items_per_page_question_bank'] ) ) {
|
108 |
$items_per_page_question_bank = $settings['items_per_page_question_bank'];
|
109 |
}
|
110 |
+
?>
|
111 |
+
<input type='number' name='qmn-settings[items_per_page_question_bank]' id='qmn-settings[items_per_page_question_bank]'
|
112 |
+
value='<?php echo esc_attr( $items_per_page_question_bank ); ?>' />
|
113 |
+
<?php
|
114 |
}
|
115 |
|
116 |
/**
|
125 |
if ( isset( $settings['from_name'] ) ) {
|
126 |
$from_name = $settings['from_name'];
|
127 |
}
|
128 |
+
?>
|
129 |
+
<input type='text' name='qmn-settings[from_name]' id='qmn-settings[from_name]'
|
130 |
+
value='<?php echo esc_attr( $from_name ); ?>' />
|
131 |
+
<?php
|
132 |
}
|
133 |
|
134 |
/**
|
361 |
public static function display_page() {
|
362 |
global $mlwQuizMasterNext;
|
363 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ), array(), $mlwQuizMasterNext->version );
|
364 |
+
wp_style_add_data( 'qsm_admin_style', 'rtl', 'replace' );
|
365 |
+
wp_enqueue_script( 'qsm_admin_js', plugins_url( '../../js/admin.js', __FILE__ ), array( 'jquery' ), $mlwQuizMasterNext->version );
|
366 |
?>
|
367 |
+
<div class="wrap">
|
368 |
+
<h2><?php _e( 'Global Settings', 'quiz-master-next' ); ?></h2>
|
369 |
+
<form action="options.php" method="POST" class="qsm_global_settings">
|
370 |
+
<?php settings_fields( 'qmn-settings-group' ); ?>
|
371 |
+
<?php do_settings_sections( 'qmn_global_settings' ); ?>
|
372 |
+
<?php submit_button(); ?>
|
373 |
+
</form>
|
374 |
+
</div>
|
375 |
+
<?php
|
376 |
}
|
377 |
|
378 |
/**
|
401 |
}
|
402 |
|
403 |
$qmnGlobalSettingsPage = new QMNGlobalSettingsPage();
|
404 |
+
?>
|
php/adverts-generate.php
CHANGED
@@ -23,7 +23,7 @@ function qsm_show_adverts() {
|
|
23 |
|
24 |
global $mlwQuizMasterNext;
|
25 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../css/qsm-admin.css', __FILE__ ), array(), $mlwQuizMasterNext->version );
|
26 |
-
|
27 |
if( false === get_transient('qsm_ads_data') ){
|
28 |
$xml = qsm_fetch_data_from_xml();
|
29 |
if(isset($xml->qsm_ads)){
|
@@ -42,10 +42,11 @@ function qsm_show_adverts() {
|
|
42 |
$link = str_replace('#38', '&', $link);
|
43 |
$ad_text = str_replace('[link]', $link, $all_ads['ads'][$rand_int]['text']);
|
44 |
?>
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
49 |
}
|
50 |
}
|
51 |
-
?>
|
23 |
|
24 |
global $mlwQuizMasterNext;
|
25 |
wp_enqueue_style( 'qsm_admin_style', plugins_url( '../css/qsm-admin.css', __FILE__ ), array(), $mlwQuizMasterNext->version );
|
26 |
+
wp_style_add_data( 'qsm_admin_style', 'rtl', 'replace' );
|
27 |
if( false === get_transient('qsm_ads_data') ){
|
28 |
$xml = qsm_fetch_data_from_xml();
|
29 |
if(isset($xml->qsm_ads)){
|
42 |
$link = str_replace('#38', '&', $link);
|
43 |
$ad_text = str_replace('[link]', $link, $all_ads['ads'][$rand_int]['text']);
|
44 |
?>
|
45 |
+
<div class="help-decide">
|
46 |
+
<p><?php echo $ad_text . ' <a class="remove-adv-button" target="_blank" href="https://quizandsurveymaster.com/downloads/advertisement-gone/"><span class="dashicons dashicons-no-alt"></span> Remove Ads</a>'; ?>
|
47 |
+
</p>
|
48 |
+
</div>
|
49 |
+
<?php
|
50 |
}
|
51 |
}
|
52 |
+
?>
|
php/classes/class-qmn-quiz-manager.php
CHANGED
@@ -245,6 +245,7 @@ class QMNQuizManager {
|
|
245 |
global $wpdb;
|
246 |
global $mlwQuizMasterNext;
|
247 |
wp_enqueue_style( 'qmn_quiz_common_style', plugins_url( '../../css/common.css', __FILE__ ) );
|
|
|
248 |
wp_enqueue_style( 'dashicons' );
|
249 |
wp_enqueue_script( 'jquery' );
|
250 |
wp_enqueue_script( 'jquery-ui-tooltip' );
|
@@ -291,6 +292,7 @@ class QMNQuizManager {
|
|
291 |
if ( 'default' == $qmn_quiz_options->theme_selected ) {
|
292 |
$return_display .= '<style type="text/css">' . htmlspecialchars_decode( $qmn_quiz_options->quiz_stye ) . '</style>';
|
293 |
wp_enqueue_style( 'qmn_quiz_style', plugins_url( '../../css/qmn_quiz.css', __FILE__ ) );
|
|
|
294 |
} else {
|
295 |
$registered_template = $mlwQuizMasterNext->pluginHelper->get_quiz_templates( $qmn_quiz_options->theme_selected );
|
296 |
// Check direct file first, then check templates folder in plugin, then check templates file in theme.
|
@@ -307,6 +309,7 @@ class QMNQuizManager {
|
|
307 |
}
|
308 |
wp_enqueue_style( 'qmn_quiz_animation_style', plugins_url( '../../css/animate.css', __FILE__ ) );
|
309 |
wp_enqueue_style( 'qmn_quiz_common_style', plugins_url( '../../css/common.css', __FILE__ ) );
|
|
|
310 |
wp_enqueue_style( 'dashicons' );
|
311 |
$saved_quiz_theme = $mlwQuizMasterNext->theme_settings->get_active_quiz_theme_path( $quiz );
|
312 |
$folder_name = QSM_THEME_PATH . $saved_quiz_theme . '/';
|
@@ -395,6 +398,7 @@ class QMNQuizManager {
|
|
395 |
$result_data = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}mlw_results WHERE result_id = %d", $id ), ARRAY_A );
|
396 |
if ( $result_data ) {
|
397 |
wp_enqueue_style( 'qmn_quiz_common_style', plugins_url( '../../css/common.css', __FILE__ ) );
|
|
|
398 |
wp_enqueue_style( 'dashicons' );
|
399 |
wp_enqueue_script( 'math_jax', '//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML' );
|
400 |
$quiz_result = unserialize( $result_data['quiz_results'] );
|
@@ -604,6 +608,7 @@ class QMNQuizManager {
|
|
604 |
wp_enqueue_style( 'jquery-ui-slider-rtl-css', plugins_url( '../../css/jquery.ui.slider-rtl.css', __FILE__ ) );
|
605 |
wp_enqueue_script( 'jqueryui-touch-js', '//cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js' );
|
606 |
wp_enqueue_style( 'qsm_model_css', plugins_url( '../../css/qsm-admin.css', __FILE__ ) );
|
|
|
607 |
wp_enqueue_script( 'qsm_model_js', plugins_url( '../../js/micromodal.min.js', __FILE__ ) );
|
608 |
wp_enqueue_script( 'qsm_quiz', plugins_url( '../../js/qsm-quiz.js', __FILE__ ), array( 'wp-util', 'underscore', 'jquery', 'jquery-ui-tooltip', 'progress-bar' ), $mlwQuizMasterNext->version );
|
609 |
wp_localize_script(
|
@@ -626,7 +631,8 @@ class QMNQuizManager {
|
|
626 |
$auto_pagination_class = $options->pagination > 0 ? 'qsm_auto_pagination_enabled' : '';
|
627 |
// $saved_quiz_theme = $mlwQuizMasterNext->quiz_settings->get_setting('quiz_new_theme');
|
628 |
$saved_quiz_theme = $mlwQuizMasterNext->theme_settings->get_active_quiz_theme_path( $options->quiz_id );
|
629 |
-
$
|
|
|
630 |
// Get quiz post based on quiz id
|
631 |
$args = array(
|
632 |
'posts_per_page' => 1,
|
@@ -1704,7 +1710,7 @@ class QMNQuizManager {
|
|
1704 |
}
|
1705 |
|
1706 |
// Return array to be merged with main user response array
|
1707 |
-
return array(
|
1708 |
'total_points' => $points_earned,
|
1709 |
'total_score' => $total_score,
|
1710 |
'total_correct' => $total_correct,
|
@@ -1713,7 +1719,7 @@ class QMNQuizManager {
|
|
1713 |
'question_answers_array' => $question_data,
|
1714 |
'total_possible_points' => $total_possible_points,
|
1715 |
'total_attempted_questions' => $attempted_question,
|
1716 |
-
);
|
1717 |
}
|
1718 |
|
1719 |
/**
|
245 |
global $wpdb;
|
246 |
global $mlwQuizMasterNext;
|
247 |
wp_enqueue_style( 'qmn_quiz_common_style', plugins_url( '../../css/common.css', __FILE__ ) );
|
248 |
+
wp_style_add_data( 'qmn_quiz_common_style', 'rtl', 'replace' );
|
249 |
wp_enqueue_style( 'dashicons' );
|
250 |
wp_enqueue_script( 'jquery' );
|
251 |
wp_enqueue_script( 'jquery-ui-tooltip' );
|
292 |
if ( 'default' == $qmn_quiz_options->theme_selected ) {
|
293 |
$return_display .= '<style type="text/css">' . htmlspecialchars_decode( $qmn_quiz_options->quiz_stye ) . '</style>';
|
294 |
wp_enqueue_style( 'qmn_quiz_style', plugins_url( '../../css/qmn_quiz.css', __FILE__ ) );
|
295 |
+
wp_style_add_data( 'qmn_quiz_style', 'rtl', 'replace' );
|
296 |
} else {
|
297 |
$registered_template = $mlwQuizMasterNext->pluginHelper->get_quiz_templates( $qmn_quiz_options->theme_selected );
|
298 |
// Check direct file first, then check templates folder in plugin, then check templates file in theme.
|
309 |
}
|
310 |
wp_enqueue_style( 'qmn_quiz_animation_style', plugins_url( '../../css/animate.css', __FILE__ ) );
|
311 |
wp_enqueue_style( 'qmn_quiz_common_style', plugins_url( '../../css/common.css', __FILE__ ) );
|
312 |
+
wp_style_add_data( 'qmn_quiz_common_style', 'rtl', 'replace' );
|
313 |
wp_enqueue_style( 'dashicons' );
|
314 |
$saved_quiz_theme = $mlwQuizMasterNext->theme_settings->get_active_quiz_theme_path( $quiz );
|
315 |
$folder_name = QSM_THEME_PATH . $saved_quiz_theme . '/';
|
398 |
$result_data = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}mlw_results WHERE result_id = %d", $id ), ARRAY_A );
|
399 |
if ( $result_data ) {
|
400 |
wp_enqueue_style( 'qmn_quiz_common_style', plugins_url( '../../css/common.css', __FILE__ ) );
|
401 |
+
wp_style_add_data( 'qmn_quiz_common_style', 'rtl', 'replace' );
|
402 |
wp_enqueue_style( 'dashicons' );
|
403 |
wp_enqueue_script( 'math_jax', '//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML' );
|
404 |
$quiz_result = unserialize( $result_data['quiz_results'] );
|
608 |
wp_enqueue_style( 'jquery-ui-slider-rtl-css', plugins_url( '../../css/jquery.ui.slider-rtl.css', __FILE__ ) );
|
609 |
wp_enqueue_script( 'jqueryui-touch-js', '//cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js' );
|
610 |
wp_enqueue_style( 'qsm_model_css', plugins_url( '../../css/qsm-admin.css', __FILE__ ) );
|
611 |
+
wp_style_add_data( 'qsm_model_css', 'rtl', 'replace' );
|
612 |
wp_enqueue_script( 'qsm_model_js', plugins_url( '../../js/micromodal.min.js', __FILE__ ) );
|
613 |
wp_enqueue_script( 'qsm_quiz', plugins_url( '../../js/qsm-quiz.js', __FILE__ ), array( 'wp-util', 'underscore', 'jquery', 'jquery-ui-tooltip', 'progress-bar' ), $mlwQuizMasterNext->version );
|
614 |
wp_localize_script(
|
631 |
$auto_pagination_class = $options->pagination > 0 ? 'qsm_auto_pagination_enabled' : '';
|
632 |
// $saved_quiz_theme = $mlwQuizMasterNext->quiz_settings->get_setting('quiz_new_theme');
|
633 |
$saved_quiz_theme = $mlwQuizMasterNext->theme_settings->get_active_quiz_theme_path( $options->quiz_id );
|
634 |
+
$randomness_class = $options->randomness_order == '0'? '':'random';
|
635 |
+
$quiz_display .= "<div class='qsm-quiz-container qmn_quiz_container mlw_qmn_quiz {$auto_pagination_class} quiz_theme_$saved_quiz_theme {$randomness_class} '>";
|
636 |
// Get quiz post based on quiz id
|
637 |
$args = array(
|
638 |
'posts_per_page' => 1,
|
1710 |
}
|
1711 |
|
1712 |
// Return array to be merged with main user response array
|
1713 |
+
return apply_filters('qsm_check_answers_results' , array(
|
1714 |
'total_points' => $points_earned,
|
1715 |
'total_score' => $total_score,
|
1716 |
'total_correct' => $total_correct,
|
1719 |
'question_answers_array' => $question_data,
|
1720 |
'total_possible_points' => $total_possible_points,
|
1721 |
'total_attempted_questions' => $attempted_question,
|
1722 |
+
), $options, $quiz_data );
|
1723 |
}
|
1724 |
|
1725 |
/**
|
php/classes/class-qsm-emails.php
CHANGED
@@ -163,7 +163,6 @@ class QSM_Emails {
|
|
163 |
$content = htmlspecialchars_decode( $content, ENT_QUOTES );
|
164 |
$response_data['email_template_array'] = true;
|
165 |
$content = apply_filters( 'mlw_qmn_template_variable_results_page', $content, $response_data );
|
166 |
-
$content = str_replace( "\n", '<br>', $content );
|
167 |
$content = str_replace( '<br/>', '<br>', $content );
|
168 |
$content = str_replace( '<br />', '<br>', $content );
|
169 |
$content = html_entity_decode( $content );
|
163 |
$content = htmlspecialchars_decode( $content, ENT_QUOTES );
|
164 |
$response_data['email_template_array'] = true;
|
165 |
$content = apply_filters( 'mlw_qmn_template_variable_results_page', $content, $response_data );
|
|
|
166 |
$content = str_replace( '<br/>', '<br>', $content );
|
167 |
$content = str_replace( '<br />', '<br>', $content );
|
168 |
$content = html_entity_decode( $content );
|
php/classes/class-qsm-results-pages.php
CHANGED
@@ -148,8 +148,7 @@ class QSM_Results_Pages {
|
|
148 |
// Decodes special characters, runs through our template
|
149 |
// variables, and then outputs the text.
|
150 |
$page = htmlspecialchars_decode( $content, ENT_QUOTES );
|
151 |
-
|
152 |
-
echo str_replace( "\n", '<br>', $page );
|
153 |
do_action( 'qsm_after_results_page' );
|
154 |
?>
|
155 |
</div>
|
148 |
// Decodes special characters, runs through our template
|
149 |
// variables, and then outputs the text.
|
150 |
$page = htmlspecialchars_decode( $content, ENT_QUOTES );
|
151 |
+
echo apply_filters( 'mlw_qmn_template_variable_results_page', $page, $response_data );
|
|
|
152 |
do_action( 'qsm_after_results_page' );
|
153 |
?>
|
154 |
</div>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: quiz, survey, lead, test, score, exam, questionnaire, question,wordpress q
|
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.7
|
6 |
Requires PHP: 5.4
|
7 |
-
Stable tag: 7.2.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -21,6 +21,12 @@ Easily create exams, generate leads, surveys and any type of quiz with our popul
|
|
21 |
* [Flashcards](https://demo.quizandsurveymaster.com/flash-card-demo/?utm_source=readme&utm_medium=plugin&utm_campaign=qsm_plugin)
|
22 |
* [Paid Quiz](https://demo.quizandsurveymaster.com/payment-integration-demo/?utm_source=readme&utm_medium=plugin&utm_campaign=qsm_plugin)
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
= Easily Create Quiz or Surveys For Your Users =
|
25 |
Quiz and Survey Master is the easiest [WordPress Quiz Plugin](https://quizandsurveymaster.com/) which can be used to create engaging content to drive traffic and increase user engagement. Everything from viral quiz, trivia quiz, customer satisfaction surveys to employee surveys. This plugin is the ultimate marketing tool for your website.
|
26 |
|
@@ -88,16 +94,16 @@ Quiz And Survey Master is fully functional and is packed with tons of features t
|
|
88 |
* [MailChimp Integration](https://quizandsurveymaster.com/downloads/mailchimp-integration/?utm_source=readme&utm_medium=plugin&utm_content=mailchimp-integration&utm_campaign=qsm_plugin)
|
89 |
* And **many** more available in our [Quiz And Survey Master Addon Store](https://quizandsurveymaster.com/addons/?utm_source=readme&utm_medium=plugin&utm_content=all-addons&utm_campaign=qsm_plugin)
|
90 |
|
91 |
-
|
|
|
92 |
* You can contact our pro support via our [Contact Form](https://quizandsurveymaster.com/contact-support/) or use the WordPress form for free plugin support. We are equally active on both places.
|
93 |
* Join our [official FB group](https://www.facebook.com/groups/516958552587745).
|
94 |
* Quiz And Survey Master on [GitHub](https://github.com/QuizandSurveyMaster/quiz_master_next/)!
|
95 |
|
96 |
-
=
|
97 |
-
* Quiz cat (quizcat) - We offer a lot more questions types than just viral quiz and multiple choice. We provide a tons of integrations to help you automate your marketing campaign.
|
98 |
-
* HD Quiz - Mainly used for viral and trivial questions types. We are in process of creating these question types.
|
99 |
-
* WP Quiz Plugin - Again, mainly used for viral question types. We will release this by the end of this month.
|
100 |
|
|
|
|
|
101 |
|
102 |
== Installation ==
|
103 |
|
@@ -140,6 +146,11 @@ This is usually a theme conflict. You can [checkout out our common conflict solu
|
|
140 |
|
141 |
== Changelog ==
|
142 |
|
|
|
|
|
|
|
|
|
|
|
143 |
= 7.2.0 (June 21, 2021) =
|
144 |
* Feature: Introduced QSM Themes.
|
145 |
* Feature: Introduced image type answers.
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.7
|
6 |
Requires PHP: 5.4
|
7 |
+
Stable tag: 7.2.1
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
21 |
* [Flashcards](https://demo.quizandsurveymaster.com/flash-card-demo/?utm_source=readme&utm_medium=plugin&utm_campaign=qsm_plugin)
|
22 |
* [Paid Quiz](https://demo.quizandsurveymaster.com/payment-integration-demo/?utm_source=readme&utm_medium=plugin&utm_campaign=qsm_plugin)
|
23 |
|
24 |
+
= Themes =
|
25 |
+
* [Theme Breeze](https://themes.quizandsurveymaster.com/breeze-qsm-theme-demo/?utm_source=readme&utm_medium=plugin&utm_campaign=qsm_plugin)
|
26 |
+
* [Theme Fragrance](https://themes.quizandsurveymaster.com/fragrance-qsm-theme-demo/?utm_source=readme&utm_medium=plugin&utm_campaign=qsm_plugin)
|
27 |
+
* [Theme Ivory](https://themes.quizandsurveymaster.com/ivory-qsm-theme-demo/?utm_source=readme&utm_medium=plugin&utm_campaign=qsm_plugin)
|
28 |
+
* [Theme Pool](https://themes.quizandsurveymaster.com/pool-qsm-theme-demo/?utm_source=readme&utm_medium=plugin&utm_campaign=qsm_plugin)
|
29 |
+
|
30 |
= Easily Create Quiz or Surveys For Your Users =
|
31 |
Quiz and Survey Master is the easiest [WordPress Quiz Plugin](https://quizandsurveymaster.com/) which can be used to create engaging content to drive traffic and increase user engagement. Everything from viral quiz, trivia quiz, customer satisfaction surveys to employee surveys. This plugin is the ultimate marketing tool for your website.
|
32 |
|
94 |
* [MailChimp Integration](https://quizandsurveymaster.com/downloads/mailchimp-integration/?utm_source=readme&utm_medium=plugin&utm_content=mailchimp-integration&utm_campaign=qsm_plugin)
|
95 |
* And **many** more available in our [Quiz And Survey Master Addon Store](https://quizandsurveymaster.com/addons/?utm_source=readme&utm_medium=plugin&utm_content=all-addons&utm_campaign=qsm_plugin)
|
96 |
|
97 |
+
= Reachout to us =
|
98 |
+
|
99 |
* You can contact our pro support via our [Contact Form](https://quizandsurveymaster.com/contact-support/) or use the WordPress form for free plugin support. We are equally active on both places.
|
100 |
* Join our [official FB group](https://www.facebook.com/groups/516958552587745).
|
101 |
* Quiz And Survey Master on [GitHub](https://github.com/QuizandSurveyMaster/quiz_master_next/)!
|
102 |
|
103 |
+
= More free plugins for your WordPress Site =
|
|
|
|
|
|
|
104 |
|
105 |
+
* 🎨 [Responsive Menu](https://wordpress.org/plugins/responsive-menu/) Highly customisable Responsive Menu Plugin for WordPress. No coding experience or knowledge is needed with an easy to use interface you can get it looking exactly as you want with minimal fuss.
|
106 |
+
* 🔒 [Hide My WP](https://wordpress.org/plugins/hide-wp-login/) Makes it impossible for a hacker or an attacker to know the location of login url.
|
107 |
|
108 |
== Installation ==
|
109 |
|
146 |
|
147 |
== Changelog ==
|
148 |
|
149 |
+
= 7.2.1 (June 25, 2021) =
|
150 |
+
* Bug: Fixed layout issues with rtl languages.
|
151 |
+
* Bug: Fixed issue of user comments not appearing on admin result page.
|
152 |
+
* Bug: Fixed issue with recaptcha not appearing on random quiz.
|
153 |
+
|
154 |
= 7.2.0 (June 21, 2021) =
|
155 |
* Feature: Introduced QSM Themes.
|
156 |
* Feature: Introduced image type answers.
|