SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > jetpack > _inc > lib


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com/wp-content/plugins/jetpack/_inc/lib

NameTypeSizeLast ModifiedActions
admin-pages Directory - -
core-api Directory - -
debugger Directory - -
markdown Directory - -
class-jetpack-ai-helper.php File 14554 bytes May 19 2025 19:32:00.
class-jetpack-blog-stats-helper.php File 2798 bytes April 14 2025 18:35:52.
class-jetpack-currencies.php File 4847 bytes July 15 2024 22:48:12.
class-jetpack-instagram-gallery-helper.php File 2986 bytes April 22 2024 23:41:02.
class-jetpack-mapbox-helper.php File 3232 bytes November 08 2022 02:55:22.
class-jetpack-podcast-feed-locator.php File 3554 bytes April 28 2025 19:38:34.
class-jetpack-podcast-helper.php File 20716 bytes April 28 2025 19:38:34.
class-jetpack-recommendations.php File 15603 bytes February 26 2024 23:23:14.
class-jetpack-top-posts-helper.php File 4588 bytes May 05 2025 21:43:40.
class.color.php File 22310 bytes August 20 2024 12:34:10.
class.core-rest-api-endpoints.php File 151622 bytes April 28 2025 19:38:34.
class.jetpack-automatic-install-skin.php File 293 bytes September 20 2023 01:19:10.
class.jetpack-iframe-embed.php File 3178 bytes June 19 2023 23:16:28.
class.jetpack-password-checker.php File 33225 bytes April 16 2024 00:40:26.
class.jetpack-search-performance-logger.php File 3711 bytes March 29 2022 23:04:42.
class.media-extractor.php File 22088 bytes August 13 2024 00:04:40.
class.media-summary.php File 15803 bytes June 05 2025 20:49:04.
class.media.php File 15936 bytes May 06 2024 23:42:24.
components.php File 3111 bytes May 26 2025 19:03:40.
debugger.php File 872 bytes January 23 2024 00:02:16.
icalendar-reader.php File 33905 bytes February 24 2025 22:55:34.
markdown.php File 344 bytes September 22 2022 21:43:06.
plans.php File 1935 bytes January 25 2022 23:38:06.
plugins.php File 209 bytes February 02 2022 21:44:30.
tonesque.php File 7015 bytes August 20 2024 12:34:10.
widgets.php File 26822 bytes May 06 2024 23:42:24.

Reading File: /home/codekrsu//ameliagraphics.com/wp-content/plugins/jetpack/_inc/lib/components.php

<?php //phpcs:ignore WordPress.Files.FileName.InvalidClassFileName

use Automattic\Jetpack\Status;

/**
 * Components Library
 *
 * Load and display a pre-rendered component
 */
class Jetpack_Components {
	/**
	 * Get the contents of a component file
	 *
	 * @since 14.7
	 *
	 * @param string $name Component name.
	 * @return string The component markup
	 */
	protected static function get_component_markup( $name ) {
		ob_start();
		// `include` fails gracefully and throws a warning, but doesn't halt execution.
		include JETPACK__PLUGIN_DIR . "_inc/blocks/$name.html";
		return ob_get_clean();
	}

	/**
	 * Load and display a pre-rendered component
	 *
	 * @since 7.7.0
	 *
	 * @param string $name  Component name.
	 * @param array  $props Component properties.
	 *
	 * @return string The component markup
	 */
	public static function render_component( $name, $props ) {

		$rtl = is_rtl() ? '.rtl' : '';
		wp_enqueue_style( 'jetpack-components', plugins_url( "_inc/blocks/components{$rtl}.css", JETPACK__PLUGIN_FILE ), array( 'wp-components' ), JETPACK__VERSION );

		$markup = self::get_component_markup( $name );

		foreach ( $props as $key => $value ) {
			$markup = str_replace(
				"#$key#",
				$value,
				$markup
			);

			// Workaround, required to replace strings in `sprintf`-expressions.
			// See extensions/i18n-to-php.js for more information.
			$markup = str_replace(
				"%($key)s",
				$value,
				$markup
			);
		}

		return $markup;
	}

	/**
	 * Renders the frontend-nudge with the provided props.
	 *
	 * @param array $props Component properties.
	 *
	 * @return string The component markup.
	 */
	public static function render_frontend_nudge( $props ) {
		return self::render_component(
			'frontend-nudge',
			$props
		);
	}

	/**
	 * Load and display a pre-rendered component
	 *
	 * @since 7.7.0
	 *
	 * @param array $props Component properties.
	 *
	 * @return string The component markup
	 */
	public static function render_upgrade_nudge( $props ) {
		$plan_slug = $props['plan'];
		require_once JETPACK__PLUGIN_DIR . '_inc/lib/plans.php';
		$plan = Jetpack_Plans::get_plan( $plan_slug );

		if ( ! $plan ) {
			return self::render_component(
				'upgrade-nudge',
				array(
					'checkoutUrl' => '',
				)
			);
		}

		// WP.com plan objects have a dedicated `path_slug` field, Jetpack plan objects don't.
		$plan_path_slug = wp_startswith( $plan_slug, 'jetpack_' )
			? $plan_slug
			: $plan->path_slug;

		$post_id = get_the_ID();

		$site_slug = ( new Status() )->get_site_suffix();

		// Post-checkout: redirect back to the editor.
		$redirect_to = add_query_arg(
			array(
				'plan_upgraded' => 1,
			),
			get_edit_post_link( $post_id )
		);

		// Decode the URL to avoid double encoding.
		$redirect_to = html_entity_decode( wp_unslash( $redirect_to ), ENT_QUOTES );

		$upgrade_url =
			$plan_path_slug
			? add_query_arg(
				'redirect_to',
				rawurlencode( $redirect_to ),
				"https://wordpress.com/checkout/{$site_slug}/{$plan_path_slug}"
			) : '';

		return self::render_component(
			'upgrade-nudge',
			array(
				'checkoutUrl' => $upgrade_url,
			)
		);
	}
}

SILENT KILLER Tool