$25 GRAYBYTE WORDPRESS FILE MANAGER $25

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.217.88
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/hpgt.org/.log-unix/wp-includes/wp-content/plugins/elementor/data/

HOME
Current File : /home/bravetechrwanda/hpgt.org/.log-unix/wp-includes/wp-content/plugins/elementor/data//api.php
<?php
namespace Elementor\Modules\Notifications;

use Elementor\Includes\EditorAssetsAPI;
use Elementor\User;

class API {

	const NOTIFICATIONS_URL = 'https://assets.elementor.com/notifications/v1/notifications.json';

	public static function get_notifications_by_conditions( $force_request = false ) {
		$notifications = static::get_notifications( $force_request );

		$filtered_notifications = [];

		foreach ( $notifications as $notification ) {
			if ( empty( $notification['conditions'] ) ) {
				$filtered_notifications = static::add_to_array( $filtered_notifications, $notification );

				continue;
			}

			if ( ! static::check_conditions( $notification['conditions'] ) ) {
				continue;
			}

			$filtered_notifications = static::add_to_array( $filtered_notifications, $notification );
		}

		return $filtered_notifications;
	}

	private static function get_notifications( $force_request = false ) {
		$editor_assets_api = new EditorAssetsAPI( [
			EditorAssetsAPI::ASSETS_DATA_URL => self::NOTIFICATIONS_URL,
			EditorAssetsAPI::ASSETS_DATA_TRANSIENT_KEY => '_elementor_notifications_data',
			EditorAssetsAPI::ASSETS_DATA_KEY => 'notifications',
			EditorAssetsAPI::ASSETS_DATA_EXPIRATION => '+12 hours',
		] );
		$notifications = $editor_assets_api->get_assets_data( $force_request );
		$notifications = apply_filters( 'elementor/core/admin/notifications', $notifications );

		return $notifications;
	}

	private static function add_to_array( $filtered_notifications, $notification ) {
		foreach ( $filtered_notifications as $filtered_notification ) {
			if ( $filtered_notification['id'] === $notification['id'] ) {
				return $filtered_notifications;
			}
		}

		$filtered_notifications[] = $notification;

		return $filtered_notifications;
	}

	private static function check_conditions( $groups ) {
		foreach ( $groups as $group ) {
			if ( static::check_group( $group ) ) {
				return true;
			}
		}

		return false;
	}

