From f860747857830229ecf0d3e309f6d49e131b7e30 Mon Sep 17 00:00:00 2001
From: Aaron Parecki <aaron@parecki.com>
Date: Fri, 20 Jul 2018 18:04:48 -0500
Subject: hide reply button unless replies are supported

---
 views/new-post.php | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'views/new-post.php')

diff --git a/views/new-post.php b/views/new-post.php
index 69e3a84..b31d2be 100644
--- a/views/new-post.php
+++ b/views/new-post.php
@@ -3,6 +3,8 @@
 
       <form role="form" style="margin-top: 20px;" id="note_form">
 
+        <?php if(supports_post_type($this->user, 'reply')): ?>
+
         <div id="reply">
           <div class="reply-section hidden">
             <div class="form-group has-feedback">
@@ -36,6 +38,8 @@
           </select>
         </div>
 
+        <?php endif ?>
+
         <div class="form-group hidden" id="note-name">
           <label for="note_name">Issue Title</label>
           <input type="text" id="note_name" value="" class="form-control" placeholder="">
-- 
cgit v1.2.3