/[drupal]/contributions/themes/tapestry/settings.php
ViewVC logotype

Contents of /contributions/themes/tapestry/settings.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Fri Feb 22 03:15:47 2008 UTC (21 months ago) by roopletheme
Branch: MAIN
CVS Tags: DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
File MIME type: text/x-php
Initial Release for Drupal 5.0
1 <?php
2 // $Id: settings.php 11 2008-02-21 13:24:51Z bill $
3 // www.roopletheme.com
4
5 function phptemplate_settings($saved_settings) {
6
7 $settings = theme_get_settings('tapestry');
8
9 $defaults = array(
10 'tapestry_style' => 'gerberdaisy',
11 'tapestry_usefixedwidth' => 1,
12 'tapestry_suckerfishmenus' => 0,
13 'tapestry_suckerfishalign' => 'right',
14 'tapestry_fixedwidth' => '850',
15 'tapestry_fontfamily' => 0,
16 'tapestry_customfont' => '',
17 'tapestry_uselocalcontent' => '0',
18 'tapestry_localcontentfile' => '',
19 'tapestry_breadcrumb' => 0,
20 'tapestry_themelogo' => 0,
21 'tapestry_useicons' => 0,
22 'tapestry_ie6icons' => 1,
23 'tapestry_leftsidebarwidth' => '210',
24 'tapestry_rightsidebarwidth' => '210',
25 'tapestry_sidebarmode' => 'center',
26 'tapestry_outsidebar' => 'left',
27 'tapestry_outsidebarwidth' => '180',
28 'tapestry_iepngfix' => 0,
29 );
30
31 $settings = array_merge($defaults, $settings);
32
33 $form['tapestry_style'] = array(
34 '#type' => 'select',
35 '#title' => t('Style'),
36 '#default_value' => $settings['tapestry_style'],
37 '#options' => array(
38 'allstar' => t('All Star'),
39 'bluecollar' => t('Bluecollar'),
40 'bogart' => t('Bogart'),
41 'bizcasual' => t('Business Casual'),
42 'cactusbloom' => t('Cactus Bloom'),
43 'dolores' => t('Dolores'),
44 'dustypetrol' => t('Dusty Petrol'),
45 'firenze' => t('Firenze'),
46 'fusion' => t('Fusion'),
47 'gerberdaisy' => t('Gerber Daisy'),
48 'haarlemmod' => t('Haarlem Modern'),
49 'kalamata' => t('Kalamata Cream'),
50 'kobenhavn' => t('Kobenhavn Classic'),
51 'antoinette' => t('Marie Antoinette'),
52 'modhome' => t('Modern Home'),
53 'modoffice' => t('Modern Office'),
54 'orientexpress' => t('Orient Express'),
55 'woodworks' => t('Scandinavian Woodworks'),
56 'techoffice' => t('Tech Office'),
57 'watermelon' => t('Watermelon'),
58 ),
59 );
60
61 $form['tapestry_fixedwidth'] = array(
62 '#type' => 'textfield',
63 '#title' => t('Fixed Width Size'),
64 '#default_value' => $settings['tapestry_fixedwidth'],
65 '#size' => 5,
66 '#maxlength' => 5,
67 );
68
69 $form['tapestry_outsidebar'] = array(
70 '#type' => 'select',
71 '#title' => t('Outside Sidebar Location'),
72 '#default_value' => $settings['tapestry_outsidebar'],
73 '#options' => array(
74 'left' => t('Outside Sidebar on Left'),
75 'right' => t('Outside Sidebar on Right'),
76 ),
77 );
78
79 $form['tapestry_outsidebarwidth'] = array(
80 '#type' => 'textfield',
81 '#title' => t('Outside Sidebar Width'),
82 '#default_value' => $settings['tapestry_outsidebarwidth'],
83 '#size' => 5,
84 '#maxlength' => 5,
85 );
86
87 $form['tapestry_sidebarmode'] = array(
88 '#type' => 'select',
89 '#title' => t('Inside Sidebar Mode'),
90 '#default_value' => $settings['tapestry_sidebarmode'],
91 '#options' => array(
92 'center' => t('Content Between Inside Sidebars'),
93 'left' => t('Inside Sidebars on Left'),
94 'right' => t('Inside Sidebars on Right'),
95 ),
96 );
97
98 $form['tapestry_leftsidebarwidth'] = array(
99 '#type' => 'textfield',
100 '#title' => t('Left Sidebar Width'),
101 '#default_value' => $settings['tapestry_leftsidebarwidth'],
102 '#size' => 5,
103 '#maxlength' => 5,
104 );
105
106 $form['tapestry_rightsidebarwidth'] = array(
107 '#type' => 'textfield',
108 '#title' => t('Right Sidebar Width'),
109 '#default_value' => $settings['tapestry_rightsidebarwidth'],
110 '#size' => 5,
111 '#maxlength' => 5,
112 );
113
114 $form['tapestry_fontfamily'] = array(
115 '#type' => 'select',
116 '#title' => t('Font Family'),
117 '#default_value' => $settings['tapestry_fontfamily'],
118 '#options' => array(
119 'Arial, Verdana, sans-serif' => t('Arial, Verdana, sans-serif'),
120 '"Arial Narrow", Arial, Helvetica, sans-serif' => t('"Arial Narrow", Arial, Helvetica, sans-serif'),
121 '"Times New Roman", Times, serif' => t('"Times New Roman", Times, serif'),
122 '"Lucida Sans", Verdana, Arial, sans-serif' => t('"Lucida Sans", Verdana, Arial, sans-serif'),
123 '"Lucida Grande", Verdana, sans-serif' => t('"Lucida Grande", Verdana, sans-serif'),
124 'Tahoma, Verdana, Arial, Helvetica, sans-serif' => t('Tahoma, Verdana, Arial, Helvetica, sans-serif'),
125 'Georgia, "Times New Roman", Times, serif' => t('Georgia, "Times New Roman", Times, serif'),
126 'Custom' => t('Custom (specify below)'),
127 ),
128 );
129
130 $form['tapestry_customfont'] = array(
131 '#type' => 'textfield',
132 '#title' => t('Custom Font-Family Setting'),
133 '#default_value' => $settings['tapestry_customfont'],
134 '#size' => 40,
135 '#maxlength' => 75,
136 );
137
138 $form['tapestry_uselocalcontent'] = array(
139 '#type' => 'checkbox',
140 '#title' => t('Include Local Content File'),
141 '#default_value' => $settings['tapestry_uselocalcontent'],
142 );
143
144 $form['tapestry_localcontentfile'] = array(
145 '#type' => 'textfield',
146 '#title' => t('Local Content File Name'),
147 '#default_value' => $settings['tapestry_localcontentfile'],
148 '#size' => 40,
149 '#maxlength' => 75,
150 );
151
152 $form['tapestry_suckerfishalign'] = array(
153 '#type' => 'select',
154 '#title' => t('Suckerfish Menu Alignment'),
155 '#default_value' => $settings['tapestry_suckerfishalign'],
156 '#options' => array(
157 'right' => t('Right'),
158 'center' => t('Centered'),
159 'left' => t('Left'),
160 ),
161 );
162
163 $form['tapestry_suckerfishmenus'] = array(
164 '#type' => 'checkbox',
165 '#title' => t('Enable Suckerfish Javascript for IE6'),
166 '#default_value' => $settings['tapestry_suckerfishmenus'],
167 );
168
169 $form['tapestry_themelogo'] = array(
170 '#type' => 'checkbox',
171 '#title' => t('Use Themed Logo'),
172 '#default_value' => $settings['tapestry_themelogo'],
173 );
174
175 $form['tapestry_breadcrumb'] = array(
176 '#type' => 'checkbox',
177 '#title' => t('Show Breadcrumbs'),
178 '#default_value' => $settings['tapestry_breadcrumb'],
179 );
180
181 $form['tapestry_useicons'] = array(
182 '#type' => 'checkbox',
183 '#title' => t('Use Icons'),
184 '#default_value' => $settings['tapestry_useicons'],
185 );
186
187 $form['tapestry_ie6icons'] = array(
188 '#type' => 'checkbox',
189 '#title' => t('Alternate Icons for IE5/6'),
190 '#default_value' => $settings['tapestry_ie6icons'],
191 );
192
193 $form['tapestry_iepngfix'] = array(
194 '#type' => 'checkbox',
195 '#title' => t('Use IE PNG Fix'),
196 '#default_value' => $settings['tapestry_iepngfix'],
197 );
198
199 return $form;
200 }
201
202

  ViewVC Help
Powered by ViewVC 1.1.2