$arilewp_mod_v ) {
set_theme_mod( $arilewp_mod_k, $arilewp_mod_v );
}
}
}
add_action( 'after_switch_theme', 'agency_street_parent_theme_options' );
/**
* Fresh site activate
*
*/
$fresh_site_activate = get_option( 'fresh_agency_street_site_activate' );
if ( (bool) $fresh_site_activate === false ) {
set_theme_mod( 'arilewp_page_header_background_color', 'rgba(255, 93, 32, 1)' );
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_theme_color', 'theme-orange' );
set_theme_mod( 'arilewp_slider_caption_layout', 'arilewp_slider_captoin_layout2' );
set_theme_mod( 'arilewp_service_layout', 'arilewp_service_layout2' );
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_blog_column_layout', '3' );
update_option( 'fresh_agency_street_site_activate', true );
}
/**
* Page header
*
*/
function agency_street_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'agency_street_custom_header_args', array(
'default-image' => get_stylesheet_directory_uri().'/assets/img/agency-street-header-image.jpg',
'default-text-color' => '000000',
'width' => 1920,
'height' => 500,
'flex-height' => true,
'flex-width' => true,
'wp-head-callback' => 'agency_street_header_style',
) ) );
}
/**
* Custom Theme Script
*/
function agency_street_custom_theme_css() {
$agency_street_testomonial_background_image = get_theme_mod('arilewp_testomonial_background_image');
?>
'f3f8fe',
'default-image' => '',
) ) );
}
add_action( 'after_setup_theme', 'agency_street_custom_background_setup' );
add_action( 'after_setup_theme', 'agency_street_custom_header_setup' );
if ( ! function_exists( 'agency_street_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog.
*
* @see agency_street_custom_header_setup().
*/
function agency_street_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.
?>