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