Elgg  Version 2.3
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

◆ $active

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

Definition at line 14 of file details.php.

◆ $body

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

Definition at line 159 of file details.php.

◆ $can_activate

$can_activate = $plugin->canActivate()

Definition at line 15 of file details.php.

◆ $categories

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

Definition at line 94 of file details.php.

◆ $extra_info

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

Definition at line 112 of file details.php.

◆ $files

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

Definition at line 141 of file details.php.

◆ $files_html

$files_html = ''

Definition at line 143 of file details.php.

◆ $guid

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

Definition at line 3 of file details.php.

◆ $info [1/8]

if ( $screenshots) $info = []

Definition at line 58 of file details.php.

◆ $info [2/8]

$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:336

Definition at line 66 of file details.php.

◆ $info [3/8]

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

Definition at line 99 of file details.php.

◆ $info [4/8]

if ( $url) $info[elgg_echo( 'admin:plugins:label:copyright')]
Initial value:
= elgg_view('output/text', array(
'value' => $plugin->getManifest()->getCopyright(),
))

Definition at line 79 of file details.php.

◆ $info [5/8]

$info[elgg_echo( 'admin:plugins:label:id')]
Initial value:
= elgg_view('output/text', array(
'value' => $plugin->getID(),
))

Definition at line 62 of file details.php.

◆ $info [6/8]

$info[elgg_echo( 'admin:plugins:label:licence')]
Initial value:
= elgg_view('output/text', array(
'value' => $plugin->getManifest()->getLicense(),
))

Definition at line 83 of file details.php.

◆ $info [7/8]

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

Definition at line 92 of file details.php.

◆ $info [8/8]

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

Definition at line 60 of file details.php.

◆ $info_html

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

Definition at line 110 of file details.php.

◆ $path

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

Definition at line 88 of file details.php.

◆ $plugin

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

Definition at line 9 of file details.php.

◆ $resources

if ( $extra_info !==("admin:plugins:info:" . $plugin->getID())) $resources
Initial value:
= array(
'repository' => $plugin->getManifest()->getRepositoryURL(),
'bugtracker' => $plugin->getManifest()->getBugTrackerURL(),
'donate' => $plugin->getManifest()->getDonationsPageURL(),
)

Definition at line 117 of file details.php.

◆ $resources_html

$resources_html = ''

Definition at line 123 of file details.php.

◆ $rows

$rows = ''

Definition at line 102 of file details.php.

◆ $screenshots

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

Definition at line 19 of file details.php.

◆ $screenshots_body

$screenshots_body = ''

Definition at line 18 of file details.php.

◆ $screenshots_menu

$screenshots_menu = ''

Definition at line 17 of file details.php.

◆ $site_path

$site_path = elgg_get_root_path()

Definition at line 87 of file details.php.

◆ $tabs [1/2]

$tabs = array()

Definition at line 166 of file details.php.

◆ $tabs [2/2]

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
)
$can_activate
Definition: details.php:15
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21

Definition at line 168 of file details.php.

◆ $url

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

Definition at line 70 of file details.php.

◆ else

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.