Astra_SureCart::sc_shop_sidebar_boxed_layout( string $is_style_boxed )
SureCart Shop Sidebar Style
Description
Parameters
- $is_style_boxed
-
(string) (Required) Layout style.
Return
(string) $is_style_boxed Layout style.
Source
File: inc/compatibility/surecart/class-astra-surecart.php
public function sc_shop_sidebar_boxed_layout( $is_style_boxed ) {
if ( $this->astra_is_surecart_shop_page() ) {
$sc_shop_layout_style = astra_get_option( 'archive-' . $this->post_type . '-sidebar-style', 'default' );
if ( 'boxed' === $sc_shop_layout_style ) {
$is_style_boxed = true;
}
}
return apply_filters( 'astra_get_store_sidebar_style', $is_style_boxed );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |