Astra_SureCart::sc_shop_content_layout( string $content_layout )
SureCart Shop Container
Description
Parameters
- $content_layout
-
(string) (Required) Layout type.
Return
(string) $content_layout Layout type.
Source
File: inc/compatibility/surecart/class-astra-surecart.php
public function sc_shop_content_layout( $content_layout ) { if ( $this->astra_is_surecart_shop_page() ) { $sc_shop_layout = astra_toggle_layout( 'archive-' . $this->post_type . '-ast-content-layout', 'single', false ); if ( 'default' !== $sc_shop_layout && ! empty( $sc_shop_layout ) ) { $content_layout = $sc_shop_layout; } } return apply_filters( 'astra_get_store_content_layout', $content_layout ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |