Version Description
- Mar 8, 2021 =
- Maintenance: Ensure compatibility with upcoming WordPress 5.7.
- Maintenance: Processing of options has been improved. Direct retrieving of options from the database is replaced by the "options" callback. The "options.php" file with the "options" function added.
- Maintenance: The contents of PHP files have been optimised; Code formatting and commenting improved. The "prepare" function renamed to "generator".
Download this release
Release Info
Developer | Arthur Gareginyan |
Plugin | All Meta Tags |
Version | 4.46 |
Comparing to | |
See all releases |
Code changes from version 4.45 to 4.46
- all-meta-tags.php +3 -2
- inc/php/enqueue.php +0 -1
- inc/php/functional.php +58 -82
- inc/php/inline-js.php +4 -11
- inc/php/messages.php +2 -2
- inc/php/options.php +79 -0
- languages/all-meta-tags-de_DE.mo +0 -0
- languages/all-meta-tags-de_DE.po +2 -2
- languages/all-meta-tags-es_ES.mo +0 -0
- languages/all-meta-tags-es_ES.po +2 -2
- languages/all-meta-tags-es_MX.mo +0 -0
- languages/all-meta-tags-es_MX.po +2 -2
- languages/all-meta-tags-fr_FR.mo +0 -0
- languages/all-meta-tags-fr_FR.po +2 -2
- languages/all-meta-tags-it_IT.mo +0 -0
- languages/all-meta-tags-it_IT.po +2 -2
- languages/all-meta-tags-nl_NL.mo +0 -0
- languages/all-meta-tags-nl_NL.po +2 -2
- languages/all-meta-tags-ru_RU.mo +0 -0
- languages/all-meta-tags-ru_RU.po +2 -2
- languages/all-meta-tags.pot +1 -1
- readme.txt +10 -4
all-meta-tags.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Easily and safely add your custom meta tags to the WordPress website's head section. This is a must have tool for authors and website's owners.
|
6 |
* Author: Space X-Chimp
|
7 |
* Author URI: https://www.spacexchimp.com
|
8 |
-
* Version: 4.
|
9 |
* License: GPL3
|
10 |
* Text Domain: all-meta-tags
|
11 |
* Domain Path: /languages/
|
@@ -68,7 +68,7 @@ spacexchimp_p004_define_constants( 'PREFIX', 'spacexchimp_p004' );
|
|
68 |
spacexchimp_p004_define_constants( 'SETTINGS', 'spacexchimp_p004' );
|
69 |
|
70 |
/**
|
71 |
-
* A useful function that returns an array with the contents of plugin constants
|
72 |
*/
|
73 |
function spacexchimp_p004_plugin() {
|
74 |
$array = array(
|
@@ -96,6 +96,7 @@ $plugin = spacexchimp_p004_plugin();
|
|
96 |
* Load the plugin modules
|
97 |
*/
|
98 |
require_once( $plugin['path'] . 'inc/php/core.php' );
|
|
|
99 |
require_once( $plugin['path'] . 'inc/php/upgrade.php' );
|
100 |
require_once( $plugin['path'] . 'inc/php/versioning.php' );
|
101 |
require_once( $plugin['path'] . 'inc/php/enqueue.php' );
|
5 |
* Description: Easily and safely add your custom meta tags to the WordPress website's head section. This is a must have tool for authors and website's owners.
|
6 |
* Author: Space X-Chimp
|
7 |
* Author URI: https://www.spacexchimp.com
|
8 |
+
* Version: 4.46
|
9 |
* License: GPL3
|
10 |
* Text Domain: all-meta-tags
|
11 |
* Domain Path: /languages/
|
68 |
spacexchimp_p004_define_constants( 'SETTINGS', 'spacexchimp_p004' );
|
69 |
|
70 |
/**
|
71 |
+
* A useful function that returns an array with the contents of the plugin constants
|
72 |
*/
|
73 |
function spacexchimp_p004_plugin() {
|
74 |
$array = array(
|
96 |
* Load the plugin modules
|
97 |
*/
|
98 |
require_once( $plugin['path'] . 'inc/php/core.php' );
|
99 |
+
require_once( $plugin['path'] . 'inc/php/options.php' );
|
100 |
require_once( $plugin['path'] . 'inc/php/upgrade.php' );
|
101 |
require_once( $plugin['path'] . 'inc/php/versioning.php' );
|
102 |
require_once( $plugin['path'] . 'inc/php/enqueue.php' );
|
inc/php/enqueue.php
CHANGED
@@ -74,6 +74,5 @@ function spacexchimp_p004_load_scripts_admin( $hook ) {
|
|
74 |
|
75 |
// Call the function that enqueue the CodeMirror library
|
76 |
spacexchimp_p004_load_scripts_codemirror();
|
77 |
-
|
78 |
}
|
79 |
add_action( 'admin_enqueue_scripts', $plugin['prefix'] . '_load_scripts_admin' );
|
74 |
|
75 |
// Call the function that enqueue the CodeMirror library
|
76 |
spacexchimp_p004_load_scripts_codemirror();
|
|
|
77 |
}
|
78 |
add_action( 'admin_enqueue_scripts', $plugin['prefix'] . '_load_scripts_admin' );
|
inc/php/functional.php
CHANGED
@@ -7,127 +7,101 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
|
|
7 |
|
8 |
/**
|
9 |
* Generate the custom meta tags
|
|
|
10 |
*/
|
11 |
-
function
|
12 |
|
13 |
// Put value of plugin constants into an array for easier access
|
14 |
$plugin = spacexchimp_p004_plugin();
|
15 |
|
16 |
-
//
|
17 |
-
$options =
|
18 |
-
|
19 |
-
// Sanitize data and declare variables
|
20 |
-
$google = esc_textarea( $options['google'] );
|
21 |
-
$bing = esc_textarea( $options['bing'] );
|
22 |
-
$yandex = esc_textarea( $options['yandex'] );
|
23 |
-
|
24 |
-
$alexa = esc_textarea( $options['alexa'] );
|
25 |
-
$pinterest = esc_textarea( $options['pinterest'] );
|
26 |
-
$google_author = esc_textarea( $options['google_author'] );
|
27 |
-
$facebook = esc_textarea( $options['facebook'] );
|
28 |
-
$twitter = esc_textarea( $options['twitter'] );
|
29 |
-
$norton = esc_textarea( $options['norton'] );
|
30 |
-
$wot = esc_textarea( $options['wot'] );
|
31 |
-
$specificfeeds = esc_textarea( $options['specificfeeds'] );
|
32 |
-
$custom_meta = $options['custom_meta'];
|
33 |
-
|
34 |
-
$home_description = esc_textarea( $options['home_description'] );
|
35 |
-
$home_keywords = esc_textarea( $options['home_keywords'] );
|
36 |
-
|
37 |
-
$blog_description = esc_textarea( $options['blog_description'] );
|
38 |
-
$blog_keywords = esc_textarea( $options['blog_keywords'] );
|
39 |
-
|
40 |
-
$author = esc_textarea( $options['author'] );
|
41 |
-
$designer = esc_textarea( $options['designer'] );
|
42 |
-
$contact = esc_textarea( $options['contact'] );
|
43 |
-
$copyright = esc_textarea( $options['copyright'] );
|
44 |
-
$keywords = esc_textarea( $options['keywords'] );
|
45 |
|
46 |
$array = array();
|
47 |
|
48 |
// Web Master Tools
|
49 |
-
if ( ! empty( $google ) ) {
|
50 |
-
$array[] = "<meta name='google-site-verification' content='$google' />";
|
51 |
}
|
52 |
-
if ( ! empty( $yandex ) ) {
|
53 |
-
$array[] = "<meta name='yandex-verification' content='$yandex' />";
|
54 |
}
|
55 |
-
if ( ! empty( $bing ) ) {
|
56 |
-
$array[] = "<meta name='msvalidate.01' content='$bing' />";
|
57 |
}
|
58 |
|
59 |
// Website Verification Services
|
60 |
-
if ( ! empty( $pinterest ) ) {
|
61 |
-
$array[] = "<meta name='p:domain_verify' content='$pinterest' />";
|
62 |
}
|
63 |
-
if ( ! empty( $google_author ) ) {
|
64 |
-
$array[] = "<link rel='author' href='$google_author'>";
|
65 |
}
|
66 |
-
if ( ! empty( $facebook ) ) {
|
67 |
-
$array[] = "<meta name='article:publisher' content='$facebook' />";
|
68 |
}
|
69 |
-
if ( ! empty( $twitter ) ) {
|
70 |
-
$array[] = "<meta name='twitter:site' content='$twitter' />";
|
71 |
-
$array[] = "<meta name='twitter:creator' content='$twitter' />";
|
72 |
}
|
73 |
-
if ( ! empty( $alexa ) ) {
|
74 |
-
$array[] = "<meta name='alexaVerifyID' content='$alexa' />";
|
75 |
}
|
76 |
-
if ( ! empty( $norton ) ) {
|
77 |
-
$array[] = "<meta name='norton-safeweb-site-verification' content='$norton' />";
|
78 |
}
|
79 |
-
if ( ! empty( $wot ) ) {
|
80 |
-
$array[] = "<meta name='wot-verification' content='$wot' />";
|
81 |
}
|
82 |
-
if ( ! empty( $specificfeeds ) ) {
|
83 |
-
$array[] = "<meta name='specificfeeds-verification-code' content='$specificfeeds' />";
|
84 |
}
|
85 |
-
if ( ! empty( $custom_meta ) ) {
|
86 |
-
$array[] = $custom_meta;
|
87 |
}
|
88 |
|
89 |
// Custom meta tags for specific pages
|
90 |
if ( is_front_page() && is_home() ) {
|
91 |
// Default Home Page
|
92 |
-
if ( ! empty( $
|
93 |
-
$array[] = "<meta name='description' content='$blog_description' />";
|
94 |
}
|
95 |
-
if ( ! empty( $
|
96 |
-
$array[] = "<meta name='keywords' content='$blog_keywords' />";
|
97 |
}
|
98 |
} elseif ( is_front_page() ) {
|
99 |
// Static Home Page
|
100 |
-
if ( ! empty( $home_description ) ) {
|
101 |
-
$array[] = "<meta name='description' content='$home_description' />";
|
102 |
}
|
103 |
-
if ( ! empty( $home_keywords ) ) {
|
104 |
-
$array[] = "<meta name='keywords' content='$home_keywords' />";
|
105 |
}
|
106 |
} elseif ( is_home() ) {
|
107 |
// Blog Page
|
108 |
-
if ( ! empty( $
|
109 |
-
$array[] = "<meta name='description' content='$blog_description' />";
|
110 |
}
|
111 |
-
if ( ! empty( $
|
112 |
-
$array[] = "<meta name='keywords' content='$blog_keywords' />";
|
113 |
}
|
114 |
}
|
115 |
|
116 |
// Custom meta tags for the entire website
|
117 |
-
if ( ! empty( $author ) ) {
|
118 |
-
$array[] = "<meta name='author' content='$author' />";
|
119 |
}
|
120 |
-
if ( ! empty( $designer ) ) {
|
121 |
-
$array[] = "<meta name='designer' content='$designer' />";
|
122 |
}
|
123 |
-
if ( ! empty( $contact ) ) {
|
124 |
-
$array[] = "<meta name='contact' content='$contact' />";
|
125 |
}
|
126 |
-
if ( ! empty( $copyright ) ) {
|
127 |
-
$array[] = "<meta name='copyright' content='$copyright' />";
|
128 |
}
|
129 |
-
if ( ! empty( $keywords ) ) {
|
130 |
-
$array[] = "<meta name='keywords' content='$keywords' />";
|
131 |
}
|
132 |
|
133 |
// WooCommerce & Google Shopping (Merchant Center)
|
@@ -168,30 +142,32 @@ function spacexchimp_p004_prepare() {
|
|
168 |
array_push( $array, "<!-- [END] Metadata added via All-Meta-Tags plugin by Space X-Chimp ( https://www.spacexchimp.com ) -->" );
|
169 |
}
|
170 |
|
171 |
-
// Return the
|
172 |
return $array;
|
173 |
}
|
174 |
|
175 |
/**
|
176 |
* Process the custom meta tags
|
|
|
177 |
*/
|
178 |
function spacexchimp_p004_exec() {
|
179 |
echo PHP_EOL,
|
180 |
-
implode(PHP_EOL,
|
181 |
PHP_EOL,
|
182 |
PHP_EOL;
|
183 |
}
|
184 |
|
185 |
/**
|
186 |
-
* Inject the custom meta tags into the website's frontend
|
187 |
*/
|
188 |
add_action( 'wp_head', 'spacexchimp_p004_exec', 0 );
|
189 |
|
190 |
/**
|
191 |
* Preview the custom meta tags
|
|
|
192 |
*/
|
193 |
function spacexchimp_p004_preview() {
|
194 |
-
$array =
|
195 |
|
196 |
if ( ! empty( $array ) ) {
|
197 |
if ( is_array( $array ) ) {
|
@@ -207,6 +183,6 @@ function spacexchimp_p004_preview() {
|
|
207 |
}
|
208 |
}
|
209 |
|
210 |
-
// Return the
|
211 |
echo $array;
|
212 |
}
|
7 |
|
8 |
/**
|
9 |
* Generate the custom meta tags
|
10 |
+
* @return array
|
11 |
*/
|
12 |
+
function spacexchimp_p004_generator() {
|
13 |
|
14 |
// Put value of plugin constants into an array for easier access
|
15 |
$plugin = spacexchimp_p004_plugin();
|
16 |
|
17 |
+
// Put the value of the plugin options into an array for easier access
|
18 |
+
$options = spacexchimp_p004_options();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
$array = array();
|
21 |
|
22 |
// Web Master Tools
|
23 |
+
if ( ! empty( $options['google'] ) ) {
|
24 |
+
$array[] = "<meta name='google-site-verification' content='" . $options['google'] . "' />";
|
25 |
}
|
26 |
+
if ( ! empty( $options['yandex'] ) ) {
|
27 |
+
$array[] = "<meta name='yandex-verification' content='" . $options['yandex'] . "' />";
|
28 |
}
|
29 |
+
if ( ! empty( $options['bing'] ) ) {
|
30 |
+
$array[] = "<meta name='msvalidate.01' content='" . $options['bing'] . "' />";
|
31 |
}
|
32 |
|
33 |
// Website Verification Services
|
34 |
+
if ( ! empty( $options['pinterest'] ) ) {
|
35 |
+
$array[] = "<meta name='p:domain_verify' content='" . $options['pinterest'] . "' />";
|
36 |
}
|
37 |
+
if ( ! empty( $options['google_author'] ) ) {
|
38 |
+
$array[] = "<link rel='author' href='" . $options['google_author'] . "'>";
|
39 |
}
|
40 |
+
if ( ! empty( $options['facebook'] ) ) {
|
41 |
+
$array[] = "<meta name='article:publisher' content='" . $options['facebook'] . "' />";
|
42 |
}
|
43 |
+
if ( ! empty( $options['twitter'] ) ) {
|
44 |
+
$array[] = "<meta name='twitter:site' content='" . $options['twitter'] . "' />";
|
45 |
+
$array[] = "<meta name='twitter:creator' content='" . $options['twitter'] . "' />";
|
46 |
}
|
47 |
+
if ( ! empty( $options['alexa'] ) ) {
|
48 |
+
$array[] = "<meta name='alexaVerifyID' content='" . $options['alexa'] . "' />";
|
49 |
}
|
50 |
+
if ( ! empty( $options['norton'] ) ) {
|
51 |
+
$array[] = "<meta name='norton-safeweb-site-verification' content='" . $options['norton'] . "' />";
|
52 |
}
|
53 |
+
if ( ! empty( $options['wot'] ) ) {
|
54 |
+
$array[] = "<meta name='wot-verification' content='" . $options['wot'] . "' />";
|
55 |
}
|
56 |
+
if ( ! empty( $options['specificfeeds'] ) ) {
|
57 |
+
$array[] = "<meta name='specificfeeds-verification-code' content='" . $options['specificfeeds'] . "' />";
|
58 |
}
|
59 |
+
if ( ! empty( $options['custom_meta'] ) ) {
|
60 |
+
$array[] = $options['custom_meta'];
|
61 |
}
|
62 |
|
63 |
// Custom meta tags for specific pages
|
64 |
if ( is_front_page() && is_home() ) {
|
65 |
// Default Home Page
|
66 |
+
if ( ! empty( $options['blog_description'] ) ) {
|
67 |
+
$array[] = "<meta name='description' content='" . $options['blog_description'] . "' />";
|
68 |
}
|
69 |
+
if ( ! empty( $options['blog_keywords'] ) ) {
|
70 |
+
$array[] = "<meta name='keywords' content='" . $options['blog_keywords'] . "' />";
|
71 |
}
|
72 |
} elseif ( is_front_page() ) {
|
73 |
// Static Home Page
|
74 |
+
if ( ! empty( $options['home_description'] ) ) {
|
75 |
+
$array[] = "<meta name='description' content='" . $options['home_description'] . "' />";
|
76 |
}
|
77 |
+
if ( ! empty( $options['home_keywords'] ) ) {
|
78 |
+
$array[] = "<meta name='keywords' content='" . $options['home_keywords'] . "' />";
|
79 |
}
|
80 |
} elseif ( is_home() ) {
|
81 |
// Blog Page
|
82 |
+
if ( ! empty( $options['blog_description'] ) ) {
|
83 |
+
$array[] = "<meta name='description' content='" . $options['blog_description'] . "' />";
|
84 |
}
|
85 |
+
if ( ! empty( $options['blog_keywords'] ) ) {
|
86 |
+
$array[] = "<meta name='keywords' content='" . $options['blog_keywords'] . "' />";
|
87 |
}
|
88 |
}
|
89 |
|
90 |
// Custom meta tags for the entire website
|
91 |
+
if ( ! empty( $options['author'] ) ) {
|
92 |
+
$array[] = "<meta name='author' content='" . $options['author'] . "' />";
|
93 |
}
|
94 |
+
if ( ! empty( $options['designer'] ) ) {
|
95 |
+
$array[] = "<meta name='designer' content='" . $options['designer'] . "' />";
|
96 |
}
|
97 |
+
if ( ! empty( $options['contact'] ) ) {
|
98 |
+
$array[] = "<meta name='contact' content='" . $options['contact'] . "' />";
|
99 |
}
|
100 |
+
if ( ! empty( $options['copyright'] ) ) {
|
101 |
+
$array[] = "<meta name='copyright' content='" . $options['copyright'] . "' />";
|
102 |
}
|
103 |
+
if ( ! empty( $options['keywords'] ) ) {
|
104 |
+
$array[] = "<meta name='keywords' content='" . $options['keywords'] . "' />";
|
105 |
}
|
106 |
|
107 |
// WooCommerce & Google Shopping (Merchant Center)
|
142 |
array_push( $array, "<!-- [END] Metadata added via All-Meta-Tags plugin by Space X-Chimp ( https://www.spacexchimp.com ) -->" );
|
143 |
}
|
144 |
|
145 |
+
// Return the processed data
|
146 |
return $array;
|
147 |
}
|
148 |
|
149 |
/**
|
150 |
* Process the custom meta tags
|
151 |
+
* @return string by using "echo"
|
152 |
*/
|
153 |
function spacexchimp_p004_exec() {
|
154 |
echo PHP_EOL,
|
155 |
+
implode(PHP_EOL, spacexchimp_p004_generator()),
|
156 |
PHP_EOL,
|
157 |
PHP_EOL;
|
158 |
}
|
159 |
|
160 |
/**
|
161 |
+
* Inject the custom meta tags into the website's frontend (head section)
|
162 |
*/
|
163 |
add_action( 'wp_head', 'spacexchimp_p004_exec', 0 );
|
164 |
|
165 |
/**
|
166 |
* Preview the custom meta tags
|
167 |
+
* @return string by using "echo"
|
168 |
*/
|
169 |
function spacexchimp_p004_preview() {
|
170 |
+
$array = spacexchimp_p004_generator();
|
171 |
|
172 |
if ( ! empty( $array ) ) {
|
173 |
if ( is_array( $array ) ) {
|
183 |
}
|
184 |
}
|
185 |
|
186 |
+
// Return the processed data
|
187 |
echo $array;
|
188 |
}
|
inc/php/inline-js.php
CHANGED
@@ -5,22 +5,15 @@
|
|
5 |
*/
|
6 |
defined( 'ABSPATH' ) or die( "Restricted access!" );
|
7 |
|
8 |
-
//
|
9 |
-
$options =
|
10 |
-
|
11 |
-
// Make the "$options" array if the plugin options data in the database is not exist
|
12 |
-
if ( ! is_array( $options ) ) {
|
13 |
-
$options = array();
|
14 |
-
}
|
15 |
-
|
16 |
-
$hidden_scrollto = !empty( $options['hidden_scrollto'] ) ? $options['hidden_scrollto'] : '0';
|
17 |
|
18 |
?>
|
19 |
<script type="text/javascript">
|
20 |
jQuery(document).ready(function($) {
|
21 |
|
22 |
// Scroll to previouse position
|
23 |
-
var hidden_scrollto = <?php echo $hidden_scrollto; ?>;
|
24 |
$(document).scrollTop(hidden_scrollto);
|
25 |
|
26 |
// Update the value of the scroll position option
|
@@ -32,7 +25,7 @@ $hidden_scrollto = !empty( $options['hidden_scrollto'] ) ? $options['hidden_scro
|
|
32 |
<?php
|
33 |
|
34 |
// Update the plugin options data in the database
|
35 |
-
if ( $hidden_scrollto != '0' ) {
|
36 |
$options['hidden_scrollto'] = '0';
|
37 |
update_option( $plugin['settings'] . '_settings', $options );
|
38 |
}
|
5 |
*/
|
6 |
defined( 'ABSPATH' ) or die( "Restricted access!" );
|
7 |
|
8 |
+
// Put the value of the plugin options into an array for easier access
|
9 |
+
$options = spacexchimp_p004_options();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
?>
|
12 |
<script type="text/javascript">
|
13 |
jQuery(document).ready(function($) {
|
14 |
|
15 |
// Scroll to previouse position
|
16 |
+
var hidden_scrollto = <?php echo $options['hidden_scrollto']; ?>;
|
17 |
$(document).scrollTop(hidden_scrollto);
|
18 |
|
19 |
// Update the value of the scroll position option
|
25 |
<?php
|
26 |
|
27 |
// Update the plugin options data in the database
|
28 |
+
if ( $options['hidden_scrollto'] != '0' ) {
|
29 |
$options['hidden_scrollto'] = '0';
|
30 |
update_option( $plugin['settings'] . '_settings', $options );
|
31 |
}
|
inc/php/messages.php
CHANGED
@@ -13,8 +13,8 @@ function spacexchimp_p004_message_hello() {
|
|
13 |
// Put value of plugin constants into an array for easier access
|
14 |
$plugin = spacexchimp_p004_plugin();
|
15 |
|
16 |
-
//
|
17 |
-
$options =
|
18 |
|
19 |
// Exit if options are already set in database
|
20 |
if ( ! empty( $options ) ) {
|
13 |
// Put value of plugin constants into an array for easier access
|
14 |
$plugin = spacexchimp_p004_plugin();
|
15 |
|
16 |
+
// Put the value of the plugin options into an array for easier access
|
17 |
+
$options = spacexchimp_p004_options();
|
18 |
|
19 |
// Exit if options are already set in database
|
20 |
if ( ! empty( $options ) ) {
|
inc/php/options.php
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Callback function that returns an array with the value of the plugin options
|
5 |
+
* @return array
|
6 |
+
*/
|
7 |
+
function spacexchimp_p004_options() {
|
8 |
+
|
9 |
+
// Put value of plugin constants into an array for easier access
|
10 |
+
$plugin = spacexchimp_p004_plugin();
|
11 |
+
|
12 |
+
// Retrieve options from database
|
13 |
+
$options = get_option( $plugin['settings'] . '_settings' );
|
14 |
+
|
15 |
+
// Make the "$options" array if the plugin options data in the database is not exist
|
16 |
+
if ( ! is_array( $options ) ) {
|
17 |
+
$options = array();
|
18 |
+
}
|
19 |
+
|
20 |
+
// Create an array with options
|
21 |
+
$array = $options;
|
22 |
+
|
23 |
+
// Set default value if option is empty
|
24 |
+
$list = array(
|
25 |
+
'alexa' => '',
|
26 |
+
'author' => '',
|
27 |
+
'bing' => '',
|
28 |
+
'blog_description' => '',
|
29 |
+
'blog_keywords' => '',
|
30 |
+
'contact' => '',
|
31 |
+
'copyright' => '',
|
32 |
+
'custom_meta' => '',
|
33 |
+
'designer' => '',
|
34 |
+
'facebook' => '',
|
35 |
+
'google_author' => '',
|
36 |
+
'google' => '',
|
37 |
+
'hidden_scrollto' => '0',
|
38 |
+
'home_description' => '',
|
39 |
+
'home_keywords' => '',
|
40 |
+
'keywords' => '',
|
41 |
+
'norton' => '',
|
42 |
+
'pinterest' => '',
|
43 |
+
'specificfeeds' => '',
|
44 |
+
'twitter' => '',
|
45 |
+
'wot' => '',
|
46 |
+
'yandex' => '',
|
47 |
+
);
|
48 |
+
foreach ( $list as $name => $default ) {
|
49 |
+
$array[$name] = !empty( $options[$name] ) ? $options[$name] : $default;
|
50 |
+
}
|
51 |
+
|
52 |
+
// Sanitize data
|
53 |
+
$array['alexa'] = esc_textarea( $array['alexa'] );
|
54 |
+
$array['author'] = esc_textarea( $array['author'] );
|
55 |
+
$array['bing'] = esc_textarea( $array['bing'] );
|
56 |
+
$array['blog_description'] = esc_textarea( $array['blog_description'] );
|
57 |
+
$array['blog_keywords'] = esc_textarea( $array['blog_keywords'] );
|
58 |
+
$array['contact'] = esc_textarea( $array['contact'] );
|
59 |
+
$array['copyright'] = esc_textarea( $array['copyright'] );
|
60 |
+
$array['designer'] = esc_textarea( $array['designer'] );
|
61 |
+
$array['facebook'] = esc_textarea( $array['facebook'] );
|
62 |
+
$array['google_author'] = esc_textarea( $array['google_author'] );
|
63 |
+
$array['google'] = esc_textarea( $array['google'] );
|
64 |
+
$array['home_description'] = esc_textarea( $array['home_description'] );
|
65 |
+
$array['home_keywords'] = esc_textarea( $array['home_keywords'] );
|
66 |
+
$array['keywords'] = esc_textarea( $array['keywords'] );
|
67 |
+
$array['norton'] = esc_textarea( $array['norton'] );
|
68 |
+
$array['pinterest'] = esc_textarea( $array['pinterest'] );
|
69 |
+
$array['specificfeeds'] = esc_textarea( $array['specificfeeds'] );
|
70 |
+
$array['twitter'] = esc_textarea( $array['twitter'] );
|
71 |
+
$array['wot'] = esc_textarea( $array['wot'] );
|
72 |
+
$array['yandex'] = esc_textarea( $array['yandex'] );
|
73 |
+
|
74 |
+
// Modify data
|
75 |
+
|
76 |
+
|
77 |
+
// Return the processed data
|
78 |
+
return $array;
|
79 |
+
}
|
languages/all-meta-tags-de_DE.mo
CHANGED
Binary file
|
languages/all-meta-tags-de_DE.po
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
-
"POT-Creation-Date: 2021-
|
7 |
-
"PO-Revision-Date: 2021-
|
8 |
"Last-Translator: Arthur Gareginyan\n"
|
9 |
"Language-Team: German\n"
|
10 |
"Language: de_DE\n"
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
+
"POT-Creation-Date: 2021-03-09 00:59+0300\n"
|
7 |
+
"PO-Revision-Date: 2021-03-09 01:00+0300\n"
|
8 |
"Last-Translator: Arthur Gareginyan\n"
|
9 |
"Language-Team: German\n"
|
10 |
"Language: de_DE\n"
|
languages/all-meta-tags-es_ES.mo
CHANGED
Binary file
|
languages/all-meta-tags-es_ES.po
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
-
"POT-Creation-Date: 2021-
|
7 |
-
"PO-Revision-Date: 2021-
|
8 |
"Last-Translator: Arthur Gareginyan\n"
|
9 |
"Language-Team: Spanish\n"
|
10 |
"Language: es_ES\n"
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
+
"POT-Creation-Date: 2021-03-09 01:00+0300\n"
|
7 |
+
"PO-Revision-Date: 2021-03-09 01:00+0300\n"
|
8 |
"Last-Translator: Arthur Gareginyan\n"
|
9 |
"Language-Team: Spanish\n"
|
10 |
"Language: es_ES\n"
|
languages/all-meta-tags-es_MX.mo
CHANGED
Binary file
|
languages/all-meta-tags-es_MX.po
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
-
"POT-Creation-Date: 2021-
|
7 |
-
"PO-Revision-Date: 2021-
|
8 |
"Last-Translator: Arthur Gareginyan\n"
|
9 |
"Language-Team: Spanish (Mexico)\n"
|
10 |
"Language: es_MX\n"
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
+
"POT-Creation-Date: 2021-03-09 01:00+0300\n"
|
7 |
+
"PO-Revision-Date: 2021-03-09 01:00+0300\n"
|
8 |
"Last-Translator: Arthur Gareginyan\n"
|
9 |
"Language-Team: Spanish (Mexico)\n"
|
10 |
"Language: es_MX\n"
|
languages/all-meta-tags-fr_FR.mo
CHANGED
Binary file
|
languages/all-meta-tags-fr_FR.po
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
-
"POT-Creation-Date: 2021-
|
7 |
-
"PO-Revision-Date: 2021-
|
8 |
"Last-Translator: Arthur Gareginyan\n"
|
9 |
"Language-Team: French\n"
|
10 |
"Language: fr_FR\n"
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
+
"POT-Creation-Date: 2021-03-09 01:00+0300\n"
|
7 |
+
"PO-Revision-Date: 2021-03-09 01:00+0300\n"
|
8 |
"Last-Translator: Arthur Gareginyan\n"
|
9 |
"Language-Team: French\n"
|
10 |
"Language: fr_FR\n"
|
languages/all-meta-tags-it_IT.mo
CHANGED
Binary file
|
languages/all-meta-tags-it_IT.po
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
-
"POT-Creation-Date: 2021-
|
7 |
-
"PO-Revision-Date: 2021-
|
8 |
"Last-Translator: Arthur Gareginyan\n"
|
9 |
"Language-Team: Italian\n"
|
10 |
"Language: it_IT\n"
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
+
"POT-Creation-Date: 2021-03-09 01:00+0300\n"
|
7 |
+
"PO-Revision-Date: 2021-03-09 01:00+0300\n"
|
8 |
"Last-Translator: Arthur Gareginyan\n"
|
9 |
"Language-Team: Italian\n"
|
10 |
"Language: it_IT\n"
|
languages/all-meta-tags-nl_NL.mo
CHANGED
Binary file
|
languages/all-meta-tags-nl_NL.po
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
-
"POT-Creation-Date: 2021-
|
7 |
-
"PO-Revision-Date: 2021-
|
8 |
"Last-Translator: Arthur Gareginyan\n"
|
9 |
"Language-Team: Dutch\n"
|
10 |
"Language: nl_NL\n"
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
+
"POT-Creation-Date: 2021-03-09 01:00+0300\n"
|
7 |
+
"PO-Revision-Date: 2021-03-09 01:00+0300\n"
|
8 |
"Last-Translator: Arthur Gareginyan\n"
|
9 |
"Language-Team: Dutch\n"
|
10 |
"Language: nl_NL\n"
|
languages/all-meta-tags-ru_RU.mo
CHANGED
Binary file
|
languages/all-meta-tags-ru_RU.po
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
-
"POT-Creation-Date: 2021-
|
7 |
-
"PO-Revision-Date: 2021-
|
8 |
"Last-Translator: Arthur Gareginyan\n"
|
9 |
"Language-Team: Russian\n"
|
10 |
"Language: ru_RU\n"
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
+
"POT-Creation-Date: 2021-03-09 01:00+0300\n"
|
7 |
+
"PO-Revision-Date: 2021-03-09 01:00+0300\n"
|
8 |
"Last-Translator: Arthur Gareginyan\n"
|
9 |
"Language-Team: Russian\n"
|
10 |
"Language: ru_RU\n"
|
languages/all-meta-tags.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
-
"POT-Creation-Date: 2021-
|
7 |
"PO-Revision-Date: 2015-10-28 13:57+0300\n"
|
8 |
"Last-Translator: \n"
|
9 |
"Language-Team: \n"
|
3 |
msgstr ""
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
+
"POT-Creation-Date: 2021-03-09 01:00+0300\n"
|
7 |
"PO-Revision-Date: 2015-10-28 13:57+0300\n"
|
8 |
"Last-Translator: \n"
|
9 |
"Language-Team: \n"
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: Arthur Gareginyan
|
|
3 |
Tags: meta, tag, tags, custom, simple, plugin, twitter, facebook, google, google plus, meta, search engine optimization, seo, social, alexa, alexa rank, pinterest, norton safe web, webmaster, webmaster tool, webmaster tools, web master tools, web master tools, bing, yandex, bing webmaster, yandex webmaster, google webmaster, web tools, open graph, publisher profile, publisher, author, authors, description, keyword, keywords, copyright, designer, admin, meta tag, pinterest, pinterest meta tag, pinterest website verification, pinterest verification, pinterest verify, plugin, verification, verify, webmaster plugin, wot, web of trust, specificfeeds, specific feeds, feed, rss feed, google shopping, google merchant center, structured data, woocommerce, schemas
|
4 |
Donate link: https://www.spacexchimp.com/donate.html
|
5 |
Requires at least: 4.9
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 4.
|
9 |
License: GPL3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -209,8 +209,9 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
209 |
|
210 |
**Credits**
|
211 |
|
212 |
-
* The icon of plugin is a copyrighted image created by the [Space X-Chimp](https://www.spacexchimp.com) team. (C) All rights reserved.
|
213 |
-
* The banner of plugin is a copyrighted image created by the [Space X-Chimp](https://www.spacexchimp.com) team. (C) All rights reserved.
|
|
|
214 |
* [CodeMirror](https://codemirror.net/) is an open-source project shared under the [MIT license](https://codemirror.net/LICENSE).
|
215 |
* [Bootstrap](http://getbootstrap.com) by Twitter, Inc. released under the [MIT license](https://github.com/twbs/bootstrap/blob/master/LICENSE).
|
216 |
* [Font Awesome](https://fontawesome.com) is an open source-project created by Dave Gandy. Font released under the [SIL OFL 1.1 license](http://scripts.sil.org/OFL). Code released under the [MIT License](http://opensource.org/licenses/mit-license.html).
|
@@ -224,6 +225,11 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
224 |
|
225 |
== Changelog ==
|
226 |
|
|
|
|
|
|
|
|
|
|
|
227 |
= 4.45 - Jan 1, 2021 =
|
228 |
* Maintenance: The copyright date updated to support the 2021 year.
|
229 |
|
3 |
Tags: meta, tag, tags, custom, simple, plugin, twitter, facebook, google, google plus, meta, search engine optimization, seo, social, alexa, alexa rank, pinterest, norton safe web, webmaster, webmaster tool, webmaster tools, web master tools, web master tools, bing, yandex, bing webmaster, yandex webmaster, google webmaster, web tools, open graph, publisher profile, publisher, author, authors, description, keyword, keywords, copyright, designer, admin, meta tag, pinterest, pinterest meta tag, pinterest website verification, pinterest verification, pinterest verify, plugin, verification, verify, webmaster plugin, wot, web of trust, specificfeeds, specific feeds, feed, rss feed, google shopping, google merchant center, structured data, woocommerce, schemas
|
4 |
Donate link: https://www.spacexchimp.com/donate.html
|
5 |
Requires at least: 4.9
|
6 |
+
Tested up to: 5.7
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 4.46
|
9 |
License: GPL3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
209 |
|
210 |
**Credits**
|
211 |
|
212 |
+
* The icon of this plugin is a copyrighted image created by the [Space X-Chimp](https://www.spacexchimp.com) team. (C) All rights reserved.
|
213 |
+
* The banner of this plugin is a copyrighted image created by the [Space X-Chimp](https://www.spacexchimp.com) team. (C) All rights reserved.
|
214 |
+
* Unless otherwise stated, all images are created by the [Space X-Chimp](https://www.spacexchimp.com) team and are copyrighted. (C) All rights reserved.
|
215 |
* [CodeMirror](https://codemirror.net/) is an open-source project shared under the [MIT license](https://codemirror.net/LICENSE).
|
216 |
* [Bootstrap](http://getbootstrap.com) by Twitter, Inc. released under the [MIT license](https://github.com/twbs/bootstrap/blob/master/LICENSE).
|
217 |
* [Font Awesome](https://fontawesome.com) is an open source-project created by Dave Gandy. Font released under the [SIL OFL 1.1 license](http://scripts.sil.org/OFL). Code released under the [MIT License](http://opensource.org/licenses/mit-license.html).
|
225 |
|
226 |
== Changelog ==
|
227 |
|
228 |
+
= 4.46 - Mar 8, 2021 =
|
229 |
+
* Maintenance: Ensure compatibility with upcoming WordPress 5.7.
|
230 |
+
* Maintenance: Processing of options has been improved. Direct retrieving of options from the database is replaced by the "_options" callback. The "options.php" file with the "_options" function added.
|
231 |
+
* Maintenance: The contents of PHP files have been optimised; Code formatting and commenting improved. The "_prepare" function renamed to "_generator".
|
232 |
+
|
233 |
= 4.45 - Jan 1, 2021 =
|
234 |
* Maintenance: The copyright date updated to support the 2021 year.
|
235 |
|