Elgg  Version 2.3
plugin.php
Go to the documentation of this file.
1 <?php
10 $plugin = $vars['entity'];
11 
12 if (!elgg_in_context('admin')) {
13  echo elgg_view('object/default', $vars);
14 } else {
15  if (!$plugin->isValid()) {
16  echo elgg_view('object/plugin/invalid', $vars);
17  } else {
18  echo elgg_view('object/plugin/full', $vars);
19  }
20 }
$vars['entity']
elgg_in_context($context)
Check if this context exists anywhere in the stack.
Definition: pageowner.php:241
elgg echo
Translates a string.
Definition: languages.js:48
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336
$plugin
Definition: plugin.php:10