diff options
author | Aaron Parecki <aaron@parecki.com> | 2018-07-20 17:59:18 -0500 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2018-07-20 17:59:18 -0500 |
commit | b749bc6c124a02a6949dc67ea703d880e1acd2ac (patch) | |
tree | e6695ac1a3a2cb59977d77434179908295e93029 /views/new-post.php | |
parent | 33796f7bd5def85a5753cc3b4430769379b60475 (diff) |
disable post type buttons if the server doesn't support them
Diffstat (limited to 'views/new-post.php')
-rw-r--r-- | views/new-post.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/new-post.php b/views/new-post.php index 02733bc..69e3a84 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -65,11 +65,15 @@ <input type="text" id="note_slug" value="" class="form-control"> </div> + <?php if(supports_post_type($this->user, 'photo')): ?> + <div class="form-group hidden" id="photo-previews"> </div> <a href="javascript:addNewPhoto();" id="expand-photo-section"><i class="glyphicon glyphicon-camera" style="color: #aaa; font-size: 36px;"></i></a> + <?php endif ?> + <div class="form-group" style="margin-top: 1em;"> <label for="note_syndicate-to">Syndicate <a href="javascript:reload_syndications()">(refresh list)</a></label> <div id="syndication-container"> |