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

$link = $vars['entity'];

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

$subtitle = elgg_view('output/url', array('value' => $link->address));

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

echo elgg_view('river/elements/attachment', array(
	'title' => $title,
	'subtitle' => $subtitle,
	'description' => $description,
));