HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux newsites.squeezer-software.com 6.8.0-90-generic #91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 14:14:30 UTC 2025 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: 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,
Upload Files
File: /home/sites/ileskneiss/wp-content/plugins/learnpress/inc/admin/views/addons/html-loop-theme.php
<?php
/**
 * Admin View: Displaying loop single related theme.
 *
 * @author  ThimPress
 * @package LearnPress/Views
 * @version 3.0.0
 */

defined( 'ABSPATH' ) || exit();
?>

<li class="plugin-card-learnpress" id="learn-press-theme-<?php echo esc_attr( $theme['id'] ); ?>">
	<div class="plugin-card-top">
		<div class="image-thumbnail">
			<a href="<?php echo esc_url_raw( $theme['url'] ); ?>">
				<img src="<?php echo esc_url_raw( $theme['previews']['landscape_preview']['landscape_url'] ); ?>" alt="<?php echo esc_attr( $theme['name'] ); ?>">
			</a>
		</div>

		<div class="theme-content">
			<h2 class="theme-title">
				<a class="item-title" href="<?php echo esc_url_raw( $theme['url'] ); ?>">
					<?php echo wp_kses_post( $theme['name'] ); ?>
				</a>
			</h2>
			<div class="theme-detail">
				<div class="theme-price">
					<?php echo sprintf( '$%s', $theme['price_cents'] / 100 ); ?>
				</div>
				<div class="number-sale">
					<?php echo sprintf( '%s %s', $theme['number_of_sales'], esc_html__( ' sales', 'learnpress' ) ); ?>
				</div>
			</div>

			<div class="theme-description">
				<?php
				$description = preg_replace( '~[\r\n]+~', '', $theme['description'] );
				$description = preg_replace( '~\s+~', ' ', $description );
				echo wp_kses_post( $description );
				?>
			</div>
			<div class="theme-footer">
				<?php $demo_url = isset( $theme['attributes'][4] ) ? $theme['attributes'][4]['value'] : $theme['url']; ?>
				<a class="button button-primary" href="<?php echo esc_url_raw( $theme['url'] ); ?>"><?php echo esc_html__( 'Get it now', 'learnpress' ); ?></a>
				<a class="button" href="<?php echo esc_url_raw( $demo_url ); ?>"><?php esc_html_e( 'View Demo', 'learnpress' ); ?></a>
				<div class="theme-rating">
					<span>
						<?php
						wp_star_rating(
							array(
								'rating' => $theme['rating']['rating'],
								'type'   => 'rating',
								'number' => $theme['rating']['count'],
							)
						);
						?>
					</span>
					<span class="count-rating">(<?php echo esc_html( $theme['rating']['count'] ); ?>)</span>
				</div>
			</div>
		</div>
	</div>
</li>