diff --git a/assets/css/customizer.css b/assets/css/customizer.css index b60112e9..ee9adc8d 100644 --- a/assets/css/customizer.css +++ b/assets/css/customizer.css @@ -1,3 +1,12 @@ +li[id*="accordion-panel-onepress"] > .accordion-section-title{ + padding-left: 30px; +} +li#accordion-panel-onepress_options > .accordion-section-title, +li#accordion-panel-onepress_typo > .accordion-section-title +{ + padding-left: 14px; +} + .theme-action-count { padding: 0 6px; display: inline-block; diff --git a/assets/js/lightgallery.js b/assets/js/lightgallery.js index 4301fb3f..5c310d02 100755 --- a/assets/js/lightgallery.js +++ b/assets/js/lightgallery.js @@ -1,1337 +1,1648 @@ -/*! lightgallery - v1.3.3 - 2016-09-24 -* http://sachinchoolur.github.io/lightGallery/ -* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */ +/*! lightgallery - v1.3.9 - 2017-02-05 + * http://sachinchoolur.github.io/lightGallery/ + * Copyright (c) 2017 Sachin N; Licensed GPLv3 */ (function (root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module unless amdModuleId is set - define(["jquery"], function (a0) { - return (factory(a0)); - }); - } else if (typeof exports === 'object') { - // Node. Does not work with strict CommonJS, but - // only CommonJS-like environments that support module.exports, - // like Node. - module.exports = factory(require("jquery")); - } else { - factory(jQuery); - } -}(this, function (jquery) { - - -(function( $ ){ - 'use strict'; - - var defaults = { - - mode: 'lg-slide', - - // Ex : 'ease' - cssEasing: 'ease', - - //'for jquery animation' - easing: 'linear', - speed: 600, - height: '100%', - width: '100%', - addClass: '', - startClass: 'lg-start-zoom', - backdropDuration: 150, - hideBarsDelay: 6000, - - useLeft: false, - - closable: true, - loop: true, - escKey: true, - keyPress: true, - controls: true, - slideEndAnimatoin: true, - hideControlOnEnd: false, - mousewheel: true, - - getCaptionFromTitleOrAlt: true, - - // .lg-item || '.lg-sub-html' - appendSubHtmlTo: '.lg-sub-html', - - subHtmlSelectorRelative: false, - - /** - * @desc number of preload slides - * will exicute only after the current slide is fully loaded. - * - * @ex you clicked on 4th image and if preload = 1 then 3rd slide and 5th - * slide will be loaded in the background after the 4th slide is fully loaded.. - * if preload is 2 then 2nd 3rd 5th 6th slides will be preloaded.. ... ... - * - */ - preload: 1, - showAfterLoad: true, - selector: '', - selectWithin: '', - nextHtml: '', - prevHtml: '', - - // 0, 1 - index: false, - - iframeMaxWidth: '100%', - - download: true, - counter: true, - appendCounterTo: '.lg-toolbar', - - swipeThreshold: 50, - enableSwipe: true, - enableDrag: true, - - dynamic: false, - dynamicEl: [], - galleryId: 1 - }; + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module unless amdModuleId is set + define(['jquery'], function (a0) { + return (factory(a0)); + }); + } else if (typeof exports === 'object') { + // Node. Does not work with strict CommonJS, but + // only CommonJS-like environments that support module.exports, + // like Node. + module.exports = factory(require('jquery')); + } else { + factory(root["jQuery"]); + } +}(this, function ($) { + + (function() { + 'use strict'; + + var defaults = { + + mode: 'lg-slide', + + // Ex : 'ease' + cssEasing: 'ease', + + //'for jquery animation' + easing: 'linear', + speed: 600, + height: '100%', + width: '100%', + addClass: '', + startClass: 'lg-start-zoom', + backdropDuration: 150, + hideBarsDelay: 6000, + + useLeft: false, + + closable: true, + loop: true, + escKey: true, + keyPress: true, + controls: true, + slideEndAnimatoin: true, + hideControlOnEnd: false, + mousewheel: true, + + getCaptionFromTitleOrAlt: true, + + // .lg-item || '.lg-sub-html' + appendSubHtmlTo: '.lg-sub-html', + + subHtmlSelectorRelative: false, + + /** + * @desc number of preload slides + * will exicute only after the current slide is fully loaded. + * + * @ex you clicked on 4th image and if preload = 1 then 3rd slide and 5th + * slide will be loaded in the background after the 4th slide is fully loaded.. + * if preload is 2 then 2nd 3rd 5th 6th slides will be preloaded.. ... ... + * + */ + preload: 1, + showAfterLoad: true, + selector: '', + selectWithin: '', + nextHtml: '', + prevHtml: '', + + // 0, 1 + index: false, + + iframeMaxWidth: '100%', + + download: true, + counter: true, + appendCounterTo: '.lg-toolbar', + + swipeThreshold: 50, + enableSwipe: true, + enableDrag: true, + + dynamic: false, + dynamicEl: [], + galleryId: 1 + }; - function Plugin(element, options) { + function Plugin(element, options) { - // Current lightGallery element - this.el = element; + // Current lightGallery element + this.el = element; - // Current jquery element - this.$el = $(element); + // Current jquery element + this.$el = $(element); - // lightGallery settings - this.s = $.extend({}, defaults, options); + // lightGallery settings + this.s = $.extend({}, defaults, options); - // When using dynamic mode, ensure dynamicEl is an array - if (this.s.dynamic && this.s.dynamicEl !== 'undefined' && this.s.dynamicEl.constructor === Array && !this.s.dynamicEl.length) { - throw ('When using dynamic mode, you must also define dynamicEl as an Array.'); - } + // When using dynamic mode, ensure dynamicEl is an array + if (this.s.dynamic && this.s.dynamicEl !== 'undefined' && this.s.dynamicEl.constructor === Array && !this.s.dynamicEl.length) { + throw ('When using dynamic mode, you must also define dynamicEl as an Array.'); + } - // lightGallery modules - this.modules = {}; + // lightGallery modules + this.modules = {}; - // false when lightgallery complete first slide; - this.lGalleryOn = false; + // false when lightgallery complete first slide; + this.lGalleryOn = false; - this.lgBusy = false; + this.lgBusy = false; - // Timeout function for hiding controls; - this.hideBartimeout = false; + // Timeout function for hiding controls; + this.hideBartimeout = false; - // To determine browser supports for touch events; - this.isTouch = ('ontouchstart' in document.documentElement); + // To determine browser supports for touch events; + this.isTouch = ('ontouchstart' in document.documentElement); - // Disable hideControlOnEnd if sildeEndAnimation is true - if (this.s.slideEndAnimatoin) { - this.s.hideControlOnEnd = false; - } + // Disable hideControlOnEnd if sildeEndAnimation is true + if (this.s.slideEndAnimatoin) { + this.s.hideControlOnEnd = false; + } - // Gallery items - if (this.s.dynamic) { - this.$items = this.s.dynamicEl; - } else { - if (this.s.selector === 'this') { - this.$items = this.$el; - } else if (this.s.selector !== '') { - if (this.s.selectWithin) { - this.$items = $(this.s.selectWithin).find(this.s.selector); + // Gallery items + if (this.s.dynamic) { + this.$items = this.s.dynamicEl; + } else { + if (this.s.selector === 'this') { + this.$items = this.$el; + } else if (this.s.selector !== '') { + if (this.s.selectWithin) { + this.$items = $(this.s.selectWithin).find(this.s.selector); + } else { + this.$items = this.$el.find($(this.s.selector)); + } } else { - this.$items = this.$el.find($(this.s.selector)); + this.$items = this.$el.children(); } - } else { - this.$items = this.$el.children(); } - } - - // .lg-item - this.$slide = ''; - - // .lg-outer - this.$outer = ''; - this.init(); - - return this; - } + // .lg-item + this.$slide = ''; - Plugin.prototype.init = function() { + // .lg-outer + this.$outer = ''; - var _this = this; + this.init(); - // s.preload should not be more than $item.length - if (_this.s.preload > _this.$items.length) { - _this.s.preload = _this.$items.length; + return this; } - // if dynamic option is enabled execute immediately - var _hash = window.location.hash; - if (_hash.indexOf('lg=' + this.s.galleryId) > 0) { + Plugin.prototype.init = function() { - _this.index = parseInt(_hash.split('&slide=')[1], 10); + var _this = this; - $('body').addClass('lg-from-hash'); - if (!$('body').hasClass('lg-on')) { - setTimeout(function() { - _this.build(_this.index); - }); - $('body').addClass('lg-on'); + // s.preload should not be more than $item.length + if (_this.s.preload > _this.$items.length) { + _this.s.preload = _this.$items.length; } - } - if (_this.s.dynamic) { + // if dynamic option is enabled execute immediately + var _hash = window.location.hash; + if (_hash.indexOf('lg=' + this.s.galleryId) > 0) { - _this.$el.trigger('onBeforeOpen.lg'); + _this.index = parseInt(_hash.split('&slide=')[1], 10); - _this.index = _this.s.index || 0; + $('body').addClass('lg-from-hash'); + if (!$('body').hasClass('lg-on')) { + setTimeout(function() { + _this.build(_this.index); + }); - // prevent accidental double execution - if (!$('body').hasClass('lg-on')) { - setTimeout(function() { - _this.build(_this.index); $('body').addClass('lg-on'); - }); + } } - } else { - - // Using different namespace for click because click event should not unbind if selector is same object('this') - _this.$items.on('click.lgcustom', function(event) { - // For IE8 - try { - event.preventDefault(); - event.preventDefault(); - } catch (er) { - event.returnValue = false; - } + if (_this.s.dynamic) { _this.$el.trigger('onBeforeOpen.lg'); - _this.index = _this.s.index || _this.$items.index(this); + _this.index = _this.s.index || 0; // prevent accidental double execution if (!$('body').hasClass('lg-on')) { - _this.build(_this.index); - $('body').addClass('lg-on'); + setTimeout(function() { + _this.build(_this.index); + $('body').addClass('lg-on'); + }); } - }); - } + } else { - }; + // Using different namespace for click because click event should not unbind if selector is same object('this') + _this.$items.on('click.lgcustom', function(event) { - Plugin.prototype.build = function(index) { + // For IE8 + try { + event.preventDefault(); + event.preventDefault(); + } catch (er) { + event.returnValue = false; + } - var _this = this; + _this.$el.trigger('onBeforeOpen.lg'); - _this.structure(); + _this.index = _this.s.index || _this.$items.index(this); - // module constructor - $.each($.fn.lightGallery.modules, function(key) { - _this.modules[key] = new $.fn.lightGallery.modules[key](_this.el); - }); + // prevent accidental double execution + if (!$('body').hasClass('lg-on')) { + _this.build(_this.index); + $('body').addClass('lg-on'); + } + }); + } + + }; - // initiate slide function - _this.slide(index, false, false); + Plugin.prototype.build = function(index) { - if (_this.s.keyPress) { - _this.keyPress(); - } + var _this = this; - if (_this.$items.length > 1) { + _this.structure(); - _this.arrow(); + // module constructor + $.each($.fn.lightGallery.modules, function(key) { + _this.modules[key] = new $.fn.lightGallery.modules[key](_this.el); + }); - setTimeout(function() { - _this.enableDrag(); - _this.enableSwipe(); - }, 50); + // initiate slide function + _this.slide(index, false, false, false); - if (_this.s.mousewheel) { - _this.mousewheel(); + if (_this.s.keyPress) { + _this.keyPress(); } - } - _this.counter(); + if (_this.$items.length > 1) { - _this.closeGallery(); + _this.arrow(); - _this.$el.trigger('onAfterOpen.lg'); + setTimeout(function() { + _this.enableDrag(); + _this.enableSwipe(); + }, 50); - // Hide controllers if mouse doesn't move for some period - _this.$outer.on('mousemove.lg click.lg touchstart.lg', function() { + if (_this.s.mousewheel) { + _this.mousewheel(); + } + } - _this.$outer.removeClass('lg-hide-items'); + _this.counter(); - clearTimeout(_this.hideBartimeout); + _this.closeGallery(); - // Timeout will be cleared on each slide movement also - _this.hideBartimeout = setTimeout(function() { - _this.$outer.addClass('lg-hide-items'); - }, _this.s.hideBarsDelay); + _this.$el.trigger('onAfterOpen.lg'); - }); + // Hide controllers if mouse doesn't move for some period + _this.$outer.on('mousemove.lg click.lg touchstart.lg', function() { - }; + _this.$outer.removeClass('lg-hide-items'); - Plugin.prototype.structure = function() { - var list = ''; - var controls = ''; - var i = 0; - var subHtmlCont = ''; - var template; - var _this = this; + clearTimeout(_this.hideBartimeout); - $('body').append('
'); - $('.lg-backdrop').css('transition-duration', this.s.backdropDuration + 'ms'); + // Timeout will be cleared on each slide movement also + _this.hideBartimeout = setTimeout(function() { + _this.$outer.addClass('lg-hide-items'); + }, _this.s.hideBarsDelay); - // Create gallery items - for (i = 0; i < this.$items.length; i++) { - list += ''; - } + }); - // Create controlls - if (this.s.controls && this.$items.length > 1) { - controls = '