"; $t_link_end = ''; } else { $t_link_start = $t_link_end = ''; } # # HEADER # $t_about_page = config_get( 'about_page' ); echo <<
$t_page — ${t_link_start}Add${t_link_end}
HTML; # # NOTES # if ( 0 === count( $t_notes ) ) { echo <<There are no user contributed notes for this page. HTML; } else { for ( $i = 0; $i < count( $t_notes ); $i++ ) { $t_moderation = ''; $t_note_info = $t_notes[$i]; if ( false === $p_page_data['preview'] ) { if ( access_check_action( ACTION_NOTES_MODERATE ) ) { $t_url = $p_page_data['url']; $t_moderation = ''; if ( $t_note_info['visible'] != NOTE_VISIBLE_ACCEPTED ) { $t_moderation .= link_note_action( $t_note_info['id'], 'accept', $t_url, access_check_action( ACTION_NOTES_MODERATE_ACCEPT ) ) . ' '; } if ( $t_note_info['visible'] != NOTE_VISIBLE_PENDING ) { $t_moderation .= link_note_action( $t_note_info['id'], 'queue', $t_url, access_check_action( ACTION_NOTES_MODERATE_QUEUE ) ) . ' '; } if ( $t_note_info['visible'] != NOTE_VISIBLE_DECLINED ) { $t_moderation .= link_note_action( $t_note_info['id'], 'decline', $t_url, access_check_action( ACTION_NOTES_MODERATE_DECLINE ) ) . ' '; } if ( $t_note_info['visible'] != NOTE_VISIBLE_ARCHIVED ) { $t_moderation .= link_note_action( $t_note_info['id'], 'archive', $t_url, access_check_action( ACTION_NOTES_MODERATE_ARCHIVE ) ) . ' '; } $t_moderation .= link_note_action( $t_note_info['id'], 'edit', $t_url, access_check_action( ACTION_NOTES_EDIT ) ); if ( $t_note_info['visible'] != NOTE_VISIBLE_DELETED ) { $t_moderation .= link_note_action( $t_note_info['id'], 'delete', $t_url, access_check_action( ACTION_NOTES_MODERATE_DELETE ) ); } } } if ( isset( $t_note_info['id'] ) && ( $t_note_info['id'] != 0 ) ) { $t_id = (integer)$t_note_info['id']; $t_visibility = ''; if ( NOTE_VISIBLE_ACCEPTED != $t_note_info['visible'] ) { $t_visibility = '(' . note_get_visibility_str( $t_note_info['visible'] ) . ') - '; } if ( access_check_action( ACTION_NOTES_MODERATE ) ) { $t_id_view = "— $t_visibility $t_moderation"; } else { $t_id_view = ' '; } $t_id_bookmark = "$t_id"; } else { $t_id_view = ' '; $t_id_bookmark = ''; } if ( isset( $t_note_info['email'] ) ) { if ( access_check_action( ACTION_NOTES_MODERATE ) ) { $t_email = ''.$t_note_info['email'].''; } else { $t_email = str_replace('@',"-at-",substr($t_note_info['email'],0,15)) . '...'; } } else { $t_email = ''; } if ( isset( $t_note_info['date'] ) ) { $t_date = date('Y-m-d G:i', $t_note_info['date']); } else { $t_date = ''; } if ( isset( $t_note_info['note'] ) ) { $t_note = nl2br($t_note_info['note']); } else { $t_note = ' '; } echo <<${t_id_bookmark} $t_email on $t_date $t_id_view
${t_note}HTML; } } # # FOOTER # if ( empty( $p_page_data['prev_page'] ) ) { $t_prev_text = ''; } else { $t_prev_text = "
$t_prev_text — $t_next_text
"; } if ( false === $p_page_data['preview'] ) { $t_link_start = ""; $t_link_end = ''; } else { $t_link_start = $t_link_end = ''; } if ( 0 !== count( $t_notes ) ) { echo <<$t_page — ${t_link_start}Add${t_link_end} HTML; } if ( false === $p_page_data['preview'] ) { $t_last_updated = date('Y-m-d G:i:s', $p_page_data['last_updated']); echo <<Last updated: $t_last_updated HTML; } echo << HTML; if ( ( false === $p_page_data['preview'] ) && ( access_is_logged_in() ) ) { echo '