main.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:5k
- <?php
- /* Defines the default theme items */
- $template_obj->Register(
- 'default_body_tag',
- '<body bgcolor="#000000" link="#000000" vlink="#000000" alink="#000000">'
- );
- if ( $boxy_theme_mode == 1 ) {
- $template_obj->Register( 'left_top_corner_img', ' ');
- $template_obj->Register( 'right_top_corner_img', ' ');
- $template_obj->Register( 'left_bottom_corner_img', ' ');
- $template_obj->Register( 'right_bottom_corner_img', ' ' );
- } else {
- $template_obj->Register(
- 'left_top_corner_img',
- '<img ' .
- 'src="' . $default->graphics_base_url . '/corners/left_top.gif" ' .
- 'width="15" ' .
- 'height="15" ' .
- 'align="left" ' .
- 'valign="top" ' .
- 'hspace="0" ' .
- 'vspace="0"'.
- '>'
- );
- $template_obj->Register(
- 'right_top_corner_img',
- '<img ' .
- 'src="' . $default->graphics_base_url . '/corners/right_top.gif" ' .
- 'align="right" ' .
- 'width="15" ' .
- 'height="15"' .
- 'hspace="0" ' .
- 'vspace="0"'.
- '>'
- );
- $template_obj->Register(
- 'left_bottom_corner_img',
- '<img ' .
- 'src="' . $default->graphics_base_url . '/corners/left_bottom.gif"' .
- '>'
- );
- $template_obj->Register(
- 'right_bottom_corner_img',
- '<img ' .
- 'src="' . $default->graphics_base_url . '/corners/right_bottom.gif"' .
- '>'
- );
- }
- $template_obj->Register(
- 'edit_img',
- '<img src="' . $default->graphics_base_url . '/edit.gif" alt="Edit" border="0">'
- );
- $template_obj->Register(
- 'trash_img',
- '<img src="' . $default->graphics_base_url . '/trash.gif" alt="Delete" border="0">'
- );
- $template_obj->Register(
- 'content_table_start',
- '<table border="0" cellpadding="0" cellspacing="0" bgcolor="' .
- $template_obj->GetValue( 'content_bgcolor' ) .
- '" width="100%">
- <tr><td>
- <table border="0" cellspacing="1" cellpadding="3" width="100%">
- '
- );
- $template_obj->Register(
- 'content_table_end',
- '
- </table>
- </td></tr>
- </table>
- '
- );
- $template_obj->Register(
- 'title_font',
- '<font color="' .
- $template_obj->GetValue( 'title_font_color' ) .
- '" face="' .
- $template_obj->GetValue( 'title_font_face' ) .
- '">'
- );
- $template_obj->Register(
- 'nav_font',
- '<font color="' .
- $template_obj->GetValue( 'nav_font_color' ) .
- '" face="' .
- $template_obj->GetValue( 'nav_font_face' ) .
- '">'
- );
- $template_obj->Register(
- 'default_font',
- '<font color="' .
- $template_obj->GetValue( 'default_font_color' ) .
- '" face="' .
- $template_obj->GetValue( 'default_font_face' ) .
- '">'
- );
- $template_obj->Register(
- 'mail_new_font',
- '<font color="' .
- $template_obj->GetValue( 'mail_new_font_color' ) .
- '" face="' .
- $template_obj->GetValue( 'mail_new_font_face' ) .
- '">'
- );
- $template_obj->Register(
- 'mail_deleted_font',
- '<font color="' .
- $template_obj->GetValue( 'mail_deleted_font_color' ) .
- '" face="' .
- $template_obj->GetValue( 'mail_deleted_font_face' ) .
- '">'
- );
- $template_obj->Register(
- 'mail_read_font',
- '<font color="' .
- $template_obj->GetValue( 'mail_read_font_color' ) .
- '" face="' .
- $template_obj->GetValue( 'mail_read_font_face' ) .
- '">'
- );
- if ( $browser_obj->style_sheets ) {
- $style_sheet = '
- <style>
- .title
- {
- font-family: ' . $template_obj->GetValue( 'title_font_face' ) . ';
- color: ' . $template_obj->GetValue( 'title_font_color' ) . ';
- background-color: ' . $template_obj->GetValue( 'title_bgcolor' ) . ';
- }
- .nav
- {
- font-family: ' . $template_obj->GetValue( 'nav_font_face' ) . ';
- color: ' . $template_obj->GetValue( 'nav_font_color' ) . ';
- background-color: ' . $template_obj->GetValue( 'nav_bgcolor' ) . ';
- }
- .default
- {
- font-family: ' . $template_obj->GetValue( 'default_font_face' ) . ';
- color: ' . $template_obj->GetValue( 'default_font_color' ) . ';
- background-color: ' . $template_obj->GetValue( 'default_bgcolor' ) . ';
- }
- .mailnew
- {
- font-family: ' . $template_obj->GetValue( 'mail_new_font_face' ) . ';
- color: ' . $template_obj->GetValue( 'mail_new_font_color' ) . ';
- background-color: ' . $template_obj->GetValue( 'mail_new_bgcolor' ) . ';
- }
- .maildeleted
- {
- font-family: ' . $template_obj->GetValue( 'mail_deleted_font_face' ) . ';
- color: ' . $template_obj->GetValue( 'mail_deleted_font_color' ) . ';
- background-color: ' . $template_obj->GetValue( 'mail_deleted_bgcolor' ) . ';
- }
- .mailread
- {
- font-family: ' . $template_obj->GetValue( 'mail_read_font_face' ) . ';
- color: ' . $template_obj->GetValue( 'mail_read_font_color' ) . ';
- background-color: ' . $template_obj->GetValue( 'mail_read_bgcolor' ) . ';
- }
- .content
- {
- font-family: ' . $template_obj->GetValue( 'content_font_face' ) . ';
- color: ' . $template_obj->GetValue( 'content_font_color' ) . ';
- background-color: ' . $template_obj->GetValue( 'content_bgcolor' ) . ';
- }
- </style>
- ';
- $template_obj->Register( 'default_style_sheet', $style_sheet );
- // If style sheets are not working comment out the
- // style sheet line and replace it with the one
- // below.
- //include( './themes/common/no_style_sheets.inc' );
- include( './themes/common/style_sheets.inc' );
- } else {
- $template_obj->Register( 'default_style_sheet', '' );
- include( './themes/common/no_style_sheets.inc' );
- }
- ?>