diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-11 15:25:23 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-11 15:25:23 +0000 |
commit | 55af8d999acc3346992f62d0e1b01369b5965609 (patch) | |
tree | d4f86566b8c2df426771492c91fd1b796d49411b /views/default/admin/plugins_opt | |
parent | e438c44670e91ca5f1dd5cf289c117c670ca2f26 (diff) | |
download | elgg-55af8d999acc3346992f62d0e1b01369b5965609.tar.gz elgg-55af8d999acc3346992f62d0e1b01369b5965609.tar.bz2 |
plugin admin layout tweaks
git-svn-id: https://code.elgg.org/elgg/trunk@1835 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin/plugins_opt')
-rw-r--r-- | views/default/admin/plugins_opt/plugin.php | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/views/default/admin/plugins_opt/plugin.php b/views/default/admin/plugins_opt/plugin.php index b24a3fc70..29abfcd35 100644 --- a/views/default/admin/plugins_opt/plugin.php +++ b/views/default/admin/plugins_opt/plugin.php @@ -20,8 +20,19 @@ $active = $details['active']; $manifest = $details['manifest']; ?> -<div id="plugin_details" class="<?php if ($active) echo "active"; else "not-active" ?>"> - <div><h2><?php echo $plugin; ?></h2></div> +<div class="plugin_details <?php if ($active) echo "active"; else echo "not-active" ?>"> + <div class="admin_plugin_enable_disable"> + <?php if ($active) { ?> + <a href="<?php echo $vars['url']; ?>actions/admin/plugins/disable?plugin=<?php echo $plugin; ?>"><?php echo elgg_echo("disable"); ?></a> + <?php } else { ?> + <a href="<?php echo $vars['url']; ?>actions/admin/plugins/enable?plugin=<?php echo $plugin; ?>"><?php echo elgg_echo("enable"); ?></a> + <?php } ?> + </div> + + <h3><?php echo $plugin; ?></h3> + <p><a class="manifest_details"><?php echo elgg_echo("more info"); ?></a></p> + + <div class="manifest_file"> <?php if ($manifest) { ?> <div><?php echo $manifest['description'] ?></div> @@ -30,6 +41,8 @@ <div><?php echo elgg_echo('admin:plugins:label:licence') . ": ". $manifest['licence'] ?></div> <div><?php echo elgg_echo('admin:plugins:label:website') . ": "; ?><a href="<?php echo $manifest['website']; ?>"><?php echo $manifest['website']; ?></a></div> <?php } ?> + + </div> <?php if (elgg_view("settings/{$plugin}/edit")) { ?> <hr /> @@ -41,11 +54,4 @@ <hr /> <?php } ?> - <div> - <?php if ($active) { ?> - <a href="<?php echo $vars['url']; ?>actions/admin/plugins/disable?plugin=<?php echo $plugin; ?>"><?php echo elgg_echo("disable"); ?></a> - <?php } else { ?> - <a href="<?php echo $vars['url']; ?>actions/admin/plugins/enable?plugin=<?php echo $plugin; ?>"><?php echo elgg_echo("enable"); ?></a> - <?php } ?> - </div> </div>
\ No newline at end of file |