tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); add_editor_style( 'css/editor-style.css' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'uniq' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); /* * Enable support for Post Formats. * See http://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', ) ); add_theme_support( 'custom-background' ); add_theme_support( 'custom-logo' ); } // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'uniq_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); /* * Add Additional image sizes * */ add_theme_support( 'post-thumbnails' ); add_image_size( 'uniq-recent-post-img', 220, 220, true); add_image_size( 'uniq_home_page_img', 130, 130, true ); add_image_size( 'uniq-blog-full-width', 1200,350, true ); add_image_size( 'uniq-small-featured-image-width', 450,300, true ); add_image_size( 'uniq-blog-large-width', 800,300, true ); // Define and register starter content to showcase the theme on new sites. $starter_content = array( 'widgets' => array( 'top-left' => array( // Widget ID 'my_text' => array( // Widget $id -> set when creating a Widget Class 'text' , // Widget $instance -> settings array( 'text' => '
You haven\'t created any slider yet. Create a post, set your slider image as Post\'s featured image ( Recommended image size 1280*450 ) ). Go to Customizer and click uniq Options => Home and select Slider Post Category and No.of Sliders.
', 'uniq'), admin_url('customize.php') ), 'thumbnail' => '{{post-featured-image}}', ), 'post-two' => array( 'post_type' => 'post', 'post_title' => __( 'Post Two', 'uniq'), 'post_content' => sprintf( __('You haven\'t created any slider yet. Create a post, set your slider image as Post\'s featured image ( Recommended image size 1280*450 ) ). Go to Customizer and click uniq Options => Home and select Slider Post Category and No.of Sliders.
', 'uniq'), admin_url('customize.php') ), 'thumbnail' => '{{post-featured-image}}', ), 'service-one' => array( 'post_type' => 'page', 'post_title' => __( 'Responsive Layout', 'uniq'), 'post_content' => sprintf( __('You haven\'t created any service page yet. Create Page. Go to Customizer and click uniq Options => Home => Service Section #1 and select page from dropdown page list.','uniq'), admin_url('customize.php') ), 'thumbnail' => '{{page-images}}', ), 'service-two' => array( 'post_type' => 'page', 'post_title' => __( 'Awesome Slider', 'uniq'), 'post_content' => sprintf( __('You haven\'t created any service page yet. Create Page. Go to Customizer and click uniq Options => Home => Service Section #1 and select page from dropdown page list.','uniq'), admin_url('customize.php') ), 'thumbnail' => '{{page-images}}', ), 'service-three' => array( 'post_type' => 'page', 'post_title' => __( 'Fully Customizable', 'uniq'), 'post_content' => sprintf( __('You haven\'t created any service page yet. Create Page. Go to Customizer and click uniq Options => Home => Service Section #1 and select page from dropdown page list.','uniq'), admin_url('customize.php') ), 'thumbnail' => '{{page-images}}', ), */ ), // Create the custom image attachments used as post thumbnails for pages. /*'attachments' => array( 'post-featured-image' => array( 'post_title' => __( 'slider one', 'uniq' ), 'file' => 'images/slider.png', // URL relative to the template directory. ), 'page-images' => array( 'post_title' => __( 'Page Images', 'uniq' ), 'file' => 'images/page.png', // URL relative to the template directory. ), ), */ // Default to a static front page and assign the front and posts pages. 'options' => array( 'show_on_front' => 'page', 'page_on_front' => '{{home}}', 'page_for_posts' => '{{blog}}', ), // Set the front page section theme mods to the IDs of the core-registered pages. /*'theme_mods' => array( 'slider_cat' => '1', 'service_1' => '{{service-one}}', 'service_2' => '{{service-two}}', 'service_3' => '{{service-three}}', ),*/ ); $starter_content = apply_filters( 'uniq_starter_content', $starter_content ); add_theme_support( 'starter-content', $starter_content ); endif; // uniq_setup add_action( 'after_setup_theme', 'uniq_setup' ); /** * Register widget area. * * @link http://codex.wordpress.org/Function_Reference/register_sidebar */ function uniq_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'uniq' ), 'id' => 'sidebar-1', 'description' => '', 'before_widget' => '', 'before_title' => '