[Phpfreechat-svn] SF.net SVN: phpfreechat: [597] trunk/themes/default/templates
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-06-16 14:11:56
|
Revision: 597 Author: kerphi Date: 2006-06-16 07:11:49 -0700 (Fri, 16 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=597&view=rev Log Message: ----------- XHTML fix: the target="_blank" attribute should not be used Modified Paths: -------------- trunk/themes/default/templates/chat.html.tpl.php trunk/themes/default/templates/pfcclient.js.tpl.php Modified: trunk/themes/default/templates/chat.html.tpl.php =================================================================== --- trunk/themes/default/templates/chat.html.tpl.php 2006-06-16 13:59:34 UTC (rev 596) +++ trunk/themes/default/templates/chat.html.tpl.php 2006-06-16 14:11:49 UTC (rev 597) @@ -12,7 +12,7 @@ <div id="<?php echo $prefix; ?>input_container"> <input id="<?php echo $prefix; ?>words" type="text" title="<?php echo _pfc("Enter your message here"); ?>" maxlength="<?php echo $max_text_len-25; ?>" /> <div id="<?php echo $prefix; ?>cmd_container"> - <a href="http://www.phpfreechat.net" id="<?php echo $prefix; ?>logo"<?php if($openlinknewwindow) echo ' target="_blank"'; ?>><img src="http://www.phpfreechat.net/pub/logo_80x15.gif" alt="<?php echo _pfc("PHP FREE CHAT [powered by phpFreeChat-%s]", $version); ?>" title="<?php echo _pfc("PHP FREE CHAT [powered by phpFreeChat-%s]", $version); ?>" /></a> + <a href="http://www.phpfreechat.net" id="<?php echo $prefix; ?>logo"<?php if($openlinknewwindow) echo ' onclick="window.open(this.href,\'_blank\');return false;"'; ?>><img src="http://www.phpfreechat.net/pub/logo_80x15.gif" alt="<?php echo _pfc("PHP FREE CHAT [powered by phpFreeChat-%s]", $version); ?>" title="<?php echo _pfc("PHP FREE CHAT [powered by phpFreeChat-%s]", $version); ?>" /></a> <input id="<?php echo $prefix; ?>handle" type="button" title="<?php echo _pfc("Enter your nickname here"); ?>" value="<?php echo $u->nick; ?>" onclick="pfc.askNick('');" /> <div class="<?php echo $prefix; ?>btn"><img src="<?php echo $c->getFileUrlFromTheme('images/logout.gif'); ?>" alt="" title="" id="<?php echo $prefix; ?>loginlogout" onclick="pfc.connect_disconnect()" /></div> <div class="<?php echo $prefix; ?>btn"><img src="<?php echo $c->getFileUrlFromTheme('images/color-on.gif'); ?>" alt="" title="" id="<?php echo $prefix; ?>nickmarker" onclick="pfc.nickmarker_swap()" /></div> Modified: trunk/themes/default/templates/pfcclient.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-06-16 13:59:34 UTC (rev 596) +++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-06-16 14:11:49 UTC (rev 597) @@ -880,7 +880,7 @@ var range1 = 7+offset-delta; var range2 = 7+offset+delta; if (ttt[i].match(rx_url)) - msg = msg + '<a href="' + ttt[i] + '"<?php if($openlinknewwindow) echo ' target="_blank"'; ?>>' + (delta>0 ? ttt[i].substring(7,range1)+ ' ... '+ ttt[i].substring(range2,ttt[i].length) : ttt[i]) + '</a>'; + msg = msg + '<a href="' + ttt[i] + '"<?php if($openlinknewwindow) echo ' onclick="window.open(this.href,\\\'_blank\\\');return false;"'; ?>>' + (delta>0 ? ttt[i].substring(7,range1)+ ' ... '+ ttt[i].substring(range2,ttt[i].length) : ttt[i]) + '</a>'; else { msg = msg + ttt[i]; @@ -889,7 +889,7 @@ } else // fallback for IE6/Konqueror which do not support split with regexp - msg = msg.replace(rx_url, '$1<a href="$2"<?php if($openlinknewwindow) echo ' target="_blank"'; ?>>$2</a>$3'); + msg = msg.replace(rx_url, '$1<a href="$2"<?php if($openlinknewwindow) echo ' onclick="window.open(this.href,\\\'_blank\\\');return false;"'; ?>>$2</a>$3'); // replace double spaces by entity rx = new RegExp(' ','g'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |