

<div class="box_innerhead">{#Gallery_Name#}</div>

<div class="gallery_categs_search">
<form method="post" action="index.php?p=gallery&amp;area={$area}">
    <input style="width:200px" type="text" class="input" name="q" id="qs" value="{$smarty.request.q|koobispecialchars|replace:'empty':''}" />
    <select class="input" name="ascdesc">
      <option value="asc" {if $smarty.request.ascdesc=='asc'}selected="selected" {/if}>{#asc_t#}</option>
      <option value="desc" {if $smarty.request.ascdesc=='desc'}selected="selected" {/if}>{#desc_t#}</option>
    </select>
    
    <select class="input" name="searchtype">
      <option value="full" {if $smarty.request.searchtype=='full'}selected="selected" {/if}>{#SearchFull#}</option>
      <option value="tags" {if $smarty.request.searchtype=='tags'}selected="selected" {/if}>{#SearchTags#}</option>
    </select>
    <input name="log" type="hidden" id="log" value="1" />
    <input type="submit" class="button" value="{#Search#}" />
</form>
</div>



  {foreach from=$galleries item=g}
  {assign var=count value=$count+1}
   
    <div class="gallery_categs">
    
    <a href="index.php?p=gallery&amp;action=showincluded&amp;categ={$g->Id}&amp;name={$g->Name|seotitle}&amp;area={$area}"><img class="gallery_categs_img" src="{if $g->Bild}uploads/galerie_icons/{$g->Bild}{else}{$imgpath_page}noimage.gif{/if}" alt="" border="0" align="left" /></a>
    
    <h2><a href="index.php?p=gallery&amp;action=showincluded&amp;categ={$g->Id}&amp;name={$g->Name|seotitle}&amp;area={$area}">{$g->Name|koobispecialchars}</a></h2>
    <br />
    {$g->Text|default:'Leider keine Beschreibung vorhanden.'|truncate:'200'}
    {if $g->Tags}
    <br />
    <br />
    <div class="gallery_info_small">
    <img class="absmiddle" src="{$imgpath}/page/tags.png" alt="{#Tags#}" /><strong>{#Tags#}:</strong>
    {foreach from=$g->Tags item=ttags name=tag}{if $ttags!=''}<a href="index.php?p=gallery&amp;q={$ttags|linkkoobispecialchars}&amp;searchtype=tags{$def_sort_n}&amp;page=1&amp;area={$area}">{$ttags|tagchars}</a>{if !$smarty.foreach.tag.last}, {/if}{/if}{/foreach}
    </div>
    {/if}

    </div>
    <div class="clear"></div>
   {if $count % $galsettings->Kategorien_zeile == 0}{/if}
   {/foreach}


<br />


{if $GalNavi}
<div align="center">
{$GalNavi}
</div>
{/if}

<div class="tagcloud">
<div>{#Tagcloud#}</div>
<br />
{foreach from=$tagCloud item=tC}
<span class="{$tC->Class}"><a href="index.php?p=gallery&amp;q={$tC->Name|linkkoobispecialchars}&amp;searchtype=tags{$def_sort_n}&amp;page=1&amp;area={$area}">{$tC->Name|tagchars}<!--({$tC->GCount})--></a></span>
{/foreach}
</div>
