-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathting_collection.tpl.php
More file actions
37 lines (32 loc) · 1.01 KB
/
ting_collection.tpl.php
File metadata and controls
37 lines (32 loc) · 1.01 KB
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
<?php
/**
* @file
* 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; ?>