blob: 5bb2f2567bb6f1e15f1a72e24372d3e5b01c152a (
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
|
<?php
/**
* Group timeline
*
* @package ElggGraphStats
*/
$view = get_input('view', 'default');
$group_guid = (int) get_input('group_guid');
$group = new ElggGroup($group_guid);
if (!$group->guid) {
forward();
}
$title = elgg_echo('graphstats:group');
elgg_push_breadcrumb(elgg_echo('graphstats'), "graphs/timestats");
elgg_push_breadcrumb($group->name, $group->getURL());
elgg_push_breadcrumb($title);
elgg_set_page_owner_guid($group_guid);
if($view != 'json'){
$json_url = elgg_get_site_url() . "graphs/group/$group_guid/?view=json";
$content = elgg_view('graphs/timeline', array('json_url' => $json_url));
$body = elgg_view_layout('content', array(
'content' => $content,
'title' => $title,
'filter' => '',
));
echo elgg_view_page($title, $body);
} else {
echo elgg_view('timeline/group', array('group_guid' => $group_guid));
}
|