get($themeslug.'_rsslink'); if ($my_feed) { echo ''; } else { feed_links(); } } remove_action( 'wp_head', 'feed_links', 2); // Display the links to the general feeds: Post and Comment Feed add_action('wp_head', 'neuro_feed_links'); /** * Basic theme setup. */ function neuro_theme_setup() { global $content_width; if ( ! isset( $content_width ) ) $content_width = 608; //Set content width add_theme_support( 'post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat') ); add_theme_support( 'post-thumbnails' ); add_theme_support('automatic-feed-links'); add_editor_style(); } add_action( 'after_setup_theme', 'neuro_theme_setup' ); /** * Redirect user to theme options page after activation. */ if ( is_admin() && isset($_GET['activated'] ) && $pagenow =="themes.php" ) { wp_redirect( 'themes.php?page=neuro' ); } /** * Add link to theme options in Admin bar. */ function neuro_admin_link() { global $wp_admin_bar; $wp_admin_bar->add_menu( array( 'id' => 'neuro', 'title' => 'Neuro Options', 'href' => admin_url('themes.php?page=neuro') ) ); } add_action( 'admin_bar_menu', 'neuro_admin_link', 113 ); /** * Custom markup for gallery posts in main blog index. */ function neuro_custom_gallery_post_format( $content ) { global $options, $themeslug, $post; $root = get_template_directory_uri(); ob_start();?> get($themeslug.'_post_formats') == '1') : ?>