
  <div class="page-info">
    <div class="container">
      <div id="breadcrumbs">
        <a href='/' class="first">صفحه اصلی</a> / <a href='/categories/all/'>محصولات</a> /
      </div>

<h1 class="page-title">مجموعه های عمومی</h1>
      
    </div>


  </div>


    <div id="content">
      <div class="container">
          
<div class="content-l">
  <div class="page-controls">
<form action="" class="sort-control" id="sort-by-form" method="get">
  <label for="sort_by" class="sort-control-label">{$lang.order_by}:</label>
				<select class="sort_select" id="sort_by" name="sort_by">
				<option value="published_at"{if $smarty.get.sort_by == 'published_at'} selected="selected"{/if}>{$lang.date}</option>
					<option value="name"{if $smarty.get.sort_by == 'name'} selected="selected"{/if}>{$lang.title}</option>
					<option value="average_rating"{if $smarty.get.sort_by == 'average_rating'} selected="selected"{/if}>{$lang.rating}</option>
				</select>   
				<a href="javascript: void(0);" onclick="submitOrder(this);" title="" class="{if $smarty.get.order == 'asc'}asc{else}desc{/if}">
				<img src="/static/img/{if $smarty.get.order == 'asc'}asc{else}desc{/if}.png"  alt="" /></a>
	      <input id="order-type" name="order" type="hidden" value="{if $smarty.get.order == 'asc'}asc{else}desc{/if}" />
</form>

    <div class="pagination">{$paging}</div>   
  </div>
{if $collections}
  <ul class="collection-list">
  {foreach from=$collections item=c}
    <li class="content-box">
  <a href="/{$languageURL}collections/view/{$c.id}/{$c.name|url}.html" class="collection-image">
  {if $c.photo != ''}
					  	<img alt="{$c.name|escape}" height="140" src="{$data_server}uploads/collections/{$c.photo}" width="260" />
	{else}
					  	<img alt="{$c.name|escape}" height="140" src="{$data_server}img/default-collection.jpg" width="260" />
   {/if}					
   </a>

  <div class="collection-info">
    <h3><a href="/{$languageURL}collections/view/{$c.id}/{$c.name|url}">{$c.name}</a></h3>
    <span>توسط <a href="/{$languageURL}user/{$users[$c.user_id].username}">{$users[$c.user_id].username}</a></span>
    <p>{$c.text|nl2br}</p>  
  </div>

  <div class="collection-meta">
    <strong>{$c.items} {$lang.items}</strong>
    <br />
    
{section name=foo start=1 loop=6 step=1}
{if $c.rating >= $smarty.section.foo.index}<img src="/static/img/star-on.png" alt="" />{else}<img src="/static/img/star-off.png" alt="" />{/if}
{/section}
							
	<br /><small>{$c.votes} امتیاز</small>
  </div>
</li>
{/foreach}
  </ul>
{else}
<div class="content-box vertical-space">{$lang.no_collections}</div>
{/if}
  <div class="pagination">{$paging}</div>
</div>

<div class="sidebar-s sidebar-right">
  <h2 class="box-heading">مجموعه چیست ؟</h2>
  <div class="content-box vertical-space">
    <p style="text-align:justify;">شما می توانید محصولات مورد علاقه خودتان را در یک مجموعه یا چندین مجموعه انتخاب و به نمایش قرار بدهید .</p>
  </div>

  <h2 class="box-heading">جستو در مجموعه ها</h2>
  <div class="content-box vertical-space">
    <form class="sidebar-search" method="get" action="/{$languageURL}search/">
	<input type="text" name="term" value="{$lang.search_collections}" onfocus="this.value='';"
  
    <input id="type" name="type" type="hidden" value="collections" />


  <button type="submit" class="image-button search no-margin">جستجو</button>
</form>
  </div>
</div>

      </div>
    </div>