taxonomy-term.tpl.php

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  1. cis7 modules/taxonomy/taxonomy-term.tpl.php
  2. cis7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/taxonomy-term.tpl.php
  3. cle7 modules/taxonomy/taxonomy-term.tpl.php
  4. cle7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/taxonomy-term.tpl.php
  5. ecd7 modules/taxonomy/taxonomy-term.tpl.php
  6. ecd7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/taxonomy-term.tpl.php
  7. elmsmedia7 modules/taxonomy/taxonomy-term.tpl.php
  8. elmsmedia7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/taxonomy-term.tpl.php
  9. harmony7 modules/taxonomy/taxonomy-term.tpl.php
  10. harmony7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/taxonomy-term.tpl.php
  11. icor7 modules/taxonomy/taxonomy-term.tpl.php
  12. icor7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/taxonomy-term.tpl.php
  13. meedjum_blog7 modules/taxonomy/taxonomy-term.tpl.php
  14. meedjum_blog7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/taxonomy-term.tpl.php
  15. mooc7 modules/taxonomy/taxonomy-term.tpl.php
  16. mooc7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/taxonomy-term.tpl.php

Default theme implementation to display a term.

Available variables:

  • $name: (deprecated) The unsanitized name of the term. Use $term_name instead.
  • $content: An array of items for the content of the term (fields and description). Use render($content) to print them all, or print a subset such as render($content['field_example']). Use hide($content['field_example']) to temporarily suppress the printing of a given element.
  • $term_url: Direct URL of the current term.
  • $term_name: Name of the current term.
  • $classes: String of classes that can be used to style contextually through CSS. It can be manipulated through the variable $classes_array from preprocess functions. The default values can be one or more of the following:

    • taxonomy-term: The current template type, i.e., "theming hook".
    • vocabulary-[vocabulary-name]: The vocabulary to which the term belongs to. For example, if the term is a "Tag" it would result in "vocabulary-tag".

Other variables:

  • $term: Full term object. Contains data that may not be safe.
  • $view_mode: View mode, e.g. 'full', 'teaser'...
  • $page: Flag for the full page state.
  • $classes_array: Array of html class attribute values. It is flattened into a string within the variable $classes.
  • $zebra: Outputs either "even" or "odd". Useful for zebra striping in teaser listings.
  • $id: Position of the term. Increments each time it's output.
  • $is_front: Flags true when presented in the front page.
  • $logged_in: Flags true when the current user is a logged-in member.
  • $is_admin: Flags true when the current user is an administrator.

See also

template_preprocess()

template_preprocess_taxonomy_term()

template_process()

114 string references to the theme hook from taxonomy-term.tpl.php

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

cis_shortcodes_entity_view in sites/all/modules/elmsln_contrib/cis_connector/modules/cis_shortcodes/cis_shortcodes.module
Implements hook_entity_view().
context_entity_prepare_view in sites/all/modules/ulmus/context/context.core.inc
Implementation of hook_entity_prepare_view().
context_views_pre_view in sites/all/modules/ulmus/context/context.core.inc
Implementation of hook_views_pre_view().
ctools_context_entity_convert in sites/all/modules/ulmus/ctools/plugins/contexts/entity.inc
Convert a context into a string.
ctools_context_entity_convert_list in sites/all/modules/ulmus/ctools/plugins/contexts/entity.inc
Provide a list of ways that this context can be converted to a string.

... See full list

File

modules/taxonomy/taxonomy-term.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation to display a term.
  5. *
  6. * Available variables:
  7. * - $name: (deprecated) The unsanitized name of the term. Use $term_name
  8. * instead.
  9. * - $content: An array of items for the content of the term (fields and
  10. * description). Use render($content) to print them all, or print a subset
  11. * such as render($content['field_example']). Use
  12. * hide($content['field_example']) to temporarily suppress the printing of a
  13. * given element.
  14. * - $term_url: Direct URL of the current term.
  15. * - $term_name: Name of the current term.
  16. * - $classes: String of classes that can be used to style contextually through
  17. * CSS. It can be manipulated through the variable $classes_array from
  18. * preprocess functions. The default values can be one or more of the following:
  19. * - taxonomy-term: The current template type, i.e., "theming hook".
  20. * - vocabulary-[vocabulary-name]: The vocabulary to which the term belongs to.
  21. * For example, if the term is a "Tag" it would result in "vocabulary-tag".
  22. *
  23. * Other variables:
  24. * - $term: Full term object. Contains data that may not be safe.
  25. * - $view_mode: View mode, e.g. 'full', 'teaser'...
  26. * - $page: Flag for the full page state.
  27. * - $classes_array: Array of html class attribute values. It is flattened
  28. * into a string within the variable $classes.
  29. * - $zebra: Outputs either "even" or "odd". Useful for zebra striping in
  30. * teaser listings.
  31. * - $id: Position of the term. Increments each time it's output.
  32. * - $is_front: Flags true when presented in the front page.
  33. * - $logged_in: Flags true when the current user is a logged-in member.
  34. * - $is_admin: Flags true when the current user is an administrator.
  35. *
  36. * @see template_preprocess()
  37. * @see template_preprocess_taxonomy_term()
  38. * @see template_process()
  39. *
  40. * @ingroup themeable
  41. */
  42. ?>
  43. <div id="taxonomy-term-<?php print $term->tid; ?>" class="<?php print $classes; ?>">
  44. <?php if (!$page): ?>
  45. <h2><a href="<?php print $term_url; ?>"><?php print $term_name; ?></a></h2>
  46. <?php endif; ?>
  47. <div class="content">
  48. <?php print render($content); ?>
  49. </div>
  50. </div>

Related topics

Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.