$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> <th>' . __('Imported', 'bebop') . '</th> <th>' . __('Published', 'bebop') . '</th> <th>' . __('Content', 'bebop') . '</th>
_e('While we cannot guarantee official support, we will always do what we can to help people sing this plugin. For support, please see our <a target="_blank" href="https://github.com/lncd/bebop/wiki">Github Wiki</a>.', 'bebop'); ?> </div> </div> <!-- End postbox-container --> </div> <div class="postbox-container"> <div id="normal-sortables" class="meta-box-sortables ui-sortable"><div class='postbox'> <h3><a href="?page=bebop_content&type=verified"><?php _e('Recently Verified Content', 'bebop'); ?> </a></h3> <div class='inside'> <?php $contents = bebop_tables::admin_fetch_content_data('verified', 0, 20); if (count($contents) > 0) { echo '<table class="postbox_table"> <tr class="nodata"> <th>' . __('Username', 'bebop') . '</th> <th>' . __('Type', 'bebop') . '</th> <th>' . __('Imported', 'bebop') . '</th> <th>' . __('Published', 'bebop') . '</th> <th>' . __('Content', 'bebop') . '</th> </tr>'; foreach ($contents as $content) { echo '<tr> <td>' . bp_core_get_username($content->user_id) . '</td>' . '<td>' . bebop_tables::sanitise_element(ucfirst($content->type)) . '</td>' . '<td>' . bp_core_time_since($content->date_imported) . '</td>' . '<td>' . bp_core_time_since($content->date_recorded) . '</td>' . '<td class="content">' . bebop_tables::sanitise_element($content->content, $allow_tags = true) . '</td>' . '</tr>'; } echo '</table>'; } else {