-
Notifications
You must be signed in to change notification settings - Fork 15
/
head.php
51 lines (39 loc) · 1.88 KB
/
head.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
// no direct access to this file
defined( 'DACCESS' ) or die;
$lang = new M_Language;
$language = $lang->getLanguage();
?>
<!DOCTYPE html>
<html lang="<?PHP echo $language; ?>">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="<?php echo rtrim(((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')) ? 'https://' : 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']), '/\\'); ?>/">
<?php $this->meta(); ?>
<link rel="shortcut icon" href="favicon.png">
<title><?php MPut::_html($this->page_title ); ?></title>
<?php $this->output_assets( 'css' ); ?>
<link href="<?php MPut::_link( $this->get_dir() ); ?>/css/mappiamo.css" rel="stylesheet">
<?php $this->output_assets( 'js' ); ?>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<script src="<?php MPut::_link( $this->get_dir() ); ?>/js/holder.js"></script>
<script src="<?php MPut::_link( $this->get_dir() ); ?>/js/ajax.test.js"></script>
<script type="text/javascript">
var SiteRoot = "<?PHP echo MPut::_link( $this->get_dir() ); ?>";
</script>
<script type="text/javascript">
function map_banner_size() {
$( '#mapbanner' ).css( 'height', $( window ).height() + 'px' );
if ( mmap.map !== 'undefined' ) {
mmap.map.invalidateSize( false );
}
}
$( window ).ready( map_banner_size );
$( window ).resize( map_banner_size );
</script>
</head>