| Server IP : 216.250.13.251 / Your IP : 216.73.217.37 Web Server : nginx/1.24.0 System : Linux gunay 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : root ( 0) PHP Version : 7.4.33 Disable Function : 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, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/gunay/wp-content/themes/rttheme19/woocommerce/ |
Upload File : |
<?php
/**
* The template for displaying product content within loops
*
* This template can be overridden by copying it to yourtheme/woocommerce/content-product.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.woothemes.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates
* @version 3.6.0
*/
global $product, $woocommerce_loop, $products, $woo_product_layout, $first_row, $last_row, $woo_cat_counter, $new_row;
// Ensure visibility
if ( empty( $product ) || ! $product->is_visible() ) {
return;
}
$page_product_count = wc_get_loop_prop( 'total' ) + $woo_cat_counter;
$first_row = isset( $first_row ) ? $first_row : "first-row" ;
$last_row = isset( $last_row ) ? $last_row : "";
// Store loop count we're currently on
if ( empty( $woocommerce_loop['loop'] ) )
$woocommerce_loop['loop'] = 0;
// Store column count for displaying the grid
if ( empty( $woocommerce_loop['columns'] ) ){
$woo_product_layout = get_theme_mod(RT_THEMESLUG."_woo_layout");
$woo_product_layout = $woo_product_layout ? $woo_product_layout : 3; //default 3
$woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', rt_column_count( $woo_product_layout ) );
}
// Extra post classes
$classes = array();
if ( 0 == ( $woocommerce_loop['loop'] % $woocommerce_loop['columns'] ) || 1 == $woocommerce_loop['columns'] ){
$classes[] = 'first';
$first_row = $first_row == "first-row" && $woocommerce_loop['loop'] != 1 ? "" : $first_row; //add first row clas to boxes
$last_row = $page_product_count - $woocommerce_loop['loop'] < $woocommerce_loop['columns'] ? "last-row" : ""; //add last row clas to boxes
}
if ( 0 == $woocommerce_loop['loop'] % $woocommerce_loop['columns'] || $page_product_count == $woocommerce_loop['loop'] ){
$classes[] = 'last';
}
$classes[] = $first_row;
$classes[] = $last_row;
/*
* add rt class namems
*/
$woo_column_class_name = "col ". rt_column_class( $woocommerce_loop['columns'] ) ;
$classes[] = $woo_column_class_name;
//open row block
if ( $woocommerce_loop['loop'] % $woocommerce_loop['columns'] == 0 && $woocommerce_loop['loop'] > 0 && $woocommerce_loop['loop'] > $woocommerce_loop['columns'] -1 && ! $new_row ){
$new_row = true;
echo '<div class="row clearfix">';
}
?>
<div <?php post_class( $classes ); ?>>
<div class="product_item_holder">
<?php do_action( 'woocommerce_before_shop_loop_item' ); ?>
<?php
/**
* woocommerce_before_shop_loop_item_title hook
*
* @hooked woocommerce_show_product_loop_sale_flash - 10
* @hooked woocommerce_template_loop_product_thumbnail - 10
*/
do_action( 'woocommerce_before_shop_loop_item_title' );
?>
<div class="product_info">
<?php
/**
* woocommerce_shop_loop_item_title hook
*
* @hooked woocommerce_template_loop_product_title - 10
*/
do_action( 'woocommerce_shop_loop_item_title' );
/**
* woocommerce_after_shop_loop_item_title hook
*
* @hooked woocommerce_template_loop_rating - 5
* @hooked woocommerce_template_loop_price - 10
*/
do_action( 'woocommerce_after_shop_loop_item_title' );
?>
<div class="product_info_footer clearfix">
<?php
/**
* rt_product_info_footer hook
*
* @hooked woocommerce_template_loop_add_to_cart - 10
*/
do_action( 'rt_product_info_footer' );
?>
</div>
</div>
<?php do_action( 'woocommerce_after_shop_loop_item' ); ?>
</div>
</div>
<?php
//close row block
if ( $woocommerce_loop['loop'] % $woocommerce_loop['columns'] == 0 && $woocommerce_loop['loop'] !== $page_product_count && $new_row ){
echo '</div><!-- / end .row -->';
$new_row = false;
}
?>