Plugin Directory

Changeset 1649977


Ignore:
Timestamp:
05/02/2017 09:54:51 PM (9 years ago)
Author:
contempoinc
Message:

added rent admin css 164

Location:
contempo-real-estate-custom-posts/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • contempo-real-estate-custom-posts/trunk/ct-real-estate-custom-posts.php

    r1619582 r1649977  
    44 *
    55 * @link              http://contempographicdesign.com
    6  * @since             1.6.3
     6 * @since             1.6.4
    77 * @package           CT_Real_Estate_Custom_Posts
    88 *
     
    1111 * Plugin URI:        http://wordpress.org/contempo-real-estate-custom-posts/
    1212 * Description:       This plugin registers listings & testimonials custom post types, along with related custom fields & taxonomies.
    13  * Version:           1.6.3
     13 * Version:           1.6.4
    1414 * Author:            Contempo
    1515 * Author URI:        http://contempographicdesign.com
  • contempo-real-estate-custom-posts/trunk/includes/ct-real-estate-custom-post-types.php

    r1509422 r1649977  
    7979            td.status a.sold { background: #ff6400;}
    8080            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;}
    8283            td.status a.reduced { background: #bc0000;}
    8384            td.status a.open-house { background: #7faf1b;}
     
    109110
    110111    // 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        }
    126129    }
    127130
  • contempo-real-estate-custom-posts/trunk/includes/ct-real-estate-custom-shortcodes.php

    r1619582 r1649977  
    105105                <?php if(has_post_thumbnail()) { ?>
    106106                <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                    ?>
    107116                    <?php
    108117                        $status_tags = strip_tags( get_the_term_list( $wp_query->post->ID, 'ct_status', '', ' ', '' ) );
    109118                        if($status_tags != '') {
    110                             echo '<h6 class="snipe ';
     119                            echo '<h6 class="snipe status ';
    111120                                    $status_terms = get_the_terms( $wp_query->post->ID, 'ct_status', array() );
    112121                                    if ( ! empty( $status_terms ) && ! is_wp_error( $status_terms ) ){
     
    333342            <li class="listing col span_4 <?php echo $ct_search_results_listing_style; ?> <?php if($count % 3 == 0) { echo 'first'; } ?>">
    334343                <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                    ?>
    335353                    <?php
    336354                        $status_tags = strip_tags( get_the_term_list( $wp_query->post->ID, 'ct_status', '', ' ', '' ) );
    337355                        if($status_tags != '') {
    338                             echo '<h6 class="snipe ';
     356                            echo '<h6 class="snipe status ';
    339357                                    $status_terms = get_the_terms( $wp_query->post->ID, 'ct_status', array() );
    340358                                    if ( ! empty( $status_terms ) && ! is_wp_error( $status_terms ) ){
     
    836854
    837855            <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                ?>
    838865                <?php
    839866                    $status_tags = strip_tags( get_the_term_list( $wp_query->post->ID, 'ct_status', '', ' ', '' ) );
    840867                    if($status_tags != '') {
    841                         echo '<h6 class="snipe ';
     868                        echo '<h6 class="snipe status ';
    842869                                $status_terms = get_the_terms( $wp_query->post->ID, 'ct_status', array() );
    843870                                if ( ! empty( $status_terms ) && ! is_wp_error( $status_terms ) ){
  • contempo-real-estate-custom-posts/trunk/readme.txt

    r1619582 r1649977  
    165165= 1.6.3 =
    166166* 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.