default.php
3 days ago
default_appointments.php
3 days ago
default_billing.php
3 days ago
default_draft.php
3 days ago
default_notes.php
3 days ago
default_packages.php
3 days ago
index.html
3 days ago
default_notes.php
100 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 | JHtml::fetch('formbehavior.chosen'); |
| 15 | |
| 16 | $vik = VAPApplication::getInstance(); |
| 17 | |
| 18 | ?> |
| 19 | |
| 20 | <!-- Define role to detect the supported hook --> |
| 21 | <!-- {"rule":"customizer","event":"onDisplayViewCustomerinfo","key":"notes.start","type":"field"} --> |
| 22 | |
| 23 | <?php |
| 24 | // plugins can use the "notes.start" key to introduce custom |
| 25 | // HTML before the notes grid |
| 26 | if (isset($this->addons['notes.start'])) |
| 27 | { |
| 28 | echo $this->addons['notes.start']; |
| 29 | |
| 30 | // unset details form to avoid displaying it twice |
| 31 | unset($this->addons['notes.start']); |
| 32 | } |
| 33 | |
| 34 | ?> |
| 35 | |
| 36 | <div class="user-notes-container"> |
| 37 | |
| 38 | <?php |
| 39 | foreach ($this->notes as $note) |
| 40 | { |
| 41 | $tags = $this->tagModel->readTags($note->tags); |
| 42 | ?> |
| 43 | <div class="user-note-box"> |
| 44 | <fieldset> |
| 45 | <legend> |
| 46 | <?php echo $note->title; ?> |
| 47 | |
| 48 | <i class="fas fa-<?php echo $note->status ? 'eye ok' : 'low-vision no'; ?>"></i> |
| 49 | </legend> |
| 50 | |
| 51 | <div class="user-note-body"><?php echo $note->content; ?></div> |
| 52 | |
| 53 | <div class="user-note-footer"> |
| 54 | <?php |
| 55 | if ($tags) |
| 56 | { |
| 57 | ?> |
| 58 | <div class="user-note-tags"> |
| 59 | <?php |
| 60 | foreach ($tags as $tag) |
| 61 | { |
| 62 | echo JHtml::fetch('vikappointments.tag', $tag, 'icon', array('style' => 'margin-right: 4px;')); |
| 63 | } |
| 64 | ?> |
| 65 | </div> |
| 66 | <?php |
| 67 | } |
| 68 | ?> |
| 69 | |
| 70 | <div class="user-note-date"> |
| 71 | <small><?php echo JHtml::fetch('date', VAPDateHelper::isNull($note->modifiedon) ? $note->createdon : $note->modifiedon, JText::translate('DATE_FORMAT_LC2')); ?></small> |
| 72 | </div> |
| 73 | </div> |
| 74 | |
| 75 | </fieldset> |
| 76 | </div> |
| 77 | <?php |
| 78 | } |
| 79 | ?> |
| 80 | |
| 81 | </div> |
| 82 | |
| 83 | <p style="text-align: center"> |
| 84 | <em><?php echo JText::translate('VAPNOTESMODALHINT'); ?></em> |
| 85 | </p> |
| 86 | |
| 87 | <!-- Define role to detect the supported hook --> |
| 88 | <!-- {"rule":"customizer","event":"onDisplayViewCustomerinfo","key":"notes.end","type":"field"} --> |
| 89 | |
| 90 | <?php |
| 91 | // plugins can use the "notes.end" key to introduce custom |
| 92 | // HTML after the notes grid |
| 93 | if (isset($this->addons['notes.end'])) |
| 94 | { |
| 95 | echo $this->addons['notes.end']; |
| 96 | |
| 97 | // unset details form to avoid displaying it twice |
| 98 | unset($this->addons['notes.end']); |
| 99 | } |
| 100 |