Skip to content

Instantly share code, notes, and snippets.

@jeremyboggs
Created May 4, 2020 16:38
Show Gist options
  • Save jeremyboggs/cf64882b175f22a7147c45063acb45c9 to your computer and use it in GitHub Desktop.
Save jeremyboggs/cf64882b175f22a7147c45063acb45c9 to your computer and use it in GitHub Desktop.
Example snipped for Omeka's items/show.php
<!-- The following returns all of the files associated with an item. -->
<?php if (metadata('item', 'has files')): ?>
<div id="itemfiles" class="element">
<h3><?php echo __('Files'); ?></h3>
<div class="element-text"><?php echo files_for_item(); ?></div>
</div>
<?php endif; ?>
<?php echo all_element_texts('item'); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment