Blogtitle in Header

This commit is contained in:
mmk2410 2015-07-03 10:59:54 +02:00
parent cdfccd1754
commit 51cd71846b
6 changed files with 48 additions and 4 deletions

View file

@ -44,5 +44,14 @@ class BlogListGenerator {
}
}
}
function getName($file){
$blog = file_get_contents($file);
$blog = $blog . "\n";
if(substr($blog, 0, 6) == "%TITLE"){
$blog = substr($blog, 8, strpos($blog, "\n") - 8);
return $blog;
}
}
}