approved.php
53 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package VikAppointments |
| 4 | * @subpackage core |
| 5 | * @author E4J s.r.l. |
| 6 | * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved. |
| 7 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL |
| 8 | * @link https://vikwp.com |
| 9 | */ |
| 10 | |
| 11 | // No direct access |
| 12 | defined('ABSPATH') or die('No script kiddies please!'); |
| 13 | |
| 14 | /** |
| 15 | * Layout variables |
| 16 | * ----------------- |
| 17 | * @var array $data An associative array containing the transaction details. |
| 18 | * @var mixed $order An object containing the order details. |
| 19 | * @var string $scope The caller of this layout (e.g. appointments, packages). |
| 20 | */ |
| 21 | extract($displayData); |
| 22 | |
| 23 | // get payment details |
| 24 | $payment = $data['payment_info']; |
| 25 | |
| 26 | ?> |
| 27 | |
| 28 | <a name="payment" style="display: none;"></a> |
| 29 | |
| 30 | <div id="vap-pay-box" class="<?php echo $payment->position; ?>"> |
| 31 | |
| 32 | <?php |
| 33 | // display notes after purchase |
| 34 | if (!empty($order->payment->notes->afterPurchase)) |
| 35 | { |
| 36 | ?> |
| 37 | <div class="vappaymentouternotes"> |
| 38 | <div class="vappaymentnotes"> |
| 39 | <?php |
| 40 | /** |
| 41 | * Render HTML description to interpret attached plugins. |
| 42 | * |
| 43 | * @since 1.6.3 |
| 44 | */ |
| 45 | echo VikAppointments::renderHtmlDescription($order->payment->notes->afterPurchase, 'paymentorder'); |
| 46 | ?> |
| 47 | </div> |
| 48 | </div> |
| 49 | <?php |
| 50 | } |
| 51 | ?> |
| 52 | |
| 53 | </div> |