Elgg  Version 3.0
Variables
details.php File Reference

Go to the source code of this file.

Variables

 $guid = (int) get_input('guid')
 
if(empty($guid)) $plugin = get_entity($guid)
 
if(!$plugin instanceof ElggPlugin$show_dependencies = false
 
 $package = $plugin->getPackage()
 
if($package &&!$package->checkDependencies()) $screenshots_menu = ''
 
 $screenshots_body = ''
 
 $screenshots = $plugin->getManifest()->getScreenshots()
 
if(!empty($screenshots)) $info = []
 
 $info [elgg_echo('admin:plugins:label:version')] = htmlspecialchars($plugin->getManifest()->getVersion())
 
 $info [elgg_echo('admin:plugins:label:id')]
 
 $info [elgg_echo('admin:plugins:label:author')]
 
 $url = $plugin->getManifest()->getWebsite()
 
if(!empty($url)) $info [elgg_echo('admin:plugins:label:copyright')]
 
 $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) $plugin->getManifest()->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)
 
 $extra_info = elgg_echo("admin:plugins:info:" . $plugin->getID())
 
if($extra_info!==("admin:plugins:info:".$plugin->getID())) $resources
 
if($extra_info!==("admin:plugins:info:".$plugin->getID())) $resources_html = ''
 
foreach($resources as $id=> $href) if(!empty($resources_html)) $files = $plugin->getAvailableTextFiles()
 
 $files_html = ''
 
if(!empty($files)) $body = "<div class='elgg-plugin'>"
 
 $tabs
 
if(!empty($resources_html)) if(!empty($files_html)) if(!empty($screenshots)) $tabs ['elgg-plugin-details-dependencies']
 

Variable Documentation

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

Definition at line 159 of file details.php.

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

Definition at line 95 of file details.php.

$extra_info = elgg_echo("admin:plugins:info:" . $plugin->getID())

Definition at line 113 of file details.php.

foreach ($resources as $id=> $href) if (!empty($resources_html)) $files = $plugin->getAvailableTextFiles()

Definition at line 142 of file details.php.

$files_html = ''

Definition at line 144 of file details.php.

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

Definition at line 3 of file details.php.

if (!empty($screenshots)) $info = []

Definition at line 59 of file details.php.

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

Definition at line 61 of file details.php.

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

Definition at line 63 of file details.php.

$info[elgg_echo('admin:plugins:label:author')]
Initial value:
= elgg_view('output/text', [
'value' => $plugin->getManifest()->getAuthor(),
])
if(empty($guid)) $plugin
Definition: details.php:9
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246

Definition at line 67 of file details.php.

if (!empty($url)) $info[elgg_echo('admin:plugins:label:copyright')]
Initial value:
= elgg_view('output/text', [
'value' => $plugin->getManifest()->getCopyright(),
])
if(empty($guid)) $plugin
Definition: details.php:9
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246

Definition at line 80 of file details.php.

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

Definition at line 84 of file details.php.

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

Definition at line 93 of file details.php.

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

Definition at line 100 of file details.php.

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

Definition at line 111 of file details.php.

$package = $plugin->getPackage()

Definition at line 15 of file details.php.

$path = $plugin->getPath()
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 89 of file details.php.

if (empty($guid)) $plugin = get_entity($guid)

Definition at line 9 of file details.php.

if ($extra_info!==("admin:plugins:info:".$plugin->getID())) $resources
Initial value:
= [
'repository' => $plugin->getManifest()->getRepositoryURL()
if(empty($guid)) $plugin
Definition: details.php:9

Definition at line 118 of file details.php.

if ($extra_info!==("admin:plugins:info:".$plugin->getID())) $resources_html = ''

Definition at line 124 of file details.php.

$rows = ''

Definition at line 103 of file details.php.

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

Definition at line 22 of file details.php.

$screenshots_body = ''

Definition at line 21 of file details.php.

if ($package &&!$package->checkDependencies()) $screenshots_menu = ''

Definition at line 20 of file details.php.

if (!$plugin instanceof ElggPlugin) $show_dependencies = false

Definition at line 14 of file details.php.

$site_path = elgg_get_root_path()

Definition at line 88 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="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21

Definition at line 166 of file details.php.

if (!empty($resources_html)) if (!empty($files_html)) if (!empty($screenshots)) $tabs['elgg-plugin-details-dependencies']
Initial value:
= [
'text' => elgg_echo("admin:plugins:label:dependencies")
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21

Definition at line 195 of file details.php.

$url = $plugin->getManifest()->getWebsite()

Definition at line 71 of file details.php.