Astra_Woocommerce::store_widgets_dynamic()
Dynamic Store widgets.
Description
Source
File: inc/compatibility/woocommerce/class-astra-woocommerce.php
public function store_widgets_dynamic() { $shop_filter_array = array( 'name' => esc_html__( 'WooCommerce Sidebar', 'astra' ), 'id' => 'astra-woo-shop-sidebar', 'description' => __( 'This sidebar will be used on Product archive, Cart, Checkout and My Account pages.', 'astra' ), 'before_widget' => '<div id="%1$s" class="ast-woo-sidebar-widget widget %2$s">', 'after_widget' => '</div>', ); /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'woocommerce' ) && astra_get_option( 'shop-filter-accordion' ) ) { $shop_filter_array['before_title'] = '<h2 class="widget-title">'; $shop_filter_array['after_title'] = Astra_Builder_UI_Controller::fetch_svg_icon( 'angle-down', false ) . '</h2>'; $shop_filter_array['before_sidebar'] = '<div class="ast-accordion-layout ast-filter-wrap">'; $shop_filter_array['after_sidebar'] = '</div>'; } else { $shop_filter_array['before_title'] = '<h2 class="widget-title">'; $shop_filter_array['after_title'] = '</h2>'; $shop_filter_array['before_sidebar'] = '<div class="ast-filter-wrap">'; $shop_filter_array['after_sidebar'] = '</div>'; } register_sidebar( apply_filters( 'astra_woocommerce_shop_sidebar_init', $shop_filter_array ) ); }
Expand full source code Collapse full source code View on Trac