source: extensions/cuise/theme.css.php @ 31975

Last change on this file since 31975 was 19990, checked in by cljosse, 11 years ago
  • [style] cuise save
File size: 4.3 KB
Line 
1<?php 
2$patterns = array();
3$patterns[0] = '_';
4$replacements = array();
5$replacements[0] = '#';
6if ( !isset($_GET['theme'])  ) {
7  global $nb_template;
8    $nb_template=5 ;
9    $params['theme']="cuise";
10    $params['parent']="cuise";
11    $params['redraw']="ok";
12    $keys=array();
13  $name_img=array("cbmt.gif","bpv.png","bp3.jpg","bph.png","header.png");
14  for($id=0;$id<$nb_template;$id++){
15      $params  = array_merge($params,array(                     
16                                                "bg_cuise_$id"                  => '#d4d4d4',
17                                                "bgho_cuise_$id"                        => '#a0a0a0',
18                                                "bd_cuise_$id"                  => '#4F4F4F',
19                                                "co_cuise_$id"            => '#4F4F4F',
20            "coho_cuise_$id"              => '#5f5f5f',
21            "img_cuise_$id"    =>   $name_img[$id],
22            "chk_cuise_x_$id"    => 'checked',
23            "chk_cuise_y_$id"    => '',
24            "rayon_cuise_$id"    => '8px',
25            "chk_cuise_$id"    => ''
26
27            ));
28            } 
29$keys=$params ;
30
31}else{
32 $keys=$_GET;
33}
34global $theme ;
35$theme_dir = $keys['theme'];
36$theme_parent = $keys['parent']; 
37/*===============================================*/
38 if ($keys['chk_cuise_0']!='checked'){
39      $fondBG = "url(./images/" . $keys['img_cuise_0'].")" ;
40       $fondBG_hover = "url(./images/hover_" . $keys['img_cuise_0'].")" ;
41      }else {
42      $fondBG ="none";   
43      $fondBG_hover ="none";
44}
45$fondBG_rayon = $keys['rayon_cuise_0']; 
46$fondBG_color = str_replace("_", "#",   $keys['bg_cuise_0']);
47$fondBG_color_hover = str_replace("_", "#",   $keys['bgho_cuise_0']);
48$fondBG_a = str_replace("_", "#",   $keys['co_cuise_0']);
49$fondBG_a_hover= str_replace("_", "#",   $keys['coho_cuise_0']); 
50
51/*===============================================*/ 
52 if ($keys['chk_cuise_1']!='checked'){
53      $fondBp = "url(./images/" . $keys['img_cuise_1'].")" ;
54      $fondBp_hover =  "url(./images/hover_".$keys['img_cuise_1'].")";
55}else {
56      $fondBp ="none"; 
57      $fondBp_hover ="none"; 
58      } 
59$fondBp_color =  str_replace("_", "#",   $keys['bg_cuise_1']);
60$fondBp_color_hover =str_replace("_", "#",   $keys['bgho_cuise_1']);
61$fondBp_a = str_replace("_", "#",   $keys['co_cuise_1']);
62$fondBp_a_hover= str_replace("_", "#",   $keys['coho_cuise_1']); 
63$fondBp_rayon = $keys['rayon_cuise_1']; 
64
65/*=========== Menubar ========================*/
66 if ($keys['chk_cuise_2']!='checked'){
67    $Menu_bar = "url(images/".$keys['img_cuise_2'].")";
68    $Menu_bar_hover =  "url(images/hover_".$keys['img_cuise_2'].")";
69}else {
70    $Menu_bar ="none"; 
71    $Menu_bar_hover = "non";
72}
73$Menu_bar_color =  str_replace("_", "#",   $keys['bg_cuise_2']);
74$Menu_bar_color_hover = str_replace("_", "#",   $keys['bgho_cuise_2']);
75
76$Menu_bar_a = str_replace("_", "#",   $keys['co_cuise_2']);
77$Menu_bar_a_hover= str_replace("_", "#",   $keys['coho_cuise_2']); 
78$Menu_bar_rayon = $keys['rayon_cuise_2']; 
79/*===============================================*/
80if ($keys['chk_cuise_3']!='checked'){
81    $thumbnail = "url(images/".$keys['img_cuise_3'].")";
82$thumbnail_hover = "url(images/hover_".$keys['img_cuise_3'].")";
83}else {
84    $thumbnail="none";
85    $thumbnail_hover="none";
86    }
87$thumbnail_color =  str_replace("_", "#",   $keys['bg_cuise_3']);
88
89$thumbnail_color_hover = str_replace("_", "#",   $keys['bgho_cuise_3']);
90$thumbnail_rayon = $keys['rayon_cuise_3']; 
91$thumbnail_a = str_replace("_", "#",   $keys['co_cuise_3']);
92$thumbnail_a_hover= str_replace("_", "#",   $keys['coho_cuise_3']); 
93/*===============================================*/
94    $bck_header="none";
95    $bck_header_hover="none";
96if ($keys['chk_cuise_4']!='checked'){
97    $bck_header = "url(images/".$keys['img_cuise_4'].")";
98    if(file_exists("images/hover_".$keys['img_cuise_4']))
99        $bck_header_hover = "url(images/hover_".$keys['img_cuise_4'].")";
100} 
101$bck_header_color =  str_replace("_", "#",   $keys['bg_cuise_4']);
102$bck_header_color_hover = str_replace("_", "#",   $keys['bgho_cuise_4']);
103$bck_header_rayon = $keys['rayon_cuise_4']; 
104$bck_header_a = str_replace("_", "#",   $keys['co_cuise_4']);
105$bck_header_a_hover= str_replace("_", "#",   $keys['coho_cuise_4']); 
106$prefix=$keys['redraw']; 
107 header( 'content-type: text/css' ); 
108 /*
109 if($keys['redraw'] != true ){ }
110 header('HTTP/1.0 304 Not Modified'); 
111 header('Cache-Control: max-age=3600, must-revalidate');
112 */
113 include "admin_theme.css.php" ;
114?> 
Note: See TracBrowser for help on using the repository browser.