From 66deb2c94a749a4833dc214eec4275a8342ce0d9 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 2 Sep 2023 22:58:17 +0300 Subject: [PATCH] add form tips --- src/config/app.php.example | 2 +- src/public/edit.php | 202 ++++++++++++++++++++++++++----------- 2 files changed, 144 insertions(+), 60 deletions(-) diff --git a/src/config/app.php.example b/src/config/app.php.example index 30d697c..309ad86 100644 --- a/src/config/app.php.example +++ b/src/config/app.php.example @@ -85,7 +85,7 @@ define('MAGNET_DEFAULT_SENSITIVE', false); define('MAGNET_EDITOR_LOCK_TIMEOUT', 60*60); define('MAGNET_META_TITLE_MIN_LENGTH', 10); -define('MAGNET_META_TITLE_MAX_LENGTH', 255); +define('MAGNET_META_TITLE_MAX_LENGTH', 65); define('MAGNET_META_DESCRIPTION_MIN_LENGTH', 0); define('MAGNET_META_DESCRIPTION_MAX_LENGTH', 255); diff --git a/src/public/edit.php b/src/public/edit.php index 207b034..2f8b962 100644 --- a/src/public/edit.php +++ b/src/public/edit.php @@ -541,78 +541,162 @@ else {
- - form->metaTitle->valid->message) { ?> -
form->metaTitle->valid->message ?>
- - - - form->metaDescription->valid->message) { ?> -
form->metaDescription->valid->message ?>
- - - - form->description->valid->message) { ?> -
form->description->valid->message ?>
- - + + +
- - - - - - form->tr->valid->message) { ?> -
form->tr->valid->message ?>
- - - - form->as->valid->message) { ?> -
form->as->valid->message ?>
- - - - form->xs->valid->message) { ?> -
form->xs->valid->message ?>
- - -
+ + + + + +
- form->public->value) { ?> - - - - - +
- form->comments->value) { ?> - - - - - +
- form->sensitive->value) { ?> - - - - - +
address, MODERATOR_IP_LIST)) { ?>
- form->approved->value) { ?> - - - - - +