'Topbar Navigation', 'nav_footer' => 'Footer Navigation' ) ); // Fallback function for Topbar Navigation if it isn't set function topbar_nav_fallback() { if( is_user_logged_in() ) { echo '
'; } else { echo ''; } } // Fallback function for Footer Navigation if it isn't set function footer_nav_fallback() { if( is_user_logged_in() ) { echo ''; } else { echo ''; } } // This theme uses Featured Images (also known as post thumbnails) add_theme_support( 'post-thumbnails' ); // Adds the image sizes we use add_image_size('featured-slide', '865', '370', true); // 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' ); // custom logo and background support via customizer $logo_args = array( 'height' => 100, 'width' => 760, 'flex-height' => true, 'flex-width' => true ); add_theme_support( 'custom-logo', $logo_args ); $bg_args = array( 'default-color' => 'dddddd', ); add_theme_support( 'custom-background', $bg_args ); } /* ===| 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() . '/assets/css/bootstrap.min.css', "4.0.0-alpha.6" ); wp_enqueue_style ( 'bootstrap-styles' ); wp_register_style( 'best-reloaded-styles', get_template_directory_uri() . '/assets/css/style.min.css', array(), 0.4 ); wp_enqueue_style ( 'best-reloaded-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() ) { // this is the main theme scripts file wp_register_script( 'best-reloaded-scripts', get_template_directory_uri() . '/assets/js/scripts.min.js', array('bootstrap'), 0.9, true ); // bootstrap scripts wp_register_script( 'bootstrap', get_template_directory_uri() . '/assets/js/bootstrap.min.js', array('jquery', 'tether'), '4.0.0-alpha.6', true ); // tether - needed by bootstrap affix wp_register_script( 'tether', get_template_directory_uri() . '/assets/js/tether.min.js', array('jquery'), '1.4.0', true ); // enqueue the main theme scripts file - which will in turn include // bootstrap, tether and jQuery due to dependancy chaing wp_enqueue_script( 'best-reloaded-scripts' ); // only enqueue comment-reply script on single pages 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() { // these are all hex values $text_color_featured = get_theme_mod( 'bestreloaded_text_color_featured_content' ); $link_color_main = get_theme_mod( 'bestreloaded_link_color_main' ); $link_color_hover_main = get_theme_mod( 'bestreloaded_link_hover_color_main' ); $link_color_footer = get_theme_mod( 'bestreloaded_link_color_footer' ); $link_color_hover_footer = get_theme_mod( 'bestreloaded_link_hover_color_footer' ); $link_color_featured = get_theme_mod( 'bestreloaded_link_color_featured_content' ); $link_color_hover_featured = get_theme_mod( 'bestreloaded_link_hover_color_featured_content' ); ?>