globalization of header and body info

From: Date: Fri, 16 Jul 1999 17:42:24 +0000
Subject: globalization of header and body info
Groups: php.dev 
Request: Send a blank email to php-dev+get-8615@lists.php.net to get a copy of this message
After discussions with Sam, we've decided that a central place where header and body information will be defined will greatly reduce maintenance costs. This will allow us to pull in style sheets and set global document colors from a single location. It is likely we will be changing the way we pull fonts in at least a few times in the next few weeks. This code should be merged in as we work on files, it is not necessary to do it all today; I'll take care of it early next week. Here are the functions (in master.inc): # Create header information for fonts, etc. # Please include within header block of document function buildHeaderInfo() { ?> <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1"> <!-- pull in style sheet --> <LINK NAME="cssDefault" REL="StyleSheet" TYPE="text/css" HREF="/css/default.css"> <!-- font info for NN4 only.. --> <LINK REL=FONTDEF SRC="/css/myriad.pfr" DISABLED> <? } # Create <BODY> tag # This will replace body tag on all pages function buildBodyTag() { ?> <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#333399" VLINK="#9999CC" ALINK="#996699" MARGINWIDTH="0" MARGINHEIGHT="0" TOPMARGIN="0" LEFTMARGIN="0"> <? } original text: ------------- <html><!-- #BeginTemplate "/Templates/template1.dwt" --> <head> <!-- #BeginEditable "doctitle" --> <title>more.com - vitamins and more</title> <!-- #EndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <LINK NAME="cssDefault" REL="StyleSheet" TYPE="text/css" HREF="/css/default.css"> <!-- the following are intended for NN4 only.. --> <LINK REL=FONTDEF SRC="/css/myriad.pfr" DISABLED> <!-- #BeginEditable "dochead" --> <!-- #EndEditable --> </head> <body bgcolor="#ffffff" text="#000000" link="#333399" vlink="#9999cc" alink="#996699" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0"> replaceement text: ----------------- <HEAD> <TITLE>more.com - vitamins and more</title> <? buildHeaderInfo(); ?> </HEAD> <? buildBodyTag(); ?>

« previous php.dev (#8615) next »