Simplification du theme : retrait du footer

This commit is contained in:
Michael RICOIS 2016-11-17 12:44:52 +01:00
parent 7d24c57771
commit f6f03bf098
7 changed files with 83 additions and 15 deletions

View File

@ -0,0 +1,15 @@
<?php
return array(
array(
'label' => "Index",
'module' => 'help',
'controller' => 'index',
'action' => 'index',
),
array(
'label' => "A propos",
'module' => 'help',
'controller' => 'index',
'action' => 'about',
),
);

View File

@ -107,6 +107,8 @@
'default', true)?>">Nouveautés</a></li>
<li><a href="<?=$this->url(array('module'=>'help', 'controller'=>'index', 'action'=>'index'),
'default', true)?>">Aide</a></li>
<li><a href="<?=$this->url(array('module'=>'help', 'controller'=>'index', 'action'=>'about'),
'default', true)?>">A propos</a></li>
<li role="separator" class="divider"></li>
<li><a href="<?=$this->url(array('module'=>'user', 'controller'=>'order', 'action'=>'index'),
'default', true)?>">Commandes</a></li>

View File

@ -12,9 +12,6 @@
<div id="page-wrap">
<?php echo $this->layout()->content?>
</div>
<div id="footer">
<?php echo $this->render('footer.phtml'); ?>
</div>
</div>
<?php echo $this->inlineScript(); ?>
</body>

View File

@ -11,4 +11,5 @@ class Help_IndexController extends Zend_Controller_Action
public function indexAction(){}
public function aboutAction(){}
}

View File

@ -0,0 +1,32 @@
<div id="content">
<div class="page-header">
<h1>A propos</h1>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Mentions Légales</h3>
</div>
<ul class="list-group">
<li class="list-group-item"><a href="#">Consulter les mentions légales</a></li>
<li class="list-group-item">
<p class="text-muted credit">&copy; 2006-<?php echo date('Y')?>
<a href="http://www.scores-decisions.com">Scores &amp; Décisions SAS</a> -
<?=$this->translate("Tous droits r&eacute;serv&eacute;s")?>
</li>
</ul>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Application</h3>
</div>
<ul class="list-group">
<li class="list-group-item">Version : 2.9.0-dev</li>
<li class="list-group-item">Date de mise à jour : 0000-00-00</li>
</ul>
</div>
</div>

View File

@ -111,7 +111,18 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract
$view->headScript()
->appendFile('/libs/metisMenu/metisMenu.min.js', 'text/javascript');
break;
case 'help':
$view = $layout->getView();
$view->MenuAdvanced = true;
$view->MenuLabel = 'Aide';
$config = include APPLICATION_PATH . '/configs/menu.help.php';
$this->container = new Zend_Navigation($config);
$view->navigation($this->container);
$view->headLink()
->appendStylesheet('/libs/metisMenu/metisMenu.min.css', 'all');
$view->headScript()
->appendFile('/libs/metisMenu/metisMenu.min.js', 'text/javascript');
break;
default:
// Menu Default
// --- Affichage page error

View File

@ -2,6 +2,16 @@
//$.fn.bootstrapBtn = bootstrapButton;
$(function(){
$('ul#side-menu').metisMenu();
$(window).bind("load resize", function() {
topOffset = 52;
height = ((this.window.innerHeight > 0) ? this.window.innerHeight : this.screen.height) - 1;
height = height - topOffset;
if (height < 1) height = 1;
if (height > topOffset) {
$("#page-wrap").css("min-height", (height) + "px");
}
});
$('img.flag').on('click', function() {
var url = window.location.href;
$.post('/user/lang', {lang: $(this).attr('id')}, function(data){