403Webshell
Server IP : 195.58.49.151  /  Your IP : 216.73.217.39
Web Server : Apache/2.4.67 (Debian) mod_fcgid/2.3.9 OpenSSL/3.0.20
System : Linux hs.hsdns.ru 6.1.0-48-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.172-1 (2026-05-15) x86_64
User : antilam ( 1007)
PHP Version : 8.4.22
Disable Function : system,passthru,popen
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/antilam/web/antilam.ru/public_html/wp-content/themes/woodmart/header-elements/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/antilam/web/antilam.ru/public_html/wp-content/themes/woodmart/header-elements/categories.php
<?php
/**
 * Header categories element template.
 *
 * @var array $params
 * @var string $id
 */

use XTS\Modules\Mega_Menu_Walker;

if ( '' === $params['menu_id'] ) {
	return;
}

$categories_title  = ! empty( $params['categories_title'] ) ? $params['categories_title'] : esc_html__( 'Browse Categories', 'woodmart' );
$extra_class       = '';
$dropdowns_classes = '';
$opened            = woodmart_get_post_meta_value( woodmart_get_the_ID(), '_woodmart_open_categories' );
$icon_type         = $params['icon_type'];
$menu_class        = '';
$icon_classes      = 'menu-opener-icon';

if ( woodmart_woocommerce_installed() && is_product() ) {
	$opened = false;
}

if ( ! empty( $params['icon_alignment'] ) && 'inherit' !== $params['icon_alignment'] ) {
	$menu_class .= ' wd-icon-' . $params['icon_alignment'];
}

$class = ( 'inherit' !== $params['color_scheme'] ) ? 'color-scheme-' . $params['color_scheme'] : '';

if ( ! empty( $params['background'] ) && ! empty( $params['background']['background-color'] ) ) {
	$class .= ' has-bg';
}

if ( ! $opened ) {
	$extra_class .= ' wd-event-' . $params['mouse_event'];
} else {
	$dropdowns_classes .= ' wd-opened';
}

if ( ! $opened && $params['open_dropdown'] ) {
	$extra_class .= ' wd-open-dropdown';
}

if ( ! empty( $params['bg_overlay'] ) ) {
	woodmart_enqueue_js_script( 'menu-overlay' );

	$extra_class .= ' wd-with-overlay';
}

$menu_class .= ' wd-design-' . $params['design'];

if ( 'light' === whb_get_dropdowns_color() ) {
	$dropdowns_classes .= ' color-scheme-light';
}

if ( 'custom' === $icon_type ) {
	$extra_class .= ' woodmart-cat-custom-icon';
}

$html = '';
if ( $params['more_cat_button'] ) {
	woodmart_enqueue_js_script( 'header-el-category-more-btn' );
	$extra_class .= ' wd-more-cat';

	ob_start();

	woodmart_enqueue_inline_style( 'header-el-category-more-btn' );
	?>
	<li class="menu-item item-level-0 wd-more-cat-btn">
		<a href="#" rel="nofollow noopener" class="woodmart-nav-link" aria-label="<?php echo esc_attr__( 'Show more category button', 'woodmart' ); ?>"></a>
	</li>
	<?php

	$html = ob_get_clean();
}

$extra_class .= ' whb-' . $id;

woodmart_enqueue_js_script( 'header-categories-menu' );
?>
<div class="wd-header-cats<?php echo esc_attr( $extra_class ); ?>" role="navigation" aria-label="<?php esc_attr_e( 'Header categories navigation', 'woodmart' ); ?>">
	<?php
	woodmart_enqueue_inline_style( 'header-categories-nav' );
	woodmart_enqueue_inline_style( 'mod-nav-vertical' );
	woodmart_enqueue_inline_style( 'mod-nav-vertical-design-' . $params['design'] );
	?>
	<span class="menu-opener <?php echo esc_attr( $class ); ?>">
		<?php if ( 'custom' === $icon_type ) : ?>
			<span class="<?php echo esc_attr( $icon_classes ); ?> custom-icon"><?php echo whb_get_custom_icon( $params['custom_icon'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></span>
		<?php else : ?>
			<span class="<?php echo esc_attr( $icon_classes ); ?>"></span>
		<?php endif; ?>

		<span class="menu-open-label">
			<?php echo esc_html( $categories_title ); ?>
		</span>
	</span>
	<div class="wd-dropdown wd-dropdown-cats<?php echo esc_attr( $dropdowns_classes ); ?>">
		<?php
		wp_nav_menu(
			array(
				'container'  => '',
				'menu'       => $params['menu_id'],
				'menu_class' => 'menu wd-nav wd-nav-vertical wd-dis-act' . $menu_class,
				'walker'     => new Mega_Menu_Walker(),
				'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s' . $html . '</ul>',
			)
		);
		?>
	</div>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit