aboutsummaryrefslogtreecommitdiffstats
path: root/template/standard/html/feed/item_post.php
AgeCommit message (Collapse)AuthorFilesLines
2019-04-26Remove template names from header comment blocksThomas Lange1-1/+1
2017-05-05Prevent "$ITEM['BODY']['HTML']()" which is a closure since version 2.1 from ↵Thomas Lange1-2/+4
calling twice.
2017-05-05A significant increase in the response time has been achieved, since the ↵v2.1Thomas Lange1-2/+2
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-04-24HTML escaping is required to prevent XML validation errors for some ↵Thomas Lange1-2/+1
characters like "&".
2017-04-24Nested function calls for generating the meta description are removed and a ↵Thomas Lange1-1/+1
function was added to perform this task.
2017-02-24Initial commit.v1.0Thomas Lange1-0/+26