/> <?php echo esc_html(mdjm_get_balance_label()); ?> – <?php echo mdjm_currency_filter(mdjm_format_amount($mdjm_event->get_balance())); ?> <br /> <input type="radio" name="mdjm_payment_amount" id="mdjm-payment-part" value="part_payment"<?php checked($selected, 'part_payment'); ?> /> <?php echo mdjm_get_other_amount_label(); ?> <span id="mdjm-payment-custom"<?php echo $other_amount_style; ?> ><?php echo mdjm_currency_symbol(); ?> <input type="text" class="mdjm_other_amount_input mdjm-input" name="part_payment" id="part-payment" placeholder="0.00" size="10" value="<?php echo mdjm_sanitize_amount(mdjm_get_option('other_amount_default', true, false)); ?> " /></span> <span class="mdjm-description"><?php printf(__('To pay a custom amount, select %s and enter the value into the text field.', 'mobile-dj-manager'), mdjm_get_other_amount_label()); ?> </span> </p> </fieldset>
/** * Payment form total price. * * @since 1.3.8 * @return str */ function mdjm_get_payment_total() { $event_id = $_POST['event_id']; $type = $_POST['mdjm_payment_amount']; $total = false; $mdjm_event = new MDJM_Event($event_id); if ('deposit' == $type) { $type = mdjm_get_deposit_label(); $total = $mdjm_event->get_remaining_deposit(); } elseif ('balance' == $type) { $type = mdjm_get_balance_label(); $total = $mdjm_event->get_balance(); } else { $type = mdjm_get_other_amount_label(); $total = !empty($_POST['part_payment']) ? $_POST['part_payment'] : false; } return $total; }
/** * Content tag: part_payment_label. * The label used for part payments. * * @param * @param * * @return str The label used for part payments. */ function mdjm_content_tag_part_payment_label() { return mdjm_get_other_amount_label(); }