forked from dingproject/ting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ting-list-item.tpl.php
54 lines (45 loc) · 1.5 KB
/
ting-list-item.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
<?php
/**
* @file
* Display a ting objects as part of a list.
*/
?>
<!-- ting-list-item.tpl -->
<div id="ting-item-<?php print $ting_local_id; ?>" class="ting-item clearfix">
<div class="content clearfix">
<div class="picture">
<?php if ($image) {
print $image;
} ?>
</div>
<div class="info">
<span class='date'><?php print $ting_publication_date; ?></span>
<h3><?php print l($ting_title, $ting_url, array('html' => true)); ?></h3>
<?php if (!empty($ting_creators_links)) { ?>
<em><?php echo t('by'); ?></em>
<?php print array_shift($ting_creators_links) ?>
<?php } ?>
<div class='language'><?php echo t('Language') . ': ' . $ting_language; ?></div>
<?php if (!empty($ting_creators_links)) {
foreach ($ting_creators_links as $creator_link) {
print "<p>" . $creator_link . "</p>";
}
} ?>
<?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 }?>
<div class="more">
<?php print $more_link; ?>
</div>
<?php if (isset($additional_content)) { print drupal_render($additional_content); } ?>
</div>
</div>
<?php if ($buttons) :?>
<div class="ting-object-buttons">
<?php print theme('item_list', $buttons, NULL, 'ul', array('class' => 'buttons')) ?>
</div>
<?php endif; ?>
</div>