1 | <?php |
---|
2 | /*************************************************************************** |
---|
3 | * style.php is a part of PhpWebGallery * |
---|
4 | * ------------------- * |
---|
5 | * last update : Friday, November 1, 2002 * |
---|
6 | * email : pierrick@z0rglub.com * |
---|
7 | * * |
---|
8 | ***************************************************************************/ |
---|
9 | |
---|
10 | /*************************************************************************** |
---|
11 | * * |
---|
12 | * This program is free software; you can redistribute it and/or modify * |
---|
13 | * it under the terms of the GNU General Public License as published by * |
---|
14 | * the Free Software Foundation; * |
---|
15 | * * |
---|
16 | ***************************************************************************/ |
---|
17 | $user['style'] = '<style type="text/css"> |
---|
18 | a { |
---|
19 | text-decoration:none; |
---|
20 | } |
---|
21 | a:hover { |
---|
22 | text-decoration:underline; |
---|
23 | } |
---|
24 | a.back, body { |
---|
25 | color:'.$user['couleur_text_fond'].'; |
---|
26 | } |
---|
27 | body,table,input { |
---|
28 | font-family:arial,sans-serif; |
---|
29 | font-size:12px; |
---|
30 | } |
---|
31 | .imgLink { |
---|
32 | border:1px solid '.$user['couleur_text_fond'].'; |
---|
33 | } |
---|
34 | .titrePage,.titreMenu,.menu,.info, a { |
---|
35 | color:'.$user['couleur_text'].'; |
---|
36 | } |
---|
37 | .titreMenu,.menu,.info { |
---|
38 | margin-bottom:5px; |
---|
39 | white-space:nowrap; |
---|
40 | } |
---|
41 | .menu,.titrePage,.info { |
---|
42 | margin-left:2px; |
---|
43 | margin-right:2px; |
---|
44 | } |
---|
45 | .menuInfoCat { |
---|
46 | font-family:sans-serif; |
---|
47 | font-size:11px; |
---|
48 | } |
---|
49 | .totalImages { |
---|
50 | text-align:center; |
---|
51 | margin-top:5px; |
---|
52 | font-family:sans-serif; |
---|
53 | font-size:11px; |
---|
54 | } |
---|
55 | .titreMenu { |
---|
56 | font-weight:600; |
---|
57 | text-align:center; |
---|
58 | } |
---|
59 | .info { |
---|
60 | text-align:right; |
---|
61 | } |
---|
62 | .titrePage { |
---|
63 | white-space:nowrap; |
---|
64 | font-weight:500; |
---|
65 | font-size:18px; |
---|
66 | text-align:center; |
---|
67 | } |
---|
68 | .comments,.infoCat,.navigationBar { |
---|
69 | margin-top:10px; |
---|
70 | margin-bottom:10px; |
---|
71 | } |
---|
72 | .comments { |
---|
73 | text-align:justify; |
---|
74 | font-style:italic; |
---|
75 | } |
---|
76 | .navigationBar { |
---|
77 | text-align:center; |
---|
78 | } |
---|
79 | .infoCat { |
---|
80 | text-align:left; |
---|
81 | } |
---|
82 | .thumbnail { |
---|
83 | font-size:11px; |
---|
84 | text-align:center; |
---|
85 | } |
---|
86 | .copyright { |
---|
87 | font-size:11px; |
---|
88 | text-align:center; |
---|
89 | font-family:sans-serif; |
---|
90 | letter-spacing:0.3mm; |
---|
91 | } |
---|
92 | .commentImage { |
---|
93 | font-weight:bold; |
---|
94 | text-align:center; |
---|
95 | font-size:17px; |
---|
96 | } |
---|
97 | .bouton { |
---|
98 | background:#EEEEEE; |
---|
99 | } |
---|
100 | input { |
---|
101 | border-width:1; |
---|
102 | border-color:#000000; |
---|
103 | background:#ffffff; |
---|
104 | color: #000000; |
---|
105 | } |
---|
106 | body {'; |
---|
107 | $image = './theme/'.$user['theme'].'/background.gif'; |
---|
108 | if ( @is_file( $image ) ) |
---|
109 | { |
---|
110 | $user['style'].= ' |
---|
111 | background-image:url('.$image.');'; |
---|
112 | } |
---|
113 | else |
---|
114 | { |
---|
115 | $user['style'].= ' |
---|
116 | background-color:'.$user['couleur_fond'].';'; |
---|
117 | } |
---|
118 | $user['style'].= ' |
---|
119 | margin:5px; |
---|
120 | } |
---|
121 | table { |
---|
122 | border-collapse:collapse; |
---|
123 | } |
---|
124 | table.thumbnail { |
---|
125 | border-collapse:separate; |
---|
126 | } |
---|
127 | td { |
---|
128 | font-family:sans-serif; |
---|
129 | padding:0; |
---|
130 | } |
---|
131 | .errors { |
---|
132 | text-align:left; |
---|
133 | margin-top:5px; |
---|
134 | margin-bottom:5px; |
---|
135 | background-color:red; |
---|
136 | font-weight:bold; |
---|
137 | border:1px solid black; |
---|
138 | color:white; |
---|
139 | } |
---|
140 | </style>'; |
---|