Insert Headers And Footers - Version 2.0.0

Version Description

  • 2022-05-19
Download this release

Release Info

Developer WPBrigade
Plugin Icon wp plugin Insert Headers And Footers
Version 2.0.0
Comparing to
See all releases

Code changes from version 1.3.2 to 2.0.0

asset/css/admin-style.css ADDED
@@ -0,0 +1,528 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Header Code */
2
+ .settings_page_wp-headers-and-footers #wpbody-content {
3
+ position: relative;
4
+ padding-top: 90px;
5
+ box-sizing: border-box;
6
+ }
7
+ .settings_page_wp-headers-and-footers #wpcontent {
8
+ padding-left: 0;
9
+ }
10
+ .settings_page_wp-headers-and-footers .wp_hnf-header-wrapper {
11
+ position: absolute;
12
+ top: 0;
13
+ background-color: #2271b1;
14
+ padding: 16px 110px;
15
+ width: 100%;
16
+ box-sizing: border-box;
17
+ }
18
+ .group:not(.is_show){
19
+ position: fixed;
20
+ visibility: hidden;
21
+ opacity: 0;
22
+ pointer-events: none;
23
+ }
24
+ .settings_page_wp-headers-and-footers .wp_hnf-header-container {
25
+ width: 100%;
26
+ display: flex;
27
+ justify-content: space-between;
28
+ align-items: center;
29
+ }
30
+ .settings_page_wp-headers-and-footers .wp_hnf-header-logo img {
31
+ vertical-align: middle;
32
+ }
33
+ .settings_page_wp-headers-and-footers .wp_hnf-header-cta a {
34
+ color: #fff;
35
+ background-color: #ffffff;
36
+ color: #2271b1;
37
+ padding: 11px 30px;
38
+ font-weight: 600;
39
+ font-size: 18px;
40
+ line-height: 32px;
41
+ text-decoration: none;
42
+ box-shadow: 0px 10px 30px rgba(15, 90, 152, 0.25);
43
+ border-radius: 3px;
44
+ text-transform: capitalize;
45
+ transition: 0.3s all;
46
+ border: 1px solid #ffffff;
47
+ }
48
+ .settings_page_wp-headers-and-footers .wp_hnf-header-cta a:hover {
49
+ background-color: transparent;
50
+ color: #ffffff;
51
+ }
52
+
53
+ /* Main Container Styling */
54
+ .settings_page_wp-headers-and-footers .wp-headers-and-footers::after {
55
+ content: "";
56
+ clear: both;
57
+ display: table;
58
+ }
59
+ .settings_page_wp-headers-and-footers {
60
+ background: #f8fdff;
61
+ }
62
+ .settings_page_wp-headers-and-footers .wp-headers-and-footers {
63
+ padding: 50px 110px;
64
+ }
65
+ .settings_page_wp-headers-and-footers .header-and-footer-setting {
66
+ padding-right: 50px;
67
+ padding-top: 48px;
68
+ width: calc(100% - 300px);
69
+ }
70
+ .settings_page_wp-headers-and-footers
71
+ .header-and-footer-setting
72
+ #wpheaderandfooter_basics
73
+ .form-table
74
+ tr {
75
+ display: flex;
76
+ width: 100%;
77
+ flex-direction: column;
78
+ min-width: 100%;
79
+ }
80
+ .settings_page_wp-headers-and-footers
81
+ .header-and-footer-setting
82
+ #wpheaderandfooter_basics
83
+ .form-table
84
+ th,
85
+ .settings_page_wp-headers-and-footers
86
+ .header-and-footer-setting
87
+ #wpheaderandfooter_basics
88
+ .form-table
89
+ td {
90
+ width: 100%;
91
+ padding: 0;
92
+ }
93
+ .settings_page_wp-headers-and-footers
94
+ .header-and-footer-setting
95
+ .form-table
96
+ th
97
+ label {
98
+ font-size: 16px;
99
+ line-height: 19.2px;
100
+ font-weight: 600;
101
+ }
102
+ .settings_page_wp-headers-and-footers
103
+ .header-and-footer-setting
104
+ #wpheaderandfooter_basics
105
+ .form-table
106
+ td {
107
+ margin-bottom: 50px;
108
+ }
109
+ .settings_page_wp-headers-and-footers
110
+ .header-and-footer-setting
111
+ #wpheaderandfooter_basics
112
+ .form-table
113
+ td
114
+ .CodeMirror {
115
+ margin-bottom: 12px;
116
+ }
117
+ .settings_page_wp-headers-and-footers
118
+ .header-and-footer-setting
119
+ #wpheaderandfooter_basics
120
+ .form-table
121
+ td
122
+ .description {
123
+ margin-top: 0;
124
+ font-size: 16px;
125
+ line-height: 19.2px;
126
+ font-weight: 400;
127
+ }
128
+ .settings_page_wp-headers-and-footers
129
+ .header-and-footer-setting
130
+ #wpheaderandfooter_basics
131
+ .form-table
132
+ th {
133
+ padding: 0 0 12px 0;
134
+ }
135
+ .settings_page_wp-headers-and-footers .wrap {
136
+ margin: 0;
137
+ }
138
+ .settings_page_wp-headers-and-footers .wrap h2.nav-tab-wrapper {
139
+ padding-top: 0;
140
+ border-bottom: 1px solid #e0ecf5;
141
+ }
142
+ .settings_page_wp-headers-and-footers .nav-tab-wrapper a {
143
+ margin-left: 0;
144
+ color: #203141;
145
+ background-color: #daeeff;
146
+ border-radius: 3px;
147
+ padding: 10px 35px;
148
+ font-weight: 600;
149
+ font-size: 18px;
150
+ line-height: 32px;
151
+ border: 0;
152
+ transition: 0.3s all;
153
+ }
154
+ .settings_page_wp-headers-and-footers .nav-tab-wrapper a:hover {
155
+ background-color: #b1d9ff;
156
+ }
157
+ .settings_page_wp-headers-and-footers .nav-tab-wrapper .nav-tab-active {
158
+ background-color: #2271b1;
159
+ color: #ffffff;
160
+ }
161
+ .settings_page_wp-headers-and-footers .nav-tab-wrapper .nav-tab-active:hover {
162
+ background-color: #228de4;
163
+ }
164
+ .settings_page_wp-headers-and-footers .nav-tab-wrapper a:not(:first-child) {
165
+ margin-left: 20px;
166
+ }
167
+ .settings_page_wp-headers-and-footers p.submit {
168
+ margin: 0;
169
+ padding: 0;
170
+ }
171
+ .settings_page_wp-headers-and-footers p.submit input[type="submit"] {
172
+ max-width: 230px;
173
+ width: 100%;
174
+ background-color: #2271b1;
175
+ font-weight: 600;
176
+ font-size: 18px;
177
+ line-height: 32px;
178
+ text-align: center;
179
+ color: #ffffff;
180
+ transition: 0.3s all;
181
+ padding: 10px 30px;
182
+ box-shadow: 0px 10px 30px rgba(15, 90, 152, 0.25);
183
+ border-radius: 3px;
184
+ border: 0;
185
+ outline: 0;
186
+ }
187
+ .settings_page_wp-headers-and-footers p.submit input[type="submit"]:hover {
188
+ background-color: #228de4;
189
+ }
190
+
191
+ /* Side Bar Styling */
192
+ .settings_page_wp-headers-and-footers .wpbr-sidebar {
193
+ margin-top: 86px;
194
+ width: 250px;
195
+ padding-top: 0;
196
+ }
197
+ .settings_page_wp-headers-and-footers .wpbr-sidebar .sidebar {
198
+ padding: 0;
199
+ box-shadow: 0px 8px 20px rgba(72, 163, 214, 0.1);
200
+ border-radius: 3px;
201
+ border: 0;
202
+ margin-bottom: 56px;
203
+ min-width: 250px;
204
+ }
205
+ .settings_page_wp-headers-and-footers .wpbr-sidebar .sidebar .plugins_lists a {
206
+ padding: 0;
207
+ position: relative;
208
+ padding: 0 0 0 44px;
209
+ width: auto;
210
+ }
211
+ .settings_page_wp-headers-and-footers
212
+ .wpbr-sidebar
213
+ .sidebar
214
+ .plugins_lists
215
+ a::after {
216
+ content: "";
217
+ height: 32px;
218
+ width: 32px;
219
+ background-repeat: no-repeat;
220
+ position: absolute;
221
+ left: 0;
222
+ top: 50%;
223
+ transform: translateY(-50%);
224
+ background-image: url("../img/icons.png");
225
+ }
226
+ .settings_page_wp-headers-and-footers .wpbr-sidebar .sidebar .plugins_lists li {
227
+ padding-left: 0;
228
+ margin-bottom: 24px;
229
+ }
230
+ .settings_page_wp-headers-and-footers .wpbr-sidebar .sidebar ul {
231
+ margin: 0;
232
+ padding: 26px 16px 18px 16px;
233
+ }
234
+ .settings_page_wp-headers-and-footers .wpbr-sidebar .sidebar ul li {
235
+ margin-bottom: 21px;
236
+ }
237
+ .settings_page_wp-headers-and-footers .wpbr-sidebar .sidebar ul li:last-child {
238
+ margin-bottom: 0;
239
+ }
240
+ .settings_page_wp-headers-and-footers .wpbr-sidebar .sidebar ul li a {
241
+ background-color: transparent;
242
+ padding: 0 0 0 44px;
243
+ font-style: normal;
244
+ font-weight: 400;
245
+ font-size: 16px;
246
+ line-height: 19px;
247
+ color: #2271b1;
248
+ display: inline-block;
249
+ border: none;
250
+ outline: none;
251
+ }
252
+ .settings_page_wp-headers-and-footers
253
+ .wp-headers-and-footers
254
+ .wpbr-sidebar
255
+ .button:hover {
256
+ text-decoration: underline;
257
+ }
258
+ .settings_page_wp-headers-and-footers
259
+ .wpbr-sidebar
260
+ .sidebar
261
+ .dashicons-twitter:before,
262
+ .settings_page_wp-headers-and-footers
263
+ .wpbr-sidebar
264
+ .sidebar
265
+ .dashicons-facebook:before,
266
+ .settings_page_wp-headers-and-footers
267
+ .wpbr-sidebar
268
+ .sidebar
269
+ .dashicons-wordpress:before {
270
+ content: "";
271
+ height: 32px;
272
+ width: 32px;
273
+ background-repeat: no-repeat;
274
+ position: absolute;
275
+ left: 0;
276
+ top: 50%;
277
+ transform: translateY(-50%);
278
+ background-image: url("../img/icons.png");
279
+ }
280
+ .settings_page_wp-headers-and-footers
281
+ .wpbr-sidebar
282
+ .sidebar
283
+ .dashicons-facebook:before {
284
+ background-position: 0 -21px;
285
+ }
286
+ .settings_page_wp-headers-and-footers
287
+ .wpbr-sidebar
288
+ .sidebar
289
+ .dashicons-wordpress:before {
290
+ background-position: -99px -21px;
291
+ }
292
+ .settings_page_wp-headers-and-footers
293
+ .wpbr-sidebar
294
+ .sidebar
295
+ .dashicons-twitter:before {
296
+ background-position: -33px -21px;
297
+ }
298
+ .settings_page_wp-headers-and-footers
299
+ .wp-headers-and-footers
300
+ .wpbr-sidebar
301
+ li
302
+ .dashicons {
303
+ height: 32px;
304
+ width: 32px;
305
+ background-repeat: no-repeat;
306
+ position: absolute;
307
+ left: 0;
308
+ margin-top: 0;
309
+ top: -4px;
310
+ }
311
+ .settings_page_wp-headers-and-footers
312
+ .wp-headers-and-footers
313
+ .wpbr-sidebar
314
+ .dashicons {
315
+ position: absolute;
316
+ left: 16px;
317
+ }
318
+ .settings_page_wp-headers-and-footers .wpbr-sidebar .sidebar h2 {
319
+ background-color: #2271b1;
320
+ padding: 17px 10px 17px 44px;
321
+ font-size: 16px;
322
+ line-height: 19.2px;
323
+ font-weight: 600;
324
+ color: #ffffff;
325
+ border-radius: 3px 3px 10px 10px;
326
+ border-bottom: 0;
327
+ }
328
+ .settings_page_wp-headers-and-footers
329
+ .wp-headers-and-footers
330
+ .wpbr-sidebar
331
+ h2
332
+ .dashicons {
333
+ top: 13px;
334
+ left: 17px;
335
+ }
336
+ .settings_page_wp-headers-and-footers .sidebar .dashicons-share::before,
337
+ .settings_page_wp-headers-and-footers .sidebar .dashicons-share-alt:before {
338
+ content: "";
339
+ height: 20px;
340
+ width: 20px;
341
+ background-repeat: no-repeat;
342
+ position: absolute;
343
+ left: 0;
344
+ top: 50%;
345
+ transform: translateY(-50%);
346
+ background-image: url("../img/icons.png");
347
+ }
348
+ .settings_page_wp-headers-and-footers .sidebar .dashicons-share::before {
349
+ background-position: -23px 0;
350
+ }
351
+
352
+ .settings_page_wp-headers-and-footers .sidebar .dashicons-share-alt:before {
353
+ background-position: 0 0;
354
+ }
355
+ .settings_page_wp-headers-and-footers
356
+ .wpbr-sidebar
357
+ .sidebar
358
+ .plugins_lists
359
+ a::after {
360
+ content: "";
361
+ height: 32px;
362
+ width: 32px;
363
+ background-repeat: no-repeat;
364
+ position: absolute;
365
+ left: 0;
366
+ top: 50%;
367
+ transform: translateY(-50%);
368
+ background-image: url("../img/icons.png");
369
+ }
370
+ .settings_page_wp-headers-and-footers .wpbr-sidebar .sidebar .plugins_lists {
371
+ padding: 15px 15px 10px 15px;
372
+ }
373
+ .settings_page_wp-headers-and-footers
374
+ .wpbr-sidebar
375
+ .sidebar
376
+ .plugins_lists
377
+ li:nth-child(1)
378
+ a::after {
379
+ background-position: 0 -43px;
380
+ background-size: 130px;
381
+ }
382
+ .settings_page_wp-headers-and-footers
383
+ .wpbr-sidebar
384
+ .sidebar
385
+ .plugins_lists
386
+ li:nth-child(2)
387
+ a::after {
388
+ background-position: -39px -52px;
389
+ background-size: 150px;
390
+ }
391
+ .settings_page_wp-headers-and-footers
392
+ .wpbr-sidebar
393
+ .sidebar
394
+ .plugins_lists
395
+ li:nth-child(3)
396
+ a::after {
397
+ background-position: -67px -46px;
398
+ background-size: 135px;
399
+ }
400
+ .settings_page_wp-headers-and-footers
401
+ .wpbr-sidebar
402
+ .sidebar
403
+ .plugins_lists
404
+ li:nth-child(4)
405
+ a::after {
406
+ background-position: -98px -44px;
407
+ background-size: 130px;
408
+ }
409
+
410
+ /* Settings Page Styling */
411
+ .settings_page_wp-headers-and-footers #wpheaderandfooter_settings .inside {
412
+ font-size: 16px;
413
+ line-height: 19.2px;
414
+ font-weight: 400;
415
+ color: #636b71;
416
+ }
417
+ .settings_page_wp-headers-and-footers #wpheaderandfooter_settings .form-table {
418
+ margin-bottom: 35px;
419
+ }
420
+ .settings_page_wp-headers-and-footers
421
+ #wpheaderandfooter_settings
422
+ .form-table
423
+ th {
424
+ width: 158px;
425
+ padding: 35px 10px 20px 0;
426
+ }
427
+ .settings_page_wp-headers-and-footers
428
+ #wpheaderandfooter_settings
429
+ .form-table
430
+ td {
431
+ padding: 21px 12px 13px;
432
+ }
433
+ .settings_page_wp-headers-and-footers
434
+ #wpheaderandfooter_settings
435
+ td
436
+ .description {
437
+ margin-top: 10px;
438
+ margin-left: 2px;
439
+ }
440
+ .settings_page_wp-headers-and-footers .wrap .CodeMirror .CodeMirror-linenumber {
441
+ text-align: center;
442
+ }
443
+ .settings_page_wp-headers-and-footers .CodeMirror-gutters {
444
+ background-color: #e0f0ff;
445
+ }
446
+
447
+ /* Success Notification Styling */
448
+ .settings_page_wp-headers-and-footers .notice-success {
449
+ padding: 4px 20px;
450
+ font-size: 16px;
451
+ line-height: 19.2px;
452
+ font-weight: 600;
453
+ border-radius: 10px;
454
+ border-top: 0;
455
+ border-right: 0;
456
+ border-bottom: 0;
457
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
458
+ margin-top: 25px;
459
+ margin-bottom: 0;
460
+ /* border-left-color: #2271B1; */
461
+ }
462
+ .settings_page_wp-headers-and-footers .notice-success button {
463
+ top: 50%;
464
+ transform: translateY(-50%);
465
+ }
466
+ .settings_page_wp-headers-and-footers .notice-dismiss:before {
467
+ color: #2271b1;
468
+ }
469
+
470
+ @media screen and (max-width: 1024px) {
471
+ .settings_page_wp-headers-and-footers .wp_hnf-header-wrapper {
472
+ padding: 16px 40px;
473
+ }
474
+ .settings_page_wp-headers-and-footers .wp-headers-and-footers {
475
+ padding: 16px 40px;
476
+ }
477
+ }
478
+
479
+ @media screen and (max-width: 782px) {
480
+ .settings_page_wp-headers-and-footers .wp_hnf-header-wrapper {
481
+ padding: 16px 20px;
482
+ }
483
+ .settings_page_wp-headers-and-footers .wp-headers-and-footers {
484
+ padding: 16px 20px;
485
+ }
486
+ .settings_page_wp-headers-and-footers .header-and-footer-setting {
487
+ padding-right: 0;
488
+ padding-top: 25px;
489
+ width: 100%;
490
+ }
491
+ .wp-headers-and-footers .wpbr-sidebar {
492
+ padding-top: 0px;
493
+ width: 100%;
494
+ box-sizing: border-box;
495
+ float: left;
496
+ margin-top: 40px;
497
+ }
498
+ .settings_page_wp-headers-and-footers .wpbr-sidebar .sidebar {
499
+ width: 100%;
500
+ margin-bottom: 40px;
501
+ }
502
+ .settings_page_wp-headers-and-footers
503
+ .header-and-footer-setting
504
+ #wpheaderandfooter_basics
505
+ .form-table
506
+ td {
507
+ margin-bottom: 30px;
508
+ }
509
+ .settings_page_wp-headers-and-footers
510
+ #wpheaderandfooter_settings
511
+ .form-table
512
+ td {
513
+ padding: 8px 0 10px 0;
514
+ }
515
+ .settings_page_wp-headers-and-footers p.submit {
516
+ text-align: center;
517
+ }
518
+ }
519
+
520
+ @media screen and (max-width: 480px) {
521
+ .settings_page_wp-headers-and-footers .wp_hnf-header-logo img {
522
+ max-width: 160px;
523
+ }
524
+ .settings_page_wp-headers-and-footers .nav-tab-wrapper a,
525
+ .settings_page_wp-headers-and-footers .wp_hnf-header-cta a {
526
+ padding: 8px 24px;
527
+ }
528
+ }
asset/css/style-review.css ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wpheaderandfooter-review-notice{
2
+ padding: 15px 15px 15px 0;
3
+ background-color: #fff;
4
+ border-radius: 3px;
5
+ margin: 20px 20px 0 0;
6
+ border-left: 4px solid transparent;
7
+ }
8
+ .wpheaderandfooter-review-notice:after{
9
+ content: '';
10
+ display: table;
11
+ clear: both;
12
+ }
13
+ .wpheaderandfooter-review-thumbnail{
14
+ width: 114px;
15
+ float: left;
16
+ line-height: 80px;
17
+ text-align: center;
18
+ border-right: 4px solid transparent;
19
+ }
20
+ .wpheaderandfooter-review-thumbnail img{
21
+ width: 68px;
22
+ vertical-align: middle;
23
+ }
24
+ .wpheaderandfooter-review-text{
25
+ overflow: hidden;
26
+ }
27
+ .wpheaderandfooter-review-text h3{
28
+ font-size: 24px;
29
+ margin: 0 0 5px;
30
+ font-weight: 400;
31
+ line-height: 1.3;
32
+ }
33
+ .wpheaderandfooter-review-text p{
34
+ font-size: 13px;
35
+ margin: 0 0 5px;
36
+ }
37
+ .wpheaderandfooter-review-ul{
38
+ margin: 0;
39
+ padding: 0;
40
+ }
41
+ .wpheaderandfooter-review-ul li{
42
+ display: inline-block;
43
+ margin-right: 15px;
44
+ }
45
+ .wpheaderandfooter-review-ul li a{
46
+ display: inline-block;
47
+ color: #10738B;
48
+ text-decoration: none;
49
+ padding-left: 26px;
50
+ position: relative;
51
+ }
52
+ .wpheaderandfooter-review-ul li a span{
53
+ position: absolute;
54
+ left: 0;
55
+ top: -2px;
56
+ }
asset/css/style.css CHANGED
@@ -10,7 +10,31 @@
10
  border: 1px solid #ccd0d4;
