'ffffff', 'text' => '666666', 'link' => '4779AC', 'border' => 'F8F8F2', 'url' => 'BBD1D8' ); function albeo_body_classes( $classes ) { // Remove body classes that conflict with legacy CSS $classes = array_merge( array_diff( $classes, array( 'search', 'attachment' ) ) ); return $classes; } add_filter( 'body_class', 'albeo_body_classes' ); add_theme_support( 'automatic-feed-links' ); // Custom background add_theme_support( 'custom-background' ); add_theme_support( 'print-style' ); function albeo_custom_background() { if ( '' != get_background_color() || '' != get_background_image() ) { ?> '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); function dp_recent_comments($no_comments = 10, $comment_len = 150) { global $wpdb; $request = "SELECT * FROM $wpdb->comments"; $request .= " JOIN $wpdb->posts ON ID = comment_post_ID"; $request .= " WHERE comment_approved = '1' AND post_status = 'publish' AND post_password =''"; $request .= " ORDER BY comment_date DESC LIMIT $no_comments"; $comments = $wpdb->get_results($request); if ($comments) { foreach ($comments as $comment) { ob_start(); ?>
  • : comment_content), 0, $comment_len)); ?>
  • '.__('No comments yet', 'albeo').''; } } function dp_get_author($comment) { $author = ""; if ( empty($comment->comment_author) ) $author = __('Anonymous', 'albeo'); else $author = $comment->comment_author; return $author; } // Widgets!!! wp_register_sidebar_widget( 'albeo-top-tags', __('Albeo Top/Latest/Tags', 'albeo') , 'albeo_selector' ); function albeo_selector() { ?>

    __( 'Primary Navigation' ), ) ); function albeo_page_menu() { // fallback for primary navigation ?>
    id="comment-">
    comment_approved == '0' ) : ?>

    'comment-reply', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    ', '', false ); else $content .= the_title( '

    ', '

    ', false ); } return $content; } add_filter( 'the_content', 'albeo_conditional_title', 0 ); /** * Filters wp_title to print a neat tag based on what is being viewed. * * @since Albeo 1.1 */ function albeo_wp_title( $title, $sep ) { global $page, $paged; if ( is_feed() ) return $title; // Add the blog name $title .= get_bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title .= " $sep $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) $title .= " $sep " . sprintf( __( 'Page %s', 'albeo' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'albeo_wp_title', 10, 2 ); /* * Load Jetpack compatibility file. */ require( get_template_directory() . '/inc/jetpack.php' );