GENERAL VARIABLES
-----------------
<!--
[lang
]--> : Language
as defined in PN settings
<!--
[charset
]--> : Character set
as defined in PN settings
<!--
[sitename
]--> : Site name
as defined in PN settings
<!--
[slogan
]--> : Site slogan
as defined in PN settings
<!--
[keywords
]--> : Meta keywords
as defined in PN settings
<!--
[title
]--> : Site title
as defined in PN settings
<!--
[additional_header
]-->
<!--
[modulestylesheet
]--> : Use module-specific stylesheets
<!--
[modulestylesheet stylesheet=admin.css modname=Admin
]--> : Load specific stylesheet
<!--
[pnml name=
"_TEXTDEFINE"]--> : Displays text
defined in
global.php
<!--
[$imagepath]--> : Path to theme images
<!--
[$themepath]--> : Path to theme root
<!--
[opentable
]--> : Opens table at
100% width
(table/tr/td
)<!--
[closetable
]--> : Closes table
(td/tr/table
)<!--
[opentable2
]--> : Opens table sized to contents
(table/tr/td
)<!--
[closetable2
]--> : Closes table
(td/tr/table
)<!--
[$color1]--> : Color
as defined in theme xaninit.php
(1-10)<!--
[strip
]--> : Begin stripping whitespace
<!--
[/strip
]--> :
end stripping whitespace
<!--
[user
]--> : Username
<!--
[themeinfo
]--> : Theme information
<!--
[literal
]--> : Begin pnRender/Xanthia tags off
<!--
[/literal
]--> :
end pnRender/Xanthia tags off
<!--
[nocache
]--> : Begin non-caching of content
<!--
[/nocache
]--> :
end non-caching of content
MASTER AND MODULE TEMPLATE VARIABLES
------------------------------------
<!--
[$centerblocks]--> : Center blocks
<!--
[$maincontent]--> : Main content
(module data
)<!--
[$leftblocks]--> : Left blocks
<!--
[$rightblocks]--> : Right blocks
<!--
[pnbannerdisplay id=
""]--> : Banner
(specify ID
)<!--
[search
]--> : Search box and button
<!--
[search button=
"Search"]--> : Search box and button
(specify button label
)<!--
[search active=
"faqs, stories" label=
$search_label class=
"pn-normal"]--> : Search box with other options
<!--
[userwelcome
]--> :
"Hello $username"<!--
[displaygreeting
]--> :
"Hello $username" and number of messages
(or login
if not logged-in
)<!--
[userlogin
]--> : Horizontal login
(username/password/remember me
)<!--
[userlinks
]--> : Links
for anonymous users
(register/login
) and logged-in users
(my account/logout
)<!--
[datetime format=_SITEDATETIME
]--> :
date and
time<!--
[footmsg
]--> : Footer message
as defined in PN settings
<!--
[nocache
]--><!--
[pagerendertime
]--><!--
[/nocache
]--> : Render
time (if enabled
)<!--
[typetoolv80
]--> : Enable TypeTool
(please no!
)<!--
[$pagewidth]--> : Page width
as set in xaninit.php/Xanthia settings
<!--
[$lcolwidth]--> : Left column width
as set in xaninit.php/Xanthia settings
<!--
[$rcolwidth]--> : Right column width
as set in xaninit.php/Xanthia settings
BLOCK-SPECIFIC VARIABLES
------------------------
<!--
[$title]--> : Block title
<!--
[$content]--> : Block content
NEWS ARTICLE- AND INDEX- SPECIFIC VARIABLES
-------------------------------------------
<!--
[$info.topicname
]--> : Topic title
<!--
[$preformat.searchtopic
]--> : Topic image
<!--
[$preformat.catandtitle
]--> : Category and title
<!--
[$info.title
]--> : Article title
<!--
[$info.hometext
]--> : Home text
<!--
[$preformat.bodytext
]--> : Body text
<!--
[$preformat.notes
]--> : Notes text
<!--
[$preformat.fulltext
]--> : Full text
(home+body+notes
)<!--
[$preformat.readmore
]--> :
"Read more..."<!--
[$preformat.reads
]--> : Number of reads
(preformatted
)<!--
[$info.counter
]--> : Number of reads
<!--
[$preformat.send
]--> : Send to a friend
<!--
[$preformat.
print]--> : Printer-friendly page
<!--
[$preformat.comment
]--> : Number of comments
<!--
[$info.fulltext|count_words
]--> : Number of words in remainder of article
<!--
[$info.informant
]--> : Author
<!--
[$info.longdatetime
]--> :
date and
time (long
)<!--
[$info.briefdatetime
]--> :
date and
time (short
)<!--
[$info.longdate
]--> :
date (long
)<!--
[$info.briefdate
]--> :
date (short
)<!--
[$info.sid
]--> : Story ID
<!--
[$links.searchtopic
]--> : Topic URL
(e.g. <a href=
"<!--[$links.searchtopic]-->">
)<!--
[articleadminlinks sid=
$info.sid
]--> : Admin links
(edit/delete
)<!--
[$info.aid
]--> :
<!--
[$info.bodytext
]--> :
<!--
[$info.catthemeoverride
]--> :
<!--
[$info.cid
]--> :
<!--
[$info.cattitle
]--> :
<!--
[$info.comments
]--> :
<!--
[$info.notes
]--> :
<!--
[$info.themeoverride
]--> :
<!--
[$info.tid
]--> :
<!--
[$info.
time]--> :
<!--
[$info.topicimage
]--> :
<!--
[$info.topictext
]--> :
<!--
[$info.tcounter
]--> :
<!--
[$info.unixtime
]--> :
<!--
[$info.withcomm
]--> :
<!--
[$info.topicid
]--> :
<!--
[$info.topic
]--> :
<!--
[$info.catid
]--> :
<!--
[$info.version
]--> :
<!--
[$info.catandtitle
]--> :
<!--
[$info.maintext
]--> :
<!--
[$info.fulltext
]--> :
<!--
[$links.category
]--> :
<!--
[$links.comment
]--> :
<!--
[$links.fullarticle
]--> :
<!--
[$links.searchtopic
]--> :
<!--
[$links.
print]--> :
<!--
[$links.send
]--> :
<!--
[$links.version
]--> :
<!--
[$preformat.bytesmore
]--> :
<!--
[$preformat.category
]--> :
<!--
[$preformat.comment
]--> :
<!--
[$preformat.title
]--> :
<!--
[$preformat.version
]--> :
<!--
[$preformat.more
]--> :
POSTNUKE TABLE-SPECIFIC VARIABLES
---------------------------------
<!--
[$tablecontent]--> : Table content
EXAMPLES
========
Read more image
(if applicable
)-------------------------------
<!--
[if $info.bodytext|count_words gt
0]-->
<a href=
"modules.php?op=modload&name=News&file=article&sid=<!--[$info.sid]-->&mode=thread&order=0&thold=0">
<img border=
"0" src=
"<!--[$imagepath]-->/readmore.gif" alt=
"Read the rest of the story..." />
</a>
<!--
[else]-->
<!--
[/
if]-->
Show full text of first article on homepage
-------------------------------------------
<!--
[counter name=articlecount assign=articlecount
]-->
<!--
[pnvarcleanfrominput name=startnum assign=startnum
]-->
<div
class=
"<!--[if $articlecount eq 1 and $startnum eq '']-->featured-article <!--[/if]-->article-<!--[$info.sid]-->">
<h2><!--
[$preformat.catandtitle
]--></h2>
<small>Filed under <!--
[$info.topictext
]-->
by <!--
[$info.informant
]--> <!--
[$info.time|timeofday
]-->
of <!--
[$info.time|pndate_format:datebrief
]--></small>
<div
class=
"entry"><!--
[$preformat.hometext
]--></div>
<p
class=
"postmetadata">
<!--
[if $preformat.readmore neq
'']-->
[ <!--
[$preformat.readmore
]-->
] <!--
[/
if]-->
</p>
</div>
Show content
if user is admin
-----------------------------
<!--
[pnsecauthaction realm=
"0" comp=
"::" inst=
"::" level=
"ACCESS_ADMIN" assign=
"admin"]-->
<!--
[if $admin eq
2]-->
my code
<!--
[/
if]-->
Show content
if user is logged in
---------------------------------
<!--[if pnuserloggedin($loggedin) eq 1]-->
logged in code
<!--[else]-->not logged in code
<!--
[/
if]-->
Show content
if user is using English language
----------------------------------------------
<!--
[pnusergetlang assign=
'lang']-->
<!--
[if $lang eq
"eng"]-->
<!--
[include file=
'yourtemplate_eng.htm']-->
<!--
[else]-->
<!--
[include file=
'yourtemplate_persian.htm']-->
<!--
[/
if]-->
Using an IE-specific css
file-----------------------------
<!--
[literal
]--><!--
[if lte IE
6]><!--
[/literal
]-->
/style/ie.css
" />
<!--[literal]--><![endif]--><!--[/literal]-->
Truncate content
----------------
<!--[$preformat.catandtitle|truncate:30]-->