Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection
Renderer::get_list_styles()
Get the styles for the list element (fixed width).
Method of the class: Renderer{}
No Hooks.
Return
String
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_list_styles( $fixed_width );
- $fixed_width(string) (required)
- Fixed width value.
Renderer::get_list_styles() Renderer::get list styles code WC 9.6.0
protected function get_list_styles( $fixed_width ) { $style = ''; if ( isset( $fixed_width ) ) { $style .= sprintf( 'width:%s;', esc_attr( $fixed_width ) ); $style .= 'margin: 0 auto;'; } return $style; }