[Scummvm-cvs-logs] SF.net SVN: scummvm:[41669] web/trunk/templates/shadowed_text.tpl
fredrik_w at users.sourceforge.net
fredrik_w at users.sourceforge.net
Fri Jun 19 12:27:52 CEST 2009
Revision: 41669
http://scummvm.svn.sourceforge.net/scummvm/?rev=41669&view=rev
Author: fredrik_w
Date: 2009-06-19 10:27:52 +0000 (Fri, 19 Jun 2009)
Log Message:
-----------
Fix bug #2808418 - WEB: Doubled titles broken in Opera when resizing stuff.
Modified Paths:
--------------
web/trunk/templates/shadowed_text.tpl
Modified: web/trunk/templates/shadowed_text.tpl
===================================================================
--- web/trunk/templates/shadowed_text.tpl 2009-06-19 09:55:23 UTC (rev 41668)
+++ web/trunk/templates/shadowed_text.tpl 2009-06-19 10:27:52 UTC (rev 41669)
@@ -3,10 +3,16 @@
{assign var='textclass' value='shadow-text'}
{/if}
-<span style="color: {$shadowcolor};">
- <span class="shadow-container">
- {$text}
- <span class="{$textclass}" style="color: {$textcolor};">{$text}</span>
+{assign var="agent" value=$smarty.server.HTTP_USER_AGENT}
+
+{if strpos($agent, 'KHTML') !== false || strpos($agent, 'Opera') !== False}
+ <span class="shadow-container" style="color: {$textcolor};">
+ <span style="text-shadow: 0.1em 0.1em {$shadowcolor}">{$text}</span>
</span>
-</span>
+{else}
+ <span class="shadow-container" style="color: {$shadowcolor};">
+ {$text}
+ <span class="{$textclass}" style="color: {$textcolor};">{$text}</span>
+ </span>
+{/if}
{/strip}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list