Google XML Sitemaps v3 for qTranslate - Version 3.2.7.1

Version Description

Download this release

Release Info

Developer DSmidgy
Plugin Icon wp plugin Google XML Sitemaps v3 for qTranslate
Version 3.2.7.1
Comparing to
See all releases

Code changes from version 3.2.6.2 to 3.2.7.1

documentation.txt CHANGED
@@ -235,6 +235,8 @@
235
  Added friendly hint to try out the new beta
236
  2010-09-19 3.2.6 Removed YAHOO ping since YAHOO uses bing now
237
  Removed deprecated function call
 
 
238
 
239
  Maybe Todo:
240
  ==============================================================================
@@ -243,7 +245,7 @@
243
 
244
  License:
245
  ==============================================================================
246
- Copyright 2005 - 2009 ARNE BRACHHOLD (email : himself - arnebrachhold - de)
247
 
248
  This program is free software; you can redistribute it and/or modify
249
  it under the terms of the GNU General Public License as published by
235
  Added friendly hint to try out the new beta
236
  2010-09-19 3.2.6 Removed YAHOO ping since YAHOO uses bing now
237
  Removed deprecated function call
238
+ 2012-04-24 3.2.7 Fixed custom post types, thanks to clearsite of the wordpress.org forum!
239
+ Fixed broken admin layout on WP 3.4
240
 
241
  Maybe Todo:
242
  ==============================================================================
245
 
246
  License:
247
  ==============================================================================
248
+ Copyright 2005 - 2012 ARNE BRACHHOLD (email : himself - arnebrachhold - de)
249
 
250
  This program is free software; you can redistribute it and/or modify
251
  it under the terms of the GNU General Public License as published by
lang/sitemap-es_ES.po CHANGED
@@ -2,7 +2,7 @@
2
  # Copyright (C) 2005 [name] : [URL]
3
  # This file is distributed under the same license as the WordPress package.
4
  # [name] <[mail-address]>, 2005.
5
- # $Id: sitemap-es_ES.po 183255 2009-12-15 22:14:37Z arnee $
6
  #
7
  msgid ""
8
  msgstr ""
2
  # Copyright (C) 2005 [name] : [URL]
3
  # This file is distributed under the same license as the WordPress package.
4
  # [name] <[mail-address]>, 2005.
5
+ # $Id: sitemap-es_ES.po 535845 2012-04-24 21:44:22Z arnee $
6
  #
7
  msgid ""
8
  msgstr ""
lang/sitemap.pot CHANGED
@@ -2,7 +2,7 @@
2
  # Copyright (C) 2005 [name] : [URL]
3
  # This file is distributed under the same license as the WordPress package.
4
  # [name] <[mail-address]>, 2005.
5
- # $Id: sitemap.pot 175669 2009-11-20 21:55:02Z arnee $
6
  #
7
  msgid ""
8
  msgstr ""
2
  # Copyright (C) 2005 [name] : [URL]
3
  # This file is distributed under the same license as the WordPress package.
4
  # [name] <[mail-address]>, 2005.
5
+ # $Id: sitemap.pot 535845 2012-04-24 21:44:22Z arnee $
6
  #
7
  msgid ""
8
  msgstr ""
readme.txt CHANGED
@@ -3,15 +3,15 @@ Contributors: arnee, NeoEGM, DSmidgy
3
  Donate link: http://www.arnebrachhold.de/redir/sitemap-paypal
4
  Tags: seo, google, sitemaps, google sitemaps, yahoo, msn, ask, live, xml sitemap, xml, qtranslate
5
  Requires at least: 2.1
6
- Tested up to: 3.3
7
- Stable tag: 3.2.6.2
8
 
9
  This plugin will generate a special XML sitemap which will help search engines to better index your blog. With qTranslate support.
10
 
11
  == Description ==
12
 
