.headerElement1 body h1, .headerElement1 body h2, .headerElement1 body h3, .headerElement1 body h4, .headerElement1 body h5, .headerElement1 body h6 { font-family: !important;; } .headerElement1 body, .headerElement1 body p, .headerElement1 body #main-nav li a { font-family: !important;; } .headerElement1 body header a.image-logo > img { max-width: ; max-height: ; } .headerElement1 body .headerElement2 #header-bar .top-widget a:hover { color: ; } .headerElement1 body .light-menu-dropdown #main-nav li:hover > a, .headerElement1 body .light-menu-dropdown #main-nav li:hover > a i { color: !important; } .headerElement1 body .light-menu-dropdown #main-nav > li:after { background: ; } .headerElement1 body .loop-items .postPreviewElement1 .title a { color: ; } .headerElement1 body .pagination.navigationElement1 .page-numbers.current { background: ; } .headerElement1 body .single.post .post-meta-info a:hover { color: ; } .headerElement1 body .single.post .single-post-content .entry-content a { color: ; } .headerElement1 body .light-menu-dropdown #main-nav li.current-menu-ancestor > a, .headerElement1 body .light-menu-dropdown #main-nav li.current-menu-ancestor > a > i, .headerElement1 body .light-menu-dropdown #main-nav li.current-menu-item > a, .headerElement1 body .light-menu-dropdown #main-nav li.current-menu-item > a > i { color: !important; } .widget_text a:hover { color: !important; } .headerElement1 body .singlePostElement1 .single-post-tags a:hover { background: ; } .headerElement1 body #comments.comments .comment-form-wrapper form#commentform input[type="submit"] { background: ; box-shadow: 0 3px 0 0 ; } .headerElement1 body #comments.comments .comment > article header .comment-reply-link, .headerElement1 body #comments.comments .comment > article header .comment-edit-link { color: ; } .headerElement1 body #comments.comments .comment > article header .comment-metadata > a:hover { color: ; } .headerElement1 body #pre-footer-area .bm-button.bm-large-button { background: ; box-shadow: 0 3px 0 0 ; } .headerElement1 body #main-wrapper .bm-sidebar .widget_archive ul li a:hover, .headerElement1 body #main-wrapper .bm-sidebar .widget_categories ul li a:hover, .headerElement1 body #main-wrapper .bm-sidebar .widget_meta ul li a:hover, .headerElement1 body #main-wrapper .bm-sidebar .widget_pages ul li a:hover, .headerElement1 body #main-wrapper .bm-sidebar .widget_recent_comments ul li a:hover, .headerElement1 body #main-wrapper .bm-sidebar .widget_recent_entries ul li a:hover { color: !important; } .headerElement1 body .widget_calendar .calendar_wrap table#wp-calendar th a, .headerElement1 body .widget_calendar .calendar_wrap table#wp-calendar td a { color: ; } .headerElement1 body #main-wrapper .bm-sidebar .widget_rss li a { color: ; } .headerElement1 body #main-wrapper .bm-sidebar .widget_tag_cloud a:hover { background: ; } .headerElement1 body .widget_archive ul li a:hover, .headerElement1 body .widget_categories ul li a:hover, .headerElement1 body .widget_meta ul li a:hover, .headerElement1 body .widget_pages ul li a:hover, .headerElement1 body .widget_recent_comments ul li a:hover, .headerElement1 body .widget_nav_menu ul li a:hover, .headerElement1 body .widget_recent_entries ul li a:hover { color: ; } .headerElement1 body .widget_recent_entries a:hover, .headerElement1 body .widget_rss a:hover, .headerElement1 body .widget_tag_cloud a:hover { color: ; } .headerElement1 body .widget_calendar .calendar_wrap table#wp-calendar td a:hover, .headerElement1 body .widget_calendar .calendar_wrap table#wp-calendar th a:hover { color: ; } .headerElement1 body .widget_nav_menu ul.menu li a:hover { color: ; } .headerElement1 body .shortcode-wrapper.shortcode-icon-box.circleiconblock1 > .feature-box .bm-icon-wrapper i, .headerElement1 body .sidecircleiconblock1 > .feature-box .bm-icon-wrapper i { border-color: ; color: ; } .headerElement1 body .shortcode-wrapper.shortcode-icon-box.circleiconblock1 > .feature-box:hover .bm-icon-wrapper i, .headerElement1 body .sidecircleiconblock1 > .feature-box:hover .bm-icon-wrapper i { background: ; } .headerElement1 body .shortcode-wrapper.shortcode-icon-box.circleiconblock1 > .feature-box p a:hover, .headerElement1 body .sidecircleiconblock1 > .feature-box p a:hover { color: ; } .headerElement1 body .shortcode-wrapper.shortcode-icon-box.sideiconblock1 > .left-icon-box.feature-box i { color: ; } .headerElement1 body .shortcode-wrapper.shortcode-icon-box.sideiconblock1 .simple-read-more { border-bottom-color: ; } .headerElement1 body .shortcode-wrapper.shortcode-icon-box.sideiconblock1 .simple-read-more:hover { color: ; } .headerElement1 body .bm-callout-box.callout1 h3 { border-left-color: ; } .headerElement1 body .bm-teaser-column.imageteaser1 .simple-read-more { border-color: ; } .headerElement1 body .bm-teaser-column.imageteaser1 .simple-read-more:hover { color: ; } .headerElement1 body .bm-teaser-column.alternative.imageteaseralt1 .simple-read-more { border-color: ; } .headerElement1 body .bm-teaser-column.alternative.imageteaseralt1 .simple-read-more:hover { color: ; } .headerElement1 body .shortcode-wrapper.shortcode-icon-box .feature-box.alternative i, .headerElement1 body .shortcode-wrapper.shortcode-icon-box .feature-box i { color: ; } .headerElement1 body .shortcode-wrapper.shortcode-icon-box .feature-box.alternative:hover .bm-small-break, .headerElement1 body .shortcode-wrapper.shortcode-icon-box .feature-box:hover .bm-small-break { background: ; } .headerElement1 body .content-box.top-icon i { background: ; } .headerElement1 body .form-wrapper.contact-form input[type=submit] { background: ; } .headerElement1 body .team-member-box.profile1.tmb-2 .simple-read-more { border-bottom: 1px dotted ; } .headerElement1 body .team-member-box.profile1.tmb-2 .simple-read-more:hover { color: ; } .headerElement1 body .accent-skin .esg-pagination .esg-filterbutton.selected { background: ; } .headerElement1 body .esg-filter-wrapper .esg-filterbutton:hover:not(.selected) { color: ; } .headerElement1 body .esg-filter-wrapper .esg-filterbutton.selected { background: ; border-color: ; } .headerElement1 body .esg-filters:first-child .esg-navigationbutton.esg-left:hover i, .headerElement1 body .esg-filters:first-child .esg-navigationbutton.esg-right:hover i { color: ; } .headerElement1 body #main-wrapper #footer .widget-column .widget_archive ul li a:hover, .headerElement1 body #main-wrapper #footer .widget-column .widget_categories ul li a:hover, .headerElement1 body #main-wrapper #footer .widget-column .widget_meta ul li a:hover, .headerElement1 body #main-wrapper #footer .widget-column .widget_pages ul li a:hover, .headerElement1 body #main-wrapper #footer .widget-column .widget_recent_comments ul li a:hover, .headerElement1 body #main-wrapper #footer .widget-column .widget_nav_menu ul li a:hover, .headerElement1 body #main-wrapper #footer .widget-column .widget_recent_entries ul li a:hover { color: ; } ', '', $buffer ); } } if( !function_exists('bluemed_enqueue_google_font') ) { /** * Enqueue Google Fonts as required by the Unyson typography-v2 theme options * * @return void */ function bluemed_enqueue_google_font() { // Check if Unyson is installed if ( ! defined( 'FW' ) ) { return null; } $bluemed_google_fonts = explode( ',', 'headingFont,textFont' ); if($bluemed_google_fonts) { foreach($bluemed_google_fonts as $optionName) { $option = bluemed_get_option($optionName); if(isset($option["google_font"]) && $option["google_font"]) { $slug = str_replace(' ', '_', $option['family']) . str_replace(',', '_', $option['variation']); $family = str_replace(' ', '+', $option['family']) . ':' . $option['variation']; $subset = $option['subset']; $query_args = array( 'family' => $family, 'subset' => $subset ); wp_enqueue_style( "bluemed_" . $slug, add_query_arg( $query_args, "//fonts.googleapis.com/css"), array(), null ); } } } } add_action('wp_enqueue_scripts', 'bluemed_enqueue_google_font'); } if( !function_exists('bluemed_get_typography_font_family') ) { /** * Retrieve the font-family CSS value from a Unyson typography-v2 theme option * * @param string $optionName The name of the Unyson typography-v2 option * @return string Returns the required font-family */ function bluemed_get_typography_font_family($optionName) { if ( ! defined( 'FW' ) ) { return null; } // Check if Unyson is installed $option = bluemed_get_option($optionName); return $option['family']; } } if( !function_exists('bluemed_get_typography_size') ) { /** * Retrieve the font-size CSS value from a Unyson typography-v2 theme option * * @param string $optionName The name of the Unyson typography-v2 option * @return string Returns the required font-size */ function bluemed_get_typography_size($optionName) { if ( ! defined( 'FW' ) ) { return null; } // Check if Unyson is installed $option = bluemed_get_option($optionName); return $option['size'] . 'px'; } } if( !function_exists('bluemed_get_typography_color') ) { /** * Retrieve the color CSS value from a Unyson typography-v2 theme option * * @param string $optionName The name of the Unyson typography-v2 option * @return string Returns the required color */ function bluemed_get_typography_color($optionName) { if ( ! defined( 'FW' ) ) { return null; } // Check if Unyson is installed $option = bluemed_get_option($optionName); return $option['color']; } } if( !function_exists('bluemed_get_typography_letter_spacing') ) { /** * Retrieve the letter-spacing CSS value from a Unyson typography-v2 theme option * * @param string $optionName The name of the Unyson typography-v2 option * @return string Returns the required letter-spacing */ function bluemed_get_typography_letter_spacing($optionName) { if ( ! defined( 'FW' ) ) { return null; } // Check if Unyson is installed $option = bluemed_get_option($optionName); return $option['letter-spacing'] . 'px'; } } if( !function_exists('bluemed_get_typography_weight') ) { /** * Retrieve the font-weight CSS value from a Unyson typography-v2 theme option * * @param string $optionName The name of the Unyson typography-v2 option * @return string Returns the required font-weight */ function bluemed_get_typography_weight($optionName) { if ( ! defined( 'FW' ) ) { return null; } // Check if Unyson is installed $option = bluemed_get_option($optionName); if($option['google_font']) { $variation = preg_split('/(?<=\d)(?=[a-z])|(?<=[a-z])(?=\d)/i', $option['variation']); $option["weight"] = isset($variation[0]) ? $variation[0] : ""; } return $option['weight']; } } if( !function_exists('bluemed_get_typography_style') ) { /** * Retrieve the font-style CSS value from a Unyson typography-v2 theme option * * @param string $optionName The name of the Unyson typography-v2 option * @return string Returns the required font-style */ function bluemed_get_typography_style($optionName) { if ( ! defined( 'FW' ) ) { return null; } // Check if Unyson is installed $option = bluemed_get_option($optionName); if($option['google_font']) { $variation = preg_split('/(?<=\d)(?=[a-z])|(?<=[a-z])(?=\d)/i', $option['variation']); $option["style"] = isset($variation[1]) ? $variation[1] : ""; } return $option['style']; } } if( !function_exists('bluemed_get_typography_line_height') ) { /** * Retrieve the line-height CSS value from a Unyson typography-v2 theme option * * @param string $optionName The name of the Unyson typography-v2 option * @return string Returns the required line-height */ function bluemed_get_typography_line_height($optionName) { if ( ! defined( 'FW' ) ) { return null; } // Check if Unyson is installed $option = bluemed_get_option($optionName); return $option['line-height'] . 'px'; } } if( !function_exists('bluemed_get_upload_url')) { /** * Retrieve the media URL from a Unyson upload theme option * * @param string $optionName The name of the Unyson upload theme option * @return string Returns the URL of the upload */ function bluemed_get_upload_url($optionName) { if ( ! defined( 'FW' ) ) { return null; } // Check if Unyson is installed $option = bluemed_get_option($optionName); return isset($option['url']) ? $option['url'] : ''; } } if( !function_exists('bluemed_get_linear_gradient_css')) { /** * @param string $stopsOptName - the name of the Unyson option with the gradient stops * @param string $degreeOptName - the name of the Unyson option with the gradient degree * @return string - CSS linear gradient rule */ function bluemed_get_linear_gradient_css($stopsOptName, $degreeOptName) { return bluemed_get_linear_gradient_css_from_values(bluemed_get_option($stopsOptName), bluemed_get_option($degreeOptName)); } } if( !function_exists('bluemed_get_linear_gradient_css_from_values')) { /** * @param [][] $stops - an array of arrays containing the gradient stop values (`position` and `color`) * @param string $degree - the gradient degree * * @return string - CSS linear gradient rule */ function bluemed_get_linear_gradient_css_from_values($stops, $degree = '45') { $stops_arr = array(); foreach($stops as $stop) { $position = isset( $stop['position'] ) ? $stop['position'] : '0'; $color = isset( $stop['color'] ) ? $stop['color'] : '#ffffff'; array_push( $stops_arr, $color . ' ' . $position . '%' ); } // If there are no stops, then return an empty string if(sizeof($stops_arr) == 0) { return ''; } $stop_str = implode( ',', $stops_arr ); // Default to 45 degrees $degree = $degree ? intval($degree) : 45; // Construct the full string return 'linear-gradient(' . $degree . 'deg, ' . $stop_str . ')'; } } if( !function_exists('bluemed_get_radial_gradient_css')) { /** * @param string $stopsOptName - the name of the Unyson option with gradient stops * @param string $shapeOptName - the name of the Unyson option for the gradient shape * @param string $extentOptName - the name of the Unyson option for the gradient extent * @param string $positionOptName - the name of the Unyson option for the gradient starting position * * @return string - CSS radial gradient rule */ function bluemed_get_radial_gradient_css($stopsOptName, $shapeOptName, $extentOptName, $positionOptName) { return bluemed_get_radial_gradient_css_from_values( bluemed_get_option($stopsOptName), bluemed_get_option($shapeOptName), bluemed_get_option($extentOptName), bluemed_get_option($positionOptName) ); } } if( !function_exists('bluemed_get_radial_gradient_css_from_values')) { /** * @param [][] $stops - an array of arrays containing the gradient stop values (`position` and `color`) * @param string $shape - the gradient shape (`ellipse` or `circle`) * @param string $extent - the gradient extent (`closest-side`, `closest-corner`, `farthest-side` or `farthest-corner` * @param string $position - the gradient starting position (`top`, `top-left`, `top-right`, `bottom`, `bottom-left` or `bottom-right`) * * @return string - CSS radial gradient rule */ function bluemed_get_radial_gradient_css_from_values($stops, $shape = "ellipse", $extent = "farthest-corner", $position = "bottom-left") { $stops_arr = array(); foreach($stops as $stop) { $pos = isset( $stop['position'] ) ? $stop['position'] : '0'; $color = isset( $stop['color'] ) ? $stop['color'] : '#ffffff'; array_push( $stops_arr, $color . ' ' . $pos . '%' ); } // If there are no stops, then return an empty string if(sizeof($stops_arr) == 0) { return ''; } $stop_str = implode( ',', $stops_arr ); $position = str_replace('-', ' ', $position); // Construct the gradient return 'radial-gradient(' . $shape . ' ' . $extent . ' at ' . $position . ', ' . $stop_str . ')'; } }