11
  }
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
 
 
 
 
 
 
 
 
14
  /*--Side bar style--*/
15
 
16
  .header-and-footer-setting {
10
  border: 1px solid #ccd0d4;
11
  }
12
 
13
+ .header-and-footer-setting input[type=number]{
14
+ padding: 13px 15px;
15
+ min-height: 30px;
16
+ border: 2px solid #D2DDF2;
17
+ height: 50px;
18
+ width: 100%;
19
+ font-family: "Poppins", sans-serif;
20
+ max-width: 450px;
21
+ color: #5C7697;
22
+ font-size: 14px;
23
+ line-height: 24px;
24
+ border-radius: 5px;
25
+ outline: none !important;
26
+ box-shadow: none !important;
27
+ background-color: #fff;
28
+ }
29
 
30
+ #wpheaderandfooter_settings td .description {
31
+ font-family: "Poppins", sans-serif;
32
+ color: #5C7697;
33
+ font-size: 13px;
34
+ line-height: 24px;
35
+ margin: 4px 0 0 5px;
36
+ max-width: 750px;
37
+ }
38
  /*--Side bar style--*/
39
 
40
  .header-and-footer-setting {
asset/img/icon-128x128.png ADDED
Binary file
asset/img/icons.png ADDED
Binary file
asset/img/logo.svg ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg width="244" height="58" viewBox="0 0 244 58" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="65" height="58" rx="5" fill="#F8C61D" fill-opacity="0.3"/>
3
+ <rect x="4" y="4" width="57" height="50" rx="3" fill="#F8C61D"/>
4
+ <rect x="7" y="7" width="51" height="11" rx="3" fill="white" fill-opacity="0.5"/>
5
+ <rect x="7.5" y="7.5" width="50" height="10" rx="2.5" stroke="#343434" stroke-opacity="0.42" stroke-dasharray="2 2"/>
6
+ <rect x="7" y="40" width="51" height="11" rx="3" fill="white" fill-opacity="0.5"/>
7
+ <rect x="7.5" y="40.5" width="50" height="10" rx="2.5" stroke="#343434" stroke-opacity="0.42" stroke-dasharray="2 2"/>
8
+ <rect x="7" y="21" width="51" height="16" rx="3" fill="white" fill-opacity="0.5"/>
9
+ <rect x="7.5" y="21.5" width="50" height="15" rx="2.5" stroke="#343434" stroke-opacity="0.42" stroke-dasharray="2 2"/>
10
+ <path d="M13.7707 14.139L10.1431 12.5822V12.0031L13.7707 10.4459V11.3465L11.5063 12.2924L13.7707 13.238V14.139ZM16.1098 14.4643H15.0734L17.1358 10H18.1794L16.1098 14.4643ZM19.1821 14.1378V13.2376L21.4623 12.2924L19.1821 11.3472V10.4467L22.8097 11.997V12.5878L19.1821 14.1378Z" fill="#767676"/>
11
+ <path d="M13.7707 47.139L10.1431 45.5822V45.0031L13.7707 43.4459V44.3465L11.5063 45.2924L13.7707 46.238V47.139ZM16.1098 47.4643H15.0734L17.1358 43H18.1794L16.1098 47.4643ZM19.1821 47.1378V46.2376L21.4623 45.2924L19.1821 44.3472V43.4467L22.8097 44.997V45.5878L19.1821 47.1378Z" fill="#767676"/>
12
+ <path d="M13.7707 31.3532L10.1431 29.7964V29.2173L13.7707 27.6601V28.5607L11.5063 29.5067L13.7707 30.4523V31.3532ZM16.1098 31.6785H15.0734L17.1358 27.2142H18.1794L16.1098 31.6785ZM19.1821 31.3521V30.4519L21.4623 29.5067L19.1821 28.5615V27.6609L22.8097 29.2113V29.8021L19.1821 31.3521Z" fill="#767676"/>
13
+ <path d="M82.388 23H79.148V5.648H82.388V23ZM86.1309 23V10.688H87.9429C88.3269 10.688 88.5789 10.868 88.6989 11.228L88.9029 12.2C89.1509 11.944 89.4109 11.712 89.6829 11.504C89.9629 11.296 90.2549 11.116 90.5589 10.964C90.8709 10.812 91.2029 10.696 91.5549 10.616C91.9069 10.536 92.2909 10.496 92.7069 10.496C93.3789 10.496 93.9749 10.612 94.4949 10.844C95.0149 11.068 95.4469 11.388 95.7909 11.804C96.1429 12.212 96.4069 12.704 96.5829 13.28C96.7669 13.848 96.8589 14.476 96.8589 15.164V23H93.8949V15.164C93.8949 14.412 93.7189 13.832 93.3669 13.424C93.0229 13.008 92.5029 12.8 91.8069 12.8C91.2949 12.8 90.8149 12.916 90.3669 13.148C89.9189 13.38 89.4949 13.696 89.0949 14.096V23H86.1309ZM107.08 13.088C107 13.216 106.916 13.308 106.828 13.364C106.74 13.412 106.628 13.436 106.492 13.436C106.348 13.436 106.192 13.396 106.024 13.316C105.864 13.236 105.676 13.148 105.46 13.052C105.244 12.948 104.996 12.856 104.716 12.776C104.444 12.696 104.12 12.656 103.744 12.656C103.16 12.656 102.7 12.78 102.364 13.028C102.028 13.276 101.86 13.6 101.86 14C101.86 14.264 101.944 14.488 102.112 14.672C102.288 14.848 102.516 15.004 102.796 15.14C103.084 15.276 103.408 15.4 103.768 15.512C104.128 15.616 104.496 15.732 104.872 15.86C105.248 15.988 105.616 16.136 105.976 16.304C106.336 16.464 106.656 16.672 106.936 16.928C107.224 17.176 107.452 17.476 107.62 17.828C107.796 18.18 107.884 18.604 107.884 19.1C107.884 19.692 107.776 20.24 107.56 20.744C107.344 21.24 107.028 21.672 106.612 22.04C106.196 22.4 105.68 22.684 105.064 22.892C104.456 23.092 103.756 23.192 102.964 23.192C102.54 23.192 102.124 23.152 101.715 23.072C101.316 23 100.928 22.896 100.552 22.76C100.184 22.624 99.8395 22.464 99.5195 22.28C99.2075 22.096 98.9315 21.896 98.6915 21.68L99.3755 20.552C99.4635 20.416 99.5675 20.312 99.6875 20.24C99.8075 20.168 99.9595 20.132 100.144 20.132C100.328 20.132 100.5 20.184 100.66 20.288C100.828 20.392 101.02 20.504 101.236 20.624C101.452 20.744 101.704 20.856 101.992 20.96C102.288 21.064 102.66 21.116 103.108 21.116C103.46 21.116 103.76 21.076 104.008 20.996C104.264 20.908 104.472 20.796 104.632 20.66C104.8 20.524 104.92 20.368 104.992 20.192C105.072 20.008 105.112 19.82 105.112 19.628C105.112 19.34 105.024 19.104 104.848 18.92C104.68 18.736 104.452 18.576 104.164 18.44C103.884 18.304 103.56 18.184 103.192 18.08C102.832 17.968 102.46 17.848 102.076 17.72C101.7 17.592 101.328 17.444 100.96 17.276C100.6 17.1 100.276 16.88 99.9875 16.616C99.7075 16.352 99.4795 16.028 99.3035 15.644C99.1355 15.26 99.0515 14.796 99.0515 14.252C99.0515 13.748 99.1515 13.268 99.3515 12.812C99.5515 12.356 99.8435 11.96 100.228 11.624C100.62 11.28 101.104 11.008 101.68 10.808C102.264 10.6 102.936 10.496 103.696 10.496C104.544 10.496 105.316 10.636 106.012 10.916C106.708 11.196 107.288 11.564 107.752 12.02L107.08 13.088ZM115.336 10.496C116.112 10.496 116.824 10.62 117.472 10.868C118.128 11.116 118.692 11.48 119.164 11.96C119.636 12.432 120.004 13.016 120.268 13.712C120.532 14.4 120.664 15.188 120.664 16.076C120.664 16.3 120.652 16.488 120.628 16.64C120.612 16.784 120.576 16.9 120.52 16.988C120.472 17.068 120.404 17.128 120.316 17.168C120.228 17.2 120.116 17.216 119.98 17.216H112.372C112.46 18.48 112.8 19.408 113.392 20C113.984 20.592 114.768 20.888 115.744 20.888C116.224 20.888 116.636 20.832 116.98 20.72C117.332 20.608 117.636 20.484 117.892 20.348C118.156 20.212 118.384 20.088 118.576 19.976C118.776 19.864 118.968 19.808 119.152 19.808C119.272 19.808 119.376 19.832 119.464 19.88C119.552 19.928 119.628 19.996 119.692 20.084L120.556 21.164C120.228 21.548 119.86 21.872 119.452 22.136C119.044 22.392 118.616 22.6 118.168 22.76C117.728 22.912 117.276 23.02 116.812 23.084C116.356 23.148 115.912 23.18 115.48 23.18C114.624 23.18 113.828 23.04 113.092 22.76C112.356 22.472 111.716 22.052 111.172 21.5C110.628 20.94 110.2 20.252 109.888 19.436C109.576 18.612 109.42 17.66 109.42 16.58C109.42 15.74 109.556 14.952 109.828 14.216C110.1 13.472 110.488 12.828 110.992 12.284C111.504 11.732 112.124 11.296 112.852 10.976C113.588 10.656 114.416 10.496 115.336 10.496ZM115.396 12.62C114.532 12.62 113.856 12.864 113.368 13.352C112.88 13.84 112.568 14.532 112.432 15.428H118C118 15.044 117.948 14.684 117.844 14.348C117.74 14.004 117.58 13.704 117.364 13.448C117.148 13.192 116.876 12.992 116.548 12.848C116.22 12.696 115.836 12.62 115.396 12.62ZM123.068 23V10.688H124.808C125.112 10.688 125.324 10.744 125.444 10.856C125.564 10.968 125.644 11.16 125.684 11.432L125.864 12.92C126.304 12.16 126.82 11.56 127.412 11.12C128.004 10.68 128.668 10.46 129.404 10.46C130.012 10.46 130.516 10.6 130.916 10.88L130.532 13.1C130.508 13.244 130.456 13.348 130.376 13.412C130.296 13.468 130.188 13.496 130.052 13.496C129.932 13.496 129.768 13.468 129.56 13.412C129.352 13.356 129.076 13.328 128.732 13.328C128.116 13.328 127.588 13.5 127.148 13.844C126.708 14.18 126.336 14.676 126.032 15.332V23H123.068ZM136.909 23.192C135.845 23.192 135.025 22.892 134.449 22.292C133.873 21.684 133.585 20.848 133.585 19.784V12.908H132.337C132.177 12.908 132.037 12.856 131.917 12.752C131.805 12.648 131.749 12.492 131.749 12.284V11.108L133.729 10.784L134.353 7.424C134.385 7.264 134.457 7.14 134.569 7.052C134.689 6.964 134.837 6.92 135.013 6.92H136.549V10.796H139.789V12.908H136.549V19.58C136.549 19.964 136.645 20.264 136.837 20.48C137.029 20.696 137.285 20.804 137.605 20.804C137.789 20.804 137.941 20.784 138.061 20.744C138.189 20.696 138.297 20.648 138.385 20.6C138.481 20.552 138.565 20.508 138.637 20.468C138.709 20.42 138.781 20.396 138.853 20.396C138.941 20.396 139.013 20.42 139.069 20.468C139.125 20.508 139.185 20.572 139.249 20.66L140.137 22.1C139.705 22.46 139.209 22.732 138.649 22.916C138.089 23.1 137.509 23.192 136.909 23.192ZM89.294 49H86.855V43.312H80.753V49H78.314V35.986H80.753V41.584H86.855V35.986H89.294V49ZM95.6095 39.622C96.1915 39.622 96.7255 39.715 97.2115 39.901C97.7035 40.087 98.1265 40.36 98.4805 40.72C98.8345 41.074 99.1105 41.512 99.3085 42.034C99.5065 42.55 99.6055 43.141 99.6055 43.807C99.6055 43.975 99.5965 44.116 99.5785 44.23C99.5665 44.338 99.5395 44.425 99.4975 44.491C99.4615 44.551 99.4105 44.596 99.3445 44.626C99.2785 44.65 99.1945 44.662 99.0925 44.662H93.3865C93.4525 45.61 93.7075 46.306 94.1515 46.75C94.5955 47.194 95.1835 47.416 95.9155 47.416C96.2755 47.416 96.5845 47.374 96.8425 47.29C97.1065 47.206 97.3345 47.113 97.5265 47.011C97.7245 46.909 97.8955 46.816 98.0395 46.732C98.1895 46.648 98.3335 46.606 98.4715 46.606C98.5615 46.606 98.6395 46.624 98.7055 46.66C98.7715 46.696 98.8285 46.747 98.8765 46.813L99.5245 47.623C99.2785 47.911 99.0025 48.154 98.6965 48.352C98.3905 48.544 98.0695 48.7 97.7335 48.82C97.4035 48.934 97.0645 49.015 96.7165 49.063C96.3745 49.111 96.0415 49.135 95.7175 49.135C95.0755 49.135 94.4785 49.03 93.9265 48.82C93.3745 48.604 92.8945 48.289 92.4865 47.875C92.0785 47.455 91.7575 46.939 91.5235 46.327C91.2895 45.709 91.1725 44.995 91.1725 44.185C91.1725 43.555 91.2745 42.964 91.4785 42.412C91.6825 41.854 91.9735 41.371 92.3515 40.963C92.7355 40.549 93.2005 40.222 93.7465 39.982C94.2985 39.742 94.9195 39.622 95.6095 39.622ZM95.6545 41.215C95.0065 41.215 94.4995 41.398 94.1335 41.764C93.7675 42.13 93.5335 42.649 93.4315 43.321H97.6075C97.6075 43.033 97.5685 42.763 97.4905 42.511C97.4125 42.253 97.2925 42.028 97.1305 41.836C96.9685 41.644 96.7645 41.494 96.5185 41.386C96.2725 41.272 95.9845 41.215 95.6545 41.215ZM108.645 49H107.646C107.436 49 107.271 48.97 107.151 48.91C107.031 48.844 106.941 48.715 106.881 48.523L106.683 47.866C106.449 48.076 106.218 48.262 105.99 48.424C105.768 48.58 105.537 48.712 105.297 48.82C105.057 48.928 104.802 49.009 104.532 49.063C104.262 49.117 103.962 49.144 103.632 49.144C103.242 49.144 102.882 49.093 102.552 48.991C102.222 48.883 101.937 48.724 101.697 48.514C101.463 48.304 101.28 48.043 101.148 47.731C101.016 47.419 100.95 47.056 100.95 46.642C100.95 46.294 101.04 45.952 101.22 45.616C101.406 45.274 101.712 44.968 102.138 44.698C102.564 44.422 103.131 44.194 103.839 44.014C104.547 43.834 105.426 43.732 106.476 43.708V43.168C106.476 42.55 106.344 42.094 106.08 41.8C105.822 41.5 105.444 41.35 104.946 41.35C104.586 41.35 104.286 41.392 104.046 41.476C103.806 41.56 103.596 41.656 103.416 41.764C103.242 41.866 103.08 41.959 102.93 42.043C102.78 42.127 102.615 42.169 102.435 42.169C102.285 42.169 102.156 42.13 102.048 42.052C101.94 41.974 101.853 41.878 101.787 41.764L101.382 41.053C102.444 40.081 103.725 39.595 105.225 39.595C105.765 39.595 106.245 39.685 106.665 39.865C107.091 40.039 107.451 40.285 107.745 40.603C108.039 40.915 108.261 41.29 108.411 41.728C108.567 42.166 108.645 42.646 108.645 43.168V49ZM104.325 47.614C104.553 47.614 104.763 47.593 104.955 47.551C105.147 47.509 105.327 47.446 105.495 47.362C105.669 47.278 105.834 47.176 105.99 47.056C106.152 46.93 106.314 46.783 106.476 46.615V45.058C105.828 45.088 105.285 45.145 104.847 45.229C104.415 45.307 104.067 45.409 103.803 45.535C103.539 45.661 103.35 45.808 103.236 45.976C103.128 46.144 103.074 46.327 103.074 46.525C103.074 46.915 103.188 47.194 103.416 47.362C103.65 47.53 103.953 47.614 104.325 47.614ZM117.329 49C117.041 49 116.852 48.865 116.762 48.595L116.582 47.704C116.39 47.92 116.189 48.115 115.979 48.289C115.769 48.463 115.541 48.613 115.295 48.739C115.055 48.865 114.794 48.961 114.512 49.027C114.236 49.099 113.936 49.135 113.612 49.135C113.108 49.135 112.646 49.03 112.226 48.82C111.806 48.61 111.443 48.307 111.137 47.911C110.837 47.509 110.603 47.014 110.435 46.426C110.273 45.838 110.192 45.166 110.192 44.41C110.192 43.726 110.285 43.09 110.471 42.502C110.657 41.914 110.924 41.404 111.272 40.972C111.62 40.54 112.037 40.204 112.523 39.964C113.009 39.718 113.555 39.595 114.161 39.595C114.677 39.595 115.118 39.679 115.484 39.847C115.85 40.009 116.177 40.228 116.465 40.504V35.626H118.688V49H117.329ZM114.368 47.371C114.83 47.371 115.223 47.275 115.547 47.083C115.871 46.891 116.177 46.618 116.465 46.264V42.124C116.213 41.818 115.937 41.602 115.637 41.476C115.343 41.35 115.025 41.287 114.683 41.287C114.347 41.287 114.041 41.35 113.765 41.476C113.495 41.602 113.264 41.794 113.072 42.052C112.886 42.304 112.742 42.628 112.64 43.024C112.538 43.414 112.487 43.876 112.487 44.41C112.487 44.95 112.529 45.409 112.613 45.787C112.703 46.159 112.829 46.465 112.991 46.705C113.153 46.939 113.351 47.11 113.585 47.218C113.819 47.32 114.08 47.371 114.368 47.371ZM124.912 39.622C125.494 39.622 126.028 39.715 126.514 39.901C127.006 40.087 127.429 40.36 127.783 40.72C128.137 41.074 128.413 41.512 128.611 42.034C128.809 42.55 128.908 43.141 128.908 43.807C128.908 43.975 128.899 44.116 128.881 44.23C128.869 44.338 128.842 44.425 128.8 44.491C128.764 44.551 128.713 44.596 128.647 44.626C128.581 44.65 128.497 44.662 128.395 44.662H122.689C122.755 45.61 123.01 46.306 123.454 46.75C123.898 47.194 124.486 47.416 125.218 47.416C125.578 47.416 125.887 47.374 126.145 47.29C126.409 47.206 126.637 47.113 126.829 47.011C127.027 46.909 127.198 46.816 127.342 46.732C127.492 46.648 127.636 46.606 127.774 46.606C127.864 46.606 127.942 46.624 128.008 46.66C128.074 46.696 128.131 46.747 128.179 46.813L128.827 47.623C128.581 47.911 128.305 48.154 127.999 48.352C127.693 48.544 127.372 48.7 127.036 48.82C126.706 48.934 126.367 49.015 126.019 49.063C125.677 49.111 125.344 49.135 125.02 49.135C124.378 49.135 123.781 49.03 123.229 48.82C122.677 48.604 122.197 48.289 121.789 47.875C121.381 47.455 121.06 46.939 120.826 46.327C120.592 45.709 120.475 44.995 120.475 44.185C120.475 43.555 120.577 42.964 120.781 42.412C120.985 41.854 121.276 41.371 121.654 40.963C122.038 40.549 122.503 40.222 123.049 39.982C123.601 39.742 124.222 39.622 124.912 39.622ZM124.957 41.215C124.309 41.215 123.802 41.398 123.436 41.764C123.07 42.13 122.836 42.649 122.734 43.321H126.91C126.91 43.033 126.871 42.763 126.793 42.511C126.715 42.253 126.595 42.028 126.433 41.836C126.271 41.644 126.067 41.494 125.821 41.386C125.575 41.272 125.287 41.215 124.957 41.215ZM130.711 49V39.766H132.016C132.244 39.766 132.403 39.808 132.493 39.892C132.583 39.976 132.643 40.12 132.673 40.324L132.808 41.44C133.138 40.87 133.525 40.42 133.969 40.09C134.413 39.76 134.911 39.595 135.463 39.595C135.919 39.595 136.297 39.7 136.597 39.91L136.309 41.575C136.291 41.683 136.252 41.761 136.192 41.809C136.132 41.851 136.051 41.872 135.949 41.872C135.859 41.872 135.736 41.851 135.58 41.809C135.424 41.767 135.217 41.746 134.959 41.746C134.497 41.746 134.101 41.875 133.771 42.133C133.441 42.385 133.162 42.757 132.934 43.249V49H130.711ZM143.54 41.566C143.48 41.662 143.417 41.731 143.351 41.773C143.285 41.809 143.201 41.827 143.099 41.827C142.991 41.827 142.874 41.797 142.748 41.737C142.628 41.677 142.487 41.611 142.325 41.539C142.163 41.461 141.977 41.392 141.767 41.332C141.563 41.272 141.32 41.242 141.038 41.242C140.6 41.242 140.255 41.335 140.003 41.521C139.751 41.707 139.625 41.95 139.625 42.25C139.625 42.448 139.688 42.616 139.814 42.754C139.946 42.886 140.117 43.003 140.327 43.105C140.543 43.207 140.786 43.3 141.056 43.384C141.326 43.462 141.602 43.549 141.884 43.645C142.166 43.741 142.442 43.852 142.712 43.978C142.982 44.098 143.222 44.254 143.432 44.446C143.648 44.632 143.819 44.857 143.945 45.121C144.077 45.385 144.143 45.703 144.143 46.075C144.143 46.519 144.062 46.93 143.9 47.308C143.738 47.68 143.501 48.004 143.189 48.28C142.877 48.55 142.49 48.763 142.028 48.919C141.572 49.069 141.047 49.144 140.453 49.144C140.135 49.144 139.823 49.114 139.517 49.054C139.217 49 138.926 48.922 138.644 48.82C138.368 48.718 138.11 48.598 137.87 48.46C137.636 48.322 137.429 48.172 137.249 48.01L137.762 47.164C137.828 47.062 137.906 46.984 137.996 46.93C138.086 46.876 138.2 46.849 138.338 46.849C138.476 46.849 138.605 46.888 138.725 46.966C138.851 47.044 138.995 47.128 139.157 47.218C139.319 47.308 139.508 47.392 139.724 47.47C139.946 47.548 140.225 47.587 140.561 47.587C140.825 47.587 141.05 47.557 141.236 47.497C141.428 47.431 141.584 47.347 141.704 47.245C141.83 47.143 141.92 47.026 141.974 46.894C142.034 46.756 142.064 46.615 142.064 46.471C142.064 46.255 141.998 46.078 141.866 45.94C141.74 45.802 141.569 45.682 141.353 45.58C141.143 45.478 140.9 45.388 140.624 45.31C140.354 45.226 140.075 45.136 139.787 45.04C139.505 44.944 139.226 44.833 138.95 44.707C138.68 44.575 138.437 44.41 138.221 44.212C138.011 44.014 137.84 43.771 137.708 43.483C137.582 43.195 137.519 42.847 137.519 42.439C137.519 42.061 137.594 41.701 137.744 41.359C137.894 41.017 138.113 40.72 138.401 40.468C138.695 40.21 139.058 40.006 139.49 39.856C139.928 39.7 140.432 39.622 141.002 39.622C141.638 39.622 142.217 39.727 142.739 39.937C143.261 40.147 143.696 40.423 144.044 40.765L143.54 41.566ZM156.633 49H155.634C155.424 49 155.259 48.97 155.139 48.91C155.019 48.844 154.929 48.715 154.869 48.523L154.671 47.866C154.437 48.076 154.206 48.262 153.978 48.424C153.756 48.58 153.525 48.712 153.285 48.82C153.045 48.928 152.79 49.009 152.52 49.063C152.25 49.117 151.95 49.144 151.62 49.144C151.23 49.144 150.87 49.093 150.54 48.991C150.21 48.883 149.925 48.724 149.685 48.514C149.451 48.304 149.268 48.043 149.136 47.731C149.004 47.419 148.938 47.056 148.938 46.642C148.938 46.294 149.028 45.952 149.208 45.616C149.394 45.274 149.7 44.968 150.126 44.698C150.552 44.422 151.119 44.194 151.827 44.014C152.535 43.834 153.414 43.732 154.464 43.708V43.168C154.464 42.55 154.332 42.094 154.068 41.8C153.81 41.5 153.432 41.35 152.934 41.35C152.574 41.35 152.274 41.392 152.034 41.476C151.794 41.56 151.584 41.656 151.404 41.764C151.23 41.866 151.068 41.959 150.918 42.043C150.768 42.127 150.603 42.169 150.423 42.169C150.273 42.169 150.144 42.13 150.036 42.052C149.928 41.974 149.841 41.878 149.775 41.764L149.37 41.053C150.432 40.081 151.713 39.595 153.213 39.595C153.753 39.595 154.233 39.685 154.653 39.865C155.079 40.039 155.439 40.285 155.733 40.603C156.027 40.915 156.249 41.29 156.399 41.728C156.555 42.166 156.633 42.646 156.633 43.168V49ZM152.313 47.614C152.541 47.614 152.751 47.593 152.943 47.551C153.135 47.509 153.315 47.446 153.483 47.362C153.657 47.278 153.822 47.176 153.978 47.056C154.14 46.93 154.302 46.783 154.464 46.615V45.058C153.816 45.088 153.273 45.145 152.835 45.229C152.403 45.307 152.055 45.409 151.791 45.535C151.527 45.661 151.338 45.808 151.224 45.976C151.116 46.144 151.062 46.327 151.062 46.525C151.062 46.915 151.176 47.194 151.404 47.362C151.638 47.53 151.941 47.614 152.313 47.614ZM158.819 49V39.766H160.178C160.466 39.766 160.655 39.901 160.745 40.171L160.898 40.9C161.084 40.708 161.279 40.534 161.483 40.378C161.693 40.222 161.912 40.087 162.14 39.973C162.374 39.859 162.623 39.772 162.887 39.712C163.151 39.652 163.439 39.622 163.751 39.622C164.255 39.622 164.702 39.709 165.092 39.883C165.482 40.051 165.806 40.291 166.064 40.603C166.328 40.909 166.526 41.278 166.658 41.71C166.796 42.136 166.865 42.607 166.865 43.123V49H164.642V43.123C164.642 42.559 164.51 42.124 164.246 41.818C163.988 41.506 163.598 41.35 163.076 41.35C162.692 41.35 162.332 41.437 161.996 41.611C161.66 41.785 161.342 42.022 161.042 42.322V49H158.819ZM175.547 49C175.259 49 175.07 48.865 174.98 48.595L174.8 47.704C174.608 47.92 174.407 48.115 174.197 48.289C173.987 48.463 173.759 48.613 173.513 48.739C173.273 48.865 173.012 48.961 172.73 49.027C172.454 49.099 172.154 49.135 171.83 49.135C171.326 49.135 170.864 49.03 170.444 48.82C170.024 48.61 169.661 48.307 169.355 47.911C169.055 47.509 168.821 47.014 168.653 46.426C168.491 45.838 168.41 45.166 168.41 44.41C168.41 43.726 168.503 43.09 168.689 42.502C168.875 41.914 169.142 41.404 169.49 40.972C169.838 40.54 170.255 40.204 170.741 39.964C171.227 39.718 171.773 39.595 172.379 39.595C172.895 39.595 173.336 39.679 173.702 39.847C174.068 40.009 174.395 40.228 174.683 40.504V35.626H176.906V49H175.547ZM172.586 47.371C173.048 47.371 173.441 47.275 173.765 47.083C174.089 46.891 174.395 46.618 174.683 46.264V42.124C174.431 41.818 174.155 41.602 173.855 41.476C173.561 41.35 173.243 41.287 172.901 41.287C172.565 41.287 172.259 41.35 171.983 41.476C171.713 41.602 171.482 41.794 171.29 42.052C171.104 42.304 170.96 42.628 170.858 43.024C170.756 43.414 170.705 43.876 170.705 44.41C170.705 44.95 170.747 45.409 170.831 45.787C170.921 46.159 171.047 46.465 171.209 46.705C171.371 46.939 171.569 47.11 171.803 47.218C172.037 47.32 172.298 47.371 172.586 47.371ZM191.129 35.986V37.912H185.36V41.764H190.229V43.699H185.36V49H182.921V35.986H191.129ZM196.265 39.622C196.955 39.622 197.579 39.733 198.137 39.955C198.701 40.177 199.181 40.492 199.577 40.9C199.973 41.308 200.279 41.806 200.495 42.394C200.711 42.982 200.819 43.639 200.819 44.365C200.819 45.097 200.711 45.757 200.495 46.345C200.279 46.933 199.973 47.434 199.577 47.848C199.181 48.262 198.701 48.58 198.137 48.802C197.579 49.024 196.955 49.135 196.265 49.135C195.575 49.135 194.948 49.024 194.384 48.802C193.82 48.58 193.337 48.262 192.935 47.848C192.539 47.434 192.23 46.933 192.008 46.345C191.792 45.757 191.684 45.097 191.684 44.365C191.684 43.639 191.792 42.982 192.008 42.394C192.23 41.806 192.539 41.308 192.935 40.9C193.337 40.492 193.82 40.177 194.384 39.955C194.948 39.733 195.575 39.622 196.265 39.622ZM196.265 47.425C197.033 47.425 197.6 47.167 197.966 46.651C198.338 46.135 198.524 45.379 198.524 44.383C198.524 43.387 198.338 42.628 197.966 42.106C197.6 41.584 197.033 41.323 196.265 41.323C195.485 41.323 194.909 41.587 194.537 42.115C194.165 42.637 193.979 43.393 193.979 44.383C193.979 45.373 194.165 46.129 194.537 46.651C194.909 47.167 195.485 47.425 196.265 47.425ZM206.495 39.622C207.185 39.622 207.809 39.733 208.367 39.955C208.931 40.177 209.411 40.492 209.807 40.9C210.203 41.308 210.509 41.806 210.725 42.394C210.941 42.982 211.049 43.639 211.049 44.365C211.049 45.097 210.941 45.757 210.725 46.345C210.509 46.933 210.203 47.434 209.807 47.848C209.411 48.262 208.931 48.58 208.367 48.802C207.809 49.024 207.185 49.135 206.495 49.135C205.805 49.135 205.178 49.024 204.614 48.802C204.05 48.58 203.567 48.262 203.165 47.848C202.769 47.434 202.46 46.933 202.238 46.345C202.022 45.757 201.914 45.097 201.914 44.365C201.914 43.639 202.022 42.982 202.238 42.394C202.46 41.806 202.769 41.308 203.165 40.9C203.567 40.492 204.05 40.177 204.614 39.955C205.178 39.733 205.805 39.622 206.495 39.622ZM206.495 47.425C207.263 47.425 207.83 47.167 208.196 46.651C208.568 46.135 208.754 45.379 208.754 44.383C208.754 43.387 208.568 42.628 208.196 42.106C207.83 41.584 207.263 41.323 206.495 41.323C205.715 41.323 205.139 41.587 204.767 42.115C204.395 42.637 204.209 43.393 204.209 44.383C204.209 45.373 204.395 46.129 204.767 46.651C205.139 47.167 205.715 47.425 206.495 47.425ZM215.817 49.144C215.019 49.144 214.404 48.919 213.972 48.469C213.54 48.013 213.324 47.386 213.324 46.588V41.431H212.388C212.268 41.431 212.163 41.392 212.073 41.314C211.989 41.236 211.947 41.119 211.947 40.963V40.081L213.432 39.838L213.9 37.318C213.924 37.198 213.978 37.105 214.062 37.039C214.152 36.973 214.263 36.94 214.395 36.94H215.547V39.847H217.977V41.431H215.547V46.435C215.547 46.723 215.619 46.948 215.763 47.11C215.907 47.272 216.099 47.353 216.339 47.353C216.477 47.353 216.591 47.338 216.681 47.308C216.777 47.272 216.858 47.236 216.924 47.2C216.996 47.164 217.059 47.131 217.113 47.101C217.167 47.065 217.221 47.047 217.275 47.047C217.341 47.047 217.395 47.065 217.437 47.101C217.479 47.131 217.524 47.179 217.572 47.245L218.238 48.325C217.914 48.595 217.542 48.799 217.122 48.937C216.702 49.075 216.267 49.144 215.817 49.144ZM223.561 39.622C224.143 39.622 224.677 39.715 225.163 39.901C225.655 40.087 226.078 40.36 226.432 40.72C226.786 41.074 227.062 41.512 227.26 42.034C227.458 42.55 227.557 43.141 227.557 43.807C227.557 43.975 227.548 44.116 227.53 44.23C227.518 44.338 227.491 44.425 227.449 44.491C227.413 44.551 227.362 44.596 227.296 44.626C227.23 44.65 227.146 44.662 227.044 44.662H221.338C221.404 45.61 221.659 46.306 222.103 46.75C222.547 47.194 223.135 47.416 223.867 47.416C224.227 47.416 224.536 47.374 224.794 47.29C225.058 47.206 225.286 47.113 225.478 47.011C225.676 46.909 225.847 46.816 225.991 46.732C226.141 46.648 226.285 46.606 226.423 46.606C226.513 46.606 226.591 46.624 226.657 46.66C226.723 46.696 226.78 46.747 226.828 46.813L227.476 47.623C227.23 47.911 226.954 48.154 226.648 48.352C226.342 48.544 226.021 48.7 225.685 48.82C225.355 48.934 225.016 49.015 224.668 49.063C224.326 49.111 223.993 49.135 223.669 49.135C223.027 49.135 222.43 49.03 221.878 48.82C221.326 48.604 220.846 48.289 220.438 47.875C220.03 47.455 219.709 46.939 219.475 46.327C219.241 45.709 219.124 44.995 219.124 44.185C219.124 43.555 219.226 42.964 219.43 42.412C219.634 41.854 219.925 41.371 220.303 40.963C220.687 40.549 221.152 40.222 221.698 39.982C222.25 39.742 222.871 39.622 223.561 39.622ZM223.606 41.215C222.958 41.215 222.451 41.398 222.085 41.764C221.719 42.13 221.485 42.649 221.383 43.321H225.559C225.559 43.033 225.52 42.763 225.442 42.511C225.364 42.253 225.244 42.028 225.082 41.836C224.92 41.644 224.716 41.494 224.47 41.386C224.224 41.272 223.936 41.215 223.606 41.215ZM229.36 49V39.766H230.665C230.893 39.766 231.052 39.808 231.142 39.892C231.232 39.976 231.292 40.12 231.322 40.324L231.457 41.44C231.787 40.87 232.174 40.42 232.618 40.09C233.062 39.76 233.56 39.595 234.112 39.595C234.568 39.595 234.946 39.7 235.246 39.91L234.958 41.575C234.94 41.683 234.901 41.761 234.841 41.809C234.781 41.851 234.7 41.872 234.598 41.872C234.508 41.872 234.385 41.851 234.229 41.809C234.073 41.767 233.866 41.746 233.608 41.746C233.146 41.746 232.75 41.875 232.42 42.133C232.09 42.385 231.811 42.757 231.583 43.249V49H229.36ZM242.189 41.566C242.129 41.662 242.066 41.731 242 41.773C241.934 41.809 241.85 41.827 241.748 41.827C241.64 41.827 241.523 41.797 241.397 41.737C241.277 41.677 241.136 41.611 240.974 41.539C240.812 41.461 240.626 41.392 240.416 41.332C240.212 41.272 239.969 41.242 239.687 41.242C239.249 41.242 238.904 41.335 238.652 41.521C238.4 41.707 238.274 41.95 238.274 42.25C238.274 42.448 238.337 42.616 238.463 42.754C238.595 42.886 238.766 43.003 238.976 43.105C239.192 43.207 239.435 43.3 239.705 43.384C239.975 43.462 240.251 43.549 240.533 43.645C240.815 43.741 241.091 43.852 241.361 43.978C241.631 44.098 241.871 44.254 242.081 44.446C242.297 44.632 242.468 44.857 242.594 45.121C242.726 45.385 242.792 45.703 242.792 46.075C242.792 46.519 242.711 46.93 242.549 47.308C242.387 47.68 242.15 48.004 241.838 48.28C241.526 48.55 241.139 48.763 240.677 48.919C240.221 49.069 239.696 49.144 239.102 49.144C238.784 49.144 238.472 49.114 238.166 49.054C237.866 49 237.575 48.922 237.293 48.82C237.017 48.718 236.759 48.598 236.519 48.46C236.285 48.322 236.078 48.172 235.898 48.01L236.411 47.164C236.477 47.062 236.555 46.984 236.645 46.93C236.735 46.876 236.849 46.849 236.987 46.849C237.125 46.849 237.254 46.888 237.374 46.966C237.5 47.044 237.644 47.128 237.806 47.218C237.968 47.308 238.157 47.392 238.373 47.47C238.595 47.548 238.874 47.587 239.21 47.587C239.474 47.587 239.699 47.557 239.885 47.497C240.077 47.431 240.233 47.347 240.353 47.245C240.479 47.143 240.569 47.026 240.623 46.894C240.683 46.756 240.713 46.615 240.713 46.471C240.713 46.255 240.647 46.078 240.515 45.94C240.389 45.802 240.218 45.682 240.002 45.58C239.792 45.478 239.549 45.388 239.273 45.31C239.003 45.226 238.724 45.136 238.436 45.04C238.154 44.944 237.875 44.833 237.599 44.707C237.329 44.575 237.086 44.41 236.87 44.212C236.66 44.014 236.489 43.771 236.357 43.483C236.231 43.195 236.168 42.847 236.168 42.439C236.168 42.061 236.243 41.701 236.393 41.359C236.543 41.017 236.762 40.72 237.05 40.468C237.344 40.21 237.707 40.006 238.139 39.856C238.577 39.7 239.081 39.622 239.651 39.622C240.287 39.622 240.866 39.727 241.388 39.937C241.91 40.147 242.345 40.423 242.693 40.765L242.189 41.566Z" fill="white"/>
14
+ </svg>
classes/class-notifications.php ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Handling all the Notification calls in WP Headers and Footers.
4
+ *
5
+ * @package wp-headers-and-footers
6
+ * @since 1.3.3
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ // Exit if accessed directly.
11
+ exit;
12
+ }
13
+
14
+ if ( ! class_exists( 'WPHeaderAndFooter_Notification' ) ) :
15
+
16
+ /**
17
+ * Handle Notification for Inline Headers and Footers.
18
+ */
19
+ class WPHeaderAndFooter_Notification {
20
+
21
+ /**
22
+ * Class constructor
23
+ */
24
+ public function __construct() {
25
+
26
+ $this->notification_hooks();
27
+ }
28
+
29
+ /**
30
+ * Hook into actions and filters
31
+ *
32
+ * @since 1.3.3
33
+ */
34
+ private function notification_hooks() {
35
+ add_action( 'admin_init', array( $this, 'wp_headers_and_footers_review_notice' ) );
36
+ }
37
+
38
+ /**
39
+ * Ask users to review our plugin on wordpress.org
40
+ *
41
+ * @since 1.3.3
42
+ */
43
+ public function wp_headers_and_footers_review_notice() {
44
+
45
+ $this->wpheaderandfooter_review_dismissal();
46
+ $this->wpheaderandfooter_review_pending();
47
+
48
+ $activation_time = get_site_option( 'wpheaderandfooter_active_time' );
49
+ $review_dismissal = get_site_option( 'wpheaderandfooter_review_dismiss' );
50
+
51
+ if ( 'yes' === $review_dismissal ) :
52
+ return;
53
+ endif;
54
+
55
+ if ( ! $activation_time ) :
56
+
57
+ $activation_time = time();
58
+ add_site_option( 'wpheaderandfooter_active_time', $activation_time );
59
+ endif;
60
+
61
+ // 1296000 = 15 Days in seconds.
62
+ if ( ( time() - $activation_time > 1296000 ) && current_user_can( 'manage_options' ) ) :
63
+
64
+ wp_enqueue_style( 'wpheaderandfooter_review_style', plugins_url( '../asset/css/style-review.css', __FILE__ ), array(), WPHEADERANDFOOTER_VERSION );
65
+ add_action( 'admin_notices', array( $this, 'wp_headers_and_footers_review_notice_message' ) );
66
+ endif;
67
+
68
+ }
69
+
70
+ /**
71
+ * Check and Dismiss review message.
72
+ *
73
+ * @since 1.3.3
74
+ */
75
+ private function wpheaderandfooter_review_dismissal() {
76
+
77
+ if ( ! is_admin() ||
78
+ ! current_user_can( 'manage_options' ) ||
79
+ ! isset( $_GET['_wpnonce'] ) ||
80
+ ! wp_verify_nonce( sanitize_key( wp_unslash( $_GET['_wpnonce'] ) ), 'wpheaderandfooter-review-nonce' ) ||
81
+ ! isset( $_GET['wpheaderandfooter_review_dismiss'] ) ) :
82
+
83
+ return;
84
+ endif;
85
+
86
+ add_site_option( 'wpheaderandfooter_review_dismiss', 'yes' );
87
+ }
88
+
89
+ /**
90
+ * Set time to current so review notice will popup after 14 days
91
+ *
92
+ * @since 1.3.3
93
+ */
94
+ private function wpheaderandfooter_review_pending() {
95
+
96
+ if ( ! is_admin() ||
97
+ ! current_user_can( 'manage_options' ) ||
98
+ ! isset( $_GET['_wpnonce'] ) ||
99
+ ! wp_verify_nonce( sanitize_key( wp_unslash( $_GET['_wpnonce'] ) ), 'wpheaderandfooter-review-nonce' ) ||
100
+ ! isset( $_GET['wpheaderandfooter_review_later'] ) ) :
101
+
102
+ return;
103
+ endif;
104
+
105
+ // Reset Time to current time.
106
+ update_site_option( 'wpheaderandfooter_active_time', time() );
107
+ }
108
+
109
+ /**
110
+ * Review notice message
111
+ *
112
+ * @since 1.3.3
113
+ */
114
+ public function wp_headers_and_footers_review_notice_message() {
115
+
116
+ $scheme = ( wp_parse_url( $_SERVER['REQUEST_URI'], PHP_URL_QUERY ) ) ? '&' : '?';
117
+ $url = $_SERVER['REQUEST_URI'] . $scheme . 'wpheaderandfooter_review_dismiss=yes';
118
+ $dismiss_url = wp_nonce_url( $url, 'wpheaderandfooter-review-nonce' );
119
+
120
+ $_later_link = $_SERVER['REQUEST_URI'] . $scheme . 'wpheaderandfooter_review_later=yes';
121
+ $later_url = wp_nonce_url( $_later_link, 'wpheaderandfooter-review-nonce' ); ?>
122
+
123
+ <div class="wpheaderandfooter-review-notice">
124
+ <div class="wpheaderandfooter-review-thumbnail">
125
+ <img src="<?php echo esc_url( plugins_url( '../asset/img/icon-128x128.png', __FILE__ ) ); ?>" alt="Inline Headers And Footers Logo">
126
+ </div>
127
+ <div class="wpheaderandfooter-review-text">
128
+ <h3><?php esc_html_e( 'Leave A Review?', 'wp-headers-and-footers' ); ?></h3>
129
+ <p><?php esc_html_e( 'We hope you\'ve enjoyed using Inline Headers And Footers! Would you consider leaving us a review on WordPress.org?', 'wp-headers-and-footers' ); ?></p>
130
+ <ul class="wpheaderandfooter-review-ul">
131
+ <li><a href="https://wordpress.org/support/view/plugin-reviews/wp-headers-and-footers?rate=5#rate-response" target="_blank"><span class="dashicons dashicons-external"></span><?php esc_html_e( 'Sure! I\'d love to!', 'wp-headers-and-footers' ); ?></a></li>
132
+ <li><a href="<?php echo esc_url( $dismiss_url ); ?>"><span class="dashicons dashicons-smiley"></span><?php esc_html_e( 'I\'ve already left a review', 'wp-headers-and-footers' ); ?></a></li>
133
+ <li><a href="<?php echo esc_url( $later_url ); ?>"><span class="dashicons dashicons-calendar-alt"></span><?php esc_html_e( 'Maybe Later', 'wp-headers-and-footers' ); ?></a></li>
134
+ <li><a href="<?php echo esc_url( $dismiss_url ); ?>"><span class="dashicons dashicons-dismiss"></span><?php esc_html_e( 'Never show again', 'wp-headers-and-footers' ); ?></a></li>
135
+ </ul>
136
+ </div>
137
+ </div>
138
+ <?php
139
+ }
140
+ }
141
+ endif;
142
+ new WPHeaderAndFooter_Notification();
143
+ ?>
classes/class-settings-api.php CHANGED
@@ -97,7 +97,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
97
  }
