Пример #1
0
<?php 
//Determines the parrent page to pull in Heading/Sub Heading
if (get_community() == "edgewater") {
    $headID = 4375;
} else {
    if (get_community() == "legend-at-villebois") {
        $headID = 4381;
    } else {
        if (get_community() == "village-at-orenco") {
            $headID = 4468;
        } else {
            if (get_community() == "walnut-creek") {
                $headID = 4502;
            } else {
                if (get_community() == "willamette-landing") {
                    $headID = 4528;
                }
            }
        }
    }
}
$category = get_the_category();
?>
	<div class="headmeta">			
		<h2><span><?php 
echo $category[0]->cat_name;
?>
</span></h2>
		<div class="headtxtbar"></div>		
	</div>		
$url = explode("/", $_SERVER["REQUEST_URI"]);
if (in_array("move-in-ready", $url)) {
    $type = "move-in-ready";
} else {
    $type = $url[3];
}
?>

<?php 
//Determines if page should hide sold properties gfh
$hide_sold = get_field('hide_sold') ? true : false;
?>

<?php 
//Determine community
$community = get_community();
?>
			
					
	<div class="headmeta">			
		<h2><span><?php 
echo get_post_meta($headID, 'Heading-Title', true);
?>
</span></h2>
		<div class="headtxtbar"><?php 
echo get_post_meta($headID, 'Heading-SubTitle', true);
?>
</div>		
	</div>		

	<div id="container">