From: <vb...@us...> - 2002-09-20 05:00:40
|
Update of /cvsroot/webnotes/webnotes/themes/phpnet In directory usw-pr-cvs1:/tmp/cvs-serv14325/themes/phpnet Modified Files: theme_api.php Added Files: theme.css Log Message: - Added theme.css under the phpnet theme. - Added print_css_link() to html_api. - Linked the theme.css instead of the css_inc.php in the pages that uses phpWebNotes. Better caching, better customisation, and no need to include admin related styles in pages using phpWebNotes. --- NEW FILE: theme.css --- /* # phpWebNotes - a php based note addition system # Copyright (C) 2000-2002 Webnotes Team - web...@so... # This program is distributed under the terms and conditions of the GPL # See the files README and LICENSE for details # -------------------------------------------------------- # $Id: theme.css,v 1.1 2002/09/20 05:00:36 vboctor Exp $ # -------------------------------------------------------- */ /* form { margin: 0px; display: inline; } body { background-color: #ffffff; font-family:Verdana, Arial; font-size: 10pt } td { font-family:Verdana, Arial; font-size: 10pt; padding: 4px; } p { font-family:Verdana, Arial; font-size: 10pt } h3 { font-family:Verdana, Arial; font-size: 13pt; font-weight: bold; text-align: center } address { font-family:Verdana, Arial; font-size: 8pt } div {width: auto; font-size: 10pt; clear: both;} div.code {background-color: #f0f0f0; border: 1px solid #444444; padding: 8px; font-family: courier new, courier, fixed; white-space: pre;} div.note75 { width: 75%; background-color: #c8e0f8; border: 1px solid #4444aa; padding: 8px;} div.note {background-color: #c8e0f8; border: 1px solid #4444aa; padding: 8px;} div.warning {background-color: #f8e0e0; border: 1px solid #aa4444; padding: 8px;} div.parent {background-color: #e8e8e8; border-bottom: 1px solid #aaaaaa; padding-top: 4px;} div.example {background-color: #f4f4f4; font-family: courier new, courier, fixed; border-left: 1px solid #000000; border-right: 1px solid #000000; display: inline;} div.title {background-color: #c8e0f8; border: 1px solid #4444aa; padding: 8px;} div.box { border: 1px solid #000000; padding: 8px;} div.warning {background-color: #f8e0e0; border: 1px solid #aa4444; padding: 8px;} div.menu {background-color: #f4f4f4; border: 1px solid #000000; padding: 8px; text-align: center; } tr.row-1 { background-color: #d8d8d8; color: #000000; } tr.row-2 { background-color: #e8e8e8; color: #000000; } td.category { background-color: #c8c8e8; color: #000000; font-weight: bold; } td.form-title { background-color: #ffffff; color: #000000; font-weight: bold; } td.form-buttons { background-color: #ffffff; color: #000000; font-weight: bold; text-align: center; } table.width50 { width: 50%; border: solid 1px #000000; } table.width75 { width: 75%; border: solid 1px #000000; } */ Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/phpnet/theme_api.php,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- theme_api.php 20 Sep 2002 04:21:09 -0000 1.19 +++ theme_api.php 20 Sep 2002 05:00:36 -0000 1.20 @@ -24,8 +24,9 @@ ### -------------------- function theme_head() { - global $g_css_inc_file; - print_css( $g_css_inc_file ); + global $g_web_directory; + $t_style = $g_web_directory . 'themes/phpnet/theme.css'; + print_css_link( $t_style ); } ### -------------------- function theme_body( $p_page_data ) { |