root / drupal7 / sites / all / themes / adaptivetheme / at_core / templates / taxonomy-term.tpl.php @ 74f6bef0
1 | 85ad3d82 | Assos Assos | <?php
|
---|---|---|---|
2 | |||
3 | /**
|
||
4 | * @file
|
||
5 | * Adaptivetheme implementation to display a term.
|
||
6 | *
|
||
7 | * Adaptivetheme variables:
|
||
8 | 74f6bef0 | Assos Assos | * - $is_mobile: Mixed, requires the Mobile Detect or Browscap module to return
|
9 | * TRUE for mobile. Note that tablets are also considered mobile devices.
|
||
10 | * Returns NULL if the feature could not be detected.
|
||
11 | * - $is_tablet: Mixed, requires the Mobile Detect to return TRUE for tablets.
|
||
12 | * Returns NULL if the feature could not be detected.
|
||
13 | 85ad3d82 | Assos Assos | *
|
14 | * Available variables:
|
||
15 | * - $name: the (sanitized) name of the term.
|
||
16 | * - $content: An array of items for the content of the term (fields and
|
||
17 | * description). Use render($content) to print them all, or print a subset
|
||
18 | * such as render($content['field_example']). Use
|
||
19 | * hide($content['field_example']) to temporarily suppress the printing of a
|
||
20 | * given element.
|
||
21 | * - $term_url: Direct url of the current term.
|
||
22 | * - $term_name: Name of the current term.
|
||
23 | * - $classes: String of classes that can be used to style contextually through
|
||
24 | * CSS. It can be manipulated through the variable $classes_array from
|
||
25 | * preprocess functions. The default values can be one or more of the following:
|
||
26 | * - taxonomy-term: The current template type, i.e., "theming hook".
|
||
27 | * - vocabulary-[vocabulary-name]: The vocabulary to which the term belongs to.
|
||
28 | * For example, if the term is a "Tag" it would result in "vocabulary-tag".
|
||
29 | *
|
||
30 | * Other variables:
|
||
31 | * - $term: Full term object. Contains data that may not be safe.
|
||
32 | * - $view_mode: View mode, e.g. 'full', 'teaser'...
|
||
33 | * - $page: Flag for the full page state.
|
||
34 | * - $classes_array: Array of html class attribute values. It is flattened
|
||
35 | * into a string within the variable $classes.
|
||
36 | * - $zebra: Outputs either "even" or "odd". Useful for zebra striping in
|
||
37 | * teaser listings.
|
||
38 | * - $id: Position of the term. Increments each time it's output.
|
||
39 | * - $is_front: Flags true when presented in the front page.
|
||
40 | * - $logged_in: Flags true when the current user is a logged-in member.
|
||
41 | * - $is_admin: Flags true when the current user is an administrator.
|
||
42 | *
|
||
43 | * @see template_preprocess()
|
||
44 | * @see template_preprocess_taxonomy_term()
|
||
45 | * @see template_process()
|
||
46 | */
|
||
47 | ?>
|
||
48 | <?php if ($content = render($content)): ?> |
||
49 | <article id="taxonomy-term-<?php print $term->tid; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>> |
||
50 | <?php print render($title_prefix); ?> |
||
51 | |||
52 | <?php if (!$page): ?> |
||
53 | <h2<?php print $title_attributes; ?>><a href="<?php print $term_url; ?>"><?php print $term_name; ?></a></h2> |
||
54 | <?php endif; ?> |
||
55 | |||
56 | <div class="content"<?php print $content_attributes; ?>> |
||
57 | <?php print $content; ?> |
||
58 | </div>
|
||
59 | |||
60 | <?php print render($title_suffix); ?> |
||
61 | </article>
|
||
62 | <?php endif; ?> |