<?php

/**
 * The Template for mini wallet
 *
 * This template can be overridden by copying it to yourtheme/woo-wallet/mini-wallet.php.
 *
 * HOWEVER, on occasion we 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.
 *
 * @author 	Subrata Mal
 * @version     1.0.8
 */
if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly.
}

$title      = __( 'Current wallet balance', 'woo-wallet' );
$menu_item  = '<li class="right"><a class="woo-wallet-menu-contents" href="' . esc_url( wc_get_account_endpoint_url( get_option( 'woocommerce_woo_wallet_endpoint', 'woo-wallet' ) ) ) . '" title="' . $title . '">';
$menu_item .= '<span class="woo-wallet-icon-wallet"></span>';
$menu_item .= woo_wallet()->wallet->get_wallet_balance( get_current_user_id() );
$menu_item .= '</a></li>';

echo $menu_item;
