GRAYBYTE WORDPRESS FILE MANAGER3796

Server IP : 162.213.255.40 / Your IP : 216.73.216.121
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/plugins/jetpack/modules/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/plugins/jetpack/modules//notes.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
 * Module Name: Notifications
 * Module Description: Receive instant notifications of site comments and likes.
 * Sort Order: 13
 * First Introduced: 1.9
 * Requires Connection: Yes
 * Requires User Connection: Yes
 * Auto Activate: Yes
 * Module Tags: Other
 * Feature: General
 * Additional Search Queries: notification, notifications, toolbar, adminbar, push, comments
 *
 * @package automattic/jetpack
 */

use Automattic\Jetpack\Connection\Manager as Connection_Manager;
use Automattic\Jetpack\Status\Host;

if ( ! defined( 'JETPACK_NOTES__CACHE_BUSTER' ) ) {
	define( 'JETPACK_NOTES__CACHE_BUSTER', JETPACK__VERSION . '-' . gmdate( 'oW' ) . '-lite' );
}

/**
 * Notifications class.
 */
class Jetpack_Notifications {
	/**
	 * Jetpack object.
	 *
	 * @var bool|Jetpack Jetpack object.
	 */
	public $jetpack = false;

	/**
	 * Singleton
	 *
	 * @static
	 */
	public static function init() {
		static $instance = array();

		if ( ! $instance ) {
			$instance[0] = new Jetpack_Notifications();
		}

		return $instance[0];
	}

	/**
	 * Constructor.
	 */
	private function __construct() {
		$this->jetpack = Jetpack::init();

		add_action( 'init', array( $this, 'action_init' ) );
	}

	/**
	 * Adds s0.wp.com to a file path.
	 *
	 * @param string $file File path.
	 *
	 * @return string
	 */
	public function wpcom_static_url( $file ) {
		return 'https://s0.wp.com' . $file;
	}

	/**
	 * Init the notifications admin bar.
	 *
	 * @return void
	 */
	public function action_init() {
		if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
			return;
		}

		if ( ! has_filter( 'show_admin_bar', '__return_true' ) && ! is_user_logged_in() ) {
			return;
		}

		// Do not show notifications in the Site Editor, which is always in fullscreen mode.
		global $pagenow;

		// Pre 13.7 pages that still need to be supported if < 13.7 is
		// still installed.
		$allowed_old_pages       = array( 'admin.php', 'themes.php' );
		$is_old_site_editor_page = in_array( $pagenow, $allowed_old_pages, true ) && isset( $_GET['page'] ) && 'gutenberg-edit-site' === $_GET['page']; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
		// For Gutenberg > 13.7, the core `site-editor.php` route is used instead
		$is_site_editor_page = 'site-editor.php' === $pagenow;

		if ( $is_site_editor_page || $is_old_site_editor_page ) {
			return;
		}

