<div class="slider_offer slider_container">
<div id="slider_offer_close" class="icon--cross"></div>
<div class="inside">
<div class="offer-form">
<h2>Angebot als PDF per E-Mail erhalten</h2>
<form action="<?php echo $this->form->action; ?>" id="<?php echo $this->form_offer->formId; ?>" method="<?php echo $this->form_offer->method; ?>" enctype="<?php echo $this->form_offer->enctype; ?>"<?php echo $this->form_offer->attributes; ?><?php echo $this->form_offer->novalidate; ?>>
<input type="hidden" name="FORM_SUBMIT" value="<?php echo $this->form_offer->formId; ?>">
<input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
<div class="addresses block">
<div class="address_wrapper"><div class="inside">
<?php foreach ($this->form_offer->widgets as $name => $widget): ?>
<?php echo $widget->parse(); ?>
<?php endforeach; ?>
</div></div>
</div>
</form>
</div>
</div>
</div>
<div class="slider_order slider_container">
<div id="slider_order_close" class="icon--cross"></div>
<div class="inside">
<div class="order-form">
<h2>Bestellung</h2>
<form action="<?php echo $this->form->action; ?>" id="<?php echo $this->form->formId; ?>" method="<?php echo $this->form->method; ?>" enctype="<?php echo $this->form->enctype; ?>"<?php echo $this->form->attributes; ?><?php echo $this->form->novalidate; ?>>
<input type="hidden" name="FORM_SUBMIT" value="<?php echo $this->form->formId; ?>">
<input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
<div class="addresses block">
<div class="address_wrapper"><div class="inside">
<?php foreach ($this->form->widgets as $name => $widget): ?>
<?php if (in_array($name, array('order_print', 'order_options'))): continue; endif; ?>
<?php echo $widget->parse(); ?>
<?php endforeach; ?>
</div></div>
</div>
</form>
</div>
</div>
</div>
<div class="fixed_footer">
<div class="footer_actions">
<div class="inside">
<div class="block" style="width: 100%">
<div class="jump_to_start_button">
<a href="<?= $this->boxmaker_jumpToStart; ?>" class="button">weiter einkaufen</a>
</div>
<div id="slider_offer_button" class="button slider_button" data-container="slider_offer"><?= $GLOBALS['TL_LANG']['MSC']['slider_offer_button']; ?></div>
<div class="slider_order_button_container">
<div id="slider_order_button" class="button slider_button" data-container="slider_order"><?= $GLOBALS['TL_LANG']['MSC']['slider_order_button']; ?></div>
</div>
</div>
</div>
</div>
</div>
<script>
(function (jQuery) {
$( document ).ready(function() {
// shipping address slider
$('#opt_enable_shipping_address_0').click(function() {
var el = $(this);
if (el.is(':checked')) {
$('.la .inside > fieldset').slideDown({duration: 150});
} else {
$('.la .inside > fieldset').slideUp({duration: 150});
}
});
// Offer form slider
$('#slider_offer_button').click(function () {
$('.slider_offer').slideDown('fast');
$('html, body').animate({scrollTop: '0px'}, 300);
$('#top').css('overflow', 'hidden');
});
$('#slider_offer_close').click(function () {
$('.slider_offer').slideUp('fast');
$('html, body').animate({scrollTop: '0px'}, 300);
$('#top').css('overflow', 'auto');
});
// order form slider
$('#slider_order_button').click(function () {
$('.slider_order').slideDown('fast');
$('#top').css('overflow', 'hidden');
});
$('#slider_order_close').click(function () {
$('.slider_order').slideUp('fast');
$('#top').css('overflow', 'auto');
});
$(window).scroll(function () {
doFooter();
});
$(window).resize(function () {
doFooter();
});
var doFooter = function () {
var b = ($(window).height() + $(document).scrollTop() - $("#footer").position().top);
if(b > 0) {
$('.fixed_footer').css('bottom', b);
} else {
$('.fixed_footer').css('bottom', 0);
}
var h = $(window).height() - $('#header').height();
}
doFooter();
});
})(window.jQuery);
</script>