aboutsummaryrefslogtreecommitdiff
path: root/mod/cool_theme/views/default/object/blog/river.php
blob: 59d5245ea9285b323b5687d6a81ea3e588fdbdf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

$blog = $vars['entity'];

$title = elgg_view('output/url', array(
	'text' => $blog->title,
	'href' => $blog->getURL(),
	'encode_text' => true,
));

$description = elgg_get_excerpt($blog->description, 350);

echo elgg_view('river/elements/attachment', array(
	'title' => $title,
	'description' => $description,
	'image' => elgg_view_entity_icon($blog->getOwnerEntity(), 'tiny'),
));