Rajout des aides de vue et d'action
[zf2.biz/galerie.git] / module / Application / view / layout / layout.phtml
1 <?php echo $this->doctype(); ?>
2
3 <html lang="en">
4     <head>
5         <meta charset="utf-8">
6         <?php echo $this->headTitle('ZF2 '. $this->translate('Skeleton Application'))->setSeparator(' - ')->setAutoEscape(false) ?>
7
8         <?php echo $this->headMeta()->appendName('viewport', 'width=device-width, initial-scale=1.0') ?>
9
10         <!-- Le styles -->
11         <?php echo $this->headLink(array('rel' => 'shortcut icon', 'type' => 'image/vnd.microsoft.icon', 'href' => $this->basePath() . '/images/favicon.ico'))
12                         ->prependStylesheet($this->basePath() . '/css/bootstrap-responsive.min.css')
13                         ->prependStylesheet($this->basePath() . '/css/style.css')
14                         ->prependStylesheet($this->basePath() . '/css/bootstrap.min.css')
15                         ->prependStylesheet($this->basePath() . '/css/jquery-ui.css')
16                         ->prependStylesheet($this->basePath() . '/css/jquery-dataTables.css') ?>
17
18         <!-- Scripts -->
19         <?php echo $this->headScript()->prependFile($this->basePath() . '/js/html5.js', 'text/javascript', array('conditional' => 'lt IE 9',))
20                                       ->prependFile($this->basePath() . '/js/bootstrap.min.js')
21                                       ->prependFile($this->basePath() . '/js/perso.js')
22                                       ->prependFile($this->basePath() . '/js/jquery-dataTables.js')
23                                       ->prependFile($this->basePath() . '/js/jquery-ui.js')
24                                       ->prependFile($this->basePath() . '/js/jquery.min.js') ?>
25
26     </head>
27     <body>
28         <div class="navbar navbar-inverse navbar-fixed-top">
29             <div class="navbar-inner">
30                 <div class="container">
31                     <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
32                         <span class="icon-bar"></span>
33                         <span class="icon-bar"></span>
34                         <span class="icon-bar"></span>
35                     </a>
36                     <a class="brand" href="<?php echo $this->url('home') ?>"><?php echo $this->translate('Skeleton Application') ?></a>
37                     <div class="nav-collapse collapse">
38                         <ul class="nav">
39                             <li class="active"><a href="<?php echo $this->url('home') ?>"><?php echo $this->translate('Home') ?></a></li>
40                         </ul>
41                     </div><!--/.nav-collapse -->
42                 </div>
43             </div>
44         </div>
45         <div class="container">
46 <?php
47     $views = $this->viewModel()->getCurrent()->getChildren();
48     $main_view = $views[0];
49     $variables = $main_view->getVariables();
50 ?>
51 <?php if (isset($variables['infos'])) : ?>
52 <?php foreach($main_view->infos as $info): ?>
53     <?php echo $this->format($info, 'info'); ?>
54 <?php endforeach; ?>
55 <?php endif; ?>
56 <?php if (isset($main_view->warnings)) : ?>
57 <?php foreach($warnings as $warning): ?>
58     <?php echo $this->format($warning, 'warning'); ?>
59 <?php endforeach; ?>
60 <?php endif; ?>
61 <?php if (isset($main_view->errors)) : ?>
62 <?php foreach($errors as $error): ?>
63     <?php echo $this->format($error, 'error'); ?>
64 <?php endforeach; ?>
65 <?php endif; ?>
66             <hr />
67             <?php echo $this->content; ?>
68             <hr />
69             <footer>
70                 <p>&copy; 2005 - 2012 by Zend Technologies Ltd. <?php echo $this->translate('All rights reserved.') ?></p>
71             </footer>
72         </div> <!-- /container -->
73         <?php echo $this->inlineScript() ?>
74     </body>
75 </html>