'
',
'after_widget' => '
',
'before_title' => '',
));
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'blumix' ),
) );
/**
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
*
* To override this in a child theme, remove the filter and optionally add
* your own function tied to the wp_page_menu_args filter hook.
*
* @since Twenty Ten 1.0
*/
function blumix_page_menu_args( $args ) {
$args['show_home'] = true;
return $args;
}
add_filter( 'wp_page_menu_args', 'blumix_page_menu_args' );
global $theme_options;
$theme_options = get_option('blumix_options');
require_once(TEMPLATEPATH . '/functions/admin-menus.php');
//Set Content Width
if ( ! isset( $content_width ) )
$content_width = 580;
//Add feed support
add_theme_support('automatic-feed-links');
// This theme allows users to set a custom background
add_custom_background();
// This theme uses post thumbnails
add_theme_support( 'post-thumbnails' );
function blumix_recent_posts()
{
$args=array('offset' => 10, 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => -1, 'caller_get_posts'=> 1);
$my_query = null;
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
post->post_title; if($title === "") $title = $my_query->post->ID; ?>