template default en HTML5
[mtweb] / mw / app / out / default / views / head.php
index bbaadfc..390ce5b 100644 (file)
@@ -1,32 +1,42 @@
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta charset="UTF-8">
+
     <title><?php echo $this->config("site_name"); ?></title>
-    <meta name="description" content="<?php echo $this->config("site_description"); ?>" />
-    <script type="text/javascript"> site_url = "<?php echo $this->path("web"); ?>"; </script>
-    <script type="text/javascript" src="<?php echo $this->out_url("js/md5.js"); ?>"></script>
-    <script type="text/javascript" src="<?php echo $this->out_url("js/login.js"); ?>"></script>
-    <script type="text/javascript" src="<?php echo $this->out_url("js/jquery-1.8.3.min.js"); ?>"></script>
-    <script type="text/javascript" src="<?php echo $this->out_url("js/jquery.colorbox-min.js"); ?>"></script>
-    <script type="text/javascript" src="<?php echo $this->out_url("js/jquery-ui-1.8.12.custom.min.js"); ?>"></script>
-    <script type="text/javascript" src="<?php echo $this->out_url("js/menu.js"); ?>"></script>
-<?php if($this->out_file_exists("js/actions/".$this->etat("mod")."_".$this->etat("controller")."_".$this->etat("action").".js")) : ?>
-    <script type="text/javascript" src="<?php echo $this->out_url("js/actions/".$this->etat("mod")."_".$this->etat("controller")."_".$this->etat("action").".js"); ?>"></script>
-<?php endif; ?>
-<?php if($this->out_file_exists("js/actions/".$this->etat("mod")."_".$this->etat("controller").".js")) : ?>
-    <script type="text/javascript" src="<?php echo $this->out_url("js/actions/".$this->etat("mod")."_".$this->etat("controller").".js"); ?>"></script>
-<?php endif; ?>
-<?php if($this->out_file_exists("js/actions/".$this->etat("mod").".js")) : ?>
+    <meta name="description" content="<?php echo esc_attr($this->config("description")); ?>" />
+
+    <!--[if lt IE 9]>\r
+    <script type="text/javascript" src="<?php echo $this->out_url("js/html5.js"); ?>"></script>\r
+    <![endif]-->
+
+    <?php foreach($this->js_files() as $js_file) : ?>
+    <script type="text/javascript" src="<?php echo $js_file; ?>"></script>
+    <?php endforeach; ?>
+
+    <?php foreach($this->css_files() as $css_file) : ?>
+    <link rel="stylesheet" type="text/css" href="<?php echo $css_file; ?>" />
+    <?php endforeach; ?>
+
+    <?php if($this->out_file_exists("js/script.js")) : ?>
+    <script type="text/javascript" src="<?php echo $this->out_url("js/script.js"); ?>"></script>
+    <?php endif; ?>
+    <?php if($this->out_file_exists("js/actions/".$this->etat("mod").".js")) : ?>
     <script type="text/javascript" src="<?php echo $this->out_url("js/actions/".$this->etat("mod").".js"); ?>"></script>
-<?php endif; ?>
+    <?php endif; ?>
+    <?php if($this->out_file_exists("js/actions/".$this->etat("mod")."_".$this->etat("controller").".js")) : ?>
+    <script type="text/javascript" src="<?php echo $this->out_url("js/actions/".$this->etat("mod")."_".$this->etat("controller").".js"); ?>"></script>
+    <?php endif; ?>
+    <?php if($this->out_file_exists("js/actions/".$this->etat("mod")."_".$this->etat("controller")."_".$this->etat("action").".js")) : ?>
+    <script type="text/javascript" src="<?php echo $this->out_url("js/actions/".$this->etat("mod")."_".$this->etat("controller")."_".$this->etat("action").".js"); ?>"></script>
+    <?php endif; ?>
+
+    <?php if($this->out_file_exists("css/style.css")) : ?>
     <link rel="stylesheet" type="text/css" href="<?php echo $this->out_url("css/style.css"); ?>" />
-    <link rel="stylesheet" type="text/css" href="<?php echo $this->out_url("css/colors.css"); ?>" />
-    <link rel="stylesheet" type="text/css" href="<?php echo $this->out_url("css/colorbox.css"); ?>" />
-    <link rel="stylesheet" type="text/css" href="<?php echo $this->out_url("css/ui-lightness/jquery-ui-1.8.12.custom.css"); ?>" />
-<?php if($this->out_file_exists("css/actions/".$this->etat("mod")."_".$this->etat("controller")."_".$this->etat("action").".css")) : ?>
-    <link rel="stylesheet" type="text/css" href="<?php echo $this->out_url("css/actions/".$this->etat("mod")."_".$this->etat("controller")."_".$this->etat("action").".css"); ?>" />
-<?php endif; ?>
-<?php if($this->out_file_exists("css/actions/".$this->etat("mod")."_".$this->etat("controller").".css")) : ?>
-    <link rel="stylesheet" type="text/css" href="<?php echo $this->out_url("css/actions/".$this->etat("mod")."_".$this->etat("controller").".css"); ?>" />
-<?php endif; ?>
-<?php if($this->out_file_exists("css/actions/".$this->etat("mod").".css")) : ?>
+    <?php endif; ?>
+    <?php if($this->out_file_exists("css/actions/".$this->etat("mod").".css")) : ?>
     <link rel="stylesheet" type="text/css" href="<?php echo $this->out_url("css/actions/".$this->etat("mod").".css"); ?>" />
-<?php endif; ?>
+    <?php endif; ?>
+    <?php if($this->out_file_exists("css/actions/".$this->etat("mod")."_".$this->etat("controller").".css")) : ?>
+    <link rel="stylesheet" type="text/css" href="<?php echo $this->out_url("css/actions/".$this->etat("mod")."_".$this->etat("controller").".css"); ?>" />
+    <?php endif; ?>
+    <?php if($this->out_file_exists("css/actions/".$this->etat("mod")."_".$this->etat("controller")."_".$this->etat("action").".css")) : ?>
+    <link rel="stylesheet" type="text/css" href="<?php echo $this->out_url("css/actions/".$this->etat("mod")."_".$this->etat("controller")."_".$this->etat("action").".css"); ?>" />
+    <?php endif; ?>