13
  This plugin will generate a special XML sitemap which will help search engines like Google, Bing, Yahoo and Ask.com to better index your blog. With such a sitemap, it's much easier for the crawlers to see the complete structure of your site and retrieve it more efficiently. The plugin supports all kinds of WordPress generated pages as well as custom URLs. Additionally it notifies all major search engines every time you create a post about the new content.
14
- <br />
15
  This fork is compatible with qTranslate multilingual plugin. It can translate more types of URLs (categories, tags, etc.) than NeoEGM's plugin. More on http://blog.slo-host.com/2011/06/qtranslate-support-for-google-xml-sitemaps-plugin/
16
 
17
  Related Links:
3
  Donate link: http://www.arnebrachhold.de/redir/sitemap-paypal
4
  Tags: seo, google, sitemaps, google sitemaps, yahoo, msn, ask, live, xml sitemap, xml, qtranslate
5
  Requires at least: 2.1
6
+ Tested up to: 3.4
7
+ Stable tag: 3.2.7.1
8
 
9
  This plugin will generate a special XML sitemap which will help search engines to better index your blog. With qTranslate support.
10
 
11
  == Description ==
12
 
13
  This plugin will generate a special XML sitemap which will help search engines like Google, Bing, Yahoo and Ask.com to better index your blog. With such a sitemap, it's much easier for the crawlers to see the complete structure of your site and retrieve it more efficiently. The plugin supports all kinds of WordPress generated pages as well as custom URLs. Additionally it notifies all major search engines every time you create a post about the new content.
14
+ <br /><br />
15
  This fork is compatible with qTranslate multilingual plugin. It can translate more types of URLs (categories, tags, etc.) than NeoEGM's plugin. More on http://blog.slo-host.com/2011/06/qtranslate-support-for-google-xml-sitemaps-plugin/
16
 
17
  Related Links:
sitemap-core.php CHANGED
@@ -1688,12 +1688,12 @@ class GoogleSitemapGenerator {
1688
  $homePid = $p->ID;
1689
  if (!$qt["enabled"])
1690
  $this->AddUrl(trailingslashit($home),$this->GetTimestampFromMySql(($p->post_modified_gmt && $p->post_modified_gmt!='0000-00-00 00:00:00'?$p->post_modified_gmt:$p->post_date_gmt)),$this->GetOption("cf_home"),$this->GetOption("pr_home"));
1691
- qt_permalink($qt, trailingslashit($home), null, ($p->post_modified_gmt && $p->post_modified_gmt!='0000-00-00 00:00:00'?$p->post_modified_gmt:$p->post_date_gmt), $this->GetOption("cf_home"), $this->GetOption("pr_home"), $this);
1692
  }
1693
  } else {
1694
  if (!$qt["enabled"])
1695
  $this->AddUrl(trailingslashit($home),$this->GetTimestampFromMySql(get_lastpostmodified('GMT')),$this->GetOption("cf_home"),$this->GetOption("pr_home"));
1696
- qt_permalink($qt, trailingslashit($home), null, get_lastpostmodified('GMT'), $this->GetOption("cf_home"), $this->GetOption("pr_home"), $this);
1697
  }
1698
  }
1699
 
