FEATURE: add content page overview

This commit is contained in:
Michal Kváček
2016-08-22 23:29:04 +02:00
parent f6fd924cbd
commit d746d5b52b
11 changed files with 319 additions and 97 deletions
+13
View File
@@ -74,4 +74,17 @@ class Template
return config('app.url') . '/assets/' . config('app.theme') . '/' . $path;
}
public static function date($datestamp, $withTime = true)
{
$timestamp = strtotime($datestamp);
if ($timestamp <= 0) {
return '';
}
$format = $withTime ? config('app.datetime_format') : config('app.date_format');
return date($format, $timestamp);
}
}