From: Carsten K. <car...@us...> - 2001-12-07 05:27:22
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv14133/phpwiki/lib Modified Files: interwiki.php Log Message: InterWiki link-icon added. Index: interwiki.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/interwiki.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** interwiki.php 2001/12/06 18:36:51 1.9 --- interwiki.php 2001/12/07 05:27:20 1.10 *************** *** 48,51 **** --- 48,62 ---- } + $linkproto='interwiki'; + $ICONS = &$GLOBALS['URL_LINK_ICONS']; + + $linkimg = isset($ICONS[$linkproto]) ? $ICONS[$linkproto] : $ICONS['*']; + if (!empty($linkimg)) { + $imgtag = Element('img', array('src' => DataURL($linkimg), + 'alt' => $linkproto, + 'class' => 'linkicon')); + $linktext = $imgtag . $linktext; + } + return Element('a', array('href' => $url, 'class' => $class), |