$arilewp_mod_v ) { set_theme_mod( $arilewp_mod_k, $arilewp_mod_v ); } } } add_action( 'after_switch_theme', 'interiorpress_parent_theme_options' ); /** * Fresh site activate * */ $fresh_site_activate = get_option( 'fresh_interiorpress_site_activate' ); if ( (bool) $fresh_site_activate === false ) { set_theme_mod( 'arilewp_page_header_background_color', 'rgba(0,0,0,0.6)' ); set_theme_mod( 'arilewp_testomonial_background_image', get_stylesheet_directory_uri().'/assets/img/theme-bg.jpg' ); set_theme_mod( 'arilewp_testimonial_overlay_disable', true ); set_theme_mod( 'arilewp_typography_disabled', true ); set_theme_mod( 'arilewp_theme_color_skin', 'theme-dark' ); set_theme_mod( 'arilewp_theme_color', 'theme-golden' ); set_theme_mod( 'arilewp_main_header_style', 'overlap_classic' ); set_theme_mod( 'arilewp_slider_caption_layout', 'arilewp_slider_captoin_layout2' ); set_theme_mod( 'arilewp_project_layout', 'arilewp_project_layout2' ); set_theme_mod( 'arilewp_testimonial_layout', 'arilewp_testimonial_layout2' ); set_theme_mod( 'arilewp_team_layout', 'arilewp_team_layout2' ); set_theme_mod( 'arilewp_blog_layout', 'arilewp_blog_layout2' ); set_theme_mod( 'arilewp_client_layout', 'arilewp_client_layout2' ); set_theme_mod( 'arilewp_typography_h1_font_family', 'Dosis' ); set_theme_mod( 'arilewp_typography_h2_font_family', 'Dosis' ); set_theme_mod( 'arilewp_typography_h3_font_family', 'Dosis' ); set_theme_mod( 'arilewp_typography_h4_font_family', 'Dosis' ); set_theme_mod( 'arilewp_typography_h5_font_family', 'Dosis' ); set_theme_mod( 'arilewp_typography_h6_font_family', 'Dosis' ); set_theme_mod( 'arilewp_typography_widget_title_font_family', 'Dosis' ); set_theme_mod( 'arilewp_typography_h1_text_transform', 'uppercase' ); set_theme_mod( 'arilewp_typography_h2_text_transform', 'uppercase' ); set_theme_mod( 'arilewp_typography_h3_text_transform', 'uppercase' ); set_theme_mod( 'arilewp_typography_h4_text_transform', 'uppercase' ); set_theme_mod( 'arilewp_typography_h5_text_transform', 'uppercase' ); set_theme_mod( 'arilewp_typography_h6_text_transform', 'uppercase' ); set_theme_mod( 'arilewp_typography_h1_letter_spacing', '2px' ); set_theme_mod( 'arilewp_typography_h2_letter_spacing', '2px' ); set_theme_mod( 'arilewp_typography_h3_letter_spacing', '3px' ); set_theme_mod( 'arilewp_typography_h4_letter_spacing', '3px' ); set_theme_mod( 'arilewp_typography_h5_letter_spacing', '3px' ); set_theme_mod( 'arilewp_typography_h6_letter_spacing', '4px' ); set_theme_mod( 'arilewp_typography_menu_bar_text_transform', 'uppercase' ); set_theme_mod( 'arilewp_typography_dropdown_bar_text_transform', 'uppercase' ); set_theme_mod( 'arilewp_typography_widget_title_text_transform', 'uppercase' ); update_option( 'fresh_interiorpress_site_activate', true ); } /** * Custom Theme Script */ function interiorpress_custom_theme_css() { $interiorpress_testomonial_background_image = get_theme_mod('arilewp_testomonial_background_image'); ?> get_stylesheet_directory_uri().'/assets/img/interior-page-header.jpg', 'default-text-color' => 'fff', 'width' => 1920, 'height' => 500, 'flex-height' => true, 'flex-width' => true, 'wp-head-callback' => 'interiorpress_header_style', ) ) ); } add_action( 'after_setup_theme', 'interiorpress_custom_header_setup' ); /** * Custom background * */ function interiorpress_custom_background_setup() { add_theme_support( 'custom-background', apply_filters( 'interiorpress_custom_background_args', array( 'default-color' => '202020', 'default-image' => '', ) ) ); } add_action( 'after_setup_theme', 'interiorpress_custom_background_setup' ); if ( ! function_exists( 'interiorpress_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * * @see interiorpress_custom_header_setup(). */ function interiorpress_header_style() { $header_text_color = get_header_textcolor(); /* * If no custom options for text are set, let's bail. * get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: add_theme_support( 'custom-header' ). */ if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { return; } // If we get this far, we have custom styles. Let's do this. ?>