Created
December 28, 2010 20:36
-
-
Save dmolsen/757677 to your computer and use it in GitHub Desktop.
The map module federated template that adds the appropriate HTML to $html to be used in the final template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// a template for web/search/ feature hence why it's totally different than all others | |
$html .= "<div class='nonfocal'><strong>Campus Map Results</strong></div>"; | |
$html .= "<p class='focal results'>"; | |
if ($total == 0) { | |
$html .= "No results returned."; | |
} else { | |
$i = 0; | |
if ($total > 3) { | |
while ($i < 3) { | |
$place = $results[$i]; | |
ob_start(); | |
include("../map/templates/$prefix/items.html"); | |
$html .= ob_get_contents(); | |
ob_end_clean(); | |
$i++; | |
} | |
$more = $total - 3; | |
$html .= "<a href='/map/search.php?filter=".$filter."'>".$more." more results...</a><br />"; | |
} else { | |
while ($i < $total) { | |
$place = $results[$i]; | |
ob_start(); | |
include("../map/templates/$prefix/items.html"); | |
$html .= ob_get_contents(); | |
ob_end_clean(); | |
$i++; | |
} | |
} | |
} | |
$html .= "</p>"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment