Skip to content

Commit

Permalink
Support MantisHub logo and override via logo.png for customization
Browse files Browse the repository at this point in the history
- Use MantisHub logo as the default branding at the top of the pages.
- mantishub_config_inc.php is distributed with MantisHub code and overrides configs after config_inc.php.

Conflicts:
	core.php
	library/disposable
  • Loading branch information
vboctor committed Nov 1, 2014
1 parent 3410c45 commit 0b2a9c1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -44,3 +44,5 @@ web.config
#libraries
library/jpgraph
library/FirePHPCore

images/logo.png
1 change: 1 addition & 0 deletions core.php
Expand Up @@ -86,6 +86,7 @@
require_once( $g_config_path . 'config_inc.php' );
}

require_once( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'mantishub_config_inc.php' );

/**
* Define an API inclusion function to replace require_once
Expand Down
Binary file added images/mantishub_logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions mantishub_config_inc.php
@@ -0,0 +1,10 @@
<?php

# If the instance has a logo.png file specific to the instant, then use it to override MantisHub logo
$t_instance_logo = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'logo.png';

if ( file_exists( $t_instance_logo ) ) {
$g_logo_image = 'images/logo.png';
} else {
$g_logo_image = 'images/mantishub_logo.png';
}

0 comments on commit 0b2a9c1

Please sign in to comment.