File: /home/niphet/public_html/wp-content/themes/slrloungev2/archive.php
<?php get_header(); ?>
<div id="content" class="column">
<div id="content-inside">
<div id="sidebar-home">
<div id="sidebar-home-inside">
<div id="sidebar-left">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post-content" id="post-<?php the_ID(); ?>">
<h2 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="post-date"><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></div>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?>
<? if($slr_settings['options']['meta']['comments']==1){?>
<div id="main-comment" class="main_comments">
<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>
<?}?>
</div>
<?
}else{
echo ' | ';comments_popup_link('No Comments »', '1 Comment »', '% Comments »');
}?>
<?php edit_post_link(' | Edit', '',''); ?>
</p>
</div> <!-- post -->
<div class="divider-top">
<!-- nothing to see here -->
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="single">
<h2>Sorry, but you are looking for something that isn't here.</h2>
</div>
<?php endif; ?>
</div>
<div id="sidebar-right" style="float: right;">
</div>
</div>
</div>
</div> <!-- content-inside -->
</div> <!-- content -->
<?php get_footer(); ?>