diff --git a/functions.php b/functions.php index 0436a54..b5dfcdb 100644 --- a/functions.php +++ b/functions.php @@ -183,7 +183,6 @@ if ( ! function_exists( 'curver_scripts' ) ) { function curver_scripts() { wp_enqueue_script( 'curver-flexslider', get_template_directory_uri() . '/js/jquery.flexslider.min.js', array( 'jquery' ),'', false ); wp_enqueue_script( 'curver-fitvids', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ),'', true ); - wp_enqueue_script( 'curver-owl-carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array( 'jquery' ),'', true ); wp_enqueue_script( 'curver-jq-sticky-anything', get_template_directory_uri() . '/js/jq-sticky-anything.min.js', array( 'jquery' ),'', true ); wp_enqueue_script( 'curver-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ),'', true ); if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } diff --git a/js/owl.carousel.js b/js/owl.carousel.js deleted file mode 100644 index a5d9ac1..0000000 --- a/js/owl.carousel.js +++ /dev/null @@ -1,1512 +0,0 @@ -/* - * jQuery OwlCarousel v1.3.3 - * - * Copyright (c) 2013 Bartosz Wojciechowski - * http://www.owlgraphic.com/owlcarousel/ - * - * Licensed under MIT - * - */ - -/*JS Lint helpers: */ -/*global dragMove: false, dragEnd: false, $, jQuery, alert, window, document */ -/*jslint nomen: true, continue:true */ - -if (typeof Object.create !== "function") { - Object.create = function (obj) { - function F() {} - F.prototype = obj; - return new F(); - }; -} -(function ($, window, document) { - - var Carousel = { - init : function (options, el) { - var base = this; - - base.$elem = $(el); - base.options = $.extend({}, $.fn.owlCarousel.options, base.$elem.data(), options); - - base.userOptions = options; - base.loadContent(); - }, - - loadContent : function () { - var base = this, url; - - function getData(data) { - var i, content = ""; - if (typeof base.options.jsonSuccess === "function") { - base.options.jsonSuccess.apply(this, [data]); - } else { - for (i in data.owl) { - if (data.owl.hasOwnProperty(i)) { - content += data.owl[i].item; - } - } - base.$elem.html(content); - } - base.logIn(); - } - - if (typeof base.options.beforeInit === "function") { - base.options.beforeInit.apply(this, [base.$elem]); - } - - if (typeof base.options.jsonPath === "string") { - url = base.options.jsonPath; - $.getJSON(url, getData); - } else { - base.logIn(); - } - }, - - logIn : function () { - var base = this; - - base.$elem.data("owl-originalStyles", base.$elem.attr("style")); - base.$elem.data("owl-originalClasses", base.$elem.attr("class")); - - base.$elem.css({opacity: 0}); - base.orignalItems = base.options.items; - base.checkBrowser(); - base.wrapperWidth = 0; - base.checkVisible = null; - base.setVars(); - }, - - setVars : function () { - var base = this; - if (base.$elem.children().length === 0) {return false; } - base.baseClass(); - base.eventTypes(); - base.$userItems = base.$elem.children(); - base.itemsAmount = base.$userItems.length; - base.wrapItems(); - base.$owlItems = base.$elem.find(".owl-item"); - base.$owlWrapper = base.$elem.find(".owl-wrapper"); - base.playDirection = "next"; - base.prevItem = 0; - base.prevArr = [0]; - base.currentItem = 0; - base.customEvents(); - base.onStartup(); - }, - - onStartup : function () { - var base = this; - base.updateItems(); - base.calculateAll(); - base.buildControls(); - base.updateControls(); - base.response(); - base.moveEvents(); - base.stopOnHover(); - base.owlStatus(); - - if (base.options.transitionStyle !== false) { - base.transitionTypes(base.options.transitionStyle); - } - if (base.options.autoPlay === true) { - base.options.autoPlay = 5000; - } - base.play(); - - base.$elem.find(".owl-wrapper").css("display", "block"); - - if (!base.$elem.is(":visible")) { - base.watchVisibility(); - } else { - base.$elem.css("opacity", 1); - } - base.onstartup = false; - base.eachMoveUpdate(); - if (typeof base.options.afterInit === "function") { - base.options.afterInit.apply(this, [base.$elem]); - } - }, - - eachMoveUpdate : function () { - var base = this; - - if (base.options.lazyLoad === true) { - base.lazyLoad(); - } - if (base.options.autoHeight === true) { - base.autoHeight(); - } - base.onVisibleItems(); - - if (typeof base.options.afterAction === "function") { - base.options.afterAction.apply(this, [base.$elem]); - } - }, - - updateVars : function () { - var base = this; - if (typeof base.options.beforeUpdate === "function") { - base.options.beforeUpdate.apply(this, [base.$elem]); - } - base.watchVisibility(); - base.updateItems(); - base.calculateAll(); - base.updatePosition(); - base.updateControls(); - base.eachMoveUpdate(); - if (typeof base.options.afterUpdate === "function") { - base.options.afterUpdate.apply(this, [base.$elem]); - } - }, - - reload : function () { - var base = this; - window.setTimeout(function () { - base.updateVars(); - }, 0); - }, - - watchVisibility : function () { - var base = this; - - if (base.$elem.is(":visible") === false) { - base.$elem.css({opacity: 0}); - window.clearInterval(base.autoPlayInterval); - window.clearInterval(base.checkVisible); - } else { - return false; - } - base.checkVisible = window.setInterval(function () { - if (base.$elem.is(":visible")) { - base.reload(); - base.$elem.animate({opacity: 1}, 200); - window.clearInterval(base.checkVisible); - } - }, 500); - }, - - wrapItems : function () { - var base = this; - base.$userItems.wrapAll("