$arilewp_mod_v ) { set_theme_mod( $arilewp_mod_k, $arilewp_mod_v ); } } } add_action( 'after_switch_theme', 'alberta_parent_theme_options' ); /** * Fresh site activate * */ $fresh_site_activate = get_option( 'fresh_alberta_site_activate' ); if ( (bool) $fresh_site_activate === false ) { set_theme_mod( 'arilewp_page_header_background_color', 'rgba(0,0,0,0.55)' ); set_theme_mod( 'arilewp_testomonial_background_image', get_stylesheet_directory_uri().'/assets/img/theme-bg.jpg' ); set_theme_mod( 'arilewp_typography_disabled', true ); set_theme_mod( 'arilewp_testimonial_overlay_disable', true ); set_theme_mod( 'arilewp_main_slider_overlay_disable', false ); set_theme_mod( 'arilewp_theme_color', 'theme-blue-sky' ); set_theme_mod( 'arilewp_testimonial_layout', 'arilewp_testimonial_layout2' ); set_theme_mod( 'arilewp_project_layout', 'arilewp_project_layout2' ); set_theme_mod( 'arilewp_funfact_layout', 'arilewp_funfact_layout2' ); set_theme_mod( 'arilewp_client_layout', 'arilewp_client_layout2' ); set_theme_mod( 'arilewp_main_header_style', 'overlap_classic' ); set_theme_mod( 'arilewp_blog_column_layout', '3' ); set_theme_mod( 'arilewp_typography_h1_font_family', 'Asap' ); set_theme_mod( 'arilewp_typography_h2_font_family', 'Asap' ); set_theme_mod( 'arilewp_typography_h3_font_family', 'Asap' ); set_theme_mod( 'arilewp_typography_h4_font_family', 'Asap' ); set_theme_mod( 'arilewp_typography_h5_font_family', 'Asap' ); set_theme_mod( 'arilewp_typography_h6_font_family', 'Asap' ); set_theme_mod( 'arilewp_typography_widget_title_font_family', 'Asap' ); update_option( 'fresh_alberta_site_activate', true ); } /** * Page header * */ function alberta_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'alberta_custom_header_args', array( 'default-image' => get_stylesheet_directory_uri().'/assets/img/alberta-page-header.jpg', 'default-text-color' => 'fff', 'width' => 1920, 'height' => 500, 'flex-height' => true, 'flex-width' => true, 'wp-head-callback' => 'alberta_header_style', ) ) ); } add_action( 'after_setup_theme', 'alberta_custom_header_setup' ); /** * Custom background * */ function alberta_custom_background_setup() { add_theme_support( 'custom-background', apply_filters( 'alberta_custom_background_args', array( 'default-color' => 'fff', 'default-image' => '', ) ) ); } add_action( 'after_setup_theme', 'alberta_custom_background_setup' ); /** * Custom Theme Script */ function alberta_custom_theme_css() { $alberta_testomonial_background_image = get_theme_mod('arilewp_testomonial_background_image'); ?>