Comment Comment(
[
$db_row = NULL]
)
|
|
Parameters:
Template function: display anchor for permalinks to refer to
void author(
[string
$before = ''], [string
$after = '#'], [string
$before_user = ''], [string
$after_user = '#'], [string
$format = 'htmlbody'], [boolean
$makelink = false]
)
|
|
Template function: display author of comment
Parameters:
|
string |
$before: |
String to display before author name if not a user |
|
string |
$after: |
String to display after author name if not a user |
|
string |
$before_user: |
String to display before author name if he's a user |
|
string |
$after_user: |
String to display after author name if he's a user |
|
string |
$format: |
Output format, see format_to_output() |
|
boolean |
$makelink: |
true for link, false if you want NO html link |
void author_email(
[string
$linktext = ''], [string
$before = ''], [string
$after = ''], [boolean
$makelink = true]
)
|
|
Template function: display link to comment author's provided email
Parameters:
|
string |
$linktext: |
String to display for link: leave empty to display email |
|
string |
$before: |
String to display before email, if email exists |
|
string |
$after: |
String to display after email, if email exists |
|
boolean |
$makelink: |
false if you want NO html link |
void author_ip(
[string
$before = ''], [string
$after = '']
)
|
|
Template function: display comment's author's IP
Parameters:
|
string |
$before: |
String to display before IP, if IP exists |
|
string |
$after: |
String to display after IP, if IP exists |
boolean author_url(
[string
$linktext = ''], [string
$before = ''], [string
$after = ''], [boolean
$makelink = true]
)
|
|
Template function: display link to comment author's provided URL
Parameters:
|
string |
$linktext: |
String to display for link: leave empty to display URL |
|
string |
$before: |
String to display before link, if link exists |
|
string |
$after: |
String to display after link, if link exists |
|
boolean |
$makelink: |
false if you want NO html link |
API Tags:
| Return: | true if URL has been displayed |
void content(
[string
$format = 'htmlbody']
)
|
|
Template function: display content of comment
Parameters:
void date(
[string
$format = ''], [boolean
$useGM = false]
)
|
|
Template function: display date (datetime) of comment
Parameters:
|
string |
$format: |
date/time format: leave empty to use locale default date format |
|
boolean |
$useGM: |
true if you want GMT |
void delete_link(
[string
$before = ' '], [string
$after = ' '], [string
$text = '#'], [string
$title = '#'], [string
$class = ''], [boolean
$button = false]
)
|
|
Displays button for deleeing the Comment if user has proper rights
Parameters:
|
string |
$before: |
to display before link |
|
string |
$after: |
to display after link |
|
string |
$text: |
link text |
|
string |
$title: |
link title |
|
string |
$class: |
class name |
|
boolean |
$button: |
true to make this a button instead of a link |
void edit_link(
[string
$before = ' '], [string
$after = ' '], [string
$text = '#'], [string
$title = '#'], [string
$class = '']
)
|
|
Provide link to edit a comment if user has edit rights
Parameters:
|
string |
$before: |
to display before link |
|
string |
$after: |
to display after link |
|
string |
$text: |
link text |
|
string |
$title: |
link title |
|
string |
$class: |
class name |
void permalink(
[string
$mode = ''], [string
$blogurl = '']
)
|
|
Template function: display permalink to this comment
Parameters:
|
string |
$mode: |
'urltitle', 'pid', 'archive#id' or 'archive#title' |
|
string |
$blogurl: |
url to use |
void set(
$parname,
$parvalue
)
|
|
Parameters:
void time(
[string
$format = ''], [boolean
$useGM = false]
)
|
|
Template function: display time (datetime) of comment
Parameters:
|
string |
$format: |
date/time format: leave empty to use locale default time format |
|
boolean |
$useGM: |
true if you want GMT |