Plugin Directory

Changeset 2951041


Ignore:
Timestamp:
08/09/2023 09:56:27 PM (3 years ago)
Author:
fastflow
Message:

Update compatibility notice

Location:
fast-beavercontrol/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fast-beavercontrol/trunk/lib/fast-bct-protected-content-visibility.php

    r2151391 r2951041  
    11<?php
    22
    3 /* 
    4  *  class for BeaverBuilder content protection functionality 
     3/*
     4 *  class for BeaverBuilder content protection functionality
    55 *  based on URL parameters
    66 */
     
    1616        add_filter( 'fl_builder_is_node_visible', array( 'Fast_Bct_Protected_Content_Visibility', 'fast_bct_toggle_content_visibility'), 1, 2 );
    1717    }
    18    
     18
    1919    public static function fast_bct_settings_visibility_option( $form, $id ) {
    2020        if ( 'row' == $id || 'col' == $id ) {
     
    3939        return $form;
    4040    }
    41    
    42    
     41
     42
    4343    public static function fast_bct_toggle_content_visibility( $is_visible, $node ) {
    44        
     44
    4545        if ( isset( $node->settings->visibility_display ) && ( $node->settings->visibility_display == 'fast_bct_value' ) ) {
    46            
     46
    4747            if ( empty( $node->settings->url_params_positive )  ) {
    48                
     48
    4949                $is_visible = true;
    50                
    51             } else if ( !empty( $node->settings->url_params_positive ) 
    52                     && strpos( $node->settings->url_params_positive, '=' ) !== false 
     50
     51            } else if ( !empty( $node->settings->url_params_positive )
     52                    && strpos( $node->settings->url_params_positive, '=' ) !== false
    5353                    && self::fast_bct_check_url_params( $node->settings->url_params_positive ) === false ) {
    54                
     54
     55                return true;
     56
     57            }
     58
     59            if ( empty( $node->settings->url_params_negative )  ) {
     60
     61                $is_visible = true;
     62
     63            } else if ( !empty( $node->settings->url_params_negative )
     64                    && strpos( $node->settings->url_params_negative, '=' ) !== false
     65                    && self::fast_bct_check_url_params( $node->settings->url_params_negative ) === true ) {
     66
    5567                return false;
    56                
     68
    5769            }
    58            
    59             if ( empty( $node->settings->url_params_negative )  ) {
    60                
    61                 $is_visible = true;
    62                
    63             } else if ( !empty( $node->settings->url_params_negative )
    64                     && strpos( $node->settings->url_params_negative, '=' ) !== false
    65                     && self::fast_bct_check_url_params( $node->settings->url_params_negative ) === true ) {
    66                
    67                 return false;
    68                
    69             }
    70            
     70
    7171        }
    7272        return $is_visible;
    7373    }
    74    
     74
    7575    static private function fast_bct_check_url_params( $params ) {
    7676        $data_params = $params;
     
    8484        return true;
    8585    }
    86    
     86
    8787}
    88 
  • fast-beavercontrol/trunk/readme.txt

    r2537587 r2951041  
    33Tags: BeaverBuilder,fastflow,fastmember,conditional content
    44Requires at least: 4
    5 Tested up to: 5.8
    6 Requires PHP: 5.3
     5Tested up to: 6.3
     6Requires PHP: 7.4
    77Stable tag: trunk
    88License: GPL2
Note: See TracChangeset for help on using the changeset viewer.