'widget-area',
'id' => 'widget-area',
'description' => 'Widget Area for footer',
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
) );
}
}
//////////////////////////////////////////
// SinglePage Comment callback
function birdsite_custom_comments($comment, $args) {
$GLOBALS['comment'] = $comment;
?>
id="li-comment-">
comment_type || 'trackback' == $comment->comment_type):
$url = get_comment_author_url();
$author = get_comment_author();
?>
" conform WORDPRESS
}
//////////////////////////////////////////////////////
// Pagenation
function birdsite_the_pagenation() {
global $wp_rewrite;
global $wp_query;
global $paged;
$paginate_base = get_pagenum_link(1);
if (strpos($paginate_base, '?') || ! $wp_rewrite->using_permalinks()) {
$paginate_format = '';
$paginate_base = add_query_arg('paged', '%#%');
} else {
$paginate_format = (substr($paginate_base, -1 ,1) == '/' ? '' : '/') .
user_trailingslashit('page/%#%/', 'paged');;
$paginate_base .= '%_%';
}
echo paginate_links( array(
'base' => $paginate_base,
'format' => $paginate_format,
'total' => $wp_query->max_num_pages,
'mid_size' => 3,
'current' => ($paged ? $paged : 1),
));
}
//////////////////////////////////////////////////////
// Search form
function birdsite_search_form( $form ) {
$search_string = '';
if(is_search()){
$search_string = get_search_query();
}
$form = '';
return $form;
}
//////////////////////////////////////////////////////
// Show thumbnail
function birdsite_the_thumbnail() {
global $post;
$id = (int) $post->ID;
if ( $id == 0 ) {
return false;
}
$html = get_the_post_thumbnail($id, array(150,150));
if(!empty($html)){
echo '' .$html .'';
}
}
//////////////////////////////////////////////////////
// Header Style
function birdsite_header_style() {
?>
__( 'Primary Navigation', 'birdsite' ),
) );
// This theme allows users to set a custom background
add_custom_background();
// Add a way for the custom header
define( 'HEADER_TEXTCOLOR', '06C' );
define( 'HEADER_IMAGE', '%s/images/headers/buna.jpg' );
define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 610 ) );
define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 200 ) );
add_custom_image_header( 'birdsite_header_style', 'birdsite_admin_header_style' );
register_default_headers( array(
'buna' => array(
'url' => '%s/images/headers/buna.jpg',
'thumbnail_url' => '%s/images/headers/buna-thumbnail.jpg',
'description' => 'Buna'
),
'keyaki' => array(
'url' => '%s/images/headers/keyaki.jpg',
'thumbnail_url' => '%s/images/headers/keyaki-thumbnail.jpg',
'description' => 'Keyaki'
),
'hinoki' => array(
'url' => '%s/images/headers/hinoki.jpg',
'thumbnail_url' => '%s/images/headers/hinoki-thumbnail.jpg',
'description' => 'Hinoki'
),
'sugi' => array(
'url' => '%s/images/headers/sugi.jpg',
'thumbnail_url' => '%s/images/headers/sugi-thumbnail.jpg',
'description' => 'Sugi'
),
'kusu' => array(
'url' => '%s/images/headers/kusu.jpg',
'thumbnail_url' => '%s/images/headers/kusu-thumbnail.jpg',
'description' => 'Kusu'
),
'white' => array(
'url' => '%s/images/headers/white.jpg',
'thumbnail_url' => '%s/images/headers/white-thumbnail.jpg',
'description' => 'White'
)
) );
}
//////////////////////////////////////////////////////
// Action Hook
add_action( 'widgets_init', 'birdsite_widgets_init' );
add_action( 'after_setup_theme', 'birdsite_setup' );
add_filter( 'get_search_form', 'birdsite_search_form' );
?>