AdespotiFoni.gr
- Programming Language: PHP, HTML/HTML5, CSS/CSS3, JAVASCRIPT, MYSQL/MSSQL
- Platform/Framework: JOOMLA, CUSTOM
- Frontend Framework: JQUERY, BOOTSTRAP
To correct the classes in the contact form for correct use with bootstrap, in the override default_form.php add the following:
<?php
$this->form->setFieldAttribute('contact_name', 'class', 'form-control');
$this->form->setFieldAttribute('contact_name', 'labelclass', 'control-label');
$this->form->setFieldAttribute('contact_email', 'class', 'form-control');
$this->form->setFieldAttribute('contact_email', 'labelclass', 'control-label');
$this->form->setFieldAttribute('contact_subject', 'class', 'form-control');
$this->form->setFieldAttribute('contact_subject', 'labelclass', 'control-label');
$this->form->setFieldAttribute('contact_message', 'class', 'form-control');
$this->form->setFieldAttribute('contact_message', 'labelclass', 'control-label');
$this->form->setFieldAttribute('contact_email_copy', 'class', 'form-control');
$this->form->setFieldAttribute('contact_email_copy', 'labelclass', 'control-label');
?>