<?php if (get_option('disable_blogticker', 1) == '1') : ?>

<!-- begin blog ticker -->
<div class="news clearfix">
	
		<!-- begin blog content -->
		<div class="news_content">
			
		
			<!-- begin blog items -->
			<div class="news_text">
				<div class="hot_news"><?php echo get_option("ticker_title", "HOT LASTEST BLOGS:"); ?></div>
				<span class="news_line"></span>
				<!-- begin items -->
				<div class="news_items">
			
					<ul id="news_ticker">
						<?php
						global $post;
						 
						$cat_id = get_option("ticker_category_id", 1);
						$item_limit = get_option("ticker_limit", 10);
						$myposts = get_posts('numberposts='.$item_limit.'&category='.$cat_id);
						$check = 0;
						foreach($myposts as $post) :
						setup_postdata($post);
						?>
						
						<li<?php if($check > 0){ echo " style=\"display:none;\""; } ?>><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
						
						<?php $check++; endforeach; ?>
					</ul>
				
				</div>
				<!-- end items -->
			
			</div>
			<!-- end blog item -->

		</div>
		<!-- end blog content -->
		
</div>
<!-- end blog ticker -->
<?php endif; ?>