closure.php
2 days ago
default.php
2 days ago
default_customer.php
2 days ago
default_details.php
2 days ago
default_fields.php
2 days ago
default_options.php
2 days ago
default_payment.php
2 days ago
index.html
2 days ago
list.php
2 days ago
default_customer.php
138 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 | |
| 16 | <h3><?php echo JText::translate('VAPMANAGERESERVATION38'); ?></h3> |
| 17 | |
| 18 | <div class="order-fields"> |
| 19 | |
| 20 | <?php |
| 21 | if ($this->order->purchaser_nominative) |
| 22 | { |
| 23 | ?> |
| 24 | <!-- Nominative --> |
| 25 | |
| 26 | <div class="order-field"> |
| 27 | |
| 28 | <label><?php echo JText::translate('VAPMANAGECUSTOMER2'); ?></label> |
| 29 | |
| 30 | <div class="order-field-value"> |
| 31 | <b><?php echo $this->order->purchaser_nominative; ?></b> |
| 32 | |
| 33 | <?php |
| 34 | // plugins can use the "customer.name" key to introduce custom |
| 35 | // HTML next to the purchaser nominative |
| 36 | if (isset($this->addons['customer.name'])) |
| 37 | { |
| 38 | echo $this->addons['customer.name']; |
| 39 | |
| 40 | // unset details form to avoid displaying it twice |
| 41 | unset($this->addons['customer.bottom']); |
| 42 | } |
| 43 | ?> |
| 44 | </div> |
| 45 | |
| 46 | <!-- Define role to detect the supported hook --> |
| 47 | <!-- {"rule":"customizer","event":"onDisplayViewOrderinfo","key":"customer.name","type":"field"} --> |
| 48 | |
| 49 | </div> |
| 50 | <?php |
| 51 | } |
| 52 | |
| 53 | if ($this->order->purchaser_mail) |
| 54 | { |
| 55 | ?> |
| 56 | <!-- E-mail --> |
| 57 | |
| 58 | <div class="order-field"> |
| 59 | |
| 60 | <label><?php echo JText::translate('VAPMANAGECUSTOMER3'); ?></label> |
| 61 | |
| 62 | <div class="order-field-value"> |
| 63 | <a href="mailto:<?php echo $this->escape($this->order->purchaser_mail); ?>"> |
| 64 | <?php echo $this->order->purchaser_mail; ?> |
| 65 | </a> |
| 66 | |
| 67 | <?php |
| 68 | // plugins can use the "customer.email" key to introduce custom |
| 69 | // HTML next to the purchaser e-mail |
| 70 | if (isset($this->addons['customer.email'])) |
| 71 | { |
| 72 | echo $this->addons['customer.email']; |
| 73 | |
| 74 | // unset details form to avoid displaying it twice |
| 75 | unset($this->addons['customer.email']); |
| 76 | } |
| 77 | ?> |
| 78 | </div> |
| 79 | |
| 80 | <!-- Define role to detect the supported hook --> |
| 81 | <!-- {"rule":"customizer","event":"onDisplayViewOrderinfo","key":"customer.email","type":"field"} --> |
| 82 | |
| 83 | </div> |
| 84 | <?php |
| 85 | } |
| 86 | |
| 87 | if ($this->order->purchaser_phone) |
| 88 | { |
| 89 | ?> |
| 90 | <!-- Phone Number --> |
| 91 | |
| 92 | <div class="order-field"> |
| 93 | |
| 94 | <label><?php echo JText::translate('VAPMANAGECUSTOMER4'); ?></label> |
| 95 | |
| 96 | <div class="order-field-value"> |
| 97 | <a href="tel:<?php echo $this->escape($this->order->purchaser_phone); ?>"> |
| 98 | <?php echo $this->order->purchaser_phone; ?> |
| 99 | </a> |
| 100 | |
| 101 | <?php |
| 102 | // plugins can use the "customer.phone" key to introduce custom |
| 103 | // HTML next to the purchaser phone number |
| 104 | if (isset($this->addons['customer.phone'])) |
| 105 | { |
| 106 | echo $this->addons['customer.phone']; |
| 107 | |
| 108 | // unset details form to avoid displaying it twice |
| 109 | unset($this->addons['customer.phone']); |
| 110 | } |
| 111 | ?> |
| 112 | </div> |
| 113 | |
| 114 | <!-- Define role to detect the supported hook --> |
| 115 | <!-- {"rule":"customizer","event":"onDisplayViewOrderinfo","key":"customer.phone","type":"field"} --> |
| 116 | |
| 117 | </div> |
| 118 | <?php |
| 119 | } |
| 120 | ?> |
| 121 | |
| 122 | <!-- Define role to detect the supported hook --> |
| 123 | <!-- {"rule":"customizer","event":"onDisplayViewOrderinfo","key":"customer.custom","type":"field"} --> |
| 124 | |
| 125 | <?php |
| 126 | // plugins can use the "customer.custom" key to introduce custom |
| 127 | // HTML at the end of the block |
| 128 | if (isset($this->addons['customer.custom'])) |
| 129 | { |
| 130 | echo $this->addons['customer.custom']; |
| 131 | |
| 132 | // unset details form to avoid displaying it twice |
| 133 | unset($this->addons['customer.custom']); |
| 134 | } |
| 135 | ?> |
| 136 | |
| 137 | </div> |
| 138 |