98
 
99
  /**
100
- * Initialize and registers the settings sections and fileds to WordPress
101
  *
102
  * Usually this should be called at `admin_init` hook.
103
  *
@@ -123,7 +123,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
123
  add_settings_section( $section['id'], $section['title'], $callback, $section['id'] );
124
  }
125
 
126
- // register settings fields.
127
  foreach ( $this->settings_fields as $section => $field ) {
128
  foreach ( $field as $option ) {
129
 
@@ -154,14 +154,14 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
154
  }
155
  }
156
 
157
- // creates our settings in the options table.
158
  foreach ( $this->settings_sections as $section ) {
159
  register_setting( $section['id'], $section['id'], array( $this, 'sanitize_options' ) );
160
  }
161
  }
162
 
163
  /**
164
- * Get field description for display
165
  *
166
  * @param array $args settings field args.
167
  */
@@ -176,7 +176,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
176
  }
177
 
178
  /**
179
- * Displays a text field for a settings field
180
  *
181
  * @param array $args settings field args.
182
  */
@@ -194,7 +194,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
194
  }
195
 
196
  /**
197
- * Displays a url field for a settings field
198
  *
199
  * @param array $args settings field args.
200
  */
@@ -203,7 +203,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
203
  }
204
 
205
  /**
206
- * Displays a number field for a settings field
207
  *
208
  * @param array $args settings field args.
209
  */
