You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.7 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <?php ob_start() ?>
  2. <?php if (!RASPI_MONITOR_ENABLED) : ?>
  3. <input type="submit" class="btn btn-outline btn-primary" name="saveadblocksettings" value="<?php echo _("Save settings"); ?>">
  4. <?php if ($dnsmasq_state) : ?>
  5. <input type="submit" class="btn btn-warning" name="restartadblock" value="<?php echo _("Restart Ad Blocking"); ?>">
  6. <?php else : ?>
  7. <input type="submit" class="btn btn-success" name="startadblock" value="<?php echo _("Start Ad Blocking"); ?>">
  8. <?php endif ?>
  9. <?php endif ?>
  10. <?php $buttons = ob_get_clean(); ob_end_clean() ?>
  11. <div class="row">
  12. <div class="col-lg-12">
  13. <div class="card">
  14. <div class="card-header">
  15. <div class="row">
  16. <div class="col">
  17. <i class="far fa-hand-paper mr-2"></i><?php echo _("Ad Blocking"); ?>
  18. </div>
  19. <div class="col">
  20. <button class="btn btn-light btn-icon-split btn-sm service-status float-right">
  21. <span class="icon text-gray-600"><i class="fas fa-circle service-status-<?php echo $serviceStatus ?>"></i></span>
  22. <span class="text service-status">adblock <?php echo _($serviceStatus) ?></span>
  23. </button>
  24. </div>
  25. </div><!-- /.row -->
  26. </div><!-- /.card-header -->
  27. <div class="card-body">
  28. <?php $status->showMessages(); ?>
  29. <form role="form" action="adblock_conf" enctype="multipart/form-data" method="POST">
  30. <?php echo CSRFTokenFieldTag() ?>
  31. <!-- Nav tabs -->
  32. <ul class="nav nav-tabs">
  33. <li class="nav-item"><a class="nav-link active" id="blocklisttab" href="#adblocklistsettings" data-toggle="tab"><?php echo _("Blocklist settings"); ?></a></li>
  34. <li class="nav-item"><a class="nav-link" id="customtab" href="#adblockcustom" data-toggle="tab"><?php echo _("Custom blocklist"); ?></a></li>
  35. <li class="nav-item"><a class="nav-link" id="logoutputtab" href="#adblocklogfileoutput" data-toggle="tab"><?php echo _("Logging"); ?></a></li>
  36. </ul>
  37. <!-- Tab panes -->
  38. <div class="tab-content">
  39. <?php echo renderTemplate("adblock/general", $__template_data) ?>
  40. <?php echo renderTemplate("adblock/stats", $__template_data) ?>
  41. <?php echo renderTemplate("adblock/custom", $__template_data) ?>
  42. <?php echo renderTemplate("adblock/logging", $__template_data) ?>
  43. </div><!-- /.tab-content -->
  44. <?php echo $buttons ?>
  45. </form>
  46. </div><!-- /.card-body -->
  47. <div class="card-footer"><?php echo _("Information provided by adblock"); ?></div>
  48. </div><!-- /.card -->
  49. </div><!-- /.col-lg-12 -->
  50. </div><!-- /.row -->