25 if (empty($author->name())) {
29 $author_content = $author->name();
30 if ($author->role()) {
31 $author_content .=
' - ' . $author->role();
34 if ($author->email()) {
35 $author_content .=
elgg_view(
'output/email', [
37 'icon' =>
'envelope-regular',
38 'value' => $author->email(),
42 if ($author->homepage()) {
43 $author_content .=
elgg_view(
'output/url', [
44 'icon' =>
'globe-americas',
46 'href' => $author->homepage(),
64 'value' =>
$plugin->getLicense(),
83 $rows .=
"<tr><th>$name</th><td>$value</td></tr>";
93 'repository' =>
$plugin->getRepositoryURL(),
94 'bugtracker' =>
$plugin->getBugTrackerURL(),
102 'text' =>
elgg_echo(
"admin:plugins:label:{$id}"),
103 'is_trusted' =>
true,
115 $file_path =
$plugin->getPath() . $file;
116 if (!is_file($file_path) || !is_readable($file_path)) {
123 'plugin_id' =>
$plugin->getID(),
126 'is_trusted' =>
true,
135 $body =
"<div class='elgg-plugin'>";
137 $body .=
"<div class='elgg-plugin-details-container pvm'>";
143 'elgg-plugin-details-info' => [
144 'text' =>
elgg_echo(
'admin:plugins:label:info'),
151 $tabs[
'elgg-plugin-details-resources'] = [
152 'text' =>
elgg_echo(
'admin:plugins:label:resources'),
158 $tabs[
'elgg-plugin-details-files'] = [
159 'text' =>
elgg_echo(
'admin:plugins:label:files'),
166 $tabs[
'elgg-plugin-details-dependencies'] = [
167 'text' =>
elgg_echo(
'admin:plugins:label:dependencies'),
elgg_language_key_exists($key, $language= 'en')
Check if a given language key exists.
foreach($info as $name=> $value) $info_html
if(!$user||!$user->canDelete()) $name
if(!empty($resources_html)) if(!empty($files_html)) $dependencies_html
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
if(!$item instanceof ElggEntity) $link
const ADDITIONAL_TEXT_FILES
if(!empty($authors)) $url
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
elgg_view_module($type, $title, $body, array $vars=[])
Wrapper function for the module display pattern.
elgg_generate_url($name, array $parameters=[])
Generate a URL for named route.
elgg_get_root_path()
Get the project path (where composer is installed), ending with slash.
foreach($resources as $id=> $href) if(!empty($resources_html)) $files_html
foreach(\ElggPlugin::ADDITIONAL_TEXT_FILES as $file) if(!empty($files_html)) $body
if(elgg_language_key_exists("admin:plugins:info:{$plugin->getID()}")) $resources
if(elgg_language_key_exists("admin:plugins:info:{$plugin->getID()}")) $resources_html
elgg echo
Translates a string.
$id
Generic annotation delete action.
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
if(!$plugin instanceof ElggPlugin||!$plugin->canEdit()) $show_dependencies_first
get_entity($guid)
Loads and returns an entity object from a guid.