'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 "
" . esc_attr( $header_cta_text ) . "
"; } } endif; if ( ! function_exists( 'boden_footer_copyright' ) ) : function boden_footer_copyright() { $footer_copyright = get_theme_mod('boden_footer_copyright', ''); if( !empty( $footer_copyright ) ) { echo "
" . wp_kses_post( $footer_copyright ) . "
"; } } endif; if ( ! function_exists( 'boden_footer_social' ) ) : function boden_footer_social() { $footer_social = get_theme_mod('boden_footer_social', 'on'); if( $footer_social == "on" ) { echo ""; } } endif; if ( ! function_exists( 'boden_pagination' ) ) : function boden_pagination() { $pagination = get_the_posts_pagination( array( 'mid_size' => 0, 'prev_text' => esc_html__( 'Newer', 'boden' ), 'next_text' => esc_html__( 'Older', 'boden' ), )); $pagination = str_replace("navigation pagination", "pagination", $pagination); echo wp_kses_post( $pagination ); } endif; if ( ! function_exists( 'boden_cta' ) ) : function boden_cta($class="") { $cta_enabled = get_theme_mod('boden_cta_enabled', 'on'); $cta_text = get_theme_mod('boden_cta_text', ''); $cta_url = get_theme_mod('boden_cta_url', ''); $cta = "
"; if( $cta_enabled == "on" && !empty( $cta_text ) && !empty( $cta_url )) echo wp_kses_post( $cta ); } endif; if ( ! function_exists( 'boden_analytics' ) ) : function boden_analytics() { $analytics_enabled = get_theme_mod('boden_analytics_enabled', 'true'); $analytics_code = get_theme_mod('boden_analytics_code', ''); if( $analytics_enabled == "true" && !empty( $analytics_code ) ) { echo ""; } } endif; if ( ! function_exists( 'boden_error_page' ) ) : function boden_error_page() { global $wp_query; $wp_query->set_404(); status_header( 404 ); get_template_part( 404 ); exit(); } endif; ?>