aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/components/invalid_plugin.php
blob: 97c1bacf40ca72c7ee4fa6bd7107f78b7196b9bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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 = elgg_extract('plugin', $vars);
$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>