{{ header }}
<div class="article-top">
  <div class="container">
  <ul class="breadcrumb">
    {% for breadcrumb in breadcrumbs %}
    <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
    {% endfor %}
  </ul>
  <h1>{{ heading_title }}</h1>
  <div class="sort-block">
		<span>{{ text_sort }}</span>  
		<div id="sort-select" class="w-select">
		  <div class="bline"></div>
          <select id="input-sort" class="no-select" onchange="location = this.value;">
          {% set var = '-' %}
		  {% for sorts in sorts %}
          {% if sorts.value == '%s-%s'|format(sort, order) %}
          <option value="{{ sorts.href }}" selected="selected">{{ sorts.text }}</option>
          {% else %}
          <option value="{{ sorts.href }}">{{ sorts.text }}</option>
          {% endif %}
          {% endfor %}
          </select>
		</div>
		<span>{{ text_limit }}</span>
		<div id="limit-select" class="w-select">
		  <div class="bline">{{ limit }}</div>
		  <select id="input-limit" class="no-select" onchange="location = this.value;">
            {% for limits in limits %}
            {% if limits.value == limit %}
            <option value="{{ limits.href }}" selected="selected">{{ limits.text }}</option>
            {% else %}
            <option value="{{ limits.href }}">{{ limits.text }}</option>
            {% endif %}
            {% endfor %}
          </select>
		</div>
		</div>
  </div>
  </div>
<div class="container">
  <div class="no-row">{{ column_left }}
    {% if column_left and column_right %}
    {% set class = 'col-sm-6' %}
    {% elseif column_left or column_right %}
    {% set class = 'col-sm-9' %}
    {% else %}
    {% set class = 'col-sm-12' %}
    {% endif %}
    <div id="content" class="{{ class }} showcase-list">{{ content_top }}
      {% if articles %}
      <div class="row">  
        {% for article in articles %} 
        <div class="col-sm-4 art">
    <div class="transition">
      <div class="image"><a href="{{ article.href }}"><img src="{{ article.thumb }}" alt="{{ article.name }}" title="{{ article.name }}" class="img-responsive" /></a></div>
	  <div class="article-block">
        <h4><a href="{{ article.href }}">{{ article.name }}</a></h4>
        <p>{{ article.description | slice(0,70) }}..</p>
	  <span data-toggle="tooltip" title="{{ text_views }} {{ article.viewed }}">
	  <svg xmlns="http://www.w3.org/2000/svg" viewBox="-41 164.9 512 512">
      <path d="M453.9 409.8c-63.2-95.6-148-148.3-238.9-148.3S39.3 314.2-23.9 409.8c-4.4 6.7-4.4 15.5 0 22.2 63.2 95.6 148 148.3 238.9 148.3S390.7 527.6 453.9 432c4.4-6.7 4.4-15.4 0-22.2zM215 540c-73.4 0-143.2-42.1-197.6-119C71.8 344.1 141.6 302 215 302c73.4 0 143.2 42.1 197.6 119-54.4 76.9-124.1 119-197.6 119zm0 0"></path>
      <path d="M215 314.7c-58.6 0-106.3 47.7-106.3 106.3 0 58.6 47.7 106.3 106.3 106.3 58.6 0 106.3-47.7 106.3-106.3 0-58.7-47.7-106.3-106.3-106.3zm0 173.5c-36.4 0-66-30.2-66-67.2s29.7-67.2 66-67.2c36.4 0 66 30.2 66 67.2s-29.6 67.2-66 67.2zm0 0"></path>
      </svg>
	  {{ article.viewed }}
	  </span>
	  <span data-toggle="tooltip" title="{{ article.date_added }}">
	  <svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 512 512">
      <path d="M510 197c-2-6-7-11-13-12l-154-24-70-138a17 17 0 0 0-30 0l-71 138-153 25c-6 1-11 5-13 11s-1 12 4 17l109 110-24 153c-1 6 2 12 7 16s12 4 18 1l138-70 138 70a17 17 0 0 0 18-1c5-4 7-10 6-16l-24-153 110-110c4-5 6-11 4-17zM367 306c-4 4-6 9-5 15l20 129-117-59c-4-3-10-3-15 0l-116 59 20-129c1-6-1-11-5-15l-92-93 129-20c5-1 10-4 12-9l60-117 60 117c2 5 7 8 12 9l129 20-92 93zm0 0"></path>
      </svg>
	  {{ article.rating ? article.rating : '0' }}
	  </span>
	  </div>
    </div>
  </div>
       {% endfor %}
      </div>
      <div class="row">
        <div class="col-sm-6 text-left">{{ pagination }}</div>
      </div>
      {% else %}
      <p>{{ text_empty }}</p>
      <div class="buttons">
        <div class="pull-right"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>
      </div>
      {% endif %}
      </div>
    {{ column_right }}</div>
</div>{{ content_bottom }}
{{ footer }}