forked from dingproject/alternator
/
ting-object.tpl.php
72 lines (61 loc) · 2.09 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
<?php
/**
* @file
* Template to render objects from the Ting database.
*
* Available variables:
* - $object: The TingClientObject instance we're rendering.
* - $image: Image for the thing.
* - $title: Main title.
* - $other_titles: Also known as.
* - $alternative_titles: Array of other alternative titles. May be empty;
* - $creators: Authors of the item (string).
* - $date: The date of the thing.
* - $abstract: Short description.
*/
?>
<div id="ting-item-<?php print $ting_local_id; ?>" class="ting-item ting-item-full">
<h1><?php print $ting_title; ?></h1>
<?php if ($image): ?>
<div class="picture">
<?php print $image; ?>
</div>
<?php endif; ?>
<div class="right-of-pic clear-block">
<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>
<div class="abstract"><?php print $ting_abstract; ?></div>
<?php if (isset($ting_series_links)): ?>
<div class="series">
<span class="label"><?php print t('Series:')?></span>
<?php print theme('item_list', $ting_series_links); ?>
</div>
<?php endif; ?>
<?php if (isset($additional_main_content)):
print drupal_render($additional_main_content);
endif; ?>
<!-- RESERVE BUTTON -->
<?php if ($buttons) :?>
<div class="ting-object-buttons">
<?php print theme('item_list', $buttons, NULL, 'ul', array('class' => 'buttons')) ?>
</div>
<?php endif; ?>
</div><!-- /.right-of-pic -->
<!-- FLERE INFORMATION -->
<h2 class="title-collapsible">
<?php print t('More information'); ?>
</h2>
<div class="additional-info collapsible-info graybox-btns">
<?php print $ting_details; ?>
<?php if (isset($additional_content)):
print drupal_render($additional_content);
endif; ?>
</div><!-- /additional-info -->
</div><!-- /#ting-item -->