From 426ddffba04abcf5e4d01d323341726f26aa0f17 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Fri, 21 Jul 2023 14:52:18 +0200 Subject: [PATCH] First step of the settings redesign thanks @nuriapenya for your help and the nice Screens! --- assets/css/activitypub-admin.css | 24 +- templates/blog-user-followers-list.php | 4 +- templates/settings.php | 480 ++++++++++++------------- templates/welcome.php | 148 ++++---- 4 files changed, 341 insertions(+), 315 deletions(-) diff --git a/assets/css/activitypub-admin.css b/assets/css/activitypub-admin.css index a7744ce..b6090d8 100644 --- a/assets/css/activitypub-admin.css +++ b/assets/css/activitypub-admin.css @@ -1,4 +1,4 @@ -.activitypub-settings-body { +.activitypub-settings { max-width: 800px; margin: 0 auto; } @@ -151,12 +151,12 @@ summary { background-color: #f6f7f7; } -.activitypub-settings-body +.activitypub-settings input.blog-user-identifier { text-align: right; } -.activitypub-settings-body +.activitypub-settings .header-image { width: 100%; height: 80px; @@ -168,7 +168,7 @@ input.blog-user-identifier { background-size: cover; } -.activitypub-settings-body +.activitypub-settings .logo { height: 80px; width: 80px; @@ -176,3 +176,19 @@ input.blog-user-identifier { top: 40px; left: 40px; } + +.settings_page_activitypub .box { + border: 1px solid #c3c4c7; + background-color: #fff; + padding: 1em 1.5em; + margin-bottom: 1.5em; +} + +.settings_page_activitypub .activitypub-welcome-page .box label { + font-weight: bold; +} + +.settings_page_activitypub .plugin-recommendations { + border-bottom: none; + margin-bottom: 0; +} diff --git a/templates/blog-user-followers-list.php b/templates/blog-user-followers-list.php index f73826f..28e47b8 100644 --- a/templates/blog-user-followers-list.php +++ b/templates/blog-user-followers-list.php @@ -1,6 +1,6 @@ '', @@ -10,7 +10,7 @@ ); ?> -
+

diff --git a/templates/settings.php b/templates/settings.php index 3d0bccb..aacc8e1 100644 --- a/templates/settings.php +++ b/templates/settings.php @@ -10,7 +10,7 @@ ); ?> -
+

-
-
-

+
+

-

+

- - - - - - - -
- - - -

- -

-
- - - -
- -

- -

- - - - - - + + +
- - -

-

+ +

+
- + +
-

+
+

-

+

- - - - - - - - - - - - - - - - - + + + + + + +
- - -

- -

-

- -

-

- -

-

- -

-

- -

- -
-
    -
  • [ap_title] -
  • -
  • [ap_content] -
  • -
  • [ap_excerpt] -
  • -
  • [ap_permalink] -
  • -
  • [ap_shortlink] - Hum.', 'activitypub' ), 'default' ); ?>
  • -
  • [ap_hashtags] -
  • -
-

-
-
-

-
- - - -

- %s', 'activitypub' ), - \esc_html( ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS ) - ), - 'default' - ); - ?> -

-
- - -

- -

-

- -

-

- -

-
-
- + + + + + + + + + + + + + + + + + - - - - - - -
+ + +

+ +

+

+ +

+

+ +

+

+ +

+

+ +

+ +
+
    +
  • [ap_title] -
  • +
  • [ap_content] -
  • +
  • [ap_excerpt] -
  • +
  • [ap_permalink] -
  • +
  • [ap_shortlink] - Hum.', 'activitypub' ), 'default' ); ?>
  • +
  • [ap_hashtags] -
  • +
+

+
+
+

+
+ + + +

+ %s', 'activitypub' ), + \esc_html( ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS ) + ), + 'default' + ); + ?> +

+
+ + +

+ +

+

+ +

+

+ +

+
+
+ - true ), 'objects' ); ?> - -
    - - -
  • - name, $support_post_types, true ) ); ?> /> - -
  • - -
-
-
- - -

- -

-
+ true ), 'objects' ); ?> + +
    + + +
  • + name, $support_post_types, true ) ); ?> /> + +
  • + +
+
+
+ + +

+ +

+
- + +
-

+
+

-

+

- - - - - - - -
- - -

- Disallowed Comment Keys" list.', 'activitypub' ), - \esc_attr( \admin_url( 'options-discussion.php#disallowed_keys' ) ) - ), - 'default' - ); - ?> -

-
- - + + + + + + + +
+ + +

+ Disallowed Comment Keys" list.', 'activitypub' ), + \esc_attr( \admin_url( 'options-discussion.php#disallowed_keys' ) ) + ), + 'default' + ); + ?> +

+
+ +
diff --git a/templates/welcome.php b/templates/welcome.php index 9233254..38cdfb8 100644 --- a/templates/welcome.php +++ b/templates/welcome.php @@ -1,6 +1,6 @@ '', @@ -10,82 +10,102 @@ ); ?> -
-

+
+
+

-

+

ActivityPub protocol, including users of Friendica, Pleroma, Pixelfed and Mastodon.', 'activitypub' ), array( 'strong' => array() ) ); ?>

+
- - -

-

- %1$s or the URL %2$s. This Blog-User will federate all posts written on your Blog, regardless of the User who posted it. You can customize the Blog-User on the Settings page.', - 'activitypub' - ), - \esc_attr( $blog_user->get_resource() ), - \esc_url_raw( $blog_user->get_url() ), - \esc_url_raw( \admin_url( '/options-general.php?page=activitypub&tab=settings' ) ) - ), - 'default' - ); ?> -

- +
+

+

+ +

+

+ +

+

+ +

+

+ +

+

+ +

+

+ +

+

+ + + +

+
- - -

-

- ID ); - echo wp_kses( - \sprintf( - // translators: - \__( - 'People can also follow you by using your Username %1$s or your Author-URL %2$s. Users who can not access this settings page will find their username on the Edit Profile page.', - 'activitypub' - ), - \esc_attr( $user->get_resource() ), - \esc_url_raw( $user->get_url() ), - \esc_url_raw( \admin_url( 'profile.php#activitypub' ) ) - ), - 'default' - ); ?> -

- +
+

+

+ +

+

+ +

+

+ +

+

+ +

+

+ +

+

+ +

+

+ + + +

+
-

-

- Site Health to ensure that your site is compatible and/or use the "Help" tab (in the top right of the settings pages).', - 'activitypub' +

+

+

+ Site Health to ensure that your site is compatible and/or use the "Help" tab (in the top right of the settings pages).', + 'activitypub' + ), + \esc_url_raw( admin_url( 'site-health.php' ) ) ), - \esc_url_raw( admin_url( 'site-health.php' ) ) - ), - 'default' - ); - ?> -

+ 'default' + ); + ?> +

+
+ -
- -

- -

+
+

+

+