summaryrefslogtreecommitdiff
path: root/modules/gallery/views/admin_graphics.html.php
blob: c4a2f5c63dd0cd2c85a00e31ab06e7959514e02a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php defined("SYSPATH") or die("No direct script access.") ?>
<script type="text/javascript">
  $(document).ready(function() {
    select_toolkit = function(el) {
      if (!$(this).hasClass("gUnavailable")) {
        window.location = '<?= url::site("admin/graphics/choose/__TK__?csrf=$csrf") ?>'
          .replace("__TK__", $(this).attr("id"));
      }
    };
    $("#gAdminGraphics div.gAvailable .gBlock").click(select_toolkit);
  });
</script>

<div id="gAdminGraphics">
  <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)) ?>
    <? endif ?>
    <? endforeach ?>
  </div>
</div>