summaryrefslogtreecommitdiff
path: root/modules/gallery/views/admin_graphics_gd.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/views/admin_graphics_gd.html.php')
-rw-r--r--modules/gallery/views/admin_graphics_gd.html.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/gallery/views/admin_graphics_gd.html.php b/modules/gallery/views/admin_graphics_gd.html.php
new file mode 100644
index 0000000..1cc9dc9
--- /dev/null
+++ b/modules/gallery/views/admin_graphics_gd.html.php
@@ -0,0 +1,30 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<div id="gd" class="g-block<?= $is_active ? " g-selected" : "" ?><?= $tk->installed ? " g-installed-toolkit" : " g-unavailable" ?>">
+ <img class="logo" width="170" height="110" src="<?= url::file("modules/gallery/images/gd.png"); ?>" alt="<? t("Visit the GD lib project site") ?>" />
+ <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->installed && $tk->rotate): ?>
+ <div class="g-module-status g-info">
+ <?= t("You have GD version %version.", array("version" => $tk->version)) ?>
+ </div>
+ <p>
+ <a class="g-button ui-state-default ui-corner-all"><?= t("Activate GD") ?></a>
+ </p>
+ <? elseif ($tk->installed): ?>
+ <? if ($tk->error): ?>
+ <p class="g-module-status g-warning">
+ <?= $tk->error ?>
+ </p>
+ <? endif ?>
+ <p>
+ <a class="g-button ui-state-default ui-corner-all"><?= t("Activate GD") ?></a>
+ </p>
+ <? else: ?>
+ <div class="g-module-status g-info">
+ <?= t("You do not have GD installed.") ?>
+ </div>
+ <? endif ?>
+</div>