'efefef' ) ); // ================================================================== // Visual editor stylesheet // ================================================================== add_editor_style( 'editor.css' ); // ================================================================== // Header title tag support // ================================================================== add_theme_support( 'title-tag' ); // ================================================================== // HTML5 Support // ================================================================== add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // ================================================================== // Content width // ================================================================== if ( ! isset( $content_width ) ) $content_width = 580; function set_full_width() { global $full_width; if ( is_page_template( 'full-page.php' ) || is_page_template( 'full-title-page.php' ) ) $full_width = 960; } add_action( 'template_redirect', 'set_full_width' ); // Theme Setup // ==================================================================================================================================== } add_action( 'after_setup_theme', 'theme_setup' ); // ==================================================================================================================================== // ================================================================== // WordPress header title backward compatibility // ================================================================== if ( ! function_exists( '_wp_render_title_tag' ) ) : function render_title() { echo wp_title(); } add_action( 'wp_head', 'render_title' ); endif; // ================================================================== // Post/page pagination // ================================================================== function generate_link_pages() { wp_link_pages( array( 'before' => '

' . __( 'Pages:', 'bluehalus' ) . '', 'after' => '

', 'link_before' => '', 'link_after' => '', 'next_or_number' => 'number', 'nextpagelink' => __( 'Next page', 'bluehalus' ), 'previouspagelink' => __( 'Previous page', 'bluehalus' ), 'pagelink' => '%', 'echo' => 1 ) ); } // ================================================================== // Pagination (WordPress) // ================================================================== function pagination_links() { the_posts_pagination( array( 'mid_size' => 5, 'prev_text' => __( 'Previous page', 'bluehalus' ), 'next_text' => __( 'Next page', 'bluehalus' ), ) ); } // ================================================================== // Widget - Sidebar // ================================================================== function widgets_init() { register_sidebar( array( 'name' => __( 'Right Widget', 'bluehalus' ), 'id' => 'right-widget', 'class' => '', 'description' => 'Right side widget area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'widgets_init' );