mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 00:42:43 +00:00
Add mtime versioning for CSS files
This commit is contained in:
parent
87953d86f8
commit
b056533311
@ -49,6 +49,10 @@ function navbar($links) {
|
||||
echo '</ul>';
|
||||
}
|
||||
|
||||
function autoversion($file) {
|
||||
return $file . "?" . filemtime($file);
|
||||
}
|
||||
|
||||
function print_header() {
|
||||
$settings = $this->page->settings;
|
||||
?>
|
||||
@ -61,8 +65,8 @@ $settings = $this->page->settings;
|
||||
<meta name="author" content="LiteBans">
|
||||
<link rel="shortcut icon" href="inc/img/minecraft.ico">
|
||||
<!-- CSS -->
|
||||
<link href="inc/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="inc/css/custom.css" rel="stylesheet">
|
||||
<link href="<?php echo $this->autoversion('inc/css/bootstrap.min.css'); ?>" rel="stylesheet">
|
||||
<link href="<?php echo $this->autoversion('inc/css/custom.css'); ?>" rel="stylesheet">
|
||||
<script type="text/javascript">
|
||||
function withjQuery(f) {
|
||||
if (window.jQuery) f();
|
||||
|
Loading…
x
Reference in New Issue
Block a user