Layout static

This commit is contained in:
Michael RICOIS 2016-06-15 17:51:55 +02:00
parent 7fa85f3f28
commit 91bc8403f6
3 changed files with 30 additions and 44 deletions

View File

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

View File

@ -1,23 +1,5 @@
$(function() { $(function() {
$(window).bind("load resize", function() {
var topOffset = 50;
var bottomOffset = 50;
height = ((this.window.innerHeight > 0) ? this.window.innerHeight : this.screen.height) - 1;
height = height - topOffset - bottomOffset - 40;
if (height < 1) height = 1;
if (height > topOffset) {
$("#page-wrap").css("min-height", (height) + "px");
}
});
$('#side-menu').metisMenu(); $('#side-menu').metisMenu();
var element = $('ul#side-menu.nav a').filter(function() {
return this.href == window.location || window.location.href.indexOf(this.href) == 0;
}).addClass('active').parent().parent().addClass('in').parent();
if (element.is('li')) {
element.addClass('active');
}
$('img.flag').on('click', function() { $('img.flag').on('click', function() {
var url = window.location.href; var url = window.location.href;
@ -93,9 +75,9 @@ $(function() {
if ($('a.AncienSiege').length){ if ($('a.AncienSiege').length){
$('a.AncienSiege').qtip({ $('a.AncienSiege').qtip({
hide: { event: "unfocus" }, hide: { event: "unfocus" },
content: { title: {button: true}, text: $('a.AncienSiege').attr('title') }, content: { title: {button:true}, text:$('a.AncienSiege').attr('title') },
style: { width: 350, classes: "ui-tooltip-cream" }, style: { width:350, classes:"ui-tooltip-cream" },
position: { my: "top center", at: "bottom center" } position: { my:"top center", at:"bottom center" }
}); });
$('a.AncienSiege').attr('title', "Cliquez pour consulter les informations d'activité."); $('a.AncienSiege').attr('title', "Cliquez pour consulter les informations d'activité.");
} }
@ -103,11 +85,11 @@ $(function() {
//Tooltip RNVP //Tooltip RNVP
if ($('a.rnvp').length){ if ($('a.rnvp').length){
$('a.rnvp').qtip({ $('a.rnvp').qtip({
hide: { event: "click" }, hide: { event:"click" },
content: { content: {
title: {button: true, text: $('a.rnvp').attr('title')}, title: {button:true, text:$('a.rnvp').attr('title')},
text: function(event,api) { text: function(event,api) {
$.ajax({ url: $(this).data('href') }) $.ajax({ url:$(this).data('href') })
.done(function(html) { .done(function(html) {
api.set('content.text', html) api.set('content.text', html)
}) })
@ -117,12 +99,12 @@ $(function() {
return 'Chargement...'; return 'Chargement...';
} }
}, },
style: { width: 350, classes: "ui-tooltip-cream" }, style: { width:350, classes:"ui-tooltip-cream" },
position: { my: "top center", at: "bottom center" } position: { my:"top center", at:"bottom center" }
}); });
} }
}); });
//var bootstrapButton = $.fn.button.noConflict(); //var bootstrapButton = $.fn.button.noConflict();
//$.fn.bootstrapBtn = bootstrapButton; //$.fn.bootstrapBtn = bootstrapButton;

View File

@ -13,14 +13,15 @@ body {
height: auto !important; height: auto !important;
height: 100%; height: 100%;
/* Negative indent footer by its height */ /* Negative indent footer by its height */
margin: 0 auto -50px; /*margin: 0 auto -50px;*/
/* Pad bottom by footer height */ /* Pad bottom by footer height */
padding: 0 0 40px; /*padding: 0 0 40px;*/
} }
/* Set the fixed height of the footer here */ /* Set the fixed height of the footer here */
#footer { #footer {
height: 50px; height: 50px;
margin: 0 0 0 250px;
background-color: #f8f8f8; background-color: #f8f8f8;
} }
@ -54,14 +55,17 @@ p.bg-classes {
----------------------------------*/ ----------------------------------*/
body { body {
background-color: #f8f8f8; background-color: #f8f8f8;
padding-top: 50px; /*padding-top: 50px;*/
} }
#page-wrap { #page-wrap {
padding: 0 15px; position: inherit;
margin: 0 0 0 250px;
padding: 0 15px;
border-left: 1px solid #e7e7e7;
border-bottom: 1px solid #e7e7e7;
min-height: 568px; min-height: 568px;
background-color: #fff; background-color: #fff;
border-bottom: 1px solid #e7e7e7;
} }
/* /*
@ -74,13 +78,6 @@ body {
} }
}*/ }*/
#page-wrap {
position: inherit;
margin: 0 0 0 250px;
padding: 0 30px;
border-left: 1px solid #e7e7e7;
}
#content { #content {
background-color: #fff; background-color: #fff;
padding: 5px 0; padding: 5px 0;
@ -109,6 +106,13 @@ h3 {
.ui-dialog {text-align:left;} .ui-dialog {text-align:left;}
.ui-widget {font-size: 1em;} .ui-widget {font-size: 1em;}
.ui-autocomplete-loading {background: white url('/themes/default/images/ui-anim_basic_16x16.gif') right center no-repeat; } .ui-autocomplete-loading {background: white url('/themes/default/images/ui-anim_basic_16x16.gif') right center no-repeat; }
.qtip-titlebar{
font-size:13px;
line-height:13px;
}
.qtip-content{
font-size: 13px;
}
div.ui-state-highlight p {margin: 10px;} div.ui-state-highlight p {margin: 10px;}
div.ui-state-highlight a {text-decoration: underline;} div.ui-state-highlight a {text-decoration: underline;}