Source for file _comment_list.inc.php
Documentation is available at _comment_list.inc.php
* This file implements the comment list
* This file is part of the Quam Plures project - {@link http://quamplures.net/}.
* See also {@link https://launchpad.net/quam-plures}.
* @copyright (c) 2009 - 2011 by the Quam Plures developers - {@link http://quamplures.net/}
* @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}.
* Parts of this file are copyright (c)2005 by Daniel HAHLER - {@link http://thequod.de/contact}.
* @license http://quamplures.net/license.html GNU General Public License (GPL)
* {@internal Below is a list of authors who have contributed to design/coding of this file: }}
* @author fplanque: Francois PLANQUE.
if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
while( $Comment = & $CommentList->get_next() )
{ // Loop through comments:
<div id="c <?php echo $Comment->ID ?>" class="bComment bComment <?php $Comment->status('raw') ?>">
<div class="bSmallHeadRight">
<?php echo T_('Visibility'). ': '; ?>
<?php $Comment->status(); ?>
// display the comment's date
'before' => '<span class="bDate">',
// display the comment's time
'before' => '<span class="bTime">',
// display a link to comment author's URL
if( $Comment->author_url( array(
'before' => ' · Url: <span class="bUrl">',
&& $current_User->check_perm( 'spamblacklist', 'edit' ) )
{ // There is an URL and we have permission to ban...
// TODO: really ban the base domain! - not by keyword
. '&aspm_source=reported">'. get_icon( 'ban' ). '</a> ';
// display mailto link to comment author's email
$Comment->author_email( array(
'before' => ' · Email: <span class="bEmail">',
// display comment author's IP address
$Comment->author_ip( array(
'before' => ' · IP: <span class="bIP">',
echo ' · <span class="bKarma">';
$Comment->spam_karma( T_('Spam Karma'). ': %s%', T_('No Spam Karma') );
<div class="bCommentContent">
$comment_Item = & $Comment->get_Item();
echo T_('In response to')
. ': <a href="?ctrl=items&blog='. $Blog->ID. '&p='. $comment_Item->ID. '">'. $comment_Item->dget('title'). '</a>';
<div class="bCommentTitle">
<?php echo $Comment->get_title(); ?>
<div class="bCommentText">
// display a comment's rating
$Comment->rating( array() );
$Comment->content(); // display the comment's contents
<div class="CommentActionsArea">
// display a permalink link to the comment
$Comment->permanent_link( array(
'class' => 'permalink_right',
// display a link to edit a comment
$Comment->edit_link( array(
'class' => 'ActionButton',
// display a link to publish a comment
$Comment->publish_link( array(
'class' => 'PublishButton',
// display a link to deprecate a comment
$Comment->deprecate_link( array(
'class' => 'DeleteButton',
// display a link to delete a comment
$Comment->delete_link( array(
'class' => 'DeleteButton',
<div class="clear"></div>
<?php //end of the loop, don't delete
|