

<?php get_header();?>



<div id="main" role="main">				
				<div class="pagecontent">					
					<div class="cols">
                   			
						
	
	<div><h1>ChemDry Locations in Your Area</h1>	
  
  
        <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
         
         <article class="post">
		<div> <h3 style="color:#934699; padding-bottom:0px;"><?php the_title(); ?></h1>
  	<h4 style="padding-top:0px;"><?php
 
if(get_field('area'))
{
	echo   get_field('area') ;
}
 
?></h4>
  <p> <?php
 
if(get_field('phone1'))
{
	echo 'Phone: ' .  get_field('phone1') ;
}
 
?><br/>
                <?php
 
if(get_field('phone2'))
{
	echo 'Cell: ' .  get_field('phone2') ;
}
 
?><br/>
             
               <?php
 
if(get_field('fax'))
{
	echo 'Fax: ' .  get_field('fax') ;
}
 
?><br/>

 
  Email: <a style="text-decoration:underline; color:#934699; font-weight:300;" href="mailto:<?php the_field('email'); ?>" target="_blank"/><?php the_field('email'); ?></a>  <br/> 
    <a style="text-decoration:underline; color:#934699; font-weight:300;" href="<?php the_field('website_url'); ?>"/> Website</a> </p>
            </div></article>
            
             
       

 <?php endwhile; else: ?>
 <p><?php _e('There are no locations in your area.'); ?></p>

        
        <?php endif; ?> 
      

	</div>			
    
			<div class="sidebar">
                        
                        
     <h4>Locate A Franchise</h4>
	
<p>Please enter your postcode to find a Chem-Dry franchise near you.
	</p>
    <form action="<?php bloginfo('url'); ?>" method="get">
	<div class="styled-select">
	<?php wp_dropdown_categories('show_count=0&hierarchical=0&child_of=13'); ?></div> 
	<input type="submit" name="submit" class="button green alt " value="view" />
	
	  </form>
        
      </div>
	
	

    </div>
    				
				</div>				
			</div>

<?php get_footer();?>
