Merge lp:~daimoneze/osdf/drupal-theme into lp:~sillydeveloper/osdf/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
Reviewer Review Type Date Requested Status
Moparx (community) Approve
Andrew Ettinger Approve
Review via email: mp+43035@code.launchpad.net

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 :

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

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
=== added file 'LICENSE.txt'
--- LICENSE.txt 1970-01-01 00:00:00 +0000
+++ LICENSE.txt 2010-12-08 01:56:31 +0000
@@ -0,0 +1,274 @@
1GNU GENERAL PUBLIC LICENSE
2
3 Version 2, June 1991
4
5Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave,
6Cambridge, MA 02139, USA. Everyone is permitted to copy and distribute
7verbatim copies of this license document, but changing it is not allowed.
8
9 Preamble
10
11The licenses for most software are designed to take away your freedom to
12share and change it. By contrast, the GNU General Public License is
13intended to guarantee your freedom to share and change free software--to
14make sure the software is free for all its users. This General Public License
15applies to most of the Free Software Foundation's software and to any other
16program whose authors commit to using it. (Some other Free Software
17Foundation software is covered by the GNU Library General Public License
18instead.) You can apply it to your programs, too.
19
20When we speak of free software, we are referring to freedom, not price. Our
21General Public Licenses are designed to make sure that you have the
22freedom to distribute copies of free software (and charge for this service if
23you wish), that you receive source code or can get it if you want it, that you
24can change the software or use pieces of it in new free programs; and that
25you know you can do these things.
26
27To protect your rights, we need to make restrictions that forbid anyone to
28deny you these rights or to ask you to surrender the rights. These restrictions
29translate to certain responsibilities for you if you distribute copies of the
30software, or if you modify it.
31
32For example, if you distribute copies of such a program, whether gratis or for
33a fee, you must give the recipients all the rights that you have. You must make
34sure that they, too, receive or can get the source code. And you must show
35them these terms so they know their rights.
36
37We protect your rights with two steps: (1) copyright the software, and (2)
38offer you this license which gives you legal permission to copy, distribute
39and/or modify the software.
40
41Also, for each author's protection and ours, we want to make certain that
42everyone understands that there is no warranty for this free software. If the
43software is modified by someone else and passed on, we want its recipients
44to know that what they have is not the original, so that any problems
45introduced by others will not reflect on the original authors' reputations.
46
47Finally, any free program is threatened constantly by software patents. We
48wish to avoid the danger that redistributors of a free program will individually
49obtain patent licenses, in effect making the program proprietary. To prevent
50this, we have made it clear that any patent must be licensed for everyone's
51free use or not licensed at all.
52
53The precise terms and conditions for copying, distribution and modification
54follow.
55
56 GNU GENERAL PUBLIC LICENSE
57 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND
58 MODIFICATION
59
600. This License applies to any program or other work which contains a notice
61placed by the copyright holder saying it may be distributed under the terms
62of this General Public License. The "Program", below, refers to any such
63program or work, and a "work based on the Program" means either the
64Program or any derivative work under copyright law: that is to say, a work
65containing the Program or a portion of it, either verbatim or with
66modifications and/or translated into another language. (Hereinafter, translation
67is included without limitation in the term "modification".) Each licensee is
68addressed as "you".
69
70Activities other than copying, distribution and modification are not covered
71by this License; they are outside its scope. The act of running the Program is
72not restricted, and the output from the Program is covered only if its contents
73constitute a work based on the Program (independent of having been made
74by running the Program). Whether that is true depends on what the Program
75does.
76
771. You may copy and distribute verbatim copies of the Program's source
78code as you receive it, in any medium, provided that you conspicuously and
79appropriately publish on each copy an appropriate copyright notice and
80disclaimer of warranty; keep intact all the notices that refer to this License
81and to the absence of any warranty; and give any other recipients of the
82Program a copy of this License along with the Program.
83
84You may charge a fee for the physical act of transferring a copy, and you
85may at your option offer warranty protection in exchange for a fee.
86
872. You may modify your copy or copies of the Program or any portion of it,
88thus forming a work based on the Program, and copy and distribute such
89modifications or work under the terms of Section 1 above, provided that you
90also meet all of these conditions:
91
92a) You must cause the modified files to carry prominent notices stating that
93you changed the files and the date of any change.
94
95b) You must cause any work that you distribute or publish, that in whole or in
96part contains or is derived from the Program or any part thereof, to be
97licensed as a whole at no charge to all third parties under the terms of this
98License.
99
100c) If the modified program normally reads commands interactively when run,
101you must cause it, when started running for such interactive use in the most
102ordinary way, to print or display an announcement including an appropriate
103copyright notice and a notice that there is no warranty (or else, saying that
104you provide a warranty) and that users may redistribute the program under
105these conditions, and telling the user how to view a copy of this License.
106(Exception: if the Program itself is interactive but does not normally print such
107an announcement, your work based on the Program is not required to print
108an announcement.)
109
110These requirements apply to the modified work as a whole. If identifiable
111sections of that work are not derived from the Program, and can be
112reasonably considered independent and separate works in themselves, then
113this License, and its terms, do not apply to those sections when you distribute
114them as separate works. But when you distribute the same sections as part
115of a whole which is a work based on the Program, the distribution of the
116whole must be on the terms of this License, whose permissions for other
117licensees extend to the entire whole, and thus to each and every part
118regardless of who wrote it.
119
120Thus, it is not the intent of this section to claim rights or contest your rights to
121work written entirely by you; rather, the intent is to exercise the right to
122control the distribution of derivative or collective works based on the
123Program.
124
125In addition, mere aggregation of another work not based on the Program
126with the Program (or with a work based on the Program) on a volume of a
127storage or distribution medium does not bring the other work under the scope
128of this License.
129
1303. You may copy and distribute the Program (or a work based on it, under
131Section 2) in object code or executable form under the terms of Sections 1
132and 2 above provided that you also do one of the following:
133
134a) Accompany it with the complete corresponding machine-readable source
135code, which must be distributed under the terms of Sections 1 and 2 above
136on a medium customarily used for software interchange; or,
137
138b) Accompany it with a written offer, valid for at least three years, to give
139any third party, for a charge no more than your cost of physically performing
140source distribution, a complete machine-readable copy of the corresponding
141source code, to be distributed under the terms of Sections 1 and 2 above on
142a medium customarily used for software interchange; or,
143
144c) Accompany it with the information you received as to the offer to distribute
145corresponding source code. (This alternative is allowed only for
146noncommercial distribution and only if you received the program in object
147code or executable form with such an offer, in accord with Subsection b
148above.)
149
150The source code for a work means the preferred form of the work for
151making modifications to it. For an executable work, complete source code
152means all the source code for all modules it contains, plus any associated
153interface definition files, plus the scripts used to control compilation and
154installation of the executable. However, as a special exception, the source
155code distributed need not include anything that is normally distributed (in
156either source or binary form) with the major components (compiler, kernel,
157and so on) of the operating system on which the executable runs, unless that
158component itself accompanies the executable.
159
160If distribution of executable or object code is made by offering access to
161copy from a designated place, then offering equivalent access to copy the
162source code from the same place counts as distribution of the source code,
163even though third parties are not compelled to copy the source along with the
164object code.
165
1664. You may not copy, modify, sublicense, or distribute the Program except as
167expressly provided under this License. Any attempt otherwise to copy,
168modify, sublicense or distribute the Program is void, and will automatically
169terminate your rights under this License. However, parties who have received
170copies, or rights, from you under this License will not have their licenses
171terminated so long as such parties remain in full compliance.
172
1735. You are not required to accept this License, since you have not signed it.
174However, nothing else grants you permission to modify or distribute the
175Program or its derivative works. These actions are prohibited by law if you
176do not accept this License. Therefore, by modifying or distributing the
177Program (or any work based on the Program), you indicate your acceptance
178of this License to do so, and all its terms and conditions for copying,
179distributing or modifying the Program or works based on it.
180
1816. Each time you redistribute the Program (or any work based on the
182Program), the recipient automatically receives a license from the original
183licensor to copy, distribute or modify the Program subject to these terms and
184conditions. You may not impose any further restrictions on the recipients'
185exercise of the rights granted herein. You are not responsible for enforcing
186compliance by third parties to this License.
187
1887. If, as a consequence of a court judgment or allegation of patent
189infringement or for any other reason (not limited to patent issues), conditions
190are imposed on you (whether by court order, agreement or otherwise) that
191contradict the conditions of this License, they do not excuse you from the
192conditions of this License. If you cannot distribute so as to satisfy
193simultaneously your obligations under this License and any other pertinent
194obligations, then as a consequence you may not distribute the Program at all.
195For example, if a patent license would not permit royalty-free redistribution
196of the Program by all those who receive copies directly or indirectly through
197you, then the only way you could satisfy both it and this License would be to
198refrain entirely from distribution of the Program.
199
200If any portion of this section is held invalid or unenforceable under any
201particular circumstance, the balance of the section is intended to apply and
202the section as a whole is intended to apply in other circumstances.
203
204It is not the purpose of this section to induce you to infringe any patents or
205other property right claims or to contest validity of any such claims; this
206section has the sole purpose of protecting the integrity of the free software
207distribution system, which is implemented by public license practices. Many
208people have made generous contributions to the wide range of software
209distributed through that system in reliance on consistent application of that
210system; it is up to the author/donor to decide if he or she is willing to
211distribute software through any other system and a licensee cannot impose
212that choice.
213
214This section is intended to make thoroughly clear what is believed to be a
215consequence of the rest of this License.
216
2178. If the distribution and/or use of the Program is restricted in certain
218countries either by patents or by copyrighted interfaces, the original copyright
219holder who places the Program under this License may add an explicit
220geographical distribution limitation excluding those countries, so that
221distribution is permitted only in or among countries not thus excluded. In such
222case, this License incorporates the limitation as if written in the body of this
223License.
224
2259. The Free Software Foundation may publish revised and/or new versions
226of the General Public License from time to time. Such new versions will be
227similar in spirit to the present version, but may differ in detail to address new
228problems or concerns.
229
230Each version is given a distinguishing version number. If the Program specifies
231a version number of this License which applies to it and "any later version",
232you have the option of following the terms and conditions either of that
233version or of any later version published by the Free Software Foundation. If
234the Program does not specify a version number of this License, you may
235choose any version ever published by the Free Software Foundation.
236
23710. If you wish to incorporate parts of the Program into other free programs
238whose distribution conditions are different, write to the author to ask for
239permission. For software which is copyrighted by the Free Software
240Foundation, write to the Free Software Foundation; we sometimes make
241exceptions for this. Our decision will be guided by the two goals of
242preserving the free status of all derivatives of our free software and of
243promoting the sharing and reuse of software generally.
244
245 NO WARRANTY
246
24711. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE,
248THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT
249PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
250STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
251OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
252WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
253INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
254OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
255PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
256PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
257PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
258NECESSARY SERVICING, REPAIR OR CORRECTION.
259
26012. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR
261AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR
262ANY OTHER PARTY WHO MAY MODIFY AND/OR
263REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
264LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
265SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
266ARISING OUT OF THE USE OR INABILITY TO USE THE
267PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA
268OR DATA BEING RENDERED INACCURATE OR LOSSES
269SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
270PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN
271IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF
272THE POSSIBILITY OF SUCH DAMAGES.
273
274 END OF TERMS AND CONDITIONS
0275
=== added file 'README.txt'
--- README.txt 1970-01-01 00:00:00 +0000
+++ README.txt 2010-12-08 01:56:31 +0000
@@ -0,0 +1,120 @@
1Introduction to Basic
2
3BASIC was originally developed for internal use to develop themes at Raincity Studios (Vancouver)
4After using the ZEN theme for years, we realised that it was getting too complicated, had too much
5files and overrides, so we decided to develop a strip down version of it and BASIC
6was created.
7
8ZEN became a fairly big piece of code and we felt like for each project we didn't need most of
9it. So we took what we use all the time in ZEN, and removed all the things we felt were unnecessary.
10
11The layout was also modified to make it easier to modify. Most of the CSS was brought down to a
12strict minimum, and the templates were also recoded to make them as clear as possible.
13
14BASIC is not intended for beginners, and if you're not sure, try ZEN first, and maybe later
15try basic.
16BASIC is now used for professional projects by multiple drupal agencies around the world.
17
18__________________________________________________________________________________________
19
20Installation
21
22- Download Basic from http://drupal.org/project/basic
23- Unpack the downloaded file and place the Basic folder in your Drupal installation under
24 one of the following locations:
25
26 * sites/all/themes
27 * sites/default/themes
28 * sites/example.com/themes
29
30- Log in as an administrator on your Drupal site and go to
31 Administer > Site building > Themes (admin/build/themes) and make Basic the default theme.
32
33- if you want to change the name of the theme from 'basic' to another name like 'mytheme',
34follow these steps (to do BEFORE enabling the theme) :
35
36
37 - Edit basic.info and change the name, description, project (can be deleted)
38 - In basic.info, replace the following instances of "basic_" to "mytheme_"
39 - [basic_zen_tabs]
40 - [basic_wireframe]
41 - [basic_block_editing]
42 - [basic_rebuild_registry]
43 - [basic_breadcrumb]
44 - [basic_breadcrumb_separator]
45 - [basic_breadcrumb_home]
46 - [basic_breadcrumb_trailing]
47 - [basic_breadcrumb_title]
48
49 - In template.php change each iteration of 'basic' to 'mytheme'
50 - In theme-settings.php change each iteration of 'basic' to 'mytheme'
51 - rename the theme folder to 'mytheme'
52 - rename basic.info to mytheme.info
53
54__________________________________________________________________________________________
55
56What are the files for ?
57------------------------
58
59- basic.info => provide informations about the theme, like regions, css, settings, js ...
60- block-system-main.tpl.php => template to edit the content
61- block.tpl.php => template to edit the blocks
62- comment.tpl.php => template to edit the comments
63- node.tpl.php => template to edit the nodes (in content)
64- page.tpl.php => template to edit the page
65- template.php => used to modify drupal's default behavior before outputting HTML through
66 the theme
67- theme-settings => used to create additional settings in the theme settings page
68
69In /CSS
70-------
71
72- default.css => define default classes, browser resets and admin styles
73- ie6 => used to debug IE6
74- ie7 => used to debug IE7
75- layout.css => define the layout of the theme
76- print.css => define the way the theme look like when printed
77- style.css => contains some default font styles. that's where you can add custom css
78- tabs.css => styles for the admin tabs (from ZEN)
79
80__________________________________________________________________________________________
81
82Changing the Layout
83
84The layout used in Basic is fairly similar to the Holy Grail method. It has been tested on
85all major browser including IE (5>8), Opera, Firefox, Safari, Chrome ...
86The purpose of this method is to have a minimal markup for an ideal display.
87For accessibility and search engine optimization, the best order to display a page is ]
88the following :
89
90 1. header
91 2. content
92 3. sidebars
93 4. footer
94
95This is how the page template is buit in basic, and it works in fluid and fixed layout.
96Refers to the notes in layout.css to see how to modify the layout.
97
98__________________________________________________________________________________________
99
100UPDATING BASIC
101
102Once you start using basic, you will massively change it until a point where it has nothing
103to do with basic anymore. Unlike ZEN, basic is not intended to be use as a base theme for a
104sub-theme (even though it is possible to do so). Because of this, it is not necessary to
105update your theme when a new version of BASIC comes out. Always see Basic as a STARTER, and
106as soon as you start using it, it is not BASIC anymore, but your own theme.
107
108If you didn't rename your theme, but you don't want to be notified when basic has a new version
109by the update module, simply delete "project = "basic" in basic.info
110
111__________________________________________________________________________________________
112
113Thanks for using BASIC, and remember to use the issue queue in drupal.org for any question
114or bug report:
115
116http://drupal.org/project/issues/basic
117
118Current maintainers:
119* Hubert Florin (couzinhub) -http://drupal.org/user/133581
120* Steve Krueger (SteveK) -http://drupal.org/user/111656
0\ No newline at end of file121\ No newline at end of file
1122
=== added file 'basic.info'
--- basic.info 1970-01-01 00:00:00 +0000
+++ basic.info 2010-12-08 01:56:31 +0000
@@ -0,0 +1,51 @@
1name = basic
2description = Basic starter theme for Drupal 6
3screenshot = images/screenshot.gif
4core = "6.x"
5project = "basic"
6engine = phptemplate
7
8regions[content_top] = Content top
9regions[header] = Header
10regions[left] = First sidebar
11regions[right] = Second sidebar
12regions[footer_block] = Footer
13regions[content_bottom] = Content bottom
14
15features[] = logo
16features[] = name
17features[] = slogan
18features[] = mission
19features[] = node_user_picture
20features[] = comment_user_picture
21features[] = search
22features[] = favicon
23features[] = primary_links
24features[] = secondary_links
25
26stylesheets[all][] = css/default.css
27stylesheets[all][] = css/layout.css
28stylesheets[all][] = css/style.css
29stylesheets[print][] = css/print.css
30
31; Compass Support
32; http://drupal.org/project/compass
33compass[status] = 1
34compass[sass_dir] = sass
35compass[css_dir] = css
36
37settings[basic_zen_tabs] = 1
38settings[basic_wireframe] = 0
39settings[basic_block_editing] = 1
40settings[basic_rebuild_registry] = 0
41settings[basic_breadcrumb] = yes
42settings[basic_breadcrumb_separator] = ' » '
43settings[basic_breadcrumb_home] = 1
44settings[basic_breadcrumb_trailing] = 0
45settings[basic_breadcrumb_title] = 0
46; Information added by drupal.org packaging script on 2010-12-03
47version = "6.x-2.12"
48core = "6.x"
49project = "basic"
50datestamp = "1291338964"
51
052
=== added directory 'css'
=== added file 'css/default.css'
--- css/default.css 1970-01-01 00:00:00 +0000
+++ css/default.css 2010-12-08 01:56:31 +0000
@@ -0,0 +1,181 @@
1/* About Default Styles
2 * ---------------------
3 * default.css is used to establish general rules, browser reset, or admin user interface styles.
4 *
5 * Browser Reset
6 * -------------
7 * For a more complete reset, go to http://developer.yahoo.com/yui/reset/ */
8/* line 9, ../sass/default.sass */
9* {
10 margin: 0;
11 padding: 0;
12}
13
14/* Clear Floats Without Structural Markup
15 * ---------------------------------------
16 * http://www.positioniseverything.net/easyclearing.html */
17/* line 17, ../sass/default.sass */
18.clearfix {
19 display: inline-block;
20}
21/* line 19, ../sass/default.sass */
22.clearfix:after {
23 content: ".";
24 display: block;
25 height: 0;
26 clear: both;
27 visibility: hidden;
28}
29
30/* Hides from IE-mac \ */
31/* line 27, ../sass/default.sass */
32* html .clearfix {
33 height: 1%;
34}
35
36/* line 30, ../sass/default.sass */
37.clearfix {
38 display: block;
39}
40
41/* End hide from IE-mac */
42/* clear classes */
43/* line 36, ../sass/default.sass */
44.clearleft, .clearl, .cleft {
45 clear: left;
46}
47
48/* line 39, ../sass/default.sass */
49.clearright, .clearr, .cright {
50 clear: right;
51}
52
53/* line 42, ../sass/default.sass */
54.clear, .clearboth, .clearall {
55 clear: both;
56}
57
58/* Float classes */
59/* line 46, ../sass/default.sass */
60.floatleft, .fleft, .floatl {
61 float: left;
62 margin: 0 10px 5px 0;
63}
64
65/* line 50, ../sass/default.sass */
66.floatright, .fright, .floatr {
67 float: right;
68 margin: 0 0 5px 10px;
69}
70
71/* "Skip to Main Content" link
72 * ---------------------------
73 * This link useful for both visually impaired people and those with mobility impairments
74 * who cannot use a mouse. http://www.webaim.org/techniques/css/invisiblecontent/ */
75/* line 60, ../sass/default.sass */
76#skip a:link, #skip a:hover, #skip a:visited {
77 position: absolute;
78 left: -10000px;
79 top: auto;
80 width: 1px;
81 height: 1px;
82 overflow: hidden;
83}
84/* line 67, ../sass/default.sass */
85#skip a:active, #skip a:focus {
86 position: static;
87 width: auto;
88 height: auto;
89}
90
91/* bug fix with views 2 edit links. */
92/* line 73, ../sass/default.sass */
93div.view div.views-admin-links {
94 width: auto;
95}
96
97/* Rollover edit links for blocks. */
98/* line 77, ../sass/default.sass */
99div.block {
100 position: relative;
101}
102/* line 79, ../sass/default.sass */
103div.block .edit {
104 display: none;
105 position: absolute;
106 right: -20px;
107 top: -5px;
108 z-index: 40;
109 padding: 3px 8px 0;
110 font-size: 10px;
111 line-height: 16px;
112 background-color: white;
113 border: 1px solid #cccccc;
114 /*let's get fancy! */
115 -moz-border-radius: 3px;
116 -webkit-border-radius: 3px;
117 -moz-box-shadow: 0 1px 3px #888888;
118 -webkit-box-shadow: -1px 1px 2px #666666;
119}
120/* line 95, ../sass/default.sass */
121div.block .edit a {
122 display: block;
123 border: 0;
124 padding: 0;
125 margin: 0;
126}
127/* line 100, ../sass/default.sass */
128div.block:hover .edit {
129 display: block;
130}
131
132/* Wireframe styles. */
133/* line 105, ../sass/default.sass */
134.with-wireframes #header,
135.with-wireframes #content-top,
136.with-wireframes #content-top > *,
137.with-wireframes #content-header,
138.with-wireframes #content-header > *,
139.with-wireframes #content-area,
140.with-wireframes #content-area > *,
141.with-wireframes #content-bottom,
142.with-wireframes #content-bottom > *,
143.with-wireframes #primary,
144.with-wireframes #secondary,
145.with-wireframes #sidebar-left-inner,
146.with-wireframes #sidebar-right-inner,
147.with-wireframes .block {
148 padding: 2px;
149 border: 1px solid #bbbbbb;
150}
151/* line 121, ../sass/default.sass */
152.with-wireframes .node {
153 border-bottom: 1px solid #bbbbbb;
154 margin-bottom: 10px;
155}
156/* line 124, ../sass/default.sass */
157.with-wireframes .block {
158 margin-bottom: 3px;
159}
160/* line 126, ../sass/default.sass */
161.with-wireframes #content-top,
162.with-wireframes #content-header,
163.with-wireframes #content-area,
164.with-wireframes #content-bottom {
165 margin: 0 3px 3px;
166}
167/* line 131, ../sass/default.sass */
168.with-wireframes #footer {
169 margin-top: 3px;
170 padding: 2px;
171 border: 1px solid #cccccc;
172}
173/* line 136, ../sass/default.sass */
174.with-wireframes.with-navigation #content,
175.with-wireframes.with-navigation .sidebar {
176 margin-top: 50px;
177}
178/* line 139, ../sass/default.sass */
179.with-wireframes #navigation {
180 height: 50px;
181}
0182
=== added file 'css/ie6.css'
--- css/ie6.css 1970-01-01 00:00:00 +0000
+++ css/ie6.css 2010-12-08 01:56:31 +0000
@@ -0,0 +1,67 @@
1/* Yes, we all hate IE6. */
2/* Fix the admin page in ie6. */
3/* line 5, ../sass/ie6.sass */
4div.admin .left,
5div.admin .right {
6 width: 46%;
7}
8
9/* Tabs CSS - IE 5 and 6 don't support PNGs with alpha transparency. */
10/* line 10, ../sass/ie6.sass */
11ul.primary,
12ul.secondary {
13 width: 100%;
14 width: auto;
15}
16/* line 14, ../sass/ie6.sass */
17ul.primary li a,
18ul.primary li a .tab,
19ul.secondary li a,
20ul.secondary li a .tab {
21 display: inline;
22 display: inline-block;
23}
24
25/* line 21, ../sass/ie6.sass */
26ul.primary li a {
27 background: url(../images/tabs/tab-left-ie6.png) no-repeat left -38px;
28}
29/* line 23, ../sass/ie6.sass */
30ul.primary li a .tab {
31 background: url(../images/tabs/tab-right-ie6.png) no-repeat right -38px;
32}
33/* line 25, ../sass/ie6.sass */
34ul.primary li a:hover {
35 cursor: pointer;
36 color: #555555;
37 text-decoration: none;
38 background-position: left -76px;
39}
40/* line 30, ../sass/ie6.sass */
41ul.primary li a:hover .tab {
42 background-position: right -76px;
43}
44/* line 33, ../sass/ie6.sass */
45ul.primary li.active a, ul.primary li.active a:hover {
46 background: url(../images/tabs/tab-left-ie6.png) no-repeat left 0;
47}
48/* line 35, ../sass/ie6.sass */
49ul.primary li.active a .tab, ul.primary li.active a:hover .tab {
50 background: url(../images/tabs/tab-right-ie6.png) no-repeat right 0;
51}
52
53/* line 41, ../sass/ie6.sass */
54ul.secondary li a:hover {
55 cursor: pointer;
56 color: #555555;
57 text-decoration: none;
58}
59
60/* Drupal admin tables */
61/* line 49, ../sass/ie6.sass */
62#content tr.even th,
63#content tr.even td,
64#content tr.odd th,
65#content tr.odd td {
66 border-bottom: 1px solid #cccccc;
67}
068
=== added file 'css/ie7.css'
--- css/ie7.css 1970-01-01 00:00:00 +0000
+++ css/ie7.css 2010-12-08 01:56:31 +0000
@@ -0,0 +1,18 @@
1/* Yes, we all hate IE7 too. */
2/* Drupal admin tables. */
3/* line 6, ../sass/ie7.sass */
4#content tr.even th,
5#content tr.even td,
6#content tr.odd th,
7#content tr.odd td {
8 border-bottom: 1px solid #cccccc;
9}
10
11/* Minor fix for primary and secondary tabs in IE */
12/* line 14, ../sass/ie7.sass */
13ul .primary li a:hover,
14ul .secondary li a:hover {
15 cursor: pointer;
16 color: #555555;
17 text-decoration: none;
18}
019
=== added file 'css/layout.css'
--- css/layout.css 1970-01-01 00:00:00 +0000
+++ css/layout.css 2010-12-08 01:56:31 +0000
@@ -0,0 +1,110 @@
1/* Layout
2 * ------
3 * Using a negative margin technique, adapted from ZEN. The page is loaded by this order:
4 *
5 * 1. Header
6 * 2. Content
7 * 3. Navigation menus
8 * 4. Sidebar Left
9 * 5. Sideabr Right */
10/* remove 'auto' and the width to switch to a fluid width */
11/* line 16, ../sass/layout.sass */
12#page {
13 width: 960px;
14 margin: 0 auto;
15}
16
17/* Layout rules. (Disclaimer: do not change if you're not sure you know what you're doing.) */
18/* line 21, ../sass/layout.sass */
19#content {
20 float: left;
21 width: 100%;
22 margin: 0;
23 padding: 0;
24}
25
26/* line 27, ../sass/layout.sass */
27.sidebar {
28 float: left;
29}
30
31/* line 30, ../sass/layout.sass */
32#sidebar-second {
33 float: right;
34}
35
36/* line 33, ../sass/layout.sass */
37#footer {
38 float: none;
39 clear: both;
40}
41
42/* Layout Helpers */
43/* line 38, ../sass/layout.sass */
44#header,
45#footer,
46.mission,
47.breadcrumb,
48.node {
49 clear: both;
50}
51
52/* Sidebars width
53 * --------------
54 * Changing the width of the sidebars is dead easy, just change the
55 * values below corresponding to the sidebar you want to modify.
56 * Make sure you keep negative values as negative values.
57 * For example, if I want to increase the width of the left sidebar
58 * to 300px, I would have to change each '190' to '300'. */
59/* line 56, ../sass/layout.sass */
60.two-sidebars .center,
61.sidebar-left .center {
62 margin-left: 190px;
63}
64
65/* line 60, ../sass/layout.sass */
66#sidebar-first {
67 width: 190px;
68 margin-right: -190px;
69}
70
71/* line 66, ../sass/layout.sass */
72.two-sidebars .center,
73.sidebar-right .center {
74 margin-right: 200px;
75}
76
77/* line 70, ../sass/layout.sass */
78#sidebar-second {
79 width: 200px;
80}
81
82/* Columns Inner
83 * -------------
84 * You can change the padding inside the columns without changing the
85 * width of them by just usinbg the INNER div of each column */
86/* line 77, ../sass/layout.sass */
87.inner {
88 padding: 0;
89}
90
91/* Navigation styles
92 * -----------------
93 * The navigation is loaded after the content, so we need to make space
94 * for it, equal to its height, so if you change the height of the navigation,
95 * remember to adapt the margin top of the content and sidebars. */
96/* line 85, ../sass/layout.sass */
97#navigation {
98 float: left;
99 margin-left: 0;
100 margin-right: -100%;
101 padding: 0;
102 width: 100%;
103 height: 40px;
104}
105
106/* line 95, ../sass/layout.sass */
107.with-navigation #content,
108.with-navigation .sidebar {
109 margin-top: 40px;
110}
0111
=== added file 'css/print.css'
--- css/print.css 1970-01-01 00:00:00 +0000
+++ css/print.css 2010-12-08 01:56:31 +0000
@@ -0,0 +1,45 @@
1/* Use this stylesheet for print styles only. */
2/* line 2, ../sass/print.sass */
3* {
4 background-color: transparent;
5}
6
7/* line 5, ../sass/print.sass */
8.sidebar,
9#navigation,
10#header-region,
11#search-theme-form,
12#footer,
13.breadcrumb,
14.tabs,
15.feed-icon,
16.links {
17 display: none;
18}
19
20/* line 16, ../sass/print.sass */
21#page {
22 width: 100%;
23}
24
25/* line 19, ../sass/print.sass */
26#content,
27#content #content-inner,
28.content,
29.title {
30 margin: 20px 0;
31 width: auto;
32}
33
34/* line 27, ../sass/print.sass */
35a:hover, a:active, a:link, a:visited {
36 color: black;
37}
38
39/* CSS2 selector to add visible href after links. */
40/* line 35, ../sass/print.sass */
41#content a:link:after, #content a:visited:after {
42 content: " (" attr(href) ") ";
43 font-size: 0.8em;
44 font-weight: normal;
45}
046
=== added file 'css/style.css'
--- css/style.css 1970-01-01 00:00:00 +0000
+++ css/style.css 2010-12-08 01:56:31 +0000
@@ -0,0 +1,290 @@
1/* Font styles. */
2/* line 2, ../sass/style.sass */
3body {
4 margin: 0;
5 /* Setting up font size, leading and font family
6 * http://www.markboulton.co.uk/journal/comments/five-simple-steps-to-better-typography */
7 font: 13px/1.5em "Helvetica Neue", helvetica, Arial, sans-serif;
8}
9
10/* Links */
11/* line 10, ../sass/style.sass */
12a:link, a:visited {
13 color: blue;
14 text-decoration: none;
15}
16
17/* line 15, ../sass/style.sass */
18a:hover, a:active {
19 color: red;
20 text-decoration: underline;
21}
22
23/* Titles. */
24/* line 21, ../sass/style.sass */
25h1, h2, h3, h4, h5, h6 {
26 line-height: 1.3em;
27}
28
29/* line 24, ../sass/style.sass */
30h1 {
31 font-size: 2.2em;
32 font-weight: 300;
33 padding: 0 0 0.5em;
34 margin: 0;
35}
36
37/* line 30, ../sass/style.sass */
38h2 {
39 font-size: 1.8em;
40 font-weight: 300;
41 margin-bottom: 0.75em;
42}
43
44/* line 35, ../sass/style.sass */
45h3 {
46 font-size: 1.4em;
47 margin-bottom: 1em;
48}
49
50/* line 39, ../sass/style.sass */
51h4 {
52 font-size: 1.2em;
53 margin-bottom: 0.8em;
54}
55
56/* line 43, ../sass/style.sass */
57h5 {
58 font-size: 1.1em;
59 font-weight: 600;
60 margin-bottom: 0;
61}
62
63/* line 48, ../sass/style.sass */
64h6 {
65 font-size: 1em;
66 font-weight: bold;
67}
68
69/* Paragraph styles. */
70/* line 53, ../sass/style.sass */
71p {
72 margin: 0 0 1em 0;
73}
74
75/* List styles. */
76/* line 57, ../sass/style.sass */
77ul, ol {
78 margin-left: 0;
79 padding-left: 2em;
80}
81
82/* Table styles. */
83/* line 62, ../sass/style.sass */
84table {
85 width: 99%;
86}
87
88/* line 67, ../sass/style.sass */
89tr.even td,
90tr.odd td {
91 padding: 10px 5px;
92}
93
94/* line 70, ../sass/style.sass */
95tr.odd {
96 background-color: white;
97}
98
99/* Code. */
100/* line 74, ../sass/style.sass */
101pre, code, tt {
102 font: 1em "andale mono", "lucida console", monospace;
103 line-height: 1.5;
104}
105
106/* line 78, ../sass/style.sass */
107pre {
108 background-color: #efefef;
109 display: block;
110 padding: 5px;
111 margin: 5px 0;
112 border: 1px solid #aaaaaa;
113}
114
115/* List styles. */
116/* line 86, ../sass/style.sass */
117ul {
118 list-style-type: disc;
119}
120/* line 88, ../sass/style.sass */
121ul ul {
122 list-style-type: circle;
123}
124/* line 90, ../sass/style.sass */
125ul ul ul {
126 list-style-type: square;
127}
128/* line 92, ../sass/style.sass */
129ul ul ul ul {
130 list-style-type: circle;
131}
132
133/* line 95, ../sass/style.sass */
134ol {
135 list-style-type: decimal;
136}
137/* line 97, ../sass/style.sass */
138ol ol {
139 list-style-type: lower-alpha;
140}
141/* line 99, ../sass/style.sass */
142ol ol ol {
143 list-style-type: decimal;
144}
145
146/* Abbreviation. */
147/* line 103, ../sass/style.sass */
148abbr {
149 border-bottom: 1px dotted #666666;
150 cursor: help;
151 white-space: nowrap;
152}
153
154/* UI improvments. */
155/* line 109, ../sass/style.sass */
156#edit-title {
157 font-size: 24px;
158 width: 98%;
159}
160
161/* line 113, ../sass/style.sass */
162#system-themes-form img {
163 width: 100px;
164}
165
166/* line 116, ../sass/style.sass */
167.form-item .description {
168 font-style: italic;
169 line-height: 1.2em;
170 font-size: 0.8em;
171 margin-top: 5px;
172 color: #777777;
173}
174
175/* line 123, ../sass/style.sass */
176#edit-delete {
177 color: #cc0000;
178}
179
180/* Console, style from slate theme. */
181/* line 127, ../sass/style.sass */
182div.messages {
183 padding: 9px;
184 margin: 1em 0;
185 color: #003366;
186 background: #bbddff;
187 border: 1px solid #aaccee;
188}
189
190/* line 134, ../sass/style.sass */
191div.warning {
192 color: #884400;
193 background: #ffee66;
194 border-color: #eedd55;
195}
196
197/* line 139, ../sass/style.sass */
198div.error {
199 color: white;
200 background: #ee6633;
201 border-color: #dd5522;
202}
203
204/* line 144, ../sass/style.sass */
205div.status {
206 color: #336600;
207 background: #ccff88;
208 border-color: #bbee77;
209}
210
211/* Region Colors. delete when starting a new theme. */
212/* line 150, ../sass/style.sass */
213#header, #footer {
214 background: #efefef;
215}
216
217/* line 153, ../sass/style.sass */
218#sidebar-first {
219 background: #e7edff;
220}
221
222/* line 156, ../sass/style.sass */
223#sidebar-second {
224 background: #ffd075;
225}
226
227/* line 159, ../sass/style.sass */
228#navigation {
229 background: #feffa5;
230}
231#header{
232width:880px;
233height:138px;
234margin:auto;
235background:url(http://theosdf.org/images/header_bg.jpg) repeat-x;
236}
237#logo {
238 float: left;
239 padding: 38px 0 0 30px;
240}
241.top_phone {
242 width:280px;
243 height:89px;
244 float:right;
245 color:#FFFFFF;
246 padding:10px 0 0 0;
247}
248.phone_text{
249font-size:16px;
250font-weight:bold;
251float:left;
252padding:0px 0 0 10px;
253}
254img.left{
255float:left;
256}
257span.black{
258color:#000000;
259font-size:14px;
260}
261#menu_tab {
262 float: right;
263 font-family: Arial,Helvetica,sans-serif;
264 height: 37px;
265 padding: 0;
266 width: 480px;
267}
268ul.menu {
269list-style-type:none;
270display:block;
271width: 507px;
272margin: auto;
273padding:0px;
274background:none;
275}
276
277ul.menu li {
278display:inline;
279font-size:11px;
280font-weight:bold;
281line-height:26px;
282}
283a.nav:link, a.nav:visited {
284display:block; float:left; padding:0px; margin:0;width:71px; height:37px; margin:0px 4px 0px 4px; text-align:center; color:#FFFFFF;
285text-decoration:none;}
286a.nav_selected:link, a.nav_selected:visited {
287display:block; float:left; padding:0px; margin:0;width: 71px;margin:0px 4px 0px 4px;text-align:center; height:37px;
288text-decoration:none; color: #d34124; background:url(http://theosdf.org/images/bt_bg.gif) no-repeat center;}
289a.nav:hover {
290color: #d34124; text-decoration:none;background:url(http://theosdf.org/images/bt_bg.gif) no-repeat center;}
0291
=== added file 'css/tabs.css'
--- css/tabs.css 1970-01-01 00:00:00 +0000
+++ css/tabs.css 2010-12-08 01:56:31 +0000
@@ -0,0 +1,122 @@
1/* Tabs CSS
2 * --------
3 * Adds styles for the primary and secondary tabs.
4 *
5 * Compare this with default CSS found in the system module's stylesheet (a copy
6 * of which is in drupal5-reference.css, line 510.) */
7/* line 8, ../sass/tabs.sass */
8div.tabs {
9 margin: 0 0 5px 0;
10}
11
12/* line 11, ../sass/tabs.sass */
13ul.primary, ul.secondary {
14 width: 99%;
15}
16
17/* line 14, ../sass/tabs.sass */
18ul.primary {
19 margin: 0;
20 padding: 0 0 0 10px;
21 border-width: 0;
22 list-style: none;
23 white-space: nowrap;
24 line-height: normal;
25 background: url(../images/tabs/tab-bar.png) repeat-x left bottom;
26}
27/* line 22, ../sass/tabs.sass */
28ul.primary li {
29 float: left;
30 margin: 0;
31 padding: 0;
32}
33/* line 27, ../sass/tabs.sass */
34ul.primary li.active a, ul.primary li.active a:hover {
35 border-width: 0;
36 color: black;
37 background-color: transparent;
38 background: url(../images/tabs/tab-left.png) no-repeat left 0;
39}
40/* line 32, ../sass/tabs.sass */
41ul.primary li.active a .tab, ul.primary li.active a:hover .tab {
42 background: url(../images/tabs/tab-right.png) no-repeat right 0;
43}
44/* line 34, ../sass/tabs.sass */
45ul.primary li a {
46 display: block;
47 height: 24px;
48 margin: 0;
49 padding: 0 0 0 5px;
50 border-width: 0;
51 font-weigh: bold;
52 text-decoration: none;
53 color: #777777;
54 background-color: transparent;
55 background: url(../images/tabs/tab-left.png) no-repeat left -38px;
56}
57/* line 45, ../sass/tabs.sass */
58ul.primary li a:hover {
59 border-width: 0;
60 background-color: transparent;
61 background: url(../images/tabs/tab-left.png) no-repeat left -76px;
62}
63/* line 49, ../sass/tabs.sass */
64ul.primary li a:hover .tab {
65 background: url(../images/tabs/tab-right.png) no-repeat right -76px;
66}
67/* line 51, ../sass/tabs.sass */
68ul.primary li a .tab {
69 display: block;
70 height: 20px;
71 margin: 0;
72 padding: 4px 13px 0 6px;
73 border-width: 0;
74 line-height: 20px;
75 background: url(../images/tabs/tab-right.png) no-repeat right -38px;
76}
77
78/* line 60, ../sass/tabs.sass */
79ul.secondary {
80 margin: 0;
81 padding: 0 0 0 5px;
82 border-bottom: 1px solid silver;
83 list-style: none;
84 white-space: nowrap;
85 background: url(../images/tabs/tab-secondary-bg.png) repeat-x left bottom;
86}
87/* line 67, ../sass/tabs.sass */
88ul.secondary li {
89 float: left;
90 margin: 0 5px 0 0;
91 padding: 5px 0;
92 border-right: none;
93}
94/* line 72, ../sass/tabs.sass */
95ul.secondary a {
96 display: block;
97 height: 24px;
98 margin: 0;
99 padding: 0;
100 border: 1px solid silver;
101 text-decoration: none;
102 color: #777777;
103 background: url(../images/tabs/tab-secondary.png) repeat-x left -56px;
104}
105/* line 81, ../sass/tabs.sass */
106ul.secondary a .active, ul.secondary a .active:hover {
107 border: 1px solid silver;
108 color: black;
109 background: url(../images/tabs/tab-secondary.png) repeat-x left top;
110}
111/* line 85, ../sass/tabs.sass */
112ul.secondary a:hover {
113 background: url(../images/tabs/tab-secondary.png) repeat-x left bottom;
114}
115/* line 87, ../sass/tabs.sass */
116ul.secondary a .tab {
117 display: block;
118 height: 18px;
119 margin: 0;
120 padding: 3px 8px;
121 line-height: 18px;
122}
0123
=== added directory 'images'
=== added file 'images/bg.jpg'
1Binary files images/bg.jpg 1970-01-01 00:00:00 +0000 and images/bg.jpg 2010-12-08 01:56:31 +0000 differ124Binary files images/bg.jpg 1970-01-01 00:00:00 +0000 and images/bg.jpg 2010-12-08 01:56:31 +0000 differ
=== added file 'images/box_bg.gif'
2Binary files images/box_bg.gif 1970-01-01 00:00:00 +0000 and images/box_bg.gif 2010-12-08 01:56:31 +0000 differ125Binary 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
=== added file 'images/bt_bg.gif'
3Binary files images/bt_bg.gif 1970-01-01 00:00:00 +0000 and images/bt_bg.gif 2010-12-08 01:56:31 +0000 differ126Binary 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
=== added file 'images/calendar_icon.gif'
4Binary files images/calendar_icon.gif 1970-01-01 00:00:00 +0000 and images/calendar_icon.gif 2010-12-08 01:56:31 +0000 differ127Binary 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
=== added file 'images/center_bg.gif'
5Binary files images/center_bg.gif 1970-01-01 00:00:00 +0000 and images/center_bg.gif 2010-12-08 01:56:31 +0000 differ128Binary 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
=== added file 'images/clients_icon.gif'
6Binary files images/clients_icon.gif 1970-01-01 00:00:00 +0000 and images/clients_icon.gif 2010-12-08 01:56:31 +0000 differ129Binary 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
=== added file 'images/donate.jpg'
7Binary files images/donate.jpg 1970-01-01 00:00:00 +0000 and images/donate.jpg 2010-12-08 01:56:31 +0000 differ130Binary files images/donate.jpg 1970-01-01 00:00:00 +0000 and images/donate.jpg 2010-12-08 01:56:31 +0000 differ
=== added file 'images/footer_logo.gif'
8Binary files images/footer_logo.gif 1970-01-01 00:00:00 +0000 and images/footer_logo.gif 2010-12-08 01:56:31 +0000 differ131Binary 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
=== added file 'images/header_bg.jpg'
9Binary files images/header_bg.jpg 1970-01-01 00:00:00 +0000 and images/header_bg.jpg 2010-12-08 01:56:31 +0000 differ132Binary 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
=== added file 'images/home_arrow.gif'
10Binary files images/home_arrow.gif 1970-01-01 00:00:00 +0000 and images/home_arrow.gif 2010-12-08 01:56:31 +0000 differ133Binary 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
=== added file 'images/icon1.png'
11Binary files images/icon1.png 1970-01-01 00:00:00 +0000 and images/icon1.png 2010-12-08 01:56:31 +0000 differ134Binary files images/icon1.png 1970-01-01 00:00:00 +0000 and images/icon1.png 2010-12-08 01:56:31 +0000 differ
=== added file 'images/icon2.png'
12Binary files images/icon2.png 1970-01-01 00:00:00 +0000 and images/icon2.png 2010-12-08 01:56:31 +0000 differ135Binary files images/icon2.png 1970-01-01 00:00:00 +0000 and images/icon2.png 2010-12-08 01:56:31 +0000 differ
=== added file 'images/icon3.png'
13Binary files images/icon3.png 1970-01-01 00:00:00 +0000 and images/icon3.png 2010-12-08 01:56:31 +0000 differ136Binary files images/icon3.png 1970-01-01 00:00:00 +0000 and images/icon3.png 2010-12-08 01:56:31 +0000 differ
=== added file 'images/list_arrow.gif'
14Binary files images/list_arrow.gif 1970-01-01 00:00:00 +0000 and images/list_arrow.gif 2010-12-08 01:56:31 +0000 differ137Binary 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
=== added file 'images/logo - Copy.png'
15Binary files images/logo - Copy.png 1970-01-01 00:00:00 +0000 and images/logo - Copy.png 2010-12-08 01:56:31 +0000 differ138Binary 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
=== added file 'images/logo.png'
16Binary files images/logo.png 1970-01-01 00:00:00 +0000 and images/logo.png 2010-12-08 01:56:31 +0000 differ139Binary files images/logo.png 1970-01-01 00:00:00 +0000 and images/logo.png 2010-12-08 01:56:31 +0000 differ
=== added file 'images/logo2.png'
17Binary files images/logo2.png 1970-01-01 00:00:00 +0000 and images/logo2.png 2010-12-08 01:56:31 +0000 differ140Binary files images/logo2.png 1970-01-01 00:00:00 +0000 and images/logo2.png 2010-12-08 01:56:31 +0000 differ
=== added file 'images/phone_arrows.png'
18Binary files images/phone_arrows.png 1970-01-01 00:00:00 +0000 and images/phone_arrows.png 2010-12-08 01:56:31 +0000 differ141Binary 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
=== added file 'images/read_more_bg.gif'
19Binary 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 differ142Binary 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
=== added file 'images/screenshot.gif'
20Binary files images/screenshot.gif 1970-01-01 00:00:00 +0000 and images/screenshot.gif 2010-12-08 01:56:31 +0000 differ143Binary files images/screenshot.gif 1970-01-01 00:00:00 +0000 and images/screenshot.gif 2010-12-08 01:56:31 +0000 differ
=== added file 'images/services.gif'
21Binary files images/services.gif 1970-01-01 00:00:00 +0000 and images/services.gif 2010-12-08 01:56:31 +0000 differ144Binary files images/services.gif 1970-01-01 00:00:00 +0000 and images/services.gif 2010-12-08 01:56:31 +0000 differ
=== added file 'images/subtitle1.gif'
22Binary files images/subtitle1.gif 1970-01-01 00:00:00 +0000 and images/subtitle1.gif 2010-12-08 01:56:31 +0000 differ145Binary files images/subtitle1.gif 1970-01-01 00:00:00 +0000 and images/subtitle1.gif 2010-12-08 01:56:31 +0000 differ
=== added directory 'images/tabs'
=== added file 'images/tabs/tab-bar.png'
23Binary 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 differ146Binary 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
=== added file 'images/tabs/tab-left-ie6.png'
24Binary 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 differ147Binary 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
=== added file 'images/tabs/tab-left.png'
25Binary 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 differ148Binary 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
=== added file 'images/tabs/tab-right-ie6.png'
26Binary 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 differ149Binary 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
=== added file 'images/tabs/tab-right.png'
27Binary 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 differ150Binary 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
=== added file 'images/tabs/tab-secondary-bg.png'
28Binary 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 differ151Binary 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
=== added file 'images/tabs/tab-secondary.png'
29Binary 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 differ152Binary 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
=== added file 'logo.png'
30Binary files logo.png 1970-01-01 00:00:00 +0000 and logo.png 2010-12-08 01:56:31 +0000 differ153Binary files logo.png 1970-01-01 00:00:00 +0000 and logo.png 2010-12-08 01:56:31 +0000 differ
=== renamed file 'logo.png' => 'logo.png.moved'
=== added directory 'sass'
=== added file 'sass/_custom.sass'
--- sass/_custom.sass 1970-01-01 00:00:00 +0000
+++ sass/_custom.sass 2010-12-08 01:56:31 +0000
@@ -0,0 +1,8 @@
1// Custom
2// ------
3// This file is used to define custom overrides and
4// style changes to be used for building your theme.
5
6// Import variables and mixins to be used.
7@import _variables.sass
8@import _mixins.sass
0\ No newline at end of file9\ No newline at end of file
110
=== added file 'sass/_mixins.sass'
--- sass/_mixins.sass 1970-01-01 00:00:00 +0000
+++ sass/_mixins.sass 2010-12-08 01:56:31 +0000
@@ -0,0 +1,24 @@
1// Mixins
2// ------
3// Mixins allow you to define styles that can be re-used
4// throughout the stylesheet without needing to resort to
5// non-semantic classes like .float-left. Mixins can also
6// contain full CSS rules, and anything else allowed
7// elsewhere in a Sass document. They can even take
8// arguments which allows you to produce a wide variety
9// of styles with very few mixins.
10//
11// For complete documentation:
12// http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#mixins
13
14// Import variables for use in Mixins.
15@import _variables.sass
16
17// Rounded corners mixin.
18@mixin rounded_corners($top: 10px, $right: 10px, $bottom: $top, $left: $right)
19 border-radius: $top $right $bottom $left
20 -moz-border-radius: $top $right $bottom $left
21 -webkit-border-top-left-radius: $top
22 -webkit-border-top-right-radius: $right
23 -webkit-border-bottom-left-radius: $bottom
24 -webkit-border-bottom-right-radius: $left
025
=== added file 'sass/_variables.sass'
--- sass/_variables.sass 1970-01-01 00:00:00 +0000
+++ sass/_variables.sass 2010-12-08 01:56:31 +0000
@@ -0,0 +1,16 @@
1// Variables
2// ---------
3// Use the same color all over the place? Need to do
4// some math with height and width and text size?
5// Sass supports variables as well as basic math
6// operations and many useful functions.
7//
8// For complete documentation:
9// http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#variables_
10//
11// Available functions:
12// http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html
13
14// Sidebar widths.
15$first_sidebar_width: 190px
16$second_sidebar_width: 200px
017
=== added file 'sass/default.sass'
--- sass/default.sass 1970-01-01 00:00:00 +0000
+++ sass/default.sass 2010-12-08 01:56:31 +0000
@@ -0,0 +1,140 @@
1/* About Default Styles
2 * ---------------------
3 * default.css is used to establish general rules, browser reset, or admin user interface styles.
4 *
5 * Browser Reset
6 * -------------
7 * For a more complete reset, go to http://developer.yahoo.com/yui/reset/
8
9*
10 margin: 0
11 padding: 0
12
13/* Clear Floats Without Structural Markup
14 * ---------------------------------------
15 * http://www.positioniseverything.net/easyclearing.html
16
17.clearfix
18 display: inline-block
19 &:after
20 content: "."
21 display: block
22 height: 0
23 clear: both
24 visibility: hidden
25
26/* Hides from IE-mac \
27* html .clearfix
28 height: 1%
29
30.clearfix
31 display: block
32
33/* End hide from IE-mac
34
35/* clear classes
36.clearleft, .clearl, .cleft
37 clear: left
38
39.clearright, .clearr, .cright
40 clear: right
41
42.clear, .clearboth, .clearall
43 clear: both
44
45/* Float classes
46.floatleft, .fleft, .floatl
47 float: left
48 margin: 0 10px 5px 0
49
50.floatright, .fright, .floatr
51 float: right
52 margin: 0 0 5px 10px
53
54/* "Skip to Main Content" link
55 * ---------------------------
56 * This link useful for both visually impaired people and those with mobility impairments
57 * who cannot use a mouse. http://www.webaim.org/techniques/css/invisiblecontent/
58
59#skip a
60 &:link, &:hover, &:visited
61 position: absolute
62 left: -10000px
63 top: auto
64 width: 1px
65 height: 1px
66 overflow: hidden
67 &:active, &:focus
68 position: static
69 width: auto
70 height: auto
71
72/* bug fix with views 2 edit links.
73div.view div.views-admin-links
74 width: auto
75
76/* Rollover edit links for blocks.
77div.block
78 position: relative
79 .edit
80 display: none
81 position: absolute
82 right: -20px
83 top: -5px
84 z-index: 40
85 padding: 3px 8px 0
86 font-size: 10px
87 line-height: 16px
88 background-color: white
89 border: 1px solid #cccccc
90 /*let's get fancy!
91 -moz-border-radius: 3px
92 -webkit-border-radius: 3px
93 -moz-box-shadow: 0 1px 3px #888888
94 -webkit-box-shadow: -1px 1px 2px #666666
95 a
96 display: block
97 border: 0
98 padding: 0
99 margin: 0
100 &:hover .edit
101 display: block
102
103/* Wireframe styles.
104.with-wireframes
105 #header,
106 #content-top,
107 #content-top>*,
108 #content-header,
109 #content-header>*,
110 #content-area,
111 #content-area>*,
112 #content-bottom,
113 #content-bottom>*,
114 #primary,
115 #secondary,
116 #sidebar-left-inner,
117 #sidebar-right-inner,
118 .block
119 padding: 2px
120 border: 1px solid #bbbbbb
121 .node
122 border-bottom: 1px solid #bbbbbb
123 margin-bottom: 10px
124 .block
125 margin-bottom: 3px
126 #content-top,
127 #content-header,
128 #content-area,
129 #content-bottom
130 margin: 0 3px 3px
131 #footer
132 margin-top: 3px
133 padding: 2px
134 border: 1px solid #cccccc
135 &.with-navigation
136 #content,
137 .sidebar
138 margin-top: 50px
139 #navigation
140 height: 50px
0141
=== added file 'sass/ie6.sass'
--- sass/ie6.sass 1970-01-01 00:00:00 +0000
+++ sass/ie6.sass 2010-12-08 01:56:31 +0000
@@ -0,0 +1,51 @@
1/* Yes, we all hate IE6.
2
3/* Fix the admin page in ie6.
4div.admin
5 .left,
6 .right
7 width: 46%
8
9/* Tabs CSS - IE 5 and 6 don't support PNGs with alpha transparency.
10ul.primary,
11ul.secondary
12 width: 100%
13 width: auto
14 li a,
15 li a .tab
16 display: inline
17 display: inline-block
18
19ul.primary
20 li
21 a
22 background: url(../images/tabs/tab-left-ie6.png) no-repeat left -38px
23 .tab
24 background: url(../images/tabs/tab-right-ie6.png) no-repeat right -38px
25 &:hover
26 cursor: pointer
27 color: #555555
28 text-decoration: none
29 background-position: left -76px
30 .tab
31 background-position: right -76px
32 &.active
33 a, a:hover
34 background: url(../images/tabs/tab-left-ie6.png) no-repeat left 0
35 .tab
36 background: url(../images/tabs/tab-right-ie6.png) no-repeat right 0
37
38ul.secondary
39 li
40 a
41 &:hover
42 cursor: pointer
43 color: #555555
44 text-decoration: none
45
46/* Drupal admin tables
47#content tr.even,
48#content tr.odd
49 th,
50 td
51 border-bottom: 1px solid #cccccc
052
=== added file 'sass/ie7.sass'
--- sass/ie7.sass 1970-01-01 00:00:00 +0000
+++ sass/ie7.sass 2010-12-08 01:56:31 +0000
@@ -0,0 +1,17 @@
1/* Yes, we all hate IE7 too.
2
3/* Drupal admin tables.
4#content tr.even,
5#content tr.odd
6 th,
7 td
8 border-bottom: 1px solid #cccccc
9
10/* Minor fix for primary and secondary tabs in IE
11ul
12 .primary,
13 .secondary
14 li a:hover
15 cursor: pointer
16 color: #555555
17 text-decoration: none
018
=== added file 'sass/layout.sass'
--- sass/layout.sass 1970-01-01 00:00:00 +0000
+++ sass/layout.sass 2010-12-08 01:56:31 +0000
@@ -0,0 +1,97 @@
1// Import mixins and variables for use in sass document.
2@import _variables.sass
3@import _mixins.sass
4
5/* Layout
6 * ------
7 * Using a negative margin technique, adapted from ZEN. The page is loaded by this order:
8 *
9 * 1. Header
10 * 2. Content
11 * 3. Navigation menus
12 * 4. Sidebar Left
13 * 5. Sideabr Right
14
15/* remove 'auto' and the width to switch to a fluid width
16#page
17 width: 960px
18 margin: 0 auto
19
20/* Layout rules. (Disclaimer: do not change if you're not sure you know what you're doing.)
21#content
22 float: left
23 width: 100%
24 margin-right: -100%
25 padding: 0
26
27.sidebar
28 float: left
29
30#sidebar-second
31 float: right
32
33#footer
34 float: none
35 clear: both
36
37/* Layout Helpers
38#header,
39#footer,
40.mission,
41.breadcrumb,
42.node
43 clear: both
44
45/* Sidebars width
46 * --------------
47 * Changing the width of the sidebars is dead easy, just change the
48 * values below corresponding to the sidebar you want to modify.
49 * Make sure you keep negative values as negative values.
50 * For example, if I want to increase the width of the left sidebar
51 * to 300px, I would have to change each '190' to '300'.
52
53// Left value.
54.two-sidebars,
55.sidebar-left
56 .center
57 margin-left: $first_sidebar_width
58
59// Left value & negative left value.
60#sidebar-first
61 width: 190px
62 margin-right: -$first_sidebar_width
63
64.two-sidebars,
65.sidebar-right
66 .center
67 margin-right: $second_sidebar_width
68
69// Right value.
70#sidebar-second
71 width: $second_sidebar_width
72
73/* Columns Inner
74 * -------------
75 * You can change the padding inside the columns without changing the
76 * width of them by just usinbg the INNER div of each column
77.inner
78 padding: 0
79
80/* Navigation styles
81 * -----------------
82 * The navigation is loaded after the content, so we need to make space
83 * for it, equal to its height, so if you change the height of the navigation,
84 * remember to adapt the margin top of the content and sidebars.
85#navigation
86 float: left
87 margin-left: 0
88 margin-right: -100%
89 padding: 0
90 width: 100%
91 height: 40px
92
93// Navigation height.
94.with-navigation
95 #content,
96 .sidebar
97 margin-top: 40px
098
=== added file 'sass/print.sass'
--- sass/print.sass 1970-01-01 00:00:00 +0000
+++ sass/print.sass 2010-12-08 01:56:31 +0000
@@ -0,0 +1,38 @@
1/* Use this stylesheet for print styles only.
2*
3 background-color: transparent
4
5.sidebar,
6#navigation,
7#header-region,
8#search-theme-form,
9#footer,
10.breadcrumb,
11.tabs,
12.feed-icon,
13.links
14 display: none
15
16#page
17 width: 100%
18
19#content,
20#content #content-inner,
21.content,
22.title
23 margin: 20px 0
24 width: auto
25
26a
27 &:hover,
28 &:active,
29 &:link,
30 &:visited
31 color: black
32
33/* CSS2 selector to add visible href after links.
34#content a
35 &:link:after, &:visited:after
36 content: " (" attr(href) ") "
37 font-size: 0.8em
38 font-weight: normal
039
=== added file 'sass/style.sass'
--- sass/style.sass 1970-01-01 00:00:00 +0000
+++ sass/style.sass 2010-12-08 01:56:31 +0000
@@ -0,0 +1,163 @@
1/* Font styles.
2body
3 margin: 0
4 /* Setting up font size, leading and font family
5 * http://www.markboulton.co.uk/journal/comments/five-simple-steps-to-better-typography
6 font: 13px / 1.5em "Helvetica Neue", helvetica, Arial, sans-serif
7
8/* Links
9a
10 &:link, &:visited
11 color: blue
12 text-decoration: none
13
14a
15 &:hover, &:active
16 color: red
17 text-decoration: underline
18
19/* Titles.
20
21h1, h2, h3, h4, h5, h6
22 line-height: 1.3em
23
24h1
25 font-size: 2.2em
26 font-weight: 300
27 padding: 0 0 0.5em
28 margin: 0
29
30h2
31 font-size: 1.8em
32 font-weight: 300
33 margin-bottom: 0.75em
34
35h3
36 font-size: 1.4em
37 margin-bottom: 1em
38
39h4
40 font-size: 1.2em
41 margin-bottom: 0.8em
42
43h5
44 font-size: 1.1em
45 font-weight: 600
46 margin-bottom: 0
47
48h6
49 font-size: 1em
50 font-weight: bold
51
52/* Paragraph styles.
53p
54 margin: 0 0 1em 0
55
56/* List styles.
57ul, ol
58 margin-left: 0
59 padding-left: 2em
60
61/* Table styles.
62table
63 width: 99%
64
65tr.even,
66tr.odd
67 td
68 padding: 10px 5px
69
70tr.odd
71 background-color: white
72
73/* Code.
74pre, code, tt
75 font: 1em "andale mono", "lucida console", monospace
76 line-height: 1.5
77
78pre
79 background-color: #efefef
80 display: block
81 padding: 5px
82 margin: 5px 0
83 border: 1px solid #aaaaaa
84
85/* List styles.
86ul
87 list-style-type: disc
88 ul
89 list-style-type: circle
90 ul
91 list-style-type: square
92 ul
93 list-style-type: circle
94
95ol
96 list-style-type: decimal
97 ol
98 list-style-type: lower-alpha
99 ol
100 list-style-type: decimal
101
102/* Abbreviation.
103abbr
104 border-bottom: 1px dotted #666666
105 cursor: help
106 white-space: nowrap
107
108/* UI improvments.
109#edit-title
110 font-size: 24px
111 width: 98%
112
113#system-themes-form img
114 width: 100px
115
116.form-item .description
117 font-style: italic
118 line-height: 1.2em
119 font-size: 0.8em
120 margin-top: 5px
121 color: #777777
122
123#edit-delete
124 color: #cc0000
125
126/* Console, style from slate theme.
127div.messages
128 padding: 9px
129 margin: 1em 0
130 color: #003366
131 background: #bbddff
132 border: 1px solid #aaccee
133
134div.warning
135 color: #884400
136 background: #ffee66
137 border-color: #eedd55
138
139div.error
140 color: white
141 background: #ee6633
142 border-color: #dd5522
143
144div.status
145 color: #336600
146 background: #ccff88
147 border-color: #bbee77
148
149/* Region Colors. delete when starting a new theme.
150#header, #footer
151 background: #efefef
152
153#sidebar-first
154 background: #e7edff
155
156#sidebar-second
157 background: #ffd075
158
159#navigation
160 background: #feffa5
161
162// Import custom styles.
163@import _custom.sass
0\ No newline at end of file164\ No newline at end of file
1165
=== added file 'sass/tabs.sass'
--- sass/tabs.sass 1970-01-01 00:00:00 +0000
+++ sass/tabs.sass 2010-12-08 01:56:31 +0000
@@ -0,0 +1,92 @@
1/* Tabs CSS
2 * --------
3 * Adds styles for the primary and secondary tabs.
4 *
5 * Compare this with default CSS found in the system module's stylesheet (a copy
6 * of which is in drupal5-reference.css, line 510.)
7
8div.tabs
9 margin: 0 0 5px 0
10
11ul.primary, ul.secondary
12 width: 99%
13
14ul.primary
15 margin: 0
16 padding: 0 0 0 10px
17 border-width: 0
18 list-style: none
19 white-space: nowrap
20 line-height: normal
21 background: url(../images/tabs/tab-bar.png) repeat-x left bottom
22 li
23 float: left
24 margin: 0
25 padding: 0
26 &.active
27 a, a:hover
28 border-width: 0
29 color: black
30 background-color: transparent
31 background: url(../images/tabs/tab-left.png) no-repeat left 0
32 .tab
33 background: url(../images/tabs/tab-right.png) no-repeat right 0
34 a
35 display: block
36 height: 24px
37 margin: 0
38 padding: 0 0 0 5px
39 border-width: 0
40 font-weigh: bold
41 text-decoration: none
42 color: #777777
43 background-color: transparent
44 background: url(../images/tabs/tab-left.png) no-repeat left -38px
45 &:hover
46 border-width: 0
47 background-color: transparent
48 background: url(../images/tabs/tab-left.png) no-repeat left -76px
49 .tab
50 background: url(../images/tabs/tab-right.png) no-repeat right -76px
51 .tab
52 display: block
53 height: 20px
54 margin: 0
55 padding: 4px 13px 0 6px
56 border-width: 0
57 line-height: 20px
58 background: url(../images/tabs/tab-right.png) no-repeat right -38px
59
60ul.secondary
61 margin: 0
62 padding: 0 0 0 5px
63 border-bottom: 1px solid silver
64 list-style: none
65 white-space: nowrap
66 background: url(../images/tabs/tab-secondary-bg.png) repeat-x left bottom
67 li
68 float: left
69 margin: 0 5px 0 0
70 padding: 5px 0
71 border-right: none
72 a
73 display: block
74 height: 24px
75 margin: 0
76 padding: 0
77 border: 1px solid silver
78 text-decoration: none
79 color: #777777
80 background: url(../images/tabs/tab-secondary.png) repeat-x left -56px
81 .active, .active:hover
82 border: 1px solid silver
83 color: black
84 background: url(../images/tabs/tab-secondary.png) repeat-x left top
85 &:hover
86 background: url(../images/tabs/tab-secondary.png) repeat-x left bottom
87 .tab
88 display: block
89 height: 18px
90 margin: 0
91 padding: 3px 8px
92 line-height: 18px
093
=== added file 'template.php'
--- template.php 1970-01-01 00:00:00 +0000
+++ template.php 2010-12-08 01:56:31 +0000
@@ -0,0 +1,426 @@
1<?php
2
3// Auto-rebuild the theme registry during theme development.
4if (theme_get_setting('basic_rebuild_registry')) {
5 drupal_rebuild_theme_registry();
6}
7
8// Add Zen Tabs styles
9if (theme_get_setting('basic_zen_tabs')) {
10 drupal_add_css( drupal_get_path('theme', 'basic') .'/css/tabs.css', 'theme', 'screen');
11}
12
13/*
14 * This function creates the body classes that are relative to each page
15 *
16 * @param $vars
17 * A sequential array of variables to pass to the theme template.
18 * @param $hook
19 * The name of the theme function being called ("page" in this case.)
20 */
21
22function basic_preprocess_page(&$vars, $hook) {
23
24 // Don't display empty help from node_help().
25 if ($vars['help'] == "<div class=\"help\"><p></p>\n</div>") {
26 $vars['help'] = '';
27 }
28
29 // Classes for body element. Allows advanced theming based on context
30 // (home page, node of certain type, etc.)
31 $body_classes = array($vars['body_classes']);
32 if (user_access('administer blocks')) {
33 $body_classes[] = 'admin';
34 }
35 if (theme_get_setting('basic_wireframe')) {
36 $body_classes[] = 'with-wireframes'; // Optionally add the wireframes style.
37 }
38 if (!empty($vars['primary_links']) or !empty($vars['secondary_links'])) {
39 $body_classes[] = 'with-navigation';
40 }
41 if (!empty($vars['secondary_links'])) {
42 $body_classes[] = 'with-secondary';
43 }
44 if (module_exists('taxonomy') && $vars['node']->nid) {
45 foreach (taxonomy_node_get_terms($vars['node']) as $term) {
46 $body_classes[] = 'tax-' . eregi_replace('[^a-z0-9]', '-', $term->name);
47 }
48 }
49 if (!$vars['is_front']) {
50 // Add unique classes for each page and website section
51 $path = drupal_get_path_alias($_GET['q']);
52 list($section, ) = explode('/', $path, 2);
53 $body_classes[] = basic_id_safe('page-'. $path);
54 $body_classes[] = basic_id_safe('section-'. $section);
55
56 if (arg(0) == 'node') {
57 if (arg(1) == 'add') {
58 if ($section == 'node') {
59 array_pop($body_classes); // Remove 'section-node'
60 }
61 $body_classes[] = 'section-node-add'; // Add 'section-node-add'
62 }
63 elseif (is_numeric(arg(1)) && (arg(2) == 'edit' || arg(2) == 'delete')) {
64 if ($section == 'node') {
65 array_pop($body_classes); // Remove 'section-node'
66 }
67 $body_classes[] = 'section-node-'. arg(2); // Add 'section-node-edit' or 'section-node-delete'
68 }
69 }
70 }
71 /* // Check what the user's browser is and add it as a body class
72 // DEACTIVATED - Only works if page cache is deactivated
73 $user_agent = $_SERVER['HTTP_USER_AGENT'];
74 if($user_agent) {
75 if (strpos($user_agent, 'MSIE')) {
76 $body_classes[] = 'browser-ie';
77 } else if (strpos($user_agent, 'MSIE 6.0')) {
78 $body_classes[] = 'browser-ie6';
79 } else if (strpos($user_agent, 'MSIE 7.0')) {
80 $body_classes[] = 'browser-ie7';
81 } else if (strpos($user_agent, 'MSIE 8.0')) {
82 $body_classes[] = 'browser-ie8';
83 } else if (strpos($user_agent, 'Firefox/2')) {
84 $body_classes[] = 'browser-firefox2';
85 } else if (strpos($user_agent, 'Firefox/3')) {
86 $body_classes[] = 'browser-firefox3';
87 }else if (strpos($user_agent, 'Safari')) {
88 $body_classes[] = 'browser-safari';
89 } else if (strpos($user_agent, 'Opera')) {
90 $body_classes[] = 'browser-opera';
91 }
92 }
93
94 /* Add template suggestions based on content type
95 * You can use a different page template depending on the
96 * content type or the node ID
97 * For example, if you wish to have a different page template
98 * for the story content type, just create a page template called
99 * page-type-story.tpl.php
100 * For a specific node, use the node ID in the name of the page template
101 * like this : page-node-22.tpl.php (if the node ID is 22)
102 */
103
104 if ($vars['node']->type != "") {
105 $vars['template_files'][] = "page-type-" . $vars['node']->type;
106 }
107 if ($vars['node']->nid != "") {
108 $vars['template_files'][] = "page-node-" . $vars['node']->nid;
109 }
110 $vars['body_classes'] = implode(' ', $body_classes); // Concatenate with spaces
111}
112
113/*
114 * This function creates the NODES classes, like 'node-unpublished' for nodes
115 * that are not published, or 'node-mine' for node posted by the connected user...
116 *
117 * @param $vars
118 * A sequential array of variables to pass to the theme template.
119 * @param $hook
120 * The name of the theme function being called ("node" in this case.)
121 */
122
123function basic_preprocess_node(&$vars, $hook) {
124 // Special classes for nodes
125 $classes = array('node');
126 if ($vars['sticky']) {
127 $classes[] = 'sticky';
128 }
129 // support for Skinr Module
130 if (module_exists('skinr')) {
131 $classes[] = $vars['skinr'];
132 }
133 if (!$vars['status']) {
134 $classes[] = 'node-unpublished';
135 $vars['unpublished'] = TRUE;
136 }
137 else {
138 $vars['unpublished'] = FALSE;
139 }
140 if ($vars['uid'] && $vars['uid'] == $GLOBALS['user']->uid) {
141 $classes[] = 'node-mine'; // Node is authored by current user.
142 }
143 if ($vars['teaser']) {
144 $classes[] = 'node-teaser'; // Node is displayed as teaser.
145 }
146 $classes[] = 'clearfix';
147
148 // Class for node type: "node-type-page", "node-type-story", "node-type-my-custom-type", etc.
149 $classes[] = basic_id_safe('node-type-' . $vars['type']);
150 $vars['classes'] = implode(' ', $classes); // Concatenate with spaces
151}
152
153function basic_preprocess_comment_wrapper(&$vars) {
154 $classes = array();
155 $classes[] = 'comment-wrapper';
156
157 // Provide skinr support.
158 if (module_exists('skinr')) {
159 $classes[] = $vars['skinr'];
160 }
161 $vars['classes'] = implode(' ', $classes);
162}
163
164
165/*
166 * This function create the EDIT LINKS for blocks and menus blocks.
167 * When overing a block (except in IE6), some links appear to edit
168 * or configure the block. You can then edit the block, and once you are
169 * done, brought back to the first page.
170 *
171 * @param $vars
172 * A sequential array of variables to pass to the theme template.
173 * @param $hook
174 * The name of the theme function being called ("block" in this case.)
175 */
176
177function basic_preprocess_block(&$vars, $hook) {
178 $block = $vars['block'];
179
180 // special block classes
181 $classes = array('block');
182 $classes[] = basic_id_safe('block-' . $vars['block']->module);
183 $classes[] = basic_id_safe('block-' . $vars['block']->region);
184 $classes[] = basic_id_safe('block-id-' . $vars['block']->bid);
185 $classes[] = 'clearfix';
186
187 // support for Skinr Module
188 if (module_exists('skinr')) {
189 $classes[] = $vars['skinr'];
190 }
191
192 $vars['block_classes'] = implode(' ', $classes); // Concatenate with spaces
193
194 if (theme_get_setting('basic_block_editing') && user_access('administer blocks')) {
195 // Display 'edit block' for custom blocks.
196 if ($block->module == 'block') {
197 $edit_links[] = l('<span>' . t('edit block') . '</span>', 'admin/build/block/configure/' . $block->module . '/' . $block->delta,
198 array(
199 'attributes' => array(
200 'title' => t('edit the content of this block'),
201 'class' => 'block-edit',
202 ),
203 'query' => drupal_get_destination(),
204 'html' => TRUE,
205 )
206 );
207 }
208 // Display 'configure' for other blocks.
209 else {
210 $edit_links[] = l('<span>' . t('configure') . '</span>', 'admin/build/block/configure/' . $block->module . '/' . $block->delta,
211 array(
212 'attributes' => array(
213 'title' => t('configure this block'),
214 'class' => 'block-config',
215 ),
216 'query' => drupal_get_destination(),
217 'html' => TRUE,
218 )
219 );
220 }
221 // Display 'edit menu' for Menu blocks.
222 if (($block->module == 'menu' || ($block->module == 'user' && $block->delta == 1)) && user_access('administer menu')) {
223 $menu_name = ($block->module == 'user') ? 'navigation' : $block->delta;
224 $edit_links[] = l('<span>' . t('edit menu') . '</span>', 'admin/build/menu-customize/' . $menu_name,
225 array(
226 'attributes' => array(
227 'title' => t('edit the menu that defines this block'),
228 'class' => 'block-edit-menu',
229 ),
230 'query' => drupal_get_destination(),
231 'html' => TRUE,
232 )
233 );
234 }
235 // Display 'edit menu' for Menu block blocks.
236 elseif ($block->module == 'menu_block' && user_access('administer menu')) {
237 list($menu_name, ) = split(':', variable_get("menu_block_{$block->delta}_parent", 'navigation:0'));
238 $edit_links[] = l('<span>' . t('edit menu') . '</span>', 'admin/build/menu-customize/' . $menu_name,
239 array(
240 'attributes' => array(
241 'title' => t('edit the menu that defines this block'),
242 'class' => 'block-edit-menu',
243 ),
244 'query' => drupal_get_destination(),
245 'html' => TRUE,
246 )
247 );
248 }
249 $vars['edit_links_array'] = $edit_links;
250 $vars['edit_links'] = '<div class="edit">' . implode(' ', $edit_links) . '</div>';
251 }
252 }
253
254/*
255 * Override or insert PHPTemplate variables into the block templates.
256 *
257 * @param $vars
258 * An array of variables to pass to the theme template.
259 * @param $hook
260 * The name of the template being rendered ("comment" in this case.)
261 */
262
263function basic_preprocess_comment(&$vars, $hook) {
264 // Add an "unpublished" flag.
265 $vars['unpublished'] = ($vars['comment']->status == COMMENT_NOT_PUBLISHED);
266
267 // If comment subjects are disabled, don't display them.
268 if (variable_get('comment_subject_field_' . $vars['node']->type, 1) == 0) {
269 $vars['title'] = '';
270 }
271
272 // Special classes for comments.
273 $classes = array('comment');
274 if ($vars['comment']->new) {
275 $classes[] = 'comment-new';
276 }
277 $classes[] = $vars['status'];
278 $classes[] = $vars['zebra'];
279 if ($vars['id'] == 1) {
280 $classes[] = 'first';
281 }
282 if ($vars['id'] == $vars['node']->comment_count) {
283 $classes[] = 'last';
284 }
285 if ($vars['comment']->uid == 0) {
286 // Comment is by an anonymous user.
287 $classes[] = 'comment-by-anon';
288 }
289 else {
290 if ($vars['comment']->uid == $vars['node']->uid) {
291 // Comment is by the node author.
292 $classes[] = 'comment-by-author';
293 }
294 if ($vars['comment']->uid == $GLOBALS['user']->uid) {
295 // Comment was posted by current user.
296 $classes[] = 'comment-mine';
297 }
298 }
299 $vars['classes'] = implode(' ', $classes);
300}
301
302/*
303 * Customize the PRIMARY and SECONDARY LINKS, to allow the admin tabs to work on all browsers
304 * An implementation of theme_menu_item_link()
305 *
306 * @param $link
307 * array The menu item to render.
308 * @return
309 * string The rendered menu item.
310 */
311
312function basic_menu_item_link($link) {
313 if (empty($link['localized_options'])) {
314 $link['localized_options'] = array();
315 }
316
317 // If an item is a LOCAL TASK, render it as a tab
318 if ($link['type'] & MENU_IS_LOCAL_TASK) {
319 $link['title'] = '<span class="tab">' . check_plain($link['title']) . '</span>';
320 $link['localized_options']['html'] = TRUE;
321 }
322
323 return l($link['title'], $link['href'], $link['localized_options']);
324}
325
326
327/*
328 * Duplicate of theme_menu_local_tasks() but adds clear-block to tabs.
329 */
330
331function basic_menu_local_tasks() {
332 $output = '';
333 if ($primary = menu_primary_local_tasks()) {
334 if(menu_secondary_local_tasks()) {
335 $output .= '<ul class="tabs primary with-secondary clearfix">' . $primary . '</ul>';
336 }
337 else {
338 $output .= '<ul class="tabs primary clearfix">' . $primary . '</ul>';
339 }
340 }
341 if ($secondary = menu_secondary_local_tasks()) {
342 $output .= '<ul class="tabs secondary clearfix">' . $secondary . '</ul>';
343 }
344 return $output;
345}
346
347/*
348 * Add custom classes to menu item
349 */
350
351function basic_menu_item($link, $has_children, $menu = '', $in_active_trail = FALSE, $extra_class = NULL) {
352 $class = ($menu ? 'expanded' : ($has_children ? 'collapsed' : 'leaf'));
353 if (!empty($extra_class)) {
354 $class .= ' '. $extra_class;
355 }
356 if ($in_active_trail) {
357 $class .= ' active-trail';
358 }
359#New line added to get unique classes for each menu item
360 $css_class = basic_id_safe(str_replace(' ', '_', strip_tags($link)));
361 return '<li class="'. $class . ' ' . $css_class . '">' . $link . $menu ."</li>\n";
362}
363
364/*
365 * Converts a string to a suitable html ID attribute.
366 *
367 * http://www.w3.org/TR/html4/struct/global.html#h-7.5.2 specifies what makes a
368 * valid ID attribute in HTML. This function:
369 *
370 * - Ensure an ID starts with an alpha character by optionally adding an 'n'.
371 * - Replaces any character except A-Z, numbers, and underscores with dashes.
372 * - Converts entire string to lowercase.
373 *
374 * @param $string
375 * The string
376 * @return
377 * The converted string
378 */
379
380function basic_id_safe($string) {
381 // Replace with dashes anything that isn't A-Z, numbers, dashes, or underscores.
382 $string = strtolower(preg_replace('/[^a-zA-Z0-9_-]+/', '-', $string));
383 // If the first character is not a-z, add 'n' in front.
384 if (!ctype_lower($string{0})) { // Don't use ctype_alpha since its locale aware.
385 $string = 'id'. $string;
386 }
387 return $string;
388}
389
390/**
391* Return a themed breadcrumb trail.
392*
393* @param $breadcrumb
394* An array containing the breadcrumb links.
395* @return
396* A string containing the breadcrumb output.
397*/
398function basic_breadcrumb($breadcrumb) {
399 // Determine if we are to display the breadcrumb.
400 $show_breadcrumb = theme_get_setting('basic_breadcrumb');
401 if ($show_breadcrumb == 'yes' || $show_breadcrumb == 'admin' && arg(0) == 'admin') {
402
403 // Optionally get rid of the homepage link.
404 $show_breadcrumb_home = theme_get_setting('basic_breadcrumb_home');
405 if (!$show_breadcrumb_home) {
406 array_shift($breadcrumb);
407 }
408
409 // Return the breadcrumb with separators.
410 if (!empty($breadcrumb)) {
411 $breadcrumb_separator = theme_get_setting('basic_breadcrumb_separator');
412 $trailing_separator = $title = '';
413 if (theme_get_setting('basic_breadcrumb_title')) {
414 if ($title = drupal_get_title()) {
415 $trailing_separator = $breadcrumb_separator;
416 }
417 }
418 elseif (theme_get_setting('basic_breadcrumb_trailing')) {
419 $trailing_separator = $breadcrumb_separator;
420 }
421 return '<div class="breadcrumb">' . implode($breadcrumb_separator, $breadcrumb) . "$trailing_separator$title</div>";
422 }
423 }
424 // Otherwise, return an empty string.
425 return '';
426}
0\ No newline at end of file427\ No newline at end of file
1428
=== added directory 'templates'
=== added file 'templates/block.tpl.php'
--- templates/block.tpl.php 1970-01-01 00:00:00 +0000
+++ templates/block.tpl.php 2010-12-08 01:56:31 +0000
@@ -0,0 +1,15 @@
1<div id="block-<?php print $block->module .'-'. $block->delta ?>" class="<?php print $block_classes . ' ' . $block_zebra; ?>">
2 <div class="block-inner">
3
4 <?php if (!empty($block->subject)): ?>
5 <h3 class="title block-title"><?php print $block->subject; ?></h3>
6 <?php endif; ?>
7
8 <div class="content">
9 <?php print $block->content; ?>
10 </div>
11
12 <?php print $edit_links; ?>
13
14 </div> <!-- /block-inner -->
15</div> <!-- /block -->
0\ No newline at end of file16\ No newline at end of file
117
=== added file 'templates/comment-wrapper.tpl.php'
--- templates/comment-wrapper.tpl.php 1970-01-01 00:00:00 +0000
+++ templates/comment-wrapper.tpl.php 2010-12-08 01:56:31 +0000
@@ -0,0 +1,10 @@
1<?php if ($content): ?>
2 <div id="comments" class="<?php print $classes; ?>">
3 <?php if ($node->comment_count != 0): ?>
4 <h2 id="comments-title">
5 <?php print t('Comments'); ?>
6 </h2>
7 <?php endif; ?>
8 <?php print $content; ?>
9 </div>
10<?php endif; ?>
0\ No newline at end of file11\ No newline at end of file
112
=== added file 'templates/comment.tpl.php'
--- templates/comment.tpl.php 1970-01-01 00:00:00 +0000
+++ templates/comment.tpl.php 2010-12-08 01:56:31 +0000
@@ -0,0 +1,34 @@
1<div class="<?php print $classes .' '. $zebra; ?> clearfix">
2 <div class="comment-inner">
3
4 <?php if ($title): ?>
5 <h3 class="title"><?php print $title ?></h3>
6 <?php endif; ?>
7
8 <?php if ($new) : ?>
9 <span class="new"><?php print drupal_ucfirst($new); ?></span>
10 <?php endif; ?>
11
12 <?php print $picture; ?>
13
14 <div class="submitted">
15 <?php print $submitted; ?>
16 </div>
17
18 <div class="content">
19 <?php print $content ?>
20 <?php if ($signature): ?>
21 <div class="user-signature clearfix">
22 <?php print $signature; ?>
23 </div>
24 <?php endif; ?>
25 </div>
26
27 <?php if ($links): ?>
28 <div class="links">
29 <?php print $links; ?>
30 </div>
31 <?php endif; ?>
32
33 </div> <!-- /comment-inner -->
34</div> <!-- /comment -->
0\ No newline at end of file35\ No newline at end of file
136
=== added file 'templates/node.tpl.php'
--- templates/node.tpl.php 1970-01-01 00:00:00 +0000
+++ templates/node.tpl.php 2010-12-08 01:56:31 +0000
@@ -0,0 +1,27 @@
1<div class="node <?php print $classes; ?>" id="node-<?php print $node->nid; ?>">
2 <div class="node-inner">
3
4 <?php if (!$page): ?>
5 <h2 class="title"><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
6 <?php endif; ?>
7
8 <?php print $picture; ?>
9
10 <?php if ($submitted): ?>
11 <span class="submitted"><?php print $submitted; ?></span>
12 <?php endif; ?>
13
14 <div class="content">
15 <?php print $content; ?>
16 </div>
17
18 <?php if ($terms): ?>
19 <div class="taxonomy"><?php print $terms; ?></div>
20 <?php endif;?>
21
22 <?php if ($links): ?>
23 <div class="links"> <?php print $links; ?></div>
24 <?php endif; ?>
25
26 </div> <!-- /node-inner -->
27</div> <!-- /node-->
0\ No newline at end of file28\ No newline at end of file
129
=== added file 'templates/page.tpl.php'
--- templates/page.tpl.php 1970-01-01 00:00:00 +0000
+++ templates/page.tpl.php 2010-12-08 01:56:31 +0000
@@ -0,0 +1,134 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
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 ?>">
4 <head>
5
6 <title><?php print $head_title; ?></title>
7 <?php print $head; ?>
8 <?php print $styles; ?>
9 <!--[if lte IE 6]><style type="text/css" media="all">@import "<?php print $base_path . path_to_theme() ?>/css/ie6.css"</style><![endif]-->
10 <!--[if IE 7]><style type="text/css" media="all">@import "<?php print $base_path . path_to_theme() ?>/css/ie7.css"</style><![endif]-->
11 <?php print $scripts; ?>
12 </head>
13
14 <body class="<?php print $body_classes; ?>">
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>
16 <div id="page">
17
18 <!-- ______________________ HEADER _______________________ -->
19
20 <div id="header">
21 <div id="logo">
22 <a href="/index.php"><img width="289" height="100" border="0" title="" alt="" src="themes/basic/images/logo2.png"></a>
23 </div>
24 <div class="top_phone">
25 <img width="49" height="32" class="left" title="" alt="" src="themes/basic/images/phone_arrows.png">
26 <div class="phone_text">
27 The Open Source<br>Democracy Foundation
28 </div>
29 </div>
30 <div id="menu_tab">
31 <ul class="menu">
32 <li><a class="nav nav_selected" id="home_link" href="/index.php">Home</a></li>
33 <li><a class="nav" id="home_link" href="/wp">News</a></li>
34 <li><a class="nav" id="about_link" href="/about.php">About</a></li>
35 <!--li><a target="new" id='updates_link' href="http://www.r-pac.org/blog" class="nav">Updates</a></li-->
36
37 <li><a class="nav" id="action_link" href="/action.php">Action</a></li>
38 <!--li><a href="/policy.php" id='policy_link' class="nav">Policy</a></li-->
39 <li><a class="nav" id="help_link" href="/volunteer.php">Volunteer</a></li>
40 <li><a class="nav" id="contact_link" href="/contact.php">Contact</a></li>
41 </ul>
42 </div>
43 </div><!-- Header -->
44
45 <!-- ______________________ MAIN _______________________ -->
46
47 <div id="main" class="clearfix">
48
49 <div id="content">
50 <div id="content-inner" class="inner column center">
51
52 <?php if ($content_top): ?>
53 <div id="content-top">
54 <?php print $content_top; ?>
55 </div> <!-- /#content-top -->
56 <?php endif; ?>
57
58 <?php if ($breadcrumb || $title || $mission || $messages || $help || $tabs): ?>
59 <div id="content-header">
60
61 <?php print $breadcrumb; ?>
62
63 <?php if ($title): ?>
64 <h1 class="title"><?php print $title; ?></h1>
65 <?php endif; ?>
66
67 <?php if ($mission): ?>
68 <div id="mission"><?php print $mission; ?></div>
69 <?php endif; ?>
70
71 <?php print $messages; ?>
72
73 <?php print $help; ?>
74
75 <?php if ($tabs): ?>
76 <div class="tabs"><?php print $tabs; ?></div>
77 <?php endif; ?>
78
79 </div> <!-- /#content-header -->
80 <?php endif; ?>
81
82 <div id="content-area">
83 <?php print $content; ?>
84 </div> <!-- /#content-area -->
85
86 <?php print $feed_icons; ?>
87
88 <?php if ($content_bottom): ?>
89 <div id="content-bottom">
90 <?php print $content_bottom; ?>
91 </div><!-- /#content-bottom -->
92 <?php endif; ?>
93
94 </div>
95 </div> <!-- /content-inner /content -->
96
97 <?php if (!empty($primary_links) || !empty($secondary_links)): ?>
98 <div id="navigation" class="menu <?php if (!empty($primary_links)) { print "with-main-menu"; } if (!empty($secondary_links)) { print " with-sub-menu"; } ?>">
99 <?php if (!empty($primary_links)){ print theme('links', $primary_links, array('id' => 'primary', 'class' => 'links main-menu')); } ?>
100 <?php if (!empty($secondary_links)){ print theme('links', $secondary_links, array('id' => 'secondary', 'class' => 'links sub-menu')); } ?>
101 </div> <!-- /navigation -->
102 <?php endif; ?>
103
104 <?php if ($left): ?>
105 <div id="sidebar-first" class="column sidebar first">
106 <div id="sidebar-first-inner" class="inner">
107 <?php print $left; ?>
108 </div>
109 </div>
110 <?php endif; ?> <!-- /sidebar-left -->
111
112 <?php if ($right): ?>
113 <div id="sidebar-second" class="column sidebar second">
114 <div id="sidebar-second-inner" class="inner">
115 <?php print $right; ?>
116 </div>
117 </div>
118 <?php endif; ?> <!-- /sidebar-second -->
119
120 </div> <!-- /main -->
121
122 <!-- ______________________ FOOTER _______________________ -->
123
124 <?php if(!empty($footer_message) || !empty($footer_block)): ?>
125 <div id="footer">
126 <?php print $footer_message; ?>
127 <?php print $footer_block; ?>
128 </div> <!-- /footer -->
129 <?php endif; ?>
130
131 </div> <!-- /page -->
132 <?php print $closure; ?>
133 </body>
134</html>
0\ No newline at end of file135\ No newline at end of file
1136
=== added file 'theme-settings.php'
--- theme-settings.php 1970-01-01 00:00:00 +0000
+++ theme-settings.php 2010-12-08 01:56:31 +0000
@@ -0,0 +1,158 @@
1<?php
2
3function basic_settings($saved_settings, $subtheme_defaults = array()) {
4
5 // Get the default values from the .info file.
6 $defaults = basic_theme_get_default_settings('basic');
7
8 // Merge the saved variables and their default values.
9 $settings = array_merge($defaults, $saved_settings);
10
11 /*
12 * Create the form using Forms API
13 */
14
15 $form['basic_zen_tabs'] = array(
16 '#type' => 'checkbox',
17 '#title' => t('Use Zen Tabs'),
18 '#default_value' => $settings['basic_zen_tabs'],
19 '#description' => t('Replace the default tabs by the Zen Tabs.'),
20 '#prefix' => '<strong>' . t('Zen Tabs:') . '</strong>',
21 );
22
23 $form['basic_breadcrumb'] = array(
24 '#type' => 'fieldset',
25 '#title' => t('Breadcrumb settings'),
26 '#attributes' => array('id' => 'basic-breadcrumb'),
27 );
28 $form['basic_breadcrumb']['basic_breadcrumb'] = array(
29 '#type' => 'select',
30 '#title' => t('Display breadcrumb'),
31 '#default_value' => $settings['basic_breadcrumb'],
32 '#options' => array(
33 'yes' => t('Yes'),
34 'admin' => t('Only in admin section'),
35 'no' => t('No'),
36 ),
37 );
38 $form['basic_breadcrumb']['basic_breadcrumb_separator'] = array(
39 '#type' => 'textfield',
40 '#title' => t('Breadcrumb separator'),
41 '#description' => t('Text only. Don’t forget to include spaces.'),
42 '#default_value' => $settings['basic_breadcrumb_separator'],
43 '#size' => 5,
44 '#maxlength' => 10,
45 '#prefix' => '<div id="div-basic-breadcrumb-collapse">', // jquery hook to show/hide optional widgets
46 );
47 $form['basic_breadcrumb']['basic_breadcrumb_home'] = array(
48 '#type' => 'checkbox',
49 '#title' => t('Show home page link in breadcrumb'),
50 '#default_value' => $settings['basic_breadcrumb_home'],
51 );
52 $form['basic_breadcrumb']['basic_breadcrumb_trailing'] = array(
53 '#type' => 'checkbox',
54 '#title' => t('Append a separator to the end of the breadcrumb'),
55 '#default_value' => $settings['basic_breadcrumb_trailing'],
56 '#description' => t('Useful when the breadcrumb is placed just before the title.'),
57 );
58 $form['basic_breadcrumb']['basic_breadcrumb_title'] = array(
59 '#type' => 'checkbox',
60 '#title' => t('Append the content title to the end of the breadcrumb'),
61 '#default_value' => $settings['basic_breadcrumb_title'],
62 '#description' => t('Useful when the breadcrumb is not placed just before the title.'),
63 '#suffix' => '</div>', // #div-zen-breadcrumb
64 );
65
66 $form['basic_wireframe'] = array(
67 '#type' => 'checkbox',
68 '#title' => t('Display borders around main layout elements'),
69 '#default_value' => $settings['basic_wireframe'],
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')),
71 '#prefix' => '<strong>' . t('Wireframes:') . '</strong>',
72 );
73
74 $form['basic_block_editing'] = array(
75 '#type' => 'checkbox',
76 '#title' => t('Show block editing on hover'),
77 '#description' => t('When hovering over a block, privileged users will see block editing links.'),
78 '#default_value' => $settings['basic_block_editing'],
79 '#prefix' => '<strong>' . t('Block Edit Links:') . '</strong>',
80 );
81
82 $form['themedev']['basic_rebuild_registry'] = array(
83 '#type' => 'checkbox',
84 '#title' => t('Rebuild theme registry on every page.'),
85 '#default_value' => $settings['basic_rebuild_registry'],
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')),
87 '#prefix' => '<div id="div-basic-registry"><strong>' . t('Theme registry:') . '</strong>',
88 '#suffix' => '</div>',
89 );
90
91 // Return the form
92 return $form;
93}
94
95
96function _basic_theme(&$existing, $type, $theme, $path) {
97 // Each theme has two possible preprocess functions that can act on a hook.
98 // This function applies to every hook.
99 $functions[0] = $theme . '_preprocess';
100 // Inspect the preprocess functions for every hook in the theme registry.
101 // @TODO: When PHP 5 becomes required (Basic 7.x), use the following faster
102 // implementation: foreach ($existing AS $hook => &$value) {}
103 foreach (array_keys($existing) AS $hook) {
104 // Each theme has two possible preprocess functions that can act on a hook.
105 // This function only applies to this hook.
106 $functions[1] = $theme . '_preprocess_' . $hook;
107 foreach ($functions AS $key => $function) {
108 // Add any functions that are not already in the registry.
109 if (function_exists($function) && !in_array($function, $existing[$hook]['preprocess functions'])) {
110 // We add the preprocess function to the end of the existing list.
111 $existing[$hook]['preprocess functions'][] = $function;
112 }
113 }
114 }
115
116 // Since we are rebuilding the theme registry and the theme settings' default
117 // values may have changed, make sure they are saved in the database properly.
118 basic_theme_get_default_settings($theme);
119
120 // If we are auto-rebuilding the theme registry, warn about feature.
121 if (theme_get_setting('basic_rebuild_registry')) {
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');
123 }
124
125 // Since we modify the $existing cache directly, return nothing.
126 return array();
127}
128
129
130function basic_theme_get_default_settings($theme) {
131 $themes = list_themes();
132
133 // Get the default values from the .info file.
134 $defaults = !empty($themes[$theme]->info['settings']) ? $themes[$theme]->info['settings'] : array();
135
136 if (!empty($defaults)) {
137 // Get the theme settings saved in the database.
138 $settings = theme_get_settings($theme);
139 // Don't save the toggle_node_info_ variables.
140 if (module_exists('node')) {
141 foreach (node_get_types() as $type => $name) {
142 unset($settings['toggle_node_info_' . $type]);
143 }
144 }
145 // Save default theme settings.
146 variable_set(
147 str_replace('/', '_', 'theme_' . $theme . '_settings'),
148 array_merge($defaults, $settings)
149 );
150 // If the active theme has been loaded, force refresh of Drupal internals.
151 if (!empty($GLOBALS['theme_key'])) {
152 theme_get_setting('', TRUE);
153 }
154 }
155
156 // Return the default settings.
157 return $defaults;
158}

Subscribers

People subscribed via source and target branches