From: <var...@us...> - 2012-11-29 17:41:39
|
Revision: 8575 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8575&view=rev Author: vargenau Date: 2012-11-29 17:41:30 +0000 (Thu, 29 Nov 2012) Log Message: ----------- Use CSS Modified Paths: -------------- trunk/lib/plugin/FuzzyPages.php Modified: trunk/lib/plugin/FuzzyPages.php =================================================================== --- trunk/lib/plugin/FuzzyPages.php 2012-11-29 17:40:59 UTC (rev 8574) +++ trunk/lib/plugin/FuzzyPages.php 2012-11-29 17:41:30 UTC (rev 8575) @@ -103,13 +103,12 @@ else $link = $this->_searchterm; $caption = fmt("These page titles match fuzzy with '%s'", $link); - $table->pushContent(HTML::caption(array('align' => 'top'), $caption)); + $table->pushContent(HTML::caption($caption)); } function addTableHead(&$table) { - $row = HTML::tr(HTML::th(_("Name")), - HTML::th(array('align' => 'right'), _("Score"))); + $row = HTML::tr(HTML::th(_("Name")), HTML::th(_("Score"))); if (defined('DEBUG') && DEBUG && $this->debug) { $this->_pushDebugHeadingTDinto($row); @@ -129,7 +128,7 @@ $score > HIGHLIGHT_ROWS_CUTOFF_SCORE ? 'evenrow' : 'oddrow'), HTML::td(WikiLink($found_pagename)), - HTML::td(array('align' => 'right'), + HTML::td(array('class' => 'align-right'), round($score))); if (defined('DEBUG') && DEBUG && $this->debug) { @@ -147,10 +146,7 @@ if (empty($list)) { return HTML::p(fmt("No fuzzy matches with '%s'", $this->_searchterm)); } - $table = HTML::table(array('cellpadding' => 2, - 'cellspacing' => 1, - 'border' => 0, - 'class' => 'pagelist')); + $table = HTML::table(array('class' => 'pagelist')); $this->addTableCaption($table, $dbi); $this->addTableHead($table); $this->addTableBody($list, $table); @@ -193,8 +189,8 @@ $debug_metaphone = sprintf("(%s, %s)", metaphone($pagename), $this->_searchterm_metaphone); - $row->pushcontent(HTML::td(array('align' => 'center'), $debug_spelling), - HTML::td(array('align' => 'center'), $debug_sound), + $row->pushcontent(HTML::td(array('class' => 'align-center'), $debug_spelling), + HTML::td(array('class' => 'align-center'), $debug_sound), HTML::td($debug_metaphone)); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |