Browse Source

cleaned up the template file a bit

pull/166/head
DannyJoris 12 years ago
parent
commit
2d9e82b79e
  1. 26
      theme/islandora-object.tpl.php

26
theme/islandora-object.tpl.php

@ -53,22 +53,22 @@
* *
*/ */
?> ?>
<?php if(isset($islandora_object_label)): ?> <?php if (isset($islandora_object_label)): ?>
<?php drupal_set_title("$islandora_object_label"); ?> <?php drupal_set_title("$islandora_object_label"); ?>
<?php endif; ?> <?php endif; ?>
<div class="islandora-object islandora"> <div class="islandora-object islandora">
<h2>Details</h2> <h2><?php print t('Details'); ?></h2>
<dl class="islandora-object-tn"> <dl class="islandora-object-tn">
<dt> <dt>
<?php if(isset($variables['islandora_thumbnail_url'])): ?> <?php if (isset($variables['islandora_thumbnail_url'])): ?>
<?php print('<img src = "'.$variables['islandora_thumbnail_url'].'"/>'); ?></dt> <img src="<?php print $variables['islandora_thumbnail_url']; ?>"/></dt>
<?php endif; ?> <?php endif; ?>
<dd></dd> <dd></dd>
</dl> </dl>
<dl class="islandora-inline-metadata islandora-object-fields"> <dl class="islandora-inline-metadata islandora-object-fields">
<?php $row_field = 0; ?> <?php $row_field = 0; ?>
<?php foreach($dc_array as $key => $value): ?> <?php foreach ($dc_array as $key => $value): ?>
<dt class="<?php print $value['class']; ?><?php print $row_field == 0 ? ' first' : ''; ?>"> <dt class="<?php print $value['class']; ?><?php print $row_field == 0 ? ' first' : ''; ?>">
<?php print $value['label']; ?> <?php print $value['label']; ?>
</dt> </dt>
@ -77,10 +77,10 @@
</dd> </dd>
<?php $row_field++; ?> <?php $row_field++; ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php if($parent_collections): ?> <?php if ($parent_collections): ?>
<dt>Collections</dt> <dt>Collections</dt>
<dd> <dd>
<?php foreach($parent_collections as $key => $value): ?> <?php foreach ($parent_collections as $key => $value): ?>
<div><?php print $value['label_link'] ?></div> <div><?php print $value['label_link'] ?></div>
<?php endforeach; ?> <?php endforeach; ?>
</dd> </dd>
@ -88,15 +88,15 @@
</dl> </dl>
</div> </div>
<fieldset class="collapsible collapsed" style="display: block; clear:both"> <fieldset class="collapsible collapsed" style="display: block; clear:both">
<legend><span class="fieldset-legend">File Details</span></legend> <legend><span class="fieldset-legend"><?php print t('File details'); ?></span></legend>
<div class="fieldset-wrapper"> <div class="fieldset-wrapper">
<table> <table>
<tr> <tr>
<th>ID</th> <th><?php print t('ID'); ?></th>
<th>Label</th> <th><?php print t('Label'); ?></th>
<th>Size</th> <th><?php print t('Size'); ?></th>
<th>Mimetype</th> <th><?php print t('Mimetype'); ?></th>
<th>Created</th> <th><?php print t('Created'); ?></th>
</tr> </tr>
<?php foreach($datastreams as $key => $value): ?> <?php foreach($datastreams as $key => $value): ?>
<tr> <tr>

Loading…
Cancel
Save