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

', 'after_title' => '

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

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'birdmagazine_widgets_init' ); ////////////////////////////////////////// // SinglePage Comment callback function birdmagazine_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 birdmagazine_the_pagenation() { global $wp_rewrite; global $wp_query; global $paged; $birdmagazine_paginate_base = get_pagenum_link(1); if (strpos($birdmagazine_paginate_base, '?') || ! $wp_rewrite->using_permalinks()) { $birdmagazine_paginate_format = ''; $birdmagazine_paginate_base = add_query_arg('paged', '%#%'); } else { $birdmagazine_paginate_format = (substr($birdmagazine_paginate_base, -1 ,1) == '/' ? '' : '/') . user_trailingslashit('page/%#%/', 'paged');; $birdmagazine_paginate_base .= '%_%'; } echo paginate_links( array( 'base' => $birdmagazine_paginate_base, 'format' => $birdmagazine_paginate_format, 'total' => $wp_query->max_num_pages, 'mid_size' => 3, 'current' => ($paged ? $paged : 1), )); } ////////////////////////////////////////// // Archive PageTitle function birdmagazine_the_archivetitle() { if(is_category()) { printf(__('Category Archives: %s', 'birdmagazine'), single_cat_title('', false)); } elseif( is_tag() ) { printf(__('Tag Archives: %s', 'birdmagazine'), single_tag_title('', false) ); } elseif (is_day()) { printf(__('Daily Archives: %s', 'birdmagazine'), get_post_time(get_option('date_format'))); } elseif (is_month()) { printf(__('Monthly Archives: %s', 'birdmagazine'), get_post_time(__('F, Y', 'birdmagazine'))); } elseif (is_year()) { printf(__('Yearly Archives: %s', 'birdmagazine'), get_post_time(__('Y', 'birdmagazine'))); } elseif (is_author()) { printf(__('Author Archives: %s', 'birdmagazine'), get_the_author_meta('display_name', get_query_var('author')) ); } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { _e('Blog Archives', 'birdmagazine'); } } ////////////////////////////////////////////////////// // Header Style function birdmagazine_header_style() { ?>
    >
    >
    'f9f9ef', ) ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'birdmagazine' ), ) ); // Add support for custom headers. $custom_header_support = array( 'width' => apply_filters( 'birdmagazine_header_image_width', 960 ), 'height' => apply_filters( 'birdmagazine_header_image_height', 200 ), 'default-image' => '%s/images/headers/euphorbia.jpg', 'default-text-color' => 'aa3300', 'wp-head-callback' => 'birdmagazine_header_style', 'admin-head-callback' => 'birdmagazine_admin_header_style', 'admin-preview-callback' => 'birdmagazine_admin_header_image' ); add_theme_support( 'custom-header', $custom_header_support ); register_default_headers( array( 'alocasia' => array( 'url' => '%s/images/headers/alocasia.jpg', 'thumbnail_url' => '%s/images/headers/alocasia-thumbnail.jpg', 'description' => 'Alocasia' ), 'calathea' => array( 'url' => '%s/images/headers/calathea.jpg', 'thumbnail_url' => '%s/images/headers/calathea-thumbnail.jpg', 'description' => 'Calathea' ), 'euphorbia' => array( 'url' => '%s/images/headers/euphorbia.jpg', 'thumbnail_url' => '%s/images/headers/euphorbia-thumbnail.jpg', 'description' => 'Euphorbia' ), 'fatsia' => array( 'url' => '%s/images/headers/fatsia.jpg', 'thumbnail_url' => '%s/images/headers/fatsia-thumbnail.jpg', 'description' => 'Fatsia' ), 'fern' => array( 'url' => '%s/images/headers/fern.jpg', 'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg', 'description' => 'Fern' ), 'mint' => array( 'url' => '%s/images/headers/mint.jpg', 'thumbnail_url' => '%s/images/headers/mint-thumbnail.jpg', 'description' => 'Mint' ), ) ); } add_action( 'after_setup_theme', 'birdmagazine_setup' ); ////////////////////////////////////////////////////// // Document Title function birdmagazine_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', 'birdmagazine' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'birdmagazine_title' ); ////////////////////////////////////////////////////// // Enqueue Acripts function birdmagazine_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( 'birdmagazine', get_template_directory_uri() .'/js/birdmagazine.js', 'jquery', '1.02' ); wp_enqueue_style( 'birdmagazine', get_stylesheet_uri() ); wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css'); } add_action( 'wp_enqueue_scripts', 'birdmagazine_scripts' ); ////////////////////////////////////////////////////// // Excerpt More function birdmagazine_excerpt_more($more) { return ' ' . __( '»more', 'birdmagazine') . ''; } add_filter('excerpt_more', 'birdmagazine_excerpt_more'); ////////////////////////////////////////////////////// // Theme Customizer function birdmagazine_customize($wp_customize) { $wp_customize->add_section( 'birdmagazine_customize', array( 'title'=> __( 'Theme Options', 'birdmagazine' ), 'priority' => 99, ) ); // Text Color $wp_customize->add_setting( 'birdmagazine_text_color', array( 'default' => '#544021', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'birdmagazine_text_color', array( 'label' => __( 'Text Color', 'birdmagazine' ), 'section'=> 'birdmagazine_customize', 'settings' => 'birdmagazine_text_color', ) ) ); // Link Color $wp_customize->add_setting( 'birdmagazine_link_color', array( 'default' => '#06A', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'birdmagazine_link_color', array( 'label' => __( 'Link Color', 'birdmagazine' ), 'section'=> 'birdmagazine_customize', 'settings' => 'birdmagazine_link_color', ) ) ); // Header, Footer Color $wp_customize->add_setting( 'birdmagazine_header_color', array( 'default' => '#5EC1D6', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'birdmagazine_header_color', array( 'label' => __( 'Header, Footer Color', 'birdmagazine' ), 'section'=> 'birdmagazine_customize', 'settings' => 'birdmagazine_header_color', ) ) ); // Navigation Text Color $wp_customize->add_setting( 'birdmagazine_navigation_color', array( 'default' => '#999', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'birdmagazine_navigation_color', array( 'label' => __( 'Navigation Text Color', 'birdmagazine' ), 'section'=> 'birdmagazine_customize', 'settings' => 'birdmagazine_navigation_color', ) ) ); } add_action('customize_register', 'birdmagazine_customize');