		add_action( 'admin_bar_menu', array( $this, 'admin_bar_menu' ), 120 );
		add_action( 'wp_head', array( $this, 'styles_and_scripts' ), 120 );
		add_action( 'admin_head', array( $this, 'styles_and_scripts' ) );
	}

	/**
	 * Enqueues and registers styles/scripts for notifications.
	 *
	 * @return void
	 */
	public function styles_and_scripts() {
		if ( self::is_block_editor() ) {
			return;
		}
		$is_rtl = is_rtl();

		if ( ( new Host() )->is_woa_site() ) {
			/**
			 * Can be used to force Notifications to display in RTL style.
			 *
			 * @module notes
			 *
			 * @since 4.8.0
			 *
			 * @param bool true Should notifications be displayed in RTL style. Defaults to false.
			 */
			$is_rtl = apply_filters( 'a8c_wpcom_masterbar_enqueue_rtl_notification_styles', false );
		}

		if ( ! $is_rtl ) {
			wp_enqueue_style( 'wpcom-notes-admin-bar', $this->wpcom_static_url( '/wp-content/mu-plugins/notes/admin-bar-v2.css' ), array( 'admin-bar' ), JETPACK_NOTES__CACHE_BUSTER );
		} else {
			wp_enqueue_style( 'wpcom-notes-admin-bar', $this->wpcom_static_url( '/wp-content/mu-plugins/notes/rtl/admin-bar-v2-rtl.css' ), array( 'admin-bar' ), JETPACK_NOTES__CACHE_BUSTER );
		}

		wp_enqueue_style( 'noticons', $this->wpcom_static_url( '/i/noticons/noticons.css' ), array( 'wpcom-notes-admin-bar' ), JETPACK_NOTES__CACHE_BUSTER );

		$this->print_js();

		$script_handles = array();
		wp_register_script( 'wpcom-notes-common', $this->wpcom_static_url( '/wp-content/mu-plugins/notes/notes-common-lite.min.js' ), array(), JETPACK_NOTES__CACHE_BUSTER, true );
		$script_handles[] = 'wpcom-notes-common';
		wp_enqueue_script( 'wpcom-notes-admin-bar', $this->wpcom_static_url( '/wp-content/mu-plugins/notes/admin-bar-v2.js' ), array( 'wpcom-notes-common' ), JETPACK_NOTES__CACHE_BUSTER, true );
		$script_handles[] = 'wpcom-notes-admin-bar';

		$wp_notes_args = 'var wpNotesArgs = ' . wp_json_encode( array( 'cacheBuster' => JETPACK_NOTES__CACHE_BUSTER ) ) . ';';
		wp_add_inline_script( 'wpcom-notes-admin-bar', $wp_notes_args, 'before' );

		if ( class_exists( 'Jetpack_AMP_Support' ) && Jetpack_AMP_Support::is_amp_request() ) {
			add_filter(
				'script_loader_tag',
				function ( $tag, $handle ) use ( $script_handles ) {
					if ( in_array( $handle, $script_handles, true ) ) {
						$tag = preg_replace( '/(?<=<script)(?=\s|>)/i', ' data-ampdevmode', $tag );
					}
					return $tag;
				},
				10,
				2
			);
		}
	}

	/**
	 * Adds notifications bubble to the admin bar.
	 *
	 * @return void
	 */
	public function admin_bar_menu() {
		global $wp_admin_bar;

		if ( ! is_object( $wp_admin_bar ) ) {
			return;
		}

		if ( self::is_block_editor() ) {
			return;
		}

		$user_locale = get_user_locale();

		if ( ! class_exists( 'GP_Locales' ) ) {
			if ( defined( 'JETPACK__GLOTPRESS_LOCALES_PATH' ) && file_exists( JETPACK__GLOTPRESS_LOCALES_PATH ) ) {
				require JETPACK__GLOTPRESS_LOCALES_PATH;
			}
		}

		if ( class_exists( 'GP_Locales' ) ) {
			$jetpack_locale_object = GP_Locales::by_field( 'slug', $user_locale );
			if ( $jetpack_locale_object instanceof GP_Locale ) {
				$user_locale = $jetpack_locale_object->slug;
			}
		}

		$third_party_cookie_check_iframe = '<span style="display:none;"><iframe class="jetpack-notes-cookie-check" src="https://widgets.wp.com/3rd-party-cookie-check/index.html"></iframe></span>';

		$title = self::get_notes_markup();

		// The default fallback is `en_US`. Remove underscore if present, noting that lang codes can be more than three chars.
		$user_locale = strtolower( explode( '_', $user_locale, 2 )[0] );

		$wp_admin_bar->add_menu(
			array(
				'id'     => 'notes',
				'title'  => $title,
				'meta'   => array(
					'html'  => '<div id="wpnt-notes-panel2" class="intrinsic-ignore" style="display:none" lang="' . esc_attr( $user_locale ) . '" dir="' . ( is_rtl() ? 'rtl' : 'ltr' ) . '"><div class="wpnt-notes-panel-header"><span class="wpnt-notes-header">' . __( 'Notifications', 'jetpack' ) . '</span><span class="wpnt-notes-panel-link"></span></div></div>' . $third_party_cookie_check_iframe,
					'class' => 'menupop',
				),
				'parent' => 'top-secondary',
				'href'   => 'https://wordpress.com/notifications',
			)
		);
	}

	/**
	 * Returns the HTML markup for used by notification in top bar
	 *
	 * @return string
	 */
	private static function get_notes_markup() {
		return '<span id="wpnt-notes-unread-count" class="wpnt-loading wpn-read"></span>
<span class="noticon noticon-bell ab-icon"></span>
<span class="screen-reader-text">' . esc_html__( 'Notifications', 'jetpack' ) . '</span>';
	}

	/**
	 * Echos the Notes JS.
	 *
	 * @return void
	 */
	public function print_js() {
		$link_accounts_url = is_user_logged_in() && ! ( new Connection_Manager( 'jetpack' ) )->is_user_connected() ? Jetpack::admin_url() : false;
		?>
<script data-ampdevmode type="text/javascript">
/* <![CDATA[ */
	var wpNotesIsJetpackClient = true;
	var wpNotesIsJetpackClientV2 = true;
		<?php if ( $link_accounts_url ) : ?>
	var wpNotesLinkAccountsURL = '<?php echo esc_url( $link_accounts_url ); ?>';
<?php endif; ?>
/* ]]> */
</script>
		<?php
	}

	/**
	 * Checks to see if we're in the block editor.
	 */
	public static function is_block_editor() {
		if ( function_exists( 'get_current_screen' ) ) {
			$current_screen = get_current_screen();
			if ( ! empty( $current_screen ) && $current_screen->is_block_editor() ) {
				return true;
			}
		}
		return false;
	}
}

