| Server IP : 192.241.186.36 / Your IP : 216.73.216.164 Web Server : Apache/2.4.29 (Ubuntu) System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64 User : root ( 0) PHP Version : 7.4.32 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/elegant-ads-bak/old-file/wp-content/themes/xstore/js/modules/ |
Upload File : |
!function(o){"use strict";etTheme.autoinit.widgetsShowMore=etTheme.widgetsShowMore=function(){o(".sidebar").find(".sidebar-widget:not(.etheme_swatches_filter, .null-instagram-feed)").each(function(){etTheme.widgetShowMore(o(this))}),o(document).on("click",".et_widget-show-more",function(e){if(etConfig.woocommerceSettings.sidebar_widgets_dropdown_less_link){let e=o(this);i=o(this),new Promise(e=>{i.hasClass("is-processing")||(i.addClass("is-processing"),i.hasClass("expanded")?i.removeClass("expanded").parents(".sidebar-widget").find("li.is-shown").removeClass("is-shown").slideUp(300):i.addClass("expanded").parents(".sidebar-widget").find("li:nth-child("+etConfig.woocommerceSettings.sidebar_widgets_dropdown_limit+") ~ li:not(.et_widget-show-more)").addClass("is-shown").slideDown(300),e())}).then(function(){setTimeout(function(){e.removeClass("is-processing")},350)})}else o(this).addClass("hidden").parents(".sidebar-widget").find("li").slideDown(300);var i})},etTheme.widgetShowMore=function(e){var i=etConfig.woocommerceSettings.sidebar_widgets_dropdown_less_link;e.find("ul.children li, ul.sub-menu li").addClass("et_li-child");let s=(e.hasClass("etheme_widget_menu")?e.find("li.item-level-0"):e.find("li:not(.et_li-child)")).length,t=e.find(".current-cat, .current-item, .selected"),n=s-etConfig.woocommerceSettings.sidebar_widgets_dropdown_limit;s&&0<n&&(e.addClass("et_widget-loader"),t.length&&t.each(function(){o(this).prevAll().length>=etConfig.woocommerceSettings.sidebar_widgets_dropdown_limit&&(n-=1)}),0<n&&e.find("ul:not(.children, .sub-menu)").append('<li class="et_widget-show-more"'+(i?' data-reverse="true"':"")+"><span>+"+n+" "+etConfig.woocommerceSettings.widget_show_more_text+"</span>"+(i?"<span>"+etConfig.woocommerceSettings.widget_show_less_text+"</span>":"")+"</li>"),e.removeClass("et_widget-loader"))}}(jQuery);