- Timestamp:
- 2012-04-24T13:09:10+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/oran/transform/pages/pref.xsl
r25432 r25462 216 216 <!-- Theme Changer --> 217 217 <xsl:if test="/page/pageRequest/userInformation and util:contains(/page/pageRequest/userInformation/@groups, 'administrator')"> 218 <script type="text/javascript"> 219 <xsl:text disable-output-escaping="yes"> 220 $(document).ready(function(){ 221 $("#switcher").themeswitcher({ 222 imgpath: "interfaces/" + gs.xsltParams.interface_name + "/style/images/", 223 additionalThemes: [ 224 {title:"Greenstone Default", name:"custom-theme0", icon:"theme_90_greenstone.png", url:"interfaces/" + gs.xsltParams.interface_name + "/style/themes/main/jquery-ui-1.8.16.custom.css"}, 225 {title:"Greenstone Custom 1", name:"custom-theme1", icon:"theme_90_start_menu.png", url:"interfaces/" + gs.xsltParams.interface_name + "/style/themes/alt_theme_1/jquery-ui-1.8.16.custom.css"}, 226 {title:"Greenstone Custom 2", name:"custom-theme2", icon:"theme_90_mint_choco.png", url:"interfaces/" + gs.xsltParams.interface_name + "/style/themes/alt_theme_2/jquery-ui-1.8.16.custom.css"}, 227 {title:"Greenstone Custom 3", name:"custom-theme3", icon:"theme_90_trontastic.png", url:"interfaces/" + gs.xsltParams.interface_name + "/style/themes/alt_theme_3/jquery-ui-1.8.16.custom.css"} 228 ] 218 <div> 219 <div class="paramLabel"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.theme')"/></div> 220 <script type="text/javascript"> 221 <xsl:text disable-output-escaping="yes"> 222 $(document).ready(function(){ 223 $("#switcher").themeswitcher({ 224 imgpath: "interfaces/" + gs.xsltParams.interface_name + "/style/images/", 225 additionalThemes: [ 226 {title:"Greenstone Default", name:"custom-theme0", icon:"theme_90_greenstone.png", url:"interfaces/" + gs.xsltParams.interface_name + "/style/themes/main/jquery-ui-1.8.16.custom.css"}, 227 {title:"Greenstone Custom 1", name:"custom-theme1", icon:"theme_90_start_menu.png", url:"interfaces/" + gs.xsltParams.interface_name + "/style/themes/alt_theme_1/jquery-ui-1.8.16.custom.css"}, 228 {title:"Greenstone Custom 2", name:"custom-theme2", icon:"theme_90_mint_choco.png", url:"interfaces/" + gs.xsltParams.interface_name + "/style/themes/alt_theme_2/jquery-ui-1.8.16.custom.css"}, 229 {title:"Greenstone Custom 3", name:"custom-theme3", icon:"theme_90_trontastic.png", url:"interfaces/" + gs.xsltParams.interface_name + "/style/themes/alt_theme_3/jquery-ui-1.8.16.custom.css"} 230 ] 231 }); 229 232 }); 230 }); 231 </xsl:text> 232 </script> 233 <div id="switcher"><xsl:text> </xsl:text></div> 233 </xsl:text> 234 </script> 235 <div class="paramValue" id="switcher"><xsl:text> </xsl:text></div> 236 </div> 237 <br class="clear"/> 234 238 </xsl:if> 235 239
Note:
See TracChangeset
for help on using the changeset viewer.