Plugin Directory

Changeset 957371


Ignore:
Timestamp:
07/30/2014 12:42:53 PM (12 years ago)
Author:
displetdev
Message:

Bold MLS number option added

Location:
displetreader-wordpress-plugin
Files:
331 added
5 edited

Legend:

Unmodified
Added
Removed
  • displetreader-wordpress-plugin/trunk/displetreader-wordpress-plugin.php

    r956733 r957371  
    55 * Plugin URI: http://displet.com/wordpress-plugins/displetreader-wordpress-plugin
    66 * Description: RETS/IDX Plugin that inserts real estate listings, statistics, maps, and quick searches into Wordpress pages & widget ready sidebars. Free version available.
    7  * Version: 2.1.10
     7 * Version: 2.1.11
    88 * Author: Displet
    99 * Author URI: http://displet.com/
     
    5050    protected static $_url;
    5151    protected static $_urls;
    52     protected static $_version = '2.1.10';
     52    protected static $_version = '2.1.11';
    5353
    5454    public static function build() {
  • displetreader-wordpress-plugin/trunk/includes/library/displet-template-library.php

    r956733 r957371  
    848848 */
    849849function displetretsidx_the_mls_number_class() {
    850     echo 'displet-mls-value';
     850    $class = 'displet-mls-value';
     851    if ( displetretsidx_is_mls_number_bold() ) {
     852        $class .= ' displet-bold';
     853    }
     854    echo $class;
     855}
     856
     857/**
     858 * @return: boolean
     859 */
     860function displetretsidx_is_mls_number_bold() {
     861    global $displetretsidx_template;
     862    if ( DispletRetsIdxPagesController::is_property_details_page() ) {
     863        if ( !empty( $displetretsidx_template['options']['bold_mls_number_pdp'] ) ) {
     864            return true;
     865        }
     866    }
     867    else if ( !empty( $displetretsidx_template['options']['bold_mls_number'] ) ) {
     868        return true;
     869    }
     870    return false;
    851871}
    852872
  • displetreader-wordpress-plugin/trunk/model/class-displet-rets-idx-settings-model.php

    r956733 r957371  
    978978        $options[] = array(
    979979            'section' => 'listings-fields',
     980            'id' => 'bold_mls_number',
     981            'title' => 'Bold MLS Number',
     982            'desc' => 'Check to bold the MLS number on each listing.',
     983            'type' => 'checkbox',
     984            'std' => 0,
     985            'idx' => true,
     986        );
     987
     988        $options[] = array(
     989            'section' => 'listings-fields',
    980990            'id' => 'include_listing_agent',
    981991            'title' => 'Show Listing Agent',
     
    11201130            'type' => 'checkbox',
    11211131            'std' => 1,
     1132            'idx' => true,
     1133        );
     1134
     1135        $options[] = array(
     1136            'section' => 'pdp-fields',
     1137            'id' => 'bold_mls_number_pdp',
     1138            'title' => 'Bold MLS Number',
     1139            'type' => 'checkbox',
     1140            'std' => 0,
    11221141            'idx' => true,
    11231142        );
  • displetreader-wordpress-plugin/trunk/readme.txt

    r956733 r957371  
    77Requires at least: 3.2
    88Tested up to: 3.9.1
    9 Stable tag: 2.1.10
     9Stable tag: 2.1.11
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • displetreader-wordpress-plugin/trunk/view/templates/displet-property-details-page-content.php

    r956733 r957371  
    3232    }
    3333    if ( displetretsidx_has_mls_number() ) {
     34        $bold = displetretsidx_is_listing_agent_name_bold() ? 'displet-bold' : '';
    3435        $displet_pdp_basic[] =
    3536        '<tr class="displet-mls">
    3637            <td class="displet-detail-title">MLS&reg; #:</td>
    37             <td class="displet-mls-value">' . displetretsidx_get_mls_number() . '</td>
     38            <td class="displet-mls-value ' . $bold . '">' . displetretsidx_get_mls_number() . '</td>
    3839        </tr>';
    3940    }
     
    916917    }
    917918    if ( displetretsidx_has_mls_number() ) {
     919        $bold = displetretsidx_is_mls_number_bold() ? 'displet-bold' : '';
    918920        $displet_pdp_other[] =
    919921        '<tr class="displet-mls-number">
    920922            <td class="displet-detail-title">MLS&reg; #:</td>
    921             <td class="displet-mls-number-value">' . displetretsidx_get_mls_number() . '</td>
     923            <td class="displet-mls-number-value ' . $bold . '">' . displetretsidx_get_mls_number() . '</td>
    922924        </tr>';
    923925    }
Note: See TracChangeset for help on using the changeset viewer.