baseColorScheme() ) wp_enqueue_style( 'dark', get_template_directory_uri() . '/stylesheets/dark.css', array(), null ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'vigilance_scripts' ); function vigilance_custom_css() { global $vigilance; if ( 'Enabled' == $vigilance->backgroundCss() ) { ?> baseColorScheme() ) { // if Base Color scheme is dark ?> imageHover() == 'true') { ?> baseColorScheme(); return false; } $color_scheme = vigilance_get_color_scheme(); switch ( $color_scheme ) { case 'Dark' : $themecolors = array( 'bg' => '000000', 'text' => 'bbbbbb', 'link' => 'e4741f', 'border' => '454545', 'url' => 'e4741f', ); break; default: $themecolors = array( 'bg' => 'ffffff', 'text' => '333333', 'link' => '772124', 'border' => 'eeeeee', 'url' => '58181b', ); break; } $content_width = 600; // Feed links add_theme_support( 'automatic-feed-links' ); add_theme_support( 'print-style' ); // Enable primary menu register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'vigilance' ), ) ); function vigilance_page_menu() { // fallback for primary navigation ?> by ', 'vigilance' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'vigilance' ), get_the_author_meta( 'display_name' ) ) ), esc_attr( get_the_author_meta( 'display_name' ) ) ); } } endif; function vigilance_body_class( $classes ) { global $vigilance; $color_scheme = $vigilance->baseColorScheme(); if ( 'Dark' == $color_scheme ) $classes[] = 'vigilance-dark'; else $classes[] = 'vigilance-light'; return $classes; } add_action( 'body_class', 'vigilance_body_class' ); /** * Filters wp_title to print a neat tag based on what is being viewed. * * @since Vigilance 1.50 */ function vigilance_wp_title( $title, $sep ) { global $page, $paged; if ( is_feed() ) return $title; // Add the blog name $title .= get_bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title .= " $sep $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) $title .= " $sep " . sprintf( __( 'Page %s', 'vigilance' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'vigilance_wp_title', 10, 2 );