web/wp-content/themes/WNN-WP/index.php
changeset 1 0d28b7c10758
child 2 4f3e6ea1c867
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/WNN-WP/index.php	Fri Mar 12 13:29:04 2010 +0000
@@ -0,0 +1,60 @@
+<?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">
+					<?
+						if ($wnn_fimg) { ?>
+						<? echo "<img src=\"" . str_replace("\\", "", $wnn_fimg) . "\" width=\"267px\" />"; ?>
+						<? } else { ?>
+						<img src="<?php bloginfo('template_directory'); ?>/images/featuredimg.jpg" />
+					<? } ?>
+					<?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">
+				<? if ($wnn_ad_code) { ?>
+					<? echo str_replace("\\", "", $wnn_ad_code); ?>
+					<? } else { ?>
+					<a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/468x60.jpg" /></a>
+				<? } ?>
+			</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>
\ No newline at end of file