diff --git a/languages/fr_FR.json b/languages/fr_FR.json
index 166d6154..ad3ce700 100755
--- a/languages/fr_FR.json
+++ b/languages/fr_FR.json
@@ -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 l’heure dans le calendrier qui s’ouvre en pop-up.",
"scheduled": "Planification",
- "publish": "Publier"
+ "publish": "Publier",
+ "please-check-your-theme-configuration": "Veuillez vérifier la configuration de votre thème."
}
diff --git a/plugins/pages/plugin.php b/plugins/pages/plugin.php
index 38dc19be..42a9247d 100755
--- a/plugins/pages/plugin.php
+++ b/plugins/pages/plugin.php
@@ -31,8 +31,9 @@ class pluginPages extends Plugin {
{
global $Language;
global $pagesParents;
- global $Site;
-
+ global $Site, $Url;
+ $home = $Url->whereAmI()==='home';
+
$html = '
';
// If the label is not empty, print it.
@@ -48,15 +49,17 @@ class pluginPages extends Plugin {
$html .= '
';
if($this->getDbField('homeLink')) {
- $html .= '- '.$Language->get('Home').'
';
+ $current = ($Site->homeLink()==$home) ? ' class="active"' : '';
+ $html .= '- '.$Language->get('Home').'
';
}
foreach($parents as $parent)
{
//if($Site->homepage()!==$parent->key())
{
+ $current_parent = ($parent->slug()==$Url->slug()) ? ' class="active"' : '';
// Print the parent
- $html .= '- '.$parent->title().'';
+ $html .= '
- '.$parent->title().'';
// Check if the parent has children
if(isset($pagesParents[$parent->key()]))
@@ -67,7 +70,8 @@ class pluginPages extends Plugin {
$html .= '
';
foreach($children as $child)
{
- $html .= '- '.$child->title().'
';
+ $current_child = ($child->slug()==$Url->slug()) ? ' class="active"' : '';
+ $html .= '- '.$child->title().'
';
}
$html .= '
';
}
diff --git a/themes/pure/css/blog.css b/themes/pure/css/blog.css
old mode 100644
new mode 100755
index aa2bf3d0..e08955f3
--- a/themes/pure/css/blog.css
+++ b/themes/pure/css/blog.css
@@ -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;