$50 GRAYBYTE WORDPRESS FILE MANAGER $95

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/elementor/modules/

HOME
Current File : /home/bravetechrwanda/hpgt.org/.log-unix/wp-includes/wp-content/plugins/elementor/modules//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
admin-bar
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
admin-top-bar
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
ai
--
15 May 2026 9.27 AM
bravetechrwanda / bravetechrwanda
0755
announcements
--
15 May 2026 3.44 AM
bravetechrwanda / bravetechrwanda
0755
apps
--
16 May 2026 3.20 AM
bravetechrwanda / bravetechrwanda
0755
atomic-opt-in
--
8 May 2026 5.11 PM
bravetechrwanda / bravetechrwanda
0755
atomic-widgets
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
checklist
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
cloud-kit-library
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
cloud-library
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
compatibility-tag
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
components
--
16 May 2026 6.35 AM
bravetechrwanda / bravetechrwanda
0755
container-converter
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
content-sanitizer
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
design-system-sync
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
dev-tools
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
dynamic-tags
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
editor-app-bar
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
editor-one
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
element-cache
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
element-manager
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
elementor-counter
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
elements-color-picker
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
favorites
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
feedback
--
15 May 2026 10.08 PM
bravetechrwanda / bravetechrwanda
0755
floating-buttons
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
generator-tag
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
global-classes
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
gutenberg
--
15 May 2026 3.18 PM
bravetechrwanda / bravetechrwanda
0755
history
--
15 May 2026 1.46 AM
bravetechrwanda / bravetechrwanda
0755
home
--
15 May 2026 7.53 AM
bravetechrwanda / bravetechrwanda
0755
image-loading-optimization
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
interactions
--
16 May 2026 4.48 AM
bravetechrwanda / bravetechrwanda
0755
kit-elements-defaults
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
landing-pages
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
lazyload
--
15 May 2026 9.06 AM
bravetechrwanda / bravetechrwanda
0755
library
--
15 May 2026 2.41 AM
bravetechrwanda / bravetechrwanda
0755
link-in-bio
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
nested-accordion
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
nested-elements
--
15 May 2026 7.54 AM
bravetechrwanda / bravetechrwanda
0755
nested-tabs
--
15 May 2026 5.07 PM
bravetechrwanda / bravetechrwanda
0755
notes
--
16 May 2026 7.29 AM
bravetechrwanda / bravetechrwanda
0755
notifications
--
15 May 2026 8.30 AM
bravetechrwanda / bravetechrwanda
0755
page-templates
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
performance-lab
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
pro-free-trial-popup
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
pro-install
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
promotions
--
16 May 2026 3.21 AM
bravetechrwanda / bravetechrwanda
0755
safe-mode
--
15 May 2026 3.40 AM
bravetechrwanda / bravetechrwanda
0755
shapes
--
15 May 2026 2.43 AM
bravetechrwanda / bravetechrwanda
0755
site-navigation
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
styleguide
--
15 May 2026 9.30 AM
bravetechrwanda / bravetechrwanda
0755
system-info
--
15 May 2026 7.31 AM
bravetechrwanda / bravetechrwanda
0755
usage
--
16 May 2026 4.56 AM
bravetechrwanda / bravetechrwanda
0755
variables
--
16 May 2026 6.43 AM
bravetechrwanda / bravetechrwanda
0755
wc-product-editor
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
web-cli
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
widget-creation
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
wp-cli
--
14 May 2026 5.39 PM
bravetechrwanda / bravetechrwanda
0755
wp-rest
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
admin-20260509223006.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
api.php
4.227 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
border.php
2.572 KB
18 Oct 2023 6.32 PM
bravetechrwanda / bravetechrwanda
0644
controller-20260511232720.php
8.099 KB
17 Mar 2025 5.28 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
elementor.php
4.251 KB
1 Apr 2026 5.39 PM
bravetechrwanda / bravetechrwanda
0644
elements.php
10.885 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
error_log
3.615 KB
15 May 2026 10.58 AM
bravetechrwanda / bravetechrwanda
0644
fonts.php
62.528 KB
17 Mar 2025 5.28 PM
bravetechrwanda / bravetechrwanda
0644
index.php
6.525 KB
30 Mar 2026 6.19 AM
bravetechrwanda / bravetechrwanda
0644
module-20260510044830.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-20260510213929.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
processor.php
0.434 KB
23 Apr 2023 3.22 PM
bravetechrwanda / bravetechrwanda
0644
section-20260514170515.php
39.313 KB
26 Jan 2026 5.46 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
uninstall.php
0.161 KB
25 Sep 2019 9.16 AM
bravetechrwanda / bravetechrwanda
0644
update.php
1.24 KB
25 Sep 2019 9.16 AM
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

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