<?php 
/*
	
	FOOTER
	
	This file controls the ending HTML </body></html> and common graphical elements in your site footer.
	You can control what shows up where using WordPress and PageLines PHP conditionals
	
	This theme copyright (C) 2008-2010 PageLines
	
*/

// Deal with BuddyPress and BuddyPress Template Pack
if(pagelines_is_buddypress_page()):?>
		</div>
	</div>
<?php endif; ?>

<section class="bposts">
<ul>
<?php foreach(get_posts('numberposts=1&offset=0') as $key => $post): 
										setup_postdata($post);?>
<li><h5><a href="<?php echo get_permalink( $post->ID ); ?>"><span class="list-title"><?php echo $post->post_title; ?></span></a></h5>
<?php echo custom_trim_excerpt(get_the_excerpt(), 50); ?> <a href="<?php echo get_permalink( $post->ID ); ?>">Read More</a>
<?php endforeach;?></li></ul></section>

				</div> <!-- END #dynamic-content -->
                
                
					
				<div id="morefoot_area">
				<?php 
					do_action('pagelines_morefoot', 'morefoot'); // Hook 
				?>
				</div>
				<div class="clear"></div>
				
			</div> <!-- END #page-main from header -->
		</div> <!-- END #page-canvas from header -->
	</div> <!-- END #page from header -->

	<div  id="footer">
		<div class="outline fix">
			<?php do_action('pagelines_footer', 'footer'); // Hook ?>
			<div class="clear"></div>
		</div>
	</div>
</div>
<?php 
	print_pagelines_option('footerscripts'); // Load footer scripts option 	
	wp_footer(); // Hook (WordPress) 
?>

</body>
</html>