@@ -223,7 +223,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
223
  }
224
 
225
  /**
226
- * Displays a checkbox for a settings field
227
  *
228
  * @param array $args settings field args.
229
  */
@@ -242,7 +242,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
242
  }
243
 
244
  /**
245
- * Displays a multicheckbox a settings field
246
  *
247
  * @param array $args settings field args.
248
  */
@@ -265,7 +265,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
265
  }
266
 
267
  /**
268
- * Displays a multicheckbox a settings field
269
  *
270
  * @param array $args settings field args.
271
  */
@@ -287,7 +287,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
287
  }
288
 
289
  /**
290
- * Displays a selectbox for a settings field
291
  *
292
  * @param array $args settings field args.
293
  */
@@ -308,7 +308,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
308
  }
309
 
310
  /**
311
- * Displays a textarea for a settings field
312
  *
313
  * @param array $args settings field args.
314
  */
@@ -325,7 +325,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
325
  }
326
 
327
  /**
328
- * Displays a textarea for a settings field
329
  *
330
  * @param array $args settings field args.
331
  */
@@ -334,7 +334,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
334
  }
335
 
336
  /**
337
- * Displays a rich text textarea for a settings field
338
  *
339
  * @param array $args settings field args.
340
  */
@@ -363,7 +363,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
363
  }