Jetpack_Notifications::init();

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
carousel
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
cloudflare-analytics
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
comment-likes
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
comments
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
custom-post-types
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
geo-location
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
google-fonts
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
gravatar
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
infinite-scroll
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
likes
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
markdown
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
memberships
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
photon-cdn
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
plugin-search
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
post-by-email
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
related-posts
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
scan
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
seo-tools
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
sharedaddy
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
shortcodes
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
simple-payments
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
site-icon
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
sitemaps
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
stats
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
subscriptions
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
theme-tools
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
tiled-gallery
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
verification-tools
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
videopress
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
widget-visibility
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
widgets
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
woocommerce-analytics
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
wordads
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
wpcom-tos
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
blaze.php
0.963 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
blocks.php
1.745 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
carousel.php
0.56 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
comment-likes.php
7.886 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
comments.php
1.058 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
contact-form.php
0.775 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
copy-post.php
13.084 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
custom-content-types.php
3.955 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
geo-location.php
0.252 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
google-fonts.php
0.521 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
gravatar-hovercards.php
11.836 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
infinite-scroll.php
8.189 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
json-api.php
0.473 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
latex.php
4.609 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
likes.php
19.787 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
markdown.php
0.983 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
masterbar.php
0.273 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
module-extras.php
2.584 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
module-headings.php
42.855 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
module-info.php
26.1 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
monitor.php
3.506 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
notes.php
7.662 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
photon-cdn.php
12.172 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
photon.php
0.694 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
plugin-search.php
21.582 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
post-by-email.php
0.582 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
post-list.php
0.521 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
protect.php
0.642 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
publicize.php
4.086 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
related-posts.php
2.142 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
search.php
1.174 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
seo-tools.php
1.521 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sharedaddy.php
1.594 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
shortcodes.php
6.358 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
shortlinks.php
4.392 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sitemaps.php
1.283 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
sso.php
0.668 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
stats.php
46.646 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
subscriptions.php
32.043 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
theme-tools.php
2.518 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
tiled-gallery.php
1.055 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
vaultpress.php
1.769 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
verification-tools.php
0.811 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
videopress.php
0.983 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
waf.php
0.29 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
widget-visibility.php
0.464 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
widgets.php
2.723 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
woocommerce-analytics.php
0.841 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
wordads.php
0.572 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644
wpgroho.js
1.931 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF