2009-01-01 00:23:29 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2009-01-11 22:14:44 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(document).ready(function() {
|
2009-10-04 00:27:22 -06:00
|
|
|
$(".g-available .g-block").equal_heights();
|
2009-01-11 22:14:44 +00:00
|
|
|
select_toolkit = function(el) {
|
2009-10-04 00:27:22 -06:00
|
|
|
if (!$(this).hasClass("g-unavailable")) {
|
2009-09-01 01:28:52 -07:00
|
|
|
window.location = <?= html::js_string(url::site("admin/graphics/choose/__TK__?csrf=$csrf")) ?>
|
2009-01-11 22:14:44 +00:00
|
|
|
.replace("__TK__", $(this).attr("id"));
|
|
|
|
|
}
|
|
|
|
|
};
|
2009-10-04 00:27:22 -06:00
|
|
|
$("#g-admin-graphics div.g-available .g-block").click(select_toolkit);
|
2009-01-11 22:14:44 +00:00
|
|
|
});
|
2009-01-13 04:56:29 +00:00
|
|
|
</script>
|
2009-08-08 20:31:16 -07:00
|
|
|
|
2009-10-18 20:22:10 -06:00
|
|
|
<div id="g-admin-graphics" class="g-block ui-helper-clearfix">
|
2009-10-28 12:15:52 -07:00
|
|
|
<h1> <?= t("Graphics settings") ?> </h1>
|
2009-01-13 04:56:29 +00:00
|
|
|
<p>
|
|
|
|
|
<?= t("Gallery needs a graphics toolkit in order to manipulate your photos. Please choose one from the list below.") ?>
|
|
|
|
|
</p>
|
2009-01-12 08:20:39 +00:00
|
|
|
|
2009-10-18 20:22:10 -06:00
|
|
|
<div class="g-block-content">
|
2009-10-28 12:15:52 -07:00
|
|
|
<h2> <?= t("Active toolkit") ?> </h2>
|
2009-10-18 20:22:10 -06:00
|
|
|
<? if ($active == "none"): ?>
|
|
|
|
|
<?= new View("admin_graphics_none.html") ?>
|
|
|
|
|
<? else: ?>
|
|
|
|
|
<?= new View("admin_graphics_$active.html", array("tk" => $tk->$active, "is_active" => true)) ?>
|
2009-08-08 20:31:16 -07:00
|
|
|
<? endif ?>
|
2009-10-18 20:22:10 -06:00
|
|
|
|
|
|
|
|
<div class="g-available">
|
2009-10-28 12:15:52 -07:00
|
|
|
<h2> <?= t("Available toolkits") ?> </h2>
|
2009-10-18 20:22:10 -06:00
|
|
|
<? 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>
|
2009-01-13 04:56:29 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2008-12-30 04:14:57 +00:00
|
|
|
|