!!!

%html{:lang => "fr", "xml:lang" => "fr", :xmlns => "http://www.w3.org/1999/xhtml"}
  %head
    %title=@title.to_s+" "
    
    
    %meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" }
    %meta{ :"name" => "Description", :content => @description }
    %meta{ :"name" => "Keywords", :content => @keywords }  
    

    = javascript_include_tag "public"
    
    = csrf_meta_tag 
    
    = stylesheet_link_tag 'public' 
    = stylesheet_link_tag '/fonts/Stylograph/stylesheet.css' 
    <script src="//use.typekit.net/twa3qoy.js"></script>
    <script>try{Typekit.load();}catch(e){}</script>
    
    =javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false&region=FR"
    
  %body

  
    -if flash[:error] or flash[:notice] or flash[:alert] 
      .flash
      
        =flash[:error]
        =flash[:notice]
        =flash[:alert]
    
    .top
      .main
        =link_to image_tag("/logo.png", :id => "logo"), "/"
      
        #menu
     
          -MenuItem.where(:parent_id => nil, :enabled => true, :visible => true).order(:position).each do |menu_item|
            -description = ""
            -description = menu_item.menu_content.description if menu_item.menu_content and menu_item.menu_content_type == "Page"
            =link_to sanitize("#{menu_item.name}"),menu_item_path(:url => menu_item.url), :class => menu_item.slug.to_s+"_menu"+(" active" if @menu_item and (@menu_item == menu_item or @menu_item.ancestors.include?(menu_item))).to_s
        
      .clear
          
    -if !(@menu_item and @menu_item.slug and @menu_item.slug == "index" )
      %p{:style => "height:80px;"}
      
    -if @menu_item and @menu_item.slug and @menu_item.slug == "index" 
      #slider_content
        =#{:style => "display:none"}
        <ul class="bxslider" data-ratio="2.2">
        <li><img src="http://localhost:3000/public_medias/image_file/file/8/large_large__mg_5709.jpg" title="Happy trees" /></li>
        <li><img src="http://localhost:3000/public_medias/image_file/file/13/large_large__mg_5632.jpg" title="Funky roots" /></li>
        <li><img src="http://localhost:3000/public_medias/image_file/file/12/large_large__mg_5858.jpg" title="The long and winding road" /></li>
      
        </ul>
    
    #main
    
      #corps{:class => (@menu_item.slug if @menu_item)}
        
        
        -if @menu_item and @menu_item.slug and @menu_item.slug == "index" 
          =render Article.before(Date.today).recents.first
          =link_to "tout les articles >", "/blog.html", :class => "articles_button"
          
        =yield
      #sidebar
        =render Event.recents.limit(2)
        
        =yield :sidebar
      
      .clear
       
      
      .bottom
        Association Photographie Hors Piste - Design Fabrice Aubriet / Nicolas Bally - Site mis à jour par Fabrice Aubriet
        
        =link_to image_tag("/nb.png"), "http://nicolasbally.com", :target => "_blank"
    

    

    
    
  