@@ -1902,7 +1902,7 @@ class GoogleSitemapGenerator {
1902
  //Add it
1903
  if (!$qt["enabled"])
1904
  $this->AddUrl($permalink,$this->GetTimestampFromMySql(($post->post_modified_gmt && $post->post_modified_gmt!='0000-00-00 00:00:00'?$post->post_modified_gmt:$post->post_date_gmt)),($isPage?$cf_pages:$cf_posts),$prio);
1905
- qt_permalink($qt, $permalink, $post->post_content, ($post->post_modified_gmt && $post->post_modified_gmt!='0000-00-00 00:00:00'?$post->post_modified_gmt:$post->post_date_gmt), ($isPage?$cf_pages:$cf_posts), $prio, $this);
1906
 
1907
  if($inSubPages) {
1908
  $subPage = '';
@@ -1915,7 +1915,7 @@ class GoogleSitemapGenerator {
1915
 
1916
  if (!$qt["enabled"])
1917
  $this->AddUrl($subPage,$this->GetTimestampFromMySql(($post->post_modified_gmt && $post->post_modified_gmt!='0000-00-00 00:00:00'?$post->post_modified_gmt:$post->post_date_gmt)),($isPage?$cf_pages:$cf_posts),$prio);
1918
- //qt_permalink($qt, $subPage, $post->post_content, ($post->post_modified_gmt && $post->post_modified_gmt!='0000-00-00 00:00:00'?$post->post_modified_gmt:$post->post_date_gmt), ($isPage?$cf_pages:$cf_posts), $prio, $this);
1919
  }
1920
  }
1921
  }
@@ -1980,7 +1980,7 @@ class GoogleSitemapGenerator {
1980
  if($debug) if($debug) $this->AddElement(new GoogleSitemapGeneratorDebugEntry("Cat-ID:" . $cat->ID));
1981
  if (!$qt["enabled"])
1982
  $this->AddUrl(get_category_link($cat->ID),$this->GetTimestampFromMySql($cat->last_mod),$this->GetOption("cf_cats"),$this->GetOption("pr_cats"));
1983
- qt_permalink($qt, get_category_link($cat->ID), null, $cat->last_mod, $this->GetOption("cf_cats"), $this->GetOption("pr_cats"), $this);
1984
  }
1985
  }
1986
  }
@@ -1991,7 +1991,7 @@ class GoogleSitemapGenerator {
1991
  if(!in_array($cat->term_id, $exclCats)) {
1992
  if (!$qt["enabled"])
1993
  $this->AddUrl(get_category_link($cat->term_id),0,$this->GetOption("cf_cats"),$this->GetOption("pr_cats"));
1994
- qt_permalink($qt, get_category_link($cat->term_id), null, 0, $this->GetOption("cf_cats"), $this->GetOption("pr_cats"), $this);
1995
  }
1996
  }
1997
  }
@@ -2038,7 +2038,7 @@ class GoogleSitemapGenerator {
2038
 
2039
  if (!$qt["enabled"])
2040
  $this->AddUrl($url,$this->GetTimestampFromMySql($arcresult->last_mod),$changeFreq,$this->GetOption("pr_arch"));
2041
- qt_permalink($qt, $url, null, $arcresult->last_mod, $changeFreq, $this->GetOption("pr_arch"), $this);
2042
  }
2043
  }
2044
  if($debug) $this->AddElement(new GoogleSitemapGeneratorDebugEntry("Debug: End Archive"));
@@ -2087,7 +2087,7 @@ class GoogleSitemapGenerator {
2087
  $url = ($linkFunc=='get_author_posts_url'?get_author_posts_url($author->ID,$author->user_nicename):get_author_link(false,$author->ID,$author->user_nicename));
2088
  if (!$qt["enabled"])
2089
  $this->AddUrl($url,$this->GetTimestampFromMySql($author->last_post),$this->GetOption("cf_auth"),$this->GetOption("pr_auth"));
2090
- qt_permalink($qt, $url, null, $author->last_post, $this->GetOption("cf_auth"), $this->GetOption("pr_auth"), $this);
2091
  }
2092
  }
