Full news

post.tpl - post template.

Tag
Description
{id} ID news.
{title}

{title limit=100}

News title.

News title trimmed to 100 characters.
{short}
Short news entry.
{categories}
List of new categories.
{category}
Final category.
{category-title}
Final category name.
{category-icon}
Categories icon.
{category-link}
Final category link.
{see}
Number of views.
{date}

{date-"d.m.Y H:i :s"}

Date posts in the format ( d.m.y ).
possible decline format, for example {date- "d.m.y h: i: s"}.
https://www.php.net/manual/ru/datetime.format .php - help
{rating}
Inferred rating.
{content}
News content.
{edit}
Link to edit news.
{comments}
Comments.

comments.tpl - the file is responsible for the code of one comment.
{add-comment}
Form to add a comment.
{author-link}
Link to the news author.
{author-name}
News author avatar name.
{author-avatar}
Author avatar link.
{poster}
Link to poster if selected.
Conditional tags
Adding the prefix not- means the reverse action, do not display content.
[post=3,10-100]...[ /post]
Displays content if the post ID matches the value in the attribute.
[poster]...[/poster]
Displays content if a poster has been set.
[not-poster]...[/not-poster]
Displays content if no poster has been set.
{prev-link}
Link to previous post.
{next-link}
Link to next post.
{prev-title}
Title of previous news.
{next-title}
Next news headline.
{rating}
Rating.
{rating-val}
Rating result.
{rating-num}
Number of voters.
{comments}
News comments.
{comments-count}
Number of comments.
{add-comment}
Form to add a comment.
{tags}

{tags-links}

Displays tags for this news.

Displays tags with links.
Additional fields

FAQ

Comment is not added in AJAX mode

In order for new comments to appear immediately after sending, you must have an element with the data-comments attribute. This will add a comment inside the element.
Loading...