Skip to content

Commit

Permalink
✨ 增加用户中心退出登陆按钮 #261 #297
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Apr 14, 2023
1 parent 561c2ea commit a3f461c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion inc/classes/PuockUserCenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,17 @@ public static function page_profile()
<div class="mb-3 row">
<label class="col-sm-2 col-form-label">ID</label>
<div class="col-sm-10">
<input type="text" readonly class="form-control" value="<?php echo $userinfo->ID ?>">
<div class="row align-items-center">
<div class="col-6">
<input type="text" readonly class="form-control" value="<?php echo $userinfo->ID ?>">
</div>
<div class="col-6">
<button type="button" onclick="layer.confirm('确认注销登陆吗?',function (){window.Puock.goUrl('<?php echo wp_logout_url('/'); ?>')})" class="btn btn-ssm btn-danger">
<i class="fa fa-sign-out"></i>
<span>注销登录</span>
</button>
</div>
</div>
</div>
</div>
<div class="mb-3 row">
Expand Down

0 comments on commit a3f461c

Please sign in to comment.