app/Resources/views/Includes/commercial-header.html.php line 3

Open in your IDE?
  1. <?php
  2.     echo $view'actions' ]->render(
  3.         new \Symfony\Component\HttpKernel\Controller\ControllerReference(
  4.             'AppBundle\\Controller\\CommercialController::CommercialNavigation', []
  5.         )
  6.     );
  7. ?>
  8. <script>
  9.     ( function( $, DEBUG ) {
  10.         function UpdateMastheadSpacing() {
  11.             if( Foundation.MediaQuery.atLeast( 'large' ) ) {
  12.                 var Height = 0;
  13.                 if( $( '#theme-root > #theme-header' ).length ) {
  14.                     Height += $( '#theme-header' ).outerHeight();
  15.                 }
  16.                 /*
  17.                 if( $( '#theme-root > .subnav-communities-wrapper' ).length ) {
  18.                     Height += $( '#theme-root > .subnav-communities-wrapper' ).outerHeight();
  19.                 }
  20.                 */
  21.                 $( '#theme-root' ).css( { 'padding-top' : Height } );
  22.             } else {
  23.                 $( '#theme-root' ).css( { 'padding-top' : 0 } );
  24.             }
  25.         }
  26.         $( window ).on( 'changed.zf.mediaquery', function( event, newSize, oldSize ) {
  27.             UpdateMastheadSpacing();
  28.         } );
  29.         $( function() {
  30.             UpdateMastheadSpacing();
  31.         } );
  32.         $( window ).on( 'load', function() {
  33.             UpdateMastheadSpacing();
  34.         } );
  35.     } )( jQuery, <?= (int)PIMCORE_DEBUG ?> );
  36. </script>