web/wp-content/themes/newsworthy/single.php
changeset 1 0d28b7c10758
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/newsworthy/single.php	Fri Mar 12 13:29:04 2010 +0000
@@ -0,0 +1,51 @@
+<?php get_header(); ?>
+<?php get_sidebar(); ?>
+<div id="main">
+<div id="left">
+	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+	<div class="post">
+		<div class="middle">
+			<div class="box">
+				<h3>Share This</h3>
+				<ul class="links half">
+					<li><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title_attribute(); ?>">StumbleUpon</a></li>
+				<li><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&amp;t=<?php the_title_attribute(); ?>">Facebook</a></li>
+				<li><a href="http://twitter.com/home?status=<?php the_permalink(); ?>">Twitter</a></li>
+<li><a href="http://delicious.com/post?url=<?php the_permalink(); ?>&amp;title=<?php the_title_attribute(); ?>">Delicious</a></li>
+				</ul>
+			</div>
+<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Single Middle") ) : ?>
+		<img class="banner" src="<?php bloginfo('template_url'); ?>/images/banner.jpg" alt="125x125 Banner" />
+		<div class="box">
+			<p>Vivamus volutpat consectetuer nisl. Vivamus et est. Pellentesque eget purus et dui fringilla tempor. Nullam ac odio quis leo bibendum blandit. Aenean fermentum sodales augue. Cras egestas libero. Phasellus vel nisi eget sem pellentesque volutpat. </p>
+		</div>
+<?php endif; ?>
+	</div>
+
+		<h1><?php the_title(); ?></h1>
+		<div class="author">Posted by <?php the_author(); ?> on <?php the_time('F jS, Y'); ?></div>
+		<?php if(get_post_meta($post->ID, "newsworthy_image_value", $single = true) != "") { ?><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, "newsworthy_image_value", $single = true); ?>&amp;h=207&amp;w=450&amp;zc=1 ?>" alt="<?php the_title_attribute(); ?>" /><?php } ?>
+		<?php the_content(); ?>
+
+<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
+
+<?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
+
+	<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
+
+		<div class="postmeta"><a class="comments" href="<?php comments_link(); ?>"><?php comments_number(); ?></a><span class="category">Filed under: <?php the_category(', ') ?></span><br /></div>
+
+<?php comments_template(); ?>
+					
+	</div>
+<?php endwhile; ?>
+
+<?php else : ?>
+
+<?php endif; ?>
+
+</div>
+<div class="clearer">&nbsp;</div>
+</div>
+
+<?php get_footer(); ?>
\ No newline at end of file