From: Don S. <ri...@us...> - 2004-09-17 17:15:15
|
Update of /cvsroot/phpwsbb/phpwsbb/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9268/class Modified Files: Runtime.php Log Message: RFE #1029852: Using unordered list for blocks Index: Runtime.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Runtime.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** Runtime.php 13 Sep 2004 21:41:55 -0000 1.12 --- Runtime.php 17 Sep 2004 17:15:05 -0000 1.13 *************** *** 55,62 **** $result = $GLOBALS['core']->sqlSelect('mod_phpwsbb_forums', 'hidden', 0, 'sortorder'); if($result) { foreach($result as $row) { $forum = new PHPWSBB_Forum($row); ! $block .= PHPWS_Text::moduleLink($forum->getLabel(), 'phpwsbb', array('PHPWSBB_MAN_OP'=>'viewforum', 'PHPWS_MAN_ITEMS'=>$forum->getId())).'<br />'; } } --- 55,65 ---- $result = $GLOBALS['core']->sqlSelect('mod_phpwsbb_forums', 'hidden', 0, 'sortorder'); if($result) { + $block .= '<ul>'; foreach($result as $row) { $forum = new PHPWSBB_Forum($row); ! //$block .= PHPWS_Text::moduleLink($forum->getLabel(), 'phpwsbb', array('PHPWSBB_MAN_OP'=>'viewforum', 'PHPWS_MAN_ITEMS'=>$forum->getId())).'<br />'; ! $block .= '<li>' . PHPWS_Text::moduleLink($forum->getLabel(), 'phpwsbb', array('PHPWSBB_MAN_OP'=>'viewforum', 'PHPWS_MAN_ITEMS'=>$forum->getId())) . '</li>'; } + $block .= '</ul>'; } *************** *** 94,97 **** --- 97,101 ---- $result = $GLOBALS['core']->sqlSelect('mod_phpwsbb_threads', 'hidden', 0, 'lastpost DESC'); if($result) { + $block .= '<ul>'; foreach($result as $row) { if($c > $maxlatestthreads) *************** *** 102,108 **** else $lbl = $thread->getLabel(); ! $block .= PHPWS_Text::moduleLink($lbl, 'phpwsbb', array('PHPWSBB_MAN_OP'=>'view', 'PHPWS_MAN_ITEMS'=>$thread->getId())).'<br />'; $c++; } } --- 106,114 ---- else $lbl = $thread->getLabel(); ! //$block .= PHPWS_Text::moduleLink($lbl, 'phpwsbb', array('PHPWSBB_MAN_OP'=>'view', 'PHPWS_MAN_ITEMS'=>$thread->getId())).'<br />'; ! $block .= '<li>' . PHPWS_Text::moduleLink($lbl, 'phpwsbb', array('PHPWSBB_MAN_OP'=>'view', 'PHPWS_MAN_ITEMS'=>$thread->getId())) . '</li>'; $c++; } + $block .= '</ul>'; } |