You appear to be a bot. Output may be restricted
Description
Create an enclosing link start or end tagIf a link is being used then the "tag" defaults "span".
Usage
_bw_telephone_link( $atts, $number, $start );
Parameters
- $atts
- ( array ) required – name value pairs
- $number
- ( string ) required – the telephone number to append to the link
- $start
- ( book ) optional default: 1 – true for start tag, false for end tag
Returns
voidSource
File name: oik/shortcodes/oik-phone.phpLines:
1 to 16 of 16
function _bw_telephone_link( &$atts, $number, $start=true ) { static $link = null; if ( $start ) { $link = bw_array_get( $atts, "link", null ); $link = _bw_tel_link( $link, $number ); if ( $link ) { $class = bw_array_get( $atts, "class", null ); stag( "a", $class, null, kv( "href", $link ) ); $atts['tag'] = bw_array_get( $atts, "tag", "span" ); } } else { if ( $link ) { etag( "a" ); } } }View on GitHub View on Trac