From: <vb...@us...> - 2002-09-05 06:25:24
|
Update of /cvsroot/webnotes/webnotes/themes In directory usw-pr-cvs1:/tmp/cvs-serv26048/themes Modified Files: theme_api.php Log Message: - Fixed a problem with the default value for $g_absolute_directory - Enhanced the themes template. - Cleanup of admin.php - Did cleaning of parameters before injecting them into SQL in api.php - Updated the roadmap. - Cleanup of logout.php - Cleanup of login_page.php - Cleanup of login.php - Cleanup of note_add.php - Cleanup of note_add_page.php (still more work). - Cleanup of xml.php - Cleanup of webservices.php - Cleanup of index.html Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/theme_api.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- theme_api.php 3 Sep 2002 01:10:39 -0000 1.1 +++ theme_api.php 5 Sep 2002 06:25:20 -0000 1.2 @@ -9,6 +9,26 @@ # $Id$ # -------------------------------------------------------- + ######################################################################### + # This is an empty template to be used to create new themes. + # To create a new theme, please follow the following steps: + # - Create a directory under the themes directory with the theme name. + # - Make a copy of this file under the new theme directory + # - Assign $g_theme to the theme name (not the full path) in + # core/custom_config_inc.php + ######################################################################### + + # The path to the api.php is calculated assume this file resides in a sub-directory + # under themes. For example, themes/phpnet/. + require_once ( dirname( dirname( dirname( __FILE__ ) ) ) . DIRECTORY_SEPARATOR . 'api.php' ); + + # Identifies the version of the theme. This will allow the phpWebNotes + # engine in the future to support themes that are designed for older + # versions of phpWebNotes. + function theme_version() { + return (1); + } + # This function is called before printing any notes to the page. function theme_notes_start( $p_page ) { } |