[18843] | 1 | <?php |
---|
| 2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 3 | |
---|
| 4 | global $conf, $template; |
---|
[25996] | 5 | $params = array_merge(unserialize($conf['PwgCarbon'])); |
---|
| 6 | $template->assign('PwgCarbon', $params); |
---|
[18843] | 7 | |
---|
| 8 | |
---|
| 9 | $color= array( |
---|
| 10 | '1' => 'a60000',//rouge |
---|
| 11 | '2' => '008500',//vert |
---|
| 12 | '3' => '15adff',//bleu |
---|
| 13 | '4' => 'ffd11d',//jaune |
---|
| 14 | '5' => '000',//noir |
---|
| 15 | '6' => 'fff',//blanc |
---|
| 16 | '7' => '512c06',//marron |
---|
| 17 | '8' => '7f005d',//pourpre |
---|
| 18 | '9' => 'FF9900',//orange |
---|
| 19 | '10' => '939393',//substitution texte noir |
---|
| 20 | '11' => 'BC640D',//substitution texte marron |
---|
| 21 | '12' => '757575',//gris |
---|
| 22 | '13' => 'D166B2',//violet |
---|
| 23 | '14' => 'FC0A0A',//rouge clair |
---|
| 24 | '15' => '4c4c4c',//gris |
---|
| 25 | ); |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | $def_bg=$params['color_bg']; |
---|
| 30 | $color_bg = $color[$def_bg]; |
---|
| 31 | $def_theme=$params['color_theme']; |
---|
| 32 | $color_theme = $color[$def_theme]; |
---|
| 33 | $def_thumbreflex=$params['thumbreflex']; |
---|
| 34 | |
---|
| 35 | $x_pos=-($def_theme*400); |
---|
| 36 | $y_pos=-(($params['th']*400)-400); |
---|
| 37 | |
---|
| 38 | if($params['color_theme']=="5"){ |
---|
| 39 | $color_texte = $color['10'];} |
---|
| 40 | else if($params['color_theme']=="7"){ |
---|
| 41 | $color_texte = $color['11'];} |
---|
| 42 | else |
---|
| 43 | {$color_texte = $color_theme;} |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | if ($params['imgtheme'] == 1 ) |
---|
| 50 | { |
---|
| 51 | $template->block_html_head('', ' |
---|
| 52 | <style media="screen" type="text/css"> |
---|
| 53 | #bg_th_left, #bg_th_right{background-position:'.$x_pos.'px '.$y_pos.'px;} |
---|
| 54 | </style> |
---|
| 55 | |
---|
[19015] | 56 | '); |
---|
[18843] | 57 | }; |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | $template->block_html_head('', ' |
---|
| 62 | <style media="screen" type="text/css"> |
---|
| 63 | body{background-image:url(themes/PwgCarbon/images/background/bg'.$params['bg'].'.png); background-color:#'.$color_bg.'; color:#'.$color_texte.';} |
---|
| 64 | #header_bgDef{background-image:url(themes/PwgCarbon/images/background/bg'.$params['hd'].'.png);background-color:#'.$color_bg.';} |
---|
| 65 | #headertransi{background-color:#'.$color_theme.';} |
---|
| 66 | </style> |
---|
[19015] | 67 | '); |
---|
[18843] | 68 | |
---|
| 69 | if($params['color_theme']=="7" || $params['color_theme']=="5" || $params['color_theme']=="1" || $params['color_theme']=="2" || $params['color_theme']=="8") |
---|
| 70 | {$color_texte_menu = $color['6']; |
---|
| 71 | $color_texte_hover = $color['6']; |
---|
| 72 | } |
---|
| 73 | else |
---|
| 74 | {$color_texte_menu = $color['12']; |
---|
| 75 | $color_texte_hover = $color['15'];} |
---|
| 76 | |
---|
| 77 | if($params['color_theme']=="8") |
---|
| 78 | {$color_texte_titremenu = $color['13']; |
---|
| 79 | $color_sub=$color_texte_titremenu;} |
---|
| 80 | elseif($params['color_theme']=="7") |
---|
| 81 | {$color_texte_titremenu = $color['11']; |
---|
| 82 | $color_sub=$color_texte_titremenu;} |
---|
| 83 | elseif($params['color_theme']=="5") |
---|
| 84 | {$color_texte_titremenu = $color['10']; |
---|
| 85 | $color_sub=$color_texte_titremenu;} |
---|
| 86 | elseif($params['color_theme']=="6") |
---|
| 87 | {$color_texte_titremenu = $color['6']; |
---|
| 88 | $color_sub=$color['5'];} |
---|
| 89 | elseif($params['color_theme']=="1") |
---|
| 90 | {$color_texte_titremenu = $color['14']; |
---|
| 91 | $color_sub=$color_texte_titremenu;} |
---|
| 92 | else |
---|
| 93 | {$color_texte_titremenu = $color_theme; |
---|
| 94 | $color_sub = $color['6'];} |
---|
| 95 | |
---|
| 96 | |
---|
| 97 | if ($params['colormenu'] == 1 ) |
---|
| 98 | { |
---|
| 99 | $template->block_html_head('', ' |
---|
| 100 | <style media="screen" type="text/css"> |
---|
| 101 | .sub p{ color:#'.$color_sub.';} |
---|
| 102 | ul#topnav .sub ul li a:hover{color:#'.$color_texte_hover.';} |
---|
| 103 | ul#topnav li.current, ul#topnav li.liSub, ul#topnav li a{ color:#'.$color_texte_titremenu.';} |
---|
| 104 | ul#topnav li .sub, ul#topnav li #loger{background-color:#'.$color_theme.';} |
---|
| 105 | li.liSub:hover a span.dd_wrapper{background:#'.$color_theme.';} |
---|
| 106 | .activate {background:#'.$color_theme.';} |
---|
| 107 | #topnav dt a { color:#'.$color_texte_titremenu.';} |
---|
| 108 | </style> |
---|
| 109 | |
---|
[19015] | 110 | '); |
---|
[18843] | 111 | }; |
---|
| 112 | ?> |
---|