field--fences-h4.tpl.php in Fences 7
Same filename and directory in other branches
field--fences-h4.tpl.php Wrap each field value in the <h4> element.
File
templates/field--fences-h4.tpl.phpView source
<?php
/**
* @file field--fences-h4.tpl.php
* Wrap each field value in the <h4> element.
*
* @see http://developers.whatwg.org/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements
*/
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
}
?>
<?php
foreach ($items as $delta => $item) {
?>
<h4 class="<?php
print $classes;
?>"<?php
print $attributes;
?>>
<?php
print render($item);
?>
</h4>
<?php
}