mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 08:52:45 +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>';
|
echo '</ul>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function autoversion($file) {
|
||||||
|
return $file . "?" . filemtime($file);
|
||||||
|
}
|
||||||
|
|
||||||
function print_header() {
|
function print_header() {
|
||||||
$settings = $this->page->settings;
|
$settings = $this->page->settings;
|
||||||
?>
|
?>
|
||||||
@ -61,8 +65,8 @@ $settings = $this->page->settings;
|
|||||||
<meta name="author" content="LiteBans">
|
<meta name="author" content="LiteBans">
|
||||||
<link rel="shortcut icon" href="inc/img/minecraft.ico">
|
<link rel="shortcut icon" href="inc/img/minecraft.ico">
|
||||||
<!-- CSS -->
|
<!-- CSS -->
|
||||||
<link href="inc/css/bootstrap.min.css" rel="stylesheet">
|
<link href="<?php echo $this->autoversion('inc/css/bootstrap.min.css'); ?>" rel="stylesheet">
|
||||||
<link href="inc/css/custom.css" rel="stylesheet">
|
<link href="<?php echo $this->autoversion('inc/css/custom.css'); ?>" rel="stylesheet">
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function withjQuery(f) {
|
function withjQuery(f) {
|
||||||
if (window.jQuery) f();
|
if (window.jQuery) f();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user