|
$s_user_notes
|
|
EOT;
}
# This function is called for every note. The note information
# are all included in the associative array that is passed to the
# 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 ) {
global $g_primary_dark_color, $g_primary_light_color, $g_white_color;
if ( isset( $p_note_info_array['email'] ) ) {
$t_email = $p_note_info_array['email'];
} else {
$t_email = '';
}
if ( isset( $p_note_info_array['date'] ) ) {
$t_date = $p_note_info_array['date'];
} else {
$t_date = '';
}
if ( isset( $p_note_info_array['note'] ) ) {
$t_note = '' . $p_note_info_array['note'] . '
';
} else {
$t_note = ' ';
}
echo <<
$t_email - $t_date |
| $t_note |
|
EOT;
}
# This function is called after all notes are echo'ed.
function theme_notes_end( $p_page, $p_url ) {
global $g_primary_dark_color, $g_note_add_page, $g_admin_manage_notes, $g_admin_page,
$s_add_note_link, $s_manage, $s_admin;
$c_url = urlencode( $p_page );
$t_page_id = page_get_id( $p_page );
echo <<
$s_add_note_link
EOT;
if ( is_moderator() ) {
echo <<$s_manage
| $s_admin
EOT;
}
echo <<
|
EOT;
}
# This function is called if the current page has no notes associated
# with it. In this case theme_notes_start() and theme_notes_end()
# 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 );
}
# This function is called if the current page was not indexed
function theme_not_indexed( $p_page ) {
global $g_administrator_email, $s_not_indexed_part1, $s_administrator, $s_not_indexed_part2;
echo <<
$s_not_indexed_part1 $s_administrator $s_not_indexed_part2
EOT;
}
?>