sql("SELECT * FROM `settings` WHERE `uid`={$uid} limit 1"); $setting = (object) $settings[0]; $designs = $con->sql("SELECT `title`,`value` FROM `design` WHERE `uid`={$uid} ORDER BY `design`.`id` DESC"); $design = (object) array_column($designs, 'value', 'title'); // $db = new mysql_class($cfg['db_host'], $cfg['db_user'], $cfg['db_password'], $cfg['db_name']); //$set = mysqli_fetch_object($db->query("select * from `settings`")); // $db = new mysql_class($cfg['db_host'], $cfg['db_user'], $cfg['db_password'], $cfg['db_name']); //$set1 = mysqli_fetch_object($db->query("select * from `settings`")); function d($title) { global $design; //$db if (!isset($design->$title)) { return ''; // $design->$title = ''; } if (substr($design->$title, 0, 2) == "./") { $design->$title = "." . $design->$title; } return $design->$title; } $setting->lang = $_COOKIE['lang'] ?? $setting->lang; if (!in_array($setting->lang, $cfg['available_languages'])) { $setting->lang = 'he_IL'; } //$site_type = $db->fetch($db->query("select `value` from `design` where `title`='site_type'")); //$setting->site_type = $site_type['value']; if ($setting->ssl) $cfg['url'] = str_replace("http://", "https://", $cfg['url']); $setting->uid = $uid; $setting->url = $cfg['url']; if ($setting->lang == "he_IL" || $setting->lang == "ar_PS") { $setting->right = "right"; $setting->left = "left"; } else { $setting->right = "left"; $setting->left = "right"; } d('header_bgcolor'); // require DIR."/includes/css_parser.php"; header("Content-Type: text/css"); $css = '/*--- - Headers: --- 4th Header --- ---*/ /* header.fourth > .container > .row > div { height:55px; background-color:' . d('header_bgcolor') . '; border-top:3px solid ' . d('header_cart_bgcolor') . '; }*/ header.fourth > .container > .row > div:first-child { margin-' . $setting->right . ':15px; margin-' . $setting->left . ':-15px; padding-' . $setting->right . ':15px; } header.fourth > .container > .row > div:last-child { margin-' . $setting->right . ':-15px; margin-' . $setting->left . ':15px; padding-' . $setting->left . ':0; } header.fourth .logo a { display:block; width:100%; height:55px; font-size:0; line-height:55px; } header.fourth .logo a img { max-width:100%; max-height:55px; } header.fourth .menu ul { display:table; margin:0 auto 0 auto; padding:0; list-style:none; overflow:hidden; } header.fourth .menu ul li { float:' . $setting->right . '; } header.fourth .menu ul li a { display:block; height:52px; padding:0 10px 0 10px; font-weight:bold; font-size:14px; line-height:52px; color:' . d('header_menu_color') . '; } header.fourth .menu ul li a:hover { background-color:' . d('header_menu_a_hover_bgcolor') . '; color:' . d('header_menu_a_hover_color') . '; -webkit-transition:all 150ms linear; -moz-transition:all 150ms linear; -o-transition:all 150ms linear; -ms-transition:all 150ms linear; transition:all 150ms linear; } header.fourth .call_search { padding-' . $setting->right . ':0; } header.fourth .call { height:50px; font-weight:bold; font-size:14px; line-height:50px; color:' . d('header_phone_color') . '; float:' . $setting->right . '; } header.fourth .call img { margin-' . $setting->left . ':5px; } header.fourth .searchblock { vertical-align: middle; height: 33px; /* line-height: 33px; */ display: inline-block; padding-right: 20px; } header.fourth .search { width:33px; height:33px; background-color:#ffffff; /*margin-top:10px;*/ float:' . $setting->left . '; border:1px solid #dedede; -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; } header.fourth .search .toggle { width:33px; height:33px; text-align:center; font-size:0; line-height:33px; cursor:pointer; } header.fourth .search form { margin:0; padding:0; } header.fourth .search .form { display:none; width:100%; } header.fourth .search.active { position:absolute; ' . $setting->left . ':15px; width:200px; } header.fourth .search.active .form { position:relative; ' . $setting->left . ':0; display:block; height:33px; } header.fourth .search .form #ts_s { display:block; width:85%; height:31px; background-color:#ffffff; margin:0; padding:0 10px 0 5px; font-weight:bold; font-size:14px; line-height:31px; color:#707070; border:0; -webkit-border-top-' . $setting->right . '-radius:5px; -webkit-border-bottom-' . $setting->right . '-radius:5px; -moz-border-radius-top' . $setting->right . ':5px; -moz-border-radius-bottom' . $setting->right . ':5px; border-top-' . $setting->right . '-radius:5px; border-bottom-' . $setting->right . '-radius:5px; float:' . $setting->right . '; } header.fourth .search .form #ts_s:focus, header.fourth .search .form #ts_s:hover { color:#000000; -webkit-transition:all 500ms linear; -moz-transition:all 500ms linear; -o-transition:all 500ms linear; -ms-transition:all 500ms linear; transition:all 500ms linear; } header.fourth .search .form .submit { display:block; width:15%; height:33px; background:transparent url("../images/icon_search.png") center center no-repeat; margin:0; padding:0; font-size:0; border:0; -webkit-border-top-' . $setting->left . '-radius:5px; -webkit-border-bottom-' . $setting->left . '-radius:5px; -moz-border-radius-top' . $setting->left . ':5px; -moz-border-radius-bottom' . $setting->left . ':5px; border-top-' . $setting->left . '-radius:5px; border-bottom-' . $setting->left . '-radius:5px; float:' . $setting->right . '; cursor:pointer; } header.fourth .guest_wrap { height:52px; background-color:' . d('header_login_bgcolor') . '; } header.fourth .guest_wrap .guest { height:52px; font-size:0; overflow:hidden; float:' . $setting->left . '; } header.fourth .guest_wrap .guest a { display:block; height:55px; padding:0 10px 0 10px; font-weight:bold; font-size:14px; line-height:55px; color:' . d('header_login_color') . '; float:' . $setting->right . '; } header.fourth .guest_wrap .guest a img { margin-' . $setting->left . ':3px; } header.fourth .guest_wrap .guest a:hover { //background-color:#8f8f8f; -webkit-transition:all 150ms linear; -moz-transition:all 150ms linear; -o-transition:all 150ms linear; -ms-transition:all 150ms linear; transition:all 150ms linear; } header.fourth .guest_wrap .guest a:first-child { border-' . $setting->left . ':1px solid #141414; } header.fourth .guest_wrap .guest a:last-child { border-' . $setting->right . ':1px solid #606060; } header.fourth .cart { display:block; height:45px; background:' . d('header_cart_bgcolor') . ' url("' . d('header_cart_icon') . '") 10px center no-repeat; padding:0 10px 0 56px; float:' . $setting->right . '; cursor:pointer; -webkit-border-bottom-' . $setting->right . '-radius:5px; -webkit-border-bottom-' . $setting->left . '-radius:5px; -moz-border-radius-bottom' . $setting->right . ':5px; -moz-border-radius-bottom' . $setting->left . ':5px; border-bottom-' . $setting->right . '-radius:5px; border-bottom-' . $setting->left . '-radius:5px; } header.fourth .cart .counter { display:block; width:30px; height:30px; background-color:' . d('header_cart_counter_bgcolor') . '; margin-top:7px; text-align:center; font-weight:bold; font-size:17px; line-height:31px; color:' . d('header_cart_counter_color') . '; -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; } header.fourth .cart_popup { display:none; position:absolute; top:50px; /*' . $setting->left . ':200px !important;*/ width:350px; z-index:999; } header.fourth .cart_popup .arrow { width:100%; height:8px; background:url("../images/cart_arrow.png") 50px center no-repeat; } header.fourth .cart_popup > .content { width:100%; background-color:' . d('cart_popup_bgcolor') . '; padding:5px; -webkit-box-shadow:8px 8px 13px -5px rgba(2, 2, 2, 0.4); -moz-box-shadow:8px 8px 13px -5px rgba(2, 2, 2, 0.4); box-shadow:8px 8px 13px -5px rgba(2, 2, 2, 0.4); } header.fourth .cart_popup > .content > .title { width:100%; height:37px; text-align:center; font-size:16px; line-height:37px; color:' . d('cart_popup_color') . '; overflow:hidden; border-bottom:1px dashed #b0b0b0; } header.fourth .cart_popup > .content > .title span { display:block; width:26px; height:26px; background:' . d('cart_popup_close_bgcolor') . ' url("../images/icon_cart_close.png") center center no-repeat; margin:4px 10px 0 0; font-size:0; cursor:pointer; float:' . $setting->right . '; -webkit-border-radius:3px; -moz-border-radius:3px; border-radius:3px; opacity:1; filter:alpha(opacity=100); } header.fourth .cart_popup > .content > .title span:hover { background-color:#c5c5c5; -webkit-transition:all 150ms linear; -moz-transition:all 150ms linear; -o-transition:all 150ms linear; -ms-transition:all 150ms linear; transition:all 150ms linear; } header.fourth .cart_popup > .content > .product { width:100%; padding:10px 0 10px 0; overflow:hidden; border-bottom:1px dashed #b0b0b0; } header.fourth .cart_popup > .content > .product .image { display:block; width:68px; height:68px; text-align:center; font-size:0; line-height:67px; float:' . $setting->right . '; } header.fourth .cart_popup > .content > .product .image img { max-width:68px; max-height:68px; border:1px solid #929292; } header.fourth .cart_popup > .content > .product .content { width:180px; margin-' . $setting->right . ':12px; font-size:13px; color:' . d('cart_popup_color') . '; float:' . $setting->right . '; } header.fourth .cart_popup > .content > .product .content .title { display:block; font-weight:bold; font-size:16px; color:' . d('cart_popup_color') . '; } header.fourth .cart_popup > .content > .product .act { width:70px; margin-' . $setting->right . ':10px; float:' . $setting->right . '; } header.fourth .cart_popup > .content > .product .act .delete { width:16px; height:22px; background:url("../images/icon_trash.png") no-repeat; margin:10px auto 0 auto; cursor:pointer; } header.fourth .cart_popup > .content > .product .act .price { width:100%; margin-top:10px; text-align:center; font-weight:bold; font-size:14px; color:' . d('cart_popup_color') . '; } header.fourth .cart_popup > .content > .total { width:100%; padding:10px 0 10px 0; text-align:center; font-weight:bold; font-size:14px; color:' . d('cart_popup_color') . '; border-bottom:1px dashed #b0b0b0; } header.fourth .cart_popup > .content > .link { display:block; width:90%; height:35px; background-color:' . d('cart_popup_submit_bgcolor') . '; margin:10px auto 0 auto; text-align:center; font-weight:bold; font-size:14px; line-height:35px; color:' . d('cart_popup_submit_color') . ' -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; } header.fourth .cart_popup > .content > .link:hover { background-color:' . d('cart_popup_submit_bgcolor_hover') . '; color:' . d('cart_popup_submit_color_hover') . ' -webkit-transition:all 150ms linear; -moz-transition:all 150ms linear; -o-transition:all 150ms linear; -ms-transition:all 150ms linear; transition:all 150ms linear; } /*--- fourth Header ::Navigation ---*/ nav.fourth .nav { width:78%; /*90 75%*/ height:50px; background-color:' . d('header_cats_bgcolor') . '; overflow:hidden; float:' . $setting->right . '; } nav.fourth .nav > ul { display:block; height:50px; line-height:50px; width:100%; margin:0; padding:0; list-style:none; overflow:hidden; font-size:0; } nav.fourth .nav > ul > li { border-right:1px solid #d3a4b0; display:inline-block; float:right; /* padding:10px 15px;*/ text-decoration:none; -webkit-transition:all 0.5s ease 0s; transition:all 0.5s ease 0s; /* margin:0; padding:0; padding:10px 15px; float:' . $setting->right . '; */ text-decoration:none; -webkit-transition:all 0.5s ease 0s; transition:all 0.5s ease 0s; } nav.fourth .nav > ul > li a{ color:#fff; font-size:15px; font-weight:400; line-height:30px; text-decoration:none; } /* nav.fourth .nav > ul > li:after { display:inline-block; position:relative; width:0.15rem; height:3rem; vertical-align:middle; line-height:50px; background-color:' . d('header_cats_color') . '; /* margin-top:1rem; * / margin-right:-1px; margin-left:-1px; font-size:0; content:" "; /*display:inline-block; position:relative; width:2px; height:16px; background-color:' . d('header_cats_color') . '; margin-top:18px; margin-right:-1px; margin-left:-1px; font-size:0; content:" ";* / } */ nav.fourth .nav > ul > li > a { font-weight:bold; font-size:14px; line-height:50px; color:' . d('header_cats_color') . '; /* margin:0; */ font-size:15px; line-height:50px; font-weight:400; /* line-height:30px; */ vertical-align:middle; margin:0 10px; text-decoration:none; } /* nav.fourth .nav > ul > li > a:hover, .header_menu li:hover , .header_menu li:hover a */ nav.fourth .nav > ul > li.current,nav.fourth .nav > ul > li:hover , .header_menu li:hover, .header_menu li.current { background-color:' . d('header_cats_hover_bgcolor') . '; color:' . d('header_cats_hover_color') . '; -webkit-transition:all 150ms linear; -moz-transition:all 150ms linear; -o-transition:all 150ms linear; -ms-transition:all 150ms linear; transition:all 150ms linear; } nav.fourth .sub { height:50px; background-color:' . d('header_cats_bgcolor') . '; padding:0 15px 0 10px; font-weight:bold; font-size:14px; line-height:50px; color:#000000; cursor:pointer; /*float:' . $setting->left . ';*/ float:left; } nav.fourth .sub.active, nav.fourth .sub:hover,nav.fourth .sub.active .toggle i { background-color:' . d('header_cats_hover_bgcolor') . '; color:' . d('header_cats_hover_color') . '; -webkit-transition:all 150ms linear; -moz-transition:all 150ms linear; -o-transition:all 150ms linear; -ms-transition:all 150ms linear; transition:all 150ms linear; } nav.fourth .sub:hover .toggle span, nav.fourth .sub:hover .toggle span:before, nav.fourth .sub:hover .toggle span:after, nav.fourth .sub .toggle.active span, nav.fourth .sub .toggle.active span:before, nav.fourth .sub .toggle.active span:after { background-color:#ffffff; color:#ffffff; -webkit-transition:all 150ms linear; -moz-transition:all 150ms linear; -o-transition:all 150ms linear; -ms-transition:all 150ms linear; transition:all 150ms linear; } nav.fourth .sub .toggle { display:inline-block; /* width:19px;*/ height:13px; /*margin:-10px 0 0 10px;*/ color:#000000; line-height:19px; } nav.fourth .sub .toggle.active { height:23px; } .nav > ul > li.sub .toggle span { margin:13px 0 0 0; } nav.fourth .sub .toggle span, nav.fourth .sub .toggle span:before, nav.fourth .sub .toggle span:after { display:block; position:absolute; width:19px; height:2px; background-color:' . d('hamburger_bgcolor') . '; border-radius:1px; cursor:pointer; content:""; } nav.fourth .sub .toggle span:before { top:7px; } nav.fourth .sub .toggle span:after { bottom:-14px; } nav.fourth .sub .toggle span, nav.fourth .sub .toggle span:before, nav.fourth .sub .toggle span:after { transition:all 250ms ease-in-out; } nav.fourth .sub .toggle.active span { background-color:transparent; } nav.fourth .sub .toggle.active span:before, nav.fourth .sub .toggle.active span:after { top:18px; } nav.fourth .sub .toggle.active span:before { transform:rotate(45deg); } nav.fourth .sub .toggle.active span:after { transform:rotate(-45deg); } nav.fourth .sub ul.more { display:none; position:absolute; ' . $setting->left . ':0; background-color:' . d('menu_dd_bgcolor') . '; margin:0 -15px 0 0; padding:0; list-style:none; overflow:hidden; float:' . $setting->right . '; border:1px solid #cfcfcf; z-index:9999; } nav.fourth .sub ul.more > li { display:block; width:100%; height:40px; border-bottom:1px solid #e6e6e6; } nav.fourth .sub ul.more > li > a { display:block; width:auto; height:36px; margin:3px auto 0 auto; padding:0; padding-' . $setting->right . ':40px; padding-' . $setting->left . ':15px; font-size:16px; line-height:40px; color:' . d('menu_dd_color') . '; } nav.fourth .sub ul.more > li > a img { max-width:50px; max-height:25px; } nav.fourth .sub ul.more > li > a:before { display:inline-block; width:20px; margin-' . $setting->right . ':-20px; content:"> "; } nav.fourth .sub ul.more > li > a:hover { background-color:' . d('menu_dd_bgcolor_hover') . '; color:' . d('menu_dd_color_hover') . '; -webkit-transition:all 150ms linear; -moz-transition:all 150ms linear; -o-transition:all 150ms linear; -ms-transition:all 150ms linear; transition:all 150ms linear; } nav.fourth .cl_arrows { display:block; height:50px; /*margin-' . $setting->right . ':20px;*/ margin-' . $setting->right . ':10px; overflow:hidden; float:' . $setting->right . '; /* float:left;*/ } nav.fourth .cl_arrows .' . $setting->right . ' { display:block; width:12px; height:50px; /*font-size:0;*/ font-size:22pt; line-height:50px; float:' . $setting->right . '; cursor:pointer; } nav.fourth .cl_arrows .' . $setting->left . ' { display:block; width:12px; height:50px; margin-' . $setting->right . ':20px; /*font-size:0;*/ font-size:22pt; line-height:50px; float:' . $setting->right . '; cursor:pointer; } /*--- Mobile Phones ---*/ @media only screen and (max-width:768px) { header.fourth { margin-bottom:10px; } header.fourth > .container > .row > div:first-child { margin-' . $setting->right . ':0; } header.fourth > .container > .row > div:last-child { margin-' . $setting->right . ':0; margin-' . $setting->left . ':-15px; padding-' . $setting->right . ':15px; } header.fourth .logo a { text-align:center; } header.fourth .search .form #ts_s { width:83%; margin-' . $setting->right . ':2%; } header.fourth .search .form .submit { width:13%; } header.fourth .call_search { padding-' . $setting->right . ':15px; } header.fourth .cart_popup { top:auto !important; ' . $setting->left . ':auto !important; width:90%; margin-top:44px; } header.fourth .cart_popup .arrow { background-position:95% center; } nav.fourth .sub { width:100%; margin-bottom:10px; } nav.fourth .sub ul.more { width:calc(100% - 30px); margin-' . $setting->right . ':-15px; } }'; die(print($css)); ?>