3 // ** Configuration file for Helius template **
5 // Please note that to enable support of different languages
6 // the {LANG} place holder is available. This will be replaced
7 // with xxx where xxx is the users selected language. If
8 // that language isn't available it will default to english.
9 // Therefore you MUST ensure you have at least a english
10 // directory if you choose to localise your template
14 // Do not alter this line!
16 define(TEMPLATE_CONFIG, TRUE);
18 $current_template_images = $current_template_path . "/images";
19 $template_dir = $current_template_path;
20 if((strlen($phpbb_root_path) > 0) && (substr($template_dir, 0, strlen($phpbb_root_path)) !== $phpbb_root_path))
22 $template_dir = $phpbb_root_path . $template_dir;
26 // testing if image exists
28 $test_file = $template_dir . '/images/lang_{LANG}/btn_login.gif';
30 if(@file_exists(str_replace('{LANG}', $board_config['default_lang'], $test_file)))
32 // image exists, setting language variable to correct url
33 $lang = $board_config['default_lang'];
35 elseif($board_config['default_lang'] !== 'english')
37 // image doesn't exist, testing if there is english version
38 if(!@file_exists(str_replace('{LANG}', 'english', $test_file)))
40 // nothing found. setting to default language
41 $lang = $board_config['default_lang'];
46 // adding custom template variables
48 $template->assign_vars(array(
50 'T_TEMPLATE_PATH' => $template_dir,
51 'C_ROW1' => '#EDEFF2',
52 'C_ROW1_OVER' => '#F8F9FA',
53 'C_ROW2' => '#DDE2EC',
54 'C_ROW2_OVER' => '#EBEEF3',
55 'C_ROW3' => '#E2E6EE',
56 'C_ROW3_OVER' => '#ECEFF4',
57 'C_VERSION' => '1.91',
58 'TPL_FORUM_URL' => urlencode($board_config['server_name'] . $board_config['script_path']),
59 'TPL_HDR1' => '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="50" align="right" valign="bottom"><img src="' . $template_dir . '/images/top_left.gif" width="50" height="28" border="0" alt="" /></td><td width="100%" align="center" valign="middle" background="' . $template_dir . '/images/top_center.gif">',
60 'TPL_HDR2' => '</td><td width="50" align="left" valign="bottom"><img src="' . $template_dir . '/images/top_right.gif" width="50" height="28" border="0" alt="" /></td></tr></table>',
61 'TPL_FTR' => '<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td width="40" align="right" valign="top"><img src="' . $template_dir . '/images/bottom_left.gif" width="40" height="9" border="0" alt="" /></td><td width="100%" background="' . $template_dir . '/images/bottom_center.gif"><img src="' . $template_dir . '/images/spacer.gif" width="1" height="1" border="0" alt="" /></td><td width="40" align="left" valign="top"><img src="' . $template_dir . '/images/bottom_right.gif" width="40" height="9" border="0" alt="" /></td></tr></table>'
64 $images['icon_quote'] = "$current_template_images/{LANG}/icon_quote.gif";
65 $images['icon_edit'] = "$current_template_images/{LANG}/icon_edit.gif";
66 $images['icon_search'] = "$current_template_images/{LANG}/icon_search.gif";
67 $images['icon_profile'] = "$current_template_images/{LANG}/icon_profile.gif";
68 $images['icon_pm'] = "$current_template_images/{LANG}/icon_pm.gif";
69 $images['icon_email'] = "$current_template_images/{LANG}/icon_email.gif";
70 $images['icon_delpost'] = "$current_template_images/icon_delete.gif";
71 $images['icon_ip'] = "$current_template_images/icon_ip.gif";
72 $images['icon_www'] = "$current_template_images/{LANG}/icon_www.gif";
73 $images['icon_icq'] = "$current_template_images/icon_icq_add.gif";
74 $images['icon_aim'] = "$current_template_images/icon_aim.gif";
75 $images['icon_yim'] = "$current_template_images/icon_yim.gif";
76 $images['icon_msnm'] = "$current_template_images/icon_msnm.gif";
77 $images['icon_minipost'] = "$current_template_images/icon_minipost.gif";
78 $images['icon_gotopost'] = "$current_template_images/icon_minipost.gif";
79 $images['icon_minipost_new'] = "$current_template_images/icon_minipost_new.gif";
80 $images['icon_latest_reply'] = "$current_template_images/icon_latest_reply.gif";
81 $images['icon_newest_reply'] = "$current_template_images/icon_newest_reply.gif";
83 $images['forum'] = "$current_template_images/folder_big.gif";
84 $images['forum_new'] = "$current_template_images/folder_new_big.gif";
85 $images['forum_locked'] = "$current_template_images/folder_locked_big.gif";
87 $images['folder'] = "$current_template_images/folder.gif";
88 $images['folder_new'] = "$current_template_images/folder_new.gif";
89 $images['folder_hot'] = "$current_template_images/folder_hot.gif";
90 $images['folder_hot_new'] = "$current_template_images/folder_new_hot.gif";
91 $images['folder_locked'] = "$current_template_images/folder_lock.gif";
92 $images['folder_locked_new'] = "$current_template_images/folder_lock_new.gif";
93 $images['folder_sticky'] = "$current_template_images/folder_sticky.gif";
94 $images['folder_sticky_new'] = "$current_template_images/folder_sticky_new.gif";
95 $images['folder_announce'] = "$current_template_images/folder_announce.gif";
96 $images['folder_announce_new'] = "$current_template_images/folder_announce_new.gif";
98 $images['post_new'] = "$current_template_images/{LANG}/post.gif";
99 $images['post_locked'] = "$current_template_images/{LANG}/reply-locked.gif";
100 $images['reply_new'] = "$current_template_images/{LANG}/reply.gif";
101 $images['reply_locked'] = "$current_template_images/{LANG}/reply-locked.gif";
103 $images['pm_inbox'] = "$current_template_images/msg_inbox.gif";
104 $images['pm_outbox'] = "$current_template_images/msg_outbox.gif";
105 $images['pm_savebox'] = "$current_template_images/msg_savebox.gif";
106 $images['pm_sentbox'] = "$current_template_images/msg_sentbox.gif";
107 $images['pm_readmsg'] = "$current_template_images/folder.gif";
108 $images['pm_unreadmsg'] = "$current_template_images/folder_new.gif";
109 $images['pm_replymsg'] = "$current_template_images/{LANG}/reply.gif";
110 $images['pm_postmsg'] = "$current_template_images/{LANG}/msg_newpost.gif";
111 $images['pm_quotemsg'] = "$current_template_images/{LANG}/icon_quote.gif";
112 $images['pm_editmsg'] = "$current_template_images/{LANG}/icon_edit.gif";
113 $images['pm_new_msg'] = "";
114 $images['pm_no_new_msg'] = "";
116 $images['topic_watch'] = "";
117 $images['topic_un_watch'] = "";
118 $images['topic_mod_lock'] = "$current_template_images/topic_lock.gif";
119 $images['topic_mod_unlock'] = "$current_template_images/topic_unlock.gif";
120 $images['topic_mod_split'] = "$current_template_images/topic_split.gif";
121 $images['topic_mod_move'] = "$current_template_images/topic_move.gif";
122 $images['topic_mod_delete'] = "$current_template_images/topic_delete.gif";
124 $images['voting_graphic'][0] = "$current_template_images/voting_bar.gif";
125 $images['voting_graphic'][1] = "$current_template_images/voting_bar.gif";
126 $images['voting_graphic'][2] = "$current_template_images/voting_bar.gif";
127 $images['voting_graphic'][3] = "$current_template_images/voting_bar.gif";
128 $images['voting_graphic'][4] = "$current_template_images/voting_bar.gif";
131 // Vote graphic length defines the maximum length of a vote result
132 // graphic, ie. 100% = this length
134 $board_config['vote_graphic_length'] = 300;
135 $board_config['privmsg_graphic_length'] = 175;