You appear to be a bot. Output may be restricted
Description
Internal function for bw_email and bw_mailto
Usage
_bw_email( $atts );
Parameters
- $atts
- ( array ) optional – array of shortcode parameters use [bw_email] – for an inline mailto link or [bw_mailto] for a more formal mailto link Notes: Using class=email for Microformat
Returns
void
Source
File name: oik/shortcodes/oik-email.php
Lines:
1 to 28 of 28
function _bw_email( $atts=null ) { $prefix = bw_array_get( $atts, "prefix", null ); if ( null === $prefix ) { $prefix = __( "Email", "oik" ); } $sep = bw_array_get( $atts, "sep", ": " ); $tag = bw_array_get( $atts, "tag", "span" ); stag( $tag, "email"); e( $prefix ); e( $sep ); $email = bw_array_get( $atts, "email", null ); if ( !$email ) { $index = bw_array_get( $atts, "index", 'email' ); $email = bw_get_option_arr( $index, null, $atts ); } $email_link = _bw_mailto_link( $email, $atts ); $email = _bw_atdot( $email, $atts ); $title = bw_array_get( $atts, "title", null ); if ( !$title ) { /* translators: %s: email address */ $title = sprintf( __( 'Send email to: %1$s', "oik" ), $email ); } else { $title .= $email; } BW_::alink( NULL, $email_link, $email, esc_attr( $title ) ); etag( $tag ); return( bw_ret() ); }