Nigel Banks
12 years ago
6 changed files with 184 additions and 0 deletions
@ -0,0 +1,39 @@
|
||||
/** |
||||
* @file |
||||
* Styles for rendering grids/lists of objects. |
||||
*/ |
||||
.islandora-objects-display-switch { |
||||
float: right; |
||||
} |
||||
.islandora-objects-grid-item { |
||||
display: inline-block; |
||||
width: 20%; |
||||
min-width: 100px; |
||||
min-height: 180px; |
||||
display: -moz-inline-stack; |
||||
display: inline-block; |
||||
vertical-align: top; |
||||
margin: 1.5em 1.84%; |
||||
zoom: 1; |
||||
*display: inline; |
||||
_height: 180px; |
||||
} |
||||
.islandora-objects-list-item { |
||||
padding-bottom: 1.5em; |
||||
border-bottom: 1px solid #ddd; |
||||
} |
||||
.islandora-objects-list-item .islandora-object-thumb { |
||||
clear: left; |
||||
float: left; |
||||
padding: 3px 0 0; |
||||
text-align: center; |
||||
width: 100px; |
||||
} |
||||
.islandora-objects-list-item .islandora-object-caption, .islandora-objects-list-item .islandora-object-description { |
||||
margin: 0 0 0 130px; |
||||
padding-top: 2px; |
||||
padding-bottom: 2px; |
||||
} |
||||
.islandora-object-thumb img { |
||||
width: 100%; |
||||
} |
@ -0,0 +1,17 @@
|
||||
<?php |
||||
|
||||
/** |
||||
* @file |
||||
* Render a bunch of objects in a list or grid view. |
||||
*/ |
||||
?> |
||||
<div class="islandora-objects-grid clearfix"> |
||||
<?php foreach($objects as $object): ?> |
||||
<div class="islandora-objects-grid-item clearfix"> |
||||
<dl class="islandora-object <?php print $object['class']; ?>">
|
||||
<dt class="islandora-object-thumb"><?php print $object['thumb']; ?></dt>
|
||||
<dd class="islandora-object-caption"><?php print $object['link']; ?></dd>
|
||||
</dl> |
||||
</div> |
||||
<?php endforeach; ?> |
||||
</div> |
@ -0,0 +1,29 @@
|
||||
<?php |
||||
|
||||
/** |
||||
* @file |
||||
* Render a bunch of objects in a list or grid view. |
||||
*/ |
||||
?> |
||||
<div class="islandora-objects-list"> |
||||
<?php $row_field = 0; ?> |
||||
<?php foreach($objects as $object): ?> |
||||
<?php $first = ($row_field == 0) ? 'first' : ''; ?> |
||||
<div class="islandora-objects-list-item clearfix"> |
||||
<dl class="islandora-object <?php print $object['class']; ?>">
|
||||
<dt class="islandora-object-thumb"> |
||||
<?php print $object['thumb']; ?> |
||||
</dt> |
||||
<dd class="islandora-object-caption <?php print $object['class']?> <?php print $first; ?>">
|
||||
<strong> |
||||
<?php print $object['link']; ?> |
||||
</strong> |
||||
</dd> |
||||
<dd class="islandora-object-description"> |
||||
<?php print $object['description']; ?> |
||||
</dd> |
||||
</dl> |
||||
</div> |
||||
<?php $row_field++; ?> |
||||
<?php endforeach; ?> |
||||
</div> |
@ -0,0 +1,15 @@
|
||||
<?php |
||||
|
||||
/** |
||||
* @file |
||||
* Render a bunch of objects in a list or grid view. |
||||
*/ |
||||
?> |
||||
<div class="islandora-objects clearfix"> |
||||
<span class="islandora-objects-display-switch"> |
||||
<?php print theme('links', array('links' => $display_links, 'attributes' => array('class' => array('links', 'inline')))); ?> |
||||
</span> |
||||
<?php print $pager; ?> |
||||
<?php print $content; ?> |
||||
<?php print $pager; ?> |
||||
</div> |
Loading…
Reference in new issue