Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 65 lines (51 sloc) 4.428 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<?php include('header.php'); ?>

<?php include( 'navigator.php' ); ?>

<form method="post" name="moderation" action="<?php URL::out( 'admin', array( 'page' => 'comments', 'status' => $status ) ); ?>">
<input type="hidden" name="search" value="<?php echo Utils::htmlspecialchars($search); ?>">
<input type="hidden" name="status" value="<?php echo Utils::htmlspecialchars($status); ?>">
<input type="hidden" id="nonce" name="nonce" value="<?php echo $wsse['nonce']; ?>">
<input type="hidden" id="timestamp" name="timestamp" value="<?php echo $wsse['timestamp']; ?>">
<input type="hidden" id="password_digest" name="password_digest" value="<?php echo $wsse['digest']; ?>">

<div class="container transparent item comments controls">
<span class="checkboxandselected pct30">
<input type="checkbox" id="master_checkbox" name="master_checkbox" class="select_all">
<label class="selectedtext minor none" for="master_checkbox"><?php _e('None selected'); ?></label>
</span>
<ul class="comments-action dropbutton alert">
<li class=""><a href="*" name="do_delete" title="<?php _e( 'Delete selected comments' ); ?>" onclick="itemManage.update( 'delete' ); return false;"><?php _e( 'Delete Selected' ); ?></a></li>
<li class=""><a href="*" name="do_delete_spam" title="<?php _e( 'Delete all spam comments' ); ?>" onclick="itemManage.update( 'delete_spam' ); return false;"><?php _e( 'Delete All Spam' ); ?></a></li>
<li class=""><a href="*" name="do_delete_unapproved" title="<?php _e( 'Delete all unapproved comments' ); ?>" onclick="itemManage.update( 'delete_unapproved' ); return false;"><?php _e( 'Delete All Unapproved' ); ?></a></li>
</ul>
<ul class="comments-action dropbutton">
<li class=""><a href="*" name="do_approve" title="<?php _e( 'Approve selected comments' ); ?>" onclick="itemManage.update( 'approve' ); return false;"><?php _e( 'Mark selected approved' ); ?></a></li>
<li class=""><a href="*" name="do_unapprove" title="<?php _e( 'Unapprove selected comments' ); ?>" onclick="itemManage.update( 'unapprove' ); return false;"><?php _e( 'Mark selected unapproved' ); ?></a></li>
<li class=""><a href="*" name="do_spam" title="<?php _e( 'Mark selected comments as spam' ); ?>" onclick="itemManage.update( 'spam' ); return false;"><?php _e( 'Mark selected spam' ); ?></a></li>
</ul>
</div>

<div id="comments" class="container manage comments">

<?php $theme->display('comments_items'); ?>

</div>


<div class="container transparent item comments controls">
<span class="checkboxandselected pct30">
<input type="checkbox" id="master_checkbox_2" name="master_checkbox_2" class="select_all">
<label class="selectedtext minor none" for="master_checkbox_2"><?php _e('None selected'); ?></label>
</span>
<ul class="comments-action dropbutton alert">
<li class=""><a href="*" name="do_delete" title="<?php _e( 'Delete selected comments' ); ?>" onclick="itemManage.update( 'delete' ); return false;"><?php _e( 'Delete Selected' ); ?></a></li>
<li class=""><a href="*" name="do_delete_spam" title="<?php _e( 'Delete all spam comments' ); ?>" onclick="itemManage.update( 'delete_spam' ); return false;"><?php _e( 'Delete All Spam' ); ?></a></li>
<li class=""><a href="*" name="do_delete_unapproved" title="<?php _e( 'Delete all unapproved comments' ); ?>" onclick="itemManage.update( 'delete_unapproved' ); return false;"><?php _e( 'Delete All Unapproved' ); ?></a></li>
</ul>
<ul class="comments-action dropbutton">
<li class=""><a href="*" name="do_approve" title="<?php _e( 'Approve selected comments' ); ?>" onclick="itemManage.update( 'approve' ); return false;"><?php _e( 'Mark selected approved' ); ?></a></li>
<li class=""><a href="*" name="do_unapprove" title="<?php _e( 'Unapprove selected comments' ); ?>" onclick="itemManage.update( 'unapprove' ); return false;"><?php _e( 'Mark selected unapproved' ); ?></a></li>
<li class=""><a href="*" name="do_spam" title="<?php _e( 'Mark selected comments as spam' ); ?>" onclick="itemManage.update( 'spam' ); return false;"><?php _e( 'Mark selected spam' ); ?></a></li>
</ul>
</div>

</form>

<script type="text/javascript">

itemManage.updateURL = habari.url.ajaxUpdateComment;
itemManage.fetchURL = "<?php echo URL::get('admin_ajax', array('context' => 'comments')) ?>";
itemManage.fetchReplace = $('#comments');

</script>


<?php include('footer.php'); ?>
Something went wrong with that request. Please try again.