14 $columns = array(
'type',
'name',
'expected_value',
'local_value',
'comment');
16 echo '<table class="elgg-plugin-dependencies styled elgg-table"><tr>';
19 $column =
elgg_echo(
"admin:plugins:dependencies:$column");
20 echo "<th class=\"pas\">$column</th>";
26 foreach (
$deps as $dep) {
31 $class =
"elgg-state-success elgg-dependency elgg-dependency-$type";
32 } elseif ($dep[
'type'] ==
'suggests') {
33 $class =
"elgg-state-warning elgg-dependency elgg-dependency-$type";
35 $class =
"elgg-state-error elgg-dependency elgg-dependency-$type";
38 echo "<tr class=\"$row\">";
41 echo "<td class=\"pas $class\">{$fields[$column]}</td>";
46 $row = (
$row ==
'odd') ?
'even' :
'odd';
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
_elgg_get_plugin_dependency_strings($dep)
Returns an array of parsed strings for a dependency in the format: array( 'type' => requires...
elgg echo
Translates a string.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.