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(),
43 if ($author->homepage()) {
44 $author_content .=
elgg_view(
'output/url', [
45 'icon' =>
'globe-americas',
47 'href' => $author->homepage(),
66 'value' =>
$plugin->getLicense(),
87 $rows .=
"<tr><th>{$name}</th><td>{$value}</td></tr>";
97 'repository' =>
$plugin->getRepositoryURL(),
98 'bugtracker' =>
$plugin->getBugTrackerURL(),
106 'text' =>
elgg_echo(
"admin:plugins:label:{$id}"),
107 'is_trusted' =>
true,
119 $file_path =
$plugin->getPath() . $file;
120 if (!is_file($file_path) || !is_readable($file_path)) {
127 'plugin_id' =>
$plugin->getID(),
130 'is_trusted' =>
true,
139 $body =
"<div class='elgg-plugin'>";
141 $body .=
"<div class='elgg-plugin-details-container pvm'>";
147 'elgg-plugin-details-info' => [
148 'text' =>
elgg_echo(
'admin:plugins:label:info'),
155 $tabs[
'elgg-plugin-details-resources'] = [
156 'text' =>
elgg_echo(
'admin:plugins:label:resources'),
162 $tabs[
'elgg-plugin-details-files'] = [
163 'text' =>
elgg_echo(
'admin:plugins:label:files'),
170 $tabs[
'elgg-plugin-details-dependencies'] = [
171 'text' =>
elgg_echo(
'admin:plugins:label:dependencies'),
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
Plugin class containing helper functions for plugin activation/deactivation, dependency checking capa...
foreach($info as $name=> $value) $info_html
if(!$user||!$user->canDelete()) $name
if(!empty($resources_html)) if(!empty($files_html)) $dependencies_html
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
if(!$item instanceof ElggEntity) $link
const ADDITIONAL_TEXT_FILES
if(!empty($authors)) $url
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
elgg_language_key_exists(string $key, string $language= 'en')
Check if a given language key exists.
get_entity(int $guid)
Loads and returns an entity object from a guid.
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_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
$id
Generic annotation delete action.
if(!$plugin instanceof ElggPlugin||!$plugin->canEdit()) $show_dependencies_first