Commit facf03f9 authored by Joost Rijneveld's avatar Joost Rijneveld

Merge branch 'feature/language-switcher' into 'master'

Introduce language switcher

Closes #20 

See merge request !10
parents add67b20 073ca5e2
......@@ -239,9 +239,16 @@
// CONCRETE stuff
/* header account menu */
#thimbus-account-menu-container {
top: 10px;
right: 10px;
position: absolute;
}
#language-selector-menu,
#thimbus-account-menu {
a.btn {
background-color: @inverted-color;
background: @inverted-color;
color: @background-color;
&:hover {
......
(function() {
language_submit_btn.onclick = function () {
set_language_form.submit();
};
})();
var htmlClasses=document.documentElement.className.split(" ");htmlClasses.push("js-on"),document.documentElement.className=htmlClasses.join(" ").replace(/^\s+|\s+$/g,""),function(e){e.fn.gwScrollTo=function(t){var i={duration:1e3,easing:"easeInOutCubic",target:"#top",callback:""},s=e.extend({},i,t),n=this;if(s.easing=jQuery.easing[s.easing]?s.easing:!1,!e(s.target).length)return!1;var a=e(s.target).offset();return n.is(":animated")||a.top==e(window).scrollTop()?!1:n.animate({scrollTop:e(s.target).offset().top},s.duration,s.easing,function(){this.tagName==n[0].tagName&&e.isFunction(s.callback)?s.callback.call(this):!1})}}(jQuery),jQuery(document).ready(function(e,t){var i,s,n=e("body"),a=n.find("#wrapper"),o=n.find("#header-info"),l=n.find("#logo"),r=l.find("img"),c=n.find("#primary-navigation"),d=c.find(".nav"),u=c.find(".menu-responsive"),f=n.find("#header-panel"),h=n.find("#bottom"),p=n.find("#footer"),g=e("<div />",{id:"primary-navigation-placholder"}).css({height:"45px",display:"none"}),v=o.length?o.outerHeight():0,m=l.length?l.height():0,b=c.length?c.height():0,w=f.height?f.height():0,y=h.height?h.outerHeight():0,k=10,C=35,x=function(){return v+m+2*k},T=function(){return x()+b+w};r.load(function(){m=l.length?l.height():0}),n.hasClass("stickymenu")&&g.insertBefore(c),setTimeout(function(){e(window).resize(),d.find(".nav-path-selected > a").trigger("click")},10),e(window).resize(),d.find(".nav-path-selected > a").trigger("click");var j;n.find('[class^="hide-info-box"]').delegate(this,"mouseenter mouseleave",function(e){clearTimeout(j),"mouseenter"==e.type?(A!=t&&A.find(".fullwidthabnner").revpause(),n.find(".header-overlay").addClass("visible")):j=setTimeout(function(){A!=t&&(A.find(".fullwidthabnner").hasClass("hovered")||A.find(".fullwidthabnner").revresume().closest(".slider").trigger("mousemove")),n.find(".header-overlay").removeClass("visible")},300)}),e(window).scroll(function(){f.length&&(i=u.is(":visible")?0:.6667*T()>e(window).scrollTop()?e(window).scrollTop()*-.5:.6667*T()*-.5,f.hasClass("header-parallax")&&f.css("marginBottom",i).find(".page-title").css("bottom",i*-.5+50)),s=k+(C-k)*(v-e(window).scrollTop())/v,l.css({paddingTop:function(){return u.is(":visible")?C:s>k?s:k},paddingBottom:function(){return u.is(":visible")?C:s>k?s:k}}),n.hasClass("stickymenu")&&!u.is(":visible")&&x()<=e(window).scrollTop()?(c.addClass("stickynav"),g.css("display","block"),e(document).height()-e(window).height()<=e(window).scrollTop()?p.removeClass("stickyfooter-bottom"):p.addClass("stickyfooter-bottom")):(c.removeClass("stickynav"),g.css("display","none")),e(window).scrollTop()>0?n.find("#scroll-top").fadeIn(200):n.find("#scroll-top").fadeOut(200)}),e(window).resize(function(){e(window).trigger("scroll"),v=v=o.length?o.outerHeight():0,n.hasClass("stickyfooter")&&(u.is(":visible")?(n.removeClass("stickyfooter"),a.css("marginBottom",0)):(n.addClass("stickyfooter"),y=h.height?h.outerHeight():0,a.css("marginBottom",y-5))),u.is(":visible")?(u.hasClass("open")||d.css("display","none").find('li:not(".nav-path-selected")').children("ul").css("display","none"),d.find("li").addClass("noLava").find("ul").each(function(){var t=e(this),i=t.find(">li>a").parents("ul").length;t.find(">li>a").css({paddingLeft:20*(i-1)+40+"px",backgroundPosition:20*(i-1)+20+"px -5px"}),t.find(">li.nav-path-selected>a").css({paddingLeft:20*(i-1)+40+"px",backgroundPosition:20*(i-1)+20+"px -54px"})})):(u.removeClass("open"),d.css("display","block").find("ul").css("display","block").end().find("li").removeClass("noLava").end().find("ul > li").addClass("noLava").end().find("li.nav-path-selected").trigger("mouseenter").trigger("mouseleave").end().find("li>a").css("paddingLeft","20px"))}).resize(),jQuery().magnificPopup&&(e(".magnific-popup").each(function(){e(this).magnificPopup({type:"image",closeOnContentClick:!0})}),e(".magnific-popup-html").each(function(){e(this).magnificPopup({disableOn:700,type:"iframe"})})),(e("html").hasClass("lt-ie10")||e("html").hasClass("lt-ie9"))&&n.find("input[placeholder], textarea[placeholder]").each(function(){var t=e(this);t.val(t.attr("placeholder")),t.delegate(this,"focus blur",function(e){"focus"==e.type?t.val()==t.attr("placeholder")&&t.val(""):(""==t.val()||t.val()==t.attr("placeholder"))&&t.val(t.attr("placeholder"))})}),n.find("#scroll-top").css("display","none").delegate("a","click",function(t){t.preventDefault(),e("html, body").gwScrollTo({easing:"easeInOutCubic"})}),n.find(".searchform").delegate(this,"submit",function(){var t=e(this),i=t.find('input[name="s"]');return""==i[0].value?(i.focus(),!1):void 0}),d.delegate("li a","click mouseenter mouseleave",function(t){var i=e(this),s=e(this).parent(),n=s.parents("ul").parent("li");"click"==t.type&&(this.href.match(/#/gi)?t.preventDefault():(u.find(".menu-title").html(i.text()),d.find("li.nav-path-selected").removeClass("nav-path-selected").find(">a").css("backgroundPositionY","-5px").css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -5px"}),s.addClass("nav-path-selected"),n.each(function(){var t=e(this);t.hasClass("nav-path-selected")||t.addClass("nav-path-selected").find(">a").css("backgroundPositionY","-54px").css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -54px"})}))),u.is(":visible")&&("click"==t.type?!i.closest("li").find(">ul").is(":visible")&&i.closest("li").find(">ul").length>0&&(t.preventDefault(),i.closest("li").find(">ul").slideDown(300,"easeInOutCubic").end().siblings().find("ul").slideUp(300,"easeInOutCubic")):"mouseenter"==t.type?(i.css("backgroundPositionY","-54px"),i.css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -54px"})):i.closest("li").hasClass("nav-path-selected")||(i.css("backgroundPositionY","-5px"),i.css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -5px"})))}),u.delegate(this,"click",function(){var t=e(this);d.is(":visible")?d.slideUp(300,"easeInOutCubic"):(t.addClass("open"),d.slideDown(300,"easeInOutCubic"))}),jQuery().lavaLamp&&setTimeout(function(){d.each(function(){e(this).children("li.").addClass("selectedLava").end().find("ul > li").addClass("noLava").end().lavaLamp({fx:"easeOutExpo",speed:500})})},100),n.find(".alert").delegate(".close","click",function(){e(this).closest(".alert").slideUp()}),n.find(".tabs").delegate("li","click",function(t){var i=e(this),s=i.closest(".tabs-wrapper").next(".tabs-content"),n=s.find("> li"),a=i.closest(".tabs").find("> li").index(i);t.preventDefault(),i.hasClass("current")?s.stop().animate({height:n.eq(a).find(".tab-content").outerHeight()},350,"jswing"):(i.addClass("current").siblings(".current").removeClass("current"),n.eq(a).siblings(".current").find(".tab-content").css("display","block").fadeTo(200,0,function(){s.stop().animate({height:n.eq(a).find(".tab-content").outerHeight()},350,"jswing",function(){n.eq(a).siblings(".current").removeClass("current").find(".tab-content").css("display","none"),n.eq(a).addClass("current").find(".tab-content").fadeTo(200,1)})}))}),e(window).resize(function(){n.find(".tabs li.current").trigger("click")}),n.find(".tabs-content").delegate(".tab-title","click",function(t){var i=e(this),s=i.closest("li"),n=i.closest(".tabs-content"),a=(n.find("> li"),n.prev(".tabs-wrapper").find(".tabs")),o=a.find("> li"),l=n.find("> li").index(s);t.preventDefault(),s.hasClass("current")||(s.addClass("current").find(".tab-content").stop().css({display:"none",opacity:1}).slideDown(500,"easeOutExpo"),s.siblings(".current").removeClass("current").find(".tab-content").stop().css("display","block").slideUp(500,"easeOutExpo",function(){n.css("height",s.find(".tab-content").outerHeight())}),o.eq(l).addClass("current").siblings().removeClass("current"))}),n.find(".toggles").delegate(".toggle-title","click",function(t){var i=e(this),s=i.closest("li");t.preventDefault(),s.hasClass("current")?s.removeClass("current").find(".toggle-content").stop().css("display","block").slideUp(500,"easeOutExpo"):(s.addClass("current").find(".toggle-content").stop().css("display","none").slideDown(500,"easeOutExpo"),s.siblings(".current").find(".toggle-title").trigger("click"))});var P=n.find(".progress-bars");P.find(".progress-label span").html("0%").end().find(".bar").css("width",0).bind("inview",function(t,i){var s,n=e(this),a=n.closest("li");n.addClass("trans-enabled"),i===!0&&(n.css("width",Math.round(parseFloat(n.data("width")))+"%").unbind("inview"),s=setInterval(function(){var e=Math.round(n.width()/a.width()*100);a.find(".progress-label span").html(e+"%"),e==Math.round(parseFloat(n.data("width")))&&clearInterval(s)},5))});var O=n.find(".portfolio-isotope"),I=O.find(".portfolio-filter"),L=O.find(".portfolio-posts");jQuery().isotope&&I.delegate("li","click",function(){var i,s=e(this);i=s.data("filter")==t?"*":'[data-filter*="'+s.data("filter")+'"]',setTimeout(function(){L.isotope({filter:i})},100)}),e(window).resize(function(){I.find("li.current").length?I.find("li.current").trigger("click"):I.find("li:first").trigger("click")}),jQuery().carouFredSel&&(n.find(".testimonials .slides").each(function(){var t=e(this);t.carouFredSel({responsive:!0,auto:!1,height:"variable",width:"100%",pagination:{keys:!1,container:e(this).closest(".slider").find(".slider-pagination"),anchorBuilder:function(e){return'<li><a href="#" data-id="'+e+'"></a></li>'}},swipe:{onTouch:!0},onCreate:function(){e(window).on("resize",function(){var e=setInterval(function(){0!=t.find("li:first").height()&&(clearInterval(e),t.parent().add(t).css("height",t.children().first().height()+"px"))},10)}).trigger("resize")}})}),n.find(".post-slider .slides").each(function(){var t=e(this);t.carouFredSel({responsive:!0,height:"variable",width:"100%",height:"auto",auto:!1,next:t.closest(".slider").find(".slider-control-next"),prev:t.closest(".slider").find(".slider-control-prev"),swipe:{onTouch:!0},onCreate:function(){e(window).on("resize",function(){var e=setInterval(function(){0!=t.find("li:first").height()&&(clearInterval(e),t.parent().add(t).css("height",t.children().first().height()+"px"))},10)}).trigger("resize")}})}),e(".brands .slides").each(function(){var t=e(this);t.carouFredSel({responsive:!0,auto:!1,width:"100%",next:t.closest(".slider").find(".slider-controls .next"),prev:t.closest(".slider").find(".slider-controls .prev"),scroll:1,swipe:{onTouch:!0},items:{width:300,visible:{min:1,max:4}},onCreate:function(){e(window).on("resize",function(){var e=setInterval(function(){0!=t.find("li:first").height()&&(clearInterval(e),t.parent().add(t).css("height",t.children().first().height()+"px"))},100)}).trigger("resize")}})}));var z,D=n.find(".ticker"),M=e(".ticker-controls");D.each(function(){e(this).bind("loaded clicked",function(i,s){var n=e(this),a=n.find(".ticker-list"),o=a.find("li"),l=o.length,s=s==t?"fw":"rev",r=function(e){return e=e>=l?0:e,e=0>e?l-1:e},c=function(e,i){i=i==t?"fw":i,e=e==t?"fw"==i?0:l-1:r(e);var s,c=r(e+1),d=r(e-1);e="fw"==i?c:d,s=o.eq(e).height(),o.stop().fadeTo(200,0,function(){o.css({position:"absolute",top:o.eq(e).height()}).eq(e).css("top","-="+o.eq(e).height()),a.stop().animate({height:s},250,"jswing",function(){o.stop().fadeTo(200,1)})}),"fw"==i?n.data("id",e):n.data("id",e)};"clicked"==i.type&&(clearInterval(z),c(n.data("id"),s),n.trigger("loaded")),"loaded"==i.type&&(clearInterval(z),n.data("id")==t&&(n.data("id",0),a.css("height",o.eq(n.data("id")).height())),z=setInterval(function(){c(n.data("id"))},5e3))})}),M.delegate(".arrow","click",function(t){var i=e(this),s=i.closest(".ticker-controls").prev(".ticker");t.preventDefault(),i.hasClass("next")?s.trigger("clicked"):s.trigger("clicked","rev")}),M.prev(".ticker").trigger("loaded");var H=!1;e(window).resize(function(){H&&clearTimeout(H),H=setTimeout(function(){M.prev(".ticker").trigger("loaded")},100)});var Q=n.find("#contact-form");Q.length&&Q.submit(function(){var i=e(this),s=i.find("#contact-submit"),a=i.find("input[type=text], textarea"),o=(i.find("#captcha"),i.parent().find("#contact-message")),l=s[0].innerHTML;return s.hasClass("disabled")?!1:(e.ajax({type:"POST",url:i[0].action,data:i.serialize(),dataType:"json",beforeSend:function(){o.length>0&&o.stop().slideUp(),s.css("opacity",.5).addClass("disabled")[0].innerHTML=s.data("send")}}).done(function(r){if(s.css("opacity",1).removeClass("disabled")[0].innerHTML=l,a.filter("#captcha")[0].value="",0==o.length&&(o=e("<div />",{id:"contact-message"}).css("display","none"),i.before(o)),"success"==r.result)a.val(""),o.addClass("alert alert-success1").removeClass("alert-error").html(r.message.mail_sent+'<button type="button" class="close"><span class="alert-icon-close"></span></button>').slideDown();else if(r.message.mail_sent!=t)o.addClass("alert alert-error").removeClass("alert-success1").html(r.message.mail_sent+'<button type="button" class="close"><span class="alert-icon-close"></span></button>').slideDown();else{var c="";jQuery.each(r.message,function(e,t){c+="<p>"+t+"</p>"}),o.addClass("alert alert-error").removeClass("alert-success1").html(c+'<button type="button" class="close"><span class="alert-icon-close"></span></button>').slideDown()}n.find(".alert").delegate(".close","click",function(){e(this).closest(".alert").slideUp()})}),!1)});var S=n.find("#header-map");if(jQuery().goMap&&google&&google.maps){S.each(function(){e(this).goMap({markers:[{address:"Leatherhead, Surrey United Kingdom 01372 818123, United Kingdom",title:"Granth",icon:{image:"assets/images/misc/pin_red.png"}}],scrollwheel:!1,zoom:13,maptype:"ROADMAP"})});var q=!1;e(window).resize(function(){q&&clearTimeout(q),q=setTimeout(function(){e.goMap.getMarkers("markers").length&&e.goMap.map.panTo(e.goMap.getMarkers("markers")[0].getPosition())},100)})}if(jQuery().revolution){var A=n.find(".rev-slider"),U=570;A.find(".fullwidthabnner").css({height:U,maxHeight:U}).revolution({delay:9e3,startheight:U,startwidth:1020,navigationType:"none",navigationArrows:"none",touchenabled:"on",onHoverStop:"on",navOffsetHorizontal:0,navOffsetVertical:20,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,hideSliderAtLimit:0,stopAtSlide:-1,stopAfterLoops:-1,shadow:0,fullWidth:"on"}),A.delegate(".slider-control-prev, .slider-control-next","click",function(t){{var i=e(this);i.closest(".rev-slider")}t.preventDefault(),i.hasClass("slider-control-prev")?A.revprev():A.revnext()})}}),jQuery(document).ready(function(){jQuery(".gallery-box").fancybox({helpers:{title:{type:"float"}},afterShow:function(){var e=$(this.element).attr("data-download");void 0!=e&&$('<a class="fancybox-download" href="'+e+'"></a>').appendTo(this.outer)},padding:0})}),jQuery(document).ready(function(){$(".member-item img").on("error",function(e){-1==e.target.src.indexOf("gravatarmissing.png")&&(e.target.src="/packages/theme_thimbus/themes/thimbus/assets/images/gravatarmissing.png")})});
\ No newline at end of file
(function() {
/** do stuff here **/
})();
var htmlClasses=document.documentElement.className.split(" ");htmlClasses.push("js-on"),document.documentElement.className=htmlClasses.join(" ").replace(/^\s+|\s+$/g,""),function(e){e.fn.gwScrollTo=function(t){var i={duration:1e3,easing:"easeInOutCubic",target:"#top",callback:""},s=e.extend({},i,t),n=this;if(s.easing=jQuery.easing[s.easing]?s.easing:!1,!e(s.target).length)return!1;var a=e(s.target).offset();return n.is(":animated")||a.top==e(window).scrollTop()?!1:n.animate({scrollTop:e(s.target).offset().top},s.duration,s.easing,function(){this.tagName==n[0].tagName&&e.isFunction(s.callback)?s.callback.call(this):!1})}}(jQuery),jQuery(document).ready(function(e,t){var i,s,n=e("body"),a=n.find("#wrapper"),o=n.find("#header-info"),l=n.find("#logo"),r=l.find("img"),c=n.find("#primary-navigation"),d=c.find(".nav"),u=c.find(".menu-responsive"),f=n.find("#header-panel"),h=n.find("#bottom"),p=n.find("#footer"),g=e("<div />",{id:"primary-navigation-placholder"}).css({height:"45px",display:"none"}),v=o.length?o.outerHeight():0,m=l.length?l.height():0,b=c.length?c.height():0,w=f.height?f.height():0,y=h.height?h.outerHeight():0,k=10,C=35,x=function(){return v+m+2*k},T=function(){return x()+b+w};r.load(function(){m=l.length?l.height():0}),n.hasClass("stickymenu")&&g.insertBefore(c),setTimeout(function(){e(window).resize(),d.find(".nav-path-selected > a").trigger("click")},10),e(window).resize(),d.find(".nav-path-selected > a").trigger("click");var j;n.find('[class^="hide-info-box"]').delegate(this,"mouseenter mouseleave",function(e){clearTimeout(j),"mouseenter"==e.type?(A!=t&&A.find(".fullwidthabnner").revpause(),n.find(".header-overlay").addClass("visible")):j=setTimeout(function(){A!=t&&(A.find(".fullwidthabnner").hasClass("hovered")||A.find(".fullwidthabnner").revresume().closest(".slider").trigger("mousemove")),n.find(".header-overlay").removeClass("visible")},300)}),e(window).scroll(function(){f.length&&(i=u.is(":visible")?0:.6667*T()>e(window).scrollTop()?e(window).scrollTop()*-.5:.6667*T()*-.5,f.hasClass("header-parallax")&&f.css("marginBottom",i).find(".page-title").css("bottom",i*-.5+50)),s=k+(C-k)*(v-e(window).scrollTop())/v,l.css({paddingTop:function(){return u.is(":visible")?C:s>k?s:k},paddingBottom:function(){return u.is(":visible")?C:s>k?s:k}}),n.hasClass("stickymenu")&&!u.is(":visible")&&x()<=e(window).scrollTop()?(c.addClass("stickynav"),g.css("display","block"),e(document).height()-e(window).height()<=e(window).scrollTop()?p.removeClass("stickyfooter-bottom"):p.addClass("stickyfooter-bottom")):(c.removeClass("stickynav"),g.css("display","none")),e(window).scrollTop()>0?n.find("#scroll-top").fadeIn(200):n.find("#scroll-top").fadeOut(200)}),e(window).resize(function(){e(window).trigger("scroll"),v=v=o.length?o.outerHeight():0,n.hasClass("stickyfooter")&&(u.is(":visible")?(n.removeClass("stickyfooter"),a.css("marginBottom",0)):(n.addClass("stickyfooter"),y=h.height?h.outerHeight():0,a.css("marginBottom",y-5))),u.is(":visible")?(u.hasClass("open")||d.css("display","none").find('li:not(".nav-path-selected")').children("ul").css("display","none"),d.find("li").addClass("noLava").find("ul").each(function(){var t=e(this),i=t.find(">li>a").parents("ul").length;t.find(">li>a").css({paddingLeft:20*(i-1)+40+"px",backgroundPosition:20*(i-1)+20+"px -5px"}),t.find(">li.nav-path-selected>a").css({paddingLeft:20*(i-1)+40+"px",backgroundPosition:20*(i-1)+20+"px -54px"})})):(u.removeClass("open"),d.css("display","block").find("ul").css("display","block").end().find("li").removeClass("noLava").end().find("ul > li").addClass("noLava").end().find("li.nav-path-selected").trigger("mouseenter").trigger("mouseleave").end().find("li>a").css("paddingLeft","20px"))}).resize(),jQuery().magnificPopup&&(e(".magnific-popup").each(function(){e(this).magnificPopup({type:"image",closeOnContentClick:!0})}),e(".magnific-popup-html").each(function(){e(this).magnificPopup({disableOn:700,type:"iframe"})})),(e("html").hasClass("lt-ie10")||e("html").hasClass("lt-ie9"))&&n.find("input[placeholder], textarea[placeholder]").each(function(){var t=e(this);t.val(t.attr("placeholder")),t.delegate(this,"focus blur",function(e){"focus"==e.type?t.val()==t.attr("placeholder")&&t.val(""):(""==t.val()||t.val()==t.attr("placeholder"))&&t.val(t.attr("placeholder"))})}),n.find("#scroll-top").css("display","none").delegate("a","click",function(t){t.preventDefault(),e("html, body").gwScrollTo({easing:"easeInOutCubic"})}),n.find(".searchform").delegate(this,"submit",function(){var t=e(this),i=t.find('input[name="s"]');return""==i[0].value?(i.focus(),!1):void 0}),d.delegate("li a","click mouseenter mouseleave",function(t){var i=e(this),s=e(this).parent(),n=s.parents("ul").parent("li");"click"==t.type&&(this.href.match(/#/gi)?t.preventDefault():(u.find(".menu-title").html(i.text()),d.find("li.nav-path-selected").removeClass("nav-path-selected").find(">a").css("backgroundPositionY","-5px").css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -5px"}),s.addClass("nav-path-selected"),n.each(function(){var t=e(this);t.hasClass("nav-path-selected")||t.addClass("nav-path-selected").find(">a").css("backgroundPositionY","-54px").css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -54px"})}))),u.is(":visible")&&("click"==t.type?!i.closest("li").find(">ul").is(":visible")&&i.closest("li").find(">ul").length>0&&(t.preventDefault(),i.closest("li").find(">ul").slideDown(300,"easeInOutCubic").end().siblings().find("ul").slideUp(300,"easeInOutCubic")):"mouseenter"==t.type?(i.css("backgroundPositionY","-54px"),i.css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -54px"})):i.closest("li").hasClass("nav-path-selected")||(i.css("backgroundPositionY","-5px"),i.css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -5px"})))}),u.delegate(this,"click",function(){var t=e(this);d.is(":visible")?d.slideUp(300,"easeInOutCubic"):(t.addClass("open"),d.slideDown(300,"easeInOutCubic"))}),jQuery().lavaLamp&&setTimeout(function(){d.each(function(){e(this).children("li.").addClass("selectedLava").end().find("ul > li").addClass("noLava").end().lavaLamp({fx:"easeOutExpo",speed:500})})},100),n.find(".alert").delegate(".close","click",function(){e(this).closest(".alert").slideUp()}),n.find(".tabs").delegate("li","click",function(t){var i=e(this),s=i.closest(".tabs-wrapper").next(".tabs-content"),n=s.find("> li"),a=i.closest(".tabs").find("> li").index(i);t.preventDefault(),i.hasClass("current")?s.stop().animate({height:n.eq(a).find(".tab-content").outerHeight()},350,"jswing"):(i.addClass("current").siblings(".current").removeClass("current"),n.eq(a).siblings(".current").find(".tab-content").css("display","block").fadeTo(200,0,function(){s.stop().animate({height:n.eq(a).find(".tab-content").outerHeight()},350,"jswing",function(){n.eq(a).siblings(".current").removeClass("current").find(".tab-content").css("display","none"),n.eq(a).addClass("current").find(".tab-content").fadeTo(200,1)})}))}),e(window).resize(function(){n.find(".tabs li.current").trigger("click")}),n.find(".tabs-content").delegate(".tab-title","click",function(t){var i=e(this),s=i.closest("li"),n=i.closest(".tabs-content"),a=(n.find("> li"),n.prev(".tabs-wrapper").find(".tabs")),o=a.find("> li"),l=n.find("> li").index(s);t.preventDefault(),s.hasClass("current")||(s.addClass("current").find(".tab-content").stop().css({display:"none",opacity:1}).slideDown(500,"easeOutExpo"),s.siblings(".current").removeClass("current").find(".tab-content").stop().css("display","block").slideUp(500,"easeOutExpo",function(){n.css("height",s.find(".tab-content").outerHeight())}),o.eq(l).addClass("current").siblings().removeClass("current"))}),n.find(".toggles").delegate(".toggle-title","click",function(t){var i=e(this),s=i.closest("li");t.preventDefault(),s.hasClass("current")?s.removeClass("current").find(".toggle-content").stop().css("display","block").slideUp(500,"easeOutExpo"):(s.addClass("current").find(".toggle-content").stop().css("display","none").slideDown(500,"easeOutExpo"),s.siblings(".current").find(".toggle-title").trigger("click"))});var P=n.find(".progress-bars");P.find(".progress-label span").html("0%").end().find(".bar").css("width",0).bind("inview",function(t,i){var s,n=e(this),a=n.closest("li");n.addClass("trans-enabled"),i===!0&&(n.css("width",Math.round(parseFloat(n.data("width")))+"%").unbind("inview"),s=setInterval(function(){var e=Math.round(n.width()/a.width()*100);a.find(".progress-label span").html(e+"%"),e==Math.round(parseFloat(n.data("width")))&&clearInterval(s)},5))});var O=n.find(".portfolio-isotope"),I=O.find(".portfolio-filter"),L=O.find(".portfolio-posts");jQuery().isotope&&I.delegate("li","click",function(){var i,s=e(this);i=s.data("filter")==t?"*":'[data-filter*="'+s.data("filter")+'"]',setTimeout(function(){L.isotope({filter:i})},100)}),e(window).resize(function(){I.find("li.current").length?I.find("li.current").trigger("click"):I.find("li:first").trigger("click")}),jQuery().carouFredSel&&(n.find(".testimonials .slides").each(function(){var t=e(this);t.carouFredSel({responsive:!0,auto:!1,height:"variable",width:"100%",pagination:{keys:!1,container:e(this).closest(".slider").find(".slider-pagination"),anchorBuilder:function(e){return'<li><a href="#" data-id="'+e+'"></a></li>'}},swipe:{onTouch:!0},onCreate:function(){e(window).on("resize",function(){var e=setInterval(function(){0!=t.find("li:first").height()&&(clearInterval(e),t.parent().add(t).css("height",t.children().first().height()+"px"))},10)}).trigger("resize")}})}),n.find(".post-slider .slides").each(function(){var t=e(this);t.carouFredSel({responsive:!0,height:"variable",width:"100%",height:"auto",auto:!1,next:t.closest(".slider").find(".slider-control-next"),prev:t.closest(".slider").find(".slider-control-prev"),swipe:{onTouch:!0},onCreate:function(){e(window).on("resize",function(){var e=setInterval(function(){0!=t.find("li:first").height()&&(clearInterval(e),t.parent().add(t).css("height",t.children().first().height()+"px"))},10)}).trigger("resize")}})}),e(".brands .slides").each(function(){var t=e(this);t.carouFredSel({responsive:!0,auto:!1,width:"100%",next:t.closest(".slider").find(".slider-controls .next"),prev:t.closest(".slider").find(".slider-controls .prev"),scroll:1,swipe:{onTouch:!0},items:{width:300,visible:{min:1,max:4}},onCreate:function(){e(window).on("resize",function(){var e=setInterval(function(){0!=t.find("li:first").height()&&(clearInterval(e),t.parent().add(t).css("height",t.children().first().height()+"px"))},100)}).trigger("resize")}})}));var z,D=n.find(".ticker"),M=e(".ticker-controls");D.each(function(){e(this).bind("loaded clicked",function(i,s){var n=e(this),a=n.find(".ticker-list"),o=a.find("li"),l=o.length,s=s==t?"fw":"rev",r=function(e){return e=e>=l?0:e,e=0>e?l-1:e},c=function(e,i){i=i==t?"fw":i,e=e==t?"fw"==i?0:l-1:r(e);var s,c=r(e+1),d=r(e-1);e="fw"==i?c:d,s=o.eq(e).height(),o.stop().fadeTo(200,0,function(){o.css({position:"absolute",top:o.eq(e).height()}).eq(e).css("top","-="+o.eq(e).height()),a.stop().animate({height:s},250,"jswing",function(){o.stop().fadeTo(200,1)})}),"fw"==i?n.data("id",e):n.data("id",e)};"clicked"==i.type&&(clearInterval(z),c(n.data("id"),s),n.trigger("loaded")),"loaded"==i.type&&(clearInterval(z),n.data("id")==t&&(n.data("id",0),a.css("height",o.eq(n.data("id")).height())),z=setInterval(function(){c(n.data("id"))},5e3))})}),M.delegate(".arrow","click",function(t){var i=e(this),s=i.closest(".ticker-controls").prev(".ticker");t.preventDefault(),i.hasClass("next")?s.trigger("clicked"):s.trigger("clicked","rev")}),M.prev(".ticker").trigger("loaded");var H=!1;e(window).resize(function(){H&&clearTimeout(H),H=setTimeout(function(){M.prev(".ticker").trigger("loaded")},100)});var Q=n.find("#contact-form");Q.length&&Q.submit(function(){var i=e(this),s=i.find("#contact-submit"),a=i.find("input[type=text], textarea"),o=(i.find("#captcha"),i.parent().find("#contact-message")),l=s[0].innerHTML;return s.hasClass("disabled")?!1:(e.ajax({type:"POST",url:i[0].action,data:i.serialize(),dataType:"json",beforeSend:function(){o.length>0&&o.stop().slideUp(),s.css("opacity",.5).addClass("disabled")[0].innerHTML=s.data("send")}}).done(function(r){if(s.css("opacity",1).removeClass("disabled")[0].innerHTML=l,a.filter("#captcha")[0].value="",0==o.length&&(o=e("<div />",{id:"contact-message"}).css("display","none"),i.before(o)),"success"==r.result)a.val(""),o.addClass("alert alert-success1").removeClass("alert-error").html(r.message.mail_sent+'<button type="button" class="close"><span class="alert-icon-close"></span></button>').slideDown();else if(r.message.mail_sent!=t)o.addClass("alert alert-error").removeClass("alert-success1").html(r.message.mail_sent+'<button type="button" class="close"><span class="alert-icon-close"></span></button>').slideDown();else{var c="";jQuery.each(r.message,function(e,t){c+="<p>"+t+"</p>"}),o.addClass("alert alert-error").removeClass("alert-success1").html(c+'<button type="button" class="close"><span class="alert-icon-close"></span></button>').slideDown()}n.find(".alert").delegate(".close","click",function(){e(this).closest(".alert").slideUp()})}),!1)});var S=n.find("#header-map");if(jQuery().goMap&&google&&google.maps){S.each(function(){e(this).goMap({markers:[{address:"Leatherhead, Surrey United Kingdom 01372 818123, United Kingdom",title:"Granth",icon:{image:"assets/images/misc/pin_red.png"}}],scrollwheel:!1,zoom:13,maptype:"ROADMAP"})});var q=!1;e(window).resize(function(){q&&clearTimeout(q),q=setTimeout(function(){e.goMap.getMarkers("markers").length&&e.goMap.map.panTo(e.goMap.getMarkers("markers")[0].getPosition())},100)})}if(jQuery().revolution){var A=n.find(".rev-slider"),U=570;A.find(".fullwidthabnner").css({height:U,maxHeight:U}).revolution({delay:9e3,startheight:U,startwidth:1020,navigationType:"none",navigationArrows:"none",touchenabled:"on",onHoverStop:"on",navOffsetHorizontal:0,navOffsetVertical:20,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,hideSliderAtLimit:0,stopAtSlide:-1,stopAfterLoops:-1,shadow:0,fullWidth:"on"}),A.delegate(".slider-control-prev, .slider-control-next","click",function(t){{var i=e(this);i.closest(".rev-slider")}t.preventDefault(),i.hasClass("slider-control-prev")?A.revprev():A.revnext()})}}),jQuery(document).ready(function(){jQuery(".gallery-box").fancybox({helpers:{title:{type:"float"}},afterShow:function(){var e=$(this.element).attr("data-download");void 0!=e&&$('<a class="fancybox-download" href="'+e+'"></a>').appendTo(this.outer)},padding:0})}),jQuery(document).ready(function(){$(".member-item img").on("error",function(e){-1==e.target.src.indexOf("gravatarmissing.png")&&(e.target.src="/packages/theme_thimbus/themes/thimbus/assets/images/gravatarmissing.png")})});
\ No newline at end of file
This diff was suppressed by a .gitattributes entry.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
{% load i18n static compile_static menu %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<!--[if IE 9]><html dir="ltr" lang="{{ get_current_language }}" class="lt-ie10"> <![endif]-->
<!--[if gt IE 9]><!--><html dir="ltr" lang="{{ get_current_language }}" class="gt-ie9 non-ie"><!--<![endif]-->
<!--[if IE 9]><html dir="ltr" lang="{{ LANGUAGE_CODE }}" class="lt-ie10"> <![endif]-->
<!--[if gt IE 9]><!--><html dir="ltr" lang="{{ LANGUAGE_CODE }}" class="gt-ie9 non-ie"><!--<![endif]-->
<head>
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]-->
......@@ -16,6 +16,7 @@
{% block css_head %}
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,400,700" rel="stylesheet" type="text/css">
<link href="{% static "fonts/gillsans.css" %}" rel="stylesheet" type="text/css">
<link href="{% static "plugins/font-awesome/css/font-awesome.min.css" %}" rel="stylesheet" type="text/css">
<link href="{% static "css/bootstrap.min.css" %}" rel="stylesheet" type="text/css">
<link href="{% static "plugins/magnific-popup/magnific-popup.css" %}" rel="stylesheet" type="text/css">
......@@ -27,9 +28,10 @@
<!-- js head -->
{% block js_head %}
<script type="text/javascript" src="{% static "plugins/jquery-1.8.1.min.js" %}"></script>
<script type="text/javascript" src="{% static "plugins/jquery-1.8.3.min.js" %}"></script>
<script type="text/javascript" src="{% static "js/jquery.jscroll.min.js" %}"></script>
<script type="text/javascript" src="{% static "js/jquery.fancybox.pack.js" %}"></script>
<script type="text/javascript" src="{% static "js/thimbus.js" %}"></script>
<script type="text/javascript" src="{% static "js/scripts.js" %}"></script>
{% endblock %}
......@@ -136,15 +138,32 @@
<script type="text/javascript" src="{% static "plugins/magnific-popup/jquery.magnific-popup.min.js" %}"></script>
{% endblock %}
{% if not user.is_authenticated %}
<div class="thimbus-ui" id="thimbus-account-menu-container">
<div class="btn-group open" id="language-selector-menu">
<form action="{% url 'set_language' %}" id="set_language_form" method="post">
{% csrf_token %}
<input name="next" type="hidden" value="{{ redirect_to }}" />
{% if LANGUAGE_CODE == 'nl' %}
<input type="hidden" name="language" value="en" />
<a class="btn btn-default" id="language_submit_btn"><i class="fa fa-flag"></i>English</a>
{% else %}
<input type="hidden" name="language" value="nl" />
<a class="btn btn-default" id="language_submit_btn"><i class="fa fa-flag"></i>Nederlands</a>
{% endif %}
</form>
</div>
{% if not user.is_authenticated %}
<div class="btn-group open" id="thimbus-account-menu">
<a class="btn btn-default" href="/account"><i class="fa fa-user"></i> {% trans "Login" %}</a>
<a class="btn btn-default" href="/account"><i class="fa fa-user"></i>{% trans "Login" %}</a>
</div>
</div>
{% endif %}
</div>
{% block footer_scripts %}
<script type="text/javascript" src="{% static "js/footer.js" %}"></script>
{% endblock %}
</body>
<!-- /body -->
</html>
\ No newline at end of file
</html>
......@@ -32,4 +32,5 @@ urlpatterns = [
url(r'^contact$', TemplateView.as_view(template_name='singlepages/contact.html'), name='contact'),
# Default login helpers
url(r'^', include('django.contrib.auth.urls')),
url(r'^i18n/', include('django.conf.urls.i18n')),
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment