/[drupal]/contributions/modules/site_map/site_map.module
ViewVC logotype

Diff of /contributions/modules/site_map/site_map.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.39.2.15, Thu Jul 2 07:59:59 2009 UTC revision 1.39.2.16, Wed Aug 12 06:52:15 2009 UTC
# Line 1  Line 1 
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
# Line 82  function site_map_block($op = 'list', $d Line 82  function site_map_block($op = 'list', $d
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";
# Line 395  function _site_map_taxonomys() { Line 395  function _site_map_taxonomys() {
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    }    }
# Line 446  function _site_map_taxonomy_tree($vid, $ Line 449  function _site_map_taxonomy_tree($vid, $
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) {

Legend:
Removed from v.1.39.2.15  
changed lines
  Added in v.1.39.2.16

  ViewVC Help
Powered by ViewVC 1.1.2