From: Carsten K. <car...@us...> - 2002-03-01 17:03:16
|
Update of /cvsroot/phpwiki/phpwiki/lib/plugin In directory usw-pr-cvs1:/tmp/cvs-serv32183 Modified Files: FullTextSearch.php Log Message: New css classes search-context and search-term. Index: FullTextSearch.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/FullTextSearch.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -2 -b -p -d -r1.13 -r1.14 --- FullTextSearch.php 28 Feb 2002 00:46:51 -0000 1.13 +++ FullTextSearch.php 1 Mar 2002 17:03:11 -0000 1.14 @@ -1,4 +1,23 @@ <?php // -*-php-*- rcs_id('$Id$'); +/* +Copyright 1999, 2000, 2001, 2002 $ThePhpWikiProgrammingTeam + +This file is part of PhpWiki. + +PhpWiki is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +PhpWiki is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with PhpWiki; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ require_once('lib/TextSearchQuery.php'); @@ -64,5 +83,5 @@ extends WikiPlugin foreach ($matches as $line) { $line = $this->highlight_line($line, $hilight_re); - $html[] = HTML::dd(HTML::small(false, $line)); + $html[] = HTML::dd(HTML::small(array('class' => 'search-context'), $line)); } return $html; @@ -73,5 +92,5 @@ extends WikiPlugin $line = substr($line, strlen($m[0])); $html[] = $m[1]; // prematch - $html[] = HTML::strong($m[2]); // match + $html[] = HTML::strong(array('class' => 'search-term'), $m[2]); // match } $html[] = $line; // postmatch |