Overview -------- This is the default template that ships with the software, however it has been modified to display permanent galleries mixed in with the submitted 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 first section of galleries will show 10 submitted galleries and 10 permanent galleries. After each submitted gallery a permanent gallery will be displayed. This will be a table of 20 thumbnails with 5 per row and 4 columns. The second section of galleries will display 100 text links. 50 of them will be submitted galleries and 50 will be permanent galleries. After each submitted gallery a permanent gallery will be displayed. They will be divided into 2 columns of 50 galleries each. Template Code ------------- {define name=globaldupes value=true} {define name=pagedupes value=false}
|
{* Load 50 submitted galleries *}
{galleries
var=$submitted
preview=any
type=submitted
category=MIXED
amount=50
getnew=true
allowused=true
order=date_approved
reorder=build_counter}
{* Load 50 permanent galleries *}
{galleries
var=$permanent
preview=any
type=permanent
category=MIXED
amount=50
getnew=true
allowused=true
order=date_approved
reorder=build_counter}
{* Mix the two sets of loaded galleries, putting a permanent gallery after each submitted gallery *}
{intermix var=$galleries from=$submitted,$permanent location=+1}
{* 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} |