-
Notifications
You must be signed in to change notification settings - Fork 0
/
wiki.php
29 lines (24 loc) · 1.33 KB
/
wiki.php
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
<?php
$icon = elgg_view_entity_icon($vars['entity'], 'medium');
$metadata = elgg_view_menu('entity', array(
'entity' => $vars['entity'],
'handler' => 'groups',
'sort_by' => 'priority',
'class' => 'elgg-menu-hz',
));
$params = array(
'entity' => $vars['entity'],
'metadata' => $metadata,
'content' => $vars['entity']->description
);
$list_body = elgg_view('object/elements/summary', $params);
echo elgg_view_image_block($icon, $list_body);
//we need to merge these items into the metadata above!
/*
echo elgg_view('output/url', array('text' => 'visit this wiki', 'href'=>$vars['entity']->url)); echo "<br>";
$site = get_entity($vars['entity']->site_guid);
echo elgg_view('output/url', array('text' => 'permalink', 'href'=>$vars['entity']->getURL())); echo "<br>";
echo elgg_view('output/url', array('text' => 'manage this wiki', 'href'=>$site->url."socialwiki/wikis/manage/".$vars['entity']->guid)); echo "<br>";
echo elgg_view('output/url', array('text' => 'social view', 'href'=>$site->url."socialwiki/wikis/".($vars['entity']->guid)."/view/الصفحة الرئيسية", 'encode_text'=>true)); echo "<br>";
echo elgg_view('output/url', array('text' => 'recent changes', 'href'=>$site->url."socialwiki/wikis/".($vars['entity']->guid)."/recentchanges", 'encode_text'=>true)); echo "<br>";*/
?>