Update of /cvsroot/phpwsbb/phpwsbb/inc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21337/inc
Modified Files:
runtime.php
Log Message:
Added title tag to "Latest Posts" block links to show the full titles
Index: runtime.php
===================================================================
RCS file: /cvsroot/phpwsbb/phpwsbb/inc/runtime.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** runtime.php 24 Feb 2006 06:45:57 -0000 1.8
--- runtime.php 11 Mar 2006 03:27:36 -0000 1.9
***************
*** 74,82 ****
$block .= '<ul>';
foreach($result as $row) {
! if(strlen($row['label']) > 15)
! $lbl = substr(PHPWS_Text::parseOutput($row['label']),0,15) . ' ...';
! else
! $lbl = PHPWS_Text::parseOutput($row['label']);
! $block .= '<li>' . PHPWS_Text::moduleLink($lbl, 'phpwsbb', array('PHPWSBB_MAN_OP'=>'view', 'PHPWS_MAN_ITEMS'=>$row['id'])) . '</li>';
$c++;
}
--- 74,85 ----
$block .= '<ul>';
foreach($result as $row) {
! if(strlen($row['label']) > 15) {
! $title = PHPWS_Text::parseOutput($row['label']);
! $lbl = substr($title,0,15) . ' ...';
! }
! else {
! $title = $lbl = PHPWS_Text::parseOutput($row['label']);
! }
! $block .= '<li>' . PHPWS_Text::moduleLink($lbl, 'phpwsbb', array('PHPWSBB_MAN_OP'=>'view', 'PHPWS_MAN_ITEMS'=>$row['id']), NULL, '" title="'.$title) . '</li>';
$c++;
}
|