'sidebar', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); register_sidebar(array('name'=>'bottom', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); /* loads legacy.comments.php as comment file when using a Wordpress version pre-2.7 */ add_filter( 'comments_template', 'legacy_comments' ); function legacy_comments( $file ) { if ( !function_exists('wp_list_comments') ) $file = TEMPLATEPATH . '/legacy.comments.php'; return $file; } /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Plugin Name: WP-PageNavi Plugin URI: http://www.lesterchan.net/portfolio/programming.php */ function wp_pagenavi($before = '', $after = '', $prelabel = '', $nxtlabel = '', $pages_to_show = 5, $always_show = false) { global $request, $posts_per_page, $wpdb, $paged; if(empty($prelabel)) { $prelabel = '« Previous'; } if(empty($nxtlabel)) { $nxtlabel = 'Next »'; } $half_pages_to_show = round($pages_to_show/2); if (!is_single()) { if(!is_category()) { preg_match('#FROM\s(.*)\sORDER BY#siU', $request, $matches); } else { preg_match('#FROM\s(.*)\sGROUP BY#siU', $request, $matches); } $fromwhere = $matches[1]; $numposts = $wpdb->get_var("SELECT COUNT(DISTINCT ID) FROM $fromwhere"); $max_page = ceil($numposts /$posts_per_page); if(empty($paged)) { $paged = 1; } if($max_page > 1 || $always_show) { echo "$before $after"; } } } /* Plugin Name: Recent Comments Plugin URI: http://mtdewvirus.com/code/wordpress-plugins/ Modified by Frostpress using WP's get_comments */ function dp_recent_comments() { $comment_len = 43; $comments = get_comments('number=6'); if ($comments) { foreach ($comments as $comment) { //ob_start(); ?>
  • comment_author; ?>: comment_content), 0, $comment_len)); ?>...
  • No comments"; } } /* custom comment design */ function sepcomments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
  • id="comment-">
    $depth, 'max_depth' => $args['max_depth']))) ?>
    comment_approved == '0') : ?>

  • id="comment-"> :