Pastoid

comments.php ( O Y O ) <<< lmao.

The page you are looking at now is at this URL: http://pastoid.com/br0

This paste was last updated on July 23, 2009 at 12:11 pm.

Pasted Coderaw

<?php
/* vim: set expandtab tabstop=1 shiftwidth=1 softtabstop=1 foldmethod=marker */
// Warning: This is PHP template written as RAW.
?>
<?php // Do not delete these lines
	if ( ! defined('HABARI_PATH' ) ) { die( _t('Please do not load this page directly. Thanks!') ); }
?>
<div id="comments" class="content wrapper col3">
<?php
if ( !$post->comments->approved->count ){
	$v_comments = 'No one';
} elseif ( $post->comments->approved->count == 1 ) {
	$v_comments = $post->comments->approved->count . ' person';
} else {
	$v_comments = $post->comments->approved->count . ' peoples';
}
?>
<h3><?php _e('Reader commentary'); ?></h3>
<h4><b><?php if ( $post->comments->moderated->count > 0 ) { printf( _n('%1$d people', '%1$d peoples', $post->comments->moderated->count), $post->comments->moderated->count ); } else { _e('No one'); } ?></b> <?php _e('has commented so far'); ?>.</h4>
<?php foreach($post->comments->moderated as $i => $comment): ?>
<div class="comment<?php if ($comment->email == $post->author->email): ?> comment-is-owner<?php endif; ?>">
	<div class="comment_meta clearfix">
		<div class="gravatar"><img src="<?php echo $comment->gravatar ?>" alt="<?php echo $comment->name; ?>'s Gravatar" width="40" height="40" /></div>
		<?php if ( $comment->url != '' ): ?><a href="<?php echo $comment->url; ?>" rel="external" title="<?php echo $comment->name; ?>'s website"><?php echo $comment->name; ?></a>
		<?php else: ?><?php echo $comment->name; ?><?php endif; ?><br />
		<small>
			<?php echo $comment->date_out; ?><br />
			<span><?php echo $comment->date_excerpt; ?></span>
		</small>
		<div class="clear"></div>
	</div>
	<div class="comment_bubble"></div>
	<div class="comment_content">
		<div class="comment_text">
			<?php echo $comment->content; ?>
			<?php if ( $comment->status == Comment::STATUS_UNAPPROVED ) : ?>
				<p class="hi"><em><?php _e( 'Your comment is awaiting moderation' ) ;?></em></p>
			<?php endif; ?>
		</div>
	</div>
</div>
<?php endforeach; ?>
<?php if ( $post->comments->moderated->count == 0 ): ?>
	<div id="no_comment"><?php _e('Currenlty no comment at this moment')?>.<?php if ( !$post->info->comments_disabled ) : ?> Come on, be the first one!<?php endif; ?></div>
	<?php else: ?>
	<div id="write_comment"><a href="#comment_form"><?php _e('Got something to say?'); ?></a></div>
	<?php endif; ?>
</div>

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 3
Is this paste spam?
<Hide