Chris@76
|
1 <?php
|
Chris@76
|
2 // Version: 1.1; Settings
|
Chris@76
|
3
|
Chris@76
|
4 function template_options()
|
Chris@76
|
5 {
|
Chris@76
|
6 global $context, $settings, $options, $scripturl, $txt;
|
Chris@76
|
7
|
Chris@76
|
8 $context['theme_options'] = array(
|
Chris@76
|
9 array(
|
Chris@76
|
10 'id' => 'show_board_desc',
|
Chris@76
|
11 'label' => $txt[732],
|
Chris@76
|
12 'default' => true,
|
Chris@76
|
13 ),
|
Chris@76
|
14 array(
|
Chris@76
|
15 'id' => 'show_children',
|
Chris@76
|
16 'label' => $txt['show_children'],
|
Chris@76
|
17 'default' => true,
|
Chris@76
|
18 ),
|
Chris@76
|
19 array(
|
Chris@76
|
20 'id' => 'show_no_avatars',
|
Chris@76
|
21 'label' => $txt['show_no_avatars'],
|
Chris@76
|
22 'default' => true,
|
Chris@76
|
23 ),
|
Chris@76
|
24 array(
|
Chris@76
|
25 'id' => 'show_no_signatures',
|
Chris@76
|
26 'label' => $txt['show_no_signatures'],
|
Chris@76
|
27 'default' => true,
|
Chris@76
|
28 ),
|
Chris@76
|
29 array(
|
Chris@76
|
30 'id' => 'show_no_censored',
|
Chris@76
|
31 'label' => $txt['show_no_censored'],
|
Chris@76
|
32 'default' => true,
|
Chris@76
|
33 ),
|
Chris@76
|
34 array(
|
Chris@76
|
35 'id' => 'return_to_post',
|
Chris@76
|
36 'label' => $txt['return_to_post'],
|
Chris@76
|
37 'default' => true,
|
Chris@76
|
38 ),
|
Chris@76
|
39 array(
|
Chris@76
|
40 'id' => 'no_new_reply_warning',
|
Chris@76
|
41 'label' => $txt['no_new_reply_warning'],
|
Chris@76
|
42 'default' => true,
|
Chris@76
|
43 ),
|
Chris@76
|
44 array(
|
Chris@76
|
45 'id' => 'view_newest_first',
|
Chris@76
|
46 'label' => $txt['recent_posts_at_top'],
|
Chris@76
|
47 'default' => true,
|
Chris@76
|
48 ),
|
Chris@76
|
49 array(
|
Chris@76
|
50 'id' => 'view_newest_pm_first',
|
Chris@76
|
51 'label' => $txt['recent_pms_at_top'],
|
Chris@76
|
52 'default' => true,
|
Chris@76
|
53 ),
|
Chris@76
|
54 array(
|
Chris@76
|
55 'id' => 'popup_messages',
|
Chris@76
|
56 'label' => $txt['popup_messages'],
|
Chris@76
|
57 'default' => true,
|
Chris@76
|
58 ),
|
Chris@76
|
59 array(
|
Chris@76
|
60 'id' => 'copy_to_outbox',
|
Chris@76
|
61 'label' => $txt['copy_to_outbox'],
|
Chris@76
|
62 'default' => true,
|
Chris@76
|
63 ),
|
Chris@76
|
64 array(
|
Chris@76
|
65 'id' => 'auto_notify',
|
Chris@76
|
66 'label' => $txt['auto_notify'],
|
Chris@76
|
67 'default' => true,
|
Chris@76
|
68 ),
|
Chris@76
|
69 array(
|
Chris@76
|
70 'id' => 'calendar_start_day',
|
Chris@76
|
71 'label' => $txt['calendar_start_day'],
|
Chris@76
|
72 'options' => array(
|
Chris@76
|
73 0 => $txt['days'][0],
|
Chris@76
|
74 1 => $txt['days'][1],
|
Chris@76
|
75 6 => $txt['days'][6],
|
Chris@76
|
76 ),
|
Chris@76
|
77 'default' => true,
|
Chris@76
|
78 ),
|
Chris@76
|
79 array(
|
Chris@76
|
80 'id' => 'display_quick_reply',
|
Chris@76
|
81 'label' => $txt['display_quick_reply'],
|
Chris@76
|
82 'options' => array(
|
Chris@76
|
83 0 => $txt['display_quick_reply1'],
|
Chris@76
|
84 1 => $txt['display_quick_reply2'],
|
Chris@76
|
85 2 => $txt['display_quick_reply3']
|
Chris@76
|
86 ),
|
Chris@76
|
87 'default' => true,
|
Chris@76
|
88 ),
|
Chris@76
|
89 array(
|
Chris@76
|
90 'id' => 'display_quick_mod',
|
Chris@76
|
91 'label' => $txt['display_quick_mod'],
|
Chris@76
|
92 'options' => array(
|
Chris@76
|
93 0 => $txt['display_quick_mod_none'],
|
Chris@76
|
94 1 => $txt['display_quick_mod_check'],
|
Chris@76
|
95 2 => $txt['display_quick_mod_image'],
|
Chris@76
|
96 ),
|
Chris@76
|
97 'default' => true,
|
Chris@76
|
98 ),
|
Chris@76
|
99 );
|
Chris@76
|
100 }
|
Chris@76
|
101
|
Chris@76
|
102 function template_settings()
|
Chris@76
|
103 {
|
Chris@76
|
104 global $context, $settings, $options, $scripturl, $txt;
|
Chris@76
|
105
|
Chris@76
|
106 $context['theme_settings'] = array(
|
Chris@76
|
107 array(
|
Chris@76
|
108 'id' => 'header_logo_url',
|
Chris@76
|
109 'label' => $txt['header_logo_url'],
|
Chris@76
|
110 'description' => $txt['header_logo_url_desc'],
|
Chris@76
|
111 'type' => 'text',
|
Chris@76
|
112 ),
|
Chris@76
|
113 array(
|
Chris@76
|
114 'id' => 'number_recent_posts',
|
Chris@76
|
115 'label' => $txt['number_recent_posts'],
|
Chris@76
|
116 'description' => $txt['number_recent_posts_desc'],
|
Chris@76
|
117 'type' => 'number',
|
Chris@76
|
118 ),
|
Chris@76
|
119 array(
|
Chris@76
|
120 'id' => 'display_who_viewing',
|
Chris@76
|
121 'label' => $txt['who_display_viewing'],
|
Chris@76
|
122 'options' => array(
|
Chris@76
|
123 0 => $txt['who_display_viewing_off'],
|
Chris@76
|
124 1 => $txt['who_display_viewing_numbers'],
|
Chris@76
|
125 2 => $txt['who_display_viewing_names'],
|
Chris@76
|
126 ),
|
Chris@76
|
127 ),
|
Chris@76
|
128 array(
|
Chris@76
|
129 'id' => 'smiley_sets_default',
|
Chris@76
|
130 'label' => $txt['smileys_default_set_for_theme'],
|
Chris@76
|
131 'options' => $context['smiley_sets'],
|
Chris@76
|
132 ),
|
Chris@76
|
133 array(
|
Chris@76
|
134 'id' => 'show_modify',
|
Chris@76
|
135 'label' => $txt[383],
|
Chris@76
|
136 ),
|
Chris@76
|
137 array(
|
Chris@76
|
138 'id' => 'show_member_bar',
|
Chris@76
|
139 'label' => $txt[510],
|
Chris@76
|
140 ),
|
Chris@76
|
141 array(
|
Chris@76
|
142 'id' => 'linktree_link',
|
Chris@76
|
143 'label' => $txt[522],
|
Chris@76
|
144 ),
|
Chris@76
|
145 array(
|
Chris@76
|
146 'id' => 'show_profile_buttons',
|
Chris@76
|
147 'label' => $txt[523],
|
Chris@76
|
148 ),
|
Chris@76
|
149 array(
|
Chris@76
|
150 'id' => 'show_mark_read',
|
Chris@76
|
151 'label' => $txt[618],
|
Chris@76
|
152 ),
|
Chris@76
|
153 array(
|
Chris@76
|
154 'id' => 'linktree_inline',
|
Chris@76
|
155 'label' => $txt['smf105'],
|
Chris@76
|
156 'description' => $txt['smf106'],
|
Chris@76
|
157 ),
|
Chris@76
|
158 array(
|
Chris@76
|
159 'id' => 'show_sp1_info',
|
Chris@76
|
160 'label' => $txt['smf200'],
|
Chris@76
|
161 ),
|
Chris@76
|
162 array(
|
Chris@76
|
163 'id' => 'allow_no_censored',
|
Chris@76
|
164 'label' => $txt['allow_no_censored'],
|
Chris@76
|
165 ),
|
Chris@76
|
166 array(
|
Chris@76
|
167 'id' => 'show_bbc',
|
Chris@76
|
168 'label' => $txt[740],
|
Chris@76
|
169 ),
|
Chris@76
|
170 array(
|
Chris@76
|
171 'id' => 'additional_options_collapsable',
|
Chris@76
|
172 'label' => $txt['additional_options_collapsable'],
|
Chris@76
|
173 ),
|
Chris@76
|
174 array(
|
Chris@76
|
175 'id' => 'enable_news',
|
Chris@76
|
176 'label' => $txt[379],
|
Chris@76
|
177 ),
|
Chris@76
|
178 array(
|
Chris@76
|
179 'id' => 'show_newsfader',
|
Chris@76
|
180 'label' => $txt[387],
|
Chris@76
|
181 ),
|
Chris@76
|
182 array(
|
Chris@76
|
183 'id' => 'newsfader_time',
|
Chris@76
|
184 'label' => $txt[739],
|
Chris@76
|
185 'type' => 'number',
|
Chris@76
|
186 ),
|
Chris@76
|
187 array(
|
Chris@76
|
188 'id' => 'show_user_images',
|
Chris@76
|
189 'label' => $txt[384],
|
Chris@76
|
190 ),
|
Chris@76
|
191 array(
|
Chris@76
|
192 'id' => 'show_blurb',
|
Chris@76
|
193 'label' => $txt[385],
|
Chris@76
|
194 ),
|
Chris@76
|
195 array(
|
Chris@76
|
196 'id' => 'show_latest_member',
|
Chris@76
|
197 'label' => $txt[382],
|
Chris@76
|
198 ),
|
Chris@76
|
199 array(
|
Chris@76
|
200 'id' => 'use_image_buttons',
|
Chris@76
|
201 'label' => $txt[521],
|
Chris@76
|
202 ),
|
Chris@76
|
203 array(
|
Chris@76
|
204 'id' => 'show_gender',
|
Chris@76
|
205 'label' => $txt[386],
|
Chris@76
|
206 ),
|
Chris@76
|
207 array(
|
Chris@76
|
208 'id' => 'hide_post_group',
|
Chris@76
|
209 'label' => $txt['hide_post_group'],
|
Chris@76
|
210 'description' => $txt['hide_post_group_desc'],
|
Chris@76
|
211 ),
|
Chris@76
|
212 );
|
Chris@76
|
213 }
|
Chris@76
|
214
|
Chris@76
|
215 ?> |