HEX
Server: LiteSpeed
System: Linux s383.bitcommand.com 5.14.0-687.24.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 9 18:14:06 EDT 2026 x86_64
User: pclast (1605)
PHP: 8.1.34
Disabled: exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/pclast/www/wp-content/plugins/wp-rocket/views/settings/sections/cdn/rocketcdn-free.php
<?php
/**
 * Built-in CDN section template.
 *
 * Displays the page list for built-in CDN with add page functionality.
 *
 * @since 3.22
 *
 * @param array $data {
 *     Section data.
 *
 *     @type string $id          Section identifier.
 *     @type string $title       Section title.
 *     @type string $description Section description.
 *     @type string $class       Section classes.
 *     @type string $help        Data to pass to beacon.
 *     @type string $page        Page section identifier.
 *     @type array  $status_indicator Data for the CDN status indicator partial.
 *     @type array  $cta_data    Data for the CTA banner.
 *     @type string $renewal_url    URL for renewing the license.
 *     @type bool   $active_subscription Whether the user has an active subscription or not.
 * }
 */

defined( 'ABSPATH' ) || exit;

?>

<div class="wpr-optionHeader wpr-optionHeader--cdn-driver <?php echo esc_attr( $data['class'] ); ?>">
	<div class="wpr-optionHeader__title-group">
		<h3 class="wpr-title2 wpr-title2--orange"><?php echo esc_html( $data['title'] ); ?></h3>
		<span class="wpr-badge wpr-badge--grey"><?php esc_html_e( 'Free', 'rocket' ); ?></span>
	</div>
	<?php if ( ! empty( $data['help'] ) ) : ?>
	<a href="<?php echo esc_url( $data['help']['url'] ); ?>" data-beacon-id="<?php echo esc_attr( $data['help']['id'] ); ?>" data-wpr_track_button="Need Help" data-wpr_track_context="Settings" class="wpr-infoAction wpr-infoAction--help wpr-icon-help" target="_blank"><?php esc_html_e( 'Need Help?', 'rocket' ); ?></a>
	<?php endif; ?>
</div>

<div class="<?php echo esc_attr( $data['class'] ); ?>">
	<?php
	/**
	 * Fires before the RocketCDN free status indicator is displayed.
	 *
	 * @since 3.22
	 * @param array $cta_data CTA banner data.
	 */
	do_action( 'rocket_cdn_free_before_status_indicator', $data['cta_data'] );
	?>
</div>

<div class="wpr-cdn-built-in <?php echo esc_attr( $data['class'] ); ?>">
	<?php
	$this->render_parts_with_data( 'cdn/cdn-status-indicator', $data['status_indicator'] );
	?>

	<div class="wpr-cdn-built-in__separator"></div>
	
	<?php
	/**
	 * Fires to render the built-in CDN page list table.
	 *
	 * @since 3.22
	 */
	do_action( 'rocket_cdn_free_page_list' );
	?>

	<div class="wpr-cdn-add-page" id="wpr_add_page_component">
		<div class="wpr-cdn-add-page__input-wrap">
			<input type="text" id="wpr_cdn_add_page_input" placeholder="<?php esc_attr_e( 'Enter a page URL to add to RocketCDN', 'rocket' ); ?>" />
			<button type="button" class="wpr-cdn-add-page__homepage<?php echo $data['status_indicator']['pages_count'] > 0 ? ' wpr-isHidden' : ''; ?>">
				<span class="wpr-cdn-add-page__icon"></span>
				<?php esc_html_e( 'ADD HOMEPAGE', 'rocket' ); ?>
			</button>
		</div>
		<button type="button" class="wpr-cdn-add-page__button">
			<span class="wpr-icon-plus"></span>
			<?php esc_html_e( 'ADD PAGE', 'rocket' ); ?>
		</button>
	</div>

	<?php
	/**
	 * Fires after the built-in CDN page list.
	 *
	 * Used to display the upsell banner.
	 *
	 * @since 3.22
	 */
	do_action( 'rocket_after_built_in_cdn_list' );
	?>
</div>