'Topbar Navigation', 'nav_footer' => 'Footer Navigation' ) ); // Fallback function for Topbar Navigation if it isn't set function topbar_nav_fallback() { echo ''; } // Fallback function for Footer Navigation if it isn't set function footer_nav_fallback() { echo ''; } // This theme uses Featured Images (also known as post thumbnails) add_theme_support( 'post-thumbnails' ); // This feature enables post and comment RSS feed links to head add_theme_support( 'automatic-feed-links' ); // This enables WP 4.1+ title-tag support. Fallback in place for // old versions add_theme_support( 'title-tag' ); } /* ===| end bestreloaded_setup() |================================== */ } /* ===| end !function_exists |================================== */ /* ============================================================= * Enqueue Styles * ============================================================= */ add_action( 'wp_enqueue_scripts', 'pwwp_load_bestreloaded_styles' ); if ( !function_exists( 'pwwp_load_bestreloaded_styles' ) ) { function pwwp_load_bestreloaded_styles() { if ( !is_admin() ) { wp_register_style( 'bootstrap-styles', get_template_directory_uri() . '/css/bootstrap.min.css', 3.3 ); wp_enqueue_style ( 'bootstrap-styles' ); wp_register_style( 'bestreloaded-styles', get_template_directory_uri() . '/style.min.css', array(), 0.6 ); wp_enqueue_style ( 'bestreloaded-styles' ); } } } /* ============================================================= * Enqueue Javascript * ============================================================= */ add_action( 'wp_enqueue_scripts', 'pwwp_load_bestreloaded_scripts' ); if ( !function_exists( 'pwwp_load_bestreloaded_scripts' ) ) { function pwwp_load_bestreloaded_scripts() { if ( !is_admin() ) { wp_register_script( 'modernizr', get_template_directory_uri() . '/js/libs/modernizr-2.5.3.min.js' ); wp_enqueue_script( 'modernizr' ); wp_enqueue_script( 'jquery' ); wp_register_script( 'bestreloaded-scripts', get_template_directory_uri() . '/js/scripts.js', array('jquery', 'bootstrap'), 0.6, true ); wp_enqueue_script( 'bestreloaded-scripts' ); wp_register_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), 3.3, true ); wp_enqueue_script( 'bootstrap' ); if ( is_single() ) wp_enqueue_script( 'comment-reply' ); } } } /* ============================================================= * Echo out color options from admin panel * ============================================================= */ add_action( 'wp_head', 'pwwp_bestreloaded_theme_options' ); if ( !function_exists( 'pwwp_bestreloaded_theme_options' ) ) { function pwwp_bestreloaded_theme_options() { $background = of_get_option( 'bestreloaded_background', 'no entry' ); $link_color_main = of_get_option( 'bestreloaded_link_color_main', 'no entry' ); $link_color_hover_main = of_get_option( 'bestreloaded_link_hover_color_main', 'no entry' ); $link_color_footer = of_get_option( 'bestreloaded_link_color_footer' ); $link_color_hover_footer = of_get_option( 'bestreloaded_link_hover_color_footer' ); $background_featured = of_get_option( 'bestreloaded_background_featured_content' ); $text_color_featured = of_get_option( 'bestreloaded_text_color_featured_content' ); $link_color_featured = of_get_option( 'bestreloaded_link_color_featured_content' ); $link_color_hover_featured = of_get_option( 'bestreloaded_link_hover_color_featured_content' ); ?> set_feed_url("http://search.twitter.com/search.atom?q=from:$username"); $feed->set_cache_location( ABSPATH . WPINC ); $feed->init(); $feed->handle_content_type(); // Output tweet foreach ($feed->get_items(0, 1) as $item): echo '

"' . $item->get_description() . '"

' . '' . $item->get_date('D, M j, Y') . ''; endforeach; } } ?>