Comment->method() info/samples
Intra-page navigation (TOC)
theoretically helpful textlorem ipsum
Comment->anchor()This function accepts no $params
<?php
$Comment->anchor(); // display an anchor for for this comment
?>
⇑ top of page ⇑
Comment->author()Minimum params with defaults shown >> chasing $params <<
<?php
// display comment author's name
$Comment->author( array(
'before_visitor' => '',
'after_visitor' => ' ['. T_('Visitor'). ']',
'before_user' => '',
'after_user' => ' ['. T_('Member'). ']',
'format' => 'htmlbody',
'make_link' => false,
) );
?>
⇑ top of page ⇑
Comment->author_email()Minimum params with defaults shown >> chasing $params <<.
<?php
// display mailto link to comment author's email
$Comment->author_email( array(
'before' => '',
'after' => '',
'text' => '',
'make_link' => true,
) );
?>
⇑ top of page ⇑
Comment->author_ip()Minimum params with defaults shown >> chasing $params <<.
<?php
// display comment author's IP address
$Comment->author_ip( array(
'before' => '',
'after' => '',
) );
?>
⇑ top of page ⇑
Comment->author_url()Minimum params with defaults shown >> chasing $params <<
<?php
// display a link to comment author's URL
$Comment->author_url( array(
'before' => '',
'after' => '',
'text' => '',
'make_link' => true,
) );
?>
⇑ top of page ⇑
Comment->content()This function accepts no $params
<?php
$Comment->content(); // display the comment's contents
?>
⇑ top of page ⇑
Comment->date()Minimum params with defaults shown >> chasing $params <<.
<?php
// display the comment's date
'before' => '',
'after' => '',
'useGM' => false,
) );
?>
⇑ top of page ⇑
Comment->delete_link()Minimum params with defaults shown >> chasing $params <<.
<?php
// display a link to delete a comment
$Comment->delete_link( array(
'before' => '',
'after' => ' ',
'text' => '#',
'title' => T_('Delete this comment'),
'class' => '',
'button' => false,
'glue' => '&',
'save_context' => true,
) );
?>
⇑ top of page ⇑
Comment->deprecate_link()Minimum params with defaults shown >> chasing $params <<.
<?php
// display a link to deprecate a comment
$Comment->deprecate_link( array(
'before' => '',
'after' => ' ',
'text' => get_icon( 'deprecate', 'imgtag' ). ' '. T_('Deprecate!'),
'title' => T_('Deprecate this comment!'),
'class' => '',
'glue' => '&',
'save_context' => true,
) );
?>
⇑ top of page ⇑
Comment->edit_link()Minimum params with defaults shown >> chasing $params <<
<?php
// display a link to edit a comment
$Comment->edit_link( array(
'before' => '',
'after' => ' ',
'title' => T_('Edit this comment'),
'class' => '',
'glue' => '&',
'save_context' => true,
) );
?>
⇑ top of page ⇑
Comment->msgform_link()Minimum params with defaults shown >> chasing $params <<.
<?php
// display a link to message form for this comment's author
$Comment->msgform_link( $Blog->get('msgformurl'), array(
'before' => '',
'after' => ' ',
'text' => '#',
'title' => T_('Send email to comment author'),
'class' => '',
) );
?>
⇑ top of page ⇑
Comment->permanent_link()Minimum params with defaults shown >> chasing $params <<.
<?php
// display a permalink link to the comment
$Comment->permanent_link( array(
'before' => '',
'after' => ' ',
'text' => '#',
'title' => T_('Permanent link to this comment'),
'class' => '',
'nofollow' => false,
) );
?>
⇑ top of page ⇑
Comment->publish_link()Minimum params with defaults shown >> chasing $params <<.
<?php
// display a link to publish a comment
$Comment->publish_link( array(
'before' => '',
'after' => ' ',
'text' => get_icon( 'publish', 'imgtag' ). ' '. T_('Publish!'),
'title' => T_('Publish this comment!'),
'class' => '',
'glue' => '&',
'save_context' => true,
) );
?>
⇑ top of page ⇑
Comment->rating()Minimum params with defaults shown >> chasing $params <<.
<?php
// display a comment's rating
$Comment->rating( array(
'before' => '<div class="comment_rating">',
'after' => '</div>',
'star_class' => 'middle',
) );
?>
⇑ top of page ⇑
Comment->rating_input()Minimum params with defaults shown >> chasing $params <<.
<?php
// display options to rate a comment
$Comment->rating_input( array(
'before' => '',
'after' => '',
'label_low' => T_('Poor'),
'label_high' => T_('Excellent'),
) );
?>
⇑ top of page ⇑
Comment->rating_none_input()Minimum params with defaults shown >> chasing $params <<.
<?php
// display option to reset rating
$Comment->rating_none_input( array(
'before' => '',
'after' => '',
'label' => T_('No rating'),
) );
?>
⇑ top of page ⇑
Comment->time()Minimum params with defaults shown >> chasing $params <<.
<?php
// display the comment's time
'before' => '',
'after' => '',
'useGM' => false,
) );
?>
⇑ top of page ⇑
| Prev |
Up |
Next |
| Blog->method() info/samples |
Templates Tutorials |
Item->method() info/samples |
|
|