wide

Send Snippet To: Save this snippet to Code Collector Pro -- view all maeghan's snippets
language: PHP
license: GPL 2

Code for Snippet:

                
<?php
/*
Template Name: wide
*/
?>
 
<?php get_header(); ?>
  <div class="container span-24 last" id="main">
  <div class="span-24 box" id="content">    
	<?php if (have_posts()) : ?>
	<?php $i == 0; ?>
		<?php while (have_posts()) : the_post(); $i++; ?>
			<div <?php if(function_exists('post_class')) : ?><?php post_class(); ?><?php else : ?>class="post post-<?php the_ID(); ?>"<?php endif; ?>>
				<h3 class="entry"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
				<div class="entry" id="post">
					<?php include (TEMPLATEPATH . '/apps/video.php'); ?>
				<p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'small' ); ?></a></p>
				<div class="clear"></div>			
					<?php the_content(); ?>
				</div>
				<div class="clear"></div>
				<p class="postmetadata"><?php the_time('M d, Y') ?> | Categories: <?php if (the_category(', '))  the_category(); ?> <?php if (get_the_tags()) the_tags('| Tags: '); ?> | <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('Edit', '| ', ''); ?> </p>
				<div class="nav prev left"><?php next_post_link('%link', '&larr;', TRUE); ?></div>
				<div class="nav next right"><?php previous_post_link('%link', '&rarr;', TRUE); ?></div>
			</div>
		<div class="clear"></div>
		<?php endwhile; ?>
<div class="column span-23 first">
<h2><div class="nav prev left"><?php next_post_link('%link', '&larr;', TRUE); ?></div></h2>
</div>
<div class="column span-1 last">
<h2><div class="nav next right"><?php previous_post_link('%link', '&rarr;', TRUE); ?></div></h2>
</div>
<div class="clear"></div>
	<?php else : ?>
		<h3 class="center">Not Found</h3>
		<p class="center">Sorry, but you are looking for something that isn't here.</p>
		<?php get_search_form(); ?>
	<?php endif; ?>
	<?php $i == 0; ?>
</div>  
</div> <!-- /main -->
</div> <!-- /container -->
<!-- The main column ends  -->
<?php get_footer(); ?>
comments powered by Disqus

Info

Tags: SocialMe Wordpress

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 686
Date Added: 2009-03-26 00:29:56
Last Modified: 0000-00-00 00:00:00

Web Analytics