| 1 |
<?php |
<?php |
| 2 |
// $Id: site_map.module,v 1.39.2.14 2009/06/29 19:12:54 frjo Exp $ |
// $Id: site_map.module,v 1.39.2.15 2009/07/02 07:59:59 frjo Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 82 |
$feedurl = is_numeric($uid) ? "blog/$uid/feed" : 'blog/feed'; |
$feedurl = is_numeric($uid) ? "blog/$uid/feed" : 'blog/feed'; |
| 83 |
} |
} |
| 84 |
else { |
else { |
| 85 |
$feedurl = 'rss.xml'; |
$feedurl = variable_get('site_map_rss_front', 'rss.xml'); |
| 86 |
} |
} |
| 87 |
$block['content'] = theme('feed_icon', url($feedurl), t('Syndicate')); |
$block['content'] = theme('feed_icon', url($feedurl), t('Syndicate')); |
| 88 |
$block['content'] .= '<div class="more-link">'. l(t('more'), 'sitemap', array('title' => t('View the site map to see more RSS feeds.'))) ."</div>\n"; |
$block['content'] .= '<div class="more-link">'. l(t('more'), 'sitemap', array('title' => t('View the site map to see more RSS feeds.'))) ."</div>\n"; |
| 395 |
if (module_exists('taxonomy') && $vids = variable_get('site_map_show_vocabularies', array())) { |
if (module_exists('taxonomy') && $vids = variable_get('site_map_show_vocabularies', array())) { |
| 396 |
$result = db_query('SELECT vid, name, description FROM {vocabulary} WHERE vid IN ('. db_placeholders($vids, 'int') .') ORDER BY weight ASC, name', $vids); |
$result = db_query('SELECT vid, name, description FROM {vocabulary} WHERE vid IN ('. db_placeholders($vids, 'int') .') ORDER BY weight ASC, name', $vids); |
| 397 |
while ($t = db_fetch_object($result)) { |
while ($t = db_fetch_object($result)) { |
| 398 |
|
if (module_exists('i18ntaxonomy')) { |
| 399 |
|
$t->name = tt("taxonomy:vocabulary:$t->vid:name", $t->name); |
| 400 |
|
} |
| 401 |
$output .= _site_map_taxonomy_tree($t->vid, $t->name, $t->description); |
$output .= _site_map_taxonomy_tree($t->vid, $t->name, $t->description); |
| 402 |
} |
} |
| 403 |
} |
} |
| 449 |
continue; |
continue; |
| 450 |
} |
} |
| 451 |
|
|
| 452 |
|
if (module_exists('i18ntaxonomy')) { |
| 453 |
|
$term->name = tt("taxonomy:term:$term->tid:name", $term->name); |
| 454 |
|
} |
| 455 |
|
|
| 456 |
// Adjust the depth of the <ul> based on the change |
// Adjust the depth of the <ul> based on the change |
| 457 |
// in $term->depth since the $last_depth. |
// in $term->depth since the $last_depth. |
| 458 |
if ($term->depth > $last_depth) { |
if ($term->depth > $last_depth) { |