__( 'Primary Menu', 'businessweb-plus' ), ) ); add_theme_support( 'custom-background', array( 'default-color' => 'ffffff' ) ); add_theme_support( 'custom-logo', array( 'height' => 80, 'width' => 150, 'flex-height' => true, ) ); add_editor_style( 'editor-style.css' ); } endif; // businessweb_plus_setup add_action( 'after_setup_theme', 'businessweb_plus_setup' ); function businessweb_plus_widgets_init() { register_sidebar( array( 'name' => __( 'Blog Sidebar', 'businessweb-plus' ), 'description' => __( 'Appears on blog page sidebar', 'businessweb-plus' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Header Info', 'businessweb-plus' ), 'description' => __( 'Appears on header of site', 'businessweb-plus' ), 'id' => 'headerinfo-widget', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Widget 1', 'businessweb-plus' ), 'description' => __( 'Appears on footer', 'businessweb-plus' ), 'id' => 'footer-1', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __( 'Footer Widget 2', 'businessweb-plus' ), 'description' => __( 'Appears on footer', 'businessweb-plus' ), 'id' => 'footer-2', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __( 'Footer Widget 3', 'businessweb-plus' ), 'description' => __( 'Appears on footer', 'businessweb-plus' ), 'id' => 'footer-3', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __( 'Footer Widget 4', 'businessweb-plus' ), 'description' => __( 'Appears on footer', 'businessweb-plus' ), 'id' => 'footer-4', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', ) ); } add_action( 'widgets_init', 'businessweb_plus_widgets_init' ); function businessweb_plus_font_url(){ $font_url = ''; /* Translators: If there are any character that are not * supported by Roboto Condensed, trsnalate this to off, do not * translate into your own language. */ $roboto_condensed = _x('on','roboto_condensed:on or off','businessweb-plus'); if('off' !== $roboto_condensed ){ $font_family = array(); if('off' !== $roboto_condensed){ $font_family[] = 'Roboto Condensed:300,400,600,700,800,900'; } $query_args = array( 'family' => urlencode(implode('|',$font_family)), ); $font_url = add_query_arg($query_args,'//fonts.googleapis.com/css'); } return $font_url; } function businessweb_plus_scripts() { wp_enqueue_style('businessweb-plus-font', businessweb_plus_font_url(), array()); wp_enqueue_style( 'businessweb-plus-basic-style', get_stylesheet_uri() ); wp_enqueue_style( 'nivo-slider', get_template_directory_uri()."/css/nivo-slider.css" ); wp_enqueue_style( 'businessweb-plus-responsive', get_template_directory_uri()."/css/responsive.css" ); wp_enqueue_style( 'businessweb-plus-default', get_template_directory_uri()."/css/default.css" ); wp_enqueue_script( 'jquery-nivo-slider', get_template_directory_uri() . '/js/jquery.nivo.slider.js', array('jquery') ); wp_enqueue_script( 'businessweb-plus-custom', get_template_directory_uri() . '/js/custom.js' ); wp_enqueue_style( 'animation', get_template_directory_uri()."/css/animation.css" ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'businessweb_plus_scripts' ); /** * Enqueues scripts and styles. * * @since Businessweb Plus */ function businessweb_plus_ie_stylesheet(){ // Load the Internet Explorer specific stylesheet. wp_enqueue_style('businessweb-plus-ie', get_template_directory_uri().'/css/ie.css', array( 'businessweb-plus-style' ), '20160928' ); wp_style_add_data('businessweb-plus-ie','conditional','lt IE 10'); // Load the Internet Explorer 8 specific stylesheet. wp_enqueue_style( 'businessweb-plus-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'businessweb-plus-style' ), '20160928' ); wp_style_add_data( 'businessweb-plus-ie8', 'conditional', 'lt IE 9' ); // Load the Internet Explorer 7 specific stylesheet. wp_enqueue_style( 'businessweb-plus-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'businessweb-plus-style' ), '20160928' ); wp_style_add_data( 'businessweb-plus-ie7', 'conditional', 'lt IE 8' ); } add_action('wp_enqueue_scripts','businessweb_plus_ie_stylesheet'); define('businessweb_plus_protheme_url','https://gracethemes.com/themes/bizweb-creative-wordpress-themes/','businessweb-plus'); define('businessweb_plus_theme_doc','https://gracethemes.com/documentation/businessweb/#homepage-lite','businessweb-plus'); define('businessweb_plus_live_demo','https://gracethemes.com/demo/business-web/','businessweb-plus'); if ( ! function_exists( 'businessweb_plus_the_custom_logo' ) ) : /** * Displays the optional custom logo. * * Does nothing if the custom logo is not available. * * @since Businessweb Plus */ function businessweb_plus_the_custom_logo() { if ( function_exists( 'the_custom_logo' ) ) { the_custom_logo(); } } endif; /** * Customize Pro included. */ require_once get_template_directory() . '/customize-pro/example-1/class-customize.php'; /** * Custom template for about theme. */ require get_template_directory() . '/inc/about-themes.php'; /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/extras.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php'; /** * 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 businessweb_plus_skip_link_focus_fix() { // The following is minified via `terser --compress --mangle -- js/skip-link-focus-fix.js`. ?>