web/wp-content/themes/WNN-WP/index.php
changeset 1 0d28b7c10758
child 2 4f3e6ea1c867
equal deleted inserted replaced
0:0d9a58d2c515 1:0d28b7c10758
       
     1 <?php get_header(); ?>
       
     2 		<div id="left">
       
     3 			<div id="exctop">
       
     4 				<div id="info">
       
     5 					Welcome to WNN News, It is <?php echo date("F j, Y, g:i a"); ?>  
       
     6 				</div>
       
     7 				<div id="homepage">
       
     8 					Make WNN Your Home Page
       
     9 				</div>
       
    10 			</div>
       
    11 			<div id="exccontent">
       
    12 				<div id="excpost">
       
    13 					<?
       
    14 						if ($wnn_fimg) { ?>
       
    15 						<? echo "<img src=\"" . str_replace("\\", "", $wnn_fimg) . "\" width=\"267px\" />"; ?>
       
    16 						<? } else { ?>
       
    17 						<img src="<?php bloginfo('template_directory'); ?>/images/featuredimg.jpg" />
       
    18 					<? } ?>
       
    19 					<?php show_featured_post() ?>
       
    20 				</div>
       
    21 				<div id="recentposts">
       
    22 					<span id="h4">Latest News</span>
       
    23 					<ul><?php mdv_recent_posts(); ?></ul>
       
    24 				</div>
       
    25 				<div id="clear"></div>
       
    26 			</div>
       
    27 			<div id="adsfooter">
       
    28 				<? if ($wnn_ad_code) { ?>
       
    29 					<? echo str_replace("\\", "", $wnn_ad_code); ?>
       
    30 					<? } else { ?>
       
    31 					<a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/468x60.jpg" /></a>
       
    32 				<? } ?>
       
    33 			</div>
       
    34 		<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
       
    35 			<div id="post" title="post-<?php the_ID(); ?>">
       
    36 				<div id="postinfotop">
       
    37 					Posted at <?php the_time(); ?> <?php the_date(); ?> by <?php the_author() ?>
       
    38 				</div>
       
    39 				<div id="postcontent">
       
    40 					<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...)')); ?> 
       
    41 				</div>
       
    42 				<div id="postbottom">
       
    43 					Posted in <?php the_category(', ') ?> | <?php comments_popup_link('No Comments &#187;', '[1] Comment', '[%] Comments;'); ?>
       
    44 				</div>
       
    45 			</div>
       
    46 			<?php endwhile; ?>
       
    47 			<div class="navigation">
       
    48 				<?php posts_nav_link(); ?>
       
    49 			</div>
       
    50 			<?php else : ?>
       
    51 			<div id="post">
       
    52 				<h2><?php _e('Not Found'); ?></h2>
       
    53 			</div>
       
    54 				<?php endif; ?>
       
    55 			</div>
       
    56 <?php get_sidebar(); ?>
       
    57 <?php get_footer(); ?>
       
    58 	</div>
       
    59 </body>
       
    60 </html>