-@facebook_title = @facebook_title || @title - @twitter_title = @twitter_title || @title -@menu_shadow=true -@lang = @lang || LangSite.first -if !@facebook_img or @facebook_img == "" -@facebook_img= "" !!! - @social_url = @social_url || request.url.to_s -if @description and @description == "" - @description = qit "SEO texte description par défaut 2","" %html{:lang => "fr", "xml:lang" => "fr", :xmlns => "http://www.w3.org/1999/xhtml"} %head -@title = strip_tags(@title.to_s) %title "Transformeurs -" =@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 } -if @facebook_img =raw '' =raw '' =raw '' =raw '' -@img_size = FastImage.size('http://transformeurs.fr'+@facebook_img.to_s) -if @img_size and @img_size.size > 0 =raw '' =raw '' = javascript_include_tag "public" = csrf_meta_tag =render :partial => "public/shared/ga" = stylesheet_link_tag 'public', :media => :all =javascript_include_tag "https://maps.googleapis.com/maps/api/js?libraries=places,geometry&sensor=false" %body #menu_top_container #menu_top =link_to image_tag("/logo-transformeurs.png", :id => "logo_fond"), "/" .sub_menu =render :partial => "public/shared/second_menu" .menu =render :partial => "public/shared/first_menu" -if @menu_item and @menu_item.id == 1 .slide_home_wrapper .slide_home.slider -@home_slider = HomeSlider.find_by_slug("home") -@date = Time.now -if @home_slider -@home_slides_simu = @home_slider.home_slider_slides.where(:enabled => true) -@home_slides_simu = @home_slides_simu.where("start_at IS NULL or start_at <= ?",@date) -@home_slides_simu = @home_slides_simu.where("end_at IS NULL or end_at >= ?",@date) -@home_slides_simu = @home_slides_simu.order(:position) -@home_slides_simu = @home_slides_simu.joins(:lang_sites).where("lang_sites.id = ?", @lang.id) -@home_slides_simu.each do |home_slider_slide| -if home_slider_slide.image_file %div.with_ratio.slide{:style => "background-image:url('#{home_slider_slide.image_file.file.large.url}');background-size:100%;background-size:cover;", :data => {:ratio => 0.45}} =link_to home_slider_slide.url.to_s, :target => ("_blank") do .link_overlay .description.vertical_center =link_to home_slider_slide.url.to_s, :target => ("_blank" ) do -if home_slider_slide.titre1? %h3=home_slider_slide.titre1 .content =home_slider_slide.description1 :javascript $(document).ready(function(){ $('.slider').bxSlider({ nextText: '>', prevText: '<', auto: true }); }); -else .slide_home_wrapper.with_ratio{:style => "background-image:url('#{@img_url}');", :data => {:ratio => 0.35}} -if (@menu_item or @article) and @title .gradient %h1=@title -if @menu_item and @menu_item.id == 1 #actus .center %h2 Sur notre %strong blog #left_actus -@articles = Article.before(Time.now).recents.joins(:lang_articles).where("lang_articles.enabled = 1 and lang_articles.lang_site_id = ?", @lang.id).limit(6) =render @articles[0] #right_actus -@articles[1..6].each do |article| -lang_article = article.lang_articles.find_by_lang_site_id(@lang.id) =link_to article_path(:slug => lang_article.slug, :lang => @lang.slug), :style => "text-decoration:none;" do %div{:class => "breve"} =l (article.published_at), :format => "%d %b" ="-" = lang_article.title .clear -if @menu_item and @menu_item.id == 1 #main=yield -else #main_content=yield #sub_footer #logos #place %p Transformeurs SAS %br Chemin de Boistray %br 69830 St Georges de Reneins #contacts %p =ic :phone +33(0) 622 806 153 %br =link_to "mailto:ec@charra.eu" do =ic :"envelope-o" ec@charra.eu %br %br .clear :javascript resize()