summaryrefslogtreecommitdiff
path: root/modules/gallery/views/admin_graphics.html.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-11-15 19:44:47 -0800
committerAndy Staudacher <andy.st@gmail.com>2009-11-15 19:44:47 -0800
commit0733dc37fda27a5ba35f9020edf3c66aa41a95a0 (patch)
tree6877946232f1b01b1c8709054c689f6658cef34f /modules/gallery/views/admin_graphics.html.php
parent218493c50be9362d4abed6900a816308fee5d978 (diff)
parent9379308f91a476f790fb8d444536719535c584e4 (diff)
Merge commit 'upstream/master'
Conflicts: modules/gallery/tests/xss_data.txt
Diffstat (limited to 'modules/gallery/views/admin_graphics.html.php')
-rw-r--r--modules/gallery/views/admin_graphics.html.php37
1 files changed, 20 insertions, 17 deletions
diff --git a/modules/gallery/views/admin_graphics.html.php b/modules/gallery/views/admin_graphics.html.php
index f64c7f80..3a48e087 100644
--- a/modules/gallery/views/admin_graphics.html.php
+++ b/modules/gallery/views/admin_graphics.html.php
@@ -1,36 +1,39 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<script type="text/javascript">
$(document).ready(function() {
+ $(".g-available .g-block").equal_heights();
select_toolkit = function(el) {
- if (!$(this).hasClass("gUnavailable")) {
+ if (!$(this).hasClass("g-unavailable")) {
window.location = <?= html::js_string(url::site("admin/graphics/choose/__TK__?csrf=$csrf")) ?>
.replace("__TK__", $(this).attr("id"));
}
};
- $("#gAdminGraphics div.gAvailable .gBlock").click(select_toolkit);
+ $("#g-admin-graphics div.g-available .g-block").click(select_toolkit);
});
</script>
-<div id="gAdminGraphics">
- <h1> <?= t("Graphics Settings") ?> </h1>
+<div id="g-admin-graphics" class="g-block ui-helper-clearfix">
+ <h1> <?= t("Graphics settings") ?> </h1>
<p>
<?= t("Gallery needs a graphics toolkit in order to manipulate your photos. Please choose one from the list below.") ?>
</p>
- <h2> <?= t("Active Toolkit") ?> </h2>
- <? 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>
- <? foreach (array_keys((array)$tk) as $id): ?>
- <? if ($id != $active): ?>
- <?= new View("admin_graphics_$id.html", array("tk" => $tk->$id, "is_active" => false)) ?>
+ <div class="g-block-content">
+ <h2> <?= t("Active toolkit") ?> </h2>
+ <? if ($active == "none"): ?>
+ <?= new View("admin_graphics_none.html") ?>
+ <? else: ?>
+ <?= new View("admin_graphics_$active.html", array("tk" => $tk->$active, "is_active" => true)) ?>
<? endif ?>
- <? endforeach ?>
+
+ <div class="g-available">
+ <h2> <?= t("Available toolkits") ?> </h2>
+ <? 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>
</div>