get_template_directory_uri() . '/images/default-logo.png', // Header text display default 'header-text' => false, // Header image flex width 'flex-width' => true, // Header image width (in pixels) 'width' => 300, // Header image flex height 'flex-height' => true, // Header image height (in pixels) 'height' => 100 ); add_theme_support( 'custom-header', $args_ch ); /* Post thumbnails */ add_theme_support( 'post-thumbnails' ); //set_post_thumbnail_size( 624, 9999 ); /* Make theme available for translation */ load_theme_textdomain( 'tuned', get_template_directory() . '/languages' ); /* Add Primary Navigation Menu */ register_nav_menu( 'primary', __( 'Primary Menu', 'tuned' ) ); /* Add posts and comments RSS feed links to */ add_theme_support( 'automatic-feed-links' ); /* Add support for custom backgrounds. */ $args_cb = array( 'default-color' => 'FFF', //'default-image' => '' ); add_theme_support( 'custom-background', $args_cb ); } add_action( 'after_setup_theme', 'tuned_setup' ); /* Add styles, and/or javascripts to theme -----------------------------------------------------------*/ function tuned_scripts() { // Add styles wp_enqueue_style( 'tuned-ie', get_template_directory_uri() .'/css/ie.css' ); wp_enqueue_style( 'Montserrat', 'http://fonts.googleapis.com/css?family=Montserrat:400,700' ); wp_enqueue_style( 'flexslider', get_template_directory_uri() .'/js/vendor/flexslider/flexslider.css' ); /* * Adds JavaScript to pages with the comment form to support * sites with threaded comments (when in use). */ if ( is_singular() && comments_open() ) wp_enqueue_script( 'comment-reply' ); // Register FlexSlider wp_register_script( 'tuned_flexslider', get_template_directory_uri() .'/js/vendor/flexslider/jquery.flexslider.js', array( 'jquery' ) ); wp_enqueue_script( 'tuned_flexslider' ); // Register Infinite Scroll wp_register_script( 'tuned_infinite_scroll', get_template_directory_uri() .'/js/vendor/infinite-scroll/jquery.infinitescroll.js', array( 'jquery' ) ); wp_enqueue_script( 'tuned_infinite_scroll' ); // Register Masonry wp_register_script( 'tuned_masonry', get_template_directory_uri() .'/js/vendor/masonry/jquery.masonry.js', array( 'jquery' ) ); wp_enqueue_script( 'tuned_masonry' ); // Register Tuned javascript file wp_register_script( 'tuned_scripts', get_template_directory_uri() .'/js/tuned_scripts.js' ); wp_enqueue_script( 'tuned_scripts' ); } add_action( 'wp_enqueue_scripts', 'tuned_scripts' ); /* Register widgets -------------------------------------------------------------*/ function tuned_widgets_init() { register_sidebar( array( 'name' => __( 'Main sidebar', 'tuned' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar(array( 'name' => __('Front Page - Hero Box', 'tuned'), 'description' => __( 'Full width box for Hero on Front Page Template. Drag and drop to here the Hero for Hero Box Widget.', 'tuned' ), 'id' => 'frontend-hero', 'before_widget' => '
', 'after_widget' => '
', )); register_sidebar(array( 'name' => __('Full width Template - Hero Box', 'tuned'), 'description' => __( 'Full width box for Hero on Full width Template. Drag and drop to here the Hero for Hero Box Widget.', 'tuned' ), 'id' => 'full-width-template-hero', 'before_widget' => '', 'after_widget' => '', )); register_sidebar(array( 'name' => __('Front Page - Carousel Box', 'tuned'), 'description' => __( 'Full width box for Carousel on Front Page Template. Drag and drop to here the Category for Carousel Box Widget. If you want to display featured image of the post ONLY in the Carousel, add the following string to your image(rename): _icon(eg. yourthumb_icon.png)', 'tuned' ), 'id' => 'frontend-carousel', 'before_widget' => '', 'after_widget' => '', )); register_sidebar(array( 'name' => __('Full width Template - Carousel Box', 'tuned'), 'description' => __( 'Full width box for Carousel on Full width Template. Drag and drop to here the Category for Carousel Box Widget. If you want to display featured image of the post ONLY in the Carousel, add the following string to your image(rename): _icon(eg. yourthumb_icon.png)', 'tuned' ), 'id' => 'full-width-template-carousel', 'before_widget' => '', 'after_widget' => '', )); register_sidebar(array( 'name' => __('Front Page - 1 Column Grid Box', 'tuned'), 'description' => __( 'Appears on the Front Page. If you want to display featured image of the post ONLY in the grid, add the following string to your image(rename): _icon(eg. yourthumb_icon.png)', 'tuned' ), 'id' => 'frontend-grid-1', 'before_widget' => '', 'after_widget' => '', )); register_sidebar(array( 'name' => __('Front Page - 3 Column Grid Box', 'tuned'), 'description' => __( 'Appears on the Front Page. If you want to display featured image of the post ONLY in the grid, add the following string to your image(rename): _icon(eg. yourthumb_icon.png)', 'tuned' ), 'id' => 'frontend-grid-3', 'before_widget' => '', 'after_widget' => '', )); register_widget('Tuned_Hero_Widget'); register_widget('Tuned_Category_Widget'); register_widget('Tuned_Carousel_Widget'); } add_action( 'widgets_init', 'tuned_widgets_init' ); require_once( 'inc/widgets.php' ); /* Content navigation ----------------------------------------------------------*/ if( !function_exists( 'tuned_content_nav' ) ) { function tuned_content_nav( $nav_id ) { global $wp_query; $nav_id = esc_attr( $nav_id ); if( $wp_query->max_num_pages > 1 ) : ?>

-