Server IP : 192.64.112.168 / Your IP : 3.16.212.203 Web Server : Apache System : Linux nc-ph-2300-85.bluforrest.com 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64 User : expressoneac ( 1128) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/expressoneac/www/wp-content/themes/woodmart/js/scripts/wc/ |
Upload File : |
/* global woodmart_settings */ (function($) { woodmartThemeModule.singleProductTabsAccordion = function() { var $wcTabs = $('.woocommerce-tabs'); var $wcTabItems = $wcTabs.find('.wd-accordion-item .entry-content'); if ($wcTabs.length <= 0 || $wcTabs.data('layout') === 'accordion' || $('.site-content').hasClass('wd-builder-on')) { return; } if (woodmartThemeModule.$window.width() <= 1024) { if ( ! $wcTabs.hasClass('tabs-layout-accordion') ) { $wcTabs.removeClass('tabs-layout-tabs wc-tabs-wrapper').addClass('tabs-layout-accordion wd-accordion wd-style-default'); $wcTabItems.addClass('wd-accordion-content wd-scroll').find('.wc-tab-inner').addClass('wd-scroll-content'); $('.single-product-page').removeClass('tabs-type-tabs').addClass('tabs-type-accordion'); if ($wcTabs.data('state') !== 'first' ) { $wcTabItems.first().hide().siblings('.wd-active').removeClass('wd-active'); } } } else if ( ! $wcTabs.hasClass('tabs-layout-tabs') ) { $wcTabs.addClass('tabs-layout-tabs wc-tabs-wrapper').removeClass('tabs-layout-accordion wd-accordion wd-style-default'); $wcTabItems.removeClass('wd-accordion-content wd-scroll').find('.wc-tab-inner').removeClass('wd-scroll-content'); $('.single-product-page').addClass('tabs-type-tabs').removeClass('tabs-type-accordion'); $wcTabs.find('.wd-nav a').first().trigger('click'); } }; woodmartThemeModule.$window.on('resize', woodmartThemeModule.debounce(function() { woodmartThemeModule.singleProductTabsAccordion(); woodmartThemeModule.accordion(); woodmartThemeModule.$document.trigger('resize.vcRowBehaviour'); }, 300)); $(document).ready(function() { woodmartThemeModule.singleProductTabsAccordion(); }); })(jQuery);