forked from dingproject/dynamo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathting_object_title.tpl.php
More file actions
29 lines (29 loc) · 931 Bytes
/
ting_object_title.tpl.php
File metadata and controls
29 lines (29 loc) · 931 Bytes
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
<?php
// $Id$
/**
* @file ting_object_title.tpl.php
*
* Template to render a Ting object title (including author etc.).
*
* Available variables:
* - $object: The TingClientObject instance we're rendering.
*/
?>
<!-- ting_object_title.tpl -->
<?php if (!$object) { ?>
<?php print t('Title not available.'); ?>
<?php } else { ?>
<?php if ($display_image) { ?>
<?php $image_url = ting_covers_object_url($object, '80_x'); ?>
<?php if ($image_url) { ?>
<?php print '<span class="image">' . theme('image', $image_url, '', '', NULL, FALSE) .'</span>'; ?>
<?php } ?>
<?php } ?>
<span class="title"><?php print l($object->title, $object->url); ?></span>
<span class='creator'>
<span class='byline'><?php echo t('by'); ?></span>
<?php print check_plain($object->creators_string); ?>
<span class='date'>(<?php echo $object->type; ?>)</span>
</span>
<?php } ?>
<!-- /ting_object_title.tpl -->