45 lines
2.5 KiB
PHP
45 lines
2.5 KiB
PHP
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
|
|
<h2><?php echo i18n('Writing_Settings');?></h2>
|
|
<br>
|
|
<nav>
|
|
<div class="nav nav-tabs" id="nav-tab">
|
|
<a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config"><?php echo i18n('General');?></a>
|
|
<a class="nav-item nav-link" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading"><?php echo i18n('Reading');?></a>
|
|
<a class="nav-item nav-link active" id="nav-writing-tab" href="<?php echo site_url();?>admin/config/writing"><?php echo i18n('Writing');?></a>
|
|
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
|
|
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
|
|
<a class="nav-item nav-link" id="nav-security-tab" href="<?php echo site_url();?>admin/config/security"><?php echo i18n('Security');?></a>
|
|
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
|
|
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
|
|
</div>
|
|
</nav>
|
|
<br><br>
|
|
<form method="POST">
|
|
<input type="hidden" name="csrf_token" value="<?php echo get_csrf(); ?>">
|
|
<div class="form-group row">
|
|
<label class="col-sm-2 col-form-label"><?php echo i18n('Enable_auto_save');?></label>
|
|
<div class="col-sm-10">
|
|
<div class="col-sm-10">
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="radio" name="-config-autosave.enable" id="autosave.enable1" value="true" <?php if (config('autosave.enable') === 'true'):?>checked<?php endif;?>>
|
|
<label class="form-check-label" for="autosave.enable1">
|
|
<?php echo i18n('Enable');?>
|
|
</label>
|
|
</div>
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="radio" name="-config-autosave.enable" id="autosave.enable2" value="false" <?php if (config('autosave.enable') === 'false'):?>checked<?php endif;?>>
|
|
<label class="form-check-label" for="autosave.enable2">
|
|
<?php echo i18n('Disable');?>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<small><em><?php echo i18n('explain_autosave');?></em></small>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-sm-10">
|
|
<button type="submit" class="btn btn-primary"><?php echo i18n('Save_Config');?></button>
|
|
</div>
|
|
</div>
|
|
</form>
|