web/wp-content/themes/WNN-WP/index.php
changeset 2 4f3e6ea1c867
parent 1 0d28b7c10758
equal deleted inserted replaced
1:0d28b7c10758 2:4f3e6ea1c867
     8 					Make WNN Your Home Page
     8 					Make WNN Your Home Page
     9 				</div>
     9 				</div>
    10 			</div>
    10 			</div>
    11 			<div id="exccontent">
    11 			<div id="exccontent">
    12 				<div id="excpost">
    12 				<div id="excpost">
    13 					<?
    13 					php
    14 						if ($wnn_fimg) { ?>
    14 						if ($wnn_fimg) { ?>
    15 						<? echo "<img src=\"" . str_replace("\\", "", $wnn_fimg) . "\" width=\"267px\" />"; ?>
    15 						<php echo "<img src=\"" . str_replace("\\", "", $wnn_fimg) . "\" width=\"267px\" />"; ?>
    16 						<? } else { ?>
    16 						<?php } else { ?>
    17 						<img src="<?php bloginfo('template_directory'); ?>/images/featuredimg.jpg" />
    17 						<img src="<?php bloginfo('template_directory'); ?>/images/featuredimg.jpg" />
    18 					<? } ?>
    18 					<?php } ?>
    19 					<?php show_featured_post() ?>
    19 					<?php show_featured_post() ?>
    20 				</div>
    20 				</div>
    21 				<div id="recentposts">
    21 				<div id="recentposts">
    22 					<span id="h4">Latest News</span>
    22 					<span id="h4">Latest News</span>
    23 					<ul><?php mdv_recent_posts(); ?></ul>
    23 					<ul><?php mdv_recent_posts(); ?></ul>
    24 				</div>
    24 				</div>
    25 				<div id="clear"></div>
    25 				<div id="clear"></div>
    26 			</div>
    26 			</div>
    27 			<div id="adsfooter">
    27 			<div id="adsfooter">
    28 				<? if ($wnn_ad_code) { ?>
    28 				<?php if ($wnn_ad_code) { ?>
    29 					<? echo str_replace("\\", "", $wnn_ad_code); ?>
    29 					<?php echo str_replace("\\", "", $wnn_ad_code); ?>
    30 					<? } else { ?>
    30 					<?php } else { ?>
    31 					<a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/468x60.jpg" /></a>
    31 					<a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/468x60.jpg" /></a>
    32 				<? } ?>
    32 				<?php } ?>
    33 			</div>
    33 			</div>
    34 		<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
    34 		<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
    35 			<div id="post" title="post-<?php the_ID(); ?>">
    35 			<div id="post" title="post-<?php the_ID(); ?>">
    36 				<div id="postinfotop">
    36 				<div id="postinfotop">
    37 					Posted at <?php the_time(); ?> <?php the_date(); ?> by <?php the_author() ?>
    37 					Posted at <?php the_time(); ?> <?php the_date(); ?> by <?php the_author() ?>