364
 
365
  /**
366
- * Displays a file upload field for a settings field
367
  *
368
  * @param array $args settings field args.
369
  */
@@ -382,7 +382,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
382
  }
383
 
384
  /**
385
- * Displays a password field for a settings field
386
  *
387
  * @param array $args settings field args.
388
  */
@@ -398,7 +398,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
398
  }
399
 
400
  /**
401
- * Displays a color picker field for a settings field
402
  *
403
  * @param array $args settings field args.
404
  */
@@ -414,9 +414,9 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
414
  }
415
 
416
  /**
417
- * Sanitize callback for Settings API
418
  *
419
- * @param array $options santize option.
420
  * @return mixed
421
  */
422
  public function sanitize_options( $options ) {
@@ -436,7 +436,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
436
  continue;
437
  }
438
 
439
- $logger_settings[ 'is_using_' . $option_slug ] = !empty( trim( $option_value ) ) ? true : false;
440
 
441
  }
442
 
@@ -446,11 +446,11 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
446
  }
447
 
448
  /**
449
- * Get sanitization callback for given option slug
450
  *
451
  * @param string $slug option slug.
452
  *
453
- * @return mixed string or bool false
454
  */
455
  public function get_sanitize_callback( $slug = '' ) {
456
  if ( empty( $slug ) ) {
@@ -473,7 +473,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
473
  }
474
 
475
  /**
476
- * Get the value of a settings field
477
  *
478
  * @param string $option settings field name.
479
  * @param string $section the section name this field belongs to.
@@ -492,9 +492,9 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
492
  }
493
 
494
  /**
495
- * Show navigations as tab
496
  *
497
- * Shows all the settings section labels as tab
498
  */
499
  public function show_navigation() {
500
  $html = '<h2 class="nav-tab-wrapper">';
@@ -511,110 +511,111 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
511
  }
512
 
513
  /**
514
- * Show the section settings forms
515
  *
516
- * This function displays every sections in a different form
517
  */
518
  public function show_forms() {
519
  ?>
520
- <div class="header-and-footer-setting">
521
- <?php foreach ( $this->settings_sections as $form ) { ?>
522
- <div id="<?php echo esc_attr( $form['id'] ); ?>" class="group" style="display: none;">
523
- <form method="post" action="options.php">
524
- <?php
525
- do_action( 'wsa_form_top_' . $form['id'], $form );
526
- settings_fields( $form['id'] );
527
- $this->do_settings_sections( $form['id'] );
528
- do_action( 'wsa_form_bottom_' . $form['id'], $form );
529
- if ( isset( $this->settings_fields[ $form['id'] ] ) ) :
530
- ?>
531
- <div style="padding-left: 10px">
532
- <?php submit_button(); ?>
533
- </div>
534
- <?php endif; ?>
535
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
536
  </div>
537
- <?php } ?>
538
- </div>
539
- <div class="wpbr-sidebar">
540
- <div class="sidebar postbox">
541
- <h2> <span class="dashicons dashicons-share"></span> <?php esc_html_e( 'Spread the Word', 'wp-headers-and-footers' ); ?></h2>
542
- <ul>
543
  <li>
544
- <a href="http://twitter.com/share?text=This is Best header and footer code JS and CSS insert plugin without touching theme files;url=https://wordpress.org/plugins/wp-headers-and-footers/" data-count="none" class="button twitter" target="_blank" title="<?php esc_html_e( 'Post to Twitter Now', 'wp-headers-and-footers' ); ?>">
545
- <?php esc_html_e( 'Share on Twitter', 'wp-headers-and-footers' ); ?>
546
- <span class="dashicons dashicons-twitter"></span>
547
  </a>
548
  </li>
 
549
  <li>
550
- <a href="https://www.facebook.com/sharer/sharer.php?u=https://wordpress.org/plugins/wp-headers-and-footers/" class="button facebook" target="_blank" title="<?php esc_html_e( 'Share with your facebook friends about this awesome plugin', 'wp-headers-and-footers' ); ?>">
551
- <?php esc_html_e( 'Share on Facebook', 'wp-headers-and-footers' ); ?>
552
- <span class="dashicons dashicons-facebook"></span>
553
  </a>
554
  </li>
 
555
  <li>
556
- <a href="https://wordpress.org/support/plugin/wp-headers-and-footers/reviews/#new-post" class="button wordpress" target="_blank" title="Rate on WordPress.org">
557
- <?php esc_html_e( 'Rate on WordPress.org', 'wp-headers-and-footers' ); ?>
558
- <span class="dashicons dashicons-wordpress"></span>
 
 
 
 
559
  </a>
560
  </li>
561
  </ul>
 
562
  </div>
563
- <div class="sidebar postbox">
564
- <h2><span class="dashicons dashicons-share-alt"> </span><?php esc_html_e( 'Recommended Plugins', 'wp-headers-and-footers' ); ?></h2>
565
- <!-- <p>Following are the plugins highly recommend by Team WPBrigade.</p> -->
566
- <ul class="plugins_lists">
567
- <li>
568
- <a href="https://wpbrigade.com/wordpress/plugins/loginpress-pro/?utm_source=wp-headers-and-footers&amp;utm_medium=sidebar&amp;utm_campaign=pro-upgrade" data-count="none" target="_blank" title="<?php esc_html_e( 'Customize your login screen', 'wp-headers-and-footers' ); ?>">
569
- <?php esc_html_e( 'LoginPress - Login Customizer', 'wp-headers-and-footers' ); ?>
570
- </a>
571
- </li>
572
-
573
- <li>
574
- <a href="https://analytify.io/ref/73/?utm_source=wp-headers-and-footers&amp;utm_medium=sidebar&amp;utm_campaign=pro-upgrade" target="_blank" title="<?php esc_html_e( 'Share with your facebook friends about this awesome plugin.', 'wp-headers-and-footers' ); ?>">
575
- <?php esc_html_e( 'Google Analytics by Analytify', 'wp-headers-and-footers' ); ?>
576
- </a>
577
- </li>
578
-
579
- <li>
580
- <a href="https://simplesocialbuttons.com?utm_source=wp-headers-and-footers&amp;utm_medium=sidebar&amp;utm_campaign=pro-upgrade" target="_blank" title="<?php esc_html_e( 'Socialize your Website', 'wp-headers-and-footers' ); ?>">
581
- <?php esc_html_e( 'Simple Social Buttons', 'wp-headers-and-footers' ); ?>
582
- </a>
583
- </li>
584
- <li>
585
- <a href="http://wpbrigade.com/recommend/maintenance-mode?utm_source=wp-headers-and-footers&amp;utm_medium=sidebar&amp;utm_campaign=pro-upgrade" target="_blank" title="<?php esc_html_e( 'Socialize your Website', 'wp-headers-and-footers' ); ?>">
586
- <?php esc_html_e( 'Under Construction & Maintenance mode', 'wp-headers-and-footers' ); ?>
587
- </a>
588
- </li>
589
- </ul>
590
- </div>
591
- </div>
592
  <?php
593
- $this->script();
 
594
  }
595
 
596
  /**
597
- * Tabbable JavaScript codes & Initiate Color Picker
598
  *
599
- * This code uses localstorage for displaying active tabs
600
  */
601
- public function script() {
602
- ?>
603
  <script>
604
  jQuery(document).ready(function($) {
 
605
  //Initiate Color Picker
606
  $('.wp-color-picker-field').wpColorPicker();
607
 
608
  // Switches option sections
609
- $('.group').hide();
610
  var activetab = '';
611
  if (typeof(localStorage) != 'undefined' ) {
612
  activetab = localStorage.getItem("activetab");
613
  }
614
  if (activetab != '' && $(activetab).length ) {
615
- $(activetab).fadeIn();
616
  } else {
617
- $('.group:first').fadeIn();
618
  }
619
  $('.group .collapsed').each(function(){
620
  $(this).find('input:checked').parent().parent().parent().nextAll().each(
@@ -634,14 +635,15 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
634
  $('.nav-tab-wrapper a:first').addClass('nav-tab-active');
635
  }
636
  $('.nav-tab-wrapper a').click(function(evt) {
 
637
  $('.nav-tab-wrapper a').removeClass('nav-tab-active');
638
  $(this).addClass('nav-tab-active').blur();
639
  var clicked_group = $(this).attr('href');
640
  if (typeof(localStorage) != 'undefined' ) {
641
  localStorage.setItem("activetab", $(this).attr('href'));
642
  }
643
- $('.group').hide();
644
- $(clicked_group).fadeIn();
645
  evt.preventDefault();
646
  });
647
 
@@ -667,9 +669,11 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
667
  // Finally, open the modal
668
  file_frame.open();
669
  });
670
- });
 
 
671
  </script>
672
- <?php
673
  $this->style_fix();
674
  }
675
 
97
  }
