web/wp-content/themes/WNN-WP/index.php
author ymh <ymh.work@gmail.com>
Mon, 22 Mar 2010 16:36:28 +0100
changeset 5 ac511f1ccc8e
parent 2 4f3e6ea1c867
permissions -rw-r--r--
add hgignore

<?php get_header(); ?>
		<div id="left">
			<div id="exctop">
				<div id="info">
					Welcome to WNN News, It is <?php echo date("F j, Y, g:i a"); ?>  
				</div>
				<div id="homepage">
					Make WNN Your Home Page
				</div>
			</div>
			<div id="exccontent">
				<div id="excpost">
					php
						if ($wnn_fimg) { ?>
						<php echo "<img src=\"" . str_replace("\\", "", $wnn_fimg) . "\" width=\"267px\" />"; ?>
						<?php } else { ?>
						<img src="<?php bloginfo('template_directory'); ?>/images/featuredimg.jpg" />
					<?php } ?>
					<?php show_featured_post() ?>
				</div>
				<div id="recentposts">
					<span id="h4">Latest News</span>
					<ul><?php mdv_recent_posts(); ?></ul>
				</div>
				<div id="clear"></div>
			</div>
			<div id="adsfooter">
				<?php if ($wnn_ad_code) { ?>
					<?php echo str_replace("\\", "", $wnn_ad_code); ?>
					<?php } else { ?>
					<a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/468x60.jpg" /></a>
				<?php } ?>
			</div>
		<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
			<div id="post" title="post-<?php the_ID(); ?>">
				<div id="postinfotop">
					Posted at <?php the_time(); ?> <?php the_date(); ?> by <?php the_author() ?>
				</div>
				<div id="postcontent">
					<img src="<?php bloginfo('template_directory'); ?>/images/catimg.jpg" align="left" width="135px" height="135px" /><span id="h3"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></span><br /><?php the_excerpt(__('(more...)')); ?> 
				</div>
				<div id="postbottom">
					Posted in <?php the_category(', ') ?> | <?php comments_popup_link('No Comments &#187;', '[1] Comment', '[%] Comments;'); ?>
				</div>
			</div>
			<?php endwhile; ?>
			<div class="navigation">
				<?php posts_nav_link(); ?>
			</div>
			<?php else : ?>
			<div id="post">
				<h2><?php _e('Not Found'); ?></h2>
			</div>
				<?php endif; ?>
			</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
	</div>
</body>
</html>