Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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$active = $plugin->isActive()
 
 $can_activate = $plugin->canActivate()
 
 $screenshots_menu = ''
 
 $screenshots_body = ''
 
 $screenshots = $plugin->getManifest()->getScreenshots()
 
if($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($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
 
 $resources_html = ''
 
foreach($resources as $id=>
$href) if(!empty($resources_html)) 
$files = $plugin->getAvailableTextFiles()
 
 $files_html = ''
 
if($files) $body = "<div class='elgg-plugin'>"
 
 $tabs = array()
 
 $tabs []
 
if($can_activate) else
 

Variable Documentation

if (!$plugin instanceof ElggPlugin) $active = $plugin->isActive()

Definition at line 14 of file details.php.

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

Definition at line 159 of file details.php.

$can_activate = $plugin->canActivate()

Definition at line 15 of file details.php.

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

Definition at line 94 of file details.php.

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

Definition at line 112 of file details.php.

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

Definition at line 141 of file details.php.

$files_html = ''

Definition at line 143 of file details.php.

$guid = (int) get_input("guid")

Definition at line 3 of file details.php.

if ($screenshots) $info = []

Definition at line 58 of file details.php.

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

Definition at line 60 of file details.php.

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

Definition at line 62 of file details.php.

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

Definition at line 66 of file details.php.

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

Definition at line 79 of file details.php.

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

Definition at line 83 of file details.php.

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

Definition at line 92 of file details.php.

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

Definition at line 99 of file details.php.

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

Definition at line 110 of file details.php.

$path = $plugin->getPath()

Definition at line 88 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:
= array(
'repository' => $plugin->getManifest()->getRepositoryURL(),
'bugtracker' => $plugin->getManifest()->getBugTrackerURL(),
'donate' => $plugin->getManifest()->getDonationsPageURL(),
)
if(empty($guid)) $plugin
Definition: details.php:9

Definition at line 117 of file details.php.

$resources_html = ''

Definition at line 123 of file details.php.

$rows = ''

Definition at line 102 of file details.php.

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

Definition at line 19 of file details.php.

$screenshots_body = ''

Definition at line 18 of file details.php.

$screenshots_menu = ''

Definition at line 17 of file details.php.

$site_path = elgg_get_root_path()

Definition at line 87 of file details.php.

$tabs = array()

Definition at line 166 of file details.php.

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

Definition at line 168 of file details.php.

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

Definition at line 70 of file details.php.

if ($resources_html) if ($files_html) if ($screenshots) if ($can_activate) else
Initial value:
{
$body .= "<div class='elgg-plugin-details-info hidden'>"
if($files) $body
Definition: details.php:159

Definition at line 211 of file details.php.