-if @m_odr -@title = @m_odr.name -@description = @m_odr.description -@products_controllers = ["ProductOrdersController", "ProductsController","ProductCategoriesController", "ProductCustomersController", "ProductCustomersAuthsController" ] -@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","" %html{:lang => "fr", "xml:lang" => "fr", :xmlns => "http://www.w3.org/1999/xhtml"} %head -@title = strip_tags(@title.to_s) %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 } =raw '' =raw '' =raw '' =raw '' =raw '' =raw '' =raw '' =raw '' -if @facebook_img =raw '' =raw '' =raw '' =raw '' -@img_size = FastImage.size('https://offres.market-inn.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 %body -if flash[:error] or flash[:notice] or flash[:alert] .flashs -if flash[:error] .error %span.remove=ic :times =flash[:error] -if flash[:notice] .notice %span.remove=ic :times =flash[:notice] -if flash[:alert] .alert %span.remove=ic :times =flash[:alert] -if @m_odr =render :partial => "public/shared/social_ressource", :locals => {:social_ressource => @m_odr} %br %br -if @m_odr.logo_image_file =image_tag @m_odr.logo_image_file.file.url, :class => "odr_logo", :style => (@m_odr.logo_image_file_width? ? "max-width:#{@m_odr.logo_image_file_width}px;margin:auto;": "") -if @m_odr.banner_image_file =image_tag @m_odr.banner_image_file.file.url, :class => "odr_banner", :style => (@m_odr.banner_image_file_width? ? "max-width:#{@m_odr.banner_image_file_width}px;margin:auto;margin-bottom:40px;": "") -background = (@m_odr.background_image_file ? @m_odr.background_image_file.file.url : "") :scss body{ background:url('#{background}') fixed; background-size:100%; background-size: cover; } .odr_logo,.odr_banner{ width:90%; display:block; margin:auto; } =yield -if @m_odr :scss #odr_form{ max-width:800px; margin:auto; width:90%; } .conditions{ max-width:800px; margin:auto; width:90%; font-size:0.9em; text-align:center; margin-top:10px; margin-bottom:100px; } .form_pannel{ background:rgba(white,0.8); padding:10px 20px; margin:10px 0; box-shadow:0 0 15px rgba(0,0,0,0.1); } -if @m_odr.footer_image_file -if @m_odr.footer_image_link? =link_to image_tag(@m_odr.footer_image_file.file.url, :class => "odr_banner", :style => (@m_odr.footer_image_width? ? "max-width:#{@m_odr.footer_image_width}px;margin:auto;margin-top:50px;": "")), @m_odr.footer_image_link, :target => "_blank" -else =image_tag(@m_odr.footer_image_file.file.url, :class => "odr_banner", :style => (@m_odr.footer_image_width? ? "max-width:#{@m_odr.footer_image_width}px;margin:auto;": "")) -if @m_odr.conditions .conditions{:style => "text-align:justify;font-size: 0.75em;"}=simple_format @m_odr.conditions :javascript resize()