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

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

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


Revision 1.2 - (show annotations) (download) (as text)
Tue Sep 9 01:42:26 2008 UTC (14 months, 2 weeks ago) by roopletheme
Branch: MAIN
CVS Tags: DRUPAL-5--1-7, DRUPAL-6--1-7, HEAD
Branch point for: DRUPAL-6--1
Changes since 1.1: +96 -5 lines
File MIME type: text/x-php
Complete overhaul, fixed numerous bugs.
1 <?php
2
3 function phptemplate_settings($saved_settings) {
4
5 $settings = theme_get_settings('litejazz');
6
7 $defaults = array(
8 'litejazz_style' => 0,
9 'litejazz_width' => 0,
10 'litejazz_fixedwidth' => '850',
11 'litejazz_breadcrumb' => 0,
12 'litejazz_iepngfix' => 0,
13 'litejazz_themelogo' => 0,
14 'litejazz_fontfamily' => 0,
15 'litejazz_customfont' => '',
16 'litejazz_uselocalcontent' => 0,
17 'litejazz_localcontentfile' => '',
18 'litejazz_leftsidebarwidth' => '25',
19 'litejazz_rightsidebarwidth' => '25',
20 'litejazz_suckerfish' => 0,
21 'litejazz_usecustomlogosize' => 0,
22 'litejazz_logowidth' => '100',
23 'litejazz_logoheight' => '100',
24 );
25
26 $settings = array_merge($defaults, $settings);
27
28 $form['litejazz_style'] = array(
29 '#type' => 'select',
30 '#title' => t('Style'),
31 '#default_value' => $settings['litejazz_style'],
32 '#options' => array(
33 'red' => t('Red'),
34 'green' => t('Green'),
35 'blue' => t('Blue'),
36 ),
37 );
38
39 $form['litejazz_themelogo'] = array(
40 '#type' => 'checkbox',
41 '#title' => t('Use Themed Logo'),
42 '#default_value' => $settings['litejazz_themelogo'],
43 );
44
45 $form['litejazz_width'] = array(
46 '#type' => 'checkbox',
47 '#title' => t('Use Fixed Width'),
48 '#default_value' => $settings['litejazz_width'],
49 );
50
51 $form['litejazz_fixedwidth'] = array(
52 '#type' => 'textfield',
53 '#title' => t('Fixed Width Size'),
54 '#default_value' => $settings['litejazz_fixedwidth'],
55 '#size' => 5,
56 '#maxlength' => 5,
57 );
58
59 $form['litejazz_breadcrumb'] = array(
60 '#type' => 'checkbox',
61 '#title' => t('Show Breadcrumbs'),
62 '#default_value' => $settings['litejazz_breadcrumb'],
63 );
64
65 $form['litejazz_iepngfix'] = array(
66 '#type' => 'checkbox',
67 '#title' => t('Use IE PNG Fix'),
68 '#default_value' => $settings['litejazz_iepngfix'],
69 );
70
71 $form['litejazz_fontfamily'] = array(
72 '#type' => 'select',
73 '#title' => t('Font Family'),
74 '#default_value' => $settings['litejazz_fontfamily'],
75 '#options' => array(
76 'Arial, Verdana, sans-serif' => t('Arial, Verdana, sans-serif'),
77 '"Arial Narrow", Arial, Helvetica, sans-serif' => t('"Arial Narrow", Arial, Helvetica, sans-serif'),
78 '"Times New Roman", Times, serif' => t('"Times New Roman", Times, serif'),
79 '"Lucida Sans", Verdana, Arial, sans-serif' => t('"Lucida Sans", Verdana, Arial, sans-serif'),
80 '"Lucida Grande", Verdana, sans-serif' => t('"Lucida Grande", Verdana, sans-serif'),
81 'Tahoma, Verdana, Arial, Helvetica, sans-serif' => t('Tahoma, Verdana, Arial, Helvetica, sans-serif'),
82 'Georgia, "Times New Roman", Times, serif' => t('Georgia, "Times New Roman", Times, serif'),
83 'Custom' => t('Custom (specify below)'),
84 ),
85 );
86
87 $form['litejazz_customfont'] = array(
88 '#type' => 'textfield',
89 '#title' => t('Custom Font-Family Setting'),
90 '#default_value' => $settings['litejazz_customfont'],
91 '#size' => 40,
92 '#maxlength' => 75,
93 );
94
95 $form['litejazz_uselocalcontent'] = array(
96 '#type' => 'checkbox',
97 '#title' => t('Include Local Content File'),
98 '#default_value' => $settings['litejazz_uselocalcontent'],
99 );
100
101 $form['litejazz_localcontentfile'] = array(
102 '#type' => 'textfield',
103 '#title' => t('Local Content File Name'),
104 '#default_value' => $settings['litejazz_localcontentfile'],
105 '#size' => 40,
106 '#maxlength' => 75,
107 );
108
109 $form['litejazz_leftsidebarwidth'] = array(
110 '#type' => 'textfield',
111 '#title' => t('Left Sidebar Width'),
112 '#default_value' => $settings['litejazz_leftsidebarwidth'],
113 '#size' => 5,
114 '#maxlength' => 5,
115 );
116
117 $form['litejazz_rightsidebarwidth'] = array(
118 '#type' => 'textfield',
119 '#title' => t('Right Sidebar Width'),
120 '#default_value' => $settings['litejazz_rightsidebarwidth'],
121 '#size' => 5,
122 '#maxlength' => 5,
123 );
124
125 $form['litejazz_suckerfish'] = array(
126 '#type' => 'checkbox',
127 '#title' => t('Use Suckerfish Menus'),
128 '#default_value' => $settings['litejazz_suckerfish'],
129 );
130
131 $form['litejazz_usecustomlogosize'] = array(
132 '#type' => 'checkbox',
133 '#title' => t('Specify Custom Logo Size'),
134 '#default_value' => $settings['litejazz_usecustomlogosize'],
135 );
136
137 $form['litejazz_logowidth'] = array(
138 '#type' => 'textfield',
139 '#title' => t('Logo Width'),
140 '#default_value' => $settings['litejazz_logowidth'],
141 '#size' => 5,
142 '#maxlength' => 5,
143 );
144
145 $form['litejazz_logoheight'] = array(
146 '#type' => 'textfield',
147 '#title' => t('Logo Height'),
148 '#default_value' => $settings['litejazz_logoheight'],
149 '#size' => 5,
150 '#maxlength' => 5,
151 );
152
153 return $form;
154 }

  ViewVC Help
Powered by ViewVC 1.1.2