1// Commom Plugins 2(function($) { 3 4 'use strict'; 5 6 // Scroll to Top Button. 7 if (typeof theme.PluginScrollToTop !== 'undefined') { 8 theme.PluginScrollToTop.initialize(); 9 } 10 11 // Tooltips 12 if ($.isFunction($.fn['tooltip'])) { 13 $('[data-tooltip]:not(.manual), [data-plugin-tooltip]:not(.manual)').tooltip(); 14 } 15 16 // Popover 17 if ($.isFunction($.fn['popover'])) { 18 $(function() { 19 $('[data-plugin-popover]:not(.manual)').each(function() { 20 var $this = $(this), 21 opts; 22 23 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 24 if (pluginOptions) 25 opts = pluginOptions; 26 27 $this.popover(opts); 28 }); 29 }); 30 } 31 32 // Validations 33 if (typeof theme.PluginValidation !== 'undefined') { 34 theme.PluginValidation.initialize(); 35 } 36 37 // Match Height 38 if ($.isFunction($.fn['matchHeight'])) { 39 40 $('.match-height').matchHeight(); 41 42 // Featured Boxes 43 $('.featured-boxes .featured-box').matchHeight(); 44 45 // Featured Box Full 46 $('.featured-box-full').matchHeight(); 47 48 } 49 50 // Blog archives collapse without animation. 51 $(function() { 52 $('.archives-entries-tree').on('click', 'a.archive-toggle', function(e) { 53 var targetId = $(this).attr('href'); 54 if (!targetId || targetId.charAt(0) !== '#') { 55 return; 56 } 57 e.preventDefault(); 58 var $target = $(targetId); 59 if (!$target.length) { 60 return; 61 } 62 var isOpen = $target.hasClass('in'); 63 $target.toggleClass('in', !isOpen); 64 $(this).attr('aria-expanded', String(!isOpen)); 65 }); 66 }); 67 68}).apply(this, [jQuery]); 69 70// Animate 71(function($) { 72 73 'use strict'; 74 75 if ($.isFunction($.fn['themePluginAnimate'])) { 76 77 $(function() { 78 $('[data-appear-animation]').each(function() { 79 var $this = $(this), 80 opts; 81 82 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 83 if (pluginOptions) 84 opts = pluginOptions; 85 86 $this.themePluginAnimate(opts); 87 }); 88 }); 89 90 } 91 92}).apply(this, [jQuery]); 93 94// Carousel 95(function($) { 96 97 'use strict'; 98 99 if ($.isFunction($.fn['themePluginCarousel'])) { 100 101 $(function() { 102 $('[data-plugin-carousel]:not(.manual), .owl-carousel:not(.manual)').each(function() { 103 var $this = $(this), 104 opts; 105 106 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 107 if (pluginOptions) 108 opts = pluginOptions; 109 110 $this.themePluginCarousel(opts); 111 }); 112 }); 113 114 } 115 116}).apply(this, [jQuery]); 117 118// Chart.Circular 119(function($) { 120 121 'use strict'; 122 123 if ($.isFunction($.fn['themePluginChartCircular'])) { 124 125 $(function() { 126 $('[data-plugin-chart-circular]:not(.manual), .circular-bar-chart:not(.manual)').each(function() { 127 var $this = $(this), 128 opts; 129 130 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 131 if (pluginOptions) 132 opts = pluginOptions; 133 134 $this.themePluginChartCircular(opts); 135 }); 136 }); 137 138 } 139 140}).apply(this, [jQuery]); 141 142// Counter 143(function($) { 144 145 'use strict'; 146 147 if ($.isFunction($.fn['themePluginCounter'])) { 148 149 $(function() { 150 $('[data-plugin-counter]:not(.manual), .counters [data-to]').each(function() { 151 var $this = $(this), 152 opts; 153 154 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 155 if (pluginOptions) 156 opts = pluginOptions; 157 158 $this.themePluginCounter(opts); 159 }); 160 }); 161 162 } 163 164}).apply(this, [jQuery]); 165 166// Lazy Load 167(function($) { 168 169 'use strict'; 170 171 if ($.isFunction($.fn['themePluginLazyLoad'])) { 172 173 $(function() { 174 $('[data-plugin-lazyload]:not(.manual)').each(function() { 175 var $this = $(this), 176 opts; 177 178 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 179 if (pluginOptions) 180 opts = pluginOptions; 181 182 $this.themePluginLazyLoad(opts); 183 }); 184 }); 185 186 } 187 188}).apply(this, [jQuery]); 189 190// Lightbox 191(function($) { 192 193 'use strict'; 194 195 if ($.isFunction($.fn['themePluginLightbox'])) { 196 197 $(function() { 198 $('[data-plugin-lightbox]:not(.manual), .lightbox:not(.manual)').each(function() { 199 var $this = $(this), 200 opts; 201 202 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 203 if (pluginOptions) 204 opts = pluginOptions; 205 206 $this.themePluginLightbox(opts); 207 }); 208 }); 209 210 } 211 212}).apply(this, [jQuery]); 213 214// Masonry 215(function($) { 216 217 'use strict'; 218 219 if ($.isFunction($.fn['themePluginMasonry'])) { 220 221 $(function() { 222 $('[data-plugin-masonry]:not(.manual)').each(function() { 223 var $this = $(this), 224 opts; 225 226 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 227 if (pluginOptions) 228 opts = pluginOptions; 229 230 $this.themePluginMasonry(opts); 231 }); 232 }); 233 234 } 235 236}).apply(this, [jQuery]); 237 238// Match Height 239(function($) { 240 241 'use strict'; 242 243 if ($.isFunction($.fn['themePluginMatchHeight'])) { 244 245 $(function() { 246 $('[data-plugin-match-height]:not(.manual)').each(function() { 247 var $this = $(this), 248 opts; 249 250 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 251 if (pluginOptions) 252 opts = pluginOptions; 253 254 $this.themePluginMatchHeight(opts); 255 }); 256 }); 257 258 } 259 260}).apply(this, [jQuery]); 261 262// Parallax 263(function($) { 264 265 'use strict'; 266 267 if ($.isFunction($.fn['themePluginParallax'])) { 268 269 $(function() { 270 $('[data-plugin-parallax]:not(.manual)').each(function() { 271 var $this = $(this), 272 opts; 273 274 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 275 if (pluginOptions) 276 opts = pluginOptions; 277 278 $this.themePluginParallax(opts); 279 }); 280 }); 281 282 } 283 284}).apply(this, [jQuery]); 285 286// Progress Bar 287(function($) { 288 289 'use strict'; 290 291 if ($.isFunction($.fn['themePluginProgressBar'])) { 292 293 $(function() { 294 $('[data-plugin-progress-bar]:not(.manual), [data-appear-progress-animation]').each(function() { 295 var $this = $(this), 296 opts; 297 298 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 299 if (pluginOptions) 300 opts = pluginOptions; 301 302 $this.themePluginProgressBar(opts); 303 }); 304 }); 305 306 } 307 308}).apply(this, [jQuery]); 309 310// Sort 311(function($) { 312 313 'use strict'; 314 315 if ($.isFunction($.fn['themePluginSort'])) { 316 317 $(function() { 318 $('[data-plugin-sort]:not(.manual), .sort-source:not(.manual)').each(function() { 319 var $this = $(this), 320 opts; 321 322 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 323 if (pluginOptions) 324 opts = pluginOptions; 325 326 $this.themePluginSort(opts); 327 }); 328 }); 329 330 } 331 332}).apply(this, [jQuery]); 333 334// Sticky 335(function($) { 336 337 'use strict'; 338 339 if ($.isFunction($.fn['themePluginSticky'])) { 340 341 $(function() {
342 $('[data-plugin-sticky]:not(.manual)').each(function() { 343 var $this = $(this), 344 opts; 345 346 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 347 if (pluginOptions) 348 opts = pluginOptions; 349 350 $this.themePluginSticky(opts); 351 }); 352 }); 353 354 } 355 356}).apply(this, [jQuery]); 357 358// Toggle 359(function($) { 360 361 'use strict'; 362 363 if ($.isFunction($.fn['themePluginToggle'])) { 364 365 $(function() { 366 $('[data-plugin-toggle]:not(.manual)').each(function() { 367 var $this = $(this), 368 opts; 369 370 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 371 if (pluginOptions) 372 opts = pluginOptions; 373 374 $this.themePluginToggle(opts); 375 }); 376 }); 377 378 } 379 380}).apply(this, [jQuery]); 381 382// Tweets 383(function($) { 384 385 'use strict'; 386 387 if ($.isFunction($.fn['themePluginTweets'])) { 388 389 $(function() { 390 $('[data-plugin-tweets]:not(.manual)').each(function() { 391 var $this = $(this), 392 opts; 393 394 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 395 if (pluginOptions) 396 opts = pluginOptions; 397 398 $this.themePluginTweets(opts); 399 }); 400 }); 401 402 } 403 404}).apply(this, [jQuery]); 405 406// Word Rotate 407(function($) { 408 409 'use strict'; 410 411 if ($.isFunction($.fn['themePluginWordRotate'])) { 412 413 $(function() { 414 $('[data-plugin-word-rotate]:not(.manual), .word-rotate:not(.manual)').each(function() { 415 var $this = $(this), 416 opts; 417 418 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 419 if (pluginOptions) 420 opts = pluginOptions; 421 422 $this.themePluginWordRotate(opts); 423 }); 424 }); 425 426 } 427 428}).apply(this, [jQuery]); 429 430// Commom Partials 431(function($) { 432 433 'use strict'; 434 435 // Sticky Header 436 if (typeof theme.StickyHeader !== 'undefined') { 437 theme.StickyHeader.initialize(); 438 } 439 440 // Nav Menu 441 if (typeof theme.Nav !== 'undefined') { 442 theme.Nav.initialize(); 443 } 444 445 // Search 446 if (typeof theme.Search !== 'undefined') { 447 theme.Search.initialize(); 448 } 449 450 // Newsletter 451 if (typeof theme.Newsletter !== 'undefined') { 452 theme.Newsletter.initialize(); 453 } 454 455 // Account 456 if (typeof theme.Account !== 'undefined') { 457 theme.Account.initialize(); 458 } 459 460}).apply(this, [jQuery]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.