Created
May 19, 2020 13:39
-
-
Save jeremyboggs/379c0d38086bf695ecc06ef056b29e4a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php foreach ($elementsForDisplay as $setName => $setElements): ?> | |
<div class="element-set"> | |
<?php if ($showElementSetHeadings): ?> | |
<h2><?php echo html_escape(__($setName)); ?></h2> | |
<?php endif; ?> | |
<?php foreach ($setElements as $elementName => $elementInfo): ?> | |
<div id="<?php echo text_to_id(html_escape("$setName $elementName")); ?>" class="element"> | |
<?php | |
$label = html_escape(__($elementName)); | |
$item_type_name = metadata('item', 'item_type_name'); | |
if ( | |
($setName == 'Dublin Core' && $elementName == 'Title') || | |
($setName == 'Item Type Metadata' && $item_type_name == 'ObieGrad') | |
) { | |
$label = 'Name'; | |
} | |
?> | |
<h3><?php echo $label; ?></h3> | |
<?php foreach ($elementInfo['texts'] as $text): ?> | |
<div class="element-text"><?php echo $text; ?></div> | |
<?php endforeach; ?> | |
</div><!-- end element --> | |
<?php endforeach; ?> | |
</div><!-- end element-set --> | |
<?php endforeach; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment