{% comment %}Basket icon on every public page; opens the drawer in drawer mode (3.11), stays a link otherwise and on the basket page.{% endcomment %} {% load shop_basket %}{% get_basket_settings as basket_settings %}{% url 'basket:summary' as basket_url %} {% with item_count=request.basket.num_items|default:0 %} {% if item_count %}{{ item_count }}{% endif %} {% endwith %}