+if ( $lastmod = @filemtime(SM_PATH . $oTemplate->get_template_file_directory()
+ . 'css/stylesheet.tpl') ) {
+ $gmlastmod = gmdate('D, d M Y H:i:s', $lastmod) . ' GMT';
+ $expires = gmdate('D, d M Y H:i:s', strtotime('+1 week')) . ' GMT';
+ header('Last-Modified: ' . $gmlastmod);
+ header('Expires: '. $expires);
+ header('Pragma: ');
+ header('Cache-Control: public, must-revalidate');
+}
+// Steve, why did you remove this? Is it irrelevant now? If so, let's
+// remove the rest of the references to it here (note that it is being
+// used above in the filetime() statement) and elsewhere
+// $oTemplate->display('css/stylesheet.tpl');
+
+/**
+ * Additional styles are now handled by adding stylesheets to
+ * templates/<template>/css/, so here, we simply define some
+ * basic styles based on user prefs.
+ */
+?>
+/* older css template */
+body, td, th, dd, dt, h1, h2, h3, h4, h5, h6, p, ol, ul, li {
+<?php
+if($fontfamily) echo ' font-family: '.$fontfamily.";\n";
+?>
+}
+body, small {
+<?php
+if($fontsize) echo ' font-size: '.($fontsize-2)."pt;\n";
+?>
+}
+td, th {
+<?php
+if($fontsize) echo ' font-size: '.$fontsize."pt;\n";
+?>
+}
+textarea, pre {
+font-family: monospace;
+<?php
+if($fontsize) echo ' font-size: '.($fontsize-1)."pt;\n";
+?>
+}