diff -r mantis-1.1.0/config_defaults_inc.php mantis-1.1.1/config_defaults_inc.php 143a144,178 > ############################# > # Look & Feel Customizations > ############################# > > # Parameters of the top logo. Set g_logo_top_enabled to OFF to get rid of the logo completely > # logo_file can be either local file or fully qualified URL to remote image > $g_logo_top_enabled = ON; > $g_logo_top_file = 'images/mantis_logo.gif'; > $g_logo_top_alt = 'Mantis Bugtracker'; > > # Set to OFF if you do not want image dimension to be specified in HTML tags > $g_logo_top_size_enforce = ON; > $g_logo_top_size_width = 242; > $g_logo_top_size_height = 102; > > # set to OFF if you do not want image to redirect to other location when clicked > $g_logo_top_url_enabled = ON; > $g_logo_top_url = 'http://www.mantisbt.org/'; > > # position of the logo on the LOGIN page and the main page. These are HTML values of 'align' > # http://www.w3.org/TR/html401/present/graphics.html#h-15.1.2 > # use either 'left', 'right' or 'center' > $g_logo_top_main_align = 'left'; > $g_logo_top_login_align = 'center'; > > # small bottom logo (button) > $g_logo_button_enabled = ON; > $g_logo_button_file = 'images/mantis_logo_button.gif'; > $g_logo_button_alt = 'Powered by Mantis Bugtracker'; > $g_logo_button_size_enforce = ON; > $g_logo_button_size_width = 88; > $g_logo_button_size_height = 35; > $g_logo_button_url_enabled = ON; > $g_logo_button_url = 'http://www.mantisbt.org/'; > diff -r mantis-1.1.0/core/html_api.php mantis-1.1.1/core/html_api.php 310,314c310,315 < if ( is_page_name( 'login_page' ) ) { < $t_align = 'center'; < } else { < $t_align = 'left'; < } --- > if( config_get('logo_top_enabled') == ON ) { > if ( is_page_name( 'login_page' ) ) { > $t_align = config_get('logo_top_login_align'); > } else { > $t_align = config_get('logo_top_main_align'); > } 316,318c317,328 < echo '
'; < echo 'Mantis Bugtracker'; < echo '
'; --- > if( config_get('logo_top_size_enforce') == ON ) { > $image_tag = sprintf('%4$s', config_get('logo_top_size_width'), config_get('logo_top_size_height'), config_get('logo_top_file'), config_get('logo_top_alt')); > } else { > $image_tag = sprintf('%2$s', config_get('logo_top_file'), config_get('logo_top_alt')); > } > > if( config_get('logo_top_url_enabled') == ON ) { > printf( '
%s
', $t_align, config_get('logo_top_url'), $image_tag ); > } else { > printf( '
%s
', $t_align, $image_tag ); > } > } 470c480,500 < echo 'Powered by Mantis Bugtracker'; --- > > # bottom logo (button) > if( config_get('logo_button_enabled') == ON ) { > > if( config_get('logo_button_size_enforce') == ON ) { > $image_tag = sprintf('%4$s', > config_get('logo_button_size_width'), config_get('logo_button_size_height'), config_get('logo_button_file'), config_get('logo_button_alt') ); > } else { > $image_tag = sprintf('%2$s', config_get('logo_button_file'), config_get('logo_button_alt') ); > } > > if( config_get('logo_button_url_enabled') == ON ) { > printf('%s', config_get('logo_button_url'), $image_tag); > } else { > echo $image_tag; > } > > } else { > echo ' '; > } >