2010-10-05 14:17:54 +00:00
-----
-----
2010-11-02 14:41:26 +00:00
< % language, languages, blog, article = setItemConf %><?xml version="1.0" encoding="utf-8"?>
2010-10-05 14:17:54 +00:00
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "fr" xml:lang = "fr" >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=UTF-8" / >
< % t=tags %>
< % if t.length > 0 %>
< meta name = "keywords" content = "<%= t %>" >
< % end %>
2011-04-20 12:29:01 +00:00
< link rel = "shortcut icon" type = "image/x-icon" href = "<%=@config[:webprefix]%>/img/favicon.ico" / >
< link rel = "stylesheet" type = "text/css" href = "<%=@config[:webprefix]%>/assets/css/main.css" / >
< link rel = "stylesheet" type = "text/css" href = "<%=@config[:webprefix]%>/css/twilight.css" / >
< link rel = "stylesheet" type = "text/css" href = "<%=@config[:webprefix]%>/css/idc.css" / >
2010-10-05 14:17:54 +00:00
< link rel = "alternate" type = "application/rss+xml" title = "RSS" href = "http://feeds.feedburner.com/yannespositocom<%= language %>" / >
< %
languages.each do |lang|
item_for_lang=item_of_language(lang)
if not item_for_lang.nil? %>
< link rel = "alternate" lang = "<%= lang %>" xml:lang = "<%= lang %>" title = "<%= item_for_lang[:title] %>" type = "text/html" hreflang = "<%= lang %>" href = "<%= item_for_lang.reps[0].path %>" / > < %
end
end %>
2011-04-20 12:29:01 +00:00
< script type = "text/javascript" src = "<%=@config[:webprefix]%>/js/jquery-1.3.1.min.js" > < / script >
< script type = "text/javascript" src = "<%=@config[:webprefix]%>/js/jquery.cookie.js" > < / script >
< script type = "text/javascript" src = "<%=@config[:webprefix]%>/js/index.js" > < / script >
2011-01-09 22:38:42 +00:00
<!-- [if lt IE 9]>
< script src = "http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js" > < / script >
<![endif]-->
2010-11-02 14:41:26 +00:00
<!-- < % if containMaths %>
2011-04-20 12:29:01 +00:00
< script type = "text/javascript" src = "<%=@config[:webprefix]%>/js/MathJax/MathJax.js" > < / script >
2010-11-02 14:41:26 +00:00
< % end %>
-->
2010-10-05 14:17:54 +00:00
< title > < %= @item[:title] %>< / title >
< / head >
< body lang = "<%= language %>" >
< script type = "text/javascript" > / / < ! [ C D A T A [
2011-04-20 12:29:01 +00:00
document.write('< div id = "blackpage" > < img src = "<%=@config[:webprefix]%>/img/loading.gif" alt = "<%= tradOf(:loading) %>" / > < / div > ');
2010-10-05 14:17:54 +00:00
// ]]>
< / script >
< div id = "content" >
< div id = "choix" >
< div class = "return" > < a href = "#entete" > ↓ Menu ↓ < / a > < / div >
< div id = "choixlang" >
< %= languages.map do |l|
2011-04-20 12:29:01 +00:00
dest=@item_rep.path.sub(%r{#{@config[:webprefix]}/../}, %{#{config[:webprefix]}/#{l}/})
2010-10-05 14:17:54 +00:00
if @item_rep.path != dest
%{< a href = "#{dest}" onclick = "setLanguage('#{l}')" > #{ tradOfKeywordIn(:switchTo,l)}< / a > }
else
nil
end
end.join() %>
< / div >
2011-09-28 15:45:28 +00:00
< div class = "flush" > < / div >
2010-10-05 14:17:54 +00:00
< / div >
< div id = "titre" >
< h1 >
< %= @item[:title] %>
< / h1 >
< % unless @item[:subtitle].nil? %>
< h2 >
< %= @item[:subtitle] %>
< / h2 >
< % end %>
< / div >
< div class = "flush" > < / div >
< % if @item[:content_for_summary] %>
< div class = "corps summary" >
< % @item[:content_for_summary] %>
< / div >
< % end %>
< %= generateSubMenu %>
< div class = "flush" > < / div >
< div id = "afterheader" >
< div class = "corps" >
< %= yield %>
< / div >
< % depth = depthOf(@item) %>
2010-12-21 16:18:52 +00:00
< % if depth > 3 or ( depth == 3 and @item.children.length > 0 ) %>
2010-10-05 14:17:54 +00:00
< div class = "navigation" >
< div class = "navigationprev" > < %= previousFor(@item) %>< / div >
< div class = "navigationnext" > < %= nextFor(@item) %>< / div >
< / div >
< div class = "flush" > < / div >
< % end %>
< div id = "choixrss" >
< a id = "rss" href = "http://feeds.feedburner.com/yannespositocom<%= language %>" >
< %= tradOf(:subscribe) %>
< / a >
< / div >
< script type = "text/javascript" >
$(document).ready(function(){
$('#comment').hide();
$('#clickcomment').click(showComments);
});
function showComments() {
$('#comment').show();
$('#clickcomment').fadeOut();
}
document.write('< div id = "clickcomment" > < %= tradOf(:clickForComment) %>< / div > ');
< / script >
< div class = "flush" > < / div >
< div class = "corps" id = "comment" >
< h2 class = "first" > < %= tradOf(:comment) %>< / h2 >
< noscript >
< %= tradOf(:enableJavascriptToComment) %>
< / noscript >
< %= generateIntenseDebateThread %>
< / div >
< div id = "entete" class = "corps_spaced" >
< div id = "liens" >
< %= generateMenu %>
< / div >
< div class = "flush" > < / div >
< hr / >
< div id = "next_before_articles" >
< div id = "previous_articles" >
< %= tradOf(:previousArticles) %>
< %
(1..3).each do |n|
a=article_brother(-n)
if not a.nil?
%>
< div class = "previous_article" >
< %= link_to( %{< span class = "nicer" > «< / span > }+ a[:title], a) %>
< / div >
< % end %>
< % end %>
< / div >
< div id = "next_articles" >
< %= tradOf(:nextArticles) %>
< %
(1..3).each do |n|
a=article_brother(n)
if not a.nil?
%>
< div class = "next_article" >
< %= link_to(a[:title] + %{ < span class = "nicer" > »< / span > }, a) %>
< / div >
< % end %>
< % end %>
< / div >
< div class = "flush" > < / div >
< / div >
< / div >
< div id = "bottom" >
< div >
< %=tradOf(:copyright) %>
< / div >
< div id = "lastmod" >
< %=tradOf(:created_at)%>: < %= @item[:created_at].strftime(@config[:dateFormat][language.intern]) %>
< %=tradOf(:last_modified)%>: < %= gitmtime.strftime(@config[:dateFormat][language.intern]) %>
< / div >
< div >
< %= tradOf(:entirely_done_with) %>
< a href = "http://www.vim.org" > Vim< / a >
< %= tradOf(:and) %>
< a href = "http://nanoc.stoneship.org" > nanoc< / a >
< / div >
< div >
2011-04-20 12:29:01 +00:00
< a href = "<%=@config[:webprefix]%>/<%=language%>/validation/" > Validation< / a >
2010-10-05 14:17:54 +00:00
< a href = "http://validator.w3.org/check?uri=referer" > [xhtml] < / a >
.
< a href = "http://jigsaw.w3.org/css-validator/check/referer?profile=css3" > [css] < / a >
.
2011-04-20 12:29:01 +00:00
< a href = "http://validator.w3.org/feed/check.cgi?url=http%3A//yannesposito.com<%=@config[:webprefix]%>/<%=language%>/blog/feed/feed.xml" > [rss]< / a >
2010-10-05 14:17:54 +00:00
< / div >
< / div >
< div class = "clear" > < / div >
< / div >
2011-01-19 14:45:08 +00:00
< %= clicky_analytics %>
2010-10-05 14:17:54 +00:00
< / body >
< / html >