--- a/getAgency.php +++ b/getAgency.php @@ -5,11 +5,11 @@ function displayValue($key, $value, $mode) { global $db, $schemas; if ($mode == "view") { - if (strpos($key, "_") === 0 || $key == "metadata") + if (strpos($key, "_") === 0 || $key == "metadata" || $key == "metaTags" || $key == "statistics") return; echo "<tr>"; - echo "<td>"; + echo "<td class='$key'>"; if (isset($schemas['agency']["properties"][$key])) { echo $schemas['agency']["properties"][$key]['x-title'] . "<br><small>" . $schemas['agency']["properties"][$key]['description'] . "</small>"; } @@ -202,8 +202,10 @@ try { $rows = $db->get_view("app", "byCanonicalName")->rows; //print_r($rows); + $rowCount = count($rows); echo '<ul>'; - foreach ($rows as $row) { + foreach ($rows as $i => $row) { + if ($i % ($rowCount/3) == 0 && $i != 0 && $i != $rowCount -2 ) echo "<hr/>"; // print_r($row); echo '<li itemscope itemtype="http://schema.org/GovernmentOrganization" typeof="schema:GovernmentOrganization foaf:Organization" about="getAgency.php?id=' . $row->value->_id . '"> <a href="getAgency.php?id=' . $row->value->_id . '" rel="schema:url foaf:page" property="schema:name foaf:name" itemprop="url"><span itemprop="name">' .