color: #666666;
}
-
div#changelanguage{
- background-color: #fff;
- border-top: 1px solid #CCC;
- color : #666;
- font-size : 85%;
- padding : 1em;
- margin-top : 2em;
+ background-color: #fff;
+ border-top: 1px solid #CCC;
+ color : #666;
+ font-size : 85%;
+ padding : 1em;
+ margin-top : 2em;
}
div#changelanguage a {
- font-weight : normal;
- padding : .5em;
+ font-weight : normal;
+ padding : .5em 0;
}
-div#changelanguage a.more {
- background-image:url(../../images/more-up-arrow.gif);
- background-position:right center;
- background-repeat:no-repeat;
- padding-right:13px;
+div#changelanguage li.yuimenuitem {
+ font-size: 120%;
+ font-weight: normal;
+ margin: 0;
+ padding: 0 1em;
+}
+div#changelanguage li.yuimenuitem a.yuimenuitemlabel {
+ padding: 0;
}
-div#changelanguage li.yuimenuitem {
- font-size : 120%;
- font-weight : normal;
- margin : 0;
- padding : 0 1em;
+ul#i18nMenu {
+ margin : 0;
+ padding : .2em 0;
+ }
+
+ul#i18nMenu li {
+ border-left : 1px solid #CCC;
+ display : inline;
+ list-style : none;
+ padding : 0 .4em;
+ }
+
+ul#i18nMenu li:first-child {
+ border-left : 0;
+ }
+
+ul#i18nMenu li ul li {
+ border : 0;
+ display : block;
+ padding : 0;
+ }
+
+
+ul#i18nMenu li.more a {
+ background-image : url("../../images/sprite.png");
+ background-position : 37px -940px;
+ background-repeat:no-repeat;
+ padding-right: 1.3em;
}
-div#changelanguage li.yuimenuitem a.yuimenuitemlabel {
- padding : 0;
+ul#i18nMenu li.more ul li a {
+ background-image : none;
+ padding: 0 1.3em;
}
-div.lang{
- float:left;
+span.lang{
+ float:left;
+ border-right : 1px solid black;
+ padding : 0 .5em;
}
div.ft {
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Koha [% Version %]" /> <!-- leave this for stats -->
<link rel="shortcut icon" href="[% themelang %]/includes/favicon.ico" type="image/x-icon" />
+<!-- yui js -->
+<script type="text/javascript" src="[% yuipath %]/utilities/utilities.js"></script>
+<script type="text/javascript" src="[% yuipath %]/container/container-min.js"></script>
+<script type="text/javascript" src="[% yuipath %]/menu/menu-min.js"></script>
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery.js"></script>
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/javascript">//<![CDATA[
return true;
}
+// build Change Language menus
+YAHOO.util.Event.onContentReady("changelanguage", function () {
+ $(".sublangs").each(function(){
+ var menuid = $(this).attr("id");
+ var menuid = menuid.replace("show","");
+
+ var oMenu = new YAHOO.widget.Menu("sub"+menuid, { zindex: 2 });
+ function positionoMenu() {
+ oMenu.align("bl", "tl");
+ }
+ oMenu.subscribe("beforeShow", function () {
+ if (this.getRoot() == this) {
+ positionoMenu();
+ }
+ });
+ oMenu.render();
+ oMenu.cfg.setProperty("context", ["show"+menuid, "bl", "tl"]);
+ function onYahooClick(p_oEvent) {
+ // Position and display the menu
+ positionoMenu();
+ oMenu.show();
+ // Stop propagation and prevent the default "click" behavior
+ YAHOO.util.Event.stopEvent(p_oEvent);
+ }
+ YAHOO.util.Event.addListener("show"+menuid, "click", onYahooClick);
+ YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionoMenu);
+ });
+});
+
$.tablesorter.addParser({
id: 'articles',
is: function(s) {return false; },