18.3 Include Categories, Exclude Categories, Show "All" option (ok)

C:\xampp\htdocs\test\wp-content\plugins\plugin-name\admin\js\wpf-themplate_ct.js

ShowHide: function() {
      $('#' + WPF.prefix + 'lightbox_container').on('change', '.' + WPF.prefix + 'changed input,.' + WPF.prefix + 'changed select', function() {
        var $container, slide = true;
        if ($(this).closest('.' + WPF.prefix + 'order').length > 0) {
          $container = $(this).closest('.' + WPF.prefix + 'order').next('.' + WPF.prefix + 'orderby');
          slide = $(this).val() !== 'term_order';
        } else if ($(this).closest('.' + WPF.prefix + 'display_as').length > 0) {
          $container = $(this).closest('.' + WPF.prefix + 'back_active_module_content').find('.' + WPF.prefix + 'icons_block');
          var val = $(this).val();
          slide = val === 'checkbox' || val === 'radio';
          if (val === 'dropdown' || val === 'radio') {
            $(this).closest('.' + WPF.prefix + 'back_active_module_content').find('.' + WPF.prefix + 'show_all_block').show();
          } else {
            $(this).closest('.' + WPF.prefix + 'back_active_module_content').find('.' + WPF.prefix + 'show_all_block').hide();
          }
        } else if ($(this).prop('name') === 'pagination_type') {
          if ($(this).val() === 'infinity_auto') {
            $('.wpf_lightbox_row.wpf_infinity_buffer').show();
          } else {
            $('.wpf_lightbox_row.wpf_infinity_buffer').hide();
          }
        }
        if (typeof $container !== 'undefined') {
          if (slide) $container.slideDown();
          else $container.slideUp();
        }
      });
      $('.' + WPF.prefix + 'changed input:checked,.' + WPF.prefix + 'changed option:selected').trigger('change');
    }

C:\xampp\htdocs\test\wp-content\plugins\plugin-name\includes\class-wpf-form_ct.php

Last updated

Was this helpful?