mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Autoversion scripts
This commit is contained in:
parent
50e9e16ecf
commit
4b38a80e6c
@ -1,3 +1,3 @@
|
||||
<script src="inc/js/jquery.min.js"></script>
|
||||
<script src="inc/js/bootstrap.min.js"></script>
|
||||
<script src="<?php echo $this->autoversion('inc/js/jquery.min.js'); ?>"></script>
|
||||
<script src="<?php echo $this->autoversion('inc/js/bootstrap.min.js'); ?>"></script>
|
||||
<?php echo "</html>"; ?>
|
||||
|
@ -49,10 +49,6 @@ function navbar($links) {
|
||||
echo '</ul>';
|
||||
}
|
||||
|
||||
function autoversion($file) {
|
||||
return $file . "?" . filemtime($file);
|
||||
}
|
||||
|
||||
function print_header() {
|
||||
$settings = $this->page->settings;
|
||||
?>
|
||||
@ -65,8 +61,8 @@ $settings = $this->page->settings;
|
||||
<meta name="author" content="LiteBans">
|
||||
<link rel="shortcut icon" href="inc/img/minecraft.ico">
|
||||
<!-- CSS -->
|
||||
<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">
|
||||
<link href="<?php echo $this->page->autoversion('inc/css/bootstrap.min.css'); ?>" rel="stylesheet">
|
||||
<link href="<?php echo $this->page->autoversion('inc/css/custom.css'); ?>" rel="stylesheet">
|
||||
<script type="text/javascript">
|
||||
function withjQuery(f) {
|
||||
if (window.jQuery) f();
|
||||
|
@ -500,6 +500,10 @@ class Page {
|
||||
include_once './inc/footer.php';
|
||||
}
|
||||
|
||||
function autoversion($file) {
|
||||
return $file . "?" . filemtime($file);
|
||||
}
|
||||
|
||||
function table_begin() {
|
||||
echo '<table class="table table-striped table-bordered table-condensed">';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user