* @hooked shandora_search_get_listing - 2
 * @hooked shandora_open_main_content_row - 5
 * @hooked shandora_get_left_sidebar - 10
 * @hooked shandora_open_main_content_column - 15
 *
 */
do_atomic('before_loop');
?>


                <?php 
bon_get_template_part('loop', 'car-listing');
?>

                <?php 
bon_get_template_part('loop', 'nav');
// Loads the loop-nav.php template.
?>
        <?php 
/**
 * Shandora After Loop Hook
 *
 * @hooked shandora_close_main_content_column - 1
 * @hooked shandora_get_right_sidebar - 5
 * @hooked shandora_close_main_content_row - 10
 *
 */
do_atomic('after_loop');
?>

    </div>
Exemplo n.º 2
0
        ?>

                    <?php 
        bon_get_template_part('content', post_type_supports(get_post_type(), 'post-formats') ? get_post_format() : get_post_type());
        ?>

                <?php 
    }
    ?>

            <?php 
} else {
    ?>

                <?php 
    bon_get_template_part('loop', 'error');
    // Loads the loop-error.php template.
    ?>

            <?php 
}
?>

        <?php 
/**
 * Shandora After Loop Hook
 *
 * @hooked shandora_close_main_content_column - 1
 * @hooked shandora_get_right_sidebar - 5
 * @hooked shandora_close_main_content_row - 10
 *
Exemplo n.º 3
0
            if (array_key_exists($status, $status_opt)) {
                echo $status_opt[$status];
            }
        }
        ?>
</span></div>


		</header><!-- .entry-header -->

		<div class="entry-summary">

			<?php 
        do_atomic('entry_summary');
        ?>

		</div><!-- .entry-summary -->

		<?php 
        bon_get_template_part('block', 'listing-footer');
        ?>

</article>
</li>
<?php 
    }
    ?>
	</ul>
<?php 
}
wp_reset_query();
Exemplo n.º 4
0
  <div class="slider-inner-container">
      
      <div id="main-slider" class="flexslider" data-interval="<?php 
    echo bon_get_option('slider_interval', 12000);
    ?>
">

        <ul class="slides">
          <?php 
    while ($loop->have_posts()) {
        $loop->the_post();
        ?>
            
            <?php 
        bon_get_template_part('block', 'slider');
        ?>

          <?php 
    }
    ?>
        </ul>

      </div>

  </div>

</div>

<?php 
} else {
Exemplo n.º 5
0
			</form>
		</div>
	</div>
	<?php 
    }
    ?>
</article>

<?php 
    $show_listing = bon_get_option('show_agent_listing', 'yes');
    ?>

<?php 
    if ($show_listing == 'yes') {
        ?>
<div id="agent-listings">
	<h3><?php 
        printf(__('Latest Listings by %s', 'bon'), get_the_title(get_the_ID()));
        ?>
</h3>
	<?php 
        bon_get_template_part('block', 'agentlisting');
        ?>
</div>
<?php 
    }
} else {
    ?>

<?php 
}
Exemplo n.º 6
0
    function shandora_get_main_navigation()
    {
        $nav_style = bon_get_option('main_header_nav_style', 'dark');
        $no_search = 'no-search';
        ?>
			<hgroup id="main-navigation" class="<?php 
        echo $nav_style;
        ?>
">
				<?php 
        if (bon_get_option('show_header_search', 'yes') == 'yes') {
            $no_search = '';
            ?>
					<div class="searchform-container">
						<?php 
            shandora_get_searchform('header');
            ?>
					</div>
				<?php 
        }
        ?>
				<div class="nav-block <?php 
        echo $no_search;
        ?>
">
					<?php 
        bon_get_template_part('menu', 'primary');
        // Loads the menu-primary.php template.
        ?>
				</div>
				<div class="header-toggler hide-for-small"><div class="toggler-button"></div></div>
			</hgroup>

		<?php 
    }
    ?>
assets/images/loader.gif" alt="loading..." />
				</div>
				<div class="sending-result"><div class="green bon-toolkit-alert"></div></div>
			</form>
		</div>
	</div>
</article>

<div id="agent-listings">
	<h3><?php 
    printf(__('Latest Listing by %s', 'bon'), get_the_title(get_the_ID()));
    ?>
</h3>
	<?php 
    bon_get_template_part('block', 'salesreplisting');
    ?>
</div>

<?php 
} else {
    ?>

<li>
<article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class($status);
    ?>
 itemscope itemtype="http://schema.org/AutoDealer">
Exemplo n.º 8
0
        <?php 
/**
 * Shandora Before Loop Hook
 *
 * @hooked shandora_get_page_header - 1
 * @hooked shandora_search_get_listing - 2
 * @hooked shandora_open_main_content_row - 5
 * @hooked shandora_get_left_sidebar - 10
 * @hooked shandora_open_main_content_column - 15
 *
 */
