// Commom Plugins (function(jQuery) { 'use strict'; // Scroll to Top Button. if (typeof theme.PluginScrollToTop !== 'undefined') { theme.PluginScrollToTop.initialize(); } // Tooltips if (jQuery.isFunction(jQuery.fn['tooltip'])) { jQuery('[data-tooltip]:not(.manual), [data-plugin-tooltip]:not(.manual)').tooltip(); } // Popover if (jQuery.isFunction(jQuery.fn['popover'])) { jQuery(function() { jQuery('[data-plugin-popover]:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.popover(opts); }); }); } // Validations if (typeof theme.PluginValidation !== 'undefined') { theme.PluginValidation.initialize(); } // Parallax if (typeof theme.PluginParallax !== 'undefined') { theme.PluginParallax.initialize(); } // Match Height if (jQuery.isFunction(jQuery.fn['matchHeight'])) { jQuery('.match-height').matchHeight(); // Featured Boxes jQuery('.featured-boxes .featured-box').matchHeight(); // Featured Box Full jQuery('.featured-box-full').matchHeight(); } }).apply(this, [jQuery]); // Animate (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginAnimate'])) { jQuery(function() { jQuery('[data-plugin-animate], [data-appear-animation]').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginAnimate(opts); }); }); } }).apply(this, [jQuery]); // Carousel (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginCarousel'])) { jQuery(function() { jQuery('[data-plugin-carousel]:not(.manual), .owl-carousel:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginCarousel(opts); }); }); } }).apply(this, [jQuery]); // Chart.Circular (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginChartCircular'])) { jQuery(function() { jQuery('[data-plugin-chart-circular]:not(.manual), .circular-bar-chart:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginChartCircular(opts); }); }); } }).apply(this, [jQuery]); // Counter (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginCounter'])) { jQuery(function() { jQuery('[data-plugin-counter]:not(.manual), .counters [data-to]').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginCounter(opts); }); }); } }).apply(this, [jQuery]); // Flickr (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginFlickr'])) { jQuery(function() { jQuery('[data-plugin-flickr]:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginFlickr(opts); }); }); } }).apply(this, [jQuery]); // Lazy Load (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginLazyLoad'])) { jQuery(function() { jQuery('[data-plugin-lazyload]:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginLazyLoad(opts); }); }); } }).apply(this, [jQuery]); // Lightbox (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginLightbox'])) { jQuery(function() { jQuery('[data-plugin-lightbox]:not(.manual), .lightbox:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginLightbox(opts); }); }); } }).apply(this, [jQuery]); // Masonry (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginMasonry'])) { jQuery(function() { jQuery('[data-plugin-masonry]:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginMasonry(opts); }); }); } }).apply(this, [jQuery]); // Progress Bar (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginProgressBar'])) { jQuery(function() { jQuery('[data-plugin-progress-bar]:not(.manual), [data-appear-progress-animation]').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginProgressBar(opts); }); }); } }).apply(this, [jQuery]); // Revolution Slider (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginRevolutionSlider'])) { jQuery(function() { jQuery('[data-plugin-revolution-slider]:not(.manual), .slider-container .slider:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginRevolutionSlider(opts); }); }); } }).apply(this, [jQuery]); // Sort (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginSort'])) { jQuery(function() { jQuery('[data-plugin-sort]:not(.manual), .sort-source:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginSort(opts); }); }); } }).apply(this, [jQuery]); // Match Height (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginMatchHeight'])) { jQuery(function() { jQuery('[data-plugin-match-height]:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginMatchHeight(opts); }); }); } }).apply(this, [jQuery]); // Toggle (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginToggle'])) { jQuery(function() { jQuery('[data-plugin-toggle]:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginToggle(opts); }); }); } }).apply(this, [jQuery]); // Tweets (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginTweets'])) { jQuery(function() { jQuery('[data-plugin-tweets]:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginTweets(opts); }); }); } }).apply(this, [jQuery]); // Video Background (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginVideoBackground'])) { jQuery(function() { jQuery('[data-plugin-video-background]:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginVideoBackground(opts); }); }); } }).apply(this, [jQuery]); // Sticky (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginSticky'])) { jQuery(function() { jQuery('[data-plugin-sticky]:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginSticky(opts); }); }); } }).apply(this, [jQuery]); // Word Rotate (function(jQuery) { 'use strict'; if (jQuery.isFunction(jQuery.fn['themePluginWordRotate'])) { jQuery(function() { jQuery('[data-plugin-word-rotate]:not(.manual), .word-rotate:not(.manual)').each(function() { var jQuerythis = jQuery(this), opts; var pluginOptions = jQuerythis.data('plugin-options'); if (pluginOptions) opts = pluginOptions; jQuerythis.themePluginWordRotate(opts); }); }); } }).apply(this, [jQuery]); // Commom Partials (function(jQuery) { 'use strict'; // Sticky Header if (typeof theme.StickyHeader !== 'undefined') { theme.StickyHeader.initialize(); } // Nav Menu if (typeof theme.Nav !== 'undefined') { theme.Nav.initialize(); } // Search if (typeof theme.Search !== 'undefined') { theme.Search.initialize(); } // Newsletter if (typeof theme.Newsletter !== 'undefined') { theme.Newsletter.initialize(); } // Account if (typeof theme.Account !== 'undefined') { theme.Account.initialize(); } }).apply(this, [jQuery]);