if ($myrow[2] != 1) { $db_url = $proxyURL; } $newlist .= "<li><a href=\"{$db_url}{$myrow['1']}[0]\">{$myrow['0']}</a></li>\n"; } $newlist .= "</ul>\n"; // Add header now include "includes/header_um.php"; // put together our main result display $guide_results = ""; if (isset($_GET["d"])) { $guide_results = listGuideCollections($_GET["d"]); } else { // Default collection listing $intro = "<p></p>"; $guide_results = listCollections($search); } //$layout = makePluslet("", $guide_results, "","",FALSE); // End CHC hack //////////////////////////// // Now we are finally read to display the page //////////////////////////// ?> <div class="panel-container"> <div class="pure-g" id="guidesplash"> <div class="pure-u-1 pure-u-lg-3-4 panel-adj" id="listguides"> <div class="breather"> <?php print $guide_results;
// put together our main result display //************************************** // let's use our Pretty URLs if mod_rewrite = TRUE or 1 if ($mod_rewrite == 1) { $guide_path = ""; } else { $guide_path = $PublicPath . "guide.php?subject="; } // We don't want our placeholder if (in_array('Placeholder', $guide_types)) { unset($guide_types[array_search('Placeholder', $guide_types)]); } $layout = ""; //init // let's grab our collections $collection_results = listCollections("", "2col"); // loop through our source types foreach ($guide_types as $key => $value) { $guide_list = new GuideList($db, $value, 1); $all_guides = $guide_list->toArray(); // get our full listing of guides as an array $total_rows = count($all_guides); // total number of guides $switch_row = round($total_rows / 2); if ($total_rows > 0) { $col_1 = "<div class=\"pure-u-1 pure-u-md-1-2\"><ul class=\"guide-listing\">"; $col_2 = "<div class=\"pure-u-1 pure-u-md-1-2\"><ul class=\"guide-listing\">"; $row_count = 1; foreach ($all_guides as $myrow) { $guide_location = $guide_path . $myrow['shortform']; $list_bonus = "";