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} TGP
TGP
Links to {$total_thumbnails|tnumber_format} free pictures and movies!
Updated {date value='today' format='m-d-Y'}

{* Load 20 galleries *} {galleries var=$galleries preview=true type=permanent category=MIXED amount=20 getnew=true allowused=true order=date_approved reorder=date_displayed DESC, date_approved} {* Display loaded galleries as thumbnails in a 5 per row format *} {foreach from=$galleries var=$gallery counter=$counter} {insert location=+5 counter=$counter max=15} {/insert} {/foreach}
Thumb

{* 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}

Submit A Gallery