Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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
$vars['entity']
$owner
Definition: owner_block.php:14
elgg_view_entity(\ElggEntity $entity, array $vars=array(), $bypass=false, $debug=false)
Returns a string of a rendered entity.
Definition: views.php:832
elgg_pop_context()
Removes and returns the top context string from the stack.
Definition: pageowner.php:225
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:56
elgg_view_menu($menu, array $vars=array())
Render a menu.
Definition: views.php:745
elgg_push_context($context)
Push a context onto the top of the stack.
Definition: pageowner.php:215