__( 'Primary Menu', 'brawny' ), ) ); /* * 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', ) ); add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', ) ); add_theme_support( 'custom-background' ); add_theme_support( 'custom-logo' ); /* * Add Additional image sizes * */ add_image_size( 'brawny_home_page_img', 360, 220, true ); add_theme_support( 'post-thumbnails' ); add_image_size( 'brawny_recent-post-img', 380, 350, true); add_image_size( 'brawny_service-img', 100, 100, true); add_image_size( 'brawny-blog-full-width', 1200,350, true ); add_image_size( 'brawny-small-featured-image-width', 450,300, true ); add_image_size( 'brawny-blog-large-width', 800,300, true ); add_image_size( 'brawny-thumbnail-large', 400,200, true ); add_image_size( 'brawny-thumbnail-small', 130,90, true ); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded
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 brawny Options => Home and select Slider Post Category and No.of Sliders.
', 'brawny'), admin_url('customize.php') ), 'thumbnail' => '{{post-featured-image}}', ), 'post-two' => array( 'post_type' => 'post', 'post_title' => __( 'Post Two', 'brawny'), '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 brawny Options => Home and select Slider Post Category and No.of Sliders.
', 'brawny'), admin_url('customize.php') ), 'thumbnail' => '{{post-featured-image}}', ), 'service-one' => array( 'post_type' => 'page', 'post_title' => __( 'Responsive Layout', 'brawny'), 'post_content' => sprintf( __('You haven\'t created any service page yet. Create Page. Go to Customizer and click brawny Options => Home => Service Section #1 and select page from dropdown page list.','brawny'), admin_url('customize.php') ), 'thumbnail' => '{{page-images}}', ), 'service-two' => array( 'post_type' => 'page', 'post_title' => __( 'Awesome Slider', 'brawny'), 'post_content' => sprintf( __('You haven\'t created any service page yet. Create Page. Go to Customizer and click brawny Options => Home => Service Section #1 and select page from dropdown page list.','brawny'), admin_url('customize.php') ), 'thumbnail' => '{{page-images}}', ), 'service-three' => array( 'post_type' => 'page', 'post_title' => __( 'Fully Customizable', 'brawny'), 'post_content' => sprintf( __('You haven\'t created any service page yet. Create Page. Go to Customizer and click brawny Options => Home => Service Section #1 and select page from dropdown page list.','brawny'), 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', 'brawny' ), 'file' => 'images/slider.png', // URL relative to the template directory. ), 'page-images' => array( 'post_title' => __( 'Page Images', 'brawny' ), '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( 'header-top-left' =>'', 'header-top-right' => '123-456-789 info@brawny.com
' /*'slider_cat' => '1', 'service_1' => '{{service-one}}', 'service_2' => '{{service-two}}', 'service_3' => '{{service-three}}', */ ), ); $starter_content = apply_filters( 'brawny_starter_content', $starter_content ); add_theme_support( 'starter-content', $starter_content ); } endif; // brawny_setup add_action( 'after_setup_theme', 'brawny_setup' ); add_action( 'after_setup_theme', 'brawny_customizer_setup',11 ); if( ! function_exists( 'brawny_customizer_setup' ) ) { //echo '', print_r($brawny), ''; function brawny_customizer_setup() { $ver = get_theme_mod( 'version', false ); if ( version_compare( $ver, '1.0.0' , '<=' ) && !empty($ver) ) { if( count( get_theme_mods() ) <= 1 ) { global $options; $brawny = get_option('brawny'); foreach($options['panels']['theme_options']['sections'] as $section) { foreach( $section['fields'] as $name => $settings ) { //echo 'Name: ' . $name . '