'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; ?>
  • " 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), )); } ////////////////////////////////////////////////////// // Show thumbnail function birdsite_the_thumbnail() { global $post; $id = (int) $post->ID; if ( $id == 0 ) { return false; } $html = ''; $thumbnail = ''; $attachments = get_children(array('post_parent' => $id, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order', 'showposts' => '1')); if (is_array($attachments) ){ foreach($attachments as $attachment){ $thumbnail = wp_get_attachment_thumb_url(intval($attachment->ID)); $html .= '' .$post->post_title .''; } } if(!empty($html)){ $html = '' .$html .''; echo $html; } } ////////////////////////////////////////////////////// // Show thumbnail title function birdsite_the_thumbnail_title( $title ) { // $title = mb_strimwidth ($title, 0, 44, "...",utf8); echo $title; } ////////////////////////////////////////////////////// // Show Images for SinglePage function birdsite_the_images() { global $post; $id = (int) $post->ID; if ( $id == 0 ) { return false; } $html = ''; $thumbnail = ''; $attachments = get_children(array('post_parent' => $id, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order')); if (is_array($attachments) ){ foreach($attachments as $attachment){ $image = wp_get_attachment_url(intval($attachment->ID)); $html .= '' .$post->post_title .''; } } echo $html; } ////////////////////////////////////////////////////// // Add FeedIcon function birdsite_setup() { if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'automatic-feed-links' ); } } ////////////////////////////////////////////////////// // Action Hook add_action( 'widgets_init', 'birdsite_widgets_init' ); add_action( 'after_setup_theme', 'birdsite_setup' ); ?>