403Webshell
Server IP : 89.108.64.180  /  Your IP : 216.73.216.140
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : www-root ( 1010)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/жемчужина.online/wp-content/themes/hoteller/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/жемчужина.online/wp-content/themes/hoteller/lib/admin.pointer.lib.php
<?php
/**
 * Plugin Name:       WordPress admin pointer for product registration
 */

add_action(
	'in_admin_header',
	function() {
		wp_enqueue_script( 'jquery' );
		wp_enqueue_style( 'wp-pointer' );
		wp_enqueue_script( 'wp-pointer' );
	
		if (
			! get_user_meta(
				get_current_user_id(),
				'hoteller-pointer-registration-dismissed',
				true
			)
		):
			
		?>
			<script>
			jQuery(
				function() {
					jQuery('#pp_panel_registration_a').first().pointer( 
						{
							content:
								"<h3>Purchase Code Registration<\/h3>" +
								"<p>Once you registered your purchase code. It will be attached to this website domain. If you want to change the domain registration. Don't forget to click <b>Unregister button</b> first then you will be able to register the purchase code again on other website domain.</p>" +
								"<p>Please register your account <a href='https://license.themegoods.com/manager/' target='_blank'>here</a> then you will be able to manage/remove your purchase code registration there.</p>",


							position:
								{
									edge:  'bottom',
									align: 'left'
								},

							pointerClass:
								'wp-pointer arrow-top',

							pointerWidth: 420,
							
							close: function() {
								jQuery.post(
									ajaxurl,
									{
										pointer: 'hoteller-pointer-registration',
										action: 'dismiss-pointer-registration',
									}
								);
							},

						}
					).pointer('open');
				}
			);
			</script>

		<?php
		endif;
	}
);

add_action(
	'admin_init',
	function() {

		if ( isset( $_POST['action'] ) && 'dismiss-pointer-registration' == $_POST['action'] ) {

			update_user_meta(
				get_current_user_id(),
				'hoteller-pointer-registration-dismissed',
				$_POST['pointer'],
				true
			);
		}
	}
);

/**
 * Plugin Name:       WordPress admin pointer for product registration
 */

add_action(
	'in_admin_header',
	function() {
		wp_enqueue_script( 'jquery' );
		wp_enqueue_style( 'wp-pointer' );
		wp_enqueue_script( 'wp-pointer' );
	
		if (
			! get_user_meta(
				get_current_user_id(),
				'hoteller-pointer-required-plugins-dismissed',
				true
			)
		):
			
		?>
			<script>
			jQuery(
				function() {
					jQuery('#menu-appearance').first().pointer( 
						{
							content:
								"<h3>Install Required Plugins<\/h3>" +
								"<p>Before installing required plugins. You have to register your purchase code. Then you will be able to install all premium plugins from <b>Appearance > Install Plugins</b>.</p>" +
								"<p>Please see detailed instruction <a href='https://docs.themegoods.com/docs/hoteller/getting-started/register-your-purchase-using-token-key/' target='_blank'>here</a>.</p>",


							position:
								{
									edge:  'left',
									align: 'left'
								},

							pointerClass:
								'wp-pointer arrow-top',

							pointerWidth: 420,
							
							close: function() {
								jQuery.post(
									ajaxurl,
									{
										pointer: 'hoteller-pointer-required-plugins',
										action: 'dismiss-required-plugins',
									}
								);
							},

						}
					).pointer('open');
				}
			);
			</script>

		<?php
		endif;
	}
);

add_action(
	'admin_init',
	function() {

		if ( isset( $_POST['action'] ) && 'dismiss-required-plugins' == $_POST['action'] ) {

			update_user_meta(
				get_current_user_id(),
				'hoteller-pointer-required-plugins-dismissed',
				$_POST['pointer'],
				true
			);
		}
	}
);

/**
 * Plugin Name:       WordPress admin pointer for product registration
 */
if ( class_exists( 'LoftLoader' ) ) {
	add_action(
		'in_admin_header',
		function() {
			wp_enqueue_script( 'jquery' );
			wp_enqueue_style( 'wp-pointer' );
			wp_enqueue_script( 'wp-pointer' );
		
			if (
				! get_user_meta(
					get_current_user_id(),
					'hoteller-pointer-loftloader-dismissed',
					true
				)
			):
				
			?>
				<script>
				jQuery(
					function() {
						jQuery('#menu-settings').first().pointer( 
							{
								content:
									"<h3>Preloader Customization<\/h3>" +
									"<p>You can adjust the preloader under <b>Settings > LoftLoader Lite</b>.</p>" +
									"<p>You can also disable the <b>LoftLoader plugin</b> to remove the preloader.</p>",
	
	
								position:
									{
										edge:  'top',
										align: 'left'
									},
	
								pointerClass:
									'wp-pointer arrow-top',
	
								pointerWidth: 300,
								
								close: function() {
									jQuery.post(
										ajaxurl,
										{
											pointer: 'hoteller-pointer-loftloader',
											action: 'dismiss-loftloader',
										}
									);
								},
	
							}
						).pointer('open');
					}
				);
				</script>
	
			<?php
			endif;
		}
	);
	
	add_action(
		'admin_init',
		function() {
	
			if ( isset( $_POST['action'] ) && 'dismiss-loftloader' == $_POST['action'] ) {
	
				update_user_meta(
					get_current_user_id(),
					'hoteller-pointer-loftloader-dismissed',
					$_POST['pointer'],
					true
				);
			}
		}
	);
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit