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