diff options
Diffstat (limited to 'core/views/admin_graphics.html.php')
-rw-r--r-- | core/views/admin_graphics.html.php | 96 |
1 files changed, 17 insertions, 79 deletions
diff --git a/core/views/admin_graphics.html.php b/core/views/admin_graphics.html.php index 22108cd7..c5e32320 100644 --- a/core/views/admin_graphics.html.php +++ b/core/views/admin_graphics.html.php @@ -2,91 +2,29 @@ <script type="text/javascript"> $(document).ready(function() { select_toolkit = function(el) { - if (!$(this).hasClass("selected")) { + if (!$(this).hasClass("unavailable")) { window.location = '<?= url::site("admin/graphics/choose/__TK__?csrf=" . access::csrf_token()) ?>' .replace("__TK__", $(this).attr("id")); } }; - $("#gAdminGraphics table tr").click(select_toolkit); + $("#gAvailableToolkits div.gBlock").click(select_toolkit); }); -</script> - -<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("Graphics Toolkits") ?> </h2> +</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> -<table id="gAdminGraphics"> - <tr id="gd" <?= ($active == "gd") ? "class=\"selected\"" : "" ?>> - <td valign="top"> - <img width="170" height="110" src="http://www.libgd.org/skins/libgd/gdlogosmall.png" alt="<? t("Visit the GD lib project site") ?>" /> - </td> - <td> - <h3> <?= t("GD") ?> </h3> - <p> - <?= t("The GD graphics library is an extension to PHP commonly installed most webservers. Please refer to the <a href=\"{{url}}\">GD website</a> for more information.", - array("url" => "http://www.boutell.com/gd")) ?> - </p> - <? if ($tk->gd["GD Version"] && function_exists('imagerotate')): ?> - <p class="gSuccess"> - <?= t("You have GD version {{version}}.", array("version" => $tk->gd["GD Version"])) ?> - </p> - <? elseif ($tk->gd["GD Version"]): ?> - <p class="gWarning"> - <?= t("You have GD version {{version}}, but it lacks image rotation.", - array("version" => $tk->gd["GD Version"])) ?> - </p> - <? else: ?> - <p class="gInfo"> - <?= t("You do not have GD installed.") ?> - </p> - <? endif ?> - </td> - </tr> + <div id="gSelectedToolkit"> + <h2> <?= t("Active Toolkit") ?> </h2> + <?= $active ?> + </div> - <tr id="imagemagick" <?= ($active == "imagemagick") ? "class=\"selected\"" : "" ?>> - <td valign="top"> - <img width="114" height="118" src="http://www.imagemagick.org/image/logo.jpg" alt="<? t("Visit the ImageMagick project site") ?>" /> - </td> - <td> - <h3> <?= t("ImageMagick") ?> </h3> - <p> - <?= t("ImageMagick is a standalone graphics program available on most Linux systems. Please refer to the <a href=\"{{url}}\">ImageMagick website</a> for more information.", - array("url" => "http://www.imagemagick.org")) ?> - </p> - <? if ($tk->imagemagick): ?> - <p class="gSuccess"> - <?= t("You have ImageMagick installed in {{path}}", array("path" => $tk->imagemagick)) ?> - </p> - <? else: ?> - <p class="gInfo"> - <?= t("ImageMagick is not available on your system.") ?> - </p> - <? endif ?> - </td> - </tr> + <div id="gAvailableToolkits"> + <h2> <?= t("Available Toolkits") ?> </h2> + <?= $available ?> + </div> +</div> - <tr id="graphicsmagick" <?= ($active == "graphicsmagick") ? "class=\"selected\"" : "" ?>> - <td valign="top"> - <img width="107" height="76" src="http://www.graphicsmagick.org/images/gm-107x76.png" alt="<? t("Visit the GraphicsMagick project site") ?>" /> - </td> - <td> - <h3> <?= t("GraphicsMagick") ?> </h3> - <p> - <?= t("GraphicsMagick is a standalone graphics program available on most Linux systems. Please refer to the <a href=\"{{url}}\">GraphicsMagick website</a> for more information.", - array("url" => "http://www.graphicsmagick.org")) ?> - </p> - <? if ($tk->graphicsmagick): ?> - <p class="gSuccess"> - <?= t("You have GraphicsMagick installed in {{path}}", array("path" => $tk->graphicsmagick)) ?> - </p> - <? else: ?> - <p class="gInfo"> - <?= t("GraphicsMagick is not available on your system.") ?> - </p> - <? endif ?> - </td> - </tr> -</table> |