    
	
	
	<div id="archive">
	
	<div class="archive_title"><h3><?php echo get_option('op_30_recent_posts'); ?></h3></div> 
    <ul>
	
	<?php $archive_query = new WP_Query('showposts=30');  
        while ($archive_query->have_posts()) : $archive_query->the_post(); ?>  
		
        <li>  
		<?php if(has_post_thumbnail()) { ?>
		<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'post-thumbnails', false, '' ); $thumbnailSrc = $src[0]; ?>		
		
		<?php echo $post_format_image ?> 
		
        <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
		<?php $image = aq_resize( $thumbnailSrc, 150, 100, false); ?>
        <img src="<?php echo $image ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>"/>
		</a>
		
        <?php } else {} ?>
		
        <a class="arch_title" href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>  
       
	    <div class="post_meta_line">
		    <div class="post_time"><?php the_time('F j, Y'); ?></div> 
			<div class="post_cats"><?php
					$categories_string = '';
					foreach((get_the_category()) as $category) {
                    $category_term = $category->category_nicename . '';
					$categories_string .= '<a class="custom_cat_class '. $category_term .'" href="'.get_category_link( $category->term_id ).'" title="' . esc_attr( sprintf( __( "%s", 'my-text-domain' ), $category->name ) ) . '">'.$category->cat_name.'</a>';
	                } 
					$categories_string = trim($categories_string);
					echo $categories_string;
					?>
			</div> 
		   	<div class="post_views"><?php echo getPostViews(get_the_ID()); ?></div>	
		</div> 
	   
	   </li>  
    <?php endwhile; ?>  
    </ul>
	
    </div>
	
	<div class="clear"></div>