From b749bc6c124a02a6949dc67ea703d880e1acd2ac Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Fri, 20 Jul 2018 17:59:18 -0500 Subject: disable post type buttons if the server doesn't support them --- views/dashboard.php | 34 +++++++++++++++++++++++++--------- views/layout.php | 16 ++++++++++++---- views/new-post.php | 4 ++++ views/settings.php | 15 +++++++++++++++ 4 files changed, 56 insertions(+), 13 deletions(-) (limited to 'views') diff --git a/views/dashboard.php b/views/dashboard.php index adde977..7b8af63 100644 --- a/views/dashboard.php +++ b/views/dashboard.php @@ -3,14 +3,30 @@
@@ -27,4 +43,4 @@ float: left; margin-right: 12px; } - \ No newline at end of file + diff --git a/views/layout.php b/views/layout.php index 0850537..450d982 100644 --- a/views/layout.php +++ b/views/layout.php @@ -77,10 +77,18 @@
+ user, 'photo')): ?> + + +
diff --git a/views/settings.php b/views/settings.php index 6b69bc2..247aaf6 100644 --- a/views/settings.php +++ b/views/settings.php @@ -20,6 +20,21 @@ media endpoint user->micropub_media_endpoint ? ''.$this->user->micropub_media_endpoint.'' : 'no media endpoint' ?> + user->supported_post_types): ?> + + supported post types + +
    + user->supported_post_types, true); + foreach($types as $type) { + echo '
  • '.htmlspecialchars($type['name']).' ('.$type['type'].')
  • '; + } + ?> +
+ + + access token user->micropub_access_token ?> -- cgit v1.2.3