[ * Include the base template, which sets up some of our variables * ] [ include file="../templates/default/base.tpl.html" ] [ * Include the channel header template * ] [ include file="../templates/default/header.tpl.html" ] [ * Include the sidebar * ] [ include file="../templates/default/sidebar.tpl.html" ]
[ * Get posts for the current channel * ] [ assign var="postsFilter" value=$thisChannel.ChannelName|string_format:"ChannelName='%s' AND Parent=0" ] [ fetching from="posts" filter=$postsFilter into=posts ] [ section name=POSTERBOARD loop=$posts|count ] [ * Retrieve the next post * ] [ assign var=post value=$posts|next ] [ * Display the actual content of the post * ] [ * If this post has extra fields, display them beneath the post * ] [ if $post.Extra ne "" ] [ foreach key=key item=value from=$post.Extra name="postExtras" ] [ /foreach ] [ /if ]
[ $post.Title ]
[ $post.Content ]
[ $key ]: [ $value ]
[ * If the user is allowed to write replies to this channel, embed the Reply form directly underneath each post * ] [ LIVEDATA ] [ if $thisSession.UserRights|indexOf:"y" !== false ] [ /if ] [ /LIVEDATA ] [ * If there are no posts to display, display that fact * ] [ sectionelse ]
Welcome to [ $thisSite.Defaults.Name ]!

Welcome to [ $thisSite.Defaults.Name ]. At the moment, "[ $thisChannel.ChannelName ]" (this particular channel) does not have any posts in it, so there is nothing to display except this default message — however, you can change this if you are a registered user by logging in and posting something here.

Alternatively, you can browse the other channels or search the site for something specific; or, if you have questions, you can [ mailto address=$thisSite.Defaults.Email text="contact the webmaster" encode="javascript_charcode" extra="title='Contact the webmaster'" ].

[ /section ] [ include file="../templates/default/footer.tpl.html" ]