All Meta Tags - Version 3.0

Version Description

  • The structure of files changed.
  • Style sheet of settings page improved and better commented.
  • Style sheet of settings page optimized for mobile devices.
  • Added JavaScript file for settings page.
  • Added JavaScript function of automatic remove the "successful" message after 3 seconds.
Download this release

Release Info

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

Code changes from version 2.0.1 to 3.0

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: http://www.arthurgareginyan.com
8
- * Version: 2.0.1
9
  * License: GPL3
10
  * Text Domain: all-meta-tags
11
  * Domain Path: /languages/
@@ -86,14 +86,14 @@ add_action( 'admin_menu', 'allmetatags_register_submenu_page' );
86
  /**
87
  * Attach Settings Page
88
  *
89
- * @since 2.0
90
  */
91
- require_once( ALLMT_PATH . 'inc/settings_page.php' );
92
 
93
  /**
94
  * Load scripts and style sheet for settings page
95
  *
96
- * @since 2.0
97
  */
98
  function allmetatags_load_scripts($hook) {
99
 
@@ -102,7 +102,12 @@ function allmetatags_load_scripts($hook) {
102
  return;
103
  }
104
 
105
- wp_enqueue_style('styles', ALLMT_URL . 'inc/style.css');
 
 
 
 
 
106
  }
107
  add_action('admin_enqueue_scripts', 'allmetatags_load_scripts');
108
 
5
  * Description: Easily and safely add your custom Meta Tags to WordPress website's header.
6
  * Author: Arthur Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
+ * Version: 3.0
9
  * License: GPL3
10
  * Text Domain: all-meta-tags
11
  * Domain Path: /languages/
86
  /**
87
  * Attach Settings Page
88
  *
89
+ * @since 3.0
90
  */
91
+ require_once( ALLMT_PATH . 'inc/php/settings_page.php' );
92
 
93
  /**
94
  * Load scripts and style sheet for settings page
95
  *
96
+ * @since 3.0
97
  */
98
  function allmetatags_load_scripts($hook) {
99
 
102
  return;
103
  }
104
 
105
+ // Style sheet
106
+ wp_enqueue_style( 'admin-css', ALLMT_URL . 'inc/css/admin.css' );
107
+
108
+ // JavaScript
109
+ wp_enqueue_script( 'admin-js', ALLMT_URL . 'inc/js/admin.js', array(), false, true );
110
+
111
  }
112
  add_action('admin_enqueue_scripts', 'allmetatags_load_scripts');
113
 