2093
  } else {
@@ -2106,7 +2106,7 @@ class GoogleSitemapGenerator {
2106
  foreach($tags AS $tag) {
2107
  if (!$qt["enabled"])
2108
  $this->AddUrl(get_tag_link($tag->term_id),0,$this->GetOption("cf_tags"),$this->GetOption("pr_tags"));
2109
- qt_permalink($qt, get_tag_link($tag->term_id), null, 0, $this->GetOption("cf_tags"), $this->GetOption("pr_tags"), $this);
2110
  }
2111
  }
2112
  if($debug) $this->AddElement(new GoogleSitemapGeneratorDebugEntry("Debug: End Tags"));
1688
  $homePid = $p->ID;
1689
  if (!$qt["enabled"])
1690
  $this->AddUrl(trailingslashit($home),$this->GetTimestampFromMySql(($p->post_modified_gmt && $p->post_modified_gmt!='0000-00-00 00:00:00'?$p->post_modified_gmt:$p->post_date_gmt)),$this->GetOption("cf_home"),$this->GetOption("pr_home"));
1691
+ else qt_permalink($qt, trailingslashit($home), null, ($p->post_modified_gmt && $p->post_modified_gmt!='0000-00-00 00:00:00'?$p->post_modified_gmt:$p->post_date_gmt), $this->GetOption("cf_home"), $this->GetOption("pr_home"), $this);
1692
  }
1693
  } else {
1694
  if (!$qt["enabled"])
1695
  $this->AddUrl(trailingslashit($home),$this->GetTimestampFromMySql(get_lastpostmodified('GMT')),$this->GetOption("cf_home"),$this->GetOption("pr_home"));
1696
+ else qt_permalink($qt, trailingslashit($home), null, get_lastpostmodified('GMT'), $this->GetOption("cf_home"), $this->GetOption("pr_home"), $this);
1697
  }
1698
  }
1699
 
1902
  //Add it
1903
  if (!$qt["enabled"])
1904
  $this->AddUrl($permalink,$this->GetTimestampFromMySql(($post->post_modified_gmt && $post->post_modified_gmt!='0000-00-00 00:00:00'?$post->post_modified_gmt:$post->post_date_gmt)),($isPage?$cf_pages:$cf_posts),$prio);
1905
+ else qt_permalink($qt, $permalink, $post->post_content, ($post->post_modified_gmt && $post->post_modified_gmt!='0000-00-00 00:00:00'?$post->post_modified_gmt:$post->post_date_gmt), ($isPage?$cf_pages:$cf_posts), $prio, $this);
1906
 
1907
  if($inSubPages) {
1908
  $subPage = '';
1915
 
1916
  if (!$qt["enabled"])
1917
  $this->AddUrl($subPage,$this->GetTimestampFromMySql(($post->post_modified_gmt && $post->post_modified_gmt!='0000-00-00 00:00:00'?$post->post_modified_gmt:$post->post_date_gmt)),($isPage?$cf_pages:$cf_posts),$prio);
1918
+ //else qt_permalink($qt, $subPage, $post->post_content, ($post->post_modified_gmt && $post->post_modified_gmt!='0000-00-00 00:00:00'?$post->post_modified_gmt:$post->post_date_gmt), ($isPage?$cf_pages:$cf_posts), $prio, $this);
1919
  }
1920
  }
1921
  }
1980
  if($debug) if($debug) $this->AddElement(new GoogleSitemapGeneratorDebugEntry("Cat-ID:" . $cat->ID));
1981
  if (!$qt["enabled"])
1982
  $this->AddUrl(get_category_link($cat->ID),$this->GetTimestampFromMySql($cat->last_mod),$this->GetOption("cf_cats"),$this->GetOption("pr_cats"));
1983
+ else qt_permalink($qt, get_category_link($cat->ID), null, $cat->last_mod, $this->GetOption("cf_cats"), $this->GetOption("pr_cats"), $this);
1984
  }
1985
  }
1986
  }
1991
  if(!in_array($cat->term_id, $exclCats)) {
1992
  if (!$qt["enabled"])
1993
  $this->AddUrl(get_category_link($cat->term_id),0,$this->GetOption("cf_cats"),$this->GetOption("pr_cats"));
1994
+ else qt_permalink($qt, get_category_link($cat->term_id), null, 0, $this->GetOption("cf_cats"), $this->GetOption("pr_cats"), $this);
1995
  }
1996
  }