98
 
99
  /**
100
+ * Initialize and registers the settings sections and fields to WordPress
101
  *
102
  * Usually this should be called at `admin_init` hook.
103
  *
123
  add_settings_section( $section['id'], $section['title'], $callback, $section['id'] );
124
  }
125
 
126
+ // Register settings fields.
127
  foreach ( $this->settings_fields as $section => $field ) {
128
  foreach ( $field as $option ) {
129
 
154
  }
155
  }
156
 
157
+ // Creates our settings in the options table.
158
  foreach ( $this->settings_sections as $section ) {
159
  register_setting( $section['id'], $section['id'], array( $this, 'sanitize_options' ) );
160
  }
161
  }
162
 
163
  /**
164
+ * Get field description for display.
165
  *
166
  * @param array $args settings field args.
167
  */
176
  }
177
 
178
  /**
179
+ * Displays a text field for a settings field.
180
  *
181
  * @param array $args settings field args.
182
  */
194
  }
195
 
196
  /**
197
+ * Displays a url field for a settings field.
198
  *
199
  * @param array $args settings field args.
200
  */
203
  }
204
 
205
  /**
206
+ * Displays a number field for a settings field.
207
  *
208
  * @param array $args settings field args.
209
  */
223
  }
224
 
225
  /**
226
+ * Displays a checkbox for a settings field.
227
  *
228
  * @param array $args settings field args.
229
  */
242
  }
243
 
244
  /**
245
+ * Displays a multi checkbox a settings field.
246
  *
247
  * @param array $args settings field args.
248
  */
265
  }
266
 
267
  /**
268
+ * Displays a multi checkbox a settings field.
269
  *
270
  * @param array $args settings field args.
271
  */
287
  }
288
 
289
  /**
290
+ * Displays a selectbox for a settings field.
291
  *
292
  * @param array $args settings field args.
293
  */
308
  }
309
 
310
  /**
311
+ * Displays a textarea for a settings field.
312
  *
313
  * @param array $args settings field args.
314
  */
325
  }
326
 
327
  /**
328
+ * Displays a textarea for a settings field.
329
  *
330
  * @param array $args settings field args.
331
  */
334
  }
335
 
336
  /**
337
+ * Displays a rich text textarea for a settings field.
338
  *
339
  * @param array $args settings field args.
340
  */
363
  }
364
 
365
  /**
366
+ * Displays a file upload field for a settings field.
367
  *
368
  * @param array $args settings field args.
369
  */
382
  }
383
 
384
  /**
385
+ * Displays a password field for a settings field.
386
  *
387
  * @param array $args settings field args.
388
  */
398
  }
399
 
400
  /**
401
+ * Displays a color picker field for a settings field.
402
  *
403
  * @param array $args settings field args.
404
  */
414
  }
415
 
416
  /**
417
+ * Sanitize callback for Settings API.
418
  *
419
+ * @param array $options sanitize option.
420
  * @return mixed
421
  */
422
  public function sanitize_options( $options ) {
436
  continue;
437
  }
438
 
439
+ $logger_settings[ 'is_using_' . $option_slug ] = ! empty( trim( $option_value ) ) ? true : false;
440
 
441
  }
442
 
446
  }
447
 
448
  /**
449
+ * Get sanitization callback for given option slug.
450
  *
451
  * @param string $slug option slug.
452
  *
453
+ * @return mixed string or bool false.
454
  */
