nouveau module "models" dans l'environnement
[mtweb] / mw / app / out / default / views / head.php
index 390ce5b..8a252ca 100644 (file)
@@ -1,12 +1,15 @@
     <meta charset="UTF-8">
 
     <title><?php echo $this->config("site_name"); ?></title>
-    <meta name="description" content="<?php echo esc_attr($this->config("description")); ?>" />
+    <?php if($this->config("description")) : ?>
+    <meta name="description" content="<?php echo $this->helper("mw_helper_out")->esc_attr($this->config("description")); ?>" />
+    <?php endif; ?>
 
     <!--[if lt IE 9]>\r
     <script type="text/javascript" src="<?php echo $this->out_url("js/html5.js"); ?>"></script>\r
     <![endif]-->
 
+    <script type="text/javascript"> mw_site_url = "<?php echo $this->path("web") ?>"; </script>
     <?php foreach($this->js_files() as $js_file) : ?>
     <script type="text/javascript" src="<?php echo $js_file; ?>"></script>
     <?php endforeach; ?>