__( 'Secondary Navigation', 'blogtemplate' ),
) );
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'blogtemplate' ),
) );
function my_page_menu_args($args) {
$args['echo'] = false;
return $args;
}
add_filter('wp_page_menu_args', 'my_page_menu_args');
/*Widget*/
if (function_exists('register_sidebar')) {
register_sidebar(array(
'name'=> 'Sidebar Widgets',
'id' => 'Sidebar Widgets',
'before_widget' => '
',
'before_title' => '',
));
}
add_theme_support( 'post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'audio', 'chat', 'video')); // Add 3.1 post format theme support.
//Enable RSS Feeds
add_theme_support( 'automatic-feed-links' );
//Enable Post Thumbnail
add_theme_support('post-thumbnails');
// Setting the dimentions for the featured image.
set_post_thumbnail_size(150,150,true);
add_image_size('Featured_image',150,150);
add_image_size('Sidebar_image', 100,100);
/**
* Display navigation to next/previous pages when applicable
*/
function blogtemplate_content_nav( $nav_id ) {
global $wp_query;
if ( $wp_query->max_num_pages > 1 ) : ?>
comment_type ) :
case 'pingback' :
case 'trackback' :
?>
', '' ); ?>
id="li-comment-">
Posted on by %7$s', 'blogtemplate' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
sprintf( esc_attr__( 'View all posts by %s', 'blogtemplate' ), get_the_author() ),
esc_html( get_the_author() )
);
}
endif;
?>