455
  public function get_sanitize_callback( $slug = '' ) {
456
  if ( empty( $slug ) ) {
473
  }
474
 
475
  /**
476
+ * Get the value of a settings field.
477
  *
478
  * @param string $option settings field name.
479
  * @param string $section the section name this field belongs to.
492
  }
493
 
494
  /**
495
+ * Show navigation as tab.
496
  *
497
+ * Shows all the settings section labels as tab.
498
  */
499
  public function show_navigation() {
500
  $html = '<h2 class="nav-tab-wrapper">';
511
  }
512
 
513
  /**
514
+ * Show the section settings forms.
515
  *
516
+ * This function displays every sections in a different form.
517
  */
518
  public function show_forms() {
519
  ?>
520
+ <div class="header-and-footer-setting">
521
+ <?php foreach ( $this->settings_sections as $form ) { ?>
522
+ <div id="<?php echo esc_attr( $form['id'] ); ?>" class="group">
523
+ <form method="post" action="options.php">
524
+ <?php
525
+ do_action( 'wsa_form_top_' . $form['id'], $form );
526
+ settings_fields( $form['id'] );
527
+ $this->do_settings_sections( $form['id'] );
528
+ do_action( 'wsa_form_bottom_' . $form['id'], $form );
529
+ if ( isset( $this->settings_fields[ $form['id'] ] ) ) :
530
+ ?>
531
+ <div class="hnf_submit">
532
+ <?php submit_button(); ?>
533
+ </div>
534
+ <?php endif; ?>
535
+ </form>
536
+ </div>
537
+ <?php } ?>
538
+ </div>
539
+ <div class="wpbr-sidebar">
540
+ <div class="sidebar postbox">
541
+ <h2> <span class="dashicons dashicons-share"></span> <?php esc_html_e( 'Spread the Word', 'wp-headers-and-footers' ); ?></h2>
542
+ <ul>
543
+ <li>
544
+ <a href="http://twitter.com/share?text=This is Best header and footer code JS and CSS insert plugin without touching theme files;url=https://wordpress.org/plugins/wp-headers-and-footers/" data-count="none" class="button twitter" target="_blank" title="<?php esc_html_e( 'Post to Twitter Now', 'wp-headers-and-footers' ); ?>">
545
+ <?php esc_html_e( 'Share on Twitter', 'wp-headers-and-footers' ); ?>
546
+ <span class="dashicons dashicons-twitter"></span>
547
+ </a>
548
+ </li>
549
+ <li>
550
+ <a href="https://www.facebook.com/sharer/sharer.php?u=https://wordpress.org/plugins/wp-headers-and-footers/" class="button facebook" target="_blank" title="<?php esc_html_e( 'Share with your facebook friends about this awesome plugin', 'wp-headers-and-footers' ); ?>">
551
+ <?php esc_html_e( 'Share on Facebook', 'wp-headers-and-footers' ); ?>
552
+ <span class="dashicons dashicons-facebook"></span>
553
+ </a>
554
+ </li>
555
+ <li>
556
+ <a href="https://wordpress.org/support/plugin/wp-headers-and-footers/reviews/#new-post" class="button wordpress" target="_blank" title="Rate on WordPress.org">
557
+ <?php esc_html_e( 'Rate on WordPress.org', 'wp-headers-and-footers' ); ?>
558
+ <span class="dashicons dashicons-wordpress"></span>
559
+ </a>
560
+ </li>
561
+ </ul>
562
  </div>
563
+ <div class="sidebar postbox">
564
+ <h2><span class="dashicons dashicons-share-alt"> </span><?php esc_html_e( 'Recommended Plugins', 'wp-headers-and-footers' ); ?></h2>
565
+ <!-- <p>Following are the plugins highly recommend by Team WPBrigade.</p> -->
566
+ <ul class="plugins_lists">
 
 
567
  <li>
568
+ <a href="https://wpbrigade.com/wordpress/plugins/loginpress-pro/?utm_source=wp-headers-and-footers&amp;utm_medium=sidebar&amp;utm_campaign=pro-upgrade" data-count="none" target="_blank" title="<?php esc_html_e( 'Customize your login screen', 'wp-headers-and-footers' ); ?>">
569
+ <?php esc_html_e( 'LoginPress - Login Customizer', 'wp-headers-and-footers' ); ?>
 
570
  </a>
571
  </li>
572
+
573
  <li>
574
+ <a href="https://analytify.io/ref/73/?utm_source=wp-headers-and-footers&amp;utm_medium=sidebar&amp;utm_campaign=pro-upgrade" target="_blank" title="<?php esc_html_e( 'Share with your facebook friends about this awesome plugin.', 'wp-headers-and-footers' ); ?>">
575
+ <?php esc_html_e( 'Google Analytics by Analytify', 'wp-headers-and-footers' ); ?>
 
576
  </a>
577
  </li>
578
+
579
  <li>
580
+ <a href="https://simplesocialbuttons.com?utm_source=wp-headers-and-footers&amp;utm_medium=sidebar&amp;utm_campaign=pro-upgrade" target="_blank" title="<?php esc_html_e( 'Socialize your Website', 'wp-headers-and-footers' ); ?>">
581
+ <?php esc_html_e( 'Simple Social Buttons', 'wp-headers-and-footers' ); ?>
582
+ </a>
583
+ </li>
584
+ <li>
585
+ <a href="http://wpbrigade.com/recommend/maintenance-mode?utm_source=wp-headers-and-footers&amp;utm_medium=sidebar&amp;utm_campaign=pro-upgrade" target="_blank" title="<?php esc_html_e( 'Socialize your Website', 'wp-headers-and-footers' ); ?>">
586
+ <?php esc_html_e( 'Under Construction & Maintenance mode', 'wp-headers-and-footers' ); ?>
587
  </a>
588
  </li>
589
  </ul>
590
+ </div>
591
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
592
  <?php
593
+ // wp_enqueue_script( 'wpheaderandfooter_admin_script', plugins_url( '/asset/js/settings-api-script.js', __FILE__ ), array( 'jquery' ), '1.0.0', false );
594
+ $this->script();
595
  }
596
 
597
  /**
598
+ * Tab able JavaScript codes & Initiate Color Picker.
599
  *
600
+ * This code uses local storage for displaying active tabs
601
  */
602
+ public function script() { ?>
 
603
  <script>
604
  jQuery(document).ready(function($) {
605
+
606
  //Initiate Color Picker
607
  $('.wp-color-picker-field').wpColorPicker();
608
 
609
  // Switches option sections
610
+ $('.group').removeClass('is_show');
611
  var activetab = '';
612
  if (typeof(localStorage) != 'undefined' ) {
613
  activetab = localStorage.getItem("activetab");
614
  }
615
  if (activetab != '' && $(activetab).length ) {
616
+ $(activetab).addClass('is_show');
617
  } else {
618
+ $('.group:first').addClass('is_show');
619
  }
620
  $('.group .collapsed').each(function(){
621
  $(this).find('input:checked').parent().parent().parent().nextAll().each(
635
  $('.nav-tab-wrapper a:first').addClass('nav-tab-active');
636
  }
637
  $('.nav-tab-wrapper a').click(function(evt) {
638
+
639
  $('.nav-tab-wrapper a').removeClass('nav-tab-active');
640
  $(this).addClass('nav-tab-active').blur();
641
  var clicked_group = $(this).attr('href');
642
  if (typeof(localStorage) != 'undefined' ) {
643
  localStorage.setItem("activetab", $(this).attr('href'));
644
  }
645
+ $('.group').removeClass('is_show');
646
+ $(clicked_group).addClass('is_show');
647
  evt.preventDefault();
648
  });
649
 
669
  // Finally, open the modal
670
  file_frame.open();
671
  });
672
+
673
+
674
+ });
675
  </script>
676
+ <?php
677
  $this->style_fix();
678
  }
679
 
classes/class-setup.php CHANGED
@@ -35,7 +35,6 @@ if ( ! class_exists( 'WPHeaderAndFooter_Setting' ) ) :
35
  * Admin initialize function.
36
  */
37
  public function admin_init() {
38
-
39
  // Set the settings.
40
  $this->settings_api->set_sections( $this->get_settings_sections() );
41
  $this->settings_api->set_fields( $this->get_settings_fields() );
@@ -58,13 +57,18 @@ if ( ! class_exists( 'WPHeaderAndFooter_Setting' ) ) :
58
  * The settings section.
59
  *
60
  * @since 1.1.0
 
61
  */
62
  public function get_settings_sections() {
63
  $sections = array(
64
  array(
65
  'id' => 'wpheaderandfooter_basics',
 
 
 
 
66
  'title' => __( 'Settings', 'wp-headers-and-footers' ),
67
- 'desc' => __( 'WP Headers and Footers.', 'wp-headers-and-footers' ),
68
  ),
69
  );
70
  return $sections;
@@ -74,7 +78,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Setting' ) ) :
74
  * Returns all the settings fields
75
  *
76
  * @since 1.0.0
77
- * @version 1.2.3
78
  *
79
  * @return array settings fields
80
  */
@@ -103,6 +107,32 @@ if ( ! class_exists( 'WPHeaderAndFooter_Setting' ) ) :
103
  'type' => 'textarea',
104
  ),
105
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  );
107
 
108
  return $settings_fields;
@@ -112,8 +142,11 @@ if ( ! class_exists( 'WPHeaderAndFooter_Setting' ) ) :
112
  * The header and footer settings section and forms callback
113
  *
114
  * @since 1.1.0
 
115
  */
116
  public function wp_header_and_footer_callback() {
 
 
117
  echo '<div class="wrap wp-headers-and-footers">';
118
 
119
  $this->settings_api->show_navigation();
@@ -139,5 +172,28 @@ if ( ! class_exists( 'WPHeaderAndFooter_Setting' ) ) :
139
  return $pages_options;
140
  }
141
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  }
143
  endif;
35
  * Admin initialize function.
36
  */
37
  public function admin_init() {
 
38
  // Set the settings.
39
  $this->settings_api->set_sections( $this->get_settings_sections() );
40
  $this->settings_api->set_fields( $this->get_settings_fields() );
57
  * The settings section.
58
  *
59
  * @since 1.1.0
60
+ * @version 2.0.0
61
  */
62
  public function get_settings_sections() {
63
  $sections = array(
64
  array(
65
  'id' => 'wpheaderandfooter_basics',
66
+ 'title' => __( 'Scripts', 'wp-headers-and-footers' ),
67
+ ),
68
+ array(
69
+ 'id' => 'wpheaderandfooter_settings',
70
  'title' => __( 'Settings', 'wp-headers-and-footers' ),
71
+ 'desc' => __( 'Set your priorities for each script tag.', 'wp-headers-and-footers' ),
72
  ),
73
  );
74
  return $sections;
78
  * Returns all the settings fields
79
  *
80
  * @since 1.0.0
81
+ * @version 2.0.0
82
  *
83
  * @return array settings fields
84
  */
107
  'type' => 'textarea',
108
  ),
109
  ),
110
+ 'wpheaderandfooter_settings' => array(
111
+ array(
112
+ 'name' => 'wp_header_priority',
113
+ 'label' => __( "Header's Priority:", 'wp-headers-and-footers' ),
114
+ /* Translators: The header textarea description */
115
+ 'desc' => sprintf( __( 'The priority for %1$s section. %2$sDefault is 10%3$s', 'wp-headers-and-footers' ), '&#60head&#62', '<i>', '</i>' ),
116
+ 'type' => 'number',
117
+ 'placeholder' => '1',
118
+ ),
119
+ array(
120
+ 'name' => 'wp_body_priority',
121
+ 'label' => __( "Body's Priority:", 'wp-headers-and-footers' ),
122
+ /* Translators: The body textarea description */
123
+ 'desc' => sprintf( __( 'The priority for %1$s tag. %2$sDefault is 10%3$s', 'wp-headers-and-footers' ), '&#60body&#62', '<i>', '</i>' ),
124
+ 'type' => 'number',
125
+ 'placeholder' => '10',
126
+ ),
127
+ array(
128
+ 'name' => 'wp_footer_priority',
129
+ 'label' => __( "Footer's Priority:", 'wp-headers-and-footers' ),
130
+ /* Translators: The footer textarea description */
131
+ 'desc' => sprintf( __( 'The priority for %1$s tag. %2$sDefault is 10%3$s', 'wp-headers-and-footers' ), '&#60footer&#62', '<i>', '</i>' ),
132
+ 'type' => 'number',
133
+ 'placeholder' => '99',
134
+ ),
135
+ ),
136
  );
137
 
138
  return $settings_fields;
142
  * The header and footer settings section and forms callback
143
  *
144
  * @since 1.1.0
145
+ * @version 2.0.0
146
  */
147
  public function wp_header_and_footer_callback() {
148
+ echo $this::wp_hnf_admin_page_header();
149
+
150
  echo '<div class="wrap wp-headers-and-footers">';
151
 
152
  $this->settings_api->show_navigation();
172
  return $pages_options;
173
  }
174
 
175
+ /**
176
+ * Header HTML.
177
+ * Call on Header and Footer page at dashboard.
178
+ *
179
+ * @since 2.0.0
180
+ */
181
+ public static function wp_hnf_admin_page_header() {
182
+
183
+ ?>
184
+ <div class="wp_hnf-header-wrapper">
185
+ <div class="wp_hnf-header-container">
186
+ <div class="wp_hnf-header-logo">
187
+ <a href="https://wpbrigade.com" target="_blank"><img src="<?php echo WPHEADERANDFOOTER_DIR_URL . 'asset/img/logo.svg'; ?>"></a>
188
+ </div>
189
+ <div class="wp_hnf-header-cta">
190
+ <a href="https://wordpress.org/support/plugin/wp-headers-and-footers/" class="wp_hnf-pro-cta" target="_blank">
191
+ <?php echo esc_html__( 'Support', 'wp-headers-and-footers' ); ?>
192
+ </a>
193
+ </div>
194
+ </div>
195
+ </div>
196
+ <?php
197
+ }
198
  }
199
  endif;
classes/plugin-meta.php CHANGED
@@ -40,7 +40,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Plugin_Meta' ) ) :
40
 
41
  echo '<style>.wp-headers-and-footers-rate-stars { display: inline-block; color: #ffb900; position: relative; top: 3px; }.wp-headers-and-footers-rate-stars svg{ fill:#ffb900; } .wp-headers-and-footers-rate-stars svg:hover{ fill:#ffb900 } .wp-headers-and-footers-rate-stars svg:hover ~ svg{ fill:none; } </style>';
42
 
43
- $plugin_rate = 'https://wordpress.org/support/plugin/wp-headers-and-footers/reviews/?rate=5#new-post';
44
  $plugin_filter = 'https://wordpress.org/support/plugin/wp-headers-and-footers/reviews/?filter=5';
45
  $svg_xmlns = 'https://www.w3.org/2000/svg';
46
  $svg_icon = '';
@@ -49,7 +49,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Plugin_Meta' ) ) :
49
  $svg_icon .= "<svg xmlns='" . esc_url( $svg_xmlns ) . "' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>";
50
  }
51
 
52
- // Set icon for thumbsup.
53
  $meta_fields[] = '<a href="' . esc_url( $plugin_filter ) . '" target="_blank"><span class="dashicons dashicons-thumbs-up"></span>' . __( 'Vote!', 'wp-headers-and-footers' ) . '</a>';
54
 
55
  // Set icon for 5-star reviews. v1.1.22.
40
 
41
  echo '<style>.wp-headers-and-footers-rate-stars { display: inline-block; color: #ffb900; position: relative; top: 3px; }.wp-headers-and-footers-rate-stars svg{ fill:#ffb900; } .wp-headers-and-footers-rate-stars svg:hover{ fill:#ffb900 } .wp-headers-and-footers-rate-stars svg:hover ~ svg{ fill:none; } </style>';
42
 
43
+ $plugin_rate = 'https://wordpress.org/support/plugin/wp-headers-and-footers/reviews/?rate=5#rate-response';
44
  $plugin_filter = 'https://wordpress.org/support/plugin/wp-headers-and-footers/reviews/?filter=5';
45
  $svg_xmlns = 'https://www.w3.org/2000/svg';
46
  $svg_icon = '';
49
  $svg_icon .= "<svg xmlns='" . esc_url( $svg_xmlns ) . "' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>";
50
  }
51
 
52
+ // Set icon for thumbs up.
53
  $meta_fields[] = '<a href="' . esc_url( $plugin_filter ) . '" target="_blank"><span class="dashicons dashicons-thumbs-up"></span>' . __( 'Vote!', 'wp-headers-and-footers' ) . '</a>';
