'Default',
'Abril Fatface' => 'Abril Fatface',
'Cardo' => 'Cardo',
'Domine' => 'Domine',
'Gentium Book Basic' => 'Gentium Book Basic',
'Gravitas One' => 'Gravitas One',
'Lato' => 'Lato',
'Merriweather' => 'Merriweather',
'Old Standard TT' => 'Old Standard TT',
'Open Sans' => 'Open Sans',
'Oswald' => 'Oswald',
'Playfair Display' => 'Playfair Display',
'PT Mono' => 'PT Mono',
'PT Sans' => 'PT Sans',
'PT Sans Narrow' => 'PT Sans Narrow',
'PT Serif' => 'PT Serif',
'Source Sans Pro' => 'Source Sans Pro',
'Raleway' => 'Raleway',
'Roboto' => 'Roboto',
'Rokkitt' => 'Rokkitt',
'Vollkorn' => 'Vollkorn',
);
return $fonts;
}
endif;
if ( ! function_exists( 'boden_color_opposite' ) ) :
function boden_color_opposite($color) {
if ( $color == "light" ) {
return "dark";
} else {
return "light";
}
}
endif;
if ( ! function_exists( 'boden_the_color_mode_opposite' ) ) :
function boden_the_color_mode_opposite() {
$color = get_theme_mod('boden_color_mode', 'light');
if ( $color == "light" ) {
return "dark";
} else {
return "light";
}
}
endif;
if ( ! function_exists( 'boden_the_color_opposite' ) ) :
function boden_the_color_opposite() {
$color = get_theme_mod('boden_color_mode', 'light');
if ( $color == "light" ) {
echo "dark";
} else {
echo "light";
}
}
endif;
if ( ! function_exists( 'boden_header_style' ) ) :
function boden_header_style() {
global $post;
$page_header_style = boden_the_color_mode_opposite();
if( !empty( $post->ID ) ) {
$boden_page_id = $post->ID;
$page_header_style = get_post_meta( $boden_page_id, 'boden_metabox_page_general_page_header', true );
if ( empty($page_header_style) ) $page_header_style = boden_the_color_mode_opposite();
}
return $page_header_style;
}
endif;
if ( ! function_exists( 'boden_the_header_style' ) ) :
function boden_the_header_style() {
$page_header_style = boden_header_style();
echo esc_attr ( $page_header_style );
}
endif;
if ( ! function_exists( 'boden_body_tags' ) ) :
function boden_body_tags() {
$boden_data = wp_get_theme();
$boden_version = $boden_data->get( 'Version' );
$theme_display_loader = get_theme_mod('boden_display_loader', 'on');
$theme_display_animated = get_theme_mod('boden_display_animated', 'on');
$tags = "data-version=" . $boden_version;
$tags .= " data-loader=" . $theme_display_loader;
$tags .= " data-animated=" . $theme_display_animated;
echo esc_attr( $tags );
}
endif;
if ( ! function_exists( 'boden_header_logo' ) ) :
function boden_header_logo() {
$page_header_style = boden_header_style();
$header_logo_light = get_theme_mod('boden_logo_light', '');
$header_logo_dark = get_theme_mod('boden_logo_dark', '');
if( $page_header_style == "light" && !empty( $header_logo_light ) ) {
echo "";
} else if ( $page_header_style == "dark" && !empty( $header_logo_dark ) ) {
echo "
";
} else {
echo "
" . bloginfo( 'name' ) . "
";
}
}
endif;
if ( ! function_exists( 'boden_page_background' ) ) :
function boden_page_background() {
$cta_background = get_theme_mod('boden_cta_background', '');
if ( is_page_template( 'page-about.php' ) || is_page_template( 'page-blog.php' ) || is_page_template( 'page-portfolio.php' ) || is_page_template( 'page-contact.php' )) {
$is_cta_page = true;
} else {
$is_cta_page = false;
}
if( $is_cta_page && !empty($cta_background) ) {
echo " style='background-image: url(" . esc_url( $cta_background ) . "); background-position: center bottom 240px;'";
}
}
endif;
if ( ! function_exists( 'boden_header_menu_style' ) ) :
function boden_header_menu_style() {
$header_menu_style = get_theme_mod('boden_header_menu', 'full-screen');
echo esc_attr( $header_menu_style );
}
endif;
if ( ! function_exists( 'boden_header_cta' ) ) :
function boden_header_cta() {
$header_cta = get_theme_mod('boden_header_cta', 'off');
$header_cta_text = get_theme_mod('boden_header_cta_text', '');
$header_cta_url = get_theme_mod('boden_header_cta_url', '');
$page_header_style = boden_header_style();
if( $header_cta == "on" && !empty( $header_cta_text ) && !empty( $header_cta_url ) ) {
echo "