[ LIVEDATA ] [ * Display the channel icon, if one is specified * ] [ if $thisChannel.Icon ne "" ] [ /if ] [ * Create the "Previous" link only if we are not starting from the beginning of the query results * ] [ if $viewParams.offset > 0 ] [ /if ] [ * Create the "Next" link only if clicking it won't take us past the end of our query results * ] [ if $viewParams.max < $POST_COUNT ] [ /if ]
[ $thisChannel.ChannelName ] [ assign var="PREV_PAGE" value=$viewParams.offset-$viewParams.max ] [ if $POST_COUNT > 0 ] [ assign var="ITEM_COUNT" value=$viewParams.offset+$POST_COUNT ] You are viewing [ if $ITEM_COUNT > 1 ] [ $viewParams.max ] [ if $viewParams.max > 1 ] to [ $viewParams.offset+$viewParams.max ] [ /if ] of [ /if ] [ $ITEM_COUNT ] total [ "item"|plural:$ITEM_COUNT ]. [ /if ] [ * Create the sort box only if we have more than one query result * ] [ if $RESULT_COUNT > 1 ] Sort by: date title="Sort by date (oldest posts first)" onMouseOver="window.status='Sort by date (oldest posts first)';return true" onMouseOut="window.status='';return true">◅ | title [ /if ] [ assign var="NEXT_PAGE" value=$viewParams.offset+$viewParams.max ] [ * If the user has write permissions to this channel, display the "Post" link * ] [ if $thisSession.UserRights|indexOf:"w" !== false ] [ * Include the new post form * ]
[ include file="../templates/site/post.tpl.html" ]
[ /if ] [ * Display the "Search" link * ] Search [ * If this is a public channel, display the syndication links * ] [ if $thisChannel.Public eq "Y" && $thisView.Dynamic ne "Y" ] [ /if ]
[ if $SUBSCRIPTION|indexOf:"w" !== false ]
[ include file="../templates/site/post.tpl.html" ]
[ /if ] [ /LIVEDATA ]