WordPress.org

Ready to get started?Download WordPress

Forums

IProperty Real Estate Agent
[resolved] Change Title on Banner (2 posts)

  1. jillianmariegraphics
    Member
    Posted 10 months ago #

    Hello,

    I'm just wondering if it's possible to change what it says on the banner after you update. It would be great to be able to show when a listing is sold by having it say "sold" on the banner.

    Let me know if you have any ideas.

    Thanks.

    http://wordpress.org/plugins/intellectual-property-basic/

  2. thinkeryllc
    Member
    Plugin Author

    Posted 10 months ago #

    Hi - sorry for the delay. This feature is currently not available for the WP version, only in the Joomla version. A simple workaround would be to edit the banners in the following files:

    plugins/iproperty/views/_compact_property.php
    plugins/iproperty/views/single_property.php

    for example, check if the sale type = sold, and if so, create a sold banner instead of the updated or new banner:

    <?php if ( $property->get_sale_type_name() == 'Sold' ) : ?>
    <div class="iproperty-ribbon-wrapper"><div class="iproperty-ribbon iproperty-ribbon-blue"><?php _e( 'Sold', 'iproperty' ); ?></div></div>
    <?php elseif ( $property->is_newly_published() && iproperty_use_css_banner() ) : ?>
    <div class="iproperty-ribbon-wrapper"><div class="iproperty-ribbon iproperty-ribbon-green"><?php _e( 'New', 'iproperty' ); ?></div></div>
    <?php elseif ( $property->is_recently_updated() && iproperty_use_css_banner() ) : ?>
    <div class="iproperty-ribbon-wrapper"><div class="iproperty-ribbon iproperty-ribbon-blue"><?php _e( 'Updated', 'iproperty' ); ?></div></div>
    <?php endif; ?>

    This cannot be supported, but hopefully it helps.

Reply

You must log in to post.

About this Plugin

About this Topic