*/
if (isset($_REQUEST['btn-reg'])) {
    STUser_f::registration_user();
}
$class_form = "";
if (is_page_template('template-login.php')) {
    $class_form = 'form-group-ghost';
}
$btn_sing_up = get_post_meta(get_the_ID(), 'btn_sing_up', true);
if (empty($btn_sing_up)) {
    $btn_sing_up = __("Sign Up", ST_TEXTDOMAIN);
}
?>

<form  method="post" action="<?php 
echo TravelHelper::build_url('url', STInput::get('url'));
?>
">
    <div class="form-group <?php 
echo esc_attr($class_form);
?>
 form-group-icon-left"><i class="fa fa-user input-icon input-icon-show"></i>
        <label><?php 
st_the_language('full_name');
?>
</label>
        <input name="full_name" class="form-control" placeholder="<?php 
_e('e.g. John Doe', ST_TEXTDOMAIN);
?>
" type="text" />
    </div>
Beispiel #2
0
            <div class="sort_icon fist"><a class="<?php 
if ($style == 'grid') {
    echo 'active';
}
?>
" href="<?php 
echo TravelHelper::build_url('style', 'grid');
?>
"><i class="fa fa-th-large "></i></a></div>
            <div class="sort_icon last"><a class="<?php 
if ($style == 'list') {
    echo 'active';
}
?>
" href="<?php 
echo TravelHelper::build_url('style', 'list');
?>
"><i class="fa fa-list "></i></a></div>
        </div>
    </div>
</div>
<?php 
echo st()->load_template('rental/loop', false, array('style' => $style));
?>
<div class="row" style="margin-bottom: 40px;">
    <div class="col-sm-12">
        <hr>
    </div>
    <div class="col-md-6">
        <p>
            <small><?php 
 function update_user()
 {
     global $current_user;
     if (!empty($_REQUEST['st_btn_update'])) {
         if (wp_verify_nonce($_REQUEST['st_update_user'], 'user_setting')) {
             $id_user = $current_user->ID;
             if (!empty($_FILES['st_avatar'])) {
                 $st_avatar = $_FILES['st_avatar'];
                 $id_avatar = self::upload_image_return($st_avatar, 'st_avatar', $st_avatar['type']);
             } else {
                 $id_avatar = $_REQUEST['id_avatar'];
             }
             update_user_meta($id_user, 'st_avatar', $id_avatar);
             update_user_meta($id_user, 'st_phone', $_REQUEST['st_phone']);
             update_user_meta($id_user, 'st_airport', $_REQUEST['st_airport']);
             update_user_meta($id_user, 'st_address', $_REQUEST['st_address']);
             update_user_meta($id_user, 'st_city', $_REQUEST['st_city']);
             update_user_meta($id_user, 'st_province', $_REQUEST['st_province']);
             update_user_meta($id_user, 'st_zip_code', $_REQUEST['st_zip_code']);
             update_user_meta($id_user, 'st_country', $_REQUEST['st_country']);
             $is_check = '';
             if (!empty($_REQUEST['st_is_check_show_info'])) {
                 $is_check = 'on';
             }
             update_user_meta($id_user, 'st_is_check_show_info', $is_check);
             $name = $_REQUEST['st_name'];
             $userdata = array('ID' => $id_user, 'display_name' => esc_attr($name));
             wp_update_user($userdata);
             update_user_meta($id_user, 'nickname', esc_attr($name));
             wp_redirect(TravelHelper::build_url('url', $_GET['url']) . '&status="success"');
             exit;
         } else {
             print 'Sorry, your nonce did not verify.';
             exit;
         }
     }
 }