--- a/documents/template.inc.php
+++ b/documents/template.inc.php
@@ -1,95 +1,110 @@
-
-
-
+
+
+
-
-
-
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12341040-4']);
@@ -106,31 +121,34 @@
s.parentNode.insertBefore(ga, s);
})();
-
-
-
-
+ ";
+ }
+ ?>
+
+
+
-
+
- $length) {
//limit hit!
@@ -146,14 +164,15 @@
return $string;
}
-function displayLogEntry($row, $idtoname) {
+function displayLogEntry($row, $idtoname)
+{
$result = "";
$result .= '
';
- $result .= '
' . $row->value->date . ": " . truncate($row->value->title, 120) . "";
- $result .= '(' . $idtoname[$row->value->agencyID] . ')
';
- $result .= "
Title" . $row->value->title . "
";
+ $result .= '
';
+ $result .= "
Title: " . $row->value->title . "
";
if (isset($row->value->description)) {
- $result .= str_replace("\n", "
", $row->value->description);
+ $result .= str_replace("\n", "
", preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "", trim($row->value->description)));
}
if (isset($row->value->notes)) {
$result .= "
Note: " . $row->value->notes;
@@ -163,13 +182,13 @@
if (isset($row->value->links)) {
$result .= '
Links/Documents
";
}
$result .= "
View original source... ID: " . strip_tags($row->value->docID) . "";
- $result .= "
";
+ $result .= "
\n";
return $result;
}