| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package VikBooking |
| 4 |
* @subpackage com_vikbooking |
| 5 |
* @author Alessio Gaggii - e4j - Extensionsforjoomla.com |
| 6 |
* @copyright Copyright (C) 2018 e4j - Extensionsforjoomla.com. All rights reserved. |
| 7 |
* @license GNU General Public License version 2 or later; see LICENSE |
| 8 |
* @link https://vikwp.com |
| 9 |
*/ |
| 10 |
|
| 11 |
defined('ABSPATH') or die('No script kiddies please!'); |
| 12 |
|
| 13 |
?> |
| 14 |
<style> |
| 15 |
body { |
| 16 |
padding: 0 !important; |
| 17 |
} |
| 18 |
</style> |
| 19 |
|
| 20 |
<div class="vbo-shell-wrap"> |
| 21 |
<p class="vbo-shell-top-bar"> |
| 22 |
<?php echo $this->cron->cron_name; ?> - <span><?php echo JText::translate('VBCRONEXECRESULT'); ?>:</span> |
| 23 |
<?php var_dump($this->response); ?> |
| 24 |
</p> |
| 25 |
<div class="vbo-shell-body" style="min-height: 400px;"> |
| 26 |
<?php echo $this->cronModel->get('output'); ?> |
| 27 |
|
| 28 |
<?php if (strlen($this->cronModel->get('log', ''))): ?> |
| 29 |
<p>---------- LOG ----------</p> |
| 30 |
|
| 31 |
<div class="vbo-cronexec-log"> |
| 32 |
<pre><?php echo $this->cronModel->get('log'); ?></pre> |
| 33 |
</div> |
| 34 |
<?php endif; ?> |
| 35 |
</div> |
| 36 |
</div> |
| 37 |
|
| 38 |
<script> |
| 39 |
(function($) { |
| 40 |
'use strict'; |
| 41 |
|
| 42 |
const checkShellHeight = () => { |
| 43 |
let pageHeight = $(window).height(); |
| 44 |
let shellHeight = $('.vbo-shell-wrap').height(); |
| 45 |
let bot_offset = 10; |
| 46 |
if (shellHeight < pageHeight) { |
| 47 |
let diff = pageHeight - shellHeight - bot_offset; |
| 48 |
$('.vbo-shell-body').css('height', '+=' + diff + 'px'); |
| 49 |
} |
| 50 |
} |
| 51 |
|
| 52 |
$(function() { |
| 53 |
setTimeout(checkShellHeight, 300); |
| 54 |
}); |
| 55 |
})(jQuery); |
| 56 |
</script> |
| 57 |
|