'ffffff', ) ); /** * Register Navigation Menu */ register_nav_menus( array ( 'primary' => esc_html__( 'Primary', 'biscore' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); /** * Add support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ add_theme_support( 'custom-logo', array( 'height' => 55, 'width' => 220, 'flex-width' => true, 'flex-height' => true, ) ); // Add support for responsive embedded content. add_theme_support( 'responsive-embeds' ); } endif; add_action( 'after_setup_theme', 'biscore_setup' ); /************************************************************************************************************************* * Enqueue all CSS and JS ************************************************************************************************************************/ if ( ! function_exists( 'biscore_enqueue_scripts' ) ) : function biscore_enqueue_scripts() { $biscore_primary_color = esc_attr( get_theme_mod( 'biscore_primary_color_setting', '#43c6ac' ) ); $biscore_secondary_color = esc_attr( get_theme_mod( 'biscore_secondary_color_setting', '#43c6ac' ) ); $biscore_intro_bg_color = esc_attr( get_theme_mod( 'biscore_introduction_background_color_setting', '#fff' ) ); $biscore_services_bg_color = esc_attr( get_theme_mod( 'biscore_services_background_color_setting', '#fff' ) ); $biscore_member_bg_color = esc_attr( get_theme_mod( 'biscore_team_member_background_color_setting', '#fff' ) ); $biscore_feature_bg_color = esc_attr( get_theme_mod( 'biscore_feature_background_color_setting', '#fff' ) ); $biscore_custom_css = " h4, .long-blurb .long-blurb-title, .main-nav li a:hover, a, a:hover, .post-details a:hover, .next-post-wrap a:hover, .previous-post-wrap a:hover, .next-post-wrap::before, .previous-post-wrap::before, .skip-link, .slider-button-1, .slider-button-2:hover { color: {$biscore_primary_color}; } .sticky { border: 1px solid {$biscore_primary_color}; } .ct-footer a:hover, .ct-footer-credits a { color: {$biscore_secondary_color}; } .underline, .ct-color-mask, .top-bar, .read-more, .site-header .main-nav .menu-button a { background-color: {$biscore_primary_color}; } .read-more { border: 2px solid {$biscore_primary_color}; } .menu-item::after, .excerpt-author::after, .excerpt-category::after, .single .post-date::after, .edit-link::before, .post-loop .post-date span::after, .ct-footer { border-top: 0.3rem solid {$biscore_primary_color}; } input:hover, input[type=\"text\"]:hover, input[type=\"email\"]:hover, input[type=\"url\"]:hover, textarea:hover, .form-submit #submit, .post-wrap { border-bottom-color: {$biscore_primary_color}; } .fa-gradient::before { background: -webkit-linear-gradient(left, {$biscore_secondary_color} 0%, {$biscore_primary_color} 70%); background: -moz-linear-gradient(45deg, {$biscore_secondary_color} 0%, {$biscore_primary_color} 70%); background: -ms-linear-gradient(left, {$biscore_secondary_color} 0%, {$biscore_primary_color} 70%); background: -o-linear-gradient(left, {$biscore_secondary_color} 0%, {$biscore_primary_color} 70%); background: linear-gradient(left, {$biscore_secondary_color} 0%, {$biscore_primary_color} 70%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .ct-slick-slide .ct-color-mask { background: linear-gradient(45deg, {$biscore_secondary_color} 0%, {$biscore_primary_color} 100%); } /* Mozilla based browser */ ::-moz-selection { background-color: {$biscore_primary_color}; color: #fff; } /* Opera browser */ ::-o-selection { background-color: {$biscore_primary_color}; color: #fff; } /* Internet Explorer browser*/ ::-ms-selection { background-color: {$biscore_primary_color}; color: #fff; } /* Chrome and safari browser */ ::-webkit-selection { background-color: {$biscore_primary_color}; color: #fff; } /* Default */ ::selection { background-color: {$biscore_primary_color}; color: #fff; } .ct-about-2-col { background-color: {$biscore_intro_bg_color}; } .ct-about, .ct-info-box { background-color: {$biscore_services_bg_color}; } .ct-team-members-section { background-color: {$biscore_member_bg_color}; } .ct-long-blurb { background-color: {$biscore_feature_bg_color}; }"; wp_enqueue_style( 'biscore-gfonts', biscore_fonts_url(), array(), '1.0.0' ); wp_enqueue_style( 'slick', get_template_directory_uri() . '/assets/css/slick.css', array(), '1.0.0', 'all' ); wp_enqueue_style( 'slick-theme', get_template_directory_uri() . '/assets/css/slick-theme.css', array(), '1.0.0', 'all' ); wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/assets/css/font-awesome.min.css', array(), '4.7.0', 'all' ); wp_enqueue_style( 'normalize', get_template_directory_uri() . '/assets/css/normalize.css', array(), '3.0.2', 'all' ); wp_enqueue_style( 'responsive-nav', get_template_directory_uri() . '/assets/css/responsive-nav.css', array(), '1.0.0', 'all' ); wp_enqueue_style( 'skeleton', get_template_directory_uri() . '/assets/css/skeleton.css', array(), '2.0.4', 'all' ); wp_enqueue_style( 'biscore-style-css', get_template_directory_uri() . '/style.css', array(), '1.0.0', 'all' ); $biscore_check_color = get_theme_mod( 'biscore_primary_color_setting' ); if ( !empty( $biscore_check_color ) ) { wp_add_inline_style( 'biscore-style-css', $biscore_custom_css ); } if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script( 'jquery-slick', get_template_directory_uri() . '/assets/js/jquery-slick.js', array( 'jquery' ), '1.0.0', true ); wp_enqueue_script( 'responsive-nav', get_template_directory_uri() . '/assets/js/responsive-nav.js', array( 'jquery' ), '1.0.0', true ); wp_enqueue_script( 'navigation', get_template_directory_uri() . '/assets/js/navigation.js', array(), '1.0.0', true ); wp_enqueue_script( 'biscore-main-js', get_template_directory_uri() . '/assets/js/main.js', array( 'jquery' ), '1.0.0', true ); } endif; add_action( 'wp_enqueue_scripts', 'biscore_enqueue_scripts' ); if ( ! function_exists( 'biscore_fonts_url' ) ) : function biscore_fonts_url() { $biscore_fonts_url = ''; $biscore_lora = _x( 'on', 'Lora font: on or off', 'biscore' ); $biscore_rubik = _x( 'on', 'Rubik font: on or off', 'biscore' ); if ( 'off' !== $biscore_lora || 'off' !== $biscore_rubik ) { $biscore_font_families = array(); if ( 'off' !== $biscore_lora ) { $biscore_font_families[] = 'Lora:700i'; } if ( 'off' !== $biscore_rubik ) { $biscore_font_families[] = 'Rubik:400,500,700'; } } $biscore_query_args = array( 'family' => urlencode( implode( '|', $biscore_font_families ) ), 'subset' => urlencode( 'cyrillic-ext,cyrillic,vietnamese,latin-ext,latin' ) ); $biscore_fonts_url = add_query_arg( $biscore_query_args, 'https://fonts.googleapis.com/css' ); return esc_url_raw( $biscore_fonts_url ); } endif; /************************************************************************************************************************* * Set the content width ************************************************************************************************************************/ if ( ! isset( $content_width ) ) { $content_width = 900; } /************************************************************************************************************************* * Adds Excerpt to pages ************************************************************************************************************************/ add_action( 'init', 'biscore_add_excerpts_to_pages' ); function biscore_add_excerpts_to_pages() { add_post_type_support( 'page', 'excerpt' ); } /************************************************************************************************************************* * Filter the excerpt "read more" string. ************************************************************************************************************************/ function biscore_excerpt_more() { return '...'; } add_filter( 'excerpt_more', 'biscore_excerpt_more' ); if ( ! function_exists( 'biscore_widgets_init' ) ) : function biscore_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Default Sidebar', 'biscore' ), 'id' => 'biscore-main-sidebar', 'description' => esc_html__( 'Add widgets here to appear in your single post sidebar area.', 'biscore' ), 'before_widget' => '
', 'before_title' => '