? files ? generate-content.php ? t.patch ? modules/devel ? modules/project ? modules/prototype ? modules/timesheet ? modules/tinymce ? themes/civicspace Index: includes/theme.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/theme.inc,v retrieving revision 1.267 diff -u -r1.267 theme.inc --- includes/theme.inc 10 Dec 2005 19:26:47 -0000 1.267 +++ includes/theme.inc 24 Dec 2005 18:42:04 -0000 @@ -867,6 +867,15 @@ } /** + * Return code that emits an feed icon. + */ +function theme_feed_icon($url) { + if ($image = theme('image', 'misc/feed.png', t('Syndicate content'), t('Syndicate content'))) { + return ''. $image. ''; + } +} + +/** * Execute hook_footer() which is run at the end of the page right before the * close of the body tag. * Index: modules/aggregator.module =================================================================== RCS file: /cvs/drupal/drupal/modules/aggregator.module,v retrieving revision 1.266 diff -u -r1.266 aggregator.module --- modules/aggregator.module 15 Dec 2005 16:02:50 -0000 1.266 +++ modules/aggregator.module 24 Dec 2005 18:43:42 -0000 @@ -967,12 +967,12 @@ // arg(1) is undefined if we are at the top aggregator URL // is there a better way to do this? if (!arg(1)) { - $form['xml_icon'] = array('#value' => theme('xml_icon', url('aggregator/rss'))); + $form['feed_icon'] = array('#value' => theme('feed_icon', url('aggregator/rss'))); } elseif (arg(1) == 'categories' && arg(2) && !arg(3)) { - $form['xml_icon'] = array('#value' => theme('xml_icon', url('aggregator/rss/' . arg(2)))); + $form['feed_icon'] = array('#value' => theme('feed_icon', url('aggregator/rss/' . arg(2)))); } - $output .= $form['xml_icon']['#value']; + $output .= $form['feed_icon']['#value']; return ($categorize) ? drupal_get_form('aggregator_page_list', $form) : $output; } Index: modules/blog.module =================================================================== RCS file: /cvs/drupal/drupal/modules/blog.module,v retrieving revision 1.238 diff -u -r1.238 blog.module --- modules/blog.module 5 Dec 2005 09:11:33 -0000 1.238 +++ modules/blog.module 24 Dec 2005 18:36:45 -0000 @@ -159,7 +159,7 @@ $output .= node_view(node_load($node->nid), 1); } $output .= theme('pager', NULL, variable_get('default_nodes_main', 10)); - $output .= theme('xml_icon', url("blog/$account->uid/feed")); + $output .= theme('feed_icon', url("blog/$account->uid/feed")); drupal_add_link(array('rel' => 'alternate', 'type' => 'application/rss+xml', @@ -186,7 +186,7 @@ $output .= node_view(node_load($node->nid), 1); } $output .= theme('pager', NULL, variable_get('default_nodes_main', 10)); - $output .= theme('xml_icon', url('blog/feed')); + $output .= theme('feed_icon', url('blog/feed')); drupal_add_link(array('rel' => 'alternate', 'type' => 'application/rss+xml', Index: modules/forum.module =================================================================== RCS file: /cvs/drupal/drupal/modules/forum.module,v retrieving revision 1.294 diff -u -r1.294 forum.module --- modules/forum.module 11 Dec 2005 12:44:39 -0000 1.294 +++ modules/forum.module 24 Dec 2005 18:36:58 -0000 @@ -882,7 +882,7 @@ 'href' => url('taxonomy/term/'. $tid .'/0/feed'))); $output .= theme('forum_topic_list', $tid, $topics, $sortby, $forum_per_page); - $output .= theme('xml_icon', url("taxonomy/term/$tid/0/feed")); + $output .= theme('feed_icon', url("taxonomy/term/$tid/0/feed")); } $output .= ''; } Index: modules/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node.module,v retrieving revision 1.571 diff -u -r1.571 node.module --- modules/node.module 22 Dec 2005 10:57:02 -0000 1.571 +++ modules/node.module 24 Dec 2005 18:37:01 -0000 @@ -1397,7 +1397,7 @@ } else if ($op == 'view') { $block['subject'] = t('Syndicate'); - $block['content'] = theme('xml_icon', url('rss.xml')); + $block['content'] = theme('feed_icon', url('rss.xml')); return $block; } Index: modules/taxonomy.module =================================================================== RCS file: /cvs/drupal/drupal/modules/taxonomy.module,v retrieving revision 1.247 diff -u -r1.247 taxonomy.module --- modules/taxonomy.module 22 Dec 2005 22:58:12 -0000 1.247 +++ modules/taxonomy.module 24 Dec 2005 18:37:15 -0000 @@ -1074,7 +1074,7 @@ 'href' => url('taxonomy/term/'. $str_tids .'/'. $depth .'/feed'))); $output = taxonomy_render_nodes(taxonomy_select_nodes($tids, $operator, $depth, TRUE)); - $output .= theme('xml_icon', url('taxonomy/term/'. $str_tids .'/'. $depth .'/feed')); + $output .= theme('feed_icon', url('taxonomy/term/'. $str_tids .'/'. $depth .'/feed')); return $output; break;