/profiles/commerce_kickstart/modules/contrib/fences/templates/field--fences-dl.tpl.php
PHP | 25 lines | 16 code | 3 blank | 6 comment | 3 complexity | e66ce3b5196295c3a82d2bd14cde7db7 MD5 | raw file
Possible License(s): ISC
- <?php
- /**
- * @file field--fences-dl.tpl.php
- * Wrap all field values in a single <dl> element.
- *
- * @see http://developers.whatwg.org/grouping-content.html#the-dl-element
- */
- ?>
- <?php if ($element['#label_display'] == 'inline'): ?>
- <span class="field-label"<?php print $title_attributes; ?>>
- <?php print $label; ?>:
- </span>
- <?php elseif ($element['#label_display'] == 'above'): ?>
- <h3 class="field-label"<?php print $title_attributes; ?>>
- <?php print $label; ?>
- </h3>
- <?php endif; ?>
- <dl class="<?php print $classes; ?>"<?php print $attributes; ?>>
- <?php foreach ($items as $delta => $item): ?>
- <?php print render($item); ?>
- <?php endforeach; ?>
- </dl>