25 $rel =
"elgg-plugin-details-screenshot-" .
$key;
27 $state =
" elgg-state-selected";
30 $desc =
elgg_echo($screenshot[
'description']);
31 $alt = htmlentities($desc, ENT_QUOTES,
'UTF-8');
33 $thumbnail =
elgg_view(
'output/img', array(
34 'src' =>
"mod/{$plugin->getID()}/{$screenshot['path']}",
39 'class' =>
"elgg-plugin-screenshot pas $state",
45 'src' =>
"mod/{$plugin->getID()}/{$screenshot['path']}",
48 'class' =>
"hidden $state",
67 'value' =>
$plugin->getManifest()->getAuthor(),
73 'href' =>
$plugin->getManifest()->getWebsite(),
74 'text' =>
$plugin->getManifest()->getWebsite(),
80 'value' =>
$plugin->getManifest()->getCopyright(),
84 'value' =>
$plugin->getManifest()->getLicense(),
104 if (trim(
$value) ===
'') {
107 $rows .=
"<tr><th>$name</th><td>$value</td></tr>";
118 'repository' =>
$plugin->getManifest()->getRepositoryURL(),
119 'bugtracker' =>
$plugin->getManifest()->getBugTrackerURL(),
120 'donate' =>
$plugin->getManifest()->getDonationsPageURL(),
129 'text' =>
elgg_echo(
"admin:plugins:label:$id"),
130 'is_trusted' =>
true,
147 $url =
'admin_plugin_text_file/' .
$plugin->getID() .
"/$file";
151 'is_trusted' =>
true,
159 $body =
"<div class='elgg-plugin'>";
161 $body .=
"<div class='elgg-plugin-details-container pvm'>";
169 'text' =>
elgg_echo(
"admin:plugins:label:info"),
170 'rel' =>
'elgg-plugin-details-info',
176 'text' =>
elgg_echo(
"admin:plugins:label:resources"),
177 'rel' =>
'elgg-plugin-details-resources' 183 'text' =>
elgg_echo(
"admin:plugins:label:files"),
184 'rel' =>
'elgg-plugin-details-files' 190 'text' =>
elgg_echo(
"admin:plugins:label:screenshots"),
191 'rel' =>
'elgg-plugin-details-screenshots' 196 'text' =>
elgg_echo(
"admin:plugins:label:dependencies"),
197 'rel' =>
'elgg-plugin-details-dependencies',
210 $body .=
"<div class='elgg-plugin-details-info'>";
212 $body .=
"<div class='elgg-plugin-details-info hidden'>";
219 $body .=
"<div class='elgg-plugin-details-resources hidden'>";
226 $body .=
"<div class='elgg-plugin-details-files hidden'>";
233 $body .=
"<div class='elgg-plugin-details-screenshots hidden'>";
241 $body .=
"<div class='elgg-plugin-details-dependencies hidden'>";
243 $body .=
"<div class='elgg-plugin-details-dependencies'>";
if(!array_key_exists($filename, $text_files)) $file
if($guid==elgg_get_logged_in_user_guid()) $name
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
if(!$plugin instanceof ElggPlugin) $active
foreach($info as $name=> $value) $info_html
elgg_get_root_path()
Get the root directory path for this installation.
elgg echo
Translates a string.
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
static getFriendlyCategory($category)
Returns a category's friendly name.
if($extra_info!==("admin:plugins:info:".$plugin->getID())) $resources
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
foreach($resources as $id=> $href) if(!empty($resources_html)) $files
if(!$collection_name) $id
get_entity($guid)
Loads and returns an entity object from a guid.