{% paginate collection.products by 48 %}




<div id="sidebar" class="threecol">
<h1>{{ collection.title }}</h1>

{% include 'sidebar' %}

</div>

<ul id="collection-width-sidebar" class="ninecol last">
    <div id="collection-description-with-sidebar">{{ collection.description }}</div>
    {% include 'product-loop' %}    
</ul>

        <div id="bottom-paginate-bar" class="twelvecol">
                {% if paginate.pages > 1 %}
                <ul class="pagination">
                    {% if paginate.previous %}
                      <li class="arrow">{{ '&laquo;' | link_to: paginate.previous.url }}</li>
                    {% endif %}
                    {% for part in paginate.parts %}
                      {% if part.is_link %}
                        <li>{{ part.title | link_to: part.url }}</li>
                      {% else %}
                        {% if part.title == '&hellip;' %}
                        <li>{{ part.title }}</li>
                        {% else %}
                        <li class="current">{{ part.title | link_to: part.url }}</li>
                        {% endif %}
                      {% endif %}
                    {% endfor %}
                    {% if paginate.next %}
                      <li class="arrow">{{ '&raquo;' | link_to: paginate.next.url }}</li>
                    {% endif %}
                {% if collection.products_count > 32 %}
                    <li><a href="/collections/{{ collection.handle }}?view=all" style="margin-left: 10px">View All</a></li>
                {% endif %}
                </ul>
                {% endif %}         
        </div>

{% endpaginate %}


