aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/plugin/invalid.php
blob: 7fd5d6f5edd46f1135e7c030a8c835ea30b04ae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
 * Displays an invalid plugin on the admin screen.
 *
 * An invalid plugin is a plugin whose isValid() method returns false.
 * This usually means there are required files missing, unreadable or in the
 * wrong format.
 *
 * @package Elgg.Core
 * @subpackage Plugins
 */

$plugin = $vars['entity'];

$id = $plugin->getID();
$path = htmlspecialchars($plugin->getPath());
$message = elgg_echo('admin:plugins:warning:invalid', array($id));

?>

<div class="elgg-plugin elgg-state-inactive elgg-state-error">
	<p><?php echo $message; ?></p>
	<p><?php echo elgg_echo('admin:plugins:label:location') . ": " . $path; ?></p>
</div>