2020-03-27 14:09:32 +01:00
|
|
|
<?php ob_start() ?>
|
|
|
|
<?php if (!RASPI_MONITOR_ENABLED) : ?>
|
|
|
|
<input type="submit" class="btn btn-outline btn-primary" name="saveadblocksettings" value="<?php echo _("Save settings"); ?>">
|
|
|
|
<?php if ($dnsmasq_state) : ?>
|
2020-03-27 23:39:05 +01:00
|
|
|
<input type="submit" class="btn btn-warning" name="restartadblock" value="<?php echo _("Restart Ad Blocking"); ?>">
|
2020-03-27 23:04:35 +01:00
|
|
|
<?php else : ?>
|
|
|
|
<input type="submit" class="btn btn-success" name="startadblock" value="<?php echo _("Start Ad Blocking"); ?>">
|
2020-03-27 14:09:32 +01:00
|
|
|
<?php endif ?>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php $buttons = ob_get_clean(); ob_end_clean() ?>
|
|
|
|
|
2020-03-26 20:45:39 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<i class="far fa-hand-paper mr-2"></i><?php echo _("Ad Blocking"); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<button class="btn btn-light btn-icon-split btn-sm service-status float-right">
|
|
|
|
<span class="icon text-gray-600"><i class="fas fa-circle service-status-<?php echo $serviceStatus ?>"></i></span>
|
|
|
|
<span class="text service-status">adblock <?php echo _($serviceStatus) ?></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.row -->
|
|
|
|
</div><!-- /.card-header -->
|
|
|
|
<div class="card-body">
|
|
|
|
<?php $status->showMessages(); ?>
|
|
|
|
<form role="form" action="?page=adblock_conf" enctype="multipart/form-data" method="POST">
|
|
|
|
<?php echo CSRFTokenFieldTag() ?>
|
|
|
|
<!-- Nav tabs -->
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="nav-item"><a class="nav-link active" id="clienttab" href="#adblocklistsettings" data-toggle="tab"><?php echo _("Blocklist settings"); ?></a></li>
|
2020-03-27 23:04:35 +01:00
|
|
|
<li class="nav-item"><a class="nav-link" id="logoutputtab" href="#adblocklogfileoutput" data-toggle="tab"><?php echo _("Logging"); ?></a></li>
|
2020-03-26 20:45:39 +01:00
|
|
|
</ul>
|
2020-03-27 23:46:29 +01:00
|
|
|
|
2020-03-26 20:45:39 +01:00
|
|
|
<!-- Tab panes -->
|
|
|
|
<div class="tab-content">
|
2020-03-27 23:39:05 +01:00
|
|
|
<?php echo renderTemplate("adblock/general", $__template_data) ?>
|
2020-03-27 23:46:29 +01:00
|
|
|
<?php echo renderTemplate("adblock/stats", $__template_data) ?>
|
2020-03-27 23:39:05 +01:00
|
|
|
<?php echo renderTemplate("adblock/logging", $__template_data) ?>
|
|
|
|
</div><!-- /.tab-content -->
|
2020-03-26 20:45:39 +01:00
|
|
|
|
2020-03-27 23:39:05 +01:00
|
|
|
<?php echo $buttons ?>
|
|
|
|
</form>
|
2020-03-26 20:45:39 +01:00
|
|
|
</div><!-- /.card-body -->
|
|
|
|
<div class="card-footer"><?php echo _("Information provided by adblock"); ?></div>
|
2020-03-27 23:39:05 +01:00
|
|
|
</div><!-- /.card -->
|
|
|
|
</div><!-- /.col-lg-12 -->
|
|
|
|
</div><!-- /.row -->
|
2020-03-26 20:45:39 +01:00
|
|
|
|