aboutsummaryrefslogtreecommitdiffstats
path: root/theme/admin/html/post/form.php
AgeCommit message (Collapse)AuthorFilesLines
2024-12-01PHP Keywords and types should be in lowercaseThomas Lange1-1/+1
Follow PSR-12 and use lowercase variants of PHP reserved keywords. See: https://www.php-fig.org/psr/psr-12/#25-keywords-and-types Find all uppercase occurrences of "or", "and", "null", "true" and "false" and change them to the lowercase variant.
2024-01-23Remove trailing slash on void elementsThomas Lange1-9/+9
The trailing slash on void elements (self-closing tags) doesn't have any effect, isn't required by HTML5 and it is recommended to not use it.
2021-09-19Pre-select the current user in page/post formThomas Lange1-1/+2
Pre-select the user with the user ID of the current session in the forms for creating a page or a post. This fixes the problem that occurs if one have multiple users in the database, but the create forms were not using the *current* logged-in user as the default selected user. The forms for modifying a page or post are not affected because they use the ID from "$FORM['DATA']['USER']" for selecting the correct user. This key is undefined on the create forms, so we use "$_SESSION['USER_ID']" for selecting the default user for creating new pages and posts.
2021-07-28Add "required" attribute to required form fieldsThomas Lange1-2/+2
2021-07-22Add "autofocus" attribute to HTML form fieldsThomas Lange1-1/+1
2021-07-01Add category system to categorize posts (readme)Thomas Lange1-1/+26
This commit implements a new category system to categorize posts. Each category can have an unlimited number of nested children categories. A single post don't necessarily need to be in a category, but it can. Each category can have a full content body like posts or pages, so you have enough space to describe the content of your categories. Please note that you need to have at least the following MySQL/MariaDB versions to use the category system, because it uses "WITH RECURSIVE" database queries, the so-called "Common-Table-Expressions (CTE)". MariaDB: 10.2.2 MySQL: 8.0 See: https://mariadb.com/kb/en/with/ See: https://dev.mysql.com/doc/refman/8.0/en/with.html
2021-06-26Use shorthand ternary operator in admin formsThomas Lange1-1/+1
2021-06-26Fix bug in user select form fieldThomas Lange1-1/+1
2021-06-26Add and change some Fontello icons for admin themeThomas Lange1-1/+1
2021-06-19Remove ID form field (and rearrange other fields)Thomas Lange1-17/+10
This commit removes the ID form field, enlarges the title form field and rearranges the other form fields in the grid layout.
2021-06-13Replace the flex layout in favor of a grid layoutThomas Lange1-40/+46
This commit replaces the initial CSS flexbox layout for forms of the admin theme with a more elegant approach called "grid layout". :) Some interesting information: https://www.w3schools.com/css/css_grid.asp https://blog.logrocket.com/flexbox-vs-css-grid/
2021-06-12Place message boxes outside the <form> elementsThomas Lange1-11/+11
2019-04-26Rename "template" directory to "theme"Thomas Lange1-0/+98
This commit renames the "template" directory to "theme" because "theme" is the more correct term here.