!!! %html{:xmlns=>"http://www.w3.org/1999/xhtml", :"xml:lang"=>"fr", :lang=>"fr"} %head %title= "Ballalama - "+ @title.to_s+" " %meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" } %meta{ :"name" => "Description", :content => @description || ""} %meta{ :"name" => "Keywords", :content => @keywords || "" } %meta{ :"name" => "viewport", :content => "width=device-width, initial-scale=1.0" } = csrf_meta_tag = stylesheet_link_tag 'public' = stylesheet_link_tag '/fonts/OpenSans/stylesheet.css' = stylesheet_link_tag '/fonts/Stylograph/stylesheet.css' = javascript_include_tag "application" =render :partial => "public/shared/ga" =javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false®ion=FR" %body #main_center %a{:id => "top_anchor"} #top_band =link_to image_tag( "/logo.png", :id => "logo", :alt => "", :style => ""), "/" .clear .slider_container .slider .slides %ul.slides-container %li =image_tag "/slide1.jpg" %li =image_tag "/slide2.jpg" %li =image_tag "/slide3.jpg" =raw "" #menu-top #menu =link_to image_tag( "/logo.png", :class => "logo", :alt => ""), "/" =render(:partial => "public/shared/first_menu") .clear -if @menu_item -if @menu_item.parent_id -if @menu_item.ancestors.reverse[0] -first_level_menu = @menu_item.ancestors.reverse[0] -else -first_level_menu = @menu_item -if first_level_menu.children.size > 0 #sidebar #menu_left.widget %h3=menu_item_link(first_level_menu) %ul -first_level_menu.children.order(:position).each do |menu_item| -menu_item_lang = menu_item.menu_item_langs.find_by_lang_site_id(@lang.id) -if menu_item_lang.enabled == true and menu_item_lang.visible == true %li -if @ancestor_1 -if @ancestor_1 == menu_item =menu_item_link(menu_item, true) -else =menu_item_link(menu_item, false) -else =menu_item_link(menu_item) -if menu_item.children.size > 0 %ul -menu_item.children.order(:position).each do |menu_item| -menu_item_lang = menu_item.menu_item_langs.find_by_lang_site_id(@lang.id) -if menu_item_lang.enabled == true and menu_item_lang.visible == true %li -if @ancestor_1 -if @ancestor_1 == menu_item =menu_item_link(menu_item, true) -else =menu_item_link(menu_item, false) -else =menu_item_link(menu_item) #body{:class => ("with_sidebar" if first_level_menu and first_level_menu.children.size > 0)} =yield .clear -if @menu_item and @menu_item.id == 1 #big_menu_links -i = 0 -BigMenu.all.each do |big_menu| -i += 1 %h3{:data => {:big_menu => i}, :class => ("active" if i == 1)} =big_menu.name #big_menu -i = 0 -BigMenu.all.each do |big_menu| -i += 1 .big_menu#big_menu{:id => i, :style => ("display:block;" if i == 1)} .img =image_tag big_menu.image_file.file.large.medium.url if big_menu.image_file .content %ul -big_menu.big_menu_items.order(:position).each do |big_menu_item| %li=link_to big_menu_item.name, big_menu_item.cible.cible_url(LangSite.first) if big_menu_item.cible .clear :coffeescript $("#big_menu_links h3").each -> $(this).mouseover -> $("#big_menu_links h3").removeClass("active") $(this).addClass("active") $(".big_menu").hide() $("#big_menu_"+$(this).data("big-menu")).show() %h2{:style => "text-align:center"} Actualités =render :collection => Article.recents, :partial => "public/articles/article" #newsletter .center =render(:partial => "portlets/dynamic_contents/newsletter_form") #bottom .col{:style => "width:30%;"} %h3 Visites sur réservation : de 9h à 12h et de 14h à 17h %br %br Tél : 04 76 91 03 34 %br %br N° Siret : 430 323 113 00018 .col{:style => "width:40%;text-align:center;"} %h3 Ballalama 80 chemin du champ de l’Orme %br 38140 Réaumont %br =link_to image_tag("/afla.png", :class => "afla"), "http://www.lamas-alpagas.org/", :target => "_blank"    =link_to image_tag("/ferme.png", :class => "ferme"), "http://www.bienvenue-a-la-ferme.com/", :target => "_blank"    =link_to image_tag("/pv.png", :class => "ferme"), "http://www.paysvoironnais.com", :target => "_blank" .clear %br = link_to "Mentions légales","/mentions-legales.html" .col{:style => "width:30%;text-align:right;"} = link_to(image_tag( "/plan.png", :alt => "Ballalama élevage et promenades en lama à Réaumont", :style => "margin-right:10px"), "/plan-dacces.html") %br .clear .socials_links .top_link =i(:"arrow-circle-o-up")