_bw_show_contact_form_oik() – Show the “oik” contact form

You appear to be a bot. Output may be restricted

Description

Show the "oik" contact form

This 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 );

Parameters

$atts
( array ) required – shortcode parameters

Returns

void

Source

File name: oik/shortcodes/oik-contact-form.php
Lines:

1 to 22 of 22
function _bw_show_contact_form_oik( $atts ) {
  $email_to = bw_get_option_arr( "email", null, $atts );
  oik_require( "bobbforms.inc" );
  $class = bw_array_get( $atts, "class", "bw_contact_form" );
  sdiv( $class );
  bw_form();
  stag( "table" ); 
  BW_::bw_textfield( "oiku_name", 30, __( "Name *", "oik" ), null, "textBox", "required" );
  BW_::bw_emailfield( "oiku_email", 30, __( "Email *", "oik" ), null, "textBox", "required" );
  BW_::bw_textfield( "oiku_subject", 30, __( "Subject", "oik" ), null, "textBox" );
  BW_::bw_textarea( "oiku_text", 30, __( "Message", "oik" ), null, 10 );
  // @TODO Optional "required" checkbox
  //bw_checkbox( "oiku_checkbox, 
  etag( "table" );
  e( wp_nonce_field( "_oik_contact_form", "_oik_contact_nonce", false, false ) );
  e( ihidden( "oiku_email_to", $email_to ) );
  oik_require_lib( "oik-honeypot" );
  do_action( "oik_add_honeypot" );
  bw_contact_form_submit_button( $atts );
  etag( "form" );
  ediv();
}
 

 View on Trac