$value ) { if( $option == 'size' ) { $option = 'font-size'; } if( $option == 'face' ) { $option = 'font-family'; } if( $option == 'style' ) { $option = 'font-weight'; } if( $value != '' ) { $body_styles[$option] = $value; } } } // Set font-family if google font is on $google_font = cyberchimps_get_option( 'google_font_field' ); if( $body_styles['font-family'] == "Google Fonts" && $google_font != "" ) { $body_styles['font-family'] = $google_font; // Check if SSL is present, if so then use https othereise use http $protocol = is_ssl() ? 'https' : 'http'; wp_register_style( 'google-font', $protocol . '://fonts.googleapis.com/css?family=' . $google_font ); wp_enqueue_style( 'google-font' ); } return $body_styles; } // creates link color array for just a tag function cyberchimps_link_styles() { $link_styles = array(); if( cyberchimps_get_option( 'link_colorpicker' ) ) { $link_styles['a'] = cyberchimps_get_option( 'link_colorpicker' ); } if( cyberchimps_get_option( 'link_hover_colorpicker' ) ) { $link_styles['a:hover'] = cyberchimps_get_option( 'link_hover_colorpicker' ); } return $link_styles; } // creates width for main container of website function cyberchimps_layout_styles() { $container_styles = array(); if( cyberchimps_get_option( 'max_width' ) ) { $width = intval( cyberchimps_get_option( 'max_width' ) ); $key = ( cyberchimps_get_option( 'responsive_design', 'checked' ) ) ? 'max-width' : 'width'; if( $width < 400 || empty( $width ) ) { $container_styles[$key] = 1020; } else { $container_styles[$key] = $width; } } return $container_styles; } // add favicon function cyberchimps_favicon() { if( cyberchimps_get_option( 'custom_favicon' ) ) : $favicon = cyberchimps_get_option( 'favicon_uploader' ); if( $favicon != '' ):?>