Home'; //if the page has a parent add title and link of parent if($post->post_parent) { $parent = get_page( $post->post_parent ); if($parent->post_parent) $crumbs .= ' » '.get_the_title($parent->post_parent).''; $crumbs .= ' » '.get_the_title($post->post_parent).''; } // if it's not the front page of the site, but isn't the blog either if((!is_front_page()) && (is_page())) { $crumbs .= ' » '.get_the_title($post->ID); } //if it's the news/blog home page or any type of archive if((is_home() ||(is_archive()))) { $crumbs .= ' » '.get_the_title(get_option(page_for_posts)); } //if it's a single news/blog post if(is_single()) { $crumbs .= ' » '.get_the_title(get_option(page_for_posts)).''; $crumbs .= ' » '.get_the_title($post->ID); } $crumbs .= '

'."\n"; echo $crumbs; } function getOrderLink($param) { if(ISLIVE) return get_permalink(ORDER_ID).'?id='.$param; else return get_permalink(ORDER_ID).'&id='.$param; } function add_first_and_last($output) { $output = preg_replace('/class="menu-item/', 'class="first-menu-item menu-item', $output, 0); $output = substr_replace($output, 'class="last-menu-item menu-item', strripos($output, 'class="menu-item'), strlen('class="menu-item')); return $output; } //add_filter('wp_nav_menu', 'add_first_and_last'); function new_excerpt_more($more) { global $post; return ' [...]'; } add_filter('excerpt_more', 'new_excerpt_more'); register_sidebars(1, array('before_widget'=>'','after_widget'=>'')); register_sidebar(array( 'name' => 'Footer Column 1', 'id' => 'footer1', 'before_title' => '

', 'after_title' => '

')); register_sidebar(array( 'name' => 'Footer Column 2', 'id' => 'footer2', 'before_title' => '

', 'after_title' => '

')); register_sidebar(array( 'name' => 'Footer Column 3', 'id' => 'footer3', 'before_title' => '

', 'after_title' => '

')); register_sidebar(array( 'name' => 'Footer Column 4', 'id' => 'footer4', 'before_title' => '

', 'after_title' => '

')); register_sidebar(array( 'name' => 'Footer Column 5', 'id' => 'footer5', 'before_title' => '

', 'after_title' => '

')); add_theme_support( 'post-thumbnails' ); //register_sidebars(5, array('name'=>'Footer Column %d', 'id'=>'footer%d','before_widget'=>'','after_widget'=>'', 'before_title'=>'

','after_title'=>'

')); register_nav_menus( array( 'footer' => __( 'Footer Navigation'), ) ); ?>