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/related.php
<?php
/**
 * Related Products
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/single-product/related.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see         https://docs.woocommerce.com/document/template-structure/
 * @package     WooCommerce/Templates
 * @version     10.3.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$element_args = array(
	'product_source'        => 'related',
	'pagination'            => '',
	'design'                => xts_get_opt( 'product_loop_design' ),
	'items_per_page'        => array( 'size' => xts_get_opt( 'single_product_related_count' ) ),
	'view'                  => xts_get_opt( 'single_product_related_view' ),
	'columns'               => array( 'size' => xts_get_opt( 'single_product_related_per_row' ) ),
	'columns_tablet'        => array( 'size' => xts_get_opt( 'single_product_related_per_row_tablet' ) ),
	'columns_mobile'        => array( 'size' => xts_get_opt( 'single_product_related_per_row_mobile' ) ),
	'carousel_items'        => array( 'size' => xts_get_opt( 'single_product_related_per_row' ) ),
	'carousel_items_tablet' => array( 'size' => xts_get_opt( 'single_product_related_per_row_tablet' ) ),
	'carousel_items_mobile' => array( 'size' => xts_get_opt( 'single_product_related_per_row_mobile' ) ),
	'image_size'            => xts_get_opt( 'product_loop_image_size' ),
	'image_custom'          => xts_get_opt( 'product_loop_image_size_custom' ),
);

$heading = apply_filters( 'woocommerce_product_related_products_heading', __( 'Related products', 'woocommerce' ) );

?>

<?php if ( $related_products ) : ?>
	<section class="related products">

		<?php if ( $heading ) : ?>
			<h2>
				<?php echo esc_html( $heading ); ?>
			</h2>
		<?php endif; ?>


		<?php xts_products_template( $element_args ); ?>
	</section>
<?php endif; ?>