# learnpress/4.4.9/inc/admin/views/themes/data-online.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.9. 197 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.9/code/inc/admin/views/themes/data-online.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.9/raw/inc/admin/views/themes/data-online.php
- Modified: 2026-09-27T10:32:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.4.9/code/inc/admin/views/themes/data-online.php#L10-L20`.

```php
<?php
/**
 * Data online for Themes page.
 *
 * @var array $themes Themes data.
 * @since 4.4.7
 * @version 1.0.0
 */

use LearnPress\Helpers\Template;

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

<div class="learn-press-themes">
	<div class="lp-themes-toolbar">
		<div class="lp-themes-filter">

			<button
				type="button"
				class="lp-themes-filter__item active"
				data-category="all"
				aria-pressed="true"
			>
				<?php esc_html_e( 'All Themes', 'learnpress' ); ?> <span class="lp-themes-filter__count"></span>
			</button>

			<button
				type="button"
				class="lp-themes-filter__item"
				data-category="paid"
				aria-pressed="false"
			>
				<?php esc_html_e( 'Paid Themes', 'learnpress' ); ?> <span class="lp-themes-filter__count"></span>
			</button>

			<button
				type="button"
				class="lp-themes-filter__item"
				data-category="free"
				aria-pressed="false"
			>
				<?php esc_html_e( 'Free Themes', 'learnpress' ); ?> <span class="lp-themes-filter__count"></span>
			</button>

		</div>
		<label class="lp-themes-search">
			<span class="screen-reader-text"><?php esc_html_e( 'Search themes', 'learnpress' ); ?></span>
			<span class="lp-themes-search__icon lp-icon-search" aria-hidden="true"></span>
			<input type="search" class="lp-themes-search__input" placeholder="<?php esc_attr_e( 'Search themes…', 'learnpress' ); ?>" />
		</label>
	</div>

	<?php
	if ( empty( $themes ) ) :
		Template::print_message( __( 'No theme data available.', 'learnpress' ), 'info' );
		?>

	<?php else : ?>
		<div class="lp-themes-grid">

			<?php foreach ( $themes as $theme ) : ?>

				<div
					class="lp-theme-card<?php echo ! empty( $theme['featured'] ) ? ' lp-theme-card--featured' : ''; ?>"
					data-category="<?php echo esc_attr( strtolower( $theme['category'] ?? '' ) ); ?>"
				>

					<div class="lp-theme-card__thumbnail">

						<?php
						$fallback_image = LP_PLUGIN_URL . 'assets/images/no-image.png';
						$theme_image    = ! empty( $theme['image'] ) ? $theme['image'] : $fallback_image;
						?>

						<img
							src="<?php echo esc_url( $theme_image ); ?>"
							data-fallback-src="<?php echo esc_url( $fallback_image ); ?>"
							alt="<?php echo esc_attr( $theme['name'] ?? $theme['title'] ?? '' ); ?>"
							loading="lazy"
						/>

						<?php if ( ! empty( $theme['badge'] ) ) : ?>

							<span class="lp-theme-card__badge">
							<?php echo esc_html( $theme['badge'] ); ?>
						</span>

						<?php endif; ?>

					</div>

					<div class="lp-theme-card__content">

						<h3 class="lp-theme-card__title">
							<?php echo esc_html( $theme['title'] ?? '' ); ?>
						</h3>

						<p class="lp-theme-card__description">
							<?php echo esc_html( $theme['description'] ?? '' ); ?>
						</p>

						<div class="lp-theme-card__footer">

							<div class="lp-theme-card__price">

								<?php if ( 'Free' === ( $theme['category'] ?? '' ) ) : ?>

									<strong>
										<?php esc_html_e( 'Free', 'learnpress' ); ?>
									</strong>

								<?php else : ?>

									<strong>
										$<?php echo esc_html( number_format_i18n( $theme['price'] ?? 0 ) ); ?>
									</strong>

									<?php if ( ! empty( $theme['old_price'] ) ) : ?>

										<del>
											$<?php echo esc_html( number_format_i18n( $theme['old_price'] ) ); ?>
										</del>

									<?php endif; ?>

								<?php endif; ?>

							</div>

							<div class="lp-theme-card__meta">

								<div class="lp-theme-card__rating">

									<span class="lp-theme-card__star lp-icon-star" aria-hidden="true"></span>

									<span>
									<?php echo esc_html( $theme['rating'] ?? 0 ); ?>
								</span>

									<?php if ( ! empty( $theme['reviews'] ) ) : ?>

										<span>
										(<?php echo esc_html( number_format_i18n( $theme['reviews'] ) ); ?>)
									</span>

									<?php endif; ?>

								</div>

								<div class="lp-theme-card__sold">

									<span class="lp-theme-card__cart lp-icon-shopping-cart" aria-hidden="true"></span>

									<span>
									<?php echo esc_html( number_format_i18n( $theme['sold'] ?? 0 ) ); ?>
								</span>

								</div>

							</div>

						</div>

						<div class="lp-theme-card__actions">

							<a
								class="lp-theme-card__buy"
								href="<?php echo esc_url( $theme['buy_url'] ?? '#' ); ?>"
								target="_blank"
								rel="noopener noreferrer"
							>
								<?php echo esc_html( $theme['buy_text'] ?? __( 'Get Theme Now', 'learnpress' ) ); ?>
							</a>

							<a
								class="lp-theme-card__demo"
								href="<?php echo esc_url( $theme['demo_url'] ?? '#' ); ?>"
								target="_blank"
								rel="noopener noreferrer"
							>
								<?php echo esc_html( $theme['demo_text'] ?? __( 'Demo', 'learnpress' ) ); ?>
							</a>

						</div>

					</div>

				</div>

			<?php endforeach; ?>

		</div>

	<?php endif; ?>
</div>

```
