90 lines
2.8 KiB
Plaintext
90 lines
2.8 KiB
Plaintext
!!!
|
|
|
|
%html{:lang => "fr", "xml:lang" => "fr", :xmlns => "http://www.w3.org/1999/xhtml"}
|
|
%head
|
|
%title=@title.to_s+" "
|
|
|
|
|
|
%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
|
|
|
|
= stylesheet_link_tag 'public'
|
|
= stylesheet_link_tag '/fonts/Stylograph/stylesheet.css'
|
|
<script src="//use.typekit.net/twa3qoy.js"></script>
|
|
<script>try{Typekit.load();}catch(e){}</script>
|
|
|
|
=javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false®ion=FR"
|
|
|
|
%body
|
|
|
|
|
|
-if flash[:error] or flash[:notice] or flash[:alert]
|
|
.flash
|
|
|
|
=flash[:error]
|
|
=flash[:notice]
|
|
=flash[:alert]
|
|
|
|
.top
|
|
.main
|
|
=link_to image_tag("/logo.png", :id => "logo"), "/"
|
|
|
|
#menu
|
|
|
|
-MenuItem.where(:parent_id => nil, :enabled => true, :visible => true).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"
|
|
=link_to sanitize("#{menu_item.name}"),menu_item_path(:url => menu_item.url), :class => menu_item.slug.to_s+"_menu"+(" active" if @menu_item and (@menu_item == menu_item or @menu_item.ancestors.include?(menu_item))).to_s
|
|
|
|
.clear
|
|
|
|
-if !(@menu_item and @menu_item.slug and @menu_item.slug == "index" )
|
|
%p{:style => "height:80px;"}
|
|
|
|
-if @menu_item and @menu_item.slug and @menu_item.slug == "index"
|
|
#slider_content
|
|
=#{:style => "display:none"}
|
|
<ul class="bxslider" data-ratio="2.2">
|
|
<li><img src="http://photographie-hors-piste.com/slide/1.jpg" title="" /></li>
|
|
<li><img src="http://photographie-hors-piste.com/slide/2.jpg" title="" /></li>
|
|
<li><img src="http://photographie-hors-piste.com/slide/3.jpg" title="" /></li>
|
|
|
|
</ul>
|
|
|
|
#main
|
|
|
|
#corps{:class => (@menu_item.slug if @menu_item)}
|
|
|
|
|
|
-if @menu_item and @menu_item.slug and @menu_item.slug == "index"
|
|
=render Article.before(Date.today).recents.first
|
|
=link_to "tout les articles >", "/blog.html", :class => "articles_button"
|
|
|
|
=yield
|
|
#sidebar
|
|
=render Event.recents.limit(2)
|
|
|
|
=yield :sidebar
|
|
|
|
.clear
|
|
|
|
|
|
.bottom
|
|
Association Photographie Hors Piste - Design Nicolas Bally en collaboration avec Fabrice Aubriet - Site mis à jour par Fabrice Aubriet
|
|
|
|
=link_to image_tag("/nb.png"), "http://nicolasbally.com", :target => "_blank"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|