Description
Implement [bw_domain] shortcode
Usage
bw_domain();Parameters
Returns
voidSource
File name: oik/shortcodes/oik-domain.phpLines:
1 to 14 of 14
function bw_domain() { $site = bw_get_option( "domain" ); if ( $site ) { $domain = bw_output( "domain" ); } else { $site_url = get_option( "siteurl" ); $site_url = trim_scheme( $site_url ); span( "domain siteurl" ); e( $site_url ); epan(); $domain = bw_ret(); } return( $domain ); }View on GitHub View on Trac
Called by
Invoked by
Calls
1 to 7 of 7
- bw_get_option() – Get the value of an option field
- bw_output() – Display the value of a ‘field’ in a span with a class of the field name
- bw_ret() – Use bw_ret() to return the contents of $bwecho, leaving the global value as NULL
- e() – Outputs some translated / non-translatable text
- epan() –
- span() –
- trim_scheme() – Simplify the URL for link text
