blob: 4a29914425cb24174323118b8035b7bb287b62f8 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<?php
/**
* Object full rendering
*
* Sample output
* <h2>Title</h3>
* <div class="elgg-content">
* <div class="elgg-image-block">
* </div>
* <div class="elgg-output">
* </div>
* </div>
*
* @uses $vars['entity'] ElggEntity
* @uses $vars['title'] Title (false for no title)
* @uses $vars['icon'] HTML for the content icon
* @uses $vars['summary'] HTML for the content summary
* @uses $vars['body'] HTML for the content body
* @uses $vars['class'] Optional additional class for the content wrapper
*/
$title = elgg_extract('title', $vars);
$icon = elgg_extract('icon', $vars);
$summary = elgg_extract('summary', $vars);
$body = elgg_extract('body', $vars);
$class = elgg_extract('class', $vars);
if ($class) {
$class = "elgg-content $class";
} else {
$class = "elgg-content";
}
if ($title) {
$title = elgg_view_title($title);
}
$header = elgg_view_image_block($icon, $summary);
echo <<<HTML
$title
<div class="$class">
$header
$body
</div>
HTML;
|