diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-11 01:30:24 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-11 01:30:24 +0000 |
commit | 3c1bcd36ca6a6cf57b46142524d63d381ca92088 (patch) | |
tree | f872ad4fcab349f8d52f529e01839a9d2b053f3e /views/default/forms | |
parent | 1246c08669937fe113adbb03252ed1a9590a82c1 (diff) | |
download | elgg-3c1bcd36ca6a6cf57b46142524d63d381ca92088.tar.gz elgg-3c1bcd36ca6a6cf57b46142524d63d381ca92088.tar.bz2 |
Cleanup of basic plugins area
git-svn-id: http://code.elgg.org/elgg/trunk@8106 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/forms')
-rw-r--r-- | views/default/forms/admin/plugins/simple_update_states.php | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/views/default/forms/admin/plugins/simple_update_states.php b/views/default/forms/admin/plugins/simple_update_states.php index 57231d4ef..bf9f4e4c1 100644 --- a/views/default/forms/admin/plugins/simple_update_states.php +++ b/views/default/forms/admin/plugins/simple_update_states.php @@ -25,7 +25,7 @@ foreach ($installed_plugins as $plugin) { ksort($plugin_list); echo <<<___END - <table class="admin_plugins"><tbody> + <ul> ___END; $actions_base = '/action/admin/plugins/'; @@ -59,44 +59,43 @@ foreach ($plugin_list as $name => $plugin) { $description = elgg_view('output/longtext', array('value' => $description)); - $author_html = $link_html = $version_html = $settings_html = ''; - + $plugin_footer = '<ul class="elgg-menu elgg-menu-footer">'; + if ($author) { - $author_html = elgg_echo('admin:plugins:author', array($author)); + $plugin_footer .= '<li>' . elgg_echo('admin:plugins:author', array($author)) . '</li>'; } if ($version) { - $version_html = ' | ' . elgg_echo('admin:plugins:version', array($version)); + $plugin_footer .= '<li>' . elgg_echo('admin:plugins:version', array($version)) . '</li>'; } if ($website) { - $link_html = " | <a href=\"$website\">" . elgg_echo('admin:plugins:plugin_website') . '</a>'; + $plugin_footer .= "<li><a href=\"$website\">" . elgg_echo('admin:plugins:plugin_website') . '</a></li>'; } if (elgg_view_exists("settings/$plugin_id/edit")) { $settings_href = elgg_get_site_url() . "pg/admin/plugin_settings/$plugin_id"; - $settings_html = " | <a class='plugin_settings link' href='$settings_href'>" . elgg_echo('settings') . "</a>"; + $plugin_footer .= "<li><a class='plugin_settings link' href='$settings_href'>" . elgg_echo('settings') . "</a></li>"; } + + $plugin_footer .= "</ul>"; echo <<<___END - <tr class="elgg-plugin $active_class"> - <th class="plugin_controls"> - <input type="checkbox" id="$plugin_guid" class="plugin_enabled" $checked $disabled name="active_plugin_guids[]" value="$plugin_guid"/> - <label for="$plugin_guid">$name</label> - </th> - <td class="plugin_info"> - $description - <span class="plugin_metadata small"> - $author_html - $version_html - $link_html - $settings_html - </span> - </td> - </tr> + <li class="elgg-plugin $active_class"> + <div class="elgg-grid"> + <div class="elgg-col elgg-col-1of5"> + <input type="checkbox" id="$plugin_guid" $checked $disabled name="active_plugin_guids[]" value="$plugin_guid"/> + <label for="$plugin_guid">$name</label> + </div> + <div class="elgg-col elgg-col-4of5"> + $description + $plugin_footer + </div> + </div> + </li> ___END; } -echo '</tbody></table>'; +echo '</ul>'; echo elgg_view('input/submit', array('value' => elgg_echo('save'))); echo elgg_view('input/reset', array('value' => elgg_echo('reset'))); |