<?php
echo $view[ 'actions' ]->render(
new \Symfony\Component\HttpKernel\Controller\ControllerReference(
'AppBundle\\Controller\\CommercialController::CommercialNavigation', []
)
);
?>
<script>
( function( $, DEBUG ) {
function UpdateMastheadSpacing() {
if( Foundation.MediaQuery.atLeast( 'large' ) ) {
var Height = 0;
if( $( '#theme-root > #theme-header' ).length ) {
Height += $( '#theme-header' ).outerHeight();
}
/*
if( $( '#theme-root > .subnav-communities-wrapper' ).length ) {
Height += $( '#theme-root > .subnav-communities-wrapper' ).outerHeight();
}
*/
$( '#theme-root' ).css( { 'padding-top' : Height } );
} else {
$( '#theme-root' ).css( { 'padding-top' : 0 } );
}
}
$( window ).on( 'changed.zf.mediaquery', function( event, newSize, oldSize ) {
UpdateMastheadSpacing();
} );
$( function() {
UpdateMastheadSpacing();
} );
$( window ).on( 'load', function() {
UpdateMastheadSpacing();
} );
} )( jQuery, <?= (int)PIMCORE_DEBUG ?> );
</script>