Changeset 464 for trunk/JQueryPlugin/lib/TWiki/Plugins/JQueryPlugin.pm
- Timestamp:
- 11/08/08 14:34:13 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JQueryPlugin/lib/TWiki/Plugins/JQueryPlugin.pm
r425 r464 34 34 35 35 $header = <<'HERE'; 36 <link rel="stylesheet" href="%PUBURLPATH%/% TWIKIWEB%/JQueryPlugin/jquery-all.css" type="text/css" media="all" />36 <link rel="stylesheet" href="%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/jquery-all.css" type="text/css" media="all" /> 37 37 <script type="text/javascript"> 38 38 var twiki; … … 42 42 twiki.pubUrl = "%PUBURL%"; 43 43 twiki.pubUrlPath = '%PUBURLPATH%'; 44 twiki.twikiWebName = '% TWIKIWEB%';44 twiki.twikiWebName = '%SYSTEMWEB%'; 45 45 twiki.mainWebName = '%MAINWEB%'; 46 46 twiki.wikiName = '%WIKINAME%'; … … 51 51 twiki.MathModePluginEnabled = %IF{"context MathModePluginEnabled" then="true" else="false"}%; 52 52 </script> 53 <script type="text/javascript" src="%PUBURLPATH%/% TWIKIWEB%/JQueryPlugin/jquery-all.js"></script>53 <script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/jquery-all.js"></script> 54 54 <script type="text/javascript"> 55 55 ChiliBook.recipeFolder = twiki.pubUrlPath+'/'+twiki.twikiWebName+'/JQueryPlugin/chili/'; … … 142 142 return '' unless $scriptFileName; 143 143 $scriptFileName .= '.js' unless $scriptFileName =~ /\.js$/; 144 return "<script type=\"text/javascript\" src=\"%PUBURLPATH%/% TWIKIWEB%/JQueryPlugin/$scriptFileName\"></script>";144 return "<script type=\"text/javascript\" src=\"%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/$scriptFileName\"></script>"; 145 145 } 146 146 … … 152 152 return '' unless $styleFileName; 153 153 $styleFileName .= '.css' unless $styleFileName =~ /\.css$/; 154 return "<style type='text/css'>\@import url('%PUBURLPATH%/% TWIKIWEB%/JQueryPlugin/$styleFileName');</style>";154 return "<style type='text/css'>\@import url('%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/$styleFileName');</style>"; 155 155 } 156 156 … … 162 162 return '' unless $themeName; 163 163 164 return "<style type='text/css'>\@import url(\"%PUBURLPATH%/% TWIKIWEB%/JQueryPlugin/themes/$themeName/$themeName.all.css\");</style>";164 return "<style type='text/css'>\@import url(\"%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/themes/$themeName/$themeName.all.css\");</style>"; 165 165 } 166 166 … … 169 169 my ($session, $params, $theTopic, $theWeb) = @_; 170 170 my $image = $params->{_DEFAULT}; 171 return "%PUBURLPATH%/% TWIKIWEB%/JQueryPlugin/images/$image" if defined $image;172 return "%PUBURLPATH%/% TWIKIWEB%/JQueryPlugin/images";171 return "%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/images/$image" if defined $image; 172 return "%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/images"; 173 173 } 174 174
Note: See TracChangeset
for help on using the changeset viewer.
