<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* MaxSite CMS
* (c) https://max-3000.com/
*/
$CI = &get_instance();
$options_key = '';
if ($post = mso_check_post(array('f_session_id', 'f_submit'))) {
mso_checkreferer();
$options = [];
$options['header'] = $post['f_header'];
mso_add_option($options_key, $options, 'plugins');
echo '<div class="mso-update">' . t('Обновлено!') . '</div>';
}
?>
<h1><?= t('Плагин') ?></h1>
<p class="mso-info"><?= t('Описание') ?></p>
<?php
$options = mso_get_option($options_key, 'plugins', []);
if (!isset($options['header'])) $options['header'] = '';
$form = '<h2>' . t('Настройки') . '</h2>';
$form .= '<p><strong>' . t('Заголовок:') . '</strong> ' . ' <input name="f_header" type="text" value="' . $options['header'] . '"></p>';
echo '<form method="post">' . mso_form_session('f_session_id');
echo $form;
echo '<button class="button i-check" type="submit" name="f_submit">' . t('Сохранить изменения') . '</button>';
echo '</form>';
# enf of file