!!!

%html{:lang => "fr", "xml:lang" => "fr", :xmlns => "http://www.w3.org/1999/xhtml"}
  %head
    %title=@title.to_s+" "
    
    %meta{:name=>"viewport", :content=>"width=device-width,initial-scale=1"}
    %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
      
      #menu
        
      
        
        %ul
          -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"
            %li=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
            
        =link_to image_tag("/logo.png", :id => "logo"), "/"
      
      #sub_menu
        =yield :sub_menu
    
      %h1 Communiquer, simplifier, valoriser votre activité.
      %h2 
        Créer Simple.
        
        =image_tag "/arrow-down.png", :class => "floating "

    #main
      -if 0==1
        .logo{:style => "height:200px;margin:auto;display:block;"}
          =image_tag "/logo-3.png", :style => "margin:auto;display:block;height:100%"
        
      =yield
      
    .bottom
      
      
      =link_to image_tag("/nb.png"), "http://nicolasbally.com", :target => "_blank"
  

    

    
    
  

