main->get_styling(); // colorskin $color = ''; function mec_dyn_hex2rgb($cc) { if($cc[0] == '#') $cc = substr($cc, 1); if(strlen($cc) == 6) list($r, $g, $b) = array($cc[0] . $cc[1], $cc[2] . $cc[3], $cc[4] . $cc[5]); elseif(strlen($cc) == 3) list($r, $g, $b) = array($cc[0] . $cc[0], $cc[1] . $cc[1], $cc[2] . $cc[2]); else return false; $r = ((!function_exists('ctype_xdigit') or (function_exists('ctype_xdigit') and ctype_xdigit($r))) ? hexdec($r) : NULL); $g = ((!function_exists('ctype_xdigit') or (function_exists('ctype_xdigit') and ctype_xdigit($g))) ? hexdec($g) : NULL); $b = ((!function_exists('ctype_xdigit') or (function_exists('ctype_xdigit') and ctype_xdigit($b))) ? hexdec($b) : NULL); if(is_null($r) or is_null($g) or is_null($b)) return false; else return array('red' => $r, 'green' => $g, 'blue' => $b); } if(isset($styling['color']) && $styling['color']) $color = $styling['color']; elseif(isset($styling['mec_colorskin'])) $color = $styling['mec_colorskin']; $rgb_color = '64,217,241'; if(!empty($color)) $rgb_color = mec_dyn_hex2rgb($color); // Typography $mec_h_fontfamily_arr = $mec_p_fontfamily_arr = $fonts_url = $mec_container_normal_width = $mec_container_large_width = ''; if(isset($styling['mec_h_fontfamily']) && $styling['mec_h_fontfamily']) { $mec_h_fontfamily_arr = $styling['mec_h_fontfamily']; $mec_h_fontfamily_arr = str_replace("[", "", $mec_h_fontfamily_arr); $mec_h_fontfamily_arr = str_replace("]", "", $mec_h_fontfamily_arr); $mec_h_fontfamily_arr = explode(",", $mec_h_fontfamily_arr); } if(isset($styling['mec_p_fontfamily']) && $styling['mec_p_fontfamily']) { $mec_p_fontfamily_arr = $styling['mec_p_fontfamily']; $mec_p_fontfamily_arr = str_replace("[", "", $mec_p_fontfamily_arr); $mec_p_fontfamily_arr = str_replace("]", "", $mec_p_fontfamily_arr); $mec_p_fontfamily_arr = explode(",", $mec_p_fontfamily_arr); } if((is_array($mec_h_fontfamily_arr) && $mec_h_fontfamily_arr) || (is_array($mec_p_fontfamily_arr) && $mec_p_fontfamily_arr)) { //Google font $font_families = []; $subsets = 'latin,latin-ext'; $variant_h = ''; $variant_p = ''; $mec_h_fontfamily_array = ''; if ( is_array($mec_h_fontfamily_arr) && $mec_h_fontfamily_arr ) : foreach($mec_h_fontfamily_arr as $key=>$mec_h_fontfamily_array) { if($key != '0') $variant_h .= $mec_h_fontfamily_array .', '; } endif; if ( is_array($mec_p_fontfamily_arr) && $mec_p_fontfamily_arr ) : foreach($mec_p_fontfamily_arr as $key=>$mec_p_fontfamily_array) { if($key != '0') $variant_p .= $mec_h_fontfamily_array .', '; } endif; $font_families[] = !empty($mec_h_fontfamily_arr[0]) ? $mec_h_fontfamily_arr[0] . ':' . $variant_h : ''; $font_families[] = !empty($mec_p_fontfamily_arr[0]) ? $mec_p_fontfamily_arr[0] . ':' . $variant_p : ''; if($font_families) { $fonts_url = add_query_arg(array( 'family'=>urlencode(implode('|', $font_families)), 'subset'=>urlencode($subsets), ), 'https://fonts.googleapis.com/css'); } } if(isset($styling['container_normal_width']) && $styling['container_normal_width']) { $mec_container_normal_width = trim( $styling['container_normal_width'] ); if($mec_container_normal_width ) { if (is_numeric($mec_container_normal_width)) { $mec_container_normal_width .= 'px'; } } } if(isset($styling['container_large_width']) && $styling['container_large_width']) { $mec_container_large_width = trim( $styling['container_large_width'] ); if($mec_container_large_width ) { if (is_numeric($mec_container_large_width)) { $mec_container_large_width .= 'px'; } } } $title_color = $title_color_hover = $content_color = ''; if(isset($styling['title_color']) && $styling['title_color']) { $title_color = $styling['title_color']; } if(isset($styling['title_color_hover']) && $styling['title_color_hover']) { $title_color_hover = $styling['title_color_hover']; } if(isset($styling['content_color']) && $styling['content_color']) { $content_color = $styling['content_color']; } ob_start(); echo ':root,::before,::after{'; // render headings font familty if($mec_h_fontfamily_arr): ?> /* == Custom Fonts For H Tag ---------------- */ --mec-heading-font-family: ''; /* == Custom Fonts For P Tag ---------------- */ --mec-paragraph-font-family: ''; /* == TextColors ---------------- */ --mec-color-skin: ; --mec-color-skin-rgba-1: rgba(,,,.25); --mec-color-skin-rgba-2: rgba(,,,.5); --mec-color-skin-rgba-3: rgba(,,,.75); --mec-color-skin-rgba-4: rgba(,,,.11); --mec-color-skin: #40d9f1; --mec-color-skin-rgba-1: rgba(64, 217, 241, .25); --mec-color-skin-rgba-2: rgba(64, 217, 241, .5); --mec-color-skin-rgba-3: rgba(64, 217, 241, .75); --mec-color-skin-rgba-4: rgba(64, 217, 241, .11); --mec-container-normal-width: ; --mec-container-normal-width: 1196px; --mec-container-large-width: ; --mec-container-large-width: 1690px; --mec-title-color: ; --mec-title-color-hover: ; --mec-content-color: ; --mec-fes-main-color: ; --mec-fes-main-color-rgba-1: rgba; --mec-fes-main-color-rgba-2: rgba; --mec-fes-main-color-rgba-3: rgba; --mec-fes-main-color-rgba-4: rgba; --mec-fes-main-color-rgba-5: rgb; --mec-fes-main-color-rgba-6: rgba; --mec-fes-main-color: ; --mec-fes-main-color-rgba-1: rgba; --mec-fes-main-color-rgba-2: rgba; --mec-fes-main-color-rgba-3: rgba; --mec-fes-main-color-rgba-4: rgba; --mec-fes-main-color-rgba-5: rgb; --mec-fes-main-color-rgba-6: rgba; --mec-fluent-main-color: ; --mec-fluent-main-color-rgba-1: rgba; --mec-fluent-main-color-rgba-2: rgba; --mec-fluent-main-color-rgba-3: rgba; --mec-fluent-main-color-rgba-4: rgba; --mec-fluent-main-color-rgba-5: rgba; --mec-fluent-main-color-rgba-6: rgba; --mec-fluent-main-color: ; --mec-fluent-main-color-rgba-1: rgba; --mec-fluent-main-color-rgba-2: rgba; --mec-fluent-main-color-rgba-3: rgba; --mec-fluent-main-color-rgba-4: rgba; --mec-fluent-main-color-rgba-5: rgba; --mec-fluent-main-color-rgba-6: rgba; --mec-fluent-bold-color: ; --mec-fluent-bold-color: ; --mec-fluent-bg-hover-color: ; --mec-fluent-bg-hover-color: ; --mec-fluent-bg-color: ; --mec-fluent-bg-color: ; --mec-fluent-second-bg-color: ; --mec-fluent-second-bg-color: ; .mec-fluent-wrap.mec-skin-list-wrap .mec-calendar, .mec-fluent-wrap .mec-skin-weekly-view-events-container, .mec-fluent-wrap .mec-daily-view-events-left-side, .mec-fluent-wrap .mec-daily-view-events-right-side, .mec-fluent-wrap .mec-yearly-view-wrap .mec-yearly-calendar-sec, .mec-fluent-wrap .mec-yearly-view-wrap .mec-yearly-agenda-sec, .mec-fluent-wrap.mec-skin-grid-wrap .mec-calendar, .mec-fluent-wrap.mec-skin-tile-container .mec-calendar, .mec-fluent-wrap.mec-events-agenda-container .mec-events-agenda-wrap { max-height: unset !important; } .mec-fes-form #mec_reg_form_field_types .button.red:before, .mec-fes-form #mec_reg_form_field_types .button.red { border-color: #ffd2dd; color: #ea6485; } .mec-fes-form #mec_reg_form_field_types .button.red:hover, .mec-fes-form #mec_reg_form_field_types .button.red:before, .mec-fes-form #mec_reg_form_field_types .button:hover, .mec-fes-form #mec_bfixed_form_field_types .button:hover:before, .mec-fes-form #mec_reg_form_field_types .button:hover:before, .mec-fes-form #mec_bfixed_form_field_types .button:hover, .mec-fes-form .mec-form-row .button:not(.wp-color-result):hover { color: #fff; } .mec-fes-form .mec-meta-box-fields h4 label { background: transparent; } .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type2 .mec-event-sharing-wrap:hover li a, .mec-single-fluent-wrap .mec-booking-button, .mec-single-fluent-wrap .mec-booking-button, .mec-single-fluent-wrap .mec-booking-button, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type1 .mec-booking-button, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type4 .mec-booking-button, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type3 .mec-booking-button { color: #fff !important; } .mec-fluent-wrap .mec-yearly-view-wrap .mec-agenda-events-wrap { background-color: transparent !important; } .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type1 .mec-date-wrap i, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type4 .mec-date-wrap i, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type2 .mec-date-wrap i { background-color: #fff !important; } .mec-single-fluent-body .lity-content .mec-events-meta-group-booking button:hover, .mec-fluent-wrap.mec-single-fluent-wrap .mec-events-meta-group-booking button:hover { background-color: #000 !important; } .mec-fluent-wrap.mec-skin-cover-container .mec-event-sharing-wrap>li:first-of-type i, .mec-single-fluent-wrap .mec-single-event-bar .mec-booking-button, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type2 span.mec-event-day-num, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type2 .mec-event-sharing-wrap:hover li:first-child a { color: #fff; } .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type1 .mec-booking-button:hover, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type4 .mec-booking-button:hover, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type3 .mec-booking-button:hover { background-color: #fff; }