| 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 |
$row = $this->row; |
| 14 |
|
| 15 |
$editor = JEditor::getInstance(JFactory::getApplication()->get('editor')); |
| 16 |
?> |
| 17 |
<form name="adminForm" id="adminForm" action="index.php" method="post"> |
| 18 |
<div class="vbo-admin-container"> |
| 19 |
<div class="vbo-config-maintab-left"> |
| 20 |
<fieldset class="adminform"> |
| 21 |
<div class="vbo-params-wrap"> |
| 22 |
<legend class="adminlegend"><?php echo JText::translate('VBOADMINLEGENDDETAILS'); ?></legend> |
| 23 |
<div class="vbo-params-container"> |
| 24 |
<div class="vbo-param-container"> |
| 25 |
<div class="vbo-param-label"><?php echo JText::translate('VBNEWCATONE'); ?></div> |
| 26 |
<div class="vbo-param-setting"><input type="text" name="catname" value="<?php echo count($row) ? htmlspecialchars($row['name']) : ''; ?>" size="40"/></div> |
| 27 |
</div> |
| 28 |
<div class="vbo-param-container vbo-param-container-full"> |
| 29 |
<div class="vbo-param-label"><?php echo JText::translate('VBNEWCATDESCR'); ?></div> |
| 30 |
<div class="vbo-param-setting"> |
| 31 |
<?php |
| 32 |
if (interface_exists('Throwable')) { |
| 33 |
/** |
| 34 |
* With PHP >= 7 supporting throwable exceptions for Fatal Errors |
| 35 |
* we try to avoid issues with third party plugins that make use |
| 36 |
* of the WP native function get_current_screen(). |
| 37 |
* |
| 38 |
* @wponly |
| 39 |
*/ |
| 40 |
try { |
| 41 |
echo $editor->display( "descr", (count($row) ? $row['descr'] : ""), '100%', 300, 70, 20 ); |
| 42 |
} catch (Throwable $t) { |
| 43 |
echo $t->getMessage() . ' in ' . $t->getFile() . ':' . $t->getLine() . '<br/>'; |
| 44 |
} |
| 45 |
} else { |
| 46 |
// we cannot catch Fatal Errors in PHP 5.x |
| 47 |
echo $editor->display( "descr", (count($row) ? $row['descr'] : ""), '100%', 300, 70, 20 ); |
| 48 |
} |
| 49 |
?> |
| 50 |
</div> |
| 51 |
</div> |
| 52 |
</div> |
| 53 |
</div> |
| 54 |
</fieldset> |
| 55 |
</div> |
| 56 |
</div> |
| 57 |
<input type="hidden" name="task" value=""> |
| 58 |
<?php |
| 59 |
if (count($row)) { |
| 60 |
?> |
| 61 |
<input type="hidden" name="whereup" value="<?php echo $row['id']; ?>"> |
| 62 |
<?php |
| 63 |
} |
| 64 |
?> |
| 65 |
<input type="hidden" name="option" value="com_vikbooking"> |
| 66 |
<?php echo JHtml::fetch('form.token'); ?> |
| 67 |
</form> |
| 68 |
|