GRAYBYTE WORDPRESS FILE MANAGER8012

Server IP : 162.213.255.40 / Your IP : 216.73.216.121
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/plugins/jetpack/_inc/lib/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/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 {
	/**
	 * 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 );

		ob_start();
		// `include` fails gracefully and throws a warning, but doesn't halt execution.
		include JETPACK__PLUGIN_DIR . "_inc/blocks/$name.html";
		$markup = ob_get_clean();

		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 )
		);

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

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

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
admin-pages
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
core-api
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
debugger
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
markdown
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
class-jetpack-ai-helper.php
13.83 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class-jetpack-currencies.php
4.733 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class-jetpack-instagram-gallery-helper.php
2.916 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class-jetpack-mapbox-helper.php
3.156 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class-jetpack-podcast-feed-locator.php
3.589 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class-jetpack-podcast-helper.php
20.664 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class-jetpack-recommendations.php
15.237 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class-jetpack-top-posts-helper.php
3.947 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.color.php
21.787 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.core-rest-api-endpoints.php
147.604 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.jetpack-automatic-install-skin.php
0.286 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.jetpack-iframe-embed.php
3.104 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.jetpack-keyring-service-helper.php
9.104 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.jetpack-password-checker.php
32.446 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.jetpack-search-performance-logger.php
3.624 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.media-extractor.php
21.57 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.media-summary.php
15.133 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.media.php
15.563 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
components.php
2.642 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
debugger.php
0.852 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
functions.wp-notify.php
19.093 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
icalendar-reader.php
33.023 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
jp-simplepie-alias-new.php
0.674 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
jp-simplepie-alias-old.php
0.664 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
jp-simplepie-alias.php
0.731 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
markdown.php
0.336 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
plans.php
1.89 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
plugins.php
0.204 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
tonesque.php
6.851 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
widgets.php
26.193 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF