--- a/documents/template.inc.php +++ b/documents/template.inc.php @@ -68,7 +68,8 @@ </p> <ul class="nav"> - <li><a href="index.php">Home</a></li> + <li><a href="agency.php">By Agency</a></li> + <li><a href="date.php">By Date</a></li> <li><a href="disclogsList.php">List of Disclosure Logs</a></li> <li><a href="about.php">About</a></li> @@ -82,6 +83,7 @@ } function include_footer_documents() { + global $ENV; ?> </div> <!-- /container --> <hr> @@ -89,7 +91,9 @@ <footer> <p>Not affiliated with or endorsed by any government agency.</p> </footer> - <script type="text/javascript"> + <?php + if ($ENV != "DEV") { + echo "<script type='text/javascript'> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-12341040-4']); @@ -106,7 +110,9 @@ s.parentNode.insertBefore(ga, s); })(); - </script> + </script>"; + } + ?> <!-- Le javascript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> @@ -163,7 +169,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>";