<?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */

get_header();
?>
<script type="text/javascript" charset="utf-8">
						$(document).ready(function(){					
							$(".post_description a[rel^='prettyPhoto']").prettyPhoto({
								animation_speed:'normal',
								overlay_gallery: false, 
								social_tools: false
							});
						});
</script>	
<div class="row">
			<!-- Wide Column -->
			<div class="twelve columns">
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		
		<div class="edit-post"><?php edit_post_link(__('Modifier cet article')); ?></div>
		
			<h2 class="post-title"><?php the_title(); ?></h2>
			<!-- reseaux sociaux -->
             <?php  include (TEMPLATEPATH .'/inc/share_post.php'); ?>   <br />  

                <!-- reseaux sociaux -->
			<div class="post_description">
				<?php the_content(); ?>
			
            </div>
            
            <div class="contact-annonceur">
<h2>Contacter l'annonceur</h2>
                 <?php if( get_post_meta($post->ID, "rating", true) ): ?>
                 <?php if ( is_user_logged_in() ) { ?>
				<p class="msg-connect"><?php echo get_post_meta($post->ID, "rating", true); ?></p>
                
               <?php } else {
    			echo '<div class="msg-contact">Vous devez &ecirc;tre connect&eacute; pour contacter l&acute;annonceur </div>';
				
				}
				 endif; ?>
                </div>
<div class="clear"></div>            
            <div class="navigation">
			<div class="alignleft"><?php previous_post_link( '%link', '&laquo; Annonce Precedente' ) ?></div>
			<div class="alignright"><?php next_post_link( '%link', 'Annonce Suivante &raquo;' ) ?></div>
		</div>

<div class="clear"></div>
            <?php  // comments_template(); ?>
            
           
		

	<?php endwhile; else: ?>
    <?php endif; ?>

   

	</div>
    
<?php  get_sidebar(); ?>
    </div>
    </div>
 
   <div class="clear"></div>
<?php get_footer(); ?>
