", "width='240' height='197'>", $content ); } add_filter( 'the_content', 'resize_youtube', 999 ); load_theme_textdomain( 'fjords', get_template_directory() . '/languages' ); add_theme_support( 'automatic-feed-links' ); $themecolors = array( 'bg' => 'ffffff', 'text' => '888888', 'link' => '8ab459', 'border' => 'dee4da', 'url' => '63b4cd', ); $content_width = 270; add_theme_support( 'print-style' ); /** * Enqueue scripts and styles */ function fjords_scripts() { wp_enqueue_style( 'fjords', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'fjords_scripts' ); /** * Setup the WordPress core custom background feature. * * Hooks into the after_setup_theme action. */ function fjords_register_custom_background() { add_theme_support( 'custom-background', apply_filters( 'fjords_custom_background_args', array( 'default-color' => 'dde5d9', 'default-image' => '', ) ) ); } add_action( 'after_setup_theme', 'fjords_register_custom_background' ); function fjords_comment( $comment, $args, $depth ) { $GLOBALS[ 'comment' ] = $comment; extract( $args, EXTR_SKIP ); ?>
id="comment-">
'div-comment', 'depth' => $depth, 'max_depth' => $args[ 'max_depth' ] ) ) ); ?>
tag based on what is being viewed. * * @since Fjords 1.0 */ function fjords_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', 'fjords' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'fjords_wp_title', 10, 2 ); /** * Load WP.com compatibility file. */ require( get_template_directory() . '/inc/custom-header.php' );