From 7b27e9614129d0fe7d7061618d55b93727141178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20K?= Date: Tue, 8 Sep 2015 18:03:31 +0200 Subject: [PATCH 1/2] French update --- languages/fr_FR.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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." } From deb0a43d57344f7fd054a1da00d44bab13b2a01b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20K?= Date: Tue, 8 Sep 2015 19:40:25 +0200 Subject: [PATCH 2/2] Add current page --- plugins/pages/plugin.php | 14 +++++++++----- themes/pure/css/blog.css | 3 +++ 2 files changed, 12 insertions(+), 5 deletions(-) mode change 100644 => 100755 themes/pure/css/blog.css 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;