Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mantisbt/mantisbt
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 93eb540
Choose a base ref
...
head repository: mantisbt/mantisbt
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 208cb76
Choose a head ref
  • 2 commits
  • 7 files changed
  • 1 contributor

Commits on May 6, 2012

  1. 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.
    vboctor committed May 6, 2012
    Copy the full SHA
    e47a2dc View commit details
  2. Copy the full SHA
    208cb76 View commit details
2 changes: 1 addition & 1 deletion config_defaults_inc.php
Original file line number Diff line number Diff line change
@@ -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
27 changes: 19 additions & 8 deletions core/html_api.php
Original file line number Diff line number Diff line change
@@ -447,8 +447,15 @@ function html_head_end() {
* @return null
*/
function html_body_begin() {
echo '<body>', "\n";
echo '<div id="mantis">', "\n";
$t_centered_page = is_page_name( 'login_page' ) || is_page_name( 'signup_page' ) || is_page_name( 'signup' ) || is_page_name( 'lost_pwd_page' );

echo '<body>', "\n";

if ( $t_centered_page ) {
echo '<div id="mantis" class="centered_page">', "\n";
} else {
echo '<div id="mantis">', "\n";
}

event_signal( 'EVENT_LAYOUT_BODY_BEGIN' );
}
@@ -491,7 +498,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>';
}
@@ -624,12 +631,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";
2 changes: 2 additions & 0 deletions css/default.css
Original file line number Diff line number Diff line change
@@ -599,3 +599,5 @@ ul.project-list li span.access-level, ul.project-list li span.view-state { displ
}

tr.bugnote-private td.bugnote-meta { background-color: #e8e8e8; }

div#mantis.centered_page div#banner { text-align: center; }
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
Loading
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.