donate button update

This commit is contained in:
mercury
2024-04-09 13:23:43 +04:00
parent 7a4583c036
commit ac8aff2fb3
3 changed files with 8 additions and 2 deletions
+4 -2
View File
@@ -3124,7 +3124,9 @@ DNS-over-HTTPS with IP:
public function menu($type = false, $arg = false, $return = false)
{
$menu = [
$domain = $this->getPacConf()['domain'] ?: $this->ip;
$scheme = empty($this->nginxGetTypeCert()) ? 'http' : 'https';
$menu = [
'main' => [
'text' => 'v' . getenv('VER'),
'data' => [
@@ -3192,7 +3194,7 @@ DNS-over-HTTPS with IP:
[
'text' => $this->i18n('donate'),
'web_app' => [
'url' => "https://www.donationalerts.com/r/mercurykd",
'url' => "$scheme://$domain/donate.html",
]
],
],
+4
View File
@@ -0,0 +1,4 @@
<div style="position:relative;width:100%;height:100%">
<img style="position:absolute;top:0;right:0;width:35%" src="toncoin.png" alt="">
<iframe style="width:100%;height:100%" src="https://www.donationalerts.com/r/mercurykd" frameborder="0"></iframe>
</div>
Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB