Sample file for "top_include_page"?

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
sparker
Posts: 2
Joined: Apr 13, 2006 6:16 pm
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: 1289
Joined: Feb 13, 2005 5:11 pm
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: Apr 13, 2006 6:16 pm
Location: Colorado

Thanks!

Post by sparker »

Victor,

Thanks for the advice. I really appreciate it.

Steve
--
Steve

Post Reply