__('Widget Area for footer left', 'birdsite'), 'id' => 'widget-area-footer-left', 'description' => __('Widget Area for footer left', 'birdsite'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array ( 'name' => __('Widget Area for footer center', 'birdsite'), 'id' => 'widget-area-footer-center', 'description' => __('Widget Area for footer center', 'birdsite'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array ( 'name' => __('Widget Area for footer right', 'birdsite'), 'id' => 'widget-area-footer-right', 'description' => __('Widget Area for footer right', 'birdsite'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'birdsite_widgets_init' ); ////////////////////////////////////////// // SinglePage Comment callback function birdsite_custom_comments( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; ?>
  • id="comment-"> comment_type || 'trackback' == $comment->comment_type): $birstips_url = get_comment_author_url(); $birstips_author = get_comment_author(); ?>
    :
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    comment_approved == '0' ) : ?>

    " conform WORDPRESS } ////////////////////////////////////////////////////// // Pagenation function birdsite_the_pagenation() { global $wp_rewrite; global $wp_query; global $paged; $birdsite_paginate_base = get_pagenum_link(1); if (strpos($birdsite_paginate_base, '?') || ! $wp_rewrite->using_permalinks()) { $birdsite_paginate_format = ''; $birdsite_paginate_base = add_query_arg('paged', '%#%'); } else { $birdsite_paginate_format = (substr($birdsite_paginate_base, -1 ,1) == '/' ? '' : '/') . user_trailingslashit('page/%#%/', 'paged');; $birdsite_paginate_base .= '%_%'; } echo paginate_links( array( 'base' => $birdsite_paginate_base, 'format' => $birdsite_paginate_format, 'total' => $wp_query->max_num_pages, 'mid_size' => 3, 'current' => ($paged ? $paged : 1), )); } ////////////////////////////////////////////////////// // Header Style function birdsite_header_style() { ?>
    >
    >
    'f9f9ef', ) ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Navigation Menu', 'birdsite' ), ) ); // Add support for custom headers. $custom_header_support = array( // Text color and image (empty to use none). 'default-text-color' => '000', 'default-image' => '', // Set height and width, with a maximum value for the width. 'height' => 300, 'width' => 600, 'max-width' => 600, // Random image rotation off by default. 'random-default' => true, // Callbacks for styling the header and the admin preview. 'wp-head-callback' => 'birdsite_header_style', 'admin-head-callback' => 'birdsite_admin_header_style', 'admin-preview-callback' => 'birdsite_admin_header_image' ); register_default_headers( array( 'birdsite-header-01' => array( 'url' => '%s/images/headers/birdsite-header-01.jpg', 'thumbnail_url' => '%s/images/headers/birdsite-header-01-thumbnail.jpg', 'description' => 'birdsite-header-01' ), 'birdsite-header-02' => array( 'url' => '%s/images/headers/birdsite-header-02.jpg', 'thumbnail_url' => '%s/images/headers/birdsite-header-02-thumbnail.jpg', 'description' => 'birdsite-header-02' ), 'birdsite-header-03' => array( 'url' => '%s/images/headers/birdsite-header-03.jpg', 'thumbnail_url' => '%s/images/headers/birdsite-header-03-thumbnail.jpg', 'description' => 'birdsite-header-03' ), 'birdsite-header-04' => array( 'url' => '%s/images/headers/birdsite-header-04.jpg', 'thumbnail_url' => '%s/images/headers/birdsite-header-04-thumbnail.jpg', 'description' => 'birdsite-header-04' ), 'birdsite-header-05' => array( 'url' => '%s/images/headers/birdsite-header-05.jpg', 'thumbnail_url' => '%s/images/headers/birdsite-header-05-thumbnail.jpg', 'description' => 'birdsite-header-05' ), ) ); add_theme_support( 'custom-header', $custom_header_support ); } add_action( 'after_setup_theme', 'birdsite_setup' ); ////////////////////////////////////////////////////// // Document Title function birdsite_title( $title ) { global $page, $paged; $title .= get_bloginfo( 'name' ); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title .= " | $site_description"; if ( $paged >= 2 || $page >= 2 ) $title .= ' | ' . sprintf( __( 'Page %s', 'birdsite' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'birdsite_title' ); ////////////////////////////////////////////////////// // Enqueue Acripts function birdsite_scripts() { if ( is_singular() && comments_open() && get_option('thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script('jquery'); wp_enqueue_script( 'birdsite', get_template_directory_uri() .'/js/birdsite.js', 'jquery', '1.03' ); wp_enqueue_style( 'birdsite', get_stylesheet_uri() ); wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css'); } add_action( 'wp_enqueue_scripts', 'birdsite_scripts' ); ////////////////////////////////////////////////////// // Theme Customizer function birdsite_customize($wp_customize) { $wp_customize->add_section( 'birdsite_customize', array( 'title'=> __( 'Theme Options', 'birdsite' ), 'priority' => 999, ) ); // Text Color $wp_customize->add_setting( 'birdsite_text_color', array( 'default' => '#555', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'birdsite_text_color', array( 'label' => __( 'Text Color', 'birdsite' ), 'section'=> 'birdsite_customize', 'settings' => 'birdsite_text_color', ) ) ); // Link Color $wp_customize->add_setting( 'birdsite_link_color', array( 'default' => '#06A', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'birdsite_link_color', array( 'label' => __( 'Link Color', 'birdsite' ), 'section'=> 'birdsite_customize', 'settings' => 'birdsite_link_color', ) ) ); // Header, Footer Color $wp_customize->add_setting( 'birdsite_footer_color', array( 'default' => '#000', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'birdsite_footer_color', array( 'label' => __( 'Header, Footer Color', 'birdsite' ), 'section'=> 'birdsite_customize', 'settings' => 'birdsite_footer_color', ) ) ); // Navigation Text Color $wp_customize->add_setting( 'birdsite_navigation_color', array( 'default' => '#555', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'birdsite_navigation_color', array( 'label' => __( 'Navigation Text Color', 'birdsite' ), 'section'=> 'birdsite_customize', 'settings' => 'birdsite_navigation_color', ) ) ); } add_action('customize_register', 'birdsite_customize');