commit
d9408cfbea
@ -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."
|
||||
}
|
||||
|
@ -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
3
themes/pure/css/blog.css
Normal file → Executable 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;
|
||||
|
Loading…
Reference in New Issue
Block a user