コード例 #1
0
		<div class='inside'>
			<p><?php 
_e('Logs any errors which the plugin has produced. Please report by opening a issue ticket on our <a target="_blank" href="https://github.com/lncd/bebop/issues">Github Issue Tracker</a>.', 'bebop');
?>
</p>
		</div>
	</div>
	<?php 
$number_of_rows = bebop_tables::count_table_rows('bp_bebop_error_log');
if (count($number_of_rows)) {
    echo '<a class="button-secondary" href="' . $_SERVER['PHP_SELF'] . '?' . http_build_query($_GET) . '&clear_table=true">' . __('Flush table data', 'bebop') . '</a>';
}
$page_vars = bebop_pagination_vars(100);
$bebop_pagination = bebop_pagination($number_of_rows, $page_vars['per_page']);
echo $bebop_pagination;
$table_row_data = bebop_tables::fetch_table_data('bp_bebop_error_log', $page_vars['page_number'], $page_vars['per_page']);
if (count($table_row_data) > 0) {
    ?>
		
		<table class="widefat margin-top_22px">
			<thead>
				<tr>
					<th><?php 
    _e('Error ID', 'bebop');
    ?>
</th>
					<th><?php 
    _e('Timestamp', 'bebop');
    ?>
</th>
					<th><?php