Settings.template.php 5.9 KB

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