403Webshell
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.9/wp-content/themes/woodmart/woocommerce/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/wp.9/wp-content/themes/woodmart/woocommerce/content-product-cat-mask-subcat.php
<?php
/**
 * The template for displaying product category thumbnails within loops
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/content-product-cat.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 4.7.0
 */

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

$sub_categories = array();

if ( ! woodmart_loop_prop( 'hide_categories_subcategories' ) && 'mask-subcat' === woodmart_loop_prop( 'product_categories_design' ) ) {
	$sub_categories = get_terms(
		array(
			'taxonomy'     => 'product_cat',
			'fields'       => 'all',
			'parent'       => $category->term_id,
			'hierarchical' => true,
			'hide_empty'   => true,
		)
	);
}
?>

<div <?php wc_product_cat_class( $args['classes'], $args['category'] ); ?> data-loop="<?php echo esc_attr( $args['woocommerce_loop'] ); ?>">
	<?php if ( woodmart_loop_prop( 'products_with_background' ) || ( woodmart_loop_prop( 'products_bordered_grid' ) && 'inside' === woodmart_loop_prop( 'products_bordered_grid_style' ) ) ) : ?>
		<div class="wd-cat-wrap">
	<?php endif; ?>

	<div class="wd-cat-inner">
		<div class="wd-cat-thumb">
			<?php do_action( 'woocommerce_after_subcategory', $args['category'] ); ?>
			<div class="wd-cat-image">
				<?php do_action( 'woocommerce_before_subcategory', $args['category'] ); ?>

				<?php
				/**
				 * Trigger woocommerce_before_subcategory_title hook.
				 *
				 * @hooked woodmart_category_thumb_double_size - 10
				 */
				do_action( 'woocommerce_before_subcategory_title', $args['category'] );
				?>
			</div>
		</div>
		<div class="wd-cat-content wd-scroll wd-fill">
			<a class="wd-fill" href="<?php echo esc_url( get_term_link( $args['category']->slug, 'product_cat' ) ); ?>"></a>
			<div class="wd-cat-header">
				<h3 class="wd-entities-title">
					<a href="<?php echo esc_url( get_term_link( $args['category']->slug, 'product_cat' ) ); ?>">
						<?php
							echo esc_html( $args['category']->name );
						?>
					</a>
				</h3>

				<?php if ( ! woodmart_loop_prop( 'hide_categories_product_count' ) ) : ?>
					<div class="wd-cat-count">
						<?php echo esc_html( $args['category']->count ); ?>
					</div>
				<?php endif; ?>
			</div>
			<?php if ( ! empty( $sub_categories ) ) : ?>
				<div class="wd-cat-footer wd-scroll-content">
					<ul class="wd-cat-sub-menu wd-sub-menu">
						<?php foreach ( $sub_categories as $sub_category ) : // phpcs:ignore ?>
							<li>
								<a href="<?php echo esc_url( get_term_link( $sub_category->term_id ) ); ?>">
									<?php echo esc_html( $sub_category->name ); ?>
								</a>
							</li>
						<?php endforeach; ?>
					</ul>
				</div>
			<?php endif; ?>
		</div>
	</div>

	<?php if ( woodmart_loop_prop( 'products_with_background' ) || ( woodmart_loop_prop( 'products_bordered_grid' ) && 'inside' === woodmart_loop_prop( 'products_bordered_grid_style' ) ) ) : ?>
		</div>
	<?php endif; ?>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit