aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-13 14:42:25 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-13 14:42:25 +0000
commitb239115b1144418a22bdee83e359f6cbce88c774 (patch)
tree53d010184ba966d3056989916903ea44fe4043a7 /views/default
parenta1a3677c24ef96dbf682a83743a6fce7111eac2a (diff)
downloadelgg-b239115b1144418a22bdee83e359f6cbce88c774.tar.gz
elgg-b239115b1144418a22bdee83e359f6cbce88c774.tar.bz2
Moved plugin settings so they're more obvious.
git-svn-id: https://code.elgg.org/elgg/trunk@2746 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/admin/plugins_opt/plugin.php20
-rw-r--r--views/default/css.php7
-rw-r--r--views/default/js/initialise_elgg.php6
3 files changed, 22 insertions, 11 deletions
diff --git a/views/default/admin/plugins_opt/plugin.php b/views/default/admin/plugins_opt/plugin.php
index 5cb1797c4..a5199fb2b 100644
--- a/views/default/admin/plugins_opt/plugin.php
+++ b/views/default/admin/plugins_opt/plugin.php
@@ -50,7 +50,16 @@
<?php } ?>
</div>
- <h3><?php echo $plugin; ?></h3>
+ <h3><?php echo $plugin; ?><?php if (elgg_view("settings/{$plugin}/edit")) { ?> <a class="pluginsettings_link">[<?php echo elgg_echo('settings'); ?>]</a><?php } ?></h3>
+
+ <?php if (elgg_view("settings/{$plugin}/edit")) { ?>
+ <div class="pluginsettings">
+ <div id="<?php echo $plugin; ?>_settings">
+ <?php echo elgg_view("object/plugin", array('plugin' => $plugin, 'entity' => find_plugin_settings($plugin))) ?>
+ </div>
+ </div>
+ <?php } ?>
+
<p><a class="manifest_details"><?php echo elgg_echo("admin:plugins:label:moreinfo"); ?></a></p>
<div class="manifest_file">
@@ -62,15 +71,6 @@
<div><?php echo elgg_echo('admin:plugins:label:licence') . ": ". $manifest['licence'] . $manifest['license'] ?></div>
<div><?php echo elgg_echo('admin:plugins:label:website') . ": "; ?><a href="<?php echo $manifest['website']; ?>"><?php echo $manifest['website']; ?></a></div>
<?php } ?>
-
- <?php if (elgg_view("settings/{$plugin}/edit")) { ?>
- <div class="pluginsettings">
- <h3><?php echo elgg_echo("settings"); ?></h3>
- <div id="<?php echo $plugin; ?>_settings">
- <?php echo elgg_view("object/plugin", array('plugin' => $plugin, 'entity' => find_plugin_settings($plugin))) ?>
- </div>
- </div>
- <?php } ?>
</div>
diff --git a/views/default/css.php b/views/default/css.php
index f3afd935f..3d92fd2c6 100644
--- a/views/default/css.php
+++ b/views/default/css.php
@@ -1231,6 +1231,13 @@ table.search_gallery {
.plugin_details a.manifest_details {
cursor:pointer;
font-size:80%;
+}
+.plugin_details a.pluginsettings_link {
+ cursor:pointer;
+ font-size:80%;
+}
+.pluginsettings {
+ display:none;
}
.not-active .admin_plugin_enable_disable a {
float:right;
diff --git a/views/default/js/initialise_elgg.php b/views/default/js/initialise_elgg.php
index 390b9cf94..776f6ff7f 100644
--- a/views/default/js/initialise_elgg.php
+++ b/views/default/js/initialise_elgg.php
@@ -16,7 +16,11 @@ $(document).ready(function () {
return false;
});
- // toggle plugin's more info on admin tools admin
+ // toggle plugin's settings nad more info on admin tools admin
+ $('a.pluginsettings_link').click(function () {
+ $(this.parentNode.parentNode).children("[class=pluginsettings]").slideToggle("fast");
+ return false;
+ });
$('a.manifest_details').click(function () {
$(this.parentNode.parentNode).children("[class=manifest_file]").slideToggle("fast");
return false;