| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.12/wp-content/themes/dt-the7/woocommerce/loop/ |
Upload File : |
<?php
/**
* Product Loop Start
*
* This template can be overridden by copying it to yourtheme/woocommerce/loop/loop-start.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.3.0
*/
defined( 'ABSPATH' ) || exit;
do_action( 'dt_wc_loop_start' );
do_action( 'presscore_before_loop' );
// Responsiveness mode: Browser width based data atts.
$data_atts = array();
$wp_col_responsiveness = of_get_option( 'woocommerce_shop_template_bwb_columns' );
if ( $wp_col_responsiveness ) {
$columns = array(
'desktop' => 'desktop',
'v_tablet' => 'v-tablet',
'h_tablet' => 'h-tablet',
'phone' => 'phone',
);
foreach ( $columns as $column => $data_att ) {
$val = ( isset( $wp_col_responsiveness[ $column ] ) ? absint( $wp_col_responsiveness[ $column ] ) : '' );
$data_atts[] = 'data-' . $data_att . '-columns-num="' . esc_attr( $val ) . '"';
}
}
// Fullwidth wrap open.
if ( presscore_config()->get( 'full_width' ) ) {
echo '<div class="full-width-wrap">';
}
$loop_layout = presscore_config()->get( 'layout' );
if (
( $loop_layout === 'list' && of_get_option( 'woocommerce_show_list_desc' ) === '0' )
||
( in_array( $loop_layout, [ 'grid', 'masonry' ] ) && of_get_option( 'woocommerce_show_masonry_desc' ) === '0' )
) {
add_filter( 'woocommerce_short_description', '__return_empty_string' );
}
if ( 'list' === $loop_layout ) {
$classes = array(
'wc-layout-list',
'dt-products',
'products',
);
if ( of_get_option( 'woocommerce_hover_image' ) ) {
$classes[] = 'wc-img-hover';
}
if ( ! of_get_option( 'woocommerce_show_list_desc' ) ) {
$classes[] = 'hide-description';
}
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
printf( '<div class="%s">', implode( ' ', $classes ) );
} elseif ( 'grid' === $loop_layout ) {
$classes = array_diff( presscore_masonry_container_classes_array(), array( 'iso-grid' ) );
$classes[] = 'dt-css-grid-wrap';
$classes[] = 'woo-hover';
$classes[] = 'wc-grid';
$classes[] = 'dt-products';
$classes[] = 'products';
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
printf( '<div class="%s" %s><div class="dt-css-grid">', esc_attr( implode( ' ', $classes ) ), presscore_masonry_container_data_atts( $data_atts ) );
} else {
$classes = array( 'wf-container', 'dt-products ', 'woo-hover', 'products' );
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo '<div ' . presscore_masonry_container_class( $classes ) . presscore_masonry_container_data_atts( $data_atts ) . '>';
}