Skip to content

Commit

Permalink
Item12481:
Browse files Browse the repository at this point in the history
   * improved browser deprecation process
   * removed border attr deprecated in html5



git-svn-id: http://svn.foswiki.org/trunk/NatSkinPlugin@16722 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed May 13, 2013
1 parent e34146d commit de92f4b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Foswiki/Plugins/NatSkinPlugin.pm
Expand Up @@ -30,8 +30,8 @@ use Foswiki::Plugins::NatSkinPlugin::WebComponent ();
our $baseWeb;
our $baseTopic;

our $VERSION = '3.99_003';
our $RELEASE = '3.99_003';
our $VERSION = '3.99_004';
our $RELEASE = '3.99_004';
our $NO_PREFS_IN_TOPIC = 1;
our $SHORTDESCRIPTION = 'Support plugin for <nop>NatSkin';
our $themeEngine;
Expand Down
7 changes: 7 additions & 0 deletions lib/Foswiki/Plugins/NatSkinPlugin/ThemeEngine.pm
Expand Up @@ -404,6 +404,13 @@ sub init {
$context->{UnsupportedBrowser} = 1 if $context->{msie7} && $Foswiki::cfg{NatSkin}{DeprecateIE7};
$context->{UnsupportedBrowser} = 1 if $context->{msie8} && $Foswiki::cfg{NatSkin}{DeprecateIE8};
$context->{UnsupportedBrowser} = 1 if $context->{msie9} && $Foswiki::cfg{NatSkin}{DeprecateIE9};

my %deprecatedBrowsers = map {$_ => 1} split(/\s*,\s*/, Foswiki::Func::getPreferencesValue('DEPRECATEDBROWSERS') || '');
$deprecatedBrowsers{msie6} = 1 if $Foswiki::cfg{NatSkin}{DeprecateIE6};
$deprecatedBrowsers{msie7} = 1 if $Foswiki::cfg{NatSkin}{DeprecateIE7};
$deprecatedBrowsers{msie8} = 1 if $Foswiki::cfg{NatSkin}{DeprecateIE8};
$deprecatedBrowsers{msie9} = 1 if $Foswiki::cfg{NatSkin}{DeprecateIE9};
Foswiki::Func::setPreferencesValue("DEPRECATEDBROWSERS", join(", ", sort keys %deprecatedBrowsers));
}

# SMELL: these misc helper contexts should be core
Expand Down
4 changes: 2 additions & 2 deletions lib/Foswiki/Plugins/NatSkinPlugin/WebLogo.pm
Expand Up @@ -77,7 +77,7 @@ sub renderAlt {
Foswiki::Func::getPreferencesValue('WEBLOGOALT') ||
Foswiki::Func::getPreferencesValue('WIKILOGOALT') ||
Foswiki::Func::getPreferencesValue('WIKITOOLNAME') ||
'Foswiki';
'Logo';
}

###############################################################################
Expand Down Expand Up @@ -144,7 +144,7 @@ sub renderLogo {
} else {
my $image = renderSrc();
if ($image) {
$result = '<img class="natWebLogo natWebLogoImage" src="$src" alt="$alt" border="0" />';
$result = '<img class="natWebLogo natWebLogoImage" src="$src" alt="$alt" />';
} else {
$result = '<span class="natWebLogo natWebLogoName">%WIKITOOLNAME%</span>';
}
Expand Down

0 comments on commit de92f4b

Please sign in to comment.