1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216: 217: 218: 219: 220: 221: 222: 223: 224: 225: 226: 227: 228: 229: 230: 231: 232: 233: 234: 235:
<?php
function template_options()
{
global $context, $txt, $modSettings;
$context['theme_options'] = array(
$txt['theme_opt_display'],
array(
'id' => 'show_children',
'label' => $txt['show_children'],
'default' => true,
),
array(
'id' => 'topics_per_page',
'label' => $txt['topics_per_page'],
'options' => array(
0 => $txt['per_page_default'],
5 => 5,
10 => 10,
25 => 25,
50 => 50,
),
'default' => true,
'enabled' => empty($modSettings['disableCustomPerPage']),
),
array(
'id' => 'messages_per_page',
'label' => $txt['messages_per_page'],
'options' => array(
0 => $txt['per_page_default'],
5 => 5,
10 => 10,
25 => 25,
50 => 50,
),
'default' => true,
'enabled' => empty($modSettings['disableCustomPerPage']),
),
array(
'id' => 'view_newest_first',
'label' => $txt['recent_posts_at_top'],
'default' => true,
),
array(
'id' => 'show_no_avatars',
'label' => $txt['show_no_avatars'],
'default' => true,
),
array(
'id' => 'show_no_signatures',
'label' => $txt['show_no_signatures'],
'default' => true,
),
array(
'id' => 'posts_apply_ignore_list',
'label' => $txt['posts_apply_ignore_list'],
'default' => false,
'enabled' => !empty($modSettings['enable_buddylist'])
),
$txt['theme_opt_posting'],
array(
'id' => 'return_to_post',
'label' => $txt['return_to_post'],
'default' => true,
),
array(
'id' => 'auto_notify',
'label' => $txt['auto_notify'],
'default' => true,
),
array(
'id' => 'wysiwyg_default',
'label' => $txt['wysiwyg_default'],
'default' => false,
'enabled' => empty($modSettings['disable_wysiwyg']),
),
array(
'id' => 'drafts_autosave_enabled',
'label' => $txt['drafts_autosave_enabled'],
'default' => true,
'enabled' => !empty($modSettings['drafts_autosave_enabled']) && (!empty($modSettings['drafts_post_enabled']) || !empty($modSettings['drafts_pm_enabled'])),
),
array(
'id' => 'drafts_show_saved_enabled',
'label' => $txt['drafts_show_saved_enabled'],
'default' => true,
'enabled' => !empty($modSettings['drafts_show_saved_enabled']) && (!empty($modSettings['drafts_post_enabled']) || !empty($modSettings['drafts_pm_enabled'])),
),
$txt['theme_opt_moderation'],
array(
'id' => 'display_quick_mod',
'label' => $txt['display_quick_mod'],
'options' => array(
0 => $txt['display_quick_mod_none'],
1 => $txt['display_quick_mod_check'],
2 => $txt['display_quick_mod_image'],
),
'default' => true,
),
$txt['theme_opt_personal_messages'],
array(
'id' => 'popup_messages',
'label' => $txt['popup_messages'],
'default' => true,
),
array(
'id' => 'view_newest_pm_first',
'label' => $txt['recent_pms_at_top'],
'default' => true,
),
array(
'id' => 'pm_remove_inbox_label',
'label' => $txt['pm_remove_inbox_label'],
'default' => true,
),
$txt['theme_opt_calendar'],
array(
'id' => 'calendar_default_view',
'label' => $txt['calendar_default_view'],
'options' => array(
'viewlist' => $txt['calendar_viewlist'],
'viewmonth' => $txt['calendar_viewmonth'],
'viewweek' => $txt['calendar_viewweek']
),
'default' => true,
'enabled' => !empty($modSettings['cal_enabled']),
),
array(
'id' => 'calendar_start_day',
'label' => $txt['calendar_start_day'],
'options' => array(
0 => $txt['days'][0],
1 => $txt['days'][1],
6 => $txt['days'][6],
),
'default' => true,
'enabled' => !empty($modSettings['cal_enabled']),
),
);
}
function template_settings()
{
global $context, $txt;
$context['theme_settings'] = array(
array(
'id' => 'header_logo_url',
'label' => $txt['header_logo_url'],
'description' => $txt['header_logo_url_desc'],
'type' => 'text',
),
array(
'id' => 'site_slogan',
'label' => $txt['site_slogan'],
'description' => $txt['site_slogan_desc'],
'type' => 'text',
),
array(
'id' => 'og_image',
'label' => $txt['og_image'],
'description' => $txt['og_image_desc'],
'type' => 'url',
),
'',
array(
'id' => 'smiley_sets_default',
'label' => $txt['smileys_default_set_for_theme'],
'options' => $context['smiley_sets'],
'type' => 'text',
),
'',
array(
'id' => 'enable_news',
'label' => $txt['enable_random_news'],
),
array(
'id' => 'show_newsfader',
'label' => $txt['news_fader'],
),
array(
'id' => 'newsfader_time',
'label' => $txt['admin_fader_delay'],
'type' => 'number',
),
'',
array(
'id' => 'number_recent_posts',
'label' => $txt['number_recent_posts'],
'description' => $txt['zero_to_disable'],
'type' => 'number',
),
array(
'id' => 'show_stats_index',
'label' => $txt['show_stats_index'],
),
array(
'id' => 'show_latest_member',
'label' => $txt['latest_members'],
),
array(
'id' => 'show_group_key',
'label' => $txt['show_group_key'],
),
array(
'id' => 'display_who_viewing',
'label' => $txt['who_display_viewing'],
'options' => array(
0 => $txt['who_display_viewing_off'],
1 => $txt['who_display_viewing_numbers'],
2 => $txt['who_display_viewing_names'],
),
'type' => 'list',
),
);
}
?>