コード例 #1
0
ファイル: track.php プロジェクト: bgabor/RenaniaOpencart
 $TRACKINGSCRIPT = str_replace("<!--is_tablet-->", parseBool($MobileDetect->isMobile()), $TRACKINGSCRIPT);
 $TRACKINGSCRIPT = str_replace("<!--is_ie-->", parseBool($detector->BrowserName == "Internet Explorer"), $TRACKINGSCRIPT);
 $TRACKINGSCRIPT = str_replace("<!--direct_login-->", parseBool(!empty($_GET["dl"])), $TRACKINGSCRIPT);
 if (!empty($_GET["ovlc"]) && !($detector->BrowserName != "Internet Explorer" || $detector->BrowserVersion > 6)) {
     unset($_GET["ovlc"]);
 }
 $TRACKINGSCRIPT = str_replace("<!--is_ovlpos-->", parseBool($detector->BrowserName != "Internet Explorer" || $detector->BrowserVersion > 6), $TRACKINGSCRIPT);
 $TRACKINGSCRIPT = str_replace("<!--is_ovlc-->", parseBool(!empty($_GET["ovlc"])), $TRACKINGSCRIPT);
 if (!empty($_GET["ovlc"]) && strlen(base64UrlDecode($_GET["ovlc"])) == 7) {
     require LIVEZILLA_PATH . "_lib/functions.external.inc.php";
     $TRACKINGSCRIPT .= getFile(TEMPLATE_SCRIPT_OVERLAY_CHAT);
     $TRACKINGSCRIPT = str_replace("<!--def_trans_into-->", $CONFIG["gl_default_language"], $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--header_offline-->", base64_encode(getOParam("ovlto", $LZLANG["client_overlay_title_offline"], $c, FILTER_HTML_ENTITIES)), $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--header_online-->", base64_encode(getOParam("ovlt", $LZLANG["client_overlay_title_online"], $c, FILTER_HTML_ENTITIES)), $TRACKINGSCRIPT);
     $color = getBrightness(base64UrlDecode($_GET["ovlc"])) > getBrightness(base64UrlDecode($_GET["ovlct"])) ? $_GET["ovlct"] : $_GET["ovlc"];
     $TRACKINGSCRIPT = str_replace("<!--color-->", hexDarker(str_replace("#", "", base64UrlDecode($color)), 50), $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--tickets_external-->", parseBool($openTicketExternal), $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--chats_external-->", parseBool($openChatExternal), $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--offline_message_mode-->", $CONFIG["gl_om_mode"], $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--offline_message_http-->", $CONFIG["gl_om_http"], $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--post_html-->", base64_encode(str_replace("<!--color-->", "#000000", str_replace("<!--lang_client_edit-->", strtoupper($LZLANG["client_edit"]), getFile(TEMPLATE_HTML_MESSAGE_OVERLAY_CHAT_EXTERN)))), $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--add_html-->", base64_encode(getFile(TEMPLATE_HTML_MESSAGE_OVERLAY_CHAT_ADD)), $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--offline_message_pop-->", parseBool(!empty($CONFIG["gl_om_pop_up"])), $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--ec_t-->", $eca = getOParam("eca", 0, $nu, FILTER_VALIDATE_INT), $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--gtv2_api_key-->", strlen($CONFIG["gl_otrs"]) > 1 ? base64_encode($CONFIG["gl_otrs"]) : "", $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--shadow-->", parseBool(!empty($_GET["ovlsc"])), $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--shadowx-->", getOParam("ovlsx", 0, $nu, FILTER_SANITIZE_NUMBER_INT), $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--shadowy-->", getOParam("ovlsy", 0, $nu, FILTER_SANITIZE_NUMBER_INT), $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--shadowb-->", getOParam("ovlsb", 0, $nu, FILTER_SANITIZE_NUMBER_INT), $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--shadowc-->", getOParam("ovlsc", 0, $nu, FILTER_SANITIZE_SPECIAL_CHARS), $TRACKINGSCRIPT);
     $TRACKINGSCRIPT = str_replace("<!--hide_group_select_chat-->", parseBool(getOParam("hcgs", 0, $nu, FILTER_VALIDATE_INT) == "1"), $TRACKINGSCRIPT);
コード例 #2
0
 function sc_DKOATEDCTABUTTONS($atts)
 {
     extract(shortcode_atts(array("url" => '', "text" => '', "desc" => '', "title" => '', "type" => 'normal', "style" => 'normal', "color" => 'black', "textcolor" => '', "height" => '', "width" => '', "opennewwindow" => 'yes', "nofollow" => 'yes', "custom" => ''), $atts));
     if ($url == '' && get_option('fallback_url') == '') {
         $url = get_bloginfo('url');
     }
     if ($url == '' && get_option('fallback_url') != '') {
         $url = get_option('fallback_url');
     }
     if ($url != '' && get_option('fallback_url') == '') {
         $url = $url;
     }
     if ($url != '' && get_option('fallback_url') != '') {
         $url = $url;
     }
     if ($text == '' && get_option('fallback_text') == '') {
         $text = get_bloginfo('url');
     }
     if ($text == '' && get_option('fallback_text') != '') {
         $text = get_option('fallback_text');
     }
     if ($text != '' && get_option('fallback_text') == '') {
         $text = $text;
     }
     if ($text != '' && get_option('fallback_text') != '') {
         $text = $text;
     }
     if ($desc == '' && get_option('fallback_desc') == '') {
         $desc = '';
     }
     if ($desc == '' && get_option('fallback_desc') != '') {
         $desc = '<span><br /><em>' . get_option('fallback_desc') . '</em></span>';
     }
     if ($desc != '' && get_option('fallback_desc') == '') {
         $desc = '<span><br /><em>' . $desc . '</em></span>';
     }
     if ($desc != '' && get_option('fallback_desc') != '') {
         $desc = '<span><br /><em>' . $desc . '</em></span>';
     }
     if ($title == '' && get_option('fallback_title') == '') {
         $title = $text;
     }
     if ($title == '' && get_option('fallback_title') != '') {
         $title = get_option('fallback_title');
     }
     if ($title != '' && get_option('fallback_title') == '') {
         $title = $title;
     }
     if ($title != '' && get_option('fallback_title') != '') {
         $title = $title;
     }
     if ($type == '' && get_option('fallback_type') == '') {
         $type = 'normal';
     }
     if ($type == '' && get_option('fallback_type') != '') {
         $type = get_option('fallback_type');
     }
     if ($type != '' && get_option('fallback_type') == '') {
         $type = $type;
     }
     if ($type != '' && get_option('fallback_type') != '') {
         $type = $type;
     }
     if ($style == '' && get_option('fallback_style') == '') {
         $style = 'normal';
     }
     if ($style == '' && get_option('fallback_style') != '') {
         $style = get_option('fallback_style');
     }
     if ($style == 'normal' && get_option('fallback_style') == '') {
         $style = 'normal';
     }
     if ($style == 'normal' && get_option('fallback_style') != '') {
         $style = 'normal';
     }
     if ($style == 'gradient' && get_option('fallback_style') == '') {
         $style = 'gradient';
     }
     if ($style == 'gradient' && get_option('fallback_style') != '') {
         $style = 'gradient';
     }
     if ($style == 'stitched' && get_option('fallback_style') == '') {
         $style = 'stitched';
     }
     if ($style == 'stitched' && get_option('fallback_style') != '') {
         $style = 'stitched';
     }
     if ($style != 'normal' && $style != 'gradient' && $style != 'stitched' && get_option('fallback_style') == '') {
         $style = 'normal';
     }
     if ($style != 'normal' && $style != 'gradient' && $style != 'stitched' && get_option('fallback_style') != '') {
         $style = get_option('fallback_style');
     }
     if ($color == '' && get_option('fallback_color') == '' && $custom == '') {
         $color = 'black';
     }
     if ($color == '' && get_option('fallback_color') == '' && $custom == 'no') {
         $color = 'black';
     }
     if ($color == '' && get_option('fallback_color') == '' && $custom == 'yes') {
         $color = 'custom';
     }
     if ($color == '' && get_option('fallback_color') != '' && $custom == '') {
         $color = get_option('fallback_color');
     }
     if ($color == '' && get_option('fallback_color') != '' && $custom == 'no') {
         $color = get_option('fallback_color');
     }
     if ($color == '' && get_option('fallback_color') != '' && $custom == 'yes') {
         $color = 'custom';
     }
     if ($color == 'black' && get_option('fallback_color') != '' && $custom == '') {
         $color = 'black';
     }
     if ($color == 'black' && get_option('fallback_color') == '' && $custom == '') {
         $color = 'black';
     }
     if ($color == 'grey' && get_option('fallback_color') != '' && $custom == '') {
         $color = 'grey';
     }
     if ($color == 'grey' && get_option('fallback_color') == '' && $custom == '') {
         $color = 'grey';
     }
     if ($color == 'white' && get_option('fallback_color') != '' && $custom == '') {
         $color = 'white';
     }
     if ($color == 'white' && get_option('fallback_color') == '' && $custom == '') {
         $color = 'white';
     }
     if ($color == 'red' && get_option('fallback_color') != '' && $custom == '') {
         $color = 'red';
     }
     if ($color == 'red' && get_option('fallback_color') == '' && $custom == '') {
         $color = 'red';
     }
     if ($color == 'green' && get_option('fallback_color') != '' && $custom == '') {
         $color = 'green';
     }
     if ($color == 'green' && get_option('fallback_color') == '' && $custom == '') {
         $color = 'green';
     }
     if ($color == 'blue' && get_option('fallback_color') != '' && $custom == '') {
         $color = 'blue';
     }
     if ($color == 'blue' && get_option('fallback_color') == '' && $custom == '') {
         $color = 'blue';
     }
     if ($color == 'pink' && get_option('fallback_color') != '' && $custom == '') {
         $color = 'pink';
     }
     if ($color == 'pink' && get_option('fallback_color') == '' && $custom == '') {
         $color = 'pink';
     }
     if ($color == 'orange' && get_option('fallback_color') != '' && $custom == '') {
         $color = 'orange';
     }
     if ($color == 'orange' && get_option('fallback_color') == '' && $custom == '') {
         $color = 'orange';
     }
     if ($color == 'yellow' && get_option('fallback_color') != '' && $custom == '') {
         $color = 'yellow';
     }
     if ($color == 'yellow' && get_option('fallback_color') == '' && $custom == '') {
         $color = 'yellow';
     }
     if ($color == 'brown' && get_option('fallback_color') != '' && $custom == '') {
         $color = 'brown';
     }
     if ($color == 'brown' && get_option('fallback_color') == '' && $custom == '') {
         $color = 'brown';
     }
     if ($textcolor == '' && get_option('fallback_textcolor') == '') {
         $textcolor = 'color:#000000;';
     }
     if ($textcolor != '' && get_option('fallback_textcolor') == '') {
         $textcolor = 'color:' . $textcolor . ';';
     }
     if ($textcolor != '' && get_option('fallback_textcolor') != '') {
         $textcolor = 'color:' . $textcolor . ';';
     }
     if ($height == '' && get_option('fallback_height') == '') {
         $height = '';
     }
     if ($height == '' && get_option('fallback_height') != '' && is_numeric(get_option('fallback_height'))) {
         $height = 'height:' . get_option('fallback_height') . 'px!important;max-height:' . get_option('fallback_height') . 'px!important;vertical-align:middle;display:table-cell;';
     }
     if ($height != '' && is_numeric($height)) {
         $height = 'height:' . $height . 'px!important;max-height:' . $height . 'px!important;vertical-align:middle;display:table-cell;';
     }
     if ($width == '' && get_option('fallback_width') == '') {
         $width = '';
     }
     if ($width == '' && get_option('fallback_width') != '' && is_numeric(get_option('fallback_width'))) {
         $width = 'width:' . get_option('fallback_width') . 'px!important;max-width:' . get_option('fallback_width') . 'px!important;';
     }
     if ($width != '' && is_numeric($width)) {
         $width = 'width:' . $width . 'px!important;max-width:' . $width . 'px!important;';
     }
     if ($customcss == '') {
         $customcss = '';
     }
     if ($customcss != '') {
         $customcss = get_option('fallback_customcss');
     }
     if ($opennewwindow == '' && get_option('fallback_opennewwindow') == '') {
         $opennewwindow = ' target="_blank"';
     }
     if ($opennewwindow == '' && get_option('fallback_opennewwindow') == 'yes') {
         $opennewwindow = ' target="_blank"';
     }
     if ($opennewwindow == '' && get_option('fallback_opennewwindow') == 'no') {
         $opennewwindow = '';
     }
     if ($opennewwindow == 'yes' && get_option('fallback_opennewwindow') == '') {
         $opennewwindow = ' target="_blank"';
     }
     if ($opennewwindow == 'yes' && get_option('fallback_opennewwindow') == 'yes') {
         $opennewwindow = ' target="_blank"';
     }
     if ($opennewwindow == 'yes' && get_option('fallback_opennewwindow') == 'no') {
         $opennewwindow = ' target="_blank"';
     }
     if ($opennewwindow == 'no' && get_option('fallback_opennewwindow') == '') {
         $opennewwindow = '';
     }
     if ($opennewwindow == 'no' && get_option('fallback_opennewwindow') == 'yes') {
         $opennewwindow = '';
     }
     if ($opennewwindow == 'no' && get_option('fallback_opennewwindow') == 'no') {
         $opennewwindow = '';
     }
     if ($nofollow == '' && get_option('fallback_nofollow') == '') {
         $nofollow = ' rel="nofollow"';
     }
     if ($nofollow == '' && get_option('fallback_nofollow') == 'yes') {
         $nofollow = ' rel="nofollow"';
     }
     if ($nofollow == '' && get_option('fallback_nofollow') == 'no') {
         $nofollow = '';
     }
     if ($nofollow == 'yes' && get_option('fallback_nofollow') == '') {
         $nofollow = ' rel="nofollow"';
     }
     if ($nofollow == 'yes' && get_option('fallback_nofollow') == 'yes') {
         $nofollow = ' rel="nofollow"';
     }
     if ($nofollow == 'yes' && get_option('fallback_nofollow') == 'no') {
         $nofollow = ' rel="nofollow"';
     }
     if ($nofollow == 'no' && get_option('fallback_nofollow') == '') {
         $nofollow = '';
     }
     if ($nofollow == 'no' && get_option('fallback_nofollow') == 'yes') {
         $nofollow = '';
     }
     if ($nofollow == 'no' && get_option('fallback_nofollow') == 'no') {
         $nofollow = '';
     }
     if ($style == 'normal') {
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') != '' && $custom == '') {
             $custom = '<style>.hex' . substr($color, 1) . '.dkoatedbuttonnormal,.hex' . substr($color, 1) . '.dkoatedbuttonnormal:visited{background-color:' . $color . '!important}.hex' . substr($color, 1) . '.dkoatedbuttonnormal:hover{background-color:' . $color . '!important}</style>';
             $color = 'hex' . substr($color, 1);
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') == '' && $custom == '') {
             $custom = '<style>.hex' . substr($color, 1) . '.dkoatedbuttonnormal,.hex' . substr($color, 1) . '.dkoatedbuttonnormal:visited{background-color:' . $color . '!important;}.hex' . substr($color, 1) . '.dkoatedbuttonnormal:hover{background-color:' . $color . '!important}</style>';
             $color = 'hex' . substr($color, 1);
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') != '' && $custom == 'no') {
             $custom = '<style>.hex' . substr($color, 1) . '.dkoatedbuttonnormal,.hex' . substr($color, 1) . '.dkoatedbuttonnormal:visited{background-color:' . $color . '!important;}.hex' . substr($color, 1) . '.dkoatedbuttonnormal:hover{background-color:' . $color . '!important}</style>';
             $color = 'hex' . substr($color, 1);
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') == '' && $custom == 'no') {
             $custom = '<style>.hex' . substr($color, 1) . '.dkoatedbuttonnormal,.hex' . substr($color, 1) . '.dkoatedbuttonnormal:visited{background-color:' . $color . '!important;}.hex' . substr($color, 1) . '.dkoatedbuttonnormal:hover{background-color:' . $color . '!important}</style>';
             $color = 'hex' . substr($color, 1);
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') != '' && $custom == 'yes') {
             $custom = '<style>.custom.dkoatedbuttonnormal,.custom.dkoatedbuttonnormal:visited{background-color:' . get_option('fallback_customvi') . '!important}.custom.dkoatedbuttonnormal:hover{background-color:' . get_option('fallback_customho') . '!important}</style>';
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') == '' && $custom == 'yes') {
             $custom = '<style>.custom.dkoatedbuttonnormal,.custom.dkoatedbuttonnormal:visited{background-color:' . get_option('fallback_customvi') . '!important}.custom.dkoatedbuttonnormal:hover{background-color:' . get_option('fallback_customho') . '!important}</style>';
         }
         if ($custom == 'yes') {
             $custom = '<style>.custom.dkoatedbuttonnormal,.custom.dkoatedbuttonnormal:visited{background-color:' . get_option('fallback_customvi') . '!important}.custom.dkoatedbuttonnormal:hover{background-color:' . get_option('fallback_customho') . '!important}</style>';
         }
     }
     if ($style == 'gradient') {
         $colordark = hexDarker($color, 50);
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') != '' && $custom == '') {
             $custom = '<style>.hex' . substr($color, 1) . '.dkoatedbuttongradient,.hex' . substr($color, 1) . '.dkoatedbuttongradient:visited{background:' . $color . '!important;;background:-moz-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-webkit-gradient(linear,left top,right bottom,color-stop(0%,' . $color . '),color-stop(100%,' . $colordark . '))!important;background:-webkit-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-o-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-ms-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'' . $color . '\',endColorstr=\'' . $colordark . '\',GradientType=1)!important}.hex' . substr($color, 1) . '.dkoatedbuttongradient:hover{background:' . $color . '!important;background:-moz-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,' . $color . '),color-stop(100%,' . $colordark . '))!important;background:-webkit-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-o-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-ms-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'' . $color . '\',endColorstr=\'' . $colordark . '\',GradientType=0)!important}</style>';
             $color = 'hex' . substr($color, 1);
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') == '' && $custom == '') {
             $custom = '<style>.hex' . substr($color, 1) . '.dkoatedbuttongradient,.hex' . substr($color, 1) . '.dkoatedbuttongradient:visited{background:' . $color . '!important;;background:-moz-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-webkit-gradient(linear,left top,right bottom,color-stop(0%,' . $color . '),color-stop(100%,' . $colordark . '))!important;background:-webkit-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-o-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-ms-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'' . $color . '\',endColorstr=\'' . $colordark . '\',GradientType=1)!important}.hex' . substr($color, 1) . '.dkoatedbuttongradient:hover{background:' . $color . '!important;background:-moz-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,' . $color . '),color-stop(100%,' . $colordark . '))!important;background:-webkit-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-o-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-ms-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'' . $color . '\',endColorstr=\'' . $colordark . '\',GradientType=0)!important}</style>';
             $color = 'hex' . substr($color, 1);
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') != '' && $custom == 'no') {
             $custom = '<style>.hex' . substr($color, 1) . '.dkoatedbuttongradient,.hex' . substr($color, 1) . '.dkoatedbuttongradient:visited{background:' . $color . '!important;;background:-moz-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-webkit-gradient(linear,left top,right bottom,color-stop(0%,' . $color . '),color-stop(100%,' . $colordark . '))!important;background:-webkit-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-o-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-ms-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'' . $color . '\',endColorstr=\'' . $colordark . '\',GradientType=1)!important;}.hex' . substr($color, 1) . '.dkoatedbuttongradient:hover{background:' . $color . '!important;background:-moz-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,' . $color . '),color-stop(100%,' . $colordark . '))!important;background:-webkit-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-o-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-ms-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'' . $color . '\',endColorstr=\'' . $colordark . '\',GradientType=0)!important}</style>';
             $color = 'hex' . substr($color, 1);
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') == '' && $custom == 'no') {
             $custom = '<style>.hex' . substr($color, 1) . '.dkoatedbuttongradient,.hex' . substr($color, 1) . '.dkoatedbuttongradient:visited{background:' . $color . '!important;;background:-moz-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-webkit-gradient(linear,left top,right bottom,color-stop(0%,' . $color . '),color-stop(100%,' . $colordark . '))!important;background:-webkit-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-o-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-ms-linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:linear-gradient(-45deg,' . $color . ' 0%,' . $colordark . ' 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'' . $color . '\',endColorstr=\'' . $colordark . '\',GradientType=1)!important;}.hex' . substr($color, 1) . '.dkoatedbuttongradient:hover{background:' . $color . '!important;background:-moz-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,' . $color . '),color-stop(100%,' . $colordark . '))!important;background:-webkit-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-o-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:-ms-linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;background:linear-gradient(top,' . $color . ' 0%,' . $colordark . ' 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'' . $color . '\',endColorstr=\'' . $colordark . '\',GradientType=0)!important}</style>';
             $color = 'hex' . substr($color, 1);
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') != '' && $custom == 'yes') {
             $custom = '<style>.custom.dkoatedbuttongradient,.custom.dkoatedbuttongradient:visited{background:' . get_option('fallback_customvi') . '!important;;background:-moz-linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-webkit-gradient(linear,left top,right bottom,color-stop(0%,' . get_option('fallback_customvi') . '),color-stop(100%,' . get_option('fallback_customho') . '))!important;background:-webkit-linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-o-linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-ms-linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'' . get_option('fallback_customvi') . '\',endColorstr=\'' . get_option('fallback_customho') . '\',GradientType=1)!important;}.custom.dkoatedbuttongradient:hover{background:' . get_option('fallback_customvi') . '!important;background:-moz-linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,' . $color . '),color-stop(100%,' . get_option('fallback_customho') . '))!important;background:-webkit-linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-o-linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-ms-linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'' . get_option('fallback_customvi') . '\',endColorstr=\'' . get_option('fallback_customho') . '\',GradientType=0)!important}</style>';
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') == '' && $custom == 'yes') {
             $custom = '<style>.custom.dkoatedbuttongradient,.custom.dkoatedbuttongradient:visited{background:' . get_option('fallback_customvi') . '!important;;background:-moz-linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-webkit-gradient(linear,left top,right bottom,color-stop(0%,' . get_option('fallback_customvi') . '),color-stop(100%,' . get_option('fallback_customho') . '))!important;background:-webkit-linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-o-linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-ms-linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'' . get_option('fallback_customvi') . '\',endColorstr=\'' . get_option('fallback_customho') . '\',GradientType=1)!important;}.custom.dkoatedbuttongradient:hover{background:' . get_option('fallback_customvi') . '!important;background:-moz-linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,' . $color . '),color-stop(100%,' . get_option('fallback_customho') . '))!important;background:-webkit-linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-o-linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-ms-linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'' . get_option('fallback_customvi') . '\',endColorstr=\'' . get_option('fallback_customho') . '\',GradientType=0)!important}</style>';
         }
         if ($custom == 'yes') {
             $custom = '<style>.custom.dkoatedbuttongradient,.custom.dkoatedbuttongradient:visited{background:' . get_option('fallback_customvi') . '!important;;background:-moz-linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-webkit-gradient(linear,left top,right bottom,color-stop(0%,' . get_option('fallback_customvi') . '),color-stop(100%,' . get_option('fallback_customho') . '))!important;background:-webkit-linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-o-linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-ms-linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:linear-gradient(-45deg,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'' . get_option('fallback_customvi') . '\',endColorstr=\'' . get_option('fallback_customho') . '\',GradientType=1)!important;}.custom.dkoatedbuttongradient:hover{background:' . get_option('fallback_customvi') . '!important;background:-moz-linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,' . $color . '),color-stop(100%,' . get_option('fallback_customho') . '))!important;background:-webkit-linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-o-linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:-ms-linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;background:linear-gradient(top,' . get_option('fallback_customvi') . ' 0%,' . get_option('fallback_customho') . ' 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'' . get_option('fallback_customvi') . '\',endColorstr=\'' . get_option('fallback_customho') . '\',GradientType=0)!important}</style>';
         }
     }
     if (get_option('fallback_donated') == '' or get_option('fallback_donated') == 'a') {
         $kakuni = '<!-- DKOATED CTA Buttons by http://dkoated.com -->';
     }
     if (get_option('fallback_donated') == 'b') {
         $kakuni = '';
     }
     if ($style == 'stitched') {
         $colordark = hexDarker($color, 50);
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') != '' && $custom == '') {
             $custom = '<style>.hex' . substr($color, 1) . '.dkoatedbuttonstitched,.hex' . substr($color, 1) . '.dkoatedbuttonstitched:visited{background:' . $color . ';-moz-box-shadow:0 0 0 3px ' . $color . ',0 4px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 0 0 3px ' . $color . ',0 4px 3px rgba(0,0,0,0.5);box-shadow:0 0 0 3px ' . $color . ',0 4px 3px rgba(0,0,0,0.5);}.hex' . substr($color, 1) . '.dkoatedbuttonstitched:hover{background:' . $colordark . ';-moz-box-shadow:0 0 0 3px ' . $colordark . ',0 4px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 0 0 3px ' . $colordark . ',0 4px 3px rgba(0,0,0,0.5);box-shadow:0 0 0 3px ' . $colordark . ',0 4px 3px rgba(0,0,0,0.5)}</style>';
             $color = 'hex' . substr($color, 1);
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') == '' && $custom == '') {
             $custom = '<style>.hex' . substr($color, 1) . '.dkoatedbuttonstitched,.hex' . substr($color, 1) . '.dkoatedbuttonstitched:visited{background:' . $color . ';-moz-box-shadow:0 0 0 3px ' . $color . ',0 4px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 0 0 3px ' . $color . ',0 4px 3px rgba(0,0,0,0.5);box-shadow:0 0 0 3px ' . $color . ',0 4px 3px rgba(0,0,0,0.5);}.hex' . substr($color, 1) . '.dkoatedbuttonstitched:hover{background:' . $colordark . ';-moz-box-shadow:0 0 0 3px ' . $colordark . ',0 4px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 0 0 3px ' . $colordark . ',0 4px 3px rgba(0,0,0,0.5);box-shadow:0 0 0 3px ' . $colordark . ',0 4px 3px rgba(0,0,0,0.5)}</style>';
             $color = 'hex' . substr($color, 1);
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') != '' && $custom == 'no') {
             $custom = '<style>.hex' . substr($color, 1) . '.dkoatedbuttonstitched,.hex' . substr($color, 1) . '.dkoatedbuttonstitched:visited{background:' . $color . ';-moz-box-shadow:0 0 0 3px ' . $color . ',0 4px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 0 0 3px ' . $color . ',0 4px 3px rgba(0,0,0,0.5);box-shadow:0 0 0 3px ' . $color . ',0 4px 3px rgba(0,0,0,0.5);}.hex' . substr($color, 1) . '.dkoatedbuttonstitched:hover{background:' . $colordark . ';-moz-box-shadow:0 0 0 3px ' . $colordark . ',0 4px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 0 0 3px ' . $colordark . ',0 4px 3px rgba(0,0,0,0.5);box-shadow:0 0 0 3px ' . $colordark . ',0 4px 3px rgba(0,0,0,0.5)}</style>';
             $color = 'hex' . substr($color, 1);
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') == '' && $custom == 'no') {
             $custom = '<style>.hex' . substr($color, 1) . '.dkoatedbuttonstitched,.hex' . substr($color, 1) . '.dkoatedbuttonstitched:visited{background:' . $color . ';-moz-box-shadow:0 0 0 3px ' . $color . ',0 4px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 0 0 3px ' . $color . ',0 4px 3px rgba(0,0,0,0.5);box-shadow:0 0 0 3px ' . $color . ',0 4px 3px rgba(0,0,0,0.5);}.hex' . substr($color, 1) . '.dkoatedbuttonstitched:hover{background:' . $colordark . ';-moz-box-shadow:0 0 0 3px ' . $colordark . ',0 4px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 0 0 3px ' . $colordark . ',0 4px 3px rgba(0,0,0,0.5);box-shadow:0 0 0 3px ' . $colordark . ',0 4px 3px rgba(0,0,0,0.5)}</style>';
             $color = 'hex' . substr($color, 1);
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') != '' && $custom == 'yes') {
             $custom = '<style>.custom.dkoatedbuttonstitched,.custom.dkoatedbuttonstitched:visited{background:' . get_option('fallback_customvi') . ';-moz-box-shadow:0 0 0 3px ' . get_option('fallback_customvi') . ',0 4px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 0 0 3px ' . get_option('fallback_customvi') . ',0 4px 3px rgba(0,0,0,0.5);box-shadow:0 0 0 3px ' . get_option('fallback_customvi') . ',0 4px 3px rgba(0,0,0,0.5);}.custom.dkoatedbuttonstitched:hover{background-color:' . get_option('fallback_customho') . '!important}</style>';
         }
         if (preg_match('/^#[a-f0-9]{6}$/i', $color) && get_option('fallback_color') == '' && $custom == 'yes') {
             $custom = '<style>.custom.dkoatedbuttonstitched,.custom.dkoatedbuttonstitched:visited{background:' . get_option('fallback_customvi') . ';-moz-box-shadow:0 0 0 3px ' . get_option('fallback_customvi') . ',0 4px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 0 0 3px ' . get_option('fallback_customvi') . ',0 4px 3px rgba(0,0,0,0.5);box-shadow:0 0 0 3px ' . get_option('fallback_customvi') . ',0 4px 3px rgba(0,0,0,0.5);}.custom.dkoatedbuttonstitched:hover{background:' . get_option('fallback_customho') . ';-moz-box-shadow:0 0 0 3px ' . get_option('fallback_customho') . ',0 4px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 0 0 3px ' . get_option('fallback_customho') . ',0 4px 3px rgba(0,0,0,0.5);box-shadow:0 0 0 3px ' . get_option('fallback_customho') . ',0 4px 3px rgba(0,0,0,0.5)}</style>';
         }
         if ($custom == 'yes') {
             $custom = '<style>.custom.dkoatedbuttonstitched,.custom.dkoatedbuttonstitched:visited{background-color:' . get_option('fallback_customvi') . '!important;}.custom.dkoatedbuttonstitched:hover{background:' . get_option('fallback_customho') . ';-moz-box-shadow:0 0 0 3px ' . get_option('fallback_customho') . ',0 4px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 0 0 3px ' . get_option('fallback_customho') . ',0 4px 3px rgba(0,0,0,0.5);box-shadow:0 0 0 3px ' . get_option('fallback_customho') . ',0 4px 3px rgba(0,0,0,0.5)}</style>';
         }
     }
     /* @var string */
     /* This is the output */
     $var_sHTML = '';
     $var_sHTML .= $custom . $kakuni . '<a class="' . $type . ' ' . $color . ' dkoatedbutton' . $style . '" style="' . $width . '' . $height . '' . $customcss . '' . $textcolor . '" href="' . $url . '" title="' . $title . '" ' . $opennewwindow . ' ' . $nofollow . '>' . $text . $desc . '</a>';
     return $var_sHTML;
 }
