field--fences-code.tpl.php in Fences 7.2
Same filename and directory in other branches
field--fences-code.tpl.php Wrap each field value in the <code> element.
File
templates/field--fences-code.tpl.phpView source
<?php
/**
* @file field--fences-code.tpl.php
* Wrap each field value in the <code> element.
*
* @see http://developers.whatwg.org/text-level-semantics.html#the-code-element
*/
?>
<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) {
?>
<code class="<?php
print $classes;
?>"<?php
print $attributes;
?>>
<?php
print render($item);
?>
</code>
<?php
}