<?php
/**
* This is the template that displays a single comment, WP style.
*
* This file is not meant to be called directly.
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
* @copyright (c)2003-2020 by Francois Planque - {@link http://fplanque.com/}
*
* @package evoskins
*
* @deprecated Will be removed in a future version.
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
// Default params:
$params = array_merge( array(
'comment_start' => '<li>',
'comment_end' => '</li>',
'preview_start' => '<ul><li id="comment_preview">',
'preview_end' => '</li></ul>',
'Comment' => NULL, // This object MUST be passed as a param!
), $params );
/**
* @var Comment
*/
$Comment = & $params['Comment'];
?>
<!-- ========== START of a COMMENT/TB/PB ========== -->
<?php
$Comment->anchor();
echo $params['comment_start'];
?>
<?php $Comment->rating(); ?>
<?php $Comment->content() ?>
<p><cite>
<?php
switch( $Comment->get( 'type' ) )
{
case 'comment': // Display a comment:
if( empty($Comment->ID) )
{ // PREVIEW comment
echo T_('PREVIEW Comment by').' ';
}
else
{ // Normal comment
$Comment->permanent_link( array(
'before' => '',
'after' => ' ',
'text' => T_('Comment'),
'nofollow' => true,
) );
}
$Comment->author( /* TRANS: author name */ T_('by').' ' );
if( ! $Comment->get_author_User() )
{ // Display action icon to message only if this comment is from a visitor
$Comment->msgform_link( $Blog->get( 'msgformurl' ) );
}
$Comment->author_url( '', ' · ', '' );
break;
case 'trackback': // Display a trackback:
$Comment->permanent_link( array(
'before' => '',
'after' => ' ',
'text' => T_('Trackback'),
'nofollow' => true,
) );
$Comment->author( /* TRANS: author name */ T_('by').' ', '#', '', '#', 'htmlbody', true );
break;
case 'pingback': // Display a pingback:
$Comment->permanent_link( array(
'before' => '',
'after' => ' ',
'text' => T_('Pingback'),
'nofollow' => true,
) );
$Comment->author( /* TRANS: author name */ T_('by').' ', '#', '', '#', 'htmlbody', true );
break;
case 'webmention': // Display a webmention:
$Comment->permanent_link( array(
'before' => '',
'after' => ' ',
'text' => T_('Webmention'),
'nofollow' => true,
) );
$Comment->author( /* TRANS: author name */ T_('by').' ', '#', '', '#', 'htmlbody', true );
break;
}
?>
—
<?php $Comment->date() ?> @ <?php $Comment->time( '#short_time' ) ?>
</cite>
<?php
$Comment->edit_link( '', '', '#', '#', 'permalink_right' ); /* Link to backoffice for editing */
$Comment->delete_link( '', '', '#', '#', 'permalink_right' ); /* Link to backoffice for deleting */
?>
</p>
<br/>
<?php
echo $params['comment_end'];
?>
<!-- ========== END of a COMMENT/TB/PB ========== -->