> 50, 'width' => 50, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), ) ); // Post Format theme support add_theme_support('post-formats', array('aside', 'gallery', 'link', 'quote', 'image', 'video')); //support for html5 add_theme_support('html5', array('search-form')); // WooCommerSupport add_action( 'after_setup_theme', 'woocommerce_support' ); function woocommerce_support() { add_theme_support( 'woocommerce' ); } //adding walker class require_once dirname( __FILE__ ) .'/inc/walker.php'; // Sidebar and Widget Support Function function softacle_registration_for_sidebar(){ register_sidebar( array( 'name' => 'Banner Section', 'id' => 'sidebar-1' ) ); register_sidebar( array( 'name' => 'Services Section', 'id' => 'sidebar-2' ) ); register_sidebar( array( 'name' => 'Package Section', 'id' => 'sidebar-9' ) ); register_sidebar( array( 'name' => 'Popular Destination Section', 'id' => 'sidebar-3' ) ); register_sidebar( array( 'name' => 'News letter Section', 'id' => 'sidebar-4' ) ); register_sidebar( array( 'name' => 'Discount Section', 'id' => 'sidebar-5' ) ); register_sidebar( array( 'name' => 'Articles Section', 'id' => 'sidebar-6' ) ); register_sidebar( array( 'name' => 'Counter Section', 'id' => 'sidebar-7' ) ); register_sidebar( array( 'name' => 'Footer Section', 'id' => 'footer' ) ); } add_action( 'widgets_init', 'softacle_registration_for_sidebar' ); /* /////////////// CUSTOMIZER ///////////////// */ function softacle_portfolio_add_sections($wp_customize){ class Category_Dropdown_Custom_Control extends WP_Customize_Control { private $cats = false; public function __construct($manager, $id, $args = array(), $options = array()) { $this->cats = get_categories($options); parent::__construct( $manager, $id, $args ); } /** * Render the content of the category dropdown * * @return HTML */ public function render_content() { if(!empty($this->cats)) { ?>
" style="width:200px; margin-bottom:20px;">

Click here to read theme documentation


Theme Documentation
add_section( 'documentation-section' , array( 'title' => 'Theme Documentation', 'priority' => 10, ) ); $wp_customize->add_setting('documentation-section-setting', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control(new DocumentationControl( $wp_customize, 'documentation-section-control', array( 'section' => 'documentation-section', 'settings' => 'documentation-section-setting', ) ) ); /* Create panel */ $wp_customize->add_panel( 'front_page_section_panel', array( 'title' => 'Front Page Section', 'description' => '', 'priority' => 100, ) ); /* Create Newsletter Section */ $wp_customize->add_section('newsletter-section', array( 'title' => 'Newsletter Section', )); $wp_customize->add_setting('newsletter-section-setting', array( 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'newsletter-section-control', array( 'label' => 'Enter contact form 7', 'section' => 'newsletter-section', 'settings' => 'newsletter-section-setting', 'description' => 'Enter contact form 7 shortcode to display the form', ))); // Color Section $wp_customize->add_section( 'color-section-1' , array( 'title' => 'Color Managment', 'priority' => 80, ) ); $wp_customize->add_setting('color-section-1-setting-1', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color-section-1-setting-1-control', array( 'label' => 'Body Background Color', 'section' => 'color-section-1', 'settings' => 'color-section-1-setting-1', ) ) ); $wp_customize->add_setting('color-section-1-setting-2', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color-section-1-setting-2-control', array( 'label' => 'Primary Color(H1,H2,H3)', 'section' => 'color-section-1', 'settings' => 'color-section-1-setting-2', ) ) ); $wp_customize->add_setting('color-section-1-setting-3', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color-section-1-setting-3-control', array( 'label' => 'Secondary Color(H4,H5,H6)', 'section' => 'color-section-1', 'settings' => 'color-section-1-setting-3', ) ) ); $wp_customize->add_setting('color-section-1-setting-4', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color-section-1-setting-4-control', array( 'label' => 'Paragraph Color', 'section' => 'color-section-1', 'settings' => 'color-section-1-setting-4', ) ) ); $wp_customize->add_setting('color-section-1-setting-5', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color-section-1-setting-5-control', array( 'label' => 'Link Color', 'section' => 'color-section-1', 'settings' => 'color-section-1-setting-5', ) ) ); $wp_customize->add_setting('color-section-1-setting-6', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color-section-1-setting-6-control', array( 'label' => 'Link Hover color', 'section' => 'color-section-1', 'settings' => 'color-section-1-setting-6', ) ) ); $wp_customize->add_setting('color-section-1-setting-7', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color-section-1-setting-7-control', array( 'label' => 'Button Background Color', 'section' => 'color-section-1', 'settings' => 'color-section-1-setting-7', ) ) ); $wp_customize->add_setting('color-section-1-setting-8', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color-section-1-setting-8-control', array( 'label' => 'Button Text Color', 'section' => 'color-section-1', 'settings' => 'color-section-1-setting-8', ) ) ); $wp_customize->add_setting('color-section-1-setting-9', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color-section-1-setting-9-control', array( 'label' => 'Footer Background Color', 'section' => 'color-section-1', 'settings' => 'color-section-1-setting-9', ) ) ); $wp_customize->add_setting('color-section-1-setting-10', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color-section-1-setting-10-control', array( 'label' => 'Footer Text Color', 'section' => 'color-section-1', 'settings' => 'color-section-1-setting-10', ) ) ); $wp_customize->add_setting('color-section-1-setting-11', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color-section-1-setting-11-control', array( 'label' => 'Icon Color', 'section' => 'color-section-1', 'settings' => 'color-section-1-setting-11', ) ) ); //Typography section $wp_customize->add_section('typography-section', array( 'title' => 'Typography Section', 'priority' => 90, )); $wp_customize->add_setting('typography-font-size-setting', array( 'default' => '14', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'typography-font-size-control', array( 'label' => 'Font Size', 'type' => 'text', 'description' => 'Specify font size in pixels (without px suffix), eg: 14', 'section' => 'typography-section', 'settings' => 'typography-font-size-setting', ) ) ); $wp_customize->add_setting('typography-line-height-setting', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'typography-line-height-control', array( 'label' => 'Line Height', 'type' => 'text', 'description' => 'Specify line height in pixels (without px suffix), eg: 25', 'section' => 'typography-section', 'settings' => 'typography-line-height-setting', ) ) ); $wp_customize->add_setting('typography-font-family-setting', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'typography-font-family-control', array( 'label' => 'Font Family', 'type' => 'text', 'section' => 'typography-section', 'settings' => 'typography-font-family-setting', ) ) ); $wp_customize->add_setting('typography-text-align-setting', array( 'default' => '', 'sanitize_callback' => 'ys_sanitize_category' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'typography-text-align-control', array( 'label' => 'Font Family', 'type' => 'radio', 'section' => 'typography-section', 'choices' => array('left', 'right', 'center', 'justify'), 'settings' => 'typography-text-align-setting', ) ) ); } add_action('customize_register', 'softacle_portfolio_add_sections'); function add_custom_user_style(){ ?>