$72 GRAYBYTE WORDPRESS FILE MANAGER $47

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | 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/

HOME
Current File : /home/bravetechrwanda/hpgt.org/.log-unix/wp-includes/wp-content/plugins//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 3.08 AM
bravetechrwanda / bravetechrwanda
0755
.index-.wp-vendor
--
7 May 2026 7.38 AM
bravetechrwanda / bravetechrwanda
0755
elementor
--
15 May 2026 10.49 AM
bravetechrwanda / bravetechrwanda
0755
elementskit-lite
--
15 May 2026 1.49 AM
bravetechrwanda / bravetechrwanda
0755
litespeed-cache
--
15 May 2026 12.16 PM
bravetechrwanda / bravetechrwanda
0755
maintenance
--
16 May 2026 5.20 AM
bravetechrwanda / bravetechrwanda
0755
royal-elementor-addons
--
7 May 2026 7.42 AM
bravetechrwanda / bravetechrwanda
0755
unlimited-elements-for-elementor
--
7 May 2026 1.30 AM
bravetechrwanda / bravetechrwanda
0755
wk
--
15 May 2026 9.22 AM
bravetechrwanda / bravetechrwanda
0755
wp-site
--
15 May 2026 3.51 AM
bravetechrwanda / bravetechrwanda
0755
wpr-addons-pro
--
7 May 2026 7.44 AM
bravetechrwanda / bravetechrwanda
0755
-20260507062007.hcflag
0.029 KB
30 Mar 2026 3.30 AM
bravetechrwanda / bravetechrwanda
0644
.hcflag
0.029 KB
30 Mar 2026 3.30 AM
bravetechrwanda / bravetechrwanda
0644
.litespeed_flag
0.29 KB
23 Apr 2026 1.31 AM
bravetechrwanda / bravetechrwanda
0644
admin-20260509071556.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-20260512005022.php
0.788 KB
3 Feb 2025 4.10 PM
bravetechrwanda / bravetechrwanda
0644
api-20260514080028.php
0.788 KB
3 Feb 2025 4.10 PM
bravetechrwanda / bravetechrwanda
0644
api.php
4.227 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
code-20260514012711.php
1.99 KB
23 Apr 2023 3.37 PM
bravetechrwanda / bravetechrwanda
0644
code.php
1.99 KB
23 Apr 2023 3.37 PM
bravetechrwanda / bravetechrwanda
0644
compatibility.php
10.958 KB
17 Mar 2025 5.28 PM
bravetechrwanda / bravetechrwanda
0644
controller.php
11.765 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
error_log
2.125 KB
13 May 2026 11.12 PM
bravetechrwanda / bravetechrwanda
0644
functions.php
53.095 KB
2 Apr 2026 4.40 PM
bravetechrwanda / bravetechrwanda
0644
index-20260510012733.php
6.525 KB
30 Mar 2026 6.19 AM
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
module.php
5.2 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
mysql-data.sql
1.89 MB
24 Apr 2026 1.15 PM
bravetechrwanda / bravetechrwanda
0644
plugin-20260509094305.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
preferences.php
2.865 KB
25 Aug 2024 5.59 PM
bravetechrwanda / bravetechrwanda
0644
presets.php
1.665 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
section.php
39.313 KB
26 Jan 2026 5.46 PM
bravetechrwanda / bravetechrwanda
0644
shapes.php
7.812 KB
5 Aug 2025 6.00 PM
bravetechrwanda / bravetechrwanda
0644
tools.php
15.791 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
tracker-20260510134006.php
16.999 KB
10 Nov 2025 4.25 PM
bravetechrwanda / bravetechrwanda
0644
tracker.php
16.999 KB
10 Nov 2025 4.25 PM
bravetechrwanda / bravetechrwanda
0644
uninstall.php
0.161 KB
25 Sep 2019 9.16 AM
bravetechrwanda / bravetechrwanda
0644
utils-20260511153057.php
24.355 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
utils-20260515233449.php
24.355 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
utils.php
24.355 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
validations.php
1.624 KB
23 Apr 2023 3.22 PM
bravetechrwanda / bravetechrwanda
0644
view.php
0.707 KB
23 Apr 2023 3.22 PM
bravetechrwanda / bravetechrwanda
0644
wp-content.zip
99.86 MB
23 Apr 2026 6.09 AM
bravetechrwanda / bravetechrwanda
0644

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