HEX
Server: Apache
System: Linux host.fiblib.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64
User: scientificreligi (1062)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/scientificreligi/public_html/wp-content/plugins/auteur-framework/assets/js/vc-backend.js
var G5Plus_VC = G5Plus_VC || {};
(function ($) {
    "use strict";
    G5Plus_VC = {
        init : function(){
           this.template_tab();
        },
        template_tab : function () {
            $('.gsf-templates-cat-wrap li','.vc_panel-tabs').on('click',function(event) {
                event.preventDefault();
                var $this = $(this),
                    filter = $this.data('filter');
                if ($this.hasClass('active')) return;
                $('.gsf-templates-cat-wrap li','.vc_panel-tabs').removeClass('active');
                $this.addClass('active');
                $(filter,'.gsf-templates-wrap').removeClass('hidden');
                $('.gsf-template-item:not('+ filter+')','.gsf-templates-wrap').addClass('hidden');
            });


            $('.gsf-templates-cat-wrap li','.vc_panel-tabs').each(function () {
                var $this = $(this),
                    filter = $this.data('filter'),
                    count = $(filter,'.gsf-templates-wrap').length;
                if (filter === '*') {
                    count = $('.gsf-template-item').length;
                }
                $this.append('<span class="gsf-template-count">'+ count +'</span>');
            });
        }
    };
    $(document).ready(function () {
        G5Plus_VC.init();
    });
})(jQuery);