??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/mayshine.co.uk/wp-content/plugins/elementor/includes/conditions.php
⬅ Kembali
<?php
namespace Elementor;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Elementor conditions.
*
* Elementor conditions handler class introduce the compare conditions and the
* check conditions methods.
*
* @since 1.0.0
*/
class Conditions {
/**
* Compare conditions.
*
* Whether the two values comply the comparison operator.
*
* @since 1.0.0
* @access public
* @static
*
* @param mixed $left_value First value to compare.
* @param mixed $right_value Second value to compare.
* @param string $operator Comparison operator.
*
* @return bool Whether the two values complies the comparison operator.
*/
public static function compare( $left_value, $right_value, $operator ) {
switch ( $operator ) {
case '==':
return $left_value == $right_value;
case '!=':
return $left_value != $right_value;
case '!==':
return $left_value !== $right_value;
case 'in':
return in_array( $left_value, $right_value, true );
case '!in':
return ! in_array( $left_value, $right_value, true );
case 'contains':
return in_array( $right_value, $left_value, true );
case '!contains':
return ! in_array( $right_value, $left_value, true );
case '<':
return $left_value < $right_value;
case '<=':
return $left_value <= $right_value;
case '>':
return $left_value > $right_value;
case '>=':
return $left_value >= $right_value;
default:
return $left_value === $right_value;
}
}
/**
* Check conditions.
*
* Whether the comparison conditions comply.
*
* @since 1.0.0
* @access public
* @static
*
* @param array $conditions The conditions to check.
* @param array $comparison The comparison parameter.
*
* @return bool Whether the comparison conditions comply.
*/
public static function check( array $conditions, array $comparison ) {
$is_or_condition = isset( $conditions['relation'] ) && 'or' === $conditions['relation'];
$condition_succeed = ! $is_or_condition;
foreach ( $conditions['terms'] as $term ) {
if ( ! empty( $term['terms'] ) ) {
$comparison_result = self::check( $term, $comparison );
} else {
preg_match( '/(\w+)(?:\[(\w+)])?/', $term['name'], $parsed_name );
$value = $comparison[ $parsed_name[1] ];
if ( ! empty( $parsed_name[2] ) ) {
$value = $value[ $parsed_name[2] ];
}
$operator = null;
if ( ! empty( $term['operator'] ) ) {
$operator = $term['operator'];
}
$comparison_result = self::compare( $value, $term['value'], $operator );
}
if ( $is_or_condition ) {
if ( $comparison_result ) {
return true;
}
} elseif ( ! $comparison_result ) {
return false;
}
}
return $condition_succeed;
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 admin-templates
dir
—
2026-06-23 10:10
📁 base
dir
—
2026-06-23 10:10
📁 controls
dir
—
2026-06-23 10:10
📁 editor-templates
dir
—
2026-06-23 10:10
📁 elements
dir
—
2026-06-23 10:10
📁 interfaces
dir
—
2026-06-23 10:10
📁 libraries
dir
—
2026-06-23 10:10
📁 managers
dir
—
2026-06-23 10:10
📁 settings
dir
—
2026-06-23 10:10
📁 template-library
dir
—
2026-06-23 10:10
📁 widgets
dir
—
2026-06-23 10:10
🐘 api.php
php
8.7 KB
2026-05-20 16:19
🐘 autoloader.php
php
9.8 KB
2025-10-21 16:51
🐘 beta-testers.php
php
3 KB
2023-04-23 15:22
🐘 compatibility.php
php
11 KB
2025-03-17 17:28
🐘 conditions.php
php
2.7 KB
2023-04-23 15:22
🐘 db.php
php
15.9 KB
2026-02-02 14:52
🐘 editor-assets-api.php
php
4.1 KB
2026-06-08 16:48
🐘 embed.php
php
8.5 KB
2025-03-17 17:28
🐘 fonts.php
php
62.5 KB
2025-03-17 17:28
🐘 frontend.php
php
40 KB
2026-04-20 15:03
🐘 heartbeat.php
php
2.6 KB
2023-04-23 15:22
🐘 maintenance-mode.php
php
11.2 KB
2025-10-21 16:51
🐘 maintenance.php
php
2.8 KB
2025-03-17 17:28
🐘 plugin.php
php
16.7 KB
2026-05-26 12:54
🐘 preview.php
php
7.9 KB
2026-05-20 16:19
🐘 rollback.php
php
4.2 KB
2026-01-20 13:22
🐘 shapes.php
php
7.8 KB
2025-08-05 18:00
🐘 stylesheet.php
php
8.9 KB
2025-09-15 14:10
🐘 tracker.php
php
17 KB
2025-11-10 16:25
🐘 user-data.php
php
3.4 KB
2025-10-21 16:51
🐘 user.php
php
10 KB
2025-12-04 22:09
🐘 utils.php
php
24.9 KB
2026-06-08 16:48