From d3902347a1c591b62e36c5bfc7301ec3c4216cd1 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 2 Oct 2022 20:47:53 +0800 Subject: [PATCH] feat: blog aboutme page --- .../controllers/subdomain/blog/aboutme.php | 11 +- web/app/controllers/user_info.php | 200 ++---------------- web/app/views/user-info.php | 176 +++++++++++++++ 3 files changed, 194 insertions(+), 193 deletions(-) create mode 100644 web/app/views/user-info.php diff --git a/web/app/controllers/subdomain/blog/aboutme.php b/web/app/controllers/subdomain/blog/aboutme.php index 3d8bf8d..e3f2a5d 100644 --- a/web/app/controllers/subdomain/blog/aboutme.php +++ b/web/app/controllers/subdomain/blog/aboutme.php @@ -4,15 +4,12 @@ if (!Auth::check()) { become403Page(UOJLocale::get('need login')); } + + $REQUIRE_LIB['bootstrap5'] = ''; + $REQUIRE_LIB['calendar_heatmap'] = ''; ?> - -

博主是个超级大神犇!

- -

博主太弱了!

- - -(好吧目前暂时不支持定制此页,我错了我会加这个功能的 T_T……) + UOJContext::user(), 'is_blog_aboutme' => '')) ?> diff --git a/web/app/controllers/user_info.php b/web/app/controllers/user_info.php index f202b47..bb63307 100644 --- a/web/app/controllers/user_info.php +++ b/web/app/controllers/user_info.php @@ -23,194 +23,22 @@ ?> -
-
-
- Avatar of <?= $user['username'] ?> -
- - - - - -

- - - style="color: blue"> - - style="color: red"> - - -

- -
- -
-
    - -
  • - - -
  • - - -
  • - - -
  • - - -
  • - - $type): ?> - , - - - - - - - - - - - - - - - - -
  • - -
  • - - - - -
  • - -
  • - - -
  • - -
-
-
-
- -
-
- -

- -

-
- -
-
-
-
- -

- -

- -
-
- - -
-
    -
  • -
    register time
    -

    -
  • -
  • -
    remote_addr
    -

    -
  • -
  • -
    http_x_forwarded_for
    -

    -
  • -
-
- -
-
+ $user)) ?> + if ($esc_sex == "M") { + $esc_sex="♂"; + $col_sex="color:blue"; + } elseif ($esc_sex == "F") { + $esc_sex="♀"; + $col_sex="color:red"; + } else { + $esc_sex=""; + $col_sex="color:black"; + } + ?>
@@ -270,7 +98,7 @@
+
+
+ Avatar of <?= $user['username'] ?> +
+ + + + + +

+ + + style="color: blue"> + + style="color: red"> + + +

+ +
+ +
+
    + +
  • + + +
  • + + +
  • + + +
  • + + +
  • + + $type): ?> + , + + + + + + + + + + + + + + + + +
  • + +
  • + + + + +
  • + +
  • + + +
  • + +
+
+
+
+ +
+
+ +

+ +

+
+ +
+
+
+
+ +

+ +

+ +
+
+ + +
+
    +
  • +
    register time
    +

    +
  • +
  • +
    remote_addr
    +

    +
  • +
  • +
    http_x_forwarded_for
    +

    +
  • +
+
+ +
+