diff options
author | Aaron Parecki <aaron@parecki.com> | 2017-05-14 13:19:09 +0200 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2017-05-14 13:19:09 +0200 |
commit | d13425af4fb44f45753868706d2d092c7fbc78b7 (patch) | |
tree | e6df6af11be6a00850571f7a8ae99a6d38b21223 /views | |
parent | bd70c1a9f2601173ba0462721e843e5a2c7402ab (diff) |
hide alt text field if no media endpoint exists
Diffstat (limited to 'views')
-rw-r--r-- | views/new-post.php | 4 |
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"> |