Google Sitemap by BestWebSoft - Version 2.5

Version Description

  • 21.03.2013 =
  • New: Added ability to create sitemap.xml for multi-sites.
  • Update : We updated plugin for custom WP configuration.
Download this release

Release Info

Developer bestwebsoft
Plugin Icon 128x128 Google Sitemap by BestWebSoft
Version 2.5
Comparing to
See all releases

Code changes from version 2.4 to 2.5

google-sitemap-plugin.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google sitemap plugin
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Plugin to add google sitemap file in google webmaster tools account.
6
  Author: BestWebSoft
7
- Version: 2.4
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
@@ -131,7 +131,11 @@ if( ! function_exists( 'gglstmp_sitemapcreate' ) ) {
131
  }
132
  $loc = $wpdb->get_results( "SELECT ID, post_modified, post_status, post_type, ping_status FROM $wpdb->posts WHERE post_status = 'publish' AND post_type IN (" . $str . ")" );
133
  $xml = new DomDocument('1.0','utf-8');
134
- $xml_stylesheet_path = "wp-content/plugins/google-sitemap-plugin/sitemap.xsl";
 
 
 
 
135
  $xslt = $xml->createProcessingInstruction( 'xml-stylesheet', "type=\"text/xsl\" href=\"$xml_stylesheet_path\"" );
136
  $xml->appendChild($xslt);
137
  $urlset = $xml->appendChild( $xml->createElementNS( 'http://www.sitemaps.org/schemas/sitemap/0.9','urlset' ) );
@@ -150,7 +154,12 @@ if( ! function_exists( 'gglstmp_sitemapcreate' ) ) {
150
  $priority->appendChild( $xml->createTextNode( 1.0 ) );
151
  }
152
  $xml->formatOutput = true;
153
- $xml->save( ABSPATH . 'sitemap.xml' );
 
 
 
 
 
154
  }
155
  }
156
 
@@ -200,9 +209,16 @@ if ( !function_exists ( 'gglstmp_settings_page' ) ) {
200
  global $url_home, $gglstmp_settings, $url, $wpdb;
201
 
202
  $url_robot = ABSPATH . "robots.txt";
203
- $url_sitemap = ABSPATH . "sitemap.xml";
 
 
 
 
 
204
  $message = "";
205
 
 
 
206
  if( isset( $_POST['gglstmp_new'] ) && check_admin_referer( plugin_basename(__FILE__), 'gglstmp_nonce_name' ) ) {
207
  $message = __( "Your sitemap file was created in the root directory of the site. ", 'sitemap' );
208
  gglstmp_sitemapcreate();
@@ -211,7 +227,61 @@ if ( !function_exists ( 'gglstmp_settings_page' ) ) {
211
  $gglstmp_settings = isset( $_REQUEST['gglstmp_settings'] ) ? $_REQUEST['gglstmp_settings'] : array() ;
212
  update_option( 'gglstmp_settings', $gglstmp_settings );
213
  $message .= __( "Options saved." , 'sitemap' );
 
 
 
 
 
 
214
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
215
  $gglstmp_result = $wpdb->get_results( "SELECT post_type FROM ". $wpdb->posts ." WHERE post_type NOT IN ( 'revision', 'attachment', 'nav_menu_item' ) GROUP BY post_type" );
216
  ?>
217
  <div class="wrap">
@@ -227,8 +297,12 @@ if ( !function_exists ( 'gglstmp_settings_page' ) ) {
227
  gglstmp_sitemapcreate();
228
  echo "<p>".__( "Your sitemap file was created in the root directory of the site. ", 'sitemap' ) . "</p>";
229
  }
230
- //========================================== Recreating sitemap file ====================================
231
- echo '<p>'. __( "If you don't want to add this file automatically you may go through", 'sitemap' ) . " <a href=\"https://www.google.com/webmasters/tools/home?hl=en\">". __( "this", 'sitemap' ) . "</a> ". __( "link, sign in, select necessary site, select 'Sitemaps' and type in necessary field", 'sitemap' ) ." - '". $url_home."/sitemap.xml'.</p>";
 
 
 
 
232
  if ( ! function_exists( 'curl_init' ) ) {
233
  echo '<p class="error">'. __( "This hosting doesn't support CURL, so you can't add sitemap file automatically", 'sitemap' ). "</p>";
234
  $curl_exist = 0;
@@ -242,11 +316,20 @@ if ( !function_exists ( 'gglstmp_settings_page' ) ) {
242
  <input type='checkbox' name='gglstmp_new' value="1" /> <label for="gglstmp_new"><?php _e( "I want to create new / update manualy sitemap file", 'sitemap' ); ?></label>
243
  </td>
244
  </tr>
245
- <tr valign="top">
246
- <td colspan="2">
247
- <input type='checkbox' name='gglstmp_checkbox' value="1" /> <label for="gglstmp_checkbox"><?php _e( "I want to add sitemap file path in robots.txt", 'sitemap' );?></label>
248
- </td>
249
- </tr>
 
 
 
 
 
 
 
 
 
250
  <tr valign="top">
251
  <th scope="row" colspan="2"><?php _e( 'Please choose the necessary post types in order to add the links to them in the sitemap:', 'sitemap' ); ?> </th>
252
  </tr>
@@ -283,41 +366,7 @@ if ( !function_exists ( 'gglstmp_settings_page' ) ) {
283
  <?php wp_nonce_field( plugin_basename(__FILE__), 'gglstmp_nonce_name' ); ?>
284
  </form>
285
  </div>
286
- <?php
287
- //============================ Adding location of sitemap file to the robots.txt =============
288
- if( isset( $_POST['gglstmp_checkbox'] ) && check_admin_referer( plugin_basename(__FILE__), 'gglstmp_nonce_name' ) ){
289
- if ( file_exists( $url_robot ) ) {
290
- $fp = fopen( ABSPATH . 'robots.txt', "a+" );
291
- $flag = false;
292
- while ( ($line = fgets($fp)) !== false) {
293
- if ( $line == "Sitemap: " . $url_home . "/sitemap.xml\n" )
294
- $flag = true;
295
- }
296
- if( ! $flag )
297
- fwrite($fp, "\nSitemap: " . $url_home . "/sitemap.xml\n" );
298
- fclose ( $fp );
299
- }
300
- else{
301
- $fp = fopen( ABSPATH . 'robots.txt', "a+" );
302
- fwrite( $fp, "# User-agent: *\n
303
- # Disallow: /wp-admin/\n
304
- # Disallow: /wp-includes/\n
305
- # Disallow: /wp-trackback\n
306
- # Disallow: /wp-feed\n
307
- # Disallow: /wp-comments\n
308
- # Disallow: /wp-content/plugins\n
309
- # Disallow: /wp-content/themes\n
310
- # Disallow: /wp-login.php\n
311
- # Disallow: /wp-register.php\n
312
- # Disallow: /feed\n
313
- # Disallow: /trackback\n
314
- # Disallow: /cgi-bin\n
315
- # Disallow: /comments\n
316
- # Disallow: *?s=
317
- \nSitemap: " . $url_home . "/sitemap.xml" );
318
- fclose ($fp);
319
- }
320
- }
321
  //================================ Different checks for the valid entering data ===================
322
  if( isset( $_POST['gglstmp_menu'] ) && ( ! isset( $_POST['gglstmp_email'] ) || ! isset( $_POST['gglstmp_passwd'] ) || empty( $_POST['gglstmp_email'] ) || empty( $_POST['gglstmp_passwd'] ) ) ) { ?>
323
  <script type = "text/javascript"> alert( "<?php _e( 'You must enter login and password', 'sitemap' ); ?>" ) </script>
@@ -353,7 +402,7 @@ if ( !function_exists ( 'gglstmp_settings_page' ) ) {
353
  $au = isset( $httpParsedResponseAr["Auth"] ) ? $httpParsedResponseAr["Auth"] : false;
354
  if ( ! $au && ( $_POST['gglstmp_email'] ) && ( $_POST['gglstmp_passwd'] ) ) {
355
  ?>
356
- <script type = "text/javascript"> alert( "<?php _e( "Login and password don\'t match, try again, please", 'sitemap' ); ?>" ) </script>
357
  <?php
358
  }
359
  else {
@@ -372,6 +421,24 @@ if ( !function_exists ( 'gglstmp_settings_page' ) ) {
372
  }
373
  }
374
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
375
  //============================================ Function for adding style ====================
376
  if( ! function_exists( 'gglstmp_add_plugin_stylesheet' ) ) {
377
  function gglstmp_add_plugin_stylesheet() {
@@ -493,11 +560,20 @@ if( ! function_exists( 'gglstmp_add_site' ) ) {
493
  if( ! function_exists( 'gglstmp_add_sitemap' ) ) {
494
  function gglstmp_add_sitemap( $au ) {
495
  global $url_home, $url, $url_send_sitemap;
496
- $content = "<atom:entry xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:wt=\"http://schemas.google.com/webmasters/tools/2007\">"
497
- ."<atom:id>" . $url_home . "/sitemap.xml</atom:id>"
498
- ."<atom:category scheme=\"http://schemas.google.com/g/2005#kind\" term=\"http://schemas.google.com/webmasters/tools/2007#sitemap-regular\"/>"
499
- ."<wt:sitemap-type>WEB</wt:sitemap-type>"
500
- ."</atom:entry>";
 
 
 
 
 
 
 
 
 
501
  $hasil1 = gglstmp_curl_funct( $au, $url_send_sitemap . $url . "/sitemaps/", "POST", $content );
502
  }
503
  }
@@ -546,4 +622,6 @@ add_filter( 'plugin_action_links', 'gglstmp_action_links', 10, 2 );
546
 
547
  add_action( 'save_post', 'gglstmp_update_sitemap' );
548
  add_action( 'trashed_post ', 'gglstmp_update_sitemap' );
 
 
549
  ?>
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Plugin to add google sitemap file in google webmaster tools account.
6
  Author: BestWebSoft
7
+ Version: 2.5
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
131
  }
132
  $loc = $wpdb->get_results( "SELECT ID, post_modified, post_status, post_type, ping_status FROM $wpdb->posts WHERE post_status = 'publish' AND post_type IN (" . $str . ")" );
133
  $xml = new DomDocument('1.0','utf-8');
134
+ if ( defined( 'WP_CONTENT_DIR' ) ) {
135
+ $xml_stylesheet_path = basename( WP_CONTENT_DIR ) . "/plugins/google-sitemap-plugin/sitemap.xsl";
136
+ } else {
137
+ $xml_stylesheet_path = "wp-content/plugins/google-sitemap-plugin/sitemap.xsl";
138
+ }
139
  $xslt = $xml->createProcessingInstruction( 'xml-stylesheet', "type=\"text/xsl\" href=\"$xml_stylesheet_path\"" );
140
  $xml->appendChild($xslt);
141
  $urlset = $xml->appendChild( $xml->createElementNS( 'http://www.sitemaps.org/schemas/sitemap/0.9','urlset' ) );
154
  $priority->appendChild( $xml->createTextNode( 1.0 ) );
155
  }
156
  $xml->formatOutput = true;
157
+ if ( is_multisite() ) {
158
+ $home_url = preg_replace( "/[^a-zA-ZА-Яа-я0-9\s]/", "_", str_replace( 'http://', '', home_url() ) );
159
+ $xml->save( ABSPATH . 'sitemap_' . $home_url . '.xml' );
160
+ } else {
161
+ $xml->save( ABSPATH . 'sitemap.xml' );
162
+ }
163
  }
164
  }
165
 
209
  global $url_home, $gglstmp_settings, $url, $wpdb;
210
 
211
  $url_robot = ABSPATH . "robots.txt";
212
+ if ( is_multisite() ) {
213
+ $home_url = preg_replace( "/[^a-zA-ZА-Яа-я0-9\s]/", "_", str_replace( 'http://', '', home_url() ) );
214
+ $url_sitemap = ABSPATH . "sitemap_" . $home_url .".xml";
215
+ } else {
216
+ $url_sitemap = ABSPATH . "sitemap.xml";
217
+ }
218
  $message = "";
219
 
220
+ $gglstmp_robots = get_option( 'gglstmp_robots' );
221
+
222
  if( isset( $_POST['gglstmp_new'] ) && check_admin_referer( plugin_basename(__FILE__), 'gglstmp_nonce_name' ) ) {
223
  $message = __( "Your sitemap file was created in the root directory of the site. ", 'sitemap' );
224
  gglstmp_sitemapcreate();
227
  $gglstmp_settings = isset( $_REQUEST['gglstmp_settings'] ) ? $_REQUEST['gglstmp_settings'] : array() ;
228
  update_option( 'gglstmp_settings', $gglstmp_settings );
229
  $message .= __( "Options saved." , 'sitemap' );
230
+
231
+ if ( !isset( $_POST['gglstmp_checkbox'] ) ) {
232
+ if ( get_option( 'gglstmp_robots' ) )
233
+ update_option( 'gglstmp_robots', 0 );
234
+ $gglstmp_robots = get_option( 'gglstmp_robots' );
235
+ }
236
  }
237
+ //============================ Adding location of sitemap file to the robots.txt =============
238
+ if( isset( $_POST['gglstmp_checkbox'] ) && check_admin_referer( plugin_basename(__FILE__), 'gglstmp_nonce_name' ) ){
239
+ if ( file_exists( $url_robot ) && !is_multisite() ) {
240
+ $fp = fopen( ABSPATH . 'robots.txt', "a+" );
241
+ $flag = false;
242
+ while ( ( $line = fgets( $fp ) ) !== false ) {
243
+ if ( $line == "Sitemap: " . $url_home . "/sitemap.xml" )
244
+ $flag = true;
245
+ }
246
+ if( ! $flag )
247
+ fwrite( $fp, "\nSitemap: " . $url_home . "/sitemap.xml" );
248
+ fclose ( $fp );
249
+ }
250
+ /* else{
251
+ $fp = fopen( ABSPATH . 'robots.txt', "a+" );
252
+ $output = "User-agent: *\n";
253
+ $public = get_option( 'blog_public' );
254
+ if ( '0' == $public ) {
255
+ $output .= "Disallow: /\n";
256
+ } else {
257
+ $site_url = parse_url( site_url() );
258
+ $path = ( !empty( $site_url['path'] ) ) ? $site_url['path'] : '';
259
+ $output .= "Disallow: $path/wp-admin/\n";
260
+ $output .= "Disallow: $path/wp-includes/\n";
261
+ $output .= "#Disallow: $path/wp-trackback/\n";
262
+ $output .= "#Disallow: $path/wp-feed/\n";
263
+ $output .= "#Disallow: $path/wp-comments/\n";
264
+ $output .= "#Disallow: $path/wp-content/plugins\n";
265
+ $output .= "#Disallow: $path/wp-content/themes\n";
266
+ $output .= "#Disallow: $path/wp-login.php\n";
267
+ $output .= "#Disallow: $path/wp-register.php\n";
268
+ $output .= "#Disallow: $path/feed\n";
269
+ $output .= "#Disallow: $path/trackback\n";
270
+ $output .= "#Disallow: $path/cgi-bin\n";
271
+ $output .= "#Disallow: $path/comments\n";
272
+ $output .= "#Disallow: *?s=\n";
273
+ }
274
+ $output .= "Sitemap: " . $url_home . "/sitemap.xml";
275
+ fwrite( $fp, $output );
276
+ fclose ($fp);
277
+ }*/
278
+ if( get_option( 'gglstmp_robots' ) === false )
279
+ add_option( 'gglstmp_robots', 1 );
280
+ else
281
+ update_option( 'gglstmp_robots', 1 );
282
+
283
+ $gglstmp_robots = get_option( 'gglstmp_robots' );
284
+ }
285
  $gglstmp_result = $wpdb->get_results( "SELECT post_type FROM ". $wpdb->posts ." WHERE post_type NOT IN ( 'revision', 'attachment', 'nav_menu_item' ) GROUP BY post_type" );
286
  ?>
287
  <div class="wrap">
297
  gglstmp_sitemapcreate();
298
  echo "<p>".__( "Your sitemap file was created in the root directory of the site. ", 'sitemap' ) . "</p>";
299
  }
300
+ //========================================== Recreating sitemap file ====================================
301
+ if ( is_multisite() ) {
302
+ echo '<p>'. __( "If you don't want to add this file automatically you may go through", 'sitemap' ) . " <a href=\"https://www.google.com/webmasters/tools/home?hl=en\">". __( "this", 'sitemap' ) . "</a> ". __( "link, sign in, select necessary site, select 'Sitemaps' and type in necessary field", 'sitemap' ) ." - '". $url_home."/sitemap_" . $home_url .".xml'.</p>";
303
+ } else {
304
+ echo '<p>'. __( "If you don't want to add this file automatically you may go through", 'sitemap' ) . " <a href=\"https://www.google.com/webmasters/tools/home?hl=en\">". __( "this", 'sitemap' ) . "</a> ". __( "link, sign in, select necessary site, select 'Sitemaps' and type in necessary field", 'sitemap' ) ." - '". $url_home."/sitemap.xml'.</p>";
305
+ }
306
  if ( ! function_exists( 'curl_init' ) ) {
307
  echo '<p class="error">'. __( "This hosting doesn't support CURL, so you can't add sitemap file automatically", 'sitemap' ). "</p>";
308
  $curl_exist = 0;
316
  <input type='checkbox' name='gglstmp_new' value="1" /> <label for="gglstmp_new"><?php _e( "I want to create new / update manualy sitemap file", 'sitemap' ); ?></label>
317
  </td>
318
  </tr>
319
+ <?php if ( is_multisite() ) { ?>
320
+ <tr valign="top">
321
+ <td colspan="2">
322
+ <input type='checkbox' disabled="disabled" name='gglstmp_checkbox' value="1" <?php if( $gglstmp_robots == 1 ) echo 'checked="checked"'; ?>/> <label for="gglstmp_checkbox"><?php _e( "I want to add sitemap file path in robots.txt", 'sitemap' );?></label>
323
+ <p style="color:red"><?php _e( "Since you're using multisiting, the plugin does not allow to add a site map to robots.txt", 'sitemap' ); ?></div>
324
+ </td>
325
+ </tr>
326
+ <?php } else { ?>
327
+ <tr valign="top">
328
+ <td colspan="2">
329
+ <input type='checkbox' name='gglstmp_checkbox' value="1" <?php if( $gglstmp_robots == 1 ) echo 'checked="checked"'; ?>/> <label for="gglstmp_checkbox"><?php _e( "I want to add sitemap file path in robots.txt", 'sitemap' );?></label>
330
+ </td>
331
+ </tr>
332
+ <?php } ?>
333
  <tr valign="top">
334
  <th scope="row" colspan="2"><?php _e( 'Please choose the necessary post types in order to add the links to them in the sitemap:', 'sitemap' ); ?> </th>
335
  </tr>
366
  <?php wp_nonce_field( plugin_basename(__FILE__), 'gglstmp_nonce_name' ); ?>
367
  </form>
368
  </div>
369
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
  //================================ Different checks for the valid entering data ===================
371
  if( isset( $_POST['gglstmp_menu'] ) && ( ! isset( $_POST['gglstmp_email'] ) || ! isset( $_POST['gglstmp_passwd'] ) || empty( $_POST['gglstmp_email'] ) || empty( $_POST['gglstmp_passwd'] ) ) ) { ?>
372
  <script type = "text/javascript"> alert( "<?php _e( 'You must enter login and password', 'sitemap' ); ?>" ) </script>
402
  $au = isset( $httpParsedResponseAr["Auth"] ) ? $httpParsedResponseAr["Auth"] : false;
403
  if ( ! $au && ( $_POST['gglstmp_email'] ) && ( $_POST['gglstmp_passwd'] ) ) {
404
  ?>
405
+ <script type = "text/javascript"> alert( "<?php _e( 'Login and password don\'t match, try again, please', 'sitemap' ); ?>" ) </script>
406
  <?php
407
  }
408
  else {
421
  }
422
  }
423
 
424
+ function gglstmp_robots_add_sitemap( $output, $public ){
425
+ if ( '0' == $public ) {
426
+ return $output;
427
+ } else {
428
+ if( strpos( $output, 'Sitemap' ) === false ) {
429
+ $site_url = parse_url( site_url() );
430
+ $path = ( !empty( $site_url['path'] ) ) ? $site_url['path'] : '';
431
+ if ( is_multisite() ) {
432
+ $home_url = preg_replace( "/[^a-zA-ZА-Яа-я0-9\s]/", "_", str_replace( 'http://', '', home_url() ) );
433
+ $output .= "Sitemap: " . $path . "/sitemap_" . $home_url . ".xml";
434
+ } else {
435
+ $output .= "Sitemap: " . $path . "/sitemap.xml";
436
+ }
437
+ return $output;
438
+ }
439
+ }
440
+ }
441
+
442
  //============================================ Function for adding style ====================
443
  if( ! function_exists( 'gglstmp_add_plugin_stylesheet' ) ) {
444
  function gglstmp_add_plugin_stylesheet() {
560
  if( ! function_exists( 'gglstmp_add_sitemap' ) ) {
561
  function gglstmp_add_sitemap( $au ) {
562
  global $url_home, $url, $url_send_sitemap;
563
+ if ( is_multisite() ) {
564
+ $home_url = preg_replace( "/[^a-zA-ZА-Яа-я0-9\s]/", "_", str_replace( 'http://', '', home_url() ) );
565
+ $content = "<atom:entry xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:wt=\"http://schemas.google.com/webmasters/tools/2007\">"
566
+ ."<atom:id>" . $url_home . "/sitemap_" . $home_url . ".xml</atom:id>"
567
+ ."<atom:category scheme=\"http://schemas.google.com/g/2005#kind\" term=\"http://schemas.google.com/webmasters/tools/2007#sitemap-regular\"/>"
568
+ ."<wt:sitemap-type>WEB</wt:sitemap-type>"
569
+ ."</atom:entry>";
570
+ } else {
571
+ $content = "<atom:entry xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:wt=\"http://schemas.google.com/webmasters/tools/2007\">"
572
+ ."<atom:id>" . $url_home . "/sitemap.xml</atom:id>"
573
+ ."<atom:category scheme=\"http://schemas.google.com/g/2005#kind\" term=\"http://schemas.google.com/webmasters/tools/2007#sitemap-regular\"/>"
574
+ ."<wt:sitemap-type>WEB</wt:sitemap-type>"
575
+ ."</atom:entry>";
576
+ }
577
  $hasil1 = gglstmp_curl_funct( $au, $url_send_sitemap . $url . "/sitemaps/", "POST", $content );
578
  }
579
  }
622
 
623
  add_action( 'save_post', 'gglstmp_update_sitemap' );
624
  add_action( 'trashed_post ', 'gglstmp_update_sitemap' );
625
+ if( get_option( 'gglstmp_robots' ) == 1 )
626
+ add_filter('robots_txt', 'gglstmp_robots_add_sitemap', 10, 2 );
627
  ?>
languages/sitemap-es_ES.mo CHANGED
File without changes
languages/sitemap-es_ES.po CHANGED
File without changes
languages/sitemap-ru_RU.mo CHANGED
Binary file
languages/sitemap-ru_RU.po CHANGED
@@ -2,226 +2,211 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: google-sitemap-plugin\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-01-29 13:21+0200\n"
6
- "PO-Revision-Date: 2013-01-29 13:21+0200\n"
7
- "Last-Translator: zos <zos@bestwebsoft.com>\n"
8
  "Language-Team: bestwebsoft.com <plugin@bestwebsoft.com>\n"
9
- "Language: ru_RU\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
 
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
  "X-Generator: Poedit 1.5.4\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
- #: google-sitemap-plugin.php:79
20
  msgid "Activated plugins"
21
  msgstr "Активированные плагины"
22
 
23
- #: google-sitemap-plugin.php:81 google-sitemap-plugin.php:89
24
- #: google-sitemap-plugin.php:97
 
25
  msgid "Read more"
26
  msgstr "Подробнее..."
27
 
28
- #: google-sitemap-plugin.php:81 google-sitemap-plugin.php:522
 
29
  msgid "Settings"
30
  msgstr "Настройки"
31
 
32
- #: google-sitemap-plugin.php:87
33
  msgid "Installed plugins"
34
  msgstr "Установленные плагины"
35
 
36
- #: google-sitemap-plugin.php:95
37
  msgid "Recommended plugins"
38
  msgstr "Рекомендованные к установке плагины"
39
 
40
- #: google-sitemap-plugin.php:97
41
  msgid "Download"
42
  msgstr "Скачать"
43
 
44
- #: google-sitemap-plugin.php:97
45
  #, php-format
46
  msgid "Install %s"
47
  msgstr "Установлено %s"
48
 
49
- #: google-sitemap-plugin.php:97
50
  msgid "Install now from wordpress.org"
51
  msgstr "Установить с wordpress.org"
52
 
53
- #: google-sitemap-plugin.php:99
54
- msgid ""
55
- "If you have any questions, please contact us via plugin@bestwebsoft.com or "
56
- "fill in our contact form on our site"
57
- msgstr ""
58
- "Если у вас есть какие-то впросы, обращайтесь на plugin@bestwebsoft.com или "
59
- "заполните контактную форму на нашем сайте"
60
 
61
- #: google-sitemap-plugin.php:110
62
  msgid "BWS Plugins"
63
  msgstr "Плагины BWS"
64
 
65
- #: google-sitemap-plugin.php:111
66
  msgid "Google Sitemap Options"
67
  msgstr "Опции карты сайта Google"
68
 
69
- #: google-sitemap-plugin.php:111
70
  msgid "Google Sitemap"
71
  msgstr "Карта сайта Google"
72
 
73
- #: google-sitemap-plugin.php:206 google-sitemap-plugin.php:227
 
74
  msgid "Your sitemap file was created in the root directory of the site. "
75
  msgstr "Карта сайта для вашего сайта создана в корне основной директории."
76
 
77
- #: google-sitemap-plugin.php:212
78
  msgid "Options saved."
79
  msgstr "Опции сохранены."
80
 
81
- #: google-sitemap-plugin.php:218
82
  msgid "Google Sitemap options"
83
  msgstr "Опции карты сайта Google"
84
 
85
- #: google-sitemap-plugin.php:223
86
- msgid ""
87
- "The sitemap file is already exists. If you want to change it for a new "
88
- "sitemap file check the necessary box below. In other case all actions will "
89
- "be performed over an existing file."
90
- msgstr ""
91
- "Карта сайта уже существует. Если вы хотите изменить ее на новую карту сайта, "
92
- "выберите соответствующее действие внизу. Все остальные действия перезапишут "
93
- "существующий файл."
94
 
95
- #: google-sitemap-plugin.php:230
 
96
  msgid "If you don't want to add this file automatically you may go through"
97
- msgstr ""
98
- "Если вы не хотите добавить файл карты сайта автоматически в Google webmaster "
99
- "tools, Вы можете сделать это через"
100
 
101
- #: google-sitemap-plugin.php:230
 
102
  msgid "this"
103
  msgstr "эту"
104
 
105
- #: google-sitemap-plugin.php:230
106
- msgid ""
107
- "link, sign in, select necessary site, select 'Sitemaps' and type in "
108
- "necessary field"
109
- msgstr ""
110
- "ссылку, залогиниться, выбрать сайт, выбрать 'Sitemaps' и заполнить "
111
- "обязательное поле"
112
 
113
- #: google-sitemap-plugin.php:232
114
- msgid ""
115
- "This hosting doesn't support CURL, so you can't add sitemap file "
116
- "automatically"
117
- msgstr ""
118
- "Ваш хостинг не поддерживает CURL, поэтому вы не можете добавить карту сайта "
119
- "в Google аккаунт автоматически."
120
 
121
- #: google-sitemap-plugin.php:241
122
  msgid "I want to create new / update manualy sitemap file"
123
  msgstr "Я хочу создать новую / обновить существующую карту сайта"
124
 
125
- #: google-sitemap-plugin.php:246
 
126
  msgid "I want to add sitemap file path in robots.txt"
127
  msgstr "Я хочу добавить карту сайта в robots.txt"
128
 
129
- #: google-sitemap-plugin.php:250
130
- msgid ""
131
- "Please choose the necessary post types in order to add the links to them in "
132
- "the sitemap:"
133
- msgstr ""
134
- "Пожалуйста, выберите те типы постов, ссылки на которые будут добавлены в "
135
- "карту сайта:"
136
 
137
- #: google-sitemap-plugin.php:263
138
- msgid ""
139
- "Type here your login and password from google webmaster tools account to add "
140
- "or delete site and sitemap file automatically or to get information about "
141
- "this site in google webmaster tools."
142
- msgstr ""
143
- "Введите сюда свой логин и пароль для Google аккаунта, чтобы иметь "
144
- "возможность добавлять или удалять сайт и карту сайта автоматически в ваш "
145
- "аккаунт или же получить информацию об этом сайте из Google webmaster tools"
146
 
147
- #: google-sitemap-plugin.php:267
 
 
 
 
148
  msgid "Settings for remote work with google webmaster tools"
149
  msgstr "Настройки для удаленной работы с google webmaster tools"
150
 
151
- #: google-sitemap-plugin.php:269
152
  msgid "Login"
153
  msgstr "Логин"
154
 
155
- #: google-sitemap-plugin.php:270
156
  msgid "Password"
157
  msgstr "Пароль"
158
 
159
- #: google-sitemap-plugin.php:271
160
  msgid "I want to add this site to the google webmaster tools"
161
  msgstr "Я хочу добавить этот сайт в Google webmaster tools"
162
 
163
- #: google-sitemap-plugin.php:272
164
  msgid "I want to delete this site from google webmaster tools"
165
  msgstr "Я хочу удалить этот сайт из Google webmaster tools"
166
 
167
- #: google-sitemap-plugin.php:273
168
  msgid "I want to get info about this site in google webmaster tools"
169
  msgstr "Я хочу получить информацию об этом сайте из Google webmaster tools"
170
 
171
- #: google-sitemap-plugin.php:280
172
  msgid "Save Changes"
173
  msgstr "Сохранить изменения"
174
 
175
- #: google-sitemap-plugin.php:322
176
  msgid "You must enter login and password"
177
  msgstr "Вы должны ввести логин и пароль"
178
 
179
- #: google-sitemap-plugin.php:325
180
  msgid "You must choose at least one action"
181
  msgstr "Вы должны выбрать одно из действий"
182
 
183
- #: google-sitemap-plugin.php:355
184
- msgid "Login and password don\\'t match, try again, please"
185
- msgstr "Логин и пароль введены неправильно, попробуйте еще раз"
186
 
187
- #: google-sitemap-plugin.php:420
188
  msgid "Info about this site in google webmaster tools"
189
  msgstr "Я хочу получить информацию об этом сайте из Google webmaster tools"
190
 
191
- #: google-sitemap-plugin.php:422
192
  msgid "This site is not added to the google webmaster tools account"
193
  msgstr "Я хочу добавить этот сайт в Google webmaster tools"
194
 
195
- #: google-sitemap-plugin.php:443
196
  msgid "Site url: "
197
  msgstr "Урл сайта:"
198
 
199
- #: google-sitemap-plugin.php:444
200
  msgid "Site verification: "
201
  msgstr "Верификация сайта:"
202
 
203
- #: google-sitemap-plugin.php:446
204
  msgid "verificated"
205
  msgstr "верифицровано"
206
 
207
- #: google-sitemap-plugin.php:448
208
  msgid "non verificated"
209
  msgstr "не верефицирован"
210
 
211
- #: google-sitemap-plugin.php:449
212
  msgid "Sitemap file: "
213
  msgstr "Файл карты сайта:"
214
 
215
- #: google-sitemap-plugin.php:451
216
  msgid "added"
217
  msgstr "добавлен"
218
 
219
- #: google-sitemap-plugin.php:453
220
  msgid "not added"
221
  msgstr "не добавлен"
222
 
 
 
 
 
223
  #~ msgid "Install Now"
224
  #~ msgstr "Установить сейчас"
225
-
226
  #~ msgid "Update"
227
  #~ msgstr "Сохранить"
 
2
  msgstr ""
3
  "Project-Id-Version: google-sitemap-plugin\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-03-21 17:21+0300\n"
6
+ "PO-Revision-Date: 2013-03-21 17:23+0300\n"
7
+ "Last-Translator: \n"
8
  "Language-Team: bestwebsoft.com <plugin@bestwebsoft.com>\n"
 
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "Language: ru_RU\n"
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
  "X-Generator: Poedit 1.5.4\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
+ #: google-sitemap-plugin.php:80
20
  msgid "Activated plugins"
21
  msgstr "Активированные плагины"
22
 
23
+ #: google-sitemap-plugin.php:82
24
+ #: google-sitemap-plugin.php:90
25
+ #: google-sitemap-plugin.php:98
26
  msgid "Read more"
27
  msgstr "Подробнее..."
28
 
29
+ #: google-sitemap-plugin.php:82
30
+ #: google-sitemap-plugin.php:599
31
  msgid "Settings"
32
  msgstr "Настройки"
33
 
34
+ #: google-sitemap-plugin.php:88
35
  msgid "Installed plugins"
36
  msgstr "Установленные плагины"
37
 
38
+ #: google-sitemap-plugin.php:96
39
  msgid "Recommended plugins"
40
  msgstr "Рекомендованные к установке плагины"
41
 
42
+ #: google-sitemap-plugin.php:98
43
  msgid "Download"
44
  msgstr "Скачать"
45
 
46
+ #: google-sitemap-plugin.php:98
47
  #, php-format
48
  msgid "Install %s"
49
  msgstr "Установлено %s"
50
 
51
+ #: google-sitemap-plugin.php:98
52
  msgid "Install now from wordpress.org"
53
  msgstr "Установить с wordpress.org"
54
 
55
+ #: google-sitemap-plugin.php:100
56
+ msgid "If you have any questions, please contact us via plugin@bestwebsoft.com or fill in our contact form on our site"
57
+ msgstr "Если у вас есть какие-то впросы, обращайтесь на plugin@bestwebsoft.com или заполните контактную форму на нашем сайте"
 
 
 
 
58
 
59
+ #: google-sitemap-plugin.php:111
60
  msgid "BWS Plugins"
61
  msgstr "Плагины BWS"
62
 
63
+ #: google-sitemap-plugin.php:112
64
  msgid "Google Sitemap Options"
65
  msgstr "Опции карты сайта Google"
66
 
67
+ #: google-sitemap-plugin.php:112
68
  msgid "Google Sitemap"
69
  msgstr "Карта сайта Google"
70
 
71
+ #: google-sitemap-plugin.php:223
72
+ #: google-sitemap-plugin.php:298
73
  msgid "Your sitemap file was created in the root directory of the site. "
74
  msgstr "Карта сайта для вашего сайта создана в корне основной директории."
75
 
76
+ #: google-sitemap-plugin.php:229
77
  msgid "Options saved."
78
  msgstr "Опции сохранены."
79
 
80
+ #: google-sitemap-plugin.php:289
81
  msgid "Google Sitemap options"
82
  msgstr "Опции карты сайта Google"
83
 
84
+ #: google-sitemap-plugin.php:294
85
+ msgid "The sitemap file is already exists. If you want to change it for a new sitemap file check the necessary box below. In other case all actions will be performed over an existing file."
86
+ msgstr "Карта сайта уже существует. Если вы хотите изменить ее на новую карту сайта, выберите соответствующее действие внизу. Все остальные действия перезапишут существующий файл."
 
 
 
 
 
 
87
 
88
+ #: google-sitemap-plugin.php:302
89
+ #: google-sitemap-plugin.php:304
90
  msgid "If you don't want to add this file automatically you may go through"
91
+ msgstr "Если вы не хотите добавить файл карты сайта автоматически в Google webmaster tools, Вы можете сделать это через"
 
 
92
 
93
+ #: google-sitemap-plugin.php:302
94
+ #: google-sitemap-plugin.php:304
95
  msgid "this"
96
  msgstr "эту"
97
 
98
+ #: google-sitemap-plugin.php:302
99
+ #: google-sitemap-plugin.php:304
100
+ msgid "link, sign in, select necessary site, select 'Sitemaps' and type in necessary field"
101
+ msgstr "ссылку, залогиниться, выбрать сайт, выбрать 'Sitemaps' и заполнить обязательное поле"
 
 
 
102
 
103
+ #: google-sitemap-plugin.php:307
104
+ msgid "This hosting doesn't support CURL, so you can't add sitemap file automatically"
105
+ msgstr "Ваш хостинг не поддерживает CURL, поэтому вы не можете добавить карту сайта в Google аккаунт автоматически."
 
 
 
 
106
 
107
+ #: google-sitemap-plugin.php:316
108
  msgid "I want to create new / update manualy sitemap file"
109
  msgstr "Я хочу создать новую / обновить существующую карту сайта"
110
 
111
+ #: google-sitemap-plugin.php:322
112
+ #: google-sitemap-plugin.php:329
113
  msgid "I want to add sitemap file path in robots.txt"
114
  msgstr "Я хочу добавить карту сайта в robots.txt"
115
 
116
+ #: google-sitemap-plugin.php:323
117
+ msgid "Since you're using multisiting, the plugin does not allow to add a site map to robots.txt"
118
+ msgstr "Т.к. вы используете мультисайтинг, плагин не имеет возможности добавить карту сайта в robots.txt"
 
 
 
 
119
 
120
+ #: google-sitemap-plugin.php:334
121
+ msgid "Please choose the necessary post types in order to add the links to them in the sitemap:"
122
+ msgstr "Пожалуйста, выберите те типы постов, ссылки на которые будут добавлены в карту сайта:"
 
 
 
 
 
 
123
 
124
+ #: google-sitemap-plugin.php:347
125
+ msgid "Type here your login and password from google webmaster tools account to add or delete site and sitemap file automatically or to get information about this site in google webmaster tools."
126
+ msgstr "Введите сюда свой логин и пароль для Google аккаунта, чтобы иметь возможность добавлять или удалять сайт и карту сайта автоматически в ваш аккаунт или же получить информацию об этом сайте из Google webmaster tools"
127
+
128
+ #: google-sitemap-plugin.php:351
129
  msgid "Settings for remote work with google webmaster tools"
130
  msgstr "Настройки для удаленной работы с google webmaster tools"
131
 
132
+ #: google-sitemap-plugin.php:353
133
  msgid "Login"
134
  msgstr "Логин"
135
 
136
+ #: google-sitemap-plugin.php:354
137
  msgid "Password"
138
  msgstr "Пароль"
139
 
140
+ #: google-sitemap-plugin.php:355
141
  msgid "I want to add this site to the google webmaster tools"
142
  msgstr "Я хочу добавить этот сайт в Google webmaster tools"
143
 
144
+ #: google-sitemap-plugin.php:356
145
  msgid "I want to delete this site from google webmaster tools"
146
  msgstr "Я хочу удалить этот сайт из Google webmaster tools"
147
 
148
+ #: google-sitemap-plugin.php:357
149
  msgid "I want to get info about this site in google webmaster tools"
150
  msgstr "Я хочу получить информацию об этом сайте из Google webmaster tools"
151
 
152
+ #: google-sitemap-plugin.php:364
153
  msgid "Save Changes"
154
  msgstr "Сохранить изменения"
155
 
156
+ #: google-sitemap-plugin.php:372
157
  msgid "You must enter login and password"
158
  msgstr "Вы должны ввести логин и пароль"
159
 
160
+ #: google-sitemap-plugin.php:375
161
  msgid "You must choose at least one action"
162
  msgstr "Вы должны выбрать одно из действий"
163
 
164
+ #: google-sitemap-plugin.php:405
165
+ msgid "Login and password don't match, try again, please"
166
+ msgstr "Логин и пароль введены неправильно, попробуйте еще раз, пожалуйста"
167
 
168
+ #: google-sitemap-plugin.php:488
169
  msgid "Info about this site in google webmaster tools"
170
  msgstr "Я хочу получить информацию об этом сайте из Google webmaster tools"
171
 
172
+ #: google-sitemap-plugin.php:490
173
  msgid "This site is not added to the google webmaster tools account"
174
  msgstr "Я хочу добавить этот сайт в Google webmaster tools"
175
 
176
+ #: google-sitemap-plugin.php:511
177
  msgid "Site url: "
178
  msgstr "Урл сайта:"
179
 
180
+ #: google-sitemap-plugin.php:512
181
  msgid "Site verification: "
182
  msgstr "Верификация сайта:"
183
 
184
+ #: google-sitemap-plugin.php:514
185
  msgid "verificated"
186
  msgstr "верифицровано"
187
 
188
+ #: google-sitemap-plugin.php:516
189
  msgid "non verificated"
190
  msgstr "не верефицирован"
191
 
192
+ #: google-sitemap-plugin.php:517
193
  msgid "Sitemap file: "
194
  msgstr "Файл карты сайта:"
195
 
196
+ #: google-sitemap-plugin.php:519
197
  msgid "added"
198
  msgstr "добавлен"
199
 
200
+ #: google-sitemap-plugin.php:521
201
  msgid "not added"
202
  msgstr "не добавлен"
203
 
204
+ #~ msgid "The plugin could't create robots.txt as you use the multisite"
205
+ #~ msgstr ""
206
+ #~ "Плагин не может создать файл robots.txt, поскольку Вы используете "
207
+ #~ "мультисайт"
208
  #~ msgid "Install Now"
209
  #~ msgstr "Установить сейчас"
 
210
  #~ msgid "Update"
211
  #~ msgstr "Сохранить"
212
+
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bestwebsoft.com/
4
  Tags: sitemap, google sitemap, google api, google webmaster tools, stmap, gogle sitemap, sitemp, google api sitemap, api sitemap, webmaster sitemap, webmaster tols, google stmp
5
  Requires at least: 2.9
6
  Tested up to: 3.5.1
7
- Stable tag: 2.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -27,6 +27,8 @@ If you create your own language pack or update an existing one, you can send <a
27
 
28
  Dear users, if you have any questions or propositions regarding our plugins (current options, new options, current issues) please feel free to contact us. Please note that we accept requests in English only. All messages on another languages wouldn't be accepted.
29
 
 
 
30
  == Installation ==
31
 
32
  1. Upload `google sitemap` folder to the `/wp-content/plugins/` directory.
@@ -39,7 +41,7 @@ Dear users, if you have any questions or propositions regarding our plugins (cur
39
 
40
  After opening plugin settings page your sitemap file will be created automatically. If you're already have sitemap file and you don't want to replace it just do not select field "I want to create new sitemap file".
41
  If you don't want to add sitemap file in google webmaster tools automatically just follow short instruction. In other case you need to enter your login and password and choose necceseray action.
42
- To add path to your sitemap file in robots.txt you don't need to enter login and password, you need just select necessary field and press "Update button".
43
 
44
  = How to create sitemap.xml file =
45
 
@@ -72,6 +74,10 @@ In the WordPress admin panel go to "Plugins", find "Google sitemap" plugin and p
72
 
73
  == Changelog ==
74
 
 
 
 
 
75
  = V2.4 - 20.02.2013 =
76
  * NEW : Spanish language file was added to the plugin.
77
 
@@ -124,6 +130,9 @@ In the WordPress admin panel go to "Plugins", find "Google sitemap" plugin and p
124
 
125
  == Upgrade Notice ==
126
 
 
 
 
127
  = V2.4 =
128
  Spanish language file was added to the plugin.
129
 
4
  Tags: sitemap, google sitemap, google api, google webmaster tools, stmap, gogle sitemap, sitemp, google api sitemap, api sitemap, webmaster sitemap, webmaster tols, google stmp
5
  Requires at least: 2.9
6
  Tested up to: 3.5.1
7
+ Stable tag: 2.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
27
 
28
  Dear users, if you have any questions or propositions regarding our plugins (current options, new options, current issues) please feel free to contact us. Please note that we accept requests in English only. All messages on another languages wouldn't be accepted.
29
 
30
+ Also, emails which are reporting about plugin's bugs are accepted for investigation and fixing. Your request must contain URL of the website, issues description and WordPress admin panel access. Plugin customization based on your Wordpress theme is a paid service (standard price is $40, but it could be higer and depends on the complexity of requested changes). We will analize existing issue and make necessary changes after 100% pre-payment.All these paid changes and modifications could be included to the next version of plugin and will be shared for all users like an integral part of the plugin. Free fixing services will be provided for user who send translation on their native language (this should be a new translation of a certain plugin, and you can check available translations on the official plugin page).
31
+
32
  == Installation ==
33
 
34
  1. Upload `google sitemap` folder to the `/wp-content/plugins/` directory.
41
 
42
  After opening plugin settings page your sitemap file will be created automatically. If you're already have sitemap file and you don't want to replace it just do not select field "I want to create new sitemap file".
43
  If you don't want to add sitemap file in google webmaster tools automatically just follow short instruction. In other case you need to enter your login and password and choose necceseray action.
44
+ To add path to your sitemap file in robots.txt you don't need to enter login and password, you need just select necessary field and press "Update button". If you're using multisiting, the plugin does not allow to add a site map to robots.txt
45
 
46
  = How to create sitemap.xml file =
47
 
74
 
75
  == Changelog ==
76
 
77
+ = V2.5 - 21.03.2013 =
78
+ * New: Added ability to create sitemap.xml for multi-sites.
79
+ * Update : We updated plugin for custom WP configuration.
80
+
81
  = V2.4 - 20.02.2013 =
82
  * NEW : Spanish language file was added to the plugin.
83
 
130
 
131
  == Upgrade Notice ==
132
 
133
+ = V2.5 =
134
+ Added ability to create sitemap.xml for multi-sites. We updated plugin for custom WP configuration.
135
+
136
  = V2.4 =
137
  Spanish language file was added to the plugin.
138