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>