true,
'flex-height' => true,
) );
load_theme_textdomain( 'keseria', get_template_directory() . '/languages' );
if ( ! isset( $content_width ) ) { $content_width = 1014; }
// This section is mainly the features that you are planning on using such as..
add_theme_support('title-tag');
register_nav_menu( 'primary', __( 'Header Menu', "keseria" ) );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'custom-background' );
$custom_header_support = array(
'default-text-color' => '000',
'flex-height' => true,
);
set_post_thumbnail_size( 150, 150, true );
add_image_size( 'keseria-large-feature', 600, 480, true );
add_image_size( 'keseria-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('keseria_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-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-styless', get_template_directory_uri() . '/css/styless.css' );
wp_enqueue_script('keseria-bootstrap-js',get_template_directory_uri() . '/bootstrap-3.3.5-dist/js/bootstrap.min.js');
}
add_action('wp_enqueue_scripts', 'keseia_enqueue_scripts_setup');
}
function keseria_enqueue_scripts() {
wp_enqueue_script( 'keseria_html', get_template_directory_uri().'/js/html5.js' );
}
add_action( 'wp_enqueue_scripts', 'keseria_enqueue_scripts' );
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' => '
',
));
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' => ''
));
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' => ''
));
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' => ''
));
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' => ''
));
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' => ''
));
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' => ''
));
}
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',
'default' => __( 'supportntest@gmail.com', 'keseria' ),
) );
$wp_customize->add_control( 'Email Id', array(
'description' => __( 'Please write email id for topbar.', 'keseria'),
'label' => __( 'Email Id', 'keseria' ),
'priority' => 1,
'section' => 'topbar_contact',
'settings' => 'topbar_email',
'type' => 'text'
) );
$wp_customize->add_setting( 'topbar_phone', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'keseria_sanitize_content',
'defaut' => __( '+1 619 263-1913', 'keseria' ),
) );
$wp_customize->add_control( 'Phone Number', array(
'description' => __( 'Please write Phone Number for topbar.', 'keseria'),
'label' => __( 'Phone Number', 'keseria' ),
'priority' => 1,
'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' => 'esc_url_raw'
) );
$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' => 'esc_url_raw'
) );
$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' => 'esc_url_raw'
) );
$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' => 'esc_url_raw'
) );
$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',
'default' => 'Keseria',
) );
$wp_customize->add_control( 'Text Logo', array(
'description' => __( 'Please write text for your logo.', 'keseria'),
'label' => __( 'Text Logo', 'keseria' ),
'priority' => 1,
'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',
'default' => 'keseria',
) );
$wp_customize->add_control( 'Theme Color', array(
'description' => __( 'Select any one color option for theme', 'keseria'),
'priority' => 1,
'section' => 'theme_color',
'settings' => 'color_code',
'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' ),
) );
// =====================
// = Category Dropdown =
// =====================
$categories = get_categories();
$cats = array();
$i = 0;
foreach($categories as $category){
if($i==0){
$default = $category->slug;
$i++;
}
$cats[$category->slug] = $category->name;
}
$wp_customize->add_setting('_s_f_slide_cat', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'keseria_sanitize_content',
'default' => $default
));
$wp_customize->add_control( 'cat_select_box', array(
'settings' => '_s_f_slide_cat',
'label' => 'Select Category:',
'section' => 'services',
'type' => 'select',
'choices' => $cats,
));
$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',
'default' => __( 'Connect With Us', 'keseria' ),
) );
$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,
'section' => 'call_social',
'settings' => 'callsocial_title',
'type' => 'text'
) ) ;
$wp_customize->add_setting( 'callsocial_content', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'esc_textarea',
'default' => __( 'Lorem Ipsum has been the industry standard dummy text.', 'keseria' ),
) );
$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,
'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',
'default' => __( 'Create Responsive UI Wordpress Themes', 'keseria' ),
) );
$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,
'section' => 'call_section',
'settings' => 'call_content',
'type' => 'textarea'
) ) ;
$wp_customize->add_setting( 'learn_content', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'esc_textarea',
'default' => __( 'Learn More', 'keseria' ),
) );
$wp_customize->add_control( 'Title of Learn Button', array(
'description' => __( 'Please write text for Learn More Button.', 'keseria'),
'label' => __( 'Title of Learn Button', 'keseria' ),
'priority' => 1,
'section' => 'call_section',
'settings' => 'learn_content',
'type' => 'text'
) ) ;
$wp_customize->add_setting( 'learn_href_link', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'esc_textarea',
'default' => __( '#', 'keseria' ),
) );
$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,
'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' => 'esc_url_raw'
) );
$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' => 'esc_url_raw'
) );
$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' => 'esc_url_raw'
) );
$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' => 'esc_url_raw'
) );
$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' => 'esc_url_raw'
) );
$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' => 'esc_url_raw'
) );
$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' => 'esc_url_raw'
) );
$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' => 'esc_url_raw'
) );
$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' => 'esc_url_raw'
) );
$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' => 'esc_url_raw'
) );
$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',
'default' => __( 'Powered by wordpress.org. Developed by team vivacity infotech pvt. ltd.', 'keseria' ),
) );
$wp_customize->add_control( 'Copyright Text', array(
'description' => __( 'Please enter text for your copyright section.', 'keseria'),
'label' => __( 'Copyright Text', 'keseria' ),
'priority' => 1,
'section' => 'footer_section',
'settings' => 'textarea_copyright',
'type' => 'textarea'
) ) ;
$wp_customize->add_setting( 'footer_right', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'esc_textarea',
'default' => __( 'Theme created by Vivacity InfoTech. Powered by WordPress.org', 'keseria' ),
) );
$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,
'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',
'default' => __( 'http://facebook.com', 'keseria' ),
) );
$wp_customize->add_control( 'Facebook', array(
'description' => __( '', 'keseria'),
'label' => __( 'Facebook', 'keseria' ),
'priority' => 1,
'section' => 'social_section',
'settings' => 'text_facebook',
'type' => 'text'
) ) ;
$wp_customize->add_setting( 'text_twitter', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'esc_textarea',
'default' => __( 'https://twitter.com/login?lang=en', 'keseria' ),
) );
$wp_customize->add_control( 'Twitter', array(
'description' => __( '', 'keseria'),
'label' => __( 'Twitter', 'keseria' ),
'priority' => 1,
'section' => 'social_section',
'settings' => 'text_twitter',
'type' => 'text'
) ) ;
$wp_customize->add_setting( 'text_linkedin', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'esc_textarea',
'default' => __( 'https://www.linkedin.com/uas/login', 'keseria' ),
) );
$wp_customize->add_control( 'Linkedin', array(
'description' => __( '', 'keseria'),
'label' => __( 'Linkedin', 'keseria' ),
'priority' => 1,
'section' => 'social_section',
'settings' => 'text_linkedin',
'type' => 'text'
) ) ;
$wp_customize->add_setting( 'text_youtube', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'esc_textarea',
'default' => __( 'https://www.youtube.com/playlist?list=PLE134D877783367C7', 'keseria' ),
) );
$wp_customize->add_control( 'Youtube', array(
'description' => __( '', 'keseria'),
'label' => __( 'Youtube', 'keseria' ),
'priority' => 1,
'section' => 'social_section',
'settings' => 'text_youtube',
'type' => 'text'
) ) ;
$wp_customize->add_setting( 'text_pinterest', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'esc_textarea',
'default' => __( 'https://www.pinterest.com/login/', 'keseria' ),
) );
$wp_customize->add_control( 'Pinterest', array(
'description' => __( '', 'keseria'),
'label' => __( 'Pinterest', 'keseria' ),
'priority' => 1,
'section' => 'social_section',
'settings' => 'text_pinterest',
'type' => 'text'
) ) ;
$wp_customize->add_setting( 'text_skype', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'esc_textarea',
'default' => __( 'https://login.skype.com/login', 'keseria' ),
) );
$wp_customize->add_control( 'Skype', array(
'description' => __( '', 'keseria'),
'label' => __( 'Skype', 'keseria' ),
'priority' => 1,
'section' => 'social_section',
'settings' => 'text_skype',
'type' => 'text'
) ) ;
$wp_customize->add_setting( 'text_tumblr', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'esc_textarea',
'default' => __( 'https://www.tumblr.com/login', 'keseria' ),
) );
$wp_customize->add_control( 'Tumblr', array(
'description' => __( '', 'keseria'),
'label' => __( 'Tumblr', 'keseria' ),
'priority' => 1,
'section' => 'social_section',
'settings' => 'text_tumblr',
'type' => 'text'
) ) ;
$wp_customize->add_setting( 'text_flickr', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'esc_textarea',
'default' => __( 'https://www.flickr.com/', 'keseria' ),
) );
$wp_customize->add_control( 'Flickr', array(
'description' => __( '', 'keseria'),
'label' => __( 'Flickr', 'keseria' ),
'priority' => 1,
'section' => 'social_section',
'settings' => 'text_flickr',
'type' => 'text'
) ) ;
$wp_customize->add_setting( 'text_instagram', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'esc_textarea',
'default' => __( 'https://instagram.com/accounts/login/', 'keseria' ),
) );
$wp_customize->add_control( 'Instagram', array(
'description' => __( '', 'keseria'),
'label' => __( 'Instagram', 'keseria' ),
'priority' => 1,
'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' => 'keseria_filter_nohtml_kses',
'default' => __( '', 'keseria' ),
) );
$wp_customize->add_control( 'Custom Css', array(
'description' => __( 'Please enter custom classes.', 'keseria'),
'label' => __( '', 'keseria' ),
'priority' => 1,
'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 ) );
}
function keseria_filter_nohtml_kses( $data ) {
return addslashes( wp_kses( stripslashes( $data ), 'strip' ) );
}
require get_template_directory() . '/extras.php';
?>