summaryrefslogtreecommitdiff
path: root/modules/watermark/views/admin_watermarks.html.php
blob: 106d05ceddab24b3123b5d5786e966a610709d37 (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
37
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="#gWatermarks">
  <h1> <?= t("Watermarks") ?> </h1>
  <p>
    <?= t("You can have one watermark for your Gallery.  This watermark will be applied to all thumbnails and resized images, but it will not be applied to your full size images.  To make sure that your guests can only see watermarked images, you should restrict access to your full size images.") ?>
  </p>

  <? if (empty($name)): ?>
  <a href="<?= url::site("admin/watermarks/form_add") ?>"
     title="<?= t("Upload a watermark") ?>"
     class="gDialogLink"><?= t("Upload a watermark") ?></a>
  <? else: ?>
  <h2> <?= t("Active Watermark") ?> </h2>
  <p>
    <?= t("Note that changing this watermark will require you to rebuild all of your thumbnails and resized images.") ?>
  </p>
  <div>
    <div class="image">
      <img width="<?= $width ?>" height="<?= $height ?>" src="<?= $url ?>"/>
      <p>
        <?= t("Position: {{position}}", array("position" => watermark::position($position))) ?>
      </p>
      <p>
        <?= t("Transparency: {{transparency}}%", array("transparency" => module::get_var("watermark", "transparency"))) ?>
      </p>
    </div>
    <div class="controls">
      <a href="<?= url::site("admin/watermarks/form_edit") ?>"
         title="<?= t("Edit Watermark") ?>"
         class="gDialogLink"><?= t("edit") ?></a>
      <a href="<?= url::site("admin/watermarks/form_delete") ?>"
         title="<?= t("Delete Watermark") ?>"
         class="gDialogLink"><?= t("delete") ?></a>
    </div>
  </div>
  <? endif ?>
</div>