Merge lp:~daimoneze/osdf/drupal-theme into lp:~sillydeveloper/osdf/trunk
- drupal-theme
- Merge into trunk
Proposed by
Toast McFarland
Status: | Merged |
---|---|
Merge reported by: | Andrew Ettinger |
Merged at revision: | not available |
Proposed branch: | lp:~daimoneze/osdf/drupal-theme |
Merge into: | lp:~sillydeveloper/osdf/trunk |
Diff against target: |
2937 lines (+2728/-0) (has conflicts) 27 files modified
LICENSE.txt (+274/-0) README.txt (+120/-0) basic.info (+51/-0) css/default.css (+181/-0) css/ie6.css (+67/-0) css/ie7.css (+18/-0) css/layout.css (+110/-0) css/print.css (+45/-0) css/style.css (+290/-0) css/tabs.css (+122/-0) sass/_custom.sass (+8/-0) sass/_mixins.sass (+24/-0) sass/_variables.sass (+16/-0) sass/default.sass (+140/-0) sass/ie6.sass (+51/-0) sass/ie7.sass (+17/-0) sass/layout.sass (+97/-0) sass/print.sass (+38/-0) sass/style.sass (+163/-0) sass/tabs.sass (+92/-0) template.php (+426/-0) templates/block.tpl.php (+15/-0) templates/comment-wrapper.tpl.php (+10/-0) templates/comment.tpl.php (+34/-0) templates/node.tpl.php (+27/-0) templates/page.tpl.php (+134/-0) theme-settings.php (+158/-0) Conflict adding file logo.png. Moved existing file to logo.png.moved. |
To merge this branch: | bzr merge lp:~daimoneze/osdf/drupal-theme |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Moparx (community) | Approve | ||
Andrew Ettinger | Approve | ||
Review via email: mp+43035@code.launchpad.net |
Commit message
Description of the change
The beginnings of a Drupal theme.
To post a comment you must log in.
Revision history for this message
Andrew Ettinger (sillydeveloper) wrote : | # |
Revision history for this message
Andrew Ettinger (sillydeveloper) : | # |
review:
Approve
Revision history for this message
Moparx (moparx) wrote : | # |
It is definitely a good starting point.
I approve it. :)
review:
Approve
lp:~daimoneze/osdf/drupal-theme
updated
- 2. By Toast McFarland
-
Fixed margin error.
Revision history for this message
Andrew Ettinger (sillydeveloper) wrote : | # |
Got verbal from moparx on irc. Merging.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added file 'LICENSE.txt' | |||
2 | --- LICENSE.txt 1970-01-01 00:00:00 +0000 | |||
3 | +++ LICENSE.txt 2010-12-08 01:56:31 +0000 | |||
4 | @@ -0,0 +1,274 @@ | |||
5 | 1 | GNU GENERAL PUBLIC LICENSE | ||
6 | 2 | |||
7 | 3 | Version 2, June 1991 | ||
8 | 4 | |||
9 | 5 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, | ||
10 | 6 | Cambridge, MA 02139, USA. Everyone is permitted to copy and distribute | ||
11 | 7 | verbatim copies of this license document, but changing it is not allowed. | ||
12 | 8 | |||
13 | 9 | Preamble | ||
14 | 10 | |||
15 | 11 | The licenses for most software are designed to take away your freedom to | ||
16 | 12 | share and change it. By contrast, the GNU General Public License is | ||
17 | 13 | intended to guarantee your freedom to share and change free software--to | ||
18 | 14 | make sure the software is free for all its users. This General Public License | ||
19 | 15 | applies to most of the Free Software Foundation's software and to any other | ||
20 | 16 | program whose authors commit to using it. (Some other Free Software | ||
21 | 17 | Foundation software is covered by the GNU Library General Public License | ||
22 | 18 | instead.) You can apply it to your programs, too. | ||
23 | 19 | |||
24 | 20 | When we speak of free software, we are referring to freedom, not price. Our | ||
25 | 21 | General Public Licenses are designed to make sure that you have the | ||
26 | 22 | freedom to distribute copies of free software (and charge for this service if | ||
27 | 23 | you wish), that you receive source code or can get it if you want it, that you | ||
28 | 24 | can change the software or use pieces of it in new free programs; and that | ||
29 | 25 | you know you can do these things. | ||
30 | 26 | |||
31 | 27 | To protect your rights, we need to make restrictions that forbid anyone to | ||
32 | 28 | deny you these rights or to ask you to surrender the rights. These restrictions | ||
33 | 29 | translate to certain responsibilities for you if you distribute copies of the | ||
34 | 30 | software, or if you modify it. | ||
35 | 31 | |||
36 | 32 | For example, if you distribute copies of such a program, whether gratis or for | ||
37 | 33 | a fee, you must give the recipients all the rights that you have. You must make | ||
38 | 34 | sure that they, too, receive or can get the source code. And you must show | ||
39 | 35 | them these terms so they know their rights. | ||
40 | 36 | |||
41 | 37 | We protect your rights with two steps: (1) copyright the software, and (2) | ||
42 | 38 | offer you this license which gives you legal permission to copy, distribute | ||
43 | 39 | and/or modify the software. | ||
44 | 40 | |||
45 | 41 | Also, for each author's protection and ours, we want to make certain that | ||
46 | 42 | everyone understands that there is no warranty for this free software. If the | ||
47 | 43 | software is modified by someone else and passed on, we want its recipients | ||
48 | 44 | to know that what they have is not the original, so that any problems | ||
49 | 45 | introduced by others will not reflect on the original authors' reputations. | ||
50 | 46 | |||
51 | 47 | Finally, any free program is threatened constantly by software patents. We | ||
52 | 48 | wish to avoid the danger that redistributors of a free program will individually | ||
53 | 49 | obtain patent licenses, in effect making the program proprietary. To prevent | ||
54 | 50 | this, we have made it clear that any patent must be licensed for everyone's | ||
55 | 51 | free use or not licensed at all. | ||
56 | 52 | |||
57 | 53 | The precise terms and conditions for copying, distribution and modification | ||
58 | 54 | follow. | ||
59 | 55 | |||
60 | 56 | GNU GENERAL PUBLIC LICENSE | ||
61 | 57 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND | ||
62 | 58 | MODIFICATION | ||
63 | 59 | |||
64 | 60 | 0. This License applies to any program or other work which contains a notice | ||
65 | 61 | placed by the copyright holder saying it may be distributed under the terms | ||
66 | 62 | of this General Public License. The "Program", below, refers to any such | ||
67 | 63 | program or work, and a "work based on the Program" means either the | ||
68 | 64 | Program or any derivative work under copyright law: that is to say, a work | ||
69 | 65 | containing the Program or a portion of it, either verbatim or with | ||
70 | 66 | modifications and/or translated into another language. (Hereinafter, translation | ||
71 | 67 | is included without limitation in the term "modification".) Each licensee is | ||
72 | 68 | addressed as "you". | ||
73 | 69 | |||
74 | 70 | Activities other than copying, distribution and modification are not covered | ||
75 | 71 | by this License; they are outside its scope. The act of running the Program is | ||
76 | 72 | not restricted, and the output from the Program is covered only if its contents | ||
77 | 73 | constitute a work based on the Program (independent of having been made | ||
78 | 74 | by running the Program). Whether that is true depends on what the Program | ||
79 | 75 | does. | ||
80 | 76 | |||
81 | 77 | 1. You may copy and distribute verbatim copies of the Program's source | ||
82 | 78 | code as you receive it, in any medium, provided that you conspicuously and | ||
83 | 79 | appropriately publish on each copy an appropriate copyright notice and | ||
84 | 80 | disclaimer of warranty; keep intact all the notices that refer to this License | ||
85 | 81 | and to the absence of any warranty; and give any other recipients of the | ||
86 | 82 | Program a copy of this License along with the Program. | ||
87 | 83 | |||
88 | 84 | You may charge a fee for the physical act of transferring a copy, and you | ||
89 | 85 | may at your option offer warranty protection in exchange for a fee. | ||
90 | 86 | |||
91 | 87 | 2. You may modify your copy or copies of the Program or any portion of it, | ||
92 | 88 | thus forming a work based on the Program, and copy and distribute such | ||
93 | 89 | modifications or work under the terms of Section 1 above, provided that you | ||
94 | 90 | also meet all of these conditions: | ||
95 | 91 | |||
96 | 92 | a) You must cause the modified files to carry prominent notices stating that | ||
97 | 93 | you changed the files and the date of any change. | ||
98 | 94 | |||
99 | 95 | b) You must cause any work that you distribute or publish, that in whole or in | ||
100 | 96 | part contains or is derived from the Program or any part thereof, to be | ||
101 | 97 | licensed as a whole at no charge to all third parties under the terms of this | ||
102 | 98 | License. | ||
103 | 99 | |||
104 | 100 | c) If the modified program normally reads commands interactively when run, | ||
105 | 101 | you must cause it, when started running for such interactive use in the most | ||
106 | 102 | ordinary way, to print or display an announcement including an appropriate | ||
107 | 103 | copyright notice and a notice that there is no warranty (or else, saying that | ||
108 | 104 | you provide a warranty) and that users may redistribute the program under | ||
109 | 105 | these conditions, and telling the user how to view a copy of this License. | ||
110 | 106 | (Exception: if the Program itself is interactive but does not normally print such | ||
111 | 107 | an announcement, your work based on the Program is not required to print | ||
112 | 108 | an announcement.) | ||
113 | 109 | |||
114 | 110 | These requirements apply to the modified work as a whole. If identifiable | ||
115 | 111 | sections of that work are not derived from the Program, and can be | ||
116 | 112 | reasonably considered independent and separate works in themselves, then | ||
117 | 113 | this License, and its terms, do not apply to those sections when you distribute | ||
118 | 114 | them as separate works. But when you distribute the same sections as part | ||
119 | 115 | of a whole which is a work based on the Program, the distribution of the | ||
120 | 116 | whole must be on the terms of this License, whose permissions for other | ||
121 | 117 | licensees extend to the entire whole, and thus to each and every part | ||
122 | 118 | regardless of who wrote it. | ||
123 | 119 | |||
124 | 120 | Thus, it is not the intent of this section to claim rights or contest your rights to | ||
125 | 121 | work written entirely by you; rather, the intent is to exercise the right to | ||
126 | 122 | control the distribution of derivative or collective works based on the | ||
127 | 123 | Program. | ||
128 | 124 | |||
129 | 125 | In addition, mere aggregation of another work not based on the Program | ||
130 | 126 | with the Program (or with a work based on the Program) on a volume of a | ||
131 | 127 | storage or distribution medium does not bring the other work under the scope | ||
132 | 128 | of this License. | ||
133 | 129 | |||
134 | 130 | 3. You may copy and distribute the Program (or a work based on it, under | ||
135 | 131 | Section 2) in object code or executable form under the terms of Sections 1 | ||
136 | 132 | and 2 above provided that you also do one of the following: | ||
137 | 133 | |||
138 | 134 | a) Accompany it with the complete corresponding machine-readable source | ||
139 | 135 | code, which must be distributed under the terms of Sections 1 and 2 above | ||
140 | 136 | on a medium customarily used for software interchange; or, | ||
141 | 137 | |||
142 | 138 | b) Accompany it with a written offer, valid for at least three years, to give | ||
143 | 139 | any third party, for a charge no more than your cost of physically performing | ||
144 | 140 | source distribution, a complete machine-readable copy of the corresponding | ||
145 | 141 | source code, to be distributed under the terms of Sections 1 and 2 above on | ||
146 | 142 | a medium customarily used for software interchange; or, | ||
147 | 143 | |||
148 | 144 | c) Accompany it with the information you received as to the offer to distribute | ||
149 | 145 | corresponding source code. (This alternative is allowed only for | ||
150 | 146 | noncommercial distribution and only if you received the program in object | ||
151 | 147 | code or executable form with such an offer, in accord with Subsection b | ||
152 | 148 | above.) | ||
153 | 149 | |||
154 | 150 | The source code for a work means the preferred form of the work for | ||
155 | 151 | making modifications to it. For an executable work, complete source code | ||
156 | 152 | means all the source code for all modules it contains, plus any associated | ||
157 | 153 | interface definition files, plus the scripts used to control compilation and | ||
158 | 154 | installation of the executable. However, as a special exception, the source | ||
159 | 155 | code distributed need not include anything that is normally distributed (in | ||
160 | 156 | either source or binary form) with the major components (compiler, kernel, | ||
161 | 157 | and so on) of the operating system on which the executable runs, unless that | ||
162 | 158 | component itself accompanies the executable. | ||
163 | 159 | |||
164 | 160 | If distribution of executable or object code is made by offering access to | ||
165 | 161 | copy from a designated place, then offering equivalent access to copy the | ||
166 | 162 | source code from the same place counts as distribution of the source code, | ||
167 | 163 | even though third parties are not compelled to copy the source along with the | ||
168 | 164 | object code. | ||
169 | 165 | |||
170 | 166 | 4. You may not copy, modify, sublicense, or distribute the Program except as | ||
171 | 167 | expressly provided under this License. Any attempt otherwise to copy, | ||
172 | 168 | modify, sublicense or distribute the Program is void, and will automatically | ||
173 | 169 | terminate your rights under this License. However, parties who have received | ||
174 | 170 | copies, or rights, from you under this License will not have their licenses | ||
175 | 171 | terminated so long as such parties remain in full compliance. | ||
176 | 172 | |||
177 | 173 | 5. You are not required to accept this License, since you have not signed it. | ||
178 | 174 | However, nothing else grants you permission to modify or distribute the | ||
179 | 175 | Program or its derivative works. These actions are prohibited by law if you | ||
180 | 176 | do not accept this License. Therefore, by modifying or distributing the | ||
181 | 177 | Program (or any work based on the Program), you indicate your acceptance | ||
182 | 178 | of this License to do so, and all its terms and conditions for copying, | ||
183 | 179 | distributing or modifying the Program or works based on it. | ||
184 | 180 | |||
185 | 181 | 6. Each time you redistribute the Program (or any work based on the | ||
186 | 182 | Program), the recipient automatically receives a license from the original | ||
187 | 183 | licensor to copy, distribute or modify the Program subject to these terms and | ||
188 | 184 | conditions. You may not impose any further restrictions on the recipients' | ||
189 | 185 | exercise of the rights granted herein. You are not responsible for enforcing | ||
190 | 186 | compliance by third parties to this License. | ||
191 | 187 | |||
192 | 188 | 7. If, as a consequence of a court judgment or allegation of patent | ||
193 | 189 | infringement or for any other reason (not limited to patent issues), conditions | ||
194 | 190 | are imposed on you (whether by court order, agreement or otherwise) that | ||
195 | 191 | contradict the conditions of this License, they do not excuse you from the | ||
196 | 192 | conditions of this License. If you cannot distribute so as to satisfy | ||
197 | 193 | simultaneously your obligations under this License and any other pertinent | ||
198 | 194 | obligations, then as a consequence you may not distribute the Program at all. | ||
199 | 195 | For example, if a patent license would not permit royalty-free redistribution | ||
200 | 196 | of the Program by all those who receive copies directly or indirectly through | ||
201 | 197 | you, then the only way you could satisfy both it and this License would be to | ||
202 | 198 | refrain entirely from distribution of the Program. | ||
203 | 199 | |||
204 | 200 | If any portion of this section is held invalid or unenforceable under any | ||
205 | 201 | particular circumstance, the balance of the section is intended to apply and | ||
206 | 202 | the section as a whole is intended to apply in other circumstances. | ||
207 | 203 | |||
208 | 204 | It is not the purpose of this section to induce you to infringe any patents or | ||
209 | 205 | other property right claims or to contest validity of any such claims; this | ||
210 | 206 | section has the sole purpose of protecting the integrity of the free software | ||
211 | 207 | distribution system, which is implemented by public license practices. Many | ||
212 | 208 | people have made generous contributions to the wide range of software | ||
213 | 209 | distributed through that system in reliance on consistent application of that | ||
214 | 210 | system; it is up to the author/donor to decide if he or she is willing to | ||
215 | 211 | distribute software through any other system and a licensee cannot impose | ||
216 | 212 | that choice. | ||
217 | 213 | |||
218 | 214 | This section is intended to make thoroughly clear what is believed to be a | ||
219 | 215 | consequence of the rest of this License. | ||
220 | 216 | |||
221 | 217 | 8. If the distribution and/or use of the Program is restricted in certain | ||
222 | 218 | countries either by patents or by copyrighted interfaces, the original copyright | ||
223 | 219 | holder who places the Program under this License may add an explicit | ||
224 | 220 | geographical distribution limitation excluding those countries, so that | ||
225 | 221 | distribution is permitted only in or among countries not thus excluded. In such | ||
226 | 222 | case, this License incorporates the limitation as if written in the body of this | ||
227 | 223 | License. | ||
228 | 224 | |||
229 | 225 | 9. The Free Software Foundation may publish revised and/or new versions | ||
230 | 226 | of the General Public License from time to time. Such new versions will be | ||
231 | 227 | similar in spirit to the present version, but may differ in detail to address new | ||
232 | 228 | problems or concerns. | ||
233 | 229 | |||
234 | 230 | Each version is given a distinguishing version number. If the Program specifies | ||
235 | 231 | a version number of this License which applies to it and "any later version", | ||
236 | 232 | you have the option of following the terms and conditions either of that | ||
237 | 233 | version or of any later version published by the Free Software Foundation. If | ||
238 | 234 | the Program does not specify a version number of this License, you may | ||
239 | 235 | choose any version ever published by the Free Software Foundation. | ||
240 | 236 | |||
241 | 237 | 10. If you wish to incorporate parts of the Program into other free programs | ||
242 | 238 | whose distribution conditions are different, write to the author to ask for | ||
243 | 239 | permission. For software which is copyrighted by the Free Software | ||
244 | 240 | Foundation, write to the Free Software Foundation; we sometimes make | ||
245 | 241 | exceptions for this. Our decision will be guided by the two goals of | ||
246 | 242 | preserving the free status of all derivatives of our free software and of | ||
247 | 243 | promoting the sharing and reuse of software generally. | ||
248 | 244 | |||
249 | 245 | NO WARRANTY | ||
250 | 246 | |||
251 | 247 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, | ||
252 | 248 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT | ||
253 | 249 | PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE | ||
254 | 250 | STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR | ||
255 | 251 | OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT | ||
256 | 252 | WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, | ||
257 | 253 | INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
258 | 254 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
259 | 255 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND | ||
260 | 256 | PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE | ||
261 | 257 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL | ||
262 | 258 | NECESSARY SERVICING, REPAIR OR CORRECTION. | ||
263 | 259 | |||
264 | 260 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR | ||
265 | 261 | AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR | ||
266 | 262 | ANY OTHER PARTY WHO MAY MODIFY AND/OR | ||
267 | 263 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE | ||
268 | 264 | LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, | ||
269 | 265 | SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES | ||
270 | 266 | ARISING OUT OF THE USE OR INABILITY TO USE THE | ||
271 | 267 | PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA | ||
272 | 268 | OR DATA BEING RENDERED INACCURATE OR LOSSES | ||
273 | 269 | SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE | ||
274 | 270 | PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN | ||
275 | 271 | IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF | ||
276 | 272 | THE POSSIBILITY OF SUCH DAMAGES. | ||
277 | 273 | |||
278 | 274 | END OF TERMS AND CONDITIONS | ||
279 | 0 | 275 | ||
280 | === added file 'README.txt' | |||
281 | --- README.txt 1970-01-01 00:00:00 +0000 | |||
282 | +++ README.txt 2010-12-08 01:56:31 +0000 | |||
283 | @@ -0,0 +1,120 @@ | |||
284 | 1 | Introduction to Basic | ||
285 | 2 | |||
286 | 3 | BASIC was originally developed for internal use to develop themes at Raincity Studios (Vancouver) | ||
287 | 4 | After using the ZEN theme for years, we realised that it was getting too complicated, had too much | ||
288 | 5 | files and overrides, so we decided to develop a strip down version of it and BASIC | ||
289 | 6 | was created. | ||
290 | 7 | |||
291 | 8 | ZEN became a fairly big piece of code and we felt like for each project we didn't need most of | ||
292 | 9 | it. So we took what we use all the time in ZEN, and removed all the things we felt were unnecessary. | ||
293 | 10 | |||
294 | 11 | The layout was also modified to make it easier to modify. Most of the CSS was brought down to a | ||
295 | 12 | strict minimum, and the templates were also recoded to make them as clear as possible. | ||
296 | 13 | |||
297 | 14 | BASIC is not intended for beginners, and if you're not sure, try ZEN first, and maybe later | ||
298 | 15 | try basic. | ||
299 | 16 | BASIC is now used for professional projects by multiple drupal agencies around the world. | ||
300 | 17 | |||
301 | 18 | __________________________________________________________________________________________ | ||
302 | 19 | |||
303 | 20 | Installation | ||
304 | 21 | |||
305 | 22 | - Download Basic from http://drupal.org/project/basic | ||
306 | 23 | - Unpack the downloaded file and place the Basic folder in your Drupal installation under | ||
307 | 24 | one of the following locations: | ||
308 | 25 | |||
309 | 26 | * sites/all/themes | ||
310 | 27 | * sites/default/themes | ||
311 | 28 | * sites/example.com/themes | ||
312 | 29 | |||
313 | 30 | - Log in as an administrator on your Drupal site and go to | ||
314 | 31 | Administer > Site building > Themes (admin/build/themes) and make Basic the default theme. | ||
315 | 32 | |||
316 | 33 | - if you want to change the name of the theme from 'basic' to another name like 'mytheme', | ||
317 | 34 | follow these steps (to do BEFORE enabling the theme) : | ||
318 | 35 | |||
319 | 36 | |||
320 | 37 | - Edit basic.info and change the name, description, project (can be deleted) | ||
321 | 38 | - In basic.info, replace the following instances of "basic_" to "mytheme_" | ||
322 | 39 | - [basic_zen_tabs] | ||
323 | 40 | - [basic_wireframe] | ||
324 | 41 | - [basic_block_editing] | ||
325 | 42 | - [basic_rebuild_registry] | ||
326 | 43 | - [basic_breadcrumb] | ||
327 | 44 | - [basic_breadcrumb_separator] | ||
328 | 45 | - [basic_breadcrumb_home] | ||
329 | 46 | - [basic_breadcrumb_trailing] | ||
330 | 47 | - [basic_breadcrumb_title] | ||
331 | 48 | |||
332 | 49 | - In template.php change each iteration of 'basic' to 'mytheme' | ||
333 | 50 | - In theme-settings.php change each iteration of 'basic' to 'mytheme' | ||
334 | 51 | - rename the theme folder to 'mytheme' | ||
335 | 52 | - rename basic.info to mytheme.info | ||
336 | 53 | |||
337 | 54 | __________________________________________________________________________________________ | ||
338 | 55 | |||
339 | 56 | What are the files for ? | ||
340 | 57 | ------------------------ | ||
341 | 58 | |||
342 | 59 | - basic.info => provide informations about the theme, like regions, css, settings, js ... | ||
343 | 60 | - block-system-main.tpl.php => template to edit the content | ||
344 | 61 | - block.tpl.php => template to edit the blocks | ||
345 | 62 | - comment.tpl.php => template to edit the comments | ||
346 | 63 | - node.tpl.php => template to edit the nodes (in content) | ||
347 | 64 | - page.tpl.php => template to edit the page | ||
348 | 65 | - template.php => used to modify drupal's default behavior before outputting HTML through | ||
349 | 66 | the theme | ||
350 | 67 | - theme-settings => used to create additional settings in the theme settings page | ||
351 | 68 | |||
352 | 69 | In /CSS | ||
353 | 70 | ------- | ||
354 | 71 | |||
355 | 72 | - default.css => define default classes, browser resets and admin styles | ||
356 | 73 | - ie6 => used to debug IE6 | ||
357 | 74 | - ie7 => used to debug IE7 | ||
358 | 75 | - layout.css => define the layout of the theme | ||
359 | 76 | - print.css => define the way the theme look like when printed | ||
360 | 77 | - style.css => contains some default font styles. that's where you can add custom css | ||
361 | 78 | - tabs.css => styles for the admin tabs (from ZEN) | ||
362 | 79 | |||
363 | 80 | __________________________________________________________________________________________ | ||
364 | 81 | |||
365 | 82 | Changing the Layout | ||
366 | 83 | |||
367 | 84 | The layout used in Basic is fairly similar to the Holy Grail method. It has been tested on | ||
368 | 85 | all major browser including IE (5>8), Opera, Firefox, Safari, Chrome ... | ||
369 | 86 | The purpose of this method is to have a minimal markup for an ideal display. | ||
370 | 87 | For accessibility and search engine optimization, the best order to display a page is ] | ||
371 | 88 | the following : | ||
372 | 89 | |||
373 | 90 | 1. header | ||
374 | 91 | 2. content | ||
375 | 92 | 3. sidebars | ||
376 | 93 | 4. footer | ||
377 | 94 | |||
378 | 95 | This is how the page template is buit in basic, and it works in fluid and fixed layout. | ||
379 | 96 | Refers to the notes in layout.css to see how to modify the layout. | ||
380 | 97 | |||
381 | 98 | __________________________________________________________________________________________ | ||
382 | 99 | |||
383 | 100 | UPDATING BASIC | ||
384 | 101 | |||
385 | 102 | Once you start using basic, you will massively change it until a point where it has nothing | ||
386 | 103 | to do with basic anymore. Unlike ZEN, basic is not intended to be use as a base theme for a | ||
387 | 104 | sub-theme (even though it is possible to do so). Because of this, it is not necessary to | ||
388 | 105 | update your theme when a new version of BASIC comes out. Always see Basic as a STARTER, and | ||
389 | 106 | as soon as you start using it, it is not BASIC anymore, but your own theme. | ||
390 | 107 | |||
391 | 108 | If you didn't rename your theme, but you don't want to be notified when basic has a new version | ||
392 | 109 | by the update module, simply delete "project = "basic" in basic.info | ||
393 | 110 | |||
394 | 111 | __________________________________________________________________________________________ | ||
395 | 112 | |||
396 | 113 | Thanks for using BASIC, and remember to use the issue queue in drupal.org for any question | ||
397 | 114 | or bug report: | ||
398 | 115 | |||
399 | 116 | http://drupal.org/project/issues/basic | ||
400 | 117 | |||
401 | 118 | Current maintainers: | ||
402 | 119 | * Hubert Florin (couzinhub) -http://drupal.org/user/133581 | ||
403 | 120 | * Steve Krueger (SteveK) -http://drupal.org/user/111656 | ||
404 | 0 | \ No newline at end of file | 121 | \ No newline at end of file |
405 | 1 | 122 | ||
406 | === added file 'basic.info' | |||
407 | --- basic.info 1970-01-01 00:00:00 +0000 | |||
408 | +++ basic.info 2010-12-08 01:56:31 +0000 | |||
409 | @@ -0,0 +1,51 @@ | |||
410 | 1 | name = basic | ||
411 | 2 | description = Basic starter theme for Drupal 6 | ||
412 | 3 | screenshot = images/screenshot.gif | ||
413 | 4 | core = "6.x" | ||
414 | 5 | project = "basic" | ||
415 | 6 | engine = phptemplate | ||
416 | 7 | |||
417 | 8 | regions[content_top] = Content top | ||
418 | 9 | regions[header] = Header | ||
419 | 10 | regions[left] = First sidebar | ||
420 | 11 | regions[right] = Second sidebar | ||
421 | 12 | regions[footer_block] = Footer | ||
422 | 13 | regions[content_bottom] = Content bottom | ||
423 | 14 | |||
424 | 15 | features[] = logo | ||
425 | 16 | features[] = name | ||
426 | 17 | features[] = slogan | ||
427 | 18 | features[] = mission | ||
428 | 19 | features[] = node_user_picture | ||
429 | 20 | features[] = comment_user_picture | ||
430 | 21 | features[] = search | ||
431 | 22 | features[] = favicon | ||
432 | 23 | features[] = primary_links | ||
433 | 24 | features[] = secondary_links | ||
434 | 25 | |||
435 | 26 | stylesheets[all][] = css/default.css | ||
436 | 27 | stylesheets[all][] = css/layout.css | ||
437 | 28 | stylesheets[all][] = css/style.css | ||
438 | 29 | stylesheets[print][] = css/print.css | ||
439 | 30 | |||
440 | 31 | ; Compass Support | ||
441 | 32 | ; http://drupal.org/project/compass | ||
442 | 33 | compass[status] = 1 | ||
443 | 34 | compass[sass_dir] = sass | ||
444 | 35 | compass[css_dir] = css | ||
445 | 36 | |||
446 | 37 | settings[basic_zen_tabs] = 1 | ||
447 | 38 | settings[basic_wireframe] = 0 | ||
448 | 39 | settings[basic_block_editing] = 1 | ||
449 | 40 | settings[basic_rebuild_registry] = 0 | ||
450 | 41 | settings[basic_breadcrumb] = yes | ||
451 | 42 | settings[basic_breadcrumb_separator] = ' » ' | ||
452 | 43 | settings[basic_breadcrumb_home] = 1 | ||
453 | 44 | settings[basic_breadcrumb_trailing] = 0 | ||
454 | 45 | settings[basic_breadcrumb_title] = 0 | ||
455 | 46 | ; Information added by drupal.org packaging script on 2010-12-03 | ||
456 | 47 | version = "6.x-2.12" | ||
457 | 48 | core = "6.x" | ||
458 | 49 | project = "basic" | ||
459 | 50 | datestamp = "1291338964" | ||
460 | 51 | |||
461 | 0 | 52 | ||
462 | === added directory 'css' | |||
463 | === added file 'css/default.css' | |||
464 | --- css/default.css 1970-01-01 00:00:00 +0000 | |||
465 | +++ css/default.css 2010-12-08 01:56:31 +0000 | |||
466 | @@ -0,0 +1,181 @@ | |||
467 | 1 | /* About Default Styles | ||
468 | 2 | * --------------------- | ||
469 | 3 | * default.css is used to establish general rules, browser reset, or admin user interface styles. | ||
470 | 4 | * | ||
471 | 5 | * Browser Reset | ||
472 | 6 | * ------------- | ||
473 | 7 | * For a more complete reset, go to http://developer.yahoo.com/yui/reset/ */ | ||
474 | 8 | /* line 9, ../sass/default.sass */ | ||
475 | 9 | * { | ||
476 | 10 | margin: 0; | ||
477 | 11 | padding: 0; | ||
478 | 12 | } | ||
479 | 13 | |||
480 | 14 | /* Clear Floats Without Structural Markup | ||
481 | 15 | * --------------------------------------- | ||
482 | 16 | * http://www.positioniseverything.net/easyclearing.html */ | ||
483 | 17 | /* line 17, ../sass/default.sass */ | ||
484 | 18 | .clearfix { | ||
485 | 19 | display: inline-block; | ||
486 | 20 | } | ||
487 | 21 | /* line 19, ../sass/default.sass */ | ||
488 | 22 | .clearfix:after { | ||
489 | 23 | content: "."; | ||
490 | 24 | display: block; | ||
491 | 25 | height: 0; | ||
492 | 26 | clear: both; | ||
493 | 27 | visibility: hidden; | ||
494 | 28 | } | ||
495 | 29 | |||
496 | 30 | /* Hides from IE-mac \ */ | ||
497 | 31 | /* line 27, ../sass/default.sass */ | ||
498 | 32 | * html .clearfix { | ||
499 | 33 | height: 1%; | ||
500 | 34 | } | ||
501 | 35 | |||
502 | 36 | /* line 30, ../sass/default.sass */ | ||
503 | 37 | .clearfix { | ||
504 | 38 | display: block; | ||
505 | 39 | } | ||
506 | 40 | |||
507 | 41 | /* End hide from IE-mac */ | ||
508 | 42 | /* clear classes */ | ||
509 | 43 | /* line 36, ../sass/default.sass */ | ||
510 | 44 | .clearleft, .clearl, .cleft { | ||
511 | 45 | clear: left; | ||
512 | 46 | } | ||
513 | 47 | |||
514 | 48 | /* line 39, ../sass/default.sass */ | ||
515 | 49 | .clearright, .clearr, .cright { | ||
516 | 50 | clear: right; | ||
517 | 51 | } | ||
518 | 52 | |||
519 | 53 | /* line 42, ../sass/default.sass */ | ||
520 | 54 | .clear, .clearboth, .clearall { | ||
521 | 55 | clear: both; | ||
522 | 56 | } | ||
523 | 57 | |||
524 | 58 | /* Float classes */ | ||
525 | 59 | /* line 46, ../sass/default.sass */ | ||
526 | 60 | .floatleft, .fleft, .floatl { | ||
527 | 61 | float: left; | ||
528 | 62 | margin: 0 10px 5px 0; | ||
529 | 63 | } | ||
530 | 64 | |||
531 | 65 | /* line 50, ../sass/default.sass */ | ||
532 | 66 | .floatright, .fright, .floatr { | ||
533 | 67 | float: right; | ||
534 | 68 | margin: 0 0 5px 10px; | ||
535 | 69 | } | ||
536 | 70 | |||
537 | 71 | /* "Skip to Main Content" link | ||
538 | 72 | * --------------------------- | ||
539 | 73 | * This link useful for both visually impaired people and those with mobility impairments | ||
540 | 74 | * who cannot use a mouse. http://www.webaim.org/techniques/css/invisiblecontent/ */ | ||
541 | 75 | /* line 60, ../sass/default.sass */ | ||
542 | 76 | #skip a:link, #skip a:hover, #skip a:visited { | ||
543 | 77 | position: absolute; | ||
544 | 78 | left: -10000px; | ||
545 | 79 | top: auto; | ||
546 | 80 | width: 1px; | ||
547 | 81 | height: 1px; | ||
548 | 82 | overflow: hidden; | ||
549 | 83 | } | ||
550 | 84 | /* line 67, ../sass/default.sass */ | ||
551 | 85 | #skip a:active, #skip a:focus { | ||
552 | 86 | position: static; | ||
553 | 87 | width: auto; | ||
554 | 88 | height: auto; | ||
555 | 89 | } | ||
556 | 90 | |||
557 | 91 | /* bug fix with views 2 edit links. */ | ||
558 | 92 | /* line 73, ../sass/default.sass */ | ||
559 | 93 | div.view div.views-admin-links { | ||
560 | 94 | width: auto; | ||
561 | 95 | } | ||
562 | 96 | |||
563 | 97 | /* Rollover edit links for blocks. */ | ||
564 | 98 | /* line 77, ../sass/default.sass */ | ||
565 | 99 | div.block { | ||
566 | 100 | position: relative; | ||
567 | 101 | } | ||
568 | 102 | /* line 79, ../sass/default.sass */ | ||
569 | 103 | div.block .edit { | ||
570 | 104 | display: none; | ||
571 | 105 | position: absolute; | ||
572 | 106 | right: -20px; | ||
573 | 107 | top: -5px; | ||
574 | 108 | z-index: 40; | ||
575 | 109 | padding: 3px 8px 0; | ||
576 | 110 | font-size: 10px; | ||
577 | 111 | line-height: 16px; | ||
578 | 112 | background-color: white; | ||
579 | 113 | border: 1px solid #cccccc; | ||
580 | 114 | /*let's get fancy! */ | ||
581 | 115 | -moz-border-radius: 3px; | ||
582 | 116 | -webkit-border-radius: 3px; | ||
583 | 117 | -moz-box-shadow: 0 1px 3px #888888; | ||
584 | 118 | -webkit-box-shadow: -1px 1px 2px #666666; | ||
585 | 119 | } | ||
586 | 120 | /* line 95, ../sass/default.sass */ | ||
587 | 121 | div.block .edit a { | ||
588 | 122 | display: block; | ||
589 | 123 | border: 0; | ||
590 | 124 | padding: 0; | ||
591 | 125 | margin: 0; | ||
592 | 126 | } | ||
593 | 127 | /* line 100, ../sass/default.sass */ | ||
594 | 128 | div.block:hover .edit { | ||
595 | 129 | display: block; | ||
596 | 130 | } | ||
597 | 131 | |||
598 | 132 | /* Wireframe styles. */ | ||
599 | 133 | /* line 105, ../sass/default.sass */ | ||
600 | 134 | .with-wireframes #header, | ||
601 | 135 | .with-wireframes #content-top, | ||
602 | 136 | .with-wireframes #content-top > *, | ||
603 | 137 | .with-wireframes #content-header, | ||
604 | 138 | .with-wireframes #content-header > *, | ||
605 | 139 | .with-wireframes #content-area, | ||
606 | 140 | .with-wireframes #content-area > *, | ||
607 | 141 | .with-wireframes #content-bottom, | ||
608 | 142 | .with-wireframes #content-bottom > *, | ||
609 | 143 | .with-wireframes #primary, | ||
610 | 144 | .with-wireframes #secondary, | ||
611 | 145 | .with-wireframes #sidebar-left-inner, | ||
612 | 146 | .with-wireframes #sidebar-right-inner, | ||
613 | 147 | .with-wireframes .block { | ||
614 | 148 | padding: 2px; | ||
615 | 149 | border: 1px solid #bbbbbb; | ||
616 | 150 | } | ||
617 | 151 | /* line 121, ../sass/default.sass */ | ||
618 | 152 | .with-wireframes .node { | ||
619 | 153 | border-bottom: 1px solid #bbbbbb; | ||
620 | 154 | margin-bottom: 10px; | ||
621 | 155 | } | ||
622 | 156 | /* line 124, ../sass/default.sass */ | ||
623 | 157 | .with-wireframes .block { | ||
624 | 158 | margin-bottom: 3px; | ||
625 | 159 | } | ||
626 | 160 | /* line 126, ../sass/default.sass */ | ||
627 | 161 | .with-wireframes #content-top, | ||
628 | 162 | .with-wireframes #content-header, | ||
629 | 163 | .with-wireframes #content-area, | ||
630 | 164 | .with-wireframes #content-bottom { | ||
631 | 165 | margin: 0 3px 3px; | ||
632 | 166 | } | ||
633 | 167 | /* line 131, ../sass/default.sass */ | ||
634 | 168 | .with-wireframes #footer { | ||
635 | 169 | margin-top: 3px; | ||
636 | 170 | padding: 2px; | ||
637 | 171 | border: 1px solid #cccccc; | ||
638 | 172 | } | ||
639 | 173 | /* line 136, ../sass/default.sass */ | ||
640 | 174 | .with-wireframes.with-navigation #content, | ||
641 | 175 | .with-wireframes.with-navigation .sidebar { | ||
642 | 176 | margin-top: 50px; | ||
643 | 177 | } | ||
644 | 178 | /* line 139, ../sass/default.sass */ | ||
645 | 179 | .with-wireframes #navigation { | ||
646 | 180 | height: 50px; | ||
647 | 181 | } | ||
648 | 0 | 182 | ||
649 | === added file 'css/ie6.css' | |||
650 | --- css/ie6.css 1970-01-01 00:00:00 +0000 | |||
651 | +++ css/ie6.css 2010-12-08 01:56:31 +0000 | |||
652 | @@ -0,0 +1,67 @@ | |||
653 | 1 | /* Yes, we all hate IE6. */ | ||
654 | 2 | /* Fix the admin page in ie6. */ | ||
655 | 3 | /* line 5, ../sass/ie6.sass */ | ||
656 | 4 | div.admin .left, | ||
657 | 5 | div.admin .right { | ||
658 | 6 | width: 46%; | ||
659 | 7 | } | ||
660 | 8 | |||
661 | 9 | /* Tabs CSS - IE 5 and 6 don't support PNGs with alpha transparency. */ | ||
662 | 10 | /* line 10, ../sass/ie6.sass */ | ||
663 | 11 | ul.primary, | ||
664 | 12 | ul.secondary { | ||
665 | 13 | width: 100%; | ||
666 | 14 | width: auto; | ||
667 | 15 | } | ||
668 | 16 | /* line 14, ../sass/ie6.sass */ | ||
669 | 17 | ul.primary li a, | ||
670 | 18 | ul.primary li a .tab, | ||
671 | 19 | ul.secondary li a, | ||
672 | 20 | ul.secondary li a .tab { | ||
673 | 21 | display: inline; | ||
674 | 22 | display: inline-block; | ||
675 | 23 | } | ||
676 | 24 | |||
677 | 25 | /* line 21, ../sass/ie6.sass */ | ||
678 | 26 | ul.primary li a { | ||
679 | 27 | background: url(../images/tabs/tab-left-ie6.png) no-repeat left -38px; | ||
680 | 28 | } | ||
681 | 29 | /* line 23, ../sass/ie6.sass */ | ||
682 | 30 | ul.primary li a .tab { | ||
683 | 31 | background: url(../images/tabs/tab-right-ie6.png) no-repeat right -38px; | ||
684 | 32 | } | ||
685 | 33 | /* line 25, ../sass/ie6.sass */ | ||
686 | 34 | ul.primary li a:hover { | ||
687 | 35 | cursor: pointer; | ||
688 | 36 | color: #555555; | ||
689 | 37 | text-decoration: none; | ||
690 | 38 | background-position: left -76px; | ||
691 | 39 | } | ||
692 | 40 | /* line 30, ../sass/ie6.sass */ | ||
693 | 41 | ul.primary li a:hover .tab { | ||
694 | 42 | background-position: right -76px; | ||
695 | 43 | } | ||
696 | 44 | /* line 33, ../sass/ie6.sass */ | ||
697 | 45 | ul.primary li.active a, ul.primary li.active a:hover { | ||
698 | 46 | background: url(../images/tabs/tab-left-ie6.png) no-repeat left 0; | ||
699 | 47 | } | ||
700 | 48 | /* line 35, ../sass/ie6.sass */ | ||
701 | 49 | ul.primary li.active a .tab, ul.primary li.active a:hover .tab { | ||
702 | 50 | background: url(../images/tabs/tab-right-ie6.png) no-repeat right 0; | ||
703 | 51 | } | ||
704 | 52 | |||
705 | 53 | /* line 41, ../sass/ie6.sass */ | ||
706 | 54 | ul.secondary li a:hover { | ||
707 | 55 | cursor: pointer; | ||
708 | 56 | color: #555555; | ||
709 | 57 | text-decoration: none; | ||
710 | 58 | } | ||
711 | 59 | |||
712 | 60 | /* Drupal admin tables */ | ||
713 | 61 | /* line 49, ../sass/ie6.sass */ | ||
714 | 62 | #content tr.even th, | ||
715 | 63 | #content tr.even td, | ||
716 | 64 | #content tr.odd th, | ||
717 | 65 | #content tr.odd td { | ||
718 | 66 | border-bottom: 1px solid #cccccc; | ||
719 | 67 | } | ||
720 | 0 | 68 | ||
721 | === added file 'css/ie7.css' | |||
722 | --- css/ie7.css 1970-01-01 00:00:00 +0000 | |||
723 | +++ css/ie7.css 2010-12-08 01:56:31 +0000 | |||
724 | @@ -0,0 +1,18 @@ | |||
725 | 1 | /* Yes, we all hate IE7 too. */ | ||
726 | 2 | /* Drupal admin tables. */ | ||
727 | 3 | /* line 6, ../sass/ie7.sass */ | ||
728 | 4 | #content tr.even th, | ||
729 | 5 | #content tr.even td, | ||
730 | 6 | #content tr.odd th, | ||
731 | 7 | #content tr.odd td { | ||
732 | 8 | border-bottom: 1px solid #cccccc; | ||
733 | 9 | } | ||
734 | 10 | |||
735 | 11 | /* Minor fix for primary and secondary tabs in IE */ | ||
736 | 12 | /* line 14, ../sass/ie7.sass */ | ||
737 | 13 | ul .primary li a:hover, | ||
738 | 14 | ul .secondary li a:hover { | ||
739 | 15 | cursor: pointer; | ||
740 | 16 | color: #555555; | ||
741 | 17 | text-decoration: none; | ||
742 | 18 | } | ||
743 | 0 | 19 | ||
744 | === added file 'css/layout.css' | |||
745 | --- css/layout.css 1970-01-01 00:00:00 +0000 | |||
746 | +++ css/layout.css 2010-12-08 01:56:31 +0000 | |||
747 | @@ -0,0 +1,110 @@ | |||
748 | 1 | /* Layout | ||
749 | 2 | * ------ | ||
750 | 3 | * Using a negative margin technique, adapted from ZEN. The page is loaded by this order: | ||
751 | 4 | * | ||
752 | 5 | * 1. Header | ||
753 | 6 | * 2. Content | ||
754 | 7 | * 3. Navigation menus | ||
755 | 8 | * 4. Sidebar Left | ||
756 | 9 | * 5. Sideabr Right */ | ||
757 | 10 | /* remove 'auto' and the width to switch to a fluid width */ | ||
758 | 11 | /* line 16, ../sass/layout.sass */ | ||
759 | 12 | #page { | ||
760 | 13 | width: 960px; | ||
761 | 14 | margin: 0 auto; | ||
762 | 15 | } | ||
763 | 16 | |||
764 | 17 | /* Layout rules. (Disclaimer: do not change if you're not sure you know what you're doing.) */ | ||
765 | 18 | /* line 21, ../sass/layout.sass */ | ||
766 | 19 | #content { | ||
767 | 20 | float: left; | ||
768 | 21 | width: 100%; | ||
769 | 22 | margin: 0; | ||
770 | 23 | padding: 0; | ||
771 | 24 | } | ||
772 | 25 | |||
773 | 26 | /* line 27, ../sass/layout.sass */ | ||
774 | 27 | .sidebar { | ||
775 | 28 | float: left; | ||
776 | 29 | } | ||
777 | 30 | |||
778 | 31 | /* line 30, ../sass/layout.sass */ | ||
779 | 32 | #sidebar-second { | ||
780 | 33 | float: right; | ||
781 | 34 | } | ||
782 | 35 | |||
783 | 36 | /* line 33, ../sass/layout.sass */ | ||
784 | 37 | #footer { | ||
785 | 38 | float: none; | ||
786 | 39 | clear: both; | ||
787 | 40 | } | ||
788 | 41 | |||
789 | 42 | /* Layout Helpers */ | ||
790 | 43 | /* line 38, ../sass/layout.sass */ | ||
791 | 44 | #header, | ||
792 | 45 | #footer, | ||
793 | 46 | .mission, | ||
794 | 47 | .breadcrumb, | ||
795 | 48 | .node { | ||
796 | 49 | clear: both; | ||
797 | 50 | } | ||
798 | 51 | |||
799 | 52 | /* Sidebars width | ||
800 | 53 | * -------------- | ||
801 | 54 | * Changing the width of the sidebars is dead easy, just change the | ||
802 | 55 | * values below corresponding to the sidebar you want to modify. | ||
803 | 56 | * Make sure you keep negative values as negative values. | ||
804 | 57 | * For example, if I want to increase the width of the left sidebar | ||
805 | 58 | * to 300px, I would have to change each '190' to '300'. */ | ||
806 | 59 | /* line 56, ../sass/layout.sass */ | ||
807 | 60 | .two-sidebars .center, | ||
808 | 61 | .sidebar-left .center { | ||
809 | 62 | margin-left: 190px; | ||
810 | 63 | } | ||
811 | 64 | |||
812 | 65 | /* line 60, ../sass/layout.sass */ | ||
813 | 66 | #sidebar-first { | ||
814 | 67 | width: 190px; | ||
815 | 68 | margin-right: -190px; | ||
816 | 69 | } | ||
817 | 70 | |||
818 | 71 | /* line 66, ../sass/layout.sass */ | ||
819 | 72 | .two-sidebars .center, | ||
820 | 73 | .sidebar-right .center { | ||
821 | 74 | margin-right: 200px; | ||
822 | 75 | } | ||
823 | 76 | |||
824 | 77 | /* line 70, ../sass/layout.sass */ | ||
825 | 78 | #sidebar-second { | ||
826 | 79 | width: 200px; | ||
827 | 80 | } | ||
828 | 81 | |||
829 | 82 | /* Columns Inner | ||
830 | 83 | * ------------- | ||
831 | 84 | * You can change the padding inside the columns without changing the | ||
832 | 85 | * width of them by just usinbg the INNER div of each column */ | ||
833 | 86 | /* line 77, ../sass/layout.sass */ | ||
834 | 87 | .inner { | ||
835 | 88 | padding: 0; | ||
836 | 89 | } | ||
837 | 90 | |||
838 | 91 | /* Navigation styles | ||
839 | 92 | * ----------------- | ||
840 | 93 | * The navigation is loaded after the content, so we need to make space | ||
841 | 94 | * for it, equal to its height, so if you change the height of the navigation, | ||
842 | 95 | * remember to adapt the margin top of the content and sidebars. */ | ||
843 | 96 | /* line 85, ../sass/layout.sass */ | ||
844 | 97 | #navigation { | ||
845 | 98 | float: left; | ||
846 | 99 | margin-left: 0; | ||
847 | 100 | margin-right: -100%; | ||
848 | 101 | padding: 0; | ||
849 | 102 | width: 100%; | ||
850 | 103 | height: 40px; | ||
851 | 104 | } | ||
852 | 105 | |||
853 | 106 | /* line 95, ../sass/layout.sass */ | ||
854 | 107 | .with-navigation #content, | ||
855 | 108 | .with-navigation .sidebar { | ||
856 | 109 | margin-top: 40px; | ||
857 | 110 | } | ||
858 | 0 | 111 | ||
859 | === added file 'css/print.css' | |||
860 | --- css/print.css 1970-01-01 00:00:00 +0000 | |||
861 | +++ css/print.css 2010-12-08 01:56:31 +0000 | |||
862 | @@ -0,0 +1,45 @@ | |||
863 | 1 | /* Use this stylesheet for print styles only. */ | ||
864 | 2 | /* line 2, ../sass/print.sass */ | ||
865 | 3 | * { | ||
866 | 4 | background-color: transparent; | ||
867 | 5 | } | ||
868 | 6 | |||
869 | 7 | /* line 5, ../sass/print.sass */ | ||
870 | 8 | .sidebar, | ||
871 | 9 | #navigation, | ||
872 | 10 | #header-region, | ||
873 | 11 | #search-theme-form, | ||
874 | 12 | #footer, | ||
875 | 13 | .breadcrumb, | ||
876 | 14 | .tabs, | ||
877 | 15 | .feed-icon, | ||
878 | 16 | .links { | ||
879 | 17 | display: none; | ||
880 | 18 | } | ||
881 | 19 | |||
882 | 20 | /* line 16, ../sass/print.sass */ | ||
883 | 21 | #page { | ||
884 | 22 | width: 100%; | ||
885 | 23 | } | ||
886 | 24 | |||
887 | 25 | /* line 19, ../sass/print.sass */ | ||
888 | 26 | #content, | ||
889 | 27 | #content #content-inner, | ||
890 | 28 | .content, | ||
891 | 29 | .title { | ||
892 | 30 | margin: 20px 0; | ||
893 | 31 | width: auto; | ||
894 | 32 | } | ||
895 | 33 | |||
896 | 34 | /* line 27, ../sass/print.sass */ | ||
897 | 35 | a:hover, a:active, a:link, a:visited { | ||
898 | 36 | color: black; | ||
899 | 37 | } | ||
900 | 38 | |||
901 | 39 | /* CSS2 selector to add visible href after links. */ | ||
902 | 40 | /* line 35, ../sass/print.sass */ | ||
903 | 41 | #content a:link:after, #content a:visited:after { | ||
904 | 42 | content: " (" attr(href) ") "; | ||
905 | 43 | font-size: 0.8em; | ||
906 | 44 | font-weight: normal; | ||
907 | 45 | } | ||
908 | 0 | 46 | ||
909 | === added file 'css/style.css' | |||
910 | --- css/style.css 1970-01-01 00:00:00 +0000 | |||
911 | +++ css/style.css 2010-12-08 01:56:31 +0000 | |||
912 | @@ -0,0 +1,290 @@ | |||
913 | 1 | /* Font styles. */ | ||
914 | 2 | /* line 2, ../sass/style.sass */ | ||
915 | 3 | body { | ||
916 | 4 | margin: 0; | ||
917 | 5 | /* Setting up font size, leading and font family | ||
918 | 6 | * http://www.markboulton.co.uk/journal/comments/five-simple-steps-to-better-typography */ | ||
919 | 7 | font: 13px/1.5em "Helvetica Neue", helvetica, Arial, sans-serif; | ||
920 | 8 | } | ||
921 | 9 | |||
922 | 10 | /* Links */ | ||
923 | 11 | /* line 10, ../sass/style.sass */ | ||
924 | 12 | a:link, a:visited { | ||
925 | 13 | color: blue; | ||
926 | 14 | text-decoration: none; | ||
927 | 15 | } | ||
928 | 16 | |||
929 | 17 | /* line 15, ../sass/style.sass */ | ||
930 | 18 | a:hover, a:active { | ||
931 | 19 | color: red; | ||
932 | 20 | text-decoration: underline; | ||
933 | 21 | } | ||
934 | 22 | |||
935 | 23 | /* Titles. */ | ||
936 | 24 | /* line 21, ../sass/style.sass */ | ||
937 | 25 | h1, h2, h3, h4, h5, h6 { | ||
938 | 26 | line-height: 1.3em; | ||
939 | 27 | } | ||
940 | 28 | |||
941 | 29 | /* line 24, ../sass/style.sass */ | ||
942 | 30 | h1 { | ||
943 | 31 | font-size: 2.2em; | ||
944 | 32 | font-weight: 300; | ||
945 | 33 | padding: 0 0 0.5em; | ||
946 | 34 | margin: 0; | ||
947 | 35 | } | ||
948 | 36 | |||
949 | 37 | /* line 30, ../sass/style.sass */ | ||
950 | 38 | h2 { | ||
951 | 39 | font-size: 1.8em; | ||
952 | 40 | font-weight: 300; | ||
953 | 41 | margin-bottom: 0.75em; | ||
954 | 42 | } | ||
955 | 43 | |||
956 | 44 | /* line 35, ../sass/style.sass */ | ||
957 | 45 | h3 { | ||
958 | 46 | font-size: 1.4em; | ||
959 | 47 | margin-bottom: 1em; | ||
960 | 48 | } | ||
961 | 49 | |||
962 | 50 | /* line 39, ../sass/style.sass */ | ||
963 | 51 | h4 { | ||
964 | 52 | font-size: 1.2em; | ||
965 | 53 | margin-bottom: 0.8em; | ||
966 | 54 | } | ||
967 | 55 | |||
968 | 56 | /* line 43, ../sass/style.sass */ | ||
969 | 57 | h5 { | ||
970 | 58 | font-size: 1.1em; | ||
971 | 59 | font-weight: 600; | ||
972 | 60 | margin-bottom: 0; | ||
973 | 61 | } | ||
974 | 62 | |||
975 | 63 | /* line 48, ../sass/style.sass */ | ||
976 | 64 | h6 { | ||
977 | 65 | font-size: 1em; | ||
978 | 66 | font-weight: bold; | ||
979 | 67 | } | ||
980 | 68 | |||
981 | 69 | /* Paragraph styles. */ | ||
982 | 70 | /* line 53, ../sass/style.sass */ | ||
983 | 71 | p { | ||
984 | 72 | margin: 0 0 1em 0; | ||
985 | 73 | } | ||
986 | 74 | |||
987 | 75 | /* List styles. */ | ||
988 | 76 | /* line 57, ../sass/style.sass */ | ||
989 | 77 | ul, ol { | ||
990 | 78 | margin-left: 0; | ||
991 | 79 | padding-left: 2em; | ||
992 | 80 | } | ||
993 | 81 | |||
994 | 82 | /* Table styles. */ | ||
995 | 83 | /* line 62, ../sass/style.sass */ | ||
996 | 84 | table { | ||
997 | 85 | width: 99%; | ||
998 | 86 | } | ||
999 | 87 | |||
1000 | 88 | /* line 67, ../sass/style.sass */ | ||
1001 | 89 | tr.even td, | ||
1002 | 90 | tr.odd td { | ||
1003 | 91 | padding: 10px 5px; | ||
1004 | 92 | } | ||
1005 | 93 | |||
1006 | 94 | /* line 70, ../sass/style.sass */ | ||
1007 | 95 | tr.odd { | ||
1008 | 96 | background-color: white; | ||
1009 | 97 | } | ||
1010 | 98 | |||
1011 | 99 | /* Code. */ | ||
1012 | 100 | /* line 74, ../sass/style.sass */ | ||
1013 | 101 | pre, code, tt { | ||
1014 | 102 | font: 1em "andale mono", "lucida console", monospace; | ||
1015 | 103 | line-height: 1.5; | ||
1016 | 104 | } | ||
1017 | 105 | |||
1018 | 106 | /* line 78, ../sass/style.sass */ | ||
1019 | 107 | pre { | ||
1020 | 108 | background-color: #efefef; | ||
1021 | 109 | display: block; | ||
1022 | 110 | padding: 5px; | ||
1023 | 111 | margin: 5px 0; | ||
1024 | 112 | border: 1px solid #aaaaaa; | ||
1025 | 113 | } | ||
1026 | 114 | |||
1027 | 115 | /* List styles. */ | ||
1028 | 116 | /* line 86, ../sass/style.sass */ | ||
1029 | 117 | ul { | ||
1030 | 118 | list-style-type: disc; | ||
1031 | 119 | } | ||
1032 | 120 | /* line 88, ../sass/style.sass */ | ||
1033 | 121 | ul ul { | ||
1034 | 122 | list-style-type: circle; | ||
1035 | 123 | } | ||
1036 | 124 | /* line 90, ../sass/style.sass */ | ||
1037 | 125 | ul ul ul { | ||
1038 | 126 | list-style-type: square; | ||
1039 | 127 | } | ||
1040 | 128 | /* line 92, ../sass/style.sass */ | ||
1041 | 129 | ul ul ul ul { | ||
1042 | 130 | list-style-type: circle; | ||
1043 | 131 | } | ||
1044 | 132 | |||
1045 | 133 | /* line 95, ../sass/style.sass */ | ||
1046 | 134 | ol { | ||
1047 | 135 | list-style-type: decimal; | ||
1048 | 136 | } | ||
1049 | 137 | /* line 97, ../sass/style.sass */ | ||
1050 | 138 | ol ol { | ||
1051 | 139 | list-style-type: lower-alpha; | ||
1052 | 140 | } | ||
1053 | 141 | /* line 99, ../sass/style.sass */ | ||
1054 | 142 | ol ol ol { | ||
1055 | 143 | list-style-type: decimal; | ||
1056 | 144 | } | ||
1057 | 145 | |||
1058 | 146 | /* Abbreviation. */ | ||
1059 | 147 | /* line 103, ../sass/style.sass */ | ||
1060 | 148 | abbr { | ||
1061 | 149 | border-bottom: 1px dotted #666666; | ||
1062 | 150 | cursor: help; | ||
1063 | 151 | white-space: nowrap; | ||
1064 | 152 | } | ||
1065 | 153 | |||
1066 | 154 | /* UI improvments. */ | ||
1067 | 155 | /* line 109, ../sass/style.sass */ | ||
1068 | 156 | #edit-title { | ||
1069 | 157 | font-size: 24px; | ||
1070 | 158 | width: 98%; | ||
1071 | 159 | } | ||
1072 | 160 | |||
1073 | 161 | /* line 113, ../sass/style.sass */ | ||
1074 | 162 | #system-themes-form img { | ||
1075 | 163 | width: 100px; | ||
1076 | 164 | } | ||
1077 | 165 | |||
1078 | 166 | /* line 116, ../sass/style.sass */ | ||
1079 | 167 | .form-item .description { | ||
1080 | 168 | font-style: italic; | ||
1081 | 169 | line-height: 1.2em; | ||
1082 | 170 | font-size: 0.8em; | ||
1083 | 171 | margin-top: 5px; | ||
1084 | 172 | color: #777777; | ||
1085 | 173 | } | ||
1086 | 174 | |||
1087 | 175 | /* line 123, ../sass/style.sass */ | ||
1088 | 176 | #edit-delete { | ||
1089 | 177 | color: #cc0000; | ||
1090 | 178 | } | ||
1091 | 179 | |||
1092 | 180 | /* Console, style from slate theme. */ | ||
1093 | 181 | /* line 127, ../sass/style.sass */ | ||
1094 | 182 | div.messages { | ||
1095 | 183 | padding: 9px; | ||
1096 | 184 | margin: 1em 0; | ||
1097 | 185 | color: #003366; | ||
1098 | 186 | background: #bbddff; | ||
1099 | 187 | border: 1px solid #aaccee; | ||
1100 | 188 | } | ||
1101 | 189 | |||
1102 | 190 | /* line 134, ../sass/style.sass */ | ||
1103 | 191 | div.warning { | ||
1104 | 192 | color: #884400; | ||
1105 | 193 | background: #ffee66; | ||
1106 | 194 | border-color: #eedd55; | ||
1107 | 195 | } | ||
1108 | 196 | |||
1109 | 197 | /* line 139, ../sass/style.sass */ | ||
1110 | 198 | div.error { | ||
1111 | 199 | color: white; | ||
1112 | 200 | background: #ee6633; | ||
1113 | 201 | border-color: #dd5522; | ||
1114 | 202 | } | ||
1115 | 203 | |||
1116 | 204 | /* line 144, ../sass/style.sass */ | ||
1117 | 205 | div.status { | ||
1118 | 206 | color: #336600; | ||
1119 | 207 | background: #ccff88; | ||
1120 | 208 | border-color: #bbee77; | ||
1121 | 209 | } | ||
1122 | 210 | |||
1123 | 211 | /* Region Colors. delete when starting a new theme. */ | ||
1124 | 212 | /* line 150, ../sass/style.sass */ | ||
1125 | 213 | #header, #footer { | ||
1126 | 214 | background: #efefef; | ||
1127 | 215 | } | ||
1128 | 216 | |||
1129 | 217 | /* line 153, ../sass/style.sass */ | ||
1130 | 218 | #sidebar-first { | ||
1131 | 219 | background: #e7edff; | ||
1132 | 220 | } | ||
1133 | 221 | |||
1134 | 222 | /* line 156, ../sass/style.sass */ | ||
1135 | 223 | #sidebar-second { | ||
1136 | 224 | background: #ffd075; | ||
1137 | 225 | } | ||
1138 | 226 | |||
1139 | 227 | /* line 159, ../sass/style.sass */ | ||
1140 | 228 | #navigation { | ||
1141 | 229 | background: #feffa5; | ||
1142 | 230 | } | ||
1143 | 231 | #header{ | ||
1144 | 232 | width:880px; | ||
1145 | 233 | height:138px; | ||
1146 | 234 | margin:auto; | ||
1147 | 235 | background:url(http://theosdf.org/images/header_bg.jpg) repeat-x; | ||
1148 | 236 | } | ||
1149 | 237 | #logo { | ||
1150 | 238 | float: left; | ||
1151 | 239 | padding: 38px 0 0 30px; | ||
1152 | 240 | } | ||
1153 | 241 | .top_phone { | ||
1154 | 242 | width:280px; | ||
1155 | 243 | height:89px; | ||
1156 | 244 | float:right; | ||
1157 | 245 | color:#FFFFFF; | ||
1158 | 246 | padding:10px 0 0 0; | ||
1159 | 247 | } | ||
1160 | 248 | .phone_text{ | ||
1161 | 249 | font-size:16px; | ||
1162 | 250 | font-weight:bold; | ||
1163 | 251 | float:left; | ||
1164 | 252 | padding:0px 0 0 10px; | ||
1165 | 253 | } | ||
1166 | 254 | img.left{ | ||
1167 | 255 | float:left; | ||
1168 | 256 | } | ||
1169 | 257 | span.black{ | ||
1170 | 258 | color:#000000; | ||
1171 | 259 | font-size:14px; | ||
1172 | 260 | } | ||
1173 | 261 | #menu_tab { | ||
1174 | 262 | float: right; | ||
1175 | 263 | font-family: Arial,Helvetica,sans-serif; | ||
1176 | 264 | height: 37px; | ||
1177 | 265 | padding: 0; | ||
1178 | 266 | width: 480px; | ||
1179 | 267 | } | ||
1180 | 268 | ul.menu { | ||
1181 | 269 | list-style-type:none; | ||
1182 | 270 | display:block; | ||
1183 | 271 | width: 507px; | ||
1184 | 272 | margin: auto; | ||
1185 | 273 | padding:0px; | ||
1186 | 274 | background:none; | ||
1187 | 275 | } | ||
1188 | 276 | |||
1189 | 277 | ul.menu li { | ||
1190 | 278 | display:inline; | ||
1191 | 279 | font-size:11px; | ||
1192 | 280 | font-weight:bold; | ||
1193 | 281 | line-height:26px; | ||
1194 | 282 | } | ||
1195 | 283 | a.nav:link, a.nav:visited { | ||
1196 | 284 | display:block; float:left; padding:0px; margin:0;width:71px; height:37px; margin:0px 4px 0px 4px; text-align:center; color:#FFFFFF; | ||
1197 | 285 | text-decoration:none;} | ||
1198 | 286 | a.nav_selected:link, a.nav_selected:visited { | ||
1199 | 287 | display:block; float:left; padding:0px; margin:0;width: 71px;margin:0px 4px 0px 4px;text-align:center; height:37px; | ||
1200 | 288 | text-decoration:none; color: #d34124; background:url(http://theosdf.org/images/bt_bg.gif) no-repeat center;} | ||
1201 | 289 | a.nav:hover { | ||
1202 | 290 | color: #d34124; text-decoration:none;background:url(http://theosdf.org/images/bt_bg.gif) no-repeat center;} | ||
1203 | 0 | 291 | ||
1204 | === added file 'css/tabs.css' | |||
1205 | --- css/tabs.css 1970-01-01 00:00:00 +0000 | |||
1206 | +++ css/tabs.css 2010-12-08 01:56:31 +0000 | |||
1207 | @@ -0,0 +1,122 @@ | |||
1208 | 1 | /* Tabs CSS | ||
1209 | 2 | * -------- | ||
1210 | 3 | * Adds styles for the primary and secondary tabs. | ||
1211 | 4 | * | ||
1212 | 5 | * Compare this with default CSS found in the system module's stylesheet (a copy | ||
1213 | 6 | * of which is in drupal5-reference.css, line 510.) */ | ||
1214 | 7 | /* line 8, ../sass/tabs.sass */ | ||
1215 | 8 | div.tabs { | ||
1216 | 9 | margin: 0 0 5px 0; | ||
1217 | 10 | } | ||
1218 | 11 | |||
1219 | 12 | /* line 11, ../sass/tabs.sass */ | ||
1220 | 13 | ul.primary, ul.secondary { | ||
1221 | 14 | width: 99%; | ||
1222 | 15 | } | ||
1223 | 16 | |||
1224 | 17 | /* line 14, ../sass/tabs.sass */ | ||
1225 | 18 | ul.primary { | ||
1226 | 19 | margin: 0; | ||
1227 | 20 | padding: 0 0 0 10px; | ||
1228 | 21 | border-width: 0; | ||
1229 | 22 | list-style: none; | ||
1230 | 23 | white-space: nowrap; | ||
1231 | 24 | line-height: normal; | ||
1232 | 25 | background: url(../images/tabs/tab-bar.png) repeat-x left bottom; | ||
1233 | 26 | } | ||
1234 | 27 | /* line 22, ../sass/tabs.sass */ | ||
1235 | 28 | ul.primary li { | ||
1236 | 29 | float: left; | ||
1237 | 30 | margin: 0; | ||
1238 | 31 | padding: 0; | ||
1239 | 32 | } | ||
1240 | 33 | /* line 27, ../sass/tabs.sass */ | ||
1241 | 34 | ul.primary li.active a, ul.primary li.active a:hover { | ||
1242 | 35 | border-width: 0; | ||
1243 | 36 | color: black; | ||
1244 | 37 | background-color: transparent; | ||
1245 | 38 | background: url(../images/tabs/tab-left.png) no-repeat left 0; | ||
1246 | 39 | } | ||
1247 | 40 | /* line 32, ../sass/tabs.sass */ | ||
1248 | 41 | ul.primary li.active a .tab, ul.primary li.active a:hover .tab { | ||
1249 | 42 | background: url(../images/tabs/tab-right.png) no-repeat right 0; | ||
1250 | 43 | } | ||
1251 | 44 | /* line 34, ../sass/tabs.sass */ | ||
1252 | 45 | ul.primary li a { | ||
1253 | 46 | display: block; | ||
1254 | 47 | height: 24px; | ||
1255 | 48 | margin: 0; | ||
1256 | 49 | padding: 0 0 0 5px; | ||
1257 | 50 | border-width: 0; | ||
1258 | 51 | font-weigh: bold; | ||
1259 | 52 | text-decoration: none; | ||
1260 | 53 | color: #777777; | ||
1261 | 54 | background-color: transparent; | ||
1262 | 55 | background: url(../images/tabs/tab-left.png) no-repeat left -38px; | ||
1263 | 56 | } | ||
1264 | 57 | /* line 45, ../sass/tabs.sass */ | ||
1265 | 58 | ul.primary li a:hover { | ||
1266 | 59 | border-width: 0; | ||
1267 | 60 | background-color: transparent; | ||
1268 | 61 | background: url(../images/tabs/tab-left.png) no-repeat left -76px; | ||
1269 | 62 | } | ||
1270 | 63 | /* line 49, ../sass/tabs.sass */ | ||
1271 | 64 | ul.primary li a:hover .tab { | ||
1272 | 65 | background: url(../images/tabs/tab-right.png) no-repeat right -76px; | ||
1273 | 66 | } | ||
1274 | 67 | /* line 51, ../sass/tabs.sass */ | ||
1275 | 68 | ul.primary li a .tab { | ||
1276 | 69 | display: block; | ||
1277 | 70 | height: 20px; | ||
1278 | 71 | margin: 0; | ||
1279 | 72 | padding: 4px 13px 0 6px; | ||
1280 | 73 | border-width: 0; | ||
1281 | 74 | line-height: 20px; | ||
1282 | 75 | background: url(../images/tabs/tab-right.png) no-repeat right -38px; | ||
1283 | 76 | } | ||
1284 | 77 | |||
1285 | 78 | /* line 60, ../sass/tabs.sass */ | ||
1286 | 79 | ul.secondary { | ||
1287 | 80 | margin: 0; | ||
1288 | 81 | padding: 0 0 0 5px; | ||
1289 | 82 | border-bottom: 1px solid silver; | ||
1290 | 83 | list-style: none; | ||
1291 | 84 | white-space: nowrap; | ||
1292 | 85 | background: url(../images/tabs/tab-secondary-bg.png) repeat-x left bottom; | ||
1293 | 86 | } | ||
1294 | 87 | /* line 67, ../sass/tabs.sass */ | ||
1295 | 88 | ul.secondary li { | ||
1296 | 89 | float: left; | ||
1297 | 90 | margin: 0 5px 0 0; | ||
1298 | 91 | padding: 5px 0; | ||
1299 | 92 | border-right: none; | ||
1300 | 93 | } | ||
1301 | 94 | /* line 72, ../sass/tabs.sass */ | ||
1302 | 95 | ul.secondary a { | ||
1303 | 96 | display: block; | ||
1304 | 97 | height: 24px; | ||
1305 | 98 | margin: 0; | ||
1306 | 99 | padding: 0; | ||
1307 | 100 | border: 1px solid silver; | ||
1308 | 101 | text-decoration: none; | ||
1309 | 102 | color: #777777; | ||
1310 | 103 | background: url(../images/tabs/tab-secondary.png) repeat-x left -56px; | ||
1311 | 104 | } | ||
1312 | 105 | /* line 81, ../sass/tabs.sass */ | ||
1313 | 106 | ul.secondary a .active, ul.secondary a .active:hover { | ||
1314 | 107 | border: 1px solid silver; | ||
1315 | 108 | color: black; | ||
1316 | 109 | background: url(../images/tabs/tab-secondary.png) repeat-x left top; | ||
1317 | 110 | } | ||
1318 | 111 | /* line 85, ../sass/tabs.sass */ | ||
1319 | 112 | ul.secondary a:hover { | ||
1320 | 113 | background: url(../images/tabs/tab-secondary.png) repeat-x left bottom; | ||
1321 | 114 | } | ||
1322 | 115 | /* line 87, ../sass/tabs.sass */ | ||
1323 | 116 | ul.secondary a .tab { | ||
1324 | 117 | display: block; | ||
1325 | 118 | height: 18px; | ||
1326 | 119 | margin: 0; | ||
1327 | 120 | padding: 3px 8px; | ||
1328 | 121 | line-height: 18px; | ||
1329 | 122 | } | ||
1330 | 0 | 123 | ||
1331 | === added directory 'images' | |||
1332 | === added file 'images/bg.jpg' | |||
1333 | 1 | Binary files images/bg.jpg 1970-01-01 00:00:00 +0000 and images/bg.jpg 2010-12-08 01:56:31 +0000 differ | 124 | Binary files images/bg.jpg 1970-01-01 00:00:00 +0000 and images/bg.jpg 2010-12-08 01:56:31 +0000 differ |
1334 | === added file 'images/box_bg.gif' | |||
1335 | 2 | Binary files images/box_bg.gif 1970-01-01 00:00:00 +0000 and images/box_bg.gif 2010-12-08 01:56:31 +0000 differ | 125 | Binary files images/box_bg.gif 1970-01-01 00:00:00 +0000 and images/box_bg.gif 2010-12-08 01:56:31 +0000 differ |
1336 | === added file 'images/bt_bg.gif' | |||
1337 | 3 | Binary files images/bt_bg.gif 1970-01-01 00:00:00 +0000 and images/bt_bg.gif 2010-12-08 01:56:31 +0000 differ | 126 | Binary files images/bt_bg.gif 1970-01-01 00:00:00 +0000 and images/bt_bg.gif 2010-12-08 01:56:31 +0000 differ |
1338 | === added file 'images/calendar_icon.gif' | |||
1339 | 4 | Binary files images/calendar_icon.gif 1970-01-01 00:00:00 +0000 and images/calendar_icon.gif 2010-12-08 01:56:31 +0000 differ | 127 | Binary files images/calendar_icon.gif 1970-01-01 00:00:00 +0000 and images/calendar_icon.gif 2010-12-08 01:56:31 +0000 differ |
1340 | === added file 'images/center_bg.gif' | |||
1341 | 5 | Binary files images/center_bg.gif 1970-01-01 00:00:00 +0000 and images/center_bg.gif 2010-12-08 01:56:31 +0000 differ | 128 | Binary files images/center_bg.gif 1970-01-01 00:00:00 +0000 and images/center_bg.gif 2010-12-08 01:56:31 +0000 differ |
1342 | === added file 'images/clients_icon.gif' | |||
1343 | 6 | Binary files images/clients_icon.gif 1970-01-01 00:00:00 +0000 and images/clients_icon.gif 2010-12-08 01:56:31 +0000 differ | 129 | Binary files images/clients_icon.gif 1970-01-01 00:00:00 +0000 and images/clients_icon.gif 2010-12-08 01:56:31 +0000 differ |
1344 | === added file 'images/donate.jpg' | |||
1345 | 7 | Binary files images/donate.jpg 1970-01-01 00:00:00 +0000 and images/donate.jpg 2010-12-08 01:56:31 +0000 differ | 130 | Binary files images/donate.jpg 1970-01-01 00:00:00 +0000 and images/donate.jpg 2010-12-08 01:56:31 +0000 differ |
1346 | === added file 'images/footer_logo.gif' | |||
1347 | 8 | Binary files images/footer_logo.gif 1970-01-01 00:00:00 +0000 and images/footer_logo.gif 2010-12-08 01:56:31 +0000 differ | 131 | Binary files images/footer_logo.gif 1970-01-01 00:00:00 +0000 and images/footer_logo.gif 2010-12-08 01:56:31 +0000 differ |
1348 | === added file 'images/header_bg.jpg' | |||
1349 | 9 | Binary files images/header_bg.jpg 1970-01-01 00:00:00 +0000 and images/header_bg.jpg 2010-12-08 01:56:31 +0000 differ | 132 | Binary files images/header_bg.jpg 1970-01-01 00:00:00 +0000 and images/header_bg.jpg 2010-12-08 01:56:31 +0000 differ |
1350 | === added file 'images/home_arrow.gif' | |||
1351 | 10 | Binary files images/home_arrow.gif 1970-01-01 00:00:00 +0000 and images/home_arrow.gif 2010-12-08 01:56:31 +0000 differ | 133 | Binary files images/home_arrow.gif 1970-01-01 00:00:00 +0000 and images/home_arrow.gif 2010-12-08 01:56:31 +0000 differ |
1352 | === added file 'images/icon1.png' | |||
1353 | 11 | Binary files images/icon1.png 1970-01-01 00:00:00 +0000 and images/icon1.png 2010-12-08 01:56:31 +0000 differ | 134 | Binary files images/icon1.png 1970-01-01 00:00:00 +0000 and images/icon1.png 2010-12-08 01:56:31 +0000 differ |
1354 | === added file 'images/icon2.png' | |||
1355 | 12 | Binary files images/icon2.png 1970-01-01 00:00:00 +0000 and images/icon2.png 2010-12-08 01:56:31 +0000 differ | 135 | Binary files images/icon2.png 1970-01-01 00:00:00 +0000 and images/icon2.png 2010-12-08 01:56:31 +0000 differ |
1356 | === added file 'images/icon3.png' | |||
1357 | 13 | Binary files images/icon3.png 1970-01-01 00:00:00 +0000 and images/icon3.png 2010-12-08 01:56:31 +0000 differ | 136 | Binary files images/icon3.png 1970-01-01 00:00:00 +0000 and images/icon3.png 2010-12-08 01:56:31 +0000 differ |
1358 | === added file 'images/list_arrow.gif' | |||
1359 | 14 | Binary files images/list_arrow.gif 1970-01-01 00:00:00 +0000 and images/list_arrow.gif 2010-12-08 01:56:31 +0000 differ | 137 | Binary files images/list_arrow.gif 1970-01-01 00:00:00 +0000 and images/list_arrow.gif 2010-12-08 01:56:31 +0000 differ |
1360 | === added file 'images/logo - Copy.png' | |||
1361 | 15 | Binary files images/logo - Copy.png 1970-01-01 00:00:00 +0000 and images/logo - Copy.png 2010-12-08 01:56:31 +0000 differ | 138 | Binary files images/logo - Copy.png 1970-01-01 00:00:00 +0000 and images/logo - Copy.png 2010-12-08 01:56:31 +0000 differ |
1362 | === added file 'images/logo.png' | |||
1363 | 16 | Binary files images/logo.png 1970-01-01 00:00:00 +0000 and images/logo.png 2010-12-08 01:56:31 +0000 differ | 139 | Binary files images/logo.png 1970-01-01 00:00:00 +0000 and images/logo.png 2010-12-08 01:56:31 +0000 differ |
1364 | === added file 'images/logo2.png' | |||
1365 | 17 | Binary files images/logo2.png 1970-01-01 00:00:00 +0000 and images/logo2.png 2010-12-08 01:56:31 +0000 differ | 140 | Binary files images/logo2.png 1970-01-01 00:00:00 +0000 and images/logo2.png 2010-12-08 01:56:31 +0000 differ |
1366 | === added file 'images/phone_arrows.png' | |||
1367 | 18 | Binary files images/phone_arrows.png 1970-01-01 00:00:00 +0000 and images/phone_arrows.png 2010-12-08 01:56:31 +0000 differ | 141 | Binary files images/phone_arrows.png 1970-01-01 00:00:00 +0000 and images/phone_arrows.png 2010-12-08 01:56:31 +0000 differ |
1368 | === added file 'images/read_more_bg.gif' | |||
1369 | 19 | Binary files images/read_more_bg.gif 1970-01-01 00:00:00 +0000 and images/read_more_bg.gif 2010-12-08 01:56:31 +0000 differ | 142 | Binary files images/read_more_bg.gif 1970-01-01 00:00:00 +0000 and images/read_more_bg.gif 2010-12-08 01:56:31 +0000 differ |
1370 | === added file 'images/screenshot.gif' | |||
1371 | 20 | Binary files images/screenshot.gif 1970-01-01 00:00:00 +0000 and images/screenshot.gif 2010-12-08 01:56:31 +0000 differ | 143 | Binary files images/screenshot.gif 1970-01-01 00:00:00 +0000 and images/screenshot.gif 2010-12-08 01:56:31 +0000 differ |
1372 | === added file 'images/services.gif' | |||
1373 | 21 | Binary files images/services.gif 1970-01-01 00:00:00 +0000 and images/services.gif 2010-12-08 01:56:31 +0000 differ | 144 | Binary files images/services.gif 1970-01-01 00:00:00 +0000 and images/services.gif 2010-12-08 01:56:31 +0000 differ |
1374 | === added file 'images/subtitle1.gif' | |||
1375 | 22 | Binary files images/subtitle1.gif 1970-01-01 00:00:00 +0000 and images/subtitle1.gif 2010-12-08 01:56:31 +0000 differ | 145 | Binary files images/subtitle1.gif 1970-01-01 00:00:00 +0000 and images/subtitle1.gif 2010-12-08 01:56:31 +0000 differ |
1376 | === added directory 'images/tabs' | |||
1377 | === added file 'images/tabs/tab-bar.png' | |||
1378 | 23 | Binary files images/tabs/tab-bar.png 1970-01-01 00:00:00 +0000 and images/tabs/tab-bar.png 2010-12-08 01:56:31 +0000 differ | 146 | Binary files images/tabs/tab-bar.png 1970-01-01 00:00:00 +0000 and images/tabs/tab-bar.png 2010-12-08 01:56:31 +0000 differ |
1379 | === added file 'images/tabs/tab-left-ie6.png' | |||
1380 | 24 | Binary files images/tabs/tab-left-ie6.png 1970-01-01 00:00:00 +0000 and images/tabs/tab-left-ie6.png 2010-12-08 01:56:31 +0000 differ | 147 | Binary files images/tabs/tab-left-ie6.png 1970-01-01 00:00:00 +0000 and images/tabs/tab-left-ie6.png 2010-12-08 01:56:31 +0000 differ |
1381 | === added file 'images/tabs/tab-left.png' | |||
1382 | 25 | Binary files images/tabs/tab-left.png 1970-01-01 00:00:00 +0000 and images/tabs/tab-left.png 2010-12-08 01:56:31 +0000 differ | 148 | Binary files images/tabs/tab-left.png 1970-01-01 00:00:00 +0000 and images/tabs/tab-left.png 2010-12-08 01:56:31 +0000 differ |
1383 | === added file 'images/tabs/tab-right-ie6.png' | |||
1384 | 26 | Binary files images/tabs/tab-right-ie6.png 1970-01-01 00:00:00 +0000 and images/tabs/tab-right-ie6.png 2010-12-08 01:56:31 +0000 differ | 149 | Binary files images/tabs/tab-right-ie6.png 1970-01-01 00:00:00 +0000 and images/tabs/tab-right-ie6.png 2010-12-08 01:56:31 +0000 differ |
1385 | === added file 'images/tabs/tab-right.png' | |||
1386 | 27 | Binary files images/tabs/tab-right.png 1970-01-01 00:00:00 +0000 and images/tabs/tab-right.png 2010-12-08 01:56:31 +0000 differ | 150 | Binary files images/tabs/tab-right.png 1970-01-01 00:00:00 +0000 and images/tabs/tab-right.png 2010-12-08 01:56:31 +0000 differ |
1387 | === added file 'images/tabs/tab-secondary-bg.png' | |||
1388 | 28 | Binary files images/tabs/tab-secondary-bg.png 1970-01-01 00:00:00 +0000 and images/tabs/tab-secondary-bg.png 2010-12-08 01:56:31 +0000 differ | 151 | Binary files images/tabs/tab-secondary-bg.png 1970-01-01 00:00:00 +0000 and images/tabs/tab-secondary-bg.png 2010-12-08 01:56:31 +0000 differ |
1389 | === added file 'images/tabs/tab-secondary.png' | |||
1390 | 29 | Binary files images/tabs/tab-secondary.png 1970-01-01 00:00:00 +0000 and images/tabs/tab-secondary.png 2010-12-08 01:56:31 +0000 differ | 152 | Binary files images/tabs/tab-secondary.png 1970-01-01 00:00:00 +0000 and images/tabs/tab-secondary.png 2010-12-08 01:56:31 +0000 differ |
1391 | === added file 'logo.png' | |||
1392 | 30 | Binary files logo.png 1970-01-01 00:00:00 +0000 and logo.png 2010-12-08 01:56:31 +0000 differ | 153 | Binary files logo.png 1970-01-01 00:00:00 +0000 and logo.png 2010-12-08 01:56:31 +0000 differ |
1393 | === renamed file 'logo.png' => 'logo.png.moved' | |||
1394 | === added directory 'sass' | |||
1395 | === added file 'sass/_custom.sass' | |||
1396 | --- sass/_custom.sass 1970-01-01 00:00:00 +0000 | |||
1397 | +++ sass/_custom.sass 2010-12-08 01:56:31 +0000 | |||
1398 | @@ -0,0 +1,8 @@ | |||
1399 | 1 | // Custom | ||
1400 | 2 | // ------ | ||
1401 | 3 | // This file is used to define custom overrides and | ||
1402 | 4 | // style changes to be used for building your theme. | ||
1403 | 5 | |||
1404 | 6 | // Import variables and mixins to be used. | ||
1405 | 7 | @import _variables.sass | ||
1406 | 8 | @import _mixins.sass | ||
1407 | 0 | \ No newline at end of file | 9 | \ No newline at end of file |
1408 | 1 | 10 | ||
1409 | === added file 'sass/_mixins.sass' | |||
1410 | --- sass/_mixins.sass 1970-01-01 00:00:00 +0000 | |||
1411 | +++ sass/_mixins.sass 2010-12-08 01:56:31 +0000 | |||
1412 | @@ -0,0 +1,24 @@ | |||
1413 | 1 | // Mixins | ||
1414 | 2 | // ------ | ||
1415 | 3 | // Mixins allow you to define styles that can be re-used | ||
1416 | 4 | // throughout the stylesheet without needing to resort to | ||
1417 | 5 | // non-semantic classes like .float-left. Mixins can also | ||
1418 | 6 | // contain full CSS rules, and anything else allowed | ||
1419 | 7 | // elsewhere in a Sass document. They can even take | ||
1420 | 8 | // arguments which allows you to produce a wide variety | ||
1421 | 9 | // of styles with very few mixins. | ||
1422 | 10 | // | ||
1423 | 11 | // For complete documentation: | ||
1424 | 12 | // http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#mixins | ||
1425 | 13 | |||
1426 | 14 | // Import variables for use in Mixins. | ||
1427 | 15 | @import _variables.sass | ||
1428 | 16 | |||
1429 | 17 | // Rounded corners mixin. | ||
1430 | 18 | @mixin rounded_corners($top: 10px, $right: 10px, $bottom: $top, $left: $right) | ||
1431 | 19 | border-radius: $top $right $bottom $left | ||
1432 | 20 | -moz-border-radius: $top $right $bottom $left | ||
1433 | 21 | -webkit-border-top-left-radius: $top | ||
1434 | 22 | -webkit-border-top-right-radius: $right | ||
1435 | 23 | -webkit-border-bottom-left-radius: $bottom | ||
1436 | 24 | -webkit-border-bottom-right-radius: $left | ||
1437 | 0 | 25 | ||
1438 | === added file 'sass/_variables.sass' | |||
1439 | --- sass/_variables.sass 1970-01-01 00:00:00 +0000 | |||
1440 | +++ sass/_variables.sass 2010-12-08 01:56:31 +0000 | |||
1441 | @@ -0,0 +1,16 @@ | |||
1442 | 1 | // Variables | ||
1443 | 2 | // --------- | ||
1444 | 3 | // Use the same color all over the place? Need to do | ||
1445 | 4 | // some math with height and width and text size? | ||
1446 | 5 | // Sass supports variables as well as basic math | ||
1447 | 6 | // operations and many useful functions. | ||
1448 | 7 | // | ||
1449 | 8 | // For complete documentation: | ||
1450 | 9 | // http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#variables_ | ||
1451 | 10 | // | ||
1452 | 11 | // Available functions: | ||
1453 | 12 | // http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html | ||
1454 | 13 | |||
1455 | 14 | // Sidebar widths. | ||
1456 | 15 | $first_sidebar_width: 190px | ||
1457 | 16 | $second_sidebar_width: 200px | ||
1458 | 0 | 17 | ||
1459 | === added file 'sass/default.sass' | |||
1460 | --- sass/default.sass 1970-01-01 00:00:00 +0000 | |||
1461 | +++ sass/default.sass 2010-12-08 01:56:31 +0000 | |||
1462 | @@ -0,0 +1,140 @@ | |||
1463 | 1 | /* About Default Styles | ||
1464 | 2 | * --------------------- | ||
1465 | 3 | * default.css is used to establish general rules, browser reset, or admin user interface styles. | ||
1466 | 4 | * | ||
1467 | 5 | * Browser Reset | ||
1468 | 6 | * ------------- | ||
1469 | 7 | * For a more complete reset, go to http://developer.yahoo.com/yui/reset/ | ||
1470 | 8 | |||
1471 | 9 | * | ||
1472 | 10 | margin: 0 | ||
1473 | 11 | padding: 0 | ||
1474 | 12 | |||
1475 | 13 | /* Clear Floats Without Structural Markup | ||
1476 | 14 | * --------------------------------------- | ||
1477 | 15 | * http://www.positioniseverything.net/easyclearing.html | ||
1478 | 16 | |||
1479 | 17 | .clearfix | ||
1480 | 18 | display: inline-block | ||
1481 | 19 | &:after | ||
1482 | 20 | content: "." | ||
1483 | 21 | display: block | ||
1484 | 22 | height: 0 | ||
1485 | 23 | clear: both | ||
1486 | 24 | visibility: hidden | ||
1487 | 25 | |||
1488 | 26 | /* Hides from IE-mac \ | ||
1489 | 27 | * html .clearfix | ||
1490 | 28 | height: 1% | ||
1491 | 29 | |||
1492 | 30 | .clearfix | ||
1493 | 31 | display: block | ||
1494 | 32 | |||
1495 | 33 | /* End hide from IE-mac | ||
1496 | 34 | |||
1497 | 35 | /* clear classes | ||
1498 | 36 | .clearleft, .clearl, .cleft | ||
1499 | 37 | clear: left | ||
1500 | 38 | |||
1501 | 39 | .clearright, .clearr, .cright | ||
1502 | 40 | clear: right | ||
1503 | 41 | |||
1504 | 42 | .clear, .clearboth, .clearall | ||
1505 | 43 | clear: both | ||
1506 | 44 | |||
1507 | 45 | /* Float classes | ||
1508 | 46 | .floatleft, .fleft, .floatl | ||
1509 | 47 | float: left | ||
1510 | 48 | margin: 0 10px 5px 0 | ||
1511 | 49 | |||
1512 | 50 | .floatright, .fright, .floatr | ||
1513 | 51 | float: right | ||
1514 | 52 | margin: 0 0 5px 10px | ||
1515 | 53 | |||
1516 | 54 | /* "Skip to Main Content" link | ||
1517 | 55 | * --------------------------- | ||
1518 | 56 | * This link useful for both visually impaired people and those with mobility impairments | ||
1519 | 57 | * who cannot use a mouse. http://www.webaim.org/techniques/css/invisiblecontent/ | ||
1520 | 58 | |||
1521 | 59 | #skip a | ||
1522 | 60 | &:link, &:hover, &:visited | ||
1523 | 61 | position: absolute | ||
1524 | 62 | left: -10000px | ||
1525 | 63 | top: auto | ||
1526 | 64 | width: 1px | ||
1527 | 65 | height: 1px | ||
1528 | 66 | overflow: hidden | ||
1529 | 67 | &:active, &:focus | ||
1530 | 68 | position: static | ||
1531 | 69 | width: auto | ||
1532 | 70 | height: auto | ||
1533 | 71 | |||
1534 | 72 | /* bug fix with views 2 edit links. | ||
1535 | 73 | div.view div.views-admin-links | ||
1536 | 74 | width: auto | ||
1537 | 75 | |||
1538 | 76 | /* Rollover edit links for blocks. | ||
1539 | 77 | div.block | ||
1540 | 78 | position: relative | ||
1541 | 79 | .edit | ||
1542 | 80 | display: none | ||
1543 | 81 | position: absolute | ||
1544 | 82 | right: -20px | ||
1545 | 83 | top: -5px | ||
1546 | 84 | z-index: 40 | ||
1547 | 85 | padding: 3px 8px 0 | ||
1548 | 86 | font-size: 10px | ||
1549 | 87 | line-height: 16px | ||
1550 | 88 | background-color: white | ||
1551 | 89 | border: 1px solid #cccccc | ||
1552 | 90 | /*let's get fancy! | ||
1553 | 91 | -moz-border-radius: 3px | ||
1554 | 92 | -webkit-border-radius: 3px | ||
1555 | 93 | -moz-box-shadow: 0 1px 3px #888888 | ||
1556 | 94 | -webkit-box-shadow: -1px 1px 2px #666666 | ||
1557 | 95 | a | ||
1558 | 96 | display: block | ||
1559 | 97 | border: 0 | ||
1560 | 98 | padding: 0 | ||
1561 | 99 | margin: 0 | ||
1562 | 100 | &:hover .edit | ||
1563 | 101 | display: block | ||
1564 | 102 | |||
1565 | 103 | /* Wireframe styles. | ||
1566 | 104 | .with-wireframes | ||
1567 | 105 | #header, | ||
1568 | 106 | #content-top, | ||
1569 | 107 | #content-top>*, | ||
1570 | 108 | #content-header, | ||
1571 | 109 | #content-header>*, | ||
1572 | 110 | #content-area, | ||
1573 | 111 | #content-area>*, | ||
1574 | 112 | #content-bottom, | ||
1575 | 113 | #content-bottom>*, | ||
1576 | 114 | #primary, | ||
1577 | 115 | #secondary, | ||
1578 | 116 | #sidebar-left-inner, | ||
1579 | 117 | #sidebar-right-inner, | ||
1580 | 118 | .block | ||
1581 | 119 | padding: 2px | ||
1582 | 120 | border: 1px solid #bbbbbb | ||
1583 | 121 | .node | ||
1584 | 122 | border-bottom: 1px solid #bbbbbb | ||
1585 | 123 | margin-bottom: 10px | ||
1586 | 124 | .block | ||
1587 | 125 | margin-bottom: 3px | ||
1588 | 126 | #content-top, | ||
1589 | 127 | #content-header, | ||
1590 | 128 | #content-area, | ||
1591 | 129 | #content-bottom | ||
1592 | 130 | margin: 0 3px 3px | ||
1593 | 131 | #footer | ||
1594 | 132 | margin-top: 3px | ||
1595 | 133 | padding: 2px | ||
1596 | 134 | border: 1px solid #cccccc | ||
1597 | 135 | &.with-navigation | ||
1598 | 136 | #content, | ||
1599 | 137 | .sidebar | ||
1600 | 138 | margin-top: 50px | ||
1601 | 139 | #navigation | ||
1602 | 140 | height: 50px | ||
1603 | 0 | 141 | ||
1604 | === added file 'sass/ie6.sass' | |||
1605 | --- sass/ie6.sass 1970-01-01 00:00:00 +0000 | |||
1606 | +++ sass/ie6.sass 2010-12-08 01:56:31 +0000 | |||
1607 | @@ -0,0 +1,51 @@ | |||
1608 | 1 | /* Yes, we all hate IE6. | ||
1609 | 2 | |||
1610 | 3 | /* Fix the admin page in ie6. | ||
1611 | 4 | div.admin | ||
1612 | 5 | .left, | ||
1613 | 6 | .right | ||
1614 | 7 | width: 46% | ||
1615 | 8 | |||
1616 | 9 | /* Tabs CSS - IE 5 and 6 don't support PNGs with alpha transparency. | ||
1617 | 10 | ul.primary, | ||
1618 | 11 | ul.secondary | ||
1619 | 12 | width: 100% | ||
1620 | 13 | width: auto | ||
1621 | 14 | li a, | ||
1622 | 15 | li a .tab | ||
1623 | 16 | display: inline | ||
1624 | 17 | display: inline-block | ||
1625 | 18 | |||
1626 | 19 | ul.primary | ||
1627 | 20 | li | ||
1628 | 21 | a | ||
1629 | 22 | background: url(../images/tabs/tab-left-ie6.png) no-repeat left -38px | ||
1630 | 23 | .tab | ||
1631 | 24 | background: url(../images/tabs/tab-right-ie6.png) no-repeat right -38px | ||
1632 | 25 | &:hover | ||
1633 | 26 | cursor: pointer | ||
1634 | 27 | color: #555555 | ||
1635 | 28 | text-decoration: none | ||
1636 | 29 | background-position: left -76px | ||
1637 | 30 | .tab | ||
1638 | 31 | background-position: right -76px | ||
1639 | 32 | &.active | ||
1640 | 33 | a, a:hover | ||
1641 | 34 | background: url(../images/tabs/tab-left-ie6.png) no-repeat left 0 | ||
1642 | 35 | .tab | ||
1643 | 36 | background: url(../images/tabs/tab-right-ie6.png) no-repeat right 0 | ||
1644 | 37 | |||
1645 | 38 | ul.secondary | ||
1646 | 39 | li | ||
1647 | 40 | a | ||
1648 | 41 | &:hover | ||
1649 | 42 | cursor: pointer | ||
1650 | 43 | color: #555555 | ||
1651 | 44 | text-decoration: none | ||
1652 | 45 | |||
1653 | 46 | /* Drupal admin tables | ||
1654 | 47 | #content tr.even, | ||
1655 | 48 | #content tr.odd | ||
1656 | 49 | th, | ||
1657 | 50 | td | ||
1658 | 51 | border-bottom: 1px solid #cccccc | ||
1659 | 0 | 52 | ||
1660 | === added file 'sass/ie7.sass' | |||
1661 | --- sass/ie7.sass 1970-01-01 00:00:00 +0000 | |||
1662 | +++ sass/ie7.sass 2010-12-08 01:56:31 +0000 | |||
1663 | @@ -0,0 +1,17 @@ | |||
1664 | 1 | /* Yes, we all hate IE7 too. | ||
1665 | 2 | |||
1666 | 3 | /* Drupal admin tables. | ||
1667 | 4 | #content tr.even, | ||
1668 | 5 | #content tr.odd | ||
1669 | 6 | th, | ||
1670 | 7 | td | ||
1671 | 8 | border-bottom: 1px solid #cccccc | ||
1672 | 9 | |||
1673 | 10 | /* Minor fix for primary and secondary tabs in IE | ||
1674 | 11 | ul | ||
1675 | 12 | .primary, | ||
1676 | 13 | .secondary | ||
1677 | 14 | li a:hover | ||
1678 | 15 | cursor: pointer | ||
1679 | 16 | color: #555555 | ||
1680 | 17 | text-decoration: none | ||
1681 | 0 | 18 | ||
1682 | === added file 'sass/layout.sass' | |||
1683 | --- sass/layout.sass 1970-01-01 00:00:00 +0000 | |||
1684 | +++ sass/layout.sass 2010-12-08 01:56:31 +0000 | |||
1685 | @@ -0,0 +1,97 @@ | |||
1686 | 1 | // Import mixins and variables for use in sass document. | ||
1687 | 2 | @import _variables.sass | ||
1688 | 3 | @import _mixins.sass | ||
1689 | 4 | |||
1690 | 5 | /* Layout | ||
1691 | 6 | * ------ | ||
1692 | 7 | * Using a negative margin technique, adapted from ZEN. The page is loaded by this order: | ||
1693 | 8 | * | ||
1694 | 9 | * 1. Header | ||
1695 | 10 | * 2. Content | ||
1696 | 11 | * 3. Navigation menus | ||
1697 | 12 | * 4. Sidebar Left | ||
1698 | 13 | * 5. Sideabr Right | ||
1699 | 14 | |||
1700 | 15 | /* remove 'auto' and the width to switch to a fluid width | ||
1701 | 16 | #page | ||
1702 | 17 | width: 960px | ||
1703 | 18 | margin: 0 auto | ||
1704 | 19 | |||
1705 | 20 | /* Layout rules. (Disclaimer: do not change if you're not sure you know what you're doing.) | ||
1706 | 21 | #content | ||
1707 | 22 | float: left | ||
1708 | 23 | width: 100% | ||
1709 | 24 | margin-right: -100% | ||
1710 | 25 | padding: 0 | ||
1711 | 26 | |||
1712 | 27 | .sidebar | ||
1713 | 28 | float: left | ||
1714 | 29 | |||
1715 | 30 | #sidebar-second | ||
1716 | 31 | float: right | ||
1717 | 32 | |||
1718 | 33 | #footer | ||
1719 | 34 | float: none | ||
1720 | 35 | clear: both | ||
1721 | 36 | |||
1722 | 37 | /* Layout Helpers | ||
1723 | 38 | #header, | ||
1724 | 39 | #footer, | ||
1725 | 40 | .mission, | ||
1726 | 41 | .breadcrumb, | ||
1727 | 42 | .node | ||
1728 | 43 | clear: both | ||
1729 | 44 | |||
1730 | 45 | /* Sidebars width | ||
1731 | 46 | * -------------- | ||
1732 | 47 | * Changing the width of the sidebars is dead easy, just change the | ||
1733 | 48 | * values below corresponding to the sidebar you want to modify. | ||
1734 | 49 | * Make sure you keep negative values as negative values. | ||
1735 | 50 | * For example, if I want to increase the width of the left sidebar | ||
1736 | 51 | * to 300px, I would have to change each '190' to '300'. | ||
1737 | 52 | |||
1738 | 53 | // Left value. | ||
1739 | 54 | .two-sidebars, | ||
1740 | 55 | .sidebar-left | ||
1741 | 56 | .center | ||
1742 | 57 | margin-left: $first_sidebar_width | ||
1743 | 58 | |||
1744 | 59 | // Left value & negative left value. | ||
1745 | 60 | #sidebar-first | ||
1746 | 61 | width: 190px | ||
1747 | 62 | margin-right: -$first_sidebar_width | ||
1748 | 63 | |||
1749 | 64 | .two-sidebars, | ||
1750 | 65 | .sidebar-right | ||
1751 | 66 | .center | ||
1752 | 67 | margin-right: $second_sidebar_width | ||
1753 | 68 | |||
1754 | 69 | // Right value. | ||
1755 | 70 | #sidebar-second | ||
1756 | 71 | width: $second_sidebar_width | ||
1757 | 72 | |||
1758 | 73 | /* Columns Inner | ||
1759 | 74 | * ------------- | ||
1760 | 75 | * You can change the padding inside the columns without changing the | ||
1761 | 76 | * width of them by just usinbg the INNER div of each column | ||
1762 | 77 | .inner | ||
1763 | 78 | padding: 0 | ||
1764 | 79 | |||
1765 | 80 | /* Navigation styles | ||
1766 | 81 | * ----------------- | ||
1767 | 82 | * The navigation is loaded after the content, so we need to make space | ||
1768 | 83 | * for it, equal to its height, so if you change the height of the navigation, | ||
1769 | 84 | * remember to adapt the margin top of the content and sidebars. | ||
1770 | 85 | #navigation | ||
1771 | 86 | float: left | ||
1772 | 87 | margin-left: 0 | ||
1773 | 88 | margin-right: -100% | ||
1774 | 89 | padding: 0 | ||
1775 | 90 | width: 100% | ||
1776 | 91 | height: 40px | ||
1777 | 92 | |||
1778 | 93 | // Navigation height. | ||
1779 | 94 | .with-navigation | ||
1780 | 95 | #content, | ||
1781 | 96 | .sidebar | ||
1782 | 97 | margin-top: 40px | ||
1783 | 0 | 98 | ||
1784 | === added file 'sass/print.sass' | |||
1785 | --- sass/print.sass 1970-01-01 00:00:00 +0000 | |||
1786 | +++ sass/print.sass 2010-12-08 01:56:31 +0000 | |||
1787 | @@ -0,0 +1,38 @@ | |||
1788 | 1 | /* Use this stylesheet for print styles only. | ||
1789 | 2 | * | ||
1790 | 3 | background-color: transparent | ||
1791 | 4 | |||
1792 | 5 | .sidebar, | ||
1793 | 6 | #navigation, | ||
1794 | 7 | #header-region, | ||
1795 | 8 | #search-theme-form, | ||
1796 | 9 | #footer, | ||
1797 | 10 | .breadcrumb, | ||
1798 | 11 | .tabs, | ||
1799 | 12 | .feed-icon, | ||
1800 | 13 | .links | ||
1801 | 14 | display: none | ||
1802 | 15 | |||
1803 | 16 | #page | ||
1804 | 17 | width: 100% | ||
1805 | 18 | |||
1806 | 19 | #content, | ||
1807 | 20 | #content #content-inner, | ||
1808 | 21 | .content, | ||
1809 | 22 | .title | ||
1810 | 23 | margin: 20px 0 | ||
1811 | 24 | width: auto | ||
1812 | 25 | |||
1813 | 26 | a | ||
1814 | 27 | &:hover, | ||
1815 | 28 | &:active, | ||
1816 | 29 | &:link, | ||
1817 | 30 | &:visited | ||
1818 | 31 | color: black | ||
1819 | 32 | |||
1820 | 33 | /* CSS2 selector to add visible href after links. | ||
1821 | 34 | #content a | ||
1822 | 35 | &:link:after, &:visited:after | ||
1823 | 36 | content: " (" attr(href) ") " | ||
1824 | 37 | font-size: 0.8em | ||
1825 | 38 | font-weight: normal | ||
1826 | 0 | 39 | ||
1827 | === added file 'sass/style.sass' | |||
1828 | --- sass/style.sass 1970-01-01 00:00:00 +0000 | |||
1829 | +++ sass/style.sass 2010-12-08 01:56:31 +0000 | |||
1830 | @@ -0,0 +1,163 @@ | |||
1831 | 1 | /* Font styles. | ||
1832 | 2 | body | ||
1833 | 3 | margin: 0 | ||
1834 | 4 | /* Setting up font size, leading and font family | ||
1835 | 5 | * http://www.markboulton.co.uk/journal/comments/five-simple-steps-to-better-typography | ||
1836 | 6 | font: 13px / 1.5em "Helvetica Neue", helvetica, Arial, sans-serif | ||
1837 | 7 | |||
1838 | 8 | /* Links | ||
1839 | 9 | a | ||
1840 | 10 | &:link, &:visited | ||
1841 | 11 | color: blue | ||
1842 | 12 | text-decoration: none | ||
1843 | 13 | |||
1844 | 14 | a | ||
1845 | 15 | &:hover, &:active | ||
1846 | 16 | color: red | ||
1847 | 17 | text-decoration: underline | ||
1848 | 18 | |||
1849 | 19 | /* Titles. | ||
1850 | 20 | |||
1851 | 21 | h1, h2, h3, h4, h5, h6 | ||
1852 | 22 | line-height: 1.3em | ||
1853 | 23 | |||
1854 | 24 | h1 | ||
1855 | 25 | font-size: 2.2em | ||
1856 | 26 | font-weight: 300 | ||
1857 | 27 | padding: 0 0 0.5em | ||
1858 | 28 | margin: 0 | ||
1859 | 29 | |||
1860 | 30 | h2 | ||
1861 | 31 | font-size: 1.8em | ||
1862 | 32 | font-weight: 300 | ||
1863 | 33 | margin-bottom: 0.75em | ||
1864 | 34 | |||
1865 | 35 | h3 | ||
1866 | 36 | font-size: 1.4em | ||
1867 | 37 | margin-bottom: 1em | ||
1868 | 38 | |||
1869 | 39 | h4 | ||
1870 | 40 | font-size: 1.2em | ||
1871 | 41 | margin-bottom: 0.8em | ||
1872 | 42 | |||
1873 | 43 | h5 | ||
1874 | 44 | font-size: 1.1em | ||
1875 | 45 | font-weight: 600 | ||
1876 | 46 | margin-bottom: 0 | ||
1877 | 47 | |||
1878 | 48 | h6 | ||
1879 | 49 | font-size: 1em | ||
1880 | 50 | font-weight: bold | ||
1881 | 51 | |||
1882 | 52 | /* Paragraph styles. | ||
1883 | 53 | p | ||
1884 | 54 | margin: 0 0 1em 0 | ||
1885 | 55 | |||
1886 | 56 | /* List styles. | ||
1887 | 57 | ul, ol | ||
1888 | 58 | margin-left: 0 | ||
1889 | 59 | padding-left: 2em | ||
1890 | 60 | |||
1891 | 61 | /* Table styles. | ||
1892 | 62 | table | ||
1893 | 63 | width: 99% | ||
1894 | 64 | |||
1895 | 65 | tr.even, | ||
1896 | 66 | tr.odd | ||
1897 | 67 | td | ||
1898 | 68 | padding: 10px 5px | ||
1899 | 69 | |||
1900 | 70 | tr.odd | ||
1901 | 71 | background-color: white | ||
1902 | 72 | |||
1903 | 73 | /* Code. | ||
1904 | 74 | pre, code, tt | ||
1905 | 75 | font: 1em "andale mono", "lucida console", monospace | ||
1906 | 76 | line-height: 1.5 | ||
1907 | 77 | |||
1908 | 78 | pre | ||
1909 | 79 | background-color: #efefef | ||
1910 | 80 | display: block | ||
1911 | 81 | padding: 5px | ||
1912 | 82 | margin: 5px 0 | ||
1913 | 83 | border: 1px solid #aaaaaa | ||
1914 | 84 | |||
1915 | 85 | /* List styles. | ||
1916 | 86 | ul | ||
1917 | 87 | list-style-type: disc | ||
1918 | 88 | ul | ||
1919 | 89 | list-style-type: circle | ||
1920 | 90 | ul | ||
1921 | 91 | list-style-type: square | ||
1922 | 92 | ul | ||
1923 | 93 | list-style-type: circle | ||
1924 | 94 | |||
1925 | 95 | ol | ||
1926 | 96 | list-style-type: decimal | ||
1927 | 97 | ol | ||
1928 | 98 | list-style-type: lower-alpha | ||
1929 | 99 | ol | ||
1930 | 100 | list-style-type: decimal | ||
1931 | 101 | |||
1932 | 102 | /* Abbreviation. | ||
1933 | 103 | abbr | ||
1934 | 104 | border-bottom: 1px dotted #666666 | ||
1935 | 105 | cursor: help | ||
1936 | 106 | white-space: nowrap | ||
1937 | 107 | |||
1938 | 108 | /* UI improvments. | ||
1939 | 109 | #edit-title | ||
1940 | 110 | font-size: 24px | ||
1941 | 111 | width: 98% | ||
1942 | 112 | |||
1943 | 113 | #system-themes-form img | ||
1944 | 114 | width: 100px | ||
1945 | 115 | |||
1946 | 116 | .form-item .description | ||
1947 | 117 | font-style: italic | ||
1948 | 118 | line-height: 1.2em | ||
1949 | 119 | font-size: 0.8em | ||
1950 | 120 | margin-top: 5px | ||
1951 | 121 | color: #777777 | ||
1952 | 122 | |||
1953 | 123 | #edit-delete | ||
1954 | 124 | color: #cc0000 | ||
1955 | 125 | |||
1956 | 126 | /* Console, style from slate theme. | ||
1957 | 127 | div.messages | ||
1958 | 128 | padding: 9px | ||
1959 | 129 | margin: 1em 0 | ||
1960 | 130 | color: #003366 | ||
1961 | 131 | background: #bbddff | ||
1962 | 132 | border: 1px solid #aaccee | ||
1963 | 133 | |||
1964 | 134 | div.warning | ||
1965 | 135 | color: #884400 | ||
1966 | 136 | background: #ffee66 | ||
1967 | 137 | border-color: #eedd55 | ||
1968 | 138 | |||
1969 | 139 | div.error | ||
1970 | 140 | color: white | ||
1971 | 141 | background: #ee6633 | ||
1972 | 142 | border-color: #dd5522 | ||
1973 | 143 | |||
1974 | 144 | div.status | ||
1975 | 145 | color: #336600 | ||
1976 | 146 | background: #ccff88 | ||
1977 | 147 | border-color: #bbee77 | ||
1978 | 148 | |||
1979 | 149 | /* Region Colors. delete when starting a new theme. | ||
1980 | 150 | #header, #footer | ||
1981 | 151 | background: #efefef | ||
1982 | 152 | |||
1983 | 153 | #sidebar-first | ||
1984 | 154 | background: #e7edff | ||
1985 | 155 | |||
1986 | 156 | #sidebar-second | ||
1987 | 157 | background: #ffd075 | ||
1988 | 158 | |||
1989 | 159 | #navigation | ||
1990 | 160 | background: #feffa5 | ||
1991 | 161 | |||
1992 | 162 | // Import custom styles. | ||
1993 | 163 | @import _custom.sass | ||
1994 | 0 | \ No newline at end of file | 164 | \ No newline at end of file |
1995 | 1 | 165 | ||
1996 | === added file 'sass/tabs.sass' | |||
1997 | --- sass/tabs.sass 1970-01-01 00:00:00 +0000 | |||
1998 | +++ sass/tabs.sass 2010-12-08 01:56:31 +0000 | |||
1999 | @@ -0,0 +1,92 @@ | |||
2000 | 1 | /* Tabs CSS | ||
2001 | 2 | * -------- | ||
2002 | 3 | * Adds styles for the primary and secondary tabs. | ||
2003 | 4 | * | ||
2004 | 5 | * Compare this with default CSS found in the system module's stylesheet (a copy | ||
2005 | 6 | * of which is in drupal5-reference.css, line 510.) | ||
2006 | 7 | |||
2007 | 8 | div.tabs | ||
2008 | 9 | margin: 0 0 5px 0 | ||
2009 | 10 | |||
2010 | 11 | ul.primary, ul.secondary | ||
2011 | 12 | width: 99% | ||
2012 | 13 | |||
2013 | 14 | ul.primary | ||
2014 | 15 | margin: 0 | ||
2015 | 16 | padding: 0 0 0 10px | ||
2016 | 17 | border-width: 0 | ||
2017 | 18 | list-style: none | ||
2018 | 19 | white-space: nowrap | ||
2019 | 20 | line-height: normal | ||
2020 | 21 | background: url(../images/tabs/tab-bar.png) repeat-x left bottom | ||
2021 | 22 | li | ||
2022 | 23 | float: left | ||
2023 | 24 | margin: 0 | ||
2024 | 25 | padding: 0 | ||
2025 | 26 | &.active | ||
2026 | 27 | a, a:hover | ||
2027 | 28 | border-width: 0 | ||
2028 | 29 | color: black | ||
2029 | 30 | background-color: transparent | ||
2030 | 31 | background: url(../images/tabs/tab-left.png) no-repeat left 0 | ||
2031 | 32 | .tab | ||
2032 | 33 | background: url(../images/tabs/tab-right.png) no-repeat right 0 | ||
2033 | 34 | a | ||
2034 | 35 | display: block | ||
2035 | 36 | height: 24px | ||
2036 | 37 | margin: 0 | ||
2037 | 38 | padding: 0 0 0 5px | ||
2038 | 39 | border-width: 0 | ||
2039 | 40 | font-weigh: bold | ||
2040 | 41 | text-decoration: none | ||
2041 | 42 | color: #777777 | ||
2042 | 43 | background-color: transparent | ||
2043 | 44 | background: url(../images/tabs/tab-left.png) no-repeat left -38px | ||
2044 | 45 | &:hover | ||
2045 | 46 | border-width: 0 | ||
2046 | 47 | background-color: transparent | ||
2047 | 48 | background: url(../images/tabs/tab-left.png) no-repeat left -76px | ||
2048 | 49 | .tab | ||
2049 | 50 | background: url(../images/tabs/tab-right.png) no-repeat right -76px | ||
2050 | 51 | .tab | ||
2051 | 52 | display: block | ||
2052 | 53 | height: 20px | ||
2053 | 54 | margin: 0 | ||
2054 | 55 | padding: 4px 13px 0 6px | ||
2055 | 56 | border-width: 0 | ||
2056 | 57 | line-height: 20px | ||
2057 | 58 | background: url(../images/tabs/tab-right.png) no-repeat right -38px | ||
2058 | 59 | |||
2059 | 60 | ul.secondary | ||
2060 | 61 | margin: 0 | ||
2061 | 62 | padding: 0 0 0 5px | ||
2062 | 63 | border-bottom: 1px solid silver | ||
2063 | 64 | list-style: none | ||
2064 | 65 | white-space: nowrap | ||
2065 | 66 | background: url(../images/tabs/tab-secondary-bg.png) repeat-x left bottom | ||
2066 | 67 | li | ||
2067 | 68 | float: left | ||
2068 | 69 | margin: 0 5px 0 0 | ||
2069 | 70 | padding: 5px 0 | ||
2070 | 71 | border-right: none | ||
2071 | 72 | a | ||
2072 | 73 | display: block | ||
2073 | 74 | height: 24px | ||
2074 | 75 | margin: 0 | ||
2075 | 76 | padding: 0 | ||
2076 | 77 | border: 1px solid silver | ||
2077 | 78 | text-decoration: none | ||
2078 | 79 | color: #777777 | ||
2079 | 80 | background: url(../images/tabs/tab-secondary.png) repeat-x left -56px | ||
2080 | 81 | .active, .active:hover | ||
2081 | 82 | border: 1px solid silver | ||
2082 | 83 | color: black | ||
2083 | 84 | background: url(../images/tabs/tab-secondary.png) repeat-x left top | ||
2084 | 85 | &:hover | ||
2085 | 86 | background: url(../images/tabs/tab-secondary.png) repeat-x left bottom | ||
2086 | 87 | .tab | ||
2087 | 88 | display: block | ||
2088 | 89 | height: 18px | ||
2089 | 90 | margin: 0 | ||
2090 | 91 | padding: 3px 8px | ||
2091 | 92 | line-height: 18px | ||
2092 | 0 | 93 | ||
2093 | === added file 'template.php' | |||
2094 | --- template.php 1970-01-01 00:00:00 +0000 | |||
2095 | +++ template.php 2010-12-08 01:56:31 +0000 | |||
2096 | @@ -0,0 +1,426 @@ | |||
2097 | 1 | <?php | ||
2098 | 2 | |||
2099 | 3 | // Auto-rebuild the theme registry during theme development. | ||
2100 | 4 | if (theme_get_setting('basic_rebuild_registry')) { | ||
2101 | 5 | drupal_rebuild_theme_registry(); | ||
2102 | 6 | } | ||
2103 | 7 | |||
2104 | 8 | // Add Zen Tabs styles | ||
2105 | 9 | if (theme_get_setting('basic_zen_tabs')) { | ||
2106 | 10 | drupal_add_css( drupal_get_path('theme', 'basic') .'/css/tabs.css', 'theme', 'screen'); | ||
2107 | 11 | } | ||
2108 | 12 | |||
2109 | 13 | /* | ||
2110 | 14 | * This function creates the body classes that are relative to each page | ||
2111 | 15 | * | ||
2112 | 16 | * @param $vars | ||
2113 | 17 | * A sequential array of variables to pass to the theme template. | ||
2114 | 18 | * @param $hook | ||
2115 | 19 | * The name of the theme function being called ("page" in this case.) | ||
2116 | 20 | */ | ||
2117 | 21 | |||
2118 | 22 | function basic_preprocess_page(&$vars, $hook) { | ||
2119 | 23 | |||
2120 | 24 | // Don't display empty help from node_help(). | ||
2121 | 25 | if ($vars['help'] == "<div class=\"help\"><p></p>\n</div>") { | ||
2122 | 26 | $vars['help'] = ''; | ||
2123 | 27 | } | ||
2124 | 28 | |||
2125 | 29 | // Classes for body element. Allows advanced theming based on context | ||
2126 | 30 | // (home page, node of certain type, etc.) | ||
2127 | 31 | $body_classes = array($vars['body_classes']); | ||
2128 | 32 | if (user_access('administer blocks')) { | ||
2129 | 33 | $body_classes[] = 'admin'; | ||
2130 | 34 | } | ||
2131 | 35 | if (theme_get_setting('basic_wireframe')) { | ||
2132 | 36 | $body_classes[] = 'with-wireframes'; // Optionally add the wireframes style. | ||
2133 | 37 | } | ||
2134 | 38 | if (!empty($vars['primary_links']) or !empty($vars['secondary_links'])) { | ||
2135 | 39 | $body_classes[] = 'with-navigation'; | ||
2136 | 40 | } | ||
2137 | 41 | if (!empty($vars['secondary_links'])) { | ||
2138 | 42 | $body_classes[] = 'with-secondary'; | ||
2139 | 43 | } | ||
2140 | 44 | if (module_exists('taxonomy') && $vars['node']->nid) { | ||
2141 | 45 | foreach (taxonomy_node_get_terms($vars['node']) as $term) { | ||
2142 | 46 | $body_classes[] = 'tax-' . eregi_replace('[^a-z0-9]', '-', $term->name); | ||
2143 | 47 | } | ||
2144 | 48 | } | ||
2145 | 49 | if (!$vars['is_front']) { | ||
2146 | 50 | // Add unique classes for each page and website section | ||
2147 | 51 | $path = drupal_get_path_alias($_GET['q']); | ||
2148 | 52 | list($section, ) = explode('/', $path, 2); | ||
2149 | 53 | $body_classes[] = basic_id_safe('page-'. $path); | ||
2150 | 54 | $body_classes[] = basic_id_safe('section-'. $section); | ||
2151 | 55 | |||
2152 | 56 | if (arg(0) == 'node') { | ||
2153 | 57 | if (arg(1) == 'add') { | ||
2154 | 58 | if ($section == 'node') { | ||
2155 | 59 | array_pop($body_classes); // Remove 'section-node' | ||
2156 | 60 | } | ||
2157 | 61 | $body_classes[] = 'section-node-add'; // Add 'section-node-add' | ||
2158 | 62 | } | ||
2159 | 63 | elseif (is_numeric(arg(1)) && (arg(2) == 'edit' || arg(2) == 'delete')) { | ||
2160 | 64 | if ($section == 'node') { | ||
2161 | 65 | array_pop($body_classes); // Remove 'section-node' | ||
2162 | 66 | } | ||
2163 | 67 | $body_classes[] = 'section-node-'. arg(2); // Add 'section-node-edit' or 'section-node-delete' | ||
2164 | 68 | } | ||
2165 | 69 | } | ||
2166 | 70 | } | ||
2167 | 71 | /* // Check what the user's browser is and add it as a body class | ||
2168 | 72 | // DEACTIVATED - Only works if page cache is deactivated | ||
2169 | 73 | $user_agent = $_SERVER['HTTP_USER_AGENT']; | ||
2170 | 74 | if($user_agent) { | ||
2171 | 75 | if (strpos($user_agent, 'MSIE')) { | ||
2172 | 76 | $body_classes[] = 'browser-ie'; | ||
2173 | 77 | } else if (strpos($user_agent, 'MSIE 6.0')) { | ||
2174 | 78 | $body_classes[] = 'browser-ie6'; | ||
2175 | 79 | } else if (strpos($user_agent, 'MSIE 7.0')) { | ||
2176 | 80 | $body_classes[] = 'browser-ie7'; | ||
2177 | 81 | } else if (strpos($user_agent, 'MSIE 8.0')) { | ||
2178 | 82 | $body_classes[] = 'browser-ie8'; | ||
2179 | 83 | } else if (strpos($user_agent, 'Firefox/2')) { | ||
2180 | 84 | $body_classes[] = 'browser-firefox2'; | ||
2181 | 85 | } else if (strpos($user_agent, 'Firefox/3')) { | ||
2182 | 86 | $body_classes[] = 'browser-firefox3'; | ||
2183 | 87 | }else if (strpos($user_agent, 'Safari')) { | ||
2184 | 88 | $body_classes[] = 'browser-safari'; | ||
2185 | 89 | } else if (strpos($user_agent, 'Opera')) { | ||
2186 | 90 | $body_classes[] = 'browser-opera'; | ||
2187 | 91 | } | ||
2188 | 92 | } | ||
2189 | 93 | |||
2190 | 94 | /* Add template suggestions based on content type | ||
2191 | 95 | * You can use a different page template depending on the | ||
2192 | 96 | * content type or the node ID | ||
2193 | 97 | * For example, if you wish to have a different page template | ||
2194 | 98 | * for the story content type, just create a page template called | ||
2195 | 99 | * page-type-story.tpl.php | ||
2196 | 100 | * For a specific node, use the node ID in the name of the page template | ||
2197 | 101 | * like this : page-node-22.tpl.php (if the node ID is 22) | ||
2198 | 102 | */ | ||
2199 | 103 | |||
2200 | 104 | if ($vars['node']->type != "") { | ||
2201 | 105 | $vars['template_files'][] = "page-type-" . $vars['node']->type; | ||
2202 | 106 | } | ||
2203 | 107 | if ($vars['node']->nid != "") { | ||
2204 | 108 | $vars['template_files'][] = "page-node-" . $vars['node']->nid; | ||
2205 | 109 | } | ||
2206 | 110 | $vars['body_classes'] = implode(' ', $body_classes); // Concatenate with spaces | ||
2207 | 111 | } | ||
2208 | 112 | |||
2209 | 113 | /* | ||
2210 | 114 | * This function creates the NODES classes, like 'node-unpublished' for nodes | ||
2211 | 115 | * that are not published, or 'node-mine' for node posted by the connected user... | ||
2212 | 116 | * | ||
2213 | 117 | * @param $vars | ||
2214 | 118 | * A sequential array of variables to pass to the theme template. | ||
2215 | 119 | * @param $hook | ||
2216 | 120 | * The name of the theme function being called ("node" in this case.) | ||
2217 | 121 | */ | ||
2218 | 122 | |||
2219 | 123 | function basic_preprocess_node(&$vars, $hook) { | ||
2220 | 124 | // Special classes for nodes | ||
2221 | 125 | $classes = array('node'); | ||
2222 | 126 | if ($vars['sticky']) { | ||
2223 | 127 | $classes[] = 'sticky'; | ||
2224 | 128 | } | ||
2225 | 129 | // support for Skinr Module | ||
2226 | 130 | if (module_exists('skinr')) { | ||
2227 | 131 | $classes[] = $vars['skinr']; | ||
2228 | 132 | } | ||
2229 | 133 | if (!$vars['status']) { | ||
2230 | 134 | $classes[] = 'node-unpublished'; | ||
2231 | 135 | $vars['unpublished'] = TRUE; | ||
2232 | 136 | } | ||
2233 | 137 | else { | ||
2234 | 138 | $vars['unpublished'] = FALSE; | ||
2235 | 139 | } | ||
2236 | 140 | if ($vars['uid'] && $vars['uid'] == $GLOBALS['user']->uid) { | ||
2237 | 141 | $classes[] = 'node-mine'; // Node is authored by current user. | ||
2238 | 142 | } | ||
2239 | 143 | if ($vars['teaser']) { | ||
2240 | 144 | $classes[] = 'node-teaser'; // Node is displayed as teaser. | ||
2241 | 145 | } | ||
2242 | 146 | $classes[] = 'clearfix'; | ||
2243 | 147 | |||
2244 | 148 | // Class for node type: "node-type-page", "node-type-story", "node-type-my-custom-type", etc. | ||
2245 | 149 | $classes[] = basic_id_safe('node-type-' . $vars['type']); | ||
2246 | 150 | $vars['classes'] = implode(' ', $classes); // Concatenate with spaces | ||
2247 | 151 | } | ||
2248 | 152 | |||
2249 | 153 | function basic_preprocess_comment_wrapper(&$vars) { | ||
2250 | 154 | $classes = array(); | ||
2251 | 155 | $classes[] = 'comment-wrapper'; | ||
2252 | 156 | |||
2253 | 157 | // Provide skinr support. | ||
2254 | 158 | if (module_exists('skinr')) { | ||
2255 | 159 | $classes[] = $vars['skinr']; | ||
2256 | 160 | } | ||
2257 | 161 | $vars['classes'] = implode(' ', $classes); | ||
2258 | 162 | } | ||
2259 | 163 | |||
2260 | 164 | |||
2261 | 165 | /* | ||
2262 | 166 | * This function create the EDIT LINKS for blocks and menus blocks. | ||
2263 | 167 | * When overing a block (except in IE6), some links appear to edit | ||
2264 | 168 | * or configure the block. You can then edit the block, and once you are | ||
2265 | 169 | * done, brought back to the first page. | ||
2266 | 170 | * | ||
2267 | 171 | * @param $vars | ||
2268 | 172 | * A sequential array of variables to pass to the theme template. | ||
2269 | 173 | * @param $hook | ||
2270 | 174 | * The name of the theme function being called ("block" in this case.) | ||
2271 | 175 | */ | ||
2272 | 176 | |||
2273 | 177 | function basic_preprocess_block(&$vars, $hook) { | ||
2274 | 178 | $block = $vars['block']; | ||
2275 | 179 | |||
2276 | 180 | // special block classes | ||
2277 | 181 | $classes = array('block'); | ||
2278 | 182 | $classes[] = basic_id_safe('block-' . $vars['block']->module); | ||
2279 | 183 | $classes[] = basic_id_safe('block-' . $vars['block']->region); | ||
2280 | 184 | $classes[] = basic_id_safe('block-id-' . $vars['block']->bid); | ||
2281 | 185 | $classes[] = 'clearfix'; | ||
2282 | 186 | |||
2283 | 187 | // support for Skinr Module | ||
2284 | 188 | if (module_exists('skinr')) { | ||
2285 | 189 | $classes[] = $vars['skinr']; | ||
2286 | 190 | } | ||
2287 | 191 | |||
2288 | 192 | $vars['block_classes'] = implode(' ', $classes); // Concatenate with spaces | ||
2289 | 193 | |||
2290 | 194 | if (theme_get_setting('basic_block_editing') && user_access('administer blocks')) { | ||
2291 | 195 | // Display 'edit block' for custom blocks. | ||
2292 | 196 | if ($block->module == 'block') { | ||
2293 | 197 | $edit_links[] = l('<span>' . t('edit block') . '</span>', 'admin/build/block/configure/' . $block->module . '/' . $block->delta, | ||
2294 | 198 | array( | ||
2295 | 199 | 'attributes' => array( | ||
2296 | 200 | 'title' => t('edit the content of this block'), | ||
2297 | 201 | 'class' => 'block-edit', | ||
2298 | 202 | ), | ||
2299 | 203 | 'query' => drupal_get_destination(), | ||
2300 | 204 | 'html' => TRUE, | ||
2301 | 205 | ) | ||
2302 | 206 | ); | ||
2303 | 207 | } | ||
2304 | 208 | // Display 'configure' for other blocks. | ||
2305 | 209 | else { | ||
2306 | 210 | $edit_links[] = l('<span>' . t('configure') . '</span>', 'admin/build/block/configure/' . $block->module . '/' . $block->delta, | ||
2307 | 211 | array( | ||
2308 | 212 | 'attributes' => array( | ||
2309 | 213 | 'title' => t('configure this block'), | ||
2310 | 214 | 'class' => 'block-config', | ||
2311 | 215 | ), | ||
2312 | 216 | 'query' => drupal_get_destination(), | ||
2313 | 217 | 'html' => TRUE, | ||
2314 | 218 | ) | ||
2315 | 219 | ); | ||
2316 | 220 | } | ||
2317 | 221 | // Display 'edit menu' for Menu blocks. | ||
2318 | 222 | if (($block->module == 'menu' || ($block->module == 'user' && $block->delta == 1)) && user_access('administer menu')) { | ||
2319 | 223 | $menu_name = ($block->module == 'user') ? 'navigation' : $block->delta; | ||
2320 | 224 | $edit_links[] = l('<span>' . t('edit menu') . '</span>', 'admin/build/menu-customize/' . $menu_name, | ||
2321 | 225 | array( | ||
2322 | 226 | 'attributes' => array( | ||
2323 | 227 | 'title' => t('edit the menu that defines this block'), | ||
2324 | 228 | 'class' => 'block-edit-menu', | ||
2325 | 229 | ), | ||
2326 | 230 | 'query' => drupal_get_destination(), | ||
2327 | 231 | 'html' => TRUE, | ||
2328 | 232 | ) | ||
2329 | 233 | ); | ||
2330 | 234 | } | ||
2331 | 235 | // Display 'edit menu' for Menu block blocks. | ||
2332 | 236 | elseif ($block->module == 'menu_block' && user_access('administer menu')) { | ||
2333 | 237 | list($menu_name, ) = split(':', variable_get("menu_block_{$block->delta}_parent", 'navigation:0')); | ||
2334 | 238 | $edit_links[] = l('<span>' . t('edit menu') . '</span>', 'admin/build/menu-customize/' . $menu_name, | ||
2335 | 239 | array( | ||
2336 | 240 | 'attributes' => array( | ||
2337 | 241 | 'title' => t('edit the menu that defines this block'), | ||
2338 | 242 | 'class' => 'block-edit-menu', | ||
2339 | 243 | ), | ||
2340 | 244 | 'query' => drupal_get_destination(), | ||
2341 | 245 | 'html' => TRUE, | ||
2342 | 246 | ) | ||
2343 | 247 | ); | ||
2344 | 248 | } | ||
2345 | 249 | $vars['edit_links_array'] = $edit_links; | ||
2346 | 250 | $vars['edit_links'] = '<div class="edit">' . implode(' ', $edit_links) . '</div>'; | ||
2347 | 251 | } | ||
2348 | 252 | } | ||
2349 | 253 | |||
2350 | 254 | /* | ||
2351 | 255 | * Override or insert PHPTemplate variables into the block templates. | ||
2352 | 256 | * | ||
2353 | 257 | * @param $vars | ||
2354 | 258 | * An array of variables to pass to the theme template. | ||
2355 | 259 | * @param $hook | ||
2356 | 260 | * The name of the template being rendered ("comment" in this case.) | ||
2357 | 261 | */ | ||
2358 | 262 | |||
2359 | 263 | function basic_preprocess_comment(&$vars, $hook) { | ||
2360 | 264 | // Add an "unpublished" flag. | ||
2361 | 265 | $vars['unpublished'] = ($vars['comment']->status == COMMENT_NOT_PUBLISHED); | ||
2362 | 266 | |||
2363 | 267 | // If comment subjects are disabled, don't display them. | ||
2364 | 268 | if (variable_get('comment_subject_field_' . $vars['node']->type, 1) == 0) { | ||
2365 | 269 | $vars['title'] = ''; | ||
2366 | 270 | } | ||
2367 | 271 | |||
2368 | 272 | // Special classes for comments. | ||
2369 | 273 | $classes = array('comment'); | ||
2370 | 274 | if ($vars['comment']->new) { | ||
2371 | 275 | $classes[] = 'comment-new'; | ||
2372 | 276 | } | ||
2373 | 277 | $classes[] = $vars['status']; | ||
2374 | 278 | $classes[] = $vars['zebra']; | ||
2375 | 279 | if ($vars['id'] == 1) { | ||
2376 | 280 | $classes[] = 'first'; | ||
2377 | 281 | } | ||
2378 | 282 | if ($vars['id'] == $vars['node']->comment_count) { | ||
2379 | 283 | $classes[] = 'last'; | ||
2380 | 284 | } | ||
2381 | 285 | if ($vars['comment']->uid == 0) { | ||
2382 | 286 | // Comment is by an anonymous user. | ||
2383 | 287 | $classes[] = 'comment-by-anon'; | ||
2384 | 288 | } | ||
2385 | 289 | else { | ||
2386 | 290 | if ($vars['comment']->uid == $vars['node']->uid) { | ||
2387 | 291 | // Comment is by the node author. | ||
2388 | 292 | $classes[] = 'comment-by-author'; | ||
2389 | 293 | } | ||
2390 | 294 | if ($vars['comment']->uid == $GLOBALS['user']->uid) { | ||
2391 | 295 | // Comment was posted by current user. | ||
2392 | 296 | $classes[] = 'comment-mine'; | ||
2393 | 297 | } | ||
2394 | 298 | } | ||
2395 | 299 | $vars['classes'] = implode(' ', $classes); | ||
2396 | 300 | } | ||
2397 | 301 | |||
2398 | 302 | /* | ||
2399 | 303 | * Customize the PRIMARY and SECONDARY LINKS, to allow the admin tabs to work on all browsers | ||
2400 | 304 | * An implementation of theme_menu_item_link() | ||
2401 | 305 | * | ||
2402 | 306 | * @param $link | ||
2403 | 307 | * array The menu item to render. | ||
2404 | 308 | * @return | ||
2405 | 309 | * string The rendered menu item. | ||
2406 | 310 | */ | ||
2407 | 311 | |||
2408 | 312 | function basic_menu_item_link($link) { | ||
2409 | 313 | if (empty($link['localized_options'])) { | ||
2410 | 314 | $link['localized_options'] = array(); | ||
2411 | 315 | } | ||
2412 | 316 | |||
2413 | 317 | // If an item is a LOCAL TASK, render it as a tab | ||
2414 | 318 | if ($link['type'] & MENU_IS_LOCAL_TASK) { | ||
2415 | 319 | $link['title'] = '<span class="tab">' . check_plain($link['title']) . '</span>'; | ||
2416 | 320 | $link['localized_options']['html'] = TRUE; | ||
2417 | 321 | } | ||
2418 | 322 | |||
2419 | 323 | return l($link['title'], $link['href'], $link['localized_options']); | ||
2420 | 324 | } | ||
2421 | 325 | |||
2422 | 326 | |||
2423 | 327 | /* | ||
2424 | 328 | * Duplicate of theme_menu_local_tasks() but adds clear-block to tabs. | ||
2425 | 329 | */ | ||
2426 | 330 | |||
2427 | 331 | function basic_menu_local_tasks() { | ||
2428 | 332 | $output = ''; | ||
2429 | 333 | if ($primary = menu_primary_local_tasks()) { | ||
2430 | 334 | if(menu_secondary_local_tasks()) { | ||
2431 | 335 | $output .= '<ul class="tabs primary with-secondary clearfix">' . $primary . '</ul>'; | ||
2432 | 336 | } | ||
2433 | 337 | else { | ||
2434 | 338 | $output .= '<ul class="tabs primary clearfix">' . $primary . '</ul>'; | ||
2435 | 339 | } | ||
2436 | 340 | } | ||
2437 | 341 | if ($secondary = menu_secondary_local_tasks()) { | ||
2438 | 342 | $output .= '<ul class="tabs secondary clearfix">' . $secondary . '</ul>'; | ||
2439 | 343 | } | ||
2440 | 344 | return $output; | ||
2441 | 345 | } | ||
2442 | 346 | |||
2443 | 347 | /* | ||
2444 | 348 | * Add custom classes to menu item | ||
2445 | 349 | */ | ||
2446 | 350 | |||
2447 | 351 | function basic_menu_item($link, $has_children, $menu = '', $in_active_trail = FALSE, $extra_class = NULL) { | ||
2448 | 352 | $class = ($menu ? 'expanded' : ($has_children ? 'collapsed' : 'leaf')); | ||
2449 | 353 | if (!empty($extra_class)) { | ||
2450 | 354 | $class .= ' '. $extra_class; | ||
2451 | 355 | } | ||
2452 | 356 | if ($in_active_trail) { | ||
2453 | 357 | $class .= ' active-trail'; | ||
2454 | 358 | } | ||
2455 | 359 | #New line added to get unique classes for each menu item | ||
2456 | 360 | $css_class = basic_id_safe(str_replace(' ', '_', strip_tags($link))); | ||
2457 | 361 | return '<li class="'. $class . ' ' . $css_class . '">' . $link . $menu ."</li>\n"; | ||
2458 | 362 | } | ||
2459 | 363 | |||
2460 | 364 | /* | ||
2461 | 365 | * Converts a string to a suitable html ID attribute. | ||
2462 | 366 | * | ||
2463 | 367 | * http://www.w3.org/TR/html4/struct/global.html#h-7.5.2 specifies what makes a | ||
2464 | 368 | * valid ID attribute in HTML. This function: | ||
2465 | 369 | * | ||
2466 | 370 | * - Ensure an ID starts with an alpha character by optionally adding an 'n'. | ||
2467 | 371 | * - Replaces any character except A-Z, numbers, and underscores with dashes. | ||
2468 | 372 | * - Converts entire string to lowercase. | ||
2469 | 373 | * | ||
2470 | 374 | * @param $string | ||
2471 | 375 | * The string | ||
2472 | 376 | * @return | ||
2473 | 377 | * The converted string | ||
2474 | 378 | */ | ||
2475 | 379 | |||
2476 | 380 | function basic_id_safe($string) { | ||
2477 | 381 | // Replace with dashes anything that isn't A-Z, numbers, dashes, or underscores. | ||
2478 | 382 | $string = strtolower(preg_replace('/[^a-zA-Z0-9_-]+/', '-', $string)); | ||
2479 | 383 | // If the first character is not a-z, add 'n' in front. | ||
2480 | 384 | if (!ctype_lower($string{0})) { // Don't use ctype_alpha since its locale aware. | ||
2481 | 385 | $string = 'id'. $string; | ||
2482 | 386 | } | ||
2483 | 387 | return $string; | ||
2484 | 388 | } | ||
2485 | 389 | |||
2486 | 390 | /** | ||
2487 | 391 | * Return a themed breadcrumb trail. | ||
2488 | 392 | * | ||
2489 | 393 | * @param $breadcrumb | ||
2490 | 394 | * An array containing the breadcrumb links. | ||
2491 | 395 | * @return | ||
2492 | 396 | * A string containing the breadcrumb output. | ||
2493 | 397 | */ | ||
2494 | 398 | function basic_breadcrumb($breadcrumb) { | ||
2495 | 399 | // Determine if we are to display the breadcrumb. | ||
2496 | 400 | $show_breadcrumb = theme_get_setting('basic_breadcrumb'); | ||
2497 | 401 | if ($show_breadcrumb == 'yes' || $show_breadcrumb == 'admin' && arg(0) == 'admin') { | ||
2498 | 402 | |||
2499 | 403 | // Optionally get rid of the homepage link. | ||
2500 | 404 | $show_breadcrumb_home = theme_get_setting('basic_breadcrumb_home'); | ||
2501 | 405 | if (!$show_breadcrumb_home) { | ||
2502 | 406 | array_shift($breadcrumb); | ||
2503 | 407 | } | ||
2504 | 408 | |||
2505 | 409 | // Return the breadcrumb with separators. | ||
2506 | 410 | if (!empty($breadcrumb)) { | ||
2507 | 411 | $breadcrumb_separator = theme_get_setting('basic_breadcrumb_separator'); | ||
2508 | 412 | $trailing_separator = $title = ''; | ||
2509 | 413 | if (theme_get_setting('basic_breadcrumb_title')) { | ||
2510 | 414 | if ($title = drupal_get_title()) { | ||
2511 | 415 | $trailing_separator = $breadcrumb_separator; | ||
2512 | 416 | } | ||
2513 | 417 | } | ||
2514 | 418 | elseif (theme_get_setting('basic_breadcrumb_trailing')) { | ||
2515 | 419 | $trailing_separator = $breadcrumb_separator; | ||
2516 | 420 | } | ||
2517 | 421 | return '<div class="breadcrumb">' . implode($breadcrumb_separator, $breadcrumb) . "$trailing_separator$title</div>"; | ||
2518 | 422 | } | ||
2519 | 423 | } | ||
2520 | 424 | // Otherwise, return an empty string. | ||
2521 | 425 | return ''; | ||
2522 | 426 | } | ||
2523 | 0 | \ No newline at end of file | 427 | \ No newline at end of file |
2524 | 1 | 428 | ||
2525 | === added directory 'templates' | |||
2526 | === added file 'templates/block.tpl.php' | |||
2527 | --- templates/block.tpl.php 1970-01-01 00:00:00 +0000 | |||
2528 | +++ templates/block.tpl.php 2010-12-08 01:56:31 +0000 | |||
2529 | @@ -0,0 +1,15 @@ | |||
2530 | 1 | <div id="block-<?php print $block->module .'-'. $block->delta ?>" class="<?php print $block_classes . ' ' . $block_zebra; ?>"> | ||
2531 | 2 | <div class="block-inner"> | ||
2532 | 3 | |||
2533 | 4 | <?php if (!empty($block->subject)): ?> | ||
2534 | 5 | <h3 class="title block-title"><?php print $block->subject; ?></h3> | ||
2535 | 6 | <?php endif; ?> | ||
2536 | 7 | |||
2537 | 8 | <div class="content"> | ||
2538 | 9 | <?php print $block->content; ?> | ||
2539 | 10 | </div> | ||
2540 | 11 | |||
2541 | 12 | <?php print $edit_links; ?> | ||
2542 | 13 | |||
2543 | 14 | </div> <!-- /block-inner --> | ||
2544 | 15 | </div> <!-- /block --> | ||
2545 | 0 | \ No newline at end of file | 16 | \ No newline at end of file |
2546 | 1 | 17 | ||
2547 | === added file 'templates/comment-wrapper.tpl.php' | |||
2548 | --- templates/comment-wrapper.tpl.php 1970-01-01 00:00:00 +0000 | |||
2549 | +++ templates/comment-wrapper.tpl.php 2010-12-08 01:56:31 +0000 | |||
2550 | @@ -0,0 +1,10 @@ | |||
2551 | 1 | <?php if ($content): ?> | ||
2552 | 2 | <div id="comments" class="<?php print $classes; ?>"> | ||
2553 | 3 | <?php if ($node->comment_count != 0): ?> | ||
2554 | 4 | <h2 id="comments-title"> | ||
2555 | 5 | <?php print t('Comments'); ?> | ||
2556 | 6 | </h2> | ||
2557 | 7 | <?php endif; ?> | ||
2558 | 8 | <?php print $content; ?> | ||
2559 | 9 | </div> | ||
2560 | 10 | <?php endif; ?> | ||
2561 | 0 | \ No newline at end of file | 11 | \ No newline at end of file |
2562 | 1 | 12 | ||
2563 | === added file 'templates/comment.tpl.php' | |||
2564 | --- templates/comment.tpl.php 1970-01-01 00:00:00 +0000 | |||
2565 | +++ templates/comment.tpl.php 2010-12-08 01:56:31 +0000 | |||
2566 | @@ -0,0 +1,34 @@ | |||
2567 | 1 | <div class="<?php print $classes .' '. $zebra; ?> clearfix"> | ||
2568 | 2 | <div class="comment-inner"> | ||
2569 | 3 | |||
2570 | 4 | <?php if ($title): ?> | ||
2571 | 5 | <h3 class="title"><?php print $title ?></h3> | ||
2572 | 6 | <?php endif; ?> | ||
2573 | 7 | |||
2574 | 8 | <?php if ($new) : ?> | ||
2575 | 9 | <span class="new"><?php print drupal_ucfirst($new); ?></span> | ||
2576 | 10 | <?php endif; ?> | ||
2577 | 11 | |||
2578 | 12 | <?php print $picture; ?> | ||
2579 | 13 | |||
2580 | 14 | <div class="submitted"> | ||
2581 | 15 | <?php print $submitted; ?> | ||
2582 | 16 | </div> | ||
2583 | 17 | |||
2584 | 18 | <div class="content"> | ||
2585 | 19 | <?php print $content ?> | ||
2586 | 20 | <?php if ($signature): ?> | ||
2587 | 21 | <div class="user-signature clearfix"> | ||
2588 | 22 | <?php print $signature; ?> | ||
2589 | 23 | </div> | ||
2590 | 24 | <?php endif; ?> | ||
2591 | 25 | </div> | ||
2592 | 26 | |||
2593 | 27 | <?php if ($links): ?> | ||
2594 | 28 | <div class="links"> | ||
2595 | 29 | <?php print $links; ?> | ||
2596 | 30 | </div> | ||
2597 | 31 | <?php endif; ?> | ||
2598 | 32 | |||
2599 | 33 | </div> <!-- /comment-inner --> | ||
2600 | 34 | </div> <!-- /comment --> | ||
2601 | 0 | \ No newline at end of file | 35 | \ No newline at end of file |
2602 | 1 | 36 | ||
2603 | === added file 'templates/node.tpl.php' | |||
2604 | --- templates/node.tpl.php 1970-01-01 00:00:00 +0000 | |||
2605 | +++ templates/node.tpl.php 2010-12-08 01:56:31 +0000 | |||
2606 | @@ -0,0 +1,27 @@ | |||
2607 | 1 | <div class="node <?php print $classes; ?>" id="node-<?php print $node->nid; ?>"> | ||
2608 | 2 | <div class="node-inner"> | ||
2609 | 3 | |||
2610 | 4 | <?php if (!$page): ?> | ||
2611 | 5 | <h2 class="title"><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2> | ||
2612 | 6 | <?php endif; ?> | ||
2613 | 7 | |||
2614 | 8 | <?php print $picture; ?> | ||
2615 | 9 | |||
2616 | 10 | <?php if ($submitted): ?> | ||
2617 | 11 | <span class="submitted"><?php print $submitted; ?></span> | ||
2618 | 12 | <?php endif; ?> | ||
2619 | 13 | |||
2620 | 14 | <div class="content"> | ||
2621 | 15 | <?php print $content; ?> | ||
2622 | 16 | </div> | ||
2623 | 17 | |||
2624 | 18 | <?php if ($terms): ?> | ||
2625 | 19 | <div class="taxonomy"><?php print $terms; ?></div> | ||
2626 | 20 | <?php endif;?> | ||
2627 | 21 | |||
2628 | 22 | <?php if ($links): ?> | ||
2629 | 23 | <div class="links"> <?php print $links; ?></div> | ||
2630 | 24 | <?php endif; ?> | ||
2631 | 25 | |||
2632 | 26 | </div> <!-- /node-inner --> | ||
2633 | 27 | </div> <!-- /node--> | ||
2634 | 0 | \ No newline at end of file | 28 | \ No newline at end of file |
2635 | 1 | 29 | ||
2636 | === added file 'templates/page.tpl.php' | |||
2637 | --- templates/page.tpl.php 1970-01-01 00:00:00 +0000 | |||
2638 | +++ templates/page.tpl.php 2010-12-08 01:56:31 +0000 | |||
2639 | @@ -0,0 +1,134 @@ | |||
2640 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
2641 | 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
2642 | 3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>"> | ||
2643 | 4 | <head> | ||
2644 | 5 | |||
2645 | 6 | <title><?php print $head_title; ?></title> | ||
2646 | 7 | <?php print $head; ?> | ||
2647 | 8 | <?php print $styles; ?> | ||
2648 | 9 | <!--[if lte IE 6]><style type="text/css" media="all">@import "<?php print $base_path . path_to_theme() ?>/css/ie6.css"</style><![endif]--> | ||
2649 | 10 | <!--[if IE 7]><style type="text/css" media="all">@import "<?php print $base_path . path_to_theme() ?>/css/ie7.css"</style><![endif]--> | ||
2650 | 11 | <?php print $scripts; ?> | ||
2651 | 12 | </head> | ||
2652 | 13 | |||
2653 | 14 | <body class="<?php print $body_classes; ?>"> | ||
2654 | 15 | <div id="skip"><a href="#content"><?php print t('Skip to Content'); ?></a> <a href="#navigation"><?php print t('Skip to Navigation'); ?></a></div> | ||
2655 | 16 | <div id="page"> | ||
2656 | 17 | |||
2657 | 18 | <!-- ______________________ HEADER _______________________ --> | ||
2658 | 19 | |||
2659 | 20 | <div id="header"> | ||
2660 | 21 | <div id="logo"> | ||
2661 | 22 | <a href="/index.php"><img width="289" height="100" border="0" title="" alt="" src="themes/basic/images/logo2.png"></a> | ||
2662 | 23 | </div> | ||
2663 | 24 | <div class="top_phone"> | ||
2664 | 25 | <img width="49" height="32" class="left" title="" alt="" src="themes/basic/images/phone_arrows.png"> | ||
2665 | 26 | <div class="phone_text"> | ||
2666 | 27 | The Open Source<br>Democracy Foundation | ||
2667 | 28 | </div> | ||
2668 | 29 | </div> | ||
2669 | 30 | <div id="menu_tab"> | ||
2670 | 31 | <ul class="menu"> | ||
2671 | 32 | <li><a class="nav nav_selected" id="home_link" href="/index.php">Home</a></li> | ||
2672 | 33 | <li><a class="nav" id="home_link" href="/wp">News</a></li> | ||
2673 | 34 | <li><a class="nav" id="about_link" href="/about.php">About</a></li> | ||
2674 | 35 | <!--li><a target="new" id='updates_link' href="http://www.r-pac.org/blog" class="nav">Updates</a></li--> | ||
2675 | 36 | |||
2676 | 37 | <li><a class="nav" id="action_link" href="/action.php">Action</a></li> | ||
2677 | 38 | <!--li><a href="/policy.php" id='policy_link' class="nav">Policy</a></li--> | ||
2678 | 39 | <li><a class="nav" id="help_link" href="/volunteer.php">Volunteer</a></li> | ||
2679 | 40 | <li><a class="nav" id="contact_link" href="/contact.php">Contact</a></li> | ||
2680 | 41 | </ul> | ||
2681 | 42 | </div> | ||
2682 | 43 | </div><!-- Header --> | ||
2683 | 44 | |||
2684 | 45 | <!-- ______________________ MAIN _______________________ --> | ||
2685 | 46 | |||
2686 | 47 | <div id="main" class="clearfix"> | ||
2687 | 48 | |||
2688 | 49 | <div id="content"> | ||
2689 | 50 | <div id="content-inner" class="inner column center"> | ||
2690 | 51 | |||
2691 | 52 | <?php if ($content_top): ?> | ||
2692 | 53 | <div id="content-top"> | ||
2693 | 54 | <?php print $content_top; ?> | ||
2694 | 55 | </div> <!-- /#content-top --> | ||
2695 | 56 | <?php endif; ?> | ||
2696 | 57 | |||
2697 | 58 | <?php if ($breadcrumb || $title || $mission || $messages || $help || $tabs): ?> | ||
2698 | 59 | <div id="content-header"> | ||
2699 | 60 | |||
2700 | 61 | <?php print $breadcrumb; ?> | ||
2701 | 62 | |||
2702 | 63 | <?php if ($title): ?> | ||
2703 | 64 | <h1 class="title"><?php print $title; ?></h1> | ||
2704 | 65 | <?php endif; ?> | ||
2705 | 66 | |||
2706 | 67 | <?php if ($mission): ?> | ||
2707 | 68 | <div id="mission"><?php print $mission; ?></div> | ||
2708 | 69 | <?php endif; ?> | ||
2709 | 70 | |||
2710 | 71 | <?php print $messages; ?> | ||
2711 | 72 | |||
2712 | 73 | <?php print $help; ?> | ||
2713 | 74 | |||
2714 | 75 | <?php if ($tabs): ?> | ||
2715 | 76 | <div class="tabs"><?php print $tabs; ?></div> | ||
2716 | 77 | <?php endif; ?> | ||
2717 | 78 | |||
2718 | 79 | </div> <!-- /#content-header --> | ||
2719 | 80 | <?php endif; ?> | ||
2720 | 81 | |||
2721 | 82 | <div id="content-area"> | ||
2722 | 83 | <?php print $content; ?> | ||
2723 | 84 | </div> <!-- /#content-area --> | ||
2724 | 85 | |||
2725 | 86 | <?php print $feed_icons; ?> | ||
2726 | 87 | |||
2727 | 88 | <?php if ($content_bottom): ?> | ||
2728 | 89 | <div id="content-bottom"> | ||
2729 | 90 | <?php print $content_bottom; ?> | ||
2730 | 91 | </div><!-- /#content-bottom --> | ||
2731 | 92 | <?php endif; ?> | ||
2732 | 93 | |||
2733 | 94 | </div> | ||
2734 | 95 | </div> <!-- /content-inner /content --> | ||
2735 | 96 | |||
2736 | 97 | <?php if (!empty($primary_links) || !empty($secondary_links)): ?> | ||
2737 | 98 | <div id="navigation" class="menu <?php if (!empty($primary_links)) { print "with-main-menu"; } if (!empty($secondary_links)) { print " with-sub-menu"; } ?>"> | ||
2738 | 99 | <?php if (!empty($primary_links)){ print theme('links', $primary_links, array('id' => 'primary', 'class' => 'links main-menu')); } ?> | ||
2739 | 100 | <?php if (!empty($secondary_links)){ print theme('links', $secondary_links, array('id' => 'secondary', 'class' => 'links sub-menu')); } ?> | ||
2740 | 101 | </div> <!-- /navigation --> | ||
2741 | 102 | <?php endif; ?> | ||
2742 | 103 | |||
2743 | 104 | <?php if ($left): ?> | ||
2744 | 105 | <div id="sidebar-first" class="column sidebar first"> | ||
2745 | 106 | <div id="sidebar-first-inner" class="inner"> | ||
2746 | 107 | <?php print $left; ?> | ||
2747 | 108 | </div> | ||
2748 | 109 | </div> | ||
2749 | 110 | <?php endif; ?> <!-- /sidebar-left --> | ||
2750 | 111 | |||
2751 | 112 | <?php if ($right): ?> | ||
2752 | 113 | <div id="sidebar-second" class="column sidebar second"> | ||
2753 | 114 | <div id="sidebar-second-inner" class="inner"> | ||
2754 | 115 | <?php print $right; ?> | ||
2755 | 116 | </div> | ||
2756 | 117 | </div> | ||
2757 | 118 | <?php endif; ?> <!-- /sidebar-second --> | ||
2758 | 119 | |||
2759 | 120 | </div> <!-- /main --> | ||
2760 | 121 | |||
2761 | 122 | <!-- ______________________ FOOTER _______________________ --> | ||
2762 | 123 | |||
2763 | 124 | <?php if(!empty($footer_message) || !empty($footer_block)): ?> | ||
2764 | 125 | <div id="footer"> | ||
2765 | 126 | <?php print $footer_message; ?> | ||
2766 | 127 | <?php print $footer_block; ?> | ||
2767 | 128 | </div> <!-- /footer --> | ||
2768 | 129 | <?php endif; ?> | ||
2769 | 130 | |||
2770 | 131 | </div> <!-- /page --> | ||
2771 | 132 | <?php print $closure; ?> | ||
2772 | 133 | </body> | ||
2773 | 134 | </html> | ||
2774 | 0 | \ No newline at end of file | 135 | \ No newline at end of file |
2775 | 1 | 136 | ||
2776 | === added file 'theme-settings.php' | |||
2777 | --- theme-settings.php 1970-01-01 00:00:00 +0000 | |||
2778 | +++ theme-settings.php 2010-12-08 01:56:31 +0000 | |||
2779 | @@ -0,0 +1,158 @@ | |||
2780 | 1 | <?php | ||
2781 | 2 | |||
2782 | 3 | function basic_settings($saved_settings, $subtheme_defaults = array()) { | ||
2783 | 4 | |||
2784 | 5 | // Get the default values from the .info file. | ||
2785 | 6 | $defaults = basic_theme_get_default_settings('basic'); | ||
2786 | 7 | |||
2787 | 8 | // Merge the saved variables and their default values. | ||
2788 | 9 | $settings = array_merge($defaults, $saved_settings); | ||
2789 | 10 | |||
2790 | 11 | /* | ||
2791 | 12 | * Create the form using Forms API | ||
2792 | 13 | */ | ||
2793 | 14 | |||
2794 | 15 | $form['basic_zen_tabs'] = array( | ||
2795 | 16 | '#type' => 'checkbox', | ||
2796 | 17 | '#title' => t('Use Zen Tabs'), | ||
2797 | 18 | '#default_value' => $settings['basic_zen_tabs'], | ||
2798 | 19 | '#description' => t('Replace the default tabs by the Zen Tabs.'), | ||
2799 | 20 | '#prefix' => '<strong>' . t('Zen Tabs:') . '</strong>', | ||
2800 | 21 | ); | ||
2801 | 22 | |||
2802 | 23 | $form['basic_breadcrumb'] = array( | ||
2803 | 24 | '#type' => 'fieldset', | ||
2804 | 25 | '#title' => t('Breadcrumb settings'), | ||
2805 | 26 | '#attributes' => array('id' => 'basic-breadcrumb'), | ||
2806 | 27 | ); | ||
2807 | 28 | $form['basic_breadcrumb']['basic_breadcrumb'] = array( | ||
2808 | 29 | '#type' => 'select', | ||
2809 | 30 | '#title' => t('Display breadcrumb'), | ||
2810 | 31 | '#default_value' => $settings['basic_breadcrumb'], | ||
2811 | 32 | '#options' => array( | ||
2812 | 33 | 'yes' => t('Yes'), | ||
2813 | 34 | 'admin' => t('Only in admin section'), | ||
2814 | 35 | 'no' => t('No'), | ||
2815 | 36 | ), | ||
2816 | 37 | ); | ||
2817 | 38 | $form['basic_breadcrumb']['basic_breadcrumb_separator'] = array( | ||
2818 | 39 | '#type' => 'textfield', | ||
2819 | 40 | '#title' => t('Breadcrumb separator'), | ||
2820 | 41 | '#description' => t('Text only. Don’t forget to include spaces.'), | ||
2821 | 42 | '#default_value' => $settings['basic_breadcrumb_separator'], | ||
2822 | 43 | '#size' => 5, | ||
2823 | 44 | '#maxlength' => 10, | ||
2824 | 45 | '#prefix' => '<div id="div-basic-breadcrumb-collapse">', // jquery hook to show/hide optional widgets | ||
2825 | 46 | ); | ||
2826 | 47 | $form['basic_breadcrumb']['basic_breadcrumb_home'] = array( | ||
2827 | 48 | '#type' => 'checkbox', | ||
2828 | 49 | '#title' => t('Show home page link in breadcrumb'), | ||
2829 | 50 | '#default_value' => $settings['basic_breadcrumb_home'], | ||
2830 | 51 | ); | ||
2831 | 52 | $form['basic_breadcrumb']['basic_breadcrumb_trailing'] = array( | ||
2832 | 53 | '#type' => 'checkbox', | ||
2833 | 54 | '#title' => t('Append a separator to the end of the breadcrumb'), | ||
2834 | 55 | '#default_value' => $settings['basic_breadcrumb_trailing'], | ||
2835 | 56 | '#description' => t('Useful when the breadcrumb is placed just before the title.'), | ||
2836 | 57 | ); | ||
2837 | 58 | $form['basic_breadcrumb']['basic_breadcrumb_title'] = array( | ||
2838 | 59 | '#type' => 'checkbox', | ||
2839 | 60 | '#title' => t('Append the content title to the end of the breadcrumb'), | ||
2840 | 61 | '#default_value' => $settings['basic_breadcrumb_title'], | ||
2841 | 62 | '#description' => t('Useful when the breadcrumb is not placed just before the title.'), | ||
2842 | 63 | '#suffix' => '</div>', // #div-zen-breadcrumb | ||
2843 | 64 | ); | ||
2844 | 65 | |||
2845 | 66 | $form['basic_wireframe'] = array( | ||
2846 | 67 | '#type' => 'checkbox', | ||
2847 | 68 | '#title' => t('Display borders around main layout elements'), | ||
2848 | 69 | '#default_value' => $settings['basic_wireframe'], | ||
2849 | 70 | '#description' => t('<a href="!link">Wireframes</a> are useful when prototyping a website.', array('!link' => 'http://www.boxesandarrows.com/view/html_wireframes_and_prototypes_all_gain_and_no_pain')), | ||
2850 | 71 | '#prefix' => '<strong>' . t('Wireframes:') . '</strong>', | ||
2851 | 72 | ); | ||
2852 | 73 | |||
2853 | 74 | $form['basic_block_editing'] = array( | ||
2854 | 75 | '#type' => 'checkbox', | ||
2855 | 76 | '#title' => t('Show block editing on hover'), | ||
2856 | 77 | '#description' => t('When hovering over a block, privileged users will see block editing links.'), | ||
2857 | 78 | '#default_value' => $settings['basic_block_editing'], | ||
2858 | 79 | '#prefix' => '<strong>' . t('Block Edit Links:') . '</strong>', | ||
2859 | 80 | ); | ||
2860 | 81 | |||
2861 | 82 | $form['themedev']['basic_rebuild_registry'] = array( | ||
2862 | 83 | '#type' => 'checkbox', | ||
2863 | 84 | '#title' => t('Rebuild theme registry on every page.'), | ||
2864 | 85 | '#default_value' => $settings['basic_rebuild_registry'], | ||
2865 | 86 | '#description' => t('During theme development, it can be very useful to continuously <a href="!link">rebuild the theme registry</a>. WARNING: this is a huge performance penalty and must be turned off on production websites.', array('!link' => 'http://drupal.org/node/173880#theme-registry')), | ||
2866 | 87 | '#prefix' => '<div id="div-basic-registry"><strong>' . t('Theme registry:') . '</strong>', | ||
2867 | 88 | '#suffix' => '</div>', | ||
2868 | 89 | ); | ||
2869 | 90 | |||
2870 | 91 | // Return the form | ||
2871 | 92 | return $form; | ||
2872 | 93 | } | ||
2873 | 94 | |||
2874 | 95 | |||
2875 | 96 | function _basic_theme(&$existing, $type, $theme, $path) { | ||
2876 | 97 | // Each theme has two possible preprocess functions that can act on a hook. | ||
2877 | 98 | // This function applies to every hook. | ||
2878 | 99 | $functions[0] = $theme . '_preprocess'; | ||
2879 | 100 | // Inspect the preprocess functions for every hook in the theme registry. | ||
2880 | 101 | // @TODO: When PHP 5 becomes required (Basic 7.x), use the following faster | ||
2881 | 102 | // implementation: foreach ($existing AS $hook => &$value) {} | ||
2882 | 103 | foreach (array_keys($existing) AS $hook) { | ||
2883 | 104 | // Each theme has two possible preprocess functions that can act on a hook. | ||
2884 | 105 | // This function only applies to this hook. | ||
2885 | 106 | $functions[1] = $theme . '_preprocess_' . $hook; | ||
2886 | 107 | foreach ($functions AS $key => $function) { | ||
2887 | 108 | // Add any functions that are not already in the registry. | ||
2888 | 109 | if (function_exists($function) && !in_array($function, $existing[$hook]['preprocess functions'])) { | ||
2889 | 110 | // We add the preprocess function to the end of the existing list. | ||
2890 | 111 | $existing[$hook]['preprocess functions'][] = $function; | ||
2891 | 112 | } | ||
2892 | 113 | } | ||
2893 | 114 | } | ||
2894 | 115 | |||
2895 | 116 | // Since we are rebuilding the theme registry and the theme settings' default | ||
2896 | 117 | // values may have changed, make sure they are saved in the database properly. | ||
2897 | 118 | basic_theme_get_default_settings($theme); | ||
2898 | 119 | |||
2899 | 120 | // If we are auto-rebuilding the theme registry, warn about feature. | ||
2900 | 121 | if (theme_get_setting('basic_rebuild_registry')) { | ||
2901 | 122 | drupal_set_message(t('The theme registry has been rebuilt. <a href="!link">Turn off</a> this feature on production websites.', array('!link' => base_path() . 'admin/build/themes/settings/' . $GLOBALS['theme'])), 'warning'); | ||
2902 | 123 | } | ||
2903 | 124 | |||
2904 | 125 | // Since we modify the $existing cache directly, return nothing. | ||
2905 | 126 | return array(); | ||
2906 | 127 | } | ||
2907 | 128 | |||
2908 | 129 | |||
2909 | 130 | function basic_theme_get_default_settings($theme) { | ||
2910 | 131 | $themes = list_themes(); | ||
2911 | 132 | |||
2912 | 133 | // Get the default values from the .info file. | ||
2913 | 134 | $defaults = !empty($themes[$theme]->info['settings']) ? $themes[$theme]->info['settings'] : array(); | ||
2914 | 135 | |||
2915 | 136 | if (!empty($defaults)) { | ||
2916 | 137 | // Get the theme settings saved in the database. | ||
2917 | 138 | $settings = theme_get_settings($theme); | ||
2918 | 139 | // Don't save the toggle_node_info_ variables. | ||
2919 | 140 | if (module_exists('node')) { | ||
2920 | 141 | foreach (node_get_types() as $type => $name) { | ||
2921 | 142 | unset($settings['toggle_node_info_' . $type]); | ||
2922 | 143 | } | ||
2923 | 144 | } | ||
2924 | 145 | // Save default theme settings. | ||
2925 | 146 | variable_set( | ||
2926 | 147 | str_replace('/', '_', 'theme_' . $theme . '_settings'), | ||
2927 | 148 | array_merge($defaults, $settings) | ||
2928 | 149 | ); | ||
2929 | 150 | // If the active theme has been loaded, force refresh of Drupal internals. | ||
2930 | 151 | if (!empty($GLOBALS['theme_key'])) { | ||
2931 | 152 | theme_get_setting('', TRUE); | ||
2932 | 153 | } | ||
2933 | 154 | } | ||
2934 | 155 | |||
2935 | 156 | // Return the default settings. | ||
2936 | 157 | return $defaults; | ||
2937 | 158 | } |
Looks awesome. I think it's great to get something in /drupal to start working with.
Being I'm no drupal genius, Moparx, can you bless this?
~ Andrew