summaryrefslogtreecommitdiff
path: root/views/new-post.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2017-05-14 13:19:09 +0200
committerAaron Parecki <aaron@parecki.com>2017-05-14 13:19:09 +0200
commitd13425af4fb44f45753868706d2d092c7fbc78b7 (patch)
treee6df6af11be6a00850571f7a8ae99a6d38b21223 /views/new-post.php
parentbd70c1a9f2601173ba0462721e843e5a2c7402ab (diff)
hide alt text field if no media endpoint exists
Diffstat (limited to 'views/new-post.php')
-rw-r--r--views/new-post.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/new-post.php b/views/new-post.php
index 2e523b8..4fbad4b 100644
--- a/views/new-post.php
+++ b/views/new-post.php
@@ -140,7 +140,9 @@
<input type="url" id="note_photo_url" class="form-control" placeholder="Paste image URL">
</div>
- <input type="text" id="note_photo_alt" class="form-control" placeholder="Image alt text">
+ <?php if($this->media_endpoint): ?>
+ <input type="text" id="note_photo_alt" class="form-control" placeholder="Image alt text">
+ <?php endif ?>
</div>
<div class="modal-footer">