'#fff', 'page_background_color'=> '#fff', 'woocommerce_menubar_color'=> '#fff', 'woocommerce_menubar_text_color'=> '#333333', 'link_color'=> '#8e4403', 'main_text_color' => '#1a1a1a', 'primary_color'=> '#1fb5ff', 'header_bg_color'=> '#fff', 'header_text_color'=> '#333333', 'footer_bg_color'=> '#047eb9', 'footer_text_color'=> '#fff', 'header_contact_social_bg_color'=> '#1fb5ff', 'footer_border' =>'1', 'hero_border' =>'1', 'header_layout' =>'1', 'heading_font' => 'Roboto', 'body_font' => 'Google Sans' ); return $values[$param]; } endif; /* * BEGIN ENQUEUE PARENT ACTION * AUTO GENERATED - Do not modify or remove comment markers above or below: */ /* Override parent theme help notice */ if ( !function_exists( 'biz_news_locale_css' ) ): function biz_news_locale_css( $uri ){ if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) ) $uri = get_template_directory_uri() . '/rtl.css'; return $uri; } endif; add_filter( 'locale_stylesheet_uri', 'biz_news_locale_css' ); if ( !function_exists( 'biz_news_parent_css' ) ): function biz_news_parent_css() { wp_enqueue_style( 'biz_news_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( 'bootstrap','fontawesome' ) ); } endif; add_action( 'wp_enqueue_scripts', 'biz_news_parent_css', 10 ); if ( class_exists( 'WP_Customize_Control' ) ) { require get_template_directory() .'/inc/color-picker/alpha-color-picker.php'; } function biz_news_wp_body_open(){ do_action( 'wp_body_open' ); } if ( ! function_exists( 'biz_news_the_custom_logo' ) ) : /** * Displays the optional custom logo. */ function biz_news_the_custom_logo() { if ( function_exists( 'the_custom_logo' ) ) { the_custom_logo(); } } endif; /** * @since 1.0.0 * add home link. */ function biz_news_nav_wrap() { $wrap = ''; return $wrap; } /* * add customizer settings */ add_action( 'customize_register', 'biz_news_customize_register' ); function biz_news_customize_register( $wp_customize ) { //slider button link $wp_customize->add_setting( 'slider_button_link' , array( 'default' => "", 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control('slider_button_link' , array( 'label' => __('Slider Button Link','biz-news' ), 'section' => 'slider_section', 'priority' => 13, 'type'=>'text', ) ); // banner image $wp_customize->add_setting( 'banner_image' , array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize , 'banner_image' , array( 'label' => __( 'Banner Image', 'biz-news' ), 'description' => __('Upload banner image', 'biz-news'), 'settings' => 'banner_image', 'section' => 'theme_header', )) ); $wp_customize->add_setting('banner_link' , array( 'default' => '#', 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control('banner_link' , array( 'label' => __('Banner Link', 'biz-news' ), 'section' => 'theme_header', 'type'=> 'url', ) ); //breadcrumb $wp_customize->add_section( 'breadcrumb_section' , array( 'title' => __( 'Header Breadcrumb', 'biz-news' ), 'priority' => 3, 'panel' => 'theme_options', ) ); $wp_customize->add_setting( 'breadcrumb_enable' , array( 'default' => false, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'agency_starter_sanitize_checkbox', )); $wp_customize->add_control('breadcrumb_enable' , array( 'label' => __('Enable | Disable Breadcrumb','biz-news' ), 'section' => 'breadcrumb_section', 'type'=> 'checkbox', )); } /** * @package twentysixteen * @subpackage biz-news * Converts a HEX value to RGB. */ function biz_news_hex2rgb( $color ) { $color = trim( $color, '#' ); if ( strlen( $color ) === 3 ) { $r = hexdec( substr( $color, 0, 1 ) . substr( $color, 0, 1 ) ); $g = hexdec( substr( $color, 1, 1 ) . substr( $color, 1, 1 ) ); $b = hexdec( substr( $color, 2, 1 ) . substr( $color, 2, 1 ) ); } elseif ( strlen( $color ) === 6 ) { $r = hexdec( substr( $color, 0, 2 ) ); $g = hexdec( substr( $color, 2, 2 ) ); $b = hexdec( substr( $color, 4, 2 ) ); } else { return array(); } return array( 'red' => $r, 'green' => $g, 'blue' => $b, ); } //load actions require get_stylesheet_directory() .'/inc/core.php'; //load post widgets require get_stylesheet_directory() .'/inc/widgets.php'; /** * Theme Breadcrumbs */ if( !function_exists('biz_news_page_header_breadcrumbs') ): function biz_news_page_header_breadcrumbs() { global $post; $homeLink = home_url(); $biz_news_page_header_layout = get_theme_mod('biz_news_page_header_layout', 'biz_news_page_header_layout1'); if($biz_news_page_header_layout == 'biz_news_page_header_layout1'): $breadcrumb_class = 'center-text'; else: $breadcrumb_class = 'text-right'; endif; echo ''; } endif; /** * Theme Breadcrumbs Url */ function biz_news_page_url() { $page_url = 'http'; if ( key_exists("HTTPS", $_SERVER) && ( $_SERVER["HTTPS"] == "on" ) ){ $page_url .= "s"; } $page_url .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $page_url .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $page_url .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $page_url; }