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