| 1 |
<?php |
| 2 |
// Exit if accessed directly |
| 3 |
if( !defined( 'ABSPATH' ) ) exit; |
| 4 |
if( !WPF()->perm->usergroup_can('aum') ) exit; |
| 5 |
?> |
| 6 |
|
| 7 |
<div id="wpf-admin-wrap" class="wrap" style="margin-top: 0px"> |
| 8 |
<?php wpforo_screen_option() ?> |
| 9 |
<div id="icon-users" class="icon32"><br></div> |
| 10 |
<h2 style="padding:30px 0px 0px 0px;line-height: 20px; margin-bottom:15px;"><?php _e('Topic and Post Moderation', 'wpforo'); ?></h2> |
| 11 |
<?php WPF()->notice->show(FALSE) ?> |
| 12 |
<?php |
| 13 |
if( !((isset($_GET['action']) && $_GET['action'] != '-1') || (isset($_GET['action2']) && $_GET['action2'] != '-1')) ){ |
| 14 |
$fields = array( 'title', 'is_first_post', 'userid', 'created' ); |
| 15 |
$search_fields = array( 'title', 'body' ); |
| 16 |
$filter_fields = array( 'status', 'userid' ); |
| 17 |
$actions = array('view', 'approve', 'delete'); |
| 18 |
$bulk_actions = array('approve', 'unapprove', 'del'); |
| 19 |
wpforo_create_form_table( 'moderation', 'postid', $fields, $search_fields, $filter_fields, $actions, $bulk_actions); |
| 20 |
} |
| 21 |
?> |
| 22 |
</div> |