Settings.template.php 6.5 KB

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