diff options
author | Sem <sembrestels@riseup.net> | 2012-07-31 22:09:18 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-07-31 22:09:18 +0200 |
commit | eedfbb15b8d1e81e2e11b34f02b68df6700b288d (patch) | |
tree | 53cf37c05021bf50184843980a961239e39ffe28 /views/default/page/elements/owner_block.php | |
parent | 38342cd98c03c9aacd985f97557148eeed628c42 (diff) | |
download | elgg-eedfbb15b8d1e81e2e11b34f02b68df6700b288d.tar.gz elgg-eedfbb15b8d1e81e2e11b34f02b68df6700b288d.tar.bz2 |
Added doctype, header, footer and aside tags. Fixed time tag.
Diffstat (limited to 'views/default/page/elements/owner_block.php')
-rw-r--r-- | views/default/page/elements/owner_block.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/views/default/page/elements/owner_block.php b/views/default/page/elements/owner_block.php new file mode 100644 index 000000000..fc7f0f6d2 --- /dev/null +++ b/views/default/page/elements/owner_block.php @@ -0,0 +1,31 @@ +<?php +/** + * Elgg owner block + * Displays page ownership information + * + * @package Elgg + * @subpackage Core + * + */ + +elgg_push_context('owner_block'); + +// groups and other users get owner block +$owner = elgg_get_page_owner_entity(); +if ($owner instanceof ElggGroup || + ($owner instanceof ElggUser && $owner->getGUID() != elgg_get_logged_in_user_guid())) { + + $header = elgg_view_entity($owner, array('full_view' => false)); + + $body = elgg_view_menu('owner_block', array('entity' => $owner)); + + $body .= elgg_view('page/elements/owner_block/extend', $vars); + + echo elgg_view('page/components/module', array( + 'header' => $header, + 'body' => $body, + 'class' => 'elgg-owner-block', + )); +} + +elgg_pop_context();
\ No newline at end of file |