SEOPress - Version 0.5

Version Description

  • NEW Add 301/302 redirections in SEOPress metaboxe for custom post types
  • NEW Add Redirect attachment pages to post parent or home if none option
  • INFO Use pretty names for Custom Post Types and Custom Taxonomies in all options
Download this release

Release Info

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

Code changes from version 0.4 to 0.5

assets/css/seopress.css CHANGED
@@ -38,6 +38,7 @@
38
  #seopress_cpt #tabs-1 label,
39
  #seopress_cpt #tabs-2 label[for=seopress_robots_canonical_meta],
40
  #seopress_cpt #tabs-3 label,
 
41
  #seopress_cpt .subsection-title {
42
  border-bottom: 1px solid #DDDDDD;
43
  display: block;
@@ -49,12 +50,24 @@
49
  #seopress_cpt #tabs-1 input,
50
  #seopress_cpt #tabs-2 input[type=text],
51
  #seopress_cpt #tabs-3 textarea,
52
- #seopress_cpt #tabs-3 input[type=text] {
 
53
  width:100%;
54
  }
55
  #seopress_cpt select {
56
  width:300px;
57
  }
 
 
 
 
 
 
 
 
 
 
 
58
  #seopress_cpt .mandatory {
59
  color: #cc0000;
60
  }
38
  #seopress_cpt #tabs-1 label,
39
  #seopress_cpt #tabs-2 label[for=seopress_robots_canonical_meta],
40
  #seopress_cpt #tabs-3 label,
41
+ #seopress_cpt #tabs-4 label,
42
  #seopress_cpt .subsection-title {
43
  border-bottom: 1px solid #DDDDDD;
44
  display: block;
50
  #seopress_cpt #tabs-1 input,
51
  #seopress_cpt #tabs-2 input[type=text],
52
  #seopress_cpt #tabs-3 textarea,
53
+ #seopress_cpt #tabs-3 input[type=text],
54
+ #seopress_cpt #tabs-4 input[type=text] {
55
  width:100%;
56
  }
57
  #seopress_cpt select {
58
  width:300px;
59
  }
60
+ #seopress_cpt #tabs-4 select {
61
+ width:50px;
62
+ display: inline;
63
+ }
64
+ #seopress_cpt #tabs-4 #seopress_redirections_value_meta {
65
+ width: calc(100% - 58px);
66
+ float: right;
67
+ }
68
+ #seopress_cpt #tabs-4 #seopress_redirections_enabled {
69
+ border-bottom: none;
70
+ }
71
  #seopress_cpt .mandatory {
72
  color: #cc0000;
73
  }
assets/js/seopress-counters.js CHANGED
@@ -48,4 +48,19 @@ jQuery(document).ready(function(){
48
  jQuery(".snippet-description").css('display', 'none');
49
  };
50
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  });
48
  jQuery(".snippet-description").css('display', 'none');
49
  };
50
  });
51
+ });
52
+
53
+ //Redirections
54
+ jQuery(document).ready(function(){
55
+ jQuery("#seopress_redirections_value_meta").bind('change keyup', function(event) {
56
+ if(jQuery(this).val().length > 0){
57
+ jQuery("#seopress_redirections_value_live").attr("href", event.target.value);
58
+ jQuery("#seopress_redirections_value_live").css('display', 'inline-block');
59
+ jQuery("#seopress_redirections_value_default").css('display', 'none');
60
+ } else {
61
+ jQuery("#seopress_redirections_value_default").css('display', 'none');
62
+ jQuery("#seopress_redirections_value_live").css('display', 'none');
63
+ };
64
+ });
65
+
66
  });
assets/js/seopress-tabs5.js ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($) {
2
+ if(typeof sessionStorage!='undefined') {
3
+ var seopress_tab_session_storage = sessionStorage.getItem("tab_seopress_advanced_advanced");
4
+ if (seopress_tab_session_storage) {
5
+ jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
6
+ jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
7
+
8
+ jQuery('#'+seopress_tab_session_storage+'-tab').addClass("nav-tab-active");
9
+ jQuery('#'+seopress_tab_session_storage).addClass("active");
10
+ } else {
11
+ //Default TAB
12
+ jQuery('#tab_seopress_advanced_advanced-tab').addClass("nav-tab-active");
13
+ jQuery('#tab_seopress_advanced_advanced').addClass("active");
14
+ }
15
+ };
16
+ jQuery("#seopress-tabs").find("a.nav-tab").click(function(e){
17
+ e.preventDefault();
18
+ var hash = jQuery(this).attr('href').split('#tab=')[1];
19
+
20
+ jQuery('#seopress-tabs').find('.nav-tab.nav-tab-active').removeClass("nav-tab-active");
21
+ jQuery('#'+hash+'-tab').addClass("nav-tab-active");
22
+
23
+
24
+ sessionStorage.setItem("tab_seopress_advanced_advanced", hash);
25
+
26
+ jQuery('#seopress-tabs').find('.seopress-tab.active').removeClass("active");
27
+ jQuery('#'+hash).addClass("active");
28
+ });
29
+ });
inc/admin/admin-metaboxes.php CHANGED
@@ -8,7 +8,7 @@ defined( 'ABSPATH' ) or die( 'Please don’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','wp-seopress'), 'seopress_cpt', seopress_get_post_types(), 'advanced');
12
  }
13
 
14
  function seopress_cpt($post){
@@ -27,6 +27,9 @@ function seopress_cpt($post){
27
  $seopress_social_twitter_title = get_post_meta($post->ID,'_seopress_social_twitter_title',true);
28
  $seopress_social_twitter_desc = get_post_meta($post->ID,'_seopress_social_twitter_desc',true);
29
  $seopress_social_twitter_img = get_post_meta($post->ID,'_seopress_social_twitter_img',true);
 
 
 
30
 
31
  function seopress_titles_title($seopress_titles_title) {
32
  if ($seopress_titles_title !='') {
@@ -65,11 +68,18 @@ function seopress_cpt($post){
65
  }
66
  }
67
 
 
 
 
 
 
 
68
  echo '<div id="seopress-tabs">
69
  <ul>
70
  <li><a href="#tabs-1"><span class="dashicons dashicons-editor-table"></span>'. __( 'Titles settings', 'wp-seopress' ) .'</a></li>
71
  <li><a href="#tabs-2"><span class="dashicons dashicons-admin-generic"></span>'. __( 'Advanced', 'wp-seopress' ) .'</a></li>
72
  <li><a href="#tabs-3"><span class="dashicons dashicons-share"></span>'. __( 'Social', 'wp-seopress' ) .'</a></li>
 
73
  </ul>
74
 
75
  <div id="tabs-1">
@@ -94,7 +104,7 @@ function seopress_cpt($post){
94
  <div class="box-right">
95
  <div class="google-snippet-preview">
96
  <h3>'.__('Google Snippet Preview','wp-seopress').'</h3>
97
- <p>'. __('This is what your page will look like in Google search results','wp-seopress').'</p>
98
  <div class="snippet-title">'.seopress_titles_title($seopress_titles_title).'</div>
99
  <div class="snippet-title-custom" style="display:none"></div>
100
  <div class="snippet-title-default" style="display:none">'.get_the_title().' - '.get_bloginfo('name').'</div>
@@ -179,6 +189,28 @@ function seopress_cpt($post){
179
  <input id="seopress_social_twitter_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />
180
  </p>
181
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  </div>
183
  ';
184
  }
@@ -242,6 +274,17 @@ function seopress_save_metabox($post_id){
242
  }
243
  if(isset($_POST['seopress_social_twitter_img'])){
244
  update_post_meta($post_id, '_seopress_social_twitter_img', esc_html($_POST['seopress_social_twitter_img']));
 
 
 
 
 
 
 
 
 
 
 
245
  }
246
  }
247
  }
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()->name, 'advanced');
12
  }
13
 
14
  function seopress_cpt($post){
27
  $seopress_social_twitter_title = get_post_meta($post->ID,'_seopress_social_twitter_title',true);
28
  $seopress_social_twitter_desc = get_post_meta($post->ID,'_seopress_social_twitter_desc',true);
29
  $seopress_social_twitter_img = get_post_meta($post->ID,'_seopress_social_twitter_img',true);
30
+ $seopress_redirections_enabled = get_post_meta($post->ID,'_seopress_redirections_enabled',true);
31
+ $seopress_redirections_type = get_post_meta($post->ID,'_seopress_redirections_type',true);
32
+ $seopress_redirections_value = get_post_meta($post->ID,'_seopress_redirections_value',true);
33
 
34
  function seopress_titles_title($seopress_titles_title) {
35
  if ($seopress_titles_title !='') {
68
  }
69
  }
70
 
71
+ function seopress_redirections_value($seopress_redirections_value) {
72
+ if ($seopress_redirections_value !='') {
73
+ return $seopress_redirections_value;
74
+ }
75
+ }
76
+
77
  echo '<div id="seopress-tabs">
78
  <ul>
79
  <li><a href="#tabs-1"><span class="dashicons dashicons-editor-table"></span>'. __( 'Titles settings', 'wp-seopress' ) .'</a></li>
80
  <li><a href="#tabs-2"><span class="dashicons dashicons-admin-generic"></span>'. __( 'Advanced', 'wp-seopress' ) .'</a></li>
81
  <li><a href="#tabs-3"><span class="dashicons dashicons-share"></span>'. __( 'Social', 'wp-seopress' ) .'</a></li>
82
+ <li><a href="#tabs-4"><span class="dashicons dashicons-admin-links"></span>'. __( 'Redirections', 'wp-seopress' ) .'</a></li>
83
  </ul>
84
 
85
  <div id="tabs-1">
104
  <div class="box-right">
105
  <div class="google-snippet-preview">
106
  <h3>'.__('Google Snippet Preview','wp-seopress').'</h3>
107
+ <p>'.__('This is what your page will look like in Google search results','wp-seopress').'</p>
108
  <div class="snippet-title">'.seopress_titles_title($seopress_titles_title).'</div>
109
  <div class="snippet-title-custom" style="display:none"></div>
110
  <div class="snippet-title-default" style="display:none">'.get_the_title().' - '.get_bloginfo('name').'</div>
189
  <input id="seopress_social_twitter_img_upload" class="button" type="button" value="'.__('Upload an Image','wp-seopress').'" />
190
  </p>
191
  </div>
192
+ <div id="tabs-4">
193
+ <p>
194
+ <label for="seopress_redirections_enabled_meta" id="seopress_redirections_enabled">
195
+ <input type="checkbox" name="seopress_redirections_enabled" id="seopress_redirections_enabled_meta" value="yes" '. checked( $seopress_redirections_enabled, 'yes', false ) .' />
196
+ '. __( 'Enable redirection?', 'wp-seopress' ) .'
197
+ </label>
198
+ </p>
199
+ <p>
200
+ <label for="seopress_redirections_value_meta">'. __( 'URL redirection', 'wp-seopress' ) .'</label>
201
+ <select name="seopress_redirections_type">
202
+ <option ' . selected( '301', $seopress_redirections_type, false ) . ' value="301">'. __( '301', 'wp-seopress' ) .'</option>
203
+ <option ' . selected( '302', $seopress_redirections_type, false ) . ' value="302">'. __( '302', 'wp-seopress' ) .'</option>
204
+ <option ' . selected( '307', $seopress_redirections_type, false ) . ' value="307">'. __( '307', 'wp-seopress' ) .'</option>
205
+ </select>
206
+ <input id="seopress_redirections_value_meta" type="text" name="seopress_redirections_value" placeholder="'.__('Enter your URL','wp-seopress').'" value="'.$seopress_redirections_value.'" />
207
+ <br><br>';
208
+ if ($seopress_redirections_value !='') {
209
+ echo '<a href="'.seopress_redirections_value($seopress_redirections_value).'" id="seopress_redirections_value_default" class="button" target="_blank">'.__('Test your URL','wp-seopress').'</a>';
210
+ }
211
+ echo '<a href="" id="seopress_redirections_value_live" class="button" target="_blank" style="display: none">'.__('Test your URL','wp-seopress').'</a>
212
+ </p>
213
+ </div>
214
  </div>
215
  ';
216
  }
274
  }
275
  if(isset($_POST['seopress_social_twitter_img'])){
276
  update_post_meta($post_id, '_seopress_social_twitter_img', esc_html($_POST['seopress_social_twitter_img']));
277
+ }
278
+ if(isset($_POST['seopress_redirections_type'])){
279
+ update_post_meta($post_id, '_seopress_redirections_type', $_POST['seopress_redirections_type']);
280
+ }
281
+ if(isset($_POST['seopress_redirections_value'])){
282
+ update_post_meta($post_id, '_seopress_redirections_value', esc_html($_POST['seopress_redirections_value']));
283
+ }
284
+ if( isset( $_POST[ 'seopress_redirections_enabled' ] ) ) {
285
+ update_post_meta( $post_id, '_seopress_redirections_enabled', 'yes' );
286
+ } else {
287
+ delete_post_meta( $post_id, '_seopress_redirections_enabled', '' );
288
  }
289
  }
290
  }
inc/admin/admin.php CHANGED
@@ -34,6 +34,7 @@ class seopress_options
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
 
