section add_theme_support('automatic-feed-links'); // loading jquery reply elements on single pages automatically function bones_queue_js(){ if (!is_admin()){ if ( is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) wp_enqueue_script( 'comment-reply' ); } } add_action('wp_print_scripts', 'bones_queue_js'); // Adding WP 3.0 Functions //menus add_theme_support( 'menus' ); // thumbnails add_theme_support('post-thumbnails'); // This theme styles the visual editor with editor-style.css to match the theme style. add_editor_style(); set_post_thumbnail_size(125, 125, true); /* more sizes are available using the functions.php file */ // custom backgrounds add_custom_background(); // header image define define('NO_HEADER_TEXT', true ); // I prefer no header text, you can change this // define('HEADER_TEXTCOLOR', 'ffffff'); // the text color in the header ( to use uncomment it and comment no header tx define('HEADER_IMAGE', '%s/library/images/headers/header.jpg'); // %s is the template dir uri define('HEADER_IMAGE_WIDTH', 1024); // the width of the logo define('HEADER_IMAGE_HEIGHT', 295); // the height of the logo // gets included in the site header function header_style() { ?> tag in the post content as the external link for that post. An alternative approach could be if the post consists only of a URL, then that will be the URL and the title (post_title) will be the name attached to the anchor for it */ 'image', /* A single image. The first tag in the post could be considered the image. Alternatively, if the post consists only of a URL, that will be the image URL and the title of the post (post_title) will be the title attribute for the image */ 'quote', /* A quotation. Probably will contain a blockquote holding the quote content. Alternatively, the quote may be just the content, with the source/author being the title */ 'status', /*A short status update, similar to a Twitter status update */ 'video', /* A single video. The first tag or object/embed in the post content could be considered the video. Alternatively, if the post consists only of a URL, that will be the video URL. May also contain the video as an attachment to the post, if video support is enabled on the blog (like via a plugin) */ 'audio', /* An audio file. Could be used for Podcasting */ 'chat' /* A chat transcript */ ) ); // Creating the Nav Menus function bones_menus() { if (function_exists( 'register_nav_menus' )) { register_nav_menus( array( 'main_nav' => 'The Main Menu', 'footer_links' => 'Footer Links' ) ); } } add_action( 'init', 'bones_menus' ); function bones_main_nav() { // display the wp3 menu if available wp_nav_menu( array( 'menu' => 'main_nav', /* menu name */ 'theme_location' => 'main_nav', /* where in the theme it's assigned */ 'container_class' => 'menu', /* container class */ 'fallback_cb' => 'bones_main_nav_fallback' /* menu fallback */ ) ); } function bones_footer_links() { // display the wp3 menu if available wp_nav_menu( array( 'menu' => 'footer_links', /* menu name */ 'theme_location' => 'footer_links', /* where in the theme it's assigned */ 'container_class' => 'footer-links', /* container class */ 'fallback_cb' => 'bones_footer_links_fallback' /* menu fallback */ ) ); } function bones_main_nav_fallback() { wp_page_menu( 'show_home=Home&menu_class=menu' ); } function bones_footer_links_fallback() { echo '
'; } // Related Posts Function (call using bones_related_posts(); ) function bones_related_posts() { echo '