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

', 'after_title' => '

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

', 'after_title' => '

', ) ); } } ////////////////////////////////////////// // SinglePage Comment callback function birdtips_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 birdtips_the_pagenation() { global $wp_rewrite; global $wp_query; global $paged; $birdtips_paginate_base = get_pagenum_link(1); if (strpos($birdtips_paginate_base, '?') || ! $wp_rewrite->using_permalinks()) { $birdtips_paginate_format = ''; $birdtips_paginate_base = add_query_arg('paged', '%#%'); } else { $birdtips_paginate_format = (substr($birdtips_paginate_base, -1 ,1) == '/' ? '' : '/') . user_trailingslashit('page/%#%/', 'paged');; $birdtips_paginate_base .= '%_%'; } echo paginate_links( array( 'base' => $birdtips_paginate_base, 'format' => $birdtips_paginate_format, 'total' => $wp_query->max_num_pages, 'mid_size' => 3, 'current' => ($paged ? $paged : 1), )); } ////////////////////////////////////////////////////// // Search form function birdtips_search_form( $form ) { $birdtips_search_string = ''; if(is_search()){ $birdtips_search_string = get_search_query(); } $birdtips_form = '
    '; return $birdtips_form; } ////////////////////////////////////////// // Topic Path function birdtips_the_pankuzu_category() { if(is_attachment()){ global $post; $birdtips_parent_id = $post->post_parent; $birdtips_parent_post = get_post($birdtips_parent_id); echo '' .$birdtips_parent_post->post_title ,'»'; } else if(is_single()){ foreach((get_the_category()) as $birdtips_cat) { $birdtips_html = '' .$birdtips_cat->cat_name .'»'; echo $birdtips_html; break; } } elseif(is_archive()){ birdtips_the_archivetitle(); } } ////////////////////////////////////////// // Archive PageTitle function birdtips_the_archivetitle() { if(is_category()) { printf(__('Category Archives: %s', 'birdtips'), single_cat_title('', false)); } elseif( is_tag() ) { printf(__('Tag Archives: %s', 'birdtips'), single_tag_title('', false) ); } elseif (is_day()) { printf(__('Daily Archives: %s', 'birdtips'), get_post_time(get_option('date_format'))); } elseif (is_month()) { printf(__('Monthly Archives: %s', 'birdtips'), get_post_time(__('F, Y', 'birdtips'))); } elseif (is_year()) { printf(__('Yearly Archives: %s', 'birdtips'), get_post_time(__('Y', 'birdtips'))); } elseif (is_author()) { printf(__('Author Archives: %s', 'birdtips'), get_the_author_meta('display_name', get_query_var('author')) ); } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { _e('Blog Archives', 'birdtips'); } } ////////////////////////////////////////////////////// // Date function birdtips_the_date() { $birdtips_html = ''; $birdtips_posted = date(__('M. j, Y', 'birdtips'), strtotime(get_the_time("Y-m-d"))); $birdtips_date = explode(' ', $birdtips_posted); foreach($birdtips_date as $birdtips_d){ $birdtips_html .= '' .$birdtips_d .''; } echo $birdtips_html; } ////////////////////////////////////////////////////// // Header Style function birdtips_header_style() { ?>
    >
    __( 'Primary Navigation', 'birdtips' ), ) ); // This theme allows users to set a custom background add_custom_background(); // Add a way for the custom header define( 'HEADER_TEXTCOLOR', 'CCC' ); define( 'HEADER_IMAGE', '%s/images/headers/green.jpg' ); define( 'HEADER_IMAGE_WIDTH', apply_filters( 'my_header_image_width', 1075 ) ); define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'my_header_image_height', 200 ) ); add_custom_image_header( 'birdtips_header_style', 'birdtips_admin_header_style', 'birdtips_admin_header_image' ); register_default_headers( array( 'green' => array( 'url' => '%s/images/headers/green.jpg', 'thumbnail_url' => '%s/images/headers/green-thumbnail.jpg', 'description' => 'Green' ), 'blue' => array( 'url' => '%s/images/headers/blue.jpg', 'thumbnail_url' => '%s/images/headers/blue-thumbnail.jpg', 'description' => 'Blue' ), 'yellow' => array( 'url' => '%s/images/headers/yellow.jpg', 'thumbnail_url' => '%s/images/headers/yellow-thumbnail.jpg', 'description' => 'Yellow' ), 'red' => array( 'url' => '%s/images/headers/red.jpg', 'thumbnail_url' => '%s/images/headers/red-thumbnail.jpg', 'description' => 'Red' ), 'white' => array( 'url' => '%s/images/headers/white.jpg', 'thumbnail_url' => '%s/images/headers/white-thumbnail.jpg', 'description' => 'White' ), 'orange' => array( 'url' => '%s/images/headers/orange.jpg', 'thumbnail_url' => '%s/images/headers/orange-thumbnail.jpg', 'description' => 'Orange' ), 'pink' => array( 'url' => '%s/images/headers/pink.jpg', 'thumbnail_url' => '%s/images/headers/pink-thumbnail.jpg', 'description' => 'Pink' ), 'purple' => array( 'url' => '%s/images/headers/purple.jpg', 'thumbnail_url' => '%s/images/headers/purple-thumbnail.jpg', 'description' => 'Purple' ), ) ); } ////////////////////////////////////////////////////// // Document Title function birdtips_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', 'birdtips' ), max( $paged, $page ) ); return $title; } ////////////////////////////////////////////////////// // Enqueue Acripts function birdtips_scripts() { if ( is_singular() && comments_open() && get_option('thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script('jquery'); wp_enqueue_script( 'birdtips', get_template_directory_uri() .'/js/birdtips.js', 'jquery', '1.03' ); } ////////////////////////////////////////////////////// // Action Hook add_action( 'widgets_init', 'birdtips_widgets_init' ); add_action( 'after_setup_theme', 'birdtips_setup' ); add_action( 'wp_enqueue_scripts', 'birdtips_scripts' ); add_filter( 'get_search_form', 'birdtips_search_form' ); add_filter( 'wp_title', 'birdtips_title' ); add_theme_support( 'automatic-feed-links' );