This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function woo_mini_wallet_callback() { | |
| if (!function_exists('woo_wallet') || !is_user_logged_in()) { | |
| return ''; | |
| } | |
| ob_start(); | |
| $title = __('Current wallet balance', 'woo-wallet'); | |
| $mini_wallet = '<a class="woo-wallet-menu-contents" href="' . esc_url(wc_get_account_endpoint_url(get_option('woocommerce_woo_wallet_endpoint', 'woo-wallet'))) . '" title="' . $title . '">'; | |
| $mini_wallet .= '<span class="woo-wallet-icon-wallet"></span>'; | |
| $mini_wallet .= woo_wallet()->wallet->get_wallet_balance(get_current_user_id()); | |
| $mini_wallet .= '</a>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($) { | |
| /* | |
| * new_map | |
| * | |
| * This function will render a Google Map onto the selected jQuery element | |
| * | |
| * @type function | |
| * @date 8/11/2013 | |
| * @since 4.3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| header("Content-type: application/json; charset=utf-8"); | |
| /* something... */ | |
| ?> |