Linux hkvL61zh9Vexzf 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 Path : /www/wwwroot/fashion-kingdom.com/wp-content/plugins/kitify/templates/nova-cart/global/ |
Current File : /www/wwwroot/fashion-kingdom.com/wp-content/plugins/kitify/templates/nova-cart/global/index.php |
<?php /** * Menu Account template */ $preset = $this->get_settings( 'preset' ); $show_label = $this->get_settings( 'show_label' ); if($show_label) { $label = 'kitify-nova-cart-label-on'; }else { $label = 'kitify-nova-cart-label-off'; } $classes = [ 'kitify-nova-cart', 'kitify-nova-cart-style-'.$preset, $label, ]; $class_string = implode( ' ', $classes ); $elementor = Elementor\Plugin::instance(); $is_edit_mode = $elementor->editor->is_edit_mode(); if ( ( $is_edit_mode && ! wp_doing_ajax() ) || null === WC()->cart ) { $count = ''; } else { $count = WC()->cart->get_cart_contents_count(); } ?> <div class="<?php echo $class_string; ?>"> <a href="javascript:;" data-toggle="MiniCartCanvas_<?php echo $this->get_id()?>"> <div class="header-cart-box"> <?php $this->_icon( 'novacart_icon', '<span class="kitify-nova-cart__icon kitify-blocks-icon">%s</span>' ); ?> <div class="cart-text"> <?php if ( empty($show_label) ): ?> <div class="count-badge js_count_bag_item"><?php echo esc_html($count); ?></div> <?php endif; ?> <?php if ( $show_label ): ?> <div class="count-text"><?php echo esc_html__('Cart', 'kitify'); ?><div class="count-badge js_count_bag_item"><?php echo esc_html($count); ?></div></div> <?php endif;?> </div> </div> </a> </div>