Version Description
Download this release
Release Info
Developer | Muneeb |
Plugin | WP Maintenance Mode / Coming Soon Page Builder |
Version | 3.2 |
Comparing to | |
See all releases |
Code changes from version 2.1 to 3.2
- config.php +3 -1
- css/admin-settings.css +475 -69
- css/colorpicker.js +492 -0
- images/banner.png +0 -0
- images/default-1.jpg +0 -0
- images/default-2.jpg +0 -0
- images/default-3.jpg +0 -0
- images/fb.png +0 -0
- images/instagram.png +0 -0
- images/linkedin.png +0 -0
- images/maintenance-one.png +0 -0
- images/pinterest.png +0 -0
- images/pre-launch.png +0 -0
- images/twitter.png +0 -0
- includes/classes/class-wpmmp-alissa-theme.php +27 -0
- includes/classes/class-wpmmp-cs-simple-theme.php +32 -0
- includes/classes/class-wpmmp-default-theme.php +2 -0
- includes/classes/class-wpmmp-launch-theme.php +25 -0
- includes/classes/class-wpmmp-minimal-theme.php +23 -0
- includes/classes/class-wpmmp-mmone-theme.php +25 -0
- includes/classes/class-wpmmp-settings.php +226 -122
- includes/classes/class-wpmmp-theme-handler.php +166 -44
- includes/functions.php +24 -2
- includes/tabs.php +1041 -0
- js/admin-settings.js +515 -12
- js/index.php +0 -0
- readme.txt +112 -22
- views/admin-settings/add-email-form.php +50 -0
- views/admin-settings/add-hooktohead.php +16 -0
- views/admin-settings/add-social-icons.php +27 -0
- views/admin-settings/add-styles.php +64 -0
- views/admin-settings/general-meta-box.php +22 -20
- views/admin-settings/premiumui.php +782 -0
- views/admin-settings/settings-saved.php +0 -3
- views/admin-settings/settings.php +0 -18
- views/admin-settings/tab-advanced-settings.php +0 -48
- views/themes/default/assets/css/style.css +23 -27
- views/themes/default/assets/img/1main-bg.jpg +0 -0
- views/themes/default/assets/img/2main-bg.jpg +0 -0
- views/themes/default/assets/img/main-bg.jpg +0 -0
- views/themes/default/assets/js/jquery.countdown.min.js +3 -3
- views/themes/default/template.php +42 -27
- wp-wpmmp.php +11 -7
config.php
CHANGED
@@ -32,4 +32,6 @@ define( 'WPMMP_PLUGIN_JS_DIRECTORY', WPMMP_PLUGIN_PATH .
|
|
32 |
|
33 |
define( 'WPMMP_PLUGIN_MAIN_FILE', WPMMP_PLUGIN_PATH . 'wp-wpmmp.php' );
|
34 |
|
35 |
-
define( 'WPMMP_PLUGIN_VERSION', '
|
|
|
|
32 |
|
33 |
define( 'WPMMP_PLUGIN_MAIN_FILE', WPMMP_PLUGIN_PATH . 'wp-wpmmp.php' );
|
34 |
|
35 |
+
define( 'WPMMP_PLUGIN_VERSION', '3.8.1' );
|
36 |
+
|
37 |
+
define( 'WPMMP_FREE_VERSION_ACTIVATED', true );
|
css/admin-settings.css
CHANGED
@@ -1,136 +1,542 @@
|
|
1 |
.postbox {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
}
|
10 |
|
11 |
.postbox .inside {
|
12 |
-
|
13 |
}
|
14 |
|
15 |
.inside {
|
16 |
-
|
17 |
-
|
18 |
}
|
19 |
|
20 |
.handlediv {
|
21 |
-
|
22 |
}
|
23 |
|
24 |
#wpmmp_options .wpmmp_input {
|
25 |
-
|
26 |
}
|
27 |
|
28 |
#wpmmp_options {
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
}
|
33 |
|
34 |
#wpmmp_options td{
|
35 |
-
|
36 |
}
|
37 |
|
38 |
#wpmmp_options tbody tr td {
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
}
|
43 |
|
44 |
#wpmmp_options td.label{
|
45 |
-
|
46 |
}
|
47 |
|
48 |
.wp-list-table {
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
}
|
53 |
|
54 |
table.wpmmp_input {
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
}
|
61 |
|
62 |
table.wpmmp_input input[type="text"], table.wpmmp_input textarea, table.wpmmp_input select {
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
}
|
67 |
|
68 |
table.wpmmp_input tbody tr:first-child td, table.wpmmp_input tbody tr:first-child td.label {
|
69 |
-
|
70 |
}
|
71 |
|
72 |
table.wpmmp_input tbody tr td.label label span.required {
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
}
|
77 |
|
78 |
table.wpmmp_input tbody tr td.label {
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
}
|
85 |
|
86 |
table.wpmmp_input tbody tr td.label p {
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
}
|
95 |
|
96 |
table.wpmmp_input tbody tr td.label label {
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
}
|
104 |
|
105 |
#wpmmp_options input[type=text] {
|
106 |
-
|
107 |
}
|
108 |
|
109 |
#wpmmp_options p label span{
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
}
|
115 |
|
116 |
.nav-tab-wrapper {
|
117 |
-
|
118 |
}
|
119 |
|
120 |
#wpmmp-themes li{
|
121 |
-
|
122 |
-
|
123 |
-
|
|
|
|
|
|
|
|
|
124 |
}
|
125 |
|
126 |
#wpmmp-themes li img {
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
}
|
132 |
|
133 |
-
.
|
134 |
-
|
135 |
-
|
|
|
|
|
|
|
136 |
}
|
1 |
.postbox {
|
2 |
+
min-width: 200px;
|
3 |
+
background: white;
|
4 |
+
border: 1px solid #E1E1E1;
|
5 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
6 |
+
position: relative;
|
7 |
+
border-radius: 0;
|
8 |
+
max-width: 98%;
|
9 |
}
|
10 |
|
11 |
.postbox .inside {
|
12 |
+
margin: 2px;
|
13 |
}
|
14 |
|
15 |
.inside {
|
16 |
+
padding: 0 !important;
|
17 |
+
margin: 0 !important;
|
18 |
}
|
19 |
|
20 |
.handlediv {
|
21 |
+
display: none;
|
22 |
}
|
23 |
|
24 |
#wpmmp_options .wpmmp_input {
|
25 |
+
border: 0px !important;
|
26 |
}
|
27 |
|
28 |
#wpmmp_options {
|
29 |
+
background-color: white;
|
30 |
+
border: 0px;
|
31 |
+
padding: 0;
|
32 |
}
|
33 |
|
34 |
#wpmmp_options td{
|
35 |
+
padding: 10px;
|
36 |
}
|
37 |
|
38 |
#wpmmp_options tbody tr td {
|
39 |
+
padding: 10px;
|
40 |
+
border-top: 1px solid whiteSmoke;
|
41 |
+
border-bottom: 0 none;
|
42 |
}
|
43 |
|
44 |
#wpmmp_options td.label{
|
45 |
+
border-top: 1px solid #F0F0F0;
|
46 |
}
|
47 |
|
48 |
.wp-list-table {
|
49 |
+
border-radius: 0;
|
50 |
+
border: 1px solid #E1E1E1;
|
51 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
52 |
}
|
53 |
|
54 |
table.wpmmp_input {
|
55 |
+
border: #86a1b5 solid 1px;
|
56 |
+
position: relative;
|
57 |
+
overflow: hidden;
|
58 |
+
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
|
59 |
+
border-radius: 0;
|
60 |
}
|
61 |
|
62 |
table.wpmmp_input input[type="text"], table.wpmmp_input textarea, table.wpmmp_input select {
|
63 |
+
width: 99.95%;
|
64 |
+
padding: 5px;
|
65 |
+
outline: none;
|
66 |
}
|
67 |
|
68 |
table.wpmmp_input tbody tr:first-child td, table.wpmmp_input tbody tr:first-child td.label {
|
69 |
+
border-top: 0 none;
|
70 |
}
|
71 |
|
72 |
table.wpmmp_input tbody tr td.label label span.required {
|
73 |
+
color: red;
|
74 |
+
display: inline;
|
75 |
+
margin-right: 5px;
|
76 |
}
|
77 |
|
78 |
table.wpmmp_input tbody tr td.label {
|
79 |
+
width: 24%;
|
80 |
+
vertical-align: top;
|
81 |
+
background: #F9F9F9;
|
82 |
+
border-top: 1px solid #F0F0F0;
|
83 |
+
border-right: 1px solid #E1E1E1;
|
84 |
}
|
85 |
|
86 |
table.wpmmp_input tbody tr td.label p {
|
87 |
+
display: block;
|
88 |
+
font-size: 12px;
|
89 |
+
padding: 6px 0 !important;
|
90 |
+
margin: 0 !important;
|
91 |
+
font-style: normal;
|
92 |
+
line-height: 16px;
|
93 |
+
color: #666;
|
94 |
}
|
95 |
|
96 |
table.wpmmp_input tbody tr td.label label {
|
97 |
+
display: block;
|
98 |
+
font-size: 12px;
|
99 |
+
font-weight: bold;
|
100 |
+
padding: 0;
|
101 |
+
margin: 0;
|
102 |
+
color: #333;
|
103 |
}
|
104 |
|
105 |
#wpmmp_options input[type=text] {
|
106 |
+
width: 90%;
|
107 |
}
|
108 |
|
109 |
#wpmmp_options p label span{
|
110 |
+
font-weight: bold;
|
111 |
+
position: relative;
|
112 |
+
left: 5px;
|
113 |
+
top: 2px;
|
114 |
}
|
115 |
|
116 |
.nav-tab-wrapper {
|
117 |
+
margin-bottom: 0px;
|
118 |
}
|
119 |
|
120 |
#wpmmp-themes li{
|
121 |
+
float: left;
|
122 |
+
margin: 5px;
|
123 |
+
margin-right: 35px;
|
124 |
+
}
|
125 |
+
|
126 |
+
#wpmmp-themes li:first-child {
|
127 |
+
|
128 |
}
|
129 |
|
130 |
#wpmmp-themes li img {
|
131 |
+
width: 250px;
|
132 |
+
height: 180px;
|
133 |
+
-moz-box-shadow: 3px 3px 5px 6px #ccc;
|
134 |
+
-webkit-box-shadow: 3px 3px 5px 6px #ccc;
|
135 |
+
box-shadow: 3px 3px 5px 6px #ccc;
|
136 |
+
}
|
137 |
+
|
138 |
+
|
139 |
+
|
140 |
+
.onoffswitch {
|
141 |
+
position: relative; width: 90px;
|
142 |
+
-webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
|
143 |
+
}
|
144 |
+
td .onoffswitch-checkbox {
|
145 |
+
display: none;
|
146 |
+
}
|
147 |
+
.onoffswitch-label {
|
148 |
+
display: block; overflow: hidden; cursor: pointer;
|
149 |
+
border: 2px solid #999999; border-radius: 20px;
|
150 |
+
}
|
151 |
+
.onoffswitch-inner {
|
152 |
+
display: block; width: 200%; margin-left: -100%;
|
153 |
+
transition: margin 0.1s ease-in 0s;
|
154 |
+
}
|
155 |
+
.onoffswitch-inner:before, .onoffswitch-inner:after {
|
156 |
+
display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
|
157 |
+
font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
|
158 |
+
box-sizing: border-box;
|
159 |
+
}
|
160 |
+
.onoffswitch-inner:before {
|
161 |
+
content: "Yes";
|
162 |
+
padding-left: 10px;
|
163 |
+
background-color: #34A7C1; color: #FFFFFF;
|
164 |
+
}
|
165 |
+
.onoffswitch-inner:after {
|
166 |
+
content: "No";
|
167 |
+
padding-right: 10px;
|
168 |
+
background-color: #EEEEEE; color: #999999;
|
169 |
+
text-align: right;
|
170 |
+
}
|
171 |
+
.onoffswitch-switch {
|
172 |
+
display: block; width: 18px; margin: 6px;
|
173 |
+
background: #FFFFFF;
|
174 |
+
position: absolute; top: 0; bottom: 0;
|
175 |
+
right: 56px;
|
176 |
+
border: 2px solid #999999; border-radius: 20px;
|
177 |
+
transition: all 0.1s ease-in 0s;
|
178 |
+
}
|
179 |
+
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
|
180 |
+
margin-left: 0;
|
181 |
+
}
|
182 |
+
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
|
183 |
+
right: 0px;
|
184 |
+
|
185 |
+
}
|
186 |
+
@font-face {
|
187 |
+
font-family: 'Montserrat';
|
188 |
+
font-style: normal;
|
189 |
+
font-weight: 400;
|
190 |
+
src: local('Montserrat-Regular'), url(http://fonts.gstatic.com/s/montserrat/v6/zhcz-_WihjSQC0oHJ9TCYPk_vArhqVIZ0nv9q090hN8.woff2) format('woff2'), url(http://fonts.gstatic.com/s/montserrat/v6/zhcz-_WihjSQC0oHJ9TCYBsxEYwM7FgeyaSgU71cLG0.woff) format('woff');
|
191 |
+
}
|
192 |
+
|
193 |
+
@font-face {
|
194 |
+
font-family: 'Lato';
|
195 |
+
font-style: normal;
|
196 |
+
font-weight: 400;
|
197 |
+
src: local('Lato Regular'), local('Lato-Regular'), url(http://fonts.gstatic.com/s/lato/v11/1YwB1sO8YE1Lyjf12WNiUA.woff2) format('woff2'), url(http://fonts.gstatic.com/s/lato/v11/9k-RPmcnxYEPm8CNFsH2gg.woff) format('woff');
|
198 |
+
}
|
199 |
+
@font-face {
|
200 |
+
font-family: 'Lato';
|
201 |
+
font-style: normal;
|
202 |
+
font-weight: 700;
|
203 |
+
src: local('Lato Bold'), local('Lato-Bold'), url(http://fonts.gstatic.com/s/lato/v11/H2DMvhDLycM56KNuAtbJYA.woff2) format('woff2'), url(http://fonts.gstatic.com/s/lato/v11/wkfQbvfT_02e2IWO3yYueQ.woff) format('woff');
|
204 |
+
}
|
205 |
+
@font-face {
|
206 |
+
font-family: 'Lato';
|
207 |
+
font-style: italic;
|
208 |
+
font-weight: 400;
|
209 |
+
src: local('Lato Italic'), local('Lato-Italic'), url(http://fonts.gstatic.com/s/lato/v11/PLygLKRVCQnA5fhu3qk5fQ.woff2) format('woff2'), url(http://fonts.gstatic.com/s/lato/v11/oUan5VrEkpzIazlUe5ieaA.woff) format('woff');
|
210 |
+
}
|
211 |
+
|
212 |
+
.onoffswitch {
|
213 |
+
-webkit-transition: all 0.4s ease-in-out;
|
214 |
+
-moz-transition: all 0.4s ease-in-out;
|
215 |
+
-ms-transition: all 0.4s ease-in-out;
|
216 |
+
-o-transition: all 0.4s ease-in-out;
|
217 |
+
transition: all 0.4s ease-in-out;
|
218 |
+
}
|
219 |
+
|
220 |
+
b, strong {
|
221 |
+
color: #666;
|
222 |
+
font-size: 18px;
|
223 |
+
font-weight: 700;
|
224 |
+
}
|
225 |
+
|
226 |
+
|
227 |
+
.wrap {
|
228 |
+
background-color: #fff;
|
229 |
+
border-radius: 3px;
|
230 |
+
box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.1);
|
231 |
+
font-family: Lato;
|
232 |
+
margin: 4% auto;
|
233 |
+
overflow: hidden;
|
234 |
+
padding: 40px 6%;
|
235 |
+
width: 82%;
|
236 |
+
}
|
237 |
+
|
238 |
+
.wrap p{
|
239 |
+
font-size: 19px;
|
240 |
+
color:#777;
|
241 |
+
}
|
242 |
+
|
243 |
+
.wrap h1 {
|
244 |
+
background: #ffba00 none repeat scroll 0 0;
|
245 |
+
color: #fff;
|
246 |
+
font-family: 'Montserrat',sans-serif;
|
247 |
+
font-size: 42px;
|
248 |
+
font-weight: 400;
|
249 |
+
margin: -40px -8% 40px;
|
250 |
+
padding: 40px;
|
251 |
+
text-align: center;
|
252 |
+
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
|
253 |
+
}
|
254 |
+
|
255 |
+
.wrap h3 {
|
256 |
+
color: #666;
|
257 |
+
font-size: 20px;
|
258 |
+
text-align: left;
|
259 |
+
}
|
260 |
+
|
261 |
+
|
262 |
+
.wrap #hed3 {
|
263 |
+
background-color: #0074a2;
|
264 |
+
height: auto;
|
265 |
+
margin: 40px -8%;
|
266 |
+
padding: 10px;
|
267 |
+
text-align: center;
|
268 |
+
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
|
269 |
+
}
|
270 |
+
|
271 |
+
|
272 |
+
#hed3 h3 {
|
273 |
+
color: #fff;
|
274 |
+
font-family: Montserrat,sans-serif;
|
275 |
+
font-size: 32px;
|
276 |
+
font-weight: 400;
|
277 |
+
text-align: center;
|
278 |
+
}
|
279 |
+
|
280 |
+
.wrap th
|
281 |
+
{
|
282 |
+
color :#666;
|
283 |
+
font-size: 1.2em;
|
284 |
+
padding-left: 15px;
|
285 |
+
|
286 |
+
}
|
287 |
+
|
288 |
+
|
289 |
+
.wrap td
|
290 |
+
{
|
291 |
+
padding-left: 40px;
|
292 |
+
}
|
293 |
+
.wrap h3 a ,p a
|
294 |
+
{
|
295 |
+
text-decoration: none;
|
296 |
+
}
|
297 |
+
.wrap td p
|
298 |
+
{
|
299 |
+
color:#666;
|
300 |
+
font-size:1.2em;
|
301 |
+
}
|
302 |
+
.wrap p.submit
|
303 |
+
{
|
304 |
+
text-align: center;
|
305 |
+
}
|
306 |
+
.wrap input[type=checkbox] {
|
307 |
+
/* All browsers except webkit*/
|
308 |
+
transform: scale(1.2);
|
309 |
+
|
310 |
+
/* Webkit browsers*/
|
311 |
+
-webkit-transform: scale(1.2);
|
312 |
+
|
313 |
+
|
314 |
+
}
|
315 |
+
/*
|
316 |
+
This css and associated images borrow heavily from the fantastic
|
317 |
+
chosen select box plugin.
|
318 |
+
|
319 |
+
Copyright (c) 2011 Harvest http://getharvest.com
|
320 |
+
|
321 |
+
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
322 |
+
*/
|
323 |
+
|
324 |
+
td .font-select {
|
325 |
+
font-size: 16px;
|
326 |
+
width: 210px;
|
327 |
+
position: relative;
|
328 |
+
display: inline-block;
|
329 |
+
zoom: 1;
|
330 |
+
*display: inline;
|
331 |
+
}
|
332 |
+
|
333 |
+
td .font-select .fs-drop {
|
334 |
+
background: #fff;
|
335 |
+
border: 1px solid #aaa;
|
336 |
+
border-top: 0;
|
337 |
+
position: absolute;
|
338 |
+
top: 29px;
|
339 |
+
left: 0;
|
340 |
+
-webkit-box-shadow: 0 4px 5px rgba(0,0,0,.15);
|
341 |
+
-moz-box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
342 |
+
-o-box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
343 |
+
box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
344 |
+
z-index: 999;
|
345 |
+
}
|
346 |
+
|
347 |
+
td .font-select > a {
|
348 |
+
background-color: #fff;
|
349 |
+
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.5, white));
|
350 |
+
background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 50%);
|
351 |
+
background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 50%);
|
352 |
+
background-image: -o-linear-gradient(top, #eeeeee 0%,#ffffff 50%);
|
353 |
+
background-image: -ms-linear-gradient(top, #eeeeee 0%,#ffffff 50%);
|
354 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=0 );
|
355 |
+
background-image: linear-gradient(top, #eeeeee 0%,#ffffff 50%);
|
356 |
+
-webkit-border-radius: 4px;
|
357 |
+
-moz-border-radius : 4px;
|
358 |
+
border-radius : 4px;
|
359 |
+
-moz-background-clip : padding;
|
360 |
+
-webkit-background-clip: padding-box;
|
361 |
+
background-clip : padding-box;
|
362 |
+
border: 1px solid #aaa;
|
363 |
+
display: block;
|
364 |
+
overflow: hidden;
|
365 |
+
white-space: nowrap;
|
366 |
+
position: relative;
|
367 |
+
height: 26px;
|
368 |
+
line-height: 26px;
|
369 |
+
padding: 0 0 0 8px;
|
370 |
+
color: #444;
|
371 |
+
text-decoration: none;
|
372 |
+
}
|
373 |
+
|
374 |
+
td .font-select > a span {
|
375 |
+
margin-right: 26px;
|
376 |
+
display: block;
|
377 |
+
overflow: hidden;
|
378 |
+
white-space: nowrap;
|
379 |
+
line-height: 1.8;
|
380 |
+
-o-text-overflow: ellipsis;
|
381 |
+
-ms-text-overflow: ellipsis;
|
382 |
+
text-overflow: ellipsis;
|
383 |
+
cursor: pointer;
|
384 |
+
}
|
385 |
+
|
386 |
+
td .font-select > a div {
|
387 |
+
-webkit-border-radius: 0 4px 4px 0;
|
388 |
+
-moz-border-radius : 0 4px 4px 0;
|
389 |
+
border-radius : 0 4px 4px 0;
|
390 |
+
-moz-background-clip : padding;
|
391 |
+
-webkit-background-clip: padding-box;
|
392 |
+
background-clip : padding-box;
|
393 |
+
background: #ccc;
|
394 |
+
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
|
395 |
+
background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
|
396 |
+
background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
|
397 |
+
background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%);
|
398 |
+
background-image: -ms-linear-gradient(top, #cccccc 0%,#eeeeee 60%);
|
399 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cccccc', endColorstr='#eeeeee',GradientType=0 );
|
400 |
+
background-image: linear-gradient(top, #cccccc 0%,#eeeeee 60%);
|
401 |
+
border-left: 1px solid #aaa;
|
402 |
+
position: absolute;
|
403 |
+
right: 0;
|
404 |
+
top: 0;
|
405 |
+
display: block;
|
406 |
+
height: 100%;
|
407 |
+
width: 18px;
|
408 |
+
}
|
409 |
+
|
410 |
+
td .font-select > a div b {
|
411 |
+
background: url('') no-repeat 0 1px;
|
412 |
+
display: block;
|
413 |
+
width: 100%;
|
414 |
+
height: 100%;
|
415 |
+
cursor: pointer;
|
416 |
+
}
|
417 |
+
|
418 |
+
td .font-select .fs-drop {
|
419 |
+
-webkit-border-radius: 0 0 4px 4px;
|
420 |
+
-moz-border-radius : 0 0 4px 4px;
|
421 |
+
border-radius : 0 0 4px 4px;
|
422 |
+
-moz-background-clip : padding;
|
423 |
+
-webkit-background-clip: padding-box;
|
424 |
+
background-clip : padding-box;
|
425 |
+
}
|
426 |
+
|
427 |
+
td .font-select .fs-results {
|
428 |
+
margin: 0 4px 4px 0;
|
429 |
+
max-height: 190px;
|
430 |
+
width: 200px;
|
431 |
+
padding: 0 0 0 4px;
|
432 |
+
position: relative;
|
433 |
+
overflow-x: hidden;
|
434 |
+
overflow-y: auto;
|
435 |
+
}
|
436 |
+
|
437 |
+
td .font-select .fs-results li {
|
438 |
+
line-height: 80%;
|
439 |
+
padding: 7px 7px 8px;
|
440 |
+
margin: 0;
|
441 |
+
list-style: none;
|
442 |
+
font-size: 18px;
|
443 |
+
}
|
444 |
+
|
445 |
+
td .font-select .fs-results li.active {
|
446 |
+
background: #3875d7;
|
447 |
+
color: #fff;
|
448 |
+
cursor: pointer;
|
449 |
+
}
|
450 |
+
td.font-select .fs-results li em {
|
451 |
+
background: #feffde;
|
452 |
+
font-style: normal;
|
453 |
+
}
|
454 |
+
|
455 |
+
td.font-select .fs-results li.active em {
|
456 |
+
background: transparent;
|
457 |
+
}
|
458 |
+
|
459 |
+
td.font-select-active > a {
|
460 |
+
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
461 |
+
-moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
462 |
+
-o-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
463 |
+
box-shadow : 0 0 5px rgba(0,0,0,.3);
|
464 |
+
border: 1px solid #5897fb;
|
465 |
+
}
|
466 |
+
|
467 |
+
td.font-select-active > a {
|
468 |
+
border: 1px solid #aaa;
|
469 |
+
-webkit-box-shadow: 0 1px 0 #fff inset;
|
470 |
+
-moz-box-shadow : 0 1px 0 #fff inset;
|
471 |
+
-o-box-shadow : 0 1px 0 #fff inset;
|
472 |
+
box-shadow : 0 1px 0 #fff inset;
|
473 |
+
background-color: #eee;
|
474 |
+
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
|
475 |
+
background-image: -webkit-linear-gradient(center bottom, white 0%, #eeeeee 50%);
|
476 |
+
background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%);
|
477 |
+
background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
|
478 |
+
background-image: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 50%);
|
479 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 );
|
480 |
+
background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%);
|
481 |
+
-webkit-border-bottom-left-radius : 0;
|
482 |
+
-webkit-border-bottom-right-radius: 0;
|
483 |
+
-moz-border-radius-bottomleft : 0;
|
484 |
+
-moz-border-radius-bottomright: 0;
|
485 |
+
border-bottom-left-radius : 0;
|
486 |
+
border-bottom-right-radius: 0;
|
487 |
+
}
|
488 |
+
|
489 |
+
td.font-select-active > a div {
|
490 |
+
background: transparent;
|
491 |
+
border-left: none;
|
492 |
+
}
|
493 |
+
|
494 |
+
td.font-select-active > a div b {
|
495 |
+
background-position: -18px 1px;
|
496 |
+
}
|
497 |
+
|
498 |
+
|
499 |
+
td span#pal {
|
500 |
+
top: 80px;
|
501 |
+
}
|
502 |
+
|
503 |
+
.heading_save_btn {
|
504 |
+
float: right;
|
505 |
+
position: relative;
|
506 |
+
top: -20px;
|
507 |
+
right: -5px;
|
508 |
+
}
|
509 |
+
|
510 |
+
#mmp-options-title {
|
511 |
+
background: #ffba00 none repeat scroll 0 0;
|
512 |
+
color: #fff;
|
513 |
+
font-family: 'Montserrat',sans-serif;
|
514 |
+
font-size: 42px;
|
515 |
+
font-weight: 400;
|
516 |
+
margin: -40px -8% 40px;
|
517 |
+
padding: 40px;
|
518 |
+
text-align: center;
|
519 |
+
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
|
520 |
+
}
|
521 |
+
|
522 |
+
#hed3 {
|
523 |
+
display: none;
|
524 |
+
}
|
525 |
+
|
526 |
+
.accordion {
|
527 |
+
display: none;
|
528 |
+
border-bottom: 1px solid #ddd;
|
529 |
+
padding-bottom: 10px;
|
530 |
+
}
|
531 |
+
|
532 |
+
.accordion.active {
|
533 |
+
display: block;
|
534 |
}
|
535 |
|
536 |
+
.submit .button-primary {
|
537 |
+
width: 30%;
|
538 |
+
height: 50px;
|
539 |
+
font-size: 20px;
|
540 |
+
-webkit-font-smoothing: antialiased;
|
541 |
+
font-weight: bold;
|
542 |
}
|
css/colorpicker.js
ADDED
@@ -0,0 +1,492 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
jQuery(document).ready(function() {
|
3 |
+
jQuery('.color_picker').wpColorPicker();
|
4 |
+
});
|
5 |
+
|
6 |
+
|
7 |
+
jQuery(document).ready(function() {
|
8 |
+
jQuery('#font').fontselect().change(function(){
|
9 |
+
|
10 |
+
var font = jQuery(this).val().replace(/\+/g, ' ');
|
11 |
+
font = font.split(':');
|
12 |
+
|
13 |
+
jQuery(".ffft").val(font[0]);
|
14 |
+
|
15 |
+
});
|
16 |
+
|
17 |
+
});
|
18 |
+
|
19 |
+
jQuery(document).ready(function() {
|
20 |
+
jQuery('#font1').fontselect().change(function(){
|
21 |
+
|
22 |
+
var font = jQuery(this).val().replace(/\+/g, ' ');
|
23 |
+
font = font.split(':');
|
24 |
+
|
25 |
+
jQuery(".ffft").val(font[0]);
|
26 |
+
|
27 |
+
});
|
28 |
+
|
29 |
+
});
|
30 |
+
|
31 |
+
|
32 |
+
jQuery(document).ready(function() {
|
33 |
+
jQuery('#font2').fontselect().change(function(){
|
34 |
+
|
35 |
+
var font = jQuery(this).val().replace(/\+/g, ' ');
|
36 |
+
font = font.split(':');
|
37 |
+
|
38 |
+
jQuery(".ffft").val(font[0]);
|
39 |
+
|
40 |
+
});
|
41 |
+
|
42 |
+
});
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
+
|
47 |
+
/*
|
48 |
+
Using WordPress Media Uploader System with plugin settings
|
49 |
+
Author: oneTarek
|
50 |
+
Author URI: http://onetarek.com
|
51 |
+
*/
|
52 |
+
jQuery(document).ready(function() {
|
53 |
+
|
54 |
+
var formfield;
|
55 |
+
|
56 |
+
/* user clicks button on custom field, runs below code that opens new window */
|
57 |
+
jQuery('.onetarek-upload-button').click(function() {
|
58 |
+
formfield = jQuery(this).prev('input'); //The input field that will hold the uploaded file url
|
59 |
+
tb_show('','media-upload.php?TB_iframe=true');
|
60 |
+
|
61 |
+
return false;
|
62 |
+
|
63 |
+
});
|
64 |
+
/*
|
65 |
+
Please keep these line to use this code snipet in your project
|
66 |
+
Developed by oneTarek http://onetarek.com
|
67 |
+
*/
|
68 |
+
//adding my custom function with Thick box close function tb_close() .
|
69 |
+
window.old_tb_remove = window.tb_remove;
|
70 |
+
window.tb_remove = function() {
|
71 |
+
window.old_tb_remove(); // calls the tb_remove() of the Thickbox plugin
|
72 |
+
formfield=null;
|
73 |
+
};
|
74 |
+
|
75 |
+
// user inserts file into post. only run custom if user started process using the above process
|
76 |
+
// window.send_to_editor(html) is how wp would normally handle the received data
|
77 |
+
|
78 |
+
window.original_send_to_editor = window.send_to_editor;
|
79 |
+
window.send_to_editor = function(html){
|
80 |
+
if (formfield) {
|
81 |
+
fileurl = jQuery('img',html).attr('src');
|
82 |
+
jQuery(formfield).val(fileurl);
|
83 |
+
tb_remove();
|
84 |
+
} else {
|
85 |
+
window.original_send_to_editor(html);
|
86 |
+
}
|
87 |
+
};
|
88 |
+
|
89 |
+
});
|
90 |
+
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
(function($){
|
95 |
+
|
96 |
+
$.fn.fontselect = function(options) {
|
97 |
+
|
98 |
+
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
|
99 |
+
|
100 |
+
var fonts = [
|
101 |
+
"Aclonica",
|
102 |
+
"Allan",
|
103 |
+
"Annie+Use+Your+Telescope",
|
104 |
+
"Anonymous+Pro",
|
105 |
+
"Allerta+Stencil",
|
106 |
+
"Allerta",
|
107 |
+
"Amaranth",
|
108 |
+
"Anton",
|
109 |
+
"Architects+Daughter",
|
110 |
+
"Arimo",
|
111 |
+
"Artifika",
|
112 |
+
"Arvo",
|
113 |
+
"Asset",
|
114 |
+
"Astloch",
|
115 |
+
"Bangers",
|
116 |
+
"Bentham",
|
117 |
+
"Bevan",
|
118 |
+
"Bigshot+One",
|
119 |
+
"Bowlby+One",
|
120 |
+
"Bowlby+One+SC",
|
121 |
+
"Brawler",
|
122 |
+
"Buda:300",
|
123 |
+
"Cabin",
|
124 |
+
"Calligraffitti",
|
125 |
+
"Candal",
|
126 |
+
"Cantarell",
|
127 |
+
"Cardo",
|
128 |
+
"Carter One",
|
129 |
+
"Caudex",
|
130 |
+
"Cedarville+Cursive",
|
131 |
+
"Cherry+Cream+Soda",
|
132 |
+
"Chewy",
|
133 |
+
"Coda",
|
134 |
+
"Coming+Soon",
|
135 |
+
"Copse",
|
136 |
+
"Corben:700",
|
137 |
+
"Cousine",
|
138 |
+
"Covered+By+Your+Grace",
|
139 |
+
"Crafty+Girls",
|
140 |
+
"Crimson+Text",
|
141 |
+
"Crushed",
|
142 |
+
"Cuprum",
|
143 |
+
"Damion",
|
144 |
+
"Dancing+Script",
|
145 |
+
"Dawning+of+a+New+Day",
|
146 |
+
"Didact+Gothic",
|
147 |
+
"Droid+Sans",
|
148 |
+
"Droid+Sans+Mono",
|
149 |
+
"Droid+Serif",
|
150 |
+
"EB+Garamond",
|
151 |
+
"Expletus+Sans",
|
152 |
+
"Fontdiner+Swanky",
|
153 |
+
"Forum",
|
154 |
+
"Francois+One",
|
155 |
+
"Geo",
|
156 |
+
"Give+You+Glory",
|
157 |
+
"Goblin+One",
|
158 |
+
"Goudy+Bookletter+1911",
|
159 |
+
"Gravitas+One",
|
160 |
+
"Gruppo",
|
161 |
+
"Hammersmith+One",
|
162 |
+
"Holtwood+One+SC",
|
163 |
+
"Homemade+Apple",
|
164 |
+
"Inconsolata",
|
165 |
+
"Indie+Flower",
|
166 |
+
"IM+Fell+DW+Pica",
|
167 |
+
"IM+Fell+DW+Pica+SC",
|
168 |
+
"IM+Fell+Double+Pica",
|
169 |
+
"IM+Fell+Double+Pica+SC",
|
170 |
+
"IM+Fell+English",
|
171 |
+
"IM+Fell+English+SC",
|
172 |
+
"IM+Fell+French+Canon",
|
173 |
+
"IM+Fell+French+Canon+SC",
|
174 |
+
"IM+Fell+Great+Primer",
|
175 |
+
"IM+Fell+Great+Primer+SC",
|
176 |
+
"Irish+Grover",
|
177 |
+
"Irish+Growler",
|
178 |
+
"Istok+Web",
|
179 |
+
"Josefin+Sans",
|
180 |
+
"Josefin+Slab",
|
181 |
+
"Judson",
|
182 |
+
"Jura",
|
183 |
+
"Jura:500",
|
184 |
+
"Jura:600",
|
185 |
+
"Just+Another+Hand",
|
186 |
+
"Just+Me+Again+Down+Here",
|
187 |
+
"Kameron",
|
188 |
+
"Kenia",
|
189 |
+
"Kranky",
|
190 |
+
"Kreon",
|
191 |
+
"Kristi",
|
192 |
+
"La+Belle+Aurore",
|
193 |
+
"Lato:100",
|
194 |
+
"Lato:100italic",
|
195 |
+
"Lato:300",
|
196 |
+
"Lato",
|
197 |
+
"Lato:bold",
|
198 |
+
"Lato:900",
|
199 |
+
"League+Script",
|
200 |
+
"Lekton",
|
201 |
+
"Limelight",
|
202 |
+
"Lobster",
|
203 |
+
"Lobster Two",
|
204 |
+
"Lora",
|
205 |
+
"Love+Ya+Like+A+Sister",
|
206 |
+
"Loved+by+the+King",
|
207 |
+
"Luckiest+Guy",
|
208 |
+
"Maiden+Orange",
|
209 |
+
"Mako",
|
210 |
+
"Maven+Pro",
|
211 |
+
"Maven+Pro:500",
|
212 |
+
"Maven+Pro:700",
|
213 |
+
"Maven+Pro:900",
|
214 |
+
"Meddon",
|
215 |
+
"MedievalSharp",
|
216 |
+
"Megrim",
|
217 |
+
"Merriweather",
|
218 |
+
"Metrophobic",
|
219 |
+
"Michroma",
|
220 |
+
"Miltonian Tattoo",
|
221 |
+
"Miltonian",
|
222 |
+
"Modern Antiqua",
|
223 |
+
"Monofett",
|
224 |
+
"Molengo",
|
225 |
+
"Mountains of Christmas",
|
226 |
+
"Muli:300",
|
227 |
+
"Muli",
|
228 |
+
"Neucha",
|
229 |
+
"Neuton",
|
230 |
+
"News+Cycle",
|
231 |
+
"Nixie+One",
|
232 |
+
"Nobile",
|
233 |
+
"Nova+Cut",
|
234 |
+
"Nova+Flat",
|
235 |
+
"Nova+Mono",
|
236 |
+
"Nova+Oval",
|
237 |
+
"Nova+Round",
|
238 |
+
"Nova+Script",
|
239 |
+
"Nova+Slim",
|
240 |
+
"Nova+Square",
|
241 |
+
"Nunito:light",
|
242 |
+
"Nunito",
|
243 |
+
"OFL+Sorts+Mill+Goudy+TT",
|
244 |
+
"Old+Standard+TT",
|
245 |
+
"Open+Sans:300",
|
246 |
+
"Open+Sans",
|
247 |
+
"Open+Sans:600",
|
248 |
+
"Open+Sans:800",
|
249 |
+
"Open+Sans+Condensed:300",
|
250 |
+
"Orbitron",
|
251 |
+
"Orbitron:500",
|
252 |
+
"Orbitron:700",
|
253 |
+
"Orbitron:900",
|
254 |
+
"Oswald",
|
255 |
+
"Over+the+Rainbow",
|
256 |
+
"Reenie+Beanie",
|
257 |
+
"Pacifico",
|
258 |
+
"Patrick+Hand",
|
259 |
+
"Paytone+One",
|
260 |
+
"Permanent+Marker",
|
261 |
+
"Philosopher",
|
262 |
+
"Play",
|
263 |
+
"Playfair+Display",
|
264 |
+
"Podkova",
|
265 |
+
"PT+Sans",
|
266 |
+
"PT+Sans+Narrow",
|
267 |
+
"PT+Sans+Narrow:regular,bold",
|
268 |
+
"PT+Serif",
|
269 |
+
"PT+Serif Caption",
|
270 |
+
"Puritan",
|
271 |
+
"Quattrocento",
|
272 |
+
"Quattrocento+Sans",
|
273 |
+
"Radley",
|
274 |
+
"Raleway:100",
|
275 |
+
"Redressed",
|
276 |
+
"Rock+Salt",
|
277 |
+
"Rokkitt",
|
278 |
+
"Ruslan+Display",
|
279 |
+
"Schoolbell",
|
280 |
+
"Shadows+Into+Light",
|
281 |
+
"Shanti",
|
282 |
+
"Sigmar+One",
|
283 |
+
"Six+Caps",
|
284 |
+
"Slackey",
|
285 |
+
"Smythe",
|
286 |
+
"Sniglet:800",
|
287 |
+
"Special+Elite",
|
288 |
+
"Stardos+Stencil",
|
289 |
+
"Sue+Ellen+Francisco",
|
290 |
+
"Sunshiney",
|
291 |
+
"Swanky+and+Moo+Moo",
|
292 |
+
"Syncopate",
|
293 |
+
"Tangerine",
|
294 |
+
"Tenor+Sans",
|
295 |
+
"Terminal+Dosis+Light",
|
296 |
+
"The+Girl+Next+Door",
|
297 |
+
"Tinos",
|
298 |
+
"Ubuntu",
|
299 |
+
"Ultra",
|
300 |
+
"Unkempt",
|
301 |
+
"UnifrakturCook:bold",
|
302 |
+
"UnifrakturMaguntia",
|
303 |
+
"Varela",
|
304 |
+
"Varela Round",
|
305 |
+
"Vibur",
|
306 |
+
"Vollkorn",
|
307 |
+
"VT323",
|
308 |
+
"Waiting+for+the+Sunrise",
|
309 |
+
"Wallpoet",
|
310 |
+
"Walter+Turncoat",
|
311 |
+
"Wire+One",
|
312 |
+
"Yanone+Kaffeesatz",
|
313 |
+
"Yanone+Kaffeesatz:300",
|
314 |
+
"Yanone+Kaffeesatz:400",
|
315 |
+
"Yanone+Kaffeesatz:700",
|
316 |
+
"Yeseva+One",
|
317 |
+
"Zeyada"];
|
318 |
+
|
319 |
+
var settings = {
|
320 |
+
style: 'font-select',
|
321 |
+
placeholder: 'Select a font',
|
322 |
+
lookahead: 2,
|
323 |
+
api: 'http://fonts.googleapis.com/css?family='
|
324 |
+
};
|
325 |
+
|
326 |
+
var Fontselect = (function(){
|
327 |
+
|
328 |
+
function Fontselect(original, o){
|
329 |
+
this.$original = $(original);
|
330 |
+
this.options = o;
|
331 |
+
this.active = false;
|
332 |
+
this.setupHtml();
|
333 |
+
this.getVisibleFonts();
|
334 |
+
this.bindEvents();
|
335 |
+
|
336 |
+
var font = this.$original.val();
|
337 |
+
if (font) {
|
338 |
+
this.updateSelected();
|
339 |
+
this.addFontLink(font);
|
340 |
+
}
|
341 |
+
}
|
342 |
+
|
343 |
+
Fontselect.prototype.bindEvents = function(){
|
344 |
+
|
345 |
+
$('li', this.$results)
|
346 |
+
.click(__bind(this.selectFont, this))
|
347 |
+
.mouseenter(__bind(this.activateFont, this))
|
348 |
+
.mouseleave(__bind(this.deactivateFont, this));
|
349 |
+
|
350 |
+
$('span', this.$select).click(__bind(this.toggleDrop, this));
|
351 |
+
this.$arrow.click(__bind(this.toggleDrop, this));
|
352 |
+
};
|
353 |
+
|
354 |
+
Fontselect.prototype.toggleDrop = function(ev){
|
355 |
+
|
356 |
+
if(this.active){
|
357 |
+
this.$element.removeClass('font-select-active');
|
358 |
+
this.$drop.hide();
|
359 |
+
clearInterval(this.visibleInterval);
|
360 |
+
|
361 |
+
} else {
|
362 |
+
this.$element.addClass('font-select-active');
|
363 |
+
this.$drop.show();
|
364 |
+
this.moveToSelected();
|
365 |
+
this.visibleInterval = setInterval(__bind(this.getVisibleFonts, this), 500);
|
366 |
+
}
|
367 |
+
|
368 |
+
this.active = !this.active;
|
369 |
+
};
|
370 |
+
|
371 |
+
Fontselect.prototype.selectFont = function(){
|
372 |
+
|
373 |
+
var font = $('li.active', this.$results).data('value');
|
374 |
+
this.$original.val(font).change();
|
375 |
+
this.updateSelected();
|
376 |
+
this.toggleDrop();
|
377 |
+
};
|
378 |
+
|
379 |
+
Fontselect.prototype.moveToSelected = function(){
|
380 |
+
|
381 |
+
var $li, font = this.$original.val();
|
382 |
+
|
383 |
+
if (font){
|
384 |
+
$li = $("li[data-value='"+ font +"']", this.$results);
|
385 |
+
} else {
|
386 |
+
$li = $("li", this.$results).first();
|
387 |
+
}
|
388 |
+
|
389 |
+
this.$results.scrollTop($li.addClass('active').position().top);
|
390 |
+
};
|
391 |
+
|
392 |
+
Fontselect.prototype.activateFont = function(ev){
|
393 |
+
$('li.active', this.$results).removeClass('active');
|
394 |
+
$(ev.currentTarget).addClass('active');
|
395 |
+
};
|
396 |
+
|
397 |
+
Fontselect.prototype.deactivateFont = function(ev){
|
398 |
+
|
399 |
+
$(ev.currentTarget).removeClass('active');
|
400 |
+
};
|
401 |
+
|
402 |
+
Fontselect.prototype.updateSelected = function(){
|
403 |
+
|
404 |
+
var font = this.$original.val();
|
405 |
+
$('span', this.$element).text(this.toReadable(font)).css(this.toStyle(font));
|
406 |
+
};
|
407 |
+
|
408 |
+
Fontselect.prototype.setupHtml = function(){
|
409 |
+
|
410 |
+
this.$original.empty().hide();
|
411 |
+
this.$element = $('<div>', {'class': this.options.style});
|
412 |
+
this.$arrow = $('<div><b></b></div>');
|
413 |
+
this.$select = $('<a><span>'+ this.options.placeholder +'</span></a>');
|
414 |
+
this.$drop = $('<div>', {'class': 'fs-drop'});
|
415 |
+
this.$results = $('<ul>', {'class': 'fs-results'});
|
416 |
+
this.$original.after(this.$element.append(this.$select.append(this.$arrow)).append(this.$drop));
|
417 |
+
this.$drop.append(this.$results.append(this.fontsAsHtml())).hide();
|
418 |
+
};
|
419 |
+
|
420 |
+
Fontselect.prototype.fontsAsHtml = function(){
|
421 |
+
|
422 |
+
var l = fonts.length;
|
423 |
+
var r, s, h = '';
|
424 |
+
|
425 |
+
for(var i=0; i<l; i++){
|
426 |
+
r = this.toReadable(fonts[i]);
|
427 |
+
s = this.toStyle(fonts[i]);
|
428 |
+
h += '<li data-value="'+ fonts[i] +'" style="font-family: '+s['font-family'] +'; font-weight: '+s['font-weight'] +'">'+ r +'</li>';
|
429 |
+
}
|
430 |
+
|
431 |
+
return h;
|
432 |
+
};
|
433 |
+
|
434 |
+
Fontselect.prototype.toReadable = function(font){
|
435 |
+
return font.replace(/[\+|:]/g, ' ');
|
436 |
+
};
|
437 |
+
|
438 |
+
Fontselect.prototype.toStyle = function(font){
|
439 |
+
var t = font.split(':');
|
440 |
+
return {'font-family': this.toReadable(t[0]), 'font-weight': (t[1] || 400)};
|
441 |
+
};
|
442 |
+
|
443 |
+
Fontselect.prototype.getVisibleFonts = function(){
|
444 |
+
|
445 |
+
if(this.$results.is(':hidden')) return;
|
446 |
+
|
447 |
+
var fs = this;
|
448 |
+
var top = this.$results.scrollTop();
|
449 |
+
var bottom = top + this.$results.height();
|
450 |
+
|
451 |
+
if(this.options.lookahead){
|
452 |
+
var li = $('li', this.$results).first().height();
|
453 |
+
bottom += li*this.options.lookahead;
|
454 |
+
}
|
455 |
+
|
456 |
+
$('li', this.$results).each(function(){
|
457 |
+
|
458 |
+
var ft = $(this).position().top+top;
|
459 |
+
var fb = ft + $(this).height();
|
460 |
+
|
461 |
+
if ((fb >= top) && (ft <= bottom)){
|
462 |
+
var font = $(this).data('value');
|
463 |
+
fs.addFontLink(font);
|
464 |
+
}
|
465 |
+
|
466 |
+
});
|
467 |
+
};
|
468 |
+
|
469 |
+
Fontselect.prototype.addFontLink = function(font){
|
470 |
+
|
471 |
+
var link = this.options.api + font;
|
472 |
+
|
473 |
+
if ($("link[href*='" + font + "']").length === 0){
|
474 |
+
$('link:last').after('<link href="' + link + '" rel="stylesheet" type="text/css">');
|
475 |
+
}
|
476 |
+
};
|
477 |
+
|
478 |
+
return Fontselect;
|
479 |
+
})();
|
480 |
+
|
481 |
+
return this.each(function(options) {
|
482 |
+
// If options exist, lets merge them
|
483 |
+
if (options) $.extend( settings, options );
|
484 |
+
|
485 |
+
return new Fontselect(this, settings);
|
486 |
+
});
|
487 |
+
|
488 |
+
};
|
489 |
+
})(jQuery);
|
490 |
+
|
491 |
+
|
492 |
+
|
images/banner.png
DELETED
Binary file
|
images/default-1.jpg
DELETED
Binary file
|
images/default-2.jpg
DELETED
Binary file
|
images/default-3.jpg
DELETED
Binary file
|
images/fb.png
ADDED
Binary file
|
images/instagram.png
ADDED
Binary file
|
images/linkedin.png
ADDED
Binary file
|
images/maintenance-one.png
ADDED
Binary file
|
images/pinterest.png
ADDED
Binary file
|
images/pre-launch.png
ADDED
Binary file
|
images/twitter.png
ADDED
Binary file
|
includes/classes/class-wpmmp-alissa-theme.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Wpmmp_Alissa_Theme extends Wpmmp_Theme_Handler {
|
4 |
+
|
5 |
+
protected $name = 'Coming Soon landing page';
|
6 |
+
|
7 |
+
protected $description = 'Simple and beautiful coming soon landing page';
|
8 |
+
|
9 |
+
protected $id = 'alissa';
|
10 |
+
|
11 |
+
protected $path = '';
|
12 |
+
|
13 |
+
protected $template_name = 'alissa-coming-soon';
|
14 |
+
|
15 |
+
protected $settings_page = true;
|
16 |
+
|
17 |
+
protected $settings_page_title = 'Coming soon theme';
|
18 |
+
|
19 |
+
protected $settings_page_slug = 'c_soon_theme';
|
20 |
+
|
21 |
+
function init() {
|
22 |
+
|
23 |
+
$this->path = WPMMP_PLUGIN_VIEW_DIRECTORY . 'themes/alissa-coming-soon/template.php';
|
24 |
+
|
25 |
+
}
|
26 |
+
|
27 |
+
}
|
includes/classes/class-wpmmp-cs-simple-theme.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Wpmmp_Cs_Simple_Theme extends Wpmmp_Theme_Handler {
|
4 |
+
|
5 |
+
protected $name = 'Coming Soon Theme';
|
6 |
+
|
7 |
+
protected $description = 'Responsive beautiful coming soon theme with subscriber box';
|
8 |
+
|
9 |
+
protected $id = 'cs-simple';
|
10 |
+
|
11 |
+
protected $path = '';
|
12 |
+
|
13 |
+
protected $template_name = 'cs-simple';
|
14 |
+
|
15 |
+
protected $use_styles = true;
|
16 |
+
|
17 |
+
function init() {
|
18 |
+
|
19 |
+
$this->path = WPMMP_PLUGIN_VIEW_DIRECTORY . 'themes/cs-simple/template.php';
|
20 |
+
|
21 |
+
}
|
22 |
+
|
23 |
+
function hooks() {
|
24 |
+
|
25 |
+
add_action( 'wpmmp_head', array( $this, 'hook_to_head' ) );
|
26 |
+
|
27 |
+
|
28 |
+
add_action( 'wpmmp_footer', array( $this, 'add_styles' ) );
|
29 |
+
|
30 |
+
}
|
31 |
+
|
32 |
+
}
|
includes/classes/class-wpmmp-default-theme.php
CHANGED
@@ -12,6 +12,8 @@ class Wpmmp_Default_Theme extends Wpmmp_Theme_Handler {
|
|
12 |
|
13 |
protected $template_name = 'default';
|
14 |
|
|
|
|
|
15 |
function init() {
|
16 |
|
17 |
$this->path = WPMMP_PLUGIN_VIEW_DIRECTORY . 'themes/default/template.php';
|
12 |
|
13 |
protected $template_name = 'default';
|
14 |
|
15 |
+
protected $use_styles = true;
|
16 |
+
|
17 |
function init() {
|
18 |
|
19 |
$this->path = WPMMP_PLUGIN_VIEW_DIRECTORY . 'themes/default/template.php';
|
includes/classes/class-wpmmp-launch-theme.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Wpmmp_Launch_Theme extends Wpmmp_Theme_Handler {
|
4 |
+
|
5 |
+
protected $name = 'Product Launch';
|
6 |
+
|
7 |
+
protected $description = 'Responsive beautiful pre launch product theme';
|
8 |
+
|
9 |
+
protected $id = 'pre-launch';
|
10 |
+
|
11 |
+
protected $path = '';
|
12 |
+
|
13 |
+
protected $template_name = 'pre-launch';
|
14 |
+
|
15 |
+
protected $use_styles = true;
|
16 |
+
|
17 |
+
function init() {
|
18 |
+
|
19 |
+
$this->path = WPMMP_PLUGIN_VIEW_DIRECTORY . 'themes/pre-launch/template.php';
|
20 |
+
|
21 |
+
}
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
+
}
|
includes/classes/class-wpmmp-minimal-theme.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Wpmmp_Minimal_Theme extends Wpmmp_Theme_Handler {
|
4 |
+
|
5 |
+
protected $name = 'Coming Soon Theme';
|
6 |
+
|
7 |
+
protected $description = 'Minimalist maintenance mode and coming soon theme.';
|
8 |
+
|
9 |
+
protected $id = 'minimal';
|
10 |
+
|
11 |
+
protected $path = '';
|
12 |
+
|
13 |
+
protected $template_name = 'minimal';
|
14 |
+
|
15 |
+
protected $use_styles = true;
|
16 |
+
|
17 |
+
function init() {
|
18 |
+
|
19 |
+
$this->path = WPMMP_PLUGIN_VIEW_DIRECTORY . 'themes/minimal/template.php';
|
20 |
+
|
21 |
+
}
|
22 |
+
|
23 |
+
}
|
includes/classes/class-wpmmp-mmone-theme.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Wpmmp_Mmone_Theme extends Wpmmp_Theme_Handler {
|
4 |
+
|
5 |
+
protected $name = 'Maintenance Mode Theme';
|
6 |
+
|
7 |
+
protected $description = 'Responsive beautiful Maintenance mode theme with subscriber box';
|
8 |
+
|
9 |
+
protected $id = 'mm-one';
|
10 |
+
|
11 |
+
protected $path = '';
|
12 |
+
|
13 |
+
protected $template_name = 'mm-one';
|
14 |
+
|
15 |
+
protected $use_styles = true;
|
16 |
+
|
17 |
+
function init() {
|
18 |
+
|
19 |
+
$this->path = WPMMP_PLUGIN_VIEW_DIRECTORY . 'themes/mm-one/template.php';
|
20 |
+
|
21 |
+
}
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
+
}
|
includes/classes/class-wpmmp-settings.php
CHANGED
@@ -4,19 +4,15 @@ class Wpmmp_Settings {
|
|
4 |
|
5 |
function __construct() {
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
|
11 |
-
|
12 |
|
13 |
}
|
14 |
|
15 |
-
if ( ! get_option( 'wpmmp_theme_settings' ) ) {
|
16 |
|
17 |
-
add_option( 'wpmmp_theme_settings', array(), '', 'yes' );
|
18 |
-
|
19 |
-
}
|
20 |
|
21 |
$this->hooks();
|
22 |
|
@@ -34,6 +30,8 @@ class Wpmmp_Settings {
|
|
34 |
|
35 |
add_action( 'init', array( $this, 'plugin_activation_notice' ) );
|
36 |
|
|
|
|
|
37 |
}
|
38 |
|
39 |
function filters() {
|
@@ -54,19 +52,7 @@ class Wpmmp_Settings {
|
|
54 |
|
55 |
$menu_slug = 'wpmmp-settings';
|
56 |
|
57 |
-
|
58 |
-
|
59 |
-
}
|
60 |
-
|
61 |
-
function add_meta_boxes() {
|
62 |
-
|
63 |
-
add_meta_box(
|
64 |
-
'general-settings',
|
65 |
-
__( 'General', 'wpmmp' ),
|
66 |
-
array( $this, 'general_settings_meta_box' ),
|
67 |
-
'wpmmp_settings_page',
|
68 |
-
'normal'
|
69 |
-
);
|
70 |
|
71 |
}
|
72 |
|
@@ -75,18 +61,25 @@ class Wpmmp_Settings {
|
|
75 |
if ( ! isset( $_GET['page'] ) )
|
76 |
return FALSE;
|
77 |
|
78 |
-
if (
|
79 |
return FALSE;
|
80 |
|
|
|
|
|
81 |
wp_enqueue_style( 'thickbox' );
|
82 |
-
|
83 |
wp_enqueue_script( 'thickbox' );
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
85 |
wp_enqueue_style( 'wpmp-settings',
|
86 |
plugins_url( 'css/admin-settings.css', WPMMP_PLUGIN_MAIN_FILE ) );
|
87 |
|
88 |
wp_enqueue_script( 'wpmp-settings',
|
89 |
-
plugins_url( 'js/admin-settings.js', WPMMP_PLUGIN_MAIN_FILE ) );
|
90 |
|
91 |
$translation_array = array(
|
92 |
'confirm_reset' => __( 'Are you sure you want to reset the settings ?', 'wpmmp' ),
|
@@ -101,28 +94,11 @@ class Wpmmp_Settings {
|
|
101 |
|
102 |
function settings_page() {
|
103 |
|
104 |
-
if ( isset( $_POST['submit'] ) )
|
105 |
-
$this->save_settings();
|
106 |
-
|
107 |
-
if ( ! isset( $_GET['tab'] ) )
|
108 |
-
$this->admin_tabs();
|
109 |
-
else
|
110 |
-
$this->admin_tabs( $_GET['tab'] );
|
111 |
-
|
112 |
$nonce = wp_create_nonce( 'wpmmp_settings_page_nonce' );
|
113 |
|
114 |
-
$settings = $this->get_settings();
|
115 |
-
|
116 |
$themes = wpmmp_get_themes();
|
117 |
|
118 |
-
|
119 |
-
|
120 |
-
$this->add_meta_boxes();
|
121 |
-
|
122 |
-
if ( ! isset( $_GET['tab'] ) )
|
123 |
-
include wpmmp_settings_part( 'settings' );
|
124 |
-
else
|
125 |
-
include wpmmp_settings_part( $_GET['tab'] );
|
126 |
|
127 |
}
|
128 |
|
@@ -131,114 +107,173 @@ class Wpmmp_Settings {
|
|
131 |
if ( ! current_user_can( 'manage_options' ) )
|
132 |
wp_die( 'You are not allowed to change plugin options' );
|
133 |
|
134 |
-
if ( ! wp_verify_nonce( $_POST['nonce'], 'wpmmp_settings_page_nonce' ) )
|
135 |
-
wp_die( 'Invalid Nonce' );
|
136 |
-
|
137 |
-
$tab = 'settings';
|
138 |
-
|
139 |
-
if ( ! isset( $_GET['tab'] ) )
|
140 |
-
$_GET['tab'] = 'settings';
|
141 |
|
142 |
-
if ( $_GET['tab'] == 'tab-advanced-settings' )
|
143 |
-
$tab = 'tab-advanced-settings';
|
144 |
|
145 |
-
|
146 |
-
|
147 |
-
if ( $tab == 'settings' ) {
|
148 |
-
|
149 |
-
$settings['status'] = stripslashes($_POST['settings']['status']);
|
150 |
-
|
151 |
-
$theme = stripslashes($_POST['settings']['theme']);
|
152 |
|
153 |
-
|
154 |
|
155 |
-
|
|
|
156 |
|
157 |
-
|
|
|
158 |
|
159 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
|
161 |
-
|
162 |
|
163 |
-
|
164 |
-
$settings['countdown_timer'] = true;
|
165 |
-
else
|
166 |
-
$settings['countdown_timer'] = false;
|
167 |
-
|
168 |
-
if ( isset( $_POST['settings']['progress_bar'] ) )
|
169 |
-
$settings['progress_bar'] = true;
|
170 |
-
else
|
171 |
-
$settings['progress_bar'] = false;
|
172 |
|
173 |
-
|
174 |
|
175 |
-
|
|
|
176 |
|
177 |
-
|
178 |
-
|
179 |
-
update_option( 'wpmmp_settings', $settings );
|
180 |
|
181 |
-
|
182 |
-
w3tc_pgcache_flush();
|
183 |
-
} else if ( function_exists('wp_cache_clear_cache') ) {
|
184 |
-
wp_cache_clear_cache();
|
185 |
-
}
|
186 |
|
187 |
-
|
|
|
|
|
|
|
188 |
|
189 |
-
|
190 |
|
191 |
-
|
192 |
|
193 |
-
|
194 |
|
195 |
-
|
196 |
-
|
197 |
-
update_option( 'wpmmp_settings', $settings );
|
198 |
-
|
199 |
-
}
|
200 |
|
201 |
-
|
202 |
-
}
|
203 |
|
204 |
-
|
|
|
|
|
|
|
205 |
|
206 |
-
|
207 |
-
exit( '1' );
|
208 |
|
209 |
-
if (
|
210 |
-
|
|
|
|
|
211 |
|
212 |
-
|
213 |
-
$_REQUEST['which-settings'] = 'settings';
|
214 |
|
215 |
-
|
|
|
|
|
|
|
216 |
|
217 |
-
if ( $
|
218 |
-
update_option( '
|
|
|
|
|
219 |
|
220 |
-
|
221 |
|
222 |
}
|
223 |
|
224 |
function default_settings() {
|
225 |
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
|
241 |
-
return apply_filters( 'wpmmp_default_settings', $default_settings );
|
242 |
|
243 |
}
|
244 |
|
@@ -250,11 +285,28 @@ class Wpmmp_Settings {
|
|
250 |
|
251 |
}
|
252 |
|
253 |
-
function admin_tabs( $current = 'settings' ) {
|
254 |
|
255 |
$tabs = array(
|
256 |
-
'settings' => __( 'Settings', 'wpmmp' ),
|
257 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
);
|
259 |
|
260 |
echo '<div id="icon-themes" class="icon32"><br></div>';
|
@@ -316,4 +368,56 @@ class Wpmmp_Settings {
|
|
316 |
|
317 |
}
|
318 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
}
|
4 |
|
5 |
function __construct() {
|
6 |
|
7 |
+
$this->previous_default_settings();
|
8 |
+
|
9 |
+
if ( ! get_option( 'mmp_favicon' ) ) {
|
10 |
|
11 |
+
$this->default_settings();
|
12 |
|
13 |
}
|
14 |
|
|
|
15 |
|
|
|
|
|
|
|
16 |
|
17 |
$this->hooks();
|
18 |
|
30 |
|
31 |
add_action( 'init', array( $this, 'plugin_activation_notice' ) );
|
32 |
|
33 |
+
add_action( 'admin_init', array( $this, 'tabs_register_settings' ) );
|
34 |
+
|
35 |
}
|
36 |
|
37 |
function filters() {
|
52 |
|
53 |
$menu_slug = 'wpmmp-settings';
|
54 |
|
55 |
+
add_menu_page( $page_title, $menu_title, $capability, $menu_slug, array( $this, 'settings_page' ), 'dashicons-hammer' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
|
57 |
}
|
58 |
|
61 |
if ( ! isset( $_GET['page'] ) )
|
62 |
return FALSE;
|
63 |
|
64 |
+
if ( $_GET['page'] !== 'wpmmp-settings' )
|
65 |
return FALSE;
|
66 |
|
67 |
+
wp_enqueue_script( 'wp-color-picker' );
|
68 |
+
wp_enqueue_style( 'wp-color-picker' );
|
69 |
wp_enqueue_style( 'thickbox' );
|
|
|
70 |
wp_enqueue_script( 'thickbox' );
|
71 |
+
wp_enqueue_script( 'media-upload' );
|
72 |
+
wp_enqueue_script( 'jquery-ui-core' );
|
73 |
+
wp_enqueue_script( 'jquery-ui-widget' );
|
74 |
+
wp_enqueue_script( 'jquery-ui-accordion' );
|
75 |
+
|
76 |
+
wp_enqueue_media();
|
77 |
|
78 |
wp_enqueue_style( 'wpmp-settings',
|
79 |
plugins_url( 'css/admin-settings.css', WPMMP_PLUGIN_MAIN_FILE ) );
|
80 |
|
81 |
wp_enqueue_script( 'wpmp-settings',
|
82 |
+
plugins_url( 'js/admin-settings.js', WPMMP_PLUGIN_MAIN_FILE ), array( 'wp-color-picker' ) );
|
83 |
|
84 |
$translation_array = array(
|
85 |
'confirm_reset' => __( 'Are you sure you want to reset the settings ?', 'wpmmp' ),
|
94 |
|
95 |
function settings_page() {
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
$nonce = wp_create_nonce( 'wpmmp_settings_page_nonce' );
|
98 |
|
|
|
|
|
99 |
$themes = wpmmp_get_themes();
|
100 |
|
101 |
+
include wpmmp_settings_part( 'premiumui' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
}
|
104 |
|
107 |
if ( ! current_user_can( 'manage_options' ) )
|
108 |
wp_die( 'You are not allowed to change plugin options' );
|
109 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
|
|
|
|
|
111 |
|
112 |
+
include wpmmp_settings_part( 'settings-saved' );
|
113 |
+
}
|
|
|
|
|
|
|
|
|
|
|
114 |
|
115 |
+
function reset_settings() {
|
116 |
|
117 |
+
if ( ! current_user_can( 'manage_options' ) )
|
118 |
+
exit( '1' );
|
119 |
|
120 |
+
if ( ! wp_verify_nonce( $_REQUEST['nonce'], 'wpmmp_reset_nonce' ) )
|
121 |
+
exit( '2' );
|
122 |
|
123 |
+
delete_option('mmp_on_off');
|
124 |
+
delete_option('mmp_favicon');
|
125 |
+
delete_option('mmp_title');
|
126 |
+
delete_option('mmp_seo_meta');
|
127 |
+
delete_option('mmp_analytics');
|
128 |
+
delete_option('mmp_logo');
|
129 |
+
delete_option('mmp_headline');
|
130 |
+
delete_option('mmp_message');
|
131 |
+
delete_option('mmp_bgcolor');
|
132 |
+
delete_option('mmp_text_color');
|
133 |
+
delete_option('mmp_links_color');
|
134 |
+
delete_option('mmp_links_hover_color');
|
135 |
+
delete_option('mmp_background_image');
|
136 |
+
delete_option('mmp_res_bg');
|
137 |
+
delete_option('mmp_fft');
|
138 |
+
delete_option('mmp_ffht');
|
139 |
+
delete_option('mmp_custom_css');
|
140 |
+
delete_option('mmp_custom_header_script');
|
141 |
+
delete_option('mmp_custom_footrt_script');
|
142 |
+
delete_option('mmp_fb_page');
|
143 |
+
delete_option('mmp_tw_page');
|
144 |
+
delete_option('mmp_lkin_page');
|
145 |
+
delete_option('mmp_pin_page');
|
146 |
+
delete_option('mmp_insta_page');
|
147 |
+
delete_option('mmp_show_fb');
|
148 |
+
delete_option('mmp_show_tw');
|
149 |
+
delete_option('mmp_show_lk');
|
150 |
+
delete_option('mmp_show_pin');
|
151 |
+
delete_option('mmp_show_insta');
|
152 |
+
delete_option('mmp_on_off_countdown');
|
153 |
+
delete_option('mmp_on_off_progress');
|
154 |
+
delete_option('mmp_set_dateTime');
|
155 |
+
delete_option('mmp_set_progress');
|
156 |
+
delete_option('mmp_on_off_subscribe');
|
157 |
+
delete_option('mmp_http_503');
|
158 |
+
delete_option('mmp_feed_access');
|
159 |
+
delete_option('mmp_themes');
|
160 |
+
delete_option('mmp_mc_api');
|
161 |
+
delete_option('mmp_mc_listid');
|
162 |
+
delete_option('mmp_mc_optin');
|
163 |
+
delete_option('mmp_mc_sbt');
|
164 |
+
delete_option('mmp_mc_pt');
|
165 |
+
delete_option('mmp_subheading');
|
166 |
+
delete_option('mmp_headingcolor');
|
167 |
+
delete_option('mmp_userroles');
|
168 |
|
169 |
+
exit( '10' );
|
170 |
|
171 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
|
173 |
+
function previous_default_settings() {
|
174 |
|
175 |
+
if ( ! get_option( 'wpmmp_settings' ) )
|
176 |
+
return false;
|
177 |
|
178 |
+
if ( get_option( 'wpmmp_preToNewDone' ) )
|
179 |
+
return false;
|
|
|
180 |
|
181 |
+
$options = get_option( 'wpmmp_settings' );
|
|
|
|
|
|
|
|
|
182 |
|
183 |
+
if ( $options['status'] == 'enabled' )
|
184 |
+
update_option( 'mmp_on_off', 1 );
|
185 |
+
else
|
186 |
+
update_option( 'mmp_on_off', 0 );
|
187 |
|
188 |
+
update_option( 'mmp_themes' , 'default' );
|
189 |
|
190 |
+
update_option('mmp_title', $options['title'] );
|
191 |
|
192 |
+
update_option( 'mmp_headline' , $options['heading1'] );
|
193 |
|
194 |
+
update_option( 'mmp_subheading' , $options['heading2'] );
|
|
|
|
|
|
|
|
|
195 |
|
196 |
+
update_option( 'mmp_message' , $options['content'] );
|
|
|
197 |
|
198 |
+
if ( $options['countdown_timer'] )
|
199 |
+
update_option( 'mmp_on_off_countdown' , 1 );
|
200 |
+
else
|
201 |
+
update_option( 'mmp_on_off_countdown' , 0 );
|
202 |
|
203 |
+
update_option( 'mmp_set_dateTime' , $options['countdown_time'] );
|
|
|
204 |
|
205 |
+
if ( $options['progress_bar'] )
|
206 |
+
update_option( 'mmp_on_off_progress' , 1 );
|
207 |
+
else
|
208 |
+
update_option( 'mmp_on_off_progress' , 0 );
|
209 |
|
210 |
+
update_option( 'mmp_set_progress' , $options['progress_bar_range'] );
|
|
|
211 |
|
212 |
+
if ( $options['http_503_header'] == 'enabled' )
|
213 |
+
update_option( 'mmp_http_503' , 1 );
|
214 |
+
else
|
215 |
+
update_option( 'mmp_http_503' , 0 );
|
216 |
|
217 |
+
if ( $options['feed'] == 'enabled' )
|
218 |
+
update_option( 'mmp_feed_access' , 1 );
|
219 |
+
else
|
220 |
+
update_option( 'mmp_feed_access' , 0 );
|
221 |
|
222 |
+
update_option( 'wpmmp_preToNewDone', true );
|
223 |
|
224 |
}
|
225 |
|
226 |
function default_settings() {
|
227 |
|
228 |
+
add_option('mmp_on_off' , 0);
|
229 |
+
add_option('mmp_favicon', '');
|
230 |
+
add_option('mmp_title', 'Site is Down');
|
231 |
+
add_option('mmp_seo_meta', '');
|
232 |
+
add_option('mmp_analytics', '');
|
233 |
+
add_option('mmp_logo' , '');
|
234 |
+
add_option('mmp_headline' , 'We are down for maintenance');
|
235 |
+
add_option('mmp_message' , 'Ad your message here');
|
236 |
+
add_option('mmp_bgcolor' , '');
|
237 |
+
add_option('mmp_text_color', '');
|
238 |
+
add_option('mmp_links_color' ,'');
|
239 |
+
add_option('mmp_links_hover_color','');
|
240 |
+
add_option('mmp_background_image' , '');
|
241 |
+
add_option('mmp_res_bg' , '0');
|
242 |
+
add_option('mmp_fft' , ' ');
|
243 |
+
add_option('mmp_ffht' , '');
|
244 |
+
add_option('mmp_custom_css' , '');
|
245 |
+
add_option('mmp_custom_header_script' , '');
|
246 |
+
add_option('mmp_custom_footrt_script', '');
|
247 |
+
add_option('mmp_fb_page' , '');
|
248 |
+
add_option('mmp_tw_page' , '');
|
249 |
+
add_option('mmp_lkin_page' , '');
|
250 |
+
add_option('mmp_pin_page' ,'');
|
251 |
+
add_option('mmp_insta_page', '');
|
252 |
+
add_option('mmp_show_fb' , 0);
|
253 |
+
add_option('mmp_show_tw' , 0);
|
254 |
+
add_option('mmp_show_lk' , 0);
|
255 |
+
add_option('mmp_show_pin' , 0);
|
256 |
+
add_option('mmp_show_insta' , 0);
|
257 |
+
add_option('mmp_on_off_countdown' , 0);
|
258 |
+
add_option('mmp_on_off_progress' , 0);
|
259 |
+
add_option('mmp_set_dateTime', date('m/d/Y'));
|
260 |
+
add_option('mmp_set_progress' , '');
|
261 |
+
add_option('mmp_on_off_subscribe' , 0);
|
262 |
+
add_option('mmp_http_503' , 0);
|
263 |
+
add_option('mmp_feed_access' , 0);
|
264 |
+
|
265 |
+
add_option('mmp_themes' , 'default');
|
266 |
+
add_option('mmp_mc_api' , '');
|
267 |
+
add_option('mmp_mc_listid' , '' );
|
268 |
+
add_option('mmp_mc_optin' , 1);
|
269 |
+
add_option('mmp_mc_sbt' , 'Subscribe');
|
270 |
+
add_option('mmp_mc_pt' , 'Enter Email');
|
271 |
+
|
272 |
+
add_option('mmp_subheading', '');
|
273 |
+
add_option( 'mmp_headingcolor', '' );
|
274 |
+
|
275 |
+
add_option( 'mmp_userroles', array( 'administrator' ) );
|
276 |
|
|
|
277 |
|
278 |
}
|
279 |
|
285 |
|
286 |
}
|
287 |
|
288 |
+
function admin_tabs( $current = 'general-settings' ) {
|
289 |
|
290 |
$tabs = array(
|
291 |
+
'general-settings' => __( 'General Settings', 'wpmmp' ),
|
292 |
+
|
293 |
+
'theme-settings' => __( 'Themes', 'wpmmp' ),
|
294 |
+
|
295 |
+
'page-settings' => __( 'Page', 'wpmmp' ),
|
296 |
+
|
297 |
+
'header-settings' => __( 'Header', 'wpmmp' ),
|
298 |
+
|
299 |
+
'design-settings' => __( 'Design', 'wpmmp' ),
|
300 |
+
|
301 |
+
'social-settings' => __( 'Social Icons', 'wpmmp' ),
|
302 |
+
|
303 |
+
'email-settings' => __( 'Email Settings', 'wpmmp' ),
|
304 |
+
|
305 |
+
|
306 |
+
|
307 |
+
'script-settings' => __( 'Scripts', 'wpmmp' ),
|
308 |
+
|
309 |
+
'advanced-settings' => __( 'Advanced', 'wpmmp' ),
|
310 |
);
|
311 |
|
312 |
echo '<div id="icon-themes" class="icon32"><br></div>';
|
368 |
|
369 |
}
|
370 |
|
371 |
+
|
372 |
+
function tabs_register_settings(){
|
373 |
+
|
374 |
+
register_setting('mmp-settings-group','mmp_on_off');
|
375 |
+
register_setting('mmp-settings-group','mmp_favicon');
|
376 |
+
register_setting('mmp-settings-group','mmp_title');
|
377 |
+
register_setting('mmp-settings-group','mmp_seo_meta');
|
378 |
+
register_setting('mmp-settings-group','mmp_analytics');
|
379 |
+
register_setting('mmp-settings-group','mmp_logo');
|
380 |
+
register_setting('mmp-settings-group','mmp_headline');
|
381 |
+
register_setting('mmp-settings-group','mmp_message');
|
382 |
+
register_setting('mmp-settings-group','mmp_bgcolor');
|
383 |
+
register_setting('mmp-settings-group','mmp_text_color');
|
384 |
+
register_setting('mmp-settings-group','mmp_links_color');
|
385 |
+
register_setting('mmp-settings-group','mmp_links_hover_color');
|
386 |
+
register_setting('mmp-settings-group','mmp_background_image');
|
387 |
+
register_setting('mmp-settings-group','mmp_res_bg');
|
388 |
+
register_setting('mmp-settings-group','mmp_fft');
|
389 |
+
register_setting('mmp-settings-group','mmp_ffht');
|
390 |
+
register_setting('mmp-settings-group','mmp_custom_css');
|
391 |
+
register_setting('mmp-settings-group','mmp_custom_header_script');
|
392 |
+
register_setting('mmp-settings-group','mmp_custom_footrt_script');
|
393 |
+
register_setting('mmp-settings-group','mmp_fb_page');
|
394 |
+
register_setting('mmp-settings-group','mmp_tw_page');
|
395 |
+
register_setting('mmp-settings-group','mmp_lkin_page');
|
396 |
+
register_setting('mmp-settings-group','mmp_pin_page');
|
397 |
+
register_setting('mmp-settings-group','mmp_insta_page');
|
398 |
+
register_setting('mmp-settings-group','mmp_show_fb');
|
399 |
+
register_setting('mmp-settings-group','mmp_show_tw');
|
400 |
+
register_setting('mmp-settings-group','mmp_show_lk');
|
401 |
+
register_setting('mmp-settings-group','mmp_show_pin');
|
402 |
+
register_setting('mmp-settings-group','mmp_show_insta');
|
403 |
+
register_setting('mmp-settings-group','mmp_on_off_countdown');
|
404 |
+
register_setting('mmp-settings-group','mmp_on_off_progress');
|
405 |
+
register_setting('mmp-settings-group','mmp_set_dateTime');
|
406 |
+
register_setting('mmp-settings-group','mmp_set_progress');
|
407 |
+
register_setting('mmp-settings-group','mmp_on_off_subscribe');
|
408 |
+
register_setting('mmp-settings-group','mmp_http_503');
|
409 |
+
register_setting('mmp-settings-group','mmp_feed_access');
|
410 |
+
register_setting('mmp-settings-group','mmp_themes');
|
411 |
+
register_setting('mmp-settings-group','mmp_mc_api');
|
412 |
+
register_setting('mmp-settings-group','mmp_mc_listid');
|
413 |
+
register_setting('mmp-settings-group','mmp_mc_optin');
|
414 |
+
register_setting('mmp-settings-group','mmp_mc_sbt');
|
415 |
+
register_setting('mmp-settings-group','mmp_mc_pt');
|
416 |
+
register_setting('mmp-settings-group','mmp_subheading');
|
417 |
+
register_setting('mmp-settings-group','mmp_headingcolor');
|
418 |
+
register_setting('mmp-settings-group','mmp_userroles');
|
419 |
+
register_setting('mmp-settings-group','');
|
420 |
+
|
421 |
+
}
|
422 |
+
|
423 |
}
|
includes/classes/class-wpmmp-theme-handler.php
CHANGED
@@ -18,6 +18,8 @@ class Wpmmp_Theme_Handler {
|
|
18 |
|
19 |
protected $settings_page_slug;
|
20 |
|
|
|
|
|
21 |
function __construct() {
|
22 |
|
23 |
$this->_hooks();
|
@@ -39,8 +41,6 @@ class Wpmmp_Theme_Handler {
|
|
39 |
|
40 |
function hooks() {
|
41 |
|
42 |
-
|
43 |
-
|
44 |
}
|
45 |
|
46 |
function filters() {
|
@@ -51,25 +51,16 @@ class Wpmmp_Theme_Handler {
|
|
51 |
private function _filters() {
|
52 |
|
53 |
add_filter( 'wpmmp_themes', array( $this, 'register_theme' ) );
|
54 |
-
|
55 |
-
add_filter( 'wpmmp_settings_get_tab', array( $this, 'settings_get_tab' ) );
|
56 |
-
|
57 |
-
add_filter( 'wpmmp_settings', array( $this, 'filter_settings' ) );
|
58 |
-
|
59 |
if ( $this->is_activated() && $this->check_rules() )
|
60 |
$this->theme_change();
|
61 |
|
62 |
-
|
63 |
-
if ( $this->settings_page )
|
64 |
-
add_filter( 'wpmmp_settings_tabs', array( $this, 'add_settings_tab' ) );
|
65 |
}
|
66 |
|
67 |
private function _hooks() {
|
68 |
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
add_action( 'wpmmp_save_settings', array( $this, 'save_settings' ) );
|
73 |
|
74 |
}
|
75 |
|
@@ -118,6 +109,7 @@ class Wpmmp_Theme_Handler {
|
|
118 |
|
119 |
$theme = wpmmp_get_active_theme();
|
120 |
|
|
|
121 |
if ( $id === 'default' ) {
|
122 |
|
123 |
if ( strpos( $theme, 'default' ) !== false )
|
@@ -134,9 +126,29 @@ class Wpmmp_Theme_Handler {
|
|
134 |
if ( empty( $id ) )
|
135 |
$id = $this->id();
|
136 |
|
137 |
-
|
|
|
|
|
|
|
|
|
138 |
|
139 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
return apply_filters( 'wpmmp_check_rules', FALSE, 'disabled' );
|
141 |
|
142 |
return apply_filters( 'wpmmp_check_rules', TRUE, 'success' );
|
@@ -145,10 +157,26 @@ class Wpmmp_Theme_Handler {
|
|
145 |
|
146 |
function theme_change() {
|
147 |
|
148 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
&& ! defined( 'WPMMP_DEBUG_MODE' ) )
|
150 |
return FALSE;
|
151 |
|
|
|
|
|
152 |
add_action( 'template_redirect', array( $this, 'template_hook' ) );
|
153 |
|
154 |
}
|
@@ -157,22 +185,18 @@ class Wpmmp_Theme_Handler {
|
|
157 |
|
158 |
/* The message will be shown on the theme settings page if the theme do not support theme settings feature */
|
159 |
|
160 |
-
_e( 'The current selected/activated
|
161 |
|
162 |
}
|
163 |
|
164 |
function template_hook() {
|
165 |
|
166 |
-
|
167 |
-
|
168 |
-
$theme_settings = $this->get_settings();
|
169 |
-
|
170 |
-
if ( $settings['feed'] == 'enabled' )
|
171 |
$this->disable_feed();
|
172 |
|
173 |
if ( file_exists( $this->path ) ) {
|
174 |
|
175 |
-
if (
|
176 |
|
177 |
header('HTTP/1.1 503 Service Temporarily Unavailable');
|
178 |
header('Status: 503 Service Temporarily Unavailable');
|
@@ -180,12 +204,19 @@ class Wpmmp_Theme_Handler {
|
|
180 |
|
181 |
}
|
182 |
|
183 |
-
|
184 |
-
$settings['countdown_time'] = '';
|
185 |
|
186 |
-
|
187 |
|
188 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
|
190 |
include( $this->path );
|
191 |
|
@@ -212,29 +243,25 @@ class Wpmmp_Theme_Handler {
|
|
212 |
wp_die( __('No feed available,please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );
|
213 |
|
214 |
}
|
215 |
-
|
216 |
-
function add_settings_tab( $tabs ) {
|
217 |
|
218 |
-
|
219 |
|
220 |
-
$
|
221 |
-
|
222 |
-
$tabs[$slug] = $title;
|
223 |
|
224 |
-
|
225 |
-
}
|
226 |
|
227 |
-
|
|
|
|
|
|
|
228 |
|
229 |
-
|
230 |
-
|
231 |
|
232 |
-
|
233 |
-
return dirname( $this->path ) . '/settings-page-view.php';
|
234 |
-
}
|
235 |
|
236 |
-
|
237 |
-
}
|
238 |
|
239 |
function save_settings($tab){}
|
240 |
function get_settings() { return array(); }
|
@@ -247,4 +274,99 @@ class Wpmmp_Theme_Handler {
|
|
247 |
|
248 |
}
|
249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
}
|
18 |
|
19 |
protected $settings_page_slug;
|
20 |
|
21 |
+
protected $use_styles;
|
22 |
+
|
23 |
function __construct() {
|
24 |
|
25 |
$this->_hooks();
|
41 |
|
42 |
function hooks() {
|
43 |
|
|
|
|
|
44 |
}
|
45 |
|
46 |
function filters() {
|
51 |
private function _filters() {
|
52 |
|
53 |
add_filter( 'wpmmp_themes', array( $this, 'register_theme' ) );
|
54 |
+
|
|
|
|
|
|
|
|
|
55 |
if ( $this->is_activated() && $this->check_rules() )
|
56 |
$this->theme_change();
|
57 |
|
|
|
|
|
|
|
58 |
}
|
59 |
|
60 |
private function _hooks() {
|
61 |
|
62 |
+
add_action( 'wp_ajax_nopriv_wpmmp_c_soon_store_email', array( $this, 'store_email' ) );
|
63 |
+
add_action( 'wp_ajax_wpmmp_c_soon_store_email', array( $this, 'store_email' ) );
|
|
|
|
|
64 |
|
65 |
}
|
66 |
|
109 |
|
110 |
$theme = wpmmp_get_active_theme();
|
111 |
|
112 |
+
|
113 |
if ( $id === 'default' ) {
|
114 |
|
115 |
if ( strpos( $theme, 'default' ) !== false )
|
126 |
if ( empty( $id ) )
|
127 |
$id = $this->id();
|
128 |
|
129 |
+
if ( isset( $_GET['wpmmp-mode'] ) ) {
|
130 |
+
|
131 |
+
if ( $_GET['wpmmp-mode'] === 'enabled' ) {
|
132 |
+
|
133 |
+
if ( wp_verify_nonce( $_GET['nonce'], 'wpmmp-preview-nonce' ) ) {
|
134 |
|
135 |
+
if ( ! defined( 'WPMMP_DEBUG_MODE' ) )
|
136 |
+
define( 'WPMMP_DEBUG_MODE', TRUE );
|
137 |
+
|
138 |
+
return
|
139 |
+
apply_filters( 'wpmmp_check_rules', TRUE, 'preview' );
|
140 |
+
}
|
141 |
+
|
142 |
+
|
143 |
+
|
144 |
+
}
|
145 |
+
}
|
146 |
+
|
147 |
+
|
148 |
+
|
149 |
+
$status = get_option( 'mmp_on_off' );
|
150 |
+
|
151 |
+
if ( $status !== '1' )
|
152 |
return apply_filters( 'wpmmp_check_rules', FALSE, 'disabled' );
|
153 |
|
154 |
return apply_filters( 'wpmmp_check_rules', TRUE, 'success' );
|
157 |
|
158 |
function theme_change() {
|
159 |
|
160 |
+
if ( ! is_user_logged_in() ) {
|
161 |
+
|
162 |
+
add_action( 'template_redirect', array( $this, 'template_hook' ) );
|
163 |
+
|
164 |
+
return;
|
165 |
+
}
|
166 |
+
|
167 |
+
$allowed_roles = get_option( 'mmp_userroles' );
|
168 |
+
|
169 |
+
if ( ! is_array( $allowed_roles ) )
|
170 |
+
$allowed_roles = array('administrator');
|
171 |
+
|
172 |
+
$current_user = wp_get_current_user();
|
173 |
+
|
174 |
+
if ( array_intersect( $allowed_roles, $current_user->roles )
|
175 |
&& ! defined( 'WPMMP_DEBUG_MODE' ) )
|
176 |
return FALSE;
|
177 |
|
178 |
+
|
179 |
+
|
180 |
add_action( 'template_redirect', array( $this, 'template_hook' ) );
|
181 |
|
182 |
}
|
185 |
|
186 |
/* The message will be shown on the theme settings page if the theme do not support theme settings feature */
|
187 |
|
188 |
+
_e( 'The current selected/activated theme do not have any settings or the theme might not have support for this feature.', 'wpmmp' );
|
189 |
|
190 |
}
|
191 |
|
192 |
function template_hook() {
|
193 |
|
194 |
+
if ( get_option('mmp_feed_access') === '1' )
|
|
|
|
|
|
|
|
|
195 |
$this->disable_feed();
|
196 |
|
197 |
if ( file_exists( $this->path ) ) {
|
198 |
|
199 |
+
if ( get_option('mmp_http_503') === '1' ) {
|
200 |
|
201 |
header('HTTP/1.1 503 Service Temporarily Unavailable');
|
202 |
header('Status: 503 Service Temporarily Unavailable');
|
204 |
|
205 |
}
|
206 |
|
207 |
+
$cd_date = '';
|
|
|
208 |
|
209 |
+
$cd_hr_min = '';
|
210 |
|
211 |
+
$dateTime = esc_attr(get_option('mmp_set_dateTime'));
|
212 |
+
|
213 |
+
if ( $dateTime !== '' ) {
|
214 |
+
|
215 |
+
$cd_date = $dateTime;
|
216 |
+
|
217 |
+
$cd_date = str_replace( '-' , '/', $cd_date);
|
218 |
+
|
219 |
+
}
|
220 |
|
221 |
include( $this->path );
|
222 |
|
243 |
wp_die( __('No feed available,please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );
|
244 |
|
245 |
}
|
|
|
|
|
246 |
|
247 |
+
function _content( $content ) {
|
248 |
|
249 |
+
if ( ! isset( $content_width ) )
|
250 |
+
$content_width = 750;
|
|
|
251 |
|
252 |
+
global $wp_embed;
|
|
|
253 |
|
254 |
+
$content = $wp_embed->autoembed( $content );
|
255 |
+
$content = $wp_embed->run_shortcode( $content );
|
256 |
+
$content = do_shortcode( $content );
|
257 |
+
$content = wpautop( $content );
|
258 |
|
259 |
+
return $content;
|
260 |
+
}
|
261 |
|
262 |
+
function add_settings_tab( $tabs ) {}
|
|
|
|
|
263 |
|
264 |
+
function settings_get_tab( $tab ) {}
|
|
|
265 |
|
266 |
function save_settings($tab){}
|
267 |
function get_settings() { return array(); }
|
274 |
|
275 |
}
|
276 |
|
277 |
+
function add_styles() {
|
278 |
+
|
279 |
+
include wpmmp_settings_part( 'add-styles' );
|
280 |
+
|
281 |
+
}
|
282 |
+
|
283 |
+
function hook_to_head() {
|
284 |
+
|
285 |
+
include wpmmp_settings_part( 'add-hooktohead' );
|
286 |
+
|
287 |
+
}
|
288 |
+
|
289 |
+
function store_email() {
|
290 |
+
|
291 |
+
usleep( 500 );
|
292 |
+
|
293 |
+
error_reporting(0);
|
294 |
+
|
295 |
+
if ( ! wp_verify_nonce( $_POST['wpmmp_email_manager_nonce'],
|
296 |
+
'wpmmp_email_manager_nonce' ) ) {
|
297 |
+
$response = array(
|
298 |
+
'valid' => 0,
|
299 |
+
'message' => 'Error ' . ' - ' . 'Invalid Nonce'
|
300 |
+
);
|
301 |
+
|
302 |
+
exit( json_encode( $response ) );
|
303 |
+
}
|
304 |
+
|
305 |
+
if ( ! isset( $_POST['name'] ) )
|
306 |
+
$_POST['name'] = '';
|
307 |
+
|
308 |
+
$email = $_POST['email'];
|
309 |
+
|
310 |
+
$name = $_POST['name'];
|
311 |
+
|
312 |
+
if ( ! is_email( $email ) ) {
|
313 |
+
|
314 |
+
$response = array(
|
315 |
+
'valid' => 0,
|
316 |
+
'message' => 'Error ' . ' - ' . 'Invalid email address'
|
317 |
+
);
|
318 |
+
|
319 |
+
exit( json_encode( $response ) );
|
320 |
+
|
321 |
+
}
|
322 |
+
|
323 |
+
wpmmp_include( '/libs/MCAPI.class.php' );
|
324 |
+
|
325 |
+
$api_key = get_option( 'mmp_mc_api' );
|
326 |
+
|
327 |
+
$list_id = get_option( 'mmp_mc_listid' );
|
328 |
+
|
329 |
+
$api = new Wpmmp_MCAPI( $api_key );
|
330 |
+
|
331 |
+
list($fname,$lname) = preg_split('/\s+(?=[^\s]+$)/', $name, 2);
|
332 |
+
|
333 |
+
$merge_vars = array(
|
334 |
+
'FNAME' => $fname,
|
335 |
+
'LNAME' => $lname
|
336 |
+
);
|
337 |
+
|
338 |
+
$retval = $api->listSubscribe( $list_id, $email, $merge_vars, 'html' );
|
339 |
+
|
340 |
+
if( $api->errorCode ) {
|
341 |
+
|
342 |
+
$response = array(
|
343 |
+
'valid' => 0,
|
344 |
+
'message' => 'Error ' . ' - ' . $api->errorMessage
|
345 |
+
);
|
346 |
+
|
347 |
+
exit( json_encode( $response ) );
|
348 |
+
|
349 |
+
}
|
350 |
+
|
351 |
+
$response = array(
|
352 |
+
'valid' => 1,
|
353 |
+
'message' => 'Email submitted successfully!'
|
354 |
+
);
|
355 |
+
|
356 |
+
exit( json_encode( $response ) );
|
357 |
+
|
358 |
+
}
|
359 |
+
|
360 |
+
function add_email_form($center=false) {
|
361 |
+
|
362 |
+
include wpmmp_settings_part( 'add-email-form' );
|
363 |
+
|
364 |
+
}
|
365 |
+
|
366 |
+
function add_social_icons($center=false) {
|
367 |
+
|
368 |
+
include wpmmp_settings_part( 'add-social-icons' );
|
369 |
+
|
370 |
+
}
|
371 |
+
|
372 |
}
|
includes/functions.php
CHANGED
@@ -14,6 +14,16 @@ function wpmmp_when_plugins_loaded() {
|
|
14 |
//Register and init the default theme
|
15 |
new Wpmmp_Default_Theme();
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
}
|
18 |
|
19 |
|
@@ -22,6 +32,11 @@ function load_wpmmp_classes() {
|
|
22 |
wpmmp_include( 'classes/class-wpmmp-settings.php' );
|
23 |
wpmmp_include( 'classes/class-wpmmp-theme-handler.php' );
|
24 |
wpmmp_include( 'classes/class-wpmmp-default-theme.php' );
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
new Wpmmp_Settings();
|
27 |
|
@@ -49,7 +64,12 @@ function wpmmp_view_path( $view_name, $is_php = true ) {
|
|
49 |
|
50 |
function wpmmp_settings_part( $view_name, $is_php = true ) {
|
51 |
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
}
|
55 |
|
@@ -79,6 +99,8 @@ function wpmmp_get_settings() {
|
|
79 |
|
80 |
}
|
81 |
|
|
|
|
|
82 |
function wpmmp_get_single_setting( $key ) {
|
83 |
|
84 |
$settings = wpmmp_get_settings();
|
@@ -92,7 +114,7 @@ function wpmmp_get_single_setting( $key ) {
|
|
92 |
|
93 |
function wpmmp_get_active_theme() {
|
94 |
|
95 |
-
$theme =
|
96 |
|
97 |
return apply_filters( 'wpmmp_get_active_theme', $theme );
|
98 |
|
14 |
//Register and init the default theme
|
15 |
new Wpmmp_Default_Theme();
|
16 |
|
17 |
+
new Wpmmp_Alissa_Theme();
|
18 |
+
|
19 |
+
new Wpmmp_Cs_Simple_Theme();
|
20 |
+
|
21 |
+
new Wpmmp_Minimal_Theme();
|
22 |
+
|
23 |
+
new Wpmmp_Mmone_Theme();
|
24 |
+
|
25 |
+
new Wpmmp_Launch_Theme();
|
26 |
+
|
27 |
}
|
28 |
|
29 |
|
32 |
wpmmp_include( 'classes/class-wpmmp-settings.php' );
|
33 |
wpmmp_include( 'classes/class-wpmmp-theme-handler.php' );
|
34 |
wpmmp_include( 'classes/class-wpmmp-default-theme.php' );
|
35 |
+
wpmmp_include( 'classes/class-wpmmp-alissa-theme.php' );
|
36 |
+
wpmmp_include( 'classes/class-wpmmp-cs-simple-theme.php' );
|
37 |
+
wpmmp_include( 'classes/class-wpmmp-minimal-theme.php' );
|
38 |
+
wpmmp_include( 'classes/class-wpmmp-mmone-theme.php' );
|
39 |
+
wpmmp_include( 'classes/class-wpmmp-launch-theme.php' );
|
40 |
|
41 |
new Wpmmp_Settings();
|
42 |
|
64 |
|
65 |
function wpmmp_settings_part( $view_name, $is_php = true ) {
|
66 |
|
67 |
+
$path = wpmmp_view_path( 'admin-settings/' . $view_name, $is_php );
|
68 |
+
|
69 |
+
if ( file_exists( $path ) )
|
70 |
+
return $path;
|
71 |
+
|
72 |
+
return $view_name;
|
73 |
|
74 |
}
|
75 |
|
99 |
|
100 |
}
|
101 |
|
102 |
+
|
103 |
+
|
104 |
function wpmmp_get_single_setting( $key ) {
|
105 |
|
106 |
$settings = wpmmp_get_settings();
|
114 |
|
115 |
function wpmmp_get_active_theme() {
|
116 |
|
117 |
+
$theme = get_option('mmp_themes');
|
118 |
|
119 |
return apply_filters( 'wpmmp_get_active_theme', $theme );
|
120 |
|
includes/tabs.php
ADDED
@@ -0,0 +1,1041 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
add_action( 'admin_menu', 'tabs_menu');
|
4 |
+
|
5 |
+
function tabs_menu(){
|
6 |
+
add_menu_page( 'Tabs', 'Tabs','administrator', 'tabs_option', 'tabs_settings_page', '', 17);
|
7 |
+
add_action( 'admin_init', 'tabs_register_settings' );
|
8 |
+
|
9 |
+
}
|
10 |
+
|
11 |
+
function tabs_register_settings(){
|
12 |
+
|
13 |
+
register_setting('mmp-settings-group','mmp_on_off');
|
14 |
+
register_setting('mmp-settings-group','mmp_favicon');
|
15 |
+
register_setting('mmp-settings-group','mmp_title');
|
16 |
+
register_setting('mmp-settings-group','mmp_seo_meta');
|
17 |
+
register_setting('mmp-settings-group','mmp_analytics');
|
18 |
+
register_setting('mmp-settings-group','mmp_logo');
|
19 |
+
register_setting('mmp-settings-group','mmp_headline');
|
20 |
+
register_setting('mmp-settings-group','mmp_message');
|
21 |
+
register_setting('mmp-settings-group','mmp_bgcolor');
|
22 |
+
register_setting('mmp-settings-group','mmp_text_color');
|
23 |
+
register_setting('mmp-settings-group','mmp_links_color');
|
24 |
+
register_setting('mmp-settings-group','mmp_links_hover_color');
|
25 |
+
register_setting('mmp-settings-group','mmp_background_image');
|
26 |
+
register_setting('mmp-settings-group','mmp_res_bg');
|
27 |
+
register_setting('mmp-settings-group','mmp_fft');
|
28 |
+
register_setting('mmp-settings-group','mmp_ffht');
|
29 |
+
register_setting('mmp-settings-group','mmp_custom_css');
|
30 |
+
register_setting('mmp-settings-group','mmp_custom_header_script');
|
31 |
+
register_setting('mmp-settings-group','mmp_custom_footrt_script');
|
32 |
+
register_setting('mmp-settings-group','mmp_fb_page');
|
33 |
+
register_setting('mmp-settings-group','mmp_tw_page');
|
34 |
+
register_setting('mmp-settings-group','mmp_lkin_page');
|
35 |
+
register_setting('mmp-settings-group','mmp_pin_page');
|
36 |
+
register_setting('mmp-settings-group','mmp_insta_page');
|
37 |
+
register_setting('mmp-settings-group','mmp_show_fb');
|
38 |
+
register_setting('mmp-settings-group','mmp_show_tw');
|
39 |
+
register_setting('mmp-settings-group','mmp_show_lk');
|
40 |
+
register_setting('mmp-settings-group','mmp_show_pin');
|
41 |
+
register_setting('mmp-settings-group','mmp_show_insta');
|
42 |
+
register_setting('mmp-settings-group','mmp_on_off_countdown');
|
43 |
+
register_setting('mmp-settings-group','mmp_on_off_progress');
|
44 |
+
register_setting('mmp-settings-group','mmp_set_dateTime');
|
45 |
+
register_setting('mmp-settings-group','mmp_set_progress');
|
46 |
+
register_setting('mmp-settings-group','mmp_on_off_subscribe');
|
47 |
+
register_setting('mmp-settings-group','mmp_http_503');
|
48 |
+
register_setting('mmp-settings-group','mmp_feed_access');
|
49 |
+
register_setting('mmp-settings-group','');
|
50 |
+
}
|
51 |
+
|
52 |
+
|
53 |
+
|
54 |
+
function mmp_default_settings(){
|
55 |
+
|
56 |
+
if(get_option( 'mmp_text_color') ) return;
|
57 |
+
|
58 |
+
add_option('mmp_on_off' , 0);
|
59 |
+
add_option('mmp_favicon', '');
|
60 |
+
add_option('mmp_title', 'Site is Down');
|
61 |
+
add_option('mmp_seo_meta', '');
|
62 |
+
add_option('mmp_analytics', '');
|
63 |
+
add_option('mmp_logo' , '');
|
64 |
+
add_option('mmp_headline' , 'We are down for maintenance');
|
65 |
+
add_option('mmp_message' , 'Ad your message here');
|
66 |
+
add_option('mmp_bgcolor' , '#000');
|
67 |
+
add_option('mmp_text_color', '#fff');
|
68 |
+
add_option('mmp_links_color' ,'#efef');
|
69 |
+
add_option('mmp_links_hover_color','#efef');
|
70 |
+
add_option('mmp_background_image' , '');
|
71 |
+
add_option('mmp_res_bg' , '0');
|
72 |
+
add_option('mmp_fft' , ' ');
|
73 |
+
add_option('mmp_ffht' , '');
|
74 |
+
add_option('mmp_custom_css' , '');
|
75 |
+
add_option('mmp_custom_header_script' , '');
|
76 |
+
add_option('mmp_custom_footrt_script', '');
|
77 |
+
add_option('mmp_fb_page' , '');
|
78 |
+
add_option('mmp_tw_page' , '');
|
79 |
+
add_option('mmp_lkin_page' , '');
|
80 |
+
add_option('mmp_pin_page' ,'');
|
81 |
+
add_option('mmp_insta_page', '');
|
82 |
+
add_option('mmp_show_fb' , 0);
|
83 |
+
add_option('mmp_show_tw' , 0);
|
84 |
+
add_option('mmp_show_lk' , 0);
|
85 |
+
add_option('mmp_show_pin' , 0);
|
86 |
+
add_option('mmp_show_insta' , 0);
|
87 |
+
add_option('mmp_on_off_countdown' , 0);
|
88 |
+
add_option('mmp_on_off_progress' , 0);
|
89 |
+
add_option('mmp_set_dateTime', '');
|
90 |
+
add_option('mmp_set_progress' , '');
|
91 |
+
add_option('mmp_on_off_subscribe' , 0);
|
92 |
+
add_option('mmp_http_503' , 0);
|
93 |
+
add_option('mmp_feed_access' , 0);
|
94 |
+
|
95 |
+
}
|
96 |
+
|
97 |
+
|
98 |
+
|
99 |
+
register_activation_hook( __FILE__, 'mmp_default_settings' );
|
100 |
+
|
101 |
+
|
102 |
+
|
103 |
+
add_action( 'admin_enqueue_scripts', 'wp_enqueue_js' );
|
104 |
+
function wp_enqueue_js( ) {
|
105 |
+
wp_enqueue_script( 'wp-color-picker' );
|
106 |
+
wp_enqueue_style( 'wp-color-picker' );
|
107 |
+
wp_enqueue_style( 'thickbox' );
|
108 |
+
wp_enqueue_script( 'thickbox' );
|
109 |
+
wp_enqueue_script( 'media-upload' );
|
110 |
+
|
111 |
+
wp_enqueue_script( 'wp-color-picker-script', WP_PLUGIN_URL .'/tabs/wspcolorpicker.js', array( 'wp-color-picker' ), false, true );
|
112 |
+
|
113 |
+
}
|
114 |
+
|
115 |
+
|
116 |
+
function tabs_settings_page(){?>
|
117 |
+
<style type="text/css">
|
118 |
+
|
119 |
+
|
120 |
+
.onoffswitch {
|
121 |
+
position: relative; width: 90px;
|
122 |
+
-webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
|
123 |
+
}
|
124 |
+
td .onoffswitch-checkbox {
|
125 |
+
display: none;
|
126 |
+
}
|
127 |
+
.onoffswitch-label {
|
128 |
+
display: block; overflow: hidden; cursor: pointer;
|
129 |
+
border: 2px solid #999999; border-radius: 20px;
|
130 |
+
}
|
131 |
+
.onoffswitch-inner {
|
132 |
+
display: block; width: 200%; margin-left: -100%;
|
133 |
+
transition: margin 0.1s ease-in 0s;
|
134 |
+
}
|
135 |
+
.onoffswitch-inner:before, .onoffswitch-inner:after {
|
136 |
+
display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
|
137 |
+
font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
|
138 |
+
box-sizing: border-box;
|
139 |
+
}
|
140 |
+
.onoffswitch-inner:before {
|
141 |
+
content: "Yes";
|
142 |
+
padding-left: 10px;
|
143 |
+
background-color: #34A7C1; color: #FFFFFF;
|
144 |
+
}
|
145 |
+
.onoffswitch-inner:after {
|
146 |
+
content: "No";
|
147 |
+
padding-right: 10px;
|
148 |
+
background-color: #EEEEEE; color: #999999;
|
149 |
+
text-align: right;
|
150 |
+
}
|
151 |
+
.onoffswitch-switch {
|
152 |
+
display: block; width: 18px; margin: 6px;
|
153 |
+
background: #FFFFFF;
|
154 |
+
position: absolute; top: 0; bottom: 0;
|
155 |
+
right: 56px;
|
156 |
+
border: 2px solid #999999; border-radius: 20px;
|
157 |
+
transition: all 0.1s ease-in 0s;
|
158 |
+
}
|
159 |
+
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
|
160 |
+
margin-left: 0;
|
161 |
+
}
|
162 |
+
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
|
163 |
+
right: 0px;
|
164 |
+
|
165 |
+
}
|
166 |
+
@font-face {
|
167 |
+
font-family: 'Montserrat';
|
168 |
+
font-style: normal;
|
169 |
+
font-weight: 400;
|
170 |
+
src: local('Montserrat-Regular'), url(http://fonts.gstatic.com/s/montserrat/v6/zhcz-_WihjSQC0oHJ9TCYPk_vArhqVIZ0nv9q090hN8.woff2) format('woff2'), url(http://fonts.gstatic.com/s/montserrat/v6/zhcz-_WihjSQC0oHJ9TCYBsxEYwM7FgeyaSgU71cLG0.woff) format('woff');
|
171 |
+
}
|
172 |
+
|
173 |
+
@font-face {
|
174 |
+
font-family: 'Lato';
|
175 |
+
font-style: normal;
|
176 |
+
font-weight: 400;
|
177 |
+
src: local('Lato Regular'), local('Lato-Regular'), url(http://fonts.gstatic.com/s/lato/v11/1YwB1sO8YE1Lyjf12WNiUA.woff2) format('woff2'), url(http://fonts.gstatic.com/s/lato/v11/9k-RPmcnxYEPm8CNFsH2gg.woff) format('woff');
|
178 |
+
}
|
179 |
+
@font-face {
|
180 |
+
font-family: 'Lato';
|
181 |
+
font-style: normal;
|
182 |
+
font-weight: 700;
|
183 |
+
src: local('Lato Bold'), local('Lato-Bold'), url(http://fonts.gstatic.com/s/lato/v11/H2DMvhDLycM56KNuAtbJYA.woff2) format('woff2'), url(http://fonts.gstatic.com/s/lato/v11/wkfQbvfT_02e2IWO3yYueQ.woff) format('woff');
|
184 |
+
}
|
185 |
+
@font-face {
|
186 |
+
font-family: 'Lato';
|
187 |
+
font-style: italic;
|
188 |
+
font-weight: 400;
|
189 |
+
src: local('Lato Italic'), local('Lato-Italic'), url(http://fonts.gstatic.com/s/lato/v11/PLygLKRVCQnA5fhu3qk5fQ.woff2) format('woff2'), url(http://fonts.gstatic.com/s/lato/v11/oUan5VrEkpzIazlUe5ieaA.woff) format('woff');
|
190 |
+
}
|
191 |
+
|
192 |
+
* {
|
193 |
+
-webkit-transition: all 0.4s ease-in-out;
|
194 |
+
-moz-transition: all 0.4s ease-in-out;
|
195 |
+
-ms-transition: all 0.4s ease-in-out;
|
196 |
+
-o-transition: all 0.4s ease-in-out;
|
197 |
+
transition: all 0.4s ease-in-out;
|
198 |
+
}
|
199 |
+
|
200 |
+
b, strong {
|
201 |
+
color: #666;
|
202 |
+
font-size: 18px;
|
203 |
+
font-weight: 700;
|
204 |
+
}
|
205 |
+
|
206 |
+
|
207 |
+
.wrap {
|
208 |
+
background-color: #fff;
|
209 |
+
border-radius: 3px;
|
210 |
+
box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.1);
|
211 |
+
font-family: Lato;
|
212 |
+
margin: 4% auto;
|
213 |
+
overflow: hidden;
|
214 |
+
padding: 40px 6%;
|
215 |
+
width: 80%;
|
216 |
+
}
|
217 |
+
|
218 |
+
.wrap p{
|
219 |
+
font-size: 19px;
|
220 |
+
color:#777;
|
221 |
+
}
|
222 |
+
|
223 |
+
.wrap h1 {
|
224 |
+
background: #ffba00 none repeat scroll 0 0;
|
225 |
+
color: #fff;
|
226 |
+
font-family: 'Montserrat',sans-serif;
|
227 |
+
font-size: 42px;
|
228 |
+
font-weight: 400;
|
229 |
+
margin: -40px -8% 40px;
|
230 |
+
padding: 40px;
|
231 |
+
text-align: center;
|
232 |
+
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
|
233 |
+
}
|
234 |
+
|
235 |
+
.wrap h3 {
|
236 |
+
color: #666;
|
237 |
+
font-size: 20px;
|
238 |
+
text-align: left;
|
239 |
+
}
|
240 |
+
|
241 |
+
|
242 |
+
.wrap #hed3 {
|
243 |
+
background-color: #0074a2;
|
244 |
+
height: auto;
|
245 |
+
margin: 40px -8%;
|
246 |
+
padding: 10px;
|
247 |
+
text-align: center;
|
248 |
+
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
|
249 |
+
}
|
250 |
+
|
251 |
+
|
252 |
+
#hed3 h3 {
|
253 |
+
color: #fff;
|
254 |
+
font-family: Montserrat,sans-serif;
|
255 |
+
font-size: 32px;
|
256 |
+
font-weight: 400;
|
257 |
+
text-align: center;
|
258 |
+
}
|
259 |
+
|
260 |
+
.wrap th
|
261 |
+
{
|
262 |
+
color :#666;
|
263 |
+
font-size: 1.2em;
|
264 |
+
padding-left: 15px;
|
265 |
+
|
266 |
+
}
|
267 |
+
|
268 |
+
|
269 |
+
.wrap td
|
270 |
+
{
|
271 |
+
padding-left: 40px;
|
272 |
+
}
|
273 |
+
.wrap h3 a ,p a
|
274 |
+
{
|
275 |
+
text-decoration: none;
|
276 |
+
}
|
277 |
+
.wrap td p
|
278 |
+
{
|
279 |
+
color:#666;
|
280 |
+
font-size:1.2em;
|
281 |
+
}
|
282 |
+
.wrap p.submit
|
283 |
+
{
|
284 |
+
text-align: center;
|
285 |
+
}
|
286 |
+
.wrap input[type=checkbox] {
|
287 |
+
/* All browsers except webkit*/
|
288 |
+
transform: scale(1.2);
|
289 |
+
|
290 |
+
/* Webkit browsers*/
|
291 |
+
-webkit-transform: scale(1.2);
|
292 |
+
|
293 |
+
|
294 |
+
}
|
295 |
+
/*
|
296 |
+
This css and associated images borrow heavily from the fantastic
|
297 |
+
chosen select box plugin.
|
298 |
+
|
299 |
+
Copyright (c) 2011 Harvest http://getharvest.com
|
300 |
+
|
301 |
+
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
302 |
+
*/
|
303 |
+
|
304 |
+
td .font-select {
|
305 |
+
font-size: 16px;
|
306 |
+
width: 210px;
|
307 |
+
position: relative;
|
308 |
+
display: inline-block;
|
309 |
+
zoom: 1;
|
310 |
+
*display: inline;
|
311 |
+
}
|
312 |
+
|
313 |
+
td .font-select .fs-drop {
|
314 |
+
background: #fff;
|
315 |
+
border: 1px solid #aaa;
|
316 |
+
border-top: 0;
|
317 |
+
position: absolute;
|
318 |
+
top: 29px;
|
319 |
+
left: 0;
|
320 |
+
-webkit-box-shadow: 0 4px 5px rgba(0,0,0,.15);
|
321 |
+
-moz-box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
322 |
+
-o-box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
323 |
+
box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
324 |
+
z-index: 999;
|
325 |
+
}
|
326 |
+
|
327 |
+
td .font-select > a {
|
328 |
+
background-color: #fff;
|
329 |
+
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.5, white));
|
330 |
+
background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 50%);
|
331 |
+
background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 50%);
|
332 |
+
background-image: -o-linear-gradient(top, #eeeeee 0%,#ffffff 50%);
|
333 |
+
background-image: -ms-linear-gradient(top, #eeeeee 0%,#ffffff 50%);
|
334 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=0 );
|
335 |
+
background-image: linear-gradient(top, #eeeeee 0%,#ffffff 50%);
|
336 |
+
-webkit-border-radius: 4px;
|
337 |
+
-moz-border-radius : 4px;
|
338 |
+
border-radius : 4px;
|
339 |
+
-moz-background-clip : padding;
|
340 |
+
-webkit-background-clip: padding-box;
|
341 |
+
background-clip : padding-box;
|
342 |
+
border: 1px solid #aaa;
|
343 |
+
display: block;
|
344 |
+
overflow: hidden;
|
345 |
+
white-space: nowrap;
|
346 |
+
position: relative;
|
347 |
+
height: 26px;
|
348 |
+
line-height: 26px;
|
349 |
+
padding: 0 0 0 8px;
|
350 |
+
color: #444;
|
351 |
+
text-decoration: none;
|
352 |
+
}
|
353 |
+
|
354 |
+
td .font-select > a span {
|
355 |
+
margin-right: 26px;
|
356 |
+
display: block;
|
357 |
+
overflow: hidden;
|
358 |
+
white-space: nowrap;
|
359 |
+
line-height: 1.8;
|
360 |
+
-o-text-overflow: ellipsis;
|
361 |
+
-ms-text-overflow: ellipsis;
|
362 |
+
text-overflow: ellipsis;
|
363 |
+
cursor: pointer;
|
364 |
+
}
|
365 |
+
|
366 |
+
td .font-select > a div {
|
367 |
+
-webkit-border-radius: 0 4px 4px 0;
|
368 |
+
-moz-border-radius : 0 4px 4px 0;
|
369 |
+
border-radius : 0 4px 4px 0;
|
370 |
+
-moz-background-clip : padding;
|
371 |
+
-webkit-background-clip: padding-box;
|
372 |
+
background-clip : padding-box;
|
373 |
+
background: #ccc;
|
374 |
+
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
|
375 |
+
background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
|
376 |
+
background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
|
377 |
+
background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%);
|
378 |
+
background-image: -ms-linear-gradient(top, #cccccc 0%,#eeeeee 60%);
|
379 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cccccc', endColorstr='#eeeeee',GradientType=0 );
|
380 |
+
background-image: linear-gradient(top, #cccccc 0%,#eeeeee 60%);
|
381 |
+
border-left: 1px solid #aaa;
|
382 |
+
position: absolute;
|
383 |
+
right: 0;
|
384 |
+
top: 0;
|
385 |
+
display: block;
|
386 |
+
height: 100%;
|
387 |
+
width: 18px;
|
388 |
+
}
|
389 |
+
|
390 |
+
td .font-select > a div b {
|
391 |
+
background: url('<?php echo get_template_directory_uri().'/admin/admin-zia/fs-sprite.png' ?>') no-repeat 0 1px;
|
392 |
+
display: block;
|
393 |
+
width: 100%;
|
394 |
+
height: 100%;
|
395 |
+
cursor: pointer;
|
396 |
+
}
|
397 |
+
|
398 |
+
td .font-select .fs-drop {
|
399 |
+
-webkit-border-radius: 0 0 4px 4px;
|
400 |
+
-moz-border-radius : 0 0 4px 4px;
|
401 |
+
border-radius : 0 0 4px 4px;
|
402 |
+
-moz-background-clip : padding;
|
403 |
+
-webkit-background-clip: padding-box;
|
404 |
+
background-clip : padding-box;
|
405 |
+
}
|
406 |
+
|
407 |
+
td .font-select .fs-results {
|
408 |
+
margin: 0 4px 4px 0;
|
409 |
+
max-height: 190px;
|
410 |
+
width: 200px;
|
411 |
+
padding: 0 0 0 4px;
|
412 |
+
position: relative;
|
413 |
+
overflow-x: hidden;
|
414 |
+
overflow-y: auto;
|
415 |
+
}
|
416 |
+
|
417 |
+
td .font-select .fs-results li {
|
418 |
+
line-height: 80%;
|
419 |
+
padding: 7px 7px 8px;
|
420 |
+
margin: 0;
|
421 |
+
list-style: none;
|
422 |
+
font-size: 18px;
|
423 |
+
}
|
424 |
+
|
425 |
+
td .font-select .fs-results li.active {
|
426 |
+
background: #3875d7;
|
427 |
+
color: #fff;
|
428 |
+
cursor: pointer;
|
429 |
+
}
|
430 |
+
td.font-select .fs-results li em {
|
431 |
+
background: #feffde;
|
432 |
+
font-style: normal;
|
433 |
+
}
|
434 |
+
|
435 |
+
td.font-select .fs-results li.active em {
|
436 |
+
background: transparent;
|
437 |
+
}
|
438 |
+
|
439 |
+
td.font-select-active > a {
|
440 |
+
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
441 |
+
-moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
442 |
+
-o-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
443 |
+
box-shadow : 0 0 5px rgba(0,0,0,.3);
|
444 |
+
border: 1px solid #5897fb;
|
445 |
+
}
|
446 |
+
|
447 |
+
td.font-select-active > a {
|
448 |
+
border: 1px solid #aaa;
|
449 |
+
-webkit-box-shadow: 0 1px 0 #fff inset;
|
450 |
+
-moz-box-shadow : 0 1px 0 #fff inset;
|
451 |
+
-o-box-shadow : 0 1px 0 #fff inset;
|
452 |
+
box-shadow : 0 1px 0 #fff inset;
|
453 |
+
background-color: #eee;
|
454 |
+
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
|
455 |
+
background-image: -webkit-linear-gradient(center bottom, white 0%, #eeeeee 50%);
|
456 |
+
background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%);
|
457 |
+
background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
|
458 |
+
background-image: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 50%);
|
459 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 );
|
460 |
+
background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%);
|
461 |
+
-webkit-border-bottom-left-radius : 0;
|
462 |
+
-webkit-border-bottom-right-radius: 0;
|
463 |
+
-moz-border-radius-bottomleft : 0;
|
464 |
+
-moz-border-radius-bottomright: 0;
|
465 |
+
border-bottom-left-radius : 0;
|
466 |
+
border-bottom-right-radius: 0;
|
467 |
+
}
|
468 |
+
|
469 |
+
td.font-select-active > a div {
|
470 |
+
background: transparent;
|
471 |
+
border-left: none;
|
472 |
+
}
|
473 |
+
|
474 |
+
td.font-select-active > a div b {
|
475 |
+
background-position: -18px 1px;
|
476 |
+
}
|
477 |
+
|
478 |
+
|
479 |
+
td span#pal {
|
480 |
+
top: 80px;
|
481 |
+
}
|
482 |
+
|
483 |
+
|
484 |
+
</style>
|
485 |
+
|
486 |
+
<div class='wrap'>
|
487 |
+
|
488 |
+
<?php
|
489 |
+
if ( isset( $_POST['reset'] ) ){
|
490 |
+
|
491 |
+
|
492 |
+
delete_option('mmp_on_off');
|
493 |
+
delete_option('mmp_favicon');
|
494 |
+
delete_option('mmp_title');
|
495 |
+
delete_option('mmp_seo_meta');
|
496 |
+
delete_option('mmp_analytics');
|
497 |
+
delete_option('mmp_logo');
|
498 |
+
delete_option('mmp_headline');
|
499 |
+
delete_option('mmp_message');
|
500 |
+
delete_option('mmp_bgcolor');
|
501 |
+
delete_option('mmp_text_color');
|
502 |
+
delete_option('mmp_links_color');
|
503 |
+
delete_option('mmp_links_hover_color');
|
504 |
+
delete_option('mmp_background_image');
|
505 |
+
delete_option('mmp_res_bg');
|
506 |
+
delete_option('mmp_fft');
|
507 |
+
delete_option('mmp_ffht');
|
508 |
+
delete_option('mmp_custom_css');
|
509 |
+
delete_option('mmp_custom_header_script');
|
510 |
+
delete_option('mmp_custom_footrt_script');
|
511 |
+
delete_option('mmp_fb_page');
|
512 |
+
delete_option('mmp_tw_page');
|
513 |
+
delete_option('mmp_lkin_page');
|
514 |
+
delete_option('mmp_pin_page');
|
515 |
+
delete_option('mmp_insta_page');
|
516 |
+
delete_option('mmp_show_fb');
|
517 |
+
delete_option('mmp_show_tw');
|
518 |
+
delete_option('mmp_show_lk');
|
519 |
+
delete_option('mmp_show_pin');
|
520 |
+
delete_option('mmp_show_insta');
|
521 |
+
delete_option('mmp_on_off_countdown');
|
522 |
+
delete_option('mmp_on_off_progress');
|
523 |
+
delete_option('mmp_set_dateTime');
|
524 |
+
delete_option('mmp_set_progress');
|
525 |
+
delete_option('mmp_on_off_subscribe');
|
526 |
+
delete_option('mmp_http_503');
|
527 |
+
delete_option('mmp_feed_access');
|
528 |
+
|
529 |
+
}
|
530 |
+
?>
|
531 |
+
|
532 |
+
<?php settings_errors(); ?>
|
533 |
+
|
534 |
+
<form method="post" action="options.php" >
|
535 |
+
<?php settings_fields('mmp-settings-group');?>
|
536 |
+
<table class="form-table">
|
537 |
+
<h1><?php _e('Maintenance Mode Options Panel')?></h1>
|
538 |
+
|
539 |
+
|
540 |
+
<br>
|
541 |
+
<br>
|
542 |
+
|
543 |
+
|
544 |
+
<div id="hed3"><h3><?php _e('General Settings')?></h3></div>
|
545 |
+
<br>
|
546 |
+
|
547 |
+
|
548 |
+
<tr valign='top'>
|
549 |
+
<th scope='row'><?php _e('Enable Maintenance Mode ');?></th>
|
550 |
+
<td>
|
551 |
+
<div class="onoffswitch">
|
552 |
+
<input type="checkbox" name="mmp_on_off" class="onoffswitch-checkbox" id="myonoffswitch" value='1'<?php checked(1, get_option('mmp_on_off')); ?> />
|
553 |
+
<label class="onoffswitch-label" for="myonoffswitch">
|
554 |
+
<span class="onoffswitch-inner"></span>
|
555 |
+
<span class="onoffswitch-switch"></span>
|
556 |
+
</label>
|
557 |
+
</div>
|
558 |
+
</td>
|
559 |
+
</tr>
|
560 |
+
|
561 |
+
|
562 |
+
|
563 |
+
<tr valign='top'>
|
564 |
+
<th scope='row'><?php _e(' Enable Countdow Timer ');?></th>
|
565 |
+
<td>
|
566 |
+
<div class="onoffswitch">
|
567 |
+
<input type="checkbox" name="mmp_on_off_countdown" class="onoffswitch-checkbox" id="myonoffswitch7" value='1'<?php checked(1, get_option('mmp_on_off_countdown')); ?> />
|
568 |
+
<label class="onoffswitch-label" for="myonoffswitch7">
|
569 |
+
<span class="onoffswitch-inner"></span>
|
570 |
+
<span class="onoffswitch-switch"></span>
|
571 |
+
</label>
|
572 |
+
</div>
|
573 |
+
</td>
|
574 |
+
</tr>
|
575 |
+
|
576 |
+
|
577 |
+
<tr>
|
578 |
+
<th scope='row'><?php _e('Set Date/Time');?></th>
|
579 |
+
<td><label for='mmp_set_dateTime'>
|
580 |
+
<input type='date' id='mmp_set_dateTime' name='mmp_set_dateTime' value='<?php echo get_option('mmp_set_dateTime' ); ?>'/>
|
581 |
+
<p class='description'><?php _e('Set Date time for countdown timer') ;?></p>
|
582 |
+
</label>
|
583 |
+
</td>
|
584 |
+
</tr>
|
585 |
+
|
586 |
+
|
587 |
+
|
588 |
+
|
589 |
+
<tr valign='top'>
|
590 |
+
<th scope='row'><?php _e(' Enable Progress Bar ');?></th>
|
591 |
+
<td>
|
592 |
+
<div class="onoffswitch">
|
593 |
+
<input type="checkbox" name="mmp_on_off_progress" class="onoffswitch-checkbox" id="myonoffswitch8" value='1'<?php checked(1, get_option('mmp_on_off_progress')); ?> />
|
594 |
+
<label class="onoffswitch-label" for="myonoffswitch8">
|
595 |
+
<span class="onoffswitch-inner"></span>
|
596 |
+
<span class="onoffswitch-switch"></span>
|
597 |
+
</label>
|
598 |
+
</div>
|
599 |
+
</td>
|
600 |
+
</tr>
|
601 |
+
|
602 |
+
|
603 |
+
|
604 |
+
|
605 |
+
|
606 |
+
<tr>
|
607 |
+
<th scope='row'><?php _e('Set Progress bar %');?></th>
|
608 |
+
<td><label for='mmp_set_progress'>
|
609 |
+
<input type='range' id='mmp_set_progress' name='mmp_set_progress' min='0' max='100' value='<?php echo get_option('mmp_set_progress') ?>' oninput="this.form.amountInputH.value=this.value" /> <input style="width:60px;" type="number" name="amountInputH" min="0" max="100" value='<?php echo get_option('mmp_set_progress') ?>' size='2' oninput="this.form.mmp_set_progress.value=this.value" />
|
610 |
+
<p class='description'><?php _e('Set Progress bar percentage') ;?></p>
|
611 |
+
</label>
|
612 |
+
</td>
|
613 |
+
</tr>
|
614 |
+
|
615 |
+
|
616 |
+
|
617 |
+
<tr valign='top'>
|
618 |
+
<th scope='row'><?php _e('Show Subscribe Form ');?></th>
|
619 |
+
<td>
|
620 |
+
<div class="onoffswitch">
|
621 |
+
<input type="checkbox" name="mmp_on_off_subscribe" class="onoffswitch-checkbox" id="myonoffswitch9" value='1'<?php checked(1, get_option('mmp_on_off_subscribe')); ?> />
|
622 |
+
<label class="onoffswitch-label" for="myonoffswitch9">
|
623 |
+
<span class="onoffswitch-inner"></span>
|
624 |
+
<span class="onoffswitch-switch"></span>
|
625 |
+
</label>
|
626 |
+
</div>
|
627 |
+
</td>
|
628 |
+
</tr>
|
629 |
+
|
630 |
+
|
631 |
+
</table>
|
632 |
+
|
633 |
+
|
634 |
+
<table class="form-table">
|
635 |
+
|
636 |
+
<div id="hed3"><h3><?php _e('Header')?></h3></div>
|
637 |
+
|
638 |
+
|
639 |
+
|
640 |
+
<tr valign="top">
|
641 |
+
<th scope="row"><?php _e('Favicon'); ?></th>
|
642 |
+
<td><label for="mmp_favicon">
|
643 |
+
<input id="image_location" type="text" name="mmp_favicon" value="<?php echo get_option('mmp_favicon') ?>" size="50" />
|
644 |
+
<input class="onetarek-upload-button button" type="button" value="Upload Image" />
|
645 |
+
<p class='description'><?php _e('Upload or Select Favicon Image, Image must be 16px X 16px.') ;?></p>
|
646 |
+
</lable>
|
647 |
+
</td>
|
648 |
+
</tr>
|
649 |
+
|
650 |
+
<tr valign="top">
|
651 |
+
<th scope="row"><?php _e('SEO Title'); ?></th>
|
652 |
+
<td><label for="mmp_title">
|
653 |
+
<input type="text" id="mmp_title" name="mmp_title" value="<?php echo get_option( 'mmp_title' ); ?>" />
|
654 |
+
<p class="description"><?php _e( 'Enter Title here eg: abcd. '); ?></p>
|
655 |
+
</label>
|
656 |
+
</td>
|
657 |
+
</tr>
|
658 |
+
|
659 |
+
|
660 |
+
|
661 |
+
<tr valign="top">
|
662 |
+
<th scope="row"><?php _e( 'SEO Meta Description') ?></th>
|
663 |
+
<td><label for="mmp_seo_meta">
|
664 |
+
<textarea cols="50" rows="2" id="mmp_seo_meta" name="mmp_seo_meta" ><?php echo get_option( 'mmp_seo_meta' ); ?> </textarea>
|
665 |
+
<p class='description'> <?php _e('Add SEO Meta Description.' );?></p>
|
666 |
+
</label>
|
667 |
+
</td>
|
668 |
+
</tr>
|
669 |
+
|
670 |
+
|
671 |
+
|
672 |
+
<tr valign="top">
|
673 |
+
<th scope="row"><?php _e( 'Analytics Code') ?></th>
|
674 |
+
<td><label for="mmp_analytics">
|
675 |
+
<textarea cols="50" rows="2" id="mmp_analytics" name="mmp_analytics" ><?php echo get_option( 'mmp_analytics' ); ?> </textarea>
|
676 |
+
<p class='description'> <?php _e('Add Analytics code here' );?></p>
|
677 |
+
</label>
|
678 |
+
</td>
|
679 |
+
</tr>
|
680 |
+
|
681 |
+
|
682 |
+
</table>
|
683 |
+
|
684 |
+
|
685 |
+
<table class="form-table">
|
686 |
+
|
687 |
+
<div id="hed3"><h3><?php _e('Page Settings')?></h3></div>
|
688 |
+
|
689 |
+
|
690 |
+
<tr valign="top">
|
691 |
+
<th scope="row"><?php _e('Logo'); ?></th>
|
692 |
+
<td><label for="mmp_logo">
|
693 |
+
<input id="image_location" type="text" name="mmp_logo" value="<?php echo get_option('mmp_logo') ?>" size="50" />
|
694 |
+
<input class="onetarek-upload-button button" type="button" value="Upload Image" />
|
695 |
+
<p class='description'><?php _e('Upload or Select Logo Image 184px X 50px') ;?></p>
|
696 |
+
</lable>
|
697 |
+
</td>
|
698 |
+
</tr>
|
699 |
+
|
700 |
+
|
701 |
+
|
702 |
+
<tr valign="top">
|
703 |
+
<th scope="row"><?php _e('Headline'); ?></th>
|
704 |
+
<td><label for="mmp_headline">
|
705 |
+
<input type="text" id="mmp_headline" name="mmp_headline" value="<?php echo get_option( 'mmp_headline' ); ?>" />
|
706 |
+
<p class="description"><?php _e( 'Enter Headline here '); ?></p>
|
707 |
+
</label>
|
708 |
+
</td>
|
709 |
+
</tr>
|
710 |
+
|
711 |
+
|
712 |
+
<tr valign="top">
|
713 |
+
<th scope="row"><?php _e('Message'); ?></th>
|
714 |
+
<td><label for="mmp_message">
|
715 |
+
</label>
|
716 |
+
<?php
|
717 |
+
$settings = array('media_buttons' => true,'mmp_message');
|
718 |
+
$content = get_option('mmp_message');
|
719 |
+
wp_editor( $content, 'mmp_message', $settings ); ?>
|
720 |
+
</td>
|
721 |
+
</tr>
|
722 |
+
|
723 |
+
</table>
|
724 |
+
|
725 |
+
|
726 |
+
<table class="form-table">
|
727 |
+
|
728 |
+
<div id="hed3"><h3><?php _e('Design')?></h3></div>
|
729 |
+
|
730 |
+
|
731 |
+
<tr>
|
732 |
+
<th scope='row'><?php _e('Background Color');?></th>
|
733 |
+
<td><label for='mmp_bgcolor'>
|
734 |
+
<input type='text' class='color_picker' id='mmp_bgcolor' name='mmp_bgcolor' value='<?php echo get_option('mmp_bgcolor' ); ; ?>'/>
|
735 |
+
<p class='description'><?php _e('Change background color') ;?></p>
|
736 |
+
</label>
|
737 |
+
</td>
|
738 |
+
</tr>
|
739 |
+
|
740 |
+
|
741 |
+
|
742 |
+
<tr>
|
743 |
+
<th scope='row'><?php _e('Text Color');?></th>
|
744 |
+
<td><label for='mmp_text_color'>
|
745 |
+
<input type='text' class='color_picker' id='mmp_text_color' name='mmp_text_color' value='<?php echo get_option('mmp_text_color' ); ; ?>'/>
|
746 |
+
<p class='description'><?php _e('Change Header and sidebar color') ;?></p>
|
747 |
+
</label>
|
748 |
+
</td>
|
749 |
+
</tr>
|
750 |
+
|
751 |
+
|
752 |
+
<tr>
|
753 |
+
<th scope='row'><?php _e('Links Color');?></th>
|
754 |
+
<td><label for='mmp_links_color'>
|
755 |
+
<input type='text' class='color_picker' id='mmp_links_color' name='mmp_links_color' value='<?php echo get_option('mmp_links_color' ); ; ?>'/>
|
756 |
+
<p class='description'><?php _e('Change Links color') ;?></p>
|
757 |
+
</label>
|
758 |
+
</td>
|
759 |
+
</tr>
|
760 |
+
|
761 |
+
|
762 |
+
<tr>
|
763 |
+
<th scope='row'><?php _e('Links Hover Color');?></th>
|
764 |
+
<td><label for='mmp_links_hover_color'>
|
765 |
+
<input type='text' class='color_picker' id='mmp_links_hover_color' name='mmp_links_hover_color' value='<?php echo get_option('mmp_links_hover_color' ); ; ?>'/>
|
766 |
+
<p class='description'><?php _e('Change Links color') ;?></p>
|
767 |
+
</label>
|
768 |
+
</td>
|
769 |
+
</tr>
|
770 |
+
|
771 |
+
|
772 |
+
<tr valign="top">
|
773 |
+
<th scope="row"><?php _e('Background Image'); ?></th>
|
774 |
+
<td><label for="mmp_background_image">
|
775 |
+
<input id="image_location" type="text" name="mmp_background_image" value="<?php echo get_option('mmp_background_image') ?>" size="50" />
|
776 |
+
<input class="onetarek-upload-button button" type="button" value="Upload Image" />
|
777 |
+
<p class='description'><?php _e('Upload or Select Site Background Image') ;?></p>
|
778 |
+
</lable>
|
779 |
+
</td>
|
780 |
+
</tr>
|
781 |
+
|
782 |
+
|
783 |
+
<tr valign='top'>
|
784 |
+
<th scope='row'><?php _e('Responsive Background ');?></th>
|
785 |
+
<td>
|
786 |
+
<div class="onoffswitch">
|
787 |
+
<input type="checkbox" name="mmp_res_bg" class="onoffswitch-checkbox" id="myonoffswitch1" value='1'<?php checked(1, get_option('mmp_res_bg')); ?> />
|
788 |
+
<label class="onoffswitch-label" for="myonoffswitch1">
|
789 |
+
<span class="onoffswitch-inner"></span>
|
790 |
+
<span class="onoffswitch-switch"></span>
|
791 |
+
</label>
|
792 |
+
</div>
|
793 |
+
</td>
|
794 |
+
</tr>
|
795 |
+
|
796 |
+
|
797 |
+
|
798 |
+
<th scope='row'><?php _e('Font Family For Text');?></th>
|
799 |
+
<td><label for='mmp_fft'>
|
800 |
+
<input id="font" type="text" name="mmp_fft" value="<?php echo get_option( 'mmp_fft' ); ?>" />
|
801 |
+
|
802 |
+
</label>
|
803 |
+
</td>
|
804 |
+
</tr>
|
805 |
+
|
806 |
+
|
807 |
+
|
808 |
+
<tr>
|
809 |
+
<th scope='row'><?php _e('Font Family For Header Text');?></th>
|
810 |
+
<td><label for='mmp_ffht'>
|
811 |
+
<input id="font1" name="mmp_ffht" type="text" value="<?php echo get_option( 'mmp_ffht' ); ?>" />
|
812 |
+
|
813 |
+
</label>
|
814 |
+
</td>
|
815 |
+
</tr>
|
816 |
+
|
817 |
+
</table>
|
818 |
+
|
819 |
+
|
820 |
+
<table class="form-table">
|
821 |
+
<div id="hed3"><h3><?php _e('Template') ?></h3></div>
|
822 |
+
<tr valign="top">
|
823 |
+
<th scope="row"><?php _e( 'Custom Css') ?></th>
|
824 |
+
<td><label for="mmp_custom_css">
|
825 |
+
<textarea cols="80" rows="7" id="mmp_custom_css" name="mmp_custom_css" ><?php echo get_option( 'mmp_custom_css' ); ?> </textarea>
|
826 |
+
<p class='description'> <?php _e('Add styling inside this text area.' );?></p>
|
827 |
+
</label>
|
828 |
+
</td>
|
829 |
+
</tr>
|
830 |
+
</table>
|
831 |
+
|
832 |
+
|
833 |
+
|
834 |
+
<table class="form-table">
|
835 |
+
|
836 |
+
<div id="hed3"><h3><?php _e('Scripts')?></h3></div>
|
837 |
+
|
838 |
+
|
839 |
+
<tr valign="top">
|
840 |
+
<th scope="row"><?php _e( 'Header Script') ?></th>
|
841 |
+
<td><label for="mmp_custom_header_script">
|
842 |
+
<textarea cols="50" rows="2" id="mmp_custom_header_script" name="mmp_custom_header_script" ><?php echo get_option( 'mmp_custom_header_script' ); ?> </textarea>
|
843 |
+
<p class='description'> <?php _e('Add header script in this text area.' );?></p>
|
844 |
+
</label>
|
845 |
+
</td>
|
846 |
+
</tr>
|
847 |
+
|
848 |
+
|
849 |
+
<tr valign="top">
|
850 |
+
<th scope="row"><?php _e( 'Footer Script') ?></th>
|
851 |
+
<td><label for="mmp_custom_footrt_script">
|
852 |
+
<textarea cols="50" rows="2" id="mmp_custom_footrt_script" name="mmp_custom_footrt_script" ><?php echo get_option( 'mmp_custom_footrt_script' ); ?> </textarea>
|
853 |
+
<p class='description'> <?php _e('Add footer script in this text area.' );?></p>
|
854 |
+
</label>
|
855 |
+
</td>
|
856 |
+
</tr>
|
857 |
+
|
858 |
+
|
859 |
+
</table>
|
860 |
+
|
861 |
+
|
862 |
+
<table class="form-table">
|
863 |
+
|
864 |
+
<div id="hed3"><h3><?php _e('Social')?></h3></div>
|
865 |
+
<tr>
|
866 |
+
<th scope='row'><?php _e('Facebook Page Link');?></th>
|
867 |
+
<td><label for='mmp_fb_page'>
|
868 |
+
<input type='text' id='mmp_fb_page' name='mmp_fb_page' value='<?php echo get_option('mmp_fb_page' ); ?>'/>
|
869 |
+
<p class='description'><?php _e('Enter Facebook Link') ;?></p>
|
870 |
+
</label>
|
871 |
+
</td>
|
872 |
+
</tr>
|
873 |
+
|
874 |
+
<tr>
|
875 |
+
<th scope='row'><?php _e('Twitter Page Link');?></th>
|
876 |
+
<td><label for='mmp_tw_page'>
|
877 |
+
<input type='text' id='mmp_tw_page' name='mmp_tw_page' value='<?php echo get_option('mmp_tw_page' ); ?>'/>
|
878 |
+
<p class='description'><?php _e('Enter Twitter Link') ;?></p>
|
879 |
+
</label>
|
880 |
+
</td>
|
881 |
+
</tr>
|
882 |
+
|
883 |
+
<tr>
|
884 |
+
<th scope='row'><?php _e('LinkedIn Page Link');?></th>
|
885 |
+
<td><label for='mmp_lkin_page'>
|
886 |
+
<input type='text' id='mmp_lkin_page' name='mmp_lkin_page' value='<?php echo get_option('mmp_lkin_page' ); ?>'/>
|
887 |
+
<p class='description'><?php _e('Enter LinkedIn Link') ;?></p>
|
888 |
+
</label>
|
889 |
+
</td>
|
890 |
+
</tr>
|
891 |
+
|
892 |
+
|
893 |
+
|
894 |
+
<tr>
|
895 |
+
<th scope='row'><?php _e('Pinterest Page Link');?></th>
|
896 |
+
<td><label for='mmp_pin_page'>
|
897 |
+
<input type='text' id='mmp_pin_page' name='mmp_pin_page' value='<?php echo get_option('mmp_pin_page' ); ?>'/>
|
898 |
+
<p class='description'><?php _e('Enter Pinterest Link') ;?></p>
|
899 |
+
</label>
|
900 |
+
</td>
|
901 |
+
</tr>
|
902 |
+
|
903 |
+
|
904 |
+
<tr>
|
905 |
+
<th scope='row'><?php _e('Instagram Page Link');?></th>
|
906 |
+
<td><label for='mmp_insta_page'>
|
907 |
+
<input type='text' id='mmp_insta_page' name='mmp_insta_page' value='<?php echo get_option('mmp_insta_page' ); ?>'/>
|
908 |
+
<p class='description'><?php _e('Enter Instagram Link') ;?></p>
|
909 |
+
</label>
|
910 |
+
</td>
|
911 |
+
</tr>
|
912 |
+
|
913 |
+
|
914 |
+
|
915 |
+
<tr valign='top'>
|
916 |
+
<th scope='row'><?php _e('Show Facebook Icon ');?></th>
|
917 |
+
<td>
|
918 |
+
<div class="onoffswitch">
|
919 |
+
<input type="checkbox" name="mmp_show_fb" class="onoffswitch-checkbox" id="myonoffswitch2" value='1'<?php checked(1, get_option('mmp_show_fb')); ?> />
|
920 |
+
<label class="onoffswitch-label" for="myonoffswitch2">
|
921 |
+
<span class="onoffswitch-inner"></span>
|
922 |
+
<span class="onoffswitch-switch"></span>
|
923 |
+
</label>
|
924 |
+
</div>
|
925 |
+
</td>
|
926 |
+
|
927 |
+
</tr><tr valign='top'>
|
928 |
+
<th scope='row'><?php _e('Show Twitter Icon ');?></th>
|
929 |
+
<td>
|
930 |
+
<div class="onoffswitch">
|
931 |
+
<input type="checkbox" name="mmp_show_tw" class="onoffswitch-checkbox" id="myonoffswitch3" value='1'<?php checked(1, get_option('mmp_show_tw')); ?> />
|
932 |
+
<label class="onoffswitch-label" for="myonoffswitch3">
|
933 |
+
<span class="onoffswitch-inner"></span>
|
934 |
+
<span class="onoffswitch-switch"></span>
|
935 |
+
</label>
|
936 |
+
</div>
|
937 |
+
</td>
|
938 |
+
|
939 |
+
</tr><tr valign='top'>
|
940 |
+
<th scope='row'><?php _e('Show LinkedIn Icon ');?></th>
|
941 |
+
<td>
|
942 |
+
<div class="onoffswitch">
|
943 |
+
<input type="checkbox" name="mmp_show_lk" class="onoffswitch-checkbox" id="myonoffswitch4" value='1'<?php checked(1, get_option('mmp_show_lk')); ?> />
|
944 |
+
<label class="onoffswitch-label" for="myonoffswitch4">
|
945 |
+
<span class="onoffswitch-inner"></span>
|
946 |
+
<span class="onoffswitch-switch"></span>
|
947 |
+
</label>
|
948 |
+
</div>
|
949 |
+
</td>
|
950 |
+
</tr>
|
951 |
+
|
952 |
+
|
953 |
+
</tr><tr valign='top'>
|
954 |
+
<th scope='row'><?php _e('Show Pinterest Icon ');?></th>
|
955 |
+
<td>
|
956 |
+
<div class="onoffswitch">
|
957 |
+
<input type="checkbox" name="mmp_show_pin" class="onoffswitch-checkbox" id="myonoffswitch5" value='1'<?php checked(1, get_option('mmp_show_pin')); ?> />
|
958 |
+
<label class="onoffswitch-label" for="myonoffswitch5">
|
959 |
+
<span class="onoffswitch-inner"></span>
|
960 |
+
<span class="onoffswitch-switch"></span>
|
961 |
+
</label>
|
962 |
+
</div>
|
963 |
+
</td>
|
964 |
+
</tr>
|
965 |
+
|
966 |
+
|
967 |
+
|
968 |
+
</tr><tr valign='top'>
|
969 |
+
<th scope='row'><?php _e('Show Instagram Icon ');?></th>
|
970 |
+
<td>
|
971 |
+
<div class="onoffswitch">
|
972 |
+
<input type="checkbox" name="mmp_show_insta" class="onoffswitch-checkbox" id="myonoffswitch6" value='1'<?php checked(1, get_option('mmp_show_insta')); ?> />
|
973 |
+
<label class="onoffswitch-label" for="myonoffswitch6">
|
974 |
+
<span class="onoffswitch-inner"></span>
|
975 |
+
<span class="onoffswitch-switch"></span>
|
976 |
+
</label>
|
977 |
+
</div>
|
978 |
+
</td>
|
979 |
+
</tr>
|
980 |
+
|
981 |
+
</table>
|
982 |
+
|
983 |
+
|
984 |
+
|
985 |
+
<table class="form-table">
|
986 |
+
|
987 |
+
<div id="hed3"><h3><?php _e('Advanced Settings')?></h3></div>
|
988 |
+
|
989 |
+
|
990 |
+
</tr><tr valign='top'>
|
991 |
+
<th scope='row'><?php _e('HTTP 503 Header ');?></th>
|
992 |
+
<td>
|
993 |
+
<div class="onoffswitch">
|
994 |
+
<input type="checkbox" name="mmp_http_503" class="onoffswitch-checkbox" id="myonoffswitch10" value='1'<?php checked(1, get_option('mmp_http_503')); ?> />
|
995 |
+
<label class="onoffswitch-label" for="myonoffswitch10">
|
996 |
+
<span class="onoffswitch-inner"></span>
|
997 |
+
<span class="onoffswitch-switch"></span>
|
998 |
+
</label>
|
999 |
+
</div>
|
1000 |
+
</td>
|
1001 |
+
</tr>
|
1002 |
+
|
1003 |
+
|
1004 |
+
</tr><tr valign='top'>
|
1005 |
+
<th scope='row'><?php _e('Feed Access');?></th>
|
1006 |
+
<td>
|
1007 |
+
<div class="onoffswitch">
|
1008 |
+
<input type="checkbox" name="mmp_feed_access" class="onoffswitch-checkbox" id="myonoffswitch11" value='1'<?php checked(1, get_option('mmp_feed_access')); ?> />
|
1009 |
+
<label class="onoffswitch-label" for="myonoffswitch11">
|
1010 |
+
<span class="onoffswitch-inner"></span>
|
1011 |
+
<span class="onoffswitch-switch"></span>
|
1012 |
+
</label>
|
1013 |
+
</div>
|
1014 |
+
</td>
|
1015 |
+
</tr>
|
1016 |
+
|
1017 |
+
|
1018 |
+
</table>
|
1019 |
+
|
1020 |
+
|
1021 |
+
|
1022 |
+
<p class="submit">
|
1023 |
+
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
|
1024 |
+
</p>
|
1025 |
+
|
1026 |
+
|
1027 |
+
</form>
|
1028 |
+
|
1029 |
+
<form method="post" action="">
|
1030 |
+
<p class="submit">
|
1031 |
+
<input name="reset" class="button button-secondary" type="submit" value="Reset to theme default settings" >
|
1032 |
+
<input type="hidden" value="reset" />
|
1033 |
+
</p>
|
1034 |
+
</form>
|
1035 |
+
|
1036 |
+
</div> <!-- wraper-->
|
1037 |
+
|
1038 |
+
|
1039 |
+
<?php }
|
1040 |
+
|
1041 |
+
?>
|
js/admin-settings.js
CHANGED
@@ -1,26 +1,529 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
jQuery(function ($) {
|
2 |
|
3 |
$(document).ready(function() {
|
4 |
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
-
|
8 |
|
9 |
-
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
$.post( url, function(data) {
|
14 |
|
15 |
-
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
});
|
20 |
|
21 |
-
|
|
|
22 |
|
23 |
-
|
24 |
|
25 |
});
|
26 |
|
1 |
+
|
2 |
+
jQuery(document).ready(function() {
|
3 |
+
jQuery('.color_picker').wpColorPicker();
|
4 |
+
});
|
5 |
+
|
6 |
+
|
7 |
+
jQuery(document).ready(function() {
|
8 |
+
jQuery('#font').fontselect().change(function(){
|
9 |
+
|
10 |
+
var font = jQuery(this).val().replace(/\+/g, ' ');
|
11 |
+
font = font.split(':');
|
12 |
+
|
13 |
+
jQuery(".ffft").val(font[0]);
|
14 |
+
|
15 |
+
});
|
16 |
+
|
17 |
+
});
|
18 |
+
|
19 |
+
jQuery(document).ready(function() {
|
20 |
+
jQuery('#font1').fontselect().change(function(){
|
21 |
+
|
22 |
+
var font = jQuery(this).val().replace(/\+/g, ' ');
|
23 |
+
font = font.split(':');
|
24 |
+
|
25 |
+
jQuery(".ffft").val(font[0]);
|
26 |
+
|
27 |
+
});
|
28 |
+
|
29 |
+
});
|
30 |
+
|
31 |
+
|
32 |
+
jQuery(document).ready(function() {
|
33 |
+
jQuery('#font2').fontselect().change(function(){
|
34 |
+
|
35 |
+
var font = jQuery(this).val().replace(/\+/g, ' ');
|
36 |
+
font = font.split(':');
|
37 |
+
|
38 |
+
jQuery(".ffft").val(font[0]);
|
39 |
+
|
40 |
+
});
|
41 |
+
|
42 |
+
});
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
+
// Uploading files
|
47 |
+
var file_frame;
|
48 |
+
|
49 |
+
jQuery('.onetarek-upload-button').live('click', function( event ){
|
50 |
+
|
51 |
+
event.preventDefault();
|
52 |
+
|
53 |
+
var that = jQuery(this);
|
54 |
+
|
55 |
+
// Create the media frame.
|
56 |
+
file_frame = wp.media.frames.file_frame = wp.media({
|
57 |
+
title: jQuery( this ).data( 'uploader_title' ),
|
58 |
+
button: {
|
59 |
+
text: jQuery( this ).data( 'uploader_button_text' ),
|
60 |
+
},
|
61 |
+
multiple: false // Set to true to allow multiple files to be selected
|
62 |
+
});
|
63 |
+
|
64 |
+
// When an image is selected, run a callback.
|
65 |
+
file_frame.on( 'select', function() {
|
66 |
+
|
67 |
+
// We set multiple to false so only get one image from the uploader
|
68 |
+
attachment = file_frame.state().get('selection').first().toJSON();
|
69 |
+
|
70 |
+
console.log(that);
|
71 |
+
that.prev('input').val( attachment.url );
|
72 |
+
|
73 |
+
|
74 |
+
});
|
75 |
+
|
76 |
+
// Finally, open the modal
|
77 |
+
file_frame.open();
|
78 |
+
});
|
79 |
+
|
80 |
+
(function($){
|
81 |
+
|
82 |
+
$.fn.fontselect = function(options) {
|
83 |
+
|
84 |
+
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
|
85 |
+
|
86 |
+
var fonts = [
|
87 |
+
"Aclonica",
|
88 |
+
"Allan",
|
89 |
+
"Annie+Use+Your+Telescope",
|
90 |
+
"Anonymous+Pro",
|
91 |
+
"Allerta+Stencil",
|
92 |
+
"Allerta",
|
93 |
+
"Amaranth",
|
94 |
+
"Anton",
|
95 |
+
"Architects+Daughter",
|
96 |
+
"Arimo",
|
97 |
+
"Artifika",
|
98 |
+
"Arvo",
|
99 |
+
"Asset",
|
100 |
+
"Astloch",
|
101 |
+
"Bangers",
|
102 |
+
"Bentham",
|
103 |
+
"Bevan",
|
104 |
+
"Bigshot+One",
|
105 |
+
"Bowlby+One",
|
106 |
+
"Bowlby+One+SC",
|
107 |
+
"Brawler",
|
108 |
+
"Buda:300",
|
109 |
+
"Cabin",
|
110 |
+
"Calligraffitti",
|
111 |
+
"Candal",
|
112 |
+
"Cantarell",
|
113 |
+
"Cardo",
|
114 |
+
"Carter One",
|
115 |
+
"Caudex",
|
116 |
+
"Cedarville+Cursive",
|
117 |
+
"Cherry+Cream+Soda",
|
118 |
+
"Chewy",
|
119 |
+
"Coda",
|
120 |
+
"Coming+Soon",
|
121 |
+
"Copse",
|
122 |
+
"Corben:700",
|
123 |
+
"Cousine",
|
124 |
+
"Covered+By+Your+Grace",
|
125 |
+
"Crafty+Girls",
|
126 |
+
"Crimson+Text",
|
127 |
+
"Crushed",
|
128 |
+
"Cuprum",
|
129 |
+
"Damion",
|
130 |
+
"Dancing+Script",
|
131 |
+
"Dawning+of+a+New+Day",
|
132 |
+
"Didact+Gothic",
|
133 |
+
"Droid+Sans",
|
134 |
+
"Droid+Sans+Mono",
|
135 |
+
"Droid+Serif",
|
136 |
+
"EB+Garamond",
|
137 |
+
"Expletus+Sans",
|
138 |
+
"Fontdiner+Swanky",
|
139 |
+
"Forum",
|
140 |
+
"Francois+One",
|
141 |
+
"Geo",
|
142 |
+
"Give+You+Glory",
|
143 |
+
"Goblin+One",
|
144 |
+
"Goudy+Bookletter+1911",
|
145 |
+
"Gravitas+One",
|
146 |
+
"Gruppo",
|
147 |
+
"Hammersmith+One",
|
148 |
+
"Holtwood+One+SC",
|
149 |
+
"Homemade+Apple",
|
150 |
+
"Inconsolata",
|
151 |
+
"Indie+Flower",
|
152 |
+
"IM+Fell+DW+Pica",
|
153 |
+
"IM+Fell+DW+Pica+SC",
|
154 |
+
"IM+Fell+Double+Pica",
|
155 |
+
"IM+Fell+Double+Pica+SC",
|
156 |
+
"IM+Fell+English",
|
157 |
+
"IM+Fell+English+SC",
|
158 |
+
"IM+Fell+French+Canon",
|
159 |
+
"IM+Fell+French+Canon+SC",
|
160 |
+
"IM+Fell+Great+Primer",
|
161 |
+
"IM+Fell+Great+Primer+SC",
|
162 |
+
"Irish+Grover",
|
163 |
+
"Irish+Growler",
|
164 |
+
"Istok+Web",
|
165 |
+
"Josefin+Sans",
|
166 |
+
"Josefin+Slab",
|
167 |
+
"Judson",
|
168 |
+
"Jura",
|
169 |
+
"Jura:500",
|
170 |
+
"Jura:600",
|
171 |
+
"Just+Another+Hand",
|
172 |
+
"Just+Me+Again+Down+Here",
|
173 |
+
"Kameron",
|
174 |
+
"Kenia",
|
175 |
+
"Kranky",
|
176 |
+
"Kreon",
|
177 |
+
"Kristi",
|
178 |
+
"La+Belle+Aurore",
|
179 |
+
"Lato:100",
|
180 |
+
"Lato:100italic",
|
181 |
+
"Lato:300",
|
182 |
+
"Lato",
|
183 |
+
"Lato:bold",
|
184 |
+
"Lato:900",
|
185 |
+
"League+Script",
|
186 |
+
"Lekton",
|
187 |
+
"Limelight",
|
188 |
+
"Lobster",
|
189 |
+
"Lobster Two",
|
190 |
+
"Lora",
|
191 |
+
"Love+Ya+Like+A+Sister",
|
192 |
+
"Loved+by+the+King",
|
193 |
+
"Luckiest+Guy",
|
194 |
+
"Maiden+Orange",
|
195 |
+
"Mako",
|
196 |
+
"Maven+Pro",
|
197 |
+
"Maven+Pro:500",
|
198 |
+
"Maven+Pro:700",
|
199 |
+
"Maven+Pro:900",
|
200 |
+
"Meddon",
|
201 |
+
"MedievalSharp",
|
202 |
+
"Megrim",
|
203 |
+
"Merriweather",
|
204 |
+
"Metrophobic",
|
205 |
+
"Michroma",
|
206 |
+
"Miltonian Tattoo",
|
207 |
+
"Miltonian",
|
208 |
+
"Modern Antiqua",
|
209 |
+
"Monofett",
|
210 |
+
"Molengo",
|
211 |
+
"Mountains of Christmas",
|
212 |
+
"Muli:300",
|
213 |
+
"Muli",
|
214 |
+
"Neucha",
|
215 |
+
"Neuton",
|
216 |
+
"News+Cycle",
|
217 |
+
"Nixie+One",
|
218 |
+
"Nobile",
|
219 |
+
"Nova+Cut",
|
220 |
+
"Nova+Flat",
|
221 |
+
"Nova+Mono",
|
222 |
+
"Nova+Oval",
|
223 |
+
"Nova+Round",
|
224 |
+
"Nova+Script",
|
225 |
+
"Nova+Slim",
|
226 |
+
"Nova+Square",
|
227 |
+
"Nunito:light",
|
228 |
+
"Nunito",
|
229 |
+
"OFL+Sorts+Mill+Goudy+TT",
|
230 |
+
"Old+Standard+TT",
|
231 |
+
"Open+Sans:300",
|
232 |
+
"Open+Sans",
|
233 |
+
"Open+Sans:600",
|
234 |
+
"Open+Sans:800",
|
235 |
+
"Open+Sans+Condensed:300",
|
236 |
+
"Orbitron",
|
237 |
+
"Orbitron:500",
|
238 |
+
"Orbitron:700",
|
239 |
+
"Orbitron:900",
|
240 |
+
"Oswald",
|
241 |
+
"Over+the+Rainbow",
|
242 |
+
"Reenie+Beanie",
|
243 |
+
"Pacifico",
|
244 |
+
"Patrick+Hand",
|
245 |
+
"Paytone+One",
|
246 |
+
"Permanent+Marker",
|
247 |
+
"Philosopher",
|
248 |
+
"Play",
|
249 |
+
"Playfair+Display",
|
250 |
+
"Podkova",
|
251 |
+
"PT+Sans",
|
252 |
+
"PT+Sans+Narrow",
|
253 |
+
"PT+Sans+Narrow:regular,bold",
|
254 |
+
"PT+Serif",
|
255 |
+
"PT+Serif Caption",
|
256 |
+
"Puritan",
|
257 |
+
"Quattrocento",
|
258 |
+
"Quattrocento+Sans",
|
259 |
+
"Radley",
|
260 |
+
"Raleway:100",
|
261 |
+
"Redressed",
|
262 |
+
"Rock+Salt",
|
263 |
+
"Rokkitt",
|
264 |
+
"Ruslan+Display",
|
265 |
+
"Schoolbell",
|
266 |
+
"Shadows+Into+Light",
|
267 |
+
"Shanti",
|
268 |
+
"Sigmar+One",
|
269 |
+
"Six+Caps",
|
270 |
+
"Slackey",
|
271 |
+
"Smythe",
|
272 |
+
"Sniglet:800",
|
273 |
+
"Special+Elite",
|
274 |
+
"Stardos+Stencil",
|
275 |
+
"Sue+Ellen+Francisco",
|
276 |
+
"Sunshiney",
|
277 |
+
"Swanky+and+Moo+Moo",
|
278 |
+
"Syncopate",
|
279 |
+
"Tangerine",
|
280 |
+
"Tenor+Sans",
|
281 |
+
"Terminal+Dosis+Light",
|
282 |
+
"The+Girl+Next+Door",
|
283 |
+
"Tinos",
|
284 |
+
"Ubuntu",
|
285 |
+
"Ultra",
|
286 |
+
"Unkempt",
|
287 |
+
"UnifrakturCook:bold",
|
288 |
+
"UnifrakturMaguntia",
|
289 |
+
"Varela",
|
290 |
+
"Varela Round",
|
291 |
+
"Vibur",
|
292 |
+
"Vollkorn",
|
293 |
+
"VT323",
|
294 |
+
"Waiting+for+the+Sunrise",
|
295 |
+
"Wallpoet",
|
296 |
+
"Walter+Turncoat",
|
297 |
+
"Wire+One",
|
298 |
+
"Yanone+Kaffeesatz",
|
299 |
+
"Yanone+Kaffeesatz:300",
|
300 |
+
"Yanone+Kaffeesatz:400",
|
301 |
+
"Yanone+Kaffeesatz:700",
|
302 |
+
"Yeseva+One",
|
303 |
+
"Zeyada"];
|
304 |
+
|
305 |
+
var settings = {
|
306 |
+
style: 'font-select',
|
307 |
+
placeholder: 'Select a font',
|
308 |
+
lookahead: 2,
|
309 |
+
api: 'http://fonts.googleapis.com/css?family='
|
310 |
+
};
|
311 |
+
|
312 |
+
var Fontselect = (function(){
|
313 |
+
|
314 |
+
function Fontselect(original, o){
|
315 |
+
this.$original = $(original);
|
316 |
+
this.options = o;
|
317 |
+
this.active = false;
|
318 |
+
this.setupHtml();
|
319 |
+
this.getVisibleFonts();
|
320 |
+
this.bindEvents();
|
321 |
+
|
322 |
+
var font = this.$original.val();
|
323 |
+
if (font) {
|
324 |
+
this.updateSelected();
|
325 |
+
this.addFontLink(font);
|
326 |
+
}
|
327 |
+
}
|
328 |
+
|
329 |
+
Fontselect.prototype.bindEvents = function(){
|
330 |
+
|
331 |
+
$('li', this.$results)
|
332 |
+
.click(__bind(this.selectFont, this))
|
333 |
+
.mouseenter(__bind(this.activateFont, this))
|
334 |
+
.mouseleave(__bind(this.deactivateFont, this));
|
335 |
+
|
336 |
+
$('span', this.$select).click(__bind(this.toggleDrop, this));
|
337 |
+
this.$arrow.click(__bind(this.toggleDrop, this));
|
338 |
+
};
|
339 |
+
|
340 |
+
Fontselect.prototype.toggleDrop = function(ev){
|
341 |
+
|
342 |
+
if(this.active){
|
343 |
+
this.$element.removeClass('font-select-active');
|
344 |
+
this.$drop.hide();
|
345 |
+
clearInterval(this.visibleInterval);
|
346 |
+
|
347 |
+
} else {
|
348 |
+
this.$element.addClass('font-select-active');
|
349 |
+
this.$drop.show();
|
350 |
+
this.moveToSelected();
|
351 |
+
this.visibleInterval = setInterval(__bind(this.getVisibleFonts, this), 500);
|
352 |
+
}
|
353 |
+
|
354 |
+
this.active = !this.active;
|
355 |
+
};
|
356 |
+
|
357 |
+
Fontselect.prototype.selectFont = function(){
|
358 |
+
|
359 |
+
var font = $('li.active', this.$results).data('value');
|
360 |
+
this.$original.val(font).change();
|
361 |
+
this.updateSelected();
|
362 |
+
this.toggleDrop();
|
363 |
+
};
|
364 |
+
|
365 |
+
Fontselect.prototype.moveToSelected = function(){
|
366 |
+
|
367 |
+
var $li, font = this.$original.val();
|
368 |
+
|
369 |
+
if (font){
|
370 |
+
$li = $("li[data-value='"+ font +"']", this.$results);
|
371 |
+
} else {
|
372 |
+
$li = $("li", this.$results).first();
|
373 |
+
}
|
374 |
+
|
375 |
+
this.$results.scrollTop($li.addClass('active').position().top);
|
376 |
+
};
|
377 |
+
|
378 |
+
Fontselect.prototype.activateFont = function(ev){
|
379 |
+
$('li.active', this.$results).removeClass('active');
|
380 |
+
$(ev.currentTarget).addClass('active');
|
381 |
+
};
|
382 |
+
|
383 |
+
Fontselect.prototype.deactivateFont = function(ev){
|
384 |
+
|
385 |
+
$(ev.currentTarget).removeClass('active');
|
386 |
+
};
|
387 |
+
|
388 |
+
Fontselect.prototype.updateSelected = function(){
|
389 |
+
|
390 |
+
var font = this.$original.val();
|
391 |
+
$('span', this.$element).text(this.toReadable(font)).css(this.toStyle(font));
|
392 |
+
};
|
393 |
+
|
394 |
+
Fontselect.prototype.setupHtml = function(){
|
395 |
+
|
396 |
+
this.$original.empty().hide();
|
397 |
+
this.$element = $('<div>', {'class': this.options.style});
|
398 |
+
this.$arrow = $('<div><b></b></div>');
|
399 |
+
this.$select = $('<a><span>'+ this.options.placeholder +'</span></a>');
|
400 |
+
this.$drop = $('<div>', {'class': 'fs-drop'});
|
401 |
+
this.$results = $('<ul>', {'class': 'fs-results'});
|
402 |
+
this.$original.after(this.$element.append(this.$select.append(this.$arrow)).append(this.$drop));
|
403 |
+
this.$drop.append(this.$results.append(this.fontsAsHtml())).hide();
|
404 |
+
};
|
405 |
+
|
406 |
+
Fontselect.prototype.fontsAsHtml = function(){
|
407 |
+
|
408 |
+
var l = fonts.length;
|
409 |
+
var r, s, h = '';
|
410 |
+
|
411 |
+
for(var i=0; i<l; i++){
|
412 |
+
r = this.toReadable(fonts[i]);
|
413 |
+
s = this.toStyle(fonts[i]);
|
414 |
+
h += '<li data-value="'+ fonts[i] +'" style="font-family: '+s['font-family'] +'; font-weight: '+s['font-weight'] +'">'+ r +'</li>';
|
415 |
+
}
|
416 |
+
|
417 |
+
return h;
|
418 |
+
};
|
419 |
+
|
420 |
+
Fontselect.prototype.toReadable = function(font){
|
421 |
+
return font.replace(/[\+|:]/g, ' ');
|
422 |
+
};
|
423 |
+
|
424 |
+
Fontselect.prototype.toStyle = function(font){
|
425 |
+
var t = font.split(':');
|
426 |
+
return {'font-family': this.toReadable(t[0]), 'font-weight': (t[1] || 400)};
|
427 |
+
};
|
428 |
+
|
429 |
+
Fontselect.prototype.getVisibleFonts = function(){
|
430 |
+
|
431 |
+
if(this.$results.is(':hidden')) return;
|
432 |
+
|
433 |
+
var fs = this;
|
434 |
+
var top = this.$results.scrollTop();
|
435 |
+
var bottom = top + this.$results.height();
|
436 |
+
|
437 |
+
if(this.options.lookahead){
|
438 |
+
var li = $('li', this.$results).first().height();
|
439 |
+
bottom += li*this.options.lookahead;
|
440 |
+
}
|
441 |
+
|
442 |
+
$('li', this.$results).each(function(){
|
443 |
+
|
444 |
+
var ft = $(this).position().top+top;
|
445 |
+
var fb = ft + $(this).height();
|
446 |
+
|
447 |
+
if ((fb >= top) && (ft <= bottom)){
|
448 |
+
var font = $(this).data('value');
|
449 |
+
fs.addFontLink(font);
|
450 |
+
}
|
451 |
+
|
452 |
+
});
|
453 |
+
};
|
454 |
+
|
455 |
+
Fontselect.prototype.addFontLink = function(font){
|
456 |
+
|
457 |
+
var link = this.options.api + font;
|
458 |
+
|
459 |
+
if ($("link[href*='" + font + "']").length === 0){
|
460 |
+
$('link:last').after('<link href="' + link + '" rel="stylesheet" type="text/css">');
|
461 |
+
}
|
462 |
+
};
|
463 |
+
|
464 |
+
return Fontselect;
|
465 |
+
})();
|
466 |
+
|
467 |
+
return this.each(function(options) {
|
468 |
+
// If options exist, lets merge them
|
469 |
+
if (options) $.extend( settings, options );
|
470 |
+
|
471 |
+
return new Fontselect(this, settings);
|
472 |
+
});
|
473 |
+
|
474 |
+
};
|
475 |
+
})(jQuery);
|
476 |
+
|
477 |
jQuery(function ($) {
|
478 |
|
479 |
$(document).ready(function() {
|
480 |
|
481 |
+
$('#reset').submit(function(e) {
|
482 |
+
|
483 |
+
e.preventDefault();
|
484 |
+
|
485 |
+
if ( confirm( wpmmpjs.confirm_reset ) ) {
|
486 |
+
|
487 |
+
var url = wpmmpjs.ajax_url + '?action=wpmmp_reset_settings&nonce='+ wpmmpjs.reset_nonce;
|
488 |
+
|
489 |
+
$.post( url, function(data) {
|
490 |
+
|
491 |
+
alert(wpmmpjs.successfull_reset);
|
492 |
+
|
493 |
+
window.location = window.location.href;
|
494 |
+
|
495 |
+
});
|
496 |
+
|
497 |
+
}
|
498 |
+
|
499 |
+
});
|
500 |
+
|
501 |
+
$('.nav-tab').click( function(e) {
|
502 |
+
|
503 |
+
e.preventDefault();
|
504 |
+
|
505 |
+
var tab = $(this).attr('href').replace( '?page=wpmmp-settings&tab=', '' );
|
506 |
+
|
507 |
+
$('.nav-tab').each( function( index ) {
|
508 |
+
|
509 |
+
$(this).removeClass('nav-tab-active');
|
510 |
+
|
511 |
+
});
|
512 |
|
513 |
+
$('.accordion').each( function( index ) {
|
514 |
|
515 |
+
$(this).removeClass('active');
|
516 |
|
517 |
+
$(this).addClass('inactive');
|
|
|
|
|
518 |
|
519 |
+
});
|
520 |
|
521 |
+
$(this).addClass('nav-tab-active');
|
|
|
|
|
522 |
|
523 |
+
|
524 |
+
$('.tab-'+tab).addClass('active');
|
525 |
|
526 |
+
});
|
527 |
|
528 |
});
|
529 |
|
js/index.php
DELETED
File without changes
|
readme.txt
CHANGED
@@ -1,48 +1,138 @@
|
|
1 |
-
=== Maintenance Mode ===
|
2 |
-
Contributors: Muneeb
|
3 |
-
Donate link: http://
|
4 |
-
Tags: coming soon, coming soon page,
|
5 |
Requires at least: 3.1
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
-
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
|
15 |
|
16 |
-
With progress bar and countdown timer([pro version feature](http://
|
17 |
|
18 |
|
19 |
<b>Features</b>
|
20 |
|
21 |
-
* Simple & easy to use interface - perfect for non tech users, developers & clients!
|
22 |
* Create beautiful maintenance mode page for your website
|
23 |
* Create beautiful coming soon mode page for your website
|
24 |
-
* Change heading
|
25 |
-
* Change sub-heading
|
26 |
* Set custom title for maintenance mode or coming coon page
|
27 |
-
* SEO Optimized
|
28 |
* Enable Disable maintenance or coming soon mode
|
29 |
-
* Add Progress bar to landing page
|
30 |
-
* Enable HTTP 503 header
|
31 |
-
* Control RSS Feed Access
|
32 |
* Admins can make changes easily without getting maintenance mode page.
|
33 |
-
* Other users then admins and visitors will get a beautiful responsive coming soon page.
|
34 |
-
* Visual editor for changing content
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
|
37 |
-
|
38 |
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
== Screenshots ==
|
42 |
|
43 |
== Screenshots ==
|
44 |
-
Please click on the link to visit <a href="http://
|
45 |
|
46 |
== Installation ==
|
47 |
|
48 |
-
Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== WP Maintenance Mode / Coming Soon Page Builder ===
|
2 |
+
Contributors: Muneeb, maintenancemodesupport
|
3 |
+
Donate link: http://web-settler.com/maintenance-mode/
|
4 |
+
Tags: maintenance,coming soon, coming soon page, maintenance mode, under construction
|
5 |
Requires at least: 3.1
|
6 |
+
Tested up to: 4.9
|
7 |
+
Stable tag: 3.2
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
+
Maintenance mode with progress bar and responsive layout. Adds a responsive maintenance mode page or coming soon page.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
Maintenance mode or a coming soon page with progress bar and responsive layout. Simply enable the maintenance mode from the plugin settings and in few seconds you can put your site in maintenance mode.
|
15 |
|
16 |
+
With progress bar and countdown timer([pro version feature](http://web-settler.com/maintenance-mode/))</strong> the visitors will be informed about the time left in launch.
|
17 |
|
18 |
|
19 |
<b>Features</b>
|
20 |
|
21 |
+
* Simple & easy to use interface - perfect for non tech users, developers & clients!
|
22 |
* Create beautiful maintenance mode page for your website
|
23 |
* Create beautiful coming soon mode page for your website
|
24 |
+
* Change heading of maintenance mode page
|
25 |
+
* Change sub-heading of maintenance mode page
|
26 |
* Set custom title for maintenance mode or coming coon page
|
27 |
+
* SEO Optimized maintenance mode page
|
28 |
* Enable Disable maintenance or coming soon mode
|
29 |
+
* Add Progress bar to maintenance mode landing page
|
30 |
+
* Enable HTTP 503 header for maintenance mode page
|
31 |
+
* Control RSS Feed Access of maintenance mode page
|
32 |
* Admins can make changes easily without getting maintenance mode page.
|
33 |
+
* Other users then admins and visitors will get a beautiful responsive coming soon page or maintenance mode page.
|
34 |
+
* Visual editor for changing content of maintenance mode page.
|
35 |
+
* Add Social Icons on maintenance mode and coming soon page.
|
36 |
+
* Add Logo on maintenance mode page.
|
37 |
+
* Change background color of maintenance mode page.
|
38 |
+
* Change color of headline.
|
39 |
+
* Set SEO Title of maintenance mode page.
|
40 |
+
* Set Favicon of maintenance page.
|
41 |
+
* Social Facebook icon for maintenance mode page
|
42 |
+
* Social Twitter icon for maintenance mode page
|
43 |
|
44 |
|
45 |
+
<strong>Pro Features</strong>
|
46 |
|
47 |
+
* Disable Maintenance Mode for some user roles.
|
48 |
+
* Test and preview maintenance mode page without enabling Maintenance Mode.
|
49 |
+
* Enable Countdown Timer
|
50 |
+
* Show Subscribe Form.
|
51 |
+
* 5 premium maintenance mode themes.
|
52 |
+
* Add Analytics Code for maintenance mode page.
|
53 |
+
* SEO Optimized maintenance mode page
|
54 |
+
* SEO Meta Description
|
55 |
+
* Text Color, Links Color, Links Hover Color, Background Image, Responsive Background
|
56 |
+
* Google Fonts for maintenance mode page.
|
57 |
+
* Add Custom CSS on maintenance mode page without editing any files.
|
58 |
+
* Connect maintenance mode with Mailchimp.
|
59 |
+
* Header script.
|
60 |
+
* Footer script.
|
61 |
+
* Sex maintenance mode themes.
|
62 |
+
* Google fonts integration for maintenance mode page.
|
63 |
+
|
64 |
+
|
65 |
+
Option to choose from 6 different responsive themes for maintenance mode page. Every theme supports <strong>countdown timer([pro version feature](http://web-settler.com/maintenance-mode/))</strong>, <strong>progress bar</strong>, custom html and you can add your own custom content using the visual editor on maintenance mode page with WordPress shortcodes support. You can also add social icons and subscribe forms on maintenance mode page.
|
66 |
+
|
67 |
+
<strong>For more advanced features, themes and to get guaranteed support be sure to check out our premium version of the maintenance mode plugin, [WordPress maintenance mode pro plugin](http://web-settler.com/maintenance-mode/)</strong>
|
68 |
|
69 |
== Screenshots ==
|
70 |
|
71 |
== Screenshots ==
|
72 |
+
Please click on the link to visit maintenance mode <a href="http://web-settler.com/maintenance-mode/">Screenshots page</a>.
|
73 |
|
74 |
== Installation ==
|
75 |
|
76 |
+
Extract the zip file maintenance mode plugin and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
|
77 |
+
|
78 |
+
== Frequently Asked Questions ==
|
79 |
+
|
80 |
+
= Q. What is a maintenance mode page ? =
|
81 |
+
|
82 |
+
A: A maintenance mode page allows you to work on your website and in meantime you can show your visitors a page where they can get information about when your website is going to get live or completed. Mainteannce mode plugin also supports subscribe form so you can notify your subscribers.
|
83 |
+
|
84 |
+
= Q. Can I login to my site with maintenance mode activated ? =
|
85 |
+
|
86 |
+
A: You can free visit your site as well make changes. Only regular visitors will get the maintenance mode page. Admins can access the site freely without getting any maintenance mode page.
|
87 |
+
|
88 |
+
= Q: Can I upload Logo Image for my maintenance mode page ? =
|
89 |
+
|
90 |
+
A : Yes, You can upload logo and background images for your maintenance mode page.
|
91 |
+
|
92 |
+
<strong>How to enable Maintenance Mode ?</strong>
|
93 |
+
<p>A: After activating the maintenance mode plugin, you'll see the "Maintenance Mode" menu in your WordPress admin menu, click on it. You'll get maintenance mode settings page SET the <strong>Enable Maintenance Mode</strong> option to YES</p>
|
94 |
+
|
95 |
+
<strong>I'm not getting Maintenance Mode page on frontend?</strong>
|
96 |
+
<p>Make sure you are logged-out of your site or visit your site in browser private mode. Maintenance Mode is disabled for admins.</p>
|
97 |
+
|
98 |
+
<strong>How to show Progress Bar on maintenance mode page?</strong>
|
99 |
+
<p>Visit the maintenance mode admin settings page. Set the option <strong>Enable Progress Bar</strong> to YES. To set the percentage use the set progress bar % option.</p>
|
100 |
+
|
101 |
+
<strong>How to change theme of maintenance mode page?</strong>
|
102 |
+
<p>Visit the maintenance mode admin settings page. Click on the themes tab.</p>
|
103 |
+
|
104 |
+
<strong>How to add logo on maintenance mode page?</strong>
|
105 |
+
<p>Visit the maintenance mode admin settings page. Click on the Page tab. Set the logo option value. Only valid image urls are supported or you can use the upload button.</p>
|
106 |
+
|
107 |
+
<strong>How to change heading on maintenance mode page?</strong>
|
108 |
+
<p>Same steps as for logo adding. Change the <strong>Headline</strong> value.</p>
|
109 |
+
|
110 |
+
<strong>How add content or Message on maintenance mode page?</strong>
|
111 |
+
<p>Same steps as for logo adding. Use visual editor to set content for your maintenance page.</p>
|
112 |
+
|
113 |
+
|
114 |
+
<strong>How to add social icons on maintenance mode page?</strong>
|
115 |
+
<p>Visit the maintenance mode admin settings page. Click on the <strong>Social Icons</strong> Tab.</p>
|
116 |
+
|
117 |
+
<strong>How to add subscribe form on maintenance mode page?</strong>
|
118 |
+
<p>The subscribe form can be used to collect email addresses of visitors and at the time of launch you can inform subscribers about site launch. But This feature is only available in the paid version of the maintenance mode plugin.</p>
|
119 |
+
|
120 |
+
|
121 |
+
|
122 |
+
== Other Notes ==
|
123 |
+
|
124 |
+
Some of the features are locked in the free version to unlock themes please purchase the paid version of the maintenance mode plugin.
|
125 |
+
|
126 |
+
<p>If plugin is not working properly on your site please contact us we'll try our best to resolve the issue.</p>
|
127 |
+
|
128 |
+
<p><strong>Maintenance Mode plugin does not redirect visitors from wp-login.php or wp-admin page to maintenance mode landing page. If you are getting a maintenance mode landing page when visiting login url make sure you are not using any plugin or theme which redirects login page to some custom page. If you are using any plugin which lets you create custom login page or redirect disable it otherwise maintenance mode plugin cannot differentiate between login page or maintenance mode landing page.</strong></p>
|
129 |
+
|
130 |
+
<p>If you are getting the maintenance mode page even uninstalling the maintenance mode plugin. Clear your browser cache, WordPress cache and Server side cache.</p>
|
131 |
+
<p>WordPress cache plugins cache the maintenance mode page and store it on your servers you need to disable the cache plugin or clear your WP cache to load the latest maintenance mode page.</p>
|
132 |
+
|
133 |
+
== Changelog ==
|
134 |
+
<strong>Maintenance Mode Version 3.3</strong>
|
135 |
+
Product Links changed.
|
136 |
+
|
137 |
+
<strong>Maintenance Mode Version 3.2</strong>
|
138 |
+
Removed the add_object_page deprecated function. Replaced it with add_menu_page. Maintenance Mode admin menu will now appear on the bottom of admin menu list.
|
views/admin-settings/add-email-form.php
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if ( get_option('mmp_on_off_subscribe') === '1' ): ?>
|
2 |
+
<form class="mm-form <?php if ( $center ) echo 'w3-center' ?> ">
|
3 |
+
<span>
|
4 |
+
<input type="email" name="email" class="mm-input" placeholder='<?php esc_attr_e( get_option('mmp_mc_pt') )?>' id=""> <input type="submit" value="<?php esc_attr_e( get_option('mmp_mc_sbt') ) ?>" class="mm-btn">
|
5 |
+
</span>
|
6 |
+
<input type="hidden" value="<?php echo wp_create_nonce('wpmmp_email_manager_nonce') ?>" name="wpmmp_email_manager_nonce" />
|
7 |
+
<div class="success-message"></div>
|
8 |
+
<div class="error-message"></div>
|
9 |
+
<br>
|
10 |
+
<br>
|
11 |
+
</form>
|
12 |
+
<?php endif; ?>
|
13 |
+
|
14 |
+
<script>
|
15 |
+
/*
|
16 |
+
Subscription form
|
17 |
+
*/
|
18 |
+
jQuery(function ($) {
|
19 |
+
$('.success-message').hide();
|
20 |
+
$('.error-message').hide();
|
21 |
+
|
22 |
+
ajax_url = "<?php echo admin_url( 'admin-ajax.php' ) ?>";
|
23 |
+
|
24 |
+
$('.mm-form').submit(function() {
|
25 |
+
var postdata = $('.mm-form').serialize();
|
26 |
+
$.ajax({
|
27 |
+
type: 'POST',
|
28 |
+
url: ajax_url + '?action=wpmmp_c_soon_store_email',
|
29 |
+
data: postdata,
|
30 |
+
dataType: 'json',
|
31 |
+
success: function(json) {
|
32 |
+
if(json.valid == 0) {
|
33 |
+
$('.success-message').hide();
|
34 |
+
$('.error-message').hide();
|
35 |
+
$('.error-message').html(json.message);
|
36 |
+
$('.error-message').fadeIn();
|
37 |
+
}
|
38 |
+
else {
|
39 |
+
$('.error-message').hide();
|
40 |
+
$('.success-message').hide();
|
41 |
+
$('.subscribe form').hide();
|
42 |
+
$('.success-message').html(json.message);
|
43 |
+
$('.success-message').fadeIn();
|
44 |
+
}
|
45 |
+
}
|
46 |
+
});
|
47 |
+
return false;
|
48 |
+
});
|
49 |
+
});
|
50 |
+
</script>
|
views/admin-settings/add-hooktohead.php
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if ( get_option('mmp_fft') ): ?>
|
2 |
+
<link rel='stylesheet' id='textfont-css' href='http://fonts.googleapis.com/css?family=<?php esc_attr_e(str_replace("+"," ",get_option("mmp_fft"))) ?>:400,300,700,900' type='text/css' media='all' />
|
3 |
+
<?php endif; ?>
|
4 |
+
|
5 |
+
<?php if ( get_option('mmp_ffht') ): ?>
|
6 |
+
<link rel='stylesheet' id='textfont-css' href='http://fonts.googleapis.com/css?family=<?php esc_attr_e(str_replace("+","+",get_option("mmp_ffht"))) ?>:400,700,900' type='text/css' media='all' />
|
7 |
+
<?php endif; ?>
|
8 |
+
|
9 |
+
|
10 |
+
<?php if ( get_option('mmp_analytics') !== '' ): ?>
|
11 |
+
<?php echo get_option('mmp_analytics') ?>
|
12 |
+
<?php endif; ?>
|
13 |
+
|
14 |
+
<?php if ( get_option('mmp_custom_header_script') !== '' ): ?>
|
15 |
+
<?php echo get_option('mmp_custom_header_script') ?>
|
16 |
+
<?php endif; ?>
|
views/admin-settings/add-social-icons.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<span>
|
2 |
+
|
3 |
+
<span>
|
4 |
+
|
5 |
+
<?php if ( get_option('mmp_show_fb') === '1' ): ?>
|
6 |
+
<a href="<?php echo esc_url(get_option('mmp_fb_page')) ?>"><img class="w3-image mm-img-social" src="<?php echo wpmmp_image_url('fb.png') ?>"></a>
|
7 |
+
<?php endif; ?>
|
8 |
+
|
9 |
+
<?php if ( get_option('mmp_show_tw') === '1' ): ?>
|
10 |
+
<a href="<?php echo esc_url(get_option('mmp_tw_page')) ?>"><img class="w3-image mm-img-social" src="<?php echo wpmmp_image_url('twitter.png') ?>"></a>
|
11 |
+
<?php endif; ?>
|
12 |
+
|
13 |
+
<?php if ( get_option('mmp_show_insta') === '1' ): ?>
|
14 |
+
<a href="<?php echo esc_url(get_option('mmp_insta_page')) ?>"><img class="w3-image mm-img-social" src="<?php echo wpmmp_image_url('instagram.png') ?>"></a>
|
15 |
+
<?php endif; ?>
|
16 |
+
|
17 |
+
<?php if ( get_option('mmp_show_pin') === '1' ): ?>
|
18 |
+
<a href="<?php echo esc_url(get_option('mmp_pin_page')) ?>"><img class="w3-image mm-img-social" src="<?php echo wpmmp_image_url('pinterest.png') ?>"></a>
|
19 |
+
<?php endif; ?>
|
20 |
+
|
21 |
+
<?php if ( get_option('mmp_show_lk') === '1' ): ?>
|
22 |
+
<a href="<?php echo esc_url(get_option('mmp_lkin_page')) ?>"><img class="w3-image mm-img-social" src="<?php echo wpmmp_image_url('linkedin.png') ?>"></a>
|
23 |
+
<?php endif; ?>
|
24 |
+
|
25 |
+
</span>
|
26 |
+
|
27 |
+
</span>
|
views/admin-settings/add-styles.php
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<style>
|
2 |
+
body{
|
3 |
+
background-color: <?php esc_attr_e(get_option('mmp_bgcolor')) ?>;
|
4 |
+
color: <?php esc_attr_e(get_option('mmp_text_color')) ?>;
|
5 |
+
}
|
6 |
+
|
7 |
+
body *{
|
8 |
+
color: <?php esc_attr_e(get_option('mmp_text_color')) ?>;
|
9 |
+
}
|
10 |
+
|
11 |
+
a{
|
12 |
+
color: <?php esc_attr_e(get_option('mmp_links_color')) ?>;
|
13 |
+
}
|
14 |
+
|
15 |
+
.success-message, .error-message {
|
16 |
+
padding-top: 10px;
|
17 |
+
}
|
18 |
+
|
19 |
+
|
20 |
+
<?php if ( get_option('mmp_background_image') !== '' ): ?>
|
21 |
+
body {
|
22 |
+
background: url( "<?php echo esc_url(get_option('mmp_background_image')) ?>" ) no-repeat center center fixed;
|
23 |
+
-webkit-background-size: cover;
|
24 |
+
-moz-background-size: cover;
|
25 |
+
-o-background-size: cover;
|
26 |
+
background-size: cover;
|
27 |
+
}
|
28 |
+
<?php endif; ?>
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
<?php if ( get_option('mmp_links_hover_color') !== '' ): ?>
|
33 |
+
a:hover{
|
34 |
+
color: <?php echo get_option('mmp_links_hover_color') ?> !important;
|
35 |
+
}
|
36 |
+
<?php endif; ?>
|
37 |
+
|
38 |
+
<?php if ( get_option('mmp_fft') !== '' ): ?>
|
39 |
+
body{
|
40 |
+
font-family: '<?php echo str_replace("+"," ",get_option("mmp_fft")) ?>','Lato','Georgia','Times New Roman', serif;
|
41 |
+
}
|
42 |
+
<?php endif; ?>
|
43 |
+
|
44 |
+
<?php if ( get_option('mmp_ffht') !== '' ): ?>
|
45 |
+
h1, h2, h3, h4, h5, h6 {
|
46 |
+
font-family: '<?php echo str_replace("+"," ",get_option("mmp_ffht")) ?>','Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
|
47 |
+
}
|
48 |
+
<?php endif; ?>
|
49 |
+
|
50 |
+
<?php if ( get_option('mmp_headingcolor') !== '' ): ?>
|
51 |
+
h1, h2, h3, h4, h5, h6 {
|
52 |
+
color: <?php echo get_option('mmp_headingcolor') ?> !important;
|
53 |
+
}
|
54 |
+
<?php endif; ?>
|
55 |
+
|
56 |
+
<?php echo get_option('mmp_custom_css') ?>
|
57 |
+
</style>
|
58 |
+
|
59 |
+
<?php if ( get_option('mmp_custom_footrt_script') !== '' ): ?>
|
60 |
+
<?php echo get_option('mmp_custom_footrt_script') ?>
|
61 |
+
<?php endif; ?>
|
62 |
+
|
63 |
+
|
64 |
+
|
views/admin-settings/general-meta-box.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
<label>
|
11 |
<?php _e( 'Status', 'wpmp' ); ?>
|
12 |
</label>
|
13 |
-
<p class="description"><?php _e( '
|
14 |
</td>
|
15 |
<td>
|
16 |
<p><label><input type="radio" value="disabled" name="settings[status]" <?php checked( $settings['status'], 'disabled' ) ?> /><span><?php _e( 'Disabled', 'wpmmp' ) ?></span><label></p>
|
@@ -31,29 +31,31 @@
|
|
31 |
<ul id="wpmmp-themes">
|
32 |
|
33 |
<li>
|
34 |
-
<img src="<?php echo wpmmp_image_url( '
|
35 |
-
<p><input <?php checked( '
|
|
|
|
|
|
|
36 |
</li>
|
37 |
-
|
38 |
<li>
|
39 |
-
<
|
40 |
-
<p><input
|
41 |
</li>
|
42 |
|
43 |
<li>
|
44 |
-
<
|
45 |
-
<p><input
|
|
|
|
|
|
|
|
|
46 |
</li>
|
47 |
-
|
48 |
<li>
|
49 |
-
<
|
50 |
-
<p><input
|
51 |
</li>
|
52 |
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
<?php foreach ( $themes as $theme ): ?>
|
58 |
<?php endforeach; ?>
|
59 |
</ul>
|
@@ -65,9 +67,9 @@
|
|
65 |
|
66 |
<td class="label">
|
67 |
<label>
|
68 |
-
<?php _e( '
|
69 |
</label>
|
70 |
-
<p class="description">
|
71 |
</td>
|
72 |
<td>
|
73 |
<input type="text" name="settings[title]" value="<?php echo $settings['title'] ?>" />
|
@@ -107,12 +109,12 @@
|
|
107 |
|
108 |
<td class="label">
|
109 |
<label>
|
110 |
-
<?php _e( '
|
111 |
</label>
|
112 |
<p class="description"></p>
|
113 |
</td>
|
114 |
<td>
|
115 |
-
<?php wp_editor( $settings['content'], 'gcontent-settings', array( 'textarea_name' => 'settings[content]', 'textarea_rows' => 7
|
116 |
</td>
|
117 |
|
118 |
</tr>
|
@@ -124,7 +126,7 @@
|
|
124 |
<?php _e( 'Countdown timer', 'wpmmp' ) ?>
|
125 |
</label>
|
126 |
<?php if ( ! defined( 'WPMMP_PRO_VERSION_ENABLED' ) ): ?>
|
127 |
-
<
|
128 |
<?php endif; ?>
|
129 |
</td>
|
130 |
|
10 |
<label>
|
11 |
<?php _e( 'Status', 'wpmp' ); ?>
|
12 |
</label>
|
13 |
+
<p class="description"><?php _e( 'Show page only to non-admin users or regular visitors', 'wpmmp' ) ?></p>
|
14 |
</td>
|
15 |
<td>
|
16 |
<p><label><input type="radio" value="disabled" name="settings[status]" <?php checked( $settings['status'], 'disabled' ) ?> /><span><?php _e( 'Disabled', 'wpmmp' ) ?></span><label></p>
|
31 |
<ul id="wpmmp-themes">
|
32 |
|
33 |
<li>
|
34 |
+
<img style="height: 208px" src="<?php echo wpmmp_image_url( 'alissa-1.png' ) ?>" />
|
35 |
+
<p><input <?php checked( 'alissa', $settings['theme'] ) ?> type="radio" name="settings[theme]" value="alissa" />
|
36 |
+
<?php if ( ! defined( 'WPMMP_PRO_VERSION_ENABLED' ) ): ?>
|
37 |
+
<a href=""><strong><?php _e( 'Get pro version to unlock template.', 'wpmmp') ?></strong></a>
|
38 |
+
<?php endif; ?></p>
|
39 |
</li>
|
40 |
+
|
41 |
<li>
|
42 |
+
<img src="<?php echo wpmmp_image_url( 'default-2.jpg' ) ?>" />
|
43 |
+
<p><input <?php checked( 'default-2', $settings['theme'] ) ?> type="radio" name="settings[theme]" value="default-2" /></p>
|
44 |
</li>
|
45 |
|
46 |
<li>
|
47 |
+
<img src="<?php echo wpmmp_image_url( 'default-1.jpg' ) ?>" />
|
48 |
+
<p><input <?php checked( 'default-1', $settings['theme'] ) ?> type="radio" name="settings[theme]" value="default-1" /></p>
|
49 |
+
</li>
|
50 |
+
<li>
|
51 |
+
<img src="<?php echo wpmmp_image_url( 'default-3.jpg' ) ?>" />
|
52 |
+
<p><input <?php checked( 'default-3', $settings['theme'] ) ?> type="radio" name="settings[theme]" value="default-3" /></p>
|
53 |
</li>
|
|
|
54 |
<li>
|
55 |
+
<img src="<?php echo wpmmp_image_url( 'default-4.jpg' ) ?>" />
|
56 |
+
<p><input <?php checked( 'default-4', $settings['theme'] ) ?> type="radio" name="settings[theme]" value="default-4" /></p>
|
57 |
</li>
|
58 |
|
|
|
|
|
|
|
|
|
59 |
<?php foreach ( $themes as $theme ): ?>
|
60 |
<?php endforeach; ?>
|
61 |
</ul>
|
67 |
|
68 |
<td class="label">
|
69 |
<label>
|
70 |
+
<?php _e( '', 'wpmmp' ); ?>
|
71 |
</label>
|
72 |
+
<p class="description">Page title</p>
|
73 |
</td>
|
74 |
<td>
|
75 |
<input type="text" name="settings[title]" value="<?php echo $settings['title'] ?>" />
|
109 |
|
110 |
<td class="label">
|
111 |
<label>
|
112 |
+
<?php _e( 'Content', 'wpmmp' ); ?>
|
113 |
</label>
|
114 |
<p class="description"></p>
|
115 |
</td>
|
116 |
<td>
|
117 |
+
<?php wp_editor( $settings['content'], 'gcontent-settings', array( 'textarea_name' => 'settings[content]', 'textarea_rows' => 7 ) ) ?>
|
118 |
</td>
|
119 |
|
120 |
</tr>
|
126 |
<?php _e( 'Countdown timer', 'wpmmp' ) ?>
|
127 |
</label>
|
128 |
<?php if ( ! defined( 'WPMMP_PRO_VERSION_ENABLED' ) ): ?>
|
129 |
+
<p class="description"><?php _e( 'This feature will work with the pro version.', 'wpmmp') ?></p>
|
130 |
<?php endif; ?>
|
131 |
</td>
|
132 |
|
views/admin-settings/premiumui.php
ADDED
@@ -0,0 +1,782 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<div class='wrap'>
|
3 |
+
|
4 |
+
<?php settings_errors(); ?>
|
5 |
+
|
6 |
+
<form method="post" action="options.php" >
|
7 |
+
<?php settings_fields('mmp-settings-group');?>
|
8 |
+
|
9 |
+
<h1><?php _e('Maintenance Mode Options Panel')?></h1>
|
10 |
+
|
11 |
+
<span>
|
12 |
+
To Get Premium Support 24/7 E-mail us: <a href="mailto:umar2bajwa@gmail.com">umar2bajwa@gmail.com</a>
|
13 |
+
<br />
|
14 |
+
<br>
|
15 |
+
If you want to do any feature request or you want us to style your maintenance/coming soon landing page E-mail us: <a href="mailto:umar2bajwa@gmail.com">umar2bajwa@gmail.com</a>
|
16 |
+
|
17 |
+
|
18 |
+
<br>
|
19 |
+
</span>
|
20 |
+
|
21 |
+
<br />
|
22 |
+
|
23 |
+
<?php $this->admin_tabs(); ?>
|
24 |
+
|
25 |
+
<div id="accordion-1" class="accordion active tab-general-settings">
|
26 |
+
<div id="hed3"><h3><?php _e('General Settings')?></h3>
|
27 |
+
<span class="heading_save_btn">
|
28 |
+
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
|
29 |
+
</span></div>
|
30 |
+
<br>
|
31 |
+
|
32 |
+
<table class="form-table">
|
33 |
+
<tr valign='top'>
|
34 |
+
<th scope='row'><?php _e('Preview Link ');?></th>
|
35 |
+
<td>
|
36 |
+
<a disabled class="button button-secondary" target="_blank">Click to Open</a>
|
37 |
+
<p class="description">Test Page without Enabling Maintenance Mode.</p>
|
38 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
39 |
+
|
40 |
+
</td>
|
41 |
+
</tr>
|
42 |
+
|
43 |
+
|
44 |
+
<tr valign='top'>
|
45 |
+
<th scope='row'><?php _e('Enable Maintenance Mode ');?></th>
|
46 |
+
<td>
|
47 |
+
<div class="onoffswitch">
|
48 |
+
<input type="checkbox" name="mmp_on_off" class="onoffswitch-checkbox" id="myonoffswitch" value='1'<?php checked(1, get_option('mmp_on_off')); ?> />
|
49 |
+
<label class="onoffswitch-label" for="myonoffswitch">
|
50 |
+
<span class="onoffswitch-inner"></span>
|
51 |
+
<span class="onoffswitch-switch"></span>
|
52 |
+
</label>
|
53 |
+
</div>
|
54 |
+
<small>Admin users will not get maintenance mode page. Please logout or use your browser private tab for testing. Clear your WordPress cache if any cache plugins are installed.</small>
|
55 |
+
</td>
|
56 |
+
</tr>
|
57 |
+
|
58 |
+
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
+
|
63 |
+
|
64 |
+
|
65 |
+
<tr valign='top'>
|
66 |
+
<th scope='row'><?php _e(' Enable Progress Bar ');?></th>
|
67 |
+
<td>
|
68 |
+
<div class="onoffswitch">
|
69 |
+
<input type="checkbox" name="mmp_on_off_progress" class="onoffswitch-checkbox" id="myonoffswitch8" value='1'<?php checked(1, get_option('mmp_on_off_progress')); ?> />
|
70 |
+
<label class="onoffswitch-label" for="myonoffswitch8">
|
71 |
+
<span class="onoffswitch-inner"></span>
|
72 |
+
<span class="onoffswitch-switch"></span>
|
73 |
+
</label>
|
74 |
+
</div>
|
75 |
+
</td>
|
76 |
+
</tr>
|
77 |
+
|
78 |
+
|
79 |
+
|
80 |
+
|
81 |
+
|
82 |
+
<tr>
|
83 |
+
<th scope='row'><?php _e('Set Progress bar %');?></th>
|
84 |
+
<td><label for='mmp_set_progress'>
|
85 |
+
<input type='range' id='mmp_set_progress' name='mmp_set_progress' min='0' max='100' value='<?php echo get_option('mmp_set_progress') ?>' oninput="this.form.amountInputH.value=this.value" /> <input style="width:60px;" type="number" name="amountInputH" min="0" max="100" value='<?php echo get_option('mmp_set_progress') ?>' size='2' oninput="this.form.mmp_set_progress.value=this.value" />
|
86 |
+
<p class='description'><?php _e('Set Progress bar percentage') ;?></p>
|
87 |
+
</label>
|
88 |
+
</td>
|
89 |
+
</tr>
|
90 |
+
|
91 |
+
<tr valign='top'>
|
92 |
+
<th scope='row'><?php _e(' Enable Countdown Timer ');?></th>
|
93 |
+
<td>
|
94 |
+
<div class="onoffswitch">
|
95 |
+
<input type="checkbox" name="mmp_on_off_countdown" class="onoffswitch-checkbox" id="myonoffswitch7" value='1'<?php checked(1, get_option('mmp_on_off_countdown')); ?> disabled/>
|
96 |
+
<label class="onoffswitch-label" for="myonoffswitch7">
|
97 |
+
<span class="onoffswitch-inner"></span>
|
98 |
+
<span class="onoffswitch-switch"></span>
|
99 |
+
</label>
|
100 |
+
</div>
|
101 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
102 |
+
</td>
|
103 |
+
</tr>
|
104 |
+
|
105 |
+
|
106 |
+
<tr>
|
107 |
+
<th scope='row'><?php _e('Set Date/Time For Counter');?></th>
|
108 |
+
<td><label for='mmp_set_dateTime'>
|
109 |
+
<input type='date' id='mmp_set_dateTime' name='mmp_set_dateTime' value='<?php echo get_option('mmp_set_dateTime' ); ?>' disabled/>
|
110 |
+
<p class='description'><?php _e('Set Date & time for countdown timer') ?></p>
|
111 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
112 |
+
</label>
|
113 |
+
</td>
|
114 |
+
</tr>
|
115 |
+
|
116 |
+
<tr valign='top'>
|
117 |
+
<th scope='row'><?php _e('Show Subscribe Form ');?></th>
|
118 |
+
<td>
|
119 |
+
<div class="onoffswitch">
|
120 |
+
<input type="checkbox" name="mmp_on_off_subscribe" class="onoffswitch-checkbox" id="myonoffswitch9" value='1'<?php checked(1, get_option('mmp_on_off_subscribe')); ?> disabled/>
|
121 |
+
<label class="onoffswitch-label" for="myonoffswitch9">
|
122 |
+
<span class="onoffswitch-inner"></span>
|
123 |
+
<span class="onoffswitch-switch"></span>
|
124 |
+
</label>
|
125 |
+
</div>
|
126 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
127 |
+
|
128 |
+
</td>
|
129 |
+
</tr>
|
130 |
+
|
131 |
+
</table>
|
132 |
+
|
133 |
+
</div>
|
134 |
+
|
135 |
+
<div id="accordion-2" class="accordion tab-theme-settings">
|
136 |
+
|
137 |
+
<table class="form-table">
|
138 |
+
|
139 |
+
<div id="hed3"><h3><?php _e('Themes')?></h3>
|
140 |
+
<span class="heading_save_btn">
|
141 |
+
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
|
142 |
+
</span>
|
143 |
+
</div>
|
144 |
+
<div>
|
145 |
+
<tr valign='top'>
|
146 |
+
<th scope='row'><?php _e('Select Theme');?></th>
|
147 |
+
<td>
|
148 |
+
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
<ul id="wpmmp-themes">
|
153 |
+
|
154 |
+
|
155 |
+
<li>
|
156 |
+
<p class="pp"style='padding-left:2px;'>Default Theme <input type="radio" name="mmp_themes" id="mmp_theme2" value="default" <?php checked('default',get_option('mmp_themes')); true ?> /> </p>
|
157 |
+
|
158 |
+
<label for="mmp_theme2"><img style='' src="<?php echo wpmmp_image_url('default-4.jpg')?>"> </label>
|
159 |
+
</li>
|
160 |
+
|
161 |
+
<li>
|
162 |
+
<p class="pp"style='padding-left:2px;'>Coming Soon <input type="radio" name="mmp_themes" id="mmp_theme3" value="cs-simple" <?php checked('cs-simple',get_option('mmp_themes')); true ?> disabled/></p>
|
163 |
+
|
164 |
+
|
165 |
+
|
166 |
+
<label for="mmp_theme3"><img style='' src="<?php echo wpmmp_image_url('simple-temp.png') ?> "> </label>
|
167 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
168 |
+
</li>
|
169 |
+
|
170 |
+
<li>
|
171 |
+
<p class="pp"style='padding:0px 0px 0px 2px ;'>Minimal <input type="radio" name="mmp_themes" id="pal1" value="minimal" <?php checked('minimal', get_option('mmp_themes')); true ?> disabled /></p>
|
172 |
+
|
173 |
+
|
174 |
+
|
175 |
+
<label for="mmp_theme1"><img style=' ' src="<?php echo wpmmp_image_url('minimal-temp.png')?> "></label>
|
176 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
177 |
+
</li>
|
178 |
+
|
179 |
+
|
180 |
+
<li>
|
181 |
+
<p class="pp"style='padding-left:2px;'>Alissa <input type="radio" name="mmp_themes" id="mmp_theme4" value="alissa" <?php checked('alissa',get_option('mmp_themes')); true ?> disabled/></p>
|
182 |
+
|
183 |
+
|
184 |
+
|
185 |
+
<label for="mmp_theme4"><img style='' src="<?php echo wpmmp_image_url('alissa-1.png') ?> "> </label>
|
186 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
187 |
+
</li>
|
188 |
+
|
189 |
+
|
190 |
+
<li>
|
191 |
+
<p class="pp" style='padding-left:2px;'>Maintenance Mode Guru <input type="radio" name="mmp_themes" id="mmp_theme5" value="mm-one" <?php checked('mm-one',get_option('mmp_themes')); true ?> disabled/></p>
|
192 |
+
|
193 |
+
|
194 |
+
|
195 |
+
<label for="mmp_theme5"><img style='' src="<?php echo wpmmp_image_url('maintenance-one.png') ?> "> </label>
|
196 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
197 |
+
</li>
|
198 |
+
|
199 |
+
<li>
|
200 |
+
<p class="pp" style='padding-left:2px;'>Pre-Launch <input type="radio" name="mmp_themes" id="mmp_theme6" value="pre-launch" <?php checked('pre-launch',get_option('mmp_themes')); true ?> disabled/></p>
|
201 |
+
|
202 |
+
|
203 |
+
|
204 |
+
<label for="mmp_theme6"><img style='' src="<?php echo wpmmp_image_url('pre-launch.png') ?> "> </label>
|
205 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
206 |
+
</li>
|
207 |
+
|
208 |
+
|
209 |
+
|
210 |
+
|
211 |
+
|
212 |
+
</ul>
|
213 |
+
|
214 |
+
|
215 |
+
</td>
|
216 |
+
</tr>
|
217 |
+
|
218 |
+
<div>
|
219 |
+
</div>
|
220 |
+
</table>
|
221 |
+
|
222 |
+
</div>
|
223 |
+
|
224 |
+
<div id="accordion-3" class="accordion tab-header-settings">
|
225 |
+
<table class="form-table">
|
226 |
+
|
227 |
+
<div id="hed3"><h3><?php _e('Header')?></h3><span class="heading_save_btn">
|
228 |
+
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
|
229 |
+
</span></div>
|
230 |
+
|
231 |
+
|
232 |
+
|
233 |
+
<tr valign="top">
|
234 |
+
<th scope="row"><?php _e('Favicon'); ?></th>
|
235 |
+
<td><label for="mmp_favicon">
|
236 |
+
<input id="image_location" type="text" name="mmp_favicon" value="<?php echo get_option('mmp_favicon') ?>" size="50" />
|
237 |
+
<input class="onetarek-upload-button button" type="button" value="Upload Image" />
|
238 |
+
<p class='description'><?php _e('Upload or Select Favicon Image, Image must be 16px X 16px.') ;?></p>
|
239 |
+
</lable>
|
240 |
+
</td>
|
241 |
+
</tr>
|
242 |
+
|
243 |
+
<tr valign="top">
|
244 |
+
<th scope="row"><?php _e('SEO Title'); ?></th>
|
245 |
+
<td><label for="mmp_title">
|
246 |
+
<input type="text" id="mmp_title" name="mmp_title" value="<?php echo get_option( 'mmp_title' ); ?>" size="50" />
|
247 |
+
<p class="description"><?php _e( 'Enter Title here eg: abcd. '); ?></p>
|
248 |
+
</label>
|
249 |
+
</td>
|
250 |
+
</tr>
|
251 |
+
|
252 |
+
|
253 |
+
|
254 |
+
<tr valign="top">
|
255 |
+
<th scope="row"><?php _e( 'SEO Meta Description') ?></th>
|
256 |
+
<td><label for="mmp_seo_meta">
|
257 |
+
<textarea disabled cols="50" rows="2" id="mmp_seo_meta" name="mmp_seo_meta" ><?php echo get_option( 'mmp_seo_meta' ); ?> </textarea>
|
258 |
+
<p class='description'> <?php _e('Add SEO Meta Description.' );?></p>
|
259 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
260 |
+
|
261 |
+
</label>
|
262 |
+
</td>
|
263 |
+
</tr>
|
264 |
+
|
265 |
+
|
266 |
+
|
267 |
+
<tr valign="top">
|
268 |
+
<th scope="row"><?php _e( 'Analytics Code') ?></th>
|
269 |
+
<td><label for="mmp_analytics">
|
270 |
+
<textarea disabled cols="50" rows="2" id="mmp_analytics" name="mmp_analytics" ><?php echo get_option( 'mmp_analytics' ); ?></textarea>
|
271 |
+
<p class='description'> <?php _e('Add Analytics code here' );?></p>
|
272 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
273 |
+
</label>
|
274 |
+
</td>
|
275 |
+
</tr>
|
276 |
+
|
277 |
+
|
278 |
+
</table>
|
279 |
+
</div>
|
280 |
+
|
281 |
+
|
282 |
+
<div id="accordion-4" class="accordion tab-email-settings">
|
283 |
+
<table class="form-table">
|
284 |
+
|
285 |
+
<div id="hed3"><h3><?php _e('Email Form ')?></h3><span class="heading_save_btn">
|
286 |
+
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
|
287 |
+
</span></div>
|
288 |
+
<tr>
|
289 |
+
<th scope='row'><?php _e('MailChimp API');?></th>
|
290 |
+
<td><label for='mmp_fb_page'>
|
291 |
+
<input size="50" type='text' id='mmp_mc_api' name='mmp_mc_api' value='<?php echo get_option('mmp_mc_api' ); ?>' disabled/>
|
292 |
+
<p class='description'><?php _e('Enter MailChimp API : <a href="http://kb.mailchimp.com/accounts/management/about-api-keys" target="_blank">here</a>') ;?></p>
|
293 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
294 |
+
</label>
|
295 |
+
</td>
|
296 |
+
</tr>
|
297 |
+
|
298 |
+
|
299 |
+
|
300 |
+
<tr>
|
301 |
+
<th scope='row'><?php _e('MailChimp List Id');?></th>
|
302 |
+
<td><label for='mmp_mc_listid'>
|
303 |
+
<input size="50" type='text' id='mmp_mc_listid' name='mmp_mc_listid' value='<?php echo get_option('mmp_mc_listid' ); ?>' disabled/>
|
304 |
+
<p class='description'><?php _e('Find your list id : <a href="http://kb.mailchimp.com/lists/managing-subscribers/find-your-list-id" target="_blank">here</a>') ;?></p>
|
305 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
306 |
+
</label>
|
307 |
+
</td>
|
308 |
+
</tr>
|
309 |
+
|
310 |
+
|
311 |
+
<tr valign='top'>
|
312 |
+
<th scope='row'><?php _e('Double Opt-In');?></th>
|
313 |
+
<td>
|
314 |
+
<div class="onoffswitch">
|
315 |
+
<input type="checkbox" name="mmp_mc_optin" class="onoffswitch-checkbox" id="myonoffswitch9" checked value='1'<?php checked(1, get_option('mmp_mc_optin'));?> disabled/>
|
316 |
+
<label class="onoffswitch-label" for="myonoffswitch9">
|
317 |
+
<span class="onoffswitch-inner"></span>
|
318 |
+
<span class="onoffswitch-switch"></span>
|
319 |
+
</label>
|
320 |
+
</div>
|
321 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
322 |
+
</td>
|
323 |
+
</tr>
|
324 |
+
|
325 |
+
|
326 |
+
<tr valign="top">
|
327 |
+
<th scope="row"><?php _e('Subscribe Button Text'); ?></th>
|
328 |
+
<td><label for="mmp_mc_sbt">
|
329 |
+
<input type="text" id="mmp_mc_sbt" name="mmp_mc_sbt" value="<?php echo get_option( 'mmp_mc_sbt' ); ?>" size="50" disabled />
|
330 |
+
<p class="description"><?php _e( 'Enter subscribe button text here eg: abcd. '); ?></p>
|
331 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
332 |
+
</label>
|
333 |
+
</td>
|
334 |
+
</tr>
|
335 |
+
|
336 |
+
|
337 |
+
<tr valign="top">
|
338 |
+
<th scope="row"><?php _e('Placeholder Text'); ?></th>
|
339 |
+
<td><label for="mmp_mc_pt">
|
340 |
+
<input type="text" id="mmp_mc_pt" name="mmp_mc_pt" value="<?php echo get_option( 'mmp_mc_pt' ); ?>" size="50" disabled/>
|
341 |
+
<p class="description"><?php _e( 'Enter text here for placeholder '); ?></p>
|
342 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
343 |
+
</label>
|
344 |
+
</td>
|
345 |
+
</tr>
|
346 |
+
|
347 |
+
</table>
|
348 |
+
</div>
|
349 |
+
|
350 |
+
<div id="accordion-5" class="accordion tab-page-settings">
|
351 |
+
<table class="form-table">
|
352 |
+
|
353 |
+
<div id="hed3"><h3><?php _e('Page Settings')?></h3><span class="heading_save_btn">
|
354 |
+
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
|
355 |
+
</span></div>
|
356 |
+
|
357 |
+
|
358 |
+
<tr valign="top">
|
359 |
+
<th scope="row"><?php _e('Logo'); ?></th>
|
360 |
+
<td><label for="mmp_logo">
|
361 |
+
<input id="image_location" type="text" name="mmp_logo" value="<?php echo get_option('mmp_logo') ?>" size="50" />
|
362 |
+
<input class="onetarek-upload-button button" type="button" value="Upload Image" />
|
363 |
+
<p class='description'><?php _e('Upload or Select Logo Image 184px X 50px') ;?></p>
|
364 |
+
</lable>
|
365 |
+
</td>
|
366 |
+
</tr>
|
367 |
+
|
368 |
+
|
369 |
+
|
370 |
+
<tr valign="top">
|
371 |
+
<th scope="row"><?php _e('Headline'); ?></th>
|
372 |
+
<td><label for="mmp_headline">
|
373 |
+
<input type="text" id="mmp_headline" name="mmp_headline" value="<?php echo get_option( 'mmp_headline' ); ?>" size="50" />
|
374 |
+
<p class="description"><?php _e( 'Enter Headline here '); ?></p>
|
375 |
+
</label>
|
376 |
+
</td>
|
377 |
+
</tr>
|
378 |
+
|
379 |
+
<tr valign="top">
|
380 |
+
<th scope="row"><?php _e('Tagline'); ?></th>
|
381 |
+
<td><label for="mmp_subheading">
|
382 |
+
<input type="text" id="mmp_subheading" name="mmp_subheading" value="<?php echo get_option( 'mmp_subheading' ); ?>" size="50" />
|
383 |
+
<p class="description"><?php _e( 'Enter Tagline here '); ?></p>
|
384 |
+
</label>
|
385 |
+
</td>
|
386 |
+
</tr>
|
387 |
+
|
388 |
+
|
389 |
+
<tr valign="top">
|
390 |
+
<th scope="row"><?php _e('Message'); ?></th>
|
391 |
+
<td><label for="mmp_message">
|
392 |
+
</label>
|
393 |
+
<?php
|
394 |
+
|
395 |
+
$settings = array( 'media_buttons' => false, 'mmp_message', 'teeny' => true, 'quicktags' => false );
|
396 |
+
|
397 |
+
$content = get_option('mmp_message');
|
398 |
+
|
399 |
+
wp_editor( $content, 'mmp_message', $settings );
|
400 |
+
|
401 |
+
?>
|
402 |
+
</td>
|
403 |
+
</tr>
|
404 |
+
|
405 |
+
</table>
|
406 |
+
</div>
|
407 |
+
|
408 |
+
<div id="accordion-6" class="accordion tab-design-settings">
|
409 |
+
<table class="form-table">
|
410 |
+
|
411 |
+
<div id="hed3"><h3><?php _e('Design')?></h3><span class="heading_save_btn">
|
412 |
+
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
|
413 |
+
</span></div>
|
414 |
+
|
415 |
+
|
416 |
+
<tr>
|
417 |
+
<th scope='row'><?php _e('Background Color');?></th>
|
418 |
+
<td><label for='mmp_bgcolor'>
|
419 |
+
<input type='text' class='color_picker' id='mmp_bgcolor' name='mmp_bgcolor' value='<?php echo get_option('mmp_bgcolor' ); ; ?>'/>
|
420 |
+
<p class='description'><?php _e('Change background color') ;?></p>
|
421 |
+
</label>
|
422 |
+
</td>
|
423 |
+
</tr>
|
424 |
+
|
425 |
+
|
426 |
+
<tr>
|
427 |
+
<th scope='row'><?php _e('Headline Color');?></th>
|
428 |
+
<td><label for='mmp_headline_color'>
|
429 |
+
<input type='text' class='color_picker' id='mmp_headline_color' name='mmp_headingcolor' value='<?php echo get_option('mmp_headingcolor' ); ; ?>'/>
|
430 |
+
<p class='description'><?php _e('Change Headline color') ;?></p>
|
431 |
+
</label>
|
432 |
+
</td>
|
433 |
+
</tr>
|
434 |
+
|
435 |
+
|
436 |
+
<tr>
|
437 |
+
<th scope='row'><?php _e('Text Color');?></th>
|
438 |
+
<td><label for='mmp_text_color'>
|
439 |
+
<input type='color' id='mmp_text_color' name='mmp_text_color' value='<?php echo get_option('mmp_text_color' ); ; ?>' disabled/>
|
440 |
+
<p class='description'><?php _e('Change Text color') ;?></p>
|
441 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
442 |
+
</label>
|
443 |
+
</td>
|
444 |
+
</tr>
|
445 |
+
|
446 |
+
|
447 |
+
<tr>
|
448 |
+
<th scope='row'><?php _e('Links Color');?></th>
|
449 |
+
<td><label for='mmp_links_color'>
|
450 |
+
<input type='color' id='mmp_links_color' name='mmp_links_color' value='<?php echo get_option('mmp_links_color' ); ; ?>' disabled/>
|
451 |
+
<p class='description'><?php _e('Change Links color') ;?></p>
|
452 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
453 |
+
</label>
|
454 |
+
</td>
|
455 |
+
</tr>
|
456 |
+
|
457 |
+
|
458 |
+
<tr>
|
459 |
+
<th scope='row'><?php _e('Links Hover Color');?></th>
|
460 |
+
<td><label for='mmp_links_hover_color'>
|
461 |
+
<input type='color' id='mmp_links_hover_color' name='mmp_links_hover_color' value='<?php echo get_option('mmp_links_hover_color' ); ; ?>' disabled/>
|
462 |
+
<p class='description'><?php _e('Change Links hover color') ;?></p>
|
463 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
464 |
+
</label>
|
465 |
+
</td>
|
466 |
+
</tr>
|
467 |
+
|
468 |
+
|
469 |
+
<tr valign="top">
|
470 |
+
<th scope="row"><?php _e('Background Image'); ?></th>
|
471 |
+
<td><label for="mmp_background_image">
|
472 |
+
<input id="image_location" type="text" name="mmp_background_image" value="<?php echo get_option('mmp_background_image') ?>" size="50" disabled />
|
473 |
+
<input class="onetarek-upload-button button" type="button" value="Upload Image" disabled />
|
474 |
+
<p class='description'><?php _e('Upload or Select Site Background Image') ;?></p>
|
475 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
476 |
+
</lable>
|
477 |
+
</td>
|
478 |
+
</tr>
|
479 |
+
|
480 |
+
|
481 |
+
<tr valign='top'>
|
482 |
+
<th scope='row'><?php _e('Responsive Background ');?></th>
|
483 |
+
<td>
|
484 |
+
<div class="onoffswitch">
|
485 |
+
<input type="checkbox" name="mmp_res_bg" class="onoffswitch-checkbox" id="myonoffswitch1" value='1'<?php checked(1, get_option('mmp_res_bg')); ?> disabled />
|
486 |
+
<label class="onoffswitch-label" for="myonoffswitch1">
|
487 |
+
<span class="onoffswitch-inner"></span>
|
488 |
+
<span class="onoffswitch-switch"></span>
|
489 |
+
</label>
|
490 |
+
</div>
|
491 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
492 |
+
|
493 |
+
</td>
|
494 |
+
</tr>
|
495 |
+
|
496 |
+
|
497 |
+
|
498 |
+
<th scope='row'><?php _e('Font Family For Text');?></th>
|
499 |
+
<td><label for='mmp_fft'>
|
500 |
+
<input id="font" type="text" name="" value="<?php echo get_option( 'mmp_fft' ); ?>" disabled />
|
501 |
+
|
502 |
+
</label>
|
503 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
504 |
+
</td>
|
505 |
+
</tr>
|
506 |
+
|
507 |
+
|
508 |
+
|
509 |
+
<tr>
|
510 |
+
<th scope='row'><?php _e('Font Family For Header Text');?></th>
|
511 |
+
<td><label for='mmp_ffht'>
|
512 |
+
<input id="font1" name="" type="text" value="<?php echo get_option( 'mmp_ffht' ); ?>" disabled/>
|
513 |
+
|
514 |
+
</label>
|
515 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
516 |
+
</td>
|
517 |
+
</tr>
|
518 |
+
|
519 |
+
<tr valign="top">
|
520 |
+
<th scope="row"><?php _e( 'Custom CSS') ?></th>
|
521 |
+
<td><label for="mmp_custom_css">
|
522 |
+
<textarea cols="80" rows="7" id="mmp_custom_css" name="mmp_custom_css" disabled ><?php echo get_option( 'mmp_custom_css' ); ?></textarea>
|
523 |
+
<p class='description'> <?php _e('Add styling inside this text area.' );?></p>
|
524 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
525 |
+
</label>
|
526 |
+
</td>
|
527 |
+
</tr>
|
528 |
+
|
529 |
+
</table>
|
530 |
+
</div>
|
531 |
+
|
532 |
+
|
533 |
+
<div id="accordion-7" class="accordion tab-script-settings">
|
534 |
+
<table class="form-table">
|
535 |
+
|
536 |
+
<div id="hed3"><h3><?php _e('Scripts')?></h3><span class="heading_save_btn">
|
537 |
+
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
|
538 |
+
</span></div>
|
539 |
+
|
540 |
+
|
541 |
+
<tr valign="top">
|
542 |
+
<th scope="row"><?php _e( 'Header Script') ?></th>
|
543 |
+
<td><label for="mmp_custom_header_script">
|
544 |
+
<textarea disabled cols="50" rows="2" id="mmp_custom_header_script" name="mmp_custom_header_script" ><?php echo get_option( 'mmp_custom_header_script' ); ?></textarea>
|
545 |
+
<p class='description'> <?php _e('Add header script in this text area.' );?></p>
|
546 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
547 |
+
</label>
|
548 |
+
</td>
|
549 |
+
</tr>
|
550 |
+
|
551 |
+
|
552 |
+
<tr valign="top">
|
553 |
+
<th scope="row"><?php _e( 'Footer Script') ?></th>
|
554 |
+
<td><label for="mmp_custom_footrt_script">
|
555 |
+
<textarea disabled cols="50" rows="2" id="mmp_custom_footrt_script" name="mmp_custom_footrt_script" ><?php echo get_option( 'mmp_custom_footrt_script' ); ?></textarea>
|
556 |
+
<p class='description'> <?php _e('Add footer script in this text area.' );?></p>
|
557 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
558 |
+
</label>
|
559 |
+
</td>
|
560 |
+
</tr>
|
561 |
+
|
562 |
+
|
563 |
+
</table>
|
564 |
+
</div>
|
565 |
+
|
566 |
+
<div id="accordion-8" class="accordion tab-social-settings">
|
567 |
+
<table class="form-table">
|
568 |
+
|
569 |
+
<div id="hed3"><h3><?php _e('Social')?></h3><span class="heading_save_btn">
|
570 |
+
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
|
571 |
+
</span></div>
|
572 |
+
<tr>
|
573 |
+
<th scope='row'><?php _e('Facebook Page Link');?></th>
|
574 |
+
<td><label for='mmp_fb_page'>
|
575 |
+
<input type='text' id='mmp_fb_page' name='mmp_fb_page' value='<?php echo get_option('mmp_fb_page' ); ?>'/>
|
576 |
+
<p class='description'><?php _e('Enter Facebook Link') ;?></p>
|
577 |
+
</label>
|
578 |
+
</td>
|
579 |
+
</tr>
|
580 |
+
|
581 |
+
<tr>
|
582 |
+
<th scope='row'><?php _e('Twitter Page Link');?></th>
|
583 |
+
<td><label for='mmp_tw_page'>
|
584 |
+
<input type='text' id='mmp_tw_page' name='mmp_tw_page' value='<?php echo get_option('mmp_tw_page' ); ?>'/>
|
585 |
+
<p class='description'><?php _e('Enter Twitter Link') ;?></p>
|
586 |
+
</label>
|
587 |
+
</td>
|
588 |
+
</tr>
|
589 |
+
|
590 |
+
<tr>
|
591 |
+
<th scope='row'><?php _e('LinkedIn Page Link');?></th>
|
592 |
+
<td><label for='mmp_lkin_page'>
|
593 |
+
<input type='text' id='mmp_lkin_page' name='mmp_lkin_page' value='<?php echo get_option('mmp_lkin_page' ); ?>'/>
|
594 |
+
<p class='description'><?php _e('Enter LinkedIn Link') ;?></p>
|
595 |
+
</label>
|
596 |
+
</td>
|
597 |
+
</tr>
|
598 |
+
|
599 |
+
|
600 |
+
|
601 |
+
<tr>
|
602 |
+
<th scope='row'><?php _e('Pinterest Page Link');?></th>
|
603 |
+
<td><label for='mmp_pin_page'>
|
604 |
+
<input type='text' id='mmp_pin_page' name='mmp_pin_page' value='<?php echo get_option('mmp_pin_page' ); ?>'/>
|
605 |
+
<p class='description'><?php _e('Enter Pinterest Link') ;?></p>
|
606 |
+
</label>
|
607 |
+
</td>
|
608 |
+
</tr>
|
609 |
+
|
610 |
+
|
611 |
+
<tr>
|
612 |
+
<th scope='row'><?php _e('Instagram Page Link');?></th>
|
613 |
+
<td><label for='mmp_insta_page'>
|
614 |
+
<input type='text' id='mmp_insta_page' name='mmp_insta_page' value='<?php echo get_option('mmp_insta_page' ); ?>'/>
|
615 |
+
<p class='description'><?php _e('Enter Instagram Link') ;?></p>
|
616 |
+
</label>
|
617 |
+
</td>
|
618 |
+
</tr>
|
619 |
+
|
620 |
+
|
621 |
+
|
622 |
+
<tr valign='top'>
|
623 |
+
<th scope='row'><?php _e('Show Facebook Icon ');?></th>
|
624 |
+
<td>
|
625 |
+
<div class="onoffswitch">
|
626 |
+
<input type="checkbox" name="mmp_show_fb" class="onoffswitch-checkbox" id="myonoffswitch2" value='1'<?php checked(1, get_option('mmp_show_fb')); ?> />
|
627 |
+
<label class="onoffswitch-label" for="myonoffswitch2">
|
628 |
+
<span class="onoffswitch-inner"></span>
|
629 |
+
<span class="onoffswitch-switch"></span>
|
630 |
+
</label>
|
631 |
+
</div>
|
632 |
+
</td>
|
633 |
+
|
634 |
+
</tr><tr valign='top'>
|
635 |
+
<th scope='row'><?php _e('Show Twitter Icon ');?></th>
|
636 |
+
<td>
|
637 |
+
<div class="onoffswitch">
|
638 |
+
<input type="checkbox" name="mmp_show_tw" class="onoffswitch-checkbox" id="myonoffswitch3" value='1'<?php checked(1, get_option('mmp_show_tw')); ?> />
|
639 |
+
<label class="onoffswitch-label" for="myonoffswitch3">
|
640 |
+
<span class="onoffswitch-inner"></span>
|
641 |
+
<span class="onoffswitch-switch"></span>
|
642 |
+
</label>
|
643 |
+
</div>
|
644 |
+
</td>
|
645 |
+
|
646 |
+
</tr><tr valign='top'>
|
647 |
+
<th scope='row'><?php _e('Show LinkedIn Icon ');?></th>
|
648 |
+
<td>
|
649 |
+
<div class="onoffswitch">
|
650 |
+
<input type="checkbox" name="mmp_show_lk" class="onoffswitch-checkbox" id="myonoffswitch4" value='1'<?php checked(1, get_option('mmp_show_lk')); ?> />
|
651 |
+
<label class="onoffswitch-label" for="myonoffswitch4">
|
652 |
+
<span class="onoffswitch-inner"></span>
|
653 |
+
<span class="onoffswitch-switch"></span>
|
654 |
+
</label>
|
655 |
+
</div>
|
656 |
+
</td>
|
657 |
+
</tr>
|
658 |
+
|
659 |
+
|
660 |
+
</tr><tr valign='top'>
|
661 |
+
<th scope='row'><?php _e('Show Pinterest Icon ');?></th>
|
662 |
+
<td>
|
663 |
+
<div class="onoffswitch">
|
664 |
+
<input type="checkbox" name="mmp_show_pin" class="onoffswitch-checkbox" id="myonoffswitch5" value='1'<?php checked(1, get_option('mmp_show_pin')); ?> />
|
665 |
+
<label class="onoffswitch-label" for="myonoffswitch5">
|
666 |
+
<span class="onoffswitch-inner"></span>
|
667 |
+
<span class="onoffswitch-switch"></span>
|
668 |
+
</label>
|
669 |
+
</div>
|
670 |
+
</td>
|
671 |
+
</tr>
|
672 |
+
|
673 |
+
|
674 |
+
|
675 |
+
</tr><tr valign='top'>
|
676 |
+
<th scope='row'><?php _e('Show Instagram Icon ');?></th>
|
677 |
+
<td>
|
678 |
+
<div class="onoffswitch">
|
679 |
+
<input type="checkbox" name="mmp_show_insta" class="onoffswitch-checkbox" id="myonoffswitch6" value='1'<?php checked(1, get_option('mmp_show_insta')); ?> />
|
680 |
+
<label class="onoffswitch-label" for="myonoffswitch6">
|
681 |
+
<span class="onoffswitch-inner"></span>
|
682 |
+
<span class="onoffswitch-switch"></span>
|
683 |
+
</label>
|
684 |
+
</div>
|
685 |
+
</td>
|
686 |
+
</tr>
|
687 |
+
|
688 |
+
</table>
|
689 |
+
</div>
|
690 |
+
|
691 |
+
<div id="accordion-9" class="accordion tab-advanced-settings">
|
692 |
+
<table class="form-table">
|
693 |
+
|
694 |
+
<div id="hed3"><h3><?php _e('Advanced Settings')?></h3></div>
|
695 |
+
|
696 |
+
|
697 |
+
</tr><tr valign='top'>
|
698 |
+
<th scope='row'><?php _e('HTTP 503 Header ');?></th>
|
699 |
+
<td>
|
700 |
+
<div class="onoffswitch">
|
701 |
+
<input disabled type="checkbox" class="onoffswitch-checkbox" id="myonoffswitch10" value='1'<?php checked(1, get_option('mmp_http_503')); ?> />
|
702 |
+
<label class="onoffswitch-label" for="myonoffswitch10">
|
703 |
+
<span class="onoffswitch-inner"></span>
|
704 |
+
<span class="onoffswitch-switch"></span>
|
705 |
+
</label>
|
706 |
+
</div>
|
707 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
708 |
+
</td>
|
709 |
+
</tr>
|
710 |
+
|
711 |
+
|
712 |
+
</tr><tr valign='top'>
|
713 |
+
<th scope='row'><?php _e('Disable Feed Access');?></th>
|
714 |
+
<td>
|
715 |
+
<div class="onoffswitch">
|
716 |
+
<input disabled type="checkbox" class="onoffswitch-checkbox" id="myonoffswitch11" value='1'<?php checked(1, get_option('mmp_feed_access')); ?> />
|
717 |
+
<label class="onoffswitch-label" for="myonoffswitch11">
|
718 |
+
<span class="onoffswitch-inner"></span>
|
719 |
+
<span class="onoffswitch-switch"></span>
|
720 |
+
</label>
|
721 |
+
</div>
|
722 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
723 |
+
</td>
|
724 |
+
</tr>
|
725 |
+
|
726 |
+
<tr valign='top'>
|
727 |
+
|
728 |
+
<th scope='row'>Disable Maintenance Mode for User Roles</th>
|
729 |
+
|
730 |
+
<td>
|
731 |
+
|
732 |
+
<?php
|
733 |
+
|
734 |
+
$activeroles = get_option('mmp_userroles' );
|
735 |
+
|
736 |
+
if ( ! is_array( $activeroles ) )
|
737 |
+
$activeroles = array('administrator');
|
738 |
+
|
739 |
+
|
740 |
+
global $wp_roles;
|
741 |
+
|
742 |
+
if ( ! isset( $wp_roles ) )
|
743 |
+
$wp_roles = new WP_Roles();
|
744 |
+
$roles = $wp_roles->get_names();
|
745 |
+
|
746 |
+
foreach ($roles as $role_value => $role_name) {
|
747 |
+
|
748 |
+
if ( in_array( $role_value, $activeroles) )
|
749 |
+
echo '<p><input disabled checked type="checkbox" value="' . $role_value . '">'.$role_name.'</p>';
|
750 |
+
else
|
751 |
+
echo '<p><input disabled type="checkbox" value="' . $role_value . '">'.$role_name.'</p>';
|
752 |
+
|
753 |
+
|
754 |
+
}
|
755 |
+
|
756 |
+
?>
|
757 |
+
<p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
|
758 |
+
</td>
|
759 |
+
|
760 |
+
</tr>
|
761 |
+
|
762 |
+
|
763 |
+
|
764 |
+
</table>
|
765 |
+
</div>
|
766 |
+
|
767 |
+
|
768 |
+
<p class="submit">
|
769 |
+
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
|
770 |
+
</p>
|
771 |
+
|
772 |
+
|
773 |
+
</form>
|
774 |
+
|
775 |
+
<form id="reset" method="post" action="">
|
776 |
+
<p class="submit">
|
777 |
+
<input name="reset" class="button button-secondary" type="submit" value="Reset to default settings" >
|
778 |
+
<input type="hidden" value="reset" />
|
779 |
+
</p>
|
780 |
+
</form>
|
781 |
+
|
782 |
+
</div> <!-- wraper-->
|
views/admin-settings/settings-saved.php
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
<div class="updated settings-error">
|
2 |
-
<p><strong><?php _e( 'Settings saved successfully.', 'wpmp' ) ?></strong></p>
|
3 |
-
</div>
|
|
|
|
|
|
views/admin-settings/settings.php
DELETED
@@ -1,18 +0,0 @@
|
|
1 |
-
<form action="" method="POST">
|
2 |
-
<div id="poststuff">
|
3 |
-
<?php do_meta_boxes( 'wpmmp_settings_page', 'normal', $settings ); ?>
|
4 |
-
</div>
|
5 |
-
<div id="wpmmp-buttons">
|
6 |
-
<table>
|
7 |
-
<tr>
|
8 |
-
<td>
|
9 |
-
<?php submit_button( __( 'Save Settings', 'wpmp' ), 'primary large', 'submit', false ) ?>
|
10 |
-
</td>
|
11 |
-
<td>
|
12 |
-
<?php submit_button( __( 'Reset Settings', 'wpmp' ), 'secondary large', 'reset', false ) ?>
|
13 |
-
</td>
|
14 |
-
</tr>
|
15 |
-
</table>
|
16 |
-
</div>
|
17 |
-
<input type="hidden" name="nonce" value="<?php echo $nonce ?>" />
|
18 |
-
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/admin-settings/tab-advanced-settings.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<form action="" method="POST">
|
2 |
-
<div id="poststuff">
|
3 |
-
|
4 |
-
<table class="wpmmp_input widefat" id="wpmmp_options">
|
5 |
-
|
6 |
-
<tbody>
|
7 |
-
|
8 |
-
<tr id="503-status">
|
9 |
-
|
10 |
-
<td class="label">
|
11 |
-
<label>
|
12 |
-
<?php _e( 'HTTP 503 header', 'wpmp' ); ?>
|
13 |
-
</label>
|
14 |
-
<p class="description"></p>
|
15 |
-
</td>
|
16 |
-
<td>
|
17 |
-
<p><label><input type="radio" value="disabled" name="settings[http_503_header]" <?php checked( $settings['http_503_header'], 'disabled' ) ?> /><span><?php _e( 'Disabled', 'wpmmp' ) ?></span><label></p>
|
18 |
-
<p><label><input type="radio" value="enabled" name="settings[http_503_header]" <?php checked( $settings['http_503_header'], 'enabled' ) ?> /><span><?php _e( 'Enabled', 'wpmmp' ) ?></span><label></p>
|
19 |
-
</td>
|
20 |
-
|
21 |
-
</tr>
|
22 |
-
|
23 |
-
<tr id="disable-feed">
|
24 |
-
|
25 |
-
<td class="label">
|
26 |
-
<label>
|
27 |
-
<?php _e( 'Feed access', 'wpmp' ); ?>
|
28 |
-
</label>
|
29 |
-
<p class="description"></p>
|
30 |
-
</td>
|
31 |
-
<td>
|
32 |
-
<p><label><input type="radio" value="disabled" name="settings[feed]" <?php checked( $settings['feed'], 'disabled' ) ?> /><span><?php _e( 'Disabled', 'wpmmp' ) ?></span><label></p>
|
33 |
-
<p><label><input type="radio" value="enabled" name="settings[feed]" <?php checked( $settings['feed'], 'enabled' ) ?> /><span><?php _e( 'Enabled', 'wpmmp' ) ?></span><label></p>
|
34 |
-
</td>
|
35 |
-
|
36 |
-
</tr>
|
37 |
-
|
38 |
-
<?php do_action( 'wpmmp_advanced_settings' ) ?>
|
39 |
-
|
40 |
-
</tbody>
|
41 |
-
</table>
|
42 |
-
|
43 |
-
</div>
|
44 |
-
<div id="wpmmp-buttons" style="margin-top: 25px;">
|
45 |
-
<?php submit_button( __( 'Save Settings', 'wpmp' ), 'primary large', 'submit', false ) ?>
|
46 |
-
</div>
|
47 |
-
<input type="hidden" name="nonce" value="<?php echo $nonce ?>" />
|
48 |
-
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/themes/default/assets/css/style.css
CHANGED
@@ -3,19 +3,22 @@
|
|
3 |
|
4 |
body {
|
5 |
background: #394864;
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
13 |
}
|
14 |
|
15 |
h1, h2, h3, h4, h5, h6 {
|
16 |
font-family: 'Lato', sans-serif;
|
17 |
font-weight: 300;
|
18 |
-
color: #444;
|
19 |
}
|
20 |
|
21 |
h1 {
|
@@ -33,7 +36,7 @@ h4 {
|
|
33 |
|
34 |
p {
|
35 |
margin-bottom: 20px;
|
36 |
-
font-size:
|
37 |
}
|
38 |
|
39 |
|
@@ -140,40 +143,23 @@ form.signup input.form-control:focus {
|
|
140 |
}
|
141 |
|
142 |
|
143 |
-
.default-1 {
|
144 |
-
background: url(../img/main-bg.jpg) no-repeat center top;
|
145 |
-
}
|
146 |
-
|
147 |
-
.default-2 {
|
148 |
-
background: url(../img/1main-bg.jpg) no-repeat center top;
|
149 |
-
}
|
150 |
-
|
151 |
-
.default-3 {
|
152 |
-
background: url(../img/2main-bg.jpg) no-repeat center top;
|
153 |
-
}
|
154 |
|
155 |
-
.default-4 {
|
156 |
-
background: none;
|
157 |
-
}
|
158 |
|
159 |
#wrapper h1 {
|
160 |
margin-top: 60px;
|
161 |
margin-bottom: 40px;
|
162 |
-
color: #fff;
|
163 |
font-size: 45px;
|
164 |
font-weight: 900;
|
165 |
letter-spacing: -1px;
|
166 |
}
|
167 |
|
168 |
h2.subtitle {
|
169 |
-
color: #fff;
|
170 |
font-size: 24px;
|
171 |
}
|
172 |
|
173 |
/* countdown */
|
174 |
#countdown {
|
175 |
font-size: 48px;
|
176 |
-
color: #fff;
|
177 |
line-height: 1.1em;
|
178 |
margin: 40px 0 60px;
|
179 |
}
|
@@ -187,7 +173,7 @@ p.copyright {
|
|
187 |
}
|
188 |
|
189 |
#content {
|
190 |
-
|
191 |
}
|
192 |
|
193 |
.progress {
|
@@ -213,4 +199,14 @@ p.copyright {
|
|
213 |
-moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
214 |
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
215 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
}
|
3 |
|
4 |
body {
|
5 |
background: #394864;
|
6 |
+
font-family: 'Lato', sans-serif;
|
7 |
+
font-weight: 300;
|
8 |
+
font-size: 16px;
|
9 |
+
color: #fff;
|
10 |
+
line-height: 1.6em;
|
11 |
+
-webkit-font-smoothing: antialiased;
|
12 |
+
-webkit-overflow-scrolling: touch;
|
13 |
+
}
|
14 |
+
|
15 |
+
a {
|
16 |
+
cursor: pointer;
|
17 |
}
|
18 |
|
19 |
h1, h2, h3, h4, h5, h6 {
|
20 |
font-family: 'Lato', sans-serif;
|
21 |
font-weight: 300;
|
|
|
22 |
}
|
23 |
|
24 |
h1 {
|
36 |
|
37 |
p {
|
38 |
margin-bottom: 20px;
|
39 |
+
font-size: 18px;
|
40 |
}
|
41 |
|
42 |
|
143 |
}
|
144 |
|
145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
|
|
|
|
|
|
|
147 |
|
148 |
#wrapper h1 {
|
149 |
margin-top: 60px;
|
150 |
margin-bottom: 40px;
|
|
|
151 |
font-size: 45px;
|
152 |
font-weight: 900;
|
153 |
letter-spacing: -1px;
|
154 |
}
|
155 |
|
156 |
h2.subtitle {
|
|
|
157 |
font-size: 24px;
|
158 |
}
|
159 |
|
160 |
/* countdown */
|
161 |
#countdown {
|
162 |
font-size: 48px;
|
|
|
163 |
line-height: 1.1em;
|
164 |
margin: 40px 0 60px;
|
165 |
}
|
173 |
}
|
174 |
|
175 |
#content {
|
176 |
+
font-size: 16px;
|
177 |
}
|
178 |
|
179 |
.progress {
|
199 |
-moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
200 |
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
201 |
|
202 |
+
}
|
203 |
+
|
204 |
+
.mm-img-social{
|
205 |
+
width: 3%;
|
206 |
+
margin: 10px;
|
207 |
+
}
|
208 |
+
|
209 |
+
.mm-span-social{
|
210 |
+
margin-top: 6%;
|
211 |
+
text-align: center;
|
212 |
}
|
views/themes/default/assets/img/1main-bg.jpg
DELETED
Binary file
|
views/themes/default/assets/img/2main-bg.jpg
DELETED
Binary file
|
views/themes/default/assets/img/main-bg.jpg
DELETED
Binary file
|
views/themes/default/assets/js/jquery.countdown.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/*!
|
2 |
-
* The Final Countdown for jQuery v2.0
|
3 |
-
* Copyright (c)
|
4 |
*
|
5 |
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6 |
* this software and associated documentation files (the "Software"), to deal in
|
@@ -19,4 +19,4 @@
|
|
19 |
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20 |
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21 |
*/
|
22 |
-
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";function b(a){if(a instanceof Date)return a;if(String(a).match(g))return String(a).match(/^[0-9]*$/)&&(a=Number(a)),new Date(a);throw new Error("Couldn't cast `"+a+"` to a date object.")}function c(a){return function(b){var
|
1 |
/*!
|
2 |
+
* The Final Countdown for jQuery v2.1.0 (http://hilios.github.io/jQuery.countdown/)
|
3 |
+
* Copyright (c) 2015 Edson Hilios
|
4 |
*
|
5 |
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6 |
* this software and associated documentation files (the "Software"), to deal in
|
19 |
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20 |
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21 |
*/
|
22 |
+
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";function b(a){if(a instanceof Date)return a;if(String(a).match(g))return String(a).match(/^[0-9]*$/)&&(a=Number(a)),String(a).match(/\-/)&&(a=String(a).replace(/\-/g,"/")),new Date(a);throw new Error("Couldn't cast `"+a+"` to a date object.")}function c(a){var b=a.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(b)}function d(a){return function(b){var d=b.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(d)for(var f=0,g=d.length;g>f;++f){var h=d[f].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),j=c(h[0]),k=h[1]||"",l=h[3]||"",m=null;h=h[2],i.hasOwnProperty(h)&&(m=i[h],m=Number(a[m])),null!==m&&("!"===k&&(m=e(l,m)),""===k&&10>m&&(m="0"+m.toString()),b=b.replace(j,m.toString()))}return b=b.replace(/%%/,"%")}}function e(a,b){var c="s",d="";return a&&(a=a.replace(/(:|;|\s)/gi,"").split(/\,/),1===a.length?c=a[0]:(d=a[0],c=a[1])),1===Math.abs(b)?d:c}var f=[],g=[],h={precision:100,elapse:!1};g.push(/^[0-9]*$/.source),g.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g=new RegExp(g.join("|"));var i={Y:"years",m:"months",n:"daysToMonth",w:"weeks",d:"daysToWeek",D:"totalDays",H:"hours",M:"minutes",S:"seconds"},j=function(b,c,d){this.el=b,this.$el=a(b),this.interval=null,this.offset={},this.options=a.extend({},h),this.instanceNumber=f.length,f.push(this),this.$el.data("countdown-instance",this.instanceNumber),d&&("function"==typeof d?(this.$el.on("update.countdown",d),this.$el.on("stoped.countdown",d),this.$el.on("finish.countdown",d)):this.options=a.extend({},h,d)),this.setFinalDate(c),this.start()};a.extend(j.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var a=this;this.update(),this.interval=setInterval(function(){a.update.call(a)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),f[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(a){this.finalDate=b(a)},update:function(){if(0===this.$el.closest("html").length)return void this.remove();var b,c=void 0!==a._data(this.el,"events"),d=new Date;b=this.finalDate.getTime()-d.getTime(),b=Math.ceil(b/1e3),b=!this.options.elapse&&0>b?0:Math.abs(b),this.totalSecsLeft!==b&&c&&(this.totalSecsLeft=b,this.elapsed=d>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),totalDays:Math.floor(this.totalSecsLeft/60/60/24),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-d.getFullYear())},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))},dispatchEvent:function(b){var c=a.Event(b+".countdown");c.finalDate=this.finalDate,c.elapsed=this.elapsed,c.offset=a.extend({},this.offset),c.strftime=d(this.offset),this.$el.trigger(c)}}),a.fn.countdown=function(){var b=Array.prototype.slice.call(arguments,0);return this.each(function(){var c=a(this).data("countdown-instance");if(void 0!==c){var d=f[c],e=b[0];j.prototype.hasOwnProperty(e)?d[e].apply(d,b.slice(1)):null===String(e).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(d.setFinalDate.call(d,e),d.start()):a.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,e))}else new j(this,b[0],b[1])})}});
|
views/themes/default/template.php
CHANGED
@@ -4,7 +4,16 @@
|
|
4 |
<meta charset="utf-8">
|
5 |
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
<!-- Bootstrap -->
|
10 |
<link href="<?php echo wpmmp_css_url( 'public/bootstrap/css/bootstrap.min.css' ) ?>" rel="stylesheet">
|
@@ -30,32 +39,38 @@
|
|
30 |
<?php do_action( 'wpmmp_head' ) ?>
|
31 |
</head>
|
32 |
<body>
|
33 |
-
<div id="wrapper" class="
|
34 |
<div class="container">
|
35 |
<div class="row">
|
36 |
<div class="col-sm-12 col-md-12 col-lg-12">
|
37 |
-
<
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
40 |
<?php if ( defined( 'WPMMP_PRO_VERSION_ENABLED' ) ): ?>
|
41 |
<div id="countdown"></div>
|
42 |
<?php endif; ?>
|
43 |
<?php endif; ?>
|
44 |
|
45 |
-
<?php if (
|
46 |
<div class="progress">
|
47 |
-
<div class="bar" data-percentage="<?php
|
48 |
</div>
|
49 |
</div>
|
50 |
<?php endif; ?>
|
51 |
</div>
|
52 |
|
53 |
</div>
|
|
|
54 |
<div class="row">
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
</div>
|
60 |
</div>
|
61 |
|
@@ -63,7 +78,7 @@
|
|
63 |
jQuery(function ($) {
|
64 |
$('#countdown').countdown( '<?php echo $cd_date ?>', function(event) {
|
65 |
var $this = $(this).html(event.strftime(''
|
66 |
-
+ '<span>%
|
67 |
+ '<span>%H</span> hr '
|
68 |
+ '<span>%M</span> min '
|
69 |
+ '<span>%S</span> sec'));
|
@@ -71,27 +86,27 @@
|
|
71 |
|
72 |
setTimeout(function(){
|
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 |
|
4 |
<meta charset="utf-8">
|
5 |
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7 |
+
|
8 |
+
<?php if ( get_option('mmp_seo_meta') !== '' ): ?>
|
9 |
+
<meta name="description" content="<?php esc_attr_e(get_option('mmp_seo_meta')) ?>" />
|
10 |
+
<?php endif; ?>
|
11 |
+
|
12 |
+
<?php if ( get_option('mmp_favicon') !== '' ): ?>
|
13 |
+
<link rel="icon" type="image/png" href="<?php echo esc_url(get_option('mmp_favicon')) ?>">
|
14 |
+
<?php endif; ?>
|
15 |
+
|
16 |
+
<title><?php esc_html_e(get_option('mmp_title')) ?></title>
|
17 |
|
18 |
<!-- Bootstrap -->
|
19 |
<link href="<?php echo wpmmp_css_url( 'public/bootstrap/css/bootstrap.min.css' ) ?>" rel="stylesheet">
|
39 |
<?php do_action( 'wpmmp_head' ) ?>
|
40 |
</head>
|
41 |
<body>
|
42 |
+
<div id="wrapper" class="theme-<?php echo $this->id ?>">
|
43 |
<div class="container">
|
44 |
<div class="row">
|
45 |
<div class="col-sm-12 col-md-12 col-lg-12">
|
46 |
+
<div id="logo">
|
47 |
+
<img src="<?php echo esc_url(get_option('mmp_logo')) ?>" />
|
48 |
+
</div>
|
49 |
+
<h1><?php esc_html_e(get_option('mmp_headline')) ?></h1>
|
50 |
+
<div id="content">
|
51 |
+
<?php echo $this->_content( get_option('mmp_message') ) ?>
|
52 |
+
</div>
|
53 |
+
<?php if ( get_option('mmp_on_off_countdown') === '1' ): ?>
|
54 |
<?php if ( defined( 'WPMMP_PRO_VERSION_ENABLED' ) ): ?>
|
55 |
<div id="countdown"></div>
|
56 |
<?php endif; ?>
|
57 |
<?php endif; ?>
|
58 |
|
59 |
+
<?php if ( get_option('mmp_on_off_progress') === '1' ): ?>
|
60 |
<div class="progress">
|
61 |
+
<div class="bar" data-percentage="<?php esc_attr_e(get_option('mmp_set_progress')) ?>">
|
62 |
</div>
|
63 |
</div>
|
64 |
<?php endif; ?>
|
65 |
</div>
|
66 |
|
67 |
</div>
|
68 |
+
|
69 |
<div class="row">
|
70 |
+
<?php $this->add_email_form(false) ?>
|
71 |
+
<?php $this->add_social_icons() ?>
|
72 |
+
</div>
|
73 |
+
|
74 |
</div>
|
75 |
</div>
|
76 |
|
78 |
jQuery(function ($) {
|
79 |
$('#countdown').countdown( '<?php echo $cd_date ?>', function(event) {
|
80 |
var $this = $(this).html(event.strftime(''
|
81 |
+
+ '<span>%D</span> days '
|
82 |
+ '<span>%H</span> hr '
|
83 |
+ '<span>%M</span> min '
|
84 |
+ '<span>%S</span> sec'));
|
86 |
|
87 |
setTimeout(function(){
|
88 |
|
89 |
+
$('.progress .bar').each(function() {
|
90 |
+
var me = $(this);
|
91 |
+
var perc = me.attr("data-percentage");
|
92 |
|
93 |
+
var current_perc = 0;
|
94 |
|
95 |
+
var progress = setInterval(function() {
|
96 |
+
if (current_perc>=perc) {
|
97 |
+
clearInterval(progress);
|
98 |
+
} else {
|
99 |
+
current_perc +=1;
|
100 |
+
me.css('width', (current_perc)+'%');
|
101 |
+
}
|
102 |
|
103 |
+
me.text((current_perc)+'%');
|
104 |
|
105 |
+
}, 50);
|
106 |
|
107 |
+
});
|
108 |
|
109 |
+
},300);
|
110 |
|
111 |
});
|
112 |
|
wp-wpmmp.php
CHANGED
@@ -1,17 +1,21 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
Plugin Name: Maintenance Mode
|
4 |
-
Plugin URI: http://
|
5 |
-
Description:
|
6 |
-
Author:
|
7 |
-
Author URI: http://
|
8 |
-
Version:
|
9 |
-
Copyright:
|
10 |
**/
|
11 |
|
12 |
require plugin_dir_path( __FILE__ ) . 'config.php';
|
13 |
|
14 |
require WPMMP_PLUGIN_INCLUDE_DIRECTORY . 'functions.php';
|
15 |
|
|
|
|
|
|
|
|
|
16 |
load_wpmmp();
|
17 |
|
1 |
<?php
|
2 |
/**
|
3 |
+
Plugin Name: Maintenance Mode & Coming Soon
|
4 |
+
Plugin URI: http://web-settler.com/maintenance-mode/?ref=wpOrg
|
5 |
+
Description: Add a responsive maintenance mode or coming soon page to your site that lets visitors know your site is down or under construction.
|
6 |
+
Author: Maintenance Mode Builder
|
7 |
+
Author URI: http://web-settler.com/maintenance-mode/?ref=authoruri
|
8 |
+
Version: 3.8.1
|
9 |
+
Copyright: 2017 Muneeb ur Rehman http://muneeb.me/contact/?ref=readmewp
|
10 |
**/
|
11 |
|
12 |
require plugin_dir_path( __FILE__ ) . 'config.php';
|
13 |
|
14 |
require WPMMP_PLUGIN_INCLUDE_DIRECTORY . 'functions.php';
|
15 |
|
16 |
+
define( 'WPMMP_PRO_VERSION_ENABLED', true );
|
17 |
+
|
18 |
+
add_option( 'wpmmp_install_version', WPMMP_PLUGIN_VERSION );
|
19 |
+
|
20 |
load_wpmmp();
|
21 |
|