All Meta Tags - Version 4.33

Version Description

  • 2019-03-24 =
  • Framework updated: Added function "plugin", which returns an array with the contents of plugin constants. The mention of plugin constants is replaced by the use of the function "plugin".
  • Framework updated: The function "_settings_link" is improved.
  • Framework updated: The function "_plugin_row_meta" is improved.
  • Framework updated: Code formatting improved.
  • Framework updated: Code commenting improved.
  • Framework updated: All translation files are updated.
Download this release

Release Info

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

Code changes from version 4.32 to 4.33

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.32
9
* License: GPL3
10
* Text Domain: all-meta-tags
11
* Domain Path: /languages/
@@ -52,7 +52,7 @@ $plugin_data = get_file_data( __FILE__,
52
);
53
function spacexchimp_p004_define_constants( $constant_name, $value ) {
54
$constant_name = 'SPACEXCHIMP_P004_' . $constant_name;
55
- if ( !defined( $constant_name ) )
56
define( $constant_name, $value );
57
}
58
spacexchimp_p004_define_constants( 'FILE', __FILE__ );
@@ -67,14 +67,39 @@ spacexchimp_p004_define_constants( 'TEXT', $plugin_data['text'] );
67
spacexchimp_p004_define_constants( 'PREFIX', 'spacexchimp_p004' );
68
spacexchimp_p004_define_constants( 'SETTINGS', 'spacexchimp_p004' );
69
70
/**
71
* Load the plugin modules
72
*/
73
- require_once( SPACEXCHIMP_P004_PATH . 'inc/php/core.php' );
74
- require_once( SPACEXCHIMP_P004_PATH . 'inc/php/upgrade.php' );
75
- require_once( SPACEXCHIMP_P004_PATH . 'inc/php/versioning.php' );
76
- require_once( SPACEXCHIMP_P004_PATH . 'inc/php/enqueue.php' );
77
- require_once( SPACEXCHIMP_P004_PATH . 'inc/php/functional.php' );
78
- require_once( SPACEXCHIMP_P004_PATH . 'inc/php/controls.php' );
79
- require_once( SPACEXCHIMP_P004_PATH . 'inc/php/page.php' );
80
- require_once( SPACEXCHIMP_P004_PATH . 'inc/php/messages.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.33
9
* License: GPL3
10
* Text Domain: all-meta-tags
11
* Domain Path: /languages/
52
);
53
function spacexchimp_p004_define_constants( $constant_name, $value ) {
54
$constant_name = 'SPACEXCHIMP_P004_' . $constant_name;
55
+ if ( ! defined( $constant_name ) )
56
define( $constant_name, $value );
57
}
58
spacexchimp_p004_define_constants( 'FILE', __FILE__ );
67
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(
75
+ 'file' => SPACEXCHIMP_P004_FILE,
76
+ 'dir' => SPACEXCHIMP_P004_DIR,
77
+ 'base' => SPACEXCHIMP_P004_BASE,
78
+ 'url' => SPACEXCHIMP_P004_URL,
79
+ 'path' => SPACEXCHIMP_P004_PATH,
80
+ 'slug' => SPACEXCHIMP_P004_SLUG,
81
+ 'name' => SPACEXCHIMP_P004_NAME,
82
+ 'version' => SPACEXCHIMP_P004_VERSION,
83
+ 'text' => SPACEXCHIMP_P004_TEXT,
84
+ 'prefix' => SPACEXCHIMP_P004_PREFIX,
85
+ 'settings' => SPACEXCHIMP_P004_SETTINGS
86
+ );
87
+ return $array;
88
+ }
89
+
90
+ /**
91
+ * Put value of plugin constants into an array for easier access
92
+ */
93
+ $plugin = spacexchimp_p004_plugin();
94
+
95
/**
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' );
102
+ require_once( $plugin['path'] . 'inc/php/functional.php' );
103
+ require_once( $plugin['path'] . 'inc/php/controls.php' );
104
+ require_once( $plugin['path'] . 'inc/php/page.php' );
105
+ require_once( $plugin['path'] . 'inc/php/messages.php' );
inc/php/controls.php CHANGED
@@ -32,8 +32,11 @@ function spacexchimp_p004_control_help( $help=null ) {
32
*/
33
function spacexchimp_p004_control_field( $name, $label, $placeholder, $help=null, $link=null ) {
34
35
// Retrieve options from database and declare variables
36
- $options = get_option( SPACEXCHIMP_P004_SETTINGS . '_settings' );
37
$value = !empty( $options[$name] ) ? esc_attr( $options[$name] ) : '';
38
$label_link = !empty( $link ) ? "<a href='$link' target='_blank'>$label</a>" : "$label";
39
@@ -45,8 +48,8 @@ function spacexchimp_p004_control_field( $name, $label, $placeholder, $help=null
45
<td>
46
<input
47
type='text'
48
- name='" . SPACEXCHIMP_P004_SETTINGS . "_settings[$name]'
49
- id='" . SPACEXCHIMP_P004_SETTINGS . "_settings[$name]'
50
value='$value'
51
placeholder='$placeholder'
52
class='control-field $name'
@@ -66,8 +69,11 @@ function spacexchimp_p004_control_field( $name, $label, $placeholder, $help=null
66
*/
67
function spacexchimp_p004_control_textarea( $name, $label, $placeholder, $help=null ) {
68
69
// Retrieve options from database and declare variables
70
- $options = get_option( SPACEXCHIMP_P004_SETTINGS . '_settings' );
71
$value = !empty( $options[$name] ) ? esc_attr( $options[$name] ) : '';
72
73
// Generate a part of table
@@ -79,8 +85,8 @@ function spacexchimp_p004_control_textarea( $name, $label, $placeholder, $help=n
79
<textarea
80
cols='50'
81
rows='3'
82
- name='" . SPACEXCHIMP_P004_SETTINGS . "_settings[$name]'
83
- id='" . SPACEXCHIMP_P004_SETTINGS . "_settings[$name]'
84
placeholder='$placeholder'
85
class='control-textarea $name'
86
>$value</textarea>
32
*/
33
function spacexchimp_p004_control_field( $name, $label, $placeholder, $help=null, $link=null ) {
34
35
+ // Put value of plugin constants into an array for easier access
36
+ $plugin = spacexchimp_p004_plugin();
37
+
38
// Retrieve options from database and declare variables
39
+ $options = get_option( $plugin['settings'] . '_settings' );
40
$value = !empty( $options[$name] ) ? esc_attr( $options[$name] ) : '';
41
$label_link = !empty( $link ) ? "<a href='$link' target='_blank'>$label</a>" : "$label";
42
48
<td>
49
<input
50
type='text'
51
+ name='" . $plugin['settings'] . "_settings[$name]'
52
+ id='" . $plugin['settings'] . "_settings[$name]'
53
value='$value'
54
placeholder='$placeholder'
55
class='control-field $name'
69
*/
70
function spacexchimp_p004_control_textarea( $name, $label, $placeholder, $help=null ) {
71
72
+ // Put value of plugin constants into an array for easier access
73
+ $plugin = spacexchimp_p004_plugin();
74
+
75
// Retrieve options from database and declare variables
76
+ $options = get_option( $plugin['settings'] . '_settings' );
77
$value = !empty( $options[$name] ) ? esc_attr( $options[$name] ) : '';
78
79
// Generate a part of table
85
<textarea
86
cols='50'
87
rows='3'
88
+ name='" . $plugin['settings'] . "_settings[$name]'
89
+ id='" . $plugin['settings'] . "_settings[$name]'
90
placeholder='$placeholder'
91
class='control-textarea $name'
92
>$value</textarea>
inc/php/core.php CHANGED
@@ -9,110 +9,154 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
9
* Register text domain
10
*/
11
function spacexchimp_p004_textdomain() {
12
- load_plugin_textdomain( SPACEXCHIMP_P004_TEXT, false, SPACEXCHIMP_P004_DIR . '/languages/' );
13
}
14
- add_action( 'init', 'spacexchimp_p004_textdomain' );
15
16
/**
17
- * Print direct link to plugin admin page
18
*
19
* Fetches array of links generated by WordPress Plugin admin page ( Deactivate | Edit )
20
* and inserts a link to the plugin admin page
21
*/
22
function spacexchimp_p004_settings_link( $links ) {
23
- $page = '<a href="' . admin_url( 'options-general.php?page=' . SPACEXCHIMP_P004_SLUG ) . '">' . __( 'Settings', SPACEXCHIMP_P004_TEXT ) . '</a>';
24
- array_unshift( $links, $page );
25
return $links;
26
}
27
- add_filter( 'plugin_action_links_' . SPACEXCHIMP_P004_BASE, 'spacexchimp_p004_settings_link' );
28
29
/**
30
- * Print additional links to plugin meta row
31
*/
32
function spacexchimp_p004_plugin_row_meta( $links, $file ) {
33
34
- if ( strpos( $file, SPACEXCHIMP_P004_SLUG . '.php' ) !== false ) {
35
36
$new_links = array(
37
- 'donate' => '<a href="https://www.spacexchimp.com/donate.html" target="_blank"><span class="dashicons dashicons-heart"></span> ' . __( 'Donate', SPACEXCHIMP_P004_TEXT ) . '</a>'
38
);
39
$links = array_merge( $links, $new_links );
40
}
41
42
return $links;
43
}
44
- add_filter( 'plugin_row_meta', 'spacexchimp_p004_plugin_row_meta', 10, 2 );
45
46
/**
47
* Register a submenu item in the top-level menu item "Settings"
48
*/
49
function spacexchimp_p004_register_submenu_page() {
50
51
- $page_title = SPACEXCHIMP_P004_NAME;
52
- $menu_title = __( 'Meta Tags Inserter', SPACEXCHIMP_P004_TEXT );
53
$capability = 'manage_options';
54
- $menu_slug = SPACEXCHIMP_P004_SLUG;
55
- $function = 'spacexchimp_p004_render_submenu_page';
56
57
add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function );
58
}
59
- add_action( 'admin_menu', 'spacexchimp_p004_register_submenu_page' );
60
61
/**
62
* Register settings
63
*/
64
function spacexchimp_p004_register_settings() {
65
- register_setting( SPACEXCHIMP_P004_SETTINGS . '_settings_group', SPACEXCHIMP_P004_SETTINGS . '_settings' );
66
- register_setting( SPACEXCHIMP_P004_SETTINGS . '_settings_group_si', SPACEXCHIMP_P004_SETTINGS . '_service_info' );
67
}
68
- add_action( 'admin_init', 'spacexchimp_p004_register_settings' );
69
70
/**
71
* Branded footer text on the plugin's settings page
72
*/
73
function spacexchimp_p004_admin_footer_text() {
74
75
// Get current screen data
76
$current_screen = get_current_screen();
77
78
// Return if the page is not a settings page of this plugin
79
- $settings_page = 'settings_page_' . SPACEXCHIMP_P004_SLUG;
80
- if ( $settings_page != $current_screen->id ) return;
81
82
// Filter footer text
83
function spacexchimp_p004_new_admin_footer_text() {
84
$year = date('Y');
85
return "Copyright &copy; " . $year . " <a href='https://www.spacexchimp.com' target='_blank'>Space X-Chimp</a> | Click <a href='https://www.spacexchimp.com/store.html' target='_blank'>here</a> to see our other products.";
86
}
87
- add_filter( 'admin_footer_text', 'spacexchimp_p004_new_admin_footer_text', 11 );
88
}
89
- add_action( 'current_screen', 'spacexchimp_p004_admin_footer_text' );
90
91
/**
92
* Runs during the plugin activation
93
*/
94
function spacexchimp_p004_activation() {
95
96
// Read the plugin service information from the database and put it into an array
97
- $info = get_option( SPACEXCHIMP_P004_SETTINGS . '_service_info' );
98
99
// Make the "$info" array if the plugin service information in the database is not exist
100
- if ( ! is_array( $info ) ) $info = array();
101
102
// Get the activation date of the plugin from the database
103
$activation_date = !empty( $info['activation_date'] ) ? $info['activation_date'] : '';
104
105
if ( $activation_date == '' ) {
106
$info['activation_date'] = time();
107
- update_option( SPACEXCHIMP_P004_SETTINGS . '_service_info', $info );
108
}
109
}
110
- register_activation_hook( SPACEXCHIMP_P004_FILE, 'spacexchimp_p004_activation' );
111
112
/**
113
* Delete options on uninstall
114
*/
115
function spacexchimp_p004_uninstall() {
116
- delete_option( SPACEXCHIMP_P004_SETTINGS . '_settings' );
117
}
118
- register_uninstall_hook( SPACEXCHIMP_P004_FILE, 'spacexchimp_p004_uninstall' );
9
* Register text domain
10
*/
11
function spacexchimp_p004_textdomain() {
12
+
13
+ // Put value of plugin constants into an array for easier access
14
+ $plugin = spacexchimp_p004_plugin();
15
+
16
+ load_plugin_textdomain( $plugin['text'], false, $plugin['dir'] . '/languages/' );
17
}
18
+ add_action( 'init', $plugin['prefix'] . '_textdomain' );
19
20
/**
21
+ * Print direct link to the plugin administration page
22
*
23
* Fetches array of links generated by WordPress Plugin admin page ( Deactivate | Edit )
24
* and inserts a link to the plugin admin page
25
*/
26
function spacexchimp_p004_settings_link( $links ) {
27
+
28
+ // Put value of plugin constants into an array for easier access
29
+ $plugin = spacexchimp_p004_plugin();
30
+
31
+ // Declare variables
32
+ $text_settings = __( 'Settings', $plugin['text'] );
33
+ $url_settings = admin_url( 'options-general.php?page=' . $plugin['slug'] );
34
+ $link_settings = '<a href="' . $url_settings . '">' . $text_settings . '</a>';
35
+
36
+ array_unshift( $links, $link_settings );
37
+
38
return $links;
39
}
40
+ add_filter( 'plugin_action_links_' . $plugin['base'], $plugin['prefix'] . '_settings_link' );
41
42
/**
43
+ * Print additional links to the plugin meta row
44
*/
45
function spacexchimp_p004_plugin_row_meta( $links, $file ) {
46
47
+ // Put value of plugin constants into an array for easier access
48
+ $plugin = spacexchimp_p004_plugin();
49
+
50
+ if ( strpos( $file, $plugin['slug'] . '.php' ) !== false ) {
51
+
52
+ // Declare variables
53
+ $url_donate = "https://www.spacexchimp.com/donate.html";
54
+ $text_donate = __( 'Donate', $plugin['text'] );
55
+ $link_donate = '<a href="' . $url_donate . '" target="_blank"><span class="dashicons dashicons-heart"></span> ' . $text_donate . '</a>';
56
57
$new_links = array(
58
+ 'donate' => $link_donate
59
);
60
+
61
$links = array_merge( $links, $new_links );
62
}
63
64
return $links;
65
}
66
+ add_filter( 'plugin_row_meta', $plugin['prefix'] . '_plugin_row_meta', 10, 2 );
67
68
/**
69
* Register a submenu item in the top-level menu item "Settings"
70
*/
71
function spacexchimp_p004_register_submenu_page() {
72
73
+ // Put value of plugin constants into an array for easier access
74
+ $plugin = spacexchimp_p004_plugin();
75
+
76
+ // Declare variables
77
+ $page_title = $plugin['name'];
78
+ $menu_title = __( 'Meta Tags Inserter', $plugin['text'] );
79
$capability = 'manage_options';
80
+ $menu_slug = $plugin['slug'];
81
+ $function = $plugin['prefix'] . '_render_submenu_page';
82
83
add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function );
84
}
85
+ add_action( 'admin_menu', $plugin['prefix'] . '_register_submenu_page' );
86
87
/**
88
* Register settings
89
*/
90
function spacexchimp_p004_register_settings() {
91
+
92
+ // Put value of plugin constants into an array for easier access
93
+ $plugin = spacexchimp_p004_plugin();
94
+
95
+ register_setting( $plugin['settings'] . '_settings_group', $plugin['settings'] . '_settings' );
96
+ register_setting( $plugin['settings'] . '_settings_group_si', $plugin['settings'] . '_service_info' );
97
}
98
+ add_action( 'admin_init', $plugin['prefix'] . '_register_settings' );
99
100
/**
101
* Branded footer text on the plugin's settings page
102
*/
103
function spacexchimp_p004_admin_footer_text() {
104
105
+ // Put value of plugin constants into an array for easier access
106
+ $plugin = spacexchimp_p004_plugin();
107
+
108
// Get current screen data
109
$current_screen = get_current_screen();
110
111
// Return if the page is not a settings page of this plugin
112
+ $settings_page = 'settings_page_' . $plugin['slug'];
113
+ if ( $settings_page != $current_screen->id ) {
114
+ return;
115
+ }
116
117
// Filter footer text
118
function spacexchimp_p004_new_admin_footer_text() {
119
$year = date('Y');
120
return "Copyright &copy; " . $year . " <a href='https://www.spacexchimp.com' target='_blank'>Space X-Chimp</a> | Click <a href='https://www.spacexchimp.com/store.html' target='_blank'>here</a> to see our other products.";
121
}
122
+ add_filter( 'admin_footer_text', $plugin['prefix'] . '_new_admin_footer_text', 11 );
123
}
124
+ add_action( 'current_screen', $plugin['prefix'] . '_admin_footer_text' );
125
126
/**
127
* Runs during the plugin activation
128
*/
129
function spacexchimp_p004_activation() {
130
131
+ // Put value of plugin constants into an array for easier access
132
+ $plugin = spacexchimp_p004_plugin();
133
+
134
// Read the plugin service information from the database and put it into an array
135
+ $info = get_option( $plugin['settings'] . '_service_info' );
136
137
// Make the "$info" array if the plugin service information in the database is not exist
138
+ if ( ! is_array( $info ) ) {
139
+ $info = array();
140
+ }
141
142
// Get the activation date of the plugin from the database
143
$activation_date = !empty( $info['activation_date'] ) ? $info['activation_date'] : '';
144
145
if ( $activation_date == '' ) {
146
$info['activation_date'] = time();
147
+ update_option( $plugin['settings'] . '_service_info', $info );
148
}
149
}
150
+ register_activation_hook( $plugin['file'], $plugin['prefix'] . '_activation' );
151
152
/**
153
* Delete options on uninstall
154
*/
155
function spacexchimp_p004_uninstall() {
156
+
157
+ // Put value of plugin constants into an array for easier access
158
+ $plugin = spacexchimp_p004_plugin();
159
+
160
+ delete_option( $plugin['settings'] . '_settings' );
161
}
162
+ register_uninstall_hook( $plugin['file'], $plugin['prefix'] . '_uninstall' );
inc/php/enqueue.php CHANGED
@@ -8,14 +8,17 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
8
/**
9
* Callback to enqueue the CodeMirror library
10
*/
11
- function spacexchimp_p004_load_scripts_codemirror( $prefix, $url, $version ) {
12
13
// Enqueue main files of the CodeMirror library
14
- wp_enqueue_style( $prefix . '-codemirror-css', $url . 'inc/lib/codemirror/lib/codemirror.css', array(), $version, 'all' );
15
- wp_enqueue_script( $prefix . '-codemirror-js', $url . 'inc/lib/codemirror/lib/codemirror.js', array(), $version, false );
16
17
// Enqueue settings file
18
- wp_enqueue_script( $prefix . '-codemirror-settings-js', $url . 'inc/js/codemirror-settings.js', array(), $version, true );
19
20
// Enqueue addons
21
$addons = array(
@@ -24,7 +27,7 @@ function spacexchimp_p004_load_scripts_codemirror( $prefix, $url, $version ) {
24
);
25
foreach ( $addons as $addons_group_name => $addons_group ) {
26
foreach ( $addons_group as $addon ) {
27
- wp_enqueue_script( $prefix . '-codemirror-addon-' . $addon . '-js', $url . 'inc/lib/codemirror/addon/' . $addons_group_name . '/' . $addon . '.js', array(), $version, false );
28
}
29
}
30
@@ -33,7 +36,7 @@ function spacexchimp_p004_load_scripts_codemirror( $prefix, $url, $version ) {
33
'xml'
34
);
35
foreach ( $modes as $mode ) {
36
- wp_enqueue_script( $prefix . '-codemirror-mode-' . $mode . '-js', $url . 'inc/lib/codemirror/mode/' . $mode . '/' . $mode . '.js', array(), $version, true );
37
}
38
39
}
@@ -43,35 +46,34 @@ function spacexchimp_p004_load_scripts_codemirror( $prefix, $url, $version ) {
43
*/
44
function spacexchimp_p004_load_scripts_admin( $hook ) {
45
46
- // Put value of constants to variables for easier access
47
- $slug = SPACEXCHIMP_P004_SLUG;
48
- $prefix = SPACEXCHIMP_P004_PREFIX;
49
- $url = SPACEXCHIMP_P004_URL;
50
- $version = SPACEXCHIMP_P004_VERSION;
51
52
// Return if the page is not a settings page of this plugin
53
- $settings_page = 'settings_page_' . $slug;
54
- if ( $settings_page != $hook ) return;
55
56
// Load jQuery library
57
wp_enqueue_script( 'jquery' );
58
59
// Bootstrap library
60
- wp_enqueue_style( $prefix . '-bootstrap-css', $url . 'inc/lib/bootstrap/bootstrap.css', array(), $version, 'all' );
61
- wp_enqueue_style( $prefix . '-bootstrap-theme-css', $url . 'inc/lib/bootstrap/bootstrap-theme.css', array(), $version, 'all' );
62
- wp_enqueue_script( $prefix . '-bootstrap-js', $url . 'inc/lib/bootstrap/bootstrap.js', array(), $version, false );
63
64
// Font Awesome library
65
- wp_enqueue_style( $prefix . '-font-awesome-css', $url . 'inc/lib/font-awesome/css/font-awesome.css', array(), $version, 'screen' );
66
67
// Style sheet
68
- wp_enqueue_style( $prefix . '-admin-css', $url . 'inc/css/admin.css', array(), $version, 'all' );
69
70
// JavaScript
71
- wp_enqueue_script( $prefix . '-admin-js', $url . 'inc/js/admin.js', array(), $version, true );
72
73
// Call the function that enqueue the CodeMirror library
74
- spacexchimp_p004_load_scripts_codemirror( $prefix, $url, $version );
75
76
}
77
- add_action( 'admin_enqueue_scripts', 'spacexchimp_p004_load_scripts_admin' );
8
/**
9
* Callback to enqueue the CodeMirror library
10
*/
11
+ function spacexchimp_p004_load_scripts_codemirror() {
12
+
13
+ // Put value of plugin constants into an array for easier access
14
+ $plugin = spacexchimp_p004_plugin();
15
16
// Enqueue main files of the CodeMirror library
17
+ wp_enqueue_style( $plugin['prefix'] . '-codemirror-css', $plugin['url'] . 'inc/lib/codemirror/lib/codemirror.css', array(), $plugin['version'], 'all' );
18
+ wp_enqueue_script( $plugin['prefix'] . '-codemirror-js', $plugin['url'] . 'inc/lib/codemirror/lib/codemirror.js', array(), $plugin['version'], false );
19
20
// Enqueue settings file
21
+ wp_enqueue_script( $plugin['prefix'] . '-codemirror-settings-js', $plugin['url'] . 'inc/js/codemirror-settings.js', array(), $plugin['version'], true );
22
23
// Enqueue addons
24
$addons = array(
27
);
28
foreach ( $addons as $addons_group_name => $addons_group ) {
29
foreach ( $addons_group as $addon ) {
30
+ wp_enqueue_script( $plugin['prefix'] . '-codemirror-addon-' . $addon . '-js', $plugin['url'] . 'inc/lib/codemirror/addon/' . $addons_group_name . '/' . $addon . '.js', array(), $plugin['version'], false );
31
}
32
}
33
36
'xml'
37
);
38
foreach ( $modes as $mode ) {
39
+ wp_enqueue_script( $plugin['prefix'] . '-codemirror-mode-' . $mode . '-js', $plugin['url'] . 'inc/lib/codemirror/mode/' . $mode . '/' . $mode . '.js', array(), $plugin['version'], true );
40
}
41
42
}
46
*/
47
function spacexchimp_p004_load_scripts_admin( $hook ) {
48
49
+ // Put value of plugin constants into an array for easier access
50
+ $plugin = spacexchimp_p004_plugin();
51
52
// Return if the page is not a settings page of this plugin
53
+ $settings_page = 'settings_page_' . $plugin['slug'];
54
+ if ( $settings_page != $hook ) {
55
+ return;
56
+ }
57
58
// Load jQuery library
59
wp_enqueue_script( 'jquery' );
60
61
// Bootstrap library
62
+ wp_enqueue_style( $plugin['prefix'] . '-bootstrap-css', $plugin['url'] . 'inc/lib/bootstrap/bootstrap.css', array(), $plugin['version'], 'all' );
63
+ wp_enqueue_style( $plugin['prefix'] . '-bootstrap-theme-css', $plugin['url'] . 'inc/lib/bootstrap/bootstrap-theme.css', array(), $plugin['version'], 'all' );
64
+ wp_enqueue_script( $plugin['prefix'] . '-bootstrap-js', $plugin['url'] . 'inc/lib/bootstrap/bootstrap.js', array(), $plugin['version'], false );
65
66
// Font Awesome library
67
+ wp_enqueue_style( $plugin['prefix'] . '-font-awesome-css', $plugin['url'] . 'inc/lib/font-awesome/css/font-awesome.css', array(), $plugin['version'], 'screen' );
68
69
// Style sheet
70
+ wp_enqueue_style( $plugin['prefix'] . '-admin-css', $plugin['url'] . 'inc/css/admin.css', array(), $plugin['version'], 'all' );
71
72
// JavaScript
73
+ wp_enqueue_script( $plugin['prefix'] . '-admin-js', $plugin['url'] . 'inc/js/admin.js', array(), $plugin['version'], true );
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' );
inc/php/functional.php CHANGED
@@ -10,8 +10,11 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
*/
11
function spacexchimp_p004_prepare() {
12
13
// Retrieve options from database
14
- $options = get_option( SPACEXCHIMP_P004_SETTINGS . '_settings' );
15
16
// Sanitize data and declare variables
17
$google = esc_textarea( $options['google'] );
@@ -43,87 +46,87 @@ function spacexchimp_p004_prepare() {
43
$array = array();
44
45
// Web Master Tools
46
- if ( !empty( $google ) ) {
47
$array[] = "<meta name='google-site-verification' content='$google' />";
48
}
49
- if ( !empty( $yandex ) ) {
50
$array[] = "<meta name='yandex-verification' content='$yandex' />";
51
}
52
- if ( !empty( $bing ) ) {
53
$array[] = "<meta name='msvalidate.01' content='$bing' />";
54
}
55
56
// Website Verification Services
57
- if ( !empty( $pinterest ) ) {
58
$array[] = "<meta name='p:domain_verify' content='$pinterest' />";
59
}
60
- if ( !empty( $google_author ) ) {
61
$array[] = "<link rel='author' href='$google_author'>";
62
}
63
- if ( !empty( $facebook ) ) {
64
$array[] = "<meta name='article:publisher' content='$facebook' />";
65
}
66
- if ( !empty( $twitter ) ) {
67
$array[] = "<meta name='twitter:site' content='$twitter' />";
68
$array[] = "<meta name='twitter:creator' content='$twitter' />";
69
}
70
- if ( !empty( $alexa ) ) {
71
$array[] = "<meta name='alexaVerifyID' content='$alexa' />";
72
}
73
- if ( !empty( $norton ) ) {
74
$array[] = "<meta name='norton-safeweb-site-verification' content='$norton' />";
75
}
76
- if ( !empty( $wot ) ) {
77
$array[] = "<meta name='wot-verification' content='$wot' />";
78
}
79
- if ( !empty( $specificfeeds ) ) {
80
$array[] = "<meta name='specificfeeds-verification-code' content='$specificfeeds' />";
81
}
82
- if ( !empty( $custom_meta ) ) {
83
$array[] = $custom_meta;
84
}
85
86
// Custom meta tags for specific pages
87
if ( is_front_page() && is_home() ) {
88
// Default Home Page
89
- if ( !empty( $home_description ) ) {
90
$array[] = "<meta name='description' content='$blog_description' />";
91
}
92
- if ( !empty( $home_keywords ) ) {
93
$array[] = "<meta name='keywords' content='$blog_keywords' />";
94
}
95
} elseif ( is_front_page() ) {
96
// Static Home Page
97
- if ( !empty( $home_description ) ) {
98
$array[] = "<meta name='description' content='$home_description' />";
99
}
100
- if ( !empty( $home_keywords ) ) {
101
$array[] = "<meta name='keywords' content='$home_keywords' />";
102
}
103
} elseif ( is_home() ) {
104
// Blog Page
105
- if ( !empty( $home_description ) ) {
106
$array[] = "<meta name='description' content='$blog_description' />";
107
}
108
- if ( !empty( $home_keywords ) ) {
109
$array[] = "<meta name='keywords' content='$blog_keywords' />";
110
}
111
}
112
113
// Custom meta tags for the entire website
114
- if ( !empty( $author ) ) {
115
$array[] = "<meta name='author' content='$author' />";
116
}
117
- if ( !empty( $designer ) ) {
118
$array[] = "<meta name='designer' content='$designer' />";
119
}
120
- if ( !empty( $contact ) ) {
121
$array[] = "<meta name='contact' content='$contact' />";
122
}
123
- if ( !empty( $copyright ) ) {
124
$array[] = "<meta name='copyright' content='$copyright' />";
125
}
126
- if ( !empty( $keywords ) ) {
127
$array[] = "<meta name='keywords' content='$keywords' />";
128
}
129
@@ -135,13 +138,13 @@ function spacexchimp_p004_prepare() {
135
// Get product data
136
$name = get_the_title();
137
$description = get_the_excerpt();
138
- $image = simplexml_load_string(get_the_post_thumbnail());
139
- if ( !empty( $image ) ) {
140
$imagesrc = $image->attributes()->src;
141
} else {
142
$imagesrc = "";
143
}
144
- $price = get_post_meta( get_the_ID(), '_price', true);
145
$currency = get_woocommerce_currency();
146
147
// Generate output code with product data
@@ -190,7 +193,7 @@ add_action( 'wp_head', 'spacexchimp_p004_exec', 0 );
190
function spacexchimp_p004_preview() {
191
$array = spacexchimp_p004_prepare();
192
193
- if ( !empty( $array ) ) {
194
if ( is_array( $array ) ) {
195
if ( count( $array ) > 0 ) {
196
array_shift( $array );
10
*/
11
function spacexchimp_p004_prepare() {
12
13
+ // Put value of plugin constants into an array for easier access
14
+ $plugin = spacexchimp_p004_plugin();
15
+
16
// Retrieve options from database
17
+ $options = get_option( $plugin['settings'] . '_settings' );
18
19
// Sanitize data and declare variables
20
$google = esc_textarea( $options['google'] );
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( $home_description ) ) {
93
$array[] = "<meta name='description' content='$blog_description' />";
94
}
95
+ if ( ! empty( $home_keywords ) ) {
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( $home_description ) ) {
109
$array[] = "<meta name='description' content='$blog_description' />";
110
}
111
+ if ( ! empty( $home_keywords ) ) {
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
138
// Get product data
139
$name = get_the_title();
140
$description = get_the_excerpt();
141
+ $image = simplexml_load_string( get_the_post_thumbnail() );
142
+ if ( ! empty( $image ) ) {
143
$imagesrc = $image->attributes()->src;
144
} else {
145
$imagesrc = "";
146
}
147
+ $price = get_post_meta( get_the_ID(), '_price', true );
148
$currency = get_woocommerce_currency();
149
150
// Generate output code with product data
193
function spacexchimp_p004_preview() {
194
$array = spacexchimp_p004_prepare();
195
196
+ if ( ! empty( $array ) ) {
197
if ( is_array( $array ) ) {
198
if ( count( $array ) > 0 ) {
199
array_shift( $array );
inc/php/messages.php CHANGED
@@ -10,16 +10,14 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
*/
11
function spacexchimp_p004_message_hello() {
12
13
- // Put value of constants to variables for easier access
14
- $settings = SPACEXCHIMP_P004_SETTINGS;
15
- $url = SPACEXCHIMP_P004_URL;
16
- $text = SPACEXCHIMP_P004_TEXT;
17
18
// Retrieve options from database and declare variables
19
- $options = get_option( $settings . '_settings' );
20
21
// Exit if options are already set in database
22
- if ( !empty( $options ) ) {
23
return;
24
}
25
@@ -29,16 +27,16 @@ function spacexchimp_p004_message_hello() {
29
<div class="modal-dialog">
30
<div class="modal-content">
31
<div class="modal-body">
32
- <img src="<?php echo $url . 'inc/img/spacexchimp-logo.png'; ?>">
33
<button type="button" class="close" data-dismiss="modal">&times;</button>
34
<p>
35
- <?php _e( 'Hello!', $text ); ?>
36
- <?php _e( 'We are the team of Space X-Chimp.', $text ); ?>
37
</p>
38
<p>
39
<?php
40
printf(
41
- __( 'Thank you for installing our plugin! We hope you will love it! %s', $text ),
42
'&#x1F603;'
43
);
44
?>
@@ -71,12 +69,11 @@ function spacexchimp_p004_message_hello() {
71
*/
72
function spacexchimp_p004_message_error_version() {
73
74
- // Put value of constants to variables for easier access
75
- $settings = SPACEXCHIMP_P004_SETTINGS;
76
- $text = SPACEXCHIMP_P004_TEXT;
77
78
// Retrieve options from database and declare variables
79
- $info = get_option( $settings . '_service_info' );
80
$old_version = !empty( $info['old_version'] ) ? $info['old_version'] : '0';
81
82
// Exit if this is not the old version of the plugin
@@ -90,8 +87,8 @@ function spacexchimp_p004_message_error_version() {
90
<div class="modal-dialog">
91
<div class="modal-content">
92
<div class="modal-body">
93
- <p><?php _e( 'You have installed an old version of this plugin.', $text ); ?></p>
94
- <p><?php _e( 'Please update the plugin to the latest version, and all will be fine.', $text ); ?></p>
95
</div>
96
</div>
97
</div>
@@ -114,19 +111,19 @@ function spacexchimp_p004_message_error_version() {
114
function spacexchimp_p004_message_save() {
115
116
// Exit if settings are not updated
117
- if ( !isset( $_GET['settings-updated'] ) ) {
118
return;
119
}
120
121
- // Put value of constants to variables for easier access
122
- $text = SPACEXCHIMP_P004_TEXT;
123
124
// HTML layout
125
?>
126
<div id="message" class="updated">
127
<p>
128
<i class="fa fa-check" aria-hidden="true"></i>
129
- <?php _e( 'Settings saved successfully.', $text ); ?>
130
</p>
131
</div>
132
<?php
10
*/
11
function spacexchimp_p004_message_hello() {
12
13
+ // Put value of plugin constants into an array for easier access
14
+ $plugin = spacexchimp_p004_plugin();
15
16
// Retrieve options from database and declare variables
17
+ $options = get_option( $plugin['settings'] . '_settings' );
18
19
// Exit if options are already set in database
20
+ if ( ! empty( $options ) ) {
21
return;
22
}
23
27
<div class="modal-dialog">
28
<div class="modal-content">
29
<div class="modal-body">
30
+ <img src="<?php echo $plugin['url'] . 'inc/img/spacexchimp-logo.png'; ?>">
31
<button type="button" class="close" data-dismiss="modal">&times;</button>
32
<p>
33
+ <?php _e( 'Hello!', $plugin['text'] ); ?>
34
+ <?php _e( 'We are the team of Space X-Chimp.', $plugin['text'] ); ?>
35
</p>
36
<p>
37
<?php
38
printf(
39
+ __( 'Thank you for installing our plugin! We hope you will love it! %s', $plugin['text'] ),
40
'&#x1F603;'
41
);
42
?>
69
*/
70
function spacexchimp_p004_message_error_version() {
71
72
+ // Put value of plugin constants into an array for easier access
73
+ $plugin = spacexchimp_p004_plugin();
74
75
// Retrieve options from database and declare variables
76
+ $info = get_option( $plugin['settings'] . '_service_info' );
77
$old_version = !empty( $info['old_version'] ) ? $info['old_version'] : '0';
78
79
// Exit if this is not the old version of the plugin
87
<div class="modal-dialog">
88
<div class="modal-content">
89
<div class="modal-body">
90
+ <p><?php _e( 'You have installed an old version of this plugin.', $plugin['text'] ); ?></p>
91
+ <p><?php _e( 'Please update the plugin to the latest version, and all will be fine.', $plugin['text'] ); ?></p>
92
</div>
93
</div>
94
</div>
111
function spacexchimp_p004_message_save() {
112
113
// Exit if settings are not updated
114
+ if ( ! isset( $_GET['settings-updated'] ) ) {
115
return;
116
}
117
118
+ // Put value of plugin constants into an array for easier access
119
+ $plugin = spacexchimp_p004_plugin();
120
121
// HTML layout
122
?>
123
<div id="message" class="updated">
124
<p>
125
<i class="fa fa-check" aria-hidden="true"></i>
126
+ <?php _e( 'Settings saved successfully.', $plugin['text'] ); ?>
127
</p>
128
</div>
129
<?php
inc/php/page.php CHANGED
@@ -10,12 +10,8 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
*/
11
function spacexchimp_p004_render_submenu_page() {
12
13
- // Put value of constants to variables for easier access
14
- $name = SPACEXCHIMP_P004_NAME;
15
- $slug = SPACEXCHIMP_P004_SLUG;
16
- $version = SPACEXCHIMP_P004_VERSION;
17
- $text = SPACEXCHIMP_P004_TEXT;
18
- $path = SPACEXCHIMP_P004_PATH;
19
20
// Call messages
21
spacexchimp_p004_message_hello();
@@ -27,55 +23,55 @@ function spacexchimp_p004_render_submenu_page() {
27
<div class="wrap">
28
29
<h2 class="sxc-header">
30
- <?php echo $name; ?>
31
<span>
32
<?php
33
printf(
34
- __( 'by %s Space X-Chimp %s', $text ),
35
'<a href="https://www.spacexchimp.com" target="_blank">',
36
'</a>'
37
);
38
?>
39
</span>
40
- <p class="version"><?php _e( 'Version', $text ); ?> <?php echo $version; ?></p>
41
</h2>
42
43
<div id="poststuff" class="metabox-holder has-right-sidebar">
44
45
<!-- TABS NAVIGATION MENU -->
46
<ul class="tabs-nav">
47
- <li class="active"><a href="#tab-core" data-toggle="tab"><?php _e( 'Settings', $text ); ?></a></li>
48
- <li><a href="#tab-usage" data-toggle="tab"><?php _e( 'Usage', $text ); ?></a></li>
49
- <li><a href="#tab-faq" data-toggle="tab"><?php _e( 'F.A.Q.', $text ); ?></a></li>
50
- <li><a href="#tab-support" data-toggle="tab"><?php _e( 'Support', $text ); ?></a></li>
51
- <li><a href="#tab-store" data-toggle="tab"><?php _e( 'Store', $text ); ?></a></li>
52
</ul>
53
<!-- END-TABS NAVIGATION MENU -->
54
55
<!-- TAB 1 -->
56
<div class="tab-page fade active in" id="tab-core">
57
<!-- INCLUDE SIDEBAR -->
58
- <?php require_once( $path . 'inc/php/sidebar.php' ); ?>
59
<!-- INCLUDE SETTINGS -->
60
- <?php require_once( $path . 'inc/php/tabs/settings.php' ); ?>
61
</div>
62
<!-- END-TAB 1 -->
63
64
<!-- TAB 2 -->
65
<div class="tab-page fade" id="tab-usage">
66
- <?php require_once( $path . 'inc/php/tabs/usage.php' ); ?>
67
</div>
68
<!-- END-TAB 2 -->
69
70
<!-- TAB 3 -->
71
<div class="tab-page fade" id="tab-faq">
72
- <?php require_once( $path . 'inc/php/tabs/faq.php' ); ?>
73
</div>
74
<!-- END-TAB 3 -->
75
76
<!-- TAB 4 -->
77
<div class="tab-page fade" id="tab-support">
78
- <?php require_once( $path . 'inc/php/tabs/support.php' ); ?>
79
</div>
80
<!-- END-TAB 4 -->
81
10
*/
11
function spacexchimp_p004_render_submenu_page() {
12
13
+ // Put value of plugin constants into an array for easier access
14
+ $plugin = spacexchimp_p004_plugin();
15
16
// Call messages
17
spacexchimp_p004_message_hello();
23
<div class="wrap">
24
25
<h2 class="sxc-header">
26
+ <?php echo $plugin['name']; ?>
27
<span>
28
<?php
29
printf(
30
+ __( 'by %s Space X-Chimp %s', $plugin['text'] ),
31
'<a href="https://www.spacexchimp.com" target="_blank">',
32
'</a>'
33
);
34
?>
35
</span>
36
+ <p class="version"><?php _e( 'Version', $plugin['text'] ); ?> <?php echo $plugin['version']; ?></p>
37
</h2>
38
39
<div id="poststuff" class="metabox-holder has-right-sidebar">
40
41
<!-- TABS NAVIGATION MENU -->
42
<ul class="tabs-nav">
43
+ <li class="active"><a href="#tab-core" data-toggle="tab"><?php _e( 'Settings', $plugin['text'] ); ?></a></li>
44
+ <li><a href="#tab-usage" data-toggle="tab"><?php _e( 'Usage', $plugin['text'] ); ?></a></li>
45
+ <li><a href="#tab-faq" data-toggle="tab"><?php _e( 'F.A.Q.', $plugin['text'] ); ?></a></li>
46
+ <li><a href="#tab-support" data-toggle="tab"><?php _e( 'Support', $plugin['text'] ); ?></a></li>
47
+ <li><a href="#tab-store" data-toggle="tab"><?php _e( 'Store', $plugin['text'] ); ?></a></li>
48
</ul>
49
<!-- END-TABS NAVIGATION MENU -->
50
51
<!-- TAB 1 -->
52
<div class="tab-page fade active in" id="tab-core">
53
<!-- INCLUDE SIDEBAR -->
54
+ <?php require_once( $plugin['path'] . 'inc/php/sidebar.php' ); ?>
55
<!-- INCLUDE SETTINGS -->
56
+ <?php require_once( $plugin['path'] . 'inc/php/tabs/settings.php' ); ?>
57
</div>
58
<!-- END-TAB 1 -->
59
60
<!-- TAB 2 -->
61
<div class="tab-page fade" id="tab-usage">
62
+ <?php require_once( $plugin['path'] . 'inc/php/tabs/usage.php' ); ?>
63
</div>
64
<!-- END-TAB 2 -->
65
66
<!-- TAB 3 -->
67
<div class="tab-page fade" id="tab-faq">
68
+ <?php require_once( $plugin['path'] . 'inc/php/tabs/faq.php' ); ?>
69
</div>
70
<!-- END-TAB 3 -->
71
72
<!-- TAB 4 -->
73
<div class="tab-page fade" id="tab-support">
74
+ <?php require_once( $plugin['path'] . 'inc/php/tabs/support.php' ); ?>
75
</div>
76
<!-- END-TAB 4 -->
77
inc/php/sidebar.php CHANGED
@@ -13,39 +13,39 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
13
<div id="side-sortables" class="meta-box-sortabless ui-sortable">
14
15
<div class="postbox banner">
16
- <h3 class="title"><?php _e( 'We are «Space X-Chimp»', $text ); ?></h3>
17
<div class="inside">
18
<a href="https://www.spacexchimp.com/" target="_blank">
19
- <img src="<?php echo SPACEXCHIMP_P004_URL . 'inc/img/spacexchimp-logo.png'; ?>" alt="Space X-Chimp">
20
</a>
21
</div>
22
</div>
23
24
<div class="postbox about">
25
- <h3 class="title"><?php _e( 'About', $text ); ?></h3>
26
<div class="inside">
27
- <p><?php _e( 'This plugin gives you the ability to easily and safely add your custom meta tags to your WordPress website, directly out of the WordPress Admin Area, without the need to have an external editor.', $text ); ?></p>
28
</div>
29
</div>
30
31
<div class="postbox help">
32
- <h3 class="title"><?php _e( 'Help', $text ); ?></h3>
33
<div class="inside">
34
- <p><?php _e( 'If you have a question, please read the information in the FAQ section.', $text ); ?></p>
35
</div>
36
</div>
37
38
<div class="postbox support">
39
- <h3 class="title"><?php _e( 'Support', $text ); ?></h3>
40
<div class="inside">
41
- <p><?php _e( 'Every little contribution helps to cover our costs and allows us to spend more time creating things for awesome people like you to enjoy.', $text ); ?></p>
42
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" class="btn btn-default button-labeled">
43
<span class="btn-label">
44
- <img src="<?php echo SPACEXCHIMP_P004_URL . 'inc/img/paypal.svg'; ?>" alt="PayPal">
45
</span>
46
- <?php _e( 'Donate with PayPal', $text ); ?>
47
</a>
48
- <p><?php _e( 'Thanks for your support!', $text ); ?></p>
49
</div>
50
</div>
51
13
<div id="side-sortables" class="meta-box-sortabless ui-sortable">
14
15
<div class="postbox banner">
16
+ <h3 class="title"><?php _e( 'We are «Space X-Chimp»', $plugin['text'] ); ?></h3>
17
<div class="inside">
18
<a href="https://www.spacexchimp.com/" target="_blank">
19
+ <img src="<?php echo $plugin['url'] . 'inc/img/spacexchimp-logo.png'; ?>" alt="Space X-Chimp">
20
</a>
21
</div>
22
</div>
23
24
<div class="postbox about">
25
+ <h3 class="title"><?php _e( 'About', $plugin['text'] ); ?></h3>
26
<div class="inside">
27
+ <p><?php _e( 'This plugin gives you the ability to easily and safely add your custom meta tags to your WordPress website, directly out of the WordPress Admin Area, without the need to have an external editor.', $plugin['text'] ); ?></p>
28
</div>
29
</div>
30
31
<div class="postbox help">
32
+ <h3 class="title"><?php _e( 'Help', $plugin['text'] ); ?></h3>
33
<div class="inside">
34
+ <p><?php _e( 'If you have a question, please read the information in the FAQ section.', $plugin['text'] ); ?></p>
35
</div>
36
</div>
37
38
<div class="postbox support">
39
+ <h3 class="title"><?php _e( 'Support', $plugin['text'] ); ?></h3>
40
<div class="inside">
41
+ <p><?php _e( 'Every little contribution helps to cover our costs and allows us to spend more time creating things for awesome people like you to enjoy.', $plugin['text'] ); ?></p>
42
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" class="btn btn-default button-labeled">
43
<span class="btn-label">
44
+ <img src="<?php echo $plugin['url'] . 'inc/img/paypal.svg'; ?>" alt="PayPal">
45
</span>
46
+ <?php _e( 'Donate with PayPal', $plugin['text'] ); ?>
47
</a>
48
+ <p><?php _e( 'Thanks for your support!', $plugin['text'] ); ?></p>
49
</div>
50
</div>
51
inc/php/tabs/faq.php CHANGED
@@ -10,11 +10,11 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
*/
11
?>
12
<div class="postbox">
13
- <h3 class="title"><?php _e( 'Frequently Asked Questions', $text ); ?></h3>
14
<div class="inside">
15
16
<p class="note">
17
- <?php _e( 'If you have a question, please read the Frequently Asked Questions below to see if the answer is here.', $text ); ?>
18
</p>
19
20
<div class="panel-group" id="collapse-group">
@@ -39,12 +39,12 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
39
<?php $i = 1; ?>
40
41
<div class="question-<?php echo $i; ?>">
42
- <?php _e( 'Where can I find a documentation for this plugin?', $text ); ?>
43
</div>
44
<div class="answer-<?php echo $i; $i++ ?>">
45
<?php
46
printf(
47
- __( 'Please visit our %s Documentation site %s to view documentation.', $text ),
48
'<a href="https://docs.spacexchimp.com" target="_blank">',
49
'</a>'
50
);
@@ -52,101 +52,101 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
52
</div>
53
54
<div class="question-<?php echo $i; ?>">
55
- <?php _e( 'Will this plugin work on my wordpress.COM website?', $text ); ?>
56
</div>
57
<div class="answer-<?php echo $i; $i++ ?>">
58
- <?php _e( 'Sorry, this plugin is available for use only on self-hosted (wordpress.ORG) websites.', $text ); ?>
59
<br><br>
60
- <?php _e( 'Please note that there is a difference between wordpress.COM and wordpress.ORG.', $text ); ?>
61
- <?php _e( 'The wordpress.COM is a blog hosting service that offers a limited version of the popular self-hosted WordPress software.', $text ); ?>
62
<?php
63
printf(
64
- __( 'You can learn more about the difference here: %s .', $text ),
65
'<a href="https://en.support.wordpress.com/com-vs-org/" target="_blank">https://en.support.wordpress.com/com-vs-org/</a>'
66
);
67
?>
68
</div>
69
70
<div class="question-<?php echo $i; ?>">
71
- <?php _e( 'Will this plugin work/compatible with the theme I use?', $text ); ?>
72
</div>
73
<div class="answer-<?php echo $i; $i++ ?>">
74
- <?php _e( 'This plugin is compatible with most themes.', $text ); ?>
75
- <?php _e( 'But, unfortunately, we cannot check it with all third-party themes (especially paid ones) for compatibility, therefore there are cases when this plugin does not work with a third-party theme.', $text ); ?>
76
- <?php _e( 'We constantly check this plugin for compatibility with third-party themes.', $text ); ?>
77
- <?php _e( 'If we find that this plugin is incompatible with a third-party theme, and if we can fix it on our part, we release an update of our plugin to fix the problem.', $text ); ?>
78
<br><br>
79
- <?php _e( 'If you find a conflict between our plugin and a third-party theme, please let us know and we will definitely release an update of our plugin to fix the problem.', $text ); ?>
80
</div>
81
82
<div class="question-<?php echo $i; ?>">
83
- <?php _e( 'Will this plugin work/compatible with other plugins that I use?', $text ); ?>
84
</div>
85
<div class="answer-<?php echo $i; $i++ ?>">
86
- <?php _e( 'This plugin is compatible with most plugins.', $text ); ?>
87
- <?php _e( 'But, unfortunately, we cannot check it with all third-party plugins (especially paid ones) for compatibility, therefore there are cases when this plugin does not work with a third-party plugin.', $text ); ?>
88
- <?php _e( 'We constantly check this plugin for compatibility with third-party plugins.', $text ); ?>
89
- <?php _e( 'If we find that this plugin is incompatible with a third-party plugin, and if we can fix it on our part, we release an update of our plugin to fix the problem.', $text ); ?>
90
<br><br>
91
- <?php _e( 'If you find a conflict between our plugin and a third-party plugin, please let us know and we will definitely release an update of our plugin to fix the problem.', $text ); ?>
92
</div>
93
94
<div class="question-<?php echo $i; ?>">
95
- <?php _e( 'Can I use this plugin on my language?', $text ); ?>
96
</div>
97
<div class="answer-<?php echo $i; $i++ ?>">
98
- <?php _e( 'Yes.', $text ); ?>
99
- <?php _e( 'This plugin is ready for translation and has already been translated into several languages.', $text ); ?>
100
- <?php _e( 'But If your language is not available then you can make one.', $text ); ?>
101
- <?php _e( 'It is also possible that not all existing translations are up-to-date or correct, so you are welcome to make corrections.', $text ); ?>
102
- <?php _e( 'Many of plugin users would be delighted if you share your translation with the community.', $text ); ?>
103
- <?php _e( 'Thanks for your contribution!', $text ); ?>
104
<br><br>
105
<?php
106
printf(
107
- __( 'If you want to help translate this plugin, please visit the %s.', $text ),
108
- '<a href="https://translate.wordpress.org/projects/wp-plugins/' . $slug . '" target="_blank">translation page</a>'
109
);
110
?>
111
- <?php _e( 'You can also use the POT file that is included and placed in the "languages" folder to create a translation PO file.', $text ); ?>
112
<?php
113
printf(
114
- __( 'Just send the PO file to us ( %s ) and we will include this translation within the next plugin update.', $text ),
115
- '<a href="mailto:support@spacexchimp.com?subject=New translation of the ' . $name . ' plugin">support@spacexchimp.com</a>'
116
);
117
?>
118
</div>
119
120
<div class="question-<?php echo $i; ?>">
121
- <?php _e( 'How does it work?', $text ); ?>
122
</div>
123
<div class="answer-<?php echo $i; $i++ ?>">
124
- <?php _e( 'On the "Settings" tab, fill in the required fields and click the "Save changes" button.', $text ); ?>
125
- <?php _e( 'Enjoy the improved SEO of your website.', $text ); ?>
126
- <?php _e( 'It\'s that simple!', $text ); ?>
127
</div>
128
129
<div class="question-<?php echo $i; ?>">
130
- <?php _e( 'How much of description I can enter in the text field?', $text ); ?>
131
</div>
132
<div class="answer-<?php echo $i; $i++ ?>">
133
- <?php _e( 'We don\'t limit the number of characters, but most search engines use a maximum of 160 chars for the home description.', $text ); ?>
134
</div>
135
136
<div class="question-<?php echo $i; ?>">
137
- <?php _e( 'How much of keywords I can enter in the text field?', $text ); ?>
138
</div>
139
<div class="answer-<?php echo $i; $i++ ?>">
140
- <?php _e( 'We don\'t limit the number of characters.', $text ); ?>
141
</div>
142
143
<div class="question-<?php echo $i; ?>">
144
- <?php _e( 'What about compatibility with the plugin "All in One SEO Pack"?', $text ); ?>
145
</div>
146
<div class="answer-<?php echo $i; $i++ ?>">
147
- <?php _e( 'As far as we know, the "All Meta Tags" plugin is compatible with the "All in One SEO Pack" plugin.', $text ); ?>
148
- <?php _e( 'But to make sure that these plugins do not conflict with each other, you need to follow one simple rule: do not fill the same field in both plugins at once.', $text ); ?>
149
- <?php _e( 'Otherwise both plugins fulfill their work and you will get a duplicate actions, for example:', $text ); ?>
150
<pre><code>&lt;head&gt;
151
...
152
&lt;meta name="copyright" content="Copyright (c) 2013-2019 Space X-Chimp. All Rights Reserved."&gt;
@@ -154,139 +154,139 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
154
&lt;meta name="copyright" content="Copyright 2019 Space X-Chimp. All Rights Reserved."&gt;
155
...
156
&lt;/head&gt;</code></pre>
157
- <?php _e( 'If you find a conflict between the plugins, please let us know and we will definitely release an update of our plugin to fix the problem.', $text ); ?>
158
</div>
159
160
<div class="question-<?php echo $i; ?>">
161
- <?php _e( 'What about compatibility with the plugin "Yoast SEO"?', $text ); ?>
162
</div>
163
<div class="answer-<?php echo $i; $i++ ?>">
164
- <?php _e( 'As far as we know, the "All Meta Tags" plugin is compatible with the "Yoast SEO" plugin.', $text ); ?>
165
- <?php _e( 'But to make sure that these plugins do not conflict with each other, you need to follow one simple rule: do not fill the same field in both plugins at once.', $text ); ?>
166
- <?php _e( 'Otherwise both plugins fulfill their work and you will get a duplicate actions.', $text ); ?>
167
<br><br>
168
- <?php _e( 'If you find a conflict between the plugins, please let us know and we will definitely release an update of our plugin to fix the problem.', $text ); ?>
169
</div>
170
171
<div class="question-<?php echo $i; ?>">
172
- <?php _e( 'Does this plugin requires any modification of the theme?', $text ); ?>
173
</div>
174
<div class="answer-<?php echo $i; $i++ ?>">
175
- <?php _e( 'Absolutely not.', $text ); ?>
176
- <?php _e( 'This plugin is configurable entirely from the plugin settings page.', $text ); ?>
177
</div>
178
179
<div class="question-<?php echo $i; ?>">
180
- <?php _e( 'Does this require any knowledge of HTML or CSS?', $text ); ?>
181
</div>
182
<div class="answer-<?php echo $i; $i++ ?>">
183
- <?php _e( 'Absolutely not.', $text ); ?>
184
- <?php _e( 'This plugin can be configured with no knowledge of HTML or CSS, using an easy-to-use plugin settings page.', $text ); ?>
185
</div>
186
187
<div class="question-<?php echo $i; ?> question-red">
188
- <?php _e( 'It\'s not working.', $text ); ?>
189
- <?php _e( 'What could be wrong?', $text ); ?>
190
</div>
191
<div class="answer-<?php echo $i; $i++ ?>">
192
- <?php _e( 'As with every plugin, it\'s possible that things don\'t work.', $text ); ?>
193
- <?php _e( 'It\'s impossible to tell what could be wrong exactly.', $text ); ?>
194
- <?php _e( 'The most common reason for this is a web browser\'s cache.', $text ); ?>
195
- <?php _e( 'Every web browser stores a cache of the websites you visit (pages, images, and etc.) to reduce bandwidth usage and server load.', $text ); ?>
196
- <?php _e( 'This is called the browser\'s cache.', $text ); ?>
197
- <?php _e( 'Clearing your browser\'s cache may solve the problem.', $text ); ?>
198
<br><br>
199
- <?php _e( 'If you post a support request in the plugin\'s support forum on WordPress.org, we\'d be happy to give it a look and try to help out.', $text ); ?>
200
- <?php _e( 'Please include as much information as possible, including a link to your website where the problem can be seen.', $text ); ?>
201
</div>
202
203
<div class="question-<?php echo $i; ?> question-red">
204
- <?php _e( 'I can\'t get verify my website.', $text ); ?>
205
- <?php _e( 'What am I doing wrong?', $text ); ?>
206
</div>
207
<div class="answer-<?php echo $i; $i++ ?>">
208
- <?php _e( 'The tag code which Google (or Bing, Yandex, Pinterest, Alexa, Norton, WOT, SpecificFeeds) gives you is confusing as you only have to paste in the serial key number/letters (<code>1234567890</code>) and not the whole tag (<code>&lt;meta name="google-site-verification" content=“1234567890” /&gt;</code>).', $text ); ?>
209
- <?php _e( 'So just paste that into the relevant field and you will see “Success” message appear within a few seconds.', $text ); ?>
210
</div>
211
212
<div class="question-<?php echo $i; ?> question-red">
213
- <?php _e( 'The last WordPress update is preventing me from editing my website that is using this plugin.', $text ); ?>
214
- <?php _e( 'Why is this?', $text ); ?>
215
</div>
216
<div class="answer-<?php echo $i; $i++ ?>">
217
- <?php _e( 'This plugin can not cause such problem.', $text ); ?>
218
- <?php _e( 'More likely, the problem are related to the settings of the website.', $text ); ?>
219
- <?php _e( 'It could just be a cache, so please try to clear your website\'s cache (may be you using a caching plugin, or some web service such as the CloudFlare) and then the cache of your web browser.', $text ); ?>
220
- <?php _e( 'Also please try to re-login to the website, this too can help.', $text ); ?>
221
</div>
222
223
<div class="question-<?php echo $i; ?> question-red">
224
- <?php _e( 'Where to report bug if found?', $text ); ?>
225
</div>
226
<div class="answer-<?php echo $i; $i++ ?>">
227
- <?php _e( 'Bug reports are very welcome!', $text ); ?>
228
<?php
229
printf(
230
- __( 'Please visit our %s contact page %s and report.', $text ),
231
'<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
232
'</a>'
233
);
234
?>
235
- <?php _e( 'Please do not forget to specify the name of the plugin.', $text ); ?>
236
- <?php _e( 'Thank you!', $text ); ?>
237
<br><br>
238
- <?php _e( 'Please include as much information as possible, including a link to your website where the problem can be seen.', $text ); ?>
239
- <?php _e( 'Describe in more detail what exactly you are seeing.', $text ); ?>
240
- <?php _e( 'Here are some examples:', $text ); ?>
241
<br><br>
242
<ul class="custom-list">
243
- <li><?php _e( 'Elements of the plugin settings page are not working.', $text ); ?></li>
244
- <li><?php _e( 'An error message is displayed on the plugin settings page.', $text ); ?></li>
245
- <li><?php _e( 'An error message is displayed on the front end of website.', $text ); ?></li>
246
- <li><?php _e( 'An error message is displayed on the back end of website.', $text ); ?></li>
247
- <li><?php _e( 'Website is crashed.', $text ); ?></li>
248
</ul>
249
</div>
250
251
<div class="question-<?php echo $i; ?>">
252
- <?php _e( 'Where to share any ideas or suggestions to make the plugin better?', $text ); ?>
253
</div>
254
<div class="answer-<?php echo $i; $i++ ?>">
255
- <?php _e( 'Any suggestions are very welcome!', $text ); ?>
256
<?php
257
printf(
258
- __( 'Please visit our %s contact page %s.', $text ),
259
'<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
260
'</a>'
261
);
262
?>
263
- <?php _e( 'Please do not forget to specify the name of the plugin.', $text ); ?>
264
- <?php _e( 'Thank you!', $text ); ?>
265
</div>
266
267
<div class="question-<?php echo $i; ?>">
268
- <?php _e( 'I love this plugin!', $text ); ?>
269
- <?php _e( 'Can I help somehow?', $text ); ?>
270
</div>
271
<div class="answer-<?php echo $i; $i++ ?>">
272
- <?php _e( 'Yes, any contributions are very welcome!', $text ); ?>
273
<?php
274
printf(
275
- __( 'Please visit our %s Support Us %s page.', $text ),
276
'<a href="https://www.spacexchimp.com/donate.html" target="_blank">',
277
'</a>'
278
);
279
?>
280
- <?php _e( 'Thank you!', $text ); ?>
281
</div>
282
283
<div class="question-<?php echo $i; ?>">
284
- <?php _e( 'Where can I find information about your licenses, payment process and refunds?', $text ); ?>
285
</div>
286
<div class="answer-<?php echo $i; $i++ ?>">
287
<?php
288
printf(
289
- __( 'Answers to common questions about our licenses, payment process and refunds can be found on our %s Common Questions %s page.', $text ),
290
'<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
291
'</a>'
292
);
@@ -294,12 +294,12 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
294
</div>
295
296
<div class="question-<?php echo $i; ?>">
297
- <?php _e( 'Where can I find information about your customer support?', $text ); ?>
298
</div>
299
<div class="answer-<?php echo $i; $i++ ?>">
300
<?php
301
printf(
302
- __( 'Answers to common questions about our customer support can be found on our %s Common Questions %s page.', $text ),
303
'<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
304
'</a>'
305
);
@@ -307,12 +307,12 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
307
</div>
308
309
<div class="question-<?php echo $i; ?>">
310
- <?php _e( 'Where can I find information about your affiliate program?', $text ); ?>
311
</div>
312
<div class="answer-<?php echo $i; $i++ ?>">
313
<?php
314
printf(
315
- __( 'Answers to common questions about our affiliate program can be found on our %s Common Questions %s page.', $text ),
316
'<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
317
'</a>'
318
);
@@ -320,17 +320,17 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
320
</div>
321
322
<div class="question-<?php echo $i; ?>">
323
- <?php _e( 'My question wasn\'t answered here.', $text ); ?>
324
</div>
325
<div class="answer-<?php echo $i; $i++ ?>">
326
<?php
327
printf(
328
- __( 'You can ask your question on %s this page %s.', $text ),
329
'<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
330
'</a>'
331
);
332
?>
333
- <?php _e( 'But please keep in mind that this plugin is free, and there is no a special support team, so we have no way to answer everyone.', $text ); ?>
334
</div>
335
336
</div>
10
*/
11
?>
12
<div class="postbox">
13
+ <h3 class="title"><?php _e( 'Frequently Asked Questions', $plugin['text'] ); ?></h3>
14
<div class="inside">
15
16
<p class="note">
17
+ <?php _e( 'If you have a question, please read the Frequently Asked Questions below to see if the answer is here.', $plugin['text'] ); ?>
18
</p>
19
20
<div class="panel-group" id="collapse-group">
39
<?php $i = 1; ?>
40
41
<div class="question-<?php echo $i; ?>">
42
+ <?php _e( 'Where can I find a documentation for this plugin?', $plugin['text'] ); ?>
43
</div>
44
<div class="answer-<?php echo $i; $i++ ?>">
45
<?php
46
printf(
47
+ __( 'Please visit our %s Documentation site %s to view documentation.', $plugin['text'] ),
48
'<a href="https://docs.spacexchimp.com" target="_blank">',
49
'</a>'
50
);
52
</div>
53
54
<div class="question-<?php echo $i; ?>">
55
+ <?php _e( 'Will this plugin work on my wordpress.COM website?', $plugin['text'] ); ?>
56
</div>
57
<div class="answer-<?php echo $i; $i++ ?>">
58
+ <?php _e( 'Sorry, this plugin is available for use only on self-hosted (wordpress.ORG) websites.', $plugin['text'] ); ?>
59
<br><br>
60
+ <?php _e( 'Please note that there is a difference between wordpress.COM and wordpress.ORG.', $plugin['text'] ); ?>
61
+ <?php _e( 'The wordpress.COM is a blog hosting service that offers a limited version of the popular self-hosted WordPress software.', $plugin['text'] ); ?>
62
<?php
63
printf(
64
+ __( 'You can learn more about the difference here: %s .', $plugin['text'] ),
65
'<a href="https://en.support.wordpress.com/com-vs-org/" target="_blank">https://en.support.wordpress.com/com-vs-org/</a>'
66
);
67
?>
68
</div>
69
70
<div class="question-<?php echo $i; ?>">
71
+ <?php _e( 'Will this plugin work/compatible with the theme I use?', $plugin['text'] ); ?>
72
</div>
73
<div class="answer-<?php echo $i; $i++ ?>">
74
+ <?php _e( 'This plugin is compatible with most themes.', $plugin['text'] ); ?>
75
+ <?php _e( 'But, unfortunately, we cannot check it with all third-party themes (especially paid ones) for compatibility, therefore there are cases when this plugin does not work with a third-party theme.', $plugin['text'] ); ?>
76
+ <?php _e( 'We constantly check this plugin for compatibility with third-party themes.', $plugin['text'] ); ?>
77
+ <?php _e( 'If we find that this plugin is incompatible with a third-party theme, and if we can fix it on our part, we release an update of our plugin to fix the problem.', $plugin['text'] ); ?>
78
<br><br>
79
+ <?php _e( 'If you find a conflict between our plugin and a third-party theme, please let us know and we will definitely release an update of our plugin to fix the problem.', $plugin['text'] ); ?>
80
</div>
81
82
<div class="question-<?php echo $i; ?>">
83
+ <?php _e( 'Will this plugin work/compatible with other plugins that I use?', $plugin['text'] ); ?>
84
</div>
85
<div class="answer-<?php echo $i; $i++ ?>">
86
+ <?php _e( 'This plugin is compatible with most plugins.', $plugin['text'] ); ?>
87
+ <?php _e( 'But, unfortunately, we cannot check it with all third-party plugins (especially paid ones) for compatibility, therefore there are cases when this plugin does not work with a third-party plugin.', $plugin['text'] ); ?>
88
+ <?php _e( 'We constantly check this plugin for compatibility with third-party plugins.', $plugin['text'] ); ?>
89
+ <?php _e( 'If we find that this plugin is incompatible with a third-party plugin, and if we can fix it on our part, we release an update of our plugin to fix the problem.', $plugin['text'] ); ?>
90
<br><br>
91
+ <?php _e( 'If you find a conflict between our plugin and a third-party plugin, please let us know and we will definitely release an update of our plugin to fix the problem.', $plugin['text'] ); ?>
92
</div>
93
94
<div class="question-<?php echo $i; ?>">
95
+ <?php _e( 'Can I use this plugin on my language?', $plugin['text'] ); ?>
96
</div>
97
<div class="answer-<?php echo $i; $i++ ?>">
98
+ <?php _e( 'Yes.', $plugin['text'] ); ?>
99
+ <?php _e( 'This plugin is ready for translation and has already been translated into several languages.', $plugin['text'] ); ?>
100
+ <?php _e( 'But If your language is not available then you can make one.', $plugin['text'] ); ?>
101
+ <?php _e( 'It is also possible that not all existing translations are up-to-date or correct, so you are welcome to make corrections.', $plugin['text'] ); ?>
102
+ <?php _e( 'Many of plugin users would be delighted if you share your translation with the community.', $plugin['text'] ); ?>
103
+ <?php _e( 'Thanks for your contribution!', $plugin['text'] ); ?>
104
<br><br>
105
<?php
106
printf(
107
+ __( 'If you want to help translate this plugin, please visit the %s.', $plugin['text'] ),
108
+ '<a href="https://translate.wordpress.org/projects/wp-plugins/' . $plugin['slug'] . '" target="_blank">translation page</a>'
109
);
110
?>
111
+ <?php _e( 'You can also use the POT file that is included and placed in the "languages" folder to create a translation PO file.', $plugin['text'] ); ?>
112
<?php
113
printf(
114
+ __( 'Just send the PO file to us ( %s ) and we will include this translation within the next plugin update.', $plugin['text'] ),
115
+ '<a href="mailto:support@spacexchimp.com?subject=New translation of the ' . $plugin['name'] . ' plugin">support@spacexchimp.com</a>'
116
);
117
?>
118
</div>
119
120
<div class="question-<?php echo $i; ?>">
121
+ <?php _e( 'How does it work?', $plugin['text'] ); ?>
122
</div>
123
<div class="answer-<?php echo $i; $i++ ?>">
124
+ <?php _e( 'On the "Settings" tab, fill in the required fields and click the "Save changes" button.', $plugin['text'] ); ?>
125
+ <?php _e( 'Enjoy the improved SEO of your website.', $plugin['text'] ); ?>
126
+ <?php _e( 'It\'s that simple!', $plugin['text'] ); ?>
127
</div>
128
129
<div class="question-<?php echo $i; ?>">
130
+ <?php _e( 'How much of description I can enter in the text field?', $plugin['text'] ); ?>
131
</div>
132
<div class="answer-<?php echo $i; $i++ ?>">
133
+ <?php _e( 'We don\'t limit the number of characters, but most search engines use a maximum of 160 chars for the home description.', $plugin['text'] ); ?>
134
</div>
135
136
<div class="question-<?php echo $i; ?>">
137
+ <?php _e( 'How much of keywords I can enter in the text field?', $plugin['text'] ); ?>
138
</div>
139
<div class="answer-<?php echo $i; $i++ ?>">
140
+ <?php _e( 'We don\'t limit the number of characters.', $plugin['text'] ); ?>
141
</div>
142
143
<div class="question-<?php echo $i; ?>">
144
+ <?php _e( 'What about compatibility with the plugin "All in One SEO Pack"?', $plugin['text'] ); ?>
145
</div>
146
<div class="answer-<?php echo $i; $i++ ?>">
147
+ <?php _e( 'As far as we know, the "All Meta Tags" plugin is compatible with the "All in One SEO Pack" plugin.', $plugin['text'] ); ?>
148
+ <?php _e( 'But to make sure that these plugins do not conflict with each other, you need to follow one simple rule: do not fill the same field in both plugins at once.', $plugin['text'] ); ?>
149
+ <?php _e( 'Otherwise both plugins fulfill their work and you will get a duplicate actions, for example:', $plugin['text'] ); ?>
150
<pre><code>&lt;head&gt;
151
...
152
&lt;meta name="copyright" content="Copyright (c) 2013-2019 Space X-Chimp. All Rights Reserved."&gt;
154
&lt;meta name="copyright" content="Copyright 2019 Space X-Chimp. All Rights Reserved."&gt;
155
...
156
&lt;/head&gt;</code></pre>
157
+ <?php _e( 'If you find a conflict between the plugins, please let us know and we will definitely release an update of our plugin to fix the problem.', $plugin['text'] ); ?>
158
</div>
159
160
<div class="question-<?php echo $i; ?>">
161
+ <?php _e( 'What about compatibility with the plugin "Yoast SEO"?', $plugin['text'] ); ?>
162
</div>
163
<div class="answer-<?php echo $i; $i++ ?>">
164
+ <?php _e( 'As far as we know, the "All Meta Tags" plugin is compatible with the "Yoast SEO" plugin.', $plugin['text'] ); ?>
165
+ <?php _e( 'But to make sure that these plugins do not conflict with each other, you need to follow one simple rule: do not fill the same field in both plugins at once.', $plugin['text'] ); ?>
166
+ <?php _e( 'Otherwise both plugins fulfill their work and you will get a duplicate actions.', $plugin['text'] ); ?>
167
<br><br>
168
+ <?php _e( 'If you find a conflict between the plugins, please let us know and we will definitely release an update of our plugin to fix the problem.', $plugin['text'] ); ?>
169
</div>
170
171
<div class="question-<?php echo $i; ?>">
172
+ <?php _e( 'Does this plugin requires any modification of the theme?', $plugin['text'] ); ?>
173
</div>
174
<div class="answer-<?php echo $i; $i++ ?>">
175
+ <?php _e( 'Absolutely not.', $plugin['text'] ); ?>
176
+ <?php _e( 'This plugin is configurable entirely from the plugin settings page.', $plugin['text'] ); ?>
177
</div>
178
179
<div class="question-<?php echo $i; ?>">
180
+ <?php _e( 'Does this require any knowledge of HTML or CSS?', $plugin['text'] ); ?>
181
</div>
182
<div class="answer-<?php echo $i; $i++ ?>">
183
+ <?php _e( 'Absolutely not.', $plugin['text'] ); ?>
184
+ <?php _e( 'This plugin can be configured with no knowledge of HTML or CSS, using an easy-to-use plugin settings page.', $plugin['text'] ); ?>
185
</div>
186
187
<div class="question-<?php echo $i; ?> question-red">
188
+ <?php _e( 'It\'s not working.', $plugin['text'] ); ?>
189
+ <?php _e( 'What could be wrong?', $plugin['text'] ); ?>
190
</div>
191
<div class="answer-<?php echo $i; $i++ ?>">
192
+ <?php _e( 'As with every plugin, it\'s possible that things don\'t work.', $plugin['text'] ); ?>
193
+ <?php _e( 'It\'s impossible to tell what could be wrong exactly.', $plugin['text'] ); ?>
194
+ <?php _e( 'The most common reason for this is a web browser\'s cache.', $plugin['text'] ); ?>
195
+ <?php _e( 'Every web browser stores a cache of the websites you visit (pages, images, and etc.) to reduce bandwidth usage and server load.', $plugin['text'] ); ?>
196
+ <?php _e( 'This is called the browser\'s cache.', $plugin['text'] ); ?>
197
+ <?php _e( 'Clearing your browser\'s cache may solve the problem.', $plugin['text'] ); ?>
198
<br><br>
199
+ <?php _e( 'If you post a support request in the plugin\'s support forum on WordPress.org, we\'d be happy to give it a look and try to help out.', $plugin['text'] ); ?>
200
+ <?php _e( 'Please include as much information as possible, including a link to your website where the problem can be seen.', $plugin['text'] ); ?>
201
</div>
202
203
<div class="question-<?php echo $i; ?> question-red">
204
+ <?php _e( 'I can\'t get verify my website.', $plugin['text'] ); ?>
205
+ <?php _e( 'What am I doing wrong?', $plugin['text'] ); ?>
206
</div>
207
<div class="answer-<?php echo $i; $i++ ?>">
208
+ <?php _e( 'The tag code which Google (or Bing, Yandex, Pinterest, Alexa, Norton, WOT, SpecificFeeds) gives you is confusing as you only have to paste in the serial key number/letters (<code>1234567890</code>) and not the whole tag (<code>&lt;meta name="google-site-verification" content=“1234567890” /&gt;</code>).', $plugin['text'] ); ?>
209
+ <?php _e( 'So just paste that into the relevant field and you will see “Success” message appear within a few seconds.', $plugin['text'] ); ?>
210
</div>
211
212
<div class="question-<?php echo $i; ?> question-red">
213
+ <?php _e( 'The last WordPress update is preventing me from editing my website that is using this plugin.', $plugin['text'] ); ?>
214
+ <?php _e( 'Why is this?', $plugin['text'] ); ?>
215
</div>
216
<div class="answer-<?php echo $i; $i++ ?>">
217
+ <?php _e( 'This plugin can not cause such problem.', $plugin['text'] ); ?>
218
+ <?php _e( 'More likely, the problem are related to the settings of the website.', $plugin['text'] ); ?>
219
+ <?php _e( 'It could just be a cache, so please try to clear your website\'s cache (may be you using a caching plugin, or some web service such as the CloudFlare) and then the cache of your web browser.', $plugin['text'] ); ?>
220
+ <?php _e( 'Also please try to re-login to the website, this too can help.', $plugin['text'] ); ?>
221
</div>
222
223
<div class="question-<?php echo $i; ?> question-red">
224
+ <?php _e( 'Where to report bug if found?', $plugin['text'] ); ?>
225
</div>
226
<div class="answer-<?php echo $i; $i++ ?>">
227
+ <?php _e( 'Bug reports are very welcome!', $plugin['text'] ); ?>
228
<?php
229
printf(
230
+ __( 'Please visit our %s contact page %s and report.', $plugin['text'] ),
231
'<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
232
'</a>'
233
);
234
?>
235
+ <?php _e( 'Please do not forget to specify the name of the plugin.', $plugin['text'] ); ?>
236
+ <?php _e( 'Thank you!', $plugin['text'] ); ?>
237
<br><br>
238
+ <?php _e( 'Please include as much information as possible, including a link to your website where the problem can be seen.', $plugin['text'] ); ?>
239
+ <?php _e( 'Describe in more detail what exactly you are seeing.', $plugin['text'] ); ?>
240
+ <?php _e( 'Here are some examples:', $plugin['text'] ); ?>
241
<br><br>
242
<ul class="custom-list">
243
+ <li><?php _e( 'Elements of the plugin settings page are not working.', $plugin['text'] ); ?></li>
244
+ <li><?php _e( 'An error message is displayed on the plugin settings page.', $plugin['text'] ); ?></li>
245
+ <li><?php _e( 'An error message is displayed on the front end of website.', $plugin['text'] ); ?></li>
246
+ <li><?php _e( 'An error message is displayed on the back end of website.', $plugin['text'] ); ?></li>
247
+ <li><?php _e( 'Website is crashed.', $plugin['text'] ); ?></li>
248
</ul>
249
</div>
250
251
<div class="question-<?php echo $i; ?>">
252
+ <?php _e( 'Where to share any ideas or suggestions to make the plugin better?', $plugin['text'] ); ?>
253
</div>
254
<div class="answer-<?php echo $i; $i++ ?>">
255
+ <?php _e( 'Any suggestions are very welcome!', $plugin['text'] ); ?>
256
<?php
257
printf(
258
+ __( 'Please visit our %s contact page %s.', $plugin['text'] ),
259
'<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
260
'</a>'
261
);
262
?>
263
+ <?php _e( 'Please do not forget to specify the name of the plugin.', $plugin['text'] ); ?>
264
+ <?php _e( 'Thank you!', $plugin['text'] ); ?>
265
</div>
266
267
<div class="question-<?php echo $i; ?>">
268
+ <?php _e( 'I love this plugin!', $plugin['text'] ); ?>
269
+ <?php _e( 'Can I help somehow?', $plugin['text'] ); ?>
270
</div>
271
<div class="answer-<?php echo $i; $i++ ?>">
272
+ <?php _e( 'Yes, any contributions are very welcome!', $plugin['text'] ); ?>
273
<?php
274
printf(
275
+ __( 'Please visit our %s Support Us %s page.', $plugin['text'] ),
276
'<a href="https://www.spacexchimp.com/donate.html" target="_blank">',
277
'</a>'
278
);
279
?>
280
+ <?php _e( 'Thank you!', $plugin['text'] ); ?>
281
</div>
282
283
<div class="question-<?php echo $i; ?>">
284
+ <?php _e( 'Where can I find information about your licenses, payment process and refunds?', $plugin['text'] ); ?>
285
</div>
286
<div class="answer-<?php echo $i; $i++ ?>">
287
<?php
288
printf(
289
+ __( 'Answers to common questions about our licenses, payment process and refunds can be found on our %s Common Questions %s page.', $plugin['text'] ),
290
'<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
291
'</a>'
292
);
294
</div>
295
296
<div class="question-<?php echo $i; ?>">
297
+ <?php _e( 'Where can I find information about your customer support?', $plugin['text'] ); ?>
298
</div>
299
<div class="answer-<?php echo $i; $i++ ?>">
300
<?php
301
printf(
302
+ __( 'Answers to common questions about our customer support can be found on our %s Common Questions %s page.', $plugin['text'] ),
303
'<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
304
'</a>'
305
);
307
</div>
308
309
<div class="question-<?php echo $i; ?>">
310
+ <?php _e( 'Where can I find information about your affiliate program?', $plugin['text'] ); ?>
311
</div>
312
<div class="answer-<?php echo $i; $i++ ?>">
313
<?php
314
printf(
315
+ __( 'Answers to common questions about our affiliate program can be found on our %s Common Questions %s page.', $plugin['text'] ),
316
'<a href="https://www.spacexchimp.com/faq.html" target="_blank">',
317
'</a>'
318
);
320
</div>
321
322
<div class="question-<?php echo $i; ?>">
323
+ <?php _e( 'My question wasn\'t answered here.', $plugin['text'] ); ?>
324
</div>
325
<div class="answer-<?php echo $i; $i++ ?>">
326
<?php
327
printf(
328
+ __( 'You can ask your question on %s this page %s.', $plugin['text'] ),
329
'<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
330
'</a>'
331
);
332
?>
333
+ <?php _e( 'But please keep in mind that this plugin is free, and there is no a special support team, so we have no way to answer everyone.', $plugin['text'] ); ?>
334
</div>
335
336
</div>
inc/php/tabs/settings.php CHANGED
@@ -14,40 +14,40 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
14
<div class="meta-box-sortabless">
15
16
<form action="options.php" method="post" enctype="multipart/form-data">
17
- <?php settings_fields( SPACEXCHIMP_P004_SETTINGS . '_settings_group' ); ?>
18
19
<button type="submit" name="submit" id="submit" class="btn btn-info btn-lg button-save-top">
20
<i class="fa fa-save" aria-hidden="true"></i>
21
- <span><?php _e( 'Save changes', $text ); ?></span>
22
</button>
23
24
<div class="postbox" id="webmastertools">
25
- <h3 class="title"><?php _e( 'Web Master Tools', $text ); ?></h3>
26
<div class="inside">
27
<p class="note">
28
- <?php _e( 'Webmaster Tools require you to verify your domain.', $text ); ?>
29
- <?php _e( 'This makes sure that you are the correct owner of your blog or store before they provide their services to you.', $text ); ?>
30
- <?php _e( 'You can use the options below to verify your domain.', $text ); ?>
31
- <?php _e( 'If your domain is already verified, you can just forget about these.', $text ); ?>
32
</p>
33
<table class="form-table">
34
<?php
35
spacexchimp_p004_control_field( 'google',
36
'Google Webmaster Tools',
37
'1234567890',
38
- __( 'Enter your meta key “content” value from your verification code to verify your website.', $text ) . '<br>' . __( 'Example:', $text ) . '&lt;meta name="google-site-verification" content=“<b>1234567890</b>” /&gt;',
39
'https://www.google.com/webmasters/verification/'
40
);
41
spacexchimp_p004_control_field( 'bing',
42
'Bing Webmaster Tools',
43
'1234567890',
44
- __( 'Enter your meta key “content” value from your verification code to verify your website.', $text ) . '<br>' . __( 'Example:', $text ) . '&lt;meta name="msvalidate.01" content=“<b>1234567890</b>” /&gt;',
45
'http://www.bing.com/webmaster/'
46
);
47
spacexchimp_p004_control_field( 'yandex',
48
'Yandex Webmaster Tools',
49
'1234567890',
50
- __( 'Enter your meta key “content” value from your verification code to verify your website.', $text ) . '<br>' . __( 'Example:', $text ) . '&lt;meta name="yandex-verification" content=“<b>1234567890</b>” /&gt;',
51
'https://webmaster.yandex.com'
52
);
53
?>
@@ -56,68 +56,68 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
56
</div>
57
58
<div class="postbox" id="domainverification">
59
- <h3 class="title"><?php _e( 'Domain Verification', $text ); ?></h3>
60
<div class="inside">
61
<p class="note">
62
- <?php _e( 'Third-party services like Alexa, Pinterest and Google-Plus require you to verify your domain.', $text ); ?>
63
- <?php _e( 'This makes sure that you are the correct owner of your blog or store before they provide their services to you.', $text ); ?>
64
- <?php _e( 'You can use the options below to verify your domain.', $text ); ?>
65
- <?php _e( 'If your domain is already verified, you can just forget about these.', $text ); ?>
66
</p>
67
<table class="form-table">
68
<?php
69
spacexchimp_p004_control_field( 'pinterest',
70
'Pinterest',
71
'1234567890',
72
- __( 'Enter your meta key “content” value from your verification code to verify your website.', $text ) . '<br>' . __( 'Example:', $text ) . '&lt;meta name="p:domain_verify" content=“<b>1234567890</b>” /&gt;',
73
'https://help.pinterest.com/en/articles/confirm-your-website'
74
);
75
spacexchimp_p004_control_field( 'google_author',
76
'Google+',
77
'https://plus.google.com/+Username/',
78
- __( 'Enter an absolute URL to the Google+ profile of the publisher.', $text ) . '<br>' . __( 'Example:', $text ) . '<b>' . 'https://plus.google.com/+Username/' . '<b>',
79
'https://plus.google.com/'
80
);
81
spacexchimp_p004_control_field( 'facebook',
82
'Facebook',
83
'https://www.facebook.com/username',
84
- __( 'Enter an absolute URL to the Facebook profile of the publisher.', $text ) . '<br>' . __( 'Example:', $text ) . '<b>' . 'https://www.facebook.com/username' . '<b>',
85
'https://www.facebook.com/'
86
);
87
spacexchimp_p004_control_field( 'twitter',
88
'Twitter',
89
'@Username',
90
- __( 'Enter the Twitter username of the publisher.', $text ) . '<br>' . __( 'Example:', $text ) . '<b>' . '@Username' . '<b>',
91
'https://twitter.com/'
92
);
93
spacexchimp_p004_control_field( 'alexa',
94
'Alexa',
95
'1234567890',
96
- __( 'Enter your meta key “content” value from your verification code to verify your website.', $text ) . '<br>' . __( 'Example:', $text ) . '&lt;meta name="alexaVerifyID" content=“<b>1234567890</b>” /&gt;',
97
'http://www.alexa.com/siteowners/claim'
98
);
99
spacexchimp_p004_control_field( 'norton',
100
'Norton Safe Web',
101
'1234567890',
102
- __( 'Enter your meta key “content” value from your verification code to verify your website.', $text ) . '<br>' . __( 'Example:', $text ) . '&lt;meta name="norton-safeweb-site-verification" content=“<b>1234567890</b>” /&gt;',
103
'https://safeweb.norton.com/help/site_owners'
104
);
105
spacexchimp_p004_control_field( 'wot',
106
'Web of Trust (WOT)',
107
'1234567890',
108
- __( 'Enter your meta key “content” value from your verification code to verify your website.', $text ) . '<br>' . __( 'Example:', $text ) . '&lt;meta name="wot-verification" content=“<b>1234567890</b>” /&gt;',
109
'https://www.mywot.com/wiki/Verify_your_website'
110
);
111
spacexchimp_p004_control_field( 'specificfeeds',
112
'SpecificFeeds',
113
'1234567890',
114
- __( 'Enter your meta key “content” value from your verification code to verify your website.', $text ) . '<br>' . __( 'Example:', $text ) . '&lt;meta name="specificfeeds-verification-code" content=“<b>1234567890</b>” /&gt;',
115
'https://www.specificfeeds.com'
116
);
117
spacexchimp_p004_control_textarea( 'custom_meta',
118
- __( 'Custom meta tags', $text ),
119
'&lt;meta name="google-site-verification" content=“1234567890” /&gt;',
120
- __( 'If you can\'t find a field to enter your required meta tag then you can add it here.', $text ) . ' ' . __( 'In this field you can add multiple meta tags.', $text ) . '<br>' . __( 'Example:', $text ) . '<b>&lt;meta name="custom-meta" content=“1234567890” /&gt;</b>'
121
);
122
?>
123
</table>
@@ -125,20 +125,20 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
125
</div>
126
127
<div class="postbox" id="home">
128
- <h3 class="title"><?php _e( 'Meta tags for Static Home Page only', $text ); ?></h3>
129
<div class="inside">
130
- <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>
131
<table class="form-table">
132
<?php
133
spacexchimp_p004_control_textarea( 'home_description',
134
- __( 'Home Description', $text ),
135
'My website is about plants, nature, the sea and everything I love',
136
- __( 'Enter a short description of your website (150-250 characters).', $text ) . ' ' . __( 'Most search engines use a maximum of 160 chars for the home description.', $text )
137
);
138
spacexchimp_p004_control_textarea( 'home_keywords',
139
- __( 'Home Keyword(s)', $text ),
140
'blog, awesome, handmade, books, theater',
141
- __( 'Enter a comma-delimited list of keywords for only Static Home Page of your website.', $text )
142
);
143
?>
144
</table>
@@ -146,20 +146,20 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
146
</div>
147
148
<div class="postbox" id="blog">
149
- <h3 class="title"><?php _e( 'Meta tags for Default Home Page and Blog Page only', $text ); ?></h3>
150
<div class="inside">
151
- <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>
152
<table class="form-table">
153
<?php
154
spacexchimp_p004_control_textarea( 'blog_description',
155
- __( 'Blog Description', $text ),
156
'My blog is about plants, nature, the sea and everything I love',
157
- __( 'Enter a short description of your website (150-250 characters).', $text ) . ' ' . __( 'Most search engines use a maximum of 160 chars for the home description.', $text )
158
);
159
spacexchimp_p004_control_textarea( 'blog_keywords',
160
- __( 'Blog Keyword(s)', $text ),
161
'blog, awesome, handmade, books, theater',
162
- __( 'Enter a comma-delimited list of keywords for only Blog Page of your website.', $text )
163
);
164
?>
165
</table>
@@ -167,63 +167,63 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
167
</div>
168
169
<div class="postbox" id="everywhere">
170
- <h3 class="title"><?php _e( 'Meta tags for the entire website (Global)', $text ); ?></h3>
171
<div class="inside">
172
- <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>
173
<table class="form-table">
174
<?php
175
spacexchimp_p004_control_field( 'author',
176
- __( 'Author', $text ),
177
'Arthur Gareginyan',
178
''
179
);
180
spacexchimp_p004_control_field( 'designer',
181
- __( 'Designer', $text ),
182
'Arthur Gareginyan',
183
''
184
);
185
spacexchimp_p004_control_field( 'contact',
186
- __( 'Contact', $text ),
187
'user@gmail.com',
188
''
189
);
190
spacexchimp_p004_control_field( 'copyright',
191
- __( 'Copyright', $text ),
192
'Copyright (c) 2013-2019 Space X-Chimp. All Rights Reserved.',
193
''
194
);
195
spacexchimp_p004_control_textarea( 'keywords',
196
- __( 'Keyword(s)', $text ),
197
'blog, awesome, handmade, books, theater',
198
- __( 'Enter a comma-delimited list of global keywords for your website.', $text )
199
);
200
?>
201
</table>
202
</div>
203
</div>
204
205
- <input type="submit" name="submit" id="submit" class="btn btn-default btn-lg button-save-main" value="<?php _e( 'Save changes', $text ); ?>">
206
207
<div class="postbox" id="preview">
208
- <h3 class="title"><?php _e( 'Preview', $text ); ?></h3>
209
<div class="inside">
210
- <p class="note"><?php _e( 'Click the "Save changes" button to update this preview.', $text ); ?></p>
211
- <p><?php _e( 'These are meta tags that will be printed on all pages (globally) of your website.', $text ); ?></p>
212
<textarea readonly><?php spacexchimp_p004_preview(); ?></textarea>
213
<br>
214
<p>
215
- <?php _e( 'Note!', $text ); ?>
216
- <?php _e( 'This preview does not show meta tags that will be printed only on certain pages of your website.', $text ); ?>
217
</p>
218
</div>
219
</div>
220
221
<div class="postbox" id="woocommerce">
222
- <h3 class="title"><?php _e( 'WooCommerce & Google Shopping', $text ); ?></h3>
223
<div class="inside">
224
<p>
225
- <?php _e( 'This plugin automatically adds the necessary Google Shopping (Merchant Center) structured data on all WooCommerce product pages on your website.', $text ); ?>
226
- <?php _e( 'Here is the markup for women\'s T-shirt that sells for 16 dollars and 80 cents of US.', $text ); ?>
227
</p>
228
<?php
229
// Put the example in a variable
@@ -242,7 +242,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
242
<p>
243
<?php
244
printf(
245
- __( 'Check these data generated on the pages of your website you can %s here %s .', $text ),
246
'<a href="https://search.google.com/structured-data/testing-tool" target="_blank">',
247
'</a>'
248
);
@@ -252,16 +252,16 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
252
</div>
253
254
<div class="postbox" id="support-addition">
255
- <h3 class="title"><?php _e( 'Support', $text ); ?></h3>
256
<div class="inside">
257
- <p><?php _e( 'Every little contribution helps to cover our costs and allows us to spend more time creating things for awesome people like you to enjoy.', $text ); ?></p>
258
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" class="btn btn-default button-labeled">
259
<span class="btn-label">
260
- <img src="<?php echo SPACEXCHIMP_P004_URL . 'inc/img/paypal.svg'; ?>" alt="PayPal">
261
</span>
262
- <?php _e( 'Donate with PayPal', $text ); ?>
263
</a>
264
- <p><?php _e( 'Thanks for your support!', $text ); ?></p>
265
</div>
266
</div>
267
14
<div class="meta-box-sortabless">
15
16
<form action="options.php" method="post" enctype="multipart/form-data">
17
+ <?php settings_fields( $plugin['settings'] . '_settings_group' ); ?>
18
19
<button type="submit" name="submit" id="submit" class="btn btn-info btn-lg button-save-top">
20
<i class="fa fa-save" aria-hidden="true"></i>
21
+ <span><?php _e( 'Save changes', $plugin['text'] ); ?></span>
22
</button>
23
24
<div class="postbox" id="webmastertools">
25
+ <h3 class="title"><?php _e( 'Web Master Tools', $plugin['text'] ); ?></h3>
26
<div class="inside">
27
<p class="note">
28
+ <?php _e( 'Webmaster Tools require you to verify your domain.', $plugin['text'] ); ?>
29
+ <?php _e( 'This makes sure that you are the correct owner of your blog or store before they provide their services to you.', $plugin['text'] ); ?>
30
+ <?php _e( 'You can use the options below to verify your domain.', $plugin['text'] ); ?>
31
+ <?php _e( 'If your domain is already verified, you can just forget about these.', $plugin['text'] ); ?>
32
</p>
33
<table class="form-table">
34
<?php
35
spacexchimp_p004_control_field( 'google',
36
'Google Webmaster Tools',
37
'1234567890',
38
+ __( 'Enter your meta key “content” value from your verification code to verify your website.', $plugin['text'] ) . '<br>' . __( 'Example:', $plugin['text'] ) . '&lt;meta name="google-site-verification" content=“<b>1234567890</b>” /&gt;',
39
'https://www.google.com/webmasters/verification/'
40
);
41
spacexchimp_p004_control_field( 'bing',
42
'Bing Webmaster Tools',
43
'1234567890',
44
+ __( 'Enter your meta key “content” value from your verification code to verify your website.', $plugin['text'] ) . '<br>' . __( 'Example:', $plugin['text'] ) . '&lt;meta name="msvalidate.01" content=“<b>1234567890</b>” /&gt;',
45
'http://www.bing.com/webmaster/'
46
);
47
spacexchimp_p004_control_field( 'yandex',
48
'Yandex Webmaster Tools',
49
'1234567890',
50
+ __( 'Enter your meta key “content” value from your verification code to verify your website.', $plugin['text'] ) . '<br>' . __( 'Example:', $plugin['text'] ) . '&lt;meta name="yandex-verification" content=“<b>1234567890</b>” /&gt;',
51
'https://webmaster.yandex.com'
52
);
53
?>
56
</div>
57
58
<div class="postbox" id="domainverification">
59
+ <h3 class="title"><?php _e( 'Domain Verification', $plugin['text'] ); ?></h3>
60
<div class="inside">
61
<p class="note">
62
+ <?php _e( 'Third-party services like Alexa, Pinterest and Google-Plus require you to verify your domain.', $plugin['text'] ); ?>
63
+ <?php _e( 'This makes sure that you are the correct owner of your blog or store before they provide their services to you.', $plugin['text'] ); ?>
64
+ <?php _e( 'You can use the options below to verify your domain.', $plugin['text'] ); ?>
65
+ <?php _e( 'If your domain is already verified, you can just forget about these.', $plugin['text'] ); ?>
66
</p>
67
<table class="form-table">
68
<?php
69
spacexchimp_p004_control_field( 'pinterest',
70
'Pinterest',
71
'1234567890',
72
+ __( 'Enter your meta key “content” value from your verification code to verify your website.', $plugin['text'] ) . '<br>' . __( 'Example:', $plugin['text'] ) . '&lt;meta name="p:domain_verify" content=“<b>1234567890</b>” /&gt;',
73
'https://help.pinterest.com/en/articles/confirm-your-website'
74
);
75
spacexchimp_p004_control_field( 'google_author',
76
'Google+',
77
'https://plus.google.com/+Username/',
78
+ __( 'Enter an absolute URL to the Google+ profile of the publisher.', $plugin['text'] ) . '<br>' . __( 'Example:', $plugin['text'] ) . '<b>' . 'https://plus.google.com/+Username/' . '<b>',
79
'https://plus.google.com/'
80
);
81
spacexchimp_p004_control_field( 'facebook',
82
'Facebook',
83
'https://www.facebook.com/username',
84
+ __( 'Enter an absolute URL to the Facebook profile of the publisher.', $plugin['text'] ) . '<br>' . __( 'Example:', $plugin['text'] ) . '<b>' . 'https://www.facebook.com/username' . '<b>',
85
'https://www.facebook.com/'
86
);
87
spacexchimp_p004_control_field( 'twitter',
88
'Twitter',
89
'@Username',
90
+ __( 'Enter the Twitter username of the publisher.', $plugin['text'] ) . '<br>' . __( 'Example:', $plugin['text'] ) . '<b>' . '@Username' . '<b>',
91
'https://twitter.com/'
92
);
93
spacexchimp_p004_control_field( 'alexa',
94
'Alexa',
95
'1234567890',
96
+ __( 'Enter your meta key “content” value from your verification code to verify your website.', $plugin['text'] ) . '<br>' . __( 'Example:', $plugin['text'] ) . '&lt;meta name="alexaVerifyID" content=“<b>1234567890</b>” /&gt;',
97
'http://www.alexa.com/siteowners/claim'
98
);
99
spacexchimp_p004_control_field( 'norton',
100
'Norton Safe Web',
101
'1234567890',
102
+ __( 'Enter your meta key “content” value from your verification code to verify your website.', $plugin['text'] ) . '<br>' . __( 'Example:', $plugin['text'] ) . '&lt;meta name="norton-safeweb-site-verification" content=“<b>1234567890</b>” /&gt;',
103
'https://safeweb.norton.com/help/site_owners'
104
);
105
spacexchimp_p004_control_field( 'wot',
106
'Web of Trust (WOT)',
107
'1234567890',
108
+ __( 'Enter your meta key “content” value from your verification code to verify your website.', $plugin['text'] ) . '<br>' . __( 'Example:', $plugin['text'] ) . '&lt;meta name="wot-verification" content=“<b>1234567890</b>” /&gt;',
109
'https://www.mywot.com/wiki/Verify_your_website'
110
);
111
spacexchimp_p004_control_field( 'specificfeeds',
112
'SpecificFeeds',
113
'1234567890',
114
+ __( 'Enter your meta key “content” value from your verification code to verify your website.', $plugin['text'] ) . '<br>' . __( 'Example:', $plugin['text'] ) . '&lt;meta name="specificfeeds-verification-code" content=“<b>1234567890</b>” /&gt;',
115
'https://www.specificfeeds.com'
116
);
117
spacexchimp_p004_control_textarea( 'custom_meta',
118
+ __( 'Custom meta tags', $plugin['text'] ),
119
'&lt;meta name="google-site-verification" content=“1234567890” /&gt;',
120
+ __( 'If you can\'t find a field to enter your required meta tag then you can add it here.', $plugin['text'] ) . ' ' . __( 'In this field you can add multiple meta tags.', $plugin['text'] ) . '<br>' . __( 'Example:', $plugin['text'] ) . '<b>&lt;meta name="custom-meta" content=“1234567890” /&gt;</b>'
121
);
122
?>
123
</table>
125
</div>
126
127
<div class="postbox" id="home">
128
+ <h3 class="title"><?php _e( 'Meta tags for Static Home Page only', $plugin['text'] ); ?></h3>
129
<div class="inside">
130
+ <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.', $plugin['text'] ); ?></p>
131
<table class="form-table">
132
<?php
133
spacexchimp_p004_control_textarea( 'home_description',
134
+ __( 'Home Description', $plugin['text'] ),
135
'My website is about plants, nature, the sea and everything I love',
136
+ __( 'Enter a short description of your website (150-250 characters).', $plugin['text'] ) . ' ' . __( 'Most search engines use a maximum of 160 chars for the home description.', $plugin['text'] )
137
);
138
spacexchimp_p004_control_textarea( 'home_keywords',
139
+ __( 'Home Keyword(s)', $plugin['text'] ),
140
'blog, awesome, handmade, books, theater',
141
+ __( 'Enter a comma-delimited list of keywords for only Static Home Page of your website.', $plugin['text'] )
142
);
143
?>
144
</table>
146
</div>
147
148
<div class="postbox" id="blog">
149
+ <h3 class="title"><?php _e( 'Meta tags for Default Home Page and Blog Page only', $plugin['text'] ); ?></h3>
150
<div class="inside">
151
+ <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.', $plugin['text'] ); ?></p>
152
<table class="form-table">
153
<?php
154
spacexchimp_p004_control_textarea( 'blog_description',
155
+ __( 'Blog Description', $plugin['text'] ),
156
'My blog is about plants, nature, the sea and everything I love',
157
+ __( 'Enter a short description of your website (150-250 characters).', $plugin['text'] ) . ' ' . __( 'Most search engines use a maximum of 160 chars for the home description.', $plugin['text'] )
158
);
159
spacexchimp_p004_control_textarea( 'blog_keywords',
160
+ __( 'Blog Keyword(s)', $plugin['text'] ),
161
'blog, awesome, handmade, books, theater',
162
+ __( 'Enter a comma-delimited list of keywords for only Blog Page of your website.', $plugin['text'] )
163
);
164
?>
165
</table>
167
</div>
168
169
<div class="postbox" id="everywhere">
170
+ <h3 class="title"><?php _e( 'Meta tags for the entire website (Global)', $plugin['text'] ); ?></h3>
171
<div class="inside">
172
+ <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.', $plugin['text'] ); ?></p>
173
<table class="form-table">
174
<?php
175
spacexchimp_p004_control_field( 'author',
176
+ __( 'Author', $plugin['text'] ),
177
'Arthur Gareginyan',
178
''
179
);
180
spacexchimp_p004_control_field( 'designer',
181
+ __( 'Designer', $plugin['text'] ),
182
'Arthur Gareginyan',
183
''
184
);
185
spacexchimp_p004_control_field( 'contact',
186
+ __( 'Contact', $plugin['text'] ),
187
'user@gmail.com',
188
''
189
);
190
spacexchimp_p004_control_field( 'copyright',
191
+ __( 'Copyright', $plugin['text'] ),
192
'Copyright (c) 2013-2019 Space X-Chimp. All Rights Reserved.',
193
''
194
);
195
spacexchimp_p004_control_textarea( 'keywords',
196
+ __( 'Keyword(s)', $plugin['text'] ),
197
'blog, awesome, handmade, books, theater',
198
+ __( 'Enter a comma-delimited list of global keywords for your website.', $plugin['text'] )
199
);
200
?>
201
</table>
202
</div>
203
</div>
204
205
+ <input type="submit" name="submit" id="submit" class="btn btn-default btn-lg button-save-main" value="<?php _e( 'Save changes', $plugin['text'] ); ?>">
206
207
<div class="postbox" id="preview">
208
+ <h3 class="title"><?php _e( 'Preview', $plugin['text'] ); ?></h3>
209
<div class="inside">
210
+ <p class="note"><?php _e( 'Click the "Save changes" button to update this preview.', $plugin['text'] ); ?></p>
211
+ <p><?php _e( 'These are meta tags that will be printed on all pages (globally) of your website.', $plugin['text'] ); ?></p>
212
<textarea readonly><?php spacexchimp_p004_preview(); ?></textarea>
213
<br>
214
<p>
215
+ <?php _e( 'Note!', $plugin['text'] ); ?>
216
+ <?php _e( 'This preview does not show meta tags that will be printed only on certain pages of your website.', $plugin['text'] ); ?>
217
</p>
218
</div>
219
</div>
220
221
<div class="postbox" id="woocommerce">
222
+ <h3 class="title"><?php _e( 'WooCommerce & Google Shopping', $plugin['text'] ); ?></h3>
223
<div class="inside">
224
<p>
225
+ <?php _e( 'This plugin automatically adds the necessary Google Shopping (Merchant Center) structured data on all WooCommerce product pages on your website.', $plugin['text'] ); ?>
226
+ <?php _e( 'Here is the markup for women\'s T-shirt that sells for 16 dollars and 80 cents of US.', $plugin['text'] ); ?>
227
</p>
228
<?php
229
// Put the example in a variable
242
<p>
243
<?php
244
printf(
245
+ __( 'Check these data generated on the pages of your website you can %s here %s .', $plugin['text'] ),
246
'<a href="https://search.google.com/structured-data/testing-tool" target="_blank">',
247
'</a>'
248
);
252
</div>
253
254
<div class="postbox" id="support-addition">
255
+ <h3 class="title"><?php _e( 'Support', $plugin['text'] ); ?></h3>
256
<div class="inside">
257
+ <p><?php _e( 'Every little contribution helps to cover our costs and allows us to spend more time creating things for awesome people like you to enjoy.', $plugin['text'] ); ?></p>
258
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" class="btn btn-default button-labeled">
259
<span class="btn-label">
260
+ <img src="<?php echo $plugin['url'] . 'inc/img/paypal.svg'; ?>" alt="PayPal">
261
</span>
262
+ <?php _e( 'Donate with PayPal', $plugin['text'] ); ?>
263
</a>
264
+ <p><?php _e( 'Thanks for your support!', $plugin['text'] ); ?></p>
265
</div>
266
</div>
267
inc/php/tabs/support.php CHANGED
@@ -10,22 +10,22 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
*/
11
?>
12
<div class="postbox">
13
- <h3 class="title"><?php _e( 'Support Us', $text ); ?></h3>
14
<div class="inside">
15
<span class="image-with-button pull-left">
16
- <img src="<?php echo SPACEXCHIMP_P004_URL . 'inc/img/thanks.png'; ?>" alt="Thanks!">
17
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" class="btn btn-default button-labeled">
18
<span class="btn-label">
19
- <img src="<?php echo SPACEXCHIMP_P004_URL . 'inc/img/paypal.svg'; ?>" alt="PayPal">
20
</span>
21
- <?php _e( 'Donate with PayPal', $text ); ?>
22
</a>
23
</span>
24
<p>
25
- <?php _e( 'Hello!', $text ); ?>
26
<?php
27
printf(
28
- __( 'My name is %s Arthur %s, I\'m the founder of %s Space X-Chimp %s, which unites a small international team of young people.', $text ),
29
'<a href="https://www.instagram.com/arthur_gareginyan/" target="_blank">',
30
'</a>',
31
'<a href="https://www.spacexchimp.com" target="_blank">',
@@ -34,19 +34,19 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
34
?>
35
</p>
36
<p>
37
- <?php _e( 'Our intention is to create projects that will make this world a better place.', $text ); ?>
38
- <?php _e( 'Our motto is - «Follow your dreams and don’t give up».', $text ); ?>
39
- <?php _e( 'We are really passionate about our work, we like what we are doing and hope that you will be enriched by our projects too.', $text ); ?>
40
</p>
41
<p>
42
- <?php _e( 'We spend a lot of time and effort trying to make sure that the themes, plugins and other things we build are useful, and the ultimate proof of that for us is that you actually want to use them.', $text ); ?>
43
- <?php _e( 'But we are an independent developers, without a regular income, so every little contribution helps to cover our costs and allows us to spend more time creating things for awesome people like you to enjoy.', $text ); ?>
44
</p>
45
<p>
46
- <?php _e( 'If you appreciate our work, you can buy us a cup of coffee!', $text ); ?>
47
</p>
48
<p>
49
- <?php _e( 'Thank you for your support!', $text ); ?>
50
</p>
51
</div>
52
</div>
10
*/
11
?>
12
<div class="postbox">
13
+ <h3 class="title"><?php _e( 'Support Us', $plugin['text'] ); ?></h3>
14
<div class="inside">
15
<span class="image-with-button pull-left">
16
+ <img src="<?php echo $plugin['url'] . 'inc/img/thanks.png'; ?>" alt="Thanks!">
17
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" class="btn btn-default button-labeled">
18
<span class="btn-label">
19
+ <img src="<?php echo $plugin['url'] . 'inc/img/paypal.svg'; ?>" alt="PayPal">
20
</span>
21
+ <?php _e( 'Donate with PayPal', $plugin['text'] ); ?>
22
</a>
23
</span>
24
<p>
25
+ <?php _e( 'Hello!', $plugin['text'] ); ?>
26
<?php
27
printf(
28
+ __( 'My name is %s Arthur %s, I\'m the founder of %s Space X-Chimp %s, which unites a small international team of young people.', $plugin['text'] ),
29
'<a href="https://www.instagram.com/arthur_gareginyan/" target="_blank">',
30
'</a>',
31
'<a href="https://www.spacexchimp.com" target="_blank">',
34
?>
35
</p>
36
<p>
37
+ <?php _e( 'Our intention is to create projects that will make this world a better place.', $plugin['text'] ); ?>
38
+ <?php _e( 'Our motto is - «Follow your dreams and don’t give up».', $plugin['text'] ); ?>
39
+ <?php _e( 'We are really passionate about our work, we like what we are doing and hope that you will be enriched by our projects too.', $plugin['text'] ); ?>
40
</p>
41
<p>
42
+ <?php _e( 'We spend a lot of time and effort trying to make sure that the themes, plugins and other things we build are useful, and the ultimate proof of that for us is that you actually want to use them.', $plugin['text'] ); ?>
43
+ <?php _e( 'But we are an independent developers, without a regular income, so every little contribution helps to cover our costs and allows us to spend more time creating things for awesome people like you to enjoy.', $plugin['text'] ); ?>
44
</p>
45
<p>
46
+ <?php _e( 'If you appreciate our work, you can buy us a cup of coffee!', $plugin['text'] ); ?>
47
</p>
48
<p>
49
+ <?php _e( 'Thank you for your support!', $plugin['text'] ); ?>
50
</p>
51
</div>
52
</div>
inc/php/tabs/usage.php CHANGED
@@ -10,19 +10,19 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
*/
11
?>
12
<div class="postbox">
13
- <h3 class="title"><?php _e( 'Usage Instructions', $text ); ?></h3>
14
<div class="inside">
15
- <p><?php _e( 'To add the meta tags to your website, simply follow these steps:', $text ); ?></p>
16
<ol class="custom-counter">
17
- <li><?php _e( 'Go to the "Settings" tab on this page.', $text ); ?></li>
18
- <li><?php _e( 'Fill in the required fields.', $text ); ?></li>
19
- <li><?php _e( 'Click the "Save changes" button.', $text ); ?></li>
20
- <li><?php _e( 'Enjoy the improved SEO of your website.', $text ); ?> <?php _e( 'It\'s that simple!', $text ); ?></li>
21
</ol>
22
<p class="note">
23
<?php
24
printf(
25
- __( 'If you want more options, then %s let us know %s and we will be happy to add them.', $text ),
26
'<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
27
'</a>'
28
);
10
*/
11
?>
12
<div class="postbox">
13
+ <h3 class="title"><?php _e( 'Usage Instructions', $plugin['text'] ); ?></h3>
14
<div class="inside">
15
+ <p><?php _e( 'To add the meta tags to your website, simply follow these steps:', $plugin['text'] ); ?></p>
16
<ol class="custom-counter">
17
+ <li><?php _e( 'Go to the "Settings" tab on this page.', $plugin['text'] ); ?></li>
18
+ <li><?php _e( 'Fill in the required fields.', $plugin['text'] ); ?></li>
19
+ <li><?php _e( 'Click the "Save changes" button.', $plugin['text'] ); ?></li>
20
+ <li><?php _e( 'Enjoy the improved SEO of your website.', $plugin['text'] ); ?> <?php _e( 'It\'s that simple!', $plugin['text'] ); ?></li>
21
</ol>
22
<p class="note">
23
<?php
24
printf(
25
+ __( 'If you want more options, then %s let us know %s and we will be happy to add them.', $plugin['text'] ),
26
'<a href="https://www.spacexchimp.com/contact.html" target="_blank">',
27
'</a>'
28
);
inc/php/versioning.php CHANGED
@@ -14,15 +14,17 @@ function spacexchimp_p004_versioning() {
14
// SETTING VARIABLES //
15
///////////////////////////////////////////////////////////////////
16
17
- // Put value of constants to variables for easier access
18
- $version_files = SPACEXCHIMP_P004_VERSION;
19
- $settings = SPACEXCHIMP_P004_SETTINGS;
20
21
// Read the plugin service information from the database and put it into an array
22
- $info = get_option( $settings . '_service_info' );
23
24
// Make the "$info" array if the plugin service information in the database is not exist
25
- if ( ! is_array( $info ) ) $info = array();
26
27
// Get the current plugin version number from the database
28
$version_db = !empty( $info['version'] ) ? $info['version'] : '0';
@@ -69,7 +71,7 @@ function spacexchimp_p004_versioning() {
69
if ( $info['old_version'] == '1' ) {
70
71
$info['old_version'] = '0';
72
- update_option( $settings . '_service_info', $info );
73
74
}
75
@@ -84,7 +86,7 @@ function spacexchimp_p004_versioning() {
84
85
$info['version'] = $version_files;
86
$info['old_version'] = '0';
87
- update_option( $settings . '_service_info', $info );
88
89
return;
90
}
@@ -95,7 +97,7 @@ function spacexchimp_p004_versioning() {
95
if ( $version_files < $version_db ) {
96
97
$info['old_version'] = '1';
98
- update_option( $settings . '_service_info', $info );
99
100
return;
101
}
14
// SETTING VARIABLES //
15
///////////////////////////////////////////////////////////////////
16
17
+ // Put value of plugin constants into an array for easier access
18
+ $plugin = spacexchimp_p004_plugin();
19
+ $version_files = $plugin['version'];
20
21
// Read the plugin service information from the database and put it into an array
22
+ $info = get_option( $plugin['settings'] . '_service_info' );
23
24
// Make the "$info" array if the plugin service information in the database is not exist
25
+ if ( ! is_array( $info ) ) {
26
+ $info = array();
27
+ }
28
29
// Get the current plugin version number from the database
30
$version_db = !empty( $info['version'] ) ? $info['version'] : '0';
71
if ( $info['old_version'] == '1' ) {
72
73
$info['old_version'] = '0';
74
+ update_option( $plugin['settings'] . '_service_info', $info );
75
76
}
77
86
87
$info['version'] = $version_files;
88
$info['old_version'] = '0';
89
+ update_option( $plugin['settings'] . '_service_info', $info );
90
91
return;
92
}
97
if ( $version_files < $version_db ) {
98
99
$info['old_version'] = '1';
100
+ update_option( $plugin['settings'] . '_service_info', $info );
101
102
return;
103
}
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: 2019-03-18 21:02+0300\n"
7
- "PO-Revision-Date: 2019-03-18 21:02+0300\n"
8
"Last-Translator: Arthur Gareginyan\n"
9
"Language-Team: German\n"
10
"Language: de_DE\n"
@@ -20,65 +20,65 @@ msgstr ""
20
"X-Poedit-SearchPath-0: .\n"
21
"X-Poedit-SearchPathExcluded-0: *.js\n"
22
23
- #: inc/php/core.php:23 inc/php/page.php:47
24
msgid "Settings"
25
msgstr "Einstellungen"
26
27
- #: inc/php/core.php:37
28
msgid "Donate"
29
msgstr "Spende"
30
31
- #: inc/php/core.php:52
32
msgid "Meta Tags Inserter"
33
msgstr "Meta Tags Inserter"
34
35
- #: inc/php/messages.php:35 inc/php/tabs/support.php:25
36
msgid "Hello!"
37
msgstr "Hallo!"
38
39
- #: inc/php/messages.php:36
40
msgid "We are the team of Space X-Chimp."
41
msgstr "Wir sind das Team von Space X-Chimp."
42
43
- #: inc/php/messages.php:41
44
#, php-format
45
msgid "Thank you for installing our plugin! We hope you will love it! %s"
46
msgstr "Danke, dass Sie mein Plugin installiert haben. Ich hoffe, sie werden es mögen. %s"
47
48
- #: inc/php/messages.php:93
49
msgid "You have installed an old version of this plugin."
50
msgstr "Sie haben eine veraltete Version dieses Plugin installiert."
51
52
- #: inc/php/messages.php:94
53
msgid "Please update the plugin to the latest version, and all will be fine."
54
msgstr "Bitte installieren Sie die aktuelle Version des Plugins und alles wir gut."
55
56
- #: inc/php/messages.php:129
57
msgid "Settings saved successfully."
58
msgstr ""
59
60
- #: inc/php/page.php:34
61
#, php-format
62
msgid "by %s Space X-Chimp %s"
63
msgstr "by %s Space X-Chimp %s"
64
65
- #: inc/php/page.php:40
66
msgid "Version"
67
msgstr "Version"
68
69
- #: inc/php/page.php:48
70
msgid "Usage"
71
msgstr "Verwendung"
72
73
- #: inc/php/page.php:49
74
msgid "F.A.Q."
75
msgstr "F.A.Q."
76
77
- #: inc/php/page.php:50 inc/php/sidebar.php:39 inc/php/tabs/settings.php:255
78
msgid "Support"
79
msgstr "Unterstützung"
80
81
- #: inc/php/page.php:51
82
msgid "Store"
83
msgstr "Geschäft"
84
3
msgid ""
4
msgstr ""
5
"Project-Id-Version: All Meta Tags\n"
6
+ "POT-Creation-Date: 2019-03-23 04:26+0300\n"
7
+ "PO-Revision-Date: 2019-03-23 04:26+0300\n"
8
"Last-Translator: Arthur Gareginyan\n"
9
"Language-Team: German\n"
10
"Language: de_DE\n"
20
"X-Poedit-SearchPath-0: .\n"
21
"X-Poedit-SearchPathExcluded-0: *.js\n"
22
23
+ #: inc/php/core.php:32 inc/php/page.php:43
24
msgid "Settings"
25
msgstr "Einstellungen"
26
27
+ #: inc/php/core.php:54
28
msgid "Donate"
29
msgstr "Spende"
30
31
+ #: inc/php/core.php:78
32
msgid "Meta Tags Inserter"
33
msgstr "Meta Tags Inserter"
34
35
+ #: inc/php/messages.php:33 inc/php/tabs/support.php:25
36
msgid "Hello!"
37
msgstr "Hallo!"
38
39
+ #: inc/php/messages.php:34
40
msgid "We are the team of Space X-Chimp."
41
msgstr "Wir sind das Team von Space X-Chimp."
42
43
+ #: inc/php/messages.php:39
44
#, php-format
45
msgid "Thank you for installing our plugin! We hope you will love it! %s"
46
msgstr "Danke, dass Sie mein Plugin installiert haben. Ich hoffe, sie werden es mögen. %s"
47
48
+ #: inc/php/messages.php:90
49
msgid "You have installed an old version of this plugin."
50
msgstr "Sie haben eine veraltete Version dieses Plugin installiert."
51
52
+ #: inc/php/messages.php:91
53
msgid "Please update the plugin to the latest version, and all will be fine."
54
msgstr "Bitte installieren Sie die aktuelle Version des Plugins und alles wir gut."
55
56
+ #: inc/php/messages.php:126
57
msgid "Settings saved successfully."
58
msgstr ""
59
60
+ #: inc/php/page.php:30
61
#, php-format
62
msgid "by %s Space X-Chimp %s"
63
msgstr "by %s Space X-Chimp %s"
64
65
+ #: inc/php/page.php:36
66
msgid "Version"
67
msgstr "Version"
68
69
+ #: inc/php/page.php:44
70
msgid "Usage"
71
msgstr "Verwendung"
72
73
+ #: inc/php/page.php:45
74
msgid "F.A.Q."
75
msgstr "F.A.Q."
76
77
+ #: inc/php/page.php:46 inc/php/sidebar.php:39 inc/php/tabs/settings.php:255
78
msgid "Support"
79
msgstr "Unterstützung"
80
81
+ #: inc/php/page.php:47
82
msgid "Store"
83
msgstr "Geschäft"
84
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: 2019-03-18 21:03+0300\n"
7
- "PO-Revision-Date: 2019-03-18 21:03+0300\n"
8
"Last-Translator: Arthur Gareginyan\n"
9
"Language-Team: Spanish\n"
10
"Language: es_ES\n"
@@ -20,65 +20,65 @@ msgstr ""
20
"X-Poedit-SearchPath-0: .\n"
21
"X-Poedit-SearchPathExcluded-0: *.js\n"
22
23
- #: inc/php/core.php:23 inc/php/page.php:47
24
msgid "Settings"
25
msgstr "Ajustes"
26
27
- #: inc/php/core.php:37
28
msgid "Donate"
29
msgstr "Donar"
30
31
- #: inc/php/core.php:52
32
msgid "Meta Tags Inserter"
33
msgstr "Meta Tags Inserter"
34
35
- #: inc/php/messages.php:35 inc/php/tabs/support.php:25
36
msgid "Hello!"
37
msgstr "¡Hola!"
38
39
- #: inc/php/messages.php:36
40
msgid "We are the team of Space X-Chimp."
41
msgstr "Somos el equipo de Space X-Chimp."
42
43
- #: inc/php/messages.php:41
44
#, php-format
45
msgid "Thank you for installing our plugin! We hope you will love it! %s"
46
msgstr "Gracias por instalar este complemento! Espero que te encante! %s"
47
48
- #: inc/php/messages.php:93
49
msgid "You have installed an old version of this plugin."
50
msgstr "Has instalado una versión antigua de este complemento."
51
52
- #: inc/php/messages.php:94
53
msgid "Please update the plugin to the latest version, and all will be fine."
54
msgstr "Actualiza el complemento a la versión más reciente y todo estará bien."
55
56
- #: inc/php/messages.php:129
57
msgid "Settings saved successfully."
58
msgstr ""
59
60
- #: inc/php/page.php:34
61
#, php-format
62
msgid "by %s Space X-Chimp %s"
63
msgstr "por %s Space X-Chimp %s"
64
65
- #: inc/php/page.php:40
66
msgid "Version"
67
msgstr "Versión"
68
69
- #: inc/php/page.php:48
70
msgid "Usage"
71
msgstr "Uso"
72
73
- #: inc/php/page.php:49
74
msgid "F.A.Q."
75
msgstr "Preguntas ?"
76
77
- #: inc/php/page.php:50 inc/php/sidebar.php:39 inc/php/tabs/settings.php:255
78
msgid "Support"
79
msgstr "Soporte"
80
81
- #: inc/php/page.php:51
82
msgid "Store"
83
msgstr "Tienda"
84
3
msgid ""
4
msgstr ""
5
"Project-Id-Version: All Meta Tags\n"
6
+ "POT-Creation-Date: 2019-03-23 04:26+0300\n"
7
+ "PO-Revision-Date: 2019-03-23 04:26+0300\n"
8
"Last-Translator: Arthur Gareginyan\n"
9
"Language-Team: Spanish\n"
10
"Language: es_ES\n"
20
"X-Poedit-SearchPath-0: .\n"
21
"X-Poedit-SearchPathExcluded-0: *.js\n"
22
23
+ #: inc/php/core.php:32 inc/php/page.php:43
24
msgid "Settings"
25
msgstr "Ajustes"
26
27
+ #: inc/php/core.php:54
28
msgid "Donate"
29
msgstr "Donar"
30
31
+ #: inc/php/core.php:78
32
msgid "Meta Tags Inserter"
33
msgstr "Meta Tags Inserter"
34
35
+ #: inc/php/messages.php:33 inc/php/tabs/support.php:25
36
msgid "Hello!"
37
msgstr "¡Hola!"
38
39
+ #: inc/php/messages.php:34
40
msgid "We are the team of Space X-Chimp."
41
msgstr "Somos el equipo de Space X-Chimp."
42
43
+ #: inc/php/messages.php:39
44
#, php-format
45
msgid "Thank you for installing our plugin! We hope you will love it! %s"
46
msgstr "Gracias por instalar este complemento! Espero que te encante! %s"
47
48
+ #: inc/php/messages.php:90
49
msgid "You have installed an old version of this plugin."
50
msgstr "Has instalado una versión antigua de este complemento."
51
52
+ #: inc/php/messages.php:91
53
msgid "Please update the plugin to the latest version, and all will be fine."
54
msgstr "Actualiza el complemento a la versión más reciente y todo estará bien."
55
56
+ #: inc/php/messages.php:126
57
msgid "Settings saved successfully."
58
msgstr ""
59
60
+ #: inc/php/page.php:30
61
#, php-format
62
msgid "by %s Space X-Chimp %s"
63
msgstr "por %s Space X-Chimp %s"
64
65
+ #: inc/php/page.php:36
66
msgid "Version"
67
msgstr "Versión"
68
69
+ #: inc/php/page.php:44
70
msgid "Usage"
71
msgstr "Uso"
72
73
+ #: inc/php/page.php:45
74
msgid "F.A.Q."
75
msgstr "Preguntas ?"
76
77
+ #: inc/php/page.php:46 inc/php/sidebar.php:39 inc/php/tabs/settings.php:255
78
msgid "Support"
79
msgstr "Soporte"
80
81
+ #: inc/php/page.php:47
82
msgid "Store"
83
msgstr "Tienda"
84
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: 2019-03-18 21:03+0300\n"
7
- "PO-Revision-Date: 2019-03-18 21:03+0300\n"
8
"Last-Translator: Arthur Gareginyan\n"
9
"Language-Team: Spanish (Mexico)\n"
10
"Language: es_MX\n"
@@ -21,65 +21,65 @@ msgstr ""
21
"X-Poedit-SearchPath-0: .\n"
22
"X-Poedit-SearchPathExcluded-0: *.js\n"
23
24
- #: inc/php/core.php:23 inc/php/page.php:47
25
msgid "Settings"
26
msgstr "Ajustes"
27
28
- #: inc/php/core.php:37
29
msgid "Donate"
30
msgstr "Donar"
31