'000', 'flex-height' => true, ); set_post_thumbnail_size( 150, 150, true ); add_image_size( 'large-feature', 600, 480, true ); add_image_size( 'small-feature', 500, 300 ); } add_action('after_setup_theme', 'keseia_theme_setup'); } if (!function_exists('keseia_enqueue_scripts_setup')) { function keseia_enqueue_scripts_setup() { wp_enqueue_script('main', esc_attr(get_template_directory_uri() . '/js/main.js'), array('jquery'),'1.0', true); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_style('keresia-style', get_stylesheet_uri()); wp_enqueue_style( 'keseria-font-awesome', get_template_directory_uri() . '/font-awesome/css/font-awesome.min.css' ); wp_enqueue_style( 'keseria-bootstraps', get_template_directory_uri() . '/bootstrap-3.3.5-dist/css/bootstrap.min.css' ); wp_enqueue_style( 'keseria-style2', get_template_directory_uri() . '/css/style2.css' ); wp_enqueue_style( 'keseria-owl', get_template_directory_uri() . '/css/owl.carousel.css' ); wp_enqueue_style( 'keseria-styless', get_template_directory_uri() . '/css/styless.css' ); wp_enqueue_script('bootstrap-js',get_template_directory_uri() . '/bootstrap-3.3.5-dist/js/bootstrap.min.js'); wp_enqueue_script('flexisel-js',get_template_directory_uri() . '/js/jquery.flexisel.js'); } add_action('wp_enqueue_scripts', 'keseia_enqueue_scripts_setup'); } function keseria_ie_support_header() { echo ''. "\n"; } add_action( 'wp_head', 'keseria_ie_support_header', 1 ); if ( ! function_exists( 'keseria_widgets_init' ) ) : function keseria_widgets_init() { register_sidebar(array( 'name' => __( 'Sidebar Widget Area', "keseria"), 'id' => 'sidebar-widget-area', 'description' => __( 'The sidebar widget area', "keseria"), 'before_widget' => '', 'before_title' => '

', 'after_title' => '


', )); register_sidebar(array( 'name' => __( 'Footer Widget Area 1', "keseria"), 'id' => 'footer-widget-area-1', 'description' => __( 'The footer widget area 1', "keseria"), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => __( 'Footer Widget Area 2', "keseria"), 'id' => 'footer-widget-area-2', 'description' => __( 'The footer widget area 2', "keseria"), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => __( 'Footer Widget Area 3', "keseria"), 'id' => 'footer-widget-area-3', 'description' => __( 'The footer widget area 3', "keseria"), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => __( 'Footer Widget Area 4', "keseria"), 'id' => 'footer-widget-area-4', 'description' => __( 'The footer widget area 4', "keseria"), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => __( 'Footer Widget Area 5', "keseria"), 'id' => 'footer-widget-area-5', 'description' => __( 'The footer widget area 5', "keseria"), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => __( 'Footer Widget Area 6', "keseria"), 'id' => 'footer-widget-area-6', 'description' => __( 'The footer widget area 6', "keseria"), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

' )); } endif; add_action( 'widgets_init', 'keseria_widgets_init' ); add_editor_style(); function keseria_wp_title( $title, $sep ) { global $paged, $page; if ( is_feed() ) { return $title; } $title .= get_bloginfo( 'name', 'display' ); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) { $title = "$title $sep $site_description"; } if ( $paged >= 2 || $page >= 2 ) { $title = "$title $sep " . sprintf( __( 'Page %s', 'keseria' ), max( $paged, $page ) ); } return $title; } add_filter( 'wp_title', 'keseria_wp_title', 10, 2 ); if ( ! function_exists( 'keseria_get_list_posts' ) ) : function keseria_get_list_posts() { global $wp_query; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'post_type' => 'post', 'orderby' => 'date', 'order' => 'DESC', 'paged' => $paged ); $wp_query->query( $args ); return new WP_Query( $args ); } endif; if ( ! function_exists( 'keseria_paginate_page' ) ) : function keseria_paginate_page() { wp_link_pages( array( 'before' => '
', 'link_before' => '','link_after' => '' ) ); } endif; if ( ! function_exists( 'keseria_credits' ) ) : function keseria_credits() { $text = 'Theme created by PWT. Powered by WordPress.org'; echo apply_filters( 'keseria_credits_text', $text) ; } endif; add_action( 'keseria_display_credits', 'keseria_credits' ); function keseria_customize_register( $wp_customize ) { $wp_customize->add_panel( 'keseria_theme_options', array( 'description' => __( 'Basic theme Options', 'keseria' ), 'capability' => 'edit_theme_options', 'priority' => 200, 'title' => __( 'Theme Options', 'keseria' ), ) ); // Header Option $wp_customize->add_section( 'topbar_contact', array( 'panel' => 'keseria_theme_options', 'priority' => 1, 'title' => __( 'Topbar Contact', 'keseria' ), ) ); $wp_customize->add_setting( 'topbar_email', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( 'Email Id', array( 'description' => __( 'Please write email id for topbar.', 'keseria'), 'label' => __( 'Email Id', 'keseria' ), 'priority' => 1, 'default' => __( 'supportntest@gmail.com', 'keseria' ), 'section' => 'topbar_contact', 'settings' => 'topbar_email', 'type' => 'text' ) ); $wp_customize->add_setting( 'topbar_phone', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( 'Phone Number', array( 'description' => __( 'Please write Phone Number for topbar.', 'keseria'), 'label' => __( 'Phone Number', 'keseria' ), 'priority' => 1, 'defaut' => __( '+1 619 263-1913', 'keseria' ), 'section' => 'topbar_contact', 'settings' => 'topbar_phone', 'type' => 'text' ) ); $wp_customize->add_section( 'header_slider', array( 'panel' => 'keseria_theme_options', 'priority' => 1, 'title' => __( 'Slider', 'keseria' ), ) ); $wp_customize->add_setting( 'slide1', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'slide1', array( 'description' => __( 'Please choose an image file for slide 1.', 'keseria'), 'label' => __( 'Slide 1', 'keseria' ), 'priority' => 1, 'section' => 'header_slider', 'settings' => 'slide1', ) ) ); $wp_customize->add_setting( 'slide2', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'slide2', array( 'description' => __( 'Please choose an image file for slide 2.', 'keseria'), 'label' => __( 'Slide 2', 'keseria' ), 'priority' => 1, 'section' => 'header_slider', 'settings' => 'slide2', ) ) ); $wp_customize->add_setting( 'slide3', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'slide3', array( 'description' => __( 'Please choose an image file for slide 3.', 'keseria'), 'label' => __( 'Slide 3', 'keseria' ), 'priority' => 1, 'section' => 'header_slider', 'settings' => 'slide3', ) ) ); $wp_customize->add_section( 'header_section', array( 'panel' => 'keseria_theme_options', 'priority' => 1, 'title' => __( 'Header', 'keseria' ), ) ); $wp_customize->add_setting( 'image_logo', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'image_logo', array( 'description' => __( 'Please choose an image file for logo.', 'keseria'), 'label' => __( 'Image Logo', 'keseria' ), 'priority' => 1, 'section' => 'header_section', 'settings' => 'image_logo', ) ) ); $wp_customize->add_setting( 'alt_logo', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( 'Logo Alt Text', array( 'description' => __( 'Please write alternate text for your logo.', 'keseria'), 'label' => __( 'Logo Alt Text', 'keseria' ), 'priority' => 1, 'section' => 'header_section', 'settings' => 'alt_logo', 'type' => 'text', ) ) ; $wp_customize->add_setting( 'text_logo', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( 'Text Logo', array( 'description' => __( 'Please write text for your logo.', 'keseria'), 'label' => __( 'Text Logo', 'keseria' ), 'priority' => 1, 'default' => 'Keseria', 'section' => 'header_section', 'settings' => 'text_logo', 'type' => 'text', ) ) ; $wp_customize->add_section( 'theme_color', array( 'panel' => 'keseria_theme_options', 'priority' => 1, 'title' => __( 'Theme Color', 'keseria' ), ) ); $wp_customize->add_setting( 'color_code', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( 'Theme Color', array( 'description' => __( 'Select any one color option for theme', 'keseria'), 'priority' => 1, 'section' => 'theme_color', 'settings' => 'color_code', 'default' => 'keseria', 'type' => 'select', 'choices' => array( 'keseria' => __( 'keseria', 'keseria' ), 'blue' => __( 'blue', 'keseria' ), 'red' => __( 'red', 'keseria' ), 'green' => __( 'green', 'keseria' ), ), ) ) ; $wp_customize->add_section( 'services', array( 'panel' => 'keseria_theme_options', 'priority' => 1, 'title' => __( 'Services', 'keseria' ), ) ); $wp_customize->add_setting( 'service_title', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Services Title', array( 'description' => __( 'Please write text for service title.', 'keseria'), 'label' => __( 'Title of Service section', 'keseria' ), 'priority' => 1, 'default' => __( 'Services', 'keseria' ), 'section' => 'services', 'settings' => 'service_title', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'service_content', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Content of Service section', array( 'description' => __( 'Please write text for service content.', 'keseria'), 'label' => __( 'Content of Service section', 'keseria' ), 'priority' => 1, 'default' => __( 'Lorem Ipsum has been the industry standard dummy text.', 'keseria' ), 'section' => 'services', 'settings' => 'service_content', 'type' => 'textarea', ) ) ; $wp_customize->add_setting( 'select_icon1', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( '', array( 'description' => __( 'Select any one option for icon1', 'keseria'), 'priority' => 1, 'section' => 'services', 'settings' => 'select_icon1', 'default' => 'fa-user', 'type' => 'select', 'choices' => array( 'fa-user' => __( 'fa-user', 'keseria' ), 'fa-bell' => __( 'fa-bell', 'keseria' ), 'fa-anchor' => __( 'fa-anchor', 'keseria' ), 'fa-certificate' => __( 'fa-certificate', 'keseria' ), 'fa-laptop' => __( 'fa-laptop', 'keseria' ), 'fa-globe' => __( 'fa-globe', 'keseria' ), 'fa-heart-o' => __( 'fa-heart-o', 'keseria' ), ), ) ) ; $wp_customize->add_setting( 'service_title1', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Services Title 1', array( 'description' => __( 'Please write text for service title 1.', 'keseria'), 'label' => __( 'Title of Service section 1', 'keseria' ), 'priority' => 1, 'default' => __( 'Design', 'keseria' ), 'section' => 'services', 'settings' => 'service_title1', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'service_content1', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Services Content 1', array( 'description' => __( 'Please write content for section 1', 'keseria'), 'label' => __( 'Content of Service section 1', 'keseria' ), 'priority' => 1, 'default' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus laoreet dui lectus, non lacinia augue cursus', 'keseria' ), 'section' => 'services', 'settings' => 'service_content1', 'type' => 'textarea' ) ) ; $wp_customize->add_setting( 'service_read1', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Title of Button', array( 'description' => __( 'Please write text for button 1.', 'keseria'), 'label' => __( 'Title of Button', 'keseria' ), 'priority' => 1, 'default' => __( 'Read More', 'keseria' ), 'section' => 'services', 'settings' => 'service_read1', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'service_readlink1', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Href link of button', array( 'description' => __( 'Please write link for button1', 'keseria'), 'label' => __( 'Href link of button', 'keseria' ), 'priority' => 1, 'default' => __( '#', 'keseria' ), 'section' => 'services', 'settings' => 'service_readlink1', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'select_icon2', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( '', array( 'description' => __( 'Select any one option for icon2', 'keseria'), 'priority' => 1, 'section' => 'services', 'settings' => 'select_icon2', 'default' => 'fa-user', 'type' => 'select', 'choices' => array( 'fa-user' => __( 'fa-user', 'keseria' ), 'fa-bell' => __( 'fa-bell', 'keseria' ), 'fa-anchor' => __( 'fa-anchor', 'keseria' ), 'fa-certificate' => __( 'fa-certificate', 'keseria' ), 'fa-laptop' => __( 'fa-laptop', 'keseria' ), 'fa-globe' => __( 'fa-globe', 'keseria' ), 'fa-heart-o' => __( 'fa-heart-o', 'keseria' ), ), ) ) ; $wp_customize->add_setting( 'service_title2', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Services Title 2', array( 'description' => __( 'Please write text for service title 2.', 'keseria'), 'label' => __( 'Title of Service section 2', 'keseria' ), 'priority' => 1, 'default' => __( 'Design', 'keseria' ), 'section' => 'services', 'settings' => 'service_title2', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'service_content2', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Services Content 2', array( 'description' => __( 'Please write content for section 2', 'keseria'), 'label' => __( 'Content of Service section 2', 'keseria' ), 'priority' => 1, 'default' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus laoreet dui lectus, non lacinia augue cursus', 'keseria' ), 'section' => 'services', 'settings' => 'service_content2', 'type' => 'textarea' ) ) ; $wp_customize->add_setting( 'service_read2', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Title of Button', array( 'description' => __( 'Please write text for button 2.', 'keseria'), 'label' => __( 'Title of Button', 'keseria' ), 'priority' => 1, 'default' => __( 'Read More', 'keseria' ), 'section' => 'services', 'settings' => 'service_read2', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'service_readlink2', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Href link of button', array( 'description' => __( 'Please write link for button2', 'keseria'), 'label' => __( 'Href link of button', 'keseria' ), 'priority' => 1, 'default' => __( '#', 'keseria' ), 'section' => 'services', 'settings' => 'service_readlink2', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'select_icon3', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( '', array( 'description' => __( 'Select any one option for icon3', 'keseria'), 'priority' => 1, 'section' => 'services', 'settings' => 'select_icon3', 'default' => 'fa-user', 'type' => 'select', 'choices' => array( 'fa-user' => __( 'fa-user', 'keseria' ), 'fa-bell' => __( 'fa-bell', 'keseria' ), 'fa-anchor' => __( 'fa-anchor', 'keseria' ), 'fa-certificate' => __( 'fa-certificate', 'keseria' ), 'fa-laptop' => __( 'fa-laptop', 'keseria' ), 'fa-globe' => __( 'fa-globe', 'keseria' ), 'fa-heart-o' => __( 'fa-heart-o', 'keseria' ), ), ) ) ; $wp_customize->add_setting( 'service_title3', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Services Title 3', array( 'description' => __( 'Please write text for service title 3.', 'keseria'), 'label' => __( 'Title of Service section 3', 'keseria' ), 'priority' => 1, 'default' => __( 'Design', 'keseria' ), 'section' => 'services', 'settings' => 'service_title3', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'service_content3', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Services Content 3', array( 'description' => __( 'Please write content for section 3', 'keseria'), 'label' => __( 'Content of Service section 3', 'keseria' ), 'priority' => 1, 'default' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus laoreet dui lectus, non lacinia augue cursus', 'keseria' ), 'section' => 'services', 'settings' => 'service_content3', 'type' => 'textarea' ) ) ; $wp_customize->add_setting( 'service_read3', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Title of Button', array( 'description' => __( 'Please write text for button 3.', 'keseria'), 'label' => __( 'Title of Button', 'keseria' ), 'priority' => 1, 'default' => __( 'Read More', 'keseria' ), 'section' => 'services', 'settings' => 'service_read3', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'service_readlink3', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Href link of button', array( 'description' => __( 'Please write link for button3', 'keseria'), 'label' => __( 'Href link of button', 'keseria' ), 'priority' => 1, 'default' => __( '#', 'keseria' ), 'section' => 'services', 'settings' => 'service_readlink3', 'type' => 'text' ) ) ; $wp_customize->add_section( 'typography', array( 'panel' => 'keseria_theme_options', 'priority' => 1, 'title' => __( 'Typography', 'keseria' ), ) ); $wp_customize->add_setting( 'font_size', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( '', array( 'description' => __( 'Select any one option for font size', 'keseria'), 'priority' => 1, 'section' => 'typography', 'settings' => 'font_size', 'default' => '10px', 'type' => 'select', 'choices' => array( '10px' => __( '10px', 'keseria' ), '12px' => __( '12px', 'keseria' ), '14px' => __( '14px', 'keseria' ), '16px' => __( '16px', 'keseria' ), '18px' => __( '18px', 'keseria' ), '20px' => __( '20px', 'keseria' ), '22px' => __( '22px', 'keseria' ), ), ) ) ; $wp_customize->add_setting( 'font_family', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( '', array( 'description' => __( 'Select any one option for font family', 'keseria'), 'priority' => 1, 'section' => 'typography', 'settings' => 'font_family', 'default' => 'arial', 'type' => 'select', 'choices' => array( 'arial' => __( 'arial', 'keseria' ), 'Monospace' => __( 'Monospace', 'keseria' ), 'Sans-serif' => __( 'Sans-serif', 'keseria' ), 'Serif' => __( 'Serif', 'keseria' ), ), ) ) ; $wp_customize->add_section( 'call_social', array( 'panel' => 'keseria_theme_options', 'priority' => 1, 'title' => __( 'Call To Social', 'keseria' ), ) ); $wp_customize->add_setting( 'callsocial_title', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Title of call to social bar', array( 'description' => __( 'Please write title for call to social bar', 'keseria'), 'label' => __( 'Title of call to social bar', 'keseria' ), 'priority' => 1, 'default' => __( 'Connect With Us', 'keseria' ), 'section' => 'call_social', 'settings' => 'callsocial_title', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'callsocial_content', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'content of call to social bar', array( 'description' => __( 'Please write content for call to social bar', 'keseria'), 'label' => __( 'content of call to social bar', 'keseria' ), 'priority' => 1, 'default' => __( 'Lorem Ipsum has been the industry standard dummy text.', 'keseria' ), 'section' => 'call_social', 'settings' => 'callsocial_content', 'type' => 'textarea' ) ) ; $wp_customize->add_section( 'call_section', array( 'panel' => 'keseria_theme_options', 'priority' => 1, 'title' => __( 'Call To Action', 'keseria' ), ) ); $wp_customize->add_setting( 'call_content', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Call to action content', array( 'description' => __( 'Please write text for call to action section.', 'keseria'), 'label' => __( 'Call to action content', 'keseria' ), 'priority' => 1, 'default' => __( 'Create Responsive UI Wordpress Themes', 'keseria' ), 'section' => 'call_section', 'settings' => 'call_content', 'type' => 'textarea' ) ) ; $wp_customize->add_setting( 'learn_content', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Title of Learn Butto', array( 'description' => __( 'Please write text for Learn More Button.', 'keseria'), 'label' => __( 'Title of Learn Button', 'keseria' ), 'priority' => 1, 'default' => __( 'Learn More', 'keseria' ), 'section' => 'call_section', 'settings' => 'learn_content', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'learn_href_link', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Href Link of Learn Button', array( 'description' => __( 'Please write href link for Learn More Button.', 'keseria'), 'label' => __( 'Href Link of Learn Button', 'keseria' ), 'priority' => 1, 'default' => __( '#', 'keseria' ), 'section' => 'call_section', 'settings' => 'learn_href_link', 'type' => 'text' ) ) ; $wp_customize->add_section( 'logo_section', array( 'panel' => 'keseria_theme_options', 'priority' => 1, 'title' => __( 'Clients Logo', 'keseria' ), ) ); $wp_customize->add_setting( 'logo1', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo1', array( 'description' => __( 'Please choose an image file for your Logo 1(200X100px)', 'keseria'), 'label' => __( 'Logo 1', 'keseria' ), 'priority' => 1, 'section' => 'logo_section', 'settings' => 'logo1', ) ) ); $wp_customize->add_setting( 'logo2', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo2', array( 'description' => __( 'Please choose an image file for your Logo 2(200X100px)', 'keseria'), 'label' => __( 'Logo 2', 'keseria' ), 'priority' => 1, 'section' => 'logo_section', 'settings' => 'logo2', ) ) ); $wp_customize->add_setting( 'logo3', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo3', array( 'description' => __( 'Please choose an image file for your Logo 3(200X100px)', 'keseria'), 'label' => __( 'Logo 3', 'keseria' ), 'priority' => 1, 'section' => 'logo_section', 'settings' => 'logo3', ) ) ); $wp_customize->add_setting( 'logo4', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo4', array( 'description' => __( 'Please choose an image file for your Logo 4(200X100px)', 'keseria'), 'label' => __( 'Logo 4', 'keseria' ), 'priority' => 1, 'section' => 'logo_section', 'settings' => 'logo4', ) ) ); $wp_customize->add_setting( 'logo5', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo5', array( 'description' => __( 'Please choose an image file for your Logo 5(200X100px)', 'keseria'), 'label' => __( 'Logo 5', 'keseria' ), 'priority' => 1, 'section' => 'logo_section', 'settings' => 'logo5', ) ) ); $wp_customize->add_setting( 'logo6', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo6', array( 'description' => __( 'Please choose an image file for your Logo 6(200X100px)', 'keseria'), 'label' => __( 'Logo 6', 'keseria' ), 'priority' => 1, 'section' => 'logo_section', 'settings' => 'logo6', ) ) ); $wp_customize->add_setting( 'logo7', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo7', array( 'description' => __( 'Please choose an image file for your Logo 7(200X100px)', 'keseria'), 'label' => __( 'Logo 7', 'keseria' ), 'priority' => 1, 'section' => 'logo_section', 'settings' => 'logo7', ) ) ); $wp_customize->add_setting( 'logo8', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo8', array( 'description' => __( 'Please choose an image file for your Logo 8(200X100px)', 'keseria'), 'label' => __( 'Logo 8', 'keseria' ), 'priority' => 1, 'section' => 'logo_section', 'settings' => 'logo8', ) ) ); $wp_customize->add_setting( 'logo9', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo9', array( 'description' => __( 'Please choose an image file for your Logo 9(200X100px)', 'keseria'), 'label' => __( 'Logo 9', 'keseria' ), 'priority' => 1, 'section' => 'logo_section', 'settings' => 'logo9', ) ) ); $wp_customize->add_setting( 'logo10', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'keseria_sanitize_content' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo10', array( 'description' => __( 'Please choose an image file for your Logo 10(200X100px)', 'keseria'), 'label' => __( 'Logo 10', 'keseria' ), 'priority' => 1, 'section' => 'logo_section', 'settings' => 'logo10', ) ) ); $wp_customize->add_section( 'footer_section', array( 'panel' => 'keseria_theme_options', 'priority' => 1, 'title' => __( 'Footer', 'keseria' ), ) ); $wp_customize->add_setting( 'textarea_copyright', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Copyright Text', array( 'description' => __( 'Please enter text for your copyright section.', 'keseria'), 'label' => __( 'Copyright Text', 'keseria' ), 'priority' => 1, 'default' => __( 'Powered by wordpress.org. Developed by team vivacity infotech pvt. ltd.', 'keseria' ), 'section' => 'footer_section', 'settings' => 'textarea_copyright', 'type' => 'textarea' ) ) ; $wp_customize->add_setting( 'footer_right', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Call to action content', array( 'description' => __( 'Please enter text for your Theme content section.', 'keseria'), 'label' => __( 'Theme Text', 'keseria' ), 'priority' => 1, 'default' => __( 'Theme created by Vivacity InfoTech. Powered by WordPress.org', 'keseria' ), 'section' => 'footer_section', 'settings' => 'footer_right', 'type' => 'textarea' ) ) ; $wp_customize->add_section( 'social_section', array( 'panel' => 'keseria_theme_options', 'priority' => 1, 'title' => __( 'Social Icons', 'keseria' ), ) ); $wp_customize->add_setting( 'text_facebook', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Facebook', array( 'description' => __( '', 'keseria'), 'label' => __( 'Facebook', 'keseria' ), 'priority' => 1, 'default' => __( 'http://facebook.com', 'keseria' ), 'section' => 'social_section', 'settings' => 'text_facebook', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'text_twitter', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Twitter', array( 'description' => __( '', 'keseria'), 'label' => __( 'Twitter', 'keseria' ), 'priority' => 1, 'default' => __( 'https://twitter.com/login?lang=en', 'keseria' ), 'section' => 'social_section', 'settings' => 'text_twitter', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'text_linkedin', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Linkedin', array( 'description' => __( '', 'keseria'), 'label' => __( 'Linkedin', 'keseria' ), 'priority' => 1, 'default' => __( 'https://www.linkedin.com/uas/login', 'keseria' ), 'section' => 'social_section', 'settings' => 'text_linkedin', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'text_youtube', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Youtube', array( 'description' => __( '', 'keseria'), 'label' => __( 'Youtube', 'keseria' ), 'priority' => 1, 'default' => __( 'https://www.youtube.com/playlist?list=PLE134D877783367C7', 'keseria' ), 'section' => 'social_section', 'settings' => 'text_youtube', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'text_pinterest', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Pinterest', array( 'description' => __( '', 'keseria'), 'label' => __( 'Pinterest', 'keseria' ), 'priority' => 1, 'default' => __( 'https://www.pinterest.com/login/', 'keseria' ), 'section' => 'social_section', 'settings' => 'text_pinterest', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'text_skype', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Skype', array( 'description' => __( '', 'keseria'), 'label' => __( 'Skype', 'keseria' ), 'priority' => 1, 'default' => __( 'https://login.skype.com/login', 'keseria' ), 'section' => 'social_section', 'settings' => 'text_skype', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'text_tumblr', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Tumblr', array( 'description' => __( '', 'keseria'), 'label' => __( 'Tumblr', 'keseria' ), 'priority' => 1, 'default' => __( 'https://www.tumblr.com/login', 'keseria' ), 'section' => 'social_section', 'settings' => 'text_tumblr', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'text_flickr', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Flickr', array( 'description' => __( '', 'keseria'), 'label' => __( 'Flickr', 'keseria' ), 'priority' => 1, 'default' => __( 'https://www.flickr.com/', 'keseria' ), 'section' => 'social_section', 'settings' => 'text_flickr', 'type' => 'text' ) ) ; $wp_customize->add_setting( 'text_instagram', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Instagram', array( 'description' => __( '', 'keseria'), 'label' => __( 'Instagram', 'keseria' ), 'priority' => 1, 'default' => __( 'https://instagram.com/accounts/login/', 'keseria' ), 'section' => 'social_section', 'settings' => 'text_instagram', 'type' => 'text' ) ) ; $wp_customize->add_section( 'css_section', array( 'panel' => 'keseria_theme_options', 'priority' => 1, 'title' => __( 'Custom Css', 'keseria' ), ) ); $wp_customize->add_setting( 'textarea_css', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( 'Custom Css', array( 'description' => __( 'Please enter custom classes.', 'keseria'), 'label' => __( '', 'keseria' ), 'priority' => 1, 'default' => __( '', 'keseria' ), 'section' => 'css_section', 'settings' => 'textarea_css', 'type' => 'textarea' ) ) ; } add_action( 'customize_register', 'keseria_customize_register' ); function keseria_sanitize_content( $input ) { return strip_tags( stripslashes( $input ) ); } require get_template_directory() . '/extras.php'; ?>