From: <vb...@us...> - 2002-09-19 04:15:51
|
Update of /cvsroot/webnotes/webnotes/themes/phpnet In directory usw-pr-cvs1:/tmp/cvs-serv24424/themes/phpnet Modified Files: theme_api.php Log Message: - page_delete_notes() was not executing the query and hence leaving orphan notes. - Added some extra actions for viewing / moderation. - Added visibility states as constants. - Implemented note_accept(), note_pending(), note_decline(), note_archive(), note_delete() and note_pack_deleted(). - Changed some $g_ with config_get(). - Enhanced link_api to support custom captions. For example, the caption may be an image, text, or whatever. - Initial structure to be used for inline moderation. - View notes with different visibility levels based on the access levels. Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/phpnet/theme_api.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- theme_api.php 15 Sep 2002 05:08:05 -0000 1.12 +++ theme_api.php 19 Sep 2002 04:15:48 -0000 1.13 @@ -67,10 +67,16 @@ # function. The theme should check that a field is defined in # the array before using it. function theme_notes_echo( $p_page, $p_url, $p_note_info_array, $p_preview = false ) { + if ( access_check_action( ACTION_NOTES_MODERATE ) ) { + # @@@@ replace this with [ actions ] + $t_moderation = "This user can moderator"; + } else { + $t_moderation = ''; + } if ( isset( $p_note_info_array['id'] ) && ( $p_note_info_array['id'] != 0 ) ) { $t_id = '#' . (integer)$p_note_info_array['id']; - $t_id_view = '<pre>' . $t_id . '</pre>'; + $t_id_view = '<pre>' . $t_id . '<br />' . $t_moderation . '</pre>'; $t_id_bookmark = "<a name=\"$t_id\"></a>"; } else { $t_id_view = ' '; @@ -102,7 +108,7 @@ <table summary="" border="0" cellpadding="2" cellspacing="0" width="100%"> <tr valign="top" bgcolor="#e0e0e0"> - <td><strong>$t_email</strong><br/>$t_date</td> + <td><strong>$t_email</strong><br />$t_date</td> <td align="right">$t_id_view</td> </tr> <tr bgcolor="#f0f0f0"> |