__('Widget Area for sidebar', 'birdflat'), 'id' => 'widget-area-sidebar', 'description' => __('Widget Area for sidebar', 'birdflat'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

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

', 'after_title' => '

', ) ); } } ////////////////////////////////////////// // SinglePage Comment callback function birdflat_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 birdflat_the_pagenation() { global $wp_rewrite; global $wp_query; global $paged; $birdflat_paginate_base = get_pagenum_link(1); if (strpos($birdflat_paginate_base, '?') || ! $wp_rewrite->using_permalinks()) { $birdflat_paginate_format = ''; $birdflat_paginate_base = add_query_arg('paged', '%#%'); } else { $birdflat_paginate_format = (substr($birdflat_paginate_base, -1 ,1) == '/' ? '' : '/') . user_trailingslashit('page/%#%/', 'paged');; $birdflat_paginate_base .= '%_%'; } echo paginate_links( array( 'base' => $birdflat_paginate_base, 'format' => $birdflat_paginate_format, 'total' => $wp_query->max_num_pages, 'mid_size' => 3, 'current' => ($paged ? $paged : 1), )); } ////////////////////////////////////////////////////// // Search form function birdflat_search_form( $form ) { $birdflat_search_string = ''; if(is_search()){ $birdflat_search_string = get_search_query(); } $birdflat_form = '
    '; return $birdflat_form; } ////////////////////////////////////////// // Archive PageTitle function birdflat_the_archivetitle() { if(is_category()) { printf(__('Category Archives: %s', 'birdflat'), single_cat_title('', false)); } elseif( is_tag() ) { printf(__('Tag Archives: %s', 'birdflat'), single_tag_title('', false) ); } elseif (is_day()) { printf(__('Daily Archives: %s', 'birdflat'), get_post_time(get_option('date_format'))); } elseif (is_month()) { printf(__('Monthly Archives: %s', 'birdflat'), get_post_time(__('F, Y', 'birdflat'))); } elseif (is_year()) { printf(__('Yearly Archives: %s', 'birdflat'), get_post_time(__('Y', 'birdflat'))); } elseif (is_author()) { printf(__('Author Archives: %s', 'birdflat'), get_the_author_meta('display_name', get_query_var('author')) ); } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { _e('Blog Archives', 'birdflat'); } } ////////////////////////////////////////////////////// // Header Style function birdflat_header_style() { ?>
    >
    'EFEFEF', ) ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'birdflat' ), ) ); // Add support for custom headers. $custom_header_support = array( 'width' => apply_filters( 'birdflat_header_image_width', 930 ), 'height' => apply_filters( 'birdflat_header_image_height', 200 ), 'default-text-color' => 'FFF', 'wp-head-callback' => 'birdflat_header_style', 'admin-head-callback' => 'birdflat_admin_header_style', 'admin-preview-callback' => 'birdflat_admin_header_image' ); add_theme_support( 'custom-header', $custom_header_support ); } ////////////////////////////////////////////////////// // Document Title function birdflat_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', 'birdflat' ), max( $paged, $page ) ); return $title; } ////////////////////////////////////////////////////// // Enqueue Acripts function birdflat_scripts() { if ( is_singular() && comments_open() && get_option('thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script('jquery'); wp_enqueue_script('jquery-masonry'); wp_enqueue_script( 'birdflat', get_template_directory_uri() .'/js/birdflat.js', 'jquery', '1.03' ); wp_enqueue_style( 'birdflat', get_stylesheet_uri() ); } ////////////////////////////////////////////////////// // Excerpt More function birdflat_excerpt_more($post) { return ' ' .__( '»more', 'birdflat' ) .''; } ////////////////////////////////////////////////////// // Theme Customizer function birdflat_customize($wp_customize) { $wp_customize->add_section( 'birdflat_customize', array( 'title'=> __( 'Theme Options', 'birdflat' ), 'priority' => 99, ) ); // Text Color $wp_customize->add_setting( 'birdflat_text_color', array( 'default' => '#544021', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'birdflat_text_color', array( 'label' => __( 'Text Color', 'birdflat' ), 'section'=> 'birdflat_customize', 'settings' => 'birdflat_text_color', ) ) ); // Link Color $wp_customize->add_setting( 'birdflat_link_color', array( 'default' => '#00A', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'birdflat_link_color', array( 'label' => __( 'Link Color', 'birdflat' ), 'section'=> 'birdflat_customize', 'settings' => 'birdflat_link_color', ) ) ); // Header, Footer Background Color $wp_customize->add_setting( 'birdflat_header_color', array( 'default' => '#FC7E74', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'birdflat_header_color', array( 'label' => __( 'Header, Footer Background Color', 'birdflat' ), 'section'=> 'birdflat_customize', 'settings' => 'birdflat_header_color', ) ) ); // Post Footer Background Color $wp_customize->add_setting( 'birdflat_meta_color', array( 'default' => '#9CB2C4', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'birdflat_meta_color', array( 'label' => __( 'Post Footer Background Color', 'birdflat' ), 'section'=> 'birdflat_customize', 'settings' => 'birdflat_meta_color', ) ) ); } ////////////////////////////////////////////////////// // Action Hook add_action( 'widgets_init', 'birdflat_widgets_init' ); add_action( 'after_setup_theme', 'birdflat_setup' ); add_action( 'wp_enqueue_scripts', 'birdflat_scripts' ); add_filter( 'get_search_form', 'birdflat_search_form' ); add_filter( 'wp_title', 'birdflat_title' ); add_filter('excerpt_more', 'birdflat_excerpt_more'); add_theme_support( 'automatic-feed-links' ); add_action('customize_register', 'birdflat_customize');