Deprecated: wp_getimagesize(): Implicitly marking parameter $image_info as nullable is deprecated, the explicit nullable type must be used instead in /mnt/web323/c3/74/54005074/htdocs/WordPress_27/wp-includes/media.php on line 5286 Warning: Cannot modify header information - headers already sent by (output started at /mnt/web323/c3/74/54005074/htdocs/WordPress_27/wp-includes/media.php:5286) in /mnt/web323/c3/74/54005074/htdocs/WordPress_27/wp-content/themes/unik/js/sticky.php on line 12 var woocommerce = false;var wpml = false var ajaxScreenSize = 0; // selective nav window.selectnav=function(){"use strict";var e=function(e,t){function c(e){var t;if(!e)e=window.event;if(e.target)t=e.target;else if(e.srcElement)t=e.srcElement;if(t.nodeType===3)t=t.parentNode;if(t.value)window.location.href=t.value}function h(e){var t=e.nodeName.toLowerCase();return t==="ul"||t==="ol"}function p(e){for(var t=1;document.getElementById("selectnav"+t);t++);return e?"selectnav"+t:"selectnav"+(t-1)}function d(e){a++;var t=e.children.length,n="",l="",c=a-1;if(!t){return}if(c){while(c--){l+=o}l+=" "}for(var v=0;v"+l+g+"";if(s){var b=e.children[v].children[1];if(b&&h(b)){n+=d(b)}}}}if(a===1&&u){n='"+n}if(a===1){n='"}a--;return n}e=document.getElementById(e);if(!e){return}if(!h(e)){return}if(!("insertAdjacentHTML"in window.document.documentElement)){return}document.documentElement.className+=" js";var n=t||{},r=n.activeclass||"active",i=typeof n.autoselect==="boolean"?n.autoselect:true,s=typeof n.nested==="boolean"?n.nested:true,o=n.indent||"→",u=n.label||"- Navigation -",a=0,f=" selected ";e.insertAdjacentHTML("afterend",d(e));var l=document.getElementById(p());if(l.addEventListener){l.addEventListener("change",c)}if(l.attachEvent){l.attachEvent("onchange",c)}return l};return function(t,n){e(t,n)}}() /* AJAX LOAD ---------------------------------------------------------------------------------------------*/ var init = true, state = window.history.pushState !== undefined, activeColor = '#f6499a', niceScroll = 1; var base = "https://gabinimble.com", STATE = '', tempDir = 'https://gabinimble.com/wp-content/themes/unik'; var ie = (function(){ var undef, v = 3, div = document.createElement('div'), all = div.getElementsByTagName('i'); while ( div.innerHTML = '', all[0] ); return v > 4 ? v : undef; }()); jQuery(document).ready(function ($) { "use strict"; // set variables var $mainContent = $("#ajax-content"), $ajaxSpinner = $("#ajax-loader"), $searchInput = $("#s"), $allLinks = $("a"), Href, $el; if (typeof(firstLoad) === 'undefined') { var firstLoad = true; } if(ie === undefined){ var init = true, state = window.history.pushState !== undefined; // query search results $('#searchform').submit(function (e) { window.firstLoad = false; var s = $searchInput.val().replace(/ /g, '+'); if (s) { var query = '/?s=' + s; $.address.value(query); } e.preventDefault(); }); $(document).on("click", "a:urlInternal", function(e) { window.firstLoad = false; $el = $(this); // Caching var Href = $el.attr('href'); if ( $(window).width() >= ajaxScreenSize && (!$el.hasClass("comment-reply-link")) && ($el.attr("id") != 'cancel-comment-reply-link') && Href.indexOf('wp-admin') === -1 && Href.indexOf('wp-login') === -1 && Href.indexOf('.jpg') === -1 && Href.indexOf('.png') === -1 && Href.indexOf('.gif') === -1 && Href.indexOf('.zip') === -1 && Href.indexOf('.pdf') === -1&& Href.indexOf('.mp3') === -1 && Href.indexOf('#') === -1 && Href.indexOf('feed') === -1 && Href.indexOf('add-to-cart') === -1) { e.preventDefault(); var path = $(this).attr('href').replace(base, ''); if(window.location.href.replace(/\/$/, '') !== Href){ if(path==='' || path==='/'){ $.address.state(STATE).value(' '); }else{ $.address.state(STATE).value(path); } } // delete zoom container $(document).find('.zoomContainer').remove(); } }); // ALL AJAX Stuff $.address.state(STATE).init(function() { $('.wrap a:urlInternal:eq(-"wp-admin"):eq(-"wp-login"):eq(-"#"):eq(-".jpg"):eq(-".gif"):eq(-".png"):eq(-".zip"):eq(-".pdf"):eq(-".mp4"):eq(-".mp3"):eq(-"feed")').address(); }).change(function (event) { event.value = event.value.replace(' ',''); var Href = event.value; var Location = window.location; if(window.firstLoad==false){ if (event.value && Href.indexOf('wp-admin') === -1 && Href.indexOf('wp-login') === -1 && Href.indexOf('.jpg') === -1 && Href.indexOf('.png') === -1 && Href.indexOf('.gif') === -1 && Href.indexOf('.mp3') === -1 && Href.indexOf('.wma') === -1 && Href.indexOf('.mp4') === -1 && Href.indexOf('.zip') === -1 && Href.indexOf('.pdf') === -1 && Href.indexOf('#') === -1 && Href.indexOf('feed') === -1) { $ajaxSpinner.fadeIn('fast').addClass('active'); $mainContent.animate(function(){ opacity: '0'; },400); $.ajax({ url: base + event.value, dataType: "html", method: "get", cache: false, success: function (data) { var result = $('
'+data+'
').find('#ajax-content'); var Scripts , pageBg ,Allcontent; Allcontent = $('
'+data+'
'); if(Allcontent.find('#primary').length < 1){ window.location = base + event.value; $ajaxSpinner.fadeOut('fast').removeClass('active'); $mainContent.animate(function(){ opacity: '1'; },400); return false; } Scripts = $('
'+data+'
').find('script[src]'); pageBg = Allcontent.find('.page_bg'); $('#menu').html(Allcontent.find('#menu').html()); $('.page_bg').attr('style',pageBg.attr('style')); if(wpml==true){ $('#lang_sel').html(Allcontent.find('#lang_sel').html()); } if (typeof(body) === 'undefined') {var body = '';} if (typeof(Newbody) === 'undefined') {var Newbody = '';} body = data.split(''); body = body[0]; body = $('
'); var bodyClass = body.attr('class'); $('body').attr('class',bodyClass); // update body class $('#menu').html(Allcontent.find('#menu').html()); $('.page_bg').attr('style',pageBg.attr('style')); var Head = data.split(''); Head = Head[1].split(''); var Head = $('
'+Head[0]+'
'); $('title').html(Head.find('title').html()); // update new title // find new inline css Allcontent.find('style').each(function(){ var Currbody = $('html').html(); if(Currbody.indexOf($(this).html()) === -1){ $('head').append(''); } }); Head.find('link[rel="stylesheet"]').each(function(){ var src = $(this).attr('href'); src = src.split('/'); if(src[src.length] < 0){ src = src[src.length-1]; }else{ src = $(this).attr('href'); } if(src.indexOf('.css') > 0){ src = src.split('.css'); src = src[0]; src = src.split('//'); src = src[1]; var exHead = $('head').html(); // insert any new css file if(exHead.indexOf(src) < 0){ $('head').append(''); } } }); $mainContent.html(result.html()).attr('class',result.attr('class')); $ajaxSpinner.fadeOut('fast').removeClass('active'); $mainContent.animate(function(){ opacity: '1'; },400); $.get(window.location); $.getScript(tempDir+'/js/main.js'); // woocommerce if(woocommerce === true){ $.getScript('https://gabinimble.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js'); $.getScript('https://gabinimble.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js'); $.getScript('https://gabinimble.com/wp-content/plugins/woocommerce/assets/js/frontend/price-slider.js'); $.getScript('https://gabinimble.com/wp-content/plugins/woocommerce/assets/js/frontend/single-product.min.js'); $.getScript('https://gabinimble.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js'); } var found = false; Scripts.each(function(){ var NewScript = $(this).attr('src'); $('html script[src]').each(function(){ if($(this).attr('src')===NewScript){ found = true; return found; } }); if(found === false){ $.getScript(NewScript); } found = false; }); $('.animate-init').removeClass('animate-init'); }, error: function (xhr, status, err) { window.location.href = base + event.value; } }); } } }); } // menu toggle on click $(document).on('click','#menu a',function(){ if( $(window).width() < 768 && $('.menu.navbar-collapse').hasClass('in') ){ $('.menu.navbar-collapse').removeClass('in').addClass('collapse').css('height','1px'); } }); /* SMALL TOP MENU ON SCROLL ---------------------------------------------------------------------------------------------*/ var topMenu = $('.main-top'), pos = topMenu.offset(); //check if page is already scrolled if($(this).scrollTop()>50){ topMenu.removeClass('default').addClass('small'); } //add margin to header if admin bar is active if($("#wpadminbar").length===1){ topMenu.css("margin-top",$("#wpadminbar").height()+"px"); } $(window).resize(function(){ if($("#wpadminbar").length===1){ topMenu.css("margin-top",$("#wpadminbar").height()+"px"); } }); $(window).scroll(function(){ if($(this).scrollTop() > pos.top+topMenu.height() && topMenu.hasClass('default')){ topMenu.addClass('small'); } else if($(this).scrollTop() <= pos.top && topMenu.hasClass('small')){ topMenu.removeClass('small'); } }); /* RESERVATION WIDGET TOGGLE ---------------------------------------------------------------------------------------------*/ $("#reservation-toggle").click(function(){ $("#reservation-widget").slideToggle('slow'); }); /* BACK TO TOP & GO TO BOTTOM ---------------------------------------------------------------------------------------------*/ var settings = { buttonTotop : '#back-to-top', textTop : 'Bact to top', min : 200, fadeIn : 400, fadeOut : 400, scrollSpeed : 800, easingType : 'easeInOutExpo' }, oldiOS = false, oldAndroid = false; // Detect if ios devices that does not support fixed position if( /(iPhone|iPod|iPad)\sOS\s[0-4][_\d]+/i.test(navigator.userAgent) ) {oldiOS = true;} // Detect if ios devices that does not support fixed position if( /Android\s+([0-2][\.\d]+)/i.test(navigator.userAgent) ) {oldAndroid = true;} $( settings.buttonTotop ).on('click', function( e ){ $('html, body').animate({ scrollTop : 0 }, settings.scrollSpeed, settings.easingType ); e.preventDefault(); }); $( settings.buttonTobottom ).on('click', function( e ){ $('html, body').animate({ scrollTop : $(document).height() }, settings.scrollSpeed, settings.easingType ); e.preventDefault(); }); $(window).scroll(function() { var position = $(window).scrollTop(); var docHeight = $(document).height(); var windowHeight = $(window).height(); if( oldiOS || oldAndroid ) { $( settings.buttonTotop ).css({ 'position' : 'absolute', 'top' : position + $(window).height() }); } if ( position > settings.min ){ $( settings.buttonTotop ).addClass('on').removeClass('off');} else {$( settings.buttonTotop ).removeClass('on').addClass('off');} }); /* BACKGROUND SLIDER ---------------------------------------------------------------------------------------------*/ $(window).load(function() { $.supersized({ // Functionality slideshow : 1, // Slideshow on/off autoplay : 1, // Slideshow starts playing automatically start_slide : 1, // Start slide (0 is random) stop_loop : 0, // Pauses slideshow on last slide random : 0, // Randomize slide order (Ignores start slide) slide_interval : 10000, // Length between transitions transition : 1 , // 0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left transition_speed : 2000, // Speed of transition new_window : 0, // Image links open in new window/tab pause_hover : 0, // Pause slideshow on hover keyboard_nav : 0, // Keyboard navigation on/off performance : 0, // 0-Normal, 1-Hybrid speed/quality, 2-Optimizes image quality, 3-Optimizes transition speed // (Only works for Firefox/IE, not Webkit) image_protect : 1, // Disables image dragging and right click with Javascript // Size & Position min_width : 0, // Min width allowed (in pixels) min_height : 0, // Min height allowed (in pixels) vertical_center : 1, // Vertically center background horizontal_center : 1, // Horizontally center background fit_always : 0, // Image will never exceed browser width or height (Ignores min. dimensions) fit_portrait : 1, // Portrait images will not exceed browser height fit_landscape : 0, // Landscape images will not exceed browser width // Components slide_links : 'blank', // Individual links for each slide (Options: false, 'num', 'name', 'blank') thumb_links : 1, // Individual thumb links for each slide thumbnail_navigation : 1, // Thumbnail navigation slides : [ // Slideshow Images {image : 'http://gabinimble.com/wp-content/uploads/2016/01/bg-slide-2-2016.png', title : '', thumb : '', url : ''}, {image : 'http://gabinimble.com/wp-content/uploads/2016/01/bg-slide-1-2016.png', title : '', thumb : '', url : ''}, ], // Theme Options progress_bar : 1, // Timer for each slide mouse_scrub : 0 }); }); /* NAVIGATION MENU ---------------------------------------------------------------------------------------------*/ var menu = $('#menu').superfish({ delay: 200, speed: 200, autoArrows: true }); /* RESPONSIVE navigation ---------------------------------------------------------------------------------------------*/ $('.logo').append(''); /* FOOTER AUDIO PLAYER ---------------------------------------------------------------------------------------------*/ $(window).load(function(){ // Adapted from: http://remysharp.com/2010/12/23/audio-sprites/ var click = document.ontouchstart === undefined ? 'click' : 'touchstart'; var kickoff = function () { $("#footer_jplayer").jPlayer("play"); document.documentElement.removeEventListener(click, kickoff, true); }; document.documentElement.addEventListener(click, kickoff, true); var FooterPlaylist = new jPlayerPlaylist({ jPlayer: "#footer_jplayer", cssSelectorAncestor: "#jp_footer_container" }, [ { title:"", free:false, mp3: "", artist:"", poster: "" }, ], { playlistOptions: { autoPlay: true, enableRemoveControls: true, displayTime: 'slow', }, swfPath: "https://gabinimble.com/wp-content/themes/unik/js", supplied: "webmv, ogv, m4v, oga, mp3", errorAlerts: false, warningAlerts: false, toggleDuration: true }); // footer mp3 player $(document).on('click','.cp-play',function(e) { var $parent = $(this).parents('.cp-controls'), $title = $parent.attr('data-title'), $artist = $parent.attr('data-artist'), $poster = $parent.attr('data-poster'), $source = $parent.attr('data-source'), $button = $(this); nt_add_song($title, $artist, $source, $poster, $button); e.preventDefault(); }); $(document).on('click','.cp-pause',function(e) { FooterPlaylist.pause(); $(this).hide(); $(this).siblings('.cp-play').show(); e.preventDefault(); }); //function to add song function nt_add_song($title, $artist, source, $poster, button){ var data = { 'action': 'unik_decript_song', 'song': source }; jQuery.post('https://gabinimble.com/wp-admin/admin-ajax.php', data, function(response) { var found = checkPlayList($title); if(found=='no'){ var index = addToFooterList($title, $artist, response, $poster, button); playByIndex(index,button); }else{ playByIndex(found,button); } }); } //function to add song to footer list function addToFooterList($title, $artist, $source, $poster, button){ FooterPlaylist.add({ title: $title, mp3: $source, poster: $poster, artist: $artist, }); var index = checkPlayList($title); return index; } //function to play song by index function playByIndex(index,button){ FooterPlaylist.play(index); } //function to check list by title function checkPlayList($title){ var found = 'no'; $('#jp_footer_container .playlist li').each(function(){ var $listTitle = $(this).find('.jp-playlist-item').html().split('