Sample file for "top_include_page"?

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
sparker
Posts: 2
Joined: 13 Apr 2006, 23:16
Location: Colorado

Sample file for "top_include_page"?

Post by sparker »

Does anybody have a sample "top_include_page" that I could look at for ideas on how to put my own custom banner at the top of each page (logo, links, etc).

From what I see in config_defaults_inc.php, this functionality is supported, but I can't figure out what kind of file to "set this to". An "html" file? A php file? A combination?

Thanks (in advance) for any tips or help....

Steve
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

You can set the header and footer to html or php files.

Following is the template I use for my header files. Obviously, this will go into a .php file:

Code: Select all

<?php
$is_login_page = strpos( $_SERVER['PHP_SELF'], 'login_page' ) !== false;

if ( $is_login_page ) {
	# echo the header for the login page.
} else {
	# echo the header for other pages. 
}
?>
Regards,
Victor
MantisConnect
http://www.futureware.biz/
sparker
Posts: 2
Joined: 13 Apr 2006, 23:16
Location: Colorado

Thanks!

Post by sparker »

Victor,

Thanks for the advice. I really appreciate it.

Steve
--
Steve
Post Reply