'; } add_action('woocommerce_before_shop_loop','bcshop_header_toolbar_start',20); } if ( ! function_exists( 'bcshop_grid_list_buttons' ) ) : /** * Insert the opening anchor tag for products in the loop. */ function bcshop_grid_list_buttons() { // Titles $grid_view = esc_html__( 'Grid view', 'bc-shop' ); $list_view = esc_html__( 'List view', 'bc-shop' ); // 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( 'bcshop_grid_list_buttons_output', $output ) ); } add_action('woocommerce_before_shop_loop','bcshop_grid_list_buttons',25); endif; function bcshop_result_count() { get_template_part( 'woocommerce/result-count' ); } add_action('woocommerce_before_shop_loop','bcshop_result_count',30); if ( ! function_exists( 'bcshop_header_toolbar_end' ) ) { /** * Insert the opening anchor tag for products in the loop. */ function bcshop_header_toolbar_end() { echo '
'; } add_action('woocommerce_before_shop_loop','bcshop_header_toolbar_end',30); }