--- a/documents/template.inc.php +++ b/documents/template.inc.php @@ -61,7 +61,9 @@ <a class="brand" href="#">Australian Disclosure Logs</a> <div class="nav-collapse collapse"> <p class="navbar-text pull-right"> - Check out our subsites on: + <small> + Subsites on: + </small> <a href="http://orgs.disclosurelo.gs">Government Agencies</a> • <a href="http://lobbyists.disclosurelo.gs">Political Lobbyists</a> • <a href="http://contracts.disclosurelo.gs">Government Contracts and Spending</a> @@ -83,6 +85,7 @@ } function include_footer_documents() { + global $ENV; ?> </div> <!-- /container --> <hr> @@ -154,8 +157,8 @@ function displayLogEntry($row, $idtoname) { $result = ""; $result .= '<div itemscope itemtype="http://schema.org/Article">'; - $result .= '<h2> <span itemprop="datePublished">' . $row->value->date . "</span>: <span itemprop='name headline'>" . truncate($row->value->title, 120) . "</span>"; - $result .= ' (<span itemprop="author publisher creator">' . $idtoname[$row->value->agencyID] . '</span>)</h2>'; + $result .= '<h2><a href="http://disclosurelo.gs/view.php?id='.$row->value->_id.'"> <span itemprop="datePublished">' . $row->value->date . "</span>: <span itemprop='name headline'>" . truncate($row->value->title, 120) . "</span>"; + $result .= ' (<span itemprop="author publisher creator">' . $idtoname[$row->value->agencyID] . '</span>)</a></h2>'; $result .= "<p itemprop='description articleBody text'> Title: " . $row->value->title . "<br/>"; if (isset($row->value->description)) { $result .= str_replace("\n", "<br>", preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "",trim($row->value->description))); @@ -168,7 +171,7 @@ if (isset($row->value->links)) { $result .= '<h3>Links/Documents</h3><ul itemprop="associatedMedia">'; foreach ($row->value->links as $link) { - $result .= '<li itemscope itemtype="http://schema.org/MediaObject"><a href=' . htmlspecialchars ($link) . ' itemprop="url contentURL">' . htmlspecialchars ( $link) . "</a></li>"; + $result .= '<li itemscope itemtype="http://schema.org/MediaObject"><a href="' . htmlspecialchars ($link) . '" itemprop="url contentURL">' . htmlspecialchars ( $link) . "</a></li>"; } $result .= "</ul>";