!!!

%html{:lang => "fr", "xml:lang" => "fr", :xmlns => "http://www.w3.org/1999/xhtml"}
  %head
    %title Négos



    %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 }
    =#<script type="text/javascript" =#src="https://maps.googleapis.com/maps/api/js?libraries=places&key=AIzaSyDSm3YlFVyeEa6KBPmRRkiylbd-xTl-dkQ">
    =#</script>

    = javascript_include_tag "public"


    = csrf_meta_tag
    =#render :partial => "public/shared/ga"

    = stylesheet_link_tag 'public'
    = stylesheet_link_tag '/fonts/Stylograph/stylesheet.css'
    <link href="https://fonts.googleapis.com/css?family=Lato:400,400i,700,700i" rel="stylesheet">

    =javascript_include_tag "https://maps.googleapis.com/maps/api/js?libraries=places&amp;sensor=false"



  %body{:class => ("reseaux_body " if @reseaux_layout).to_s, :style => ("background:#f8f8f8 url('/fond-accueil.jpg') center center;background-size:100%;background-size:cover;" if @my_reseauxes).to_s }

    

    .top
      

      #menu


        =render :partial => "public/shared/menu"
        .clear
      
      -if @reseaux_layout
        =link_to image_tag("/logo-mb.png", :id => "logo-mb"), public_my_reseauxes_path
      -if !@my_reseauxes
        -if @reseaux_layout
          =link_to public_reseaux_products_path(:reseaux_id => session[:reseaux_id].to_i) do
            .reseaux_top.with_ratio{:data => {:ratio => "0.2"},:style => "background-image:url('"+(@reseaux.background_image_file.file.large.url if @reseaux.background_image_file).to_s+"');"}
          
              =image_tag @reseaux.logo_image_file.file.large.url, :class => "logo_reseaux" if @reseaux.logo_image_file
          
    
        -else
          -if @biglogo
            =link_to image_tag("/logo.png", :id => "big-logo"), "/"
          -else
            =link_to image_tag("/logo.png", :id => "logo"), "/"
          .clear{:style => "height:1px;"}
    =render :partial => "public/shared/sub_menu"   
    
    
    #main
      
          
          
      =yield
      -if !@my_reseauxes
        .footer
          =link_to "A propos", "http://negos.pro/negos-a-propos.html", :target => "_blank"
          &nbsp;&nbsp;
          ="-"
          &nbsp;&nbsp;
          =link_to "CGU", "http://negos.pro/negos-conditions-generales-dutilisation.html", :target => "_blank"
          &nbsp;&nbsp;
          ="-"
          &nbsp;&nbsp;
          =link_to "Mentions légales", "http://negos.pro/negos-mentions-legales.html", :target => "_blank"
          &nbsp;&nbsp;
          ="-"
          &nbsp;&nbsp;
          =link_to "http://quartz.xyz", :target => "_blank" do
            .quartz
              =image_tag "/logo-quartz.png"
              Développement Quartz Agence
      
        .clear
      -if @my_reseauxes
        .reseauxes_home_video{:style => "position:absolute;bottom:10px;right:10px;"}=link_to ic(:"youtube-play")+"  Présentation Négos","", :class => "btn negos-video"
      
    .clear
    =#render :partial => "public/shared/bottom"
    
  
        
    #flashs= bootstrap_flash

    -if flash[:read_video] and false
      :javascript
         $(document).ready(function() {
            $.magnificPopup.open({
              items: {
                src: 'http://www.youtube.com/watch?v=0uf7X-fcu1o'
              },
              type:'iframe',
              iframe: {
              markup: '<div class="mfp-iframe-scaler">'+'<div class="mfp-close"></div>'+'<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+'</div>',
                patterns: {
                  youtube: {
                    index: 'youtube.com/',
                    id: 'v=',
                    src: '//www.youtube.com/embed/%id%?autoplay=1'
                  }
                },
                srcAction: 'iframe_src',
              }
            });
         });




    :javascript
      $(document).ready(function() {

        $('.negos-video').magnificPopup({
          items: {
            src: 'http://www.youtube.com/watch?v=0uf7X-fcu1o'
          },
          type:'iframe',
          iframe: {
          markup: '<div class="mfp-iframe-scaler">'+'<div class="mfp-close"></div>'+'<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+'</div>',
            patterns: {
              youtube: {
                index: 'youtube.com/',
                id: 'v=',
                src: '//www.youtube.com/embed/%id%?autoplay=1'
              }
            },
            srcAction: 'iframe_src',
          }
        });
      });
