Plugin Directory

Changeset 1661982


Ignore:
Timestamp:
05/22/2017 05:48:44 AM (9 years ago)
Author:
listingswp
Message:

Version 1.0.9

Location:
listings-wp/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • listings-wp/trunk/assets/css/listings-wp.css

    r1661925 r1661982  
    2929    max-width: 100%;
    3030}
     31.listings-wp-single .title, .listings-wp-items .title {
     32    text-align: left;
     33}
    3134/* ======================================== SINGLE LISTING ========================================
    3235*/
    3336/* anti-spam fields - x 2 */
    3437
    35 .contact-form form .cmb2-id-url {
     38#listings-wp-contact form .cmb2-id-url {
    3639    display: none;
    3740    visibility: hidden;
    3841}
    39 .contact-form form .cmb2-id-comment {
     42#listings-wp-contact form .cmb2-id-comment {
    4043    display: none;
    4144    visibility: hidden;
     45}
     46#listings-wp-contact form .form-table {
     47    margin-bottom: 10px;
    4248}
    4349.listings-wp-single .type-listing {
     
    835841    }
    836842    .listings-wp .sidebar {
    837         margin-top: 0;
     843        margin: 0;
    838844        float: right;
    839845        width: 30%
  • listings-wp/trunk/includes/frontend/class-lwp-template-loader.php

    r1654776 r1661982  
    4545        }
    4646           
    47         if ( ( is_archive() && get_post_type() == 'listing' ) || is_listng_search() ) {
     47        if ( ( is_archive() && get_post_type() == 'listing' ) || is_listing_search() ) {
    4848            $file = 'archive-listing.php';
    4949        }
  • listings-wp/trunk/includes/frontend/template-tags.php

    r1661925 r1661982  
    200200/*=================================== Archive page ===================================
    201201*/
    202 add_filter( 'get_the_archive_title', 'listings_wp_listing_display_theme_title', 10, 1 );
     202add_filter( 'get_the_archive_title', 'listings_wp_listing_display_theme_title' );
    203203function listings_wp_listing_display_theme_title( $title ) {
    204     if( ! is_listing_archive() )
    205         return $title;
    206    
    207     $title = listings_wp_listing_archive_get_title();
     204    if( is_listing_archive() ){
     205        $title = listings_wp_listing_archive_get_title();
     206    }
    208207    return $title;
    209 
    210208}
    211209
     
    240238            $page_title .= sprintf( __( ' – Page %s', 'listings-wp' ), get_query_var( 'paged' ) );
    241239
     240    } elseif ( is_listing_archive() ) {
     241
     242        $page_id = listings_wp_option( 'archives_page' );
     243        $page_title = get_the_title( $page_id );
     244
    242245    } else {
    243246
    244247        $page_title = get_the_title();
    245 
    246248    }
    247249
  • listings-wp/trunk/includes/functions-general.php

    r1654776 r1661982  
    33// Exit if accessed directly
    44if ( ! defined( 'ABSPATH' ) ) exit;
    5 
    65
    76/**
     
    113112    }
    114113
    115     return apply_filters( 'is_listings_wp', ( is_listing_archive() || is_listing() || is_listng_search() || $is_agent ) ? true : false );
     114    $result = apply_filters( 'is_listings_wp', ( is_listing_archive() || is_listing() || is_listing_search() || $is_agent ) ? true : false );
     115
     116    return $result;
    116117}
    117118
     
    136137 * is_lisitng - Returns true when viewing listings search results page
    137138 */
    138 if ( ! function_exists( 'is_listng_search' ) ) {
    139     function is_listng_search() {
     139if ( ! function_exists( 'is_listing_search' ) ) {
     140    function is_listing_search() {
    140141        if( ! is_search() )
    141142            return;
  • listings-wp/trunk/listings-wp.php

    r1661925 r1661982  
    66 * Author URI: http://listings-wp.com
    77 * Plugin URI: http://listings-wp.com
    8  * Version: 1.0.8
     8 * Version: 1.0.9
    99 * Text Domain: listings-wp
    1010 * Domain Path: languages
     
    9292        $this->define( 'LISTINGSWP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    9393        $this->define( 'LISTINGSWP_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
    94         $this->define( 'LISTINGSWP_VERSION', '1.0.8' );
     94        $this->define( 'LISTINGSWP_VERSION', '1.0.9' );
    9595    }
    9696
  • listings-wp/trunk/readme.txt

    r1661925 r1661982  
    44Requires at least: 4.5
    55Tested up to: 4.7.5
    6 Stable tag: 1.0.8
     6Stable tag: 1.0.9
    77License: GPLv3
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    115115== Changelog ==
    116116
     117= 1.0.9 - 2017-05-22 =
     118
     119
    117120= 1.0.8 - 2017-05-22 =
    118121* NEW - Add option to force listing page title
Note: See TracChangeset for help on using the changeset viewer.