Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit af78d81

Browse files
committedFeb 10, 2012
New logo, button and favicon.
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.
1 parent 69b3aeb commit af78d81

6 files changed

+12
-5
lines changed
 

‎config_defaults_inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@
744744
* Logo
745745
* @global string $g_logo_image
746746
*/
747-
$g_logo_image = 'images/mantis_logo.gif';
747+
$g_logo_image = 'images/mantis_logo_232x80.png';
748748

749749
/**
750750
* Logo URL link

‎core/html_api.php

+11-4
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ function html_top_banner() {
473473
if( $t_show_url ) {
474474
echo '<a href="', config_get( 'logo_url' ), '">';
475475
}
476-
echo '<img border="0" alt="Mantis Bug Tracker" src="' . helper_mantis_url( config_get( 'logo_image' ) ) . '" />';
476+
echo '<img border="0" alt="Mantis Bug Tracker" src="' . helper_mantis_url( $t_logo_image ) . '" />';
477477
if( $t_show_url ) {
478478
echo '</a>';
479479
}
@@ -659,9 +659,16 @@ function html_footer( $p_file = null ) {
659659
}
660660
}
661661

662-
echo '</td><td>', "\n\t", '<div align="right">';
663-
echo '<a href="http://www.mantisbt.org" title="Free Web Based Bug Tracker"><img src="' . helper_mantis_url( 'images/mantis_logo_button.gif' ) . '" width="88" height="35" alt="Powered by Mantis Bugtracker" border="0" /></a>';
664-
echo '</div>', "\n", '</td></tr></table>', "\n";
662+
echo '</td><td>', "\n\t";
663+
664+
# 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.
665+
if ( !is_page_name( 'login_page' ) ) {
666+
echo '<div align="right">';
667+
echo '<a href="http://www.mantisbt.org" title="Free Web Based Bug Tracker"><img src="' . helper_mantis_url( 'images/mantis_logo_232x80.png' ) . '" width="145" height="50" alt="Powered by Mantis Bugtracker" border="0" /></a>';
668+
echo '</div>', "\n";
669+
}
670+
671+
echo '</td></tr></table>', "\n";
665672
}
666673

667674
/**

‎images/favicon.ico

-256 Bytes
Binary file not shown.

‎images/mantis_logo.gif

-5.08 KB
Binary file not shown.

‎images/mantis_logo_232x80.png

34.9 KB
Loading

‎images/mantis_logo_button.gif

-2.36 KB
Binary file not shown.

2 commit comments

Comments
 (2)

atrol commented on Feb 13, 2012

@atrol
Member

Is it intended to not commit to master branch?

vboctor commented on Feb 13, 2012

@vboctor
MemberAuthor

Not intentional. But I haven't got to it yet. I've a couple of checkins that I need to go back and integrate. Will do that once, I catch up on the latest status of the master/next/etc branches.

Please sign in to comment.