diff --git a/bl-kernel/helpers/theme.class.php b/bl-kernel/helpers/theme.class.php
index fcaf2fe9..e623c8ed 100644
--- a/bl-kernel/helpers/theme.class.php
+++ b/bl-kernel/helpers/theme.class.php
@@ -2,11 +2,14 @@
class Theme {
- // NEW
-
- public static function favicon($file='favicon.png', $path=HTML_PATH_THEME_IMG, $echo=true)
+ public static function favicon($file='favicon.png', $path=HTML_PATH_THEME_IMG, $typeIcon=true, $echo=true)
{
- $tmp = ''.PHP_EOL;
+ $type = 'image/png';
+ if($typeIcon) {
+ $type = 'image/x-icon';
+ }
+
+ $tmp = ''.PHP_EOL;
if($echo) {
echo $tmp;
@@ -51,9 +54,28 @@ class Theme {
return $tmp;
}
- public static function title($title, $echo=true)
+ public static function title($title=false, $echo=true)
{
- $tmp = '
'.$title.''.PHP_EOL;
+ global $Url;
+ global $Post, $Page;
+ global $Site;
+
+ $tmp = $title;
+
+ if(empty($title))
+ {
+ if( $Url->whereAmI()=='post' ) {
+ $tmp = $Post->title().' - '.$Site->title();
+ }
+ elseif( $Url->whereAmI()=='page' ) {
+ $tmp = $Page->title().' - '.$Site->title();
+ }
+ else {
+ $tmp = $Site->title();
+ }
+ }
+
+ $tmp = ''.$tmp.''.PHP_EOL;
if($echo) {
echo $tmp;
@@ -62,9 +84,28 @@ class Theme {
return $tmp;
}
- public static function description($description, $echo=true)
+ public static function description($description=false, $echo=true)
{
- $tmp = ''.PHP_EOL;
+ global $Url;
+ global $Post, $Page;
+ global $Site;
+
+ $tmp = $description;
+
+ if(empty($description))
+ {
+ if( $Url->whereAmI()=='post' ) {
+ $tmp = $Post->description();
+ }
+ elseif( $Url->whereAmI()=='page' ) {
+ $tmp = $Page->description();
+ }
+ else {
+ $tmp = $Site->description();
+ }
+ }
+
+ $tmp = ''.PHP_EOL;
if($echo) {
echo $tmp;
diff --git a/bl-themes/blogme/php/head.php b/bl-themes/blogme/php/head.php
index 0855c81a..2db250b7 100644
--- a/bl-themes/blogme/php/head.php
+++ b/bl-themes/blogme/php/head.php
@@ -1,19 +1,22 @@
-title() ?>
-
-
-
+
-
-
-
title() ?>
-
-
-
+
-
@@ -12,9 +16,10 @@
\ No newline at end of file
diff --git a/bl-themes/pure/index.php b/bl-themes/pure/index.php
index d831a5be..0f11d70d 100644
--- a/bl-themes/pure/index.php
+++ b/bl-themes/pure/index.php
@@ -1,4 +1,4 @@
-
+
diff --git a/bl-themes/pure/php/head.php b/bl-themes/pure/php/head.php
index 5f679ed5..2e6d8d12 100644
--- a/bl-themes/pure/php/head.php
+++ b/bl-themes/pure/php/head.php
@@ -1,9 +1,11 @@
-
-
-title() ?>
-
- if( $Url->whereAmI()=='post' ) {
- Theme::keywords( $Post->tags() );
- Theme::description( $Post->description() );
- }
- elseif( $Url->whereAmI()=='page' ) {
- Theme::keywords( $Page->tags() );
- Theme::description( $Page->description() );
- }
- else {
- Theme::description( $Site->description() );
- }
?>
@@ -43,4 +32,4 @@
-
+
\ No newline at end of file