'Sidebar', 'before_title' => '

', 'after_title' => '

', 'before_widget' => '', 'after_widget' => '', )); # Displays a list of pages require_once("theme_licence.php"); add_action('wp_footer','print_footer'); function dp_list_pages() { global $wpdb; $querystr = "SELECT $wpdb->posts.ID, $wpdb->posts.post_title FROM $wpdb->posts WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_type = 'page' ORDER BY $wpdb->posts.post_title ASC"; $pageposts = $wpdb->get_results($querystr, OBJECT); if ($pageposts) { foreach ($pageposts as $post) { ?>
  • post_title; ?>
  • 0) $exclude = '&exclude=' . $exclude; $categories = get_categories('hide_empty=1'.$exclude); $first = true; $count = 0; foreach ($categories as $category) { $count++; if ($count>5) break; // limit to 5 if ($category->parent<1) { if ($first) { $first = false; $f = ' class="f"'; } else { $f = ''; } ?>> name ?> ', $suf='', $excerpt=false) { global $wpdb; $querystr = "SELECT $wpdb->posts.post_title, $wpdb->posts.ID, $wpdb->posts.post_content FROM $wpdb->posts WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_type = 'post' ORDER BY $wpdb->posts.post_date DESC LIMIT $num"; $myposts = $wpdb->get_results($querystr, OBJECT); foreach($myposts as $post) { echo $pre; ?>post_title ?>ID, 'medium', 'alt="'.$post->post_title.'"'); ?>

    post_content, 85); ?>... Read More

    ', $suf='', $excerpt=false) { global $wpdb; $querystr = "SELECT $wpdb->posts.post_title, $wpdb->posts.ID, $wpdb->posts.post_content FROM $wpdb->posts WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_type = 'post' ORDER BY $wpdb->posts.comment_count DESC LIMIT $num"; $myposts = $wpdb->get_results($querystr, OBJECT); foreach($myposts as $post) { echo $pre; ?>post_title ?>ID, 'medium', 'alt="'.$post->post_title.'"'); ?>

    post_content, 85); ?>... Read More

    ', $suf='') { global $wpdb, $post; $querystr = "SELECT $wpdb->comments.comment_ID, $wpdb->comments.comment_post_ID, $wpdb->comments.comment_author, $wpdb->comments.comment_content, $wpdb->comments.comment_author_email FROM $wpdb->comments WHERE $wpdb->comments.comment_approved=1 ORDER BY $wpdb->comments.comment_date DESC LIMIT $num"; $recentcomments = $wpdb->get_results($querystr, OBJECT); foreach ($recentcomments as $rc) { $post = get_post($rc->comment_post_ID); echo $pre; dp_gravatar(52, 'alt="'.$rc->comment_author.'"', $rc->comment_author_email); ?>comment_content, 38); ?> $postid, 'post_type' => 'attachment', 'numberposts' => 1, 'post_mime_type' => 'image',))) foreach($images as $image) { $attachment=wp_get_attachment_image_src($image->ID, $size); ?> />0) { $string = substr($string, 0, $substr); } return $string; } # Displays the comment authors gravatar if available function dp_gravatar($size=50, $attributes='', $author_email='') { global $comment, $settings; if (dp_settings('gravatar')=='enabled') { if (empty($author_email)) { ob_start(); comment_author_email(); $author_email = ob_get_clean(); } $gravatar_url = 'http://www.gravatar.com/avatar/' . md5(strtolower($author_email)) . '?s=' . $size . '&d=' . dp_settings('gravatar_fallback'); ?>/>