Example #1
0
 public function __construct()
 {
     $this->set_compatibility();
     $this->widget_definition();
     $this->items_definition();
     $this->set_breadcrumbs();
     $config = array('before_each_input_field' => '<div class="form-group"><div class="col-sm-6">', 'after_each_input_field' => '</div></div>', 'before_each_textarea_field' => '<div class="comment-box row"><div class="col-sm-12"><p>', 'after_each_textarea_field' => '</p></div></div>', 'each_input_field_class' => 'col-lg-4 col-md-4 form-control" type="text" id="name" size="30" onfocus="if(this.value == \'Name\') { this.value = \'\'; }" onblur="if(this.value == \'\') { this.value = \'Name\'; }', 'each_textarea_field_class' => 'form-control" rows="6" cols="40" id="comments" onfocus="if(this.value == \'Message\') { this.value = \'\'; }" onblur="if(this.value == \'\') { this.value = \'Message\'; }', 'each_button_field_class' => 'btn btn-lg btn-default', 'do_user_text' => false);
     declare_form('blog_single_reply_form', $config);
     $contact_form = array('before_each_input_field' => '<div class="col-sm-4">', 'after_each_input_field' => '</div>', 'before_each_textarea_field' => '<div class="form-group"><div class="col-sm-12">', 'after_each_textarea_field' => '</div></div>', 'each_input_field_class' => 'form-control', 'each_textarea_field_class' => 'form-control', 'each_button_field_class' => 'btn btn-danger btn-lg', 'do_user_text' => false);
     declare_form('contact_form', $config);
 }
Example #2
0
 public function __construct()
 {
     $this->set_compatibility();
     $this->widget_definition();
     $this->items_definition();
     $this->set_breadcrumbs();
     $config = array('before_each_input_field' => '<div class="form-group"><div class="col-sm-6">', 'after_each_input_field' => '</div></div>', 'before_each_textarea_field' => '<div class="form-group"><div class="col-sm-12">', 'after_each_textarea_field' => '</div></div>', 'each_input_field_class' => '" style="height:auto;', 'each_textarea_field_class' => '" style="width:100%;', 'each_button_field_class' => 'btn btn-danger btn-lg', 'do_user_text' => false);
     declare_form('blog_single_reply_form', $config);
     $contact_form = array('before_each_input_field' => '<div class="form-group"><div class="col-sm-6">', 'after_each_input_field' => '</div></div>', 'before_each_textarea_field' => '<div class="form-group"><div class="col-sm-12">', 'after_each_textarea_field' => '</div></div>', 'each_input_field_class' => 'form-control', 'each_textarea_field_class' => 'form-control', 'each_button_field_class' => 'btn btn-danger btn-lg', 'do_user_text' => false);
     declare_form('contact_form', $config);
 }