diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-10 06:28:10 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-10 06:28:10 +0000 |
commit | 0bc39fef86c22c3eacf3431751ea1b428c179f92 (patch) | |
tree | eaf685f5dff859b684be13bc1ec758ed093e25a8 /modules/taxonomy/taxonomy-term.tpl.php | |
parent | 2f9fd67579a7d9db2853839dd6588d992a03fa69 (diff) | |
download | brdo-0bc39fef86c22c3eacf3431751ea1b428c179f92.tar.gz brdo-0bc39fef86c22c3eacf3431751ea1b428c179f92.tar.bz2 |
#499192 by yched: Fix display and forms for 'Fieldable terms' .
Diffstat (limited to 'modules/taxonomy/taxonomy-term.tpl.php')
-rw-r--r-- | modules/taxonomy/taxonomy-term.tpl.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy-term.tpl.php b/modules/taxonomy/taxonomy-term.tpl.php new file mode 100644 index 000000000..f48452c29 --- /dev/null +++ b/modules/taxonomy/taxonomy-term.tpl.php @@ -0,0 +1,51 @@ +<?php +// $Id$ + +/** + * @file + * Default theme implementation to display a term. + * + * Available variables: + * - $name: the (sanitized) name of the term. + * - $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. + * - $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 template_preprocess() + * @see template_preprocess_taxonomy_term() + * @see template_process() + */ +?> +<div id="taxonomy-term-<?php print $term->tid; ?>" class="<?php print $classes; ?> clearfix"> + + <?php if (!$page): ?> + <h2><a href="<?php print $term_url; ?>"><?php print $term_name; ?></a></h2> + <?php endif; ?> + + <div class="content"> + <?php print render($content); ?> + </div> + +</div> |