/**
 * Shows the tax opt-in checkbox
 *
 * @since 1.3.3
 * @global $edd_options Array of all the EDD Options
 * @return void
 */
function edd_show_local_tax_opt_in()
{
    global $edd_options;
    if (edd_use_taxes() && isset($edd_options['tax_condition']) && $edd_options['tax_condition'] == 'local') {
        ?>
		<fieldset id="edd_tax_opt_in_fields">
			<p id="edd-tax-opt-in-wrap">
				<label for="edd_tax_opt_in"><?php 
        echo isset($edd_options['tax_location']) ? $edd_options['tax_location'] : __('Opt Into Taxes?', 'edd');
        ?>
</label>
				<input name="edd_tax_opt_in" type="checkbox" id="edd_tax_opt_in" value="1"<?php 
        checked(true, edd_local_tax_opted_in());
        ?>
/>
			</p>
		</fieldset>
<?php 
    }
}
/**
 * Is the cart taxed?
 *
 * @since 1.5
 * @return bool
 */
function edd_is_cart_taxed()
{
    return edd_use_taxes() && (edd_local_tax_opted_in() && edd_local_taxes_only() || !edd_local_taxes_only());
}
    ?>
:&nbsp;<span class="edd_cart_subtotal"><?php 
    echo edd_cart_subtotal();
    ?>
</span>
			</th>
			<?php 
    do_action('edd_checkout_table_subtotal_last');
    ?>
		</tr>
			<?php 
    if (!edd_prices_show_tax_on_checkout()) {
        ?>

			<tr class="edd_cart_footer_row edd_cart_tax_row"<?php 
        if (edd_local_taxes_only() && !edd_local_tax_opted_in()) {
            echo ' style="display:none;"';
        }
        ?>
>
				<?php 
        do_action('edd_checkout_table_tax_first');
        ?>
				<th colspan="3" class="edd_cart_tax">
					<?php 
        _e('Tax', 'edd');
        ?>
:&nbsp;<span class="edd_cart_tax_amount" data-tax="<?php 
        echo edd_get_cart_tax(false);
        ?>
"><?php