2013-07-17 03:58:11 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Helper;
|
|
|
|
|
|
|
|
function css()
|
|
|
|
{
|
2013-12-23 02:55:53 +01:00
|
|
|
$theme = \Model\Config\get('theme');
|
2013-07-17 03:58:11 +02:00
|
|
|
|
|
|
|
if ($theme !== 'original') {
|
|
|
|
|
|
|
|
$css_file = THEME_DIRECTORY.'/'.$theme.'/css/app.css';
|
|
|
|
|
|
|
|
if (file_exists($css_file)) {
|
|
|
|
return $css_file.'?version='.filemtime($css_file);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 'assets/css/app.css?version='.filemtime('assets/css/app.css');
|
2013-12-23 02:55:53 +01:00
|
|
|
}
|