1997
  }
2038
 
2039
  if (!$qt["enabled"])
2040
  $this->AddUrl($url,$this->GetTimestampFromMySql($arcresult->last_mod),$changeFreq,$this->GetOption("pr_arch"));
2041
+ else qt_permalink($qt, $url, null, $arcresult->last_mod, $changeFreq, $this->GetOption("pr_arch"), $this);
2042
  }
2043
  }
2044
  if($debug) $this->AddElement(new GoogleSitemapGeneratorDebugEntry("Debug: End Archive"));
2087
  $url = ($linkFunc=='get_author_posts_url'?get_author_posts_url($author->ID,$author->user_nicename):get_author_link(false,$author->ID,$author->user_nicename));
2088
  if (!$qt["enabled"])
2089
  $this->AddUrl($url,$this->GetTimestampFromMySql($author->last_post),$this->GetOption("cf_auth"),$this->GetOption("pr_auth"));
2090
+ else qt_permalink($qt, $url, null, $author->last_post, $this->GetOption("cf_auth"), $this->GetOption("pr_auth"), $this);
2091
  }
2092
  }
2093
  } else {
2106
  foreach($tags AS $tag) {
2107
  if (!$qt["enabled"])
2108
  $this->AddUrl(get_tag_link($tag->term_id),0,$this->GetOption("cf_tags"),$this->GetOption("pr_tags"));
2109
+ else qt_permalink($qt, get_tag_link($tag->term_id), null, 0, $this->GetOption("cf_tags"), $this->GetOption("pr_tags"), $this);
2110
  }
2111
  }
2112
  if($debug) $this->AddElement(new GoogleSitemapGeneratorDebugEntry("Debug: End Tags"));
sitemap-qtranslate.php CHANGED
@@ -10,12 +10,12 @@ Sitemaps Generator for WordPress, v3.1.6" by Arne Brachhold.
10
 
11
  Integration into "sitemap.php".
12
  Initialization:
13
- require_once("sitemap-qtranslate.php");
14
- $qt = qt_settings();
15
  Calling permalink translation (correct "variables" without $), around "$this->AddUrl(":
