You appear to be a bot. Output may be restricted
Description
Create a Contact me buttonCreate a contact me button which links to the contact form page. Parameters are: [bw_contact_button link='URL' text='button text' title='button tooltip text' class='classes' ] Defaults: Field option field used hardcoded default link bw_contact_link /contact/ text bw_contact_text Contact title bw_contact_title Contact $contact
Usage
bw_contact_button( $atts );
Parameters
- $atts
- ( mixed ) optional –
Returns
voidSource
File name: oik/shortcodes/oik-button.phpLines:
1 to 17 of 17
function bw_contact_button( $atts=NULL ) { bw_trace( $atts, __FUNCTION__, __LINE__, __FILE__, "atts" ); $contact = bw_default_empty_att( NULL, "contact", __( "me", "oik" ) ); $link = bw_default_empty_arr( $atts, 'link', "contact-link", "/contact/" ); bw_trace( $link, __FUNCTION__, __LINE__, __FILE__, "link" ); $text = bw_default_empty_arr( $atts, 'text', "contact-text", __( "Contact", "oik" ) ); /* translators: %s Name of the contact */ $title = bw_default_empty_arr( $atts, 'title', "contact-title", sprintf( __( 'Contact %1$s', "oik" ) , $contact ) ); $class = bw_array_get( $atts, 'class', NULL ) . "bw_contact" ; art_button( $link, $text, $title, $class ); return( bw_ret()); }View on GitHub View on Trac