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

$file = $vars['entity'];

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

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

echo elgg_view('river/elements/attachment', array(
	'image' => elgg_view_entity_icon($file, 'small'),
	'title' => $title,
	'description' => $description,
));