Skip to content

Commit

Permalink
New logo, button and favicon.
Browse files Browse the repository at this point in the history
1. Logo - for now login page and normal pages use the same logo size.  In future versions, we may include a slightly larger one for the login page.  Didn't want to include this in a minor update, since this is a configurable image name, and hence adding a new logo, may end up with having a mix of two logos.

2. The button is now a scaled version of the logo.  For this reason, it is removed from the footer of the login page, but kept on the others.

3. Added the new favicon.
  • Loading branch information
vboctor committed May 6, 2012
1 parent 93eb540 commit e47a2dc
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config_defaults_inc.php
Expand Up @@ -800,7 +800,7 @@
* Logo
* @global string $g_logo_image
*/
$g_logo_image = 'images/mantis_logo.gif';
$g_logo_image = 'images/mantis_logo_232x80.png';

/**
* Logo URL link
Expand Down
16 changes: 10 additions & 6 deletions core/html_api.php
Expand Up @@ -491,7 +491,7 @@ function html_top_banner() {
if( $t_show_url ) {
echo '<a id="logo-link" href="', config_get( 'logo_url' ), '">';
}
echo '<img id="logo-image" alt="Mantis Bug Tracker" src="' . helper_mantis_url( config_get( 'logo_image' ) ) . '" />';
echo '<img id="logo-image" alt="Mantis Bug Tracker" src="' . helper_mantis_url( $t_logo_image ) . '" />';
if( $t_show_url ) {
echo '</a>';
}
Expand Down Expand Up @@ -624,12 +624,16 @@ function html_footer( $p_file = null ) {

echo "<div id=\"footer\">\n";
echo "\t<hr />\n";
echo "\t<div id=\"powered-by-mantisbt-logo\">\n";
$t_mantisbt_logo_url = helper_mantis_url( 'images/mantis_logo_button.gif' );
echo "\t\t<a href=\"http://www.mantisbt.org\" title=\"Mantis Bug Tracker: a free and open source web based bug tracking system.\"><img src=\"$t_mantisbt_logo_url\" width=\"88\" height=\"35\" alt=\"Powered by Mantis Bug Tracker: a free and open source web based bug tracking system.\" /></a>\n";
echo "\t</div>\n";

# Show optional user-specificed custom copyright statement
# We don't have a button anymore, so for now we will only show the resized version of the logo when not on login page.
if ( !is_page_name( 'login_page' ) ) {
echo "\t<div id=\"powered-by-mantisbt-logo\">\n";
$t_mantisbt_logo_url = helper_mantis_url( 'images/mantis_logo_232x80.png' );
echo "\t\t<a href=\"http://www.mantisbt.org\" title=\"Mantis Bug Tracker: a free and open source web based bug tracking system.\"><img src=\"$t_mantisbt_logo_url\" width=\"145\" height=\"50\" alt=\"Powered by Mantis Bug Tracker: a free and open source web based bug tracking system.\" /></a>\n";
echo "\t</div>\n";
}

# Show optional user-specificed custom copyright statement
$t_copyright_statement = config_get( 'copyright_statement' );
if ( $t_copyright_statement ) {
echo "\t<address id=\"user-copyright\">$t_copyright_statement</address>\n";
Expand Down
Binary file modified images/favicon.ico
Binary file not shown.
Binary file removed images/mantis_logo.gif
Binary file not shown.
Binary file added images/mantis_logo_232x80.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/mantis_logo_button.gif
Binary file not shown.

0 comments on commit e47a2dc

Please sign in to comment.