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