[ Avaa Bypassed ]




Upload:

Command:

www-data@18.219.133.22: ~ $
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName

use Automattic\Jetpack\Assets;
use Automattic\Jetpack\Assets\Logo;

/**
 * Jetpack connection dashboard widget.
 *
 * @package automattic/jetpack
 */
class Jetpack_Connection_Widget {
	/**
	 * Static instance
	 *
	 * @var Jetpack_Connection_Widget
	 */
	private static $instance = null;

	/**
	 * Intiialize the class by calling the setup static function.
	 *
	 * @return Jetpack_Connection_Widget
	 */
	public static function init() {
		if ( self::$instance === null ) {
			self::$instance = new Jetpack_Connection_Widget();
		}

		return self::$instance;
	}

	/**
	 * Jetpack_Connection_Widget constructor.
	 */
	public function __construct() {
		add_action( 'current_screen', array( $this, 'maybe_initialize_hooks' ) );
	}

	/**
	 * Will initialize hooks to display the new connection widget.
	 */
	public function maybe_initialize_hooks() {
		add_action( 'admin_print_styles', array( $this, 'admin_banner_styles' ) );
		add_action( 'wp_dashboard_setup', array( $this, 'wp_dashboard_setup' ) );
	}

	/**
	 * Sets up the Jetpack Connection Widget in the WordPress admin dashboard.
	 */
	public function wp_dashboard_setup() {
		if ( Jetpack_Options::get_option( 'dismissed_connection_banner' ) &&
			! Jetpack::is_connection_ready() ) {
			$widget_title = sprintf(
				__( 'Jetpack - Security, Backup, Speed & Growth', 'jetpack' )
			);

			wp_add_dashboard_widget(
				'jetpack_connection_widget',
				$widget_title,
				array( __CLASS__, 'connection_widget' )
			);
		}
	}

	/**
	 * Included the needed styles
	 */
	public function admin_banner_styles() {
		wp_enqueue_style(
			'jetpack-connection-widget',
			Assets::get_file_url_for_environment(
				'css/jetpack-connection-widget.min.css',
				'css/jetpack-connection-widget.css'
			),
			array(),
			JETPACK__VERSION
		);
	}

	/**
	 * Builds the connection url for the widget.
	 *
	 * @return string
	 */
	public static function build_connect_url() {
		$url = Jetpack::init()->build_connect_url(
			true,
			false,
			'unconnected-site-widget'
		);

		return add_query_arg( 'auth_approved', 'true', $url );
	}

	/**
	 * Load the widget
	 */
	public static function connection_widget() {
		$connect_url  = self::build_connect_url();
		$jetpack_logo = new Logo();
		?>
			<div class="jp-connection-widget">
				<div class="jp-connection-widget__logo">
					<?php echo $jetpack_logo->get_jp_emblem_larger(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
				</div>
				<img
					class="jp-connection-widget__image"
					src="<?php echo esc_url( plugins_url( 'images/dashboard-connection-widget-hero.png', JETPACK__PLUGIN_FILE ) ); ?>" />
				<p class="jp-connection-widget__heading"><?php esc_html_e( 'Finish setting up your site', 'jetpack' ); ?></p>
				<p class="jp-connection-widget__paragraph">
					<?php esc_html_e( 'Complete your setup to take advantage of security and performance features already installed by Jetpack.', 'jetpack' ); ?>
				</p>
				<p class="jp-connection-widget__tos-blurb">
					<?php jetpack_render_tos_blurb(); ?>
				</p>
				<p class="jp-connection_widget__button-container">
					<a class="jp-connection-widget__button" href="<?php echo esc_url( $connect_url ); ?>"><?php esc_html_e( 'Set up Jetpack for free', 'jetpack' ); ?></a>
				</p>
			</div>
		<?php
	}
}

Filemanager

Name Type Size Permission Actions
3rd-party Folder 0777
_inc Folder 0777
css Folder 0777
extensions Folder 0777
images Folder 0777
jetpack_vendor Folder 0777
json-endpoints Folder 0777
modules Folder 0777
sal Folder 0777
src Folder 0777
vendor Folder 0777
views Folder 0777
CHANGELOG.md File 562.84 KB 0777
LICENSE.txt File 17.98 KB 0777
SECURITY.md File 2.45 KB 0777
class-jetpack-connection-status.php File 728 B 0777
class-jetpack-connection-widget.php File 3.27 KB 0777
class-jetpack-gallery-settings.php File 3.38 KB 0777
class-jetpack-pre-connection-jitms.php File 5.77 KB 0777
class-jetpack-recommendations-banner.php File 9.08 KB 0777
class-jetpack-stats-dashboard-widget.php File 7.77 KB 0777
class-jetpack-wizard-banner.php File 214 B 0777
class-jetpack-xmlrpc-methods.php File 8.33 KB 0777
class.frame-nonce-preview.php File 3.22 KB 0777
class.jetpack-admin.php File 20.11 KB 0777
class.jetpack-affiliate.php File 205 B 0777
class.jetpack-autoupdate.php File 9.74 KB 0777
class.jetpack-bbpress-json-api.compat.php File 220 B 0777
class.jetpack-boost-modules.php File 1.23 KB 0777
class.jetpack-cli.php File 71.41 KB 0777
class.jetpack-client-server.php File 2.79 KB 0777
class.jetpack-connection-banner.php File 13.8 KB 0777
class.jetpack-data.php File 275 B 0777
class.jetpack-gutenberg.php File 41.16 KB 0777
class.jetpack-heartbeat.php File 4.55 KB 0777
class.jetpack-idc.php File 351 B 0777
class.jetpack-modules-list-table.php File 14.79 KB 0777
class.jetpack-network-sites-list-table.php File 5.93 KB 0777
class.jetpack-network.php File 21.03 KB 0777
class.jetpack-plan.php File 4.09 KB 0777
class.jetpack-post-images.php File 31.98 KB 0777
class.jetpack-twitter-cards.php File 12.92 KB 0777
class.jetpack-user-agent.php File 25.84 KB 0777
class.jetpack.php File 228.13 KB 0777
class.json-api-endpoints.php File 82.39 KB 0777
class.json-api.php File 33.34 KB 0777
class.photon.php File 1.74 KB 0777
composer.json File 3.84 KB 0777
enhanced-open-graph.php File 4.35 KB 0777
functions.compat.php File 4.1 KB 0777
functions.cookies.php File 2.04 KB 0777
functions.global.php File 15.08 KB 0777
functions.is-mobile.php File 2.47 KB 0777
functions.opengraph.php File 17.72 KB 0777
functions.photon.php File 3.04 KB 0777
jetpack.php File 8.24 KB 0777
json-api-config.php File 338 B 0777
json-endpoints.php File 6.92 KB 0777
load-jetpack.php File 3.39 KB 0777
locales.php File 324 B 0777
readme.txt File 26.87 KB 0777
uninstall.php File 1.59 KB 0777
wpml-config.xml File 1.26 KB 0777