Elgg  Version 4.3
Go to the documentation of this file.
1 <?php
14 if (elgg_get_context() == 'admin' && elgg_is_admin_logged_in()) {
15  echo elgg_view('page/admin', $vars);
16 } else {
17  echo elgg_view('page/default', $vars);
18 }
Returns whether or not the viewer is currently logged in and an admin user.
Definition: sessions.php:52
Get the current context.
Definition: context.php:41
Definition: error.php:18
elgg echo
Translates a string.
Definition: deprecated.js:530
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:179