function theme_site_map_rss_legend in Site map 8
Same name and namespace in other branches
- 6.2 site_map.theme.inc \theme_site_map_rss_legend()
- 7 includes/site_map.theme.inc \theme_site_map_rss_legend()
Returns HTML for a site map feed icon legend.
1 string reference to 'theme_site_map_rss_legend'
- site_map_theme in ./
site_map.module - Implements hook_theme().
1 theme call to theme_site_map_rss_legend()
- template_preprocess_site_map in ./
site_map.theme.inc - Preprocesses the variables for site-map.html.twig.
File
- ./
site_map.theme.inc, line 15 - Site map theme functions.
Code
function theme_site_map_rss_legend() {
$output = '';
$output .= '<p><strong>' . t('Legend:') . '</strong><br />';
$feed_icon_node = array(
'#theme' => 'site_map_feed_icon',
'#type' => 'node',
);
$output .= '<span class="rss">' . drupal_render($feed_icon_node) . '</span> ' . t('Link to a content RSS feed');
$feed_icon_comment = array(
'#theme' => 'site_map_feed_icon',
'#type' => 'comment',
);
$output .= '<br /><span class="rss">' . drupal_render($feed_icon_comment) . '</span> ' . t('Link to a comment RSS feed');
$output .= '</p>';
return $output;
}