From 32019b504528f192778c3c41e1584249fbdaa934 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Fri, 11 Feb 2011 19:35:11 +0000 Subject: Cleaned up admin advanced plugins view a bit git-svn-id: http://code.elgg.org/elgg/trunk@8113 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/admin/components/plugin.php | 73 +++++++++++++++++-------------- views/default/css/admin.php | 20 ++++++++- views/default/page/shells/default.php | 30 ++++++++++--- 3 files changed, 81 insertions(+), 42 deletions(-) (limited to 'views') diff --git a/views/default/admin/components/plugin.php b/views/default/admin/components/plugin.php index 87d13db90..7549ea8ca 100644 --- a/views/default/admin/components/plugin.php +++ b/views/default/admin/components/plugin.php @@ -33,11 +33,11 @@ if ($priority > 1) { 'is_action' => true )); - $links .= elgg_view('output/url', array( + $links .= "
  • " . elgg_view('output/url', array( 'href' => $top_url, 'text' => elgg_echo('top'), 'is_action' => true - )); + )) . "
  • "; $up_url = elgg_http_add_url_query_elements($actions_base . 'set_priority', array( 'plugin_guid' => $plugin->guid, @@ -45,11 +45,11 @@ if ($priority > 1) { 'is_action' => true )); - $links .= elgg_view('output/url', array( + $links .= "
  • " . elgg_view('output/url', array( 'href' => $up_url, 'text' => elgg_echo('up'), 'is_action' => true - )); + )) . "
  • "; } // down and bottom links only if not at bottom @@ -60,11 +60,11 @@ if ($priority < $max_priority) { 'is_action' => true )); - $links .= elgg_view('output/url', array( + $links .= "
  • " . elgg_view('output/url', array( 'href' => $down_url, 'text' => elgg_echo('down'), 'is_action' => true - )); + )) . "
  • "; $bottom_url = elgg_http_add_url_query_elements($actions_base . 'set_priority', array( 'plugin_guid' => $plugin->guid, @@ -72,11 +72,11 @@ if ($priority < $max_priority) { 'is_action' => true )); - $links .= elgg_view('output/url', array( + $links .= "
  • " . elgg_view('output/url', array( 'href' => $bottom_url, 'text' => elgg_echo('bottom'), 'is_action' => true - )); + )) . "
  • "; } // activate / deactivate links @@ -153,12 +153,16 @@ $license = elgg_view('output/text', array('value' => $plugin->manifest->getLicen ?>
    -
    - -
    - -
    - +
    +
    + +
    + +
    +
    +
    getID() . '/edit'; if (elgg_view_exists($settings_view)) { @@ -166,28 +170,29 @@ if (elgg_view_exists($settings_view)) { $settings_link = "[" . elgg_echo('settings') . "]"; } ?> -

    manifest->getName() . " $version $settings_link"; ?>

    - manifest->getApiVersion() < 1.8) { - $reqs = $plugin->manifest->getRequires(); - if (!$reqs) { - $message = elgg_echo('admin:plugins:warning:elgg_version_unknown'); +

    manifest->getName() . " $version $settings_link"; ?>

    + manifest->getApiVersion() < 1.8) { + $reqs = $plugin->manifest->getRequires(); + if (!$reqs) { + $message = elgg_echo('admin:plugins:warning:elgg_version_unknown'); + echo "

    $message

    "; + } + } + + if (!$can_activate) { + $message = elgg_echo('admin:plugins:warning:unmet_dependencies'); echo "

    $message

    "; } - } - - if (!$can_activate) { - $message = elgg_echo('admin:plugins:warning:unmet_dependencies'); - echo "

    $message

    "; - } - ?> - -
    -

    - -
    - - +
    +