Page 1 of 1

Sample file for "top_include_page"?

Posted: May 12, 2006 6:37 pm
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....


Posted: May 14, 2006 4:43 am
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

$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. 


Posted: May 14, 2006 7:43 am
by sparker

Thanks for the advice. I really appreciate it.