Update equation builder

This commit is contained in:
Brian Miyaji
2014-05-28 11:37:19 +10:00
parent 846e8bd5e1
commit 1aad90b738
17 changed files with 377 additions and 149 deletions

View File

@@ -97,7 +97,13 @@ class SP_Frontend_Scripts {
$enabled = get_option( 'sportspress_enable_frontend_css', 'yes' );
$custom = get_option( 'sportspress_custom_css', null );
if ( $enabled == 'yes' || ! empty( $custom ) ) {
$offset = get_option( 'sportspress_header_offset', '' );
if ( $offset === '' ) {
$template = get_option( 'template' );
$offset = ( 'twentyfourteen' == $template ? 48 : 0 );
}
if ( $enabled == 'yes' || ! empty( $custom ) || $offset != 0 ) {
$colors = get_option( 'sportspress_frontend_css_colors' );
@@ -122,6 +128,9 @@ class SP_Frontend_Scripts {
echo '.sp-data-table tbody a,.sp-data-table tbody a:hover,.sp-calendar tbody a:focus{color: ' . $colors['link'] . ' !important}';
}
if ( $offset != 0 )
echo ' @media only screen and (min-width: 40.063em) {.sp-header{top: ' . $offset . 'px}}';
if ( ! empty( $custom ) )
echo ' /* SportsPress Custom CSS */ ' . $custom;