HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/salamatk/takarzan.ir/wp-content/themes/xts-luman/woocommerce/single-product-navigation.php
<?php
/**
 * Single product navigations template.
 *
 * @package xts
 */

use XTS\Framework\Modules;

$product = Modules::get( 'wc-adjacent-products' );

$next_post = $product->get_product();
$prev_post = $product->get_product( true );
?>

<div class="xts-single-product-nav xts-style-default">
	<?php if ( $prev_post ) : ?>
		<div class="xts-nav-btn xts-prev xts-event-hover">
			<a href="<?php echo esc_url( $prev_post->get_permalink() ); ?>"></a>

			<div class="xts-dropdown">
				<div class="xts-dropdown-inner">
					<a href="<?php echo esc_url( $prev_post->get_permalink() ); ?>" class="xts-thumb">
						<?php echo xts_wp_kses_media( $prev_post->get_image( 'woocommerce_gallery_thumbnail' ) ); // phpcs:ignore ?>
					</a>

					<div class="xts-content">
						<a href="<?php echo esc_url( $prev_post->get_permalink() ); ?>" class="xts-entities-title">
							<?php echo esc_html( $prev_post->get_title() ); ?>
						</a>

						<span class="price">
							<?php echo apply_filters( 'woocommerce_xts_get_price_html', $prev_post->get_price_html() ); // phpcs:ignore ?>
						</span>
					</div>
				</div>
			</div>
		</div>
	<?php endif ?>

	<?php if ( $next_post ) : ?>
		<div class="xts-nav-btn xts-next xts-event-hover">
			<a href="<?php echo esc_url( $next_post->get_permalink() ); ?>"></a>

			<div class="xts-dropdown">
				<div class="xts-dropdown-inner">
					<a href="<?php echo esc_url( $next_post->get_permalink() ); ?>" class="xts-thumb">
						<?php echo xts_wp_kses_media( $next_post->get_image( 'woocommerce_gallery_thumbnail' ) ); // phpcs:ignore?>
					</a>

					<div class="xts-content">
						<a href="<?php echo esc_url( $next_post->get_permalink() ); ?>" class="xts-entities-title">
							<?php echo esc_html( $next_post->get_title() ); ?>
						</a>

						<span class="price">
							<?php echo apply_filters( 'woocommerce_xts_get_price_html', $next_post->get_price_html() ); // phpcs:ignore ?>
						</span>
					</div>
				</div>
			</div>
		</div>
	<?php endif ?>
</div>