$message .= '<p>   Name : ' . $_POST['u_name'] . ' </p>';
        $message .= '<p> Email : ' . $_POST['u_email'] . ' </p>';
        $message .= '<p> Message Type: ' . $_POST['u_msg_type'] . ' </p>';
        $message .= '<p> Comment : ' . $_POST['u_comment'] . ' </p>';
        $contact->send_email($_POST['u_email'], 'User contact Information', $message, $sender);
        if ($contact->insert_contact($data)) {
            $session->message("Thank you for your contact! We will touch you very soon! ");
            safe_redirect(get_home_url());
        } else {
            echo $main_db->last_query;
            exit;
        }
    }
}
//Apply here this function
contact_information();
/*
 * Public user registration information
 * */
function public_user_registration()
{
    $p_user = new PublicUser();
    global $session, $main_db;
    if (isset($_POST['iagree'])) {
        //submit button not catch (u_register)
        $data['email'] = $_POST['email'];
        $data['pass'] = $_POST['password'];
        $data['mobile'] = $_POST['mobile'];
        $data['code'] = rand(0, 100000);
        if (isset($_SESSION['new_user'])) {
            unset($_SESSION['new_user']);
function end_post_shortcode($attr)
{
    extract(shortcode_atts(array('contact_info' => 0, 'fb_comments' => 0), $attr));
    $str = "";
    if ($contact_info == 1) {
        $str .= contact_information();
    }
    if ($fb_comments == 1) {
        $str .= facebook_comments();
    }
    return $str;
}