WordPress.org

Plugin Directory

Changeset 613773


Ignore:
Timestamp:
10/17/12 20:40:24 (18 months ago)
Author:
husobj
Message:

Enable loading of maps on CPT archive page.

Location:
wp-geo/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-geo/trunk/admin/settings.php

    r590574 r613773  
    167167        echo $wpgeo->options_checkbox( 'wp_geo_options[show_maps_on_pages]', 'Y', $options['show_maps_on_pages'], false, 'show_maps_on_pages' ) . ' ' . __( 'Pages', 'wp-geo' ) . '<br />'; 
    168168        echo $wpgeo->options_checkbox( 'wp_geo_options[show_maps_on_posts]', 'Y', $options['show_maps_on_posts'], false, 'show_maps_on_posts' ) . ' ' . __( 'Posts (single posts)', 'wp-geo' ) . '<br />'; 
    169         echo $wpgeo->options_checkbox( 'wp_geo_options[show_maps_on_home]', 'Y', $options['show_maps_on_home'], false, 'show_maps_on_home' ) . ' ' . __( 'Posts home page', 'wp-geo' ) . '<br />'; 
     169        echo $wpgeo->options_checkbox( 'wp_geo_options[show_maps_on_home]', 'Y', $options['show_maps_on_home'], false, 'show_maps_on_home' ) . ' ' . __( 'Posts archive/home page', 'wp-geo' ) . '<br />'; 
    170170        echo $wpgeo->options_checkbox( 'wp_geo_options[show_maps_in_datearchives]', 'Y', $options['show_maps_in_datearchives'], false, 'show_maps_in_datearchives' ) . ' ' . __( 'Posts in date archives', 'wp-geo' ) . '<br />'; 
    171171        echo $wpgeo->options_checkbox( 'wp_geo_options[show_maps_in_categoryarchives]', 'Y', $options['show_maps_in_categoryarchives'], false, 'show_maps_in_categoryarchives' ) . ' ' . __( 'Posts in category archives', 'wp-geo' ) . '<br />'; 
  • wp-geo/trunk/includes/wp-geo.php

    r590574 r613773  
    851851            } 
    852852        } 
    853         if ( is_page() && $wp_geo_options['show_maps_on_pages'] == 'Y' )                return $this->show_maps_filter( true ); 
    854         if ( is_date() && $wp_geo_options['show_maps_in_datearchives'] == 'Y' )         return $this->show_maps_filter( true ); 
    855         if ( is_category() && $wp_geo_options['show_maps_in_categoryarchives'] == 'Y' ) return $this->show_maps_filter( true ); 
    856         if ( is_tag() && $wp_geo_options['show_maps_in_tagarchives'] == 'Y' )           return $this->show_maps_filter( true ); 
    857         if ( is_tax() && $wp_geo_options['show_maps_in_taxarchives'] == 'Y' )           return $this->show_maps_filter( true ); 
    858         if ( is_author() && $wp_geo_options['show_maps_in_authorarchives'] == 'Y' )     return $this->show_maps_filter( true ); 
    859         if ( is_search() && $wp_geo_options['show_maps_in_searchresults'] == 'Y' )      return $this->show_maps_filter( true ); 
    860         if ( is_feed() && $wp_geo_options['add_geo_information_to_rss'] == 'Y' )        return $this->show_maps_filter( true ); 
    861  
     853        if ( is_page() && $wp_geo_options['show_maps_on_pages'] == 'Y' )                return $this->show_maps_filter( true ); 
     854        if ( is_date() && $wp_geo_options['show_maps_in_datearchives'] == 'Y' )         return $this->show_maps_filter( true ); 
     855        if ( is_category() && $wp_geo_options['show_maps_in_categoryarchives'] == 'Y' ) return $this->show_maps_filter( true ); 
     856        if ( is_tag() && $wp_geo_options['show_maps_in_tagarchives'] == 'Y' )           return $this->show_maps_filter( true ); 
     857        if ( is_tax() && $wp_geo_options['show_maps_in_taxarchives'] == 'Y' )           return $this->show_maps_filter( true ); 
     858        if ( is_author() && $wp_geo_options['show_maps_in_authorarchives'] == 'Y' )     return $this->show_maps_filter( true ); 
     859        if ( is_search() && $wp_geo_options['show_maps_in_searchresults'] == 'Y' )      return $this->show_maps_filter( true ); 
     860        if ( is_feed() && $wp_geo_options['add_geo_information_to_rss'] == 'Y' )        return $this->show_maps_filter( true ); 
     861        if ( is_post_type_archive() && post_type_supports( get_post_type(), 'wpgeo' ) && $wp_geo_options['show_maps_on_home'] == 'Y' ) 
     862            return $this->show_maps_filter( true ); 
     863         
    862864        // Activate maps in admin... 
    863865        if ( is_admin() ) { 
Note: See TracChangeset for help on using the changeset viewer.