Settings.template.php 5.7 KB

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