SEOPress - Version 0.3

Version Description

  • INFO Add placeholders
  • INFO Improve sanitization
  • INFO Set noindex on xml sitemaps
  • FIX Text domain for localization
  • FIX CSS in Import / Export page
Download this release

Release Info

Developer rainbowgeek
Plugin Icon 128x128 SEOPress
Version 0.3
Comparing to
See all releases

Code changes from version 0.2 to 0.3

assets/css/seopress.css CHANGED
@@ -91,6 +91,19 @@
91
font-weight: 400;
92
line-height: 18.2px;
93
}
94
95
/*************************************************************************************************/
96
/* Admin - Tabs */
@@ -204,7 +217,7 @@
204
.seopress-option input[type="text"],
205
.seopress-option input[type="password"],
206
.seopress-option textarea {
207
- min-width: 400px;
208
}
209
.seopress-option textarea {
210
min-height: 100px;
@@ -337,4 +350,7 @@
337
.seopress-option input[type="text"].seopress-admin-menu-input {
338
min-width: inherit;
339
width: 100%;
340
- }
91
font-weight: 400;
92
line-height: 18.2px;
93
}
94
+ #seopress_cpt .wrap-seopress-counters {
95
+ text-align: right;
96
+ background: rgb(238, 238, 238) none repeat scroll 0% 0%;
97
+ padding: 5px;
98
+ }
99
+ #seopress_cpt #seopress_titles_desc_counters {
100
+ display: inline;
101
+ margin-right: 5px;
102
+ }
103
+ #seopress_cpt #seopress_titles_desc_counters_val {
104
+ display: inline;
105
+ font-weight: bold;
106
+ }
107
108
/*************************************************************************************************/
109
/* Admin - Tabs */
217
.seopress-option input[type="text"],
218
.seopress-option input[type="password"],
219
.seopress-option textarea {
220
+ min-width: 500px;
221
}
222
.seopress-option textarea {
223
min-height: 100px;
350
.seopress-option input[type="text"].seopress-admin-menu-input {
351
min-width: inherit;
352
width: 100%;
353
+ }
354
+ .seopress_page_seopress-import-export .postbox {
355
+ width: calc(100% - 20px);
356
+ }
assets/js/seopress-counters.js ADDED
@@ -0,0 +1,10 @@
1
+ jQuery(document).ready(function(){
2
+ jQuery("#seopress_titles_desc_counters").after("<div id=\"seopress_titles_desc_counters_val\">/ 160</div>");
3
+ jQuery("#seopress_titles_desc_counters").text(jQuery("#seopress_titles_desc_meta").val().length);
4
+ jQuery("#seopress_titles_desc_meta").keyup( function() {
5
+ if(jQuery(this).val().length > 160){
6
+ jQuery('#seopress_titles_desc_counters_val').css('color', 'red');
7
+ }
8
+ jQuery("#seopress_titles_desc_counters").text(jQuery("#seopress_titles_desc_meta").val().length);
9
+ });
10
+ });
inc/admin/admin-metaboxes.php CHANGED
@@ -8,7 +8,7 @@ defined( 'ABSPATH' ) or die( 'Please don&rsquo;t call the plugin directly. Thank
8
9
add_action('add_meta_boxes','seopress_init_metabox');
10
function seopress_init_metabox(){
11
- add_meta_box('seopress_cpt', __('SEOPress','seopress'), 'seopress_cpt', seopress_get_post_types(), 'advanced');
12
}
13
14
function seopress_cpt($post){
@@ -41,35 +41,39 @@ function seopress_cpt($post){
41
return $seopress_titles_desc;
42
} else {
43
global $post;
44
- return $post->post_content;
45
}
46
}
47
48
echo '<div id="seopress-tabs">
49
<ul>
50
- <li><a href="#tabs-1"><span class="dashicons dashicons-editor-table"></span>'. __( 'Titles settings', 'seopress' ) .'</a></li>
51
- <li><a href="#tabs-2"><span class="dashicons dashicons-admin-generic"></span>'. __( 'Advanced', 'seopress' ) .'</a></li>
52
- <li><a href="#tabs-3"><span class="dashicons dashicons-share"></span>'. __( 'Social', 'seopress' ) .'</a></li>
53
</ul>
54
55
<div id="tabs-1">
56
<div class="box-left">
57
<p>
58
- <label for="seopress_titles_title_meta">'. __( 'Title', 'seopress' ) .'</label>
59
- <input id="seopress_titles_title_meta" type="text" name="seopress_titles_title" placeholder="'.__('Enter your title','seopress').'" value="'.$seopress_titles_title.'" />
60
</p>
61
<p>
62
- <label for="seopress_titles_desc_meta">'. __( 'Meta description', 'seopress' ) .'</label>
63
- <textarea id="seopress_titles_desc_meta" style="width:100%" name="seopress_titles_desc" placeholder="'.__('Enter your meta description','seopress').'" value="'.$seopress_titles_desc.'">'.$seopress_titles_desc.'</textarea>
64
- </p>
65
</div>
66
<div class="box-right">
67
<div class="google-snippet-preview">
68
- <h3>'.__('Google Snippet Preview','seopress').'</h3>
69
- <p>'. __('This is what your page will look like in Google search results','seopress').'</p>
70
<div class="snippet-title">'.seopress_titles_title($seopress_titles_title).'</div>
71
<div class="snippet-permalink">'.get_permalink().'</div>
72
- <div class="snippet-desc">'.seopress_titles_desc($seopress_titles_desc).'</div>
73
</div>
74
</div>
75
</div>
@@ -77,73 +81,73 @@ function seopress_cpt($post){
77
<p>
78
<label for="seopress_robots_index_meta">
79
<input type="checkbox" name="seopress_robots_index" id="seopress_robots_index_meta" value="yes" '. checked( $seopress_robots_index, 'yes', false ) .' />
80
- '. __( 'noindex', 'seopress' ) .'
81
</label>
82
</p>
83
<p>
84
<label for="seopress_robots_follow_meta">
85
<input type="checkbox" name="seopress_robots_follow" id="seopress_robots_follow_meta" value="yes" '. checked( $seopress_robots_follow, 'yes', false ) .' />
86
- '. __( 'nofollow', 'seopress' ) .'
87
</label>
88
</p>
89
<p>
90
<label for="seopress_robots_odp_meta">
91
<input type="checkbox" name="seopress_robots_odp" id="seopress_robots_odp_meta" value="yes" '. checked( $seopress_robots_odp, 'yes', false ) .' />
92
- '. __( 'noodp', 'seopress' ) .'
93
</label>
94
</p>
95
<p>
96
<label for="seopress_robots_imageindex_meta">
97
<input type="checkbox" name="seopress_robots_imageindex" id="seopress_robots_imageindex_meta" value="yes" '. checked( $seopress_robots_imageindex, 'yes', false ) .' />
98
- '. __( 'noimageindex', 'seopress' ) .'
99
</label>
100
</p>
101
<p>
102
<label for="seopress_robots_archive_meta">
103
<input type="checkbox" name="seopress_robots_archive" id="seopress_robots_archive_meta" value="yes" '. checked( $seopress_robots_archive, 'yes', false ) .' />
104
- '. __( 'noarchive', 'seopress' ) .'
105
</label>
106
</p>
107
<p>
108
<label for="seopress_robots_snippet_meta">
109
<input type="checkbox" name="seopress_robots_snippet" id="seopress_robots_snippet_meta" value="yes" '. checked( $seopress_robots_snippet, 'yes', false ) .' />
110
- '. __( 'nosnippet', 'seopress' ) .'
111
</label>
112
</p>
113
<p>
114
- <label for="seopress_robots_canonical_meta">'. __( 'Canonical URL', 'seopress' ) .'</label>
115
- <input id="seopress_robots_canonical_meta" type="text" name="seopress_robots_canonical" placeholder="'.__('Enter your Canonical URL','seopress').'" value="'.$seopress_robots_canonical.'" />
116
</p>
117
</div>
118
<div id="tabs-3">
119
<span class="dashicons dashicons-facebook-alt"></span>
120
<p>
121
- <label for="seopress_social_fb_title_meta">'. __( 'Facebook Title', 'seopress' ) .'</label>
122
- <input id="seopress_social_fb_title_meta" type="text" name="seopress_social_fb_title" placeholder="'.__('Enter your Facebook title','seopress').'" value="'.$seopress_social_fb_title.'" />
123
</p>
124
<p>
125
- <label for="seopress_social_fb_desc_meta">'. __( 'Facebook description', 'seopress' ) .'</label>
126
- <textarea id="seopress_social_fb_desc_meta" name="seopress_social_fb_desc" placeholder="'.__('Enter your Facebook description','seopress').'" value="'.$seopress_social_fb_desc.'">'.$seopress_social_fb_desc.'</textarea>
127
</p>
128
<p>
129
- <label for="seopress_social_fb_img_meta">'. __( 'Facebook Thumbnail', 'seopress' ) .'</label>
130
- <input id="seopress_social_fb_img_meta" type="text" name="seopress_social_fb_img" placeholder="'.__('Select your default thumbnail','seopress').'" value="'.$seopress_social_fb_img.'" />
131
- <input id="seopress_social_fb_img_upload" class="button" type="button" value="'.__('Upload an Image','seopress').'" />
132
</p>
133
<br/>
134
<span class="dashicons dashicons-twitter"></span>
135
<p>
136
- <label for="seopress_social_twitter_title_meta">'. __( 'Twitter Title', 'seopress' ) .'</label>
137
- <input id="seopress_social_twitter_title_meta" type="text" name="seopress_social_twitter_title" placeholder="'.__('Enter your Twitter title','seopress').'" value="'.$seopress_social_twitter_title.'" />
138
</p>
139
<p>
140
- <label for="seopress_social_twitter_desc_meta">'. __( 'Twitter description', 'seopress' ) .'</label>
141
- <textarea id="seopress_social_twitter_desc_meta" name="seopress_social_twitter_desc" placeholder="'.__('Enter your Twitter description','seopress').'" value="'.$seopress_social_twitter_desc.'">'.$seopress_social_twitter_desc.'</textarea>
142
</p>
143
<p>
144
- <label for="seopress_social_twitter_img_meta">'. __( 'Twitter Thumbnail', 'seopress' ) .'</label>
145
- <input id="seopress_social_twitter_img_meta" type="text" name="seopress_social_twitter_img" placeholder="'.__('Select your default thumbnail','seopress').'" value="'.$seopress_social_twitter_img.'" />
146
- <input id="seopress_social_twitter_img_upload" class="button" type="button" value="'.__('Upload an Image','seopress').'" />
147
</p>
148
</div>
149
</div>
8
9
add_action('add_meta_boxes','seopress_init_metabox');
10
function seopress_init_metabox(){
11
+ add_meta_box('seopress_cpt', __('SEOPress','wp-seopress'), 'seopress_cpt', seopress_get_post_types(), 'advanced');
12
}
13
14
function seopress_cpt($post){
41
return $seopress_titles_desc;
42
} else {
43
global $post;
44
+ return substr(wp_strip_all_tags($post->post_content, true), 0, 160);
45
}
46
}
47
48
echo '<div id="seopress-tabs">
49
<ul>
50
+ <li><a href="#tabs-1"><span class="dashicons dashicons-editor-table"></span>'. __( 'Titles settings', 'wp-seopress' ) .'</a></li>
51
+ <li><a href="#tabs-2"><span class="dashicons dashicons-admin-generic"></span>'. __( 'Advanced', 'wp-seopress' ) .'</a></li>
52
+ <li><a href="#tabs-3"><span class="dashicons dashicons-share"></span>'. __( 'Social', 'wp-seopress' ) .'</a></li>
53
</ul>
54
55
<div id="tabs-1">
56
<div class="box-left">
57
<p>
58
+ <label for="seopress_titles_title_meta">'. __( 'Title', 'wp-seopress' ) .'</label>
59
+ <input id="seopress_titles_title_meta" type="text" name="seopress_titles_title" placeholder="'.__('Enter your title','wp-seopress').'" value="'.$seopress_titles_title.'" />
60
</p>
61
<p>
62
+ <label for="seopress_titles_desc_meta">'. __( 'Meta description', 'wp-seopress' ) .'</label>
63
+ <textarea id="seopress_titles_desc_meta" style="width:100%" name="seopress_titles_desc" placeholder="'.__('Enter your meta description','wp-seopress').'" value="'.$seopress_titles_desc.'">'.$seopress_titles_desc.'</textarea>
64
+ </p>
65
+ <div class="wrap-seopress-counters">
66
+ <div id="seopress_titles_desc_counters"></div>
67
+ '.__('(maximum recommended limit)','wp-seopress').'
68
+ </div>
69
</div>
70
<div class="box-right">
71
<div class="google-snippet-preview">
72
+ <h3>'.__('Google Snippet Preview','wp-seopress').'</h3>
73
+ <p>'. __('This is what your page will look like in Google search results','wp-seopress').'</p>
74
<div class="snippet-title">'.seopress_titles_title($seopress_titles_title).'</div>
75
<div class="snippet-permalink">'.get_permalink().'</div>
76
+ <div class="snippet-desc">'.seopress_titles_desc($seopress_titles_desc).'...</div>
77
</div>
78
</div>
79
</div>
81
<p>
82
<label for="seopress_robots_index_meta">
83
<input type="checkbox" name="seopress_robots_index" id="seopress_robots_index_meta" value="yes" '. checked( $seopress_robots_index, 'yes', false ) .' />
84
+ '. __( 'noindex', 'wp-seopress' ) .'
85
</label>
86
</p>
87
<p>
88
<label for="seopress_robots_follow_meta">
89
<input type="checkbox" name="seopress_robots_follow" id="seopress_robots_follow_meta" value="yes" '. checked( $seopress_robots_follow, 'yes', false ) .' />
90
+ '. __( 'nofollow', 'wp-seopress' ) .'
91
</label>
92
</p>
93
<p>
94
<label for="seopress_robots_odp_meta">
95
<input type="checkbox" name="seopress_robots_odp" id="seopress_robots_odp_meta" value="yes" '. checked( $seopress_robots_odp, 'yes', false ) .' />
96
+ '. __( 'noodp', 'wp-seopress' ) .'
97
</label>
98
</p>
99
<p>
100
<label for="seopress_robots_imageindex_meta">
101
<input type="checkbox" name="seopress_robots_imageindex" id="seopress_robots_imageindex_meta" value="yes" '. checked( $seopress_robots_imageindex, 'yes', false ) .' />
102
+ '. __( 'noimageindex', 'wp-seopress' ) .'
103
</label>
104
</p>
105
<p>
106
<label for="seopress_robots_archive_meta">
107
<input type="checkbox" name="seopress_robots_archive" id="seopress_robots_archive_meta" value="yes" '. checked( $seopress_robots_archive, 'yes', false ) .' />
108
+ '. __( 'noarchive', 'wp-seopress' ) .'
109
</label>
110
</p>
111
<p>
112
<label for="seopress_robots_snippet_meta">
113
<input type="checkbox" name="seopress_robots_snippet" id="seopress_robots_snippet_meta" value="yes" '. checked( $seopress_robots_snippet, 'yes', false ) .' />
114
+ '. __( 'nosnippet', 'wp-seopress' ) .'
115
</label>
116
</p>
117
<p>
118
+ <label for="seopress_robots_canonical_meta">'. __( 'Canonical URL', 'wp-seopress' ) .'</label>
119
+ <input id="seopress_robots_canonical_meta" type="text" name="seopress_robots_canonical" placeholder="'.__('Enter your Canonical URL','wp-seopress').'" value="'.$seopress_robots_canonical.'" />
120
</p>
121
</div>
122
<div id="tabs-3">
123
<span class="dashicons dashicons-facebook-alt"></span>
124
<p>
125
+ <label for="seopress_social_fb_title_meta">'. __( 'Facebook Title', 'wp-seopress' ) .'</label>
126
+ <input id="seopress_social_fb_title_meta" type="text" name="seopress_social_fb_title" placeholder="'.__('Enter your Facebook title','wp-seopress').'" value="'.$seopress_social_fb_title.'" />
127
</p>
128
<p>
129
+ <label for="seopress_social_fb_desc_meta">'. __( 'Facebook description', 'wp-seopress' ) .'</label>
130
+ <textarea id="seopress_social_fb_desc_meta" name="seopress_social_fb_desc" placeholder="'.__('Enter your Facebook description','wp-seopress').'" value="'.$seopress_social_fb_desc.'">'.$seopress_social_fb_desc.'</textarea>
131
</p>
132
<p>
133
+ <label for="seopress_social_fb_img_meta">'. __( 'Facebook Thumbnail', 'wp-seopress' ) .'</label>
134
+ <input id="seopress_social_fb_img_meta" type="text" name="seopress_social_fb_img" placeholder="'.__('Select your default thumbnail','wp-seopress').'" value="'.$seopress_social_fb_img.'" />
135
+ <input id="seopress_social_fb_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />
136
</p>
137
<br/>
138
<span class="dashicons dashicons-twitter"></span>
139
<p>
140
+ <label for="seopress_social_twitter_title_meta">'. __( 'Twitter Title', 'wp-seopress' ) .'</label>
141
+ <input id="seopress_social_twitter_title_meta" type="text" name="seopress_social_twitter_title" placeholder="'.__('Enter your Twitter title','wp-seopress').'" value="'.$seopress_social_twitter_title.'" />
142
</p>
143
<p>
144
+ <label for="seopress_social_twitter_desc_meta">'. __( 'Twitter description', 'wp-seopress' ) .'</label>
145
+ <textarea id="seopress_social_twitter_desc_meta" name="seopress_social_twitter_desc" placeholder="'.__('Enter your Twitter description','wp-seopress').'" value="'.$seopress_social_twitter_desc.'">'.$seopress_social_twitter_desc.'</textarea>
146
</p>
147
<p>
148
+ <label for="seopress_social_twitter_img_meta">'. __( 'Twitter Thumbnail', 'wp-seopress' ) .'</label>
149
+ <input id="seopress_social_twitter_img_meta" type="text" name="seopress_social_twitter_img" placeholder="'.__('Select your default thumbnail','wp-seopress').'" value="'.$seopress_social_twitter_img.'" />
150
+ <input id="seopress_social_twitter_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />
151
</p>
152
</div>
153
</div>
inc/admin/admin.php CHANGED
@@ -31,10 +31,10 @@ class seopress_options
31
public function add_plugin_page()
32
{
33
add_menu_page('SEOPress Option Page', 'SEOPress', 'manage_options', 'seopress-option', array( $this, 'create_admin_page' ), 'dashicons-admin-generic', 90);
34
- add_submenu_page('seopress-option', __('Titles & Metas','seopress'), __('Titles & Metas','seopress'), 'manage_options', 'seopress-titles', array( $this, 'seopress_titles_page' ));
35
- add_submenu_page('seopress-option', __('XML Sitemap','seopress'), __('XML Sitemap','seopress'), 'manage_options', 'seopress-xml-sitemap', array( $this, 'seopress_xml_sitemap_page' ));
36
- add_submenu_page('seopress-option', __('Social','seopress'), __('Social','seopress'), 'manage_options', 'seopress-social', array( $this, 'seopress_social_page' ));
37
- add_submenu_page('seopress-option', __('Import / Export / Reset settings','seopress'), __('Import / Export / Reset','seopress'), 'manage_options', 'seopress-import-export', array( $this,'seopress_import_export_page'));
38
}
39
40
function seopress_titles_page(){
@@ -44,8 +44,8 @@ class seopress_options
44
<?php
45
if (get_option('blog_public') =='0') {
46
echo '<div class="error notice is-dismissable">';
47
- echo '<p>'. __('Discourage search engines from indexing this site is <strong>ON!</strong> None of the following settings will be applied.','seopress');
48
- echo ' <a href="'.admin_url("options-reading.php").'">'.__('Change this settings','seopress').'</a></p>';
49
echo '</div>';
50
}
51
global $wp_version, $title;
@@ -59,11 +59,11 @@ class seopress_options
59
<?php
60
61
$plugin_settings_tabs = array(
62
- 'tab_seopress_titles_home' => __( "Home", "seopress" ),
63
- 'tab_seopress_titles_single' => __( "Single Post Types", "seopress" ),
64
- 'tab_seopress_titles_tax' => __( "Taxonomies", "seopress" ),
65
- 'tab_seopress_titles_archives' => __( "Archives", "seopress" ),
66
- 'tab_seopress_titles_advanced' => __( "Advanced", "seopress" ),
67
);
68
69
echo '<h2 class="nav-tab-wrapper">';
@@ -100,9 +100,9 @@ class seopress_options
100
<?php
101
102
$plugin_settings_tabs = array(
103
- 'tab_seopress_xml_sitemap_general' => __( "General", "seopress" ),
104
- 'tab_seopress_xml_sitemap_post_types' => __( "Post Types", "seopress" ),
105
- 'tab_seopress_xml_sitemap_taxonomies' => __( "Taxonomies", "seopress" ),
106
);
107
108
echo '<h2 class="nav-tab-wrapper">';
@@ -137,10 +137,10 @@ class seopress_options
137
<?php
138
139
$plugin_settings_tabs = array(
140
- 'tab_seopress_social_knowledge' => __( "Knowledge Graph", "seopress" ),
141
- 'tab_seopress_social_accounts' => __( "Your social accounts", "seopress" ),
142
- 'tab_seopress_social_facebook' => __( "Facebook", "seopress" ),
143
- 'tab_seopress_social_twitter' => __( "Twitter", "seopress" ),
144
);
145
146
echo '<h2 class="nav-tab-wrapper">';
@@ -167,27 +167,27 @@ class seopress_options
167
$tag = version_compare( $wp_version, '4.4' ) >= 0 ? 'h1' : 'h2';
168
echo '<'.$tag.'>'.$title.'</'.$tag.'>';
169
?>
170
- <h3><span><?php _e( 'Import / Export Settings', 'seopress' ); ?></span></h3>
171
- <?php print __('Import / Export SEOPress settings from site to site', 'seopress'); ?>
172
<div class="metabox-holder">
173
<div class="postbox">
174
- <h3><span><?php _e( 'Export Settings', 'seopress' ); ?></span></h3>
175
<div class="inside">
176
- <p><?php _e( 'Export the plugin settings for this site as a .json file. This allows you to easily import the configuration into another site.', 'seopress' ); ?></p>
177
<form method="post">
178
<p><input type="hidden" name="seopress_action" value="export_settings" /></p>
179
<p>
180
<?php wp_nonce_field( 'seopress_export_nonce', 'seopress_export_nonce' ); ?>
181
- <?php submit_button( __( 'Export', 'seopress' ), 'secondary', 'submit', false ); ?>
182
</p>
183
</form>
184
</div><!-- .inside -->
185
</div><!-- .postbox -->
186
187
<div class="postbox">
188
- <h3><span><?php _e( 'Import Settings', 'seopress' ); ?></span></h3>
189
<div class="inside">
190
- <p><?php _e( 'Import the plugin settings from a .json file. This file can be obtained by exporting the settings on another site using the form above.', 'seopress' ); ?></p>
191
<form method="post" enctype="multipart/form-data">
192
<p>
193
<input type="file" name="import_file"/>
@@ -195,21 +195,21 @@ class seopress_options
195
<p>
196
<input type="hidden" name="seopress_action" value="import_settings" />
197
<?php wp_nonce_field( 'seopress_import_nonce', 'seopress_import_nonce' ); ?>
198
- <?php submit_button( __( 'Import', 'seopress' ), 'secondary', 'submit', false ); ?>
199
</p>
200
</form>
201
</div><!-- .inside -->
202
</div><!-- .postbox -->
203
204
<div class="postbox">
205
- <h3><span><?php _e( 'Reset All Settings', 'seopress' ); ?></span></h3>
206
<div class="inside">
207
- <p style="color:red"><?php _e( '<strong>WARNING:</strong> Delete all options related to SEOPress in your database.', 'seopress' ); ?></p>
208
<form method="post" enctype="multipart/form-data">
209
<p>
210
<input type="hidden" name="seopress_action" value="reset_settings" />
211
<?php wp_nonce_field( 'seopress_reset_nonce', 'seopress_reset_nonce' ); ?>
212
- <?php submit_button( __( 'Reset settings', 'seopress' ), 'secondary', 'submit', false ); ?>
213
</p>
214
</form>
215
</div><!-- .inside -->
@@ -230,11 +230,11 @@ class seopress_options
230
<div id="seopress-header">
231
<div id="seopress-admin">
232
<h1>
233
- <span class="screen-reader-text"><?php _e( 'SEOPress', 'seopress' ); ?></span>
234
<?php if ( is_plugin_active( 'seopress-pro/seopress-pro.php' ) ) { ?>
235
<span class="seopress-info-version">
236
<strong>
237
- <?php _e('PRO', 'seopress'); ?>
238
<?php echo SEOPRESSPRO_VERSION; ?>
239
</strong>
240
</span>
@@ -244,10 +244,10 @@ class seopress_options
244
</h1>
245
<div id="seopress-notice">
246
<a href="http://wp-alacarte.com/" target="_blank"><img class="wpalacarte-banner" width="300" height="250" src="<?php echo plugins_url('assets/img/wpalacarte-300x250-EN@2x.png', dirname(dirname(__FILE__))); ?>" /></a>
247
- <h2><?php _e( 'The ultimate plugin to optimize your SEO!', 'seopress' ); ?></h2>
248
<p class="small">
249
<span class="dashicons dashicons-wordpress"></span>
250
- <?php _e( 'You like SEOPress? Don\'t forget to rate it 5 stars!', 'seopress' ); ?>
251
252
<div class="wporg-ratings rating-stars">
253
<a href="//wordpress.org/support/view/plugin-reviews/seopress?rate=1#postform" data-rating="1" title="" target="_blank"><span class="dashicons dashicons-star-filled" style="color:#e6b800 !important;"></span></a>
@@ -276,11 +276,11 @@ class seopress_options
276
</script>
277
</p>
278
<p class="small">
279
- <a href="http://twitter.com/wpcloudy" target="_blank"><div class="dashicons dashicons-twitter"></div><?php _e( 'Follow us on Twitter!', 'seopress' ); ?></a>
280
&nbsp;
281
- <a href="http://www.seopress.org/" target="_blank"><div class="dashicons dashicons-info"></div><?php _e( 'Our website', 'seopress' ); ?></a>
282
&nbsp;
283
- <a href="http://www.seopress.org/support" target="_blank"><div class="dashicons dashicons-sos"></div><?php _e( 'Knowledge base', 'seopress' ); ?></a>
284
</p>
285
</div>
286
<table class="seopress-page-list" cellspacing="16">
@@ -291,9 +291,9 @@ class seopress_options
291
<span class="dashicons dashicons-editor-table"></span>
292
</div>
293
<span class="inner">
294
- <h4><?php _e('Titles & metas','seopress'); ?></h4>
295
- <p><?php _e('Manage all your titles & metas','seopress'); ?></p>
296
- <a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=seopress-titles' ); ?>"><?php _e('Manage','seopress'); ?></a>
297
</span>
298
</td>
299
<td>
@@ -301,9 +301,9 @@ class seopress_options
301
<span class="dashicons dashicons-media-spreadsheet"></span>
302
</div>
303
<span class="inner">
304
- <h4><?php _e('XML Sitemap','seopress'); ?></h4>
305
- <p><?php _e('Manage your XML Sitemap','seopress'); ?></p>
306
- <a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=seopress-xml-sitemap' ); ?>"><?php _e('Manage','seopress'); ?></a>
307
</span>
308
</td>
309
<td>
@@ -311,9 +311,9 @@ class seopress_options
311
<span class="dashicons dashicons-share"></span>
312
</div>
313
<span class="inner">
314
- <h4><?php _e('Social','seopress'); ?></h4>
315
- <p><?php _e('Open Graph, Twitter Card, Google Knowledge Graph and more...','seopress'); ?></p>
316
- <a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=seopress-social' ); ?>"><?php _e('Manage','seopress'); ?></a>
317
</span>
318
</td>
319
<td>
@@ -321,9 +321,9 @@ class seopress_options
321
<span class="dashicons dashicons-admin-settings"></span>
322
</div>
323
<span class="inner">
324
- <h4><?php _e('Import / Export / Reset','seopress'); ?></h4>
325
- <p><?php _e('Import / export SEOPress settings from site to site.','seopress'); ?></p>
326
- <a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=seopress-import-export' ); ?>"><?php _e('Manage','seopress'); ?></a>
327
</span>
328
</td>
329
</tr>
@@ -373,14 +373,14 @@ class seopress_options
373
add_settings_section(
374
'seopress_setting_section_titles_home', // ID
375
'',
376
- //__("Home","seopress"), // Title
377
array( $this, 'print_section_info_titles' ), // Callback
378
'seopress-settings-admin-titles-home' // Page
379
);
380
381
add_settings_field(
382
'seopress_titles_home_site_title', // ID
383
- __("Site title","seopress"), // Title
384
array( $this, 'seopress_titles_home_site_title_callback' ), // Callback
385
'seopress-settings-admin-titles-home', // Page
386
'seopress_setting_section_titles_home' // Section
@@ -388,7 +388,7 @@ class seopress_options
388
389
add_settings_field(
390
'seopress_titles_home_site_desc', // ID
391
- __("Meta description","seopress"), // Title
392
array( $this, 'seopress_titles_home_site_desc_callback' ), // Callback
393
'seopress-settings-admin-titles-home', // Page
394
'seopress_setting_section_titles_home' // Section
@@ -398,7 +398,7 @@ class seopress_options
398
add_settings_section(
399
'seopress_setting_section_titles_single', // ID
400
'',
401
- //__("Single Post Types","seopress"), // Title
402
array( $this, 'print_section_info_single' ), // Callback
403
'seopress-settings-admin-titles-single' // Page
404
);
@@ -415,7 +415,7 @@ class seopress_options
415
add_settings_section(
416
'seopress_setting_section_titles_tax', // ID
417
'',
418
- //__("Taxonomies","seopress"), // Title
419
array( $this, 'print_section_info_tax' ), // Callback
420
'seopress-settings-admin-titles-tax' // Page
421
);
@@ -432,7 +432,7 @@ class seopress_options
432
add_settings_section(
433
'seopress_setting_section_titles_archives', // ID
434
'',
435
- //__("Archives","seopress"), // Title
436
array( $this, 'print_section_info_archives' ), // Callback
437
'seopress-settings-admin-titles-archives' // Page
438
);
@@ -440,7 +440,7 @@ class seopress_options
440
add_settings_field(
441
'seopress_titles_archives_author_title', // ID
442
'',
443
- //__('Title template','seopress'),
444
array( $this, 'seopress_titles_archives_author_title_callback' ), // Callback
445
'seopress-settings-admin-titles-archives', // Page
446
'seopress_setting_section_titles_archives' // Section
@@ -449,7 +449,7 @@ class seopress_options
449
add_settings_field(
450
'seopress_titles_archives_author_desc', // ID
451
'',
452
- //__('Meta description template','seopress'),
453
array( $this, 'seopress_titles_archives_author_desc_callback' ), // Callback
454
'seopress-settings-admin-titles-archives', // Page
455
'seopress_setting_section_titles_archives' // Section
@@ -458,7 +458,7 @@ class seopress_options
458
add_settings_field(
459
'seopress_titles_archives_date_title', // ID
460
'',
461
- //__('Title template','seopress'),
462
array( $this, 'seopress_titles_archives_date_title_callback' ), // Callback
463
'seopress-settings-admin-titles-archives', // Page
464
'seopress_setting_section_titles_archives' // Section
@@ -467,7 +467,7 @@ class seopress_options
467
add_settings_field(
468
'seopress_titles_archives_date_desc', // ID
469
'',
470
- //__('Meta description template','seopress'),
471
array( $this, 'seopress_titles_archives_date_desc_callback' ), // Callback
472
'seopress-settings-admin-titles-archives', // Page
473
'seopress_setting_section_titles_archives' // Section
@@ -476,7 +476,7 @@ class seopress_options
476
add_settings_field(
477
'seopress_titles_archives_search_title', // ID
478
'',
479
- //__('Title template','seopress'),
480
array( $this, 'seopress_titles_archives_search_title_callback' ), // Callback
481
'seopress-settings-admin-titles-archives', // Page
482
'seopress_setting_section_titles_archives' // Section
@@ -485,7 +485,7 @@ class seopress_options
485
add_settings_field(
486
'seopress_titles_archives_search_desc', // ID
487
'',
488
- //__('Meta description template','seopress'),
489
array( $this, 'seopress_titles_archives_search_desc_callback' ), // Callback
490
'seopress-settings-admin-titles-archives', // Page
491
'seopress_setting_section_titles_archives' // Section
@@ -494,7 +494,7 @@ class seopress_options
494
add_settings_field(
495
'seopress_titles_archives_404_title', // ID
496
'',
497
- //__('Title template','seopress'),
498
array( $this, 'seopress_titles_archives_404_title_callback' ), // Callback
499
'seopress-settings-admin-titles-archives', // Page
500
'seopress_setting_section_titles_archives' // Section
@@ -503,7 +503,7 @@ class seopress_options
503
add_settings_field(
504
'seopress_titles_archives_404_desc', // ID
505
'',
506
- //__('Meta description template','seopress'),
507
array( $this, 'seopress_titles_archives_404_desc_callback' ), // Callback
508
'seopress-settings-admin-titles-archives', // Page
509
'seopress_setting_section_titles_archives' // Section
@@ -512,7 +512,7 @@ class seopress_options
512
add_settings_field(
513
'seopress_titles_archives_paged_title', // ID
514
'',
515
- //__('Title template','seopress'),
516
array( $this, 'seopress_titles_archives_paged_title_callback' ), // Callback
517
'seopress-settings-admin-titles-archives', // Page
518
'seopress_setting_section_titles_archives' // Section
@@ -521,7 +521,7 @@ class seopress_options
521
add_settings_field(
522
'seopress_titles_archives_paged_desc', // ID
523
'',
524
- //__('Meta description template','seopress'),
525
array( $this, 'seopress_titles_archives_paged_desc_callback' ), // Callback
526
'seopress-settings-admin-titles-archives', // Page
527
'seopress_setting_section_titles_archives' // Section
@@ -531,14 +531,14 @@ class seopress_options
531
add_settings_section(
532
'seopress_setting_section_titles_advanced', // ID
533
'',
534
- //__("Advanced","seopress"), // Title
535
array( $this, 'print_section_info_advanced' ), // Callback
536
'seopress-settings-admin-titles-advanced' // Page
537
);
538
539
add_settings_field(
540
'seopress_titles_noindex', // ID
541
- __("noindex","seopress"), // Title
542
array( $this, 'seopress_titles_noindex_callback' ), // Callback
543
'seopress-settings-admin-titles-advanced', // Page
544
'seopress_setting_section_titles_advanced' // Section
@@ -546,7 +546,7 @@ class seopress_options
546
547
add_settings_field(
548
'seopress_titles_nofollow', // ID
549
- __("nofollow","seopress"), // Title
550
array( $this, 'seopress_titles_nofollow_callback' ), // Callback
551
'seopress-settings-admin-titles-advanced', // Page
552
'seopress_setting_section_titles_advanced' // Section
@@ -554,7 +554,7 @@ class seopress_options
554
555
add_settings_field(
556
'seopress_titles_noodp', // ID
557
- __("noodp","seopress"), // Title
558
array( $this, 'seopress_titles_noodp_callback' ), // Callback
559
'seopress-settings-admin-titles-advanced', // Page
560
'seopress_setting_section_titles_advanced' // Section
@@ -562,7 +562,7 @@ class seopress_options
562
563
add_settings_field(
564
'seopress_titles_noimageindex', // ID
565
- __("noimageindex","seopress"), // Title
566
array( $this, 'seopress_titles_noimageindex_callback' ), // Callback
567
'seopress-settings-admin-titles-advanced', // Page
568
'seopress_setting_section_titles_advanced' // Section
@@ -570,7 +570,7 @@ class seopress_options
570
571
add_settings_field(
572
'seopress_titles_noarchive', // ID
573
- __("noarchive","seopress"), // Title
574
array( $this, 'seopress_titles_noarchive_callback' ), // Callback
575
'seopress-settings-admin-titles-advanced', // Page
576
'seopress_setting_section_titles_advanced' // Section
@@ -578,7 +578,7 @@ class seopress_options
578
579
add_settings_field(
580
'seopress_titles_nosnippet', // ID
581
- __("nosnippet","seopress"), // Title
582
array( $this, 'seopress_titles_nosnippet_callback' ), // Callback
583
'seopress-settings-admin-titles-advanced', // Page
584
'seopress_setting_section_titles_advanced' // Section
@@ -588,14 +588,14 @@ class seopress_options
588
add_settings_section(
589
'seopress_setting_section_xml_sitemap_general', // ID
590
'',
591
- //__("General","seopress"), // Title
592
array( $this, 'print_section_info_xml_sitemap_general' ), // Callback
593
'seopress-settings-admin-xml-sitemap-general' // Page
594
);
595
596
add_settings_field(
597
'seopress_xml_sitemap_general_enable', // ID
598
- __("Enable XML Sitemap","seopress"), // Title
599
array( $this, 'seopress_xml_sitemap_general_enable_callback' ), // Callback
600
'seopress-settings-admin-xml-sitemap-general', // Page
601
'seopress_setting_section_xml_sitemap_general' // Section
@@ -604,14 +604,14 @@ class seopress_options
604
add_settings_section(
605
'seopress_setting_section_xml_sitemap_post_types', // ID
606
'',
607
- //__("Post Types","seopress"), // Title
608
array( $this, 'print_section_info_xml_sitemap_post_types' ), // Callback
609
'seopress-settings-admin-xml-sitemap-post-types' // Page
610
);
611
612
add_settings_field(
613
'seopress_xml_sitemap_post_types_list', // ID
614
- __("Check to INCLUDE Post Types","seopress"), // Title
615
array( $this, 'seopress_xml_sitemap_post_types_list_callback' ), // Callback
616
'seopress-settings-admin-xml-sitemap-post-types', // Page
617
'seopress_setting_section_xml_sitemap_post_types' // Section
@@ -620,14 +620,14 @@ class seopress_options
620
add_settings_section(
621
'seopress_setting_section_xml_sitemap_taxonomies', // ID
622
'',
623
- //__("Taxonomies","seopress"), // Title
624
array( $this, 'print_section_info_xml_sitemap_taxonomies' ), // Callback
625
'seopress-settings-admin-xml-sitemap-taxonomies' // Page
626
);
627
628
add_settings_field(
629
'seopress_xml_sitemap_taxonomies_list', // ID
630
- __("Check to INCLUDE Taxonomies","seopress"), // Title
631
array( $this, 'seopress_xml_sitemap_taxonomies_list_callback' ), // Callback
632
'seopress-settings-admin-xml-sitemap-taxonomies', // Page
633
'seopress_setting_section_xml_sitemap_taxonomies' // Section
@@ -637,14 +637,14 @@ class seopress_options
637
add_settings_section(
638
'seopress_setting_section_social_knowledge', // ID
639
'',
640
- //__("Knowledge graph","seopress"), // Title
641
array( $this, 'print_section_info_social_knowledge' ), // Callback
642
'seopress-settings-admin-social-knowledge' // Page
643
);
644
645
add_settings_field(
646
'seopress_social_knowledge_type', // ID
647
- __("Person or organization","seopress"), // Title
648
array( $this, 'seopress_social_knowledge_type_callback' ), // Callback
649
'seopress-settings-admin-social-knowledge', // Page
650
'seopress_setting_section_social_knowledge' // Section
@@ -652,7 +652,7 @@ class seopress_options
652
653
add_settings_field(
654
'seopress_social_knowledge_name', // ID
655
- __("Your name/organization","seopress"), // Title
656
array( $this, 'seopress_social_knowledge_name_callback' ), // Callback
657
'seopress-settings-admin-social-knowledge', // Page
658
'seopress_setting_section_social_knowledge' // Section
@@ -660,7 +660,7 @@ class seopress_options
660
661
add_settings_field(
662
'seopress_social_knowledge_img', // ID
663
- __("Your photo / organization logo","seopress"), // Title
664
array( $this, 'seopress_social_knowledge_img_callback' ), // Callback
665
'seopress-settings-admin-social-knowledge', // Page
666
'seopress_setting_section_social_knowledge' // Section
@@ -670,14 +670,14 @@ class seopress_options
670
add_settings_section(
671
'seopress_setting_section_social_accounts', // ID
672
'',
673
- //__("Social","seopress"), // Title
674
array( $this, 'print_section_info_social_accounts' ), // Callback
675
'seopress-settings-admin-social-accounts' // Page
676
);
677
678
add_settings_field(
679
'seopress_social_accounts_facebook', // ID
680
- __("Facebook Page URL","seopress"), // Title
681
array( $this, 'seopress_social_accounts_facebook_callback' ), // Callback
682
'seopress-settings-admin-social-accounts', // Page
683
'seopress_setting_section_social_accounts' // Section
@@ -685,7 +685,7 @@ class seopress_options
685
686
add_settings_field(
687
'seopress_social_accounts_twitter', // ID
688
- __("Twitter Username","seopress"), // Title
689
array( $this, 'seopress_social_accounts_twitter_callback' ), // Callback
690
'seopress-settings-admin-social-accounts', // Page
691
'seopress_setting_section_social_accounts' // Section
@@ -693,7 +693,7 @@ class seopress_options
693
694
add_settings_field(
695
'seopress_social_accounts_google', // ID
696
- __("Google + URL","seopress"), // Title
697
array( $this, 'seopress_social_accounts_google_callback' ), // Callback
698
'seopress-settings-admin-social-accounts', // Page
699
'seopress_setting_section_social_accounts' // Section
@@ -701,7 +701,7 @@ class seopress_options
701
702
add_settings_field(
703
'seopress_social_accounts_pinterest', // ID
704
- __("Pinterest URL","seopress"), // Title
705
array( $this, 'seopress_social_accounts_pinterest_callback' ), // Callback
706
'seopress-settings-admin-social-accounts', // Page
707
'seopress_setting_section_social_accounts' // Section
@@ -709,7 +709,7 @@ class seopress_options
709
710
add_settings_field(
711
'seopress_social_accounts_instagram', // ID
712
- __("Instagram URL","seopress"), // Title
713
array( $this, 'seopress_social_accounts_instagram_callback' ), // Callback
714
'seopress-settings-admin-social-accounts', // Page
715
'seopress_setting_section_social_accounts' // Section
@@ -717,7 +717,7 @@ class seopress_options
717
718
add_settings_field(
719
'seopress_social_accounts_youtube', // ID
720
- __("YouTube URL","seopress"), // Title
721
array( $this, 'seopress_social_accounts_youtube_callback' ), // Callback
722
'seopress-settings-admin-social-accounts', // Page
723
'seopress_setting_section_social_accounts' // Section
@@ -725,7 +725,7 @@ class seopress_options
725
726
add_settings_field(
727
'seopress_social_accounts_linkedin', // ID
728
- __("LinkedIn URL","seopress"), // Title
729
array( $this, 'seopress_social_accounts_linkedin_callback' ), // Callback
730
'seopress-settings-admin-social-accounts', // Page
731
'seopress_setting_section_social_accounts' // Section
@@ -733,7 +733,7 @@ class seopress_options
733
734
add_settings_field(
735
'seopress_social_accounts_myspace', // ID
736
- __("MySpace URL","seopress"), // Title
737
array( $this, 'seopress_social_accounts_myspace_callback' ), // Callback
738
'seopress-settings-admin-social-accounts', // Page
739
'seopress_setting_section_social_accounts' // Section
@@ -741,7 +741,7 @@ class seopress_options
741
742
add_settings_field(
743
'seopress_social_accounts_soundcloud', // ID
744
- __("Soundcloud URL","seopress"), // Title
745
array( $this, 'seopress_social_accounts_soundcloud_callback' ), // Callback
746
'seopress-settings-admin-social-accounts', // Page
747
'seopress_setting_section_social_accounts' // Section
@@ -749,7 +749,7 @@ class seopress_options
749
750
add_settings_field(
751
'seopress_social_accounts_tumblr', // ID
752
- __("Tumblr URL","seopress"), // Title
753
array( $this, 'seopress_social_accounts_tumblr_callback' ), // Callback
754
'seopress-settings-admin-social-accounts', // Page
755
'seopress_setting_section_social_accounts' // Section
@@ -759,14 +759,14 @@ class seopress_options
759
add_settings_section(
760
'seopress_setting_section_social_facebook', // ID
761
'',
762
- //__("Facebook","seopress"), // Title
763
array( $this, 'print_section_info_social_facebook' ), // Callback
764
'seopress-settings-admin-social-facebook' // Page
765
);
766
767
add_settings_field(
768
'seopress_social_facebook_og', // ID
769
- __("Enable Open Graph Data","seopress"), // Title
770
array( $this, 'seopress_social_facebook_og_callback' ), // Callback
771
'seopress-settings-admin-social-facebook', // Page
772
'seopress_setting_section_social_facebook' // Section
@@ -774,7 +774,7 @@ class seopress_options
774
775
add_settings_field(
776
'seopress_social_facebook_img', // ID
777
- __("Select a default image","seopress"), // Title
778
array( $this, 'seopress_social_facebook_img_callback' ), // Callback
779
'seopress-settings-admin-social-facebook', // Page
780
'seopress_setting_section_social_facebook' // Section
@@ -782,7 +782,7 @@ class seopress_options
782
783
add_settings_field(
784
'seopress_social_facebook_admin_id', // ID
785
- __("Facebook Admin ID","seopress"), // Title
786
array( $this, 'seopress_social_facebook_admin_id_callback' ), // Callback
787
'seopress-settings-admin-social-facebook', // Page
788
'seopress_setting_section_social_facebook' // Section
@@ -790,7 +790,7 @@ class seopress_options
790
791
add_settings_field(
792
'seopress_social_facebook_app_id', // ID
793
- __("Facebook App ID","seopress"), // Title
794
array( $this, 'seopress_social_facebook_app_id_callback' ), // Callback
795
'seopress-settings-admin-social-facebook', // Page
796
'seopress_setting_section_social_facebook' // Section
@@ -800,14 +800,14 @@ class seopress_options
800
add_settings_section(
801
'seopress_setting_section_social_twitter', // ID
802
'',
803
- //__("Twitter","seopress"), // Title
804
array( $this, 'print_section_info_social_twitter' ), // Callback
805
'seopress-settings-admin-social-twitter' // Page
806
);
807
808
add_settings_field(
809
'seopress_social_twitter_card', // ID
810
- __("Enable Twitter Card","seopress"), // Title
811
array( $this, 'seopress_social_twitter_card_callback' ), // Callback
812
'seopress-settings-admin-social-twitter', // Page
813
'seopress_setting_section_social_twitter' // Section
@@ -815,7 +815,7 @@ class seopress_options
815
816
add_settings_field(
817
'seopress_social_twitter_card_img', // ID
818
- __("Default Twitter Image","seopress"), // Title
819
array( $this, 'seopress_social_twitter_card_img_callback' ), // Callback
820
'seopress-settings-admin-social-twitter', // Page
821
'seopress_setting_section_social_twitter' // Section
@@ -823,7 +823,7 @@ class seopress_options
823
824
add_settings_field(
825
'seopress_social_twitter_card_img_size', // ID
826
- __("Image size for Twitter Summary card","seopress"), // Title
827
array( $this, 'seopress_social_twitter_card_img_size_callback' ), // Callback
828
'seopress-settings-admin-social-twitter', // Page
829
'seopress_setting_section_social_twitter' // Section
@@ -837,84 +837,14 @@ class seopress_options
837
*/
838
public function sanitize( $input )
839
{
840
- if( !empty( $input['seopress_titles_home_site_title'] ) )
841
- $input['seopress_titles_home_site_title'] = sanitize_text_field( $input['seopress_titles_home_site_title'] );
842
-
843
- if( !empty( $input['seopress_titles_home_site_desc'] ) )
844
- $input['seopress_titles_home_site_desc'] = sanitize_text_field( $input['seopress_titles_home_site_desc'] );
845
-
846
- if( !empty( $input['seopress_titles_archives_author_title'] ) )
847
- $input['seopress_titles_archives_author_title'] = sanitize_text_field( $input['seopress_titles_archives_author_title'] );
848
-
849
- if( !empty( $input['seopress_titles_archives_author_desc'] ) )
850
- $input['seopress_titles_archives_author_desc'] = sanitize_text_field( $input['seopress_titles_archives_author_desc'] );
851
-
852
- if( !empty( $input['seopress_titles_archives_date_title'] ) )
853
- $input['seopress_titles_archives_date_title'] = sanitize_text_field( $input['seopress_titles_archives_date_title'] );
854
-
855
- if( !empty( $input['seopress_titles_archives_date_desc'] ) )
856
- $input['seopress_titles_archives_date_desc'] = sanitize_text_field( $input['seopress_titles_archives_date_desc'] );
857
-
858
- if( !empty( $input['seopress_titles_archives_search_title'] ) )
859
- $input['seopress_titles_archives_search_title'] = sanitize_text_field( $input['seopress_titles_archives_search_title'] );
860
-
861
- if( !empty( $input['seopress_titles_archives_search_desc'] ) )
862
- $input['seopress_titles_archives_search_desc'] = sanitize_text_field( $input['seopress_titles_archives_search_desc'] );
863
-
864
- if( !empty( $input['seopress_titles_archives_404_title'] ) )
865
- $input['seopress_titles_archives_404_title'] = sanitize_text_field( $input['seopress_titles_archives_404_title'] );
866
-
867
- if( !empty( $input['seopress_titles_archives_404_desc'] ) )
868
- $input['seopress_titles_archives_404_desc'] = sanitize_text_field( $input['seopress_titles_archives_404_desc'] );
869
-
870
- if( !empty( $input['seopress_titles_archives_paged_title'] ) )
871
- $input['seopress_titles_archives_paged_title'] = sanitize_text_field( $input['seopress_titles_archives_paged_title'] );
872
-
873
- if( !empty( $input['seopress_titles_archives_paged_desc'] ) )
874
- $input['seopress_titles_archives_paged_desc'] = sanitize_text_field( $input['seopress_titles_archives_paged_desc'] );
875
-
876
- if( !empty( $input['seopress_social_knowledge_name'] ) )
877
- $input['seopress_social_knowledge_name'] = sanitize_text_field( $input['seopress_social_knowledge_name'] );
878
-
879
- if( !empty( $input['seopress_social_knowledge_img'] ) )
880
- $input['seopress_social_knowledge_img'] = sanitize_text_field( $input['seopress_social_knowledge_img'] );
881
-
882
- if( !empty( $input['seopress_social_accounts_facebook'] ) )
883
- $input['seopress_social_accounts_facebook'] = sanitize_text_field( $input['seopress_social_accounts_facebook'] );
884
-
885
- if( !empty( $input['seopress_social_accounts_twitter'] ) )
886
- $input['seopress_social_accounts_twitter'] = sanitize_text_field( $input['seopress_social_accounts_twitter'] );
887
-
888
- if( !empty( $input['seopress_social_accounts_google'] ) )
889
- $input['seopress_social_accounts_google'] = sanitize_text_field( $input['seopress_social_accounts_google'] );
890
-
891
- if( !empty( $input['seopress_social_accounts_pinterest'] ) )
892
- $input['seopress_social_accounts_pinterest'] = sanitize_text_field( $input['seopress_social_accounts_pinterest'] );
893
-
894
- if( !empty( $input['seopress_social_accounts_instagram'] ) )
895
- $input['seopress_social_accounts_instagram'] = sanitize_text_field( $input['seopress_social_accounts_instagram'] );
896
-
897
- if( !empty( $input['seopress_social_accounts_youtube'] ) )
898
- $input['seopress_social_accounts_youtube'] = sanitize_text_field( $input['seopress_social_accounts_youtube'] );
899
-
900
- if( !empty( $input['seopress_social_accounts_linkedin'] ) )
901
- $input['seopress_social_accounts_linkedin'] = sanitize_text_field( $input['seopress_social_accounts_linkedin'] );
902
-
903
- if( !empty( $input['seopress_social_accounts_myspace'] ) )
904
- $input['seopress_social_accounts_myspace'] = sanitize_text_field( $input['seopress_social_accounts_myspace'] );
905
-
906
- if( !empty( $input['seopress_social_accounts_soundcloud'] ) )
907
- $input['seopress_social_accounts_soundcloud'] = sanitize_text_field( $input['seopress_social_accounts_soundcloud'] );
908
-
909
- if( !empty( $input['seopress_social_accounts_tumblr'] ) )
910
- $input['seopress_social_accounts_tumblr'] = sanitize_text_field( $input['seopress_social_accounts_tumblr'] );
911
-
912
- if( !empty( $input['seopress_social_facebook_admin_id'] ) )
913
- $input['seopress_social_facebook_admin_id'] = sanitize_text_field( $input['seopress_social_facebook_admin_id'] );
914
-
915
- if( !empty( $input['seopress_social_facebook_app_id'] ) )
916
- $input['seopress_social_facebook_app_id'] = sanitize_text_field( $input['seopress_social_facebook_app_id'] );
917
918
return $input;
919
}
920
@@ -924,66 +854,66 @@ class seopress_options
924
925
public function print_section_info_titles()
926
{
927
- print __('<p>Customize your titles & metas for homepage</p>', 'seopress');
928
}
929
930
public function print_section_info_single()
931
{
932
- print __('<p>Customize your titles & metas for Single Custom Post Types</p>', 'seopress');
933
}
934
935
public function print_section_info_advanced()
936
{
937
- print __('<p>Customize your metas for all pages</p>', 'seopress');
938
}
939
940
public function print_section_info_tax()
941
{
942
- print __('<p>Customize your metas for all taxonomies archives</p>', 'seopress');
943
}
944
945
public function print_section_info_archives()
946
{
947
- print __('<p>Customize your metas for all archives</p>', 'seopress');
948
}
949
950
public function print_section_info_xml_sitemap_general()
951
{
952
- print __('<p>Enable your Sitemap</p>', 'seopress');
953
- echo __('To view your sitemap, enable permalinks (not default one), and save settings to flush them.', 'seopress');
954
echo '<br>';
955
echo '<br>';
956
- echo '<a href="'.home_url().'/sitemaps/" target="_blank" class="button">'.__('View your sitemap','seopress').'</a>';
957
}
958
959
public function print_section_info_xml_sitemap_post_types()
960
{
961
- print __('<p>Include / Exclude Post Types</p>', 'seopress');
962
}
963
964
public function print_section_info_xml_sitemap_taxonomies()
965
{
966
- print __('<p>Include / Exclude Taxonomies</p>', 'seopress');
967
}
968
969
public function print_section_info_social_knowledge()
970
{
971
- print __('<p>Configure Google Knowledge Graph</p>', 'seopress');
972
}
973
974
public function print_section_info_social_accounts()
975
{
976
- print __('<p>Link your site with your social accounts</p>', 'seopress');
977
}
978
979
public function print_section_info_social_facebook()
980
{
981
- print __('<p>Manage Open Graph datas</p>', 'seopress');
982
}
983
984
public function print_section_info_social_twitter()
985
{
986
- print __('<p>Manage your Twitter card</p>', 'seopress');
987
}
988
989
/**
@@ -994,7 +924,7 @@ class seopress_options
994
public function seopress_titles_home_site_title_callback()
995
{
996
printf(
997
- '<input type="text" name="seopress_titles_option_name[seopress_titles_home_site_title]" value="%s"/>',
998
esc_html( $this->options['seopress_titles_home_site_title'])
999
1000
);
@@ -1004,7 +934,7 @@ class seopress_options
1004
public function seopress_titles_home_site_desc_callback()
1005
{
1006
printf(
1007
- '<textarea name="seopress_titles_option_name[seopress_titles_home_site_desc]">%s</textarea>',
1008
esc_html( $this->options['seopress_titles_home_site_desc'])
1009
1010
);
@@ -1021,7 +951,7 @@ class seopress_options
1021
//Single Title CPT
1022
echo '<div class="seopress_wrap_single_cpt">';
1023
1024
- _e('Title template','seopress');
1025
echo "<br/>";
1026
1027
printf(
@@ -1034,7 +964,7 @@ class seopress_options
1034
//Single Meta Description CPT
1035
echo '<div class="seopress_wrap_single_cpt">';
1036
1037
- _e('Meta description template','seopress');
1038
echo "<br/>";
1039
1040
printf(
@@ -1055,7 +985,7 @@ class seopress_options
1055
if ('1' == $check) echo 'checked="yes"';
1056
echo ' value="1"/>';
1057
1058
- echo '<label for="seopress_titles_single_cpt_noindex['.$seopress_cpt_value.']">'. __( 'noindex', 'seopress' ) .'</label>';
1059
1060
if (isset($this->options['seopress_titles_single_titles'][$seopress_cpt_value]['noindex'])) {
1061
esc_attr( $this->options['seopress_titles_single_titles'][$seopress_cpt_value]['noindex']);
@@ -1074,7 +1004,7 @@ class seopress_options
1074
if ('1' == $check) echo 'checked="yes"';
1075
echo ' value="1"/>';
1076
1077
- echo '<label for="seopress_titles_single_cpt_nofollow['.$seopress_cpt_value.']">'. __( 'nofollow', 'seopress' ) .'</label>';
1078
1079
if (isset($this->options['seopress_titles_single_titles'][$seopress_cpt_value]['nofollow'])) {
1080
esc_attr( $this->options['seopress_titles_single_titles'][$seopress_cpt_value]['nofollow']);
@@ -1094,7 +1024,7 @@ class seopress_options
1094
//Tax Title
1095
echo '<div class="seopress_wrap_tax">';
1096
1097
- _e('Title template','seopress');
1098
echo "<br/>";
1099
1100
printf(
@@ -1107,7 +1037,7 @@ class seopress_options
1107
//Tax Meta Description
1108
echo '<div class="seopress_wrap_tax">';
1109
1110
- _e('Meta description template','seopress');
1111
echo "<br/>";
1112
1113
printf(
@@ -1128,7 +1058,7 @@ class seopress_options
1128
if ('1' == $check) echo 'checked="yes"';
1129
echo ' value="1"/>';
1130
1131
- echo '<label for="seopress_titles_tax_noindex['.$seopress_tax_value.']">'. __( 'noindex', 'seopress' ) .'</label>';
1132
1133
if (isset($this->options['seopress_titles_tax_titles'][$seopress_tax_value]['noindex'])) {
1134
esc_attr( $this->options['seopress_titles_tax_titles'][$seopress_tax_value]['noindex']);
@@ -1147,7 +1077,7 @@ class seopress_options
1147
if ('1' == $check) echo 'checked="yes"';
1148
echo ' value="1"/>';
1149
1150
- echo '<label for="seopress_titles_tax_nofollow['.$seopress_tax_value.']">'. __( 'nofollow', 'seopress' ) .'</label>';
1151
1152
if (isset($this->options['seopress_titles_tax_titles'][$seopress_tax_value]['nofollow'])) {
1153
esc_attr( $this->options['seopress_titles_tax_titles'][$seopress_tax_value]['nofollow']);
@@ -1160,9 +1090,9 @@ class seopress_options
1160
//Archives
1161
public function seopress_titles_archives_author_title_callback()
1162
{
1163
- echo '<h2>'.__('Author archives','seopress').'</h2>';
1164
1165
- _e('Title template','seopress');
1166
echo "<br/>";
1167
1168
printf(
@@ -1175,7 +1105,7 @@ class seopress_options
1175
1176
public function seopress_titles_archives_author_desc_callback()
1177
{
1178
- _e('Meta description template','seopress');
1179
echo "<br/>";
1180
1181
printf(
@@ -1188,9 +1118,9 @@ class seopress_options
1188
1189
public function seopress_titles_archives_date_title_callback()
1190
{
1191
- echo '<h2>'.__('Date archives','seopress').'</h2>';
1192
1193
- _e('Title template','seopress');
1194
echo "<br/>";
1195
1196
printf(
@@ -1203,7 +1133,7 @@ class seopress_options
1203
1204
public function seopress_titles_archives_date_desc_callback()
1205
{
1206
- _e('Meta description template','seopress');
1207
echo "<br/>";
1208
1209
printf(
@@ -1216,9 +1146,9 @@ class seopress_options
1216
1217
public function seopress_titles_archives_search_title_callback()
1218
{
1219
- echo '<h2>'.__('Search archives','seopress').'</h2>';
1220
1221
- _e('Title template','seopress');
1222
echo "<br/>";
1223
1224
printf(
@@ -1231,7 +1161,7 @@ class seopress_options
1231
1232
public function seopress_titles_archives_search_desc_callback()
1233
{
1234
- _e('Meta description template','seopress');
1235
echo "<br/>";
1236
1237
printf(
@@ -1244,9 +1174,9 @@ class seopress_options
1244
1245
public function seopress_titles_archives_404_title_callback()
1246
{
1247
- echo '<h2>'.__('404 archives','seopress').'</h2>';
1248
1249
- _e('Title template','seopress');
1250
echo "<br/>";
1251
1252
printf(
@@ -1259,7 +1189,7 @@ class seopress_options
1259
1260
public function seopress_titles_archives_404_desc_callback()
1261
{
1262
- _e('Meta description template','seopress');
1263
echo "<br/>";
1264
1265
printf(
@@ -1272,9 +1202,9 @@ class seopress_options
1272
1273
public function seopress_titles_archives_paged_title_callback()
1274
{
1275
- echo '<h2>'.__('Paged archives','seopress').'</h2>';
1276
1277
- _e('Title template','seopress');
1278
echo "<br/>";
1279
1280
printf(
@@ -1287,7 +1217,7 @@ class seopress_options
1287
1288
public function seopress_titles_archives_paged_desc_callback()
1289
{
1290
- _e('Meta description template','seopress');
1291
echo "<br/>";
1292
1293
printf(
@@ -1309,7 +1239,7 @@ class seopress_options
1309
if ('1' == $check) echo 'checked="yes"';
1310
echo ' value="1"/>';
1311
1312
- echo '<label for="seopress_titles_noindex">'. __( 'noindex', 'seopress' ) .'</label>';
1313
1314
if (isset($this->options['seopress_titles_noindex'])) {
1315
esc_attr( $this->options['seopress_titles_noindex']);
@@ -1326,7 +1256,7 @@ class seopress_options
1326
if ('1' == $check) echo 'checked="yes"';
1327
echo ' value="1"/>';
1328
1329
- echo '<label for="seopress_titles_nofollow">'. __( 'nofollow', 'seopress' ) .'</label>';
1330
1331
if (isset($this->options['seopress_titles_nofollow'])) {
1332
esc_attr( $this->options['seopress_titles_nofollow']);
@@ -1343,7 +1273,7 @@ class seopress_options
1343
if ('1' == $check) echo 'checked="yes"';
1344
echo ' value="1"/>';
1345
1346
- echo '<label for="seopress_titles_noodp">'. __( 'noodp', 'seopress' ) .'</label>';
1347
1348
if (isset($this->options['seopress_titles_noodp'])) {
1349
esc_attr( $this->options['seopress_titles_noodp']);
@@ -1360,7 +1290,7 @@ class seopress_options
1360
if ('1' == $check) echo 'checked="yes"';
1361
echo ' value="1"/>';
1362
1363
- echo '<label for="seopress_titles_noimageindex">'. __( 'noimageindex', 'seopress' ) .'</label>';
1364
1365
if (isset($this->options['seopress_titles_noimageindex'])) {
1366
esc_attr( $this->options['seopress_titles_noimageindex']);
@@ -1377,7 +1307,7 @@ class seopress_options
1377
if ('1' == $check) echo 'checked="yes"';
1378
echo ' value="1"/>';
1379
1380
- echo '<label for="seopress_titles_noarchive">'. __( 'noarchive', 'seopress' ) .'</label>';
1381
1382
if (isset($this->options['seopress_titles_noarchive'])) {
1383
esc_attr( $this->options['seopress_titles_noarchive']);
@@ -1394,7 +1324,7 @@ class seopress_options
1394
if ('1' == $check) echo 'checked="yes"';
1395
echo ' value="1"/>';
1396
1397
- echo '<label for="seopress_titles_nosnippet">'. __( 'nosnippet', 'seopress' ) .'</label>';
1398
1399
if (isset($this->options['seopress_titles_nosnippet'])) {
1400
esc_attr( $this->options['seopress_titles_nosnippet']);
@@ -1411,7 +1341,7 @@ class seopress_options
1411
if ('1' == $check) echo 'checked="yes"';
1412
echo ' value="1"/>';
1413
1414
- echo '<label for="seopress_xml_sitemap_general_enable">'. __( 'Enable XML Sitemap', 'seopress' ) .'</label>';
1415
1416
if (isset($this->options['seopress_xml_sitemap_general_enable'])) {
1417
esc_attr( $this->options['seopress_xml_sitemap_general_enable']);
@@ -1450,7 +1380,7 @@ class seopress_options
1450
if ('1' == $check) echo 'checked="yes"';
1451
echo ' value="1"/>';
1452
1453
- echo '<label for="seopress_xml_sitemap_post_types_list_include['.$seopress_cpt_value.']">'. __( 'Include', 'seopress' ) .'</label>';
1454
1455
if (isset($this->options['seopress_xml_sitemap_post_types_list'][$seopress_cpt_value]['include'])) {
1456
esc_attr( $this->options['seopress_xml_sitemap_post_types_list'][$seopress_cpt_value]['include']);
@@ -1490,7 +1420,7 @@ class seopress_options
1490
if ('1' == $check) echo 'checked="yes"';
1491
echo ' value="1"/>';
1492
1493
- echo '<label for="seopress_xml_sitemap_taxonomies_list_include['.$seopress_tax_value.']">'. __( 'Include', 'seopress' ) .'</label>';
1494
1495
if (isset($this->options['seopress_xml_sitemap_taxonomies_list'][$seopress_tax_value]['include'])) {
1496
esc_attr( $this->options['seopress_xml_sitemap_taxonomies_list'][$seopress_tax_value]['include']);
@@ -1509,10 +1439,10 @@ class seopress_options
1509
echo '<select id="seopress_social_knowledge_type" name="seopress_social_option_name[seopress_social_knowledge_type]">';
1510
echo ' <option ';
1511
if ('person' == $selected) echo 'selected="selected"';
1512
- echo ' value="person">'. __("Person","seopress") .'</option>';
1513
echo '<option ';
1514
if ('organization' == $selected) echo 'selected="selected"';
1515
- echo ' value="organization">'. __("Organization","seopress") .'</option>';
1516
echo '</select>';
1517
1518
if (isset($this->options['seopress_social_knowledge_type'])) {
@@ -1523,7 +1453,7 @@ class seopress_options
1523
public function seopress_social_knowledge_name_callback()
1524
{
1525
printf(
1526
- '<input type="text" name="seopress_social_option_name[seopress_social_knowledge_name]" value="%s"/>',
1527
esc_html( $this->options['seopress_social_knowledge_name'])
1528
);
1529
@@ -1534,9 +1464,9 @@ class seopress_options
1534
1535
$check = isset($options['seopress_social_knowledge_img']);
1536
1537
- echo '<input id="seopress_social_knowledge_img_meta" type="text" value="'.$options['seopress_social_knowledge_img'].'" name="seopress_social_option_name[seopress_social_knowledge_img]" placeholder="'.__('Select your logo','seopress').'" />
1538
1539
- <input id="seopress_social_knowledge_img_upload" class="button" type="button" value="'.__('Upload an Image','seopress').'" />';
1540
1541
if (isset($this->options['seopress_social_knowledge_img'])) {
1542
esc_attr( $this->options['seopress_social_knowledge_img']);
@@ -1546,7 +1476,7 @@ class seopress_options
1546
public function seopress_social_accounts_facebook_callback()
1547
{
1548
printf(
1549
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_facebook]" value="%s"/>',
1550
esc_html( $this->options['seopress_social_accounts_facebook'])
1551
1552
);
@@ -1556,7 +1486,7 @@ class seopress_options
1556
public function seopress_social_accounts_twitter_callback()
1557
{
1558
printf(
1559
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_twitter]" value="%s"/>',
1560
esc_html( $this->options['seopress_social_accounts_twitter'])
1561
1562
);
@@ -1566,7 +1496,7 @@ class seopress_options
1566
public function seopress_social_accounts_google_callback()
1567
{
1568
printf(
1569
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_google]" value="%s"/>',
1570
esc_html( $this->options['seopress_social_accounts_google'])
1571
1572
);
@@ -1576,7 +1506,7 @@ class seopress_options
1576
public function seopress_social_accounts_pinterest_callback()
1577
{
1578
printf(
1579
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_pinterest]" value="%s"/>',
1580
esc_html( $this->options['seopress_social_accounts_pinterest'])
1581
1582
);
@@ -1586,7 +1516,7 @@ class seopress_options
1586
public function seopress_social_accounts_instagram_callback()
1587
{
1588
printf(
1589
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_instagram]" value="%s"/>',
1590
esc_html( $this->options['seopress_social_accounts_instagram'])
1591
1592
);
@@ -1596,7 +1526,7 @@ class seopress_options
1596
public function seopress_social_accounts_youtube_callback()
1597
{
1598
printf(
1599
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_youtube]" value="%s"/>',
1600
esc_html( $this->options['seopress_social_accounts_youtube'])
1601
1602
);
@@ -1606,7 +1536,7 @@ class seopress_options
1606
public function seopress_social_accounts_linkedin_callback()
1607
{
1608
printf(
1609
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_linkedin]" value="%s"/>',
1610
esc_html( $this->options['seopress_social_accounts_linkedin'])
1611
1612
);
@@ -1616,7 +1546,7 @@ class seopress_options
1616
public function seopress_social_accounts_myspace_callback()
1617
{
1618
printf(
1619
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_myspace]" value="%s"/>',
1620
esc_html( $this->options['seopress_social_accounts_myspace'])
1621
1622
);
@@ -1626,7 +1556,7 @@ class seopress_options
1626
public function seopress_social_accounts_soundcloud_callback()
1627
{
1628
printf(
1629
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_soundcloud]" value="%s"/>',
1630
esc_html( $this->options['seopress_social_accounts_soundcloud'])
1631
1632
);
@@ -1636,7 +1566,7 @@ class seopress_options
1636
public function seopress_social_accounts_tumblr_callback()
1637
{
1638
printf(
1639
- '<input type="text" name="seopress_social_option_name[seopress_social_accounts_tumblr]" value="%s"/>',
1640
esc_html( $this->options['seopress_social_accounts_tumblr'])
1641
1642
);
@@ -1653,7 +1583,7 @@ class seopress_options
1653
if ('1' == $check) echo 'checked="yes"';
1654
echo ' value="1"/>';
1655
1656
- echo '<label for="seopress_social_facebook_og">'. __( 'Enable OG data', 'seopress' ) .'</label>';
1657
1658
if (isset($this->options['seopress_social_facebook_og'])) {
1659
esc_attr( $this->options['seopress_social_facebook_og']);
@@ -1666,9 +1596,9 @@ class seopress_options
1666
1667
$check = isset($options['seopress_social_facebook_img']);
1668
1669
- echo '<input id="seopress_social_fb_img_meta" type="text" value="'.$options['seopress_social_facebook_img'].'" name="seopress_social_option_name[seopress_social_facebook_img]" placeholder="'.__('Select your default thumbnail','seopress').'" />
1670
1671
- <input id="seopress_social_fb_img_upload" class="button" type="button" value="'.__('Upload an Image','seopress').'" />';
1672
1673
if (isset($this->options['seopress_social_facebook_img'])) {
1674
esc_attr( $this->options['seopress_social_facebook_img']);
@@ -1705,7 +1635,7 @@ class seopress_options
1705
if ('1' == $check) echo 'checked="yes"';
1706
echo ' value="1"/>';
1707
1708
- echo '<label for="seopress_social_twitter_card">'. __( 'Enable Twitter card', 'seopress' ) .'</label>';
1709
1710
if (isset($this->options['seopress_social_twitter_card'])) {
1711
esc_attr( $this->options['seopress_social_twitter_card']);
@@ -1718,9 +1648,9 @@ class seopress_options
1718
1719
$check = isset($options['seopress_social_twitter_card_img']);
1720
1721
- echo '<input id="seopress_social_twitter_img_meta" type="text" value="'.$options['seopress_social_twitter_card_img'].'" name="seopress_social_option_name[seopress_social_twitter_card_img]" placeholder="'.__('Select your default thumbnail','seopress').'" />
1722
1723
- <input id="seopress_social_twitter_img_upload" class="button" type="button" value="'.__('Upload an Image','seopress').'" />';
1724
1725
if (isset($this->options['seopress_social_twitter_card_img'])) {
1726
esc_attr( $this->options['seopress_social_twitter_card_img']);
@@ -1736,10 +1666,10 @@ class seopress_options
1736
echo '<select id="seopress_social_twitter_card_img_size" name="seopress_social_option_name[seopress_social_twitter_card_img_size]">';
1737
echo ' <option ';
1738
if ('default' == $selected) echo 'selected="selected"';
1739
- echo ' value="default">'. __("Default","seopress") .'</option>';
1740
echo '<option ';
1741
if ('large' == $selected) echo 'selected="selected"';
1742
- echo ' value="large">'. __("Large","seopress") .'</option>';
1743
echo '</select>';
1744
1745
if (isset($this->options['seopress_social_twitter_card_img_size'])) {
31
public function add_plugin_page()
32
{
33
add_menu_page('SEOPress Option Page', 'SEOPress', 'manage_options', 'seopress-option', array( $this, 'create_admin_page' ), 'dashicons-admin-generic', 90);
34
+ add_submenu_page('seopress-option', __('Titles & Metas','wp-seopress'), __('Titles & Metas','wp-seopress'), 'manage_options', 'seopress-titles', array( $this, 'seopress_titles_page' ));
35
+ add_submenu_page('seopress-option', __('XML Sitemap','wp-seopress'), __('XML Sitemap','wp-seopress'), 'manage_options', 'seopress-xml-sitemap', array( $this, 'seopress_xml_sitemap_page' ));
36
+ add_submenu_page('seopress-option', __('Social','wp-seopress'), __('Social','wp-seopress'), 'manage_options', 'seopress-social', array( $this, 'seopress_social_page' ));
37
+ add_submenu_page('seopress-option', __('Import / Export / Reset settings','wp-seopress'), __('Import / Export / Reset','wp-seopress'), 'manage_options', 'seopress-import-export', array( $this,'seopress_import_export_page'));
38
}
39
40
function seopress_titles_page(){
44
<?php
45
if (get_option('blog_public') =='0') {
46
echo '<div class="error notice is-dismissable">';
47
+ echo '<p>'. __('Discourage search engines from indexing this site is <strong>ON!</strong> None of the following settings will be applied.','wp-seopress');
48
+ echo ' <a href="'.admin_url("options-reading.php").'">'.__('Change this settings','wp-seopress').'</a></p>';
49
echo '</div>';
50
}
51
global $wp_version, $title;
59
<?php
60
61
$plugin_settings_tabs = array(
62
+ 'tab_seopress_titles_home' => __( "Home", "wp-seopress" ),
63
+ 'tab_seopress_titles_single' => __( "Single Post Types", "wp-seopress" ),
64
+ 'tab_seopress_titles_tax' => __( "Taxonomies", "wp-seopress" ),
65
+ 'tab_seopress_titles_archives' => __( "Archives", "wp-seopress" ),
66
+ 'tab_seopress_titles_advanced' => __( "Advanced", "wp-seopress" ),
67
);
68
69
echo '<h2 class="nav-tab-wrapper">';
100
<?php
101
102
$plugin_settings_tabs = array(
103
+ 'tab_seopress_xml_sitemap_general' => __( "General", "wp-seopress" ),
104
+ 'tab_seopress_xml_sitemap_post_types' => __( "Post Types", "wp-seopress" ),
105
+ 'tab_seopress_xml_sitemap_taxonomies' => __( "Taxonomies", "wp-seopress" ),
106
);
107
108
echo '<h2 class="nav-tab-wrapper">';
137
<?php
138
139
$plugin_settings_tabs = array(
140
+ 'tab_seopress_social_knowledge' => __( "Knowledge Graph", "wp-seopress" ),
141
+ 'tab_seopress_social_accounts' => __( "Your social accounts", "wp-seopress" ),
142
+ 'tab_seopress_social_facebook' => __( "Facebook", "wp-seopress" ),
143
+ 'tab_seopress_social_twitter' => __( "Twitter", "wp-seopress" ),
144
);
145
146
echo '<h2 class="nav-tab-wrapper">';
167
$tag = version_compare( $wp_version, '4.4' ) >= 0 ? 'h1' : 'h2';
168
echo '<'.$tag.'>'.$title.'</'.$tag.'>';
169
?>
170
+ <h3><span><?php _e( 'Import / Export Settings', 'wp-seopress' ); ?></span></h3>
171
+ <?php print __('Import / Export SEOPress settings from site to site', 'wp-seopress'); ?>
172
<div class="metabox-holder">
173
<div class="postbox">
174
+ <h3><span><?php _e( 'Export Settings', 'wp-seopress' ); ?></span></h3>
175
<div class="inside">
176
+ <p><?php _e( 'Export the plugin settings for this site as a .json file. This allows you to easily import the configuration into another site.', 'wp-seopress' ); ?></p>
177
<form method="post">
178
<p><input type="hidden" name="seopress_action" value="export_settings" /></p>
179
<p>
180
<?php wp_nonce_field( 'seopress_export_nonce', 'seopress_export_nonce' ); ?>
181
+ <?php submit_button( __( 'Export', 'wp-seopress' ), 'secondary', 'submit', false ); ?>
182
</p>
183
</form>
184
</div><!-- .inside -->
185
</div><!-- .postbox -->
186
187
<div class="postbox">
188
+ <h3><span><?php _e( 'Import Settings', 'wp-seopress' ); ?></span></h3>
189
<div class="inside">
190
+ <p><?php _e( 'Import the plugin settings from a .json file. This file can be obtained by exporting the settings on another site using the form above.', 'wp-seopress' ); ?></p>
191
<form method="post" enctype="multipart/form-data">
192
<p>
193
<input type="file" name="import_file"/>
195
<p>
196
<input type="hidden" name="seopress_action" value="import_settings" />
197
<?php wp_nonce_field( 'seopress_import_nonce', 'seopress_import_nonce' ); ?>
198
+ <?php submit_button( __( 'Import', 'wp-seopress' ), 'secondary', 'submit', false ); ?>
199
</p>
200
</form>
201
</div><!-- .inside -->
202
</div><!-- .postbox -->
203
204
<div class="postbox">
205
+ <h3><span><?php _e( 'Reset All Settings', 'wp-seopress' ); ?></span></h3>
206
<div class="inside">
207
+ <p style="color:red"><?php _e( '<strong>WARNING:</strong> Delete all options related to SEOPress in your database.', 'wp-seopress' ); ?></p>
208
<form method="post" enctype="multipart/form-data">
209
<p>
210
<input type="hidden" name="seopress_action" value="reset_settings" />
211
<?php wp_nonce_field( 'seopress_reset_nonce', 'seopress_reset_nonce' ); ?>
212
+ <?php submit_button( __( 'Reset settings', 'wp-seopress' ), 'secondary', 'submit', false ); ?>
213
</p>
214
</form>
215
</div><!-- .inside -->
230
<div id="seopress-header">
231
<div id="seopress-admin">
232
<h1>
233
+ <span class="screen-reader-text"><?php _e( 'SEOPress', 'wp-seopress' ); ?></span>
234
<?php if ( is_plugin_active( 'seopress-pro/seopress-pro.php' ) ) { ?>
235
<span class="seopress-info-version">
236
<strong>
237
+ <?php _e('PRO', 'wp-seopress'); ?>
238
<?php echo SEOPRESSPRO_VERSION; ?>
239
</strong>
240
</span>
244
</h1>
245
<div id="seopress-notice">
246
<a href="http://wp-alacarte.com/" target="_blank"><img class="wpalacarte-banner" width="300" height="250" src="<?php echo plugins_url('assets/img/wpalacarte-300x250-EN@2x.png', dirname(dirname(__FILE__))); ?>" /></a>
247
+ <h2><?php _e( 'The ultimate plugin to optimize your SEO!', 'wp-seopress' ); ?></h2>
248
<p class="small">
249
<span class="dashicons dashicons-wordpress"></span>
250
+ <?php _e( 'You like SEOPress? Don\'t forget to rate it 5 stars!', 'wp-seopress' ); ?>
251
252
<div class="wporg-ratings rating-stars">
253
<a href="//wordpress.org/support/view/plugin-reviews/seopress?rate=1#postform" data-rating="1" title="" target="_blank"><span class="dashicons dashicons-star-filled" style="color:#e6b800 !important;"></span></a>
276
</script>
277
</p>
278
<p class="small">
279
+ <a href="http://twitter.com/wpcloudy" target="_blank"><div class="dashicons dashicons-twitter"></div><?php _e( 'Follow us on Twitter!', 'wp-seopress' ); ?></a>
280
&nbsp;
281
+ <a href="http://www.seopress.org/" target="_blank"><div class="dashicons dashicons-info"></div><?php _e( 'Our website', 'wp-seopress' ); ?></a>
282
&nbsp;
283
+ <a href="http://www.seopress.org/support" target="_blank"><div class="dashicons dashicons-sos"></div><?php _e( 'Knowledge base', 'wp-seopress' ); ?></a>
284
</p>
285
</div>
286
<table class="seopress-page-list" cellspacing="16">
291
<span class="dashicons dashicons-editor-table"></span>
292
</div>
293
<span class="inner">
294
+ <h4><?php _e('Titles & metas','wp-seopress'); ?></h4>
295
+ <p><?php _e('Manage all your titles & metas','wp-seopress'); ?></p>
296
+ <a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=seopress-titles' ); ?>"><?php _e('Manage','wp-seopress'); ?></a>
297
</span>
298
</td>
299
<td>
301
<span class="dashicons dashicons-media-spreadsheet"></span>
302
</div>
303
<span class="inner">
304
+ <h4><?php _e('XML Sitemap','wp-seopress'); ?></h4>
305
+ <p><?php _e('Manage your XML Sitemap','wp-seopress'); ?></p>
306
+ <a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=seopress-xml-sitemap' ); ?>"><?php _e('Manage','wp-seopress'); ?></a>
307
</span>
308
</td>
309
<td>
311
<span class="dashicons dashicons-share"></span>
312
</div>
313
<span class="inner">
314
+ <h4><?php _e('Social','wp-seopress'); ?></h4>
315
+ <p><?php _e('Open Graph, Twitter Card, Google Knowledge Graph and more...','wp-seopress'); ?></p>
316
+ <a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=seopress-social' ); ?>"><?php _e('Manage','wp-seopress'); ?></a>
317
</span>
318
</td>
319
<td>
321
<span class="dashicons dashicons-admin-settings"></span>
322
</div>
323
<span class="inner">
324
+ <h4><?php _e('Import / Export / Reset','wp-seopress'); ?></h4>
325
+ <p><?php _e('Import / export SEOPress settings from site to site.','wp-seopress'); ?></p>
326
+ <a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=seopress-import-export' ); ?>"><?php _e('Manage','wp-seopress'); ?></a>
327
</span>
328
</td>
329
</tr>
373
add_settings_section(
374
'seopress_setting_section_titles_home', // ID
375
'',
376
+ //__("Home","wp-seopress"), // Title
377
array( $this, 'print_section_info_titles' ), // Callback
378
'seopress-settings-admin-titles-home' // Page
379
);
380
381
add_settings_field(
382
'seopress_titles_home_site_title', // ID
383
+ __("Site title","wp-seopress"), // Title
384
array( $this, 'seopress_titles_home_site_title_callback' ), // Callback
385
'seopress-settings-admin-titles-home', // Page
386
'seopress_setting_section_titles_home' // Section
388
389
add_settings_field(
390
'seopress_titles_home_site_desc', // ID
391
+ __("Meta description","wp-seopress"), // Title
392
array( $this, 'seopress_titles_home_site_desc_callback' ), // Callback
393
'seopress-settings-admin-titles-home', // Page
394
'seopress_setting_section_titles_home' // Section
398
add_settings_section(
399
'seopress_setting_section_titles_single', // ID
400
'',
401
+ //__("Single Post Types","wp-seopress"), // Title
402
array( $this, 'print_section_info_single' ), // Callback
403
'seopress-settings-admin-titles-single' // Page
404
);
415
add_settings_section(
416
'seopress_setting_section_titles_tax', // ID
417
'',
418
+ //__("Taxonomies","wp-seopress"), // Title
419
array( $this, 'print_section_info_tax' ), // Callback
420
'seopress-settings-admin-titles-tax' // Page
421
);
432
add_settings_section(
433
'seopress_setting_section_titles_archives', // ID
434
'',
435
+ //__("Archives","wp-seopress"), // Title
436
array( $this, 'print_section_info_archives' ), // Callback
437
'seopress-settings-admin-titles-archives' // Page
438
);
440
add_settings_field(
441
'seopress_titles_archives_author_title', // ID
442
'',
443
+ //__('Title template','wp-seopress'),
444
array( $this, 'seopress_titles_archives_author_title_callback' ), // Callback
445
'seopress-settings-admin-titles-archives', // Page
446
'seopress_setting_section_titles_archives' // Section
449
add_settings_field(
450
'seopress_titles_archives_author_desc', // ID
451
'',
452
+ //__('Meta description template','wp-seopress'),
453
array( $this, 'seopress_titles_archives_author_desc_callback' ), // Callback
454
'seopress-settings-admin-titles-archives', // Page
455
'seopress_setting_section_titles_archives' // Section
458
add_settings_field(
459
'seopress_titles_archives_date_title', // ID
460
'',
461
+ //__('Title template','wp-seopress'),
462
array( $this, 'seopress_titles_archives_date_title_callback' ), // Callback
463
'seopress-settings-admin-titles-archives', // Page
464
'seopress_setting_section_titles_archives' // Section
467
add_settings_field(
468
'seopress_titles_archives_date_desc', // ID
469
'',
470
+ //__('Meta description template','wp-seopress'),
471
array( $this, 'seopress_titles_archives_date_desc_callback' ), // Callback
472
'seopress-settings-admin-titles-archives', // Page
473
'seopress_setting_section_titles_archives' // Section
476
add_settings_field(
477
'seopress_titles_archives_search_title', // ID
478
'',
479
+ //__('Title template','wp-seopress'),
480
array( $this, 'seopress_titles_archives_search_title_callback' ), // Callback
481
'seopress-settings-admin-titles-archives', // Page
482
'seopress_setting_section_titles_archives' // Section
485
add_settings_field(
486
'seopress_titles_archives_search_desc', // ID
487
'',
488
+ //__('Meta description template','wp-seopress'),
489
array( $this, 'seopress_titles_archives_search_desc_callback' ), // Callback
490
'seopress-settings-admin-titles-archives', // Page
491
'seopress_setting_section_titles_archives' // Section
494
add_settings_field(
495
'seopress_titles_archives_404_title', // ID
496
'',
497
+ //__('Title template','wp-seopress'),
498
array( $this, 'seopress_titles_archives_404_title_callback' ), // Callback
499
'seopress-settings-admin-titles-archives', // Page
500
'seopress_setting_section_titles_archives' // Section
503
add_settings_field(
504
'seopress_titles_archives_404_desc', // ID
505
'',
506
+ //__('Meta description template','wp-seopress'),
507
array( $this, 'seopress_titles_archives_404_desc_callback' ), // Callback
508
'seopress-settings-admin-titles-archives', // Page
509
'seopress_setting_section_titles_archives' // Section
512
add_settings_field(
513
'seopress_titles_archives_paged_title', // ID
514
'',
515
+ //__('Title template','wp-seopress'),
516
array( $this, 'seopress_titles_archives_paged_title_callback' ), // Callback
517
'seopress-settings-admin-titles-archives', // Page
518
'seopress_setting_section_titles_archives' // Section
521
add_settings_field(
522
'seopress_titles_archives_paged_desc', // ID
523
'',
524
+ //__('Meta description template','wp-seopress'),
525
array( $this, 'seopress_titles_archives_paged_desc_callback' ), // Callback
526
'seopress-settings-admin-titles-archives', // Page
527
'seopress_setting_section_titles_archives' // Section
531
add_settings_section(
532
'seopress_setting_section_titles_advanced', // ID
533
'',
534
+ //__("Advanced","wp-seopress"), // Title
535
array( $this, 'print_section_info_advanced' ), // Callback
536
'seopress-settings-admin-titles-advanced' // Page
537
);
538
539
add_settings_field(
540
'seopress_titles_noindex', // ID
541
+ __("noindex","wp-seopress"), // Title
542
array( $this, 'seopress_titles_noindex_callback' ), // Callback
543
'seopress-settings-admin-titles-advanced', // Page
544
'seopress_setting_section_titles_advanced' // Section
546
547
add_settings_field(
548
'seopress_titles_nofollow', // ID
549
+ __("nofollow","wp-seopress"), // Title
550
array( $this, 'seopress_titles_nofollow_callback' ), // Callback
551
'seopress-settings-admin-titles-advanced', // Page
552
'seopress_setting_section_titles_advanced' // Section
554
555
add_settings_field(
556
'seopress_titles_noodp', // ID
557
+ __("noodp","wp-seopress"), // Title
558
array( $this, 'seopress_titles_noodp_callback' ), // Callback
559
'seopress-settings-admin-titles-advanced', // Page
560
'seopress_setting_section_titles_advanced' // Section
562
563
add_settings_field(
564
'seopress_titles_noimageindex', // ID
565
+ __("noimageindex","wp-seopress"), // Title
566
array( $this, 'seopress_titles_noimageindex_callback' ), // Callback
567
'seopress-settings-admin-titles-advanced', // Page
568
'seopress_setting_section_titles_advanced' // Section
570
571
add_settings_field(
572
'seopress_titles_noarchive', // ID
573
+ __("noarchive","wp-seopress"), // Title
574
array( $this, 'seopress_titles_noarchive_callback' ), // Callback
575
'seopress-settings-admin-titles-advanced', // Page
576
'seopress_setting_section_titles_advanced' // Section
578
579
add_settings_field(
580
'seopress_titles_nosnippet', // ID
581
+ __("nosnippet","wp-seopress"), // Title
582
array( $this, 'seopress_titles_nosnippet_callback' ), // Callback
583
'seopress-settings-admin-titles-advanced', // Page
584
'seopress_setting_section_titles_advanced' // Section
588
add_settings_section(
589
'seopress_setting_section_xml_sitemap_general', // ID
590
'',
591
+ //__("General","wp-seopress"), // Title
592
array( $this, 'print_section_info_xml_sitemap_general' ), // Callback
593
'seopress-settings-admin-xml-sitemap-general' // Page
594
);
595
596
add_settings_field(
597
'seopress_xml_sitemap_general_enable', // ID
598
+ __("Enable XML Sitemap","wp-seopress"), // Title
599
array( $this, 'seopress_xml_sitemap_general_enable_callback' ), // Callback
600
'seopress-settings-admin-xml-sitemap-general', // Page
601
'seopress_setting_section_xml_sitemap_general' // Section
604
add_settings_section(
605
'seopress_setting_section_xml_sitemap_post_types', // ID
606
'',
607
+ //__("Post Types","wp-seopress"), // Title
608
array( $this, 'print_section_info_xml_sitemap_post_types' ), // Callback
609
'seopress-settings-admin-xml-sitemap-post-types' // Page
610
);
611
612
add_settings_field(
613
'seopress_xml_sitemap_post_types_list', // ID
614
+ __("Check to INCLUDE Post Types","wp-seopress"), // Title
615
array( $this, 'seopress_xml_sitemap_post_types_list_callback' ), // Callback
616
'seopress-settings-admin-xml-sitemap-post-types', // Page
617
'seopress_setting_section_xml_sitemap_post_types' // Section
620
add_settings_section(
621
'seopress_setting_section_xml_sitemap_taxonomies', // ID
622
'',
623
+ //__("Taxonomies","wp-seopress"), // Title
624
array( $this, 'print_section_info_xml_sitemap_taxonomies' ), // Callback
625
'seopress-settings-admin-xml-sitemap-taxonomies' // Page
626
);
627
628
add_settings_field(
629
'seopress_xml_sitemap_taxonomies_list', // ID
630
+ __("Check to INCLUDE Taxonomies","wp-seopress"), // Title
631
array( $this, 'seopress_xml_sitemap_taxonomies_list_callback' ), // Callback
632
'seopress-settings-admin-xml-sitemap-taxonomies', // Page
633
'seopress_setting_section_xml_sitemap_taxonomies' // Section
637
add_settings_section(
638
'seopress_setting_section_social_knowledge', // ID
639
'',
640
+ //__("Knowledge graph","wp-seopress"), // Title
641
array( $this, 'print_section_info_social_knowledge' ), // Callback
642
'seopress-settings-admin-social-knowledge' // Page
643
);
644
645
add_settings_field(
646
'seopress_social_knowledge_type', // ID
647
+ __("Person or organization","wp-seopress"), // Title
648
array( $this, 'seopress_social_knowledge_type_callback' ), // Callback
649
'seopress-settings-admin-social-knowledge', // Page
650
'seopress_setting_section_social_knowledge' // Section
652
653
add_settings_field(
654
'seopress_social_knowledge_name', // ID
655
+ __("Your name/organization","wp-seopress"), // Title
656
array( $this, 'seopress_social_knowledge_name_callback' ), // Callback
657
'seopress-settings-admin-social-knowledge', // Page
658
'seopress_setting_section_social_knowledge' // Section
660
661
add_settings_field(
662
'seopress_social_knowledge_img', // ID
663
+ __("Your photo / organization logo","wp-seopress"), // Title
664
array( $this, 'seopress_social_knowledge_img_callback' ), // Callback
665
'seopress-settings-admin-social-knowledge', // Page
666
'seopress_setting_section_social_knowledge' // Section
670
add_settings_section(
671
'seopress_setting_section_social_accounts', // ID
672
'',
673
+ //__("Social","wp-seopress"), // Title
674
array( $this, 'print_section_info_social_accounts' ), // Callback
675
'seopress-settings-admin-social-accounts' // Page
676
);
677
678
add_settings_field(
679
'seopress_social_accounts_facebook', // ID
680
+ __("Facebook Page URL","wp-seopress"), // Title
681
array( $this, 'seopress_social_accounts_facebook_callback' ), // Callback
682
'seopress-settings-admin-social-accounts', // Page
683
'seopress_setting_section_social_accounts' // Section
685
686
add_settings_field(
687
'seopress_social_accounts_twitter', // ID
688
+ __("Twitter Username","wp-seopress"), // Title
689
array( $this, 'seopress_social_accounts_twitter_callback' ), // Callback
690
'seopress-settings-admin-social-accounts', // Page
691
'seopress_setting_section_social_accounts' // Section
693
694
add_settings_field(
695
'seopress_social_accounts_google', // ID
696
+ __("Google + URL","wp-seopress"), // Title
697
array( $this, 'seopress_social_accounts_google_callback' ), // Callback
698
'seopress-settings-admin-social-accounts', // Page
699
'seopress_setting_section_social_accounts' // Section
701
702
add_settings_field(
703
'seopress_social_accounts_pinterest', // ID
704
+ __("Pinterest URL","wp-seopress"), // Title
705
array( $this, 'seopress_social_accounts_pinterest_callback' ), // Callback
706
'seopress-settings-admin-social-accounts', // Page
707
'seopress_setting_section_social_accounts' // Section
709
710
add_settings_field(
711
'seopress_social_accounts_instagram', // ID
712
+ __("Instagram URL","wp-seopress"), // Title
713
array( $this, 'seopress_social_accounts_instagram_callback' ), // Callback
714
'seopress-settings-admin-social-accounts', // Page
715
'seopress_setting_section_social_accounts' // Section
717
718
add_settings_field(
719
'seopress_social_accounts_youtube', // ID
720
+ __("YouTube URL","wp-seopress"), // Title
721
array( $this, 'seopress_social_accounts_youtube_callback' ), // Callback
722
'seopress-settings-admin-social-accounts', // Page
723
'seopress_setting_section_social_accounts' // Section
725
726
add_settings_field(
727
'seopress_social_accounts_linkedin', // ID
728
+ __("LinkedIn URL","wp-seopress"), // Title
729
array( $this, 'seopress_social_accounts_linkedin_callback' ), // Callback
730
'seopress-settings-admin-social-accounts', // Page
731
'seopress_setting_section_social_accounts' // Section
733
734
add_settings_field(
735
'seopress_social_accounts_myspace', // ID
736
+ __("MySpace URL","wp-seopress"), // Title
737
array( $this, 'seopress_social_accounts_myspace_callback' ), // Callback
738
'seopress-settings-admin-social-accounts', // Page
739
'seopress_setting_section_social_accounts' // Section
741
742
add_settings_field(
743
'seopress_social_accounts_soundcloud', // ID
744
+ __("Soundcloud URL","wp-seopress"), // Title
745
array( $this, 'seopress_social_accounts_soundcloud_callback' ), // Callback
746
'seopress-settings-admin-social-accounts', // Page
747
'seopress_setting_section_social_accounts' // Section
749
750
add_settings_field(
751
'seopress_social_accounts_tumblr', // ID
752
+ __("Tumblr URL","wp-seopress"), // Title
753
array( $this, 'seopress_social_accounts_tumblr_callback' ), // Callback
754
'seopress-settings-admin-social-accounts', // Page
755
'seopress_setting_section_social_accounts' // Section
759
add_settings_section(
760
'seopress_setting_section_social_facebook', // ID
761
'',
762
+ //__("Facebook","wp-seopress"), // Title
763
array( $this, 'print_section_info_social_facebook' ), // Callback
764
'seopress-settings-admin-social-facebook' // Page
765
);
766
767
add_settings_field(
768
'seopress_social_facebook_og', // ID
769
+ __("Enable Open Graph Data","wp-seopress"), // Title
770
array( $this, 'seopress_social_facebook_og_callback' ), // Callback
771
'seopress-settings-admin-social-facebook', // Page
772
'seopress_setting_section_social_facebook' // Section
774
775
add_settings_field(
776
'seopress_social_facebook_img', // ID
777
+ __("Select a default image","wp-seopress"), // Title
778
array( $this, 'seopress_social_facebook_img_callback' ), // Callback
779
'seopress-settings-admin-social-facebook', // Page
780
'seopress_setting_section_social_facebook' // Section
782
783
add_settings_field(
784
'seopress_social_facebook_admin_id', // ID
785
+ __("Facebook Admin ID","wp-seopress"), // Title
786
array( $this, 'seopress_social_facebook_admin_id_callback' ), // Callback
787
'seopress-settings-admin-social-facebook', // Page
788
'seopress_setting_section_social_facebook' // Section
790
791
add_settings_field(
792
'seopress_social_facebook_app_id', // ID
793
+ __("Facebook App ID","wp-seopress"), // Title
794
array( $this, 'seopress_social_facebook_app_id_callback' ), // Callback
795
'seopress-settings-admin-social-facebook', // Page
796
'seopress_setting_section_social_facebook' // Section
800
add_settings_section(
801
'seopress_setting_section_social_twitter', // ID
802
'',
803
+ //__("Twitter","wp-seopress"), // Title
804
array( $this, 'print_section_info_social_twitter' ), // Callback
805
'seopress-settings-admin-social-twitter' // Page
806
);
807
808
add_settings_field(
809
'seopress_social_twitter_card', // ID
810
+ __("Enable Twitter Card","wp-seopress"), // Title
811
array( $this, 'seopress_social_twitter_card_callback' ), // Callback
812
'seopress-settings-admin-social-twitter', // Page
813
'seopress_setting_section_social_twitter' // Section
815
816
add_settings_field(
817
'seopress_social_twitter_card_img', // ID
818
+ __("Default Twitter Image","wp-seopress"), // Title
819
array( $this, 'seopress_social_twitter_card_img_callback' ), // Callback
820
'seopress-settings-admin-social-twitter', // Page
821
'seopress_setting_section_social_twitter' // Section
823
824
add_settings_field(
825
'seopress_social_twitter_card_img_size', // ID
826
+ __("Image size for Twitter Summary card","wp-seopress"), // Title
827
array( $this, 'seopress_social_twitter_card_img_size_callback' ), // Callback
828
'seopress-settings-admin-social-twitter', // Page
829
'seopress_setting_section_social_twitter' // Section
837
*/
838
public function sanitize( $input )
839
{
840
841
+ $seopress_sanitize_fields = array('seopress_titles_home_site_title', 'seopress_titles_home_site_desc', 'seopress_titles_archives_author_title', 'seopress_titles_archives_author_desc', 'seopress_titles_archives_date_title', 'seopress_titles_archives_date_desc', 'seopress_titles_archives_search_title', 'seopress_titles_archives_search_desc', 'seopress_titles_archives_404_title', 'seopress_titles_archives_404_desc', 'seopress_titles_archives_paged_title', 'seopress_titles_archives_paged_desc', 'seopress_social_knowledge_name', 'seopress_social_knowledge_img', 'seopress_social_accounts_facebook', 'seopress_social_accounts_twitter', 'seopress_social_accounts_google', 'seopress_social_accounts_pinterest', 'seopress_social_accounts_instagram', 'seopress_social_accounts_youtube', 'seopress_social_accounts_linkedin', 'seopress_social_accounts_myspace', 'seopress_social_accounts_soundcloud', 'seopress_social_accounts_tumblr', 'seopress_social_facebook_admin_id', 'seopress_social_facebook_app_id');
842
+
843
+ foreach ($seopress_sanitize_fields as $value) {
844
+ if( !empty( $input[$value] ) )
845
+ $input[$value] = sanitize_text_field( $input[$value] );
846
+ }
847
+
848
return $input;
849
}
850
854
855
public function print_section_info_titles()
856
{
857
+ print __('<p>Customize your titles & metas for homepage</p>', 'wp-seopress');
858
}
859
860
public function print_section_info_single()
861
{
862
+ print __('<p>Customize your titles & metas for Single Custom Post Types</p>', 'wp-seopress');
863
}
864
865
public function print_section_info_advanced()
866
{
867
+ print __('<p>Customize your metas for all pages</p>', 'wp-seopress');
868
}
869
870
public function print_section_info_tax()
871
{
872
+ print __('<p>Customize your metas for all taxonomies archives</p>', 'wp-seopress');
873
}
874
875
public function print_section_info_archives()
876
{
877
+ print __('<p>Customize your metas for all archives</p>', 'wp-seopress');
878
}
879
880
public function print_section_info_xml_sitemap_general()
881
{
882
+ print __('<p>Enable your Sitemap</p>', 'wp-seopress');
883
+ echo __('To view your sitemap, enable permalinks (not default one), and save settings to flush them.', 'wp-seopress');
884
echo '<br>';
885
echo '<br>';
886
+ echo '<a href="'.home_url().'/sitemaps/" target="_blank" class="button">'.__('View your sitemap','wp-seopress').'</a>';
887
}
888
889
public function print_section_info_xml_sitemap_post_types()
890
{
891
+ print __('<p>Include / Exclude Post Types</p>', 'wp-seopress');
892
}
893
894
public function print_section_info_xml_sitemap_taxonomies()
895
{
896
+ print __('<p>Include / Exclude Taxonomies</p>', 'wp-seopress');
897
}
898
899
public function print_section_info_social_knowledge()
900
{
901
+ print __('<p>Configure Google Knowledge Graph</p>', 'wp-seopress');
902
}
903
904
public function print_section_info_social_accounts()
905
{
906
+ print __('<p>Link your site with your social accounts</p>', 'wp-seopress');
907
}
908
909
public function print_section_info_social_facebook()
910
{
911
+ print __('<p>Manage Open Graph datas</p>', 'wp-seopress');
912
}
913
914
public function print_section_info_social_twitter()
915
{
916
+ print __('<p>Manage your Twitter card</p>', 'wp-seopress');
917
}
918
919
/**
924
public function seopress_titles_home_site_title_callback()
925
{
926
printf(
927
+ '<input type="text" name="seopress_titles_option_name[seopress_titles_home_site_title]" placeholder="'.__('My awesome website','wp-seopress').'" value="%s"/>',
928
esc_html( $this->options['seopress_titles_home_site_title'])
929
930
);
934
public function seopress_titles_home_site_desc_callback()
935
{
936
printf(
937
+ '<textarea name="seopress_titles_option_name[seopress_titles_home_site_desc]" placeholder="'.__('This is cool website about Wookiees','wp-seopress').'">%s</textarea>',
938
esc_html( $this->options['seopress_titles_home_site_desc'])
939
940
);
951
//Single Title CPT
952
echo '<div class="seopress_wrap_single_cpt">';
953
954
+ _e('Title template','wp-seopress');
955
echo "<br/>";
956
957
printf(
964
//Single Meta Description CPT
965
echo '<div class="seopress_wrap_single_cpt">';
966
967
+ _e('Meta description template','wp-seopress');
968
echo "<br/>";
969
970
printf(
985
if ('1' == $check) echo 'checked="yes"';
986
echo ' value="1"/>';
987
988
+ echo '<label for="seopress_titles_single_cpt_noindex['.$seopress_cpt_value.']">'. __( 'noindex', 'wp-seopress' ) .'</label>';
989
990
if (isset($this->options['seopress_titles_single_titles'][$seopress_cpt_value]['noindex'])) {
991
esc_attr( $this->options['seopress_titles_single_titles'][$seopress_cpt_value]['noindex']);
1004
if ('1' == $check) echo 'checked="yes"';
1005
echo ' value="1"/>';
1006
1007
+ echo '<label for="seopress_titles_single_cpt_nofollow['.$seopress_cpt_value.']">'. __( 'nofollow', 'wp-seopress' ) .'</label>';
1008
1009
if (isset($this->options['seopress_titles_single_titles'][$seopress_cpt_value]['nofollow'])) {
1010
esc_attr( $this->options['seopress_titles_single_titles'][$seopress_cpt_value]['nofollow']);
1024
//Tax Title
1025
echo '<div class="seopress_wrap_tax">';
1026
1027
+ _e('Title template','wp-seopress');
1028
echo "<br/>";
1029
1030
printf(
1037
//Tax Meta Description
1038
echo '<div class="seopress_wrap_tax">';
1039
1040
+ _e('Meta description template','wp-seopress');
1041
echo "<br/>";
1042
1043
printf(
1058
if ('1' == $check) echo 'checked="yes"';
1059
echo ' value="1"/>';
1060
1061
+ echo '<label for="seopress_titles_tax_noindex['.$seopress_tax_value.']">'. __( 'noindex', 'wp-seopress' ) .'</label>';
1062
1063
if (isset($this->options['seopress_titles_tax_titles'][$seopress_tax_value]['noindex'])) {
1064
esc_attr( $this->options['seopress_titles_tax_titles'][$seopress_tax_value]['noindex']);
1077
if ('1' == $check) echo 'checked="yes"';
1078
echo ' value="1"/>';
1079
1080
+ echo '<label for="seopress_titles_tax_nofollow['.$seopress_tax_value.']">'. __( 'nofollow', 'wp-seopress' ) .'</label>';
1081
1082
if (isset($this->options['seopress_titles_tax_titles'][$seopress_tax_value]['nofollow'])) {
1083
esc_attr( $this->options['seopress_titles_tax_titles'][$seopress_tax_value]['nofollow']);
1090
//Archives
1091
public function seopress_titles_archives_author_title_callback()
1092
{
1093
+ echo '<h2>'.__('Author archives','wp-seopress').'</h2>';
1094
1095
+ _e('Title template','wp-seopress');
1096
echo "<br/>";
1097
1098
printf(
1105
1106
public function seopress_titles_archives_author_desc_callback()
1107
{
1108
+ _e('Meta description template','wp-seopress');
1109
echo "<br/>";
1110
1111
printf(
1118
1119
public function seopress_titles_archives_date_title_callback()
1120
{
1121
+ echo '<h2>'.__('Date archives','wp-seopress').'</h2>';
1122
1123
+ _e('Title template','wp-seopress');
1124
echo "<br/>";
1125
1126
printf(
1133
1134
public function seopress_titles_archives_date_desc_callback()
1135
{
1136
+ _e('Meta description template','wp-seopress');
1137
echo "<br/>";
1138
1139
printf(
1146
1147
public function seopress_titles_archives_search_title_callback()
1148
{
1149
+ echo '<h2>'.__('Search archives','wp-seopress').'</h2>';
1150
1151
+ _e('Title template','wp-seopress');
1152
echo "<br/>";
1153
1154
printf(
1161
1162
public function seopress_titles_archives_search_desc_callback()
1163
{
1164
+ _e('Meta description template','wp-seopress');
1165
echo "<br/>";
1166
1167
printf(
1174
1175
public function seopress_titles_archives_404_title_callback()
1176
{
1177
+ echo '<h2>'.__('404 archives','wp-seopress').'</h2>';
1178
1179
+ _e('Title template','wp-seopress');
1180
echo "<br/>";
1181
1182
printf(
1189
1190
public function seopress_titles_archives_404_desc_callback()
1191
{
1192
+ _e('Meta description template','wp-seopress');
1193
echo "<br/>";
1194
1195
printf(
1202
1203
public function seopress_titles_archives_paged_title_callback()
1204
{
1205
+ echo '<h2>'.__('Paged archives','wp-seopress').'</h2>';
1206
1207
+ _e('Title template','wp-seopress');
1208
echo "<br/>";
1209
1210
printf(
1217
1218
public function seopress_titles_archives_paged_desc_callback()
1219
{
1220
+ _e('Meta description template','wp-seopress');
1221
echo "<br/>";
1222
1223
printf(
1239
if ('1' == $check) echo 'checked="yes"';
1240
echo ' value="1"/>';
1241
1242
+ echo '<label for="seopress_titles_noindex">'. __( 'noindex', 'wp-seopress' ) .'</label>';
1243
1244
if (isset($this->options['seopress_titles_noindex'])) {
1245
esc_attr( $this->options['seopress_titles_noindex']);
1256
if ('1' == $check) echo 'checked="yes"';
1257
echo ' value="1"/>';
1258
1259
+ echo '<label for="seopress_titles_nofollow">'. __( 'nofollow', 'wp-seopress' ) .'</label>';
1260
1261
if (isset($this->options['seopress_titles_nofollow'])) {
1262
esc_attr( $this->options['seopress_titles_nofollow']);
1273
if ('1' == $check) echo 'checked="yes"';
1274
echo ' value="1"/>';
1275
1276
+ echo '<label for="seopress_titles_noodp">'. __( 'noodp', 'wp-seopress' ) .'</label>';
1277
1278
if (isset($this->options['seopress_titles_noodp'])) {
1279
esc_attr( $this->options['seopress_titles_noodp']);
1290
if ('1' == $check) echo 'checked="yes"';
1291
echo ' value="1"/>';
1292
1293
+ echo '<label for="seopress_titles_noimageindex">'. __( 'noimageindex', 'wp-seopress' ) .'</label>';
1294
1295
if (isset($this->options['seopress_titles_noimageindex'])) {
1296
esc_attr( $this->options['seopress_titles_noimageindex']);
1307
if ('1' == $check) echo 'checked="yes"';
1308
echo ' value="1"/>';
1309
1310
+ echo '<label for="seopress_titles_noarchive">'. __( 'noarchive', 'wp-seopress' ) .'</label>';
1311
1312
if (isset($this->options['seopress_titles_noarchive'])) {
1313
esc_attr( $this->options['seopress_titles_noarchive']);
1324
if ('1' == $check) echo 'checked="yes"';
1325
echo ' value="1"/>';
1326
1327
+ echo '<label for="seopress_titles_nosnippet">'. __( 'nosnippet', 'wp-seopress' ) .'</label>';
1328
1329
if (isset($this->options['seopress_titles_nosnippet'])) {
1330
esc_attr( $this->options['seopress_titles_nosnippet']);
1341
if ('1' == $check) echo 'checked="yes"';
1342
echo ' value="1"/>';
1343
1344
+ echo '<label for="seopress_xml_sitemap_general_enable">'. __( 'Enable XML Sitemap', 'wp-seopress' ) .'</label>';
1345
1346
if (isset($this->options['seopress_xml_sitemap_general_enable'])) {
1347
esc_attr( $this->options['seopress_xml_sitemap_general_enable']);
1380
if ('1' == $check) echo 'checked="yes"';
1381
echo ' value="1"/>';
1382
1383
+ echo '<label for="seopress_xml_sitemap_post_types_list_include['.$seopress_cpt_value.']">'. __( 'Include', 'wp-seopress' ) .'</label>';
1384
1385
if (isset($this->options['seopress_xml_sitemap_post_types_list'][$seopress_cpt_value]['include'])) {
1386
esc_attr( $this->options['seopress_xml_sitemap_post_types_list'][$seopress_cpt_value]['include']);
1420
if ('1' == $check) echo 'checked="yes"';
1421
echo ' value="1"/>';
1422
1423
+ echo '<label for="seopress_xml_sitemap_taxonomies_list_include['.$seopress_tax_value.']">'. __( 'Include', 'wp-seopress' ) .'</label>';
1424
1425
if (isset($this->options['seopress_xml_sitemap_taxonomies_list'][$seopress_tax_value]['include'])) {
1426
esc_attr( $this->options['seopress_xml_sitemap_taxonomies_list'][$seopress_tax_value]['include']);
1439
echo '<select id="seopress_social_knowledge_type" name="seopress_social_option_name[seopress_social_knowledge_type]">';
1440
echo ' <option ';
1441
if ('person' == $selected) echo 'selected="selected"';
1442
+ echo ' value="person">'. __("Person","wp-seopress") .'</option>';
1443
echo '<option ';
1444
if ('organization' == $selected) echo 'selected="selected"';
1445
+ echo ' value="organization">'. __("Organization","wp-seopress") .'</option>';
1446
echo '</select>';
1447
1448
if (isset($this->options['seopress_social_knowledge_type'])) {
1453
public function seopress_social_knowledge_name_callback()
1454
{
1455
printf(
1456
+ '<input type="text" name="seopress_social_option_name[seopress_social_knowledge_name]" placeholder="'.__('eg: Apple','wp-seopress').'" value="%s"/>',
1457
esc_html( $this->options['seopress_social_knowledge_name'])
1458
);
1459
1464
1465
$check = isset($options['seopress_social_knowledge_img']);
1466
1467
+ echo '<input id="seopress_social_knowledge_img_meta" type="text" value="'.$options['seopress_social_knowledge_img'].'" name="seopress_social_option_name[seopress_social_knowledge_img]" placeholder="'.__('Select your logo','wp-seopress').'" />
1468
1469
+ <input id="seopress_social_knowledge_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />';
1470
1471
if (isset($this->options['seopress_social_knowledge_img'])) {
1472
esc_attr( $this->options['seopress_social_knowledge_img']);
1476
public function seopress_social_accounts_facebook_callback()
1477
{
1478
printf(
1479
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_facebook]" placeholder="'.__('eg: https://www.facebook.com/your-page','wp-seopress').'" value="%s"/>',
1480
esc_html( $this->options['seopress_social_accounts_facebook'])
1481
1482
);
1486
public function seopress_social_accounts_twitter_callback()
1487
{
1488
printf(
1489
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_twitter]" placeholder="'.__('eg: @wpcloudy','wp-seopress').'" value="%s"/>',
1490
esc_html( $this->options['seopress_social_accounts_twitter'])
1491
1492
);
1496
public function seopress_social_accounts_google_callback()
1497
{
1498
printf(
1499
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_google]" placeholder="'.__('eg: https://plus.google.com/+BenjaminDenis','wp-seopress').'" value="%s"/>',
1500
esc_html( $this->options['seopress_social_accounts_google'])
1501
1502
);
1506
public function seopress_social_accounts_pinterest_callback()
1507
{
1508
printf(
1509
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_pinterest]" placeholder="'.__('eg: https://pinterest.com/wpbuy/','wp-seopress').'" value="%s"/>',
1510
esc_html( $this->options['seopress_social_accounts_pinterest'])
1511
1512
);
1516
public function seopress_social_accounts_instagram_callback()
1517
{
1518
printf(
1519
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_instagram]" placeholder="'.__('eg: https://www.instagram.com/your-name/','wp-seopress').'" value="%s"/>',
1520
esc_html( $this->options['seopress_social_accounts_instagram'])
1521
1522
);
1526
public function seopress_social_accounts_youtube_callback()
1527
{
1528
printf(
1529
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_youtube]" placeholder="'.__('eg: https://www.youtube.com/channel/UCpQzarWu55UzCIH7-OW6pwA','wp-seopress').'" value="%s"/>',
1530
esc_html( $this->options['seopress_social_accounts_youtube'])
1531
1532
);
1536
public function seopress_social_accounts_linkedin_callback()
1537
{
1538
printf(
1539
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_linkedin]" placeholder="'.__('eg: https://www.linkedin.com/in/benjamin-denis-70672b3b','wp-seopress').'" value="%s"/>',
1540
esc_html( $this->options['seopress_social_accounts_linkedin'])
1541
1542
);
1546
public function seopress_social_accounts_myspace_callback()
1547
{
1548
printf(
1549
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_myspace]" placeholder="'.__('eg: https://myspace.com/your-page','wp-seopress').'" value="%s"/>',
1550
esc_html( $this->options['seopress_social_accounts_myspace'])
1551
1552
);
1556
public function seopress_social_accounts_soundcloud_callback()
1557
{
1558
printf(
1559
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_soundcloud]" placeholder="'.__('eg: https://soundcloud.com/michaelmccannmusic','wp-seopress').'" value="%s"/>',
1560
esc_html( $this->options['seopress_social_accounts_soundcloud'])
1561
1562
);
1566
public function seopress_social_accounts_tumblr_callback()
1567
{
1568
printf(
1569
+ '<input type="text" name="seopress_social_option_name[seopress_social_accounts_tumblr]" placeholder="'.__('eg: https://your-site.tumblr.com','wp-seopress').'" value="%s"/>',
1570
esc_html( $this->options['seopress_social_accounts_tumblr'])
1571
1572
);
1583
if ('1' == $check) echo 'checked="yes"';
1584
echo ' value="1"/>';
1585
1586
+ echo '<label for="seopress_social_facebook_og">'. __( 'Enable OG data', 'wp-seopress' ) .'</label>';
1587
1588
if (isset($this->options['seopress_social_facebook_og'])) {
1589
esc_attr( $this->options['seopress_social_facebook_og']);
1596
1597
$check = isset($options['seopress_social_facebook_img']);
1598
1599
+ echo '<input id="seopress_social_fb_img_meta" type="text" value="'.$options['seopress_social_facebook_img'].'" name="seopress_social_option_name[seopress_social_facebook_img]" placeholder="'.__('Select your default thumbnail','wp-seopress').'" />
1600
1601
+ <input id="seopress_social_fb_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />';
1602
1603
if (isset($this->options['seopress_social_facebook_img'])) {
1604
esc_attr( $this->options['seopress_social_facebook_img']);
1635
if ('1' == $check) echo 'checked="yes"';
1636
echo ' value="1"/>';
1637
1638
+ echo '<label for="seopress_social_twitter_card">'. __( 'Enable Twitter card', 'wp-seopress' ) .'</label>';
1639
1640
if (isset($this->options['seopress_social_twitter_card'])) {
1641
esc_attr( $this->options['seopress_social_twitter_card']);
1648
1649
$check = isset($options['seopress_social_twitter_card_img']);
1650
1651
+ echo '<input id="seopress_social_twitter_img_meta" type="text" value="'.$options['seopress_social_twitter_card_img'].'" name="seopress_social_option_name[seopress_social_twitter_card_img]" placeholder="'.__('Select your default thumbnail','wp-seopress').'" />
1652
1653
+ <input id="seopress_social_twitter_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />';
1654
1655
if (isset($this->options['seopress_social_twitter_card_img'])) {
1656
esc_attr( $this->options['seopress_social_twitter_card_img']);
1666
echo '<select id="seopress_social_twitter_card_img_size" name="seopress_social_option_name[seopress_social_twitter_card_img_size]">';
1667
echo ' <option ';
1668
if ('default' == $selected) echo 'selected="selected"';
1669
+ echo ' value="default">'. __("Default","wp-seopress") .'</option>';
1670
echo '<option ';
1671
if ('large' == $selected) echo 'selected="selected"';
1672
+ echo ' value="large">'. __("Large","wp-seopress") .'</option>';
1673
echo '</select>';
1674
1675
if (isset($this->options['seopress_social_twitter_card_img_size'])) {
inc/functions/sitemap/template-xml-sitemaps-single-term.php CHANGED
@@ -1,8 +1,12 @@
1
<?php
2
defined( 'ABSPATH' ) or die( 'Please don&rsquo;t call the plugin directly. Thanks :)' );
3
4
Header('Content-type: text/xml');
5
6
function seopress_xml_sitemap_single_term() {
7
$path = basename(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
8
$seopress_sitemaps = '<?xml version="1.0" encoding="UTF-8"?>';
1
<?php
2
defined( 'ABSPATH' ) or die( 'Please don&rsquo;t call the plugin directly. Thanks :)' );
3
4
+ //XML
5
Header('Content-type: text/xml');
6
7
+ //Robots
8
+ Header("X-Robots-Tag: noindex", true);
9
+
10
function seopress_xml_sitemap_single_term() {
11
$path = basename(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
12
$seopress_sitemaps = '<?xml version="1.0" encoding="UTF-8"?>';
inc/functions/sitemap/template-xml-sitemaps-single.php CHANGED
@@ -1,8 +1,12 @@
1
<?php
2
defined( 'ABSPATH' ) or die( 'Please don&rsquo;t call the plugin directly. Thanks :)' );
3
4
Header('Content-type: text/xml');
5
6
function seopress_xml_sitemap_single() {
7
$path = basename(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
8
$seopress_sitemaps = '<?xml version="1.0" encoding="UTF-8"?>';
1
<?php
2
defined( 'ABSPATH' ) or die( 'Please don&rsquo;t call the plugin directly. Thanks :)' );
3
4
+ //XML
5
Header('Content-type: text/xml');
6
7
+ //Robots
8
+ Header("X-Robots-Tag: noindex", true);
9
+
10
function seopress_xml_sitemap_single() {
11
$path = basename(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
12
$seopress_sitemaps = '<?xml version="1.0" encoding="UTF-8"?>';
languages/seopress-fr_FR.mo DELETED
Binary file
languages/wp-seopress-fr_FR.mo ADDED
Binary file
languages/{seopress-fr_FR.po → wp-seopress-fr_FR.po} RENAMED
@@ -2,15 +2,15 @@ msgid ""
2
msgstr ""
3
"Project-Id-Version: SEOPress\n"
4
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-cloudy\n"
5
- "POT-Creation-Date: 2016-08-23 15:23+0200\n"
6
- "PO-Revision-Date: 2016-08-23 15:24+0200\n"
7
"Last-Translator: \n"
8
"Language-Team: Benjamin DENIS <contact@seopress.org>\n"
9
"Language: fr_FR\n"
10
"MIME-Version: 1.0\n"
11
"Content-Type: text/plain; charset=UTF-8\n"
12
"Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 1.8.8\n"
14
"X-Poedit-KeywordsList: __;_e;_x;esc_attr__\n"
15
"X-Poedit-Basepath: ..\n"
16
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
@@ -50,100 +50,104 @@ msgstr "Meta description"
50
msgid "Enter your meta description"
51
msgstr "Entrez votre méta description"
52
53
- #: inc/admin/admin-metaboxes.php:68
54
msgid "Google Snippet Preview"
55
msgstr "Google Snippet Preview"
56
57
- #: inc/admin/admin-metaboxes.php:69
58
msgid "This is what your page will look like in Google search results"
59
msgstr ""
60
"Voilà à quoi ressemblera votre page dans les résultats de recherche Google"
61
62
- #: inc/admin/admin-metaboxes.php:80 inc/admin/admin.php:541
63
- #: inc/admin/admin.php:1058 inc/admin/admin.php:1131 inc/admin/admin.php:1312
64
msgid "noindex"
65
msgstr "noindex"
66
67
- #: inc/admin/admin-metaboxes.php:86 inc/admin/admin.php:549
68
- #: inc/admin/admin.php:1077 inc/admin/admin.php:1150 inc/admin/admin.php:1329
69
msgid "nofollow"
70
msgstr "nofollow"
71
72
- #: inc/admin/admin-metaboxes.php:92 inc/admin/admin.php:557
73
- #: inc/admin/admin.php:1346
74
msgid "noodp"
75
msgstr "noodp"
76
77
- #: inc/admin/admin-metaboxes.php:98 inc/admin/admin.php:565
78
- #: inc/admin/admin.php:1363
79
msgid "noimageindex"
80
msgstr "noimageindex"
81
82
- #: inc/admin/admin-metaboxes.php:104 inc/admin/admin.php:573
83
- #: inc/admin/admin.php:1380
84
msgid "noarchive"
85
msgstr "noarchive"
86
87
- #: inc/admin/admin-metaboxes.php:110 inc/admin/admin.php:581
88
- #: inc/admin/admin.php:1397
89
msgid "nosnippet"
90
msgstr "nosnippet"
91
92
- #: inc/admin/admin-metaboxes.php:114
93
msgid "Canonical URL"
94
msgstr "URL Canonique"
95
96
- #: inc/admin/admin-metaboxes.php:115
97
msgid "Enter your Canonical URL"
98
msgstr "Entrez votre URL canonique"
99
100
- #: inc/admin/admin-metaboxes.php:121
101
msgid "Facebook Title"
102
msgstr "Titre Facebook"
103
104
- #: inc/admin/admin-metaboxes.php:122
105
msgid "Enter your Facebook title"
106
msgstr "Entrez votre titre Facebook"
107
108
- #: inc/admin/admin-metaboxes.php:125
109
msgid "Facebook description"
110
msgstr "Description Facebook"
111
112
- #: inc/admin/admin-metaboxes.php:126
113
msgid "Enter your Facebook description"
114
msgstr "Entrez votre description Facebook"
115
116
- #: inc/admin/admin-metaboxes.php:129
117
msgid "Facebook Thumbnail"
118
msgstr "Miniature Facebook"
119
120
- #: inc/admin/admin-metaboxes.php:130 inc/admin/admin-metaboxes.php:145
121
- #: inc/admin/admin.php:1669 inc/admin/admin.php:1721
122
msgid "Select your default thumbnail"
123
msgstr "Sélectionnez votre miniature par défaut"
124
125
- #: inc/admin/admin-metaboxes.php:131 inc/admin/admin-metaboxes.php:146
126
- #: inc/admin/admin.php:1539 inc/admin/admin.php:1671 inc/admin/admin.php:1723
127
msgid "Upload an Image"
128
msgstr "Uploadez une image"
129
130
- #: inc/admin/admin-metaboxes.php:136
131
msgid "Twitter Title"
132
msgstr "Titre Twitter"
133
134
- #: inc/admin/admin-metaboxes.php:137
135
msgid "Enter your Twitter title"
136
msgstr "Entrez votre titre Twitter"
137
138
- #: inc/admin/admin-metaboxes.php:140
139
msgid "Twitter description"
140
msgstr "Description Twitter"
141
142
- #: inc/admin/admin-metaboxes.php:141
143
msgid "Enter your Twitter description"
144
msgstr "Entrez votre description Twitter"
145
146
- #: inc/admin/admin-metaboxes.php:144
147
msgid "Twitter Thumbnail"
148
msgstr "Miniature Twitter"
149
@@ -326,7 +330,7 @@ msgstr "Importer / Exporter les paramètres d'un site à un autre"
326
msgid "Site title"
327
msgstr "Titre du site"
328
329
- #: inc/admin/admin.php:598 inc/admin/admin.php:1414
330
msgid "Enable XML Sitemap"
331
msgstr "Activez le Sitemap XML"
332
@@ -418,32 +422,32 @@ msgstr "Image Twitter par défaut"
418
msgid "Image size for Twitter Summary card"
419
msgstr "Taille d'image pour Twitter Summary Card"
420
421
- #: inc/admin/admin.php:927
422
msgid "<p>Customize your titles & metas for homepage</p>"
423
msgstr "<p>Personnalisez vos titres et métas pour l'accueil</p>"
424
425
- #: inc/admin/admin.php:932
426
msgid "<p>Customize your titles & metas for Single Custom Post Types</p>"
427
msgstr ""
428
"<p>Personnalisez vos titres et métas pour les singles des Types d'article</p>"
429
430
- #: inc/admin/admin.php:937
431
msgid "<p>Customize your metas for all pages</p>"
432
msgstr "<p>Personnalisez vos métas pour toutes les pages</p>"
433
434
- #: inc/admin/admin.php:942
435
msgid "<p>Customize your metas for all taxonomies archives</p>"
436
msgstr "<p>Personnalisez vos métas pour toutes les archives de taxonomies</p>"
437
438
- #: inc/admin/admin.php:947
439
msgid "<p>Customize your metas for all archives</p>"
440
msgstr "<p>Personnalisez vos métas pour les archives</p>"
441
442
- #: inc/admin/admin.php:952
443
msgid "<p>Enable your Sitemap</p>"
444
msgstr "<p>Activez votre Sitemap</p>"
445
446
- #: inc/admin/admin.php:953
447
msgid ""
448
"To view your sitemap, enable permalinks (not default one), and save settings "
449
"to flush them."
@@ -451,95 +455,147 @@ msgstr ""
451
"Pour voir votre sitemap, activez les permaliens (pas ceux par défaut), et "
452
"sauvegardez les paramètres pour les mettre à jour."
453
454
- #: inc/admin/admin.php:956
455
msgid "View your sitemap"
456
msgstr "Voir votre sitemap"
457
458
- #: inc/admin/admin.php:961
459
msgid "<p>Include / Exclude Post Types</p>"
460
msgstr "<p>Inclure / Exclure les Types d'article</p>"
461
462
- #: inc/admin/admin.php:966
463
msgid "<p>Include / Exclude Taxonomies</p>"
464
msgstr "<p>Inclure / Exclure les Taxonomies</p>"
465
466
- #: inc/admin/admin.php:971
467
msgid "<p>Configure Google Knowledge Graph</p>"
468
msgstr "<p>Configurer Google Knowledge Graph</p>"
469
470
- #: inc/admin/admin.php:976
471
msgid "<p>Link your site with your social accounts</p>"
472
msgstr "<p>Lier votre site à vos comptes sociaux</p>"
473
474
- #: inc/admin/admin.php:981
475
msgid "<p>Manage Open Graph datas</p>"
476
msgstr "<p>Gérer l'Open Graph datas</p>"
477
478
- #: inc/admin/admin.php:986
479
msgid "<p>Manage your Twitter card</p>"
480
msgstr "<p>Gérer votre Twitter card</p>"
481
482
- #: inc/admin/admin.php:1024 inc/admin/admin.php:1097 inc/admin/admin.php:1165
483
- #: inc/admin/admin.php:1193 inc/admin/admin.php:1221 inc/admin/admin.php:1249
484
- #: inc/admin/admin.php:1277
485
msgid "Title template"
486
msgstr "Template de Titre"
487
488
- #: inc/admin/admin.php:1037 inc/admin/admin.php:1110 inc/admin/admin.php:1178
489
- #: inc/admin/admin.php:1206 inc/admin/admin.php:1234 inc/admin/admin.php:1262
490
- #: inc/admin/admin.php:1290
491
msgid "Meta description template"
492
msgstr "Template de Méta Description"
493
494
- #: inc/admin/admin.php:1163
495
msgid "Author archives"
496
msgstr "Archives de l'auteur"
497
498
- #: inc/admin/admin.php:1191
499
msgid "Date archives"
500
msgstr "Archives par date"
501
502
- #: inc/admin/admin.php:1219
503
msgid "Search archives"
504
msgstr "Archives de recherche"
505
506
- #: inc/admin/admin.php:1247
507
msgid "404 archives"
508
msgstr "Page 404"
509
510
- #: inc/admin/admin.php:1275
511
msgid "Paged archives"
512
msgstr "Archives paginées"
513
514
- #: inc/admin/admin.php:1453 inc/admin/admin.php:1493
515
msgid "Include"
516
msgstr "Inclure"
517
518
- #: inc/admin/admin.php:1512
519
msgid "Person"
520
msgstr "Personne"
521
522
- #: inc/admin/admin.php:1515
523
msgid "Organization"
524
msgstr "Organisation"
525
526
- #: inc/admin/admin.php:1537
527
msgid "Select your logo"
528
msgstr "Sélectionnez votre logo"
529
530
- #: inc/admin/admin.php:1656
531
msgid "Enable OG data"
532
msgstr "Activer les données OG"
533
534
- #: inc/admin/admin.php:1708
535
msgid "Enable Twitter card"
536
msgstr "Activer Twitter Card"
537
538
- #: inc/admin/admin.php:1739
539
msgid "Default"
540
msgstr "Défaut"
541
542
- #: inc/admin/admin.php:1742
543
msgid "Large"
544
msgstr "Grande"
545
@@ -551,7 +607,7 @@ msgstr "Veuillez uploader un fichier JSON valide"
551
msgid "Please upload a file to import"
552
msgstr "Uploader un fichier à importer SVP"
553
554
- #: seopress.php:129
555
msgid "Settings"
556
msgstr "Paramètres"
557
2
msgstr ""
3
"Project-Id-Version: SEOPress\n"
4
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-cloudy\n"
5
+ "POT-Creation-Date: 2016-08-24 20:00+0200\n"
6
+ "PO-Revision-Date: 2016-08-24 20:02+0200\n"
7
"Last-Translator: \n"
8
"Language-Team: Benjamin DENIS <contact@seopress.org>\n"
9
"Language: fr_FR\n"
10
"MIME-Version: 1.0\n"
11
"Content-Type: text/plain; charset=UTF-8\n"
12
"Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.8.2\n"
14
"X-Poedit-KeywordsList: __;_e;_x;esc_attr__\n"
15
"X-Poedit-Basepath: ..\n"
16
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
50
msgid "Enter your meta description"
51
msgstr "Entrez votre méta description"
52
53
+ #: inc/admin/admin-metaboxes.php:67
54
+ msgid "(maximum recommended limit)"
55
+ msgstr "(limite maximale recommandée)"
56
+
57
+ #: inc/admin/admin-metaboxes.php:72
58
msgid "Google Snippet Preview"
59
msgstr "Google Snippet Preview"
60
61
+ #: inc/admin/admin-metaboxes.php:73
62
msgid "This is what your page will look like in Google search results"
63
msgstr ""
64
"Voilà à quoi ressemblera votre page dans les résultats de recherche Google"
65
66
+ #: inc/admin/admin-metaboxes.php:84 inc/admin/admin.php:541
67
+ #: inc/admin/admin.php:988 inc/admin/admin.php:1061 inc/admin/admin.php:1242
68
msgid "noindex"
69
msgstr "noindex"
70
71
+ #: inc/admin/admin-metaboxes.php:90 inc/admin/admin.php:549
72
+ #: inc/admin/admin.php:1007 inc/admin/admin.php:1080 inc/admin/admin.php:1259
73
msgid "nofollow"
74
msgstr "nofollow"
75
76
+ #: inc/admin/admin-metaboxes.php:96 inc/admin/admin.php:557
77
+ #: inc/admin/admin.php:1276
78
msgid "noodp"
79
msgstr "noodp"
80
81
+ #: inc/admin/admin-metaboxes.php:102 inc/admin/admin.php:565
82
+ #: inc/admin/admin.php:1293
83
msgid "noimageindex"
84
msgstr "noimageindex"
85
86
+ #: inc/admin/admin-metaboxes.php:108 inc/admin/admin.php:573
87
+ #: inc/admin/admin.php:1310
88
msgid "noarchive"
89
msgstr "noarchive"
90
91
+ #: inc/admin/admin-metaboxes.php:114 inc/admin/admin.php:581
92
+ #: inc/admin/admin.php:1327
93
msgid "nosnippet"
94
msgstr "nosnippet"
95
96
+ #: inc/admin/admin-metaboxes.php:118
97
msgid "Canonical URL"
98
msgstr "URL Canonique"
99
100
+ #: inc/admin/admin-metaboxes.php:119
101
msgid "Enter your Canonical URL"
102
msgstr "Entrez votre URL canonique"
103
104
+ #: inc/admin/admin-metaboxes.php:125
105
msgid "Facebook Title"
106
msgstr "Titre Facebook"
107
108
+ #: inc/admin/admin-metaboxes.php:126
109
msgid "Enter your Facebook title"
110
msgstr "Entrez votre titre Facebook"
111
112
+ #: inc/admin/admin-metaboxes.php:129
113
msgid "Facebook description"
114
msgstr "Description Facebook"
115
116
+ #: inc/admin/admin-metaboxes.php:130
117
msgid "Enter your Facebook description"
118
msgstr "Entrez votre description Facebook"
119
120
+ #: inc/admin/admin-metaboxes.php:133
121
msgid "Facebook Thumbnail"
122