Update of /cvsroot/webnotes/webnotes/themes/phpnet
In directory usw-pr-cvs1:/tmp/cvs-serv16363
Modified Files:
theme_api.php
Log Message:
add text at the end of the page when the page doesnt have any note
Index: theme_api.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/themes/phpnet/theme_api.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- theme_api.php 10 Sep 2002 03:16:14 -0000 1.4
+++ theme_api.php 10 Sep 2002 04:42:10 -0000 1.5
@@ -120,7 +120,7 @@
$c_url = urlencode( $p_url );
$t_page_id = get_page_id( $p_page );
-
+
$url = $g_web_directory . '/themes/' . $g_theme . '/images/';
$add_picture = $url . 'notes_add.gif';
@@ -129,7 +129,7 @@
<td colspan="2" align="right"><a href="$g_note_add_page?f_page_id=$t_page_id&f_url=$c_url">
<img src="$add_picture" border="0" width="13" height="13" ALT="add a note"/>
</a></td>
- </tr>
+ </tr>
</table>
EOT;
}
@@ -139,9 +139,16 @@
# APIs are not called.
function theme_notes_none( $p_page, $p_url ) {
theme_notes_start( $p_page, $p_url );
- theme_notes_end( $p_page, $p_url );
+ #theme_notes_end( $p_page, $p_url );
+
+ echo <<<EOT
+ <tr valign="top">
+ <td bgcolor="#e0e0e0" colspan="2">There are no user contributed notes for this page.
+ </td>
+ </tr>
+ </table>
+EOT;
}
-
# This function is called if the current page was not indexed
function theme_not_indexed( $p_page ) {
}
|