Commit 3cdfbf69 authored by Dave Reid's avatar Dave Reid
Browse files

by Dave Reid: Added proper XSL JavaScript sorting for the change frequency column.

parent 90c10f2b
......@@ -70,9 +70,6 @@ MORE INFORMATION
- You can view the sitemap.org specification at http://sitemaps.org.
- You can view the module's API documentation at
http://project.davereid.net/api/xmlsitemap
HOW CAN YOU CONTRIBUTE?
-----------------------
......
......@@ -508,8 +508,7 @@ function _xmlsitemap_get_blurb($check_version = TRUE) {
if (!isset($blurb)) {
$blurb = FALSE;
$version = _xmlsitemap_get_version();
if (!$check_version || ($version && preg_match('/dev|unstable|alpha|beta/i', $version))) {
if (!$check_version || (($version = _xmlsitemap_get_version()) && preg_match('/dev|unstable|alpha|beta|HEAD/i', $version))) {
$sponsors = array(
l('Symantec', 'http://www.symantec.com/'),
l('WebWise Solutions', 'http://www.webwiseone.com/'),
......@@ -518,7 +517,7 @@ function _xmlsitemap_get_blurb($check_version = TRUE) {
l('Coupons Dealuxe', 'http://couponsdealuxe.com/'),
);
// Don't extract the following string for translation.
$blurb = '<p>Thank you for helping test the XML sitemap module rewrite. Please consider helping offset developer free time by <a href="http://davereid.chipin.com/">donating</a> or if your company is interested in sponsoring the rewrite or a specific feature, please <a href="http://davereid.net/contact">contact the developer</a>. Thank you to the following current sponsors: ' . implode(', ', $sponsors) . ', and all the indivduals that have donated. This message will not be seen in the stable versions.</p>';
$blurb = '<p>Thank you for helping test the XML sitemap module rewrite. Please consider helping offset developer free time by <a href="http://davereid.chipin.com/">donating</a> or if your company is interested in sponsoring the rewrite or a specific feature, please <a href="http://davereid.net/contact">contact the developer</a>.</p><p>Thank you to the following current sponsors: ' . implode(', ', $sponsors) . ', and all the indivduals that have donated. This message will not be seen in the stable versions.</p>';
//http://drupalmodules.com/module/xml-sitemap
}
}
......@@ -527,6 +526,10 @@ function _xmlsitemap_get_blurb($check_version = TRUE) {
}
function _xmlsitemap_get_version() {
$modules = _system_rebuild_module_data();
return $modules['xmlsitemap']->info['version'];
static $version;
if (!isset($version)) {
$modules = _system_rebuild_module_data();
$version = $modules['xmlsitemap']->info['version'];
}
return $version;
}
......@@ -73,7 +73,7 @@
<tr>
<th>URL location</th>
<th>Last modification date</th>
<th><xsl:attribute name="class">{sorter: 'changefreq'}</xsl:attribute>Change frequency</th>
<th>Change frequency</th>
<th>Priority</th>
</tr>
</thead>
......
// $Id$
(function($){
/*$.tablesorter.addParser({
$.tablesorter.addParser({
// set a unique id
id: 'changefreq',
is: function(s) {
......@@ -26,7 +26,7 @@
}
},
type: 'numeric'
});*/
});
$(document).ready(function() {
// Set some location variales.
......@@ -35,6 +35,9 @@ $(document).ready(function() {
$('table').tablesorter({
sortList: [[0,0]],
headers: {
2: { sorter: 'changefreq' }
},
widgets: ['zebra']
});
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment