siteorigin_panels_css_cell_weight, $cell[weight], $row, $ri, $cell, $ci – 1, $panels_data, $post_id
siteorigin_panels_css_cell_weight, $cell[weight], $row, $ri, $cell, $ci – 1, $panels_data, $post_id
Appears in: siteorigin-panels.2.36.0
Hook Type: filter
Displaying hooks found in version: siteorigin-panels.2.36.0apply_filters('siteorigin_panels_css_cell_weight, $cell[weight], $row, $ri, $cell, $ci – 1, $panels_data, $post_id') is found 2 times:
- /inc/renderer-legacy.php line 61
$cell_count = count( $row['cells'] ); // Add the cell sizing foreach ( $row['cells'] as $ci => $cell ) { $weight = apply_filters( 'siteorigin_panels_css_cell_weight', $cell['weight'], $row, $ri, $cell, $ci - 1, $panels_data, $post_id ); // Add the width and ensure we have correct formatting for CSS. $css->add_cell_css( $post_id, $ri, $ci, '', array( 'width' => round( $weight * 100, 4 ) . '%', ) ); } - /inc/renderer.php line 274
} // Add the cell sizing foreach ( $row['cells'] as $ci => $cell ) { $weight = apply_filters( 'siteorigin_panels_css_cell_weight', $cell['weight'], $row, $ri, $cell, $ci - 1, $panels_data, $post_id ); $rounded_width = round( $weight * 100, 4 ) . '%'; $calc_width = 'calc(' . $rounded_width . ' - ( ' . ( 1 - $weight ) . ' * ' . $gutter . ' ) )'; // Add the width and ensure we have correct formatting for CSS. $css->add_cell_css( $post_id, $ri, $ci, '', array( 'width' => array(