Move the CSS to a specific directory. re #25

This commit is contained in:
Sébastien Lucas 2013-05-28 07:49:52 +02:00
parent e9c392ef7c
commit e2622191b4
5 changed files with 6 additions and 2 deletions

View file

@ -17,6 +17,10 @@ function getURLParam ($name, $default = NULL) {
return $default;
}
function getCurrentCss () {
return "styles/style.css";
}
function getUrlWithVersion ($url) {
return $url . "?v=" . VERSION;
}

View file

@ -26,7 +26,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>COPS Configuration Check</title>
<link rel="stylesheet" type="text/css" href="<?php echo getUrlWithVersion("style.css") ?>" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo getUrlWithVersion(getCurrentCss ()) ?>" media="screen" />
</head>
<body>
<div class="container">

View file

@ -63,7 +63,7 @@
<link rel="related" href="<?php echo $config['cops_full_url'] ?>feed.php" type="application/atom+xml;profile=opds-catalog" title="<?php echo $config['cops_title_default']; ?>" />
<link rel="icon" type="image/vnd.microsoft.icon" href="<?php echo $currentPage->favicon ?>" />
<link rel='stylesheet' type='text/css' href='http://fonts.googleapis.com/css?family=Open+Sans:400,300italic,800,300,400italic,600,600italic,700,700italic,800italic' />
<link rel="stylesheet" type="text/css" href="<?php echo getUrlWithVersion("style.css") ?>" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo getUrlWithVersion(getCurrentCss ()) ?>" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo getUrlWithVersion("resources/normalize/normalize.css") ?>" />
<script type="text/javascript">
$(document).ready(function() {