コード例 #1
0
ファイル: posts.php プロジェクト: laiello/cartonbank
} else {
    $h2_ip = '';
}
if ($h2_search || $h2_forum || $h2_tag || $h2_author || $h2_ip) {
    echo '<span class="subtitle">';
    printf(__('%1$s%2$s%3$s%4$s%5$s'), $h2_search, $h2_forum, $h2_tag, $h2_author, $h2_ip);
    echo '</span>';
}
?>
</h2>
<?php 
do_action('bb_admin_notices');
?>

<?php 
$post_query->form(array('poster_ip' => $ip_available, 'tag' => true, 'post_author' => true, 'post_status' => true, 'submit' => __('Filter')));
?>

<div class="tablenav">
<?php 
if ($total) {
    ?>
	<div class="tablenav-pages">
		<span class="displaying-num"><?php 
    echo $displaying_num = sprintf(__('%1$s to %2$s of %3$s'), bb_number_format_i18n(($page - 1) * $post_query->get('per_page') + 1), $page * $post_query->get('per_page') < $total ? bb_number_format_i18n($page * $post_query->get('per_page')) : '<span class="total-type-count">' . bb_number_format_i18n($total) . '</span>', '<span class="total-type-count">' . bb_number_format_i18n($total) . '</span>');
    ?>
</span><span class="displaying-pages">
<?php 
    $_page_link_args = array('page' => $page, 'total' => $total, 'per_page' => $post_query->get('per_page'), 'mod_rewrite' => false, 'prev_text' => __('&laquo;'), 'next_text' => __('&raquo;'));
    echo $page_number_links = get_page_number_links($_page_link_args);
    ?>
コード例 #2
0
ファイル: topics.php プロジェクト: laiello/cartonbank
$h2_forum = $h2_forum ? ' ' . sprintf(__('in &#8220;%s&#8221;'), get_forum_name($h2_forum)) : '';
$h2_tag = $h2_tag ? ' ' . sprintf(__('with tag &#8220;%s&#8221;'), esc_html(bb_get_tag_name($h2_tag))) : '';
$h2_author = $h2_author ? ' ' . sprintf(__('by %s'), esc_html(get_user_name($h2_author))) : '';
if ($h2_search || $h2_forum || $h2_tag || $h2_author) {
    echo '<span class="subtitle">';
    printf(__('%1$s%2$s%3$s%4$s'), $h2_search, $h2_forum, $h2_tag, $h2_author);
    echo '</span>';
}
?>
</h2>
<?php 
do_action('bb_admin_notices');
?>

<?php 
$topic_query->form(array('tag' => true, 'topic_author' => true, 'topic_status' => true, 'open' => true, 'submit' => __('Filter')));
?>

<div class="tablenav">
<?php 
if ($topic_query->found_rows) {
    ?>
	<div class="tablenav-pages">
		<span class="displaying-num"><?php 
    echo $displaying_num = sprintf(__('%1$s to %2$s of %3$s'), bb_number_format_i18n(($page - 1) * $topic_query->get('per_page') + 1), $page * $topic_query->get('per_page') < $topic_query->found_rows ? bb_number_format_i18n($page * $topic_query->get('per_page')) : '<span class="total-type-count">' . bb_number_format_i18n($topic_query->found_rows) . '</span>', '<span class="total-type-count">' . bb_number_format_i18n($topic_query->found_rows) . '</span>');
    ?>
</span><span class="displaying-pages">
<?php 
    $_page_link_args = array('page' => $page, 'total' => $topic_query->found_rows, 'per_page' => $topic_query->get('per_page'), 'mod_rewrite' => false, 'prev_text' => __('&laquo;'), 'next_text' => __('&raquo;'));
    echo $page_number_links = get_page_number_links($_page_link_args);
    ?>