Changeset 1661982
- Timestamp:
- 05/22/2017 05:48:44 AM (9 years ago)
- Location:
- listings-wp/trunk
- Files:
-
- 6 edited
-
assets/css/listings-wp.css (modified) (2 diffs)
-
includes/frontend/class-lwp-template-loader.php (modified) (1 diff)
-
includes/frontend/template-tags.php (modified) (2 diffs)
-
includes/functions-general.php (modified) (3 diffs)
-
listings-wp.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
listings-wp/trunk/assets/css/listings-wp.css
r1661925 r1661982 29 29 max-width: 100%; 30 30 } 31 .listings-wp-single .title, .listings-wp-items .title { 32 text-align: left; 33 } 31 34 /* ======================================== SINGLE LISTING ======================================== 32 35 */ 33 36 /* anti-spam fields - x 2 */ 34 37 35 .contact-formform .cmb2-id-url {38 #listings-wp-contact form .cmb2-id-url { 36 39 display: none; 37 40 visibility: hidden; 38 41 } 39 .contact-formform .cmb2-id-comment {42 #listings-wp-contact form .cmb2-id-comment { 40 43 display: none; 41 44 visibility: hidden; 45 } 46 #listings-wp-contact form .form-table { 47 margin-bottom: 10px; 42 48 } 43 49 .listings-wp-single .type-listing { … … 835 841 } 836 842 .listings-wp .sidebar { 837 margin -top: 0;843 margin: 0; 838 844 float: right; 839 845 width: 30% -
listings-wp/trunk/includes/frontend/class-lwp-template-loader.php
r1654776 r1661982 45 45 } 46 46 47 if ( ( is_archive() && get_post_type() == 'listing' ) || is_list ng_search() ) {47 if ( ( is_archive() && get_post_type() == 'listing' ) || is_listing_search() ) { 48 48 $file = 'archive-listing.php'; 49 49 } -
listings-wp/trunk/includes/frontend/template-tags.php
r1661925 r1661982 200 200 /*=================================== Archive page =================================== 201 201 */ 202 add_filter( 'get_the_archive_title', 'listings_wp_listing_display_theme_title' , 10, 1);202 add_filter( 'get_the_archive_title', 'listings_wp_listing_display_theme_title' ); 203 203 function 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 } 208 207 return $title; 209 210 208 } 211 209 … … 240 238 $page_title .= sprintf( __( ' – Page %s', 'listings-wp' ), get_query_var( 'paged' ) ); 241 239 240 } elseif ( is_listing_archive() ) { 241 242 $page_id = listings_wp_option( 'archives_page' ); 243 $page_title = get_the_title( $page_id ); 244 242 245 } else { 243 246 244 247 $page_title = get_the_title(); 245 246 248 } 247 249 -
listings-wp/trunk/includes/functions-general.php
r1654776 r1661982 3 3 // Exit if accessed directly 4 4 if ( ! defined( 'ABSPATH' ) ) exit; 5 6 5 7 6 /** … … 113 112 } 114 113 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; 116 117 } 117 118 … … 136 137 * is_lisitng - Returns true when viewing listings search results page 137 138 */ 138 if ( ! function_exists( 'is_list ng_search' ) ) {139 function is_list ng_search() {139 if ( ! function_exists( 'is_listing_search' ) ) { 140 function is_listing_search() { 140 141 if( ! is_search() ) 141 142 return; -
listings-wp/trunk/listings-wp.php
r1661925 r1661982 6 6 * Author URI: http://listings-wp.com 7 7 * Plugin URI: http://listings-wp.com 8 * Version: 1.0. 88 * Version: 1.0.9 9 9 * Text Domain: listings-wp 10 10 * Domain Path: languages … … 92 92 $this->define( 'LISTINGSWP_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 93 93 $this->define( 'LISTINGSWP_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); 94 $this->define( 'LISTINGSWP_VERSION', '1.0. 8' );94 $this->define( 'LISTINGSWP_VERSION', '1.0.9' ); 95 95 } 96 96 -
listings-wp/trunk/readme.txt
r1661925 r1661982 4 4 Requires at least: 4.5 5 5 Tested up to: 4.7.5 6 Stable tag: 1.0. 86 Stable tag: 1.0.9 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 115 115 == Changelog == 116 116 117 = 1.0.9 - 2017-05-22 = 118 119 117 120 = 1.0.8 - 2017-05-22 = 118 121 * NEW - Add option to force listing page title
Note: See TracChangeset
for help on using the changeset viewer.