aboutsummaryrefslogtreecommitdiff
path: root/templates/field--taxonomy-term-reference.tpl.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-23 13:44:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-23 13:44:35 -0300
commit45748d73b5e784ad3e79350564eb68dcac71aa45 (patch)
treeedafc25882f15975ee4e6b3717ca70dcee50f398 /templates/field--taxonomy-term-reference.tpl.php
downloadmuambeiro-45748d73b5e784ad3e79350564eb68dcac71aa45.tar.gz
muambeiro-45748d73b5e784ad3e79350564eb68dcac71aa45.tar.bz2
Initial import
Diffstat (limited to 'templates/field--taxonomy-term-reference.tpl.php')
-rw-r--r--templates/field--taxonomy-term-reference.tpl.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/field--taxonomy-term-reference.tpl.php b/templates/field--taxonomy-term-reference.tpl.php
new file mode 100644
index 0000000..b5eb1e9
--- /dev/null
+++ b/templates/field--taxonomy-term-reference.tpl.php
@@ -0,0 +1,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>