Elgg  Version 1.11
owner_block.php
Go to the documentation of this file.
1 <?php
11 elgg_push_context('owner_block');
12 
13 // groups and other users get owner block
15 if ($owner instanceof ElggGroup || $owner instanceof ElggUser) {
16 
17  $header = elgg_view_entity($owner, array('full_view' => false));
18 
19  $body = elgg_view_menu('owner_block', array('entity' => $owner));
20 
21  $body .= elgg_view('page/elements/owner_block/extend', $vars);
22 
23  echo elgg_view('page/components/module', array(
24  'header' => $header,
25  'body' => $body,
26  'class' => 'elgg-owner-block',
27  ));
28 }
29 
$header
Definition: full.php:30
elgg_view_menu($menu_name, array $vars=array())
Render a menu.
Definition: views.php:692
$owner
Definition: owner_block.php:14
elgg_pop_context()
Removes and returns the top context string from the stack.
Definition: pageowner.php:234
elgg echo
Translates a string.
Definition: languages.js:43
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:53
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
elgg_push_context($context)
Push a context onto the top of the stack.
Definition: pageowner.php:224
elgg_view_entity(\ElggEntity $entity, $vars=array(), $bypass=false, $debug=false)
Returns a string of a rendered entity.
Definition: views.php:793
if(file_exists($welcome)) $vars
Definition: upgrade.php:93