"; endif; } function photologger_menu() { register_nav_menus( array( 'header-menu' => __( 'Header Menu', 'photologger' ) ) ); } add_action( 'init', 'photologger_menu' ); $custom_header_support = array( 'default-image' => get_template_directory_uri() . '/headers/001.jpg', 'width' => apply_filters( 'photologger_header_image_width', 966 ), 'height' => apply_filters( 'photologger_header_image_height', 221 ), 'header-text' => false, ); add_theme_support( 'custom-header', $custom_header_support ); register_default_headers( array( 'bluesky' => array ( 'url' => '%s/headers/001.jpg', 'thumbnail_url' => '%s/headers/thumbnails/001_thumb.jpg', 'description' => __( 'Blue Sky', 'photologger' ) ), 'grass' => array ( 'url' => '%s/headers/002.jpg', 'thumbnail_url' => '%s/headers/thumbnails/002_thumb.jpg', 'description' => __( 'Grass and Sky', 'photologger' ) ), 'wave' => array ( 'url' => '%s/headers/003.jpg', 'thumbnail_url' => '%s/headers/thumbnails/003_thumb.jpg', 'description' => __( 'Wave', 'photologger' ) ), ) ); add_theme_support( 'custom-background', array( 'default-image' => get_stylesheet_directory_uri() . '', 'default-color' => 'FFFFFF' ) ); add_filter('the_title', 'photologger_title'); function photologger_title($title) { if ($title == '') { return 'Untitled'; } else { return $title; } } function photologger_custom_excerpt_length( $length ) { return 15; } add_filter( 'excerpt_length', 'photologger_custom_excerpt_length', 999 ); function photologger_replace_excerpt($content) { return str_replace(' [...]', '...', $content ); } add_filter('the_excerpt', 'photologger_replace_excerpt'); function photologger_widgets_init() { register_sidebar( array( 'name' => __( 'Footer Left Area', 'photologger' ), 'id' => 'footer-left-area', 'description' => __( 'The left footer widget area.', 'photologger' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Right Area', 'photologger' ), 'id' => 'footer-right-area', 'description' => __( 'The right footer widget area.', 'photologger' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } function photologger_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : ?>
  • id="li-comment-">
    says:', 'photologger' ), sprintf( '%s', get_comment_author_link() ) ); ?>
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>