예제 #1
0
            $message = __('This content has been verified and is actively displayed in your users activity streams.', 'bebop');
        } else {
            if (strtolower(strip_tags($_GET['type'] == 'deleted'))) {
                $type = 'deleted';
                $message = __('This content has been deleted by your users.', 'bebop');
            }
        }
    }
} else {
    $type = 'verified';
    $message = __('This content has been verified by your users.', 'bebop');
}
echo '<a class="button-secondary" href="' . $_SERVER['PHP_SELF'] . '?page=bebop_content&type=unverified">' . __('Unverified Content', 'bebop') . '</a>';
echo '<a class="button-secondary" href="' . $_SERVER['PHP_SELF'] . '?page=bebop_content&type=verified">' . __('Verified Content', 'bebop') . '</a>';
echo '<a class="button-secondary" href="' . $_SERVER['PHP_SELF'] . '?page=bebop_content&type=deleted">' . __('Deleted Content', 'bebop') . '</a>';
$number_of_rows = bebop_tables::admin_count_content_rows($type);
$page_vars = bebop_pagination_vars(30);
$bebop_pagination = bebop_pagination($number_of_rows, $page_vars['per_page']);
$contents = bebop_tables::admin_fetch_content_data($type, $page_vars['page_number'], $page_vars['per_page']);
if (count($contents) > 0) {
    echo '<h4>' . ucfirst(__($type, 'bebop')) . ' ' . __('Content', 'bebop') . '</h4>';
    echo $message;
    echo $bebop_pagination;
    echo '<table class="widefat margin-top_22px">
			<thead>
				<tr>
					<th>' . __('Buffer ID', 'bebop') . '</th>
					<th>' . __('Secondary ID', 'bebop') . '</th>
					<th>' . __('Activity Stream ID', 'bebop') . '</th>
					<th>' . __('Username', 'bebop') . '</th>
					<th>' . __('Type', 'bebop') . '</th>