get($ne_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() { /** * Initialize neuro Core Framework and Pro Extension. */ require_once ( get_template_directory() . '/core/core-init.php' ); /** * Call additional files required by theme. */ require_once ( get_template_directory() . '/includes/classy-options-init.php' ); // Theme options markup. require_once ( get_template_directory() . '/includes/options-functions.php' ); // Custom functions based on theme options. require_once ( get_template_directory() . '/includes/meta-box.php' ); // Meta options markup. require_once ( get_template_directory() . '/includes/presstrends.php' ); // Opt-in PressTrends code. 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, $ne_themeslug, $post; $ne_root = get_template_directory_uri(); ob_start();?> get($ne_themeslug.'_post_formats') == '1') : ?>