Description
Create a styled follow me button
Usage
bw_follow( $atts );Parameters
- $atts
- ( mixed ) optional –
Returns
voidSource
File name: oik/shortcodes/oik-follow.phpLines:
1 to 17 of 17
function bw_follow( $atts=null ) { $social_network = bw_array_get( $atts, 'network', 'Facebook' ); $lc_social = strtolower( $social_network ); $me = bw_array_get( $atts, "me", null ); if ( !$me ) { $social = bw_array_get( $atts, 'url', null ); if ( !$social ) { $social = bw_get_option_arr( $lc_social, null, $atts ); } } else { $social = $me; } if ( $social ) { bw_follow_link( $social, $lc_social, $social_network, $atts ); } return( bw_ret()); }View on GitHub View on Trac
Called by
1 to 13 of 13
- bw_facebook() – Implement [bw_facebook] shortcode
- bw_flickr() – Implement [bw_flickr] shortcode
- bw_github_shortcode() – Implement [bw_github] shortcode
- bw_google_plus() – Implement [bw_google] shortcode
- bw_instagram() – Implement [bw_instagram] shortcode
- bw_linkedin() – Implement [bw_linkedin] shortcode
- bw_picasa() – Implement [bw_picasa] shortcode
- bw_pinterest() – Implement [bw_pinterest] shortcode
- bw_twitter() – Implement [bw_twitter] shortcode
- bw_youtube() – Implement [bw_youtube] shortcode
- Tests_oik_follow::test_follow_me_with_github_set() – Test the Follow me for GitHub
- Tests_oik_follow::test_follow_me_with_github_set_bb_BB() – Test the Follow me for GitHub – bb_BB
- Tests_oik_follow::test_follow_me_with_wordpress_set() – Tests issue #61 – Option field for WordPress.org
Invoked by
Calls
1 to 4 of 4
- bw_array_get() – Return the array[index] or array->index (for an object) or a default value if not set
- bw_follow_link() – Create the link for the selected theme= parameter
- bw_get_option_arr() – Retrieve the requested option value depending on the $atts array
- bw_ret() – Use bw_ret() to return the contents of $bwecho, leaving the global value as NULL
