Jump to content

Wyrównanie kategorii na stronie


Recommended Posts

Witam

 

Bardzo proszę o pomoc w sprawie rozmieszczenia kategorii na stronach. Chodzi o podstronę

http://projektytestowe.pl/spichlerzpolski/index.php?id_category=6&controller=category

Chodzi o to że mam zapisane w jednym rzędzie 4 kategorie dlatego chyba zdjęcia ustawiają się tak nierówno. Chciałbym mieć wszystkie kategorie wyrównane do lewej i po trzy w jednym rzędzie. Gdzie to się ustawia ?

 

Z góry dziękuje za pomoc.

Share this post


Link to post
Share on other sites

Może pomoże jak skopiuje kod z tego pliku. Ja tu nic w tym pliku nie widzę. Myślałem że można to ostawić z poziomu panelu admina.

 

 
{include file="$tpl_dir./errors.tpl"}
 
{if isset($category)}
{if $category->id AND $category->active} 
{if $scenes || $category->description || $category->id_image}
<div class="content_scene_cat block_box">
{if $scenes}
<!-- Scenes -->
{include file="$tpl_dir./scenes.tpl" scenes=$scenes}
{else}
<!-- Category image -->
{if $category->id_image}
<div class="align_center">
<img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage"  />
</div>
{/if}
{/if}
 
{if $category->description}
<div class="cat_desc">
{if strlen($category->description) > 120}
<p id="category_description_short">{$category->description|truncate:120}</p>
<p id="category_description_full" style="display:none">{$category->description}</p>
<a href="#" onclick="$('#category_description_short').hide(); $('#category_description_full').show(); $(this).hide(); return false;" class="lnk_more">{l s='More'}</a>
{else}
<p>{$category->description}</p>
{/if}
</div>
{/if}
</div>
{/if}  
<div class="block_box_center">
<h4 class="title-category">
{strip}
{$category->name|escape:'htmlall':'UTF-8'}
{if isset($categoryNameComplement)}
{$categoryNameComplement|escape:'htmlall':'UTF-8'}
{/if}
{/strip}
<span class="fs11 resumecat category-product-count">
/ {include file="$tpl_dir./category-count.tpl"}
</span>
</h4>
 
{if isset($subcategories)}
<!-- Subcategories -->
<div id="subcategories">
<h3>{l s='Subcategories'}</h3>
<div class="inline_list">
{foreach from=$subcategories item=subcategory name=subcategories}
<div class="row-fluid">
{/if} 
<div class="span4">
<div class="category-container product-container"> 
<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img">
{if $subcategory.id_image}
<img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'large_default')}" alt=""/>
{else}
<img src="{$img_cat_dir}default-large_default.jpg" alt="" />
{/if}
</a>
<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name s_title_block">{$subcategory.name|escape:'htmlall':'UTF-8'}</a>
{if $subcategory.description}
<p class="product_desc">{$subcategory.description|escape|truncate:85:'...':true}</p>
{/if}
</div>
</div>
{if [email protected]%4==0||$smarty.foreach.subcategories.last}
</div>
{/if}
{/foreach}
</div>
<br class="clear"/>
</div>
{/if}
 
{if $products}
<div class="products-list">
<div class="content_sortPagiBar">
<div class="row-fluid sortPagiBar">                    
<div class="span3 hidden-phone productsview">
<div class="inner">
<span>{l s='View as:'}  </span>
 <div id="productsview">
<a href="#" rel="view-grid"><i class="icon-th-large active" ></i></a>
<a href="#"  rel="view-list"><i class="icon-list"></i></a>
 </div>
</div>
</div>
<div class="span6 hidden-phone">
<div class="inner">
{include file="./product-sort.tpl"}
</div>
</div> 
<div class="span3">
<div class="inner">
{include file="./product-compare.tpl"}
</div>
</div>
</div>
</div> 
{include file="./product-list.tpl" products=$products} 
<div class="content_sortPagiBar">
<div class="row-fluid sortPagiBar">                    
<div class="span3 hidden-phone productsview">
<div class="inner">
<span>{l s='View as:'}  </span>
 <div id="productsview">
<a href="#" rel="view-grid"><i class="icon-th-large active" ></i></a>
<a href="#"  rel="view-list"><i class="icon-list"></i></a>
 </div>
</div>
</div>
<div class="span6 hidden-phone">
<div class="inner">
{include file="./product-sort.tpl"}
</div>
</div> 
<div class="span3">
<div class="inner">
{include file="./product-compare.tpl"}
</div>
</div>
</div>
</div> 
 
{include file="./pagination.tpl"}
 
</div>
{/if}
</div>
{elseif $category->id}
<p class="warning">{l s='This category is currently unavailable.'}</p>
{/if}
{/if}
 

Share this post


Link to post
Share on other sites

 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More