_bw_telephone() – Return the telephone number in desired HTML markup, if set or passed as number=

You appear to be a bot. Output may be restricted

Description

Return the telephone number in desired HTML markup, if set or passed as number=

Usage

_bw_telephone( $atts );

Parameters

$atts
( mixed ) optional

Returns

void

Source

File name: oik/shortcodes/oik-phone.php
Lines:

1 to 31 of 31
function _bw_telephone( $atts=null ) {
  $prefix = bw_array_get( $atts, "prefix", null );
  if ( null === $prefix ) {
    $prefix = __( "Tel", "oik" );
  }
  $sep = bw_array_get( $atts, "sep", ": " );
  $number = bw_array_get( $atts, "number", null );
  $index = bw_array_get( $atts, "index", "telephone" );
  $class = bw_array_get( $atts, "class", null );
  $link = bw_array_get( $atts, "link", null );
  if ( !$number ) {
    $number = bw_get_option_arr( $index, "bw_options", $atts );
  } 
  if ( $number <> "" ) {
    _bw_telephone_link( $atts, $number, true );
    $tag = bw_array_get( $atts, "tag", "div" );
    stag( $tag,  "tel $class" );
    span( "type");
    e( $prefix );
    epan();
    span( "sep" );
    e( $sep );
    epan();
    span( "value" );
    e( $number );
    epan();
    etag( $tag );
    _bw_telephone_link( $atts, $number, false );
  }
  return( bw_ret());
}
 

 View on Trac