public static function render_form($id, $form = NULL) { if (empty($form)) { $the_form = tt_get_form($id); if (!$the_form) { return FALSE; } } self::enqueue_frontend_scripts(); self::$TTL->view('views/contact_form/contact-form', $form, false, true); //Showing Contact form }
function tt_form($id) { $the_form = tt_get_form($id); if ($the_form) { TT_Contact_Form_Builder::render_form($id, $the_form); } else { return NULL; } }