aboutsummaryrefslogtreecommitdiff
path: root/mod/cool_theme/views/default/river/elements/attachment.php
blob: d5c0aab99dabd03e604549a3f8511c4f51bf715e (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
<?php

$title = '';
$subtitle = false;
$image = false;
$description = false;

extract($vars, EXTR_IF_EXISTS);

$body = "<h4 class=\"elgg-attachment-title\">$title</h4>";

if ($subtitle) {
	$body .= "<div class=\"elgg-attachment-subtitle\">$subtitle</div>";
}

if ($description) {
	$body .= "<div class=\"elgg-attachment-description\">$description</div>";
}


if ($image) {
	echo elgg_view_image_block($image, $body);
} else {
	echo $body;
}