blob: 6746567cf06a82f0a88b373e58fbea315b345496 (
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
$entity = $vars['entity'];
$owner_guid = $entity->container_guid;
$owner = get_entity($owner_guid);
$icon = elgg_view(
"graphics/icon", array(
'entity' => $owner,
'size' => 'small',
)
);
if ($vars['full_view']) {
//
}
elseif ($owner) {
$directory = $CONFIG->dataroot."wikis/".$owner_guid."/pages";
$filecount = count(glob("" . $directory . "/*"));
$body = "<a href='".$vars['url']."pg/dokuwiki/".$owner_guid."'>".sprintf(elgg_echo('dokuwiki:wikifrom'),$owner->name)." (".sprintf(elgg_echo("dokuwiki:pages"), $filecount).")</a>";
echo elgg_view_listing($icon, $body);
}
else {
// shouldn't show wikis from groups you can't see :-P
echo elgg_view_listing("", "");
}
?>
|