"; endif; } function panels_menu() { register_nav_menus( array( 'header-menu' => __( 'Header Menu', 'panels' ), 'left-footer-menu' => __( 'Left Footer Menu', 'panels' ), 'right-footer-menu' => __( 'Right Footer Menu', 'panels' ) ) ); } add_action( 'init', 'panels_menu' ); $custom_header_support = array( 'default-image' => get_template_directory_uri() . '/headers/001.jpg', 'width' => apply_filters( 'panels_header_image_width', 770 ), 'height' => apply_filters( 'panels_header_image_height', 180 ), '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' => __( 'Rainbow Lake', 'panels' ) ), 'grass' => array ( 'url' => '%s/headers/002.jpg', 'thumbnail_url' => '%s/headers/thumbnails/002_thumb.jpg', 'description' => __( 'Green Fields', 'panels' ) ), 'wave' => array ( 'url' => '%s/headers/003.jpg', 'thumbnail_url' => '%s/headers/thumbnails/003_thumb.jpg', 'description' => __( 'Haze', 'panels' ) ), ) ); add_theme_support( 'custom-background', array( 'default-image' => get_stylesheet_directory_uri() . '/img/bg.jpg', 'default-color' => 'FFFFFF' ) ); add_filter('the_title', 'panels_title'); function panels_title($title) { if ($title == '') { return 'Untitled Post'; } else { return $title; } } function panels_custom_excerpt_length( $length ) { return 50; } add_filter( 'excerpt_length', 'panels_custom_excerpt_length', 999 ); function panels_replace_excerpt($content) { return str_replace(' [...]', '...', $content ); } add_filter('the_excerpt', 'panels_replace_excerpt'); function panels_widgets_init() { register_sidebar( array( 'name' => __( 'Footer Left', 'panels' ), 'id' => 'footer-left', 'description' => __( 'The left footer widget area.', 'panels' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

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

', 'after_title' => '

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