blob: 0dadb63c2346ba4fd79cccd2dc3096a6c2e91970 (
plain)
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
|
<?php
/**
* Elgg Pages gallery listing.
*
* @package ElggPages
*/
$icon = elgg_view(
"graphics/icon", array(
'entity' => $vars['entity'],
'size' => 'medium',
)
);
$info = "<div><p><b><a href=\"" . $vars['entity']->getUrl() . "\">" . $vars['entity']->title . "</a></b></p></div>";
$latest = $vars['entity']->getAnnotations('page', 1, 0, 'desc');
if ($latest) {
$latest = $latest[0];
$time_updated = $latest->time_created;
$owner_guid = $latest->owner_guid;
$owner = get_entity($owner_guid);
$info .= "<br /><div>".
strip_tags(substr($latest->value, 0, 100))
. "</div>";
}
echo elgg_view_listing($icon, $info);
|