54
 
55
  // Set icon for 5-star reviews. v1.1.22.
readme.txt CHANGED
@@ -4,8 +4,8 @@ Author URI: https://wpbrigade.com/?utm_source=wphf-org&utm_medium=author-url-lin
4
  Donate link: Author URI: https://wpbrigade.com/?utm_source=wphf-org&utm_medium=donate-url-link
5
  Tags: header, footer, Google Analytics, custom css, Facebook Pixel
6
  Requires at least: 5.0
7
- Tested up to: 5.9
8
- Stable tag: 1.3.2
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -76,39 +76,45 @@ You can insert code in Header, Body and Footer areas of any WordPress site.
76
 
77
  == Changelog ==
78
 
 
 
 
 
 
 
79
  = 1.3.2 - 2022-02-18
80
  * Enhancement: Added a filter `wp_hnf_header_script` to enhance the header scripts.
81
  * Enhancement: Added a filter `wp_hnf_body_script` to enhance the body scripts.
82
  * Enhancement: Added a filter `wp_hnf_footer_script` to enhance the footer scripts.
83
- * Compatibility : Compatible with WordPress 5.9.
84
 
85
  = 1.3.1 - 2021-12-01
86
- * Enhancement : Code Optimization.
87
- * Enhancement : Add compatibility of Mozilla Firefox on dashboard settings.
88
- * Compatibility : Compatible with WordPress 5.8.
89
- * Compatibility : Compatible with PHP 8.0.
90
 
91
  = 1.3.0 - 2021-06-05
92
  * New Feature: Introducing Code Editor for writing scripts.
93
  * Bugfix: Plugin language domain updated to 'wp-headers-and-footers'
94
  * Enhancement: Dashboard design updated.
95
- * Enhancement : Code Optimization.
96
- * Compatibility : Compatible with WordPress 5.7.
97
 
98
  = 1.2.2 - 2021-04-04
99
- * Compatibility : Compatible with WordPress 5.7.
100
- * Compatibility : PHP 8.0
101
- * Enhancement : Code Optimization.
102
 
103
  = 1.2.1 - 2020-12-08 =
104
- * Compatibility : Compatible with WordPress 5.6.
105
  * Bugfix: PHP Error.
106
 
107
  = 1.2.0 - 2020-12-08 =
108
  * Bugfix: Remove PHP 7 deprecated function.
109
 
110
  = 1.1.0 - 2020-03-21 =
111
- * Compatibility : Compatible with WordPress 5.4.
112
  * Enhancement: Dashboard Design updated.
113
 
114
  = 1.0.0 =
@@ -117,5 +123,5 @@ You can insert code in Header, Body and Footer areas of any WordPress site.
117
 
118
  == Upgrade Notice ==
119
 
120
- = 1.3.2 =
121
  * Upgrade Immediately.
4
  Donate link: Author URI: https://wpbrigade.com/?utm_source=wphf-org&utm_medium=donate-url-link
5
  Tags: header, footer, Google Analytics, custom css, Facebook Pixel
6
  Requires at least: 5.0
7
+ Tested up to: 6.0
8
+ Stable tag: 2.0.0
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
76
 
77
  == Changelog ==
78
 
79
+ = 2.0.0 - 2022-05-19 =
80
+ * New Feature: Introducing settings to set the priority for each header, footer or body script's location.
81
+ * Enhancement: Introducing new dashboard design layout.
82
+ * Enhancement: Added a review notification for administrator only.
83
+ * Compatibility: Compatible with WordPress 6.0
84
+
85
  = 1.3.2 - 2022-02-18
86
  * Enhancement: Added a filter `wp_hnf_header_script` to enhance the header scripts.
87
  * Enhancement: Added a filter `wp_hnf_body_script` to enhance the body scripts.
88
  * Enhancement: Added a filter `wp_hnf_footer_script` to enhance the footer scripts.
89
+ * Compatibility: Compatible with WordPress 5.9.
90
 
91
  = 1.3.1 - 2021-12-01
92
+ * Enhancement: Code Optimization.
93
+ * Enhancement: Add compatibility of Mozilla Firefox on dashboard settings.
94
+ * Compatibility: Compatible with WordPress 5.8.
95
+ * Compatibility: Compatible with PHP 8.0.
96
 
97
  = 1.3.0 - 2021-06-05
98
  * New Feature: Introducing Code Editor for writing scripts.
99
  * Bugfix: Plugin language domain updated to 'wp-headers-and-footers'
100
  * Enhancement: Dashboard design updated.
101
+ * Enhancement: Code Optimization.
102
+ * Compatibility: Compatible with WordPress 5.7.
103
 
104
  = 1.2.2 - 2021-04-04
105
+ * Compatibility: Compatible with WordPress 5.7.
106
+ * Compatibility: PHP 8.0
107
+ * Enhancement: Code Optimization.
108
 
109
  = 1.2.1 - 2020-12-08 =
110
+ * Compatibility: Compatible with WordPress 5.6.
111
  * Bugfix: PHP Error.
112
 
113
  = 1.2.0 - 2020-12-08 =
114
  * Bugfix: Remove PHP 7 deprecated function.
115
 
116
  = 1.1.0 - 2020-03-21 =
117
+ * Compatibility: Compatible with WordPress 5.4.
118
  * Enhancement: Dashboard Design updated.
119
 
120
  = 1.0.0 =
123
 
124
  == Upgrade Notice ==
125
 
126
+ = 2.0.0 =
127
  * Upgrade Immediately.
wp-headers-and-footers.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Headers And Footers
4
  * Plugin URI: https://www.WPBrigade.com/wordpress/plugins/wp-headers-and-footers/
5
  * Description: Allows you to insert code or text in the header or footer of your WordPress site.
6
- * Version: 1.3.2
7
  * Author: WPBrigade
8
  * Author URI: https://wpbrigade.com/?utm_source=plugin-meta&utm_medium=author-uri-link
9
  * License: GPLv3
@@ -27,7 +27,7 @@ if ( ! class_exists( 'WPHeaderAndFooter' ) ) :
27
  *
28
  * @var string $version
29
  */
30
- public $version = '1.3.2';
31
 
32
  /**
33
  * The single instance of the class.
@@ -55,6 +55,7 @@ if ( ! class_exists( 'WPHeaderAndFooter' ) ) :
55
 
56
  include_once WPHEADERANDFOOTER_DIR_PATH . 'classes/class-setup.php';
57
  include_once WPHEADERANDFOOTER_DIR_PATH . 'classes/plugin-meta.php';
 
58
 
59
  // set the logger settings option if was not set before.
60
  if ( ! get_option( 'wpheaderandfooter_basics_logger' ) ) {
@@ -92,20 +93,38 @@ if ( ! class_exists( 'WPHeaderAndFooter' ) ) :
92
  * Hook into actions and filters
93
  *
94
  * @since 1.0.0
95
- * @version 1.3.1
96
  */
97
  private function hooks() {
98
 
 
 
 
 
99
  add_action( 'plugins_loaded', array( $this, 'textdomain' ) );
100
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) );
101
  add_action( 'wp_print_scripts', array( $this, 'admin_scripts' ) );
102
- add_action( 'wp_head', array( $this, 'frontend_header' ) );
 
 
 
 
 
103
 
104
  if ( function_exists( 'wp_body_open' ) && version_compare( get_bloginfo( 'version' ), '5.2', '>=' ) ) {
105
- add_action( 'wp_body_open', array( $this, 'frontend_body' ) );
 
 
 
 
 
 
 
 
 
 
106
  }
107
 
108
- add_action( 'wp_footer', array( $this, 'frontend_footer' ) );
109
  }
110
 
111
  /**
@@ -121,17 +140,37 @@ if ( ! class_exists( 'WPHeaderAndFooter' ) ) :
121
  $this->define( 'WPHEADERANDFOOTER_FEEDBACK_SERVER', 'https://wpbrigade.com/' );
122
  }
123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  /**
125
  * Admin Scripts
126
  *
127
  * @param string $page The page slug.
128
- * @version 1.3.1
129
  */
130
  public function admin_scripts( $page ) {
131
 
132
  if ( 'settings_page_wp-headers-and-footers' === $page ) {
133
 
134
- wp_enqueue_style( 'wpheaderandfooter_stlye', plugins_url( 'asset/css/style.css', __FILE__ ), array(), WPHEADERANDFOOTER_VERSION );
 
 
135
 
136
  $editor_args = array( 'type' => 'text/html' );
137
 
@@ -252,7 +291,7 @@ if ( ! class_exists( 'WPHeaderAndFooter' ) ) :
252
  *
253
  * @param string $script Setting Name.
254
  *
255
- * @version 1.3.1
256
  * @return output
257
  */
258
  public function wp_hnf_output( $script ) {
@@ -263,8 +302,7 @@ if ( ! class_exists( 'WPHeaderAndFooter' ) ) :
263
  endif;
264
 
265
  // Get meta.
266
- $wp_hnf_setting = get_option( 'wpheaderandfooter_basics' );
267
- $meta = ! empty( $wp_hnf_setting[ $script ] ) ? $wp_hnf_setting[ $script ] : false;
268
 
269
  if ( '' === trim( $meta ) || ! $meta ) :
270
  return;
3
  * Plugin Name: WP Headers And Footers
4
  * Plugin URI: https://www.WPBrigade.com/wordpress/plugins/wp-headers-and-footers/
5
  * Description: Allows you to insert code or text in the header or footer of your WordPress site.
6
+ * Version: 2.0.0
7
  * Author: WPBrigade
8
  * Author URI: https://wpbrigade.com/?utm_source=plugin-meta&utm_medium=author-uri-link
9
  * License: GPLv3
27
  *
28
  * @var string $version
29
  */
30
+ public $version = '2.0.0';
31
 
32
  /**
33
  * The single instance of the class.
55
 
56
  include_once WPHEADERANDFOOTER_DIR_PATH . 'classes/class-setup.php';
57
  include_once WPHEADERANDFOOTER_DIR_PATH . 'classes/plugin-meta.php';
58
+ include_once WPHEADERANDFOOTER_DIR_PATH . 'classes/class-notifications.php';
59
 
60
  // set the logger settings option if was not set before.
61
  if ( ! get_option( 'wpheaderandfooter_basics_logger' ) ) {
93
  * Hook into actions and filters
94
  *
95
  * @since 1.0.0
96
+ * @version 2.0.0
97
  */
98
  private function hooks() {
99
 
100
+ $head_priority = $this->hnf_option( 'wpheaderandfooter_settings', 'wp_header_priority' );
101
+ $body_priority = $this->hnf_option( 'wpheaderandfooter_settings', 'wp_body_priority' );
102
+ $footer_priority = $this->hnf_option( 'wpheaderandfooter_settings', 'wp_footer_priority' );
103
+
104
  add_action( 'plugins_loaded', array( $this, 'textdomain' ) );
105
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) );
106
  add_action( 'wp_print_scripts', array( $this, 'admin_scripts' ) );
107
+
108
+ if ( ! empty( $head_priority ) ) {
109
+ add_action( 'wp_head', array( $this, 'frontend_header' ), $head_priority );
110
+ } else {
111
+ add_action( 'wp_head', array( $this, 'frontend_header' ) );
112
+ }
113
 
114
  if ( function_exists( 'wp_body_open' ) && version_compare( get_bloginfo( 'version' ), '5.2', '>=' ) ) {
115
+ if ( ! empty( $body_priority ) ) {
116
+ add_action( 'wp_body_open', array( $this, 'frontend_body' ), $body_priority );
117
+ } else {
118
+ add_action( 'wp_body_open', array( $this, 'frontend_body' ) );
119
+ }
120
+ }
121
+
122
+ if ( ! empty( $footer_priority ) ) {
123
+ add_action( 'wp_footer', array( $this, 'frontend_footer' ), $footer_priority );
124
+ } else {
125
+ add_action( 'wp_footer', array( $this, 'frontend_footer' ) );
126
  }
127
 
 
128
  }
129
 
130
  /**
140
  $this->define( 'WPHEADERANDFOOTER_FEEDBACK_SERVER', 'https://wpbrigade.com/' );
141
  }
142
 
143
+ /**
144
+ * Get plugin options and apply proper check on their sub items.
145
+ *
146
+ * @param string $option_name Name of the option.
147
+ * @param string $index Name of the sub option.
148
+ * @param string|int $default default value of the option.
149
+ *
150
+ * @since 2.0.0
151
+ */
152
+ public function hnf_option( $option_name, $index, $default = '' ) {
153
+
154
+ $option = get_option( $option_name );
155
+ if ( isset( $option[ $index ] ) && ! empty( $option[ $index ] ) ) {
156
+ return $option[ $index ];
157
+ }
158
+ return $default;
159
+ }
160
+
161
  /**
162
  * Admin Scripts
163
  *
164
  * @param string $page The page slug.
165
+ * @version 2.0.0
166
  */
167
  public function admin_scripts( $page ) {
168
 
169
  if ( 'settings_page_wp-headers-and-footers' === $page ) {
170
 
171
+ wp_enqueue_style( 'wpheaderandfooter_style', plugins_url( 'asset/css/style.css', __FILE__ ), array(), WPHEADERANDFOOTER_VERSION );
172
+
173
+ wp_enqueue_style( 'wpheaderandfooter_admin_style', plugins_url( 'asset/css/admin-style.css', __FILE__ ), array(), WPHEADERANDFOOTER_VERSION );
174
 
175
  $editor_args = array( 'type' => 'text/html' );
176
 
291
  *
292
  * @param string $script Setting Name.
293
  *
294
+ * @version 2.0.0
295
  * @return output
296
  */
297
  public function wp_hnf_output( $script ) {
302
  endif;
303
 
304
  // Get meta.
305
+ $meta = $this->hnf_option( 'wpheaderandfooter_basics', $script, false );
 
306
 
307
  if ( '' === trim( $meta ) || ! $meta ) :
308
  return;