Beispiel #1
0
<hr/>


<!-- Threads -->
<?php 
if (count($tVars['threads']) > 0) {
    $t_headers = array(array($tLang->lang('th_title'), 'thread_title'), array(''), array($tLang->lang('th_firstposter'), 'thread_firstposter'), array($tLang->lang('th_postcount'), 'thread_postcount'), array($tLang->lang('th_lastposter'), 'thread_lastposter'), array($tLang->lang('th_lastdate'), 'thread_lastdate'), array($tLang->lang('th_thanks'), 'thread_thanks'), array($tLang->lang('th_votes_up'), 'thread_votes_up'), array($tLang->lang('th_thread_viewcount'), 'thread_viewcount'));
    $t_headers = GWF_Table::getHeaders2($t_headers, $tVars['thread_sort_url'], 'tby', 'tdir');
    ?>

<?php 
    echo $tVars['pagemenu_threads'];
    ?>
<table class="ri">
	<?php 
    echo GWF_Table::displayHeaders($t_headers);
    foreach ($tVars['threads'] as $t) {
        $t instanceof GWF_ForumThread;
        $edit = $t->hasEditPermission() ? GWF_Button::edit($t->getEditHREF(), $tLang->lang('btn_edit')) : '';
        $unread = $t->hasRead($user) ? '' : GWF_Button::bell($tVars['href_unread']);
        echo GWF_Table::rowStart();
        $href_lp = $t->getLastPageHREF();
        ?>
		<td><a href="<?php 
        echo $t->getPageHREF(1);
        ?>
"><?php 
        echo $t->display('thread_title');
        ?>
</a></td>
		<td><?php