New design
This commit is contained in:
parent
e763002174
commit
73c5120b24
@ -1,39 +1,13 @@
|
||||
<?php if ( $this->navigation()->menu()->hasPages() ) { ?>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div id="logo" class="col-md-3">
|
||||
<img src="<?=$this->theme->pathImg?>/logos/logo.png" width="200" height="60" />
|
||||
</div>
|
||||
<div id="notification" class="col-md-9">
|
||||
<?php echo $this->render('menu-mobile.phtml')?>
|
||||
|
||||
<ul class="navigation">
|
||||
<?php $i = 0; $activeMenudId = 0;?>
|
||||
<?php foreach ($this->navigation()->getContainer() as $page) {?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $class = ''; if ( $page->isActive(true) ) { $class = 'active'; $activeMenudId = $i; } $i++; ?>
|
||||
<li<?php if ( !empty($class) ) { echo ' class="'.$class.'"'; } ?>>
|
||||
|
||||
<a href="#" class="header"><?=$page->label?></a>
|
||||
|
||||
<?php if ( $page->hasPages() ) {?>
|
||||
<ul>
|
||||
<?php foreach ( $page->getPages() as $child ) {?>
|
||||
<?php if ( $child->getHref() == '#') {?>
|
||||
<li class="divider"></li>
|
||||
<?php } else {?>
|
||||
<li<?php if ( $child->isActive(true) ) { echo ' class="active"'; } ?>><a href="<?=$child->getHref()?>"><?=$child->label?></a></li>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
</li>
|
||||
|
||||
<?php }?>
|
||||
</ul>
|
||||
|
||||
<script>
|
||||
$('ul.navigation').accordion({
|
||||
header: '.header',
|
||||
autoHeight: false,
|
||||
collapsible: true,
|
||||
heightStyle: "content",
|
||||
active: <?=$activeMenudId?>,
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php }?>
|
||||
<div class="container-fluid" id="header-separator"> </div>
|
||||
|
@ -1,71 +1,28 @@
|
||||
<?php echo $this->doctype();?>
|
||||
<?php echo $this->doctype()?>
|
||||
<html>
|
||||
<head>
|
||||
<?php echo $this->headMeta();?>
|
||||
<?php echo $this->headTitle();?>
|
||||
<?php echo $this->headStyle();?>
|
||||
<?php echo $this->headLink();?>
|
||||
<?php echo $this->headScript();?>
|
||||
<?php echo $this->headMeta()?>
|
||||
<?php echo $this->headTitle()?>
|
||||
<?php echo $this->headLink()?>
|
||||
<?php echo $this->headScript()?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="box">
|
||||
<div class="row">
|
||||
|
||||
<!-- sidebar -->
|
||||
<div class="column col-sm-3 hidden-xs" id="sidebar">
|
||||
|
||||
<img class="center-block" src="/themes/default/images/logos/logo_sd.gif" width="200" height="65" />
|
||||
|
||||
<?php echo $this->render('header.phtml');?>
|
||||
|
||||
<div class="nav" id="sidebar-footer">
|
||||
|
||||
<?php if ( $this->print ) {?>
|
||||
<a target="_blank" title="<?=$this->translate("Impression")?>" class="btn btn-default btn-sm"
|
||||
href="/editer/ecran/<?=$this->print.'.html'?>" >
|
||||
<span class="glyphicon glyphicon-print"></span>
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ( $this->pdf ) {?>
|
||||
<a target="_blank" title="<?=$this->translate("Impression PDF")?>" class="btn btn-danger btn-sm"
|
||||
href="/editer/pdf/<?=$this->pdf.'.pdf'?>">PDF</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ( $this->xml ) {?>
|
||||
<a target="_blank" title="<?=$this->translate("Export en XML")?>" class="btn btn-primary btn-sm"
|
||||
href="/editer/xml/<?=$this->xml.'.xml'?>">XML</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ( $this->aide ) {?>
|
||||
<a id="aideLigne" title="Aide en ligne" href="#">
|
||||
<img alt="<?=$this->translate("Activer l'aide en ligne")?>" src="/themes/default/images/interfaces/aideligne.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /sidebar -->
|
||||
|
||||
<!-- main -->
|
||||
<div class="column col-sm-9" id="main">
|
||||
<div class="padding">
|
||||
<div class="full col-sm-9">
|
||||
|
||||
<?php echo $this->layout()->content;?>
|
||||
|
||||
</div><!-- /col-9 -->
|
||||
</div><!-- /padding -->
|
||||
</div>
|
||||
<!-- /main -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div id="wrap">
|
||||
<header><?php echo $this->render('header.phtml')?></header>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-md-3 hidden-xs hidden-sm"><?php echo $this->render('menu.phtml')?></div>
|
||||
<div id="content" class="col-lg-9 col-md-9">
|
||||
<?php echo $this->layout()->content?>
|
||||
<div id="footer">
|
||||
<?php echo $this->render('footer.phtml')?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo $this->inlineScript();?>
|
||||
<footer></footer>
|
||||
<?php echo $this->inlineScript()?>
|
||||
</body>
|
||||
</html>
|
41
application/views/default2015/scripts/menu-mobile.phtml
Normal file
41
application/views/default2015/scripts/menu-mobile.phtml
Normal file
@ -0,0 +1,41 @@
|
||||
<?php if ( $this->navigation()->menu()->hasPages() ) { ?>
|
||||
<nav class="navbar navbar-default visible-xs visible-sm">
|
||||
<div class="container-fluid">
|
||||
<!-- Brand and toggle get grouped for better mobile display -->
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
</div>
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
<div class="collapse navbar-collapse" id="navbar-collapse-1">
|
||||
<ul class="nav navbar-nav">
|
||||
<?php $i = 0; $activeMenudId = 0;?>
|
||||
<?php foreach ($this->navigation()->getContainer() as $page) {?>
|
||||
<?php $class = 'dropdown'; if ( $page->isActive(true) ) { $class = 'dropdown active'; $activeMenudId = $i; } $i++; ?>
|
||||
<li<?php if ( !empty($class) ) { echo ' class="'.$class.'"'; } ?>>
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
|
||||
<?=$page->label?> <span class="caret"></span></a>
|
||||
<?php if ( $page->hasPages() ) {?>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
<?php foreach ( $page->getPages() as $child ) {?>
|
||||
<?php if ( $child->getHref() == '#') {?>
|
||||
<li class="divider"></li>
|
||||
<?php } else {?>
|
||||
<li<?php if ( $child->isActive(true) ) { echo ' class="active"'; } ?>>
|
||||
<a href="<?=$child->getHref()?>"><?=$child->label?></a>
|
||||
</li>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div><!-- /.navbar-collapse -->
|
||||
</div><!-- /.container-fluid -->
|
||||
</nav>
|
||||
<?php }?>
|
41
application/views/default2015/scripts/menu.phtml
Normal file
41
application/views/default2015/scripts/menu.phtml
Normal file
@ -0,0 +1,41 @@
|
||||
<?php if ($this->navigation()->menu()->hasPages()) { ?>
|
||||
<div id="menu" data-spy="affix" data-offset-top="95">
|
||||
<?=$this->navigation()->menu();?>
|
||||
|
||||
<div class="icones">
|
||||
<?php if ($this->print) {?>
|
||||
<a target="_blank" title="Impression" href="/editer/ecran/<?=$this->print.'.html'?>">
|
||||
<img alt="<?=$this->translate("Impression")?>" src="/themes/default2015/images/interfaces/printer.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->pdf) {?>
|
||||
<a target="_blank" title="Impression PDF" href="/editer/pdf/<?=$this->pdf.'.pdf'?>">
|
||||
<img alt="<?=$this->translate("Impression en PDF")?>" src="/themes/default2015/images/interfaces/pdf.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->xml) {?>
|
||||
<a target="_blank" title="Export XML" href="/editer/xml/<?=$this->xml.'.xml'?>">
|
||||
<img alt="<?=$this->translate("Export en XML")?>" src="/themes/default2015/images/interfaces/xml.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->aide) {?>
|
||||
<a id="aideLigne" title="Aide en ligne" href="#">
|
||||
<img alt="<?=$this->translate("Activer l'aide en ligne")?>" src="/themes/default2015/images/interfaces/aideligne.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('div#menu ul.navigation').accordion({
|
||||
header: '.header',
|
||||
autoHeight: false,
|
||||
collapsible: true,
|
||||
heightStyle: "content",
|
||||
active: <?=$this->menuId?>
|
||||
});
|
||||
</script>
|
||||
<?php }?>
|
Loading…
Reference in New Issue
Block a user