diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-03-04 01:46:45 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-03-04 01:46:45 +0300 |
commit | eeb84c5be16ecca239adae9c851bc0f7db0875a1 (patch) | |
tree | 9aa1056e643212e4c6133d90f38a1966f0fa35ca /skin/admin.skin.php | |
parent | 917d2622aa5fe748c1cda914eae94c12be743c42 (diff) |
blog: support ToC
Diffstat (limited to 'skin/admin.skin.php')
-rw-r--r-- | skin/admin.skin.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/skin/admin.skin.php b/skin/admin.skin.php index 5619dd0..b2d9bb4 100644 --- a/skin/admin.skin.php +++ b/skin/admin.skin.php @@ -129,6 +129,7 @@ function postForm($ctx, $error_code = null, ?bool $saved = null, ?bool $visible = null, + ?bool $toc = null, string|Stringable|null $post_url = null, ?int $post_id = null): array { $form_url = !$is_edit ? '/write/' : $post_url.'edit/'; @@ -173,6 +174,7 @@ $html = <<<HTML <div class="form-field-label">{$ctx->lang('blog_write_form_options')}</div> <div class="form-field"> <label for="visible_cb"><input type="checkbox" id="visible_cb" name="visible"{$ctx->if_true($visible, ' checked="checked"')}> {$ctx->lang('blog_write_form_visible')}</label> + <label for="toc_cb"><input type="checkbox" id="toc_cb" name="toc"{$ctx->if_true($toc, ' checked="checked"')}> {$ctx->lang('blog_write_form_toc')}</label> </div> </div> </td> |