'; } add_action('woocommerce_before_shop_loop','bestore_header_toolbar_start',20); } if ( ! function_exists( 'bestore_grid_list_buttons' ) ) : /** * Insert the opening anchor tag for products in the loop. */ function bestore_grid_list_buttons() { // Titles $grid_view = esc_html__( 'Grid view', 'be-store' ); $list_view = esc_html__( 'List view', 'be-store' ); // Active class $grid = 'active '; $list = ''; $output = sprintf( '', esc_html( $grid_view ), esc_attr( $grid ), esc_html( $list_view ), esc_attr( $list ) ); echo wp_kses_post( apply_filters( 'bestore_grid_list_buttons_output', $output ) ); } add_action('woocommerce_before_shop_loop','bestore_grid_list_buttons',25); endif; function bestore_result_count() { get_template_part( 'woocommerce/result-count' ); } add_action('woocommerce_before_shop_loop','bestore_result_count',30); if ( ! function_exists( 'bestore_header_toolbar_end' ) ) { /** * Insert the opening anchor tag for products in the loop. */ function bestore_header_toolbar_end() { echo '
'; } add_action('woocommerce_before_shop_loop','bestore_header_toolbar_end',30); }