<?php get_header(); ?>

    <?php  get_template_part('parts/topimage'); ?>
  
  <div id="main">
	<div class="container">
  
    <h1 class="page-title"><?php the_title() ?></h1>
    	
     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	            
                  <div class="content clearfix">  
           
            <?php if(has_post_thumbnail())  { ?>
        <?php if(get_the_lang() == 'he') {?>
           <div class="single-img alignleft">
           <?php } else { ?>
            <div class="single-img alignright">
           <?php } ?>
              
           <img src="<?php the_post_thumbnail_url ('large'); ?>" alt="<?php echo getalt() ?>" />
           
         </div>
         <?php } ?>
                  
                         <div class="entry">
                         
						 <?php the_content(); ?>
                         </div><!--entry-->
      
        </div><!--content-->
           
        
<?php endwhile;
		endif;
			?>
        
 		
     </div><!--container-->   
</div><!--main-->
	 
  
    
    
<?php get_footer(); ?>