' . __('Home') . '' . "\n";
echo $home;
// Then the rest of the page tabs
wp_list_pages('depth=1&title_li=&sort_column=post_title');
}
/**
* Displays the post CSS class.
*
* @access public
* @return void
*/
function nv_post_class() {
global $post;
$class = array('post');
foreach ( (array) get_the_category() as $cat ) {
if ( false !== strpos('aside', $cat->category_nicename) || false !== strpos('asides', $cat->category_nicename) ) {
$class[] = 'aside';
break;
}
}
echo ' class="' . implode(' ', $class) . '"';
}
/**
* Displays the comment CSS class.
*
* @access public
* @return void
*/
function nv_comment_class() {
global $comment, $post, $count;
$class = array();
if ( 'trackback' != $comment->comment_type )
$class[] = 'comment';
else
$class[] = 'trackback';
// Registered user
if ( $comment->user_id ) {
$class[] = 'byuser';
// Post author
if ( $comment->user_id == $post->post_author )
$class[] = 'bypostauthor';
}
// Alternate comments
if ( $count % 2 )
$class[] = 'alt';
echo ' class="' . implode(' ', $class) . '"';
}
/**
* Displays the search form.
*
* @param string $form_id The CSS identifier for this form.
* @param string $text_id The CSS identifier for the text box.
* @param string $submit_id The CSS identifier for the button.
* @access public
* @return void
*/
function nv_searchform($form_id = 'searchform', $text_id = 's', $submit_id = 'searchsubmit') {
$action = attribute_escape(get_bloginfo('home'));
$form_id = attribute_escape($form_id);
$text_id = attribute_escape($text_id);
$submit_id = attribute_escape($submit_id);
?>