You appear to be a bot. Output may be restricted
Description
Creates a simple link to a bobbingwide websiteThe original purpose of this was to produce some fancy text for Bobbing Wide but it can be used for other sites if you specify site='your domain'
Usage
$string = bw_lbw( $atts );
Parameters
- $atts
- ( array ) optional – shortcode attributes site = prefix of the site. e.g. www.cwiccer or twenty-tens s = suffix selector = bw for null, des for webdesign, dev for webdevelopment t = tld = defaults to .com
Returns
string link to the siteSource
File name: oik/shortcodes/oik-bob-bing-wide.phpLines:
1 to 27 of 27
function bw_lbw( $atts=NULL ) { $sites = array( 'bw' => "" , 'des' => "webdesign", 'dev' => "webdevelopment" ); $s = bw_array_get( $atts, 's', "bw" ); $tld = bw_array_get( $atts, 't', ".com" ); $site = bw_array_get( $atts, 'site', "www.bobbingwide" ); if ( $site == 'www.bobbingwide' ) { $text = $site; $title = __( 'Visit the Bobbing Wide website:', "oik" ); } else { $text = $site; $title = __( 'Visit the website:', "oik" ); } $site_s = bw_array_get( $sites, $s, NULL ); $site .= $site_s; $site .= $tld; if ( $site_s ) $text .= '<b>' . $site_s. '</b>'; $text .= $tld; $link = retlink( 'url', "https://" . $site, $text, $title . ' ' . $site ) ; return( $link ); }View on GitHub View on Trac