You are here

field--fences-figcaption.tpl.php in Fences 7.2

Same filename and directory in other branches
  1. 7 templates/field--fences-figcaption.tpl.php

field--fences-figcaption.tpl.php Wrap all field values in a single <figcaption> element.

Only one figcaption is allowed per figure element, so multiple field values are placed within a single figcaption.

File

templates/field--fences-figcaption.tpl.php
View source
<?php

/**
 * @file field--fences-figcaption.tpl.php
 * Wrap all field values in a single <figcaption> element.
 *
 * @see http://developers.whatwg.org/grouping-content.html#the-figcaption-element
 *
 * Only one figcaption is allowed per figure element, so multiple field values
 * are placed within a single figcaption.
 */
?>
<figcaption class="<?php

print $classes;
?>"<?php

print $attributes;
?>>

  <h3 class="field-label<?php

if ($element['#label_display'] == 'inline') {
  print " inline-sibling";
}
?>"<?php

print $title_attributes;
?>>
    <?php

print $label;
?>
  </h3>

  <?php

foreach ($items as $delta => $item) {
  ?>
    <?php

  print render($item);
  ?>
  <?php

}
?>

</figcaption>