Elgg  Version 4.x
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...
 
 $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'
 
 $options ['text'] = elgg_echo('admin:plugins:activate')
 
 $options ['disabled'] = true
 
 $action_button = elgg_trigger_plugin_hook('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_plugin_hook('action_button', 'plugin', ['entity' => $plugin], elgg_view('output/url', $options))

Definition at line 80 of file full.php.

$active = $plugin->isActive()

Definition at line 17 of file full.php.

$can_activate = true

Definition at line 36 of file full.php.

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

Definition at line 83 of file full.php.

$categories[] = 'all'

Definition at line 85 of file full.php.

$classes = ['elgg-plugin']

Definition at line 19 of file full.php.

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

Definition at line 20 of file full.php.

$content = ''

Definition at line 110 of file full.php.

$error = ''

Definition at line 22 of file full.php.

Initial value:
= [
'is_action' => true

Definition at line 44 of file full.php.

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

Definition at line 74 of file full.php.

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

Definition at line 75 of file full.php.

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

Definition at line 76 of file full.php.

$options['disabled'] = true

Definition at line 77 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 15 of file full.php.

$reordering = elgg_extract('display_reordering', $vars, false)

Definition at line 16 of file full.php.

$style = null

Definition at line 94 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:15
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:205

Definition at line 104 of file full.php.

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

Definition at line 32 of file full.php.

if($error)

Definition at line 112 of file full.php.

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

Definition at line 34 of file full.php.