All pastes #1882298 Raw Edit

index

public php v1 · immutable
#1882298 ·published 2010-06-13 16:20 UTC
rendered paste body
<?php get_header(); ?><!-- Left // --><div class="left">	<?php if (have_posts()) : ?>		<!-- Latest Articles // -->		<span class="heading"><span><?php echo get_query_var('paged') ? 'Latest Articles - Page '.get_query_var('paged') : 'Latest Articles'; ?></span></span>		<ul class="articles">		<?php while (have_posts()) : the_post(); ?>			<li id="post-<?php the_ID(); ?>">					<span class="cats">Filed under: <?php the_category(', ') ?></span>				<a class="title" href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>				<span class="pinfo">by <?php the_author_posts_link() ?> on <?php the_time('M jS, Y'); ?></span>				<?php if(get_post_meta($post->ID, "thumbnail", true) && (get_wpn_config('article_show_thumbnail_home') == 1 || !get_wpn_config('article_show_thumbnail_home'))) : ?>					<img class="thumbnail" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" />				<?php endif; ?>				<div class="excerpt">					<?php					if(get_wpn_config('article_split_method') == 1 || !get_wpn_config('article_split_method')) {						wpn_content_limit(get_the_content(),450);					}					else {						the_content('');					}					?>				</div>				<span class="plinks">					<a class="more sprite" href="<?php the_permalink(); ?>">Read More &raquo;</a>					<span>						<a href="#">Tags <img src="<?php bloginfo('stylesheet_directory'); ?>/img/spacer.gif" class="arrow-down sprite" /></a>						<ul class="tags">						<?php if(has_tag()) : ?>							<?php the_tags('<li>','</li><li>','</li>'); ?>						<?php else: ?>							<li>No Tags</li>						<?php endif; ?>						</ul>					</span>					<span>						<a href="#">Share <img src="<?php bloginfo('stylesheet_directory'); ?>/img/spacer.gif" class="arrow-down sprite" /></a>						<ul>							<li><img src="<?php bloginfo('stylesheet_directory'); ?>/img/icon_delicious.png" alt="" /><a href="http://del.icio.us/post?url=<?php the_permalink(); ?>&amp;title=<?php the_title_attribute(); ?>">Delic.io.us</a></li>							<li><img src="<?php bloginfo('stylesheet_directory'); ?>/img/icon_digg.png" alt="" /><a href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink(); ?>&amp;title=<?php the_title_attribute(); ?>">Digg</a></li>							<li><img src="<?php bloginfo('stylesheet_directory'); ?>/img/icon_facebook.png" alt="" /><a href="http://www.facebook.com/share.php?u=<?php the_permalink(); ?>">Facebook</a></li>							<li><img src="<?php bloginfo('stylesheet_directory'); ?>/img/icon_newsvine.png" alt="" /><a href="http://www.newsvine.com/_wine/save?u=<?php the_permalink(); ?>&amp;h=<?php the_title_attribute(); ?>">Newsvine</a></li>							<li><img src="<?php bloginfo('stylesheet_directory'); ?>/img/icon_reddit.png" alt="" /><a href="http://reddit.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title_attribute(); ?>">Reddit</a></li>							<li><img src="<?php bloginfo('stylesheet_directory'); ?>/img/icon_stumbleupon.png" alt="" /><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title_attribute(); ?>">StumbleUpon</a></li>							<li><img src="<?php bloginfo('stylesheet_directory'); ?>/img/icon_twitter.png" alt="" /><a href="http://twitter.com/home?status=<?php the_title_attribute(); ?> - <?php the_permalink(); ?>">Twitter</a></li>						</ul>					</span>					<span><a href="<?php the_permalink() ?>#comments">Comments</a> (<?php comments_number(__('0'), __('1'), __('%')); ?>)</span>				</span>			</li>		<?php endwhile; ?>		</ul>		<!-- // News List -->				<!-- Page Navigation -->		<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>				<?php $cats = explode(',',get_wpn_config('ma_filter')); if(!get_query_var('paged') && get_wpn_config('ma_display') == 2 && get_wpn_config('ma_filter') && count($cats) > 0) : ?>		<!-- More Articles -->		<ul class="morearticles">			<?php foreach($cats as $cat) : ?>				<li>					<span class="heading2"><a href="<?php echo get_category_link($cat); ?>">More &raquo;</a><?php echo get_cat_name($cat); ?></span>					<?php $latesta = new WP_Query("cat=".$cat."&showposts=1"); while($latesta->have_posts()) : $latesta->the_post();?>						<div class="preview">							<?php if(get_post_meta($post->ID, "thumbnail", true)) : ?>								<img class="thumbnail" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" />							<?php endif; ?>							<a class="title" href="<?php the_permalink(); ?>"><?php wpn_content_limit(get_the_title(),28); ?></a>							<div class="excerpt">								<?php wpn_content_limit(get_the_content(),75); ?>							</div>						</div>					<?php endwhile; ?>					<?php $morea = new WP_Query("cat=".$cat."&showposts=3&offset=1"); if($morea->have_posts()) : ?>						<strong>More from <?php echo get_cat_name($cat); ?>:</strong>						<ul>						<?php while($morea->have_posts()) : $morea->the_post(); ?>							<li><a href="<?php the_permalink(); ?>"><?php wpn_content_limit(get_the_title(),45); ?></a></li>						<?php endwhile; ?>						</ul>					<?php endif; ?>				</li>			<?php endforeach; ?>		</ul>		<!-- // More Articles -->		<?php endif; ?>			<!-- 404 Error -->	<?php else : include ('editable/404/404-error.php'); endif; ?>	<div class="wpn_clear"></div></div><!-- // Left --><?php get_sidebar(); ?><?php get_footer(); ?>