take note of style sheet changes
| From: | Daniel Convissor | Date: | Wed, 19 May 2004 13:48:06 +0000 |
| Subject: | take note of style sheet changes | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-2403@lists.php.net to get a copy of this message | ||
Hi Folks:
Writing everyone to reduce confusion. All cascading style sheets (except
the javascript calendar stuff) have been moved to the
pearweb/public_html/css directory.
If you make a page that needs customized style sheets, put the following
array in your script before calling response_header():
$extra_styles[] = 'your-file-name.css';
Add as many as you wish. The $extra_styles array is initialized already
by prepended scripts, so you don't need to create a new array or worry
about crackers trying to tinker with it.
Then, when response_header() is generating the headers, it goes ahead and
loops through each of the elements...
foreach ($extra_styles as $style_file) {
echo ' <link rel="stylesheet" href="/css/' . $style_file .
"\" />\n";
}
Hope that helps,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409