Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
invalid.php
Go to the documentation of this file.
1 <?php
13 /* @var ElggPlugin $plugin */
14 $plugin = $vars['entity'];
15 
16 $id = $plugin->getID();
17 $path = htmlspecialchars($plugin->getPath());
18 $message = elgg_echo('admin:plugins:warning:invalid', array($plugin->getError()));
19 $css_id = preg_replace('/[^a-z0-9-]/i', '-', $plugin->getID());
20 
21 ?>
22 
23 <div class="elgg-state-draggable elgg-plugin elgg-state-inactive elgg-state-error" id="elgg-plugin-<?php echo $plugin->guid; ?>">
24  <div class="elgg-head"><h3><?php echo $id; ?></h3></div>
25  <div class="elgg-body">
26  <p class="elgg-state-error"><?php echo $message; ?></p>
27  <p><?php echo elgg_echo('admin:plugins:warning:invalid:check_docs'); ?></p>
28 
29  <div class="pts">
30  <?php
31  echo elgg_view('output/url', array(
32  'href' => "#elgg-plugin-manifest-$css_id",
33  'text' => elgg_echo("admin:plugins:label:moreinfo"),
34  'rel' => 'toggle',
35  ));
36  ?>
37  </div>
38 
39  <div class="hidden elgg-plugin-more" id="elgg-plugin-manifest-<?php echo $css_id; ?>">
40  <p><?php echo elgg_echo('admin:plugins:label:location') . ": " . $path; ?></p>
41  </div>
42  </div>
43 </div>
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$vars['entity']
$message
Definition: invalid.php:18
elgg module widget elgg head h3
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
$plugin
Definition: invalid.php:14
$id
Definition: invalid.php:16
$css_id
Definition: invalid.php:19
$path
Definition: invalid.php:17