{# # Product Pagination (Bootstrap 5 Override) # # Renders pagination for the product archive using Bootstrap 5 pagination component. # # Expected context: # total - Total number of pages # current - Current page number (1-based) # # WooCommerce PHP equivalent: loop/pagination.php # # @package WcBootstrap # @since 0.1.0 #} {% set max_pages = total|default(1) %} {% set current_page = current|default(1) %} {% if max_pages > 1 %} {% include 'components/pagination.html.twig' with { current_page: current_page, max_pages: max_pages } %} {% endif %}