Elgg  Version 4.3
Variables
details.php File Reference

Go to the source code of this file.

Variables

 $guid = (int) get_input('guid')
 
 $plugin = get_entity($guid)
 
if(!$plugin instanceof ElggPlugin||!$plugin->canEdit()) $show_dependencies_first = !$plugin->meetsDependencies()
 
 $info = []
 
 $info [elgg_echo('admin:plugins:label:version')] = htmlspecialchars($plugin->getVersion())
 
 $info [elgg_echo('admin:plugins:label:id')]
 
 $authors = $plugin->getAuthors()
 
if(!empty($authors)) $url = $plugin->getWebsite()
 
if(!empty($url)) $info [elgg_echo('admin:plugins:label:licence')]
 
 $site_path = elgg_get_root_path()
 
 $path = $plugin->getPath()
 
if(0===strpos($path, $site_path)) $info [elgg_echo('admin:plugins:label:location')] = htmlspecialchars($path)
 
 $categories = array_values($plugin->getCategories())
 
 $info [elgg_echo('admin:plugins:label:categories')] = implode(', ', $categories)
 
 $rows = ''
 
foreach($info as $name=> $value$info_html = elgg_format_element('table', ['class' => 'elgg-table'], $rows)
 
if(elgg_language_key_exists("admin:plugins:info:{$plugin->getID()}")) $resources
 
if(elgg_language_key_exists("admin:plugins:info:{$plugin->getID()}")) $resources_html = ''
 
foreach($resources as $id=> $href) if(!empty($resources_html)) $files_html = ''
 
foreach(\ElggPlugin::ADDITIONAL_TEXT_FILES as $file) if(!empty($files_html)) $body = "<div class='elgg-plugin'>"
 
 $tabs
 
if(!empty($resources_html)) if(!empty($files_html)) $dependencies_html = elgg_view('object/plugin/elements/dependencies', ['plugin' => $plugin])
 

Variable Documentation

$authors = $plugin->getAuthors()

Definition at line 21 of file details.php.

$body = "<div class='elgg-plugin'>"

Definition at line 135 of file details.php.

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

Definition at line 74 of file details.php.

if (!empty($resources_html)) if (!empty($files_html)) $dependencies_html = elgg_view('object/plugin/elements/dependencies', ['plugin' => $plugin])

Definition at line 164 of file details.php.

foreach ($resources as $id=> $href) if (!empty($resources_html)) $files_html = ''

Definition at line 113 of file details.php.

$guid = (int) get_input('guid')

Definition at line 3 of file details.php.

$info = []

Definition at line 13 of file details.php.

$info[elgg_echo('admin:plugins:label:version')] = htmlspecialchars($plugin->getVersion())

Definition at line 15 of file details.php.

$info[elgg_echo('admin:plugins:label:id')]
Initial value:
= elgg_view('output/text', [
'value' => $plugin->getID(),
])
$plugin
Definition: details.php:5
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:179

Definition at line 17 of file details.php.

if (!empty($url)) $info[elgg_echo('admin:plugins:label:licence')]
Initial value:
= elgg_view('output/text', [
'value' => $plugin->getLicense(),
])
$plugin
Definition: details.php:5
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:179

Definition at line 63 of file details.php.

if (0===strpos($path, $site_path)) $info[elgg_echo('admin:plugins:label:location')] = htmlspecialchars($path)

Definition at line 72 of file details.php.

$info[elgg_echo('admin:plugins:label:categories')] = implode(', ', $categories)

Definition at line 75 of file details.php.

foreach ($info as $name=> $value) $info_html = elgg_format_element('table', ['class' => 'elgg-table'], $rows)

Definition at line 86 of file details.php.

$path = $plugin->getPath()
Examples:
/root/Elgg/engine/classes/Elgg/Http/Urls.php.

Definition at line 68 of file details.php.

$plugin = get_entity($guid)

Definition at line 5 of file details.php.

if (elgg_language_key_exists("admin:plugins:info:{$plugin->getID()}")) $resources
Initial value:
= [
'repository' => $plugin->getRepositoryURL()
$plugin
Definition: details.php:5

Definition at line 92 of file details.php.

if (elgg_language_key_exists("admin:plugins:info:{$plugin->getID()}")) $resources_html = ''

Definition at line 97 of file details.php.

$rows = ''

Definition at line 78 of file details.php.

if (!$plugin instanceof ElggPlugin||!$plugin->canEdit()) $show_dependencies_first = !$plugin->meetsDependencies()

Definition at line 10 of file details.php.

$site_path = elgg_get_root_path()

Definition at line 67 of file details.php.

$tabs
Initial value:
= [
'elgg-plugin-details-info' => [
'text' => elgg_echo('admin:plugins:label:info')
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18

Definition at line 142 of file details.php.

if (!empty($authors)) $url = $plugin->getWebsite()

Definition at line 56 of file details.php.