summaryrefslogtreecommitdiff
path: root/modules/gallery/views/admin_graphics.html.php
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-08-09 09:51:40 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-08-09 09:51:40 -0600
commitea17a51148884d0297baf3fc8b94916d9c60a5d3 (patch)
tree5e3cde26e954f8248ebacbf7af38e3f4b63ed4fa /modules/gallery/views/admin_graphics.html.php
parent9fa4e8972596d015d4e4259aabb600c886d6381e (diff)
parent7aac471b828d4405b3fb0d736a06a5b92875883e (diff)
Merge branch 'master' of git@github.com:bharat/gallery3
Diffstat (limited to 'modules/gallery/views/admin_graphics.html.php')
-rw-r--r--modules/gallery/views/admin_graphics.html.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/modules/gallery/views/admin_graphics.html.php b/modules/gallery/views/admin_graphics.html.php
index 08374471..c4a2f5c6 100644
--- a/modules/gallery/views/admin_graphics.html.php
+++ b/modules/gallery/views/admin_graphics.html.php
@@ -9,8 +9,8 @@
};
$("#gAdminGraphics div.gAvailable .gBlock").click(select_toolkit);
});
-
</script>
+
<div id="gAdminGraphics">
<h1> <?= t("Graphics Settings") ?> </h1>
<p>
@@ -18,11 +18,19 @@
</p>
<h2> <?= t("Active Toolkit") ?> </h2>
- <?= $active ?>
+ <? if ($active == "none"): ?>
+ <?= new View("admin_graphics_none.html") ?>
+ <? else: ?>
+ <?= new View("admin_graphics_$active.html", array("tk" => $tk->$active, "is_active" => true)) ?>
+ <? endif ?>
<div class="gAvailable">
<h2> <?= t("Available Toolkits") ?> </h2>
- <?= $available ?>
+ <? foreach (array_keys((array)$tk) as $id): ?>
+ <? if ($id != $active): ?>
+ <?= new View("admin_graphics_$id.html", array("tk" => $tk->$id, "is_active" => false)) ?>
+ <? endif ?>
+ <? endforeach ?>
</div>
</div>