Description
Implement [bw_geo] shortcode
Usage
$string = bw_geo( $atts, $content, $tag );Parameters
- $atts
- ( array ) optional –
- $content
- ( string ) optional –
- $tag
- ( string ) optional –
Returns
string expanded shortcodeSource
File name: oik/shortcodes/oik-geo.phpLines:
1 to 17 of 17
function bw_geo( $atts=null, $content=null, $tag=null ) { sp("geo"); span( "geo"); e( __( "Lat.", "oik" ) ); span( "latitude" ); e( bw_get_option_arr( "lat", "bw_options", $atts ) ); epan(); // I think we should have a space between the lat. and long. values e( " "); e( __( "Long.", "oik" ) ); span( "longitude" ); e( bw_get_option_arr( "long", "bw_options", $atts ) ); epan(); epan(); bw_echo( '</p>' ); return( bw_ret()); }View on GitHub View on Trac
Called by
Invoked by
Calls
1 to 7 of 7
- bw_get_option_arr() – Retrieve the requested option value depending on the $atts array
- bw_ret() – Use bw_ret() to return the contents of $bwecho, leaving the global value as NULL
- e() – Outputs some translated / non-translatable text
- ep() – End a paragraph (p) tag
- epan() –
- sp() – Start a paragraph
- span() –
