summaryrefslogtreecommitdiff
path: root/modules/field/theme/field.tpl.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-09-11 06:48:03 +0000
committerDries Buytaert <dries@buytaert.net>2009-09-11 06:48:03 +0000
commit2729f1c2f0ae6aa790edf1a8be70a74fae04934c (patch)
tree160fa3de22ec22c8b63d4c09e41769cd8902b98e /modules/field/theme/field.tpl.php
parent4f3e5cd94085d9a83aa9e52c95bf0fd7aedfb753 (diff)
downloadbrdo-2729f1c2f0ae6aa790edf1a8be70a74fae04934c.tar.gz
brdo-2729f1c2f0ae6aa790edf1a8be70a74fae04934c.tar.bz2
- Patch #569362 by scor, effulgentsia, catch: add attributes and title_attributes() variables for tpl files so that RDFa and Microformats can be implemented.
Diffstat (limited to 'modules/field/theme/field.tpl.php')
-rw-r--r--modules/field/theme/field.tpl.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/field/theme/field.tpl.php b/modules/field/theme/field.tpl.php
index 9018f45b5..312c4b844 100644
--- a/modules/field/theme/field.tpl.php
+++ b/modules/field/theme/field.tpl.php
@@ -39,13 +39,13 @@
*/
?>
<?php if ($items) : ?>
- <div class="field <?php print $classes; ?> clearfix">
+ <div class="field <?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<?php if (!$label_hidden) : ?>
- <div class="field-label"><?php print $label ?>:&nbsp;</div>
+ <div class="field-label"<?php print $title_attributes; ?>><?php print $label ?>:&nbsp;</div>
<?php endif; ?>
<div class="field-items">
<?php foreach ($items as $delta => $item) : ?>
- <div class="field-item <?php print $delta % 2 ? 'odd' : 'even'; ?>"><?php print render($item); ?></div>
+ <div class="field-item <?php print $delta % 2 ? 'odd' : 'even'; ?>"<?php print $item_attributes[$delta]; ?>><?php print render($item); ?></div>
<?php endforeach; ?>
</div>
</div>