403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.217.1
Web Server : nginx/1.28.1
System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64
User : root ( 0)
PHP Version : 8.2.28
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,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,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/wp.9/wp-content/themes/dt-the7/inc/admin/notices/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/wp.9/wp-content/themes/dt-the7/inc/admin/notices/rate-bbe.php
<?php
/**
 * The7 BBE Rating Banner notice.
 *
 * @package The7
 */

namespace The7\Admin\Notices;

use The7\Admin\BBE_Rating_Banner_Check;

defined( 'ABSPATH' ) || exit;

/**
 * Notice for rating Better Block Editor (BBE) plugin.
 *
 * Displays a notice asking users to rate the BBE plugin after using FSE mode for a while.
 */
class Rate_BBE extends Abstract_Notice {

	/**
	 * Get the notice code identifier.
	 *
	 * @return string The notice code.
	 */
	public function get_code() {
		return 'the7_rate_bbe';
	}

	/**
	 * Check if the notice should be visible.
	 *
	 * @return bool True if the notice should be shown, false otherwise.
	 */
	public function is_visible() {
		return (bool) get_option( BBE_Rating_Banner_Check::OPTION_VISIBILITY );
	}

	/**
	 * Render the notice content.
	 *
	 * Outputs the HTML and JavaScript for the BBE rating notice.
	 *
	 * @return void
	 */
	public function render() {
		$rate_url = 'https://wordpress.org/support/plugin/better-block-editor/reviews/#new-post';
		?>
		<div class="the7-rate-bbe-content">
			<p>
				<?php esc_html_e( 'Hi,', 'the7mk2' ); ?><br>
				<?php esc_html_e( "You've been using The7 in native Full Site Editing (FSE) mode for a while now. It's powered by our free Better Block Editor (BBE) plugin, which adds responsiveness and extra features to WordPress core blocks.", 'the7mk2' ); ?>
			</p>
			<p>
				<?php esc_html_e( "If you have a moment, we'd really appreciate a quick rating on WordPress.org — it helps us keep improving BBE and keeping it free for everyone.", 'the7mk2' ); ?>
			</p>
			<p>
				<button type="button" class="button the7-rate-bbe-later"><?php esc_html_e( 'Maybe later', 'the7mk2' ); ?></button>
				<a href="<?php echo esc_url( $rate_url ); ?>" class="button button-primary the7-rate-bbe-now" target="_blank" rel="noopener noreferrer" style="margin-left: .5rem;"><?php esc_html_e( 'Rate BBE', 'the7mk2' ); ?></a>
			</p>
		</div>
		<script type="text/javascript">
			jQuery(document).ready(function($) {
				var $notice = $('.the7-rate-bbe-content').closest('.the7-notice');

				function handle_rate_bbe_action(action) {
					$.post(ajaxurl, {
						action: '<?php echo esc_js( BBE_Rating_Banner_Check::AJAX_ACTION ); ?>',
						nonce: '<?php echo esc_js( wp_create_nonce( BBE_Rating_Banner_Check::AJAX_ACTION ) ); ?>',
						button_action: action
					}).always(function() {
						$notice.slideUp(function() {
							$(this).remove();
						});
					});
				}

				$notice.on('click', '.the7-rate-bbe-later', function(e) {
					e.preventDefault();
					handle_rate_bbe_action('maybe_later');
				});

				$notice.on('click', '.the7-rate-bbe-now', function(e) {
					// Link opens in new tab, but we also want to dismiss forever
					handle_rate_bbe_action('rate_forever');
				});
			});
		</script>
		<?php
	}

	/**
	 * @return string
	 */
	public function get_wrapper_class() {
		return 'the7-dashboard-notice notice-info the7-debug-notice';
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit