Code: Select all
{LISEDownloads action='category' category='example1,example2' show_items=1 orderby='item_created|DESC'}
Code: Select all
{LISEDownloads action='category' category='example1,example2' show_items=1 orderby='item_created|DESC'}
Code: Select all
<!-- categories -->
<ul>
{foreach from=$categories item=category}
<li class="category-{$category->alias}">
<a class="category-name" href="{$category->url}">{$category->name} ({$category->items|count})</a>
{if $category->items|count > 0}
<ul>
{LISEtest category=$category->alias orderby='item_created|DESC' template_summary='list'}
</ul>
{/if}
</li>
{/foreach}
<ul>
<!-- categories //-->
Code: Select all
{LISEtest action='category'}
Code: Select all
{if $items|@count > 0}
{foreach from=$items item=item}
<li>{$item->title}</li>
{/foreach}
{/if}
Code: Select all
<!-- categories -->
<div class="downloads">
{foreach $categories as $category}
{*$category|@print_r*}
<!-- start loop{$category@iteration} -->
{if $category->depth == 1}
{if $category->prevdepth > 1 && $category@iteration != 1}
</ul>
</div>
<!-- end category -->
{/if}
<div class="kategorie depth{$category->depth} prevdepth{$category->prevdepth}" id="{$category->alias}">
<h3>{$category->menutext}</h3>
{if $category@last}
<div class="mitteilung hinweis">Momentan gibt es nichts zum Herunterladen.</div>
</div>
{continue}
{/if}
<ul>
{else}
<li class="depth{$category->depth} prevdepth{$category->prevdepth}">
{if !empty($category->datei)}<a href="{uploads_url}/downloads/{$category->datei}">{/if}
{$ext=$category->datei|pathinfo:$smarty.const.PATHINFO_EXTENSION|lower}
{if $ext == 'jpg' || $ext == 'jpeg' || $ext == 'png' || $ext == 'gif' || $ext == 'tif' || $ext == 'tiff'}
{CGSmartImage src="{uploads_url}/downloads/{$category->datei}" filter_resize="w,150" quality="86"}
{/if}
{$category->menutext}
{if !empty($category->datei)}</a>{/if}
{if !empty($category->beschreibung)}<div class="beschreibung">{$category->beschreibung}</div>{/if}
{if !empty($category->datum)}<div class="datum">{$category->datum}</div>{/if}
</li>
{if $category@last}
</ul>
</div>
<!-- last -->
{/if}
{/if}
<!-- end -->
{/foreach}
</div>
<!-- categories //-->