forked from dingproject/ting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathting_object.tpl.php
74 lines (62 loc) · 2.13 KB
/
ting_object.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* @file
* Template to render objects from the Ting database.
*/
?>
<div id='ting-item-<?php print $ting_local_id; ?>' class='ting-item ting-item-full'>
<div class='ting-overview clearfix'>
<div class='left-column left'>
<div class='picture'>
<?php if ($image): ?>
<?php print $image; ?>
<?php endif ?>
</div>
</div>
<div class='right-column left'>
<h2><?php print $ting_title; ?></h2>
<div class='creator'>
<?php if (sizeof($ting_creators_links) == 1): ?>
<span class='byline'><?php echo ucfirst(t('by')); ?></span>
<?php print $ting_creators_links[0]; ?>
<?php endif ?>
<?php if ($ting_publication_date): ?>
<span class='date'>(<?php print $ting_publication_date; ?>)</span>
<?php endif; ?>
</div>
<?php if (isset($ting_title_full)): ?>
<p class='title-info'>
<span class='label'><?php print t('Additional title information:')?></span>
<?php print $ting_title_full; ?>
</p>
<?php endif; ?>
<p class='abstract'><?php print $ting_abstract; ?></p>
<?php if (isset($ting_series_links)): ?>
<p class='series'>
<span class='label'><?php print t('Series:')?></span>
<?php print theme('item_list', $ting_series_links, NULL, 'span'); ?>
</p>
<?php endif; ?>
<?php if (isset($additional_main_content)):
print drupal_render($additional_main_content);
endif; ?>
</div>
<?php if ($buttons) :?>
<div class='ting-object-buttons'>
<?php print theme('item_list', $buttons, NULL, 'ul', array('class' => 'buttons')) ?>
</div>
<?php endif; ?>
</div>
<div class='object-information ting-details clearfix'>
<?php print $ting_details; ?>
</div>
<?php if (!empty($alternate_material_types)): ?>
<div class="ding-box-wide object-otherversions">
<h3><?php echo t('Also available as: ') ?></h3>
<?php echo $alternate_material_types; ?>
</div>
<?php endif; ?>
<?php if (isset($additional_content)):
print drupal_render($additional_content);
endif; ?>
</div>