Elgg  Version master
Variables
full.php File Reference

Go to the source code of this file.

Variables

if(!elgg_is_admin_logged_in()) $plugin = elgg_extract('entity', $vars)
 Displays a plugin. More...
 
if(!$plugin instanceof\ElggPlugin) $reordering = elgg_extract('display_reordering', $vars, false)
 
 $active = $plugin->isActive()
 
 $classes = ['elgg-plugin']
 
 $classes [] = $reordering ? 'elgg-state-draggable' : 'elgg-state-undraggable'
 
 $error = ''
 
if($active) else
 
 try
 
 $can_activate = true
 
catch(\Elgg\Exceptions\PluginException $e) $options
 
 $options ['title'] = elgg_echo('admin:plugins:cannot_activate')
 
 $options ['class'] = 'elgg-button elgg-button-submit elgg-state-disabled'
 
 $options ['text'] = elgg_echo('admin:plugins:activate')
 
 $action_button = elgg_trigger_event_results('action_button', 'plugin', ['entity' => $plugin], elgg_view('output/url', $options))
 
 $categories = array_keys($plugin->getCategories())
 
 $categories [] = 'all'
 
 $style = null
 
if(!in_array(elgg_extract('active_filter', $vars), $categories)) foreach($categories as $category) $title
 
 $content = ''
 
 if ($error)
 

Variable Documentation

$action_button = elgg_trigger_event_results('action_button', 'plugin', ['entity' => $plugin], elgg_view('output/url', $options))

Definition at line 81 of file full.php.

$active = $plugin->isActive()

Definition at line 20 of file full.php.

$can_activate = true

Definition at line 39 of file full.php.

if (!in_array('bundled', $categories)) $categories = array_keys($plugin->getCategories())

Definition at line 84 of file full.php.

$categories[] = 'all'

Definition at line 86 of file full.php.

$classes = ['elgg-plugin']

Definition at line 22 of file full.php.

$classes[] = $reordering ? 'elgg-state-draggable' : 'elgg-state-undraggable'

Definition at line 23 of file full.php.

$content = ''

Definition at line 111 of file full.php.

$error = ''

Definition at line 25 of file full.php.

Initial value:
= [
'href' => false

Definition at line 47 of file full.php.

$options['title'] = elgg_echo('admin:plugins:cannot_activate')

Definition at line 76 of file full.php.

$options['class'] = 'elgg-button elgg-button-submit elgg-state-disabled'

Definition at line 77 of file full.php.

$options['text'] = elgg_echo('admin:plugins:activate')

Definition at line 78 of file full.php.

if (!elgg_is_admin_logged_in()) $plugin = elgg_extract('entity', $vars)

Displays a plugin.

$vars['entity'] $vars['display_reordering'] Do we allow the plugins to be rearranged with drag and drop

Definition at line 14 of file full.php.

if (!$plugin instanceof\ElggPlugin) $reordering = elgg_extract('display_reordering', $vars, false)

Definition at line 19 of file full.php.

$style = null

Definition at line 95 of file full.php.

if (!in_array(elgg_extract('active_filter', $vars), $categories)) foreach ($categories as $category) $title
Initial value:
= elgg_view('output/url', [
'href' => "ajax/view/object/plugin/details?guid={$plugin->guid}",
'text' => $plugin->getDisplayName(),
'class' => 'elgg-lightbox',
])
if(!elgg_is_admin_logged_in()) $plugin
Displays a plugin.
Definition: full.php:14
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156

Definition at line 105 of file full.php.

catch (\Elgg\Exceptions\PluginException $e) if ($active) else if ($can_activate) else
Initial value:
{
$can_deactivate = false

Definition at line 35 of file full.php.

if($error)

Definition at line 113 of file full.php.

try
Initial value:
{
$plugin->assertCanActivate()
if(!elgg_is_admin_logged_in()) $plugin
Displays a plugin.
Definition: full.php:14

Definition at line 37 of file full.php.