From: Geoffrey T. D. <da...@us...> - 2002-01-21 06:55:51
|
Update of /cvsroot/phpwiki/phpwiki/themes/Portland In directory usw-pr-cvs1:/tmp/cvs-serv17017/themes/Portland Modified Files: themeinfo.php Log Message: More infiltration of new object-based HTML generation. (I've probably broken some things, sorry... I'll work on more cleanup tomorrow.) Index: themeinfo.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/themes/Portland/themeinfo.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** themeinfo.php 2002/01/19 22:48:42 1.1 --- themeinfo.php 2002/01/21 06:55:47 1.2 *************** *** 10,25 **** class Theme_Portland extends Theme { function LinkUnknownWikiWord($wikiword, $linktext = '') { ! if (empty($linktext)) { ! $linktext = $wikiword; ! if ($this->getAutoSplitWikiWords()) ! $linktext=split_pagename($linktext); ! $class = 'wikiunknown'; ! } else ! $class = 'named-wikiunknown'; ! return Element('span', array('class' => $class), ! Element('u', $linktext) ! . Element('a', array('href' => WikiURL($wikiword, array('action' => 'edit'))), ! '?')); } } --- 10,26 ---- class Theme_Portland extends Theme { function LinkUnknownWikiWord($wikiword, $linktext = '') { ! $url = WikiURL($wikiword, array('action' => 'edit')); ! $link = HTML::span(HTML::a(array('href' => $url), '?')); ! if (!empty($linktext)) { ! $link->unshiftContent(HTML::u($linktext)); ! $link->setAttr('class', 'named-wikiunknown'); ! } ! else { ! $link->unshiftContent(HTML::u($this->maybeSplitWikiWord($wikiword))); ! $link->setAttr('class', 'wikiunknown'); ! } ! ! return $link; } } |