';
echo '';
}
}
endif;
//-----------------------Menu function End--------------
function ca_simplex_blog_mytheme_scripts() {
wp_enqueue_style('ca-simplex-blog-style', get_stylesheet_uri());
}
add_action('wp_enqueue_scripts', 'ca_simplex_blog_mytheme_scripts');
//---------------Include Files----------------------
/* Customizer additions. */
require get_template_directory() . '/inc/custom-customizer.php';
require get_template_directory() . '/inc/customizer.php';
//--------------------------Radio Button Customizer Function--------------
/*Radio Button sanitization*/
function ca_simplex_blog_sanitize_choices( $input, $setting ) {
global $wp_customize;
$control = $wp_customize->get_control( $setting->id );
if ( array_key_exists( $input, $control->choices ) ) {
return $input;
} else {
return $setting->default;
}
}
//-------------------sidebar------------------
function ca_simplex_blog_theme_register_sidebars() {
register_sidebar( array(
'name' => __( 'Primary Sidebar', 'ca-simplex-blog' ),
'id' => 'primary-sidebar',
'description' => __( 'Widgets in this area will be shown in the sidebar.', 'ca-simplex-blog' ),
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '
',
'after_title' => '
',
) );
}
add_action( 'widgets_init', 'ca_simplex_blog_theme_register_sidebars' );
//------------------Credit function---------------
define('CA_SIMPLEX_BLOG_URL','https://wpthemes.chitrarchana.com/');
function ca_simplex_blog_credit_link() {
echo esc_html__('Design & Developed by', 'ca-simplex-blog') . " " . esc_html__('Chitrarchana WP Themes', 'ca-simplex-blog') . "";
}
/**
* Fix skip link focus in IE11.
*
* This does not enqueue the script because it is tiny and because it is only for IE11,
* thus it does not warrant having an entire dedicated blocking script being loaded.
*
* @link https://git.io/vWdr2
*/
function ca_simplex_blog_skip_link_focus_fix() {
// The following is minified via `terser --compress --mangle -- js/skip-link-focus-fix.js`.
?>
__( 'Footer 1 Widget Area', 'ca-simplex-blog' ),
'id' => 'footer_widget_area1',
'description' => __( 'Add widgets here to appear in your footer.', 'ca-simplex-blog' ),
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '
',
'after_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Footer 2 Widget Area', 'ca-simplex-blog' ),
'id' => 'footer_widget_area2',
'description' => __( 'Add widgets here to appear in your footer.', 'ca-simplex-blog' ),
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '
',
'after_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Footer 3 Widget Area', 'ca-simplex-blog' ),
'id' => 'footer_widget_area3',
'description' => __( 'Add widgets here to appear in your footer.', 'ca-simplex-blog' ),
'before_widget' => '