Elgg  Version 1.9
Namespaces | Variables
full.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Activate a plugin or plugins.
 

Variables

 $plugin = $vars['entity']
 
 $reordering = elgg_extract('display_reordering', $vars, false)
 
 $priority = $plugin->getPriority()
 
 $active = $plugin->isActive()
 
 $can_activate = $plugin->canActivate()
 
 $max_priority = _elgg_get_max_plugin_priority()
 
 $actions_base = '/action/admin/plugins/'
 
 $css_id = preg_replace('/[^a-z0-9-]/i', '-', $plugin->getID())
 
 $links = ''
 
 $classes = array('elgg-plugin')
 
if($reordering) else
 
 $options
 
 $action = ''
 
 $options ['text'] = elgg_echo('admin:plugins:cannot_activate')
 
 $options ['class'] = "elgg-button elgg-button-disabled"
 
 $options ['disabled'] = 'disabled'
 
if($action$action_button = elgg_view('output/url', $options)
 
 $categories = $plugin->getManifest()->getCategories()
 
 $categories_html = ''
 
if($categories) $screenshots_html = ''
 
 $screenshots = $plugin->getManifest()->getScreenshots()
 
if($screenshots) $description = elgg_view('output/longtext', array('value' => $plugin->getManifest()->getDescription()))
 
 $author
 
 $version = htmlspecialchars($plugin->getManifest()->getVersion())
 
 $website
 
 $resources
 
 $resources_html = "<ul class=\"elgg-plugin-resources\">"
 
 $copyright = elgg_view('output/text', array('value' => $plugin->getManifest()->getCopyright()))
 
 $license = elgg_view('output/text', array('value' => $plugin->getManifest()->getLicense()))
 
 $files = $plugin->getAvailableTextFiles()
 
 $docs = ''
 
 if ($files)
 
if($links) endif
 
 $settings_view_old = 'settings/' . $plugin->getID() . '/edit'
 
 $settings_view_new = 'plugins/' . $plugin->getID() . '/settings'
 

Variable Documentation

$action = ''

Definition at line 120 of file full.php.

if ($action) $action_button = elgg_view('output/url', $options)

Definition at line 133 of file full.php.

$actions_base = '/action/admin/plugins/'

Definition at line 24 of file full.php.

$active = $plugin->isActive()

Definition at line 20 of file full.php.

$author
Initial value:
= '<span>' . elgg_echo('admin:plugins:label:author') . '</span>: '
. elgg_view('output/text', array('value' => $plugin->getManifest()->getAuthor()))
$plugin
Definition: full.php:16
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354

Definition at line 174 of file full.php.

$can_activate = $plugin->canActivate()

Definition at line 22 of file full.php.

$categories = $plugin->getManifest()->getCategories()

Definition at line 136 of file full.php.

$categories_html = ''

Definition at line 137 of file full.php.

$classes = array('elgg-plugin')

Definition at line 29 of file full.php.

$copyright = elgg_view('output/text', array('value' => $plugin->getManifest()->getCopyright()))

Definition at line 203 of file full.php.

$css_id = preg_replace('/[^a-z0-9-]/i', '-', $plugin->getID())

Definition at line 25 of file full.php.

if ($screenshots) $description = elgg_view('output/longtext', array('value' => $plugin->getManifest()->getDescription()))

Definition at line 173 of file full.php.

$docs = ''

Definition at line 209 of file full.php.

$files = $plugin->getAvailableTextFiles()

Definition at line 207 of file full.php.

$license = elgg_view('output/text', array('value' => $plugin->getManifest()->getLicense()))

Definition at line 204 of file full.php.

$links = ''

Definition at line 28 of file full.php.

$max_priority = _elgg_get_max_plugin_priority()

Definition at line 23 of file full.php.

$options
Initial value:
= array(
'is_action' => true,
'is_trusted' => true,
)

Definition at line 99 of file full.php.

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

Definition at line 121 of file full.php.

$options['class'] = "elgg-button elgg-button-disabled"

Definition at line 122 of file full.php.

$options['disabled'] = 'disabled'

Definition at line 123 of file full.php.

$plugin = $vars['entity']

Definition at line 16 of file full.php.

$priority = $plugin->getPriority()

Definition at line 19 of file full.php.

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

Definition at line 18 of file full.php.

$resources
Initial value:
= array(
'repository' => $plugin->getManifest()->getRepositoryURL(),
'bugtracker' => $plugin->getManifest()->getBugTrackerURL(),
'donate' => $plugin->getManifest()->getDonationsPageURL(),
)
$plugin
Definition: full.php:16

Definition at line 183 of file full.php.

foreach ($resources as $id=> $href) $resources_html = "<ul class=\"elgg-plugin-resources\">"

Definition at line 189 of file full.php.

$screenshots = $plugin->getManifest()->getScreenshots()

Definition at line 152 of file full.php.

if ($categories) $screenshots_html = ''

Definition at line 151 of file full.php.

$settings_view_new = 'plugins/' . $plugin->getID() . '/settings'

Definition at line 242 of file full.php.

$settings_view_old = 'settings/' . $plugin->getID() . '/edit'

Definition at line 241 of file full.php.

$version = htmlspecialchars($plugin->getManifest()->getVersion())

Definition at line 176 of file full.php.

$website
Initial value:
= elgg_view('output/url', array(
'href' => $plugin->getManifest()->getWebsite(),
'text' => $plugin->getManifest()->getWebsite(),
'is_trusted' => true,
))
$plugin
Definition: full.php:16
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354

Definition at line 177 of file full.php.

if (elgg_view_exists($settings_view_old)||elgg_view_exists($settings_view_new)) else
Initial value:
{
$classes[] = 'elgg-state-undraggable'
$classes
Definition: full.php:29

Definition at line 91 of file full.php.

if ($links) endif

Definition at line 230 of file full.php.

if(!empty($contributors))

Definition at line 210 of file full.php.