Location: PHPKode > scripts > Noostr > style/default/comment.php
<?php defined('SYSPATH') OR die('No direct access to this file is allowed.');
show_header();

show_content();

$comment = get_comment();
if ($comment == null) {
	echo '<p>That comment does not exist.</p>';
} else {
?>
<table id="storylist" class="single">
<?php
	show_comment($comment);
?>
</table>
<?php	if (has_right('submitComment')) {
		show_submission_form('comment');
	} elseif ($ns->user['uid'] == null) {
?><p><em>You must be logged in to leave a comment.</em></p><?php
	} else {
?><p><em>You are not allowed to leave a comment.</em></p><?php
	}
	$comments = get_comments($comment['lft'], $comment['rgt']);
	//print_r($comments);
	for ($i = 0, $c = count($comments); $i < $c; $i++) {
		if ($comments[$i]['uid'] != '') {
			show_comment($comments[$i], 'comment');
		}
	}
}
show_footer();
Return current item: Noostr