summaryrefslogtreecommitdiff
path: root/views/new-post.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2018-07-20 17:59:18 -0500
committerAaron Parecki <aaron@parecki.com>2018-07-20 17:59:18 -0500
commitb749bc6c124a02a6949dc67ea703d880e1acd2ac (patch)
treee6695ac1a3a2cb59977d77434179908295e93029 /views/new-post.php
parent33796f7bd5def85a5753cc3b4430769379b60475 (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.php4
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">