inc/css/admin.css ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Style sheet for plugin settings page
3
+ *
4
+ * Copyright (c) 2016 Arthur Gareginyan ( http://www.arthurgareginyan.com ).
5
+ * All Rights Reserved.
6
+ */
7
+
8
+
9
+ /* Titles
10
+ -------------------------------------------------------------- */
11
+ h2 {
12
+ text-align: center;
13
+ font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
14
+ }
15
+
16
+ h2 span {
17
+ margin-top: 1px;
18
+ font-size: 0.6em;
19
+ color: black;
20
+ display: inline;
21
+ padding: 0;
22
+ }
23
+
24
+ h2 span a {
25
+ display: inline;
26
+ padding: 0;
27
+ }
28
+
29
+ h3.title {
30
+ font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
31
+ border-bottom: 1px solid #eee;
32
+ }
33
+
34
+ /* Sidebar
35
+ -------------------------------------------------------------- */
36
+ #side-sortables {
37
+ position: relative;
38
+ }
39
+
40
+ #side-sortables .postbox {
41
+ text-align: center;
42
+ }
43
+
44
+ #side-sortables #help p {
45
+ margin: 0;
46
+ }
47
+
48
+ /* Responsive page
49
+ -------------------------------------------------------------- */
50
+ @media (max-width: 860px) {
51
+ .inner-sidebar {
52
+ display: none !important;
53
+ }
54
+ #post-body-content {
55
+ margin-right: 0 !important;
56
+ }
57
+ }
58
+
59
+ /* Help text
60
+ -------------------------------------------------------------- */
61
+ td.help-text {
62
+ font-style: italic;
63
+ font-size: 12px !important;
64
+ float: left;
65
+ clear: left;
66
+ color: #797979;
67
+ line-height: 15px;
68
+ padding-top: 0px !important;
69
+ }
70
+
71
+ /* Other
72
+ -------------------------------------------------------------- */
73
+ .form-table {
74
+ clear: none;
75
+ margin-top: 30px;
76
+ margin-left: 20px;
77
+ }
78
+
79
+ .form-table th,
80
+ .form-table td {
81
+ padding-bottom: 10px;
82
+ }
83
+
84
+ textarea,
85
+ .form-table input[type=text] {
86
+ max-width: 80%;
87
+ padding-top: 5px;
88
+ background: #fcfcfc;
89
+ -webkit-border-radius: 3px;
90
+ -moz-border-radius: 3px;
91
+ border-radius: 3px;
92
+ position: relative;
93
+ -webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.2);
94
+ -moz-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.2);
95
+ box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.2);
96
+ }
97
+
98
+ .postbox a {
99
+ text-decoration: none;
100
+ }
inc/{images → img}/btn_donateCC_LG.gif RENAMED
File without changes
inc/js/admin.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * JS functions for plugin settings page
3
+ *
4
+ * Copyright (c) 2016 Arthur Gareginyan ( http://www.arthurgareginyan.com ).
5
+ * All Rights Reserved.
6
+ */
7
+
8
+
9
+ jQuery(document).ready(function($) {
10
+
11
+ "use strict";
12
+
13
+ // Remove the "successful" message after 3 seconds
14
+ if (".updated") {
15
+ setTimeout(function() {
16
+ $(".updated").fadeOut();
17
+ }, 3000);
18
+ }
19
+
20
+ });
inc/{settings_page.php → php/settings_page.php} RENAMED
@@ -10,7 +10,7 @@ defined('ABSPATH') or die("Restricted access!");
10
  /**
11
  * Render Settings Page
12
  *
13
- * @since 2.0.1
14
  */
15
  function allmetatags_render_submenu_page() {
16
 
@@ -61,7 +61,7 @@ function allmetatags_render_submenu_page() {
61
  <div class="inside">
62
  <p><?php _e( 'If you like this plugin and find it useful, please help me to make this plugin even better and keep it up-to-date.', 'all-meta-tags' ); ?></p>
63
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" rel="nofollow">
64
- <img src="<?php echo plugins_url('images/btn_donateCC_LG.gif', __FILE__); ?>" alt="Make a donation">
65
  </a>
66
  <p><?php _e( 'Thanks for your support!', 'all-meta-tags' ); ?></p>
67
  </div>
10
  /**
11
  * Render Settings Page
12
  *
13
+ * @since 3.0
14
  */
15
  function allmetatags_render_submenu_page() {
16
 
61
  <div class="inside">
62
  <p><?php _e( 'If you like this plugin and find it useful, please help me to make this plugin even better and keep it up-to-date.', 'all-meta-tags' ); ?></p>
63
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" rel="nofollow">
64
+ <img src="<?php echo plugins_url('../img/btn_donateCC_LG.gif', __FILE__); ?>" alt="Make a donation">
65
  </a>
66
  <p><?php _e( 'Thanks for your support!', 'all-meta-tags' ); ?></p>
67
  </div>
inc/style.css DELETED
@@ -1,84 +0,0 @@
1
- /*
2
- * All Meta Tags
3
- * Style sheet for plugin's page
4
- * @since 2.0.1
5
- * @agareginyan
6
- */
7
-
8
-
9
- .aligncenter {
10
- text-align: center;
11
- }
12
-
13
- .form-table {
14
- clear: none;
15
- margin-top: 30px;
16
- }
17
-
18
- h2 {
19
- text-align: center;
20
- font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
21
- }
22
-
23
- h2 span {
24
- margin-top: 1px;
25
- font-size: 0.6em;
26
- color: black;
27
- display: inline;
28
- padding: 0;
29
- }
30
-
31
- h2 span a {
32
- display: inline;
33
- padding: 0;
34
- }
35
-
36
- h3.title {
37
- font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
38
- border-bottom: 1px solid #eee;
39
- }
40
-
41
- .inner-sidebar h3.title {
42
- text-align: center;
43
- }
44
-
45
- td.help-text {
46
- font-style: italic;
47
- font-size: 12px !important;
48
- float: left;
49
- clear: left;
50
- color: #797979;
51
- line-height: 15px;
52
- padding-top: 0px !important;
53
- }
54
-
55
- .postbox a {
56
- text-decoration: none;
57
- }
58
-
59
- #side-sortables {
60
- position: relative;
61
- }
62
-
63
- #about {
64
- text-align: center;
65
- }
66
-
67
- #using {
68
- text-align: center;
69
- }
70
-
71
- #help {
72
- text-align: center;
73
- }
74
- #help p {
75
- margin: 0;
76
- }
77
-
78
- #donate {
79
- text-align: center;
80
- }
81
-
82
- #advertisement {
83
- text-align: center;
84
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.6
7
- Stable tag: 2.0
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -155,6 +155,12 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
155
  * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/all-meta-tags)
156
 
157
  == Changelog ==
 
 
 
 
 
 
158
  = 2.0.1 =
159
  * POT file updated.
160
  * Russian translation updated.
@@ -200,6 +206,8 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
200
 
201
 
202
  == Upgrade Notice ==
 
 
203
  = 2.0 =
204
  Please update to new release!
205
  = 1.0 =
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.6
7
+ Stable tag: 3.0
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
155
  * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/all-meta-tags)
156
 
157
  == Changelog ==
158
+ = 3.0 =
159
+ * The structure of files changed.
160
+ * Style sheet of settings page improved and better commented.
161
+ * Style sheet of settings page optimized for mobile devices.
162
+ * Added JavaScript file for settings page.
163
+ * Added JavaScript function of automatic remove the "successful" message after 3 seconds.
164
  = 2.0.1 =
165
  * POT file updated.
166
  * Russian translation updated.
206
 
207
 
208
  == Upgrade Notice ==
209
+ = 3.0 =
210
+ Please update to new release!
211
  = 2.0 =
212
  Please update to new release!
213
  = 1.0 =