default_coupon.php
| 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 | * Template file used to display a form to redeem a coupon code. |
| 16 | * |
| 17 | * @since 1.7 |
| 18 | */ |
| 19 | |
| 20 | $data = array( |
| 21 | /** |
| 22 | * The controller to reach to redeem the coupon code. The specified controller must |
| 23 | * provide a task (method) called "redeemcoupon". |
| 24 | * |
| 25 | * @var string |
| 26 | */ |
| 27 | 'controller' => 'confirmapp', |
| 28 | |
| 29 | /** |
| 30 | * The Item ID that will be used to route the URL used for SEF. |
| 31 | * |
| 32 | * @var integer|null |
| 33 | */ |
| 34 | 'itemid' => $this->itemid, |
| 35 | ); |
| 36 | |
| 37 | /** |
| 38 | * This form is displayed from the layout below: |
| 39 | * /components/com_vikappointments/layouts/blocks/couponform.php |
| 40 | * |
| 41 | * If you need to change something from this layout, just create |
| 42 | * an override of this layout by following the instructions below: |
| 43 | * - open the back-end of your Joomla |
| 44 | * - visit the Extensions > Templates > Templates page |
| 45 | * - edit the active template |
| 46 | * - access the "Create Overrides" tab |
| 47 | * - select Layouts > com_vikappointments > blocks |
| 48 | * - start editing the couponform.php file on your template to create your own layout |
| 49 | * |
| 50 | * @since 1.7 |
| 51 | */ |
| 52 | echo JLayoutHelper::render('blocks.couponform', $data); |
| 53 |