	private static function check_group( $group ) {
		$is_or_relation = ! empty( $group['relation'] ) && 'OR' === $group['relation'];
		unset( $group['relation'] );
		$result = false;

		foreach ( $group as $condition ) {
			// Reset results for each condition.
			$result = false;
			switch ( $condition['type'] ) {
				case 'wordpress': // phpcs:ignore WordPress.WP.CapitalPDangit.MisspelledInText
					// include an unmodified $wp_version
					include ABSPATH . WPINC . '/version.php';
					$result = version_compare( $wp_version, $condition['version'], $condition['operator'] );
					break;
				case 'multisite':
					$result = is_multisite() === $condition['multisite'];
					break;
				case 'language':
					$in_array = in_array( get_locale(), $condition['languages'], true );
					$result = 'in' === $condition['operator'] ? $in_array : ! $in_array;
					break;
				case 'plugin':
					if ( ! function_exists( 'is_plugin_active' ) ) {
						require_once ABSPATH . 'wp-admin/includes/plugin.php';
					}

					$is_plugin_active = is_plugin_active( $condition['plugin'] );

					if ( empty( $condition['operator'] ) ) {
						$condition['operator'] = '==';
					}

					$result = '==' === $condition['operator'] ? $is_plugin_active : ! $is_plugin_active;
					break;
				case 'theme':
					$theme = wp_get_theme();
					if ( wp_get_theme()->parent() ) {
						$theme = wp_get_theme()->parent();
					}

					if ( $theme->get_template() === $condition['theme'] ) {
						$version = $theme->version;
					} else {
						$version = '';
					}

					$result = version_compare( $version, $condition['version'], $condition['operator'] );
					break;
				case 'introduction_meta':
					$result = User::get_introduction_meta( $condition['meta'] );
					break;

				default:
					/**
					 * Filters the notification condition, whether to check the group or not.
					 *
					 * The dynamic portion of the hook name, `$condition['type']`, refers to the condition type.
					 *
					 * @since 3.19.0
					 *
					 * @param bool  $result    Whether to check the group.
					 * @param array $condition Notification condition.
					 */
					$result = apply_filters( "elementor/notifications/condition/{$condition['type']}", $result, $condition );
					break;
			}

			if ( ( $is_or_relation && $result ) || ( ! $is_or_relation && ! $result ) ) {
				return $result;
			}
		}

		return $result;
	}
}

Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
15 May 2026 10.49 AM
bravetechrwanda / bravetechrwanda
0755
base
--
15 May 2026 9.05 PM
bravetechrwanda / bravetechrwanda
0755
v2
--
15 May 2026 11.11 PM
bravetechrwanda / bravetechrwanda
0755
admin-20260509184306.php
117.099 KB
28 Apr 2026 9.17 AM
bravetechrwanda / bravetechrwanda
0644
admin.php
117.099 KB
28 Apr 2026 9.17 AM
bravetechrwanda / bravetechrwanda
0644
after.php
0.457 KB
23 Apr 2023 3.22 PM
bravetechrwanda / bravetechrwanda
0644
api.php
4.227 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
app.php
9.23 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
autoloader.php
9.787 KB
21 Oct 2025 4.51 PM
bravetechrwanda / bravetechrwanda
0644
before-20260510025025.php
0.403 KB
17 Mar 2025 5.28 PM
bravetechrwanda / bravetechrwanda
0644
before.php
0.403 KB
17 Mar 2025 5.28 PM
bravetechrwanda / bravetechrwanda
0644
compatibility-20260509221920.php
10.958 KB
17 Mar 2025 5.28 PM
bravetechrwanda / bravetechrwanda
0644
compatibility.php
10.958 KB
17 Mar 2025 5.28 PM
bravetechrwanda / bravetechrwanda
0644
conditions.php
2.703 KB
23 Apr 2023 3.22 PM
bravetechrwanda / bravetechrwanda
0644
controller-20260514072636.php
11.765 KB
21 Oct 2025 4.51 PM
bravetechrwanda / bravetechrwanda
0644
controller-20260515002026.php
11.765 KB
21 Oct 2025 4.51 PM
bravetechrwanda / bravetechrwanda
0644
controller.php
11.765 KB
21 Oct 2025 4.51 PM
bravetechrwanda / bravetechrwanda
0644
divider.php
33.305 KB
21 Oct 2025 4.51 PM
bravetechrwanda / bravetechrwanda
0644
editor.min.css
0.114 KB
10 Dec 2024 7.19 PM
bravetechrwanda / bravetechrwanda
0644
elements.php
10.885 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
endpoint.php
9.096 KB
21 Oct 2025 4.51 PM
bravetechrwanda / bravetechrwanda
0644
error_log
4.267 KB
13 May 2026 8.20 PM
bravetechrwanda / bravetechrwanda
0644
functions-20260510191458.php
12.457 KB
25 Feb 2026 6.35 AM
bravetechrwanda / bravetechrwanda
0644
functions-20260515053544.php
53.095 KB
2 Apr 2026 4.40 PM
bravetechrwanda / bravetechrwanda
0644
functions.php
53.095 KB
2 Apr 2026 4.40 PM
bravetechrwanda / bravetechrwanda
0644
index.php
6.525 KB
30 Mar 2026 6.19 AM
bravetechrwanda / bravetechrwanda
0644
maintenance.php
20.99 KB
2 Apr 2026 4.40 PM
bravetechrwanda / bravetechrwanda
0644
manager.php
9.133 KB
21 Oct 2025 4.51 PM
bravetechrwanda / bravetechrwanda
0644
module-20260514105447.php
5.2 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
module.php
5.2 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
plugin-20260510073046.php
16.49 KB
3 Mar 2026 7.49 PM
bravetechrwanda / bravetechrwanda
0644
plugin-20260516004537.php
16.49 KB
3 Mar 2026 7.49 PM
bravetechrwanda / bravetechrwanda
0644
plugin-20260516015911.php
16.49 KB
3 Mar 2026 7.49 PM
bravetechrwanda / bravetechrwanda
0644
plugin.php
16.49 KB
3 Mar 2026 7.49 PM
bravetechrwanda / bravetechrwanda
0644
pointers.js
0.837 KB
6 May 2022 4.33 PM
bravetechrwanda / bravetechrwanda
0644
processor-20260512091947.php
0.434 KB
23 Apr 2023 3.22 PM
bravetechrwanda / bravetechrwanda
0644
processor-20260515160009.php
0.434 KB
23 Apr 2023 3.22 PM
bravetechrwanda / bravetechrwanda
0644
processor.php
0.852 KB
17 Mar 2025 5.28 PM
bravetechrwanda / bravetechrwanda
0644
repeater.php
3.189 KB
15 Sep 2025 2.10 PM
bravetechrwanda / bravetechrwanda
0644
section.php
39.313 KB
26 Jan 2026 5.46 PM
bravetechrwanda / bravetechrwanda
0644
tools.php
15.791 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
utils.php
24.355 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
view.php
0.707 KB
23 Apr 2023 3.22 PM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF