comparison forum/Themes/default/Settings.template.php @ 76:e3e11437ecea website

Add forum code
author Chris Cannam
date Sun, 07 Jul 2013 11:25:48 +0200
parents
children
comparison
equal deleted inserted replaced
75:72f59aa7e503 76:e3e11437ecea
1 <?php
2 /**
3 * Simple Machines Forum (SMF)
4 *
5 * @package SMF
6 * @author Simple Machines
7 * @copyright 2011 Simple Machines
8 * @license http://www.simplemachines.org/about/smf/license.php BSD
9 *
10 * @version 2.0
11 */
12
13 function template_options()
14 {
15 global $context, $settings, $options, $scripturl, $txt;
16
17 $context['theme_options'] = array(
18 array(
19 'id' => 'show_board_desc',
20 'label' => $txt['board_desc_inside'],
21 'default' => true,
22 ),
23 array(
24 'id' => 'show_children',
25 'label' => $txt['show_children'],
26 'default' => true,
27 ),
28 array(
29 'id' => 'use_sidebar_menu',
30 'label' => $txt['use_sidebar_menu'],
31 'default' => true,
32 ),
33 array(
34 'id' => 'show_no_avatars',
35 'label' => $txt['show_no_avatars'],
36 'default' => true,
37 ),
38 array(
39 'id' => 'show_no_signatures',
40 'label' => $txt['show_no_signatures'],
41 'default' => true,
42 ),
43 array(
44 'id' => 'show_no_censored',
45 'label' => $txt['show_no_censored'],
46 'default' => true,
47 ),
48 array(
49 'id' => 'return_to_post',
50 'label' => $txt['return_to_post'],
51 'default' => true,
52 ),
53 array(
54 'id' => 'no_new_reply_warning',
55 'label' => $txt['no_new_reply_warning'],
56 'default' => true,
57 ),
58 array(
59 'id' => 'view_newest_first',
60 'label' => $txt['recent_posts_at_top'],
61 'default' => true,
62 ),
63 array(
64 'id' => 'view_newest_pm_first',
65 'label' => $txt['recent_pms_at_top'],
66 'default' => true,
67 ),
68 array(
69 'id' => 'posts_apply_ignore_list',
70 'label' => $txt['posts_apply_ignore_list'],
71 'default' => false,
72 ),
73 array(
74 'id' => 'wysiwyg_default',
75 'label' => $txt['wysiwyg_default'],
76 'default' => false,
77 ),
78 array(
79 'id' => 'popup_messages',
80 'label' => $txt['popup_messages'],
81 'default' => true,
82 ),
83 array(
84 'id' => 'copy_to_outbox',
85 'label' => $txt['copy_to_outbox'],
86 'default' => true,
87 ),
88 array(
89 'id' => 'pm_remove_inbox_label',
90 'label' => $txt['pm_remove_inbox_label'],
91 'default' => true,
92 ),
93 array(
94 'id' => 'auto_notify',
95 'label' => $txt['auto_notify'],
96 'default' => true,
97 ),
98 array(
99 'id' => 'topics_per_page',
100 'label' => $txt['topics_per_page'],
101 'options' => array(
102 0 => $txt['per_page_default'],
103 5 => 5,
104 10 => 10,
105 25 => 25,
106 50 => 50,
107 ),
108 'default' => true,
109 ),
110 array(
111 'id' => 'messages_per_page',
112 'label' => $txt['messages_per_page'],
113 'options' => array(
114 0 => $txt['per_page_default'],
115 5 => 5,
116 10 => 10,
117 25 => 25,
118 50 => 50,
119 ),
120 'default' => true,
121 ),
122 array(
123 'id' => 'calendar_start_day',
124 'label' => $txt['calendar_start_day'],
125 'options' => array(
126 0 => $txt['days'][0],
127 1 => $txt['days'][1],
128 6 => $txt['days'][6],
129 ),
130 'default' => true,
131 ),
132 array(
133 'id' => 'display_quick_reply',
134 'label' => $txt['display_quick_reply'],
135 'options' => array(
136 0 => $txt['display_quick_reply1'],
137 1 => $txt['display_quick_reply2'],
138 2 => $txt['display_quick_reply3']
139 ),
140 'default' => true,
141 ),
142 array(
143 'id' => 'display_quick_mod',
144 'label' => $txt['display_quick_mod'],
145 'options' => array(
146 0 => $txt['display_quick_mod_none'],
147 1 => $txt['display_quick_mod_check'],
148 2 => $txt['display_quick_mod_image'],
149 ),
150 'default' => true,
151 ),
152 );
153 }
154
155 function template_settings()
156 {
157 global $context, $settings, $options, $scripturl, $txt;
158
159 $context['theme_settings'] = array(
160 array(
161 'id' => 'header_logo_url',
162 'label' => $txt['header_logo_url'],
163 'description' => $txt['header_logo_url_desc'],
164 'type' => 'text',
165 ),
166 array(
167 'id' => 'site_slogan',
168 'label' => $txt['site_slogan'],
169 'description' => $txt['site_slogan_desc'],
170 'type' => 'text',
171 ),
172 array(
173 'id' => 'smiley_sets_default',
174 'label' => $txt['smileys_default_set_for_theme'],
175 'options' => $context['smiley_sets'],
176 'type' => 'text',
177 ),
178 array(
179 'id' => 'forum_width',
180 'label' => $txt['forum_width'],
181 'description' => $txt['forum_width_desc'],
182 'type' => 'text',
183 'size' => 8,
184 ),
185 '',
186 array(
187 'id' => 'linktree_link',
188 'label' => $txt['current_pos_text_img'],
189 ),
190 array(
191 'id' => 'show_mark_read',
192 'label' => $txt['enable_mark_as_read'],
193 ),
194 array(
195 'id' => 'allow_no_censored',
196 'label' => $txt['allow_no_censored'],
197 ),
198 array(
199 'id' => 'enable_news',
200 'label' => $txt['enable_random_news'],
201 ),
202 '',
203 array(
204 'id' => 'show_newsfader',
205 'label' => $txt['news_fader'],
206 ),
207 array(
208 'id' => 'newsfader_time',
209 'label' => $txt['admin_fader_delay'],
210 'type' => 'number',
211 ),
212 array(
213 'id' => 'number_recent_posts',
214 'label' => $txt['number_recent_posts'],
215 'description' => $txt['number_recent_posts_desc'],
216 'type' => 'number',
217 ),
218 array(
219 'id' => 'show_stats_index',
220 'label' => $txt['show_stats_index'],
221 ),
222 array(
223 'id' => 'show_latest_member',
224 'label' => $txt['latest_members'],
225 ),
226 array(
227 'id' => 'show_group_key',
228 'label' => $txt['show_group_key'],
229 ),
230 array(
231 'id' => 'display_who_viewing',
232 'label' => $txt['who_display_viewing'],
233 'options' => array(
234 0 => $txt['who_display_viewing_off'],
235 1 => $txt['who_display_viewing_numbers'],
236 2 => $txt['who_display_viewing_names'],
237 ),
238 'type' => 'number',
239 ),
240 '',
241 array(
242 'id' => 'show_modify',
243 'label' => $txt['last_modification'],
244 ),
245 array(
246 'id' => 'show_profile_buttons',
247 'label' => $txt['show_view_profile_button'],
248 ),
249 array(
250 'id' => 'show_user_images',
251 'label' => $txt['user_avatars'],
252 ),
253 array(
254 'id' => 'show_blurb',
255 'label' => $txt['user_text'],
256 ),
257 array(
258 'id' => 'show_gender',
259 'label' => $txt['gender_images'],
260 ),
261 array(
262 'id' => 'hide_post_group',
263 'label' => $txt['hide_post_group'],
264 'description' => $txt['hide_post_group_desc'],
265 ),
266 '',
267 array(
268 'id' => 'show_bbc',
269 'label' => $txt['admin_bbc'],
270 ),
271 array(
272 'id' => 'additional_options_collapsable',
273 'label' => $txt['additional_options_collapsable'],
274 ),
275 );
276 }
277
278 ?>