config-writing.html.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php if (!defined('HTMLY')) die('HTMLy'); ?>
  2. <h2><?php echo i18n('Writing_Settings');?></h2>
  3. <br>
  4. <nav>
  5. <div class="nav nav-tabs" id="nav-tab">
  6. <a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config"><?php echo i18n('General');?></a>
  7. <a class="nav-item nav-link" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading"><?php echo i18n('Reading');?></a>
  8. <a class="nav-item nav-link active" id="nav-writing-tab" href="<?php echo site_url();?>admin/config/writing"><?php echo i18n('Writing');?></a>
  9. <a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
  10. <a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
  11. <a class="nav-item nav-link" id="nav-security-tab" href="<?php echo site_url();?>admin/config/security"><?php echo i18n('Security');?></a>
  12. <a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
  13. <a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
  14. </div>
  15. </nav>
  16. <br><br>
  17. <form method="POST">
  18. <input type="hidden" name="csrf_token" value="<?php echo get_csrf(); ?>">
  19. <div class="form-group row">
  20. <label class="col-sm-2 col-form-label"><?php echo i18n('Enable_auto_save');?></label>
  21. <div class="col-sm-10">
  22. <div class="col-sm-10">
  23. <div class="form-check">
  24. <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;?>>
  25. <label class="form-check-label" for="autosave.enable1">
  26. <?php echo i18n('Enable');?>
  27. </label>
  28. </div>
  29. <div class="form-check">
  30. <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;?>>
  31. <label class="form-check-label" for="autosave.enable2">
  32. <?php echo i18n('Disable');?>
  33. </label>
  34. </div>
  35. </div>
  36. <small><em><?php echo i18n('explain_autosave');?></em></small>
  37. </div>
  38. </div>
  39. <div class="form-group row">
  40. <div class="col-sm-10">
  41. <button type="submit" class="btn btn-primary"><?php echo i18n('Save_Config');?></button>
  42. </div>
  43. </div>
  44. </form>