08/02/2014 at 8:40 am
#299399
Keymaster
@ David
In the card-single.php
you would change this line:
if ( $atts['show_addresses'] ) $entry->getAddressBlock( array( 'format' => $atts['addr_format'] , 'type' => $atts['address_types'] ) );
to this:
if ( $atts['show_addresses'] ) $entry->getAddressBlock( array( 'format' => '%line1%, %line2%, %line3%, %city%, %state%, %zipcode%, %country%' , 'type' => $atts['address_types'] ) );
In the card.php
file, change this line:
if ( $atts['show_addresses'] ) $entry->getAddressBlock( array( 'format' => $atts['addr_format'] , 'type' => $atts['address_types'] ) );
to this:
if ( $atts['show_addresses'] ) $entry->getAddressBlock( array( 'format' => '%city%, %state%, %country%' , 'type' => $atts['address_types'] ) );
No, in both the tile-plus.css
and tile-plus-single.css
files you need to add CSS to override the block layout. The following CSS should do the trick:
#cn-slim-plus span.adr span.street-address { display: inline-block; }
#cn-slim-plus span.adr span.extended-address { display: inline-block; }
#cn-slim-plus span.adr span.country-name { display: inline-block; }
#cn-slim-plus span.adr span.geo, div#cn-list span.adr span.geo span.latitude,div#cn-list span.adr span.geo span.longitude { display: inline-block; }
Lastly, instead of modding these file directly, I suggest making copies and use this method for the PHP files and this method for the CSS files so your changes are update safe.
Hope that helps!