Skip to content

Commit

Permalink
feat(views): added 'show_owner_block' variable to prevent owner_block…
Browse files Browse the repository at this point in the history
… output
  • Loading branch information
dnovikov committed Nov 20, 2020
1 parent b3fee2d commit 29cc332
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions views/default/page/elements/owner_block.php
Expand Up @@ -3,9 +3,14 @@
* Elgg owner block
* Displays page ownership information
*
* @uses $vars['show_owner_block'] (bool) Display owner block (default: true)
* @uses $vars['show_owner_block_menu'] (bool) Show the owner_block menu for the current page owner (default: true)
*/

if (!elgg_extract('show_owner_block', $vars, true)) {
return;
}

// groups and other users get owner block
$owner = elgg_get_page_owner_entity();
if (!($owner instanceof ElggGroup || $owner instanceof ElggUser)) {
Expand Down

0 comments on commit 29cc332

Please sign in to comment.