All Meta Tags - Version 4.5

Version Description

  • Stylesheet in the admin.css file improved.
  • The '!important' declarations in the admin.css file removed.
  • Code formatting in the admin.js file improved.
  • Code commenting improved.
  • Load of the additional remote CSS file removed from the admin.js file.
  • Changed the sorting of enqueueing of scripts.
  • The ''Family' page tab renamed to 'Store'.
  • Added ad banner of my store website.
Download this release

Release Info

Developer Arthur Gareginyan
Plugin Icon 128x128 All Meta Tags
Version 4.5
Comparing to
See all releases

Code changes from version 4.4.1 to 4.5

all-meta-tags.php CHANGED
@@ -5,7 +5,7 @@
5
* Description: Easily and safely add your custom Meta Tags to WordPress website's header.
6
* Author: Arthur Gareginyan
7
* Author URI: https://www.arthurgareginyan.com
8
- * Version: 4.4.1
9
* License: GPL3
10
* Text Domain: all-meta-tags
11
* Domain Path: /languages/
5
* Description: Easily and safely add your custom Meta Tags to WordPress website's header.
6
* Author: Arthur Gareginyan
7
* Author URI: https://www.arthurgareginyan.com
8
+ * Version: 4.5
9
* License: GPL3
10
* Text Domain: all-meta-tags
11
* Domain Path: /languages/
inc/css/admin.css CHANGED
@@ -5,18 +5,17 @@
5
* @uthor Arthur Gareginyan
6
* @link https://www.arthurgareginyan.com
7
* @copyright Copyright (c) 2016-2017 Arthur Gareginyan. All Rights Reserved.
8
- * @since 4.4
9
*/
10
11
12
/* Main
13
-------------------------------------------------------------- */
14
body {
15
- background: #f1f1f1 !important;
16
}
17
p {
18
font-family: Verdana, Geneva, sans-serif;
19
- font-size: 13px;
20
}
21
.postbox a {
22
text-decoration: none;
@@ -25,10 +24,10 @@ p {
25
/* Title and Description of page
26
-------------------------------------------------------------- */
27
h2 {
28
- padding: 30px 30px !important;
29
background-color: #333;
30
- color: #e0dfdc !important;
31
- font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif !important;
32
font-size: 60px !important;
33
text-align: center;
34
text-transform: uppercase;
@@ -42,27 +41,29 @@ h2 {
42
0 6px 0 #1a1a1a,
43
0 7px 0 #161616,
44
0 8px 0 #121212,
45
- 0 22px 30px rgba(0, 0, 0, 0.9);
46
- letter-spacing: .1em;
47
line-height: 50px !important;
48
overflow: hidden;
49
}
50
h2 span {
51
content: '\A';
52
- display: block ;
53
margin-top: 15px;
54
font-size: 16px;
55
text-shadow: none;
56
- line-height: 20px !important;
57
}
58
h2 span a,
59
h2 span a:hover {
60
- color: #ffffff;
61
}
62
h2 span a:hover {
63
text-shadow: none;
64
text-decoration: none;
65
-webkit-transition: all 0.2s ease-in-out;
66
transition: all 0.2s ease-in-out;
67
}
68
h2 .version {
@@ -70,12 +71,12 @@ h2 .version {
70
right: 40px;
71
color: #a6a6a6;
72
text-shadow: none;
73
- letter-spacing: .1em;
74
}
75
76
/* Titles and Descriptions of sections
77
-------------------------------------------------------------- */
78
- h3.title {
79
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
80
font-size: 16px !important;
81
font-weight: 400;
@@ -85,7 +86,7 @@ h3.title {
85
/* Modal - PopUp windows
86
-------------------------------------------------------------- */
87
.modal-dialog {
88
- margin-top: 15% !important;
89
}
90
.hello-message .modal-body {
91
height: 180px;
@@ -115,12 +116,11 @@ h3.title {
115
/* Notes
116
-------------------------------------------------------------- */
117
.note {
118
- padding: 0.30em 1.0em;
119
border-left: 3px solid #05c2ff;
120
border-right: 3px solid #05c2ff;
121
- background: rgba(5, 194, 255, 0.09);
122
font-family: Verdana, Geneva, sans-serif;
123
- font-size: 13px;
124
color: #646464;
125
padding-left: 15px;
126
letter-spacing: 0.1px;
@@ -128,21 +128,24 @@ h3.title {
128
129
/* Sidebar
130
-------------------------------------------------------------- */
131
- #side-sortables {
132
- position: relative;
133
- }
134
-
135
- #side-sortables .postbox {
136
- text-align: center;
137
- }
138
-
139
- #side-sortables #help p {
140
- margin: 0;
141
- }
142
-
143
- #side-sortables .paypal {
144
- font-size: 18px;
145
- }
146
147
/* Support - addition section
148
-------------------------------------------------------------- */
@@ -157,13 +160,13 @@ h3.title {
157
-------------------------------------------------------------- */
158
@media (max-width: 860px) {
159
.inner-sidebar {
160
- display: none !important;
161
}
162
#support-addition {
163
display: block;
164
}
165
#post-body-content {
166
- margin-right: 0 !important;
167
}
168
}
169
@@ -175,10 +178,6 @@ h3.title {
175
.tab-page.active {
176
display: block;
177
}
178
- .tab-page li {
179
- font-family: Verdana, Geneva, sans-serif;
180
- font-size: 13px;
181
- }
182
183
/* Tabs navigation menu
184
-------------------------------------------------------------- */
@@ -191,25 +190,24 @@ h3.title {
191
display: -ms-flexbox;
192
display: flex;
193
height: 50px;
194
- margin: -11px 0px 18px 0px;
195
- background: #ffffff;
196
- border: 1px solid rgba(34, 36, 38, 0.15);
197
- box-shadow: 0px 1px 2px 0 rgba(34, 36, 38, 0.15);
198
- border-radius: 0.30rem;
199
}
200
.tabs-nav:after {
201
content: '';
202
display: block;
203
- height: 0px;
204
clear: both;
205
visibility: hidden;
206
}
207
-
208
.tabs-nav li {
209
position: relative;
210
display: block;
211
float: left;
212
- margin-bottom: 0px;
213
}
214
.tabs-nav li:first-of-type a {
215
border-radius: 3px 0 0 3px;
@@ -217,11 +215,11 @@ h3.title {
217
.tabs-nav li.active:before {
218
position: absolute;
219
content: '';
220
- top: 0%;
221
- right: 0px;
222
height: 100%;
223
width: 1px;
224
- background: rgba(34, 36, 38, 0.1);
225
}
226
.tabs-nav li.active:after {
227
background-color: #f2f2f2;
@@ -230,18 +228,21 @@ h3.title {
230
top: 100%;
231
left: 50%;
232
-webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
233
-ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
234
transform: translateX(-50%) translateY(-50%) rotate(45deg);
235
- margin: 0.8px 0em 0em;
236
width: 0.6em;
237
height: 0.6em;
238
border: none;
239
border-bottom: 1px solid #d4d4d5;
240
border-right: 1px solid #d4d4d5;
241
-webkit-transition: background 0.1s ease;
242
transition: background 0.1s ease;
243
}
244
-
245
.tabs-nav li a {
246
position: relative;
247
display: block;
@@ -251,31 +252,31 @@ h3.title {
251
color: grey;
252
border-left: 1px solid;
253
border-right: 1px solid;
254
- border-color: #ffffff;
255
}
256
.tabs-nav li a:hover,
257
.tabs-nav li a:focus {
258
text-decoration: none;
259
- background: rgba(0, 0, 0, 0.03);
260
- border-color: #eeeeee;
261
}
262
.tabs-nav li.active a,
263
.tabs-nav li.active a:hover,
264
.tabs-nav li.active a:focus {
265
- background: rgba(0, 0, 0, 0.05);
266
- color: rgba(0, 0, 0, 0.95);
267
font-weight: normal;
268
- border-color: #eeeeee;
269
- -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
270
- box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
271
}
272
-
273
- @media (max-width:500px) {
274
.tabs-nav li:last-of-type {
275
display: none;
276
}
277
}
278
- @media (max-width:413px) {
279
.tabs-nav li:nth-last-of-type(2) {
280
display: none;
281
}
@@ -287,7 +288,7 @@ h3.title {
287
margin-top: 10px;
288
}
289
.panel-heading a {
290
- text-decoration: none !important;
291
}
292
.panel-title,
293
.panel-title:before,
@@ -295,18 +296,17 @@ h3.title {
295
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
296
font-size: 16px;
297
font-weight: 400;
298
- color: #6d6d6d !important;
299
- text-shadow: 1px 1px 0px #fff;
300
}
301
- .panel-title:before {
302
content: "Q.";
303
display: inline-block;
304
- color: red !important;
305
padding-right: 8px;
306
}
307
.panel-title:after {
308
content: "\25BC";
309
- display: inline-block;
310
float: right;
311
margin: 0;
312
background: none;
@@ -318,9 +318,9 @@ h3.title {
318
display: inline;
319
}
320
.panel-body:before {
321
- content: "A." !important;
322
- display: inline-block !important;
323
- color: #00a5e2 !important;
324
padding-right: 8px;
325
}
326
.panel-body {
@@ -343,23 +343,24 @@ h3.title {
343
.custom-counter li {
344
counter-increment: step-counter;
345
margin-bottom: 15px;
346
}
347
.custom-counter li::before {
348
content: counter(step-counter);
349
margin-left: -30px;
350
margin-right: 8px;
351
font-size: 90%;
352
- background-color: rgb(0,200,200);
353
- color: white;
354
font-weight: bold;
355
- padding: 4px 7px;
356
border-radius: 50%;
357
}
358
359
/* WordPress Color Picker
360
-------------------------------------------------------------- */
361
.wp-picker-container a {
362
- text-decoration: none !important;
363
}
364
.wp-color-result {
365
height: 30px;
@@ -371,7 +372,7 @@ h3.title {
371
/* ON/OFF Buttons
372
-------------------------------------------------------------- */
373
.btn {
374
- border-radius: 0 !important;
375
}
376
377
/* Form-table
@@ -395,13 +396,13 @@ h3.title {
395
td.help-text {
396
width: 90%;
397
font-family: Verdana, Geneva, sans-serif;
398
- font-size: 12px !important;
399
font-style: italic;
400
float: left;
401
clear: left;
402
color: #797979;
403
line-height: 15px;
404
- padding-top: 0px !important;
405
}
406
407
/* INPUT and TEXTAREA
@@ -413,7 +414,6 @@ textarea {
413
.form-table input[type=text] {
414
max-width: 90%;
415
}
416
-
417
textarea,
418
.form-table input[type=text] {
419
padding-top: 5px;
@@ -422,9 +422,9 @@ textarea,
422
-moz-border-radius: 3px;
423
border-radius: 3px;
424
position: relative;
425
- -webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.2);
426
- -moz-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.2);
427
- box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.2);
428
}
429
430
/* SPECIFIC TO THIS PLUGIN
5
* @uthor Arthur Gareginyan
6
* @link https://www.arthurgareginyan.com
7
* @copyright Copyright (c) 2016-2017 Arthur Gareginyan. All Rights Reserved.
8
+ * @since 4.5
9
*/
10
11
12
/* Main
13
-------------------------------------------------------------- */
14
body {
15
+ background: #f1f1f1;
16
}
17
p {
18
font-family: Verdana, Geneva, sans-serif;
19
}
20
.postbox a {
21
text-decoration: none;
24
/* Title and Description of page
25
-------------------------------------------------------------- */
26
h2 {
27
+ padding: 30px !important;
28
background-color: #333;
29
+ color: #e0dfdc;
30
+ font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
31
font-size: 60px !important;
32
text-align: center;
33
text-transform: uppercase;
41
0 6px 0 #1a1a1a,
42
0 7px 0 #161616,
43
0 8px 0 #121212,
44
+ 0 22px 30px #000000;
45
+ letter-spacing: 0.1em;
46
line-height: 50px !important;
47
overflow: hidden;
48
}
49
h2 span {
50
content: '\A';
51
+ display: block;
52
margin-top: 15px;
53
font-size: 16px;
54
text-shadow: none;
55
+ line-height: 20px;
56
}
57
h2 span a,
58
h2 span a:hover {
59
+ color: #fff;
60
}
61
h2 span a:hover {
62
text-shadow: none;
63
text-decoration: none;
64
-webkit-transition: all 0.2s ease-in-out;
65
+ -moz-transition: all 0.2s ease-in-out;
66
+ -o-transition: all 0.2s ease-in-out;
67
transition: all 0.2s ease-in-out;
68
}
69
h2 .version {
71
right: 40px;
72
color: #a6a6a6;
73
text-shadow: none;
74
+ letter-spacing: 0.1em;
75
}
76
77
/* Titles and Descriptions of sections
78
-------------------------------------------------------------- */
79
+ .title {
80
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
81
font-size: 16px !important;
82
font-weight: 400;
86
/* Modal - PopUp windows
87
-------------------------------------------------------------- */
88
.modal-dialog {
89
+ margin-top: 15%;
90
}
91
.hello-message .modal-body {
92
height: 180px;
116
/* Notes
117
-------------------------------------------------------------- */
118
.note {
119
+ padding: 0.3em 1em;
120
border-left: 3px solid #05c2ff;
121
border-right: 3px solid #05c2ff;
122
+ background: #eafaff;
123
font-family: Verdana, Geneva, sans-serif;
124
color: #646464;
125
padding-left: 15px;
126
letter-spacing: 0.1px;
128
129
/* Sidebar
130
-------------------------------------------------------------- */
131
+ #side-sortables {
132
+ position: relative;
133
+ }
134
+ #side-sortables .postbox {
135
+ text-align: center;
136
+ }
137
+ #side-sortables .paypal {
138
+ max-width: 100%;
139
+ font-size: 18px;
140
+ overflow: hidden;
141
+ }
142
+ #side-sortables .banner .inside {
143
+ margin: 0;
144
+ padding: 5px 0;
145
+ }
146
+ #side-sortables .banner img {
147
+ width: 265px;
148
+ }
149
150
/* Support - addition section
151
-------------------------------------------------------------- */
160
-------------------------------------------------------------- */
161
@media (max-width: 860px) {
162
.inner-sidebar {
163
+ display: none;
164
}
165
#support-addition {
166
display: block;
167
}
168
#post-body-content {
169
+ margin-right: 0;
170
}
171
}
172
178
.tab-page.active {
179
display: block;
180
}
181
182
/* Tabs navigation menu
183
-------------------------------------------------------------- */
190
display: -ms-flexbox;
191
display: flex;
192
height: 50px;
193
+ margin: -11px 0 18px 0;
194
+ background: #fff;
195
+ border: 1px solid #d9d9d9;
196
+ box-shadow: 0 1px 2px 0 #d9d9d9;
197
+ border-radius: 0.3rem;
198
}
199
.tabs-nav:after {
200
content: '';
201
display: block;
202
+ height: 0;
203
clear: both;
204
visibility: hidden;
205
}
206
.tabs-nav li {
207
position: relative;
208
display: block;
209
float: left;
210
+ margin-bottom: 0;
211
}
212
.tabs-nav li:first-of-type a {
213
border-radius: 3px 0 0 3px;
215
.tabs-nav li.active:before {
216
position: absolute;
217
content: '';
218
+ top: 0;
219
+ right: 0;
220
height: 100%;
221
width: 1px;
222
+ background: #f2f2f2;
223
}
224
.tabs-nav li.active:after {
225
background-color: #f2f2f2;
228
top: 100%;
229
left: 50%;
230
-webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
231
+ -moz-transform: translateX(-50%) translateY(-50%) rotate(45deg);
232
+ -o-transform: translateX(-50%) translateY(-50%) rotate(45deg);
233
-ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
234
transform: translateX(-50%) translateY(-50%) rotate(45deg);
235
+ margin: 0.8px 0 0;
236
width: 0.6em;
237
height: 0.6em;
238
border: none;
239
border-bottom: 1px solid #d4d4d5;
240
border-right: 1px solid #d4d4d5;
241
-webkit-transition: background 0.1s ease;
242
+ -moz-transition: background 0.1s ease;
243
+ -o-transition: background 0.1s ease;
244
transition: background 0.1s ease;
245
}
246
.tabs-nav li a {
247
position: relative;
248
display: block;
252
color: grey;
253
border-left: 1px solid;
254
border-right: 1px solid;
255
+ border-color: #fff;
256
}
257
.tabs-nav li a:hover,
258
.tabs-nav li a:focus {
259
text-decoration: none;
260
+ background: #f8f8f8;
261
+ border-color: #eee;
262
}
263
.tabs-nav li.active a,
264
.tabs-nav li.active a:hover,
265
.tabs-nav li.active a:focus {
266
+ background: #f4f4f4;
267
+ color: #000;
268
font-weight: normal;
269
+ border-color: #eee;
270
+ -webkit-box-shadow: inset 0 3px 5px #d9d9d9;
271
+ -moz-box-shadow: inset 0 3px 5px #d9d9d9;
272
+ box-shadow: inset 0 3px 5px #d9d9d9;
273
}
274
+ @media (max-width: 500px) {
275
.tabs-nav li:last-of-type {
276
display: none;
277
}
278
}
279
+ @media (max-width: 413px) {
280
.tabs-nav li:nth-last-of-type(2) {
281
display: none;
282
}
288
margin-top: 10px;
289
}
290
.panel-heading a {
291
+ text-decoration: none;
292
}
293
.panel-title,
294
.panel-title:before,
296
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
297
font-size: 16px;
298
font-weight: 400;
299
+ color: #6d6d6d;
300
+ text-shadow: 1px 1px 0 #fff;
301
}
302
+ .panel-title:before {
303
content: "Q.";
304
display: inline-block;
305
+ color: red;
306
padding-right: 8px;
307
}
308
.panel-title:after {
309
content: "\25BC";
310
float: right;
311
margin: 0;
312
background: none;
318
display: inline;
319
}
320
.panel-body:before {
321
+ content: "A.";
322
+ display: inline-block;
323
+ color: #00a5e2;
324
padding-right: 8px;
325
}
326
.panel-body {
343
.custom-counter li {
344
counter-increment: step-counter;
345
margin-bottom: 15px;
346
+ font-family: Verdana, Geneva, sans-serif;
347
}
348
.custom-counter li::before {
349
content: counter(step-counter);
350
margin-left: -30px;
351
margin-right: 8px;
352
+ padding: 4px 7px;
353
font-size: 90%;
354
font-weight: bold;
355
+ background-color: #00c8c8;
356
+ color: white;
357
border-radius: 50%;
358
}
359
360
/* WordPress Color Picker
361
-------------------------------------------------------------- */
362
.wp-picker-container a {
363
+ text-decoration: none;
364
}
365
.wp-color-result {
366
height: 30px;
372
/* ON/OFF Buttons
373
-------------------------------------------------------------- */
374
.btn {
375
+ border-radius: 0;
376
}
377
378
/* Form-table
396
td.help-text {
397
width: 90%;
398
font-family: Verdana, Geneva, sans-serif;
399
+ font-size: 12px;
400
font-style: italic;
401
float: left;
402
clear: left;
403
color: #797979;
404
line-height: 15px;
405
+ padding-top: 0;
406
}
407
408
/* INPUT and TEXTAREA
414
.form-table input[type=text] {
415
max-width: 90%;
416
}
417
textarea,
418
.form-table input[type=text] {
419
padding-top: 5px;
422
-moz-border-radius: 3px;
423
border-radius: 3px;
424
position: relative;
425
+ -webkit-box-shadow: inset 0 1px 1px #f4f4f4, 0 1px 0 #d9d9d9;
426
+ -moz-box-shadow: inset 0 1px 1px #f4f4f4, 0 1px 0 #d9d9d9;
427
+ box-shadow: inset 0 1px 1px #f4f4f4, 0 1px 0 #d9d9d9;
428
}
429
430
/* SPECIFIC TO THIS PLUGIN
inc/js/admin.js CHANGED
@@ -5,7 +5,7 @@
5
* @uthor Arthur Gareginyan
6
* @link https://www.arthurgareginyan.com
7
* @copyright Copyright (c) 2016-2017 Arthur Gareginyan. All Rights Reserved.
8
- * @since 4.4.1
9
*/
10
11
@@ -13,25 +13,25 @@ jQuery(document).ready(function($) {
13
14
"use strict";
15
16
- // Remove the "successful" message after 3 seconds
17
- if (".updated") {
18
setTimeout(function() {
19
- $(".updated").fadeOut();
20
}, 3000);
21
}
22
23
- // Dynamic content
24
- $( ".include-tab-author" ).load( "https://mycyberuniverse.com/public-files/dynamic-content/page-for-include.html #include-tab-author" );
25
- $( ".include-tab-support" ).load( "https://mycyberuniverse.com/public-files/dynamic-content/page-for-include.html #include-tab-support" );
26
- $( ".include-tab-family" ).load( "https://mycyberuniverse.com/public-files/dynamic-content/page-for-include.html #include-tab-family" );
27
- $( ".additional-css" ).load( "https://mycyberuniverse.com/public-files/dynamic-content/styles.html" );
28
29
// Add questions and answers into spoilers and color them in different colors
30
- $(".panel-group .panel").each(function(i) {
31
- $( ".question-" + (i+1) ).appendTo( $("h4", this) );
32
- $( ".answer-" + (i+1) ).appendTo( $(".panel-body", this) );
33
34
- if ( $(this).find("h4 div").hasClass('question-red') ) {
35
$(this).addClass('panel-danger');
36
} else {
37
$(this).addClass('panel-info');
5
* @uthor Arthur Gareginyan
6
* @link https://www.arthurgareginyan.com
7
* @copyright Copyright (c) 2016-2017 Arthur Gareginyan. All Rights Reserved.
8
+ * @since 4.5
9
*/
10
11
13
14
"use strict";
15
16
+ // Remove the 'successful' message after 3 seconds
17
+ if ('.updated') {
18
setTimeout(function() {
19
+ $('.updated').fadeOut();
20
}, 3000);
21
}
22
23
+ // Add dynamic content to page tabs. Needed for having an up to date content.
24
+ $('.include-tab-author').load('https://www.spacexchimp.com/assets/dynamic-content/plugins.html #include-tab-author');
25
+ $('.include-tab-support').load('https://www.spacexchimp.com/assets/dynamic-content/plugins.html #include-tab-support');
26
+ $('.include-tab-store').load('https://www.spacexchimp.com/assets/dynamic-content/plugins.html #include-tab-store');
27
+ $('.include-banner').load('https://www.spacexchimp.com/assets/dynamic-content/plugins.html #include-banner');
28
29
// Add questions and answers into spoilers and color them in different colors
30
+ $('.panel-group .panel').each(function(i) {
31
+ $('.question-' + (i+1) ).appendTo( $('h4', this) );
32
+ $('.answer-' + (i+1) ).appendTo( $('.panel-body', this) );
33
34
+ if ( $(this).find('h4 div').hasClass('question-red') ) {
35
$(this).addClass('panel-danger');
36
} else {
37
$(this).addClass('panel-info');
inc/php/enqueue.php CHANGED
@@ -10,7 +10,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
/**
11
* Load scripts and style sheet for settings page
12
*
13
- * @since 4.4
14
*/
15
function allmetatags_load_scripts_admin( $hook ) {
16
@@ -28,16 +28,16 @@ function allmetatags_load_scripts_admin( $hook ) {
28
// Load jQuery library
29
wp_enqueue_script( 'jquery' );
30
31
// Style sheet
32
wp_enqueue_style( $prefix . '-admin-css', $url . 'inc/css/admin.css' );
33
34
// JavaScript
35
wp_enqueue_script( $prefix . '-admin-js', $url . 'inc/js/admin.js', array(), false, true );
36
37
- // Bootstrap library
38
- wp_enqueue_style( $prefix . '-bootstrap-css', $url . 'inc/lib/bootstrap/bootstrap.css' );
39
- wp_enqueue_style( $prefix . '-bootstrap-theme-css', $url . 'inc/lib/bootstrap/bootstrap-theme.css' );
40
- wp_enqueue_script( $prefix . '-bootstrap-js', $url . 'inc/lib/bootstrap/bootstrap.js' );
41
-
42
}
43
add_action( 'admin_enqueue_scripts', ALLMT_PREFIX . '_load_scripts_admin' );
10
/**
11
* Load scripts and style sheet for settings page
12
*
13
+ * @since 4.5
14
*/
15
function allmetatags_load_scripts_admin( $hook ) {
16
28
// Load jQuery library
29
wp_enqueue_script( 'jquery' );
30
31
+ // Bootstrap library
32
+ wp_enqueue_style( $prefix . '-bootstrap-css', $url . 'inc/lib/bootstrap/bootstrap.css' );
33
+ wp_enqueue_style( $prefix . '-bootstrap-theme-css', $url . 'inc/lib/bootstrap/bootstrap-theme.css' );
34
+ wp_enqueue_script( $prefix . '-bootstrap-js', $url . 'inc/lib/bootstrap/bootstrap.js' );
35
+
36
// Style sheet
37
wp_enqueue_style( $prefix . '-admin-css', $url . 'inc/css/admin.css' );
38
39
// JavaScript
40
wp_enqueue_script( $prefix . '-admin-js', $url . 'inc/js/admin.js', array(), false, true );
41
42
}
43
add_action( 'admin_enqueue_scripts', ALLMT_PREFIX . '_load_scripts_admin' );
inc/php/functional.php CHANGED
@@ -8,27 +8,18 @@
8
defined( 'ABSPATH' ) or die( "Restricted access!" );
9
10
/**
11
- * Render fields for saving settings data to BD
12
*
13
- * @since 4.1
14
*/
15
function allmetatags_field( $name, $label, $placeholder, $help=null, $link=null, $textarea=null ) {
16
17
- // Read options from BD
18
$options = get_option( ALLMT_SETTINGS . '_settings' );
19
-
20
- if ( !empty( $options[$name] ) ) {
21
- $value = esc_attr( $options[$name] );
22
- } else {
23
- $value = "";
24
- }
25
26
// Generate the table
27
- if ( !empty( $link ) ) {
28
- $link_out = "<a href='$link' target='_blank'>$label</a>";
29
- } else {
30
- $link_out = "$label";
31
- }
32
33
if ( !empty( $textarea ) ) {
34
$field_out = "<textarea cols='50' rows='3' name='" . ALLMT_SETTINGS . "_settings[$name]' placeholder='$placeholder'>$value</textarea>";
@@ -67,7 +58,7 @@ function allmetatags_field( $name, $label, $placeholder, $help=null, $link=null,
67
*/
68
function allmetatags_add_meta_tags() {
69
70
- // Read options from BD
71
$options = get_option( ALLMT_SETTINGS . '_settings' );
72
73
// Sanitiz data and declare variables
8
defined( 'ABSPATH' ) or die( "Restricted access!" );
9
10
/**
11
+ * Render fields for saving settings data to database
12
*
13
+ * @since 4.5
14
*/
15
function allmetatags_field( $name, $label, $placeholder, $help=null, $link=null, $textarea=null ) {
16
17
+ // Read options from database and declare variables
18
$options = get_option( ALLMT_SETTINGS . '_settings' );
19
+ $value = !empty( $options[$name] ) ? esc_attr( $options[$name] ) : '';
20
21
// Generate the table
22
+ $link_out = !empty( $link ) ? "<a href='$link' target='_blank'>$label</a>" : "$label";
23
24
if ( !empty( $textarea ) ) {
25
$field_out = "<textarea cols='50' rows='3' name='" . ALLMT_SETTINGS . "_settings[$name]' placeholder='$placeholder'>$value</textarea>";
58
*/
59
function allmetatags_add_meta_tags() {
60
61
+ // Read options from database
62
$options = get_option( ALLMT_SETTINGS . '_settings' );
63
64
// Sanitiz data and declare variables
inc/php/messages.php CHANGED
@@ -10,7 +10,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
/**
11
* Hello message - Bootstrap Modal
12
*
13
- * @since 4.4.1
14
*/
15
function allmetatags_hello_message() {
16
@@ -25,7 +25,7 @@ function allmetatags_hello_message() {
25
<div class="modal-dialog">
26
<div class="modal-content">
27
<div class="modal-body">
28
- <img src="https://mycyberuniverse.com/public-files/images/Arthur.png">
29
<button type="button" class="close" data-dismiss="modal">&times;</button>
30
<p><?php _e( 'Hello. I\'m Arthur, the author of this plugin.', ALLMT_TEXT ); ?></p>
31
<p><?php printf(
10
/**
11
* Hello message - Bootstrap Modal
12
*
13
+ * @since 4.5
14
*/
15
function allmetatags_hello_message() {
16
25
<div class="modal-dialog">
26
<div class="modal-content">
27
<div class="modal-body">
28
+ <img src="https://www.spacexchimp.com/assets/dynamic-content/images/avatar.png">
29
<button type="button" class="close" data-dismiss="modal">&times;</button>
30
<p><?php _e( 'Hello. I\'m Arthur, the author of this plugin.', ALLMT_TEXT ); ?></p>
31
<p><?php printf(
inc/php/page.php CHANGED
@@ -10,7 +10,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
/**
11
* Render Settings Page
12
*
13
- * @since 4.4.1
14
*/
15
function allmetatags_render_submenu_page() {
16
@@ -49,7 +49,7 @@ function allmetatags_render_submenu_page() {
49
<li><a href="#tab-faq" data-toggle="tab"><?php _e( 'F.A.Q.', $text ); ?></a></li>
50
<li><a href="#tab-author" data-toggle="tab"><?php _e( 'Author', $text ); ?></a></li>
51
<li><a href="#tab-support" data-toggle="tab"><?php _e( 'Support', $text ); ?></a></li>
52
- <li><a href="#tab-family" data-toggle="tab"><?php _e( 'Family', $text ); ?></a></li>
53
</ul>
54
<!-- END-TABS NAVIGATION MENU -->
55
@@ -213,8 +213,8 @@ function allmetatags_render_submenu_page() {
213
<!-- END-TAB 5 -->
214
215
<!-- TAB 6 -->
216
- <div class="tab-page fade" id="tab-family">
217
- <div class="include-tab-family"></div>
218
</div>
219
<!-- END-TAB 6 -->
220
10
/**
11
* Render Settings Page
12
*
13
+ * @since 4.5
14
*/
15
function allmetatags_render_submenu_page() {
16
49
<li><a href="#tab-faq" data-toggle="tab"><?php _e( 'F.A.Q.', $text ); ?></a></li>
50
<li><a href="#tab-author" data-toggle="tab"><?php _e( 'Author', $text ); ?></a></li>
51
<li><a href="#tab-support" data-toggle="tab"><?php _e( 'Support', $text ); ?></a></li>
52
+ <li><a href="#tab-store" data-toggle="tab"><?php _e( 'Store', $text ); ?></a></li>
53
</ul>
54
<!-- END-TABS NAVIGATION MENU -->
55
213
<!-- END-TAB 5 -->
214
215
<!-- TAB 6 -->
216
+ <div class="tab-page fade" id="tab-store">
217
+ <div class="include-tab-store"></div>
218
</div>
219
<!-- END-TAB 6 -->
220
inc/php/settings.php CHANGED
@@ -10,21 +10,21 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
/**
11
* Render Settings Tab
12
*
13
- * @since 4.4
14
*/
15
?>
16
<!-- SIDEBAR -->
17
<div class="inner-sidebar">
18
<div id="side-sortables" class="meta-box-sortabless ui-sortable">
19
20
- <div id="about" class="postbox">
21
<h3 class="title"><?php _e( 'About', $text ); ?></h3>
22
<div class="inside">
23
<p><?php _e( 'This plugin allows you to easily add Meta Tags to your website.', $text ); ?></p>
24
</div>
25
</div>
26
27
- <div id="support" class="postbox">
28
<h3 class="title"><?php _e( 'Support', $text ); ?></h3>
29
<div class="inside">
30
<p><?php _e( 'I\'m an independent developer, without a regular income, so every little contribution helps cover my costs and lets me spend more time building things for people like you to enjoy.', $text ); ?></p>
@@ -33,13 +33,15 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
33
</div>
34
</div>
35
36
- <div id="help" class="postbox">
37
<h3 class="title"><?php _e( 'Help', $text ); ?></h3>
38
<div class="inside">
39
<p><?php _e( 'If you have a question, please read the information in the FAQ section.', $text ); ?></p>
40
</div>
41
</div>
42
43
</div>
44
</div>
45
<!-- END-SIDEBAR -->
@@ -52,7 +54,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
52
<form action="options.php" method="post" enctype="multipart/form-data">
53
<?php settings_fields( ALLMT_SETTINGS . '_settings_group' ); ?>
54
55
- <div class="postbox" id="WebMasterTools">
56
<h3 class="title"><?php _e( 'Web Master Tools', $text ); ?></h3>
57
<div class="inside">
58
<p class="note"><?php _e( 'Webmaster Tools require you to verify your domain. This makes sure that you are the correct owner of your blog or store before they provide their services to you. You can use the options below to verify your domain. If your domain is already verified, you can just forget about these.', $text ); ?></p>
@@ -79,7 +81,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
79
</div>
80
</div>
81
82
- <div class="postbox" id="DomainVerification">
83
<h3 class="title"><?php _e( 'Domain Verification', $text ); ?></h3>
84
<div class="inside">
85
<p class="note"><?php _e( 'Third-party services like Alexa, Pinterest and Google-Plus require you to verify your domain. This makes sure that you are the correct owner of your blog or store before they provide their services to you. You can use the options below to verify your domain. If your domain is already verified, you can just forget about these.', $text ); ?></p>
@@ -137,7 +139,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
137
</div>
138
</div>
139
140
- <div class="postbox" id="Home">
141
<h3 class="title"><?php _e( 'Meta Tags for Static Home Page only', $text ); ?></h3>
142
<div class="inside">
143
<p class="note"><?php _e( 'You can use the options below to add meta tags such as Description and Keywords only in Static Home Page of your website.', $text ); ?></p>
@@ -161,7 +163,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
161
</div>
162
</div>
163
164
- <div class="postbox" id="Blog">
165
<h3 class="title"><?php _e( 'Meta Tags for Default Home Page and Blog Page only', $text ); ?></h3>
166
<div class="inside">
167
<p class="note"><?php _e( 'You can use the options below to add meta tags such as Description and Keywords only in Default Home Page and Blog Page of your website.', $text ); ?></p>
@@ -185,7 +187,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
185
</div>
186
</div>
187
188
- <div class="postbox" id="Everywhere">
189
<h3 class="title"><?php _e( 'Meta Tags for all website (Global)', $text ); ?></h3>
190
<div class="inside">
191
<p class="note"><?php _e( 'You can use the options below to add meta tags such as Author, Copyright and Keywords in everywhere on your website.', $text ); ?></p>
@@ -221,7 +223,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
221
</div>
222
</div>
223
224
- <div class="postbox" id="WooCommerce">
225
<h3 class="title"><?php _e( 'WooCommerce & Google Shopping', $text ); ?></h3>
226
<div class="inside">
227
<p><?php _e( 'This plugin automatically adds the necessary Google Shopping (Merchant Center) structured data on all WooCommerce product pages on your website. Here is the markup for women\'s T-shirt that sells for 16 dollars and 80 cents of US.', $text ); ?></p>
10
/**
11
* Render Settings Tab
12
*
13
+ * @since 4.5
14
*/
15
?>
16
<!-- SIDEBAR -->
17
<div class="inner-sidebar">
18
<div id="side-sortables" class="meta-box-sortabless ui-sortable">
19
20
+ <div class="postbox about">
21
<h3 class="title"><?php _e( 'About', $text ); ?></h3>
22
<div class="inside">
23
<p><?php _e( 'This plugin allows you to easily add Meta Tags to your website.', $text ); ?></p>
24
</div>
25
</div>
26
27
+ <div class="postbox support">
28
<h3 class="title"><?php _e( 'Support', $text ); ?></h3>
29
<div class="inside">
30
<p><?php _e( 'I\'m an independent developer, without a regular income, so every little contribution helps cover my costs and lets me spend more time building things for people like you to enjoy.', $text ); ?></p>
33
</div>
34
</div>
35
36
+ <div class="postbox help">
37
<h3 class="title"><?php _e( 'Help', $text ); ?></h3>
38
<div class="inside">
39
<p><?php _e( 'If you have a question, please read the information in the FAQ section.', $text ); ?></p>
40
</div>
41
</div>
42
43
+ <div class="include-banner"></div>
44
+
45
</div>
46
</div>
47
<!-- END-SIDEBAR -->
54
<form action="options.php" method="post" enctype="multipart/form-data">
55
<?php settings_fields( ALLMT_SETTINGS . '_settings_group' ); ?>
56
57
+ <div class="postbox" id="webmastertools">
58
<h3 class="title"><?php _e( 'Web Master Tools', $text ); ?></h3>
59
<div class="inside">
60
<p class="note"><?php _e( 'Webmaster Tools require you to verify your domain. This makes sure that you are the correct owner of your blog or store before they provide their services to you. You can use the options below to verify your domain. If your domain is already verified, you can just forget about these.', $text ); ?></p>
81
</div>
82
</div>
83
84
+ <div class="postbox" id="domainverification">
85
<h3 class="title"><?php _e( 'Domain Verification', $text ); ?></h3>
86
<div class="inside">
87
<p class="note"><?php _e( 'Third-party services like Alexa, Pinterest and Google-Plus require you to verify your domain. This makes sure that you are the correct owner of your blog or store before they provide their services to you. You can use the options below to verify your domain. If your domain is already verified, you can just forget about these.', $text ); ?></p>
139
</div>
140
</div>
141
142
+ <div class="postbox" id="home">
143
<h3 class="title"><?php _e( 'Meta Tags for Static Home Page only', $text ); ?></h3>
144
<div class="inside">
145
<p class="note"><?php _e( 'You can use the options below to add meta tags such as Description and Keywords only in Static Home Page of your website.', $text ); ?></p>
163
</div>
164
</div>
165
166
+ <div class="postbox" id="blog">
167
<h3 class="title"><?php _e( 'Meta Tags for Default Home Page and Blog Page only', $text ); ?></h3>
168
<div class="inside">
169
<p class="note"><?php _e( 'You can use the options below to add meta tags such as Description and Keywords only in Default Home Page and Blog Page of your website.', $text ); ?></p>
187
</div>
188
</div>
189
190
+ <div class="postbox" id="everywhere">
191
<h3 class="title"><?php _e( 'Meta Tags for all website (Global)', $text ); ?></h3>
192
<div class="inside">
193
<p class="note"><?php _e( 'You can use the options below to add meta tags such as Author, Copyright and Keywords in everywhere on your website.', $text ); ?></p>
223
</div>
224
</div>
225
226
+ <div class="postbox" id="woocommerce">
227
<h3 class="title"><?php _e( 'WooCommerce & Google Shopping', $text ); ?></h3>
228
<div class="inside">
229
<p><?php _e( 'This plugin automatically adds the necessary Google Shopping (Merchant Center) structured data on all WooCommerce product pages on your website. Here is the markup for women\'s T-shirt that sells for 16 dollars and 80 cents of US.', $text ); ?></p>
languages/all-meta-tags-es_ES.po CHANGED
@@ -72,7 +72,7 @@ msgid "Support"
72
msgstr "Soporte"
73
74
#: inc/php/page.php:52
75
- msgid "Family"
76
msgstr ""
77
78
#: inc/php/page.php:69
72
msgstr "Soporte"
73
74
#: inc/php/page.php:52
75
+ msgid "Store"
76
msgstr ""
77
78
#: inc/php/page.php:69
languages/all-meta-tags-es_MX.po CHANGED
@@ -76,7 +76,7 @@ msgid "Support"
76
msgstr "Soporte"
77
78
#: inc/php/page.php:52
79
- msgid "Family"
80
msgstr ""
81
82
#: inc/php/page.php:69
76
msgstr "Soporte"
77
78
#: inc/php/page.php:52
79
+ msgid "Store"
80
msgstr ""
81
82
#: inc/php/page.php:69
languages/all-meta-tags-it_IT.po CHANGED
@@ -72,7 +72,7 @@ msgid "Support"
72
msgstr ""
73
74
#: inc/php/page.php:52
75
- msgid "Family"
76
msgstr ""
77
78
#: inc/php/page.php:69
72
msgstr ""
73
74
#: inc/php/page.php:52
75
+ msgid "Store"
76
msgstr ""
77
78
#: inc/php/page.php:69
languages/all-meta-tags-ru_RU.po CHANGED
@@ -73,7 +73,7 @@ msgid "Support"
73
msgstr "Поддержка"
74
75
#: inc/php/page.php:52
76
- msgid "Family"
77
msgstr "Семья"
78
79
#: inc/php/page.php:69
73
msgstr "Поддержка"
74
75
#: inc/php/page.php:52
76
+ msgid "Store"
77
msgstr "Семья"
78
79
#: inc/php/page.php:69
languages/all-meta-tags.pot CHANGED
@@ -71,7 +71,7 @@ msgid "Support"
71
msgstr ""
72
73
#: inc/php/page.php:52
74
- msgid "Family"
75
msgstr ""
76
77
#: inc/php/page.php:69
71
msgstr ""
72
73
#: inc/php/page.php:52
74
+ msgid "Store"
75
msgstr ""
76
77
#: inc/php/page.php:69
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: meta, tag,tags, custom, simple, plugin, twitter, facebook, g+, google, goo
4
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
5
Requires at least: 3.9
6
Tested up to: 4.8
7
- Stable tag: 4.4.1
8
License: GPL3
9
License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
@@ -195,6 +195,16 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
195
196
== Changelog ==
197
198
= 4.4.1 =
199
* The HTTPS mixed content issue fixed by changing all links to HTTPS.
200
* Content of the "FAQ" section updated.
4
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
5
Requires at least: 3.9
6
Tested up to: 4.8
7
+ Stable tag: 4.5
8
License: GPL3
9
License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
195
196
== Changelog ==
197
198
+ = 4.5 =
199
+ * Stylesheet in the admin.css file improved.
200
+ * The '!important' declarations in the admin.css file removed.
201
+ * Code formatting in the admin.js file improved.
202
+ * Code commenting improved.
203
+ * Load of the additional remote CSS file removed from the admin.js file.
204
+ * Changed the sorting of enqueueing of scripts.
205
+ * The ''Family' page tab renamed to 'Store'.
206
+ * Added ad banner of my store website.
207
+
208
= 4.4.1 =
209
* The HTTPS mixed content issue fixed by changing all links to HTTPS.
210
* Content of the "FAQ" section updated.