= 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'bromine' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'bro_wp_title', 10, 2 ); /** * Navigation for next/prev posts * @since 0.0.1 */ if( ! function_exists( 'bro_page_nav' ) ) : function bro_page_nav() { echo ''; } endif; /** * Tell WordPress to use searchform.php from the templates/ directory * This search form is used in the default search widget and the search page. */ add_filter( 'get_search_form', 'bro_get_search_form' ); function bro_get_search_form($form) { $form = ''; locate_template( '/templates/searchform.php', true, false ); return $form; } /** * Copyright stuff * @see /inc/customizer.php line 70. */ function bromine_copyright() { $copyright = 'Copyright © '; $owner = esc_attr( get_theme_mod( 'bromine_copyright_owner' ) ); if( $owner != '' ) { $copyright .= ' ' . $owner; } else { $copyright .= ' ' . get_bloginfo(); } echo $copyright; } /** * Displays page links for paginated posts when applicable */ if( ! function_exists( 'bro_content_nav' ) ): function bro_content_nav() { $args = array( 'before' => '
', 'text_before' => '', 'text_after' => '', 'next_or_number' => 'number', 'separator' => ' ', 'nextpagelink' => __( 'Next page', 'bromine' ), 'previouspagelink' => __( 'Previous page', 'bromine' ), 'pagelink' => '%', 'echo' => 1 ); wp_link_pages( $args ); } endif; // bro_content_nav