| Server IP : 213.186.33.4 / Your IP : 216.73.216.222 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/plugins/siteorigin-panels/js/ |
Upload File : |
/* global _, jQuery */
jQuery( function ( $ ) {
var fullContainer = $( panelsStyles.fullContainer );
if ( fullContainer.length === 0 ) {
fullContainer = $( 'body' );
}
// Stretch all the full width rows
var stretchFullWidthRows = function () {
var $panelsRow = $( '.siteorigin-panels-stretch.panel-row-style' );
$panelsRow.each( function () {
var $$ = $( this );
var stretchType = $$.data( 'stretch-type' );
var defaultSidePadding = stretchType === 'full-stretched-padded' ? '' : 0;
// Reset all the styles associated with row stretching
$$.css( {
'margin-left': 0,
'margin-right': 0,
'padding-left': defaultSidePadding,
'padding-right': defaultSidePadding
} );
var leftSpace = $$.offset().left - fullContainer.offset().left,
rightSpace = fullContainer.outerWidth() - leftSpace - $$.parent().outerWidth();
$$.css( {
'margin-left': - leftSpace,
'margin-right': - rightSpace,
'padding-left': stretchType === 'full' ? leftSpace : defaultSidePadding,
'padding-right': stretchType === 'full' ? rightSpace : defaultSidePadding
} );
var cells = $$.find( '> .panel-grid-cell' );
if ( stretchType === 'full-stretched' && cells.length === 1 ) {
cells.css( {
'padding-left': 0,
'padding-right': 0
} );
}
$$.css( {
'border-left': 0,
'border-right': 0
} );
} );
if ( $panelsRow.length ) {
$( window ).trigger( 'panelsStretchRows' );
}
}
$( window ).on( 'resize load', stretchFullWidthRows );
stretchFullWidthRows();
// This should have been done in the footer, but run it here just incase.
$( 'body' ).removeClass( 'siteorigin-panels-before-js' );
} );