Skip to content
Permalink
Browse files

Begin custom header colors

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 2, 2019
1 parent 2b786f7 commit 0a2943e11a17e19956e1f31acce5acc1dbc010cd
Showing with 37 additions and 14 deletions.
  1. +9 −7 config/index.php
  2. +15 −0 inc/bgcolor.php
  3. +13 −7 inc/header.php
@@ -48,15 +48,17 @@
}
function hex2rgb($color){
$color = str_replace('#', '', $color);
if (strlen($color) != 6){ return array(0,0,0); }
$rgb = array();
for ($x=0;$x<3;$x++){
if (!function_exists(hex2rgb)) {
function hex2rgb($color){
$color = str_replace('#', '', $color);
if (strlen($color) != 6){ return array(0,0,0); }
$rgb = array();
for ($x=0;$x<3;$x++){
$rgb[$x] = hexdec(substr($color,(2*$x),2));
}
return $rgb;
}
return $rgb;
}
}
function rgb2hsv($rgb){
$r = $rgb[0] / 255;
@@ -74,4 +74,19 @@ function hsv2rgb($hue,$sat,$val) {;
}
}
if (!function_exists(hex2rgb)) {
function hex2rgb($color){
$color = str_replace('#', '', $color);
if (strlen($color) != 6){ return array(0,0,0); }
$rgb = array();
for ($x=0;$x<3;$x++){
$rgb[$x] = hexdec(substr($color,(2*$x),2));
}
return $rgb;
}
}
$bgcolorRGB = hex2rgb($bgcolor);
?>
@@ -46,7 +46,7 @@
<link rel="stylesheet" href="https://cdn.zecheriah.com/site-assets/1.9.6/assets/plugins/sky-forms-pro/skyforms/custom/custom-sky-forms.css">
<!--[if lt IE 9]><link rel="stylesheet" href="https://cdn.zecheriah.com/site-assets/1.9.6/assets/plugins/sky-forms-pro/skyforms/css/sky-forms-ie8.css"><![endif]-->
<link rel="stylesheet" href="https://cdn.zecheriah.com/site-assets/1.9.6/assets/css/pages/page_error4_404.css">

<!-- CSS Theme -->
<link rel="stylesheet" href="https://cdn.zecheriah.com/site-assets/1.9.6/assets/css/headers/header-v6.css">
<link rel="stylesheet" href="https://cdn.zecheriah.com/site-assets/1.9.6/One-Pages/Classic/assets/css/theme-skins/one.dark.css">
@@ -61,12 +61,18 @@
<script src="/js/jquery.min.js"></script>
<script src="/js/moment.min.js"></script>

<script language="javascript" type="text/javascript">
function resizeIframe(obj) {
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
}
</script>

<script language="javascript" type="text/javascript">
function resizeIframe(obj) {
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
}
</script>
<style>
/* Disable until I implement bgDARK into header
.navbar, .top-nav-collapse {
background: rgba(<?= $bgcolorRGB[0] ?>,<?= $bgcolorRGB[1] ?>,<?= $bgcolorRGB[2] ?>,90%) !important;
}
*/
</style>
</head>

<!--

0 comments on commit 0a2943e

Please sign in to comment.
You can’t perform that action at this time.