Elgg  Version 4.3
invalid.php
Go to the documentation of this file.
1 <?php
10 /* @var ElggPlugin $plugin */
11 $plugin = elgg_extract('entity', $vars);
12 
13 $error = elgg_echo('admin:plugins:warning:invalid', [elgg_extract('error', $vars)]);
14 $error .= ' ' . elgg_echo('admin:plugins:label:location') . ": " . htmlspecialchars($plugin->getPath());
15 
16 $body = elgg_view_message('error', $error, ['title' => false, 'class' => 'elgg-subtext']);
17 $body .= elgg_view_message('notice', elgg_echo('admin:plugins:warning:invalid:check_docs'), ['title' => false, 'class' => 'elgg-subtext']);
18 
19 echo elgg_view('object/elements/summary', [
20  'entity' => $plugin,
21  'class' => 'elgg-state-draggable elgg-plugin elgg-state-inactive elgg-state-cannot-activate',
22  'id' => preg_replace('/[^a-z0-9-]/i', '-', $plugin->getID()),
23  'data-guid' => $plugin->guid,
24  'icon' => elgg_echo('admin:plugins:cannot_activate'),
25  'title' => $plugin->getID(),
26  'subtitle' => false,
27  'content' => $body,
28 ]);
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
$body
Definition: invalid.php:16
elgg_view_message($type, $body, array $vars=[])
Wrapper function for the message display pattern.
Definition: views.php:965
$plugin
Displays an invalid plugin on the admin screen.
Definition: invalid.php:11
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:547
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:179
$error
Definition: invalid.php:13