From 00ea6e1ddd446c61c6ccd956989b4b9a1cd60119 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 22 Feb 2011 00:12:17 +0000 Subject: Refs #2950: Cleanup of plugin-related view structure git-svn-id: http://code.elgg.org/elgg/trunk@8394 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../object/plugin/elements/dependencies.php | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 views/default/object/plugin/elements/dependencies.php (limited to 'views/default/object/plugin/elements/dependencies.php') diff --git a/views/default/object/plugin/elements/dependencies.php b/views/default/object/plugin/elements/dependencies.php new file mode 100644 index 000000000..ea2b3a188 --- /dev/null +++ b/views/default/object/plugin/elements/dependencies.php @@ -0,0 +1,49 @@ +package->checkDependencies(true); + +$columns = array('type', 'name', 'expected_value', 'local_value', 'comment'); + +echo ' + +'; + +foreach ($columns as $column) { + $column = elgg_echo("admin:plugins:dependencies:$column"); + echo ""; +} + +echo ''; + +$row = 'odd'; +foreach ($deps as $dep) { + $fields = elgg_get_plugin_dependency_strings($dep); + $type = $dep['type']; + + if ($dep['status']) { + $class = "elgg-state-success elgg-dependency-$type"; + } else { + $class = "elgg-state-error elgg-dependency-$type"; + } + + echo ""; + + foreach ($columns as $column) { + echo ""; + } + + echo ''; + + $row = ($row == 'odd') ? 'even' : 'odd'; +} + +echo '
$column
{$fields[$column]}
'; \ No newline at end of file -- cgit v1.2.3