Browse Source

Merge pull request #479 from jordandukart/7.x-1.3

Don't render unneeded markup when there is no thumbnail.
pull/481/head
Nick Ruest 11 years ago
parent
commit
0fbef45600
  1. 14
      theme/islandora-object.tpl.php

14
theme/islandora-object.tpl.php

@ -61,13 +61,13 @@
<div class="islandora-object islandora"> <div class="islandora-object islandora">
<h2><?php print t('Details'); ?></h2> <h2><?php print t('Details'); ?></h2>
<dl class="islandora-object-tn"> <?php if (isset($variables['islandora_thumbnail_url'])): ?>
<dt> <dl class="islandora-object-tn">
<?php if (isset($variables['islandora_thumbnail_url'])): ?> <dt>
<img src="<?php print $variables['islandora_thumbnail_url']; ?>"/></dt> <img src="<?php print $variables['islandora_thumbnail_url']; ?>"/>
<?php endif; ?> </dt>
<dd></dd> </dl>
</dl> <?php endif; ?>
<div class="islandora-default-metadata"> <div class="islandora-default-metadata">
<?php print $description; ?> <?php print $description; ?>
<?php print $metadata; ?> <?php print $metadata; ?>

Loading…
Cancel
Save