Ejemplo n.º 1
0
	 <?php 
    } else {
        // comments are closed
        ?>
		<!-- If comments are closed. -->
		<p class="nocomments">Comments are closed.</p>

	<?php 
    }
}
?>


<?php 
if (wats_get_ticket_update_rights() == true) {
    if (comments_open()) {
        ?>

<div id="respond">

<h3><?php 
        comment_form_title(__('Leave an update', 'WATS'), __('Leave an update for %s', 'WATS'));
        ?>
</h3>

<div id="cancel-comment-reply"> 
	<small><?php 
        cancel_comment_reply_link();
        ?>
</small>
Ejemplo n.º 2
0
function wats_ticket_comments_open($open, $post_id)
{
    if (wats_get_ticket_update_rights() == false) {
        return false;
    } else {
        return true;
    }
}