Page 1 of 1

Sample file for "top_include_page"?

Posted: 12 May 2006, 23:37
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

Posted: 14 May 2006, 09:43
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/

Thanks!

Posted: 14 May 2006, 12:43
by sparker
Victor,

Thanks for the advice. I really appreciate it.

Steve