diff --git a/admin/themes/default/css/favicon.png b/admin/themes/default/css/favicon.png
new file mode 100644
index 00000000..517c6c12
Binary files /dev/null and b/admin/themes/default/css/favicon.png differ
diff --git a/admin/themes/default/index.php b/admin/themes/default/index.php
index e2c4f1f0..f09e96b9 100644
--- a/admin/themes/default/index.php
+++ b/admin/themes/default/index.php
@@ -8,6 +8,8 @@
';
- // Print the label if it not empty.
+ // Print the label if not empty.
$label = $this->getDbField('label');
if( !empty($label) ) {
$html .= '
'.$label.'
';
}
$html .= '
';
-
- $parents = $pagesParents[NO_PARENT_CHAR];
-
$html .= '
';
+ // Show home link ?
if($this->getDbField('homeLink')) {
- $current = ($Site->homeLink()==$home) ? ' class="active"' : '';
- $html .= '- '.$Language->get('Home').'
';
+ $html .= '- ';
+ $html .= ''.$Language->get('Home').'';
+ $html .= '
';
}
+ $parents = $pagesParents[NO_PARENT_CHAR];
foreach($parents as $parent)
{
- //if($Site->homepage()!==$parent->key())
+ // Print the parent
+ $html .= '- ';
+ $html .= ''.$parent->title().'';
+
+ // Check if the parent has children
+ if(isset($pagesParents[$parent->key()]))
{
- $current_parent = ($parent->slug()==$Url->slug()) ? ' class="active"' : '';
- // Print the parent
- $html .= '
- '.$parent->title().'';
+ $children = $pagesParents[$parent->key()];
- // Check if the parent has children
- if(isset($pagesParents[$parent->key()]))
+ // Print children
+ $html .= '
';
+ foreach($children as $child)
{
- $children = $pagesParents[$parent->key()];
-
- // Print the children
- $html .= '';
- foreach($children as $child)
- {
- $current_child = ($child->slug()==$Url->slug()) ? ' class="active"' : '';
- $html .= '- '.$child->title().'
';
- }
- $html .= '
';
+ $html .= '- ';
+ $html .= ''.$child->title().'';
+ $html .= '
';
}
+ $html .= '
';
}
}
@@ -84,4 +81,4 @@ class pluginPages extends Plugin {
return $html;
}
-}
+}
\ No newline at end of file
diff --git a/themes/pure/css/blog.css b/themes/pure/css/blog.css
index e08955f3..482f206b 100644
--- a/themes/pure/css/blog.css
+++ b/themes/pure/css/blog.css
@@ -268,9 +268,6 @@ 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;
@@ -292,6 +289,11 @@ div.plugin-content ul > li > ul > li > a {
color: #777;
}
+div.plugin-content a.active {
+ color: #2672ec !important;
+}
+
+
/* ------------------------
Responsive
------------------------ */