Skip to content

Commit

Permalink
Displayed the template settings in the resource template page.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-KM committed Aug 24, 2020
1 parent dc97c02 commit db4e23d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions application/view/omeka/admin/resource-template/show.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ $this->htmlElement('body')->appendAttribute('class', 'resource-templates show');
</div>
<?php endif; ?>

<div>
<dl><?php foreach ($resourceTemplate->settings() as $key => $value): ?>
<?php if (!$value) continue; ?>
<dt><?php echo str_replace('_', ' ', $key); ?></dt>
<?php if (is_array($value)): ?>
<?php foreach ($value as $val): ?>
<dd><?php echo $escape($val); ?></dd>
<?php endforeach; ?>
<?php else: ?>
<dd><?php echo $escape($value); ?></dd>
<?php endif; ?>
<?php endforeach;
?></dl>
</div>

<table id="properties" class="tablesaw tablesaw-stack" data-tablesaw-mode="stack">
<thead>
<tr>
Expand Down

0 comments on commit db4e23d

Please sign in to comment.