Révision 6331c987
Ajouté par Assos Assos il y a environ 10 ans
drupal7/sites/all/modules/i18n/i18n_taxonomy/i18n_taxonomy.pages.inc | ||
---|---|---|
62 | 62 |
return $build; |
63 | 63 |
} |
64 | 64 |
|
65 |
/** |
|
66 |
* Render a taxonomy term page HTML output. |
|
67 |
* |
|
68 |
* @param $tids |
|
69 |
* An array of term ids. |
|
70 |
* @param $result |
|
71 |
* A pager_query() result, such as that performed by taxonomy_select_nodes(). |
|
72 |
* |
|
73 |
* @ingroup themeable |
|
74 |
*/ |
|
75 |
function theme_i18n_taxonomy_term_page($tids, $result) { |
|
76 |
drupal_add_css(drupal_get_path('module', 'taxonomy') . '/taxonomy.css'); |
|
77 |
|
|
78 |
$output = ''; |
|
79 |
|
|
80 |
// Only display the description if we have a single term, to avoid clutter and confusion. |
|
81 |
if (count($tids) == 1) { |
|
82 |
$term = i18n_taxonomy_localize_terms(taxonomy_term_load($tids[0])); |
|
83 |
// Check that a description is set. |
|
84 |
if (!empty($term->description)) { |
|
85 |
$output .= '<div class="taxonomy-term-description">'; |
|
86 |
$output .= filter_xss_admin($term->description); |
|
87 |
$output .= '</div>'; |
|
88 |
} |
|
89 |
} |
|
90 |
|
|
91 |
$output .= taxonomy_render_nodes($result); |
|
92 |
|
|
93 |
return $output; |
|
94 |
} |
|
95 |
|
|
96 | 65 |
/** |
97 | 66 |
* Helper function for autocompletion. Replacement for taxonomy_autocomplete |
98 | 67 |
*/ |
Formats disponibles : Unified diff
Weekly update of contrib modules