#211060 by boydjd: do not display the taxonomy-term-description div when there is no description

6.x
Gábor Hojtsy 2008-01-17 19:36:37 +00:00
parent d50abff253
commit 5ff9942154
1 changed files with 8 additions and 3 deletions

View File

@ -91,9 +91,14 @@ function theme_taxonomy_term_page($tids, $result) {
// Only display the description if we have a single term, to avoid clutter and confusion.
if (count($tids) == 1) {
$term = taxonomy_get_term($tids[0]);
$output .= '<div class="taxonomy-term-description">';
$output .= filter_xss_admin($term->description);
$output .= '</div>';
$description = $term->description;
// Check that a description is set.
if (!empty($description)) {
$output .= '<div class="taxonomy-term-description">';
$output .= filter_xss_admin($description);
$output .= '</div>';
}
}
$output .= taxonomy_render_nodes($result);