do_atomic('before_loop');
?>
   
            <?php 
bon_get_template_part('loop', get_post_type());
?>

        <?php 
/**
 * Shandora After Loop Hook
 *
 * @hooked shandora_close_main_content_column - 1
 * @hooked shandora_get_right_sidebar - 5
 * @hooked shandora_close_main_content_row - 10
 *
 */
do_atomic('after_loop');
?>

    </div>
function shandora_render_builder_element_car_listing($value)
{
    $layout = get_theme_mod('theme_layout');
    if (empty($layout)) {
        $layout = get_post_layout(get_queried_object_id());
    }
    extract($value);
    $o = '';
    $car_ids = array();
    if ($body_type == 'all' || !empty($car_id)) {
        $body_type = '';
    }
    if ($dealer_location == 'all' || !empty($car_id)) {
        $dealer_location = '';
    }
    if ($car_feature == 'all' || !empty($car_id)) {
        $car_feature = '';
    }
    if ($manufacturer == 'all' || !empty($car_id)) {
        $manufacturer = '';
    }
    $meta_car_query = array();
    if (!empty($car_id)) {
        $car_ids = explode(',', $car_id);
    } else {
        if (isset($car_query) && $car_query != ' latest') {
            switch ($car_query) {
                case 'featured':
                    $meta_car_query = array('key' => bon_get_prefix() . 'listing_featured', 'value' => true, 'compare' => '=');
                    break;
                case 'new':
                    $meta_car_query = array('key' => bon_get_prefix() . 'listing_status', 'value' => 'new', 'compare' => '=');
                    break;
                case 'used':
                    $meta_car_query = array('key' => bon_get_prefix() . 'listing_status', 'value' => 'used', 'compare' => '=');
                    break;
                case 'certified':
                    $meta_car_query = array('key' => bon_get_prefix() . 'listing_status', 'value' => 'certified', 'compare' => '=');
                    break;
            }
        }
    }
    $car_loop = array('post_type' => 'car-listing', 'post__in' => $car_ids, 'posts_per_page' => $numberposts, 'body-type' => $body_type, 'dealer-location' => $dealer_location, 'car-feature' => $car_feature, 'manufacturer' => $manufacturer, 'meta_query' => array($meta_car_query));
    $mobile = bon_get_option('mobile_layout', '2');
    $block_cls = '4';
    if ($layout == '2c-l' || $layout == '2c-r') {
        $block_cls = '3';
    }
    $ul_class = "small-block-grid-" . $mobile . " large-block-grid-" . $block_cls;
    $compare_page = bon_get_option('compare_page');
    query_posts($car_loop);
    if (have_posts()) {
        $o .= '<div id="listings-container" class="row">';
        $o .= '<div class="' . shandora_column_class('large-12', false) . '">';
        $o .= '<ul class="listings ' . $ul_class . '" data-compareurl="' . get_permalink($compare_page) . '">';
        while (have_posts()) {
            the_post();
            $suffix = 'listing_';
            $badge = shandora_get_meta(get_the_ID(), $suffix . 'badge');
            $badgeclr = shandora_get_meta(get_the_ID(), $suffix . 'badge_color');
            $o .= '<li>';
            $o .= '<article id="post-' . get_the_ID() . '" class="' . join(' ', get_post_class($badgeclr, null, false)) . '" itemscope itemtype="http://schema.org/RealEstateAgent">';
            ob_start();
            bon_get_template_part('block', 'listing-header');
            $o .= ob_get_clean();
            $o .= '<div class="entry-summary">';
            ob_start();
            do_atomic('entry_summary');
            $o .= ob_get_clean();
            $o .= '</div>';
            ob_start();
            bon_get_template_part('block', 'listing-footer');
            $o .= ob_get_clean();
            $o .= '</article></li>';
        }
        $o .= '</ul></div></div>';
    }
    wp_reset_query();
    return $o;
}
Exemplo n.º 10
0
<?php

/*
* Template Name: Home
*/
get_header();
?>


<div id="inner-wrap" class="slide ">

    	<?php 
if (bon_get_option('show_slider', 'show') == 'show') {
    bon_get_template_part('loop', 'slider');
}
?>

    	<div id="body-container" class="container">

            <?php 
/**
 * Shandora Before Loop Hook
 *
 * @hooked shandora_get_page_header - 1
 * @hooked shandora_search_get_listing - 2
 * @hooked shandora_open_main_content_row - 5
 * @hooked shandora_get_left_sidebar - 10
 * @hooked shandora_open_main_content_column - 15
 *
 */
do_atomic('before_loop');