using_index_permalinks() AND ! strpos( $pagenum_link, 'index.php' ) ) ? 'index.php/' : ''; $format .= $wp_rewrite->using_permalinks() ? user_trailingslashit( 'page/%#%', 'paged' ) : '?paged=%#%'; $links = paginate_links( array( 'base' => $pagenum_link, 'format' => $format, 'total' => $wp_query->max_num_pages, 'current' => $paged, 'mid_size' => 3, 'type' => 'list', 'add_args' => $query_args ) ); if ( $links ) { echo ""; } } endif; if ( ! function_exists( 'the_bootstrap_comment_nav' ) ) : /** * Display navigation to next/previous comments pages when applicable * * @author Konstantin Obenland * @since 1.5.0 - 19.05.2012 * * @return void */ function the_bootstrap_comment_nav() { if ( get_comment_pages_count() > 1 AND get_option( 'page_comments' ) ) : // are there comments to navigate through ?> Posted on by ', 'the-bootstrap' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'the-bootstrap' ), get_the_author() ) ), get_the_author() ); if ( comments_open() AND ! post_password_required() ) { ?> | ' . __( 'Leave a reply', 'the-bootstrap' ) . '', __( '1 Reply', 'the-bootstrap' ), __( '% Replies', 'the-bootstrap' ) ); ?>  ', '' ); } endif; if ( ! function_exists( 'the_bootstrap_link_pages' ) ) : /** * Displays page links for paginated posts * * It's basically the wp_link_pages() function, altered to fit to the Bootstrap * markup needs for paginations (unordered list). * @see wp_link_pages() * * @author Konstantin Obenland * @since 1.1.0 - 09.03.2012 * * @param array $args * * @return string */ function the_bootstrap_link_pages( $args = array() ) { wp_link_pages( array( 'echo' => 0 )); $defaults = array( 'next_or_number' => 'number', 'nextpagelink' => __('Next page', 'the-bootstrap'), 'previouspagelink' => __('Previous page', 'the-bootstrap'), 'pagelink' => '%', 'echo' => true ); $r = wp_parse_args( $args, $defaults ); $r = apply_filters( 'the_bootstrap_link_pages_args', $r ); extract( $r, EXTR_SKIP ); global $page, $numpages, $multipage, $more, $pagenow; $output = ''; if ( $multipage ) { if ( 'number' == $next_or_number ) { $output .= ''; } else { if ( $more ) { $output .= ''; } } } if ( $echo ) echo $output; return $output; } endif; if ( ! function_exists( 'the_bootstrap_navbar_searchform' ) ) : /** * Returns or echoes searchform mark up, specifically for the navbar. * * @author Konstantin Obenland * @since 1.5,0 - 14.05.2012 * * @param bool $echo Optional. Whether to echo the form * * @return void */ function the_bootstrap_navbar_searchform( $echo = true ) { $searchform = ' '; if ( $echo ) echo $searchform; return $searchform; } endif; if ( ! function_exists( 'the_bootstrap_navbar_class' ) ) : /** * Adds The Bootstrap navbar classes * * @author WordPress.org * @since 1.4.0 - 12.05.2012 * * @return void */ function the_bootstrap_navbar_class() { $classes = array( 'navbar' ); if ( 'static' != the_bootstrap_options()->navbar_position ) $classes[] = the_bootstrap_options()->navbar_position; apply_filters( 'the_bootstrap_navbar_classes', $classes ); echo 'class="' . join( ' ', $classes ) . '"'; } endif; /* End of file template-tags.php */ /* Location: ./wp-content/themes/the-bootstrap/inc/template-tags.php */