From: Carsten K. <car...@us...> - 2002-01-19 19:38:30
|
Update of /cvsroot/phpwiki/phpwiki/themes/MacOSX In directory usw-pr-cvs1:/tmp/cvs-serv23207 Modified Files: themeinfo.php Log Message: overrides $Theme->LinkUnknownWikiWord instead of get/setWikiMark functions (deleted). Index: themeinfo.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/themes/MacOSX/themeinfo.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** themeinfo.php 2002/01/19 09:43:28 1.26 --- themeinfo.php 2002/01/19 19:38:27 1.27 *************** *** 34,56 **** * Send me some feedback, do you like the icons used in the buttons? * ! * Automatic button generation for localized buttons ! * isn't going to happen for this theme--there is a gradient across ! * the glass surface of the button that only Mac OS X Aqua can ! * generate. Chopping a button up and stamping it with localized words ! * means a lot of tweaking to the blank button pieces to get the seams ! * invisible, so a more authentic Mac OS X user experience is achived by ! * producing the buttons by hand. * * The defaut link icons I want to move into this theme, and come up ! * with some new linkicons for the default look. (Any ideas, feedback?) * * */ - // To activate this theme, specify this setting in index.php: - //$theme="MacOSX"; - // To deactivate themes, comment out all the $theme=lines in index.php. - require_once('lib/Theme.php'); - - class Theme_MacOSX extends Theme { function getCSS() { --- 34,51 ---- * Send me some feedback, do you like the icons used in the buttons? * ! * Automatic button generation for localized buttons isn't going to ! * happen for this theme--there is a gradient across the glass surface ! * of the button that only Mac OS X Aqua can generate. Chopping a ! * button up and stamping it with localized words means a lot of ! * tweaking to the blank button pieces to get the seams invisible, so ! * a more authentic Mac OS X user experience is achived by producing ! * the buttons by hand. * * The defaut link icons I want to move into this theme, and come up ! * with some new linkicons for the default look. (Any ideas, ! * feedback?) * * */ class Theme_MacOSX extends Theme { function getCSS() { *************** *** 79,82 **** --- 74,93 ---- return '_MacOSX_PageHistory_Formatter'; } + + function LinkUnknownWikiWord($wikiword, $linktext = '') { + if (empty($linktext)) { + $linktext = $wikiword; + if (defined("autosplit_wikiwords")) + $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'))), + '<img src="themes/MacOSX/buttons/uww.png" border="0" align="top">')); + } + } *************** *** 105,113 **** $Theme->setDateTimeFormat("%A, %B %e, %Y. %l:%M:%S %p %Z"); // may contain time of day $Theme->setDateFormat("%A, %B %e, %Y"); // must not contain time - - // Controls whether the '?' appears before or after UnknownWikiWords. - // The PhpWiki default is for the '?' to appear before. - //$Theme->setWikiMark('%s?'); - $Theme->setWikiMark('%s<img src="themes/MacOSX/buttons/uww.png" border="0" align="top">'); /* --- 116,119 ---- |