/
taxonomy-type.php
108 lines (79 loc) · 3.77 KB
/
taxonomy-type.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?php
/**
* The Template for displaying all single posts.
*
* @package Total
* @subpackage Templates
* @author Alexander Clarke
* @copyright Copyright (c) 2015, WPExplorer.com
* @link http://www.wpexplorer.com
* @since 1.0.0
* @version 2.1.0
*/
get_header(); ?>
<div id="content-wrap" class="container clr">
<?php wpex_hook_primary_before(); ?>
<div id="primary" class="content-area clr">
<?php wpex_hook_content_before(); ?>
<main id="content" class="site-content clr" role="main">
<?php wpex_hook_content_top(); ?>
<?php global $query_string;
query_posts( $query_string . '&order=ASC' . '&orderby=title' );
?>
<?php echo category_description(); ?>
<div class="property-list">
<?php $counter =0; ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
++$counter;
if($counter == 3) {
$postclass = 'property end';
$counter = 0;
}
else { $postclass = 'property'; }
?>
<?php $bluerock_highlights3 = get_post_meta( get_the_ID(), 'bluerock_highlights3', true); ?>
<div id="post-<?php the_ID(); ?>" class="<?php echo $postclass; ?>" <?php if( ! empty( $bluerock_highlights3 ) ) {
echo 'style="background:url(';
echo plugins_url();
echo '/bluerock-portfolio/img/sold.png) no-repeat;background-position: 100% 0;"';
} ?>>
<a href="<?php echo get_permalink(); ?>" class="propertylink">
<?php
// Display featured image
if ( has_post_thumbnail() ) : ?>
<div id="post-media" class="<?php if( ! empty( $bluerock_highlights3 ) ) {
echo 'sold '; } ?>clr">
<?php echo wpex_post_thumbnail( array( 'size' => 'portfolio-thumby', 'alt' => wpex_get_esc_title(), ) ); ?>
</div><!-- #post-media -->
<?php endif; ?>
<h2 class="property-heading">
<?php the_title(); ?>
</h2><!-- .single-post-title -->
<div class="property-location">
<?php $bluerock_location = get_post_meta( get_the_ID(), 'bluerock_location', true); ?>
<?php echo $bluerock_location; ?>
</div> </a>
<?php
// Link pages when using <!--nextpage-->
wp_link_pages( array(
'before' => '<div class="page-links clr">',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
) );
// get_template_part( 'partials/social', 'share' ); // Social sharing links - disabled by default
// Get the post comments & comment_form
?>
<?php wpex_hook_content_bottom(); ?>
</div>
<?php endwhile; ?>
<div class="clear"></div>
<?php wpex_pagination(); ?>
</div>
</main><!-- #content -->
<?php wpex_hook_content_after(); ?>
</div><!-- #primary -->
<?php dynamic_sidebar( 'portfolio-sidebar' ); ?>
</div><!-- .container -->
<?php get_footer(); ?>