Settings.template.php 6.3 KB

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