summaryrefslogtreecommitdiff
path: root/modules/downloadfullsize/views/downloadfullsize_block.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/downloadfullsize/views/downloadfullsize_block.html.php')
-rw-r--r--modules/downloadfullsize/views/downloadfullsize_block.html.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/downloadfullsize/views/downloadfullsize_block.html.php b/modules/downloadfullsize/views/downloadfullsize_block.html.php
new file mode 100644
index 00000000..a9ccc2a6
--- /dev/null
+++ b/modules/downloadfullsize/views/downloadfullsize_block.html.php
@@ -0,0 +1,18 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+
+<? if ($theme->item->is_photo()) { ?>
+<div class="g-download-fullsize-block">
+<a href="<?= url::site("downloadfullsize/send/{$theme->item->id}") ?>"
+ title="<?= t("Download Photo") ?>"
+ class="g-button ui-icon-left ui-state-default ui-corner-all"><?= t("Download Fullsize Image") ?></a>
+</div>
+<? } ?>
+
+<? if ($theme->item->is_movie()) { ?>
+<div class="g-download-fullsize-block">
+<a href="<?= url::site("downloadfullsize/send/{$theme->item->id}") ?>"
+ title="<?= t("Download Video") ?>"
+ class="g-button ui-icon-left ui-state-default ui-corner-all"><?= t("Download Movie") ?></a>
+</div>
+<? } ?>
+