Overview -------- This is the default template that ships with the software, however it has been modified to display only permanent galleries. It will show a top section of 20 thumbnail links and a bottom section of 100 text links. This is designed for a site that will be doing only one "Build With New" per day. Each of the defined {galleries} functions is configured to pull new galleries from the database each time a "Build With New" is done. The only change from the default template is the type option which has been set to permanent. Template Code ------------- {define name=globaldupes value=true} {define name=pagedupes value=false}
|
{* Load 100 galleries *}
{galleries
var=$galleries
preview=any
type=permanent
category=MIXED
amount=100
getnew=true
allowused=true
order=date_approved
reorder=date_displayed DESC, date_approved}
{* Display loaded galleries as text links in 2 columns (50 per column) *}
{foreach from=$galleries var=$gallery counter=$counter}
{$gallery.date|tdate::$config.date_format} {$gallery.thumbnails|htmlspecialchars} {$gallery.category|htmlspecialchars} {if $counter == 50} | {/if} {/foreach} |