Changeset 24995 for main/trunk


Ignore:
Timestamp:
2012-01-26T13:58:37+13:00 (12 years ago)
Author:
sjm84
Message:

The theme changer will now show up on the preferences page if the user is logged in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/pages/pref.xsl

    r24520 r24995  
    205205                    </div>
    206206                    <br class="clear"/>
     207                </xsl:if>
     208               
     209                <!-- Theme Changer -->
     210                <xsl:if test="/page/pageResponse/authenticationNode/service/@asn = '1' and util:contains(/page/pageResponse/authenticationNode/service/@umgp, 'administrator')">
     211                    <script type="text/javascript">
     212                        <xsl:text disable-output-escaping="yes">
     213                            $(document).ready(function(){
     214                                $("#switcher").themeswitcher({
     215                                    imgpath: "interfaces/" + gs.xsltParams.interface_name + "/style/images/",
     216                                    additionalThemes: [{title:"Greenstone", name:"custom-theme", icon:"theme_90_greenstone.png", url:"interfaces/" + gs.xsltParams.interface_name + "/style/jquery-ui-1.8.16.custom.css"}]
     217                                });
     218                            });
     219                        </xsl:text>
     220                    </script>
     221                    <div id="switcher"><xsl:text> </xsl:text></div>
    207222                </xsl:if>
    208223
Note: See TracChangeset for help on using the changeset viewer.