PageRenderTime 50ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/profiles/commerce_kickstart/modules/contrib/fences/templates/field--fences-dl.tpl.php

https://bitbucket.org/brother_in_code/wordpress_shop
PHP | 25 lines | 16 code | 3 blank | 6 comment | 3 complexity | e66ce3b5196295c3a82d2bd14cde7db7 MD5 | raw file
Possible License(s): ISC
  1. <?php
  2. /**
  3. * @file field--fences-dl.tpl.php
  4. * Wrap all field values in a single <dl> element.
  5. *
  6. * @see http://developers.whatwg.org/grouping-content.html#the-dl-element
  7. */
  8. ?>
  9. <?php if ($element['#label_display'] == 'inline'): ?>
  10. <span class="field-label"<?php print $title_attributes; ?>>
  11. <?php print $label; ?>:
  12. </span>
  13. <?php elseif ($element['#label_display'] == 'above'): ?>
  14. <h3 class="field-label"<?php print $title_attributes; ?>>
  15. <?php print $label; ?>
  16. </h3>
  17. <?php endif; ?>
  18. <dl class="<?php print $classes; ?>"<?php print $attributes; ?>>
  19. <?php foreach ($items as $delta => $item): ?>
  20. <?php print render($item); ?>
  21. <?php endforeach; ?>
  22. </dl>