0 && in_array("community", $addPages); if (isset($msPage) == false || $isDisplayed == false) { $link = "about.html?cid={$crestId}"; header ("Location: ".$link); exit; } $commPages = MicrositePage::getCommunityPagesOnUser($agent); if (isset($commPages) == false || count($commPages) == 0) { // nothing to display, redirect $link = "about.html?cid={$crestId}"; header ("Location: ".$link); exit; } $title = isset($commPages) && count($commPages) > 1 ? "Communities" : "Community"; ?> getNameNice()); include("meta.inc"); ?>

"; $msPhotos = $commPage->getImages(); $links = $commPage->getLinks(); $className = ((isset($msPhotos) && count($msPhotos) > 0) || (isset($links) && count($links) > 0)) ? "span9" : "span12"; echo "
\n"; echo "

".htmlspecialchars($commPage->getTitle())."

\n"; echo $commPage->getContent(); $sections = $commPage->getSections(); $communitySection = isset($sections) && count($sections) > 0 ? $sections["community"] : NULL; $subDivision = isset($communitySection) ? $communitySection->getTitle() : NULL; if (isset($subDivision)) { echo "

"; echo "View Active Community Listings"; echo " | "; echo "View Sold & Under Contract Listings"; echo "

"; } echo "
"; if ((isset($msPhotos) && count($msPhotos) > 0) || (isset($links) && count($links) > 0)) { echo "
\n"; if (isset($msPhotos) && count($msPhotos) > 0) { echo "
\n"; $photo = $msPhotos[0]; $imgSrc = $photo->getPhotoUrl(); $w = $photo->getPhotoWidth(); $h = $photo->getPhotoHeight(); echo "\"\"";
"; $caption = $photo->getPhotoTitle(); if (isset($caption) == false || strlen($caption) == 0) { $caption = " "; } else { $caption = htmlspecialchars($caption); } echo "
"; echo "
".$caption."
\n"; } if (isset($links) && count($links) > 0) { echo "

Community Links

"; $links = $commPage->getLinks(); if (isset($links) && count($links) > 0) { echo "\n"; } } echo "
"; } echo ""; $i++; } ?>