16
- if (!$qt["enabled"])
17
- $this->AddUrl(...ORIGINAL CODE
18
- qt_permalink($qt, permalink, post_content/null(available/all langs), modified_time, change_freq, priority, $this);
19
  */
20
 
21
  // Is qTranslate enabled; read settings
@@ -41,7 +41,7 @@ function qt_permalink($qt, $permalink, $post_content, $modified_time, $change_fr
41
  // Get a list of languages
42
  if ($post_content) {
43
  // Get available languages form post
44
- $languages = qtrans_getAvailableLanguages($post_content);
45
  } else {
46
  // Get all available languages
47
  $languages = $qt["enabled_languages"];
10
 
11
  Integration into "sitemap.php".
12
  Initialization:
13
+ require_once("sitemap-qtranslate.php");
14
+ $qt = qt_settings();
15
  Calling permalink translation (correct "variables" without $), around "$this->AddUrl(":
16
+ if (!$qt["enabled"])
17
+ $this->AddUrl(...ORIGINAL CODE
18
+ qt_permalink($qt, permalink, post_content/null(available/all langs), modified_time, change_freq, priority, $this);
19
  */
20
 
21
  // Is qTranslate enabled; read settings
41
  // Get a list of languages
42
  if ($post_content) {
43
  // Get available languages form post
44
+ $languages = qtrans_getAvailableLanguages($post_content);
45
  } else {
46
  // Get all available languages
47
  $languages = $qt["enabled_languages"];
sitemap-ui.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
 
4
- $Id: sitemap-ui.php 440117 2011-09-19 13:24:49Z arnee $
5
 
6
  */
7
 
@@ -443,6 +443,39 @@ class GoogleSitemapGeneratorUI {
443
  padding:1px;
444
  margin:0;
445
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
446
  </style>
447
 
448
  <?php elseif(version_compare($wp_version,"2.5",">=")): ?>
@@ -1073,7 +1106,7 @@ class GoogleSitemapGeneratorUI {
1073
 
1074
  $enabledPostTypes = $this->sg->GetOption('in_customtypes');
1075
 
1076
- if(count($taxonomies)>0) {
1077
  ?><b><?php _e('Custom post types', 'sitemap') ?>:</b><ul><?php
1078
 
1079
  foreach ($custom_post_types as $post_type) {
1
  <?php
2
  /*
3
 
4
+ $Id: sitemap-ui.php 535851 2012-04-24 21:48:23Z arnee $
5
 
6
  */
7
 
443
  padding:1px;
444
  margin:0;
445
  }
446
+
447
+ <?php if (version_compare($wp_version, "3.4", "<")): //Fix style for WP 3.4 (dirty way for now..) ?>
448
+
449
+ .inner-sidebar #side-sortables, .columns-2 .inner-sidebar #side-sortables {
450
+ min-height: 300px;
451
+ width: 280px;
452
+ padding: 0;
453
+ }
454
+
455
+ .has-right-sidebar .inner-sidebar {
456
+ display: block;
457
+ }
458
+
459
+ .inner-sidebar {
460
+ float: right;
461
+ clear: right;
462
+ display: none;
463
+ width: 281px;
464
+ position: relative;
465
+ }
466
+
467
+ .has-right-sidebar #post-body-content {
468
+ margin-right: 300px;
469
+ }
470
+
471
+ #post-body-content {
472
+ width: auto !important;
473
+ float: none !important;
474
+ }
475
+
476
+ <?php endif; ?>
477
+
478
+
479
  </style>
480
 
481
  <?php elseif(version_compare($wp_version,"2.5",">=")): ?>
1106
 
1107
  $enabledPostTypes = $this->sg->GetOption('in_customtypes');
1108
 
1109
+ if(count($custom_post_types)>0) {
1110
  ?><b><?php _e('Custom post types', 'sitemap') ?>:</b><ul><?php
1111
 
1112
  foreach ($custom_post_types as $post_type) {
sitemap.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /*
4
- $Id: sitemap.php 440117 2011-09-19 13:24:49Z arnee $
5
 
6
  Google XML Sitemaps Generator for WordPress
7
  ==============================================================================
@@ -22,10 +22,10 @@
22
 
23
  Info for WordPress:
24
  ==============================================================================
25
- Plugin Name: Google XML Sitemaps for qTranslate
26
  Plugin URI: http://wordpress.org/extend/plugins/google-xml-sitemaps-v3-for-qtranslate/
27
  Description: This plugin will generate a special XML sitemap which will help search engines like Google, Yahoo, Bing and Ask.com to better index your blog. With qTranslate support.
28
- Version: 3.2.6.2
29
  Author: DSmidgy, NeoEGM, Arne Brachhold
30
  Author URI: http://blog.slo-host.com/
31
  Text Domain: sitemap
1
  <?php
2
 
3
  /*
4
+ $Id: sitemap.php 535851 2012-04-24 21:48:23Z arnee $
5
 
6
  Google XML Sitemaps Generator for WordPress
7
  ==============================================================================
22
 
23
  Info for WordPress:
24
  ==============================================================================
25
+ Plugin Name: Google XML Sitemaps v3 for qTranslate
26
  Plugin URI: http://wordpress.org/extend/plugins/google-xml-sitemaps-v3-for-qtranslate/
27
  Description: This plugin will generate a special XML sitemap which will help search engines like Google, Yahoo, Bing and Ask.com to better index your blog. With qTranslate support.
28
+ Version: 3.2.7.1
29
  Author: DSmidgy, NeoEGM, Arne Brachhold
30
  Author URI: http://blog.slo-host.com/
31
  Text Domain: sitemap