summaryrefslogtreecommitdiffstats
path: root/template/admin
AgeCommit message (Collapse)AuthorFilesLines
2017-10-23CSS: Unnecessary height property removed.Thomas Lange1-1/+1
2017-10-22Implemented: A full-text search functionality for posts and pages in the ↵Thomas Lange9-6/+96
administration area. In addition, some markup within the "/*/index.php" files of the admin template was re-formatted.
2017-10-14A new Font Awesome icon was added to the admin template. This icon is used ↵Thomas Lange3-0/+7
later for the coming search function in the administration area.
2017-10-10The heading icon on the form pages has been changed.Thomas Lange6-6/+6
2017-09-16The original font "Font Awesome" has been replaced by a minimized version ↵Thomas Lange4-3/+193
from Fontello.com, which contains only the absolutely necessary icons. This reduces the size of the font file to download to approximately 70 kilobytes. This is beneficial for smartphone users who have an extremely throttled data connection (for example, 32 KBit/s – yes, no joke!), which is not unusual in Germany where mobile internet is still expensive. On the other hand, it is always a good idea to load only what is really necessary. And why always (with cold browser cache) download unnecessary 70 kilobytes, when it is not necessary?
2017-09-15The IDs of the items in the overview lists of the admin template are now no ↵Thomas Lange4-5/+9
longer displayed within a <h2> element and have been moved to the underlying <div> element.
2017-09-15All occurrences of "var" have been replaced by the new introduced keywords ↵Thomas Lange1-23/+23
"const" and "let" from ECMAScript 6 (2015), which scopes the variables to the nearest enclosing block instead of the nearest function block.
2017-09-15The unnecessary second list for the "Login" and "Logout" list points in the ↵Thomas Lange2-15/+12
main navigation of the admin template have been removed.
2017-09-15An invisible text has been added to each action icon in the item list of the ↵Thomas Lange4-10/+10
admin template so that users who do not have CSS enabled or using a web browser such as "Lynx" are able to understand and click the links (instead of seeing an empty and unclickable list item with no further information).
2017-09-14Some markup optimizations has been made to both templates (the HTML5 ↵Thomas Lange8-38/+33
<article> element is more correct for the purpose of an item list, because real lists should only be used if the order of the items would change the meaning. This is not the case, because each item is a self-contained area which has nothing to do with the other items).
2017-09-02Multiple <section> elements were replaced by simple <div> elements. If a ↵Thomas Lange1-6/+6
container element is only used for the CSS and has no semantic meaning, then a <section> element is definitely wrong for this purpose.
2017-08-13A missing Font Awesome icon for the login page was added to the admin template.Thomas Lange1-1/+1
2017-08-11Several changes have been made in this commit, which together with the ↵v2.3Thomas Lange26-89/+89
previous commits result in version 2.3: + Optimization: Originally, the core and template languages were completely separated in the logic of the Language class and you had to use "$Language->text()" to get a core language string and "$Language->template()" to get a template language string. Since this commit, the core and template language strings are still located in different files, but you now have to use "$Language->text()" for core and template language strings both. Thus, you can now even overwrite a core language string from the language file of a template if the core language string does not satisfy you. + Deprecated: The method "$Language->template()" was marked as deprecated and will be removed in further versions (currently, it's just an alias for "$Language->text()"). Template upgrade to version 2.3 (only for customized templates): SEARCH: $Language->template REPLACE: $Language->text
2017-07-31Some comments has been restructured and minified.Thomas Lange2-20/+4
2017-07-31Three internationalization strings and one CSS class have been added to the ↵Thomas Lange3-0/+15
admin template for later use.
2017-07-10A small mistake in the DE translation for the admin template has been fixed.Thomas Lange1-1/+1
2017-07-07The function "makeSlugURL" has been renamed to "generateSlug" because the ↵Thomas Lange2-5/+5
name was misleading because the function did not generate a complete URL, but only a partial string (the slug) for the final URL. By the way, some improvements were made to the code.
2017-05-31Optimizations and tiny design update for the admin template:Thomas Lange6-41/+78
+ The form buttons for insert, update and delete are now having a corresponding background color (green, blue and red). + The information messages are now displayed within the <form> element and with a red background color around the text.
2017-05-31Two changes have been made in this commit:Thomas Lange5-53/+61
+ Update [core]: Parsedown has been updated to version 1.6.2. + Optimization [admin template]: The markdown buttons have been placed directly above the content editor. + Optimization [admin template]: The content editor has been visually embellished (padding from the parent was removed).
2017-05-31Bugfix: There was a problem with the formular for editing users which have ↵v2.2.1Thomas Lange1-1/+1
been fixed in version 2.2.1 In all versions before 2.2 the template parameter $FORM['DATA']['PASSWORD'] was explicitly given, but always set to the value "NULL". Due to the changes in version 2.2, the parameter is no longer passed at all, which caused PHP to issue an notice via an undefined array index. The problem has now been solved by removing the "value" attribute for the password field from the form.
2017-05-30 Several changes have been made in this commit, which together with the ↵v2.2Thomas Lange3-11/+11
previous commits result in version 2.2 [changed template parameters]: + Implemented [core]: A new method called "getAll" has been added to the "Attribute" class which now returns all attributes as key->value array. The first parameter can be an array with attribute names which shall be excluded from returning. + Optimization [core]: The function "generateItemData" has been renamed to "generateItemTemplateData" and has been restructured to use the new implemented method "getAll" from the "Attribute" class. + Optimization [core]: The function "generateNaviTemplate" has been added and the functions "generatePageNaviTemplate", "generatePostNaviTemplate" and "generateUserNaviTemplate" have been restructured to make use of the new "generateNaviTemplate" function to reduce duplicate code. + Optimization [core]: Several files within the admin directory has been optimized to use the new "getAll" method of the "Attribute" class. + Optimization [core]: Several code optimizations have been made to the "HTTP" class. + Optimization [admin template]: All occurences of $PAGE['ID'], $POST['ID'] and $USER['ID'] have been replaced with $PAGE['ATTR']['ID'], $POST['ATTR']['ID'] and $USER['ATTR']['ID'] to make it more consistent. You now have to use ['ATTR']['ID'] instead of ['ID'] in your templates to get the ID of an item! Template upgrade to version 2.2 (only for customized templates): SEARCH: ['ID'] REPLACE: ['ATTR']['ID']
2017-05-21Several changes have been made to the admin template, which together with ↵v2.1.1Thomas Lange7-214/+205
the previous commits result in version 2.1.1: + Optimization [CSS]: Unused .fa-* classes have been removed. + Optimization [CSS]: Hyphens have been disabled for the text within the content editor. + Optimization [CSS]: Some elements now have a smaller padding value which has benefits if the page is displayed on a mobile device. + Optimization [HTML]: The HTML <section> elements of the formular have been replaced with simple <div> elements because <section> elements should only be used for self-contained areas which have nothing to do with the rest of the content. The using of <section> elements at this place was semantically incorrect. + Implemented [JS]: Tab indents which are made by pressing <tab> can now also be removed by pressing <shift>+<tab>. + Optimization [JS]: The functions "emoticonReplace" and "markdownReplace" has been renamed to "insertEmoticon" and "insertMarkdown" and have been restructured. + Optimization [JS]: The DOMContentLoaded event listeners are not required because the file is included with the "defer" attribute. + Optimization [JS]: A function called "delayed" was added which executes a callback function after an delay of 20 ms (the delayed execution of code is necessary for the "insertEmoticon" and "insertMarkdown" functions because the content editor otherwise will losing focus when clicking outside at the emoticon or markdown buttons while the "onmousedown" event listener is still executing).
2017-05-05A significant increase in the response time has been achieved, since the ↵v2.1Thomas Lange3-3/+3
template parameters "$ITEM['BODY']['TEXT']" and "$ITEM['BODY']['HTML']" are now no longer strings but closures (anonymous functions). This means that the underlying logic, which parses the content or converts it into Markdown, is not executed until one of these parameters is really needed and called in the template (which maybe significantly increases the response time on a long list of items which not use one of those two parameters). This means that within templates you now have to call these parameters in the following way (note the brackets at the end, which represent a function call): <?=$ITEM['BODY']['TEXT']()?> <?=$ITEM['BODY']['HTML']()?> In the background, the anonymous functions are called and executes $Item->getBody() and $Item->getHTML() only when needed. Previously, $Item->getBody() and $Item->getHTML() were basically executed and the parsed content was passed to the template, regardless of whether these parameters are required in the template or not!
2017-05-04CSS optimization on admin template.Thomas Lange1-3/+2
2017-05-01Semantic HTML5 attribute "type" with value "number" for numeric form fields ↵Thomas Lange3-3/+3
added.
2017-04-30The date of publication is now displayed in the lists.Thomas Lange5-2/+21
2017-04-30CSS optimization (spaces between icon and text are replaced by margin).Thomas Lange2-4/+4
2017-04-30Hyperlinks to the documentation and the releases on GitHub added to the footer.Thomas Lange2-2/+13
2017-04-29The values ​​for the "for" and "id" properties have been converted to ↵Thomas Lange4-47/+47
lowercase (to be consistent with the rest of the HTML elements).
2017-04-29Two changes have been made in this commit:Thomas Lange4-0/+35
+ The method "Item::getArguments" has been optimized and checks now the syntax of the argument names (only A-Z, a-z, 0-9 and underscores are allowed). + The admin template has been changed and displays now the used arguments of an item within the list.
2017-04-28Inline javascript for emoticon and markdown replacement has been outsourced ↵Thomas Lange4-36/+68
into the main.js file.
2017-04-27Several changes have been made in this commit, which together with the ↵v2.0Thomas Lange6-34/+44
previous commits result in version 2.0 (database update required): + Implemented [core]: A new database field has been added to all tables to define optional "arguments" for a page, post or user through the content editor. These arguments will be parsed into key->value pairs and can be used within templates to do something special. Please read the wiki of this repository for further information about this new feature. + Bugfix [core]: The function "makeSlugURL" had not convert uppercase umlauts to lowercase because "strtolower" was used instead of the multibyte equivalent "mb_strtolower". + Optimization [core]: The first regular expression within the function "makeSlugURL" has been optimized (checking for uppercase characters at this point is unnecessary because $string is only lowercase). + Optimization [all templates]: Markup for the pagination.php has been simplified (a little bit). + Optimization [admin template]: The javascript for the arrow key navigation has been outsourced to the main.js file. + Optimization [admin template]: The javascript file will now be included with the "defer" attribute. + Optimization [standard template]: Some language variables have been changed. Database update to version 2.0 (no existing data will be lost or changed): ALTER TABLE `page` ADD `argv` VARCHAR(100) NULL DEFAULT NULL AFTER `body`; ALTER TABLE `post` ADD `argv` VARCHAR(100) NULL DEFAULT NULL AFTER `body`; ALTER TABLE `user` ADD `argv` VARCHAR(100) NULL DEFAULT NULL AFTER `body`;
2017-04-12Internationalization for markdown format buttons added.Thomas Lange6-28/+54
2017-04-12Inconsistency in array keys for the admin language fixed (they are usually ↵Thomas Lange6-37/+37
lowercase but only the keys for the labels were uppercase).
2017-04-12Inconsistency in the admin template parameters fixed (this does not affect ↵Thomas Lange1-2/+2
any template parameters for the frontend templates).
2017-04-11HTML and CSS markup optimizations for admin template.Thomas Lange7-45/+42
2017-04-10Javascript for confirmation message on delete buttons was moved to the ↵Thomas Lange4-3/+14
main.js file to prevent trouble with an active Content-Security-Policy in a case where "unsafe-inline" for Javascript is not allowed.
2017-04-07CSS-Bugfix: Missing border was added.Thomas Lange1-0/+2
2017-02-27Forgotten CSS class for page and user form template added.Thomas Lange2-2/+2
2017-02-26Added support for multiple queries in a single request (supplement).Thomas Lange1-1/+1
2017-02-26Spelling mistakes corrected, comments added and unnecessary language ↵Thomas Lange2-2/+2
variables removed.
2017-02-24Initial commit.v1.0Thomas Lange35-0/+1191