@@ -160,6 +161,39 @@ class seopress_options
160
  <?php
161
  }
162
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
  function seopress_import_export_page(){
164
  $this->options = get_option( 'seopress_import_export_option_name' );
165
  ?>
@@ -316,6 +350,18 @@ class seopress_options
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>
320
  <div class="img-tool">
321
  <span class="dashicons dashicons-admin-settings"></span>
@@ -363,6 +409,12 @@ class seopress_options
363
  array( $this, 'sanitize' ) // Sanitize
364
  );
365
 
 
 
 
 
 
 
366
  register_setting(
367
  'seopress_import_export_option_group', // Option group
368
  'seopress_import_export_option_name', // Option name
@@ -828,6 +880,22 @@ class seopress_options
828
  'seopress-settings-admin-social-twitter', // Page
829
  'seopress_setting_section_social_twitter' // Section
830
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
831
  }
832
 
833
  /**
@@ -914,6 +982,11 @@ class seopress_options
914
  public function print_section_info_social_twitter()
915
  {
916
  print __('<p>Manage your Twitter card</p>', 'wp-seopress');
 
 
 
 
 
917
  }
918
 
919
  /**
@@ -946,7 +1019,7 @@ class seopress_options
946
  {
947
  foreach (seopress_get_post_types() as $seopress_cpt_key => $seopress_cpt_value) {
948
 
949
- echo '<h2>'.$seopress_cpt_value.'</h2>';
950
 
951
  //Single Title CPT
952
  echo '<div class="seopress_wrap_single_cpt">';
@@ -955,8 +1028,8 @@ class seopress_options
955
  echo "<br/>";
956
 
957
  printf(
958
- '<input type="text" name="seopress_titles_option_name[seopress_titles_single_titles]['.$seopress_cpt_value.'][title]" value="%s"/>',
959
- esc_html( $this->options['seopress_titles_single_titles'][$seopress_cpt_value]['title'])
960
  );
961
 
962
  echo '</div>';
@@ -968,8 +1041,8 @@ class seopress_options
968
  echo "<br/>";
969
 
970
  printf(
971
- '<textarea name="seopress_titles_option_name[seopress_titles_single_titles]['.$seopress_cpt_value.'][description]">%s</textarea>',
972
- esc_html( $this->options['seopress_titles_single_titles'][$seopress_cpt_value]['description'])
973
  );
974
 
975
  echo '</div>';
@@ -979,16 +1052,16 @@ class seopress_options
979
 
980
  $options = get_option( 'seopress_titles_option_name' );
981
 
982
- $check = isset($options['seopress_titles_single_titles'][$seopress_cpt_value]['noindex']);
983
 
984
- echo '<input id="seopress_titles_single_cpt_noindex['.$seopress_cpt_value.']" name="seopress_titles_option_name[seopress_titles_single_titles]['.$seopress_cpt_value.'][noindex]" type="checkbox"';
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']);
992
  }
993
 
994
  echo '</div>';
@@ -998,16 +1071,16 @@ class seopress_options
998
 
999
  $options = get_option( 'seopress_titles_option_name' );
1000
 
1001
- $check = isset($options['seopress_titles_single_titles'][$seopress_cpt_value]['nofollow']);
1002
 
1003
- echo '<input id="seopress_titles_single_cpt_nofollow['.$seopress_cpt_value.']" name="seopress_titles_option_name[seopress_titles_single_titles]['.$seopress_cpt_value.'][nofollow]" type="checkbox"';
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']);
1011
  }
1012
 
1013
  echo '</div>';
@@ -1017,16 +1090,16 @@ class seopress_options
1017
 
1018
  $options = get_option( 'seopress_titles_option_name' );
1019
 
1020
- $check = isset($options['seopress_titles_single_titles'][$seopress_cpt_value]['date']);
1021
 
1022
- echo '<input id="seopress_titles_single_cpt_date['.$seopress_cpt_value.']" name="seopress_titles_option_name[seopress_titles_single_titles]['.$seopress_cpt_value.'][date]" type="checkbox"';
1023
  if ('1' == $check) echo 'checked="yes"';
1024
  echo ' value="1"/>';
1025
 
1026
- echo '<label for="seopress_titles_single_cpt_date['.$seopress_cpt_value.']">'. __( 'Display date in Google search results?', 'wp-seopress' ) .'</label>';
1027
 
1028
- if (isset($this->options['seopress_titles_single_titles'][$seopress_cpt_value]['date'])) {
1029
- esc_attr( $this->options['seopress_titles_single_titles'][$seopress_cpt_value]['date']);
1030
  }
1031
 
1032
  echo '</div>';
@@ -1038,7 +1111,7 @@ class seopress_options
1038
  {
1039
  foreach (seopress_get_taxonomies() as $seopress_tax_key => $seopress_tax_value) {
1040
 
1041
- echo '<h2>'.$seopress_tax_value.'</h2>';
1042
 
1043
  //Tax Title
1044
  echo '<div class="seopress_wrap_tax">';
@@ -1047,8 +1120,8 @@ class seopress_options
1047
  echo "<br/>";
1048
 
1049
  printf(
1050
- '<input type="text" name="seopress_titles_option_name[seopress_titles_tax_titles]['.$seopress_tax_value.'][title]" value="%s"/>',
1051
- esc_html( $this->options['seopress_titles_tax_titles'][$seopress_tax_value]['title'])
1052
  );
1053
 
1054
  echo '</div>';
@@ -1060,8 +1133,8 @@ class seopress_options
1060
  echo "<br/>";
1061
 
1062
  printf(
1063
- '<textarea name="seopress_titles_option_name[seopress_titles_tax_titles]['.$seopress_tax_value.'][description]">%s</textarea>',
1064
- esc_html( $this->options['seopress_titles_tax_titles'][$seopress_tax_value]['description'])
1065
  );
1066
 
1067
  echo '</div>';
@@ -1071,16 +1144,16 @@ class seopress_options
1071
 
1072
  $options = get_option( 'seopress_titles_option_name' );
1073
 
1074
- $check = isset($options['seopress_titles_tax_titles'][$seopress_tax_value]['noindex']);
1075
 
1076
- echo '<input id="seopress_titles_tax_noindex['.$seopress_tax_value.']" name="seopress_titles_option_name[seopress_titles_tax_titles]['.$seopress_tax_value.'][noindex]" type="checkbox"';
1077
  if ('1' == $check) echo 'checked="yes"';
1078
  echo ' value="1"/>';
1079
 
1080
- echo '<label for="seopress_titles_tax_noindex['.$seopress_tax_value.']">'. __( 'noindex', 'wp-seopress' ) .'</label>';
1081
 
1082
- if (isset($this->options['seopress_titles_tax_titles'][$seopress_tax_value]['noindex'])) {
1083
- esc_attr( $this->options['seopress_titles_tax_titles'][$seopress_tax_value]['noindex']);
1084
  }
1085
 
1086
  echo '</div>';
@@ -1090,16 +1163,16 @@ class seopress_options
1090
 
1091
  $options = get_option( 'seopress_titles_option_name' );
1092
 
1093
- $check = isset($options['seopress_titles_tax_titles'][$seopress_tax_value]['nofollow']);
1094
 
1095
- echo '<input id="seopress_titles_tax_nofollow['.$seopress_tax_value.']" name="seopress_titles_option_name[seopress_titles_tax_titles]['.$seopress_tax_value.'][nofollow]" type="checkbox"';
1096
  if ('1' == $check) echo 'checked="yes"';
1097
  echo ' value="1"/>';
1098
 
1099
- echo '<label for="seopress_titles_tax_nofollow['.$seopress_tax_value.']">'. __( 'nofollow', 'wp-seopress' ) .'</label>';
1100
 
1101
- if (isset($this->options['seopress_titles_tax_titles'][$seopress_tax_value]['nofollow'])) {
1102
- esc_attr( $this->options['seopress_titles_tax_titles'][$seopress_tax_value]['nofollow']);
1103
  }
1104
 
1105
  echo '</div>';
@@ -1379,30 +1452,30 @@ class seopress_options
1379
  'show_ui' => true,
1380
  );
1381
 
1382
- $output = 'names'; // names or objects, note names is the default
1383
  $operator = 'and'; // 'and' or 'or'
1384
 
1385
  $post_types = get_post_types( $args, $output, $operator );
1386
 
1387
  foreach ($post_types as $seopress_cpt_key => $seopress_cpt_value) {
1388
 
1389
- echo '<h2>'.$seopress_cpt_value.'</h2>';
1390
 
1391
  //List all post types
1392
  echo '<div class="seopress_wrap_single_cpt">';
1393
 
1394
  $options = get_option( 'seopress_xml_sitemap_option_name' );
1395
 
1396
- $check = isset($options['seopress_xml_sitemap_post_types_list'][$seopress_cpt_value]['include']);
1397
 
1398
- echo '<input id="seopress_xml_sitemap_post_types_list_include['.$seopress_cpt_value.']" name="seopress_xml_sitemap_option_name[seopress_xml_sitemap_post_types_list]['.$seopress_cpt_value.'][include]" type="checkbox"';
1399
  if ('1' == $check) echo 'checked="yes"';
1400
  echo ' value="1"/>';
1401
 
1402
- echo '<label for="seopress_xml_sitemap_post_types_list_include['.$seopress_cpt_value.']">'. __( 'Include', 'wp-seopress' ) .'</label>';
1403
 
1404
- if (isset($this->options['seopress_xml_sitemap_post_types_list'][$seopress_cpt_value]['include'])) {
1405
- esc_attr( $this->options['seopress_xml_sitemap_post_types_list'][$seopress_cpt_value]['include']);
1406
  }
1407
 
1408
  echo '</div>';
@@ -1420,29 +1493,29 @@ class seopress_options
1420
  'public' => true,
1421
 
1422
  );
1423
- $output = 'names'; // or objects
1424
  $operator = 'and'; // 'and' or 'or'
1425
  $taxonomies = get_taxonomies( $args, $output, $operator );
1426
 
1427
  foreach ($taxonomies as $seopress_tax_key => $seopress_tax_value) {
1428
 
1429
- echo '<h2>'.$seopress_tax_value.'</h2>';
1430
 
1431
  //List all taxonomies
1432
  echo '<div class="seopress_wrap_single_tax">';
1433
 
1434
  $options = get_option( 'seopress_xml_sitemap_option_name' );
1435
 
1436
- $check = isset($options['seopress_xml_sitemap_taxonomies_list'][$seopress_tax_value]['include']);
1437
 
1438
- echo '<input id="seopress_xml_sitemap_taxonomies_list_include['.$seopress_tax_value.']" name="seopress_xml_sitemap_option_name[seopress_xml_sitemap_taxonomies_list]['.$seopress_tax_value.'][include]" type="checkbox"';
1439
  if ('1' == $check) echo 'checked="yes"';
1440
  echo ' value="1"/>';
1441
 
1442
- echo '<label for="seopress_xml_sitemap_taxonomies_list_include['.$seopress_tax_value.']">'. __( 'Include', 'wp-seopress' ) .'</label>';
1443
 
1444
- if (isset($this->options['seopress_xml_sitemap_taxonomies_list'][$seopress_tax_value]['include'])) {
1445
- esc_attr( $this->options['seopress_xml_sitemap_taxonomies_list'][$seopress_tax_value]['include']);
1446
  }
1447
 
1448
  echo '</div>';
@@ -1695,6 +1768,23 @@ class seopress_options
1695
  esc_attr( $this->options['seopress_social_twitter_card_img_size']);
1696
  }
1697
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1698
  }
1699
 
1700
  if( is_admin() )
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', __('Advanced','wp-seopress'), __('Advanced','wp-seopress'), 'manage_options', 'seopress-advanced', array( $this, 'seopress_advanced_page' ));
38
  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'));
39
  }
40
 
161
  <?php
162
  }
163
 
164
+ function seopress_advanced_page(){
165
+ $this->options = get_option( 'seopress_advanced_option_name' );
166
+ ?>
167
+ <form method="post" action="options.php" class="seopress-option">
168
+ <?php
169
+ global $wp_version, $title;
170
+ $current_tab = '';
171
+ $tag = version_compare( $wp_version, '4.4' ) >= 0 ? 'h1' : 'h2';
172
+ echo '<'.$tag.'>'.$title.'</'.$tag.'>';
173
+ settings_fields( 'seopress_advanced_option_group' );
174
+ ?>
175
+
176
+ <div id="seopress-tabs" class="wrap">
177
+ <?php
178
+
179
+ $plugin_settings_tabs = array(
180
+ 'tab_seopress_advanced_advanced' => __( "Advanced", "wp-seopress" ),
181
+ );
182
+
183
+ echo '<h2 class="nav-tab-wrapper">';
184
+ foreach ( $plugin_settings_tabs as $tab_key => $tab_caption ) {
185
+ echo '<a id="'. $tab_key .'-tab" class="nav-tab" href="?page=seopress-advanced#tab=' . $tab_key . '">' . $tab_caption . '</a>';
186
+ }
187
+ echo '</h2>';
188
+ ?>
189
+ <div class="seopress-tab <?php if ($current_tab == 'tab_seopress_advanced_advanced') { echo 'active'; } ?>" id="tab_seopress_advanced_advanced"><?php do_settings_sections( 'seopress-settings-admin-advanced-advanced' ); ?></div>
190
+ </div>
191
+
192
+ <?php submit_button(); ?>
193
+ </form>
194
+ <?php
195
+ }
196
+
197
  function seopress_import_export_page(){
198
  $this->options = get_option( 'seopress_import_export_option_name' );
199
  ?>
350
  <a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=seopress-social' ); ?>"><?php _e('Manage','wp-seopress'); ?></a>
351
  </span>
352
  </td>
353
+ <td>
354
+ <div class="img-tool">
355
+ <span class="dashicons dashicons-admin-tools"></span>
356
+ </div>
357
+ <span class="inner">
358
+ <h4><?php _e('Advanced','wp-seopress'); ?></h4>
359
+ <p><?php _e('Advanced SEO options for advanced users!','wp-seopress'); ?></p>
360
+ <a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=seopress-advanced' ); ?>"><?php _e('Manage','wp-seopress'); ?></a>
361
+ </span>
362
+ </td>
363
+ </tr>
364
+ <tr>
365
  <td>
366
  <div class="img-tool">
367
  <span class="dashicons dashicons-admin-settings"></span>
409
  array( $this, 'sanitize' ) // Sanitize
410
  );
411
 
412
+ register_setting(
413
+ 'seopress_advanced_option_group', // Option group
414
+ 'seopress_advanced_option_name', // Option name
415
+ array( $this, 'sanitize' ) // Sanitize
416
+ );
417
+
418
  register_setting(
419
  'seopress_import_export_option_group', // Option group
420
  'seopress_import_export_option_name', // Option name
880
  'seopress-settings-admin-social-twitter', // Page
881
  'seopress_setting_section_social_twitter' // Section
882
  );
883
+ //Advanced SECTION=========================================================================
884
+ add_settings_section(
885
+ 'seopress_setting_section_advanced_advanced', // ID
886
+ '',
887
+ //__("Advanced","wp-seopress"), // Title
888
+ array( $this, 'print_section_info_advanced_advanced' ), // Callback
889
+ 'seopress-settings-admin-advanced-advanced' // Page
890
+ );
891
+
892
+ add_settings_field(
893
+ 'seopress_advanced_advanced_attachments', // ID
894
+ __("Redirect attachment pages to post parent (if none, redirect to homepage)","wp-seopress"), // Title
895
+ array( $this, 'seopress_advanced_advanced_attachments_callback' ), // Callback
896
+ 'seopress-settings-admin-advanced-advanced', // Page
897
+ 'seopress_setting_section_advanced_advanced' // Section
898
+ );
899
  }
900
 
901
  /**
982
  public function print_section_info_social_twitter()
983
  {
984
  print __('<p>Manage your Twitter card</p>', 'wp-seopress');
985
+ }
986
+
987
+ public function print_section_info_advanced_advanced()
988
+ {
989
+ print __('<p>Advanced SEO options</p>', 'wp-seopress');
990
  }
991
 
992
  /**
1019
  {
1020
  foreach (seopress_get_post_types() as $seopress_cpt_key => $seopress_cpt_value) {
1021
 
1022
+ echo '<h2>'.$seopress_cpt_value->labels->name.'</h2>';
1023
 
1024
  //Single Title CPT
1025
  echo '<div class="seopress_wrap_single_cpt">';
1028
  echo "<br/>";
1029
 
1030
  printf(
1031
+ '<input type="text" name="seopress_titles_option_name[seopress_titles_single_titles]['.$seopress_cpt_key.'][title]" value="%s"/>',
1032
+ esc_html( $this->options['seopress_titles_single_titles'][$seopress_cpt_key]['title'])
1033
  );
1034
 
1035
  echo '</div>';
1041
  echo "<br/>";
1042
 
1043
  printf(
1044
+ '<textarea name="seopress_titles_option_name[seopress_titles_single_titles]['.$seopress_cpt_key.'][description]">%s</textarea>',
1045
+ esc_html( $this->options['seopress_titles_single_titles'][$seopress_cpt_key]['description'])
1046
  );
1047
 
1048
  echo '</div>';
1052
 
1053
  $options = get_option( 'seopress_titles_option_name' );
1054
 
1055
+ $check = isset($options['seopress_titles_single_titles'][$seopress_cpt_key]['noindex']);
1056
 
1057
+ echo '<input id="seopress_titles_single_cpt_noindex['.$seopress_cpt_key.']" name="seopress_titles_option_name[seopress_titles_single_titles]['.$seopress_cpt_key.'][noindex]" type="checkbox"';
1058
  if ('1' == $check) echo 'checked="yes"';
1059
  echo ' value="1"/>';
1060
 
1061
+ echo '<label for="seopress_titles_single_cpt_noindex['.$seopress_cpt_key.']">'. __( 'noindex', 'wp-seopress' ) .'</label>';
1062
 
1063
+ if (isset($this->options['seopress_titles_single_titles'][$seopress_cpt_key]['noindex'])) {
1064
+ esc_attr( $this->options['seopress_titles_single_titles'][$seopress_cpt_key]['noindex']);
1065
  }
1066
 
1067
  echo '</div>';
1071
 
1072
  $options = get_option( 'seopress_titles_option_name' );
1073
 
1074
+ $check = isset($options['seopress_titles_single_titles'][$seopress_cpt_key]['nofollow']);
1075
 
1076
+ echo '<input id="seopress_titles_single_cpt_nofollow['.$seopress_cpt_key.']" name="seopress_titles_option_name[seopress_titles_single_titles]['.$seopress_cpt_key.'][nofollow]" type="checkbox"';
1077
  if ('1' == $check) echo 'checked="yes"';
1078
  echo ' value="1"/>';
1079
 
1080
+ echo '<label for="seopress_titles_single_cpt_nofollow['.$seopress_cpt_key.']">'. __( 'nofollow', 'wp-seopress' ) .'</label>';
1081
 
1082
+ if (isset($this->options['seopress_titles_single_titles'][$seopress_cpt_key]['nofollow'])) {
1083
+ esc_attr( $this->options['seopress_titles_single_titles'][$seopress_cpt_key]['nofollow']);
1084
  }
1085
 
1086
  echo '</div>';
1090
 
1091
  $options = get_option( 'seopress_titles_option_name' );
1092
 
1093
+ $check = isset($options['seopress_titles_single_titles'][$seopress_cpt_key]['date']);
1094
 
1095
+ echo '<input id="seopress_titles_single_cpt_date['.$seopress_cpt_key.']" name="seopress_titles_option_name[seopress_titles_single_titles]['.$seopress_cpt_key.'][date]" type="checkbox"';
1096
  if ('1' == $check) echo 'checked="yes"';
1097
  echo ' value="1"/>';
1098
 
1099
+ echo '<label for="seopress_titles_single_cpt_date['.$seopress_cpt_key.']">'. __( 'Display date in Google search results?', 'wp-seopress' ) .'</label>';
1100
 
1101
+ if (isset($this->options['seopress_titles_single_titles'][$seopress_cpt_key]['date'])) {
1102
+ esc_attr( $this->options['seopress_titles_single_titles'][$seopress_cpt_key]['date']);
1103
  }
1104
 
1105
  echo '</div>';
1111
  {
1112
  foreach (seopress_get_taxonomies() as $seopress_tax_key => $seopress_tax_value) {
1113
 
1114
+ echo '<h2>'.$seopress_tax_value->labels->name.'</h2>';
1115
 
1116
  //Tax Title
1117
  echo '<div class="seopress_wrap_tax">';
1120
  echo "<br/>";
1121
 
1122
  printf(
1123
+ '<input type="text" name="seopress_titles_option_name[seopress_titles_tax_titles]['.$seopress_tax_key.'][title]" value="%s"/>',
1124
+ esc_html( $this->options['seopress_titles_tax_titles'][$seopress_tax_key]['title'])
1125
  );
1126
 
1127
  echo '</div>';
1133
  echo "<br/>";
1134
 
1135
  printf(
1136
+ '<textarea name="seopress_titles_option_name[seopress_titles_tax_titles]['.$seopress_tax_key.'][description]">%s</textarea>',
1137
+ esc_html( $this->options['seopress_titles_tax_titles'][$seopress_tax_key]['description'])
1138
  );
1139
 
1140
  echo '</div>';
1144
 
1145
  $options = get_option( 'seopress_titles_option_name' );
1146
 
1147
+ $check = isset($options['seopress_titles_tax_titles'][$seopress_tax_key]['noindex']);
1148
 
1149
+ echo '<input id="seopress_titles_tax_noindex['.$seopress_tax_key.']" name="seopress_titles_option_name[seopress_titles_tax_titles]['.$seopress_tax_key.'][noindex]" type="checkbox"';
1150
  if ('1' == $check) echo 'checked="yes"';
1151
  echo ' value="1"/>';
1152
 
1153
+ echo '<label for="seopress_titles_tax_noindex['.$seopress_tax_key.']">'. __( 'noindex', 'wp-seopress' ) .'</label>';
1154
 
1155
+ if (isset($this->options['seopress_titles_tax_titles'][$seopress_tax_key]['noindex'])) {
1156
+ esc_attr( $this->options['seopress_titles_tax_titles'][$seopress_tax_key]['noindex']);
1157
  }
1158
 
1159
  echo '</div>';
1163
 
1164
  $options = get_option( 'seopress_titles_option_name' );
1165
 
1166
+ $check = isset($options['seopress_titles_tax_titles'][$seopress_tax_key]['nofollow']);
1167
 
1168
+ echo '<input id="seopress_titles_tax_nofollow['.$seopress_tax_key.']" name="seopress_titles_option_name[seopress_titles_tax_titles]['.$seopress_tax_key.'][nofollow]" type="checkbox"';
1169
  if ('1' == $check) echo 'checked="yes"';
1170
  echo ' value="1"/>';
1171
 
1172
+ echo '<label for="seopress_titles_tax_nofollow['.$seopress_tax_key.']">'. __( 'nofollow', 'wp-seopress' ) .'</label>';
1173
 
1174
+ if (isset($this->options['seopress_titles_tax_titles'][$seopress_tax_key]['nofollow'])) {
1175
+ esc_attr( $this->options['seopress_titles_tax_titles'][$seopress_tax_key]['nofollow']);
1176
  }
1177
 
1178
  echo '</div>';
1452
  'show_ui' => true,
1453
  );
1454
 
1455
+ $output = 'objects'; // names or objects, note names is the default
1456
  $operator = 'and'; // 'and' or 'or'
1457
 
1458
  $post_types = get_post_types( $args, $output, $operator );
1459
 
1460
  foreach ($post_types as $seopress_cpt_key => $seopress_cpt_value) {
1461
 
1462
+ echo '<h2>'.$seopress_cpt_value->labels->name.'</h2>';
1463
 
1464
  //List all post types
1465
  echo '<div class="seopress_wrap_single_cpt">';
1466
 
1467
  $options = get_option( 'seopress_xml_sitemap_option_name' );
1468
 
1469
+ $check = isset($options['seopress_xml_sitemap_post_types_list'][$seopress_cpt_key]['include']);
1470
 
1471
+ echo '<input id="seopress_xml_sitemap_post_types_list_include['.$seopress_cpt_key.']" name="seopress_xml_sitemap_option_name[seopress_xml_sitemap_post_types_list]['.$seopress_cpt_key.'][include]" type="checkbox"';
1472
  if ('1' == $check) echo 'checked="yes"';
1473
  echo ' value="1"/>';
1474
 
1475
+ echo '<label for="seopress_xml_sitemap_post_types_list_include['.$seopress_cpt_key.']">'. __( 'Include', 'wp-seopress' ) .'</label>';
1476
 
1477
+ if (isset($this->options['seopress_xml_sitemap_post_types_list'][$seopress_cpt_key]['include'])) {
1478
+ esc_attr( $this->options['seopress_xml_sitemap_post_types_list'][$seopress_cpt_key]['include']);
1479
  }
1480
 
1481
  echo '</div>';
1493
  'public' => true,
1494
 
1495
  );
1496
+ $output = 'objects'; // or objects
1497
  $operator = 'and'; // 'and' or 'or'
1498
  $taxonomies = get_taxonomies( $args, $output, $operator );
1499
 
1500
  foreach ($taxonomies as $seopress_tax_key => $seopress_tax_value) {
1501
 
1502
+ echo '<h2>'.$seopress_tax_value->labels->name.'</h2>';
1503
 
1504
  //List all taxonomies
1505
  echo '<div class="seopress_wrap_single_tax">';
1506
 
1507
  $options = get_option( 'seopress_xml_sitemap_option_name' );
1508
 
1509
+ $check = isset($options['seopress_xml_sitemap_taxonomies_list'][$seopress_tax_key]['include']);
1510
 
1511
+ echo '<input id="seopress_xml_sitemap_taxonomies_list_include['.$seopress_tax_key.']" name="seopress_xml_sitemap_option_name[seopress_xml_sitemap_taxonomies_list]['.$seopress_tax_key.'][include]" type="checkbox"';
1512
  if ('1' == $check) echo 'checked="yes"';
1513
  echo ' value="1"/>';
1514
 
1515
+ echo '<label for="seopress_xml_sitemap_taxonomies_list_include['.$seopress_tax_key.']">'. __( 'Include', 'wp-seopress' ) .'</label>';
1516
 
1517
+ if (isset($this->options['seopress_xml_sitemap_taxonomies_list'][$seopress_tax_key]['include'])) {
1518
+ esc_attr( $this->options['seopress_xml_sitemap_taxonomies_list'][$seopress_tax_key]['include']);
1519
  }
1520
 
1521
  echo '</div>';
1768
  esc_attr( $this->options['seopress_social_twitter_card_img_size']);
1769
  }
1770
  }
1771
+
1772
+ public function seopress_advanced_advanced_attachments_callback()
1773
+ {
1774
+ $options = get_option( 'seopress_advanced_option_name' );
1775
+
1776
+ $check = isset($options['seopress_advanced_advanced_attachments']);
1777
+
1778
+ echo '<input id="seopress_advanced_advanced_attachments" name="seopress_advanced_option_name[seopress_advanced_advanced_attachments]" type="checkbox"';
1779
+ if ('1' == $check) echo 'checked="yes"';
1780
+ echo ' value="1"/>';
1781
+
1782
+ echo '<label for="seopress_advanced_advanced_attachments">'. __( 'Redirect attachment pages to post parent (or homepage if none)', 'wp-seopress' ) .'</label>';
1783
+
1784
+ if (isset($this->options['seopress_advanced_advanced_attachments'])) {
1785
+ esc_attr( $this->options['seopress_advanced_advanced_attachments']);
1786
+ }
1787
+ }
1788
  }
1789
 
1790
  if( is_admin() )
inc/functions/options-import-export.php CHANGED
@@ -17,6 +17,7 @@ function seopress_export_settings() {
17
  $settings["seopress_activated"] = get_option( 'seopress_activated' );
18
  $settings["seopress_titles_option_name"] = get_option( 'seopress_titles_option_name' );
19
  $settings["seopress_social_option_name"] = get_option( 'seopress_social_option_name' );
 
20
  $settings["seopress_xml_sitemap_option_name"] = get_option( 'seopress_xml_sitemap_option_name' );
21
 
22
  ignore_user_abort( true );
@@ -51,6 +52,7 @@ function seopress_import_settings() {
51
  update_option( 'seopress_activated', $settings["seopress_activated"] );
52
  update_option( 'seopress_titles_option_name', $settings["seopress_titles_option_name"] );
53
  update_option( 'seopress_social_option_name', $settings["seopress_social_option_name"] );
 
54
  update_option( 'seopress_xml_sitemap_option_name', $settings["seopress_xml_sitemap_option_name"] );
55
 
56
  wp_safe_redirect( admin_url( 'admin.php?page=seopress-import-export' ) ); exit;
17
  $settings["seopress_activated"] = get_option( 'seopress_activated' );
18
  $settings["seopress_titles_option_name"] = get_option( 'seopress_titles_option_name' );
19
  $settings["seopress_social_option_name"] = get_option( 'seopress_social_option_name' );
20
+ $settings["seopress_advanced_option_name"] = get_option( 'seopress_advanced_option_name' );
21
  $settings["seopress_xml_sitemap_option_name"] = get_option( 'seopress_xml_sitemap_option_name' );
22
 
23
  ignore_user_abort( true );
52
  update_option( 'seopress_activated', $settings["seopress_activated"] );
53
  update_option( 'seopress_titles_option_name', $settings["seopress_titles_option_name"] );
54
  update_option( 'seopress_social_option_name', $settings["seopress_social_option_name"] );
55
+ update_option( 'seopress_advanced_option_name', $settings["seopress_advanced_option_name"] );
56
  update_option( 'seopress_xml_sitemap_option_name', $settings["seopress_xml_sitemap_option_name"] );
57
 
58
  wp_safe_redirect( admin_url( 'admin.php?page=seopress-import-export' ) ); exit;
inc/functions/options-redirections.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( 'Please don&rsquo;t call the plugin directly. Thanks :)' );
3
+
4
+ //Redirections
5
+ //=================================================================================================
6
+ //Enabled
7
+ function seopress_redirections_enabled() {
8
+ global $post;
9
+ if (get_post_meta($post->ID,'_seopress_redirections_enabled',true)) {
10
+ $seopress_redirections_enabled = get_post_meta($post->ID,'_seopress_redirections_enabled',true);
11
+ return $seopress_redirections_enabled;
12
+ }
13
+ }
14
+
15
+ //Type
16
+ function seopress_redirections_type() {
17
+ global $post;
18
+ if (get_post_meta($post->ID,'_seopress_redirections_type',true)) {
19
+ $seopress_redirections_type = get_post_meta($post->ID,'_seopress_redirections_type',true);
20
+ return $seopress_redirections_type;
21
+ }
22
+ }
23
+
24
+ //URL to redirect
25
+ function seopress_redirections_value() {
26
+ global $post;
27
+ if (get_post_meta($post->ID,'_seopress_redirections_value',true)) {
28
+ $seopress_redirections_value = get_post_meta($post->ID,'_seopress_redirections_value',true);
29
+ return $seopress_redirections_value;
30
+ }
31
+ }
32
+
33
+ function seopress_redirections_hook() {
34
+ if (seopress_redirections_enabled() =='yes') {
35
+ if (seopress_redirections_type() && seopress_redirections_value() !='') {
36
+ wp_redirect(seopress_redirections_value(), seopress_redirections_type());
37
+ exit();
38
+ }
39
+ }
40
+ }
41
+ add_action('template_redirect', 'seopress_redirections_hook', 1);
42
+
43
+
44
+ //Attachments redirects
45
+ function seopress_advanced_advanced_attachments_option() {
46
+ $seopress_advanced_advanced_attachments_option = get_option("seopress_advanced_option_name");
47
+ if ( ! empty ( $seopress_advanced_advanced_attachments_option ) ) {
48
+ foreach ($seopress_advanced_advanced_attachments_option as $key => $seopress_advanced_advanced_attachments_value)
49
+ $options[$key] = $seopress_advanced_advanced_attachments_value;
50
+ if (isset($seopress_advanced_advanced_attachments_option['seopress_advanced_advanced_attachments'])) {
51
+ return $seopress_advanced_advanced_attachments_option['seopress_advanced_advanced_attachments'];
52
+ }
53
+ }
54
+ };
55
+
56
+ function seopress_redirections_attachments(){
57
+ if (seopress_advanced_advanced_attachments_option() =='1') {
58
+ global $post;
59
+ if ( is_attachment() && isset($post->post_parent) && is_numeric($post->post_parent) && ($post->post_parent != 0) ) {
60
+ wp_redirect( get_permalink( $post->post_parent ), 301 );
61
+ exit();
62
+ wp_reset_postdata();
63
+ } elseif (is_attachment() && isset($post->post_parent) && is_numeric($post->post_parent) && ($post->post_parent == 0)) {
64
+ wp_redirect(get_home_url(), 302);
65
+ exit();
66
+ }
67
+ }
68
+ }
69
+ add_action( 'template_redirect', 'seopress_redirections_attachments', 1 );
inc/functions/options.php CHANGED
@@ -13,7 +13,7 @@ function seopress_enable() {
13
  }
14
  }
15
 
16
- //Front END - Titles & metas
17
  add_action('wp_head', 'seopress_load_titles_options', 0);
18
  function seopress_load_titles_options() {
19
  if (!is_admin()){
@@ -22,6 +22,13 @@ function seopress_load_titles_options() {
22
  }
23
  }
24
 
 
 
 
 
 
 
 
25
  add_action('init', 'seopress_load_sitemap', 999);
26
  function seopress_load_sitemap() {
27
  require_once ( dirname( __FILE__ ) . '/options-sitemap.php'); //XML Sitemap
13
  }
14
  }
15
 
16
+ //Front END - Titles & metas - Redirections
17
  add_action('wp_head', 'seopress_load_titles_options', 0);
18
  function seopress_load_titles_options() {
19
  if (!is_admin()){
22
  }
23
  }
24
 
25
+ add_action('init', 'seopress_load_redirections_options', 0);
26
+ function seopress_load_redirections_options() {
27
+ if (!is_admin()){
28
+ require_once ( dirname( __FILE__ ) . '/options-redirections.php'); //Redirections
29
+ }
30
+ }
31
+
32
  add_action('init', 'seopress_load_sitemap', 999);
33
  function seopress_load_sitemap() {
34
  require_once ( dirname( __FILE__ ) . '/options-sitemap.php'); //XML Sitemap
languages/wp-seopress-fr_FR.mo CHANGED
Binary file
languages/wp-seopress-fr_FR.po CHANGED
@@ -2,8 +2,8 @@ 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-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"
@@ -17,157 +17,190 @@ msgstr ""
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
- #: inc/admin/admin-metaboxes.php:11 inc/admin/admin.php:233
21
  msgid "SEOPress"
22
  msgstr "SEOPress"
23
 
24
- #: inc/admin/admin-metaboxes.php:50
25
  msgid "Titles settings"
26
  msgstr "Paramètres de titres"
27
 
28
- #: inc/admin/admin-metaboxes.php:51 inc/admin/admin.php:66
 
29
  msgid "Advanced"
30
  msgstr "Avancé"
31
 
32
- #: inc/admin/admin-metaboxes.php:52 inc/admin/admin.php:36
33
- #: inc/admin/admin.php:314
34
  msgid "Social"
35
  msgstr "Social"
36
 
37
- #: inc/admin/admin-metaboxes.php:58
 
 
 
 
38
  msgid "Title"
39
  msgstr "Titre"
40
 
41
- #: inc/admin/admin-metaboxes.php:59
42
  msgid "Enter your title"
43
  msgstr "Entrez votre titre"
44
 
45
- #: inc/admin/admin-metaboxes.php:62 inc/admin/admin.php:391
 
 
 
 
46
  msgid "Meta description"
47
  msgstr "Meta description"
48
 
49
- #: inc/admin/admin-metaboxes.php:63
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
  msgstr "Miniature Facebook"
123
 
124
- #: inc/admin/admin-metaboxes.php:134 inc/admin/admin-metaboxes.php:149
125
- #: inc/admin/admin.php:1599 inc/admin/admin.php:1651
126
  msgid "Select your default thumbnail"
127
  msgstr "Sélectionnez votre miniature par défaut"
128
 
129
- #: inc/admin/admin-metaboxes.php:135 inc/admin/admin-metaboxes.php:150
130
- #: inc/admin/admin.php:1469 inc/admin/admin.php:1601 inc/admin/admin.php:1653
131
  msgid "Upload an Image"
132
  msgstr "Uploadez une image"
133
 
134
- #: inc/admin/admin-metaboxes.php:140
135
  msgid "Twitter Title"
136
  msgstr "Titre Twitter"
137
 
138
- #: inc/admin/admin-metaboxes.php:141
139
  msgid "Enter your Twitter title"
140
  msgstr "Entrez votre titre Twitter"
141
 
142
- #: inc/admin/admin-metaboxes.php:144
143
  msgid "Twitter description"
144
  msgstr "Description Twitter"
145
 
146
- #: inc/admin/admin-metaboxes.php:145
147
  msgid "Enter your Twitter description"
148
  msgstr "Entrez votre description Twitter"
149
 
150
- #: inc/admin/admin-metaboxes.php:148
151
  msgid "Twitter Thumbnail"
152
  msgstr "Miniature Twitter"
153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  #: inc/admin/admin.php:34
155
  msgid "Titles & Metas"
156
  msgstr "Titres et Métas"
157
 
158
- #: inc/admin/admin.php:35 inc/admin/admin.php:304
159
  msgid "XML Sitemap"
160
  msgstr "Sitemap XML"
161
 
162
- #: inc/admin/admin.php:37
163
  msgid "Import / Export / Reset settings"
164
  msgstr "Import / Export / Réinitialisation des paramètres"
165
 
166
- #: inc/admin/admin.php:37 inc/admin/admin.php:324
167
  msgid "Import / Export / Reset"
168
  msgstr "Importer / Exporter / Réinitialiser"
169
 
170
- #: inc/admin/admin.php:47
171
  msgid ""
172
  "Discourage search engines from indexing this site is <strong>ON!</strong> "
173
  "None of the following settings will be applied."
@@ -175,63 +208,63 @@ msgstr ""
175
  "Décourager les moteurs de recherche d’indexer ce site est <strong>actif !</"
176
  "strong> Aucun des paramètres suivants ne s’appliqueront."
177
 
178
- #: inc/admin/admin.php:48
179
  msgid "Change this settings"
180
  msgstr "Changer ce paramètre"
181
 
182
- #: inc/admin/admin.php:62
183
  msgid "Home"
184
  msgstr "Accueil"
185
 
186
- #: inc/admin/admin.php:63
187
  msgid "Single Post Types"
188
  msgstr "Single Post Types"
189
 
190
- #: inc/admin/admin.php:64 inc/admin/admin.php:105
191
  msgid "Taxonomies"
192
  msgstr "Taxonomies"
193
 
194
- #: inc/admin/admin.php:65
195
  msgid "Archives"
196
  msgstr "Archives"
197
 
198
- #: inc/admin/admin.php:103
199
  msgid "General"
200
  msgstr "Général"
201
 
202
- #: inc/admin/admin.php:104
203
  msgid "Post Types"
204
  msgstr "Types d'article"
205
 
206
- #: inc/admin/admin.php:140
207
  msgid "Knowledge Graph"
208
  msgstr "Knowledge Graph"
209
 
210
- #: inc/admin/admin.php:141
211
  msgid "Your social accounts"
212
  msgstr "Vos comptes sociaux"
213
 
214
- #: inc/admin/admin.php:142
215
  msgid "Facebook"
216
  msgstr "Facebook"
217
 
218
- #: inc/admin/admin.php:143
219
  msgid "Twitter"
220
  msgstr "Twitter"
221
 
222
- #: inc/admin/admin.php:170
223
  msgid "Import / Export Settings"
224
  msgstr "Paramètres Import / Export"
225
 
226
- #: inc/admin/admin.php:171
227
  msgid "Import / Export SEOPress settings from site to site"
228
  msgstr "Importer / Exporter les paramètres SEOPress d'un site à un autre"
229
 
230
- #: inc/admin/admin.php:174
231
  msgid "Export Settings"
232
  msgstr "Exporter Paramètres"
233
 
234
- #: inc/admin/admin.php:176
235
  msgid ""
236
  "Export the plugin settings for this site as a .json file. This allows you to "
237
  "easily import the configuration into another site."
@@ -240,15 +273,15 @@ msgstr ""
240
  "vous permet d'importer facilement votre configuration dans un autre site "
241
  "WordPress."
242
 
243
- #: inc/admin/admin.php:181
244
  msgid "Export"
245
  msgstr "Exporter"
246
 
247
- #: inc/admin/admin.php:188
248
  msgid "Import Settings"
249
  msgstr "Importer Paramètres"
250
 
251
- #: inc/admin/admin.php:190
252
  msgid ""
253
  "Import the plugin settings from a .json file. This file can be obtained by "
254
  "exporting the settings on another site using the form above."
@@ -257,15 +290,15 @@ msgstr ""
257
  "être obtenu en exportant les paramètres depuis un autre site en utilisant le "
258
  "formulaire ci-dessus."
259
 
260
- #: inc/admin/admin.php:198
261
  msgid "Import"
262
  msgstr "Importer"
263
 
264
- #: inc/admin/admin.php:205
265
  msgid "Reset All Settings"
266
  msgstr "Tout réinitialiser"
267
 
268
- #: inc/admin/admin.php:207
269
  msgid ""
270
  "<strong>WARNING:</strong> Delete all options related to SEOPress in your "
271
  "database."
@@ -273,181 +306,192 @@ msgstr ""
273
  "<strong>AVERTISSEMENT:</strong> Supprime toutes les options liées à SEOPress "
274
  "de votre base de données."
275
 
276
- #: inc/admin/admin.php:212
277
  msgid "Reset settings"
278
  msgstr "Réinitialiser les paramètres"
279
 
280
- #: inc/admin/admin.php:237
281
  msgid "PRO"
282
  msgstr "PRO"
283
 
284
- #: inc/admin/admin.php:247
285
  msgid "The ultimate plugin to optimize your SEO!"
286
  msgstr "Le plugin ultime pour optimiser votre SEO !"
287
 
288
- #: inc/admin/admin.php:250
289
  msgid "You like SEOPress? Don't forget to rate it 5 stars!"
290
  msgstr "Vous aimez SEOPress ? N'oubliez pas de nous noter 5 étoiles !"
291
 
292
- #: inc/admin/admin.php:279
293
  msgid "Follow us on Twitter!"
294
  msgstr "Suivez-nous sur Twitter !"
295
 
296
- #: inc/admin/admin.php:281
297
  msgid "Our website"
298
  msgstr "Notre site web"
299
 
300
- #: inc/admin/admin.php:283
301
  msgid "Knowledge base"
302
  msgstr "Base de connaissances"
303
 
304
- #: inc/admin/admin.php:294
305
  msgid "Titles & metas"
306
  msgstr "Titres et Métas"
307
 
308
- #: inc/admin/admin.php:295
309
  msgid "Manage all your titles & metas"
310
  msgstr "Gérer tous vos titres et métas"
311
 
312
- #: inc/admin/admin.php:296 inc/admin/admin.php:306 inc/admin/admin.php:316
313
- #: inc/admin/admin.php:326
314
  msgid "Manage"
315
  msgstr "Gérer"
316
 
317
- #: inc/admin/admin.php:305
318
  msgid "Manage your XML Sitemap"
319
  msgstr "Gérer votre Sitemap XML"
320
 
321
- #: inc/admin/admin.php:315
322
  msgid "Open Graph, Twitter Card, Google Knowledge Graph and more..."
323
  msgstr "Open Graph, Twitter Card, Google Knowledge Graph et plus..."
324
 
325
- #: inc/admin/admin.php:325
 
 
 
 
326
  msgid "Import / export SEOPress settings from site to site."
327
  msgstr "Importer / Exporter les paramètres d'un site à un autre"
328
 
329
- #: inc/admin/admin.php:383
330
  msgid "Site title"
331
  msgstr "Titre du site"
332
 
333
- #: inc/admin/admin.php:598 inc/admin/admin.php:1344
334
  msgid "Enable XML Sitemap"
335
  msgstr "Activez le Sitemap XML"
336
 
337
- #: inc/admin/admin.php:614
338
  msgid "Check to INCLUDE Post Types"
339
  msgstr "Cochez pour INCLURE les Types d'article"
340
 
341
- #: inc/admin/admin.php:630
342
  msgid "Check to INCLUDE Taxonomies"
343
  msgstr "Cochez pour INCLURE les Taxonomies"
344
 
345
- #: inc/admin/admin.php:647
346
  msgid "Person or organization"
347
  msgstr "Personne ou Organisation"
348
 
349
- #: inc/admin/admin.php:655
350
  msgid "Your name/organization"
351
  msgstr "Votre nom/organisation"
352
 
353
- #: inc/admin/admin.php:663
354
  msgid "Your photo / organization logo"
355
  msgstr "Votre photo / logo"
356
 
357
- #: inc/admin/admin.php:680
358
  msgid "Facebook Page URL"
359
  msgstr "URL de la page Facebook"
360
 
361
- #: inc/admin/admin.php:688
362
  msgid "Twitter Username"
363
  msgstr "Compte utilisateur Twitter"
364
 
365
- #: inc/admin/admin.php:696
366
  msgid "Google + URL"
367
  msgstr "URL Google +"
368
 
369
- #: inc/admin/admin.php:704
370
  msgid "Pinterest URL"
371
  msgstr "URL Pinterest"
372
 
373
- #: inc/admin/admin.php:712
374
  msgid "Instagram URL"
375
  msgstr "Instagram URL"
376
 
377
- #: inc/admin/admin.php:720
378
  msgid "YouTube URL"
379
  msgstr "URL YouTube"
380
 
381
- #: inc/admin/admin.php:728
382
  msgid "LinkedIn URL"
383
  msgstr "LinkedIn URL"
384
 
385
- #: inc/admin/admin.php:736
386
  msgid "MySpace URL"
387
  msgstr "URL MySpace"
388
 
389
- #: inc/admin/admin.php:744
390
  msgid "Soundcloud URL"
391
  msgstr "URL Soundcloud"
392
 
393
- #: inc/admin/admin.php:752
394
  msgid "Tumblr URL"
395
  msgstr "URL Tumblr"
396
 
397
- #: inc/admin/admin.php:769
398
  msgid "Enable Open Graph Data"
399
  msgstr "Activez les données Open Graph"
400
 
401
- #: inc/admin/admin.php:777
402
  msgid "Select a default image"
403
  msgstr "Sélectionnez une image par défaut"
404
 
405
- #: inc/admin/admin.php:785
406
  msgid "Facebook Admin ID"
407
  msgstr "Facebook Admin ID"
408
 
409
- #: inc/admin/admin.php:793
410
  msgid "Facebook App ID"
411
  msgstr "Facebook App ID"
412
 
413
- #: inc/admin/admin.php:810
414
  msgid "Enable Twitter Card"
415
  msgstr "Activez Twitter Card"
416
 
417
- #: inc/admin/admin.php:818
418
  msgid "Default Twitter Image"
419
  msgstr "Image Twitter par défaut"
420
 
421
- #: inc/admin/admin.php:826
422
  msgid "Image size for Twitter Summary card"
423
  msgstr "Taille d'image pour Twitter Summary Card"
424
 
425
- #: inc/admin/admin.php:857
 
 
 
 
 
 
 
426
  msgid "<p>Customize your titles & metas for homepage</p>"
427
  msgstr "<p>Personnalisez vos titres et métas pour l'accueil</p>"
428
 
429
- #: inc/admin/admin.php:862
430
  msgid "<p>Customize your titles & metas for Single Custom Post Types</p>"
431
  msgstr ""
432
  "<p>Personnalisez vos titres et métas pour les singles des Types d'article</p>"
433
 
434
- #: inc/admin/admin.php:867
435
  msgid "<p>Customize your metas for all pages</p>"
436
  msgstr "<p>Personnalisez vos métas pour toutes les pages</p>"
437
 
438
- #: inc/admin/admin.php:872
439
  msgid "<p>Customize your metas for all taxonomies archives</p>"
440
  msgstr "<p>Personnalisez vos métas pour toutes les archives de taxonomies</p>"
441
 
442
- #: inc/admin/admin.php:877
443
  msgid "<p>Customize your metas for all archives</p>"
444
  msgstr "<p>Personnalisez vos métas pour les archives</p>"
445
 
446
- #: inc/admin/admin.php:882
447
  msgid "<p>Enable your Sitemap</p>"
448
  msgstr "<p>Activez votre Sitemap</p>"
449
 
450
- #: inc/admin/admin.php:883
451
  msgid ""
452
  "To view your sitemap, enable permalinks (not default one), and save settings "
453
  "to flush them."
@@ -455,162 +499,183 @@ msgstr ""
455
  "Pour voir votre sitemap, activez les permaliens (pas ceux par défaut), et "
456
  "sauvegardez les paramètres pour les mettre à jour."
457
 
458
- #: inc/admin/admin.php:886
459
  msgid "View your sitemap"
460
  msgstr "Voir votre sitemap"
461
 
462
- #: inc/admin/admin.php:891
463
  msgid "<p>Include / Exclude Post Types</p>"
464
  msgstr "<p>Inclure / Exclure les Types d'article</p>"
465
 
466
- #: inc/admin/admin.php:896
467
  msgid "<p>Include / Exclude Taxonomies</p>"
468
  msgstr "<p>Inclure / Exclure les Taxonomies</p>"
469
 
470
- #: inc/admin/admin.php:901
471
  msgid "<p>Configure Google Knowledge Graph</p>"
472
  msgstr "<p>Configurer Google Knowledge Graph</p>"
473
 
474
- #: inc/admin/admin.php:906
475
  msgid "<p>Link your site with your social accounts</p>"
476
  msgstr "<p>Lier votre site à vos comptes sociaux</p>"
477
 
478
- #: inc/admin/admin.php:911
479
  msgid "<p>Manage Open Graph datas</p>"
480
  msgstr "<p>Gérer l'Open Graph datas</p>"
481
 
482
- #: inc/admin/admin.php:916
483
  msgid "<p>Manage your Twitter card</p>"
484
  msgstr "<p>Gérer votre Twitter card</p>"
485
 
486
- #: inc/admin/admin.php:927
 
 
 
 
487
  msgid "My awesome website"
488
  msgstr "Mon super site"
489
 
490
- #: inc/admin/admin.php:937
491
  msgid "This is cool website about Wookiees"
492
  msgstr "Un site cool sur les Wookies"
493
 
494
- #: inc/admin/admin.php:954 inc/admin/admin.php:1027 inc/admin/admin.php:1095
495
- #: inc/admin/admin.php:1123 inc/admin/admin.php:1151 inc/admin/admin.php:1179
496
- #: inc/admin/admin.php:1207
497
  msgid "Title template"
498
  msgstr "Template de Titre"
499
 
500
- #: inc/admin/admin.php:967 inc/admin/admin.php:1040 inc/admin/admin.php:1108
501
- #: inc/admin/admin.php:1136 inc/admin/admin.php:1164 inc/admin/admin.php:1192
502
- #: inc/admin/admin.php:1220
503
  msgid "Meta description template"
504
  msgstr "Template de Méta Description"
505
 
506
- #: inc/admin/admin.php:1093
 
 
 
 
507
  msgid "Author archives"
508
  msgstr "Archives de l'auteur"
509
 
510
- #: inc/admin/admin.php:1121
511
  msgid "Date archives"
512
  msgstr "Archives par date"
513
 
514
- #: inc/admin/admin.php:1149
515
  msgid "Search archives"
516
  msgstr "Archives de recherche"
517
 
518
- #: inc/admin/admin.php:1177
519
  msgid "404 archives"
520
  msgstr "Page 404"
521
 
522
- #: inc/admin/admin.php:1205
523
  msgid "Paged archives"
524
  msgstr "Archives paginées"
525
 
526
- #: inc/admin/admin.php:1383 inc/admin/admin.php:1423
527
  msgid "Include"
528
  msgstr "Inclure"
529
 
530
- #: inc/admin/admin.php:1442
531
  msgid "Person"
532
  msgstr "Personne"
533
 
534
- #: inc/admin/admin.php:1445
535
  msgid "Organization"
536
  msgstr "Organisation"
537
 
538
- #: inc/admin/admin.php:1456
539
  msgid "eg: Apple"
540
  msgstr "ex: Apple"
541
 
542
- #: inc/admin/admin.php:1467
543
  msgid "Select your logo"
544
  msgstr "Sélectionnez votre logo"
545
 
546
- #: inc/admin/admin.php:1479
547
  msgid "eg: https://www.facebook.com/your-page"
548
  msgstr "ex: https://www.facebook.com/your-page"
549
 
550
- #: inc/admin/admin.php:1489
551
  msgid "eg: @wpcloudy"
552
  msgstr "ex: @wpcloudy"
553
 
554
- #: inc/admin/admin.php:1499
555
  msgid "eg: https://plus.google.com/+BenjaminDenis"
556
  msgstr "ex: https://plus.google.com/+BenjaminDenis"
557
 
558
- #: inc/admin/admin.php:1509
559
  msgid "eg: https://pinterest.com/wpbuy/"
560
  msgstr "ex: https://pinterest.com/wpbuy/"
561
 
562
- #: inc/admin/admin.php:1519
563
  msgid "eg: https://www.instagram.com/your-name/"
564
  msgstr "ex: https://www.instagram.com/your-name/"
565
 
566
- #: inc/admin/admin.php:1529
567
  msgid "eg: https://www.youtube.com/channel/UCpQzarWu55UzCIH7-OW6pwA"
568
  msgstr "ex: https://www.youtube.com/channel/UCpQzarWu55UzCIH7-OW6pwA"
569
 
570
- #: inc/admin/admin.php:1539
571
  msgid "eg: https://www.linkedin.com/in/benjamin-denis-70672b3b"
572
  msgstr "ex: https://www.linkedin.com/in/benjamin-denis-70672b3b"
573
 
574
- #: inc/admin/admin.php:1549
575
  msgid "eg: https://myspace.com/your-page"
576
  msgstr "ex: https://myspace.com/your-page"
577
 
578
- #: inc/admin/admin.php:1559
579
  msgid "eg: https://soundcloud.com/michaelmccannmusic"
580
  msgstr "ex: https://soundcloud.com/michaelmccannmusic"
581
 
582
- #: inc/admin/admin.php:1569
583
  msgid "eg: https://your-site.tumblr.com"
584
  msgstr "ex: https://your-site.tumblr.com"
585
 
586
- #: inc/admin/admin.php:1586
587
  msgid "Enable OG data"
588
  msgstr "Activer les données OG"
589
 
590
- #: inc/admin/admin.php:1638
591
  msgid "Enable Twitter card"
592
  msgstr "Activer Twitter Card"
593
 
594
- #: inc/admin/admin.php:1669
595
  msgid "Default"
596
  msgstr "Défaut"
597
 
598
- #: inc/admin/admin.php:1672
599
  msgid "Large"
600
  msgstr "Grande"
601
 
602
- #: inc/functions/options-import-export.php:42
 
 
 
 
 
 
603
  msgid "Please upload a valid .json file"
604
  msgstr "Veuillez uploader un fichier JSON valide"
605
 
606
- #: inc/functions/options-import-export.php:46
607
  msgid "Please upload a file to import"
608
  msgstr "Uploader un fichier à importer SVP"
609
 
610
- #: seopress.php:130
611
  msgid "Settings"
612
  msgstr "Paramètres"
613
 
 
 
 
 
 
 
 
614
  #~ msgid "Login"
615
  #~ msgstr "Ecran de connexion"
616
 
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-30 20:32+0200\n"
6
+ "PO-Revision-Date: 2016-08-30 20:34+0200\n"
7
  "Last-Translator: \n"
8
  "Language-Team: Benjamin DENIS <contact@seopress.org>\n"
9
  "Language: fr_FR\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
+ #: inc/admin/admin-metaboxes.php:11 inc/admin/admin.php:267
21
  msgid "SEOPress"
22
  msgstr "SEOPress"
23
 
24
+ #: inc/admin/admin-metaboxes.php:79
25
  msgid "Titles settings"
26
  msgstr "Paramètres de titres"
27
 
28
+ #: inc/admin/admin-metaboxes.php:80 inc/admin/admin.php:37
29
+ #: inc/admin/admin.php:67 inc/admin/admin.php:180 inc/admin/admin.php:358
30
  msgid "Advanced"
31
  msgstr "Avancé"
32
 
33
+ #: inc/admin/admin-metaboxes.php:81 inc/admin/admin.php:36
34
+ #: inc/admin/admin.php:348
35
  msgid "Social"
36
  msgstr "Social"
37
 
38
+ #: inc/admin/admin-metaboxes.php:82
39
+ msgid "Redirections"
40
+ msgstr "Redirections"
41
+
42
+ #: inc/admin/admin-metaboxes.php:88
43
  msgid "Title"
44
  msgstr "Titre"
45
 
46
+ #: inc/admin/admin-metaboxes.php:89
47
  msgid "Enter your title"
48
  msgstr "Entrez votre titre"
49
 
50
+ #: inc/admin/admin-metaboxes.php:93 inc/admin/admin-metaboxes.php:101
51
+ msgid "(maximum recommended limit)"
52
+ msgstr "(limite maximale recommandée)"
53
+
54
+ #: inc/admin/admin-metaboxes.php:96 inc/admin/admin.php:443
55
  msgid "Meta description"
56
  msgstr "Meta description"
57
 
58
+ #: inc/admin/admin-metaboxes.php:97
59
  msgid "Enter your meta description"
60
  msgstr "Entrez votre méta description"
61
 
62
+ #: inc/admin/admin-metaboxes.php:106
 
 
 
 
63
  msgid "Google Snippet Preview"
64
  msgstr "Google Snippet Preview"
65
 
66
+ #: inc/admin/admin-metaboxes.php:107
67
  msgid "This is what your page will look like in Google search results"
68
  msgstr ""
69
  "Voilà à quoi ressemblera votre page dans les résultats de recherche Google"
70
 
71
+ #: inc/admin/admin-metaboxes.php:123 inc/admin/admin.php:593
72
+ #: inc/admin/admin.php:1061 inc/admin/admin.php:1153 inc/admin/admin.php:1334
73
  msgid "noindex"
74
  msgstr "noindex"
75
 
76
+ #: inc/admin/admin-metaboxes.php:129 inc/admin/admin.php:601
77
+ #: inc/admin/admin.php:1080 inc/admin/admin.php:1172 inc/admin/admin.php:1351
78
  msgid "nofollow"
79
  msgstr "nofollow"
80
 
81
+ #: inc/admin/admin-metaboxes.php:135 inc/admin/admin.php:609
82
+ #: inc/admin/admin.php:1368
83
  msgid "noodp"
84
  msgstr "noodp"
85
 
86
+ #: inc/admin/admin-metaboxes.php:141 inc/admin/admin.php:617
87
+ #: inc/admin/admin.php:1385
88
  msgid "noimageindex"
89
  msgstr "noimageindex"
90
 
91
+ #: inc/admin/admin-metaboxes.php:147 inc/admin/admin.php:625
92
+ #: inc/admin/admin.php:1402
93
  msgid "noarchive"
94
  msgstr "noarchive"
95
 
96
+ #: inc/admin/admin-metaboxes.php:153 inc/admin/admin.php:633
97
+ #: inc/admin/admin.php:1419
98
  msgid "nosnippet"
99
  msgstr "nosnippet"
100
 
101
+ #: inc/admin/admin-metaboxes.php:157
102
  msgid "Canonical URL"
103
  msgstr "URL Canonique"
104
 
105
+ #: inc/admin/admin-metaboxes.php:158
106
+ msgid "Default value: "
107
+ msgstr "Valeur par défaut: "
108
 
109
+ #: inc/admin/admin-metaboxes.php:164
110
  msgid "Facebook Title"
111
  msgstr "Titre Facebook"
112
 
113
+ #: inc/admin/admin-metaboxes.php:165
114
  msgid "Enter your Facebook title"
115
  msgstr "Entrez votre titre Facebook"
116
 
117
+ #: inc/admin/admin-metaboxes.php:168
118
  msgid "Facebook description"
119
  msgstr "Description Facebook"
120
 
121
+ #: inc/admin/admin-metaboxes.php:169
122
  msgid "Enter your Facebook description"
123
  msgstr "Entrez votre description Facebook"
124
 
125
+ #: inc/admin/admin-metaboxes.php:172
126
  msgid "Facebook Thumbnail"
127
  msgstr "Miniature Facebook"
128
 
129
+ #: inc/admin/admin-metaboxes.php:173 inc/admin/admin-metaboxes.php:188
130
+ #: inc/admin/admin.php:1691 inc/admin/admin.php:1743
131
  msgid "Select your default thumbnail"
132
  msgstr "Sélectionnez votre miniature par défaut"
133
 
134
+ #: inc/admin/admin-metaboxes.php:174 inc/admin/admin-metaboxes.php:189
135
+ #: inc/admin/admin.php:1561 inc/admin/admin.php:1693 inc/admin/admin.php:1745
136
  msgid "Upload an Image"
137
  msgstr "Uploadez une image"
138
 
139
+ #: inc/admin/admin-metaboxes.php:179
140
  msgid "Twitter Title"
141
  msgstr "Titre Twitter"
142
 
143
+ #: inc/admin/admin-metaboxes.php:180
144
  msgid "Enter your Twitter title"
145
  msgstr "Entrez votre titre Twitter"
146
 
147
+ #: inc/admin/admin-metaboxes.php:183
148
  msgid "Twitter description"
149
  msgstr "Description Twitter"
150
 
151
+ #: inc/admin/admin-metaboxes.php:184
152
  msgid "Enter your Twitter description"
153
  msgstr "Entrez votre description Twitter"
154
 
155
+ #: inc/admin/admin-metaboxes.php:187
156
  msgid "Twitter Thumbnail"
157
  msgstr "Miniature Twitter"
158
 
159
+ #: inc/admin/admin-metaboxes.php:196
160
+ msgid "Enable redirection?"
161
+ msgstr "Activer la redirection ?"
162
+
163
+ #: inc/admin/admin-metaboxes.php:200
164
+ msgid "URL redirection"
165
+ msgstr "URL de redirection"
166
+
167
+ #: inc/admin/admin-metaboxes.php:202
168
+ msgid "301"
169
+ msgstr "301"
170
+
171
+ #: inc/admin/admin-metaboxes.php:203
172
+ msgid "302"
173
+ msgstr "302"
174
+
175
+ #: inc/admin/admin-metaboxes.php:204
176
+ msgid "307"
177
+ msgstr "307"
178
+
179
+ #: inc/admin/admin-metaboxes.php:206
180
+ msgid "Enter your URL"
181
+ msgstr "Saisissez votre URL"
182
+
183
+ #: inc/admin/admin-metaboxes.php:209 inc/admin/admin-metaboxes.php:211
184
+ msgid "Test your URL"
185
+ msgstr "Tester votre URL"
186
+
187
  #: inc/admin/admin.php:34
188
  msgid "Titles & Metas"
189
  msgstr "Titres et Métas"
190
 
191
+ #: inc/admin/admin.php:35 inc/admin/admin.php:338
192
  msgid "XML Sitemap"
193
  msgstr "Sitemap XML"
194
 
195
+ #: inc/admin/admin.php:38
196
  msgid "Import / Export / Reset settings"
197
  msgstr "Import / Export / Réinitialisation des paramètres"
198
 
199
+ #: inc/admin/admin.php:38 inc/admin/admin.php:370
200
  msgid "Import / Export / Reset"
201
  msgstr "Importer / Exporter / Réinitialiser"
202
 
203
+ #: inc/admin/admin.php:48
204
  msgid ""
205
  "Discourage search engines from indexing this site is <strong>ON!</strong> "
206
  "None of the following settings will be applied."
208
  "Décourager les moteurs de recherche d’indexer ce site est <strong>actif !</"
209
  "strong> Aucun des paramètres suivants ne s’appliqueront."
210
 
211
+ #: inc/admin/admin.php:49
212
  msgid "Change this settings"
213
  msgstr "Changer ce paramètre"
214
 
215
+ #: inc/admin/admin.php:63
216
  msgid "Home"
217
  msgstr "Accueil"
218
 
219
+ #: inc/admin/admin.php:64
220
  msgid "Single Post Types"
221
  msgstr "Single Post Types"
222
 
223
+ #: inc/admin/admin.php:65 inc/admin/admin.php:106
224
  msgid "Taxonomies"
225
  msgstr "Taxonomies"
226
 
227
+ #: inc/admin/admin.php:66
228
  msgid "Archives"
229
  msgstr "Archives"
230
 
231
+ #: inc/admin/admin.php:104
232
  msgid "General"
233
  msgstr "Général"
234
 
235
+ #: inc/admin/admin.php:105
236
  msgid "Post Types"
237
  msgstr "Types d'article"
238
 
239
+ #: inc/admin/admin.php:141
240
  msgid "Knowledge Graph"
241
  msgstr "Knowledge Graph"
242
 
243
+ #: inc/admin/admin.php:142
244
  msgid "Your social accounts"
245
  msgstr "Vos comptes sociaux"
246
 
247
+ #: inc/admin/admin.php:143
248
  msgid "Facebook"
249
  msgstr "Facebook"
250
 
251
+ #: inc/admin/admin.php:144
252
  msgid "Twitter"
253
  msgstr "Twitter"
254
 
255
+ #: inc/admin/admin.php:204
256
  msgid "Import / Export Settings"
257
  msgstr "Paramètres Import / Export"
258
 
259
+ #: inc/admin/admin.php:205
260
  msgid "Import / Export SEOPress settings from site to site"
261
  msgstr "Importer / Exporter les paramètres SEOPress d'un site à un autre"
262
 
263
+ #: inc/admin/admin.php:208
264
  msgid "Export Settings"
265
  msgstr "Exporter Paramètres"
266
 
267
+ #: inc/admin/admin.php:210
268
  msgid ""
269
  "Export the plugin settings for this site as a .json file. This allows you to "
270
  "easily import the configuration into another site."
273
  "vous permet d'importer facilement votre configuration dans un autre site "
274
  "WordPress."
275
 
276
+ #: inc/admin/admin.php:215
277
  msgid "Export"
278
  msgstr "Exporter"
279
 
280
+ #: inc/admin/admin.php:222
281
  msgid "Import Settings"
282
  msgstr "Importer Paramètres"
283
 
284
+ #: inc/admin/admin.php:224
285
  msgid ""
286
  "Import the plugin settings from a .json file. This file can be obtained by "
287
  "exporting the settings on another site using the form above."
290
  "être obtenu en exportant les paramètres depuis un autre site en utilisant le "
291
  "formulaire ci-dessus."
292
 
293
+ #: inc/admin/admin.php:232
294
  msgid "Import"
295
  msgstr "Importer"
296
 
297
+ #: inc/admin/admin.php:239
298
  msgid "Reset All Settings"
299
  msgstr "Tout réinitialiser"
300
 
301
+ #: inc/admin/admin.php:241
302
  msgid ""
303
  "<strong>WARNING:</strong> Delete all options related to SEOPress in your "
304
  "database."
306
  "<strong>AVERTISSEMENT:</strong> Supprime toutes les options liées à SEOPress "
307
  "de votre base de données."
308
 
309
+ #: inc/admin/admin.php:246
310
  msgid "Reset settings"
311
  msgstr "Réinitialiser les paramètres"
312
 
313
+ #: inc/admin/admin.php:271
314
  msgid "PRO"
315
  msgstr "PRO"
316
 
317
+ #: inc/admin/admin.php:281
318
  msgid "The ultimate plugin to optimize your SEO!"
319
  msgstr "Le plugin ultime pour optimiser votre SEO !"
320
 
321
+ #: inc/admin/admin.php:284
322
  msgid "You like SEOPress? Don't forget to rate it 5 stars!"
323
  msgstr "Vous aimez SEOPress ? N'oubliez pas de nous noter 5 étoiles !"
324
 
325
+ #: inc/admin/admin.php:313
326
  msgid "Follow us on Twitter!"
327
  msgstr "Suivez-nous sur Twitter !"
328
 
329
+ #: inc/admin/admin.php:315
330
  msgid "Our website"
331
  msgstr "Notre site web"
332
 
333
+ #: inc/admin/admin.php:317
334
  msgid "Knowledge base"
335
  msgstr "Base de connaissances"
336
 
337
+ #: inc/admin/admin.php:328
338
  msgid "Titles & metas"
339
  msgstr "Titres et Métas"
340
 
341
+ #: inc/admin/admin.php:329
342
  msgid "Manage all your titles & metas"
343
  msgstr "Gérer tous vos titres et métas"
344
 
345
+ #: inc/admin/admin.php:330 inc/admin/admin.php:340 inc/admin/admin.php:350
346
+ #: inc/admin/admin.php:360 inc/admin/admin.php:372
347
  msgid "Manage"
348
  msgstr "Gérer"
349
 
350
+ #: inc/admin/admin.php:339
351
  msgid "Manage your XML Sitemap"
352
  msgstr "Gérer votre Sitemap XML"
353
 
354
+ #: inc/admin/admin.php:349
355
  msgid "Open Graph, Twitter Card, Google Knowledge Graph and more..."
356
  msgstr "Open Graph, Twitter Card, Google Knowledge Graph et plus..."
357
 
358
+ #: inc/admin/admin.php:359
359
+ msgid "Advanced SEO options for advanced users!"
360
+ msgstr "Options SEO avancées pour utilisateurs avancés !"
361
+
362
+ #: inc/admin/admin.php:371
363
  msgid "Import / export SEOPress settings from site to site."
364
  msgstr "Importer / Exporter les paramètres d'un site à un autre"
365
 
366
+ #: inc/admin/admin.php:435
367
  msgid "Site title"
368
  msgstr "Titre du site"
369
 
370
+ #: inc/admin/admin.php:650 inc/admin/admin.php:1436
371
  msgid "Enable XML Sitemap"
372
  msgstr "Activez le Sitemap XML"
373
 
374
+ #: inc/admin/admin.php:666
375
  msgid "Check to INCLUDE Post Types"
376
  msgstr "Cochez pour INCLURE les Types d'article"
377
 
378
+ #: inc/admin/admin.php:682
379
  msgid "Check to INCLUDE Taxonomies"
380
  msgstr "Cochez pour INCLURE les Taxonomies"
381
 
382
+ #: inc/admin/admin.php:699
383
  msgid "Person or organization"
384
  msgstr "Personne ou Organisation"
385
 
386
+ #: inc/admin/admin.php:707
387
  msgid "Your name/organization"
388
  msgstr "Votre nom/organisation"
389
 
390
+ #: inc/admin/admin.php:715
391
  msgid "Your photo / organization logo"
392
  msgstr "Votre photo / logo"
393
 
394
+ #: inc/admin/admin.php:732
395
  msgid "Facebook Page URL"
396
  msgstr "URL de la page Facebook"
397
 
398
+ #: inc/admin/admin.php:740
399
  msgid "Twitter Username"
400
  msgstr "Compte utilisateur Twitter"
401
 
402
+ #: inc/admin/admin.php:748
403
  msgid "Google + URL"
404
  msgstr "URL Google +"
405
 
406
+ #: inc/admin/admin.php:756
407
  msgid "Pinterest URL"
408
  msgstr "URL Pinterest"
409
 
410
+ #: inc/admin/admin.php:764
411
  msgid "Instagram URL"
412
  msgstr "Instagram URL"
413
 
414
+ #: inc/admin/admin.php:772
415
  msgid "YouTube URL"
416
  msgstr "URL YouTube"
417
 
418
+ #: inc/admin/admin.php:780
419
  msgid "LinkedIn URL"
420
  msgstr "LinkedIn URL"
421
 
422
+ #: inc/admin/admin.php:788
423
  msgid "MySpace URL"
424
  msgstr "URL MySpace"
425
 
426
+ #: inc/admin/admin.php:796
427
  msgid "Soundcloud URL"
428
  msgstr "URL Soundcloud"
429
 
430
+ #: inc/admin/admin.php:804
431
  msgid "Tumblr URL"
432
  msgstr "URL Tumblr"
433
 
434
+ #: inc/admin/admin.php:821
435
  msgid "Enable Open Graph Data"
436
  msgstr "Activez les données Open Graph"
437
 
438
+ #: inc/admin/admin.php:829
439
  msgid "Select a default image"
440
  msgstr "Sélectionnez une image par défaut"
441
 
442
+ #: inc/admin/admin.php:837
443
  msgid "Facebook Admin ID"
444
  msgstr "Facebook Admin ID"
445
 
446
+ #: inc/admin/admin.php:845
447
  msgid "Facebook App ID"
448
  msgstr "Facebook App ID"
449
 
450
+ #: inc/admin/admin.php:862
451
  msgid "Enable Twitter Card"
452
  msgstr "Activez Twitter Card"
453
 
454
+ #: inc/admin/admin.php:870
455
  msgid "Default Twitter Image"
456
  msgstr "Image Twitter par défaut"
457
 
458
+ #: inc/admin/admin.php:878
459
  msgid "Image size for Twitter Summary card"
460
  msgstr "Taille d'image pour Twitter Summary Card"
461
 
462
+ #: inc/admin/admin.php:894
463
+ msgid ""
464
+ "Redirect attachment pages to post parent (if none, redirect to homepage)"
465
+ msgstr ""
466
+ "Rediriger les pages de pièces jointes vers le post parent (si aucun, "
467
+ "rediriger vers page d'accueil)"
468
+
469
+ #: inc/admin/admin.php:925
470
  msgid "<p>Customize your titles & metas for homepage</p>"
471
  msgstr "<p>Personnalisez vos titres et métas pour l'accueil</p>"
472
 
473
+ #: inc/admin/admin.php:930
474
  msgid "<p>Customize your titles & metas for Single Custom Post Types</p>"
475
  msgstr ""
476
  "<p>Personnalisez vos titres et métas pour les singles des Types d'article</p>"
477
 
478
+ #: inc/admin/admin.php:935
479
  msgid "<p>Customize your metas for all pages</p>"
480
  msgstr "<p>Personnalisez vos métas pour toutes les pages</p>"
481
 
482
+ #: inc/admin/admin.php:940
483
  msgid "<p>Customize your metas for all taxonomies archives</p>"
484
  msgstr "<p>Personnalisez vos métas pour toutes les archives de taxonomies</p>"
485
 
486
+ #: inc/admin/admin.php:945
487
  msgid "<p>Customize your metas for all archives</p>"
488
  msgstr "<p>Personnalisez vos métas pour les archives</p>"
489
 
490
+ #: inc/admin/admin.php:950
491
  msgid "<p>Enable your Sitemap</p>"
492
  msgstr "<p>Activez votre Sitemap</p>"
493
 
494
+ #: inc/admin/admin.php:951
495
  msgid ""
496
  "To view your sitemap, enable permalinks (not default one), and save settings "
497
  "to flush them."
499
  "Pour voir votre sitemap, activez les permaliens (pas ceux par défaut), et "
500
  "sauvegardez les paramètres pour les mettre à jour."
501
 
502
+ #: inc/admin/admin.php:954
503
  msgid "View your sitemap"
504
  msgstr "Voir votre sitemap"
505
 
506
+ #: inc/admin/admin.php:959
507
  msgid "<p>Include / Exclude Post Types</p>"
508
  msgstr "<p>Inclure / Exclure les Types d'article</p>"
509
 
510
+ #: inc/admin/admin.php:964
511
  msgid "<p>Include / Exclude Taxonomies</p>"
512
  msgstr "<p>Inclure / Exclure les Taxonomies</p>"
513
 
514
+ #: inc/admin/admin.php:969
515
  msgid "<p>Configure Google Knowledge Graph</p>"
516
  msgstr "<p>Configurer Google Knowledge Graph</p>"
517
 
518
+ #: inc/admin/admin.php:974
519
  msgid "<p>Link your site with your social accounts</p>"
520
  msgstr "<p>Lier votre site à vos comptes sociaux</p>"
521
 
522
+ #: inc/admin/admin.php:979
523
  msgid "<p>Manage Open Graph datas</p>"
524
  msgstr "<p>Gérer l'Open Graph datas</p>"
525
 
526
+ #: inc/admin/admin.php:984
527
  msgid "<p>Manage your Twitter card</p>"
528
  msgstr "<p>Gérer votre Twitter card</p>"
529
 
530
+ #: inc/admin/admin.php:989
531
+ msgid "<p>Advanced SEO options</p>"
532
+ msgstr "<p>Options avancées de SEO</p>"
533
+
534
+ #: inc/admin/admin.php:1000
535
  msgid "My awesome website"
536
  msgstr "Mon super site"
537
 
538
+ #: inc/admin/admin.php:1010
539
  msgid "This is cool website about Wookiees"
540
  msgstr "Un site cool sur les Wookies"
541
 
542
+ #: inc/admin/admin.php:1027 inc/admin/admin.php:1119 inc/admin/admin.php:1187
543
+ #: inc/admin/admin.php:1215 inc/admin/admin.php:1243 inc/admin/admin.php:1271
544
+ #: inc/admin/admin.php:1299
545
  msgid "Title template"
546
  msgstr "Template de Titre"
547
 
548
+ #: inc/admin/admin.php:1040 inc/admin/admin.php:1132 inc/admin/admin.php:1200
549
+ #: inc/admin/admin.php:1228 inc/admin/admin.php:1256 inc/admin/admin.php:1284
550
+ #: inc/admin/admin.php:1312
551
  msgid "Meta description template"
552
  msgstr "Template de Méta Description"
553
 
554
+ #: inc/admin/admin.php:1099
555
+ msgid "Display date in Google search results?"
556
+ msgstr "Afficher la date dans les résultats de recherche Google ?"
557
+
558
+ #: inc/admin/admin.php:1185
559
  msgid "Author archives"
560
  msgstr "Archives de l'auteur"
561
 
562
+ #: inc/admin/admin.php:1213
563
  msgid "Date archives"
564
  msgstr "Archives par date"
565
 
566
+ #: inc/admin/admin.php:1241
567
  msgid "Search archives"
568
  msgstr "Archives de recherche"
569
 
570
+ #: inc/admin/admin.php:1269
571
  msgid "404 archives"
572
  msgstr "Page 404"
573
 
574
+ #: inc/admin/admin.php:1297
575
  msgid "Paged archives"
576
  msgstr "Archives paginées"
577
 
578
+ #: inc/admin/admin.php:1475 inc/admin/admin.php:1515
579
  msgid "Include"
580
  msgstr "Inclure"
581
 
582
+ #: inc/admin/admin.php:1534
583
  msgid "Person"
584
  msgstr "Personne"
585
 
586
+ #: inc/admin/admin.php:1537
587
  msgid "Organization"
588
  msgstr "Organisation"
589
 
590
+ #: inc/admin/admin.php:1548
591
  msgid "eg: Apple"
592
  msgstr "ex: Apple"
593
 
594
+ #: inc/admin/admin.php:1559
595
  msgid "Select your logo"
596
  msgstr "Sélectionnez votre logo"
597
 
598
+ #: inc/admin/admin.php:1571
599
  msgid "eg: https://www.facebook.com/your-page"
600
  msgstr "ex: https://www.facebook.com/your-page"
601
 
602
+ #: inc/admin/admin.php:1581
603
  msgid "eg: @wpcloudy"
604
  msgstr "ex: @wpcloudy"
605
 
606
+ #: inc/admin/admin.php:1591
607
  msgid "eg: https://plus.google.com/+BenjaminDenis"
608
  msgstr "ex: https://plus.google.com/+BenjaminDenis"
609
 
610
+ #: inc/admin/admin.php:1601
611
  msgid "eg: https://pinterest.com/wpbuy/"
612
  msgstr "ex: https://pinterest.com/wpbuy/"
613
 
614
+ #: inc/admin/admin.php:1611
615
  msgid "eg: https://www.instagram.com/your-name/"
616
  msgstr "ex: https://www.instagram.com/your-name/"
617
 
618
+ #: inc/admin/admin.php:1621
619
  msgid "eg: https://www.youtube.com/channel/UCpQzarWu55UzCIH7-OW6pwA"
620
  msgstr "ex: https://www.youtube.com/channel/UCpQzarWu55UzCIH7-OW6pwA"
621
 
622
+ #: inc/admin/admin.php:1631
623
  msgid "eg: https://www.linkedin.com/in/benjamin-denis-70672b3b"
624
  msgstr "ex: https://www.linkedin.com/in/benjamin-denis-70672b3b"
625
 
626
+ #: inc/admin/admin.php:1641
627
  msgid "eg: https://myspace.com/your-page"
628
  msgstr "ex: https://myspace.com/your-page"
629
 
630
+ #: inc/admin/admin.php:1651
631
  msgid "eg: https://soundcloud.com/michaelmccannmusic"
632
  msgstr "ex: https://soundcloud.com/michaelmccannmusic"
633
 
634
+ #: inc/admin/admin.php:1661
635
  msgid "eg: https://your-site.tumblr.com"
636
  msgstr "ex: https://your-site.tumblr.com"
637
 
638
+ #: inc/admin/admin.php:1678
639
  msgid "Enable OG data"
640
  msgstr "Activer les données OG"
641
 
642
+ #: inc/admin/admin.php:1730
643
  msgid "Enable Twitter card"
644
  msgstr "Activer Twitter Card"
645
 
646
+ #: inc/admin/admin.php:1761
647
  msgid "Default"
648
  msgstr "Défaut"
649
 
650
+ #: inc/admin/admin.php:1764
651
  msgid "Large"
652
  msgstr "Grande"
653
 
654
+ #: inc/admin/admin.php:1782
655
+ msgid "Redirect attachment pages to post parent (or homepage if none)"
656
+ msgstr ""
657
+ "Rediriger les pages de pièces jointes vers le post parent (si aucun, "
658
+ "rediriger vers page d'accueil)"
659
+
660
+ #: inc/functions/options-import-export.php:43
661
  msgid "Please upload a valid .json file"
662
  msgstr "Veuillez uploader un fichier JSON valide"
663
 
664
+ #: inc/functions/options-import-export.php:47
665
  msgid "Please upload a file to import"
666
  msgstr "Uploader un fichier à importer SVP"
667
 
668
+ #: seopress.php:134
669
  msgid "Settings"
670
  msgstr "Paramètres"
671
 
672
+ #: seopress.php:135
673
+ msgid "SEOPress.org"
674
+ msgstr "SEOPress.org"
675
+
676
+ #~ msgid "Enter your Canonical URL"
677
+ #~ msgstr "Entrez votre URL canonique"
678
+
679
  #~ msgid "Login"
680
  #~ msgstr "Ecran de connexion"
681
 
languages/wp-seopress.mo CHANGED
Binary file
languages/wp-seopress.po CHANGED
@@ -2,8 +2,8 @@ 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-24 20:00+0200\n"
6
- "PO-Revision-Date: 2016-08-24 20:00+0200\n"
7
  "Last-Translator: \n"
8
  "Language-Team: Benjamin DENIS <contact@seopress.org>\n"
9
  "Language: en\n"
@@ -15,582 +15,640 @@ msgstr ""
15
  "X-Poedit-Basepath: ..\n"
16
  "X-Poedit-SearchPath-0: .\n"
17
 
18
- #: inc/admin/admin-metaboxes.php:11 inc/admin/admin.php:233
19
  msgid "SEOPress"
20
  msgstr ""
21
 
22
- #: inc/admin/admin-metaboxes.php:50
23
  msgid "Titles settings"
24
  msgstr ""
25
 
26
- #: inc/admin/admin-metaboxes.php:51 inc/admin/admin.php:66
 
27
  msgid "Advanced"
28
  msgstr ""
29
 
30
- #: inc/admin/admin-metaboxes.php:52 inc/admin/admin.php:36
31
- #: inc/admin/admin.php:314
32
  msgid "Social"
33
  msgstr ""
34
 
35
- #: inc/admin/admin-metaboxes.php:58
 
 
 
 
36
  msgid "Title"
37
  msgstr ""
38
 
39
- #: inc/admin/admin-metaboxes.php:59
40
  msgid "Enter your title"
41
  msgstr ""
42
 
43
- #: inc/admin/admin-metaboxes.php:62 inc/admin/admin.php:391
44
- msgid "Meta description"
45
  msgstr ""
46
 
47
- #: inc/admin/admin-metaboxes.php:63
48
- msgid "Enter your meta description"
49
  msgstr ""
50
 
51
- #: inc/admin/admin-metaboxes.php:67
52
- msgid "(maximum recommended limit)"
53
  msgstr ""
54
 
55
- #: inc/admin/admin-metaboxes.php:72
56
  msgid "Google Snippet Preview"
57
  msgstr ""
58
 
59
- #: inc/admin/admin-metaboxes.php:73
60
  msgid "This is what your page will look like in Google search results"
61
  msgstr ""
62
 
63
- #: inc/admin/admin-metaboxes.php:84 inc/admin/admin.php:541
64
- #: inc/admin/admin.php:988 inc/admin/admin.php:1061 inc/admin/admin.php:1242
65
  msgid "noindex"
66
  msgstr ""
67
 
68
- #: inc/admin/admin-metaboxes.php:90 inc/admin/admin.php:549
69
- #: inc/admin/admin.php:1007 inc/admin/admin.php:1080 inc/admin/admin.php:1259
70
  msgid "nofollow"
71
  msgstr ""
72
 
73
- #: inc/admin/admin-metaboxes.php:96 inc/admin/admin.php:557
74
- #: inc/admin/admin.php:1276
75
  msgid "noodp"
76
  msgstr ""
77
 
78
- #: inc/admin/admin-metaboxes.php:102 inc/admin/admin.php:565
79
- #: inc/admin/admin.php:1293
80
  msgid "noimageindex"
81
  msgstr ""
82
 
83
- #: inc/admin/admin-metaboxes.php:108 inc/admin/admin.php:573
84
- #: inc/admin/admin.php:1310
85
  msgid "noarchive"
86
  msgstr ""
87
 
88
- #: inc/admin/admin-metaboxes.php:114 inc/admin/admin.php:581
89
- #: inc/admin/admin.php:1327
90
  msgid "nosnippet"
91
  msgstr ""
92
 
93
- #: inc/admin/admin-metaboxes.php:118
94
  msgid "Canonical URL"
95
  msgstr ""
96
 
97
- #: inc/admin/admin-metaboxes.php:119
98
- msgid "Enter your Canonical URL"
99
  msgstr ""
100
 
101
- #: inc/admin/admin-metaboxes.php:125
102
  msgid "Facebook Title"
103
  msgstr ""
104
 
105
- #: inc/admin/admin-metaboxes.php:126
106
  msgid "Enter your Facebook title"
107
  msgstr ""
108
 
109
- #: inc/admin/admin-metaboxes.php:129
110
  msgid "Facebook description"
111
  msgstr ""
112
 
113
- #: inc/admin/admin-metaboxes.php:130
114
  msgid "Enter your Facebook description"
115
  msgstr ""
116
 
117
- #: inc/admin/admin-metaboxes.php:133
118
  msgid "Facebook Thumbnail"
119
  msgstr ""
120
 
121
- #: inc/admin/admin-metaboxes.php:134 inc/admin/admin-metaboxes.php:149
122
- #: inc/admin/admin.php:1599 inc/admin/admin.php:1651
123
  msgid "Select your default thumbnail"
124
  msgstr ""
125
 
126
- #: inc/admin/admin-metaboxes.php:135 inc/admin/admin-metaboxes.php:150
127
- #: inc/admin/admin.php:1469 inc/admin/admin.php:1601 inc/admin/admin.php:1653
128
  msgid "Upload an Image"
129
  msgstr ""
130
 
131
- #: inc/admin/admin-metaboxes.php:140
132
  msgid "Twitter Title"
133
  msgstr ""
134
 
135
- #: inc/admin/admin-metaboxes.php:141
136
  msgid "Enter your Twitter title"
137
  msgstr ""
138
 
139
- #: inc/admin/admin-metaboxes.php:144
140
  msgid "Twitter description"
141
  msgstr ""
142
 
143
- #: inc/admin/admin-metaboxes.php:145
144
  msgid "Enter your Twitter description"
145
  msgstr ""
146
 
147
- #: inc/admin/admin-metaboxes.php:148
148
  msgid "Twitter Thumbnail"
149
  msgstr ""
150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  #: inc/admin/admin.php:34
152
  msgid "Titles & Metas"
153
  msgstr ""
154
 
155
- #: inc/admin/admin.php:35 inc/admin/admin.php:304
156
  msgid "XML Sitemap"
157
  msgstr ""
158
 
159
- #: inc/admin/admin.php:37
160
  msgid "Import / Export / Reset settings"
161
  msgstr ""
162
 
163
- #: inc/admin/admin.php:37 inc/admin/admin.php:324
164
  msgid "Import / Export / Reset"
165
  msgstr ""
166
 
167
- #: inc/admin/admin.php:47
168
  msgid ""
169
  "Discourage search engines from indexing this site is <strong>ON!</strong> "
170
  "None of the following settings will be applied."
171
  msgstr ""
172
 
173
- #: inc/admin/admin.php:48
174
  msgid "Change this settings"
175
  msgstr ""
176
 
177
- #: inc/admin/admin.php:62
178
  msgid "Home"
179
  msgstr ""
180
 
181
- #: inc/admin/admin.php:63
182
  msgid "Single Post Types"
183
  msgstr ""
184
 
185
- #: inc/admin/admin.php:64 inc/admin/admin.php:105
186
  msgid "Taxonomies"
187
  msgstr ""
188
 
189
- #: inc/admin/admin.php:65
190
  msgid "Archives"
191
  msgstr ""
192
 
193
- #: inc/admin/admin.php:103
194
  msgid "General"
195
  msgstr ""
196
 
197
- #: inc/admin/admin.php:104
198
  msgid "Post Types"
199
  msgstr ""
200
 
201
- #: inc/admin/admin.php:140
202
  msgid "Knowledge Graph"
203
  msgstr ""
204
 
205
- #: inc/admin/admin.php:141
206
  msgid "Your social accounts"
207
  msgstr ""
208
 
209
- #: inc/admin/admin.php:142
210
  msgid "Facebook"
211
  msgstr ""
212
 
213
- #: inc/admin/admin.php:143
214
  msgid "Twitter"
215
  msgstr ""
216
 
217
- #: inc/admin/admin.php:170
218
  msgid "Import / Export Settings"
219
  msgstr ""
220
 
221
- #: inc/admin/admin.php:171
222
  msgid "Import / Export SEOPress settings from site to site"
223
  msgstr ""
224
 
225
- #: inc/admin/admin.php:174
226
  msgid "Export Settings"
227
  msgstr ""
228
 
229
- #: inc/admin/admin.php:176
230
  msgid ""
231
  "Export the plugin settings for this site as a .json file. This allows you to "
232
  "easily import the configuration into another site."
233
  msgstr ""
234