'sidebar', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); } // change excerpt function mnk_excerpt_length($length){ return 90; } add_filter('excerpt_length', 'mnk_excerpt_length'); function mnk_excerpt_more($text) { return str_replace('[...]', ' More →', $text); } add_filter('excerpt_more', 'mnk_excerpt_more'); // post thumbnails if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 250, 250, false ); } // register menu if ( function_exists( 'register_nav_menu' ) ) { register_nav_menu( 'nav-menu', 'Main Navigation Menu' ); } // support feed links add_theme_support( 'automatic-feed-links' ); // header image ( logo ) define('HEADER_TEXTCOLOR', '700000'); define('NO_HEADER_TEXT', true ); define('HEADER_IMAGE', '%s/images/default.png'); define('HEADER_IMAGE_WIDTH', 150); define('HEADER_IMAGE_HEIGHT', 50); // gets included in the site header function mnk_header_style() { ?> #headimg { width: ' . HEADER_IMAGE_WIDTH . 'px; height: ' . HEADER_IMAGE_HEIGHT . 'px; background: no-repeat; } '; } add_custom_image_header('mnk_header_style', 'mnk_admin_header_style'); // support custom background add_custom_background(); // remove admin-bar add_filter( 'show_admin_bar', '__return_false' ); // default content width if ( ! isset( $content_width ) ) $content_width = 550; // pagination function mnk_pagination($pages = '', $range = 2) { $showitems = ($range * 2)+1; global $paged; if(empty($paged)) $paged = 1; if($pages == '') { global $wp_query; $pages = $wp_query->max_num_pages; if(!$pages) { $pages = 1; } } if(1 != $pages) { echo "\n"; } } // breadcrumbs function mnk_breadcrumbs() { if (!is_home()) { if (is_category() || is_single()) { echo '

    '; the_category(' » '); if (is_single()) { echo " » "; the_title(); } echo '

    '; } elseif (is_page()) { echo '

    '; the_title(); echo '

    '; } elseif (is_archive()) { if(is_month()) { echo '

    '; the_time('F, Y'); echo '

    '; } elseif(is_day()) { echo '

    '; the_time('l, F jS, Y'); echo '

    '; } elseif(is_year()) { echo '

    '; the_time('Y'); echo '

    '; } } elseif (is_search()) { echo '

    '; the_search_query(); echo '

    '; } } else { echo "

    Home

    "; } } // adds custom link color function mnk_link_color($color = '') { $r = 'body a { color:#' . $color . '; } '; $r .= '#bread h4 a, #bread h4 { color:#' . $color . '; } '; $r .= 'li.pagewrap a:hover { color:#' . $color . '; } '; $r .= 'h1.title { color:#' . $color . '; } '; $r .= '#nav ul li a { color:#' . $color . '; } '; $r .= '#nav ul li ul li a { color:#' . $color . '; } '; $r .= '.comment-body a { color:#' . $color . '; } '; return $r; } ?>