add footer scripts tags

This commit is contained in:
Hesabix 2024-01-05 16:54:33 +00:00
parent f28c96ad8b
commit 2efcd48c50
2 changed files with 16 additions and 10 deletions

View file

@ -44,6 +44,9 @@ class Settings
#[ORM\Column(type: Types::TEXT, nullable: true)] #[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $scripts = null; private ?string $scripts = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $footerScripts = null;
public function getId(): ?int public function getId(): ?int
{ {
return $this->id; return $this->id;
@ -168,4 +171,16 @@ class Settings
return $this; return $this;
} }
public function getFooterScripts(): ?string
{
return $this->footerScripts;
}
public function setFooterScripts(?string $footerScripts): static
{
$this->footerScripts = $footerScripts;
return $this;
}
} }

View file

@ -250,16 +250,7 @@
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-4 text-center mt-2"> <div class="col-sm-12 col-md-4 text-center mt-2">
<div class="row mb-3 justify-content-center"> {{settings.footerScripts | raw}}
<div class="col-3">
<script src="https://www.zarinpal.com/webservice/TrustCode" type="text/javascript"></script>
</div>
<div class="col-3">
<a href="https://aparat.com/hesabix.ir" target="_blank">
<img style="max-width: 6rem;" src="{{ asset("/img/share/aparat.png") }}" class="img-fluid" alt="کانال آپارات حسابیکس">
</a>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>