From: <vb...@us...> - 2002-09-20 04:17:46
|
Update of /cvsroot/webnotes/webnotes/sample In directory usw-pr-cvs1:/tmp/cvs-serv5624/sample Modified Files: webservices.php xhtml.php xml.php Log Message: - Fixed the preview to use the new theme interface. - Fixed a layout problem with the preview page (because of styles). - Added APIs for updating the last-modified of pages / notes (not supported by db yet). - Renamed theme_output() to theme_body() and changed it to handle the case where the page data is false (page not indexed and auto index off). - Added theme_head() to be called with the <head>...</head> tags. - Added pwn_api.php to act the the main interface to phpWebNotes (pwn_head() and pwn_body()). - Changed the samples to use the new pwn_* apis. - Added meta tags to disable caching for pages that has phpWebNotes linked to it. - Used include_once() in all html_apis to avoid styles and other includes from being included more than once. Index: webservices.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/webservices.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- webservices.php 19 Sep 2002 22:50:38 -0000 1.6 +++ webservices.php 20 Sep 2002 04:17:43 -0000 1.7 @@ -11,6 +11,10 @@ <html> <head> <title>Web services (from Webopedia)</title> + <?php + require_once("../core/api.php"); # replace with actual path + pwn_head(); + ?> </head> <body> <h1>Web services</h1> @@ -26,10 +30,7 @@ <p>The above definition was copied from <a href="http://www.webopedia.com">Webopedia</a>.</p> - <?php - require_once("../core/api.php"); # replace with actual path - print_web_notes( 'Web Services', $PHP_SELF, 'XHTML', null ); - ?> + <?php pwn_body( 'Web Services', $PHP_SELF, 'XHTML', null ); ?> <br /> <a href="http://sourceforge.net/projects/webnotes/"><img src="http://sourceforge.net/sflogo.php?group_id=15381&type=5" width="140" height="42" border="0" alt="phpWebNotes @ SourceForge"></a> Index: xhtml.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/xhtml.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- xhtml.php 20 Sep 2002 02:48:47 -0000 1.2 +++ xhtml.php 20 Sep 2002 04:17:43 -0000 1.3 @@ -1,6 +1,10 @@ <html> <head> <title>XHTML</title> + <?php + require_once("../core/api.php"); # replace with actual path + pwn_head(); + ?> </head> <body> <h1>XHTML</h1> @@ -11,10 +15,7 @@ <p>When applied to Net devices, XHTML must go through a modularization process. This enables XHTML pages to be read by many different platforms.</p> <p>A device designer, using standard building blocks, will specify which elements are supported. Content creators will then target these building blocks--or modules.</p> <p>Because these modules conform to certain standards, XHTML's extensibility ensures that layout and presentation stay true-to-form over any platform.</p> - <?php - require_once("../core/api.php"); # replace with actual path - print_web_notes( 'XHTML', $PHP_SELF, 'XML', 'Web Services' ); - ?> + <?php pwn_body( 'XHTML', $PHP_SELF, 'XML', 'Web Services' ); ?> <br /> <a href="http://sourceforge.net/projects/webnotes/"><img src="http://sourceforge.net/sflogo.php?group_id=15381&type=5" width="140" height="42" border="0" alt="phpWebNotes @ SourceForge"></a> </body> Index: xml.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/xml.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- xml.php 19 Sep 2002 22:50:38 -0000 1.6 +++ xml.php 20 Sep 2002 04:17:43 -0000 1.7 @@ -11,6 +11,10 @@ <html> <head> <title>XML (from Webopedia)</title> + <?php + require_once("../core/api.php"); # replace with actual path + pwn_head(); + ?> </head> <body> <h1>XML</h1> @@ -19,10 +23,7 @@ <p>The above definition was copied from <a href="http://www.webopedia.com">Webopedia</a>.</p> - <?php - require_once("../core/api.php"); # replace with actual path - print_web_notes( 'XML', $PHP_SELF, null, 'XHTML' ); - ?> + <?php pwn_body( 'XML', $PHP_SELF, null, 'XHTML' ); ?> <br /> <a href="http://sourceforge.net/projects/webnotes/"><img src="http://sourceforge.net/sflogo.php?group_id=15381&type=5" width="140" height="42" border="0" alt="phpWebNotes @ SourceForge"></a> </body> |