show taxonomy description into taxonomy views page

Public
</> CopyGet raw version
php
  1. <?php $view = views_get_current_view();
  2. $tid = $view->args[0];
  3. if ( is_numeric( $tid ) ) {
  4. $term = taxonomy_term_load($tid);
  5. if (module_exists('i18n_taxonomy') && i18n_taxonomy_vocabulary_mode($term->vid) == I18N_MODE_LOCALIZE) {
  6. $description = i18n_string("taxonomy:term:$term->tid:description", $term->description);
  7. } else {
  8. $description = $term->description;
  9. }
  10. print $description;
  11. }
  12. ?>