Update of /cvsroot/webnotes/webnotes/core
In directory usw-pr-cvs1:/tmp/cvs-serv14325/core
Modified Files:
html_api.php
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.
Index: html_api.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/core/html_api.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- html_api.php 20 Sep 2002 04:17:43 -0000 1.9
+++ html_api.php 20 Sep 2002 05:00:35 -0000 1.10
@@ -27,6 +27,10 @@
}
}
### --------------------
+ function print_css_link( $p_css ) {
+ echo "<link href=\"$p_css\" rel=\"stylesheet\" type=\"text/css\" />";
+ }
+ ### --------------------
function print_meta_inc( $p_meta_inc = '' ) {
if ( !empty( $p_meta_inc ) && file_exists( $p_meta_inc ) ) {
include_once( $p_meta_inc );
|