blob: 91ec11064a824cc717f4dcd13010ca699651bec3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php
/**
* Display an image
*/
$image_url = elgg_get_site_url() . "mod/file/thumbnail.php?file_guid={$vars['entity']->getGUID()}&size=large";
$download_url = elgg_get_site_url() . "mod/file/download.php?file_guid={$vars['entity']->getGUID()}";
if ($vars['full'] && $smallthumb = $vars['entity']->smallthumb) {
echo <<<HTML
<div class="file-photo">
<a href="$download_url"><img class="elgg-photo" src="$image_url" /></a>
</div>
HTML;
}
|