aboutsummaryrefslogtreecommitdiff
path: root/templates/field--taxonomy-term-reference.tpl.php
blob: b5eb1e95fb104a22a6492cce11de60463a5553f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
// $Id$
/**
 * @file
 * Output for taxonomy term reference fields.
 */
?>
<div class="<?php print $classes; ?>"<?php print $attributes; ?>>
  <?php if (!$label_hidden) : ?>
    <h3 class="field-label"<?php print $title_attributes; ?>><?php print $label ?>&nbsp;</h3>
  <?php endif; ?>
  <span class="field-items"<?php print $content_attributes; ?>>
    <?php $num_fields = count($items); ?>
    <?php $i = 1; ?>
    <?php foreach ($items as $delta => $item) : ?>
      <?php print render($item); ?><?php $i != $num_fields ? print ', ' : ''; ?>
      <?php $i++; ?>
    <?php endforeach; ?>
  </span>
</div>