| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package VikBooking |
| 4 |
* @subpackage core |
| 5 |
* @author E4J s.r.l. |
| 6 |
* @copyright Copyright (C) 2025 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 |
<style> |
| 17 |
.vbo-tm-areas-blank-pane { |
| 18 |
display: flex; |
| 19 |
flex-direction: column; |
| 20 |
justify-content: center; |
| 21 |
align-items: center; |
| 22 |
max-width: 600px; |
| 23 |
margin: 50px auto; |
| 24 |
gap: 20px; |
| 25 |
text-align: center; |
| 26 |
} |
| 27 |
.vbo-tm-areas-blank-pane .blank-icon { |
| 28 |
font-size: 128px; |
| 29 |
margin-bottom: 25px; |
| 30 |
} |
| 31 |
.vbo-tm-areas-blank-pane .blank-title { |
| 32 |
font-size: 2.5em; |
| 33 |
line-height: 1em; |
| 34 |
font-weight: 500; |
| 35 |
margin-bottom: 10px; |
| 36 |
} |
| 37 |
.vbo-tm-areas-blank-pane .blank-subtitle { |
| 38 |
font-size: 1.5em; |
| 39 |
line-height: 1.5em; |
| 40 |
} |
| 41 |
</style> |
| 42 |
|
| 43 |
<div class="vbo-tm-areas-blank-pane"> |
| 44 |
|
| 45 |
<div class="blank-icon"> |
| 46 |
<?php VikBookingIcons::e('tasks'); ?> |
| 47 |
</div> |
| 48 |
|
| 49 |
<div class="blank-title"> |
| 50 |
<?php echo JText::translate('VBO_TM_AREAS_BLANK_TITLE'); ?> |
| 51 |
</div> |
| 52 |
|
| 53 |
<div class="blank-subtitle"> |
| 54 |
<?php echo JText::translate('VBO_TM_AREAS_BLANK_SUBTITLE'); ?> |
| 55 |
</div> |
| 56 |
|
| 57 |
<div class="blank-actions"> |
| 58 |
<button type="button" class="btn btn-success" id="blank-area-new-trigger"> |
| 59 |
<?php echo JText::translate('VBO_TM_AREAS_BLANK_ADD_BTN'); ?> |
| 60 |
</button> |
| 61 |
</div> |
| 62 |
|
| 63 |
</div> |
| 64 |
|
| 65 |
<script> |
| 66 |
(function($) { |
| 67 |
'use strict'; |
| 68 |
|
| 69 |
$(function() { |
| 70 |
$('#blank-area-new-trigger').on('click', () => { |
| 71 |
VBOCore.emitEvent('vbo-tm-area-create-trigger'); |
| 72 |
}); |
| 73 |
}); |
| 74 |
})(jQuery); |
| 75 |
</script> |