' . '' . '%s' . '' . '%s' . '%s' . ''; $thead = sprintf( $fmt, __( 'Date', 'document-gallery' ), __( 'Level', 'document-gallery' ), __( 'Message', 'document-gallery' ) ); ?>
0; $i-- ) { $log_entry = $log_list[ $i - 1 ]; $date = DocumentGallery::localDateTimeFromTimestamp( $log_entry[0] ); // convert attachment names to links $log_entry[2] = preg_replace( '/[ ^](attachment #)(\d+)[.,: ]/i', ' \1\2 ', $log_entry[2] ); // bold the place where log entry was submitted $log_entry[2] = preg_replace( '/^(\((?:\w+(?:::|->))?\w+\)) /', '\1 ', $log_entry[2] ); // italicize any function references within log entry $log_entry[2] = preg_replace( '/(\(?\w+(?:::|->)\w+\)?)/m', '\1', $log_entry[2] ); echo '' . '' . '' . '' . PHP_EOL; } ?>
' . $date . '' . $levels[ $log_entry[1] ] . '' . ( empty( $log_entry[3] ) ? '
' . $log_entry[2] . '
' : '
' . $log_entry[2] . '
' . $log_entry[3] . '
' ) . '
' . __( 'There are no log entries at this time.', 'document-gallery' ) . '
' . __( 'For Your information:', 'document-gallery' ) . ' ' . __( 'Logging', 'document-gallery' ) . ' ' . ( DG_Logger::logEnabled() ? '' . __( 'is turned ON', 'document-gallery' ) . '!' : '' . __( 'is turned OFF', 'document-gallery' ) . '!' ) . ''; } } /** * Takes label name and returns SPAN tag. * * @param string $e label name. * * @return string SPAN tag */ function dg_get_log_label_span( $e ) { return '' . strtoupper( $e ) . ''; }