logo

blog

Unnamed repository; edit this file 'description' to name the repository.
commit b9f4b80120c2a436f319470c89dc2e046658a276
parent 0f98d846f1b83d4d00342238f96969321bf16463
Author: lanodan <lanodan.delta@free.fr>
Date:   Thu, 29 Jan 2015 22:05:19 +0100

Traduction, unicode sucks with MySQL ;/

Diffstat:
about.html | 2+-
animelist.html | 2+-
barredenavigation.php | 13+++++++++++++
index.php | 6+++---
librism.html | 2+-
librisme.html | 2+-
modèle.html | 2+-
navbar.php | 5+++--
post.php | 18+++++++++++-------
template.html | 2+-
à propos.html | 17++++++-----------
11 files changed, 42 insertions(+), 29 deletions(-)

diff --git a/about.html b/about.html @@ -15,7 +15,7 @@ </ul></li> </ul><ul class="right"> <li><a href="à propos.html">Français</a></li> - <li><a href="rss.php">RSS feed</a></li> + <li><a href="//github.com/lanodan/blog/">Fork Me On Github</a></li> </ul> </nav> <section style="margin: 1.5em;"> diff --git a/animelist.html b/animelist.html @@ -15,7 +15,7 @@ <li><a href="animelist.html">Anime List</a></li> </ul></li> </ul><ul class="right"> - <li><a href="rss.php">RSS feed</a></li> + <li><a href="//github.com/lanodan/blog/">Fork Me On Github</a></li> </ul> </nav> <section id="content"> diff --git a/barredenavigation.php b/barredenavigation.php @@ -0,0 +1,13 @@ + <nav> + <ul class="menus"> + <li><a href="index.php">Accueil</a></li> + <li><a href="à propos.html">À propos</a><ul> + <li><a href="librisme.html">Désintox’ / Engagement libriste</a></li> + <li><a href="animelist.html">Anime List(en)</a></li> + </ul></li> + </ul><ul class="right"> + <li><a href="template.html">English</a></li> + <li><a href="rss.php">flux RSS</a></li> + <li><a href="//github.com/lanodan/blog/">Créer un embranchement sur Github</a></li> + </ul> + </nav> diff --git a/index.php b/index.php @@ -30,9 +30,9 @@ foreach($rows as $row) { print ' <article> - <h2 class="postTitle"><a href="post?id='.$row['id'].'">'.$row['title'].'</a></h2> - '.$row['content'].' - <div class="info">'.$row['tags'].' ~~ '.date("c", strtotime($row['pubDate']) ).'</div> + <h2 class="postTitle"><a href="post?id='.utf8_encode($row['id']).'">'.utf8_encode($row['title']).'</a></h2> + '.utf8_encode($row['content']).' + <div class="info">'.utf8_encode($row['tags']).' ~~ '.date("c", strtotime($row['pubDate']) ).'</div> </article> '; } diff --git a/librism.html b/librism.html @@ -21,7 +21,7 @@ </ul></li> </ul><ul class="right"> <li><a href="librisme.html">Français</a></li> - <li><a href="rss.php">RSS feed</a></li> + <li><a href="//github.com/lanodan/blog/">Fork Me On Github</a></li> </ul> </nav> <section id="content"> diff --git a/librisme.html b/librisme.html @@ -21,7 +21,7 @@ </ul></li> </ul><ul class="right"> <li><a href="librism.html">English</a></li> - <li><a href="rss.php">flux RSS</a></li> + <li><a href="//github.com/lanodan/blog/">Créer un embranchement sur Github</a></li> </ul> </nav> <section id="content"> diff --git a/modèle.html b/modèle.html @@ -16,7 +16,7 @@ </ul></li> </ul><ul class="right"> <li><a href="template.html">English</a></li> - <li><a href="rss.php">flux RSS</a></li> + <li><a href="//github.com/lanodan/blog/">Créer un embranchement sur Github</a></li> </ul> </nav> <footer> diff --git a/navbar.php b/navbar.php @@ -1,4 +1,4 @@ - <nav> + <nav> <ul class="menus"> <li><a href="index.php">Home</a></li> <li><a href="about.html">About</a><ul> @@ -8,5 +8,6 @@ </ul><ul class="right"> <li><a href="modèle.html">Français</a></li> <li><a href="rss.php">RSS feed</a></li> + <li><a href="//github.com/lanodan/blog/">Fork Me On Github</a></li> </ul> - </nav> + </nav> diff --git a/post.php b/post.php @@ -32,17 +32,21 @@ </head> <body> <?php - require_once 'config.php'; - include 'navbar.php'; + require_once 'config.php'; + if $lang == 'en' { + include 'navbar.php'; + } else { + include 'barredenavigation.php' + } ?> <?php /* fetch associative array */ $row = $result->fetch_array(); - print ' <article> - <h2 class="postTitle"><a href="post?id='.$row['id'].'">'.$row['title'].'</a></h2> - '.$row['content'].' - <div class="info">'.$row['tags'].' ~~ '.date("c", strtotime($row['pubDate']) ).'</div> - </article> + print ' <article> + <h2 class="postTitle"><a href="post?id='.utf8_encode($row['id']).'">'.utf8_encode($row['title']).'</a></h2> + '.utf8_encode($row['content']).' + <div class="info">'.utf8_encode($row['tags']).' ~~ '.date("c", strtotime($row['pubDate']) ).'</div> + </article> '; print ' Share: <a href="https://twitter.com/intent/tweet?text='.$baseURL.'post?id='.$row['id'].' '.$row['title'].'">Twitter</a> <a href="mailto:?to&subject='.$row[title].'&body='.$baseURL.'post?id='.$row['id'].'">Mail</a>'; $result->close(); diff --git a/template.html b/template.html @@ -16,7 +16,7 @@ </ul></li> </ul><ul class="right"> <li><a href="modèle.html">Français</a></li> - <li><a href="rss.php">RSS feed</a></li> + <li><a href="//github.com/lanodan/blog/">Fork Me On Github</a></li> </ul> </nav> <footer> diff --git a/à propos.html b/à propos.html @@ -15,15 +15,15 @@ </ul></li> </ul><ul class="right"> <li><a href="about.html">English</a></li> - <li><a href="rss.php">flux RSS</a></li> + <li><a href="//github.com/lanodan/blog/">Créer un embranchement sur Github</a></li> </ul> </nav> - <section style="margin: 1.5em;"> + <section id="content"> <h1>About</h1> <section id="ToC"> - <h2>Table of Contents</h2> + <h2>Table des matières</h2> <ol> - <li><a href="#history">Today and before</a></li> + <li><a href="#history">Rétrospective</a></li> <li><a href="#links">Links</a></li> <li><a href="#boycott">Boycott</a></li> <li><a href="#config">Config</a><ol> @@ -63,7 +63,7 @@ G++ e-- h r++ y </ul> </section> <section id="links"> - <h2>Links</h2> + <h2>Liens</h2> <ul> <li><a href="//github.com/lanodan">Github</a></li> </ul> @@ -87,7 +87,7 @@ G++ e-- h r++ y </ul> </section> <section id="boycott"> - <h2>Boycott</h2> + <h2>« Boycott »</h2> Vous pouvez aller voir <a href="librisme.html">Désintox’ / Engagement libriste</a> pour plus de détails. <ul> <li><strong>Adobe :</strong> Expensive and proprietary formats.</li> @@ -116,11 +116,6 @@ G++ e-- h r++ y </tbody> </table> </section> - <section id="widget"> - <h2>Badges/Widgets/Signatures</h2> - <a href="//raptr.com/lanodan?src=em_all"><img alt="Raptr Gamercard" src="//raptr.com/badge/lanodan/fs_overall.png"></a><a href="//raptr.com/lanodan?src=em_all"><img alt="Raptr Gamercard" src="//raptr.com/badge/lanodan/fs_pc.png"></a><br /> - <iframe src="//raptr.com/badges/last-most/lanodan" height="349px" width="300px" scrolling="no" frameborder="0"></iframe><iframe src="//raptr.com/badges/playing/lanodan" height="303px" width="300px" scrolling="no" frameborder="0"></iframe> - </section> </section> <footer> <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="CC-BY-SA" src="images/cc-by-sa.png" /></a> This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.