278a922be2
The IE opens intranet site often in compatible mode. In this mode looks the DAUX layout not good. With this header we say the IE that he can use the newest browser engine.
86 lignes
3.0 KiB
PHP
Fichiers exécutables
86 lignes
3.0 KiB
PHP
Fichiers exécutables
<!DOCTYPE html>
|
||
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
|
||
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
|
||
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
||
<head>
|
||
<title><?= $page['title']; ?> <?php if ($page['title'] != $params['title']) {
|
||
echo '- ' . $params['title'];
|
||
} ?></title>
|
||
<meta name="description" content="<?= $params['tagline']; ?>" />
|
||
<meta name="author" content="<?= $params['author']; ?>">
|
||
<meta charset="UTF-8">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||
<link rel="icon" href="<?= $params['theme']['favicon']; ?>" type="image/x-icon">
|
||
<!-- Mobile -->
|
||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
||
<!-- Font -->
|
||
<?php foreach ($params['theme']['fonts'] as $font) {
|
||
echo "<link href='$font' rel='stylesheet' type='text/css'>";
|
||
} ?>
|
||
|
||
<!-- CSS -->
|
||
<?php foreach ($params['theme']['css'] as $css) {
|
||
echo "<link href='$css' rel='stylesheet' type='text/css'>";
|
||
} ?>
|
||
|
||
<?php if ($params['html']['search']) {
|
||
?>
|
||
<!-- Tipue Search -->
|
||
<link href="<?= $base_url; ?>tipuesearch/tipuesearch.css" rel="stylesheet">
|
||
<?php
|
||
|
||
} ?>
|
||
|
||
<!--[if lt IE 9]>
|
||
<script src="<?= $base_url; ?>themes/daux/js/html5shiv-3.7.3.min.js"></script>
|
||
<![endif]-->
|
||
</head>
|
||
<body class="<?= $params['html']['float'] ? 'with-float' : ''; ?> <?= $this->section('classes'); ?>">
|
||
<?= $this->section('content'); ?>
|
||
|
||
<?php
|
||
if ($params['html']['google_analytics']) {
|
||
$this->insert('theme::partials/google_analytics', ['analytics' => $params['html']['google_analytics'], 'host' => array_key_exists('host', $params) ? $params['host'] : '']);
|
||
}
|
||
if ($params['html']['piwik_analytics']) {
|
||
$this->insert('theme::partials/piwik_analytics', ['url' => $params['html']['piwik_analytics'], 'id' => $params['html']['piwik_analytics_id']]);
|
||
}
|
||
?>
|
||
|
||
<!-- jQuery -->
|
||
<script src="<?= $base_url; ?>themes/daux/js/jquery-1.11.3.min.js"></script>
|
||
|
||
<!-- hightlight.js -->
|
||
<script src="<?= $base_url; ?>themes/daux/js/highlight.pack.js"></script>
|
||
<script>hljs.initHighlightingOnLoad();</script>
|
||
|
||
<!-- JS -->
|
||
<?php foreach ($params['theme']['js'] as $js) {
|
||
echo '<script src="' . $js . '"></script>';
|
||
} ?>
|
||
|
||
<script src="<?= $base_url; ?>themes/daux/js/daux.js"></script>
|
||
|
||
<?php if ($params['html']['search']) {
|
||
?>
|
||
<!-- Tipue Search -->
|
||
<script type="text/javascript" src="<?php echo $base_url; ?>tipuesearch/tipuesearch.js"></script>
|
||
|
||
<script>
|
||
window.onunload = function(){}; // force $(document).ready to be called on back/forward navigation in firefox
|
||
$(function() {
|
||
tipuesearch({
|
||
'base_url': '<?php echo $base_url?>'
|
||
});
|
||
});
|
||
</script>
|
||
<?php
|
||
|
||
} ?>
|
||
|
||
</body>
|
||
</html>
|