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..df0e519a 100644
--- a/themes/pure/css/blog.css
+++ b/themes/pure/css/blog.css
@@ -54,6 +54,10 @@ pre, code {
white-space: pre-wrap !important;
}
+blockquote {
+ border-left: 10px solid #f0f2f4;
+ padding-left: 10px;
+}
/* ------------------------
Content / Main
@@ -139,15 +143,20 @@ margin: 0;
.post-title a
{
color: #555;
-border-bottom: 5px solid #ccc;
display: inline-block;
}
.page a.read-more,
.post a.read-more{
-display: block;
-text-align: center;
-padding: 2px 5px;
+ border: 1px solid #ccc;
+ display: inline-block;
+ margin-top: 10px;
+ padding: 2px 20px;
+}
+
+.page a.read-more:hover,
+.post a.read-more:hover{
+ background: #f1f1f1;
}
@@ -268,9 +277,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 +298,11 @@ div.plugin-content ul > li > ul > li > a {
color: #777;
}
+div.plugin-content a.active {
+ color: #2672ec !important;
+}
+
+
/* ------------------------
Responsive
------------------------ */
diff --git a/themes/pure/index.php b/themes/pure/index.php
index d8b93753..6a16a9b7 100644
--- a/themes/pure/index.php
+++ b/themes/pure/index.php
@@ -3,7 +3,7 @@
-
+
@@ -16,7 +16,7 @@
@@ -26,15 +26,15 @@
whereAmI()=='home') || ($Url->whereAmI()=='tag') )
{
- include('php/home.php');
+ include(PATH_THEME_PHP.'home.php');
}
elseif($Url->whereAmI()=='post')
{
- include('php/post.php');
+ include(PATH_THEME_PHP.'post.php');
}
elseif($Url->whereAmI()=='page')
{
- include('php/page.php');
+ include(PATH_THEME_PHP.'page.php');
}
?>
diff --git a/themes/pure/php/head.php b/themes/pure/php/head.php
index 7502dff7..43d6a590 100644
--- a/themes/pure/php/head.php
+++ b/themes/pure/php/head.php
@@ -1,13 +1,23 @@
+
+
+
+
+title() ?>
+
Site title
- Theme::title( $Site->title() );
-
- //
- Theme::description( $Site->description() );
+ // Favicon from theme/img/
+ Theme::favicon('favicon.png');
//
if( $Url->whereAmI()=='post' ) {
@@ -16,35 +26,18 @@
elseif( $Url->whereAmI()=='page' ) {
Theme::keywords( $Page->tags() );
}
-
- //
- //
- //
- //
- Theme::css(array(
- 'pure-min.css',
- 'grids-responsive-min.css',
- 'blog.css',
- 'rainbow.github.css'
- ));
-
- Theme::css(array(
- 'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,cyrillic,latin-ext'
- ), '');
-
- //
- Theme::javascript(array(
- 'rainbow.min.js'
- ));
?>
+
+
+
-
+
\ No newline at end of file