/[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.16, Wed Aug 12 06:52:15 2009 UTC revision 1.39.2.17, Fri Aug 21 06:58:49 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: site_map.module,v 1.39.2.15 2009/07/02 07:59:59 frjo Exp $  // $Id: site_map.module,v 1.39.2.16 2009/08/12 06:52:15 frjo Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 206  function _site_map_front_page() { Line 206  function _site_map_front_page() {
206    $output = l(t("Front page of %sn", array("%sn" => variable_get('site_name', 'Drupal'))), '<front>', array('html' => TRUE));    $output = l(t("Front page of %sn", array("%sn" => variable_get('site_name', 'Drupal'))), '<front>', array('html' => TRUE));
207    
208    if (variable_get('site_map_show_rss_links', 1) != 0) {    if (variable_get('site_map_show_rss_links', 1) != 0) {
209      $rss_link = theme('site_map_feed_icon', url(variable_get('site_map_rss_front', 'rss.xml')));      $rss_link = theme('site_map_feed_icon', variable_get('site_map_rss_front', 'rss.xml'));
210      if (module_exists('commentrss') && variable_get('commentrss_site', COMMENTRSS_SITE_FRONT_PAGE)) {      if (module_exists('commentrss') && variable_get('commentrss_site', COMMENTRSS_SITE_FRONT_PAGE)) {
211        $rss_link .= ' '. theme('site_map_feed_icon', url('crss'), 'comment');        $rss_link .= ' '. theme('site_map_feed_icon', 'crss', 'comment');
212      }      }
213      if (variable_get('site_map_show_rss_links', 1) == 1) {      if (variable_get('site_map_show_rss_links', 1) == 1) {
214        $output .= ' '. $rss_link;        $output .= ' '. $rss_link;
# Line 234  function _site_map_blogs() { Line 234  function _site_map_blogs() {
234    
235      $blog_link = l(t('All blogs'), 'blog');      $blog_link = l(t('All blogs'), 'blog');
236      if (variable_get('site_map_show_rss_links', 1) != 0) {      if (variable_get('site_map_show_rss_links', 1) != 0) {
237        $rss_link = theme('site_map_feed_icon', url('blog/feed'));        $rss_link = theme('site_map_feed_icon', 'blog/feed');
238        if (variable_get('site_map_show_rss_links', 1) == 1) {        if (variable_get('site_map_show_rss_links', 1) == 1) {
239          $blog_link .= ' '. $rss_link;          $blog_link .= ' '. $rss_link;
240        }        }
# Line 256  function _site_map_blogs() { Line 256  function _site_map_blogs() {
256      while ($blog = db_fetch_object($result)) {      while ($blog = db_fetch_object($result)) {
257        $blog_item = l(t("!s's blog", array("!s" => $blog->name)), "blog/$blog->uid") .' ('. $blog->numitems .')';        $blog_item = l(t("!s's blog", array("!s" => $blog->name)), "blog/$blog->uid") .' ('. $blog->numitems .')';
258        if (variable_get('site_map_show_rss_links', 1) != 0) {        if (variable_get('site_map_show_rss_links', 1) != 0) {
259          $rss_link = theme('site_map_feed_icon', url("blog/$blog->uid/feed"));          $rss_link = theme('site_map_feed_icon', "blog/$blog->uid/feed");
260          if (variable_get('site_map_show_rss_links', 1) == 1) {          if (variable_get('site_map_show_rss_links', 1) == 1) {
261            $blog_item .= ' '. $rss_link;            $blog_item .= ' '. $rss_link;
262          }          }
# Line 280  function _site_map_audio() { Line 280  function _site_map_audio() {
280      $title = t('Audio');      $title = t('Audio');
281      $output = l(t('Audio content'), 'audio');      $output = l(t('Audio content'), 'audio');
282      if (variable_get('site_map_show_rss_links', 1) != 0) {      if (variable_get('site_map_show_rss_links', 1) != 0) {
283        $rss_link = theme('site_map_feed_icon', url('audio/feed'));        $rss_link = theme('site_map_feed_icon', 'audio/feed');
284        if (variable_get('site_map_show_rss_links', 1) == 1) {        if (variable_get('site_map_show_rss_links', 1) == 1) {
285          $output .= ' '. $rss_link;          $output .= ' '. $rss_link;
286        }        }
# Line 302  function _site_map_video() { Line 302  function _site_map_video() {
302      $title = t('Video');      $title = t('Video');
303      $output = l(t('Video content'), 'video');      $output = l(t('Video content'), 'video');
304      if (variable_get('site_map_show_rss_links', 1) != 0) {      if (variable_get('site_map_show_rss_links', 1) != 0) {
305        $rss_link = theme('site_map_feed_icon', url('video/feed'));        $rss_link = theme('site_map_feed_icon', 'video/feed');
306        if (variable_get('site_map_show_rss_links', 1) == 1) {        if (variable_get('site_map_show_rss_links', 1) == 1) {
307          $output .= ' '. $rss_link;          $output .= ' '. $rss_link;
308        }        }
# Line 426  function _site_map_taxonomy_tree($vid, $ Line 426  function _site_map_taxonomy_tree($vid, $
426      $threshold = variable_get('site_map_term_threshold', 0);      $threshold = variable_get('site_map_term_threshold', 0);
427      $forum_link = FALSE;      $forum_link = FALSE;
428    }    }
429    $title .= (module_exists('commentrss') && variable_get('commentrss_term', FALSE) ? ' '. theme('site_map_feed_icon', url("crss/vocab/$vid"), 'comment') : '');    $title .= (module_exists('commentrss') && variable_get('commentrss_term', FALSE) ? ' '. theme('site_map_feed_icon', "crss/vocab/$vid", 'comment') : '');
430    
431    $last_depth = -1;    $last_depth = -1;
432    $rss_depth = variable_get('site_map_rss_depth', 'all');    $rss_depth = variable_get('site_map_rss_depth', 'all');
# Line 485  function _site_map_taxonomy_tree($vid, $ Line 485  function _site_map_taxonomy_tree($vid, $
485      }      }
486    
487      if (variable_get('site_map_show_rss_links', 1) != 0) {      if (variable_get('site_map_show_rss_links', 1) != 0) {
488        $rss_link = theme('site_map_feed_icon', url("taxonomy/term/$term->tid/$rss_depth/feed"));        $rss_link = theme('site_map_feed_icon', "taxonomy/term/$term->tid/$rss_depth/feed");
489        if (module_exists('commentrss') && variable_get('commentrss_term', FALSE)) {        if (module_exists('commentrss') && variable_get('commentrss_term', FALSE)) {
490          $rss_link .= ' '. theme('site_map_feed_icon', url("crss/term/$term->tid"), 'comment');          $rss_link .= ' '. theme('site_map_feed_icon', "crss/term/$term->tid", 'comment');
491        }        }
492        if (variable_get('site_map_show_rss_links', 1) == 1) {        if (variable_get('site_map_show_rss_links', 1) == 1) {
493          $term_item .= ' '. $rss_link;          $term_item .= ' '. $rss_link;

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

  ViewVC Help
Powered by ViewVC 1.1.2