File: /home/niphet/public_html/wp-content/themes/slrloungev2/single.php
<?php get_header(); ?>
<div id="content" class="column">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2 class="post-title"><?php the_title(); ?></h2>
<div class="entry">
<?php the_content('<p class="serif">Click for Entire Entry »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
<div class="navigation">
<div class="alignright"><?php previous_post('%','« Previous Article', 'no'); ?> | <?php next_post('%','Next Article » ', 'no'); ?>
</div>
</div>
</div>
</div>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
<div id="main-comment" class="main_comments">
<div class="column">
<? if($slr_settings['options']['meta']['comments']==1){?>
<div id="comments_left">
<div id="comment_count">
<? $my_id = $post->ID; $comments = get_comments('post_id='.$post->ID.'&status=approve'); ?> <span class="comment-head"><?=count($comments)?> COMMENTS</span> |
<a class="a_pop_comments" href="<?php bloginfo('stylesheet_directory'); ?>/ajax_comments.php?postid=<?php the_ID(); ?>"><span class="comment-head">ADD YOUR COMMENT</span></a>
</div>
</div> <!-- close comments_left -->
<?
$my_id = $post->ID;
$comments = get_comments('post_id='.$post->ID.'&status=approve');
?>
<div style="clear: both;"></div>
<div class="thank_comments<?=$post->ID?>" style="display:none">Thank you for submitting your message. Your post is under moderation</div>
<?
if(count($comments)){
echo ' <div class="scroll-pane">';
?>
<div class="scr-title">
<?
foreach($comments as $comment){
if($comment->comment_author_url && !strstr($comment->comment_author_url,'http')){
$comment->comment_author_url='http://'.$comment->comment_author_url;
}elseif(!$comment->comment_author_url){
$comment->comment_author_url='';
}
$author_link=$comment->comment_author;
if($comment->comment_author_url){
$author_link='<a rel="external nofollow" href="'.($comment->comment_author_url?$comment->comment_author_url:'#').'" target="_blank">'.$comment->comment_author.'</a>';
}
?>
<div class="scroll-content">
<span style="color:#060"><?=$author_link?></span> <?=$comment->comment_content?> <br>
</div> <!-- close scroll-content -->
<?}?>
</div>
<?
if(count($comments))
echo '</div>';
}
}else{
comments_template( '', true );
}
?>
</div>
<div style="clear: both;"></div>
</div>
<?php get_footer(); ?>