Changeset 1649977
- Timestamp:
- 05/02/2017 09:54:51 PM (9 years ago)
- Location:
- contempo-real-estate-custom-posts/trunk
- Files:
-
- 4 edited
-
ct-real-estate-custom-posts.php (modified) (2 diffs)
-
includes/ct-real-estate-custom-post-types.php (modified) (2 diffs)
-
includes/ct-real-estate-custom-shortcodes.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
contempo-real-estate-custom-posts/trunk/ct-real-estate-custom-posts.php
r1619582 r1649977 4 4 * 5 5 * @link http://contempographicdesign.com 6 * @since 1.6. 36 * @since 1.6.4 7 7 * @package CT_Real_Estate_Custom_Posts 8 8 * … … 11 11 * Plugin URI: http://wordpress.org/contempo-real-estate-custom-posts/ 12 12 * Description: This plugin registers listings & testimonials custom post types, along with related custom fields & taxonomies. 13 * Version: 1.6. 313 * Version: 1.6.4 14 14 * Author: Contempo 15 15 * Author URI: http://contempographicdesign.com -
contempo-real-estate-custom-posts/trunk/includes/ct-real-estate-custom-post-types.php
r1509422 r1649977 79 79 td.status a.sold { background: #ff6400;} 80 80 td.status a.for-sale { background: #34495e;} 81 td.status a.leased { background: #90f;} 81 td.status a.leased, 82 td.status a.rented { background: #90f;} 82 83 td.status a.reduced { background: #bc0000;} 83 84 td.status a.open-house { background: #7faf1b;} … … 109 110 110 111 // Define columns to filter in the edit posts section 111 function ct_listings_cols($columns) { 112 $columns = array( 113 //Create custom columns 114 'cb' => '<input type="checkbox" />', 115 'image' => __('Image', 'contempo'), 116 'title' => __('Address', 'contempo'), 117 'location' => __('Location', 'contempo'), 118 'price' => __('Price', 'contempo'), 119 'beds' => __('Beds', 'contempo'), 120 'baths' => __('Baths', 'contempo'), 121 'author' => __('Agent', 'contempo'), 122 'status' => __('Status', 'contempo'), 123 'date' => __('Listed', 'contempo') 124 ); 125 return $columns; 112 if(!function_exists('ct_listings_cols')) { 113 function ct_listings_cols($columns) { 114 $columns = array( 115 //Create custom columns 116 'cb' => '<input type="checkbox" />', 117 'image' => __('Image', 'contempo'), 118 'title' => __('Address', 'contempo'), 119 'location' => __('Location', 'contempo'), 120 'price' => __('Price', 'contempo'), 121 'beds' => __('Beds', 'contempo'), 122 'baths' => __('Baths', 'contempo'), 123 'author' => __('Agent', 'contempo'), 124 'status' => __('Status', 'contempo'), 125 'date' => __('Listed', 'contempo') 126 ); 127 return $columns; 128 } 126 129 } 127 130 -
contempo-real-estate-custom-posts/trunk/includes/ct-real-estate-custom-shortcodes.php
r1619582 r1649977 105 105 <?php if(has_post_thumbnail()) { ?> 106 106 <figure class="col span_6 first"> 107 <?php 108 if(has_term( 'featured', 'ct_status' ) ) { 109 echo '<h6 class="snipe featured">'; 110 echo '<span>'; 111 echo __('Featured', ''); 112 echo '</span>'; 113 echo '</h6>'; 114 } 115 ?> 107 116 <?php 108 117 $status_tags = strip_tags( get_the_term_list( $wp_query->post->ID, 'ct_status', '', ' ', '' ) ); 109 118 if($status_tags != '') { 110 echo '<h6 class="snipe ';119 echo '<h6 class="snipe status '; 111 120 $status_terms = get_the_terms( $wp_query->post->ID, 'ct_status', array() ); 112 121 if ( ! empty( $status_terms ) && ! is_wp_error( $status_terms ) ){ … … 333 342 <li class="listing col span_4 <?php echo $ct_search_results_listing_style; ?> <?php if($count % 3 == 0) { echo 'first'; } ?>"> 334 343 <figure> 344 <?php 345 if(has_term( 'featured', 'ct_status' ) ) { 346 echo '<h6 class="snipe featured">'; 347 echo '<span>'; 348 echo __('Featured', ''); 349 echo '</span>'; 350 echo '</h6>'; 351 } 352 ?> 335 353 <?php 336 354 $status_tags = strip_tags( get_the_term_list( $wp_query->post->ID, 'ct_status', '', ' ', '' ) ); 337 355 if($status_tags != '') { 338 echo '<h6 class="snipe ';356 echo '<h6 class="snipe status '; 339 357 $status_terms = get_the_terms( $wp_query->post->ID, 'ct_status', array() ); 340 358 if ( ! empty( $status_terms ) && ! is_wp_error( $status_terms ) ){ … … 836 854 837 855 <figure> 856 <?php 857 if(has_term( 'featured', 'ct_status' ) ) { 858 echo '<h6 class="snipe featured">'; 859 echo '<span>'; 860 echo __('Featured', ''); 861 echo '</span>'; 862 echo '</h6>'; 863 } 864 ?> 838 865 <?php 839 866 $status_tags = strip_tags( get_the_term_list( $wp_query->post->ID, 'ct_status', '', ' ', '' ) ); 840 867 if($status_tags != '') { 841 echo '<h6 class="snipe ';868 echo '<h6 class="snipe status '; 842 869 $status_terms = get_the_terms( $wp_query->post->ID, 'ct_status', array() ); 843 870 if ( ! empty( $status_terms ) && ! is_wp_error( $status_terms ) ){ -
contempo-real-estate-custom-posts/trunk/readme.txt
r1619582 r1649977 165 165 = 1.6.3 = 166 166 * Added Contempo icon to CT Modules in Visual Composer 167 = 1.6.4 = 168 * Added admin CSS for "Rented" status
Note: See TracChangeset
for help on using the changeset viewer.