You appear to be a bot. Output may be restricted
Description
Show the "oik" contact formThis is a simple contact form which contains: Name, Email, Subject, Message and a submit button.
- Note: The * indicates Required field.
- If you want to make the fields responsive then try some CSS such as:
textarea { max-width: 100%; }
Usage
_bw_show_contact_form_oik( $atts, $user, $content );
Parameters
- $atts
- ( array ) required – shortcode parameters
- $user
- ( mixed ) optional –
- $content
- ( mixed ) optional –
Returns
voidSource
File name: oik/shortcodes/oik-contact-form.phpLines:
1 to 32 of 32
function _bw_show_contact_form_oik( $atts, $user=null, $content=null ) { oik_require_lib( "bobbforms", "3.4.0" ); $class = bw_array_get( $atts, "class", "bw_contact_form" ); sdiv( $class ); bw_form(); if ( function_exists( 'bw_is_table')) { bw_table_or_grid_start( empty($content) ); // Start a grid if fields are defined } else { stag( 'table' ); } if ( $content ) { _bw_show_contact_form_fields($atts, $content); } else { BW_::bw_textfield( bw_contact_field_full_name( "name" ), 30, __("Name *", "oik"), null, "textBox", "required"); BW_::bw_emailfield( bw_contact_field_full_name( "email" ), 30, __("Email *", "oik"), null, "textBox", "required"); BW_::bw_textfield( bw_contact_field_full_name( "subject" ), 30, __("Subject", "oik"), null, "textBox"); BW_::bw_textarea( bw_contact_field_full_name( "message" ), 30, __("Message", "oik"), null, 10); } if ( function_exists( 'bw_is_table')) { bw_table_or_grid_end(); bw_is_table( true ); } else { etag( 'table'); } e( wp_nonce_field( "_oik_contact_form", "_oik_contact_nonce", false, false )); oik_require_lib( "oik-honeypot" ); do_action( "oik_add_honeypot" ); bw_contact_form_submit_button( $atts ); etag( "form" ); ediv(); }View on GitHub View on Trac