-if !@facebook_img or @facebook_img == "" -@facebook_img= "/.jpg" !!! -if @description and @description == "" - @description = "" %html{:lang => "fr", "xml:lang" => "fr", :xmlns => "http://www.w3.org/1999/xhtml"} %head %title -if @product_category_lang =@product_category_lang.name -if @product_lang =@product_lang.title =@title.to_s+" - Vitascreen" %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 =render :partial => "public/shared/ga" = stylesheet_link_tag 'public' = stylesheet_link_tag '/fonts/Advent/stylesheet.css' =javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false®ion=FR" %body #cat_menu_overflow{:style => "display:none;"} #cat_menu .inner =link_to i(:times), "#", :class => "menu_hide" =#link_to i(:user), "#", :class => "account_link" =render :partial => "public/shared/cat_menu" %hr -if current_product_customer =link_to ic(:"power-off"), logout_public_product_customers_auths_path, :style => "display:inline-block;" =current_product_customer.email #header{:style => "background-image:url('#{@image_bandeau}');"+("min-height:400px;"if @image_bandeau).to_s} .top_bar =link_to image_tag("/logo.png", :id => "logo"), "/"+@lang.slug+"/index.html" =link_to image_tag("/logo_min.png", :id => "logo_min"), "/"+@lang.slug+"/index.html" -ProductCategory.where("parent_id is null").joins(:product_category_langs).where("product_category_langs.lang = ?", 'fr').order("position").limit(10).each do |product_category| =link_to product_category.lang(I18n.locale).name, public_product_category_path(:id => product_category.id, :slug => product_category.lang(I18n.locale).slug), :class => "cat_link"+(" active" if @product_category and product_category.id == @product_category.id).to_s if product_category.lang(I18n.locale).slug? .top_right %span#cart_infos =render :partial => "public/shared/cart"     =link_to i(:user), "/public/my_account/index" -if flash[:error] or flash[:notice] or flash[:alert] .flash =flash[:error] =flash[:notice] =flash[:alert] -if 1 == 2 -if @menu_item %ul -@menu_item.menu_item_langs.each do |menu_item_lang| %li=link_to menu_item_lang.lang_site.slug, menu_item_path(:url => menu_item_lang.permalink, :lang => menu_item_lang.lang_site.slug), :class => ("active" if menu_item_lang.lang_site == @lang) -if @articles %ul -LangSite.all.each do |lang_site| %li=link_to lang_site.slug, articles_path(:lang => lang_site.slug) -if @article %ul -@article.lang_articles.each do |lang_article| %li=link_to lang_article.lang_site.slug, article_path(:slug => lang_article.slug, :lang => lang_article.lang_site.slug), :class => ("active" if lang_article.lang_site == @lang) #main{:class => (@menu_item.slug if @menu_item)} -# #home_slider -# .flexslider -# -# %ul.slides -# -@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.each do |home_slider_slide| -# -if home_slider_slide.image_file -# -# %li -# -if home_slider_slide.url? -# =link_to image_tag(home_slider_slide.image_file.file.url), home_slider_slide.url -# -else -# =image_tag(home_slider_slide.image_file.file.url) :javascript $(window).load(function(){ $('.flexslider').flexslider({ animation: "slide", slideshowSpeed: 4500, animationSpeed: 2000, start: function(slider){ $('body').removeClass('loading'); } }); }); =yield =yield :bandeau -if @menu_item and @menu_item.id == 1 .center.padding.row =render :partial => "public/product_categories/bandeau",:collection => ProductCategory.where(parent_id: nil).order(:position), :as => :product_category .clear #var{:style => "position:fixed;bottom:0;right:0;z-index:100;color:white;display:none;"} #footer .contact %ul.footer-menu -MenuItem.where(:parent_id => nil, :menu_id => Menu.first.id).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 =menu_item_link(menu_item) .social-links .top_link =i(:"arrow-circle-o-up") %br =#link_to "https://www.facebook.com/sharer/sharer.php?u=#{request.url}", :target => "_blank", :class => "link facebook" do =#i(:"facebook") =link_to "https://www.facebook.com/vitascreen/", :target => "_blank", :class => "link" do =i(:facebook)