-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix uppercase record string in featured function, fix conditionals in…
… single item partial.
- Loading branch information
Showing
2 changed files
with
22 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
<div class="item record"> | ||
<?php | ||
$title = metadata($item, 'display_title'); | ||
$description = metadata($item, array('Dublin Core', 'Description'), array('snippet' => 150)); | ||
$thumbnailSize = ($thumbnailSize) ? $thumbnailSize : 'thumbnail'; | ||
?> | ||
<?php if (metadata($item, 'has files')) { | ||
echo link_to_item( | ||
item_image($thumbnailSize, array(), 0, $item), | ||
array('class' => 'image'), 'show', $item | ||
); | ||
} | ||
?> | ||
<?php if ($featured): ?> | ||
<span class="secondary label"><?php echo __('Featured Item'); ?></span> | ||
<?php | ||
$title = metadata($item, 'display_title'); | ||
$description = metadata($item, array('Dublin Core', 'Description'), array('snippet' => 150)); | ||
$thumbnailSize = (isset($thumbnailSize)) ? $thumbnailSize : 'thumbnail'; | ||
?> | ||
<?php if (metadata($item, 'has files')) { | ||
echo link_to_item( | ||
item_image($thumbnailSize, array(), 0, $item), | ||
array('class' => 'image'), 'show', $item | ||
); | ||
} | ||
?> | ||
<?php if (isset($featured)): ?> | ||
<span class="secondary label"><?php echo __('Featured Item'); ?></span> | ||
<?php endif; ?> | ||
<div class="record-meta"> | ||
<h3><?php echo link_to($item, 'show', $title); ?></h3> | ||
<?php if ($description): ?> | ||
<p class="description"><?php echo $description; ?></p> | ||
<?php endif; ?> | ||
<div class="record-meta"> | ||
<h3><?php echo link_to($item, 'show', $title); ?></h3> | ||
<?php if ($description): ?> | ||
<p class="description"><?php echo $description; ?></p> | ||
<?php endif; ?> | ||
</div> | ||
</div> | ||
</div> |