コード例 #3
0
function mk_dynamic_css()
{
    wp_enqueue_style('mk-style', get_stylesheet_uri(), false, false, 'all');
    global $mk_options;
    $output = $fontface_style_1 = $fontface_style_2 = $fontface_css_1 = $fontface_css_2 = $google_font_2 = $google_font_1 = $typekit_fonts_1 = $typekit_fonts_2 = '';
    $safefont_css_2 = $safefont_css_1 = $body_bg = $header_bg = $banner_bg = $page_bg = $footer_bg = $classic_nav_bg = '';
    /* Get skin color from global $_GET for skin switcher panel */
    if (isset($_GET['skin'])) {
        $skin_color = '#' . $_GET['skin'];
    } else {
        $skin_color = $mk_options['skin_color'];
    }
    ###########################################
    # Typography
    ###########################################
    $special_elements_1_list = isset($mk_options['special_elements_1']) ? $mk_options['special_elements_1'] : '';
    $special_elements_2_list = isset($mk_options['special_elements_2']) ? $mk_options['special_elements_2'] : '';
    function my_strstr($haystack, $needle, $before_needle = false)
    {
        if (!$before_needle) {
            return strstr($haystack, $needle);
        } else {
            return substr($haystack, 0, strpos($haystack, $needle));
        }
    }
    /* fontface */
    if (isset($mk_options['special_fonts_type_1']) && $mk_options['special_fonts_type_1'] == 'fontface') {
        $fontface_1 = $mk_options['special_fonts_list_1'];
        $stylesheet = FONTFACE_DIR . '/fontface_stylesheet.css';
        if (file_exists($stylesheet)) {
            $file_content = file_get_contents($stylesheet);
            if (preg_match("/@font-face\\s*{[^}]*?font-family\\s*:\\s*('|\"){$fontface_1}\\1.*?}/is", $file_content, $match)) {
                $fontface_style_1 = preg_replace("/url\\s*\\(\\s*['|\"]\\s*/is", "\\0" . FONTFACE_URI . "/", $match[0]) . "\n";
            }
            if (is_array($mk_options['special_elements_1'])) {
                $special_elements_1 = implode(', ', $mk_options['special_elements_1']);
            } else {
                $special_elements_1 = $mk_options['special_elements_1'];
            }
            if ($special_elements_1 && $fontface_1) {
                $fontface_css_1 = $special_elements_1 . '{ font-family: "' . $fontface_1 . '"}';
            }
        }
    }
    if (isset($mk_options['special_fonts_type_2']) && $mk_options['special_fonts_type_2'] == 'fontface') {
        $fontface_2 = $mk_options['special_fonts_list_2'];
        $stylesheet = FONTFACE_DIR . '/fontface_stylesheet.css';
        if (file_exists($stylesheet)) {
            $file_content = file_get_contents($stylesheet);
            if (preg_match("/@font-face\\s*{[^}]*?font-family\\s*:\\s*('|\"){$fontface_2}\\1.*?}/is", $file_content, $match)) {
                $fontface_style_2 = preg_replace("/url\\s*\\(\\s*['|\"]\\s*/is", "\\0" . FONTFACE_URI . "/", $match[0]) . "\n";
            }
            if (is_array($special_elements_2_list)) {
                $special_elements_2 = implode(', ', $special_elements_2_list);
            } else {
                $special_elements_2 = $special_elements_2_list;
            }
            if ($special_elements_2 && $fontface_2) {
                $fontface_css_2 = $special_elements_2 . '{ font-family: "' . $fontface_2 . '"}';
            }
        }
    }
    /**
     * Safe Fonts
     * */
    if (isset($mk_options['special_fonts_type_1']) && $mk_options['special_fonts_type_1'] == 'safe_font') {
        $safefont_1 = $mk_options['special_fonts_list_1'];
        if (is_array($mk_options['special_elements_1'])) {
            $special_elements_1 = implode(', ', $mk_options['special_elements_1']);
        } else {
            $special_elements_1 = $mk_options['special_elements_1'];
        }
        if ($special_elements_1 && $safefont_1) {
            $safefont_css_1 = $special_elements_1 . '{ font-family: ' . $safefont_1 . '}';
        }
    }
    if (isset($mk_options['special_fonts_type_1']) && $mk_options['special_fonts_type_2'] == 'safe_font') {
        $safefont_2 = $mk_options['special_fonts_list_2'];
        if (is_array($mk_options['special_elements_2'])) {
            $special_elements_2 = implode(', ', $mk_options['special_elements_2']);
        } else {
            $special_elements_2 = $mk_options['special_elements_2'];
        }
        if ($special_elements_2 && $safefont_2) {
            $safefont_css_2 = $special_elements_2 . '{ font-family: ' . $safefont_2 . '}';
        }
    }
    /**
     * Typekit fonts
     * */
    $typekit_id = isset($mk_options['typekit_id']) ? $mk_options['typekit_id'] : '';
    $typekit_elements_list_1 = isset($mk_options['typekit_elements_1']) ? $mk_options['typekit_elements_1'] : '';
    $typekit_font_family_1 = isset($mk_options['typekit_font_family_1']) ? $mk_options['typekit_font_family_1'] : '';
    if ($typekit_id != '' && $typekit_elements_list_1 != '' && $typekit_font_family_1 != '') {
        if (is_array($typekit_elements_list_1)) {
            $typekit_elements_list_1 = implode(', ', $typekit_elements_list_1);
        } else {
            $typekit_elements_list_1 = $typekit_elements_list_1;
        }
        $typekit_fonts_1 = $typekit_elements_list_1 . ' {font-family: "' . $typekit_font_family_1 . '"}';
    }
    $typekit_elements_list_2 = isset($mk_options['typekit_elements_2']) ? $mk_options['typekit_elements_2'] : '';
    $typekit_font_family_2 = isset($mk_options['typekit_font_family_2']) ? $mk_options['typekit_font_family_2'] : '';
    if ($typekit_id != '' && $typekit_elements_list_2 != '' && $typekit_font_family_2 != '') {
        if (is_array($typekit_elements_list)) {
            $typekit_elements_list_2 = implode(', ', $typekit_elements_list_2);
        } else {
            $typekit_elements_list_2 = $typekit_elements_list_2;
        }
        $typekit_fonts_2 = $typekit_elements_list_2 . ' {font-family: "' . $typekit_font_family_2 . '"}';
    }
    /**
     * Google Fonts
     * */
    if (is_array($special_elements_1_list)) {
        $special_elements_1 = implode(', ', $special_elements_1_list);
    } else {
        $special_elements_1 = $special_elements_1_list;
    }
    if (is_array($special_elements_2_list)) {
        $special_elements_2 = implode(', ', $special_elements_2_list);
    } else {
        $special_elements_2 = $special_elements_2_list;
    }
    if ($special_elements_1 && $mk_options['special_fonts_type_1'] == 'google') {
        $google_font_1 = $special_elements_1 . ' {font-family: ';
        $format_name1 = strpos($mk_options['special_fonts_list_1'], ':');
        if ($format_name1 !== false) {
            $google_font_1 .= my_strstr(str_replace('+', ' ', $mk_options['special_fonts_list_1']), ':', true);
        } else {
            $google_font_1 .= str_replace('+', ' ', $mk_options['special_fonts_list_1']);
        }
        $google_font_1 .= ' }';
    }
    if ($special_elements_2 && $mk_options['special_fonts_type_2'] == 'google') {
        $google_font_2 = $special_elements_2 . ' {font-family: ';
        $format_name2 = strpos($mk_options['special_fonts_list_2'], ':');
        if ($format_name2 !== false) {
            $google_font_2 .= my_strstr(str_replace('+', ' ', $mk_options['special_fonts_list_2']), ':', true);
        } else {
            $google_font_2 .= str_replace('+', ' ', $mk_options['special_fonts_list_2']);
        }
        $google_font_2 .= ' }';
    }
    $safe_font = $mk_options['font_family'] ? 'font-family: ' . stripslashes($mk_options['font_family']) . ';' : '';
    /**
     * Body background
     */
    $body_bg .= $mk_options['body_color'] ? 'background-color:' . $mk_options['body_color'] . ';' : '';
    $body_bg .= $mk_options['body_image'] ? 'background-image:url(' . $mk_options['body_image'] . ');' : ' ';
    $body_bg .= $mk_options['body_repeat'] ? 'background-repeat:' . $mk_options['body_repeat'] . ';' : '';
    $body_bg .= $mk_options['body_position'] ? 'background-position:' . $mk_options['body_position'] . ';' : '';
    $body_bg .= $mk_options['body_attachment'] ? 'background-attachment:' . $mk_options['body_attachment'] . ';' : '';
    /**
     * Header background
     */
    $header_bg .= $mk_options['header_color'] ? 'background-color:' . $mk_options['header_color'] . ';' : '';
    $header_bg .= $mk_options['header_image'] ? 'background-image:url(' . $mk_options['header_image'] . ');' : ' ';
    $header_bg .= $mk_options['header_repeat'] ? 'background-repeat:' . $mk_options['header_repeat'] . ';' : '';
    $header_bg .= $mk_options['header_position'] ? 'background-position:' . $mk_options['header_position'] . ';' : '';
    $header_bg .= $mk_options['header_attachment'] ? 'background-attachment:' . $mk_options['header_attachment'] . ';' : '';
    /**
     * Header Banner background
     */
    $banner_bg .= $mk_options['banner_color'] ? 'background-color:' . $mk_options['banner_color'] . ';' : '';
    $banner_bg .= $mk_options['banner_image'] ? 'background-image:url(' . $mk_options['banner_image'] . ');' : ' ';
    $banner_bg .= $mk_options['banner_repeat'] ? 'background-repeat:' . $mk_options['banner_repeat'] . ';' : '';
    $banner_bg .= $mk_options['banner_position'] ? 'background-position:' . $mk_options['banner_position'] . ';' : '';
    $banner_bg .= $mk_options['banner_attachment'] ? 'background-attachment:' . $mk_options['banner_attachment'] . ';' : '';
    /**
     * Page background
     */
    $page_bg .= $mk_options['page_color'] ? 'background-color:' . $mk_options['page_color'] . ';' : '';
    $page_bg .= $mk_options['page_image'] ? 'background-image:url(' . $mk_options['page_image'] . ');' : ' ';
    $page_bg .= $mk_options['page_repeat'] ? 'background-repeat:' . $mk_options['page_repeat'] . ';' : '';
    $page_bg .= $mk_options['page_position'] ? 'background-position:' . $mk_options['page_position'] . ';' : '';
    $page_bg .= $mk_options['page_attachment'] ? 'background-attachment:' . $mk_options['page_attachment'] . ';' : '';
    /**
     * Footer background
     */
    $footer_bg = $mk_options['footer_color'] ? 'background-color:' . $mk_options['footer_color'] . ';' : '';
    $footer_bg .= $mk_options['footer_image'] ? 'background-image:url(' . $mk_options['footer_image'] . ');' : ' ';
    $footer_bg .= $mk_options['footer_repeat'] ? 'background-repeat:' . $mk_options['footer_repeat'] . ';' : '';
    $footer_bg .= $mk_options['footer_position'] ? 'background-position:' . $mk_options['footer_position'] . ';' : '';
    $footer_bg .= $mk_options['footer_attachment'] ? 'background-attachment:' . $mk_options['footer_attachment'] . ';' : '';
    $page_title_color = $mk_options['page_title_color'];
    $page_subtitle_color = $mk_options['page_subtitle_color'];
    $banner_border_color = $mk_options['banner_border_color'];
    $boxed_layout_shadow_size = $mk_options['boxed_layout_shadow_size'];
    $boxed_layout_shadow_intensity = $mk_options['boxed_layout_shadow_intensity'];
    $page_title_padding = 15;
    $trans_header_border_color = '';
    $page_color = $mk_options['page_color'];
    if (global_get_post_id()) {
        $post_id = global_get_post_id();
        $enable = get_post_meta($post_id, '_enable_local_backgrounds', true);
        if ($enable == 'true') {
            $body_bg = get_post_meta($post_id, 'body_color', true) ? 'background-color: ' . get_post_meta($post_id, 'body_color', true) . ';' : 'background-color: ' . $mk_options['body_color'] . ';';
            $body_bg .= get_post_meta($post_id, 'body_image', true) ? 'background-image:url(' . get_post_meta($post_id, 'body_image', true) . ');' : '';
            $body_bg .= get_post_meta($post_id, 'body_repeat', true) ? 'background-repeat:' . get_post_meta($post_id, 'body_repeat', true) . ';' : '';
            $body_bg .= get_post_meta($post_id, 'body_position', true) ? 'background-position:' . get_post_meta($post_id, 'body_position', true) . ';' : '';
            $body_bg .= get_post_meta($post_id, 'body_attachment', true) ? 'background-attachment:' . get_post_meta($post_id, 'body_attachment', true) . ';' : '';
            $header_bg = get_post_meta($post_id, 'header_color', true) ? 'background-color: ' . get_post_meta($post_id, 'header_color', true) . ';' : 'background-color: ' . $mk_options['header_color'] . ';';
            $header_bg .= get_post_meta($post_id, 'header_image', true) ? 'background-image:url(' . get_post_meta($post_id, 'header_image', true) . ');' : '';
            $header_bg .= get_post_meta($post_id, 'header_repeat', true) ? 'background-repeat:' . get_post_meta($post_id, 'header_repeat', true) . ';' : '';
            $header_bg .= get_post_meta($post_id, 'header_position', true) ? 'background-position:' . get_post_meta($post_id, 'header_position', true) . ';' : '';
            $header_bg .= get_post_meta($post_id, 'header_attachment', true) ? 'background-attachment:' . get_post_meta($post_id, 'header_attachment', true) . ';' : '';
            $banner_bg = get_post_meta($post_id, 'banner_color', true) ? 'background-color: ' . get_post_meta($post_id, 'banner_color', true) . ';' : 'background-color: ' . $mk_options['banner_color'] . ';';
            $banner_bg .= get_post_meta($post_id, 'banner_image', true) ? 'background-image:url(' . get_post_meta($post_id, 'banner_image', true) . ');' : '';
            $banner_bg .= get_post_meta($post_id, 'banner_repeat', true) ? 'background-repeat:' . get_post_meta($post_id, 'banner_repeat', true) . ';' : '';
            $banner_bg .= get_post_meta($post_id, 'banner_position', true) ? 'background-position:' . get_post_meta($post_id, 'banner_position', true) . ';' : '';
            $banner_bg .= get_post_meta($post_id, 'banner_attachment', true) ? 'background-attachment:' . get_post_meta($post_id, 'banner_attachment', true) . ';' : '';
            $page_bg = get_post_meta($post_id, 'page_color', true) ? 'background-color: ' . get_post_meta($post_id, 'page_color', true) . ';' : 'background-color: ' . $mk_options['page_color'] . ';';
            $page_bg .= get_post_meta($post_id, 'page_image', true) ? 'background-image:url(' . get_post_meta($post_id, 'page_image', true) . ');' : '';
            $page_bg .= get_post_meta($post_id, 'page_repeat', true) ? 'background-repeat:' . get_post_meta($post_id, 'page_repeat', true) . ';' : '';
            $page_bg .= get_post_meta($post_id, 'page_position', true) ? 'background-position:' . get_post_meta($post_id, 'page_position', true) . ';' : '';
            $page_bg .= get_post_meta($post_id, 'page_attachment', true) ? 'background-attachment:' . get_post_meta($post_id, 'page_attachment', true) . ';' : '';
            $footer_bg = get_post_meta($post_id, 'footer_color', true) ? 'background-color: ' . get_post_meta($post_id, 'footer_color', true) . ';' : 'background-color: ' . $mk_options['footer_color'] . ';';
            $footer_bg .= get_post_meta($post_id, 'footer_image', true) ? 'background-image:url(' . get_post_meta($post_id, 'footer_image', true) . ');' : '';
            $footer_bg .= get_post_meta($post_id, 'footer_repeat', true) ? 'background-repeat:' . get_post_meta($post_id, 'footer_repeat', true) . ';' : '';
            $footer_bg .= get_post_meta($post_id, 'footer_position', true) ? 'background-position:' . get_post_meta($post_id, 'footer_position', true) . ';' : '';
            $footer_bg .= get_post_meta($post_id, 'footer_attachment', true) ? 'background-attachment:' . get_post_meta($post_id, 'footer_attachment', true) . ';' : '';
            $page_title_color = get_post_meta($post_id, '_page_title_color', true) ? get_post_meta($post_id, '_page_title_color', true) : '';
            $page_subtitle_color = get_post_meta($post_id, '_page_subtitle_color', true) ? get_post_meta($post_id, '_page_subtitle_color', true) : '';
            $banner_border_color = get_post_meta($post_id, '_banner_border_color', true) ? get_post_meta($post_id, '_banner_border_color', true) : '';
            $trans_header_border_color = get_post_meta($post_id, '_trans_header_border_bottom', true) ? get_post_meta($post_id, '_trans_header_border_bottom', true) : '';
            $boxed_layout_shadow_size = get_post_meta($post_id, 'boxed_layout_shadow_size', true);
            $boxed_layout_shadow_intensity = get_post_meta($post_id, 'boxed_layout_shadow_intensity', true);
            $page_color = get_post_meta($post_id, 'page_color', true) ? get_post_meta($post_id, 'page_color', true) : $page_color;
        }
    }
    $skin_darker = hexDarker($skin_color, 20);
    $skin_color_60 = mk_color($mk_options['skin_color'], 0.6);
    if ($mk_options['main_nav_bg_color'] == '') {
        $classic_nav_bg = $header_bg;
    } else {
        $classic_nav_bg = 'background-color:' . $mk_options['main_nav_bg_color'] . ';';
    }
    $sidebar_width = 100 - $mk_options['content_width'];
    $boxed_layout_width = $mk_options['grid_width'] + 60;
    ###########################################
    # Font family
    ###########################################
    $output .= "\nbody {\n\t{$safe_font}\n}\n\n{$fontface_style_1}\n{$fontface_style_2}\n{$fontface_css_1}\n{$fontface_css_2}\n{$google_font_1}\n{$google_font_2}\n{$safefont_css_1}\n{$safefont_css_2}\n{$typekit_fonts_1}\n{$typekit_fonts_2}\n";
    ###########################################
    # Backgrounds
    ###########################################
    $output .= "\n\nbody\n{\n\t{$body_bg}\n}\n\n#mk-header\n{\n\t{$banner_bg}\n}\n\n\n\n.mk-header-bg\n{\n\t{$header_bg}\n}\n\n\n\n.mk-header-toolbar\n{\n\tbackground-color: {$mk_options['header_toolbar_bg']};\n}\n\n\n\n\n\n#theme-page\n{\n\t{$page_bg}\n}\n\n\n\n#mk-footer\n{\n\t{$footer_bg}\n\t";
    if (!empty($mk_options['footer_top_thickness']) && !empty($mk_options['footer_top_border_color'])) {
        $output .= "\n\t\tborder-top:{$mk_options['footer_top_thickness']}px solid {$mk_options['footer_top_border_color']};\n\t";
    }
    $output .= "\n}\n\n#mk-footer .footer-wrapper\n{\n\t";
    if (isset($mk_options['footer_wrapper_padding'])) {
        $output .= "\n\t\tpadding:{$mk_options['footer_wrapper_padding']}px 0;\n\t";
    }
    $output .= "\n}\n\n#mk-footer .widget\n{\n\tmargin-bottom:{$mk_options['footer_widget_margin_bottom']}px;\n}\n\n\n\n#mk-footer [class*='mk-col-'] {\n\tpadding:0 {$mk_options['footer_gutter']}%;\n}\n\n\n\n\n\n#sub-footer\n{\n\tbackground-color: {$mk_options['sub_footer_bg_color']};\n}\n\n.mk-footer-copyright {\n\tfont-size:{$mk_options['copyright_size']}px;\n\tletter-spacing: {$mk_options['copyright_letter_spacing']}px;\n}\n\n\n#mk-boxed-layout\n{\n  -webkit-box-shadow: 0 0 {$boxed_layout_shadow_size}px rgba(0, 0, 0, {$boxed_layout_shadow_intensity});\n  -moz-box-shadow: 0 0 {$boxed_layout_shadow_size}px rgba(0, 0, 0, {$boxed_layout_shadow_intensity});\n  box-shadow: 0 0 {$boxed_layout_shadow_size}px rgba(0, 0, 0, {$boxed_layout_shadow_intensity});\n}\n\n\n\n\n\n\n\n.mk-tabs-panes,\n.mk-news-tab .mk-tabs-tabs li.ui-tabs-active a,\n.mk-divider .divider-go-top,\n.ajax-container,\n.mk-fancy-title.pattern-style span,\n.mk-portfolio-view-all,\n.mk-woo-view-all,\n.mk-blog-view-all\n{\n\tbackground-color: {$page_color};\n}\n\n\n\n.mk-header-bg\n{\n  -webkit-opacity: {$mk_options['header_opacity']};\n  -moz-opacity: {$mk_options['header_opacity']};\n  -o-opacity: {$mk_options['header_opacity']};\n  opacity: {$mk_options['header_opacity']};\n}\n\n\n\n.header-sticky-ready .mk-header-bg\n{\n  -webkit-opacity: {$mk_options['header_sticky_opacity']};\n  -moz-opacity: {$mk_options['header_sticky_opacity']};\n  -o-opacity: {$mk_options['header_sticky_opacity']};\n  opacity: {$mk_options['header_sticky_opacity']};\n}\n\n";
    $header_btn_border_thickness = isset($mk_options['header_btn_border_thickness']) ? $mk_options['header_btn_border_thickness'] : 1;
    /* Header, Header Banner and Header toolbar border bottoms */
    if (!empty($mk_options['header_border_color'])) {
        $output .= "\n\t\t\t.mk-header-inner,\n\t\t\t.header-sticky-ready .mk-header-inner,\n\t\t\t.header-style-2.header-sticky-ready .mk-classic-nav-bg\n\t\t\t{\n\t\t\t\tborder-bottom:{$header_btn_border_thickness}px solid {$mk_options['header_border_color']};\n\t\t\t}\n\t\t\t.header-style-4.header-align-left .mk-header-inner,\n\t\t\t.header-style-4.header-align-center .mk-header-inner\n\t\t\t {\n\t\t\t\tborder-bottom:none;\n\t\t\t\tborder-right:{$header_btn_border_thickness}px solid {$mk_options['header_border_color']};\n\t\t\t}\n\t\t\t.header-style-4.header-align-right .mk-header-inner {\n\t\t\t\tborder-bottom:none;\n\t\t\t\tborder-left:{$header_btn_border_thickness}px solid {$mk_options['header_border_color']};\n\t\t\t}\n\t\t\t.header-style-2 .mk-header-nav-container {\n\t\t\t\tborder-top:{$header_btn_border_thickness}px solid {$mk_options['header_border_color']};\n\t\t\t}\n\t\t";
    }
    if (!empty($mk_options['sticky_header_border_color'])) {
        $output .= "\n\t\t\t.header-sticky-ready .mk-header-inner,\n\t\t\t.header-style-2.header-sticky-ready .mk-classic-nav-bg\n\t\t\t{\n\t\t\t\tborder-bottom:{$header_btn_border_thickness}px solid {$mk_options['sticky_header_border_color']};\n\t\t\t}\n\t\t";
    }
    if (!empty($mk_options['header_toolbar_border_color'])) {
        $output .= "\n\t\t\t\t.mk-header-toolbar\n\t\t\t\t\t{\n\t\t\t\t\t\tborder-bottom:1px solid {$mk_options['header_toolbar_border_color']};\n\t\t\t\t\t}\n\t\t\t";
    }
    if (!empty($banner_border_color)) {
        $output .= "\n\t\t\t\t#mk-header\n\t\t\t\t\t{\n\t\t\t\t\t\tborder-bottom:1px solid {$banner_border_color};\n\t\t\t\t\t}\n\n\t\t\t";
    }
    if (!empty($trans_header_border_color)) {
        $output .= "\n\t\t\t\t#mk-header.transparent-header:not(.header-sticky-ready) .mk-header-holder\n\t\t\t\t\t{\n\t\t\t\t\t\tborder-bottom:1px solid {$trans_header_border_color};\n\t\t\t\t\t}\n\t\t\t";
    }
    ###########################################
    # General Typography & Coloring
    ###########################################
    $body_line_height = isset($mk_options['body_line_height']) ? $mk_options['body_line_height'] : 1.66;
    $p_line_height = isset($mk_options['p_line_height']) ? $mk_options['p_line_height'] : 1.66;
    $output .= "\nbody\n{\n\tfont-size: {$mk_options['body_font_size']}px;\n\tcolor: {$mk_options['body_text_color']};\n\tfont-weight: {$mk_options['body_weight']};\n\tline-height: {$body_line_height}em;\n}\n\n\np,\n.mk-box-icon-2-content {\n\tfont-size: {$mk_options['p_size']}px;\n\tcolor: {$mk_options['p_color']};\n\tline-height: {$p_line_height}em;\n}\n\n\na {\n\tcolor: {$mk_options['a_color']};\n}\n\n\na:hover {\n\tcolor: {$mk_options['a_color_hover']};\n}\n\n\n#theme-page strong {\n\tcolor: {$mk_options['strong_color']};\n}\n\n\n\n#theme-page h1\n{\n\tfont-size: {$mk_options['h1_size']}px;\n\tcolor: {$mk_options['h1_color']};\n\tfont-weight: {$mk_options['h1_weight']};\n\ttext-transform: {$mk_options['h1_transform']};\n}\n\n#theme-page h2\n{\n\tfont-size: {$mk_options['h2_size']}px;\n\tcolor: {$mk_options['h2_color']};\n\tfont-weight: {$mk_options['h2_weight']};\n\ttext-transform: {$mk_options['h2_transform']};\n}\n\n\n#theme-page h3\n{\n\tfont-size: {$mk_options['h3_size']}px;\n\tcolor: {$mk_options['h3_color']};\n\tfont-weight: {$mk_options['h3_weight']};\n\ttext-transform: {$mk_options['h3_transform']};\n}\n\n#theme-page h4\n{\n\tfont-size: {$mk_options['h4_size']}px;\n\tcolor: {$mk_options['h4_color']};\n\tfont-weight: {$mk_options['h4_weight']};\n\ttext-transform: {$mk_options['h4_transform']};\n}\n\n\n#theme-page h5\n{\n\tfont-size: {$mk_options['h5_size']}px;\n\tcolor: {$mk_options['h5_color']};\n\tfont-weight: {$mk_options['h5_weight']};\n\ttext-transform: {$mk_options['h5_transform']};\n}\n\n\n#theme-page h6\n{\n\tfont-size: {$mk_options['h6_size']}px;\n\tcolor: {$mk_options['h6_color']};\n\tfont-weight: {$mk_options['h6_weight']};\n\ttext-transform: {$mk_options['h6_transform']};\n}\n\n.page-introduce-title\n{\n\tfont-size: {$mk_options['page_introduce_title_size']}px;\n\tcolor: {$page_title_color};\n\ttext-transform: {$mk_options['page_title_transform']};\n\tfont-weight: {$mk_options['page_introduce_weight']};\n\tletter-spacing: {$mk_options['page_introduce_title_letter_spacing']}px;\n}\n\n\n.page-introduce-subtitle\n{\n\tfont-size: {$mk_options['page_introduce_subtitle_size']}px;\n\tline-height: 100%;\n\tcolor: {$page_subtitle_color};\n\tfont-size: {$mk_options['page_introduce_subtitle_size']}px;\n\ttext-transform: {$mk_options['page_introduce_subtitle_transform']};\n}\n\n\n::-webkit-selection\n{\n\tbackground-color: {$skin_color};\n\tcolor:#fff;\n}\n\n::-moz-selection\n{\n\tbackground-color: {$skin_color};\n\tcolor:#fff;\n}\n\n::selection\n{\n\tbackground-color: {$skin_color};\n\tcolor:#fff;\n}\n\n";
    ###########################################
    # Widgets
    ###########################################
    $output .= "\n\n#mk-sidebar,\n#mk-sidebar p\n{\n\t\tfont-size: {$mk_options['sidebar_text_size']}px;\n\t\tcolor: {$mk_options['sidebar_text_color']};\n\t\tfont-weight: {$mk_options['sidebar_text_weight']};\n}\n\n\n\n#mk-sidebar .widgettitle\n{\n\t\ttext-transform: {$mk_options['sidebar_title_transform']};\n\t\tfont-size: {$mk_options['sidebar_title_size']}px;\n\t\tcolor: {$mk_options['sidebar_title_color']};\n\t\tfont-weight: {$mk_options['sidebar_title_weight']};\n}\n\n\n#mk-sidebar .widgettitle a\n{\n\t\tcolor: {$mk_options['sidebar_title_color']};\n}\n\n\n\n#mk-sidebar .widget a\n{\n\t\tcolor: {$mk_options['sidebar_links_color']};\n}\n\n\n#mk-footer,\n#mk-footer p\n{\n\t\tfont-size: {$mk_options['footer_text_size']}px;\n\t\tcolor: {$mk_options['footer_text_color']};\n\t\tfont-weight: {$mk_options['footer_text_weight']};\n}\n\n\n\n#mk-footer .widgettitle\n{\n\t\ttext-transform: {$mk_options['footer_title_transform']};\n\t\tfont-size: {$mk_options['footer_title_size']}px;\n\t\tcolor: {$mk_options['footer_title_color']};\n\t\tfont-weight: {$mk_options['footer_title_weight']};\n}\n\n\n\n#mk-footer .widgettitle a\n{\n\t\tcolor: {$mk_options['footer_title_color']};\n}\n\n\n\n#mk-footer .widget:not(.widget_social_networks) a\n{\n\t\tcolor: {$mk_options['footer_links_color']};\n\n}\n\n\n.mk-side-dashboard {\n\tbackground-color: {$mk_options['dash_bg_color']};\n}\n\n\n.mk-side-dashboard,\n.mk-side-dashboard p\n{\n\t\tfont-size: {$mk_options['dash_text_size']}px;\n\t\tcolor: {$mk_options['dash_text_color']};\n\t\tfont-weight: {$mk_options['dash_text_weight']};\n}\n\n\n\n.mk-side-dashboard .widgettitle\n{\n\t\ttext-transform: {$mk_options['dash_title_transform']};\n\t\tfont-size: {$mk_options['dash_title_size']}px;\n\t\tcolor: {$mk_options['dash_title_color']};\n\t\tfont-weight: {$mk_options['dash_title_weight']};\n}\n\n\n\n.mk-side-dashboard .widgettitle a\n{\n\t\tcolor: {$mk_options['dash_title_color']};\n}\n\n\n\n.mk-side-dashboard .widget a\n{\n\t\tcolor: {$mk_options['dash_links_color']};\n\n}\n\n.sidedash-navigation-ul li a,\n.sidedash-navigation-ul li .mk-nav-arrow {\n\tcolor:{$mk_options['dash_nav_link_color']};\n}\n\n.sidedash-navigation-ul li a:hover {\n\tcolor:{$mk_options['dash_nav_link_hover_color']};\n\tbackground-color:{$mk_options['dash_nav_bg_hover_color']};\n}";
    $sidebar_links_hover_color = isset($mk_options['sidebar_links_hover_color']) && !empty($mk_options['sidebar_links_hover_color']) ? $mk_options['sidebar_links_hover_color'] : $skin_color;
    $footer_links_hover_color = isset($mk_options['footer_links_hover_color']) && !empty($mk_options['footer_links_hover_color']) ? $mk_options['footer_links_hover_color'] : $skin_color;
    $dash_links_hover_color = isset($mk_options['dash_links_hover_color']) && !empty($mk_options['dash_links_hover_color']) ? $mk_options['dash_links_hover_color'] : $skin_color;
    $output .= "\n#mk-sidebar .widget:not(.widget_social_networks) a:hover \n{\n\tcolor: {$sidebar_links_hover_color};\n}\n#mk-footer .widget:not(.widget_social_networks) a:hover \n{\n\tcolor: {$footer_links_hover_color};\n}\n.mk-side-dashboard .widget:not(.widget_social_networks) a:hover\n{\n\tcolor: {$dash_links_hover_color};\n}\n\n\n\n";
    ###########################################
    # Widths
    ###########################################
    $output .= "\n\n.mk-grid\n{\n\tmax-width: {$mk_options['grid_width']}px;\n}\n\n.mk-header-nav-container, .mk-classic-menu-wrapper\n{\n\twidth: {$mk_options['grid_width']}px;\n}\n\n\n.theme-page-wrapper #mk-sidebar.mk-builtin\n{\n\twidth: {$sidebar_width}%;\n}\n\n.theme-page-wrapper.right-layout .theme-content,\n.theme-page-wrapper.left-layout .theme-content\n{\n\twidth: {$mk_options['content_width']}%;\n}\n\n\n.mk-boxed-enabled #mk-boxed-layout,\n.mk-boxed-enabled #mk-boxed-layout .header-style-1 .mk-header-holder,\n.mk-boxed-enabled #mk-boxed-layout .header-style-3 .mk-header-holder\n{\n\tmax-width: {$boxed_layout_width}px;\n\n}\n\n\n.mk-boxed-enabled #mk-boxed-layout .header-style-1 .mk-header-holder,\n.mk-boxed-enabled #mk-boxed-layout .header-style-3 .mk-header-holder,\n.mk-boxed-enabled #mk-boxed-layout .header-style-2.header-sticky-ready .mk-header-nav-container\n{\n\t\twidth: {$boxed_layout_width}px !important;\n\t\tleft:auto !important;\n}\n\n\n.header-style-1 .mk-header-start-tour,\n.header-style-3 .mk-header-start-tour,\n.header-style-1 .mk-header-inner #mk-header-search,\n.header-style-1 .mk-header-inner,\n.header-style-1 .mk-search-trigger,\n.header-style-3 .mk-header-inner,\n.header-style-1 .header-logo,\n.header-style-3 .header-logo,\n.header-style-1 .shopping-cart-header,\n.header-style-3 .shopping-cart-header,\n#mk-header-social.header-section a\n{\n\theight: {$mk_options['header_height']}px;\n\tline-height:{$mk_options['header_height']}px;\n}\n\n\n@media handheld, only screen and (max-width: {$mk_options['grid_width']}px){\n\n\t\t.header-grid.mk-grid .header-logo.left-logo\n\t\t{\n\t\t\tleft: 15px !important;\n\t\t}\n\t\t.header-grid.mk-grid .header-logo.right-logo, .mk-header-right {\n\t\t\tright: 15px !important;\n\t\t}\n\n}\n";
    $toolbar_toggle = !empty($mk_options['theme_toolbar_toggle']) ? $mk_options['theme_toolbar_toggle'] : 'true';
    if (global_get_post_id()) {
        $enable = get_post_meta(global_get_post_id(), '_enable_local_backgrounds', true);
        if ($enable == 'true') {
            $toolbar_toggle_meta = get_post_meta($post_id, 'theme_toolbar_toggle', true);
            $toolbar_toggle = isset($toolbar_toggle_meta) && !empty($toolbar_toggle_meta) ? $toolbar_toggle_meta : $toolbar_toggle;
        }
    }
    // This seems to be an old tweak - the whole <body> is already moved down the toolbar
    $toolbar_toggle_height = $toolbar_toggle == 'true' ? 32 : 0;
    // so lets comment out this value
    $header_padding_holder = $mk_options['header_height'] + $toolbar_toggle_height;
    $output .= "\n\n#mk-theme-container:not(.mk-transparent-header) .header-style-1 .mk-header-padding-wrapper,\n#mk-theme-container:not(.mk-transparent-header) .header-style-3 .mk-header-padding-wrapper {\n\tpadding-top:{$header_padding_holder}px;\n}\n\n\n";
    #################################################
    # Content maximum width to convert to responsive
    #################################################
    $output .= "\n@media handheld, only screen and (max-width: {$mk_options['content_responsive']}px){\n\n\t\t\t.theme-page-wrapper .theme-content\n\t\t\t{\n\t\t\t\twidth: 100% !important;\n\t\t\t\tfloat: none !important;\n\t\t\t}\n\n\n\t\t\t.theme-page-wrapper\n\t\t\t{\n\t\t\t\tpadding-right:15px !important;\n\t\t\t\tpadding-left: 15px !important;\n\t\t\t}\n\n\n\t\t\t.theme-page-wrapper .theme-content:not(.no-padding)\n\t\t\t{\n\t\t\t\tpadding:25px 0 !important;\n\t\t\t}\n\n\n\t\t\t.theme-page-wrapper #mk-sidebar\n\t\t\t{\n\t\t\t\twidth: 100% !important;\n\t\t\t\tfloat: none !important;\n\t\t\t\tpadding: 0 !important;\n\n\t\t\t}\n\n\n\t\t\t.theme-page-wrapper #mk-sidebar .sidebar-wrapper\n\t\t\t{\n\t\t\t\tpadding:20px 0 !important;\n\t\t\t}\n\n}\n\n\n\n@media handheld, only screen and (max-width: {$mk_options['grid_width']}px){\n\t\t.mk-go-top,\n\t\t.mk-quick-contact-wrapper\n\t\t{\n\t\t\tbottom:70px !important;\n\t\t}\n\n\t\t.mk-grid {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.mk-padding-wrapper {\n\t\t\tpadding: 0 20px;\n\t\t}\n\n }\n\n\n";
    #################################################
    # Header Toolbar Colorings
    #################################################
    $output .= "\n\n#mk-toolbar-navigation ul li a,\n.mk-language-nav > a,\n.mk-header-login .mk-login-link,\n.mk-subscribe-link,\n.mk-checkout-btn,\n.mk-header-tagline a,\n.header-toolbar-contact a,\n#mk-toolbar-navigation ul li a:hover,\n.mk-language-nav > a:hover,\n.mk-header-login .mk-login-link:hover,\n.mk-subscribe-link:hover,\n.mk-checkout-btn:hover,\n.mk-header-tagline a:hover\n{\n\tcolor:{$mk_options['header_toolbar_link_color']};\n}\n\n\n\n.mk-header-tagline,\n.header-toolbar-contact,\n.mk-header-date\n{\n\tcolor:{$mk_options['header_toolbar_txt_color']};\n}\n\n\n.mk-header-toolbar #mk-header-social a i {\n\tcolor:{$mk_options['header_toolbar_social_network_color']};\n}\n\n";
    $header_social_style = $mk_options['header_social_networks_style'];
    $header_social_color = $mk_options['header_social_color'];
    $header_social_hover = $mk_options['header_social_hover_color'];
    $header_social_border = $mk_options['header_social_border_color'];
    $header_social_bg = $mk_options['header_social_bg_color'];
    $output .= "\n\t.header-section#mk-header-social ul li a i {\n\t\tcolor: {$header_social_color};\n\t}\n\t.header-section#mk-header-social ul li a:hover i {\n\t\tcolor: {$header_social_hover};\n}\n";
    if ($header_social_style == 'square-pointed' || $header_social_style == 'square-rounded' || $header_social_style == 'simple-rounded') {
        $output .= "\n\t\t.header-section#mk-header-social ul li a {\n\t\t\tborder-color: {$header_social_border};\n\t\t}\n\t\t.header-section#mk-header-social ul li a:hover {\n\t\t\tborder-color: {$header_social_bg};\n\t\t\tbackground-color: {$header_social_bg};\n\t\t}\n\t";
    }
    #################################################
    # Header Section
    #################################################
    // Outline Styles for social buttons repositioning
    $small_position = ($mk_options['header_height'] - 34) / 2;
    $medium_position = ($mk_options['header_height'] - 50) / 2;
    $large_position = ($mk_options['header_height'] - 66) / 2;
    $sticky_position = ($mk_options['header_scroll_height'] - 34) / 2;
    $vertical_header_logo_padding = isset($mk_options['vertical_header_logo_padding']) ? $mk_options['vertical_header_logo_padding'] : 0;
    $responsive_icon_text_color = isset($mk_options['responsive_icon_text_color']) ? $mk_options['responsive_icon_text_color'] : $mk_options['main_nav_top_text_color'];
    $output .= "\n\n.header-style-2 .header-logo,\n.header-style-4 .header-logo\n{\n\theight: {$mk_options['header_height']}px !important;\n}\n\n.header-style-4 .header-logo {\n\tmargin:{$vertical_header_logo_padding}px 0;\n}\n\n\n\n\n.header-style-2 .mk-header-inner\n{\n\n\tline-height:{$mk_options['header_height']}px;\n}\n\n.mk-header-nav-container\n{\n\tbackground-color: {$mk_options['main_nav_bg_color']};\n}\n\n\n.mk-header-start-tour\n{\n\tfont-size: {$mk_options['start_tour_size']}px;\n\tcolor: {$mk_options['start_tour_color']};\n}\n\n\n.mk-header-start-tour:hover\n{\n\tcolor: {$mk_options['start_tour_color']};\n}\n\n\n.mk-classic-nav-bg\n{\n\t{$classic_nav_bg}\n}\n\n\n.mk-search-trigger,\n.mk-shoping-cart-link i,\n.mk-toolbar-resposnive-icon i\n{\n\tcolor: {$mk_options['main_nav_top_text_color']};\n}\n\n.mk-css-icon-close div,\n.mk-css-icon-menu div {\n\tbackground-color: {$responsive_icon_text_color};\n}\n\n\n#mk-header-searchform .text-input\n{\n\tbackground-color:{$mk_options['header_toolbar_search_input_bg']} !important;\n\tcolor: {$mk_options['header_toolbar_search_input_txt']};\n}\n\n\n#mk-header-searchform span i\n{\n\tcolor: {$mk_options['header_toolbar_search_input_txt']};\n}\n\n\n#mk-header-searchform .text-input::-webkit-input-placeholder\n{\n\tcolor: {$mk_options['header_toolbar_search_input_txt']};\n}\n\n\n#mk-header-searchform .text-input:-ms-input-placeholder\n{\n\tcolor: {$mk_options['header_toolbar_search_input_txt']};\n}\n\n\n#mk-header-searchform .text-input:-moz-placeholder\n{\n\tcolor: {$mk_options['header_toolbar_search_input_txt']};\n}\n\n\n\n.header-style-1.header-sticky-ready .menu-hover-style-1 .main-navigation-ul > li > a,\n.header-style-3.header-sticky-ready .menu-hover-style-1 .main-navigation-ul > li > a,\n.header-style-1.header-sticky-ready .menu-hover-style-5 .main-navigation-ul > li,\n.header-style-1.header-sticky-ready .menu-hover-style-2 .main-navigation-ul > li > a,\n.header-style-3.header-sticky-ready .menu-hover-style-2 .main-navigation-ul > li > a,\n\n.header-style-1.header-style-1.header-sticky-ready .menu-hover-style-4 .main-navigation-ul > li > a,\n.header-style-3.header-sticky-ready .menu-hover-style-4 .main-navigation-ul > li > a,\n\n.header-style-1.header-sticky-ready .menu-hover-style-3 .main-navigation-ul > li,\n.header-style-1.header-sticky-ready .mk-header-holder #mk-header-search,\n\n.header-style-3.header-sticky-ready .mk-header-holder #mk-header-search,\n.header-sticky-ready.header-style-3 .mk-header-start-tour,\n.header-sticky-ready.header-style-1 .mk-header-start-tour,\n.header-sticky-ready.header-style-1 .mk-header-inner,\n.header-sticky-ready.header-style-3 .mk-header-inner,\n.header-sticky-ready.header-style-3 .header-logo,\n.header-sticky-ready.header-style-1 .header-logo,\n.header-sticky-ready.header-style-1 .mk-search-trigger,\n.header-sticky-ready.header-style-1 .shopping-cart-header,\n.header-sticky-ready.header-style-3 .shopping-cart-header,\n.header-sticky-ready #mk-header-social.header-section a {\n\theight:{$mk_options['header_scroll_height']}px !important;\n\tline-height:{$mk_options['header_scroll_height']}px !important;\n\n}\n\n#mk-header-social.header-section a.small {\n\tmargin-top: {$small_position}px;\n}\n#mk-header-social.header-section a.medium {\n\tmargin-top: {$medium_position}px;\n}\n#mk-header-social.header-section a.large {\n\tmargin-top: {$large_position}px;\n}\n\n.header-sticky-ready #mk-header-social.header-section a.small,\n.header-sticky-ready #mk-header-social.header-section a.medium,\n.header-sticky-ready #mk-header-social.header-section a.large {\n\tmargin-top: {$sticky_position}px;\n\tline-height: 16px !important;\n\theight: 16px !important;\n\tfont-size: 16px !important;\n\twidth: 16px !important;\n\tpadding: 8px !important;\n}\n.header-sticky-ready #mk-header-social.header-section a.small i:before,\n.header-sticky-ready #mk-header-social.header-section a.medium i:before,\n.header-sticky-ready #mk-header-social.header-section a.large i:before {\n\tline-height: 16px !important;\n\tfont-size: 16px !important;\n}\n\n";
    #################################################
    # Main Nvigation
    #################################################
    $main_nav_sub_width = isset($mk_options['main_nav_sub_width']) ? $mk_options['main_nav_sub_width'] : 210;
    $output .= "\n\n.main-navigation-ul > li.menu-item > a.menu-item-link\n{\n\tcolor: {$mk_options['main_nav_top_text_color']};\n\tfont-size: {$mk_options['main_nav_top_size']}px;\n\tfont-weight: {$mk_options['main_nav_top_weight']};\n\tpadding-right:{$mk_options['main_nav_item_space']}px!important;\n\tpadding-left:{$mk_options['main_nav_item_space']}px!important;\n\ttext-transform:{$mk_options['main_menu_transform']};\n}\n\n.mk-vm-menuwrapper ul li a {\n\tcolor: {$mk_options['main_nav_top_text_color']};\n\tfont-size: {$mk_options['main_nav_top_size']}px;\n\tfont-weight: {$mk_options['main_nav_top_weight']};\n\ttext-transform:{$mk_options['main_menu_transform']};\n}\n.mk-vm-menuwrapper li > a:after,\n.mk-vm-menuwrapper li.mk-vm-back:after {\n\tcolor: {$mk_options['main_nav_top_text_color']};\n}\n\n.main-navigation-ul > li.no-mega-menu ul.sub-menu li.menu-item a.menu-item-link \n{\n\twidth:{$main_nav_sub_width}px;\n}\n\n\n.mk-header-3-menu-trigger {\n\tcolor: {$mk_options['main_nav_top_text_color']};\n}\n\n\n\n.menu-hover-style-1 .main-navigation-ul li.menu-item > a.menu-item-link:hover,\n.menu-hover-style-1 .main-navigation-ul li.menu-item:hover > a.menu-item-link,\n.menu-hover-style-1 .main-navigation-ul li.current-menu-item > a.menu-item-link,\n.menu-hover-style-1 .main-navigation-ul li.current-menu-ancestor > a.menu-item-link,\n.menu-hover-style-2 .main-navigation-ul li.menu-item > a.menu-item-link:hover,\n.menu-hover-style-2 .main-navigation-ul li.menu-item:hover > a.menu-item-link,\n.menu-hover-style-2 .main-navigation-ul li.current-menu-item > a.menu-item-link,\n.menu-hover-style-2 .main-navigation-ul li.current-menu-ancestor > a.menu-item-link,\n.menu-hover-style-1.mk-vm-menuwrapper li.menu-item > a:hover,\n.menu-hover-style-1.mk-vm-menuwrapper li.menu-item:hover > a,\n.menu-hover-style-1.mk-vm-menuwrapper li.current-menu-item > a,\n.menu-hover-style-1.mk-vm-menuwrapper li.current-menu-ancestor > a,\n.menu-hover-style-2.mk-vm-menuwrapper li.menu-item > a:hover,\n.menu-hover-style-2.mk-vm-menuwrapper li.menu-item:hover > a,\n.menu-hover-style-2.mk-vm-menuwrapper li.current-menu-item > a,\n.menu-hover-style-2.mk-vm-menuwrapper li.current-menu-ancestor > a\n{\n\n\tcolor: {$mk_options['main_nav_top_hover_skin']} !important;\n}\n\n\n.menu-hover-style-3 .main-navigation-ul > li.menu-item > a.menu-item-link:hover,\n.menu-hover-style-3 .main-navigation-ul > li.menu-item:hover > a.menu-item-link,\n.menu-hover-style-3.mk-vm-menuwrapper li > a:hover,\n.menu-hover-style-3.mk-vm-menuwrapper li:hover > a\n{\n\tborder:2px solid {$mk_options['main_nav_top_hover_skin']};\n}\n.menu-hover-style-3 .main-navigation-ul > li.current-menu-item > a.menu-item-link,\n.menu-hover-style-3 .main-navigation-ul > li.current-menu-ancestor > a.menu-item-link,\n.menu-hover-style-3.mk-vm-menuwrapper li.current-menu-item > a,\n.menu-hover-style-3.mk-vm-menuwrapper li.current-menu-ancestor > a{\n\n\tborder:2px solid {$mk_options['main_nav_top_hover_skin']};\n\tbackground-color:{$mk_options['main_nav_top_hover_skin']};\n\tcolor:{$mk_options['main_nav_top_hover_txt_color']};\n\n}\n.menu-hover-style-3.mk-vm-menuwrapper li.current-menu-ancestor > a:after {\n\tcolor:{$mk_options['main_nav_top_hover_txt_color']};\n}\n\n.menu-hover-style-4 .main-navigation-ul li.menu-item > a.menu-item-link:hover,\n.menu-hover-style-4 .main-navigation-ul li.menu-item:hover > a.menu-item-link,\n.menu-hover-style-4 .main-navigation-ul li.current-menu-item > a.menu-item-link,\n.menu-hover-style-4 .main-navigation-ul li.current-menu-ancestor > a.menu-item-link,\n\n.menu-hover-style-4.mk-vm-menuwrapper li a:hover,\n.menu-hover-style-4.mk-vm-menuwrapper li:hover > a,\n.menu-hover-style-4.mk-vm-menuwrapper li.current-menu-item > a,\n.menu-hover-style-4.mk-vm-menuwrapper li.current-menu-ancestor > a,\n.menu-hover-style-5 .main-navigation-ul > li.menu-item > a.menu-item-link:after\n{\n\n\tbackground-color: {$mk_options['main_nav_top_hover_skin']};\n\tcolor:{$mk_options['main_nav_top_hover_txt_color']};\n}\n\n\n\n.menu-hover-style-4.mk-vm-menuwrapper li.current-menu-ancestor > a:after,\n.menu-hover-style-4.mk-vm-menuwrapper li.current-menu-item > a:after,\n.menu-hover-style-4.mk-vm-menuwrapper li:hover > a:after,\n.menu-hover-style-4.mk-vm-menuwrapper li a:hover::after {\n\tcolor:{$mk_options['main_nav_top_hover_txt_color']};\n}\n\n\n.menu-hover-style-1 .main-navigation-ul > li.dropdownOpen > a.menu-item-link,\n.menu-hover-style-1 .main-navigation-ul > li.active > a.menu-item-link,\n.menu-hover-style-1 .main-navigation-ul > li.open > a.menu-item-link,\n.menu-hover-style-1 .main-navigation-ul > li.menu-item > a:hover,\n.menu-hover-style-1 .main-navigation-ul > li.current-menu-item > a.menu-item-link,\n.menu-hover-style-1 .main-navigation-ul > li.current-menu-ancestor > a.menu-item-link {\n\tborder-top-color:{$mk_options['main_nav_sub_border_top_color']};\n}\n\n.menu-hover-style-1.mk-vm-menuwrapper li > a:hover,\n.menu-hover-style-1.mk-vm-menuwrapper li.current-menu-item > a,\n.menu-hover-style-1.mk-vm-menuwrapper li.current-menu-ancestor > a\n{\n\tborder-left-color:{$mk_options['main_nav_sub_border_top_color']};\n}\n\n\n.header-style-1 .menu-hover-style-1 .main-navigation-ul > li > a,\n.header-style-1 .menu-hover-style-2 .main-navigation-ul > li > a,\n.header-style-1 .menu-hover-style-4 .main-navigation-ul > li > a,\n.header-style-1 .menu-hover-style-5 .main-navigation-ul > li\n {\n\theight: {$mk_options['header_height']}px;\n\tline-height:{$mk_options['header_height']}px;\n}\n\n.header-style-1 .menu-hover-style-3 .main-navigation-ul > li,\n.header-style-1 .menu-hover-style-5 .main-navigation-ul > li\n{\n\theight: {$mk_options['header_height']}px;\n\tline-height:{$mk_options['header_height']}px;\n}";
    $hover_3_height = $mk_options['header_height'] / 2;
    $hover_3_height_sticky = $mk_options['header_scroll_height'] / 1.5;
    $output .= "\n.header-style-1 .menu-hover-style-3 .main-navigation-ul > li > a {\n\tline-height:{$hover_3_height}px;\n}\n.header-style-1.header-sticky-ready .menu-hover-style-3 .main-navigation-ul > li > a {\n\tline-height:{$hover_3_height_sticky}px;\n}\n.header-style-1 .menu-hover-style-5 .main-navigation-ul > li > a {\n\tline-height:20px;\n\tvertical-align:middle;\n}\n";
    if (!empty($mk_options['main_nav_sub_border_top_color'])) {
        $output .= "\n.main-navigation-ul > li.no-mega-menu  ul.sub-menu:after,\n.main-navigation-ul > li.has-mega-menu > ul.sub-menu:after\n{\n  background-color:{$mk_options['main_nav_sub_border_top_color']};\n}\n.mk-shopping-cart-box {\n\tborder-top:2px solid {$mk_options['main_nav_sub_border_top_color']};\n}\n";
    }
    $output .= "\n#mk-main-navigation li.no-mega-menu ul.sub-menu,\n#mk-main-navigation li.has-mega-menu > ul.sub-menu,\n.mk-shopping-cart-box\n{\n\tbackground-color: {$mk_options['main_nav_sub_bg_color']};\n}\n\n\n#mk-main-navigation ul.sub-menu a.menu-item-link,\n#mk-main-navigation ul .megamenu-title,\n.megamenu-widgets-container a,\n.mk-shopping-cart-box .product_list_widget li a,\n.mk-shopping-cart-box .product_list_widget li.empty,\n.mk-shopping-cart-box .product_list_widget li span,\n.mk-shopping-cart-box .widget_shopping_cart .total\n{\n\tcolor: {$mk_options['main_nav_sub_text_color']};\n}\n\n.mk-shopping-cart-box .mk-button.cart-widget-btn {\n\tborder-color:{$mk_options['main_nav_sub_text_color']};\n\tcolor:{$mk_options['main_nav_sub_text_color']};\n}\n.mk-shopping-cart-box .mk-button.cart-widget-btn:hover {\n\tbackground-color:{$mk_options['main_nav_sub_text_color']};\n\tcolor:{$mk_options['main_nav_sub_bg_color']};\n}\n\n#mk-main-navigation ul .megamenu-title\n{\n\tcolor: {$mk_options['main_nav_mega_title_color']};\n}\n#mk-main-navigation ul .megamenu-title:after\n{\n\tbackground-color: {$mk_options['main_nav_mega_title_color']};\n}\n\n.megamenu-widgets-container {\n\tcolor: {$mk_options['main_nav_sub_text_color']};\n}\n\n.megamenu-widgets-container .widgettitle\n{\n\t\ttext-transform: {$mk_options['sidebar_title_transform']};\n\t\tfont-size: {$mk_options['sidebar_title_size']}px;\n\t\tfont-weight: {$mk_options['sidebar_title_weight']};\n}\n\n#mk-main-navigation ul.sub-menu li.menu-item ul.sub-menu li.menu-item a.menu-item-link i\n{\n\tcolor: {$mk_options['main_nav_sub_icon_color']};\n}\n\n\n\n\n#mk-main-navigation ul.sub-menu a.menu-item-link:hover\n{\n\tcolor: {$mk_options['main_nav_sub_text_color_hover']} !important;\n}\n.megamenu-widgets-container a:hover {\n\tcolor: {$mk_options['main_nav_sub_text_color_hover']};\t\n}\n\n\n.main-navigation-ul li.menu-item ul.sub-menu li.menu-item a.menu-item-link:hover,\n.main-navigation-ul li.menu-item ul.sub-menu li.menu-item:hover > a.menu-item-link,\n.main-navigation-ul ul.sub-menu li.menu-item a.menu-item-link:hover,\n.main-navigation-ul ul.sub-menu li.menu-item:hover > a.menu-item-link,\n.main-navigation-ul ul.sub-menu li.current-menu-item > a.menu-item-link\n{\n\tbackground-color:{$mk_options['main_nav_sub_hover_bg_color']} !important;\n}\n\n\n.mk-search-trigger:hover,\n.mk-header-start-tour:hover\n{\n\tcolor: {$mk_options['main_nav_top_hover_skin']};\n}\n\n\n\n.main-navigation-ul li.menu-item ul.sub-menu li.menu-item a.menu-item-link\n{\n\tfont-size: {$mk_options['main_nav_sub_size']}px;\n\tfont-weight: {$mk_options['main_nav_sub_weight']};\n\ttext-transform:{$mk_options['main_nav_sub_transform']};\n\tletter-spacing: {$mk_options['main_nav_sub_letter_spacing']}px;\n}\n.has-mega-menu .megamenu-title {\n\tletter-spacing: {$mk_options['main_nav_sub_letter_spacing']}px;\n}\n\n.header-style-4 {\n\ttext-align : {$mk_options['vertical_header_align']}\n\t}\n";
    if ($mk_options['vertical_header_align'] != 'center') {
        $output .= "\n\t.mk-vm-menuwrapper li > a {\n\t\tpadding-right: 45px;\n\t}\n\t";
    }
    if (!empty($mk_options['mega_menu_divider_color'])) {
        $output .= ".has-mega-menu > ul.sub-menu > li.menu-item {\n\t  border-left: 1px solid {$mk_options['mega_menu_divider_color']};\n}\n";
    }
    $sub_level_box_border_color = isset($mk_options['sub_level_box_border_color']) ? $mk_options['sub_level_box_border_color'] : '#d3d3d3';
    $nav_sub_shadow = isset($mk_options['nav_sub_shadow']) ? $mk_options['nav_sub_shadow'] : 'true';
    if (!empty($sub_level_box_border_color)) {
        $output .= "\n.main-navigation-ul > li.no-mega-menu  ul,\n.main-navigation-ul > li.has-mega-menu > ul,\n.mk-shopping-cart-box {\n\tborder:1px solid {$sub_level_box_border_color};\n}\n";
    }
    if ($nav_sub_shadow != 'false') {
        $output .= "\n.main-navigation-ul > li.no-mega-menu  ul,\n.main-navigation-ul > li.has-mega-menu > ul,\n.mk-shopping-cart-box {\n  -webkit-box-shadow: 0 20px 50px 10px rgba(0, 0, 0, 0.15);\n  -moz-box-shadow: 0 20px 50px 10px rgba(0, 0, 0, 0.15);\n  box-shadow: 0 20px 50px 10px rgba(0, 0, 0, 0.15);\n}\n";
    }
    #################################################
    # Header Resposnive State
    #################################################
    $output .= "\n\n@media handheld, only screen and (max-width: {$mk_options['responsive_nav_width']}px){\n\n\t\t\t#mk-header:not(.header-style-4) .mk-header-holder {\n\t\t\t\tposition:relative !important;\n\t\t\t\ttop:0 !important;\n\t\t\t}\n\n\t\t\t.mk-header-padding-wrapper {\n\t\t\t\tdisplay:none !important;\n\t\t\t}\n\n\t\t\t.mk-header-nav-container\n\t\t\t{\n\t\t\t\twidth: auto !important;\n\t\t\t\tdisplay:none;\n\t\t\t}\n\n\n\t\t\t.header-style-1 .mk-header-right,\n\t\t\t.header-style-2 .mk-header-right,\n\t\t\t.header-style-3 .mk-header-right {\n\t\t\t\tright:55px !important;\n\t\t\t}\n\n\n\t\t\t.header-style-1 .mk-header-inner #mk-header-search,\n\t\t\t.header-style-2 .mk-header-inner #mk-header-search,\n\t\t\t.header-style-3 .mk-header-inner #mk-header-search\n\t\t\t{\n\t\t\t\tdisplay:none !important;\n\t\t\t}\n\n\n\t\t\t.mk-fullscreen-search-overlay {\n\t\t\t\tdisplay:none;\n\t\t\t}\n\n\t\t\t#mk-header-search\n\t\t\t{\n\t\t\t\tpadding-bottom: 10px !important;\n\t\t\t}\n\n\n\t\t\t#mk-header-searchform span .text-input\n\t\t\t{\n\t\t\t\twidth: 100% !important;\n\t\t\t}\n\n\n\t\t\t.header-style-2 .header-logo .center-logo\n\t\t\t{\n\t\t\t    text-align: right !important;\n\t\t\t}\n\n\n\t\t\t.header-style-2 .header-logo .center-logo a\n\t\t\t{\n\t\t\t    margin: 0 !important;\n\t\t\t}\n\n\n\t\t\t.header-logo,\n\t\t\t.header-style-4 .header-logo\n\t\t\t{\n\t\t\t    height: 90px !important;\n\t\t\t}\n\n\t\t\t.mk-header-inner\n\t\t\t{\n\t\t\t\tpadding-top:0 !important;\n\t\t\t}\n\n\n\t\t\t.header-logo\n\t\t\t{\n\t\t\t\tposition:relative !important;\n\t\t\t\tright:auto !important;\n\t\t\t\tleft:auto !important;\n\t\t\t\tfloat:left !important;\n\t\t\t\ttext-align:left;\n\t\t\t}\n\n\n\t\t\t.shopping-cart-header\n\t\t\t{\n\t\t\t\tmargin:0 20px 0 0 !important;\n\t\t\t}\n\n\n\t\t\t#mk-responsive-nav\n\t\t\t{\n\t\t\t\tbackground-color:{$mk_options['responsive_nav_color']} !important;\n\t\t\t}\n\n\n\t\t\t.mk-header-nav-container #mk-responsive-nav\n\t\t\t{\n\t\t\t\tvisibility: hidden;\n\t\t\t}\n\n\n\n\n\t\t\t#mk-responsive-nav li ul li .megamenu-title:hover,\n\t\t\t#mk-responsive-nav li ul li .megamenu-title,\n\t\t\t#mk-responsive-nav li a, #mk-responsive-nav li ul li a:hover,\n\t\t\t#mk-responsive-nav .mk-nav-arrow\n\t\t\t{\n\t\t  \t\t\tcolor:{$mk_options['responsive_nav_txt_color']} !important;\n\t\t\t}\n\n\n\t\t\t.mk-mega-icon\n\t\t\t{\n\t\t\t\tdisplay:none !important;\n\t\t\t}\n\n\n\t\t\t.mk-header-bg\n\t\t\t{\n\t\t\t\tzoom:1 !important;\n\t\t\t\tfilter:alpha(opacity=100) !important;\n\t\t\t\topacity:1 !important;\n\t\t\t}\n\n\n\n\n\t\t\t.header-style-1 .mk-nav-responsive-link,\n\t\t\t.header-style-2 .mk-nav-responsive-link\n\t\t\t{\n\t\t\t\tdisplay:block !important;\n\t\t\t}\n\n\t\t\t.mk-header-nav-container\n\t\t\t{\n\t\t\t\theight:100%;\n\t\t\t\tz-index:200;\n\t\t\t}\n\n\n\t\t\t#mk-main-navigation\n\t\t\t{\n\t\t\tposition:relative;\n\t\t\tz-index:2;\n\t\t\t}\n\n\n\t\t\t.mk_megamenu_columns_2,\n\t\t\t.mk_megamenu_columns_3,\n\t\t\t.mk_megamenu_columns_4,\n\t\t\t.mk_megamenu_columns_5,\n\t\t\t.mk_megamenu_columns_6\n\t\t\t{\n\t\t\t\twidth:100% !important;\n\t\t\t}\n\n\t\t\t.header-style-1.header-align-right .header-logo img,\n\t\t\t.header-style-3.header-align-right .header-logo img,\n\t\t\t.header-style-3.header-align-center .header-logo img {\n\t\t\t\tfloat: left !important;\n\t\t\t\tright:auto !important;\n\t\t\t}\n\n\n\t\t\t.header-style-4 .mk-header-inner {\n\t\t\t\twidth: auto !important;\n\t\t\t\tposition: relative !important;\n\t\t\t\toverflow: visible;\n\t\t\t\tpadding-bottom: 0;\n\t\t\t}\n\t\t\t.admin-bar .header-style-4 .mk-header-inner {\n\t\t\t\ttop:0 !important;\n\t\t\t}\n\t\t\t.header-style-4 .mk-header-right {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.header-style-4 .mk-nav-responsive-link {\n\t\t\t\tdisplay: block !important;\n\t\t\t}\n\t\t\t.header-style-4 .mk-vm-menuwrapper,\n\t\t\t.header-style-4 #mk-header-search {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.header-style-4 .header-logo {\n\t\t\t\twidth:auto !important;\n\t\t\t\tdisplay: inline-block !important;\n\t\t\t\ttext-align:left !important;\n\t\t\t\tmargin:0 !important;\n\t\t\t}\n\t\t\t.vertical-header-enabled .header-style-4 .header-logo img {\n\t\t\t\t\tmax-width: 100% !important;\n\t\t\t\t\tleft: 20px!important;\n\t\t\t\t\t-webkit-transform: translate(0, 0);\n\t\t\t\t\t-moz-transform: translate(0, 0);\n\t\t\t\t\t-ms-transform: translate(0, 0);\n\t\t\t\t\t-o-transform: translate(0, 0);\n\t\t\t\t\tposition:relative !important;\n\t\t\t}\n\t\t\t.vertical-header-enabled.vertical-header-right #mk-theme-container {\n\t\t\t\tpadding-right: 0;\n\t\t\t}\n\t\t\t.vertical-header-enabled.vertical-header-left #mk-theme-container, .vertical-header-enabled.vertical-header-center #mk-theme-container {\n\t\t\t\tpadding-left: 0;\n\t\t\t}\n\n}\n\n\n\n\n@media handheld, only screen and (min-width: {$mk_options['responsive_nav_width']}px) {\n\t\t  .mk-transparent-header .sticky-style-slide .mk-header-holder {\n\t\t    position: absolute;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true:not(.header-sticky-ready) .mk-header-bg {\n\t\t    opacity: 0;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true#mk-header:not(.header-sticky-ready) .mk-header-inner {\n\t\t    border: 0;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .mk-desktop-logo.light-logo {\n\t\t    display: block !important;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .mk-desktop-logo.dark-logo {\n\t\t    display: none !important;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .main-navigation-ul > li.menu-item > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .mk-search-trigger,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .mk-shoping-cart-link i,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .mk-header-start-tour,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) #mk-header-social a i,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.menu-item > a.menu-item-link:hover,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.menu-item:hover > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.current-menu-item > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.current-menu-ancestor > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-2 .main-navigation-ul > li.menu-item > a.menu-item-link:hover,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-2 .main-navigation-ul > li.menu-item:hover > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-2 .main-navigation-ul > li.current-menu-item > a.menu-item-link {\n\t\t    color: #fff !important;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .mk-css-icon-menu div {\n\t\t    background-color: #fff !important;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.dropdownOpen > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.active > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.open > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.menu-item > a:hover,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.current-menu-item > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.current-menu-ancestor > a.menu-item-link {\n\t\t    border-top-color: #fff;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-3 .main-navigation-ul > li.current-menu-item > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-3 .main-navigation-ul > li.current-menu-ancestor > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-3.mk-vm-menuwrapper li.current-menu-item > a,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-3.mk-vm-menuwrapper li.current-menu-ancestor > a {\n\t\t    border: 2px solid #fff;\n\t\t    background-color: #fff;\n\t\t    color: #222 !important;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-3 .main-navigation-ul > li.menu-item > a.menu-item-link:hover,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-3 .main-navigation-ul > li.menu-item:hover > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-3.mk-vm-menuwrapper li > a:hover,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-3.mk-vm-menuwrapper li:hover > a {\n\t\t    border: 2px solid #fff;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-4 .main-navigation-ul li.menu-item > a.menu-item-link:hover,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-4 .main-navigation-ul li.menu-item:hover > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-4 .main-navigation-ul li.current-menu-item > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.light-header-skin:not(.header-sticky-ready) .menu-hover-style-5 .main-navigation-ul > li.menu-item > a.menu-item-link:after {\n\t\t    background-color: #fff;\n\t\t    color: #222 !important;\n\t\t  }\n\n\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .mk-desktop-logo.dark-logo {\n\t\t    display: block !important;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .mk-desktop-logo.light-logo {\n\t\t    display: none !important;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .main-navigation-ul > li.menu-item > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .mk-search-trigger,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .mk-shoping-cart-link i,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .mk-header-start-tour,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) #mk-header-social a i,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul li.menu-item > a.menu-item-link:hover,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul li.menu-item:hover > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul li.current-menu-item > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul li.current-menu-ancestor > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-2 .main-navigation-ul li.menu-item > a.menu-item-link:hover,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-2 .main-navigation-ul li.menu-item:hover > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-2 .main-navigation-ul li.current-menu-item > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-2 .main-navigation-ul li.current-menu-ancestor > a.menu-item-link {\n\t\t    color: #222 !important;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.dropdownOpen > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.active > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.open > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.menu-item > a:hover,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.current-menu-item > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-1 .main-navigation-ul > li.current-menu-ancestor > a.menu-item-link {\n\t\t    border-top-color: #222;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .mk-css-icon-menu div {\n\t\t    background-color: #222 !important;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-3 .main-navigation-ul > li.current-menu-item > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-3 .main-navigation-ul > li.current-menu-ancestor > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-3.mk-vm-menuwrapper li.current-menu-item > a,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-3.mk-vm-menuwrapper li.current-menu-ancestor > a {\n\t\t    border: 2px solid #222;\n\t\t    background-color: #222;\n\t\t    color: #fff !important;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-3 .main-navigation-ul > li.menu-item > a.menu-item-link:hover,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-3 .main-navigation-ul > li.menu-item:hover > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-3.mk-vm-menuwrapper li > a:hover,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-3.mk-vm-menuwrapper li:hover > a {\n\t\t    border: 2px solid #222;\n\t\t  }\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-4 .main-navigation-ul li.menu-item > a.menu-item-link:hover,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-4 .main-navigation-ul li.menu-item:hover > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-4 .main-navigation-ul li.current-menu-item > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-4 .main-navigation-ul li.current-menu-ancestor > a.menu-item-link,\n\t\t  .mk-transparent-header .remove-header-bg-true.dark-header-skin:not(.header-sticky-ready) .menu-hover-style-5 .main-navigation-ul > li.menu-item > a.menu-item-link:after {\n\t\t    background-color: #222;\n\t\t    color: #fff !important;\n\t\t  }\n}\n\n\n";
    #################################################
    # Theme Skin colors
    #################################################
    $output .= "\n.comment-reply a,\n.mk-tabs .mk-tabs-tabs li.ui-tabs-active a > i,\n.mk-toggle .mk-toggle-title.active-toggle:before,\n.introduce-simple-title,\n.rating-star .rated,\n.mk-accordion .mk-accordion-single.current .mk-accordion-tab:before,\n.mk-testimonial-author,\n.modern-style .mk-testimonial-company,\n#wp-calendar td#today,\n.mk-tweet-list a,\n.widget_testimonials .testimonial-slider .testimonial-author,\n.news-full-without-image .news-categories span,\n.news-half-without-image .news-categories span,\n.news-fourth-without-image .news-categories span,\n.mk-read-more,\n.news-single-social li a,\n.portfolio-widget-cats,\n.portfolio-carousel-cats,\n.blog-showcase-more,\n.simple-style .mk-employee-item:hover .team-member-position,\n.mk-readmore,\n.about-author-name,\n.filter-portfolio li a:hover,\n.mk-portfolio-classic-item .portfolio-categories a,\n.register-login-links a:hover,\n#mk-language-navigation ul li a:hover,\n#mk-language-navigation ul li.current-menu-item > a,\n.not-found-subtitle,\n.mk-mini-callout a,\n.mk-quick-contact-wrapper h4,\n.search-loop-meta a,\n.new-tab-readmore,\n.mk-news-tab .mk-tabs-tabs li.ui-tabs-active a,\n.mk-tooltip,\n.mk-search-permnalink,\n.divider-go-top:hover,\n.widget-sub-navigation ul li a:hover,\n.mk-toggle-title.active-toggle i,\n.mk-accordion-single.current .mk-accordion-tab i,\n.monocolor.pricing-table .pricing-price span,\n#mk-footer .widget_posts_lists ul li .post-list-meta time,\n.mk-footer-tweets .tweet-username,\n.quantity .plus:hover,\n.quantity .minus:hover,\n.mk-woo-tabs .mk-tabs-tabs li.ui-state-active a,\n.product .add_to_cart_button i,\n.blog-modern-comment:hover,\n.blog-modern-share:hover,\n.mk-tabs.simple-style .mk-tabs-tabs li.ui-tabs-active a,\n.product-category .item-holder:hover h4\n{\n\tcolor: {$skin_color} !important;\n}\n\n";
    #################################################
    # Theme Skin Background color
    #################################################
    $output .= "\n.image-hover-overlay,\n.newspaper-portfolio,\n.similar-posts-wrapper .post-thumbnail:hover > .overlay-pattern,\n.portfolio-logo-section,\n.post-list-document .post-type-thumb:hover,\n#cboxTitle,\n#cboxPrevious,\n#cboxNext,\n#cboxClose,\n.comment-form-button,\n.mk-dropcaps.fancy-style,\n.mk-image-overlay,\n.pinterest-item-overlay,\n.news-full-with-image .news-categories span,\n.news-half-with-image .news-categories span,\n.news-fourth-with-image .news-categories span,\n.widget-portfolio-overlay,\n.portfolio-carousel-overlay,\n.blog-carousel-overlay,\n.mk-classic-comments span,\n.mk-similiar-overlay,\n.mk-skin-button,\n.mk-flex-caption .flex-desc span,\n.mk-icon-box .mk-icon-wrapper i:hover,\n.mk-quick-contact-link:hover,\n.quick-contact-active.mk-quick-contact-link,\n.mk-fancy-table th,\n.ui-slider-handle,\n.widget_price_filter .ui-slider-range,\n.shop-skin-btn,\n#review_form_wrapper input[type=submit],\n#mk-nav-search-wrapper form .nav-side-search-icon:hover,\nform.ajax-search-complete i,\n.blog-modern-btn,\n.showcase-blog-overlay,\n.gform_button[type=submit],\n.button.alt,\n#respond #submit,\n.woocommerce .price_slider_amount .button.button,\n.mk-shopping-cart-box .mk-button.checkout,\n.widget_shopping_cart .mk-button.checkout,\n.widget_shopping_cart .mk-button.checkout\n{\n\tbackground-color: {$skin_color} !important;\n}\n\n";
    #################################################
    # Shortcodes and other elements
    #################################################
    $output .= "\n\n.mk-circle-image .item-holder\n{\n\t-webkit-box-shadow:0 0 0 1px {$skin_color};\n\t-moz-box-shadow:0 0 0 1px {$skin_color};\n\tbox-shadow:0 0 0 1px {$skin_color};\n}\n\n\n\n.mk-blockquote.line-style,\n.bypostauthor .comment-content,\n.bypostauthor .comment-content:after,\n.mk-tabs.simple-style .mk-tabs-tabs li.ui-tabs-active a\n{\n\tborder-color: {$skin_color} !important;\n}\n\n\n\n.news-full-with-image .news-categories span,\n.news-half-with-image .news-categories span,\n.news-fourth-with-image .news-categories span,\n.mk-flex-caption .flex-desc span\n{\n\tbox-shadow: 8px 0 0 {$skin_color}, -8px 0 0 {$skin_color};\n}\n\n\n\n.monocolor.pricing-table .pricing-cols .pricing-col.featured-plan\n{\n\tborder:1px solid {$skin_color} !important;\n}\n\n\n\n\n.mk-skin-button.three-dimension\n{\n\tbox-shadow: 0px 3px 0px 0px {$skin_darker};\n}\n\n\n.mk-skin-button.three-dimension:active\n{\n\tbox-shadow: 0px 1px 0px 0px {$skin_darker};\n}\n\n\n\n.mk-footer-copyright, #mk-footer-navigation li a\n{\n\tcolor: {$mk_options['sub_footer_nav_copy_color']};\n}\n\n\n\n.mk-woocommerce-main-image img:hover, .mk-single-thumbnails img:hover\n{\n\tborder:1px solid {$skin_color} !important;\n\n}\n\n\n\n.product-loading-icon\n{\n\tbackground-color:{$skin_color_60};\n}\n\n\n{$mk_options['custom_css']}\n\n";
    $output = preg_replace('/\\r|\\n|\\t/', '', $output);
    wp_enqueue_style('theme-dynamic-styles', get_template_directory_uri() . '/dist/app.min.css');
    wp_add_inline_style('theme-dynamic-styles', $output);
}
コード例 #4
0
function gdl_button_shortcode($atts, $content = null)
{
    extract(shortcode_atts(array("color" => '', "background" => '', "size" => 'large', "src" => '#', 'target' => '_self'), $atts));
    $button_border = '';
    if (!empty($background)) {
        $button_border = '#' . hexDarker(substr($background, 1), 5);
    }
    return '<a href="' . $src . '" target="' . $target . '" class="gdl-button shortcode-' . $size . '-button" style="color:' . $color . '; background-color:' . $background . '; border-color:' . $button_border . '; ">' . $content . '</a>';
}
コード例 #5
0
ファイル: mk_button.php プロジェクト: namleduc/thqc
            }
            $text_color = !empty($text_color) ? $text_color . '-color ' : 'light-color ';
        }
    }
}
if ($dimension == 'three' || $dimension == 'two') {
    $app_styles .= '
         .button-' . $style_id . ':hover {
                background-color:' . hexDarker($bg_color, 7) . ';

        }
        .button-' . $style_id . '.three-dimension  {
             box-shadow: 0px 3px 0px 0px ' . hexDarker($bg_color, 20) . ';
        }
        .button-' . $style_id . '.three-dimension:active  {
             box-shadow: 0px 1px 0px 0px ' . hexDarker($bg_color, 20) . ';
        } 
    ';
}
if ($animation != '') {
    $animation_css = ' mk-animate-element ' . $animation . ' ';
}
if ($icon_anim != 'none') {
    $icon_animate = ' mk-btn-anim ' . $icon_anim . ' ';
}
if (!empty($icon)) {
    $icon = strpos($icon, 'mk-') !== FALSE ? '<i class="' . $icon . '"><span>&nbsp;</span></i>' : '<i class="mk-' . $icon . '"><span>&nbsp;</span></i>';
} else {
    $icon = '';
}
$id = !empty($id) ? 'id="' . $id . '"' : '';
コード例 #6
0
if ($add_icon === 'true') {
    vc_icon_element_fonts_enqueue($icon_type);
    $iconClass = isset(${"icon_" . $icon_type}) ? ${"icon_" . $icon_type} : 'fa fa-info-circle';
    $icon_render = '<i class="' . $iconClass . '"></i>';
} else {
    $i_align = '';
}
if ($color == 'custom') {
    $styles_render = '<style type="text/css" scoped="scoped">';
    $styles_render .= '.button_scope_' . $button_counter . ',.button_scope_' . $button_counter . '.style_3d:hover{';
    $styles_render .= 'background-color:' . $custom_color . ';';
    $styles_render .= 'color:' . $custom_text_color . ';';
    $styles_render .= 'border-color:' . $custom_border_color . ';';
    $styles_render .= '}';
    $styles_render .= '.button_scope_' . $button_counter . ':hover{';
    $styles_render .= 'background-color:' . $custom_color_hover . ';';
    $styles_render .= 'color:' . $custom_text_color_hover . ';';
    $styles_render .= 'border-color:' . $custom_border_color_hover . ';';
    $styles_render .= '}';
    $styles_render .= '.button_scope_' . $button_counter . '.style_3d {';
    $styles_render .= 'box-shadow: 0 5px 0' . hexDarker($custom_color, 20) . ';';
    $styles_render .= '-webkit-box-shadow: 0 5px 0' . hexDarker($custom_color, 20) . ';';
    $styles_render .= '}';
    $styles_render .= '</style>';
}
$color = $color != '' ? $color = 'button_' . $color : '';
$align = $align != '' ? 'button_' . $align : '';
$el_class = $this->getExtraClass($el_class);
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_button ' . $color . $size . $icon . $el_class . $position, $this->settings['base'], $atts);
$output = '<div class="' . $align . $inline_button . ' ' . $css_animation . ' ' . $el_class . '" ' . $delay . '>' . $styles_render . '<a class="button ' . $size . ' ' . $color . ' button_scope_' . $button_counter . $style . $shape . $full_width . '" href="' . $href . '" target="' . $target . '"><div class="button_content ' . $i_align . '">' . $icon_render . $title . '</div></a></div>';
echo $output . $this->endBlockComment($this->getShortcode()) . "\n";
コード例 #7
0
ファイル: shortcodes.php プロジェクト: pcco/portal-redesign
function cp_button_shortcode($atts, $content = null)
{
    //Fetch Parameters
    extract(shortcode_atts(array("color" => '', "size" => 'large', "link" => '#', 'target' => '_self'), $atts));
    //HTML Markup
    $button_border = '';
    if (!empty($background)) {
        $button_border = '#' . hexDarker(substr($background, 1), 5);
    }
    return '<a href="' . $link . '" target="' . $target . '" class="cp-button shortcode-' . $size . '-button" style="background-color:' . $color . '; ">' . $content . '</a>';
}
コード例 #8
0
function postHTML($_text, $_translation, $_add, $_operator, $_name)
{
    global $LZLANG;
    $post = $_add ? !$_operator ? getFile(TEMPLATE_HTML_MESSAGE_OVERLAY_CHAT_EXTERN) : getFile(TEMPLATE_HTML_MESSAGE_OVERLAY_CHAT_OPERATOR) : getFile(TEMPLATE_HTML_MESSAGE_OVERLAY_CHAT_ADD);
    $post = str_replace("<!--name-->", $_operator ? $_name : (!empty($_name) ? $_name : $LZLANG["client_guest"]), $post);
    $post = str_replace("<!--time-->", date("H:i"), $post);
    $color = getBrightness(base64UrlDecode($_GET["ovlc"])) > getBrightness(base64UrlDecode($_GET["ovlct"])) ? $_GET["ovlct"] : $_GET["ovlc"];
    $post = str_replace("<!--color-->", $_operator ? hexDarker(str_replace("#", "", base64UrlDecode($color)), 30) : "#000000", $post);
    $_text = preg_replace('/(<(?!img)\\w+[^>]+)(style="[^"]+")([^>]*)(>)/', '${1}${3}${4}', strip_tags($_text, "<a><br><b><ul><li><ol><b><i><u><strong><img>"));
    if (!empty($_translation)) {
        $_translation = preg_replace('/(<(?!img)\\w+[^>]+)(style="[^"]+")([^>]*)(>)/', '${1}${3}${4}', strip_tags($_translation, "<a><br><b><ul><li><ol><b><i><u><strong><img>"));
        $_text = $_translation . "<div class='lz_overlay_translation'>" . $_text . "</div>";
    }
    return str_replace("<!--message-->", $_text, $post);
}
コード例 #9
0
function gdl_get_style_custom_content()
{
    $temp_val = '';
    $temp_sel = '';
    $temp_att = '';
    // Background Style
    $background_style = get_option(THEME_SHORT_NAME . '_background_style', 'Pattern');
    if ($background_style == 'Pattern') {
        $background_pattern = get_option(THEME_SHORT_NAME . '_background_pattern', '1');
        $temp_att = gdl_style_att('background-image', 'url(' . GOODLAYERS_PATH . '/images/pattern/pattern-' . $background_pattern . '.png)');
        gdl_print_style('html', $temp_att);
    }
    $temp_att = gdl_style_att('background-color', get_option(THEME_SHORT_NAME . "_body_background", '#dddddd'));
    gdl_print_style('html', $temp_att);
    // Logo Margin
    $temp_att = gdl_style_att('margin-top', get_option(THEME_SHORT_NAME . "_logo_top_margin", '35') . 'px');
    $temp_att = $temp_att . gdl_style_att('margin-left', get_option(THEME_SHORT_NAME . "_logo_left_margin", '0') . 'px');
    $temp_att = $temp_att . gdl_style_att('margin-bottom', get_option(THEME_SHORT_NAME . "_logo_bottom_margin", '26') . 'px');
    gdl_print_style('.logo-wrapper', $temp_att);
    // Social Margin
    $temp_att = gdl_style_att('margin-top', get_option(THEME_SHORT_NAME . "_social_wrapper_margin", '33') . 'px');
    gdl_print_style('.social-wrapper', $temp_att);
    // Header Font
    $temp_att = gdl_style_att('font-size', get_option(THEME_SHORT_NAME . "_h1_size", '30') . 'px');
    gdl_print_style('h1', $temp_att);
    $temp_att = gdl_style_att('font-size', get_option(THEME_SHORT_NAME . "_h2_size", '25') . 'px');
    gdl_print_style('h2', $temp_att);
    $temp_att = gdl_style_att('font-size', get_option(THEME_SHORT_NAME . "_h3_size", '20') . 'px');
    gdl_print_style('h3', $temp_att);
    $temp_att = gdl_style_att('font-size', get_option(THEME_SHORT_NAME . "_h4_size", '18') . 'px');
    gdl_print_style('h4', $temp_att);
    $temp_att = gdl_style_att('font-size', get_option(THEME_SHORT_NAME . "_h5_size", '16') . 'px');
    gdl_print_style('h5', $temp_att);
    $temp_att = gdl_style_att('font-size', get_option(THEME_SHORT_NAME . "_h6_size", '15') . 'px');
    gdl_print_style('h6', $temp_att);
    $temp_att = gdl_style_att('font-size', get_option(THEME_SHORT_NAME . "_content_size", '12') . 'px');
    gdl_print_style('body', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_title_color", '#494949'));
    gdl_print_style('h1, h2, h3, h4, h5, h6, .title-color', $temp_att);
    // Font Family
    $temp_att = gdl_style_att('font-family', substr(get_option(THEME_SHORT_NAME . "_content_font"), 2));
    gdl_print_style('body', $temp_att);
    $temp_att = gdl_style_att('font-family', substr(get_option(THEME_SHORT_NAME . "_header_font"), 2));
    gdl_print_style('h1, h2, h3, h4, h5, h6, .gdl-title', $temp_att);
    $temp_att = gdl_style_att('font-family', substr(get_option(THEME_SHORT_NAME . "_stunning_text_font"), 2));
    gdl_print_style('h1.stunning-text-title', $temp_att);
    // Container
    $temp_val = get_option(THEME_SHORT_NAME . "_container_shadow", '#bbbbbb');
    $temp_att = gdl_style_att('background', get_option(THEME_SHORT_NAME . "_container_background", '#ffffff'));
    $temp_att = $temp_att . gdl_style_att('-moz-box-shadow', '0px 0px 8px ' . $temp_val);
    $temp_att = $temp_att . gdl_style_att('-webkit-box-shadow', '0px 0px 8px ' . $temp_val);
    $temp_att = $temp_att . gdl_style_att('box-shadow', '0px 0px 8px ' . $temp_val);
    gdl_print_style('div.container', $temp_att);
    // Divider
    $temp_val = get_option(THEME_SHORT_NAME . "_divider_line", '#ececec');
    $temp_att = gdl_style_att('border-bottom', '1px solid ' . $temp_val);
    gdl_print_style('div.divider', $temp_att);
    $temp_sel = ".gdl-divider, ";
    $temp_sel = $temp_sel . ".custom-sidebar.gdl-divider div, ";
    $temp_sel = $temp_sel . ".custom-sidebar.gdl-divider .custom-sidebar-title, ";
    $temp_sel = $temp_sel . ".custom-sidebar.gdl-divider ul li";
    $temp_att = gdl_style_att('border-color', $temp_val . ' !important');
    gdl_print_style($temp_sel, $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_back_to_top_text_color", '#7c7c7c') . ' !important');
    gdl_print_style('.scroll-top', $temp_att);
    // Stunning Text
    $temp_att = gdl_style_att('background-color', get_option(THEME_SHORT_NAME . "_stunning_text_background_color", '#ffffff') . ' !important');
    gdl_print_style('.stunning-text-wrapper', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_stunning_text_title_color", '#333333'));
    gdl_print_style('h1.stunning-text-title', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_stunning_text_caption_color", '#666666'));
    gdl_print_style('.stunning-text-caption', $temp_att);
    $temp_val = get_option(THEME_SHORT_NAME . '_stunning_text_button_background', '#ef7f2c');
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_stunning_text_button_color', '#ffffff') . ' !important');
    $temp_att = $temp_att . gdl_style_att('background-color', $temp_val . ' !important');
    $temp_att = $temp_att . gdl_style_att('border', '1px solid ' . $temp_val . ' !important');
    gdl_print_style('.stunning-text-button', $temp_att);
    // Font Color
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_content_color", '#666666') . ' !important');
    gdl_print_style('body', $temp_att);
    $temp_val = get_option(THEME_SHORT_NAME . "_link_color", '#ef7f2c');
    $temp_att = gdl_style_att('color', $temp_val);
    gdl_print_style('a', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_link_hover_color", '#ef7f2c'));
    gdl_print_style('a:hover', $temp_att);
    $temp_att = gdl_style_att('color', $temp_val . ' !important');
    gdl_print_style('.gdl-link-title', $temp_att);
    // Slider
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_slider_title_color", '#ef7f2c') . ' !important');
    gdl_print_style('.gdl-slider-title', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_slider_caption_color", '#ffffff') . ' !important');
    gdl_print_style('.gdl-slider-caption, .nivo-caption', $temp_att);
    $temp_att = gdl_style_att('background-color', get_option(THEME_SHORT_NAME . "_full_slider_bottom_line", '#ebebeb'));
    gdl_print_style('div.slider-bottom-gimmick', $temp_att);
    // Column Service
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_column_service_title_color", '#ef7f2c') . ' !important');
    gdl_print_style('h2.column-service-title', $temp_att);
    // Post - Port Color
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_port_title_color", '#ef7f2c') . ' !important');
    gdl_print_style('.port-title-color, .port-title-color a', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_port_title_hover_color", '#ef7f2c') . ' !important');
    gdl_print_style('.port-title-color a:hover', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_post_title_color", '#646464') . ' !important');
    gdl_print_style('.post-title-color', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_post_title_hover_color", '#646464') . ' !important');
    gdl_print_style('.post-title-color a:hover', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_post_widget_title_color", '#ef7f2c') . ' !important');
    gdl_print_style('.post-widget-title-color', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_post_info_color", '#797979') . ' !important');
    gdl_print_style('.post-info-color, div.custom-sidebar #twitter_update_list', $temp_att);
    $temp_att = gdl_style_att('background-color', get_option(THEME_SHORT_NAME . "_pagination_normal_state", '#f5f5f5'));
    gdl_print_style('div.pagination a', $temp_att);
    $temp_att = gdl_style_att('background-color', get_option(THEME_SHORT_NAME . "_post_about_author_color", '#f9f9f9') . ' !important');
    gdl_print_style('.about-author-wrapper', $temp_att);
    // Frame Color
    $temp_sel = "div.gallery-thumbnail-image, ";
    $temp_sel = $temp_sel . "div.portfolio-thumbnail-image, div.portfolio-thumbnail-video, div.portfolio-thumbnail-slider, ";
    $temp_sel = $temp_sel . "div.blog-thumbnail-image, div.blog-thumbnail-video, div.blog-thumbnail-slider, ";
    $temp_sel = $temp_sel . ".gdl-image-frame";
    $temp_att = gdl_style_att('background-color', get_option(THEME_SHORT_NAME . "_post_port_frame_color", '#f0f0f0') . ' !important');
    $temp_att = $temp_att . gdl_style_att('border', '1px solid ' . get_option(THEME_SHORT_NAME . "_post_port_frame_border", '#ffffff') . ' !important');
    gdl_print_style($temp_sel, $temp_att);
    // Testimonial
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_testimonial_text", '#848484') . ' !important');
    gdl_print_style('.testimonial-content', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_testimonial_author", '#494949') . ' !important');
    gdl_print_style('.testimonial-author-name', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_testimonial_position", '#8d8d8d') . ' !important');
    gdl_print_style('.testimonial-author-position', $temp_att);
    // Table
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . "_table_text_title", '#666666'));
    $temp_att = $temp_att . gdl_style_att('background-color', get_option(THEME_SHORT_NAME . "_table_title_background", '#f7f7f7'));
    gdl_print_style('table th', $temp_att);
    $temp_att = gdl_style_att('border-color', get_option(THEME_SHORT_NAME . "_table_border", '#e5e5e5'));
    gdl_print_style('table, table tr, table tr td, table tr th', $temp_att);
    // Top Navigation
    $temp_val = get_option(THEME_SHORT_NAME . '_top_navigation_text', '#e7e7e7');
    $temp_att = gdl_style_att('color', $temp_val . ' !important');
    $temp_att = $temp_att . gdl_style_att('background-color', get_option(THEME_SHORT_NAME . "_top_navigation_background", 'transparent') . ' !important');
    gdl_print_style('.top-navigation-wrapper, .top-navigation-left li a', $temp_att);
    $temp_val = '#' . hexDarker(substr($temp_val, 1));
    $temp_att = gdl_style_att('border-right', '1px solid ' . $temp_val . ' !important');
    gdl_print_style('.top-navigation-left li a', $temp_att);
    $temp_att = gdl_style_att('background-color', get_option(THEME_SHORT_NAME . "_top_navigation_bottom_bar", '#e77927') . ' !important');
    gdl_print_style('.top-navigation-wrapper-gimmick', $temp_att);
    // Navigation
    if (get_option(THEME_SHORT_NAME . '_main_navigation_gradient', 'enable') == 'enable') {
        $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/gradient-top-gray-40px.png) repeat-x;');
        gdl_print_style('div.navigation-wrapper', $temp_att);
    }
    $temp_val = get_option(THEME_SHORT_NAME . '_main_navigation_border_top_bottom', '#ececec');
    $temp_att = gdl_style_att('border-top', '1px solid ' . $temp_val . ' !important');
    $temp_att = $temp_att . gdl_style_att('border-bottom', '1px solid ' . $temp_val . ' !important');
    $temp_val = get_option(THEME_SHORT_NAME . '_main_navigation_bottom_shadow', '#f5f5f5');
    $temp_att = $temp_att . gdl_style_att('-moz-box-shadow', '0px 1px 5px -1px ' . $temp_val);
    $temp_att = $temp_att . gdl_style_att('-webkit-box-shadow', '0px 1px 5px -1px ' . $temp_val);
    $temp_att = $temp_att . gdl_style_att('box-shadow', '0px 1px 5px -1px ' . $temp_val);
    gdl_print_style('.navigation-wrapper', $temp_att);
    $temp_att = gdl_style_att('border-color', get_option(THEME_SHORT_NAME . '_sub_navigation_border', '#ececec') . ' !important');
    gdl_print_style('.navigation-wrapper .sf-menu ul, .navigation-wrapper .sf-menu ul li', $temp_att);
    $temp_att = gdl_style_att('background-color', get_option(THEME_SHORT_NAME . '_main_navigation_background', '#fdfdfd') . ' !important');
    gdl_print_style('.navigation-wrapper', $temp_att);
    $temp_att = gdl_style_att('background-color', get_option(THEME_SHORT_NAME . '_sub_navigation_background', '#fdfdfd') . ' !important');
    gdl_print_style('.sf-menu li li', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_main_navigation_text', '#7a7a7a') . ' !important');
    $temp_att = $temp_att . gdl_style_att('border-right', '1px solid ' . get_option(THEME_SHORT_NAME . '_main_navigation_border_right', '#dbdbdb') . ' !important');
    $temp_att = $temp_att . gdl_style_att('border-left', '1px solid ' . get_option(THEME_SHORT_NAME . '_main_navigation_border_left', '#ffffff') . ' !important');
    gdl_print_style('.navigation-wrapper .sf-menu li a', $temp_att);
    $temp_sel = ".navigation-wrapper .sf-menu ul a, .navigation-wrapper .sf-menu ul .current-menu-ancestor ul a, .navigation-wrapper .sf-menu ul .current-menu-item ul a, ";
    $temp_sel = $temp_sel . ".navigation-wrapper .sf-menu .current-menu-ancestor ul a, .navigation-wrapper .sf-menu .current-menu-item ul a";
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_sub_navigation_text', '#7a7a7a') . ' !important');
    gdl_print_style($temp_sel, $temp_att);
    $temp_sel = ".navigation-wrapper .sf-menu ul a:hover, .navigation-wrapper .sf-menu ul .current-menu-item ul a:hover, ";
    $temp_sel = $temp_sel . ".navigation-wrapper .sf-menu .current-menu-item ul a:hover";
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_sub_navigation_text_hover', '#3d3d3d') . ' !important');
    gdl_print_style($temp_sel, $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_main_navigation_text_hover', '#3d3d3d') . ' !important');
    gdl_print_style('.navigation-wrapper .sf-menu a:hover', $temp_att);
    $temp_sel = ".navigation-wrapper .sf-menu .current-menu-ancestor a, .navigation-wrapper .sf-menu .current-menu-item a";
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_main_navigation_text_current', '#3d3d3d') . ' !important');
    gdl_print_style($temp_sel, $temp_att);
    $temp_sel = ".navigation-wrapper .sf-menu ul .current-menu-ancestor a, ";
    $temp_sel = $temp_sel . ".navigation-wrapper .sf-menu ul .current-menu-ancestor ul .current-menu-item a, ";
    $temp_sel = $temp_sel . ".navigation-wrapper .sf-menu ul .current-menu-item a";
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_sub_navigation_text_current', '#3d3d3d') . ' !important');
    gdl_print_style($temp_sel, $temp_att);
    // Search Box
    $temp_att = gdl_style_att('border-left', '1px solid ' . get_option(THEME_SHORT_NAME . '_main_navigation_border_right', '#dbdbdb'));
    gdl_print_style('.search-wrapper', $temp_att);
    $temp_att = gdl_style_att('border-left', '1px solid ' . get_option(THEME_SHORT_NAME . '_main_navigation_border_left', '#ffffff'));
    gdl_print_style('.search-wrapper form', $temp_att);
    $temp_val = get_option(THEME_SHORT_NAME . '_search_box_shadow', '#ddd');
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_search_box_text', '#333333') . ' !important');
    $temp_att = $temp_att . gdl_style_att('background-color', get_option(THEME_SHORT_NAME . '_search_box_background', '#efefef') . ' !important');
    $temp_att = $temp_att . gdl_style_att('-webkit-box-shadow', 'inset 0px 0px 6px ' . $temp_val . ' !important');
    $temp_att = $temp_att . gdl_style_att('-moz-box-shadow', 'inset 0px 0px 6px ' . $temp_val . ' !important');
    $temp_att = $temp_att . gdl_style_att('box-shadow', 'inset 0px 0px 6px ' . $temp_val . ' !important');
    gdl_print_style('.search-wrapper #search-text input[type="text"]', $temp_att);
    // Price Item
    $temp_att = gdl_style_att('border-color', get_option(THEME_SHORT_NAME . '_price_item_border', '#ececec') . ' !important');
    gdl_print_style('div.gdl-price-item .gdl-divider', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_price_item_price_title_color', '#3a3a3a') . ' !important');
    $temp_att = $temp_att . gdl_style_att('background-color', get_option(THEME_SHORT_NAME . '_price_item_price_title_background', '#e9e9e9') . ' !important');
    gdl_print_style('div.gdl-price-item .price-title', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_price_item_best_price_title_color', '#ffffff') . ' !important');
    $temp_att = $temp_att . gdl_style_att('background-color', get_option(THEME_SHORT_NAME . '_price_item_best_price_title_background', '#5f5f5f') . ' !important');
    gdl_print_style('div.gdl-price-item .price-item.active .price-title', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_price_item_price_color', '#3a3a3a') . ' !important');
    gdl_print_style('div.gdl-price-item .price-tag', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_price_item_best_price_color', '#ef7f2c') . ' !important');
    gdl_print_style('div.gdl-price-item .price-item.active .price-tag', $temp_att);
    $temp_att = gdl_style_att('border-top', '1px solid ' . get_option(THEME_SHORT_NAME . '_price_item_best_price_color', '#ef7f2c') . ' !important');
    gdl_print_style('div.gdl-price-item .price-item.active', $temp_att);
    // Tabs Color
    $temp_val = get_option(THEME_SHORT_NAME . '_tab_border_color', '#dddddd');
    $temp_att = gdl_style_att('border-color', $temp_val . ' !important');
    gdl_print_style('ul.tabs', $temp_att);
    $temp_att = gdl_style_att('border-color', $temp_val . ' !important');
    $temp_att = $temp_att . gdl_style_att('background-color', get_option(THEME_SHORT_NAME . '_tab_background_color', '#f5f5f5') . ' !important');
    $temp_att = $temp_att . gdl_style_att('color', get_option(THEME_SHORT_NAME . '_tab_text_color', '#666666') . ' !important');
    gdl_print_style('ul.tabs li a', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_tab_active_text_color', '#111111') . ' !important');
    $temp_att = $temp_att . gdl_style_att('background-color', get_option(THEME_SHORT_NAME . '_tab_active_background_color', '#fff') . ' !important');
    gdl_print_style('ul.tabs li a.active', $temp_att);
    // Sidebar
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_sidebar_title_color', '#494949') . ' !important');
    gdl_print_style('.sidebar-title-color', $temp_att);
    // Footer
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_footer_link_color', '#ef7f2c') . ' !important');
    gdl_print_style('.footer-wrapper a', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_footer_link_hover_color', '#ef7f2c') . ' !important');
    gdl_print_style('.footer-wrapper a:hover', $temp_att);
    $temp_att = gdl_style_att('background', get_option(THEME_SHORT_NAME . '_footer_top_bar', '#cfcfcf'));
    gdl_print_style('div.footer-wrapper-gimmick', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_footer_title_color', '#ececec') . ' !important');
    gdl_print_style('.footer-widget-wrapper .custom-sidebar-title', $temp_att);
    $temp_att = gdl_style_att('background-color', get_option(THEME_SHORT_NAME . '_footer_background', '#313131') . ' !important');
    gdl_print_style('.footer-wrapper', $temp_att);
    $temp_sel = 'div.footer-wrapper div.contact-form-wrapper input[type="text"], ';
    $temp_sel = $temp_sel . 'div.footer-wrapper div.contact-form-wrapper input[type="password"], ';
    $temp_sel = $temp_sel . 'div.footer-wrapper div.contact-form-wrapper textarea, ';
    $temp_sel = $temp_sel . 'div.footer-wrapper div.custom-sidebar #search-text input[type="text"], ';
    $temp_sel = $temp_sel . 'div.footer-wrapper div.custom-sidebar .contact-widget-whole input, ';
    $temp_sel = $temp_sel . 'div.footer-wrapper div.custom-sidebar .contact-widget-whole textarea';
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_footer_input_text', '#888888') . ' !important');
    $temp_att = $temp_att . gdl_style_att('background-color', get_option(THEME_SHORT_NAME . '_footer_input_background', '#383838') . ' !important');
    $temp_att = $temp_att . gdl_style_att('border', '1px solid ' . get_option(THEME_SHORT_NAME . '_footer_input_border', '#434343') . ' !important');
    gdl_print_style($temp_sel, $temp_att);
    $temp_att = gdl_style_att('background-color', get_option(THEME_SHORT_NAME . '_footer_button_color', '#222222') . ' !important');
    $temp_att = $temp_att . gdl_style_att('color', get_option(THEME_SHORT_NAME . '_footer_button_text', '#7a7a7a') . ' !important');
    gdl_print_style('div.footer-wrapper a.button, div.footer-wrapper button, div.footer-wrapper button:hover', $temp_att);
    $temp_att = gdl_style_att('background-color', get_option(THEME_SHORT_NAME . '_footer_frame_background', '#292929'));
    $temp_att = $temp_att . gdl_style_att('border-color', get_option(THEME_SHORT_NAME . '_footer_frame_border', '#3b3b3b') . ' !important');
    gdl_print_style('div.footer-wrapper div.custom-sidebar .recent-post-widget-thumbnail', $temp_att);
    $temp_sel = '.footer-wrapper .gdl-divider, ';
    $temp_sel = $temp_sel . '.footer-wrapper .custom-sidebar.gdl-divider div, ';
    $temp_sel = $temp_sel . '.footer-wrapper .custom-sidebar.gdl-divider ul li';
    $temp_att = gdl_style_att('border-color', get_option(THEME_SHORT_NAME . '_footer_divider_color', '#3b3b3b') . ' !important');
    gdl_print_style($temp_sel, $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_footer_content_color', '#999999') . ' !important');
    gdl_print_style('.footer-wrapper, .footer-wrapper table th', $temp_att);
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_footer_content_info_color', '#b1b1b1') . ' !important');
    gdl_print_style('.footer-wrapper .post-info-color, div.custom-sidebar #twitter_update_list', $temp_att);
    // Copyright
    $temp_var = get_option(THEME_SHORT_NAME . '_copyright_shadow', '#111111');
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_copyright_text', '#808080') . ' !important');
    $temp_att = $temp_att . gdl_style_att('background-color', get_option(THEME_SHORT_NAME . '_copyright_background', '#202020') . ' !important');
    $temp_att = $temp_att . gdl_style_att('-moz-box-shadow', 'inset 0px 3px 6px -3px ' . $temp_var);
    $temp_att = $temp_att . gdl_style_att('-webkit-box-shadow', 'inset 0px 3px 6px -3px ' . $temp_var);
    $temp_att = $temp_att . gdl_style_att('box-shadow', 'inset 0px 3px 6px -3px ' . $temp_var);
    gdl_print_style('div.copyright-wrapper', $temp_att);
    // Contact Form
    $temp_val_frame = get_option(THEME_SHORT_NAME . '_contact_form_frame_color', '#f8f8f8');
    $temp_val_shadow = get_option(THEME_SHORT_NAME . '_contact_form_inner_shadow', '#ececec');
    $temp_sel = 'div.contact-form-wrapper input[type="text"], div.contact-form-wrapper input[type="password"], ';
    $temp_sel = $temp_sel . 'div.contact-form-wrapper textarea, div.custom-sidebar #search-text input[type="text"], ';
    $temp_sel = $temp_sel . 'div.custom-sidebar .contact-widget-whole input, div.comment-wrapper input[type="text"], ';
    $temp_sel = $temp_sel . 'input[type="password"], div.comment-wrapper textarea, div.custom-sidebar .contact-widget-whole textarea, ';
    $temp_sel = $temp_sel . 'span.wpcf7-form-control-wrap input[type="text"], span.wpcf7-form-control-wrap input[type="password"], ';
    $temp_sel = $temp_sel . 'span.wpcf7-form-control-wrap textarea';
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_contact_form_text_color', '#888888'));
    $temp_att = $temp_att . gdl_style_att('background-color', get_option(THEME_SHORT_NAME . '_contact_form_background_color', '#fff'));
    $temp_att = $temp_att . gdl_style_att('border', '1px solid ' . get_option(THEME_SHORT_NAME . '_contact_form_border_color', '#cfcfcf'));
    $temp_att = $temp_att . gdl_style_att('-webkit-box-shadow', $temp_val_shadow . ' 0px 1px 4px inset, ' . $temp_val_frame . ' -5px -5px 0px 0px, ' . $temp_val_frame . ' 5px 5px 0px 0px, ' . $temp_val_frame . ' 5px 0px 0px 0px, ' . $temp_val_frame . ' 0px 5px 0px 0px, ' . $temp_val_frame . ' 5px -5px 0px 0px, ' . $temp_val_frame . ' -5px 5px 0px 0px; ');
    $temp_att = $temp_att . gdl_style_att('box-shadow', $temp_val_shadow . ' 0px 1px 4px inset, ' . $temp_val_frame . ' -5px -5px 0px 0px, ' . $temp_val_frame . ' 5px 5px 0px 0px, ' . $temp_val_frame . ' 5px 0px 0px 0px, ' . $temp_val_frame . ' 0px 5px 0px 0px, ' . $temp_val_frame . ' 5px -5px 0px 0px, ' . $temp_val_frame . ' -5px 5px 0px 0px; ');
    gdl_print_style($temp_sel, $temp_att);
    // Button
    $temp_sel = 'a.button, button, input[type="submit"], input[type="reset"], ';
    $temp_sel = $temp_sel . 'input[type="button"], a.gdl-button';
    $temp_att = gdl_style_att('background-color', get_option(THEME_SHORT_NAME . '_button_background_color', '#f1f1f1'));
    $temp_att = $temp_att . gdl_style_att('color', get_option(THEME_SHORT_NAME . '_button_text_color', '#7a7a7a'));
    $temp_att = $temp_att . gdl_style_att('border', '1px solid ' . get_option(THEME_SHORT_NAME . '_button_border_color', '#dedede'));
    gdl_print_style($temp_sel, $temp_att);
    $temp_sel = 'a.button:hover, button:hover, input[type="submit"]:hover, input[type="reset"]:hover, ';
    $temp_sel = $temp_sel . 'input[type="button"]:hover, a.gdl-button:hover';
    $temp_att = gdl_style_att('color', get_option(THEME_SHORT_NAME . '_button_text_hover_color', '#7a7a7a'));
    gdl_print_style($temp_sel, $temp_att);
    // Elements shadow
    $temp_val = get_option(THEME_SHORT_NAME . '_elements_shadow', '#ececec');
    $temp_sel = 'a.button, button, input[type="submit"], input[type="reset"], input[type="button"], a.gdl-button';
    $temp_att = gdl_style_att('-moz-box-shadow', '1px 1px 3px ' . $temp_val);
    $temp_att = $temp_att . gdl_style_att('-webkit-box-shadow', '1px 1px 3px ' . $temp_val);
    $temp_att = $temp_att . gdl_style_att('box-shadow', '1px 1px 3px ' . $temp_val);
    gdl_print_style($temp_sel, $temp_att);
    $temp_sel = 'div.gallery-thumbnail-image, div.custom-sidebar .recent-post-widget-thumbnail, .gdl-image-frame, ';
    $temp_sel = $temp_sel . 'div.portfolio-thumbnail-image, div.portfolio-thumbnail-video, div.portfolio-thumbnail-slider, ';
    $temp_sel = $temp_sel . 'div.single-port-thumbnail-image, div.single-port-thumbnail-video, div.single-port-thumbnail-slider, ';
    $temp_sel = $temp_sel . 'div.blog-thumbnail-image, div.blog-thumbnail-slider, div.blog-thumbnail-video';
    $temp_att = gdl_style_att('-moz-box-shadow', '0px 0px 4px 1px ' . $temp_val);
    $temp_att = $temp_att . gdl_style_att('-webkit-box-shadow', '0px 0px 4px 1px ' . $temp_val);
    $temp_att = $temp_att . gdl_style_att('box-shadow', '0px 0px 4px 1px ' . $temp_val);
    gdl_print_style($temp_sel, $temp_att);
    $temp_att = gdl_style_att('-moz-box-shadow', 'inset 3px 0px 3px -3px ' . $temp_val);
    $temp_att = $temp_att . gdl_style_att('-webkit-box-shadow', 'inset 3px 0px 3px -3px ' . $temp_val);
    $temp_att = $temp_att . gdl_style_att('box-shadow', 'inset 3px 0px 3px -3px ' . $temp_val);
    gdl_print_style("div.right-sidebar-wrapper", $temp_att);
    $temp_att = gdl_style_att('-moz-box-shadow', 'inset -3px 0px 3px -3px ' . $temp_val);
    $temp_att = $temp_att . gdl_style_att('-webkit-box-shadow', 'inset -3px 0px 3px -3px ' . $temp_val);
    $temp_att = $temp_att . gdl_style_att('box-shadow', 'inset -3px 0px 3px -3px ' . $temp_val);
    gdl_print_style("div.left-sidebar-wrapper", $temp_att);
    $temp_att = gdl_style_att('-moz-box-shadow', '0px 0px 3px ' . $temp_val);
    $temp_att = $temp_att . gdl_style_att('-webkit-box-shadow', '0px 0px 3px ' . $temp_val);
    $temp_att = $temp_att . gdl_style_att('box-shadow', '0px 0px 3px ' . $temp_val);
    gdl_print_style("div.gdl-price-item .price-item.active", $temp_att);
    // Icon Type
    global $gdl_icon_type;
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_icon_type . '/arrow-right.png) no-repeat');
    gdl_print_style("div.single-port-next-nav .right-arrow", $temp_att);
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_icon_type . '/arrow-left.png) no-repeat');
    gdl_print_style("div.single-port-prev-nav .left-arrow", $temp_att);
    $temp_sel = "div.single-thumbnail-author, ";
    $temp_sel = $temp_sel . "div.archive-wrapper .blog-item .blog-thumbnail-author, ";
    $temp_sel = $temp_sel . "div.blog-item-holder .blog-item2 .blog-thumbnail-author ";
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_icon_type . '/author.png) no-repeat 0px 1px');
    gdl_print_style($temp_sel, $temp_att);
    $temp_sel = "div.single-thumbnail-date, div.custom-sidebar .recent-post-widget-date, ";
    $temp_sel = $temp_sel . "div.archive-wrapper .blog-item .blog-thumbnail-date, ";
    $temp_sel = $temp_sel . "div.blog-item-holder .blog-item1 .blog-thumbnail-date, ";
    $temp_sel = $temp_sel . "div.blog-item-holder .blog-item2 .blog-thumbnail-date";
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_icon_type . '/calendar.png) no-repeat 0px 1px');
    gdl_print_style($temp_sel, $temp_att);
    $temp_sel = "div.single-thumbnail-comment, div.archive-wrapper .blog-item .blog-thumbnail-comment, ";
    $temp_sel = $temp_sel . "div.blog-item-holder .blog-item1 .blog-thumbnail-comment, ";
    $temp_sel = $temp_sel . "div.blog-item-holder .blog-item2 .blog-thumbnail-comment, ";
    $temp_sel = $temp_sel . "div.custom-sidebar .recent-post-widget-comment-num";
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_icon_type . '/comment.png) no-repeat 0px 1px');
    gdl_print_style($temp_sel, $temp_att);
    $temp_sel = "div.single-thumbnail-tag, div.archive-wrapper .blog-item .blog-thumbnail-tag, ";
    $temp_sel = $temp_sel . "div.blog-item-holder .blog-item2 .blog-thumbnail-tag ";
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_icon_type . '/tag.png) no-repeat');
    gdl_print_style($temp_sel, $temp_att);
    $temp_sel = "div.custom-sidebar #searchsubmit, ";
    $temp_sel = $temp_sel . 'div.search-wrapper input[type="submit"]';
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_icon_type . '/find-17px.png) no-repeat center');
    gdl_print_style($temp_sel, $temp_att);
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_icon_type . '/link-small.png) no-repeat');
    gdl_print_style('div.single-port-visit-website', $temp_att);
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_icon_type . '/minus-24px.png) no-repeat');
    gdl_print_style('span.accordion-head-image.active, span.toggle-box-head-image.active', $temp_att);
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_icon_type . '/plus-24px.png) no-repeat');
    gdl_print_style('span.accordion-head-image, span.toggle-box-head-image', $temp_att);
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_icon_type . '/navigation-20px.png)');
    gdl_print_style('div.jcarousellite-nav .prev, div.jcarousellite-nav .next', $temp_att);
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_icon_type . '/quotes-18px.png)');
    gdl_print_style('div.testimonial-icon', $temp_att);
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_icon_type . '/arrow4.png) no-repeat 0px 14px');
    gdl_print_style('div.custom-sidebar ul li', $temp_att);
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_icon_type . '/left-cross-5px.png)');
    gdl_print_style('div.stunning-text-wrapper', $temp_att);
    // Footer Icon Type
    global $gdl_footer_icon_type;
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_footer_icon_type . '/arrow4.png) no-repeat 0px 14px');
    gdl_print_style("div.footer-wrapper div.custom-sidebar ul li", $temp_att);
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_footer_icon_type . '/find-17px.png) no-repeat center');
    gdl_print_style("div.footer-wrapper div.custom-sidebar #searchsubmit", $temp_att);
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_footer_icon_type . '/comment.png) no-repeat 0px 1px');
    gdl_print_style("div.footer-wrapper div.custom-sidebar .recent-post-widget-comment-num", $temp_att);
    $temp_att = gdl_style_att('background', 'url(' . GOODLAYERS_PATH . '/images/icon/' . $gdl_footer_icon_type . '/calendar.png) no-repeat 0px 1px');
    gdl_print_style("div.footer-wrapper div.custom-sidebar .recent-post-widget-date", $temp_att);
}
コード例 #10
0
ファイル: ovl.php プロジェクト: bgabor/RenaniaOpencart
function postHTML($_text, $_translation, $_add, $_operator, $_name, $_time, $_senderId)
{
    global $LZLANG, $INTERNAL, $USER;
    $post = $_add ? !$_operator ? getFile(TEMPLATE_HTML_MESSAGE_OVERLAY_CHAT_EXTERN) : getFile(TEMPLATE_HTML_MESSAGE_OVERLAY_CHAT_OPERATOR) : (!$_operator ? getFile(TEMPLATE_HTML_MESSAGE_OVERLAY_CHAT_ADD) : getFile(TEMPLATE_HTML_MESSAGE_OVERLAY_CHAT_OPERATOR_ADD));
    if ($_operator && !empty($USER->Browsers[0]->DesiredChatPartner) && isset($INTERNAL[$USER->Browsers[0]->DesiredChatPartner]) && isset($INTERNAL[$_senderId])) {
        $image = "<img class=\"lz_overlay_chat_operator_picture\" src=\"" . LIVEZILLA_URL . $INTERNAL[$USER->Browsers[0]->DesiredChatPartner]->GetOperatorPictureFile() . "\" width=\"52\" height=\"39\">";
    } else {
        $image = "";
    }
    $post = str_replace("<!--name-->", $_operator ? $_name : (!empty($_name) ? $_name : $LZLANG["client_guest"]), $post);
    $post = str_replace("<!--time-->", $_time, $post);
    $post = str_replace("<!--picture-->", $image, $post);
    $post = str_replace("<!--lang_client_edit-->", strtoupper($LZLANG["client_edit"]), $post);
    $color = getBrightness(base64UrlDecode($_GET["ovlc"])) > getBrightness(base64UrlDecode($_GET["ovlct"])) ? $_GET["ovlct"] : $_GET["ovlc"];
    $post = str_replace("<!--color-->", $_operator ? hexDarker(str_replace("#", "", base64UrlDecode($color)), 50) : "#000000", $post);
    $_text = preg_replace('/(<(?!img)\\w+[^>]+)(style="[^"]+")([^>]*)(>)/', '${1}${3}${4}', strip_tags($_text, "<a><br><b><ul><li><ol><b><i><u><strong><img>"));
    if (!empty($_translation)) {
        $_translation = preg_replace('/(<(?!img)\\w+[^>]+)(style="[^"]+")([^>]*)(>)/', '${1}${3}${4}', strip_tags($_translation, "<a><br><b><ul><li><ol><b><i><u><strong><img>"));
        $_text = $_translation . "<div class='lz_overlay_translation'>" . $_text . "</div>";
    }
    return str_replace("<!--message-->", $_text, $post);
}
コード例 #11
0
		border-color: <?php 
echo $data['button_border_color_hover'];
?>
;
		color: <?php 
echo $data['button_text_color_hover'];
?>
;	
	}
    .button_default.style_3d {
    	box-shadow: 0 5px 0 <?php 
echo hexDarker($data['button_background_color'], 20);
?>
;
        -webkit-box-shadow: 0 5px 0 <?php 
echo hexDarker($data['button_background_color'], 20);
?>
;
    }
	<?php 
if ($footer_link_color) {
    ?>
		.footer_widget_content a, .footer_widget_content ul.twitter li span a, ul.twitter li i{
			color:<?php 
    echo $footer_link_color;
    ?>
 ;			
		}

	<?php 
}