forked from dingproject/ting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ting_collection.tpl.php
38 lines (33 loc) · 1.03 KB
/
ting_collection.tpl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* @file ting_object.tpl.php
*
* Template to render a collection objects from the Ting database.
*/
?>
<div class="ting-overview clearfix">
<h1><?php print $ting_title ?></h1>
<?php if (sizeof($ting_creators_links) == 1) { ?>
<div class='creator'>
<span class='byline'><?php echo ucfirst(t('by')); ?></span>
<?php print implode(', ', $ting_creators_links); ?>
<span class='date'>(<?php print $ting_publication_date; ?>)</span>
</div>
<?php } ?>
<p class="abstract"><?php print $ting_abstract; ?></p>
<div class="ting-details clearfix">
<?php print $ting_details; ?>
</div>
<?php if (count($sorted_collection) > 1) { ?>
<div class='material-links'>
<span class='title'><?php echo t('Go to material:'); ?></span>
<?php
foreach ($sorted_collection as $type => $objects) {
$material_links[] = '<span class="link"><a href="#'.$type.'">'.t($type).'</a></span>';
}
print implode(", ", $material_links);
?>
</div>
<?php } ?>
</div>
<?php print $ting_list; ?>