-
Notifications
You must be signed in to change notification settings - Fork 0
/
taxonomy.php
61 lines (55 loc) · 3.56 KB
/
taxonomy.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php get_header();?>
<div id="sidebar" class="common">
<?php if ( !dynamic_sidebar( __('Sidebar','language') ) ) : ?>
<?php endif; ?>
</div>
<div class="tri-col-span right detail-page">
<div class="cpsAjaxLoaderSingle">
</div>
</div>
<?php cps_ajax_search_results(); ?>
<div class="top-single-bar hide">
<div class="backToInventory show-for-small"><a href="javascript: history.go(-1)">< Back</a></div>
<div class="show-for-small refine-search-single"><a id="searchBoxPop2" href="#"></a></div>
<div class="clear"></div>
</div>
<div id="content-single">
<h2 class="result-page-title-tax" ><?php single_cat_title('Results for: '); ?></h2>
<div style="clear:both"></div>
<?php wp_reset_postdata();?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php require_once(TEMPLATEPATH."/functions/var/default-box-one.php");
require_once(TEMPLATEPATH."/functions/var/default-box-two.php");
require_once(TEMPLATEPATH."/functions/var/default-box-three.php");
global $options;$fields;$options2;$options3;$symbols;
$fields = get_post_meta($post->ID, 'mod1', true);
$options2 = get_post_meta($post->ID, 'mod2', true);
$options3 = get_post_meta($post->ID, 'mod3', true);
$symbols = get_option('gorilla_symbols');
$options = get_option('gorilla_fields');
?>
<div class="result-car hideOnSearch"><!-- result car -->
<a href="<?php the_permalink();?>">
<span class="<?php echo $fields['statustag'];?>"></span>
</a>
<a href="<?php the_permalink();?>"><?php gorilla_img($post->ID,'thumbnail_results');?><span class="<?php $fields['statustag'];?>"></span></a>
<div class="result-detail-wrapper"> <!-- result detail wrapper -->
<p><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php echo $post->post_title ?>"><?php echo $post->post_title ?></a></p>
<p><strong><?php if (isset( $fields['miles'])){ echo $fields['miles'].' '.$options['milestext'];}else { echo ''; };?></strong></p>
<p><?php if (isset( $fields['vehicletype'])){ echo $fields['vehicletype'].' | ';}else { echo ''; };?> <?php if (isset( $fields['transmission'])){ echo $fields['transmission'];}else { echo ''; };?><br/><?php if (isset( $options2['cylinders'])){ echo $options2['cylinders'].' '.$options['cylinderstext'].' | ';}else { echo ''; };?><?php if (isset( $fields['interior'])){ echo $fields['interior'].' | ';}else { echo ''; };?><?php if (isset( $fields['epamileage'])){ echo $fields['epamileage'];}else { echo ''; };?></p>
<p class="result-price"><?php include(TEMPLATEPATH."/functions/var/default-box-one.php"); if (is_numeric( $fields['price'])){ echo $symbols['currency']; echo number_format($fields['price']); } else { echo number_format($fields['price']); } ?></p>
</div> <!-- result detail wrapper ends -->
</div> <!-- result car ends -->
<?php endwhile; else: ?>
<p style="padding:30px;"><?php _e('Sorry, no listings matched your criteria.','language');?></p>
<?php endif; ?>
<div class="bottom-pagination hideOnSearch"> <!-- Pagination starts -->
<p><a href="#top"><?php _e('BACK TO TOP','language');?></a></p>
<p class="paging">
<?php cps_show_pagination() ?>
</p>
</div> <!-- Pagination ends -->
</div>
<div style="clear:both"></div>
</div>
<?php get_footer(); ?>