124 lines
4.1 KiB
Plaintext
124 lines
4.1 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/winterthurcondensed/stylesheet.css'
|
|
|
|
|
|
=javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false®ion=FR"
|
|
|
|
%body{:class => ("page" if @menu_item and @menu_item.slug != "index")}
|
|
<div id="fb-root"></div>
|
|
:javascript
|
|
(function(d, s, id) {
|
|
var js, fjs = d.getElementsByTagName(s)[0];
|
|
if (d.getElementById(id)) return;
|
|
js = d.createElement(s); js.id = id;
|
|
js.src = "//connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.4";
|
|
fjs.parentNode.insertBefore(js, fjs);
|
|
}(document, 'script', 'facebook-jssdk'));
|
|
|
|
-if flash[:error] or flash[:notice] or flash[:alert]
|
|
.flash
|
|
|
|
=flash[:error]
|
|
=flash[:notice]
|
|
=flash[:alert]
|
|
|
|
|
|
|
|
|
|
.top
|
|
|
|
#blur
|
|
.center{:style => "position:relative;"}
|
|
=link_to image_tag("/logo.png", :id => "logo"), "/"
|
|
|
|
#menu
|
|
.content
|
|
%ul
|
|
-MenuItem.where(:parent_id => nil, :enabled => true, :visible => true, :menu_id => Menu.find_by_slug("principal").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
|
|
=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
|
|
|
|
|
|
-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
|
|
%ul
|
|
-first_level_menu.children.where(:enabled => true, :visible => true).order(:position).each do |menu_item|
|
|
|
|
%li
|
|
=menu_item_link(menu_item)
|
|
|
|
|
|
|
|
%li
|
|
=link_to i(:facebook), "https://www.facebook.com/Parle-à-ton-chien-1614258965457395", :target => "_blank"
|
|
|
|
=link_to image_tag("/logo-min.png", :id => "logo-min"), "/"
|
|
|
|
.clear
|
|
|
|
#main{:class => (@menu_item.slug if @menu_item)}
|
|
=yield
|
|
|
|
.clear
|
|
|
|
|
|
.bottom{:style => "margin-top:50px;"}
|
|
.share{:style => "float:left;margin-left:20px;"}
|
|
#likebox-wrapper
|
|
%div
|
|
.fb-like{}
|
|
%div
|
|
=raw '<div class="fb-share-button" data-href="'+request.url+'" data-layout="button_count"></div>'
|
|
|
|
.infos
|
|
06 60 11 96 00 /
|
|
=link_to "eglantine.noblet@gmail.com", "mailto:eglantine.noblet@gmail.com"
|
|
="/"
|
|
=link_to i(:facebook), "https://www.facebook.com/Parle-à-ton-chien-1614258965457395", :target => "_blank"
|
|
|
|
%ul
|
|
-MenuItem.where(:parent_id => nil, :enabled => true, :visible => true, :menu_id => Menu.find_by_slug("infos").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=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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=link_to image_tag("/nb.png"), "http://nicolasbally.com", :target => "_blank", :id => "nb"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|