Merge pull request #30 from Fred89/master

French update
This commit is contained in:
Diego Najar 2015-09-08 22:12:26 -03:00
commit d9408cfbea
3 changed files with 14 additions and 6 deletions

View File

@ -161,5 +161,6 @@
"date": "Date",
"you-can-schedule-the-post-just-select-the-date-and-time": "Vous pouvez planifier une date de publication de vos articles, il suffit de sélectionner la date et lheure dans le calendrier qui souvre en pop-up.",
"scheduled": "Planification",
"publish": "Publier"
"publish": "Publier",
"please-check-your-theme-configuration": "Veuillez vérifier la configuration de votre thème."
}

View File

@ -31,8 +31,9 @@ class pluginPages extends Plugin {
{
global $Language;
global $pagesParents;
global $Site;
global $Site, $Url;
$home = $Url->whereAmI()==='home';
$html = '<div class="plugin plugin-pages">';
// If the label is not empty, print it.
@ -48,15 +49,17 @@ class pluginPages extends Plugin {
$html .= '<ul>';
if($this->getDbField('homeLink')) {
$html .= '<li><a class="parent" href="'.$Site->homeLink().'">'.$Language->get('Home').'</a></li>';
$current = ($Site->homeLink()==$home) ? ' class="active"' : '';
$html .= '<li' .$current. '><a class="parent" href="'.$Site->homeLink().'">'.$Language->get('Home').'</a></li>';
}
foreach($parents as $parent)
{
//if($Site->homepage()!==$parent->key())
{
$current_parent = ($parent->slug()==$Url->slug()) ? ' class="active"' : '';
// Print the parent
$html .= '<li><a class="parent" href="'.$parent->permalink().'">'.$parent->title().'</a>';
$html .= '<li' .$current_parent. '><a class="parent" href="'.$parent->permalink().'">'.$parent->title().'</a>';
// Check if the parent has children
if(isset($pagesParents[$parent->key()]))
@ -67,7 +70,8 @@ class pluginPages extends Plugin {
$html .= '<ul>';
foreach($children as $child)
{
$html .= '<li><a class="children" href="'.$child->permalink().'">'.$child->title().'</a></li>';
$current_child = ($child->slug()==$Url->slug()) ? ' class="active"' : '';
$html .= '<li' .$current_child. '><a class="children" href="'.$child->permalink().'">'.$child->title().'</a></li>';
}
$html .= '</ul>';
}

3
themes/pure/css/blog.css Normal file → Executable file
View File

@ -268,6 +268,9 @@ div.plugin-content li {
margin-top: 5px;
}
div.plugin-content ul li.active a {
color: #2672ec;
}
div.plugin-content ul {
display: block;
list-style-type: none;