Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: frontPage
- */
- get_header(); ?>
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <script type="text/javascript">
- $(document).ready(function(){
- $('.ezjax').ezjax({
- container: '#ezjax_content',
- initial: '/login/wp-content/themes/TRTheme/searchForms/noSearch.html',
- effect: 'fade',
- <!--easing: 'easeOutBounce',-->
- bind: 'a'
- });
- });
- </script>
- <div class="fullWidthContent">
- <h1>
- <?php the_title(); ?>
- </h1>
- <h4>
- <?php if ( function_exists('get_custom_field_value') ){
- get_custom_field_value('homepageBlock1Content1', true);} ?>
- </h4>
- <div id="homePagePropertySearch">
- <div id="homePagePropertySearchBox">
- <form action="../">
- <select class="ezjax">
- <option value="">Choose a region</option>
- <option value="/login/wp-content/themes/TRTheme/searchForms/searchNORMLS.html">Cleveland</option>
- <option value="/login/wp-content/themes/TRTheme/searchForms/searchCINCY.html">Cincinnati</option>
- <option value="/login/wp-content/themes/TRTheme/searchForms/searchCBR.html">Columbus</option>
- <option value="/login/wp-content/themes/TRTheme/searchForms/searchDABR.html">Dayton</option>
- <option value="/login/wp-content/themes/TRTheme/searchForms/searchMBOR.html">Mansfield</option>
- <option value="/login/wp-content/themes/TRTheme/searchForms/searchNORRIS.html">Toledo</option>
- <option value="/login/wp-content/themes/TRTheme/searchForms/searchFMLS.html">Sandusky</option>
- <option value="/login/wp-content/themes/TRTheme/searchForms/searchWRIST.html">Troy</option>
- <option value="/login/wp-content/themes/TRTheme/searchForms/searchWCARE.html">Lima</option>
- </select>
- </form>
- <div id="ezjax_content">
- <!-- THIS IS THE CONTAINER WHERE THE CONTENT WILL BE LOADED -->
- </div>
- </div>
- </div>
- <h4>
- <?php if ( function_exists('get_custom_field_value') ){
- get_custom_field_value('homepageBlock1Content2', true);} ?>
- </h4>
- <div id="homePageCopyBelowSearchcol1">
- <p>
- <?php if ( function_exists('get_custom_field_value') ){
- get_custom_field_value('homepageBlock1Content3', true);} ?>
- </p>
- </div>
- <div id="homePageCopyBelowSearchcol2">
- <p>
- <?php if ( function_exists('get_custom_field_value') ){
- get_custom_field_value('homepageBlock1Content4', true);} ?>
- </p>
- <p>
- <?php if ( function_exists('get_custom_field_value') ){
- get_custom_field_value('homepageBlock1Content5', true);} ?>
- </p>
- </div>
- <div id="homePageCopyBelowSearchcol3">
- <p>
- <?php if ( function_exists('get_custom_field_value') ){
- get_custom_field_value('homepageBlock1Content6', true);} ?>
- </p>
- </div>
- <div class="clear"></div>
- <?php the_content(); ?>
- </div>
- <div id="lowerLeftContent">
- <div class="leftTwoThirdsContent">
- <div id="homePageMortgageRates">
- <h3>mortgage rates</h3>
- <?php display_mlcalc_rates(); ?>
- </div>
- <div id="homePagePaymentCalculator">
- <h3>mortgage calculator</h3>
- <?php display_mlcalc(); ?>
- </div>
- <div class="clear"></div>
- </div>
- <div class="leftTwoThirdsContent">
- <div id="homePageMailingListInfo">
- <p>
- <?php if ( function_exists('get_custom_field_value') ){
- get_custom_field_value('homepageEmailPolicy', true);} ?>
- <a href="#">Privacy Policy</a> </p>
- </div>
- <div id="homePageMailingListForm">
- <h3>Join The Mailing List</h3>
- </div>
- <div class="clear"></div>
- </div>
- <div class="leftTwoThirdsContent">
- <div class="frontPageLocations">
- <h5>Cleveland</h5>
- <?php if ( function_exists('get_custom_field_value') ){
- get_custom_field_value('homepageClevelandLocation', true);} ?>
- </div>
- <div class="frontPageLocations">
- <h5>Columbus</h5>
- <?php if ( function_exists('get_custom_field_value') ){
- get_custom_field_value('homepageColumbusLocation', true);} ?>
- </div>
- <div class="frontPageLocations">
- <h5>Toledo</h5>
- <?php if ( function_exists('get_custom_field_value') ){
- get_custom_field_value('homepageToledoLocation', true);} ?>
- </div>
- <div class="frontPageLocations">
- <h5>Cincinnati</h5>
- <?php if ( function_exists('get_custom_field_value') ){
- get_custom_field_value('homepageCincinnatiLocation', true);} ?>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- <div id="lowerRightContent"> <img id="frontPageAgentSearchImage" src="/login/wp-content/themes/TRTheme/images/frontPageFindAgent.jpg" />
- <div class="rightOneThirdContent">
- <h2>FIND AN AGENT</h2>
- </div>
- <div id="frontPageAgentSearchBox">
- <div> <br/>
- <span>By Region</span> <br/>
- <?php the_dropdown_taxonomy('regions'); ?>
- <?php
- //first get all agents
- $agents = new WP_Query(array('post_type' => 'agents', 'posts_per_page' => -1, 'order' => 'ASC', 'orderby' => 'title'));
- //then just print out the dropdown:
- if ($agents->have_posts()){
- echo '<select id="agents">';
- while ($agents->have_posts()){
- $agents-the_post();
- echo '<option value="'.get_permalink($post->ID).'">'.get_the_title($post->ID).'</option>';
- }
- ?>
- </select>
- <script type="text/javascript">
- var dropdown = document.getElementById("agents");
- function onCatChange() {
- if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
- location.href = dropdown.options[dropdown.selectedIndex].value;
- }
- }
- dropdown.onchange = onCatChange;
- </script>
- <?php
- }
- ?>
- <?php wp_reset_postdata(); ?>
- </div>
- </div>
- <img id="frontPageBecomeAgentImage" src="/login/wp-content/themes/TRTheme/images/frontPageBecomeAgent.jpg" />
- <div class="rightOneThirdContent">
- <h2>BECOME AN AGENT</h2>
- <p>Interested in joining?</p>
- </div>
- </div>
- <div class="clear"></div>
- <?php endwhile; ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement