-
Notifications
You must be signed in to change notification settings - Fork 27
Templates
WARNING: Parameters marked with {!} must be escaped from HTML markup if you display them!
├── html
│ ├── 403.php
│ ├── 404.php
│ ├── category
│ │ ├── item.php
│ │ ├── list.php
│ │ └── main.php
│ ├── feed
│ │ ├── item.php
│ │ └── main.php
│ ├── home.php
│ ├── main.php
│ ├── page
│ │ ├── item.php
│ │ ├── list.php
│ │ └── main.php
│ ├── pagination.php
│ ├── post
│ │ ├── item.php
│ │ ├── list.php
│ │ └── main.php
│ ├── search
│ │ ├── main.php
│ │ └── result.php
│ └── user
│ ├── item.php
│ ├── list.php
│ └── main.php
├── lang
│ ├── de.php
│ └── en.php
│ └── […]
└── rsrc
└── […]
The following variables are available in each other template file:
-
$BLOGMETA['NAME']
{!}: Global available: The name of the blog -
$BLOGMETA['DESC']
{!}: Global available: The description of the blog -
$BLOGMETA['HOME']
{!}: Global available: The name of the start page of the blog -
$BLOGMETA['MAIL']
: Global available: The email address of the contact person -
$BLOGMETA['LANG']
: Global available: The two-letter language code for the content
Basic framework of the HTML document which contains the main content:
-
$HEAD['NAME']
{!}: Contains the document name for the<title>
tag or something else -
$HEAD['DESC']
{!}: Contains the document description for<meta
tags or something else -
$HEAD['PERM']
: Contains the canonical URL for this document -
$HEAD['OG_IMAGES']
: Contains a list of image URLs for the document -
$HTML
: Contains the documents main body (other templates)
If you are on a single category, page, post or user:
-
$TYPE
: Contains eitherCATEGORY
,PAGE
,POST
orUSER
as string value.
If $TYPE
is CATEGORY
:
-
$CATEGORY
: [See reference for@CATEGORY
] -
$CATEGORIES
: Contains a list of@CATEGORY
arrays (the parents and the direct category itself)
If $TYPE
is PAGE
:
-
$PAGE
: [See reference for@PAGE
] -
$USER
: [See reference for@USER
]
If $TYPE
is POST
:
-
$POST
: [See reference for@POST
] -
$USER
: [See reference for@USER
]
If $TYPE
is USER
:
-
$USER
: [See reference for@USER
]
This is the default startpage template which contains a list with the last posts.
-
$LIST['POSTS']
: Contains a list of post items for the home site -
$PAGINATION['HTML']
: Contains the pagination template with the list navigation
Overview template which contains the site navigation and a list of category items to be displayed.
-
$LIST['CATEGORIES']
: Contains a list of category items for the current site -
$PAGINATION
: [See reference for@PAGINATION
]
Overview template which contains the site navigation and a list of page items to be displayed.
-
$LIST['PAGES']
: Contains a list of page items for the current site -
$PAGINATION
: [See reference for@PAGINATION
]
Overview template which contains the site navigation and a list of post items to be displayed.
-
$LIST['POSTS']
: Contains a list of post items for the current site -
$PAGINATION
: [See reference for@PAGINATION
]
Overview template which contains the site navigation and a list of user items to be displayed.
-
$LIST['USERS']
: Contains a list of user items for the current site -
$PAGINATION
: [See reference for@PAGINATION
]
Represents a single category to display within the list template.
-
$CATEGORY
: [See reference for@CATEGORY
] -
$CATEGORIES
: Contains a list of@CATEGORY
arrays (the parents and the direct category itself) -
$IS_ROOT
: Boolean if this category item is in the root list or if it is a child of some category -
$COUNT['POST']
: Contains the number of posts published in this category -
$COUNT['CHILDREN']
: Contains the number of children categories
Represents a single page to display within the list template.
-
$PAGE
: [See reference for@PAGE
] -
$USER
: [See reference for@USER
]
Represents a single post to display within the list template.
-
$POST
: [See reference for@POST
] -
$USER
: [See reference for@USER
] -
$CATEGORY
: [See reference for@CATEGORY
] -
$CATEGORIES
: Contains a list of@CATEGORY
arrays (the parents and the direct category itself)
Represents a single user to display within the list template.
-
$USER
: [See reference for@USER
]
Main template for a single category.
-
$CATEGORY
: [See reference for@CATEGORY
] -
$CATEGORIES
: Contains a list of@CATEGORY
arrays (the parents and the direct category itself) -
$COUNT['POST']
: Contains the number of posts published in this category -
$COUNT['CHILDREN']
: Contains the number of children categories -
$CATEGORY['PREV']
: NOT IMPLEMENTED YET -
$CATEGORY['NEXT']
: NOT IMPLEMENTED YET -
$LIST['CATEGORIES']
: Contains a list of direct children categories -
$LIST['POSTS']
: Contains a list of post items in this category
Main template for a single page.
-
$PAGE
: [See reference for@PAGE
] -
$USER
: [See reference for@USER
] -
$PAGE['PREV']
: Same data structure as$PAGE
but with the data from the previous page -
$PAGE['NEXT']
: Same data structure as$PAGE
but with the data from the next page
Main template for a single post.
-
$POST
: [See reference for@POST
] -
$USER
: [See reference for@USER
] -
$CATEGORY
: [See reference for@CATEGORY
] -
$CATEGORIES
: Contains a list of@CATEGORY
arrays (the parents and the direct category itself) -
$POST['PREV']
: Same data structure as$POST
but with the data from the previous post -
$POST['NEXT']
: Same data structure as$POST
but with the data from the next post
Main template for a single user.
-
$USER
: [See reference for@USER
] -
$USER['PREV']
: Same data structure as$USER
but with the data from the previous user -
$USER['NEXT']
: Same data structure as$USER
but with the data from the next user -
$COUNT['POST']
: Contains the number of posts published by the user -
$COUNT['PAGE']
: Contains the number of pages published by the user
Search template without results and with the formular.
-
$SEARCH['TEXT']
{!}: Contains the full search string -
$SEARCH['INFO']
{!}: Contains a list of information messages -
$FORM['SELECT']['D']
: Contains the selected day or is empty -
$FORM['SELECT']['M']
: Contains the selected month or is empty -
$FORM['SELECT']['Y']
: Contains the selected year or is empty -
$FORM['OPTIONS']['D']
: Contains a list of possible days to select -
$FORM['OPTIONS']['M']
: Contains a list of possible months to select -
$FORM['OPTIONS']['Y']
: Contains a list of possible years to select
Result template with a list of posts and the formular to repeat the search.
-
$SEARCH['TEXT']
{!}: Contains the full search string -
$SEARCH['INFO']
{!}: Contains a list of information messages -
$RESULT['LIST']
: Contains a list of post items as result -
$FORM['SELECT']['D']
: Contains the selected day or is empty -
$FORM['SELECT']['M']
: Contains the selected month or is empty -
$FORM['SELECT']['Y']
: Contains the selected year or is empty -
$FORM['OPTIONS']['D']
: Contains a list of possible days to select -
$FORM['OPTIONS']['M']
: Contains a list of possible months to select -
$FORM['OPTIONS']['Y']
: Contains a list of possible years to select -
$PAGINATION
: [See reference for@PAGINATION
]
Contains the site navigation for post, page and user list (and for the home template)
-
$THIS
: Contains the current site number of the list navigation -
$LAST
: Contains the last site number of the list navigation -
$HREF
: Contains the URL for a specific site number
Basic framework of the RSS feed in XML which contains a list of page and post items:
-
$FEED['LIST']['POSTS']
: Contains a list of post items
Represents a single post to display within the feed template.
-
$POST
: [See reference for@POST
] -
$USER
: [See reference for@USER
]
Default template for error page 403 Forbidden.
[no variables]
Default template for error page 404 Not Found.
[no variables]
-
$CATEGORY['URL']
: Contains the complete URL to the category content -
$CATEGORY['ARGV']
: Contains the arguments parsed as key->value array -
$CATEGORY['FILE']['LIST']
: List of extracted image URLs from the body -
$CATEGORY['BODY']['TEXT'] ()
: Pre-parsed content of the category body -
$CATEGORY['BODY']['HTML'] ()
: HTML parsed content of the category body -
$CATEGORY['ATTR']['ID']
: Raw attribute data from database columnid
-
$CATEGORY['ATTR']['PARENT']
: Raw attribute data from database columnparent
-
$CATEGORY['ATTR']['SLUG']
{!}: Raw attribute data from database columnslug
-
$CATEGORY['ATTR']['NAME']
{!}: Raw attribute data from database columnname
-
$CATEGORY['ATTR']['BODY']
{!}: Raw attribute data from database columnbody
-
$CATEGORY['ATTR']['ARGV']
: Raw attribute data from database columnargv
-
$CATEGORY['ATTR']['TIME_INSERT']
: Raw attribute data from database columntime_insert
-
$CATEGORY['ATTR']['TIME_UPDATE']
: Raw attribute data from database columntime_update
-
$PAGE['URL']
: Contains the complete URL to the page content -
$PAGE['ARGV']
: Contains the arguments parsed as key->value array -
$PAGE['FILE']['LIST']
: List of extracted image URLs from the body -
$PAGE['BODY']['TEXT'] ()
: Pre-parsed content of the page body -
$PAGE['BODY']['HTML'] ()
: HTML parsed content of the page body -
$PAGE['ATTR']['ID']
: Raw attribute data from database columnid
-
$PAGE['ATTR']['USER']
: Raw attribute data from database columnuser
-
$PAGE['ATTR']['SLUG']
{!}: Raw attribute data from database columnslug
-
$PAGE['ATTR']['NAME']
{!}: Raw attribute data from database columnname
-
$PAGE['ATTR']['BODY']
{!}: Raw attribute data from database columnbody
-
$PAGE['ATTR']['ARGV']
: Raw attribute data from database columnargv
-
$PAGE['ATTR']['TIME_INSERT']
: Raw attribute data from database columntime_insert
-
$PAGE['ATTR']['TIME_UPDATE']
: Raw attribute data from database columntime_update
-
$POST['URL']
: Contains the complete URL to the post content -
$POST['ARGV']
: Contains the arguments parsed as key->value array -
$POST['FILE']['LIST']
: List of extracted image URLs from the body" -
$POST['BODY']['TEXT'] ()
: Pre-parsed content of the post body -
$POST['BODY']['HTML'] ()
: HTML parsed content of the post body -
$POST['ATTR']['ID']
: Raw attribute data from database columnid
-
$POST['ATTR']['USER']
: Raw attribute data from database columnuser
-
$POST['ATTR']['SLUG']
{!}: Raw attribute data from database columnslug
-
$POST['ATTR']['NAME']
{!}: Raw attribute data from database columnname
-
$POST['ATTR']['BODY']
{!}: Raw attribute data from database columnbody
-
$POST['ATTR']['ARGV']
: Raw attribute data from database columnargv
-
$POST['ATTR']['TIME_INSERT']
: Raw attribute data from database columntime_insert
-
$POST['ATTR']['TIME_UPDATE']
: Raw attribute data from database columntime_update
-
$USER['URL']
: Contains the complete URL to the user -
$USER['ARGV']
: Contains the arguments parsed as key->value array -
$USER['FILE']['LIST']
: List of extracted image URLs from the body -
$USER['BODY']['TEXT'] ()
: Pre-parsed content of the user body -
$USER['BODY']['HTML'] ()
: HTML parsed content of the user body -
$USER['ATTR']['ID']
: Raw attribute data from database columnid
-
$USER['ATTR']['SLUG']
{!}: Raw attribute data from database columnslug
-
$USER['ATTR']['BODY']
{!}: Raw attribute data from database columnbody
-
$USER['ATTR']['ARGV']
: Raw attribute data from database columnargv
-
$USER['ATTR']['USERNAME']
{!}: Raw attribute data from database columnusername
-
$USER['ATTR']['FULLNAME']
{!}: Raw attribute data from database columnfullname
-
$USER['ATTR']['MAILADDR']
{!}: Raw attribute data from database columnmailaddr
-
$USER['ATTR']['TIME_INSERT']
: Raw attribute data from database columntime_insert
-
$USER['ATTR']['TIME_UPDATE']
: Raw attribute data from database columntime_update
-
$PAGINATION['THIS']
: Contains the current site number of the list navigation -
$PAGINATION['LAST']
: Contains the last site number of the list navigation -
$PAGINATION['HTML']
